Search in sources :

Example 86 with TableColumnLayout

use of org.eclipse.jface.layout.TableColumnLayout in project portfolio by buchen.

the class AttributeListTab method createTab.

@Override
public CTabItem createTab(CTabFolder folder) {
    Composite container = new Composite(folder, SWT.NONE);
    TableColumnLayout layout = new TableColumnLayout();
    container.setLayout(layout);
    tableViewer = new TableViewer(container, SWT.FULL_SELECTION | SWT.MULTI);
    ColumnEditingSupport.prepare(tableViewer);
    ShowHideColumnHelper support = new ShowHideColumnHelper(AttributeListTab.class.getSimpleName(), preferences, tableViewer, layout);
    addColumns(support);
    support.createColumns();
    tableViewer.getTable().setHeaderVisible(true);
    tableViewer.getTable().setLinesVisible(true);
    tableViewer.setContentProvider(new ArrayContentProvider());
    tableViewer.setInput(client.getSettings().getAttributeTypes().toArray());
    tableViewer.refresh();
    new ContextMenu(tableViewer.getTable(), m -> fillContextMenu(m)).hook();
    CTabItem item = new CTabItem(folder, SWT.NONE);
    item.setText(Messages.AttributeTypeTitle);
    item.setControl(container);
    return item;
}
Also used : ContextMenu(name.abuchen.portfolio.ui.util.ContextMenu) IPreferenceStore(org.eclipse.jface.preference.IPreferenceStore) Client(name.abuchen.portfolio.model.Client) TableViewer(org.eclipse.jface.viewers.TableViewer) Images(name.abuchen.portfolio.ui.Images) Image(org.eclipse.swt.graphics.Image) TableColumnLayout(org.eclipse.jface.layout.TableColumnLayout) Inject(javax.inject.Inject) ModificationListener(name.abuchen.portfolio.ui.util.viewers.ColumnEditingSupport.ModificationListener) Composite(org.eclipse.swt.widgets.Composite) Messages(name.abuchen.portfolio.ui.Messages) StringEditingSupport(name.abuchen.portfolio.ui.util.viewers.StringEditingSupport) Separator(org.eclipse.jface.action.Separator) Shell(org.eclipse.swt.widgets.Shell) CTabFolder(org.eclipse.swt.custom.CTabFolder) Column(name.abuchen.portfolio.ui.util.viewers.Column) Action(org.eclipse.jface.action.Action) Security(name.abuchen.portfolio.model.Security) UUID(java.util.UUID) ArrayContentProvider(org.eclipse.jface.viewers.ArrayContentProvider) ColumnLabelProvider(org.eclipse.jface.viewers.ColumnLabelProvider) ColumnEditingSupport(name.abuchen.portfolio.ui.util.viewers.ColumnEditingSupport) ShowHideColumnHelper(name.abuchen.portfolio.ui.util.viewers.ShowHideColumnHelper) Tab(name.abuchen.portfolio.ui.views.settings.SettingsView.Tab) CTabItem(org.eclipse.swt.custom.CTabItem) IMenuManager(org.eclipse.jface.action.IMenuManager) SWT(org.eclipse.swt.SWT) AttributeType(name.abuchen.portfolio.model.AttributeType) LabelOnly(name.abuchen.portfolio.ui.util.LabelOnly) IStructuredSelection(org.eclipse.jface.viewers.IStructuredSelection) ClientSettings(name.abuchen.portfolio.model.ClientSettings) Composite(org.eclipse.swt.widgets.Composite) TableColumnLayout(org.eclipse.jface.layout.TableColumnLayout) ShowHideColumnHelper(name.abuchen.portfolio.ui.util.viewers.ShowHideColumnHelper) ArrayContentProvider(org.eclipse.jface.viewers.ArrayContentProvider) ContextMenu(name.abuchen.portfolio.ui.util.ContextMenu) TableViewer(org.eclipse.jface.viewers.TableViewer) CTabItem(org.eclipse.swt.custom.CTabItem)

Example 87 with TableColumnLayout

use of org.eclipse.jface.layout.TableColumnLayout in project InformationSystem by ObeoNetwork.

the class ExportProjectAsLibraryManifestPage method createControl.

/**
 * Create contents of the wizard.
 * @param parent
 */
