org.eclipse.jface.viewers.ColumnPixelData Java Examples

The following examples show how to use org.eclipse.jface.viewers.ColumnPixelData. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: RealTimeListViewer.java    From neoscada with Eclipse Public License 1.0 6 votes vote down vote up
protected void applyInitialColWidth ( final TableLayout tableLayout )
{
    if ( this.initialColWidth != null && !this.initialColWidth.isEmpty () && this.viewer != null && this.initialColWidth.size () != this.viewer.getTree ().getColumnCount () )
    {
        for ( final Integer w : this.initialColWidth )
        {
            tableLayout.addColumnData ( new ColumnPixelData ( w, true ) );
        }
    }
    else
    {
        tableLayout.addColumnData ( new ColumnWeightData ( 200, true ) );
        tableLayout.addColumnData ( new ColumnWeightData ( 100, true ) );
        tableLayout.addColumnData ( new ColumnWeightData ( 100, true ) );
        tableLayout.addColumnData ( new ColumnWeightData ( 200, true ) );
        tableLayout.addColumnData ( new ColumnWeightData ( 200, true ) );
    }
}
 
Example #2
Source File: BundledResourcesSelectionBlock.java    From gwt-eclipse-plugin with Eclipse Public License 1.0 6 votes vote down vote up
private void createListField() {
  String[] buttons = new String[] {
      "Add...", "Add Multiple...", "Edit", null, "Remove", null};

  resourcesField =
      new ListDialogField<ClientBundleResource>(new SelectionAdapter(), buttons,
      new ColumnLabelProvider());
  resourcesField.setLabelText(labelText);

  String[] columnNames = {"File", "Type", "Method name"};
  ColumnLayoutData[] columnLayouts = {
      new ColumnPixelData(100), new ColumnPixelData(100),
      new ColumnPixelData(100)};

  resourcesField.setTableColumns(new ListDialogField.ColumnsDescription(
      columnLayouts, columnNames, false));

  // Edit and Remove buttons disabled by default
  resourcesField.enableButton(IDX_EDIT, false);
  resourcesField.enableButton(IDX_REMOVE, false);
}
 
Example #3
Source File: MedicationViewerHelper.java    From elexis-3-core with Eclipse Public License 1.0 6 votes vote down vote up
public static TableViewerColumn createDosageColumn(TableViewer viewer,
	TableColumnLayout layout, int columnIndex){
	TableViewerColumn ret = new TableViewerColumn(viewer, SWT.NONE);
	ret.setLabelProvider(new MedicationCellLabelProvider() {
		
		@Override
		public String getText(Object element){
			MedicationTableViewerItem pres = (MedicationTableViewerItem) element;
			String dosis = pres.getDosis();
			return (dosis.equals(StringConstants.ZERO) ? Messages.MedicationComposite_stopped
					: dosis);
		}
	});
	TableColumn tblclmnDosage = ret.getColumn();
	tblclmnDosage.setToolTipText(Messages.TherapieplanComposite_tblclmnDosage_toolTipText);
	tblclmnDosage.addSelectionListener(getSelectionAdapter(viewer, tblclmnDosage, columnIndex));
	layout.setColumnData(tblclmnDosage, new ColumnPixelData(60, true, true));
	ret.getColumn().setText(Messages.TherapieplanComposite_tblclmnDosage_text);
	return ret;
}
 
Example #4
Source File: MedicationViewerHelper.java    From elexis-3-core with Eclipse Public License 1.0 6 votes vote down vote up
public static TableViewerColumn createBeginColumn(TableViewer viewer,
	TableColumnLayout layout, int columnIndex){
	TableViewerColumn ret = new TableViewerColumn(viewer, SWT.CENTER);
	TableColumn tblclmnEnacted = ret.getColumn();
	layout.setColumnData(tblclmnEnacted, new ColumnPixelData(60, true, true));
	tblclmnEnacted.setImage(Images.resize(Images.IMG_NEXT_WO_SHADOW.getImage(),
		ImageSize._12x12_TableColumnIconSize));
	tblclmnEnacted.setToolTipText(Messages.MedicationComposite_column_sortBy + " "
		+ Messages.MedicationComposite_column_beginDate);
	tblclmnEnacted
		.addSelectionListener(getSelectionAdapter(viewer, tblclmnEnacted, columnIndex));
	ret.setLabelProvider(new MedicationCellLabelProvider() {
		
		@Override
		public String getText(Object element){
			MedicationTableViewerItem pres = (MedicationTableViewerItem) element;
			return pres.getBeginDate();
		}
	});
	return ret;
}
 
