/** * Creates a new <code>OpenEditorActionGroup</code>. The group requires that the selection * provided by the given selection provider is of type {@link IStructuredSelection}. * * @param site the site that will own the action group. * @param specialSelectionProvider the selection provider used instead of the site's selection * provider. */ public OpenEditorActionGroup( IWorkbenchPartSite site, ISelectionProvider specialSelectionProvider) { fSite = site; fOpen = new OpenAction(fSite); fOpen.setActionDefinitionId(DartEditorActionDefinitionIds.OPEN_EDITOR); fSelectionProvider = specialSelectionProvider == null ? fSite.getSelectionProvider() : specialSelectionProvider; initialize(); if (specialSelectionProvider != null) { fOpen.setSpecialSelectionProvider(specialSelectionProvider); } }