public void createControl(Composite parent) {
    Composite container = new Composite(parent, SWT.NULL);
    setControl(container);
    container.setLayout(new FillLayout(SWT.HORIZONTAL));
    ScrolledComposite scrolledComposite = new ScrolledComposite(container, SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL);
    scrolledComposite.setExpandHorizontal(true);
    scrolledComposite.setExpandVertical(true);
    Composite composite = new Composite(scrolledComposite, SWT.NONE);
    composite.setLayout(new GridLayout(3, false));
    Label lblProjectId = new Label(composite, SWT.NONE);
    lblProjectId.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
    lblProjectId.setText("Project ID");
    txtProjectId = new Text(composite, SWT.BORDER);
    txtProjectId.addModifyListener(new ModifyListener() {

        public void modifyText(ModifyEvent e) {
            setPageComplete(isInfoComplete(txtProjectId.getText(), txtVersion.getText()));
        }
    });
    txtProjectId.setLayoutData(new GridData(SWT.FILL, SWT.TOP, true, false, 1, 1));
    new Label(composite, SWT.NONE);
    Label lblVersion = new Label(composite, SWT.NONE);
    lblVersion.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
    lblVersion.setText("Version");
    txtVersion = new Text(composite, SWT.BORDER);
    txtVersion.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));
    txtVersion.addModifyListener(new ModifyListener() {

        public void modifyText(ModifyEvent e) {
            setPageComplete(isInfoComplete(txtProjectId.getText(), txtVersion.getText()));
        }
    });
    Label lblVersionHelp = new Label(composite, SWT.NONE);
    lblVersionHelp.setToolTipText("major.minor.patch.qualifier (ex : 1.2.123.alpha)");
    lblVersionHelp.setImage(ResourceManager.getPluginImage("org.eclipse.ui", "/icons/full/etool16/help_contents.png"));
    Label lblPreviousversions = new Label(composite, SWT.NONE);
    lblPreviousversions.setLayoutData(new GridData(SWT.LEFT, SWT.TOP, false, false, 1, 1));
    lblPreviousversions.setText("PreviousVersions");
    Composite compositeTbl = new Composite(composite, SWT.NONE);
    compositeTbl.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));
    TableColumnLayout tcl_compositeTbl = new TableColumnLayout();
    compositeTbl.setLayout(tcl_compositeTbl);
    tableViewer = new TableViewer(compositeTbl, SWT.BORDER | SWT.FULL_SELECTION);
    table = tableViewer.getTable();
    table.setHeaderVisible(true);
    table.setLinesVisible(true);
    TableViewerColumn tableViewerColumnVersion = new TableViewerColumn(tableViewer, SWT.NONE);
    TableColumn tblclmnVersion = tableViewerColumnVersion.getColumn();
    tcl_compositeTbl.setColumnData(tblclmnVersion, new ColumnWeightData(25, ColumnWeightData.MINIMUM_WIDTH, true));
    tblclmnVersion.setText("Version");
    TableViewerColumn tableViewerColumnID = new TableViewerColumn(tableViewer, SWT.NONE);
    TableColumn tblclmnId = tableViewerColumnID.getColumn();
    tcl_compositeTbl.setColumnData(tblclmnId, new ColumnWeightData(25, ColumnWeightData.MINIMUM_WIDTH, true));
    tblclmnId.setText("ID");
    TableViewerColumn tableViewerColumnComment = new TableViewerColumn(tableViewer, SWT.NONE);
    TableColumn tblclmnComment = tableViewerColumnComment.getColumn();
    tcl_compositeTbl.setColumnData(tblclmnComment, new ColumnWeightData(50, ColumnWeightData.MINIMUM_WIDTH, true));
    tblclmnComment.setText("Comment");
    new Label(composite, SWT.NONE);
    Label lblComment = new Label(composite, SWT.NONE);
    lblComment.setLayoutData(new GridData(SWT.RIGHT, SWT.TOP, false, false, 1, 1));
    lblComment.setText("Comment");
    txtComment = new Text(composite, SWT.BORDER | SWT.MULTI);
    txtComment.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));
    new Label(composite, SWT.NONE);
    scrolledComposite.setContent(composite);
    scrolledComposite.setMinSize(composite.computeSize(SWT.DEFAULT, SWT.DEFAULT));
    m_bindingContext = initDataBindings();
}
Also used : ColumnWeightData(org.eclipse.jface.viewers.ColumnWeightData) Composite(org.eclipse.swt.widgets.Composite) ScrolledComposite(org.eclipse.swt.custom.ScrolledComposite) ModifyListener(org.eclipse.swt.events.ModifyListener) Label(org.eclipse.swt.widgets.Label) Text(org.eclipse.swt.widgets.Text) FillLayout(org.eclipse.swt.layout.FillLayout) TableColumn(org.eclipse.swt.widgets.TableColumn) GridLayout(org.eclipse.swt.layout.GridLayout) ModifyEvent(org.eclipse.swt.events.ModifyEvent) TableColumnLayout(org.eclipse.jface.layout.TableColumnLayout) GridData(org.eclipse.swt.layout.GridData) ScrolledComposite(org.eclipse.swt.custom.ScrolledComposite) TableViewer(org.eclipse.jface.viewers.TableViewer) TableViewerColumn(org.eclipse.jface.viewers.TableViewerColumn)

