public void run() { ((ISetSelectionTarget)activePart).selectReveal(targetSelection); } });
public void run() { ((ISetSelectionTarget) focusPart).selectReveal(selection); } });
@Override public void run() { finalTarget.selectReveal(selection); } });
public void run() { ((ISetSelectionTarget)activePart).selectReveal(targetSelection); } });
@Override public void run() { target.selectReveal(newSelection[0]); } });
@Override public void run() { finalTarget.selectReveal(selection); } });
@Override public void run() { finalTarget.selectReveal(selection); } });
@Override public void run() { finalTarget.selectReveal(selection); } });
public void run() { finalTarget.selectReveal(selection); } });
@Override public void run() { target.selectReveal(newSelection[0]); } });
public void run() { finalTarget.selectReveal(selection); } });
public void run() { target.selectReveal(newSelection[0]); } });
public void run() { finalTarget.selectReveal(targetSelection); } });
public void run() { ISelection selection= new StructuredSelection(file); ((ISetSelectionTarget) focusPart).selectReveal(selection); } });
protected void openFeatureEditor(IFile manifestFile) { IWorkbenchPage page = PDEPlugin.getActivePage(); // Reveal the file first final ISelection selection = new StructuredSelection(manifestFile); final IWorkbenchPart activePart = page.getActivePart(); if (activePart instanceof ISetSelectionTarget) { fShell.getDisplay().asyncExec(() -> ((ISetSelectionTarget) activePart).selectReveal(selection)); } // Open the editor try { page.openEditor(new FileEditorInput(manifestFile), IPDEUIConstants.FEATURE_EDITOR_ID); } catch (PartInitException e) { PDEPlugin.logException(e); } }
protected void openAppropriateEditor(IVirtualComponent c){ if (c == null){ return; } IWorkbenchPage page = null; IEditorPart editor = null; try { page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage(); editor = page.openEditor(new ComponentEditorInput(c), currentDescriptor.getId()); if (editor instanceof ISetSelectionTarget) ((ISetSelectionTarget) editor).selectReveal(getStructuredSelection()); } catch (Exception e) { MessageDialog.openError(page.getWorkbenchWindow().getShell(), J2EEUIMessages.getResourceString("Problems_Opening_Editor_ERROR_"), e.getMessage()); //$NON-NLS-1$ = "Problems Opening Editor" } }
public void run(IResource resource) { if (resource == null) return; try { IWorkbenchPage page= getSite().getWorkbenchWindow().getActivePage(); IViewPart view= page.showView(JavaPlugin.ID_RES_NAV); if (view instanceof ISetSelectionTarget) { ISelection selection= new StructuredSelection(resource); ((ISetSelectionTarget)view).selectReveal(selection); } } catch(PartInitException e) { ExceptionHandler.handle(e, getShell(), getDialogTitle(), ActionMessages.ShowInNavigatorView_error_activation_failed); } }
public void run(IResource resource) { if (resource == null) return; try { IWorkbenchPage page= getSite().getWorkbenchWindow().getActivePage(); IViewPart view= page.showView(IPageLayout.ID_RES_NAV); if (view instanceof ISetSelectionTarget) { ISelection selection= new StructuredSelection(resource); ((ISetSelectionTarget)view).selectReveal(selection); } } catch(PartInitException e) { ExceptionHandler.handle(e, getShell(), getDialogTitle(), ActionMessages.ShowInNavigatorView_error_activation_failed); } }
public void run(IResource resource) { if (resource == null) return; try { IWorkbenchPage page= getSite().getWorkbenchWindow().getActivePage(); IViewPart view= page.showView(JavaPlugin.ID_RES_NAV); if (view instanceof ISetSelectionTarget) { ISelection selection= new StructuredSelection(resource); ((ISetSelectionTarget)view).selectReveal(selection); } } catch(PartInitException e) { ExceptionHandler.handle(e, getShell(), getDialogTitle(), ActionMessages.ShowInNavigatorView_error_activation_failed); } }
/** * open the appropriate editor */ protected void openAppropriateEditor(IResource r) { if (r == null) return; IWorkbenchPage page = null; IEditorPart editor = null; try { page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage(); editor = page.openEditor(new FileEditorInput((IFile) r), currentDescriptor.getId()); if (editor instanceof ISetSelectionTarget) ((ISetSelectionTarget) editor).selectReveal(getStructuredSelection()); } catch (Exception e) { MessageDialog.openError(page.getWorkbenchWindow().getShell(), J2EEUIMessages.getResourceString("Problems_Opening_Editor_ERROR_"), e.getMessage()); //$NON-NLS-1$ = "Problems Opening Editor" } }