org.eclipse.ui.navigator.ICommonActionExtensionSite Java Examples
The following examples show how to use
org.eclipse.ui.navigator.ICommonActionExtensionSite.
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: RemoteConnectionActionProvider.java From codewind-eclipse with Eclipse Public License 2.0 | 6 votes |
@Override public void init(ICommonActionExtensionSite aSite) { super.init(aSite); selProvider = aSite.getStructuredViewer(); newProjectAction = new NewProjectAction(selProvider); bindAction = new BindAction(selProvider); manageRegistriesAction = new ManageRegistriesAction(selProvider); manageReposAction = new ManageReposAction(selProvider); connectDisconnectAction = new ConnectDisconnectAction(selProvider); editConnectionAction = new EditConnectionAction(selProvider); removeConnectionAction = new RemoveConnectionAction(selProvider); remoteDoubleClickAction = new RemoteDoubleClickAction(selProvider); openTektonDashboardAction = new OpenTektonDashboardAction(selProvider); logLevelAction = new LogLevelAction(selProvider); diagnosticsAction = new DiagnosticsAction(selProvider); }
Example #2
Source File: WorkingSetActionProvider.java From tmxeditor8 with GNU General Public License v2.0 | 6 votes |
public void init(ICommonActionExtensionSite aSite) { viewer = (CommonViewer) aSite.getStructuredViewer(); contentService = aSite.getContentService(); filterService = (NavigatorFilterService) contentService.getFilterService(); extensionStateModel = contentService.findStateModel(WorkingSetsContentProvider.EXTENSION_ID); workingSetActionGroup = new WorkingSetFilterActionGroup(aSite.getViewSite().getShell(), filterChangeListener); workingSetRootModeActionGroup = new WorkingSetRootModeActionGroup(viewer, extensionStateModel); topLevelModeListener = new IPropertyChangeListener() { public void propertyChange(PropertyChangeEvent event) { setWorkingSet(workingSet); viewer.getFrameList().reset(); } }; if (contentService.isActive(WorkingSetsContentProvider.EXTENSION_ID)) { managerChangeListener.listen(); extensionStateModel.addPropertyChangeListener(topLevelModeListener); } contentService.getActivationService().addExtensionActivationListener(activationListener); }
Example #3
Source File: PortingActionProvider.java From tmxeditor8 with GNU General Public License v2.0 | 6 votes |
public void init(ICommonActionExtensionSite anExtensionSite) { Assert.isTrue(!disposed); if (anExtensionSite.getViewSite() instanceof ICommonViewerWorkbenchSite) { IWorkbenchWindow window = ((ICommonViewerWorkbenchSite) anExtensionSite .getViewSite()).getWorkbenchWindow(); importAction = new ImportResourcesAction(window); importAction.setText(WorkbenchNavigatorMessages.PortingActionProvider_ImportResourcesMenu_label); exportAction = new ExportResourcesAction(window); exportAction.setText(WorkbenchNavigatorMessages.PortingActionProvider_ExportResourcesMenu_label); importWizardActionGroup = new WizardActionGroup(window, PlatformUI .getWorkbench().getImportWizardRegistry(), WizardActionGroup.TYPE_IMPORT, anExtensionSite.getContentService()); exportWizardActionGroup = new WizardActionGroup(window, PlatformUI .getWorkbench().getExportWizardRegistry(), WizardActionGroup.TYPE_EXPORT, anExtensionSite.getContentService()); contribute = true; } }
Example #4
Source File: WorkingSetActionProvider.java From translationstudio8 with GNU General Public License v2.0 | 6 votes |
public void init(ICommonActionExtensionSite aSite) { viewer = (CommonViewer) aSite.getStructuredViewer(); contentService = aSite.getContentService(); filterService = (NavigatorFilterService) contentService.getFilterService(); extensionStateModel = contentService.findStateModel(WorkingSetsContentProvider.EXTENSION_ID); workingSetActionGroup = new WorkingSetFilterActionGroup(aSite.getViewSite().getShell(), filterChangeListener); workingSetRootModeActionGroup = new WorkingSetRootModeActionGroup(viewer, extensionStateModel); topLevelModeListener = new IPropertyChangeListener() { public void propertyChange(PropertyChangeEvent event) { setWorkingSet(workingSet); viewer.getFrameList().reset(); } }; if (contentService.isActive(WorkingSetsContentProvider.EXTENSION_ID)) { managerChangeListener.listen(); extensionStateModel.addPropertyChangeListener(topLevelModeListener); } contentService.getActivationService().addExtensionActivationListener(activationListener); }
Example #5
Source File: PortingActionProvider.java From translationstudio8 with GNU General Public License v2.0 | 6 votes |
public void init(ICommonActionExtensionSite anExtensionSite) { Assert.isTrue(!disposed); if (anExtensionSite.getViewSite() instanceof ICommonViewerWorkbenchSite) { IWorkbenchWindow window = ((ICommonViewerWorkbenchSite) anExtensionSite .getViewSite()).getWorkbenchWindow(); importAction = new ImportResourcesAction(window); importAction.setText(WorkbenchNavigatorMessages.PortingActionProvider_ImportResourcesMenu_label); exportAction = new ExportResourcesAction(window); exportAction.setText(WorkbenchNavigatorMessages.PortingActionProvider_ExportResourcesMenu_label); importWizardActionGroup = new WizardActionGroup(window, PlatformUI .getWorkbench().getImportWizardRegistry(), WizardActionGroup.TYPE_IMPORT, anExtensionSite.getContentService()); exportWizardActionGroup = new WizardActionGroup(window, PlatformUI .getWorkbench().getExportWizardRegistry(), WizardActionGroup.TYPE_EXPORT, anExtensionSite.getContentService()); contribute = true; } }
Example #6
Source File: CommonActionProvider.java From neoscada with Eclipse Public License 1.0 | 6 votes |
@Override public void init ( final ICommonActionExtensionSite aSite ) { super.init ( aSite ); final ICommonViewerSite viewSite = aSite.getViewSite (); if ( viewSite instanceof ICommonViewerWorkbenchSite ) { final ICommonViewerWorkbenchSite workbenchSite = (ICommonViewerWorkbenchSite)viewSite; this.openAction = new Action ( "Open", IAction.AS_PUSH_BUTTON ) { @Override public void run () { handleOpen ( workbenchSite ); } }; } }
Example #7
Source File: CommonActionProvider.java From neoscada with Eclipse Public License 1.0 | 6 votes |
@Override public void init ( final ICommonActionExtensionSite aSite ) { super.init ( aSite ); final ICommonViewerSite viewSite = aSite.getViewSite (); if ( viewSite instanceof ICommonViewerWorkbenchSite ) { final ICommonViewerWorkbenchSite workbenchSite = (ICommonViewerWorkbenchSite)viewSite; this.openAction = new Action ( "Open", IAction.AS_PUSH_BUTTON ) { @Override public void run () { EditorHelper.handleOpen ( workbenchSite.getPage (), workbenchSite.getSelectionProvider () ); } }; } }
Example #8
Source File: CodewindApplicationActionProvider.java From codewind-eclipse with Eclipse Public License 2.0 | 6 votes |
@Override public void init(ICommonActionExtensionSite aSite) { super.init(aSite); selProvider = aSite.getStructuredViewer(); // validateAction = new ValidateAction(selProvider); restartRunAction = new RestartRunModeAction(selProvider); restartDebugAction = new RestartDebugModeAction(selProvider); attachDebuggerAction = new AttachDebuggerAction(selProvider); openAppMonitorAction = new OpenAppMonitorAction(selProvider); openPerfMonitorAction = new OpenPerfMonitorAction(selProvider); containerShellAction = new ContainerShellAction(selProvider); enableDisableAutoBuildAction = new EnableDisableAutoBuildAction(selProvider); enableDisableInjectMetricsAction = new EnableDisableInjectMetricsAction(selProvider); enableDisableProjectAction = new EnableDisableProjectAction(selProvider); unbindProjectAction = new UnbindProjectAction(selProvider); openAppAction = new OpenAppAction(selProvider); openAppOverviewAction = new OpenAppOverviewAction(selProvider); showAllLogsAction = new ShowAllLogsAction(); hideAllLogsAction = new HideAllLogsAction(); importProjectAction = new ImportProjectAction(selProvider); startBuildAction = new StartBuildAction(selProvider); openAppDoubleClickAction = new OpenAppDoubleClickAction(selProvider); manageLinksAction = new ManageLinksAction(selProvider); }
Example #9
Source File: OpenActionProvider.java From tmxeditor8 with GNU General Public License v2.0 | 5 votes |
public void init(ICommonActionExtensionSite aConfig) { if (aConfig.getViewSite() instanceof ICommonViewerWorkbenchSite) { viewSite = (ICommonViewerWorkbenchSite) aConfig.getViewSite(); openFileAction = new OpenFileWithValidAction(viewSite.getPage()); openFileAction.setText(WorkbenchNavigatorMessages.actions_OpenActionProvider_openFileAction); contribute = true; } }
Example #10
Source File: WorkManagementActionProvider.java From translationstudio8 with GNU General Public License v2.0 | 5 votes |
public void init(ICommonActionExtensionSite aSite) { final Shell shell = aSite.getViewSite().getShell(); IShellProvider sp = new IShellProvider() { public Shell getShell() { return shell; } }; addBookmarkAction = new AddBookmarkAction(sp, true); addTaskAction = new AddTaskAction(sp); }
Example #11
Source File: RootActionProvider.java From codewind-eclipse with Eclipse Public License 2.0 | 5 votes |
@Override public void init(ICommonActionExtensionSite aSite) { super.init(aSite); ISelectionProvider selProvider = aSite.getStructuredViewer(); openAppAction = new OpenAppAction(selProvider); restartRunAction = new RestartRunModeAction(selProvider); restartDebugAction = new RestartDebugModeAction(selProvider); }
Example #12
Source File: NewActionProvider.java From translationstudio8 with GNU General Public License v2.0 | 5 votes |
public void init(ICommonActionExtensionSite anExtensionSite) { if (anExtensionSite.getViewSite() instanceof ICommonViewerWorkbenchSite) { IWorkbenchWindow window = ((ICommonViewerWorkbenchSite) anExtensionSite.getViewSite()).getWorkbenchWindow(); showDlgAction = ActionFactory.NEW_WIZARD_DROP_DOWN.create(window); showDlgAction.setText(WorkbenchNavigatorMessages.actions_NewActionProvider_NewMenu_label); contribute = true; } }
Example #13
Source File: OpenActionProvider.java From translationstudio8 with GNU General Public License v2.0 | 5 votes |
public void init(ICommonActionExtensionSite aConfig) { if (aConfig.getViewSite() instanceof ICommonViewerWorkbenchSite) { viewSite = (ICommonViewerWorkbenchSite) aConfig.getViewSite(); openFileAction = new OpenFileWithValidAction(viewSite.getPage()); openFileAction.setText(WorkbenchNavigatorMessages.actions_OpenActionProvider_openFileAction); contribute = true; } }
Example #14
Source File: PropertiesActionProvider.java From tmxeditor8 with GNU General Public License v2.0 | 5 votes |
public void init(final ICommonActionExtensionSite aSite) { delegateSelectionProvider = new DelegateSelectionProvider( aSite.getViewSite().getSelectionProvider()); propertiesAction = new PropertyDialogAction(new IShellProvider() { public Shell getShell() { return aSite.getViewSite().getShell(); } },delegateSelectionProvider); propertiesAction.setText("属性"); propertiesAction.setActionDefinitionId(IWorkbenchCommandConstants.FILE_PROPERTIES); }
Example #15
Source File: WorkManagementActionProvider.java From tmxeditor8 with GNU General Public License v2.0 | 5 votes |
public void init(ICommonActionExtensionSite aSite) { final Shell shell = aSite.getViewSite().getShell(); IShellProvider sp = new IShellProvider() { public Shell getShell() { return shell; } }; addBookmarkAction = new AddBookmarkAction(sp, true); addTaskAction = new AddTaskAction(sp); }
Example #16
Source File: LocalConnectionActionProvider.java From codewind-eclipse with Eclipse Public License 2.0 | 5 votes |
@Override public void init(ICommonActionExtensionSite aSite) { super.init(aSite); selProvider = aSite.getStructuredViewer(); newProjectAction = new NewProjectAction(selProvider); bindAction = new BindAction(selProvider); manageRegistriesAction = new ManageRegistriesAction(selProvider); manageReposAction = new ManageReposAction(selProvider); installUninstallAction = new InstallerAction(ActionType.INSTALL_UNINSTALL, selProvider); startStopAction = new InstallerAction(ActionType.START_STOP, selProvider); doubleClickAction = new LocalDoubleClickAction(selProvider); logLevelAction = new LogLevelAction(selProvider); diagnosticsAction = new DiagnosticsAction(selProvider); }
Example #17
Source File: NewActionProvider.java From tmxeditor8 with GNU General Public License v2.0 | 5 votes |
public void init(ICommonActionExtensionSite anExtensionSite) { if (anExtensionSite.getViewSite() instanceof ICommonViewerWorkbenchSite) { IWorkbenchWindow window = ((ICommonViewerWorkbenchSite) anExtensionSite.getViewSite()).getWorkbenchWindow(); showDlgAction = ActionFactory.NEW_WIZARD_DROP_DOWN.create(window); showDlgAction.setText(WorkbenchNavigatorMessages.actions_NewActionProvider_NewMenu_label); contribute = true; } }
Example #18
Source File: N4JSActionBarContributionProvider.java From n4js with Eclipse Public License 1.0 | 5 votes |
@Override public void init(final ICommonActionExtensionSite site) { selectWorkingSetDelegate = new ActionContributionItem(selectWorkingSetAction); showHiddenWorkingSetsDelegate = new ActionContributionItem(showHiddenWorkingSetsAction); workingSetManagerBroker.addTopLevelElementChangedListener(this); workingSetManagerBroker.addWorkingSetManagerStateChangedListener(this); }
Example #19
Source File: ActionProvider.java From RDFS with Apache License 2.0 | 5 votes |
@Override public void init(ICommonActionExtensionSite site) { if (ActionProvider.site != null) { System.err.printf("%s: Multiple init()\n", this.getClass() .getCanonicalName()); return; } super.init(site); ActionProvider.site = site; }
Example #20
Source File: PythonActionProvider.java From Pydev with Eclipse Public License 1.0 | 5 votes |
@Override public void init(ICommonActionExtensionSite aSite) { ICommonViewerSite viewSite = aSite.getViewSite(); if (viewSite instanceof ICommonViewerWorkbenchSite) { ICommonViewerWorkbenchSite site = (ICommonViewerWorkbenchSite) viewSite; Shell shell = site.getShell(); ISharedImages images = PlatformUI.getWorkbench().getSharedImages(); clipboard = new Clipboard(shell.getDisplay()); selectionProvider = site.getSelectionProvider(); openPythonAction = new PyOpenPythonFileAction(site.getPage(), selectionProvider); openResourceAction = new PyOpenResourceAction(site.getPage(), selectionProvider); openExternalAction = new PyOpenExternalAction(site.getPage(), selectionProvider); deleteResourceAction = new PyDeleteResourceAction(shell, selectionProvider); copyResourceAction = new PyCopyResourceAction(shell, selectionProvider, clipboard); pasteAction = new PyPasteAction(shell, selectionProvider, clipboard); moveResourceAction = new PyMoveResourceAction(shell, selectionProvider); copyResourceAction.setDisabledImageDescriptor(images .getImageDescriptor(ISharedImages.IMG_TOOL_COPY_DISABLED)); copyResourceAction.setImageDescriptor(images.getImageDescriptor(ISharedImages.IMG_TOOL_COPY)); pasteAction.setDisabledImageDescriptor(images.getImageDescriptor(ISharedImages.IMG_TOOL_PASTE_DISABLED)); pasteAction.setImageDescriptor(images.getImageDescriptor(ISharedImages.IMG_TOOL_PASTE)); deleteResourceAction.setDisabledImageDescriptor(images .getImageDescriptor(ISharedImages.IMG_TOOL_DELETE_DISABLED)); deleteResourceAction.setImageDescriptor(images.getImageDescriptor(ISharedImages.IMG_TOOL_DELETE)); } }
Example #21
Source File: PythonRefactorActionProvider.java From Pydev with Eclipse Public License 1.0 | 5 votes |
@Override public void init(ICommonActionExtensionSite aSite) { ICommonViewerSite viewSite = aSite.getViewSite(); if (viewSite instanceof ICommonViewerWorkbenchSite) { ICommonViewerWorkbenchSite site = (ICommonViewerWorkbenchSite) viewSite; Shell shell = site.getShell(); renameResourceAction = new PyRenameResourceAction(shell, site.getSelectionProvider()); } }
Example #22
Source File: LangNavigatorActionProvider.java From goclipse with Eclipse Public License 1.0 | 5 votes |
@Override public void init(ICommonActionExtensionSite site) { if (site.getViewSite() instanceof ICommonViewerWorkbenchSite) { ICommonViewerWorkbenchSite workbenchSite = (ICommonViewerWorkbenchSite) site.getViewSite(); if (workbenchSite.getPart() instanceof IViewPart) { IViewPart viewPart= (IViewPart) workbenchSite.getPart(); initActionGroups(viewPart); } } }
Example #23
Source File: GoNavigatorActionProvider.java From goclipse with Eclipse Public License 1.0 | 5 votes |
@Override public void init(ICommonActionExtensionSite aSite) { super.init(aSite); ICommonViewerSite viewSite = aSite.getViewSite(); if(viewSite instanceof ICommonViewerWorkbenchSite) { ICommonViewerWorkbenchSite cvws = (ICommonViewerWorkbenchSite) viewSite; navigatorOpenAction = new NavigatorOpenAction(cvws.getPage(), cvws.getSelectionProvider()); } }
Example #24
Source File: ProcessNavigatorActionProvider.java From bonita-studio with GNU General Public License v2.0 | 5 votes |
/** * @generated */ public void init(ICommonActionExtensionSite aSite) { super.init(aSite); if (aSite.getViewSite() instanceof ICommonViewerWorkbenchSite) { myContribute = true; makeActions((ICommonViewerWorkbenchSite) aSite.getViewSite()); } else { myContribute = false; } }
Example #25
Source File: CustomOpenActionProvider.java From bonita-studio with GNU General Public License v2.0 | 5 votes |
@Override public void init(ICommonActionExtensionSite aConfig) { if (aConfig.getViewSite() instanceof ICommonViewerWorkbenchSite) { viewSite = (ICommonViewerWorkbenchSite) aConfig.getViewSite(); openFileAction = new OpenEditorActionGroup((IViewPart) viewSite.getPart()); contribute = true; } repositoryAccessor = new RepositoryAccessor(); repositoryAccessor.init(); fileStoreFinder = new FileStoreFinder(); }
Example #26
Source File: ActionProvider.java From hadoop-gpu with Apache License 2.0 | 5 votes |
@Override public void init(ICommonActionExtensionSite site) { if (ActionProvider.site != null) { System.err.printf("%s: Multiple init()\n", this.getClass() .getCanonicalName()); return; } super.init(site); ActionProvider.site = site; }
Example #27
Source File: PropertiesActionProvider.java From translationstudio8 with GNU General Public License v2.0 | 5 votes |
public void init(final ICommonActionExtensionSite aSite) { delegateSelectionProvider = new DelegateSelectionProvider( aSite.getViewSite().getSelectionProvider()); propertiesAction = new PropertyDialogAction(new IShellProvider() { public Shell getShell() { return aSite.getViewSite().getShell(); } },delegateSelectionProvider); propertiesAction.setText("属性"); propertiesAction.setActionDefinitionId(IWorkbenchCommandConstants.FILE_PROPERTIES); }
Example #28
Source File: EditActionProvider.java From gama with GNU General Public License v3.0 | 5 votes |
@Override public void init(final ICommonActionExtensionSite anActionSite) { site = anActionSite; shell = site.getViewSite().getShell(); makeActions(); }
Example #29
Source File: OpenActionProvider.java From gama with GNU General Public License v3.0 | 5 votes |
@Override public void init(final ICommonActionExtensionSite aConfig) { if (aConfig.getViewSite() instanceof ICommonViewerWorkbenchSite) { viewSite = (ICommonViewerWorkbenchSite) aConfig.getViewSite(); openFileAction = new OpenFileAction(viewSite.getPage()); contribute = true; } }
Example #30
Source File: NavigatorActionProvider.java From statecharts with Eclipse Public License 1.0 | 5 votes |
public void init(ICommonActionExtensionSite aSite) { super.init(aSite); if (aSite.getViewSite() instanceof ICommonViewerWorkbenchSite) { myContribute = true; makeActions((ICommonViewerWorkbenchSite) aSite.getViewSite()); } else { myContribute = false; } }