Example #5
Source File: MedicationViewerHelper.java    From elexis-3-core with Eclipse Public License 1.0 6 votes vote down vote up
public static TableViewerColumn createStopColumn(TableViewer viewer, TableColumnLayout layout,
	int columnIndex){
	TableViewerColumn ret = new TableViewerColumn(viewer, SWT.CENTER);
	TableColumn tblclmnStop = ret.getColumn();
	ColumnPixelData stopColumnPixelData = new ColumnPixelData(60, true, true);
	layout.setColumnData(tblclmnStop, stopColumnPixelData);
	tblclmnStop.setImage(Images.resize(Images.IMG_ARROWSTOP_WO_SHADOW.getImage(),
		ImageSize._12x12_TableColumnIconSize));
	tblclmnStop.setToolTipText(Messages.MedicationComposite_column_sortBy + " "
		+ Messages.MedicationComposite_column_endDate);
	tblclmnStop.addSelectionListener(getSelectionAdapter(viewer, tblclmnStop, columnIndex));
	ret.setLabelProvider(new MedicationCellLabelProvider() {
		@Override
		public String getText(Object element){
			MedicationTableViewerItem pres = (MedicationTableViewerItem) element;
			if (pres.getEntryType() != EntryType.RECIPE
				&& pres.getEntryType() != EntryType.SELF_DISPENSED) {
				return pres.getEndDate();
			}
			return "";
		}
	});
	return ret;
}
 
Example #6
Source File: GitRepositoryPreferencePageView.java    From MergeProcessor with Apache License 2.0 5 votes vote down vote up
/**
 * @param parent a widget which will be the parent of the new instance (cannot
 *               be null)
 * @param style  the style of widget to construct
 */
public GitRepositoryPreferencePageView(Composite parent, int style) {
	super(parent, style);
	final TableColumnLayout tableColumnLayout = new TableColumnLayout();
	setLayout(tableColumnLayout);

	tableViewer = new TableViewer(this, SWT.BORDER | SWT.FULL_SELECTION);
	final Table table = tableViewer.getTable();
	table.setHeaderVisible(true);
	table.setLinesVisible(true);

	columnRepository = new TableViewerColumn(tableViewer, SWT.NONE);
	TableColumn colRepository = columnRepository.getColumn();
	tableColumnLayout.setColumnData(colRepository, new ColumnWeightData(1));
	colRepository.setText("Repository");

	columnLocalPath = new TableViewerColumn(tableViewer, SWT.NONE);
	TableColumn colLocalPath = columnLocalPath.getColumn();
	tableColumnLayout.setColumnData(colLocalPath, new ColumnWeightData(1));
	colLocalPath.setText("Local Path");

	columnMemory = new TableViewerColumn(tableViewer, SWT.RIGHT);
	TableColumn colMemory = columnMemory.getColumn();
	tableColumnLayout.setColumnData(colMemory, new ColumnPixelData(80, true, true));
	colMemory.setText("Memory");

	final Menu menu = new Menu(tableViewer.getTable());
	menuItemGoToRepository = new MenuItem(menu, SWT.NONE);
	menuItemGoToRepository.setText("Go to Repository");
	tableViewer.getTable().setMenu(menu);
}
 
Example #7
Source File: GridColumnLayout.java    From nebula with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * {@inheritDoc}
 */
protected void updateColumnData(Widget column) {
	GridColumn gColumn = (GridColumn) column;
	Grid g = gColumn.getParent();

	if (!IS_GTK || g.getColumn(g.getColumnCount() - 1) != gColumn) {
		gColumn.setData(LAYOUT_DATA,
				new ColumnPixelData(gColumn.getWidth()));
		layout(g.getParent(), true);
	}
}
 
