/** * @deprecated As of 3.5, got replaced by generic Navigate > Show In > */ @Deprecated private void createDeprecatedShowInPackageExplorerAction() { IAction action= new org.eclipse.jdt.ui.actions.ShowInPackageViewAction(this); action.setActionDefinitionId(IJavaEditorActionDefinitionIds.SHOW_IN_PACKAGE_VIEW); setAction("ShowInPackageView", action); //$NON-NLS-1$ }
/** * @deprecated As of 3.5, got replaced by generic Navigate > Show In > */ @Deprecated private void createDeprecatedShowInPackageExplorerAction() { IAction action= new org.eclipse.jdt.ui.actions.ShowInPackageViewAction(this); action.setActionDefinitionId(IJavaEditorActionDefinitionIds.SHOW_IN_PACKAGE_VIEW); setAction("ShowInPackageView", action); //$NON-NLS-1$ }
private ShowActionGroup(IWorkbenchSite site) { fShowInPackagesViewAction= new ShowInPackageViewAction(site); fShowInPackagesViewAction.setActionDefinitionId(IJavaEditorActionDefinitionIds.SHOW_IN_PACKAGE_VIEW); initialize(site , false); }
private ShowActionGroup(IWorkbenchSite site) { fShowInPackagesViewAction= new ShowInPackageViewAction(site); fShowInPackagesViewAction.setActionDefinitionId(IJavaEditorActionDefinitionIds.SHOW_IN_PACKAGE_VIEW); initialize(site , false); }
private ShowActionGroup(IWorkbenchSite site) { fShowInPackagesViewAction= new ShowInPackageViewAction(site); fShowInPackagesViewAction.setActionDefinitionId(IJavaEditorActionDefinitionIds.SHOW_IN_PACKAGE_VIEW); initialize(site , false); }
/** * Note: This constructor is for internal use only. Clients should not call this constructor. * @param part the Java editor * * @noreference This constructor is not intended to be referenced by clients. */ public ShowActionGroup(JavaEditor part) { fShowInPackagesViewAction= new ShowInPackageViewAction(part); fShowInPackagesViewAction.setActionDefinitionId(IJavaEditorActionDefinitionIds.SHOW_IN_PACKAGE_VIEW); part.setAction("ShowInPackageView", fShowInPackagesViewAction); //$NON-NLS-1$ initialize(part.getSite(), true); }
/** * Note: This constructor is for internal use only. Clients should not call this constructor. * @param part the Java editor * * @noreference This constructor is not intended to be referenced by clients. */ public ShowActionGroup(JavaEditor part) { fShowInPackagesViewAction= new ShowInPackageViewAction(part); fShowInPackagesViewAction.setActionDefinitionId(IJavaEditorActionDefinitionIds.SHOW_IN_PACKAGE_VIEW); part.setAction("ShowInPackageView", fShowInPackagesViewAction); //$NON-NLS-1$ initialize(part.getSite(), true); }
/** * Note: This constructor is for internal use only. Clients should not call this constructor. * @param part the Java editor */ public ShowActionGroup(JavaEditor part) { fShowInPackagesViewAction= new ShowInPackageViewAction(part); fShowInPackagesViewAction.setActionDefinitionId(IJavaEditorActionDefinitionIds.SHOW_IN_PACKAGE_VIEW); part.setAction("ShowInPackageView", fShowInPackagesViewAction); //$NON-NLS-1$ initialize(part.getSite(), true); }
private void handleGoToPackage(ISelection selection) { IPackageFragment frag = getPackageFragment(selection); if (frag != null) try { IViewPart part = PDEPlugin.getActivePage().showView(JavaUI.ID_PACKAGES); ShowInPackageViewAction action = new ShowInPackageViewAction(part.getSite()); action.run(frag); } catch (PartInitException e) { } }
private void handleGoToPackage(ISelection selection) { IPackageFragment frag = getPackageFragment(selection); if (frag != null) try { IViewPart part = PDEPlugin.getActivePage().showView(JavaUI.ID_PACKAGES); ShowInPackageViewAction action = new ShowInPackageViewAction(part.getSite()); action.run(frag); } catch (PartInitException e) { } }
@Override protected void open2() { IResource res = fHeader.getBundle().getModel().getUnderlyingResource(); if (res == null) return; IPackageFragment frag = PDEJavaHelper.getPackageFragment(fElement, null, res.getProject()); if (frag == null) return; try { IViewPart part = PDEPlugin.getActivePage().showView(JavaUI.ID_PACKAGES); ShowInPackageViewAction action = new ShowInPackageViewAction(part.getSite()); action.run(frag); } catch (PartInitException e) { PDEPlugin.logException(e); } }
setAction("AnnotationAction", action); //$NON-NLS-1$ action= new ShowInPackageViewAction(this); action.setActionDefinitionId(IJavaEditorActionDefinitionIds.SHOW_IN_PACKAGE_VIEW); setAction("ShowInPackageView", action); //$NON-NLS-1$