Example 88 with TableColumnLayout

use of org.eclipse.jface.layout.TableColumnLayout in project InformationSystem by ObeoNetwork.

the class ImportLibraryIntoProjectFileSelectionPage method createControl.

/**
 * Create contents of the wizard.
 * @param parent
 */
public void createControl(Composite parent) {
    Composite container = new Composite(parent, SWT.NULL);
    setControl(container);
    container.setLayout(new GridLayout(3, false));
    Label lblModelingProject = new Label(container, SWT.NONE);
    lblModelingProject.setText("Modeling project");
    comboViewer = new ComboViewer(container, SWT.NONE);
    comboViewer.setUseHashlookup(true);
    Combo combo = comboViewer.getCombo();
    combo.addSelectionListener(new SelectionAdapter() {

        @Override
        public void widgetSelected(SelectionEvent e) {
            computeDependenciesTable();
        }
    });
    combo.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 2, 1));
    Label lblNewLabel = new Label(container, SWT.NONE);
    lblNewLabel.setFont(SWTResourceManager.getFont("Segoe UI", 9, SWT.BOLD));
    lblNewLabel.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, false, false, 3, 1));
    lblNewLabel.setText("MAR File");
    Label lblFileToImport = new Label(container, SWT.NONE);
    lblFileToImport.setText("Import file");
    txtMarFile = new Text(container, SWT.BORDER);
    txtMarFile.setLayoutData(new GridData(SWT.FILL, SWT.TOP, true, false, 1, 1));
    Button btnBrowse = new Button(container, SWT.NONE);
    btnBrowse.addSelectionListener(new SelectionAdapter() {

        @Override
        public void widgetSelected(SelectionEvent e) {
            FileDialog dlg = new FileDialog(getShell());
            dlg.setFileName(txtMarFile.getText());
            dlg.setOverwrite(true);
            dlg.setFilterExtensions(new String[] { "*.mar", "*.*" });
            dlg.setFilterNames(new String[] { "MAR files (*.mar)", "All files (*.*)" });
            String importFile = dlg.open();
            if (importFile != null) {
                try {
                    Manifest manifest = manifestServices.getManifestFromArchive(new File(importFile));
                    extractInfoFromManifest(manifest);
                } catch (FileNotFoundException e1) {
                    // TODO Error thrown
                    e1.printStackTrace();
                } catch (IOException e1) {
                    // TODO Error thrown
                    e1.printStackTrace();
                }
                txtMarFile.setText(importFile);
                setPageComplete(isInfoComplete());
            }
        }
    });
    btnBrowse.setText("Browse...");
    Label lblProjectId = new Label(container, SWT.NONE);
    lblProjectId.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
    lblProjectId.setText("Project ID");
    txtProjectId = new Text(container, SWT.BORDER | SWT.READ_ONLY);
    txtProjectId.setLayoutData(new GridData(SWT.FILL, SWT.TOP, true, false, 2, 1));
    Label lblVersion = new Label(container, SWT.NONE);
    lblVersion.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
    lblVersion.setText("Version");
    txtVersion = new Text(container, SWT.BORDER | SWT.READ_ONLY);
    txtVersion.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 2, 1));
    Label lblCreationDate = new Label(container, SWT.NONE);
    lblCreationDate.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
    lblCreationDate.setText("Creation date");
    txtCreationDate = new Text(container, SWT.BORDER | SWT.READ_ONLY);
    txtCreationDate.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 2, 1));
    Label lblComment = new Label(container, SWT.NONE);
    lblComment.setLayoutData(new GridData(SWT.RIGHT, SWT.TOP, false, false, 1, 1));
    lblComment.setText("Comment");
    txtComment = new Text(container, SWT.BORDER | SWT.READ_ONLY | SWT.MULTI);
    txtComment.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 2, 1));
    Label lblDependencies = new Label(container, SWT.NONE);
    lblDependencies.setLayoutData(new GridData(SWT.LEFT, SWT.TOP, false, false, 1, 1));
    lblDependencies.setText("Dependencies");
    Composite composite = new Composite(container, SWT.NONE);
    composite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 2, 1));
    TableColumnLayout tcl_composite = new TableColumnLayout();
    composite.setLayout(tcl_composite);
    TableViewer tableViewer = new TableViewer(composite, SWT.BORDER | SWT.FULL_SELECTION);
    table = tableViewer.getTable();
    table.setHeaderVisible(true);
    table.setLinesVisible(true);
    TableViewerColumn tableViewerColumnId = new TableViewerColumn(tableViewer, SWT.NONE);
    TableColumn tblclmnProjectId = tableViewerColumnId.getColumn();
    tcl_composite.setColumnData(tblclmnProjectId, new ColumnWeightData(1, ColumnWeightData.MINIMUM_WIDTH, true));
    tblclmnProjectId.setText("Project ID");
    tableViewerColumnId.setLabelProvider(new ColumnLabelProvider() {

        @Override
        public String getText(Object element) {
            if (element instanceof DependencyRow) {
                return ((DependencyRow) element).getId();
            }
            return super.getText(element);
        }
    });
    TableViewerColumn tableViewerColumnVersion = new TableViewerColumn(tableViewer, SWT.NONE);
    TableColumn tblclmnVersion = tableViewerColumnVersion.getColumn();
    tcl_composite.setColumnData(tblclmnVersion, new ColumnWeightData(1, ColumnWeightData.MINIMUM_WIDTH, true));
    tblclmnVersion.setText("Version");
    tableViewerColumnVersion.setLabelProvider(new ColumnLabelProvider() {

        @Override
        public String getText(Object element) {
            if (element instanceof DependencyRow) {
                return ((DependencyRow) element).getVersion();
            }
            return super.getText(element);
        }
    });
    TableViewerColumn tableViewerColumnExistingVersion = new TableViewerColumn(tableViewer, SWT.NONE);
    TableColumn tblclmnExistingVersion = tableViewerColumnExistingVersion.getColumn();
    tcl_composite.setColumnData(tblclmnExistingVersion, new ColumnWeightData(1, ColumnWeightData.MINIMUM_WIDTH, true));
    tblclmnExistingVersion.setText("Existing version");
    tableViewerColumnExistingVersion.setLabelProvider(new ColumnLabelProvider() {

        @Override
        public String getText(Object element) {
            if (element instanceof DependencyRow) {
                return ((DependencyRow) element).getExistingVersion();
            }
            return super.getText(element);
        }
    });
    TableViewerColumn tableViewerColumnValid = new TableViewerColumn(tableViewer, SWT.NONE);
    TableColumn tblclmnValid = tableViewerColumnValid.getColumn();
    tcl_composite.setColumnData(tblclmnValid, new ColumnWeightData(1, ColumnWeightData.MINIMUM_WIDTH, true));
    tblclmnValid.setText("Valid");
    tableViewerColumnValid.setLabelProvider(new ColumnLabelProvider() {

        @Override
        public String getText(Object element) {
            // No text, we only want to display an image
            return null;
        }

        @Override
        public Image getImage(Object element) {
            if (element instanceof DependencyRow) {
                DependencyRow row = (DependencyRow) element;
                if (ManifestUtils.isGreaterOrEqual(row.getVersion(), row.getExistingVersion())) {
                    return ResourceManager.getPluginImage("org.obeonetwork.tools.projectlibrary.ui", "icons/valid.gif");
                } else {
                    return ResourceManager.getPluginImage("org.obeonetwork.tools.projectlibrary.ui", "icons/invalid.gif");
                }
            }
            return super.getImage(element);
        }
    });
    new Label(container, SWT.NONE);
    new Label(container, SWT.NONE);
    new Label(container, SWT.NONE);
    tableViewer.setContentProvider(new ArrayContentProvider());
    setPageComplete(isInfoComplete());
    m_bindingContext = initDataBindings();
}
Also used : ColumnWeightData(org.eclipse.jface.viewers.ColumnWeightData) Label(org.eclipse.swt.widgets.Label) FileNotFoundException(java.io.FileNotFoundException) Combo(org.eclipse.swt.widgets.Combo) Image(org.eclipse.swt.graphics.Image) ColumnLabelProvider(org.eclipse.jface.viewers.ColumnLabelProvider) DependencyRow(org.obeonetwork.tools.projectlibrary.ui.wizard.imp.ImportLibraryIntoProjectWizardModel.DependencyRow) GridLayout(org.eclipse.swt.layout.GridLayout) TableColumnLayout(org.eclipse.jface.layout.TableColumnLayout) Button(org.eclipse.swt.widgets.Button) SelectionEvent(org.eclipse.swt.events.SelectionEvent) TableViewerColumn(org.eclipse.jface.viewers.TableViewerColumn) Composite(org.eclipse.swt.widgets.Composite) SelectionAdapter(org.eclipse.swt.events.SelectionAdapter) Text(org.eclipse.swt.widgets.Text) IOException(java.io.IOException) Manifest(java.util.jar.Manifest) MManifest(org.obeonetwork.dsl.manifest.MManifest) TableColumn(org.eclipse.swt.widgets.TableColumn) ComboViewer(org.eclipse.jface.viewers.ComboViewer) GridData(org.eclipse.swt.layout.GridData) ArrayContentProvider(org.eclipse.jface.viewers.ArrayContentProvider) FileDialog(org.eclipse.swt.widgets.FileDialog) File(java.io.File) TableViewer(org.eclipse.jface.viewers.TableViewer)