Example #8
Source File: ColumnViewerBuilder.java    From n4js with Eclipse Public License 1.0 5 votes vote down vote up
/***/
protected ColumnLayoutData createColumnLayoutData(final int columnIndex) {
	if (null == columnWeights) {
		return new ColumnPixelData(getColumnWidthInPixel(columnIndex), resizable);
	}
	return new ColumnWeightData(columnWeights.get(columnIndex), MINIMUM_WIDTH, resizable);
}
 
Example #9
Source File: HistoryTableProvider.java    From APICloud-Studio with GNU General Public License v3.0 5 votes vote down vote up
private void setColumnWidth(TableLayout layout,
		DisposeListener disposeListener, TableColumn col, int defaultWidth) {
	String columnWidth = null;
	if (id != null) columnWidth = settings.get("HistoryTableProvider." + id + "." + col.getText()); //$NON-NLS-1$ //$NON-NLS-1$
	if (columnWidth == null || columnWidth.equals("0")) layout.addColumnData(new ColumnWeightData(defaultWidth, true)); //$NON-NLS-1$
	else layout.addColumnData(new ColumnPixelData(Integer.parseInt(columnWidth), true));
	if (id != null) col.addDisposeListener(disposeListener);
}
 
Example #10
Source File: TreeConflictsView.java    From APICloud-Studio with GNU General Public License v3.0 5 votes vote down vote up
private void setColumnWidth(TableLayout layout,
		DisposeListener disposeListener, TreeColumn col, int colIndex) {
	String columnWidth = null;
	columnWidth = settings.get("TreeConflictsView.col." + col.getText()); //$NON-NLS-1$ //$NON-NLS-1$
	if (columnWidth == null || columnWidth.equals("0")) layout.addColumnData(columnLayouts[colIndex]); //$NON-NLS-1$
	else layout.addColumnData(new ColumnPixelData(Integer.parseInt(columnWidth), true));
	col.addDisposeListener(disposeListener);
}
 
Example #11
Source File: ExternalizeWizardPage.java    From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 5 votes vote down vote up
private Control createTable(Composite parent) {
	Composite c= new Composite(parent, SWT.NONE);
	GridLayout gl= new GridLayout();
	gl.numColumns= 2;
	gl.marginWidth= 0;
	gl.marginHeight= 0;
	c.setLayout(gl);


	fTable= new Table(c, SWT.H_SCROLL | SWT.V_SCROLL | SWT.MULTI | SWT.FULL_SELECTION | SWT.HIDE_SELECTION | SWT.BORDER);
	fTable.setFont(parent.getFont());

	GridData tableGD= new GridData(GridData.FILL_BOTH);
	tableGD.heightHint= SWTUtil.getTableHeightHint(fTable, ROW_COUNT);
	//tableGD.widthHint= 40;
	fTable.setLayoutData(tableGD);

	fTable.setLinesVisible(true);

	TableLayout layout= new TableLayout();
	fTable.setLayout(layout);
	fTable.setHeaderVisible(true);

	ColumnLayoutData[] columnLayoutData= new ColumnLayoutData[SIZE];
	columnLayoutData[STATE_PROP]= new ColumnPixelData(18, false, true);
	columnLayoutData[KEY_PROP]= new ColumnWeightData(40, true);
	columnLayoutData[VAL_PROP]= new ColumnWeightData(40, true);

	for (int i= 0; i < fgTitles.length; i++) {
		TableColumn tc= new TableColumn(fTable, SWT.NONE, i);
		tc.setText(fgTitles[i]);
		layout.addColumnData(columnLayoutData[i]);
		tc.setResizable(columnLayoutData[i].resizable);
	}

	createButtonComposite(c);
	return c;
}
 
