/** * * @param selectionComposite * @param layout */ private void attachTableButtonListner(final ELTSubGroupCompositeWithStack selectionComposite, final StackLayout layout) { final Button tableRadioBtn = (Button) tableNameRadioButton.getSWTWidgetControl(); tableRadioBtn.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { if (tableRadioBtn.getSelection()) { unRegisterTableOrSQLQueryTextListner(); layout.topControl = tableComposite.getContainerControl(); selectionComposite.getContainerControl().layout(); if (databaseSelectionConfig != null) { databaseSelectionConfig.setTableNameSelection(true); databaseSelectionConfig.setTableName(textBoxTableName.getText()); populateWidget(); } showHideErrorSymbol(widgets); propertyDialogButtonBar.enableApplyButton(true); } } }); }
/** * * @param selectionComposite * @param layout */ private void attachSQLQueryListner(final ELTSubGroupCompositeWithStack selectionComposite, final StackLayout layout) { final Button sqlRadioBtn = (Button) sqlQueryRadioButton.getSWTWidgetControl(); sqlRadioBtn.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { if (sqlRadioBtn.getSelection()) { unRegisterTableOrSQLQueryTextListner(); layout.topControl = sqlQueryComposite.getContainerControl(); selectionComposite.getContainerControl().layout(); if (databaseSelectionConfig != null) { databaseSelectionConfig.setTableNameSelection(false); databaseSelectionConfig.setSqlQuery(sqlQueryTextBox.getText()); //databaseSelectionConfig.setSqlQueryCounter(sqlQueryCountertextbox.getText()); populateWidget(); } showHideErrorSymbol(widgets); propertyDialogButtonBar.enableApplyButton(true); } } }); }
@Test public void testCorrectPanelIsShownForFacetedProject() { DeployPropertyPage page = new DeployPropertyPage(loginService, googleApiFactory); Shell parent = shellTestResource.getShell(); page.setElement(getProject()); page.createControl(parent); page.setVisible(true); Composite preferencePageComposite = (Composite) parent.getChildren()[0]; for (Control control : preferencePageComposite.getChildren()) { if (control instanceof Composite) { Composite maybeDeployPageComposite = (Composite) control; Layout layout = maybeDeployPageComposite.getLayout(); if (layout instanceof StackLayout) { StackLayout stackLayout = (StackLayout) layout; assertThat(stackLayout.topControl, instanceOf(getPanelClass())); return; } } } fail("Did not find the deploy preferences panel"); }
@Override protected Control createContents(Composite parent) { container = new Composite(parent, SWT.NONE); stackLayout = new StackLayout(); container.setLayout(stackLayout); IProject project = AdapterUtil.adapt(getElement(), IProject.class); try { facetedProject = ProjectFacetsManager.create(project); } catch (CoreException ex) { logger.log(Level.WARNING, ex.getMessage()); return container; } GridDataFactory.fillDefaults().grab(true, true).applyTo(container); return container; }
private void initCardPanel(final Composite composite) { cardPanel = new Composite(composite, SWT.NONE); stackLayout = new StackLayout(); stackLayout.marginHeight = 0; stackLayout.marginWidth = 0; cardPanel.setLayout(stackLayout); final GridData gridData = new GridData(); gridData.grabExcessHorizontalSpace = true; gridData.horizontalAlignment = GridData.FILL; gridData.horizontalSpan = 2; gridData.horizontalIndent = 0; gridData.verticalIndent = 0; cardPanel.setLayoutData(gridData); initNonePanel(); initTemplatePanel(); initForeignKeyPanel(); initEnumPanel(); }
private void initCardPanel(Composite composite) { this.cardPanel = new Composite(composite, SWT.NONE); this.stackLayout = new StackLayout(); this.stackLayout.marginHeight = 0; this.stackLayout.marginWidth = 0; this.cardPanel.setLayout(this.stackLayout); GridData gridData = new GridData(); gridData.grabExcessHorizontalSpace = true; gridData.horizontalAlignment = GridData.FILL; gridData.horizontalSpan = 2; gridData.horizontalIndent = 0; gridData.verticalIndent = 0; this.cardPanel.setLayoutData(gridData); this.initNonePanel(); this.initTemplatePanel(); this.initForeignKeyPanel(); this.initEnumPanel(); }
/** Create fields controlling converter selection */ @Override public void createFieldEditors() { Composite parent = getFieldEditorParent(); base = SwtUtil.makeGroupComposite(parent, 3, 1, "Conversion filter selection"); // Converter selection combo = new ConverterSelectFieldEditor(EDITOR_MD_CONVERTER, "Converter:", converters, base); addField(combo); stack = SwtUtil.makeCompositeStack(parent, 3, 1); stackSel = (StackLayout) stack.getLayout(); // stacked options pandoc = new ConverterPandocOps(this, stack, "Pandoc Options"); bfriday = new ConverterBlackFridayOps(this, stack, "BlackFriday Options"); txtmark = new ConverterTxtmarkOps(this, stack, "TxtMark Options"); external = new ConverterExternalOps(this, stack, "External Options"); other = new ConverterNullOps(this, stack, "Default Options"); // rest dotgen = new ConverterDotOps(this, parent, "Graphviz Options"); // Converter option selection updateOptionsBlock(stack, getPreferenceStore().getString(EDITOR_MD_CONVERTER)); }
/** * The default constructor. * * @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 PlotComposite(Composite parent, int style) { super(parent, style); plottedSeries = new HashSet<ISeries>(); // Configure the Composite settings. setFont(parent.getFont()); setBackground(parent.getBackground()); setLayout(new StackLayout()); // Load the plot actions and context Menu. plotActions = getPlotActions(); contextMenu = createContextMenu(this); return; }
@Override protected ISourceViewer createSourceViewer(Composite parent, IVerticalRuler ruler, int styles) { Composite composite = new Composite(parent, SWT.NONE); GridLayout compositeLayout = new GridLayout(1, false); compositeLayout.marginHeight = 0; compositeLayout.marginWidth = 0; compositeLayout.horizontalSpacing = 0; compositeLayout.verticalSpacing = 0; composite.setLayout(compositeLayout); topPanel = new Composite(composite, SWT.NONE); topPanel.setLayout(new StackLayout()); topPanel.setLayoutData(new GridData(SWT.FILL, SWT.TOP, true, false)); Composite editorComposite = new Composite(composite, SWT.NONE); editorComposite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true)); FillLayout fillLayout = new FillLayout(SWT.VERTICAL); fillLayout.marginHeight = 0; fillLayout.marginWidth = 0; fillLayout.spacing = 0; editorComposite.setLayout(fillLayout); ISourceViewer result = doCreateSourceViewer(editorComposite, ruler, styles); return result; }
public void createDataset(Composite composite) { sComposite = new Composite(composite, SWT.NONE); stacklayout = new StackLayout(); sComposite.setLayout(stacklayout); sComposite.setLayoutData(new GridData(GridData.FILL_BOTH)); map.put(JRDesignCategoryDataset.class, new DSCategory(sComposite, this)); map.put(JRDesignGanttDataset.class, new DSGantt(sComposite, this)); map.put(JRDesignHighLowDataset.class, new DSHighLow(sComposite, this)); map.put(JRDesignPieDataset.class, new DSPie(sComposite, this)); map.put(JRDesignTimePeriodDataset.class, new DSTimePeriod(sComposite, this)); map.put(JRDesignTimeSeriesDataset.class, new DSTimeSeries(sComposite, this)); map.put(JRDesignValueDataset.class, new DSValue(sComposite, this)); map.put(JRDesignXyDataset.class, new DSXy(sComposite, this)); map.put(JRDesignXyzDataset.class, new DSXyz(sComposite, this)); // here we can add other datasources ... map.put(StandardSpiderDataset.class, new DSSpider(sComposite, this)); stacklayout.topControl = map.get(JRDesignCategoryDataset.class) .getControl(); }
public TFContainer(Composite parent, int style) { super(parent, style); GridLayout layout = new GridLayout(2,false); layout.marginHeight = 0; layout.marginWidth = 0; layout.verticalSpacing = 0; setLayout(layout); toolBar = new ToolBar(this, SWT.HORIZONTAL | SWT.FLAT | SWT.WRAP | SWT.RIGHT); additionalToolbar = new ToolBar(this, SWT.HORIZONTAL | SWT.FLAT | SWT.WRAP | SWT.RIGHT); GridData additionalToolbarGD = new GridData(SWT.RIGHT, SWT.CENTER, true, false); additionalToolbar.setLayoutData(additionalToolbarGD); additionalToolbarManager = new ToolBarManager(additionalToolbar); content = new Composite(this, SWT.NONE); stackLayout = new StackLayout(); stackLayout.marginWidth = 0; stackLayout.marginHeight = 0; content.setLayout(stackLayout); content.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 2, 1)); }
@Override public void createPartControl(Composite parent) { fParent= new Composite(parent, SWT.NONE); fStackLayout= new StackLayout(); fParent.setLayout(fStackLayout); fViewerComposite= new Composite(fParent, SWT.NONE); fViewerComposite.setLayout(new FillLayout()); super.createPartControl(fViewerComposite); fStackLayout.topControl= fViewerComposite; fParent.layout(); try { verifyInput(getEditorInput()); } catch (CoreException e) { String title= JavaEditorMessages.ClassFileEditor_error_title; String message= JavaEditorMessages.ClassFileEditor_error_message; ExceptionHandler.handle(e, fParent.getShell(), title, message); } }
@Override public void performUpdate() { // TODO Auto-generated method stub //if (this.softwareService == data.getSoftwareService()) return; Overview overviewModel = data.getOverviewModel(); this.softwareService = data.getSoftwareService(); System.out.println("Model: "+overviewModel.getArchitecture().getCloudEnvironments().get(0).getSoftwareLayer().getServices().get(0).getName()); System.out.println("Software Service: "+this.softwareService.getName()); if (softwareService.getRequiredInterfaces().isEmpty()) { ((StackLayout)container.getLayout()).topControl = emptyComposite; checkComplete(); } else { ((StackLayout)container.getLayout()).topControl = mainComposite; initBindings(); createServiceComponent(); checkComplete(); } container.layout(); container.redraw(); }
private void updateServiceComopsite() { StackLayout layout = (StackLayout)stackedComposite.getLayout(); if (rbIaaS.getSelection()) { layout.topControl = cIaaS; } if (rbPaaS.getSelection()) { layout.topControl = cPaaS; } if (rbSaaS.getSelection()) { layout.topControl = cSaaS; } if (rbExternal.getSelection()) { layout.topControl = cExternal; } stackedComposite.layout(); updateDeploymentComposite(); }
@Override public Composite createDataDragSource( Composite parent ) { cmpStack = new Composite( parent, SWT.NONE ); cmpStack.setLayoutData( new GridData( GridData.FILL_BOTH ) ); stackLayout = new StackLayout( ); stackLayout.marginHeight = 0; stackLayout.marginWidth = 0; cmpStack.setLayout( stackLayout ); cmpCubeTree = this.createTreeViewComposite( cmpStack ); cmpDataPreview = this.createTableViewComposite( cmpStack ); cmpColumnsList = this.createColumnListViewComposite( cmpStack ); updateDragDataSource( ); return cmpStack; }
final protected void reLayoutSubPages( String customCategoryName ) { String category = formatAdapter.getCategory4DisplayName( typeChoicer.getText( ) ); Control control = categoryPageMaps.get( category ); ( (StackLayout) infoComp.getLayout( ) ).topControl = control; infoComp.layout( ); if ( formatCodeComp != null ) { if ( category.equals( customCategoryName ) ) { ( (StackLayout) formatCodeComp.getLayout( ) ).topControl = createHorizontalCustomFormatCodePage( formatCodeComp ); } else { ( (StackLayout) formatCodeComp.getLayout( ) ).topControl = createHorizontalGeneralFormatCodePage( formatCodeComp ); } formatCodeComp.layout( ); } }
void run() { if( adapter.getParent() != null ) { if( adapter.getParent().getLayout() instanceof StackLayout ) { reconcileStackLayout(); } if( adapter.getParent() instanceof ViewForm ) { reconcileViewFormLayout(); } if( adapter.getParent().getClass().getName().equals( "org.eclipse.ui.part.PageBook" ) ) { reconcilePageBookLayout(); } if( adapter.getParent() instanceof SashForm ) { reconcileSashLayout(); } if( adapter.getParent() instanceof CTabFolder ) { reconcileCTabFolder(); } } }
private void layoutTestRunnerOptions(final StackLayout stackLayout, final int val, final Composite contentPanel) { switch (val) { case TEST_RUNNER_PYDEV: stackLayout.topControl = parentPyDev; break; case TEST_RUNNER_PY_TEST: stackLayout.topControl = parentPyTest; break; case TEST_RUNNER_NOSE: stackLayout.topControl = parentNose; break; } contentPanel.layout(); }
@PostConstruct public void createComposite(Composite parent){ mainParent = parent; mainLayout = new StackLayout(); mainParent.setLayout(mainLayout); defaultComposite = new Composite(mainParent, SWT.NONE); defaultComposite.setLayout(new GridLayout(1, false)); Label lblDefaultInfo = new Label(defaultComposite, SWT.NONE); lblDefaultInfo.setText("No properties to display at this time."); currentComposite = defaultComposite; mainLayout.topControl = currentComposite; }
/** * Creates the Settings container as well as a blank default Composite to * show whenever there are no Settings for the active editor. * * @param parent */ @PostConstruct public void postConstruct(Composite parent) { mainParent = parent; mainLayout = new StackLayout(); mainParent.setLayout(mainLayout); defaultComposite = new Composite(parent, SWT.BORDER); defaultComposite.setLayout(new GridLayout(1, false)); Label lblDefaultInfo = new Label(defaultComposite, SWT.NONE); lblDefaultInfo.setText("No editor settings available."); currentComposite = defaultComposite; mainLayout.topControl = currentComposite; }
@Override public void createPartControl(Composite parent) { layout = new StackLayout(); parent.setLayout(layout); treeViewer = new TreeViewer(parent); treeViewer.setContentProvider(new AdapterFactoryContentProvider(adapterFactory)); treeViewer.setLabelProvider(new AdapterFactoryLabelProvider(adapterFactory)); new AdapterFactoryTreeEditor(treeViewer.getTree(), adapterFactory); textViewer = new TextViewer(parent, SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL); layout.topControl = treeViewer.getControl(); makeActions(); contributeToActionBars(); }
/** * Creates a new instance. * * @param controller * @param parent * @param child * @param provider */ public ComponentStatus(Controller controller, Composite parent, Control child, ComponentStatusLabelProgressProvider progressProvider){ this.child = child; this.parent = parent; this.controller = controller; if (parent.getLayout() == null || !(parent.getLayout() instanceof StackLayout)) { throw new RuntimeException("Parent must have a StackLayout"); //$NON-NLS-1$ } this.layout = (StackLayout)parent.getLayout(); this.working = getWorkingComposite(parent, progressProvider); this.empty = getEmptyComposite(parent); this.layout.topControl = child; this.parent.layout(true); }
@Override public void createControl(Composite parent) { parent.setLayout(new GridLayout(1, false)); buttonGroup = new Composite(parent, SWT.NONE); buttonGroup.setLayoutData(new GridData(SWT.FILL, SWT.TOP, true, false)); createTypeButtons(buttonGroup); contentGroup = new Composite(parent, SWT.NONE); contentGroup.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true)); contentGroup.setLayout(new StackLayout()); createNoneGroup(contentGroup); createBooleanGroup(contentGroup); createStringGroup(contentGroup); createNumberGroup(contentGroup); createDatabaseGroup(contentGroup); createNullGroup(contentGroup); }
@Override protected void createContents(Composite comp) { createWasteCheck(comp); createRefFlowCheck(comp); flowText = UI.formText(comp, M.QuantitativeReference); createLabelStack(comp); contentStack = new Composite(comp, SWT.NONE); UI.gridData(contentStack, true, true).heightHint = 200; contentStack.setLayout(new StackLayout()); createFlowTree(); createPropertyViewer(); ((StackLayout) labelStack.getLayout()).topControl = selectProductLabel; ((StackLayout) contentStack.getLayout()).topControl = productTreeContainer; labelStack.layout(); contentStack.layout(); if (refFlow != null) { FlowDescriptor d = Descriptors.toDescriptor(refFlow); INavigationElement<?> e = Navigator.findElement(d); ISelection s = new StructuredSelection(e); flowTree.setSelection(s, true); String name = refFlow.getName() != null ? refFlow.getName() : ""; nameText.setText(name); checkInput(); } }
private void createRefFlowCheck(Composite comp) { UI.filler(comp); createRefFlowCheck = new Button(comp, SWT.CHECK); createRefFlowCheck.setText(M.CreateANewFlowForTheProcess); Controls.onSelect(createRefFlowCheck, e -> { boolean createFlow = createRefFlowCheck.getSelection(); StackLayout labelLayout = (StackLayout) labelStack.getLayout(); StackLayout contentLayout = (StackLayout) contentStack .getLayout(); if (createFlow) { labelLayout.topControl = selectFlowPropertyLabel; contentLayout.topControl = flowPropertyContainer; } else { labelLayout.topControl = selectProductLabel; contentLayout.topControl = productTreeContainer; } labelStack.layout(); contentStack.layout(); checkInput(); }); }
@Override public void createControl(Composite parent) { Composite body = new Composite(parent, SWT.NULL); UI.gridLayout(body, 2, 10, 10); setControl(body); createSelections(body); new Label(body, SWT.NONE); UI.gridData(new Label(body, SWT.SEPARATOR | SWT.HORIZONTAL), true, false); new Label(body, SWT.NONE); optionStack = new Composite(body, SWT.NULL); StackLayout optionsLayout = new StackLayout(); optionStack.setLayout(optionsLayout); createMonteCarloOptions(optionStack); createCommonOptions(optionStack); optionsLayout.topControl = commonOptions; new Label(body, SWT.NONE); loadDefaults(); }
@Override public void createPartControl(final Composite parent) { form = tk.createForm(parent); form.setLayoutData(SWTHelper.getFillGridData(1, true, 1, true)); Composite body = form.getBody(); body.setLayout(new FillLayout()); inlay = new Composite(body, SWT.BORDER); // inlay.setForeground(Desk.theColorRegistry.get(UiDesk.COL_LIGHTBLUE)); stack = new StackLayout(); inlay.setLayout(stack); dispAll = new AllSlotsDisplay(this, inlay); dispRow = new RowDisplay(this, inlay); tmd = new TimeMachineDisplay(this, inlay); trackers = new Tracker[12][]; outer = parent; date = new TimeTool().toString(TimeTool.DATE_COMPACT); makeActions(); ViewMenus menu = new ViewMenus(getViewSite()); menu.createMenu(restoreAction); menu.createToolbar(selectDateAction); setTopControl(dispAll); GlobalEventDispatcher.getInstance().addActivationListener(this, this); eeli_pat.catchElexisEvent(ElexisEvent.createPatientEvent()); }
/** * TODO: Comment. * * @return */ private byte[] getZnodeData() throws Exception { Composite dataStackComposite = (Composite) getControl(CONTROL_NAME_DATA_STACK_COMPOSITE); ZnodeDataGridComposite znodeDataGridComposite = (ZnodeDataGridComposite) ((StackLayout) dataStackComposite .getLayout()).topControl; return znodeDataGridComposite.getZnodeData(); }
@Override public void widgetSelected(SelectionEvent e) { Control composite = getControl(_DataCompositeName); Composite dataStackComposite = (Composite) getControl(CONTROL_NAME_DATA_STACK_COMPOSITE); ((StackLayout) dataStackComposite.getLayout()).topControl = composite; dataStackComposite.layout(); modified(composite); }
/** * Create composite with stack layout * @param layout */ public void createStackContainerWidget(StackLayout layout){ composite = new Composite(inputContainer, SWT.NONE); composite.setLayout(layout); super.outputContainer = composite; }
/** * 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)); getShell().setText(title); SashForm mainSashForm = new SashForm(container, SWT.BORDER); mainSashForm.setSashWidth(2); mainSashForm.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1)); createAvailableFieldTable(mainSashForm); Composite filterLogicMainComposite = new Composite(mainSashForm, SWT.NONE); filterLogicMainComposite.setLayout(new GridLayout(1, false)); SashForm filterLogicSashForm = new SashForm(filterLogicMainComposite, SWT.VERTICAL); filterLogicSashForm.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1)); filterLogicInnerComposite = new Composite(filterLogicSashForm, SWT.BORDER); filterLogicInnerCompositeLayout = new StackLayout(); filterLogicInnerComposite.setLayout(filterLogicInnerCompositeLayout); createExpressionOrOperationComposite(filterLogicInnerComposite); createErrorLogsTable(filterLogicSashForm); filterLogicSashForm.setWeights(new int[] {3, 1}); mainSashForm.setWeights(new int[] {1, 2}); return container; }
/** * * @param parent * @param isIndeterminate * @param useInputButton determines whether the <code>inputButton</code> is available or not * @param image an <code>Image</code> to display; may be null */ public AZProgressBar(Composite parent, boolean isIndeterminate) { super(parent, SWT.NULL); incrementalProgressBar = new ProgressBar(this, SWT.HORIZONTAL); indeterminateProgressBar = new ProgressBar(this, SWT.HORIZONTAL | SWT.INDETERMINATE); stack = new StackLayout(); setLayout(stack); pack(); setIndeterminate(isIndeterminate); }
private InvocationWidget(Composite parent) { super(parent, SWT.NONE); layout = new StackLayout(); setLayout(layout); invWidgetsMap = new WeakHashMap<>(); setBackground(ColorConstants.blue); }
public InvocationArea(Composite parent) { super(parent, SWT.NONE); layout = new StackLayout(); setLayout(layout); blank = createFileModifiedView(); layout.topControl = blank; invWidgetsMap = new WeakHashMap<>(); }
public void setupStackLayout(final StackLayout stackLayout) { if (DEBUG_MARGINS_ENABLED) { if (stackLayout.marginWidth == 0) { stackLayout.marginWidth = 5; } if (stackLayout.marginHeight == 0) { stackLayout.marginHeight = 5; } } }
public FieldControlFieldChangeListener( final StackLayout stackLayout, final Text textControl, final Combo comboControl, final String modifyListenerWidgetDataKey, final boolean formReadOnly) { this.stackLayout = stackLayout; this.textControl = textControl; this.comboControl = comboControl; this.modifyListenerWidgetDataKey = modifyListenerWidgetDataKey; this.formReadOnly = formReadOnly; }
private Composite createContent(final Composite parent) { contentArea = new Composite(parent, SWT.NONE); contentAreaStackLayout = new StackLayout(); contentArea.setLayout(contentAreaStackLayout); sourceFilesCheckinControl = new SourceFilesCheckinControl(contentArea, SWT.NONE, options); workItemsCheckinControl = new WorkItemsCheckinControl(contentArea, SWT.NONE, options); notesCheckinControl = new NotesCheckinControl(contentArea, SWT.NONE, options); policyWarningsCheckinControl = new PolicyWarningsCheckinControl(contentArea, SWT.NONE, options, this); offlineCheckinControl = new OfflineCheckinControl(contentArea, SWT.NONE, options); connectionFailureCheckinControl = new ConnectionFailureCheckinControl(contentArea, SWT.NONE, options); return contentArea; }
public DataProviderOutputControl(final Composite parent, final int style) { super(parent, style); stackLayout = new StackLayout(); setLayout(stackLayout); tableViewer = new TableViewer(this, SWT.FULL_SELECTION | SWT.BORDER | SWT.MULTI); text = new Text(this, SWT.BORDER | SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL | SWT.READ_ONLY); tableViewer.setContentProvider(new ContentProvider()); tableViewer.setLabelProvider(new LabelProvider()); tableViewer.getTable().setHeaderVisible(true); tableViewer.getTable().setLinesVisible(true); addActions(); tableViewer.addDoubleClickListener(new IDoubleClickListener() { @Override public void doubleClick(final DoubleClickEvent event) { final DataProviderActionInfo action = dataProvider.getDataProviderInfo().getDefaultAction(); if (action != null) { final Row row = (Row) ((IStructuredSelection) tableViewer.getSelection()).getFirstElement(); action.getAction().run(getShell(), row.getTag()); } } }); }