Example 89 with TableColumnLayout

use of org.eclipse.jface.layout.TableColumnLayout in project InformationSystem by ObeoNetwork.

the class ReferencingElementsDialog method createDialogArea.

/**
 * Create contents of the dialog.
 * @param parent
 */
@Override
protected Control createDialogArea(Composite parent) {
    Composite container = (Composite) super.createDialogArea(parent);
    container.setLayout(new GridLayout(1, false));
    Label lblInfo = new Label(container, SWT.NONE);
    lblInfo.setText("There are some references to elements which will be deleted.\r\nClick \"OK\" to continue : references will be invalidated.");
    Composite composite = new Composite(container, SWT.NONE);
    composite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));
    TableColumnLayout tcl_composite = new TableColumnLayout();
    composite.setLayout(tcl_composite);
    TableViewer tableViewer = new TableViewer(composite, SWT.BORDER | SWT.FULL_SELECTION | SWT.HIDE_SELECTION);
    tableViewer.setUseHashlookup(true);
    table = tableViewer.getTable();
    table.setHeaderVisible(true);
    table.setLinesVisible(true);
    TableViewerColumn tableViewerColumn = new TableViewerColumn(tableViewer, SWT.NONE);
    TableColumn tblclmnReferencingElement = tableViewerColumn.getColumn();
    tcl_composite.setColumnData(tblclmnReferencingElement, new ColumnWeightData(1, true));
    tblclmnReferencingElement.setText("Referencing element");
    TableViewerColumn tableViewerColumn_1 = new TableViewerColumn(tableViewer, SWT.NONE);
    TableColumn tblclmnReferencingFeature = tableViewerColumn_1.getColumn();
    tcl_composite.setColumnData(tblclmnReferencingFeature, new ColumnWeightData(1, true));
    tblclmnReferencingFeature.setText("Referencing feature");
    TableViewerColumn tableViewerColumn_2 = new TableViewerColumn(tableViewer, SWT.NONE);
    TableColumn tblclmnReferencedElement = tableViewerColumn_2.getColumn();
    tcl_composite.setColumnData(tblclmnReferencedElement, new ColumnWeightData(1, true));
    tblclmnReferencedElement.setText("Referenced element");
    tableViewer.setLabelProvider(new ReferenceDataLabelProvider());
    tableViewer.setContentProvider(new ArrayContentProvider());
    tableViewer.setInput(referencesData);
    return container;
}
Also used : ColumnWeightData(org.eclipse.jface.viewers.ColumnWeightData) GridLayout(org.eclipse.swt.layout.GridLayout) Composite(org.eclipse.swt.widgets.Composite) TableColumnLayout(org.eclipse.jface.layout.TableColumnLayout) Label(org.eclipse.swt.widgets.Label) GridData(org.eclipse.swt.layout.GridData) ArrayContentProvider(org.eclipse.jface.viewers.ArrayContentProvider) TableViewer(org.eclipse.jface.viewers.TableViewer) TableColumn(org.eclipse.swt.widgets.TableColumn) TableViewerColumn(org.eclipse.jface.viewers.TableViewerColumn)