Example #12
Source File: WebSearchPreferencePage.java    From translationstudio8 with GNU General Public License v2.0 5 votes vote down vote up
private Composite createTableArea(Composite parent) {
	Composite tableArea = new Composite(parent, SWT.NONE);
	GridLayout gridLayout = new GridLayout(1, false);
	gridLayout.marginWidth = 0;
	tableArea.setLayout(gridLayout);
	GridData gridData = new GridData(GridData.FILL_BOTH);
	tableArea.setLayoutData(gridData);
	checkboxTableViewer = CheckboxTableViewer.newCheckList(tableArea, SWT.BORDER | SWT.FULL_SELECTION);
	table = checkboxTableViewer.getTable();
	table.setHeaderVisible(true);
	table.setLinesVisible(false);
	TableLayout tableLayout = new TableLayout();
	tableLayout.addColumnData(new ColumnPixelData(40));
	tableLayout.addColumnData(new ColumnWeightData(50, 50, true));
	tableLayout.addColumnData(new ColumnWeightData(70, 50, true));
	table.setLayout(tableLayout);
	GridData tableGridData = new GridData(GridData.FILL_BOTH);
	table.setLayoutData(tableGridData);
	WebSearchLableProvider webSearchLableProvider = new WebSearchLableProvider();
	webSearchLableProvider.createColumns(checkboxTableViewer);
	checkboxTableViewer.setContentProvider(new WebSearchContentProvider());
	checkboxTableViewer.setLabelProvider(webSearchLableProvider);
	checkboxTableViewer.setCheckStateProvider(new CheckProvider());
	checkboxTableViewer.addCheckStateListener(new CheckListener());
	// checkboxTableViewer.setCellEditors(new CellEditor[] { null, new TextCellEditor(table),
	// new TextCellEditor(table) });
	// checkboxTableViewer.setCellModifier(new NameModifier());
	checkboxTableViewer.setColumnProperties(new String[] { APP_PROP, NAME_PROP, URL_PROP });
	cache = WebSearchPreferencStore.getIns().getSearchConfig();
	checkboxTableViewer.setInput((Object) cache);
	return tableArea;
}
 
Example #13
Source File: DashboardView.java    From MergeProcessor with Apache License 2.0 4 votes vote down vote up
/**
 * @param parent a widget which will be the parent of the new instance (cannot
 *               be null)
 * @param style  the style of widget to construct
 */
public DashboardView(Composite parent, int style) {
	super(parent, style);
	setLayout(new GridLayout());

	final Composite tableComposite = new Composite(this, SWT.NONE);
	final TableColumnLayout tableColumnLayout = new TableColumnLayout();
	tableComposite.setLayout(tableColumnLayout);
	tableComposite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));

	tableViewer = new TableViewer(tableComposite, SWT.BORDER | SWT.FULL_SELECTION | SWT.MULTI);
	final Table table = tableViewer.getTable();
	table.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));
	table.setLinesVisible(true);
	table.setHeaderVisible(true);

	statusViewerColumn = new TableViewerColumn(tableViewer, SWT.NONE);
	final TableColumn statusColumn = statusViewerColumn.getColumn();
	tableColumnLayout.setColumnData(statusColumn, new ColumnPixelData(70));
	statusColumn.setText(Messages.View_Column_Status);

	hostViewerColumn = new TableViewerColumn(tableViewer, SWT.NONE);
	final TableColumn hostColumn = hostViewerColumn.getColumn();
	tableColumnLayout.setColumnData(hostColumn, new ColumnPixelData(120));
	hostColumn.setText(Messages.View_Column_Host);

	repositoryViewerColumn = new TableViewerColumn(tableViewer, SWT.NONE);
	final TableColumn repositoryColumn = repositoryViewerColumn.getColumn();
	tableColumnLayout.setColumnData(repositoryColumn, new ColumnPixelData(110));
	repositoryColumn.setText(Messages.View_Column_Repository);

	dateViewerColumn = new TableViewerColumn(tableViewer, SWT.NONE);
	final TableColumn dateColumn = dateViewerColumn.getColumn();
	tableColumnLayout.setColumnData(dateColumn, new ColumnPixelData(130));
	dateColumn.setText(Messages.View_Column_Date);

	revisionViewerColumn = new TableViewerColumn(tableViewer, SWT.NONE);
	final TableColumn revisionColumn = revisionViewerColumn.getColumn();
	tableColumnLayout.setColumnData(revisionColumn, new ColumnPixelData(100));
	revisionColumn.setText(Messages.View_Column_Revision_Range);

	sourceBranchViewerColumn = new TableViewerColumn(tableViewer, SWT.NONE);
	final TableColumn sourceBranchColumn = sourceBranchViewerColumn.getColumn();
	tableColumnLayout.setColumnData(sourceBranchColumn, new ColumnPixelData(120));
	sourceBranchColumn.setText(Messages.View_Column_Source_Branch);

	targetBranchViewerColumn = new TableViewerColumn(tableViewer, SWT.NONE);
	final TableColumn targetBranchColumn = targetBranchViewerColumn.getColumn();
	tableColumnLayout.setColumnData(targetBranchColumn, new ColumnPixelData(120));
	targetBranchColumn.setText(Messages.View_Column_Target_Branch);

	mergeScriptViewerColumn = new TableViewerColumn(tableViewer, SWT.NONE);
	final TableColumn mergeScriptColumn = mergeScriptViewerColumn.getColumn();
	tableColumnLayout.setColumnData(mergeScriptColumn, new ColumnPixelData(0));
	mergeScriptColumn.setText(Messages.View_Column_Merge_Script);

	renameStatusViewerColumn = new TableViewerColumn(tableViewer, SWT.NONE);
	final TableColumn renameColumn = renameStatusViewerColumn.getColumn();
	tableColumnLayout.setColumnData(renameColumn, new ColumnPixelData(23));
	renameColumn.setText(Messages.View_Column_Renaming);

	final Composite buttonComposite = new Composite(this, SWT.NONE);
	buttonComposite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
	buttonComposite.setLayout(new FillLayout());

	btnMergeSelection = new Button(buttonComposite, SWT.PUSH);
	btnMergeSelection.setText(Messages.View_Button_Merge_Selection);

	btnIgnoreSelection = new Button(buttonComposite, SWT.PUSH);
	btnIgnoreSelection.setText(Messages.View_Button_Ignore_Selection);

}
 
Example #14
Source File: SdkEnvironmentControl.java    From xds-ide with Eclipse Public License 1.0 4 votes vote down vote up
/**
 * Create the composite.
 * @param parent
 * @param style
 * @param editedSdk 
 */
public SdkEnvironmentControl(Composite parent, int style, final Sdk editedSdk) {
    super(parent, style);
    this.editedSdk = editedSdk;
    selectedVar = null;
    
    setLayoutData(new GridData(GridData.FILL_BOTH));
    setLayout(SwtUtils.removeMargins(new GridLayout(2, false)));
    
    Composite tableComposite = new Composite(this, SWT.NONE);
    tableComposite.setLayoutData(new GridData(GridData.FILL_BOTH));
    tableComposite.setLayout(new GridLayout(1, false));
    
    tableComposite.setBackground(new Color(Display.getDefault(), 255,0,0));
    
    
    tableComposite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));
    TableColumnLayout tableColumnLayout = new TableColumnLayout();
    tableComposite.setLayout(tableColumnLayout);
    
    tableViewer = new TableViewer(tableComposite, SWT.BORDER | SWT.FULL_SELECTION);
    table = tableViewer.getTable();
    table.setHeaderVisible(true);
    table.setLinesVisible(true);
    
    columnName = new TableViewerColumn(tableViewer, SWT.NONE);
    tblclmnName = columnName.getColumn();
    tableColumnLayout.setColumnData(tblclmnName, new ColumnPixelData(150, true, true));
    tblclmnName.setText(Messages.SdkEnvironmentControl_Variable);
    
    columnLocation = new TableViewerColumn(tableViewer, SWT.NONE);
    tblclmnLocation = columnLocation.getColumn();
    tableColumnLayout.setColumnData(tblclmnLocation, new ColumnPixelData(150, true, true));
    tblclmnLocation.setText(Messages.SdkEnvironmentControl_Value);
    tableViewer.setContentProvider(new SdkEnvContentProvider());
    tableViewer.setLabelProvider(new SdkEnvLabelProvider());
    tableViewer.addSelectionChangedListener(new ISelectionChangedListener() {
        @Override
        public void selectionChanged(SelectionChangedEvent event) {
            TableItem[] selectedItems = table.getSelection();
            boolean isEnabled = selectedItems.length > 0;
            btnEdit.setEnabled(isEnabled);
            btnDelete.setEnabled(isEnabled);
            selectedVar = isEnabled ? (String)selectedItems[0].getData() : null;
        }
    });
    
    Composite buttonsComposite = new Composite(this, SWT.NONE);
    buttonsComposite.setLayoutData(new GridData(SWT.LEFT, SWT.TOP, false, false, 1, 1));
    buttonsComposite.setLayout(SwtUtils.removeMargins(new GridLayout(1, false)));
    
    btnNew = SWTFactory.createPushButton(buttonsComposite, Messages.SdkEnvironmentControl_New, null);
    btnNew.addSelectionListener(new AddVarButtonHandler());
    
    btnEdit = SWTFactory.createPushButton(buttonsComposite, Messages.SdkEnvironmentControl_Edit, null);
    btnEdit.addSelectionListener(new EditValueButtonHandler());
    btnEdit.setEnabled(false);
    
    btnDelete = SWTFactory.createPushButton(buttonsComposite, Messages.SdkEnvironmentControl_Delete, null);
    btnDelete.setEnabled(false);
    btnDelete.addSelectionListener(new SelectionAdapter() {
        @Override
        public void widgetSelected(SelectionEvent e) {
            if (selectedVar != null) {
                editedSdk.removeEnvironmentVariable(selectedVar);
                tableViewer.setInput(editedSdk);
            }
        }
    });
    tableViewer.setInput(editedSdk);
}
 