Example 90 with TableColumnLayout

use of org.eclipse.jface.layout.TableColumnLayout in project portfolio by buchen.

the class CSVImportDefinitionPage method doProcessFile.

private void doProcessFile() {
    try {
        importer.processFile();
        tableViewer.getTable().setRedraw(false);
        for (TableColumn column : tableViewer.getTable().getColumns()) column.dispose();
        TableColumnLayout layout = (TableColumnLayout) tableViewer.getTable().getParent().getLayout();
        for (Column column : importer.getColumns()) {
            TableColumn tableColumn = new TableColumn(tableViewer.getTable(), SWT.None);
            layout.setColumnData(tableColumn, new ColumnPixelData(80, true));
            setColumnLabel(tableColumn, column);
        }
        List<Object> input = new ArrayList<>();
        input.add(importer);
        input.addAll(importer.getRawValues());
        tableViewer.setInput(input);
        tableViewer.refresh();
        tableViewer.getTable().pack();
        for (TableColumn column : tableViewer.getTable().getColumns()) column.pack();
        doUpdateErrorMessages();
    } catch (IOException e) {
        PortfolioPlugin.log(e);
        ErrorDialog.openError(getShell(), Messages.LabelError, e.getMessage(), new Status(Status.ERROR, PortfolioPlugin.PLUGIN_ID, e.getMessage(), e));
    } finally {
        tableViewer.getTable().setRedraw(true);
    }
}
Also used : Status(org.eclipse.core.runtime.Status) TableColumnLayout(org.eclipse.jface.layout.TableColumnLayout) TableColumn(org.eclipse.swt.widgets.TableColumn) TableViewerColumn(org.eclipse.jface.viewers.TableViewerColumn) Column(name.abuchen.portfolio.datatransfer.csv.CSVImporter.Column) ColumnPixelData(org.eclipse.jface.viewers.ColumnPixelData) ArrayList(java.util.ArrayList) IOException(java.io.IOException) TableColumn(org.eclipse.swt.widgets.TableColumn)