Example #15
Source File: ChartMakerDialog.java    From tracecompass with Eclipse Public License 2.0 4 votes vote down vote up
private void createSelectedSeriesGroup(GridData genericFillGridData) {
    /**
     * FIXME: The labels in the first column cannot be aligned to the
     * center. The workaround is to put a dummy column that won't appear.
     */
    GridLayout genericGridLayout = new GridLayout();

    TableViewerColumn dummyColumn = new TableViewerColumn(fSeriesTable, SWT.NONE);
    dummyColumn.setLabelProvider(new SeriesDummyLabelProvider());

    /* X series column */
    TableViewerColumn xSelectionColumn = new TableViewerColumn(fSeriesTable, SWT.NONE);
    xSelectionColumn.getColumn().setText(Messages.ChartMakerDialog_XSeries);
    xSelectionColumn.getColumn().setAlignment(SWT.CENTER);
    xSelectionColumn.getColumn().setResizable(false);
    xSelectionColumn.setLabelProvider(new SeriesXLabelProvider());

    /* Y series column */
    TableViewerColumn ySelectionColumn = new TableViewerColumn(fSeriesTable, SWT.NONE);
    ySelectionColumn.getColumn().setText(Messages.ChartMakerDialog_YSeries);
    ySelectionColumn.getColumn().setAlignment(SWT.CENTER);
    ySelectionColumn.getColumn().setResizable(false);
    ySelectionColumn.setLabelProvider(new SeriesYLabelProvider());

    /* Remove buttons column */
    TableViewerColumn removeColumn = new TableViewerColumn(fSeriesTable, SWT.NONE);
    removeColumn.getColumn().setResizable(false);
    removeColumn.setLabelProvider(new SeriesRemoveLabelProvider());

    TableColumnLayout seriesLayout = new TableColumnLayout();
    seriesLayout.setColumnData(dummyColumn.getColumn(), new ColumnPixelData(0));
    seriesLayout.setColumnData(xSelectionColumn.getColumn(), new ColumnWeightData(50));
    seriesLayout.setColumnData(ySelectionColumn.getColumn(), new ColumnWeightData(50));
    seriesLayout.setColumnData(removeColumn.getColumn(), new ColumnPixelData(34));

    Group seriesGroup = new Group(fComposite, SWT.BORDER | SWT.FILL);
    seriesGroup.setText(Messages.ChartMakerDialog_SelectedSeries);
    seriesGroup.setLayout(genericGridLayout);
    seriesGroup.setLayoutData(genericFillGridData);

    Composite seriesComposite = new Composite(seriesGroup, SWT.NONE);
    seriesComposite.setLayout(seriesLayout);
    seriesComposite.setLayoutData(genericFillGridData);

    fSeriesTable.getTable().setParent(seriesComposite);
    fSeriesTable.getTable().setHeaderVisible(true);
    fSeriesTable.getTable().addListener(SWT.MeasureItem, new SeriesRowResize());
    fSeriesTable.setContentProvider(ArrayContentProvider.getInstance());
    fSeriesTable.setInput(fSelectedSeries);
}