Aggregations

TableColumnLayout (org.eclipse.jface.layout.TableColumnLayout)105 Composite (org.eclipse.swt.widgets.Composite)94 TableViewer (org.eclipse.jface.viewers.TableViewer)78 TableViewerColumn (org.eclipse.jface.viewers.TableViewerColumn)62 ColumnWeightData (org.eclipse.jface.viewers.ColumnWeightData)51 GridData (org.eclipse.swt.layout.GridData)46 ColumnLabelProvider (org.eclipse.jface.viewers.ColumnLabelProvider)44 Table (org.eclipse.swt.widgets.Table)38 GridLayout (org.eclipse.swt.layout.GridLayout)34 IStructuredSelection (org.eclipse.jface.viewers.IStructuredSelection)31 Image (org.eclipse.swt.graphics.Image)28 Label (org.eclipse.swt.widgets.Label)27 Viewer (org.eclipse.jface.viewers.Viewer)25 SelectionChangedEvent (org.eclipse.jface.viewers.SelectionChangedEvent)23 ISelectionChangedListener (org.eclipse.jface.viewers.ISelectionChangedListener)22 SelectionEvent (org.eclipse.swt.events.SelectionEvent)22 Button (org.eclipse.swt.widgets.Button)21 ViewerComparator (org.eclipse.jface.viewers.ViewerComparator)18 TableColumn (org.eclipse.swt.widgets.TableColumn)18 SelectionAdapter (org.eclipse.swt.events.SelectionAdapter)17