@Override public void open(OpenEvent event) { doRevealOrOpen(event.getSelection()); } });
@Override public void open(OpenEvent event) { doRevealOrOpen(event.getSelection()); } });
@Override public void open(OpenEvent event) { doOpen(event.getSelection()); } });
public void open(OpenEvent event) { revealInEditor(event.getSelection(), true); } });
public void open(OpenEvent event) { fActionSet.handleOpen(event); fLastOpenSelection= event.getSelection(); } });
/** * Handles an open event from the viewer. Opens an editor on the selected file. * * @param event the open event * @since 2.0 * @deprecated As of 3.5, replaced by {@link #handleOpen(ISelection)} */ @Deprecated protected void handleOpen(OpenEvent event) { handleOpen(event.getSelection()); }
public void open(OpenEvent event) { TreeSelection sel = (TreeSelection) event.getSelection(); RepositoryTreeNode element = (RepositoryTreeNode) sel .getFirstElement(); if (element instanceof FileNode || element instanceof StashedCommitNode) executeOpenCommand(); } });
@Override public void open(OpenEvent event) { StructuredSelection selection = (StructuredSelection) event.getSelection(); annotateAndClose((Type) selection.getFirstElement()); } });
@Override public void open(OpenEvent event) { if (JavaPlugin.DEBUG_BREADCRUMB_ITEM_DROP_DOWN) System.out.println("BreadcrumbItemDropDown.showMenu()$treeViewer>open"); //$NON-NLS-1$ ISelection selection= event.getSelection(); if (!(selection instanceof IStructuredSelection)) return; Object element= ((IStructuredSelection) selection).getFirstElement(); if (element == null) return; openElement(element); } });
public void open(OpenEvent event) { ISelection s = event.getSelection(); final SyncInfoModelElement node = getElement(s); if (node == null) { ICompareInput input = getCompareInput(s); if (input != null) { prepareCompareInput(input); } } else { prepareCompareInput(node); } } });
@Override public void open(OpenEvent event) { if (DebugUIPlugin.DEBUG_TREE_VIEWER_DROPDOWN) { DebugUIPlugin.trace("BreadcrumbItemDropDown.showMenu()$treeViewer>open"); //$NON-NLS-1$ } openElement(event.getSelection()); } });
@Override public void open(OpenEvent event) { lastOpenSelection = event.getSelection(); OpenAndLinkWithEditorHelper.this.open(lastOpenSelection, OpenStrategy.activateOnOpen()); }
public void open(OpenEvent event) { String text = getTextFromSelection(event.getSelection()); if (text != null) { textSearchControl.getTextControl().setText(text); textControl.setSelection(text.length()); textSearchControl.addToSearchHistory(text); } close(); }
public void open(OpenEvent anEvent) { ISelection selection = anEvent.getSelection(); if (selection instanceof IStructuredSelection) { if (getAction().updateSelection((IStructuredSelection)selection)) action.run(); } }
public void open(OpenEvent event) { Object element = ((IStructuredSelection) event.getSelection()).getFirstElement(); if (element instanceof IBuildElement) { OpenHandler.open(getSite().getPage(), Collections.singletonList((IBuildElement) element)); } } });
public void open(OpenEvent event) { Object item = ((IStructuredSelection) event.getSelection()).getFirstElement(); if (item instanceof ITestSuite) { TestResultManager.openInEditor((ITestSuite) item); } else if (item instanceof ITestCase) { TestResultManager.openInEditor((ITestCase) item); } } });
public void open(OpenEvent event) { ISelection selection = event.getSelection(); StructuredSelection newSelection = convertSelection(selection, true); super.open(new OpenEvent((Viewer)event.getSource(), newSelection)); } public void doubleClick(DoubleClickEvent event) {
public void open(OpenEvent event) { Object item = ((IStructuredSelection) event.getSelection()).getFirstElement(); if (item instanceof IArtifact) { IArtifact artifact = (IArtifact) item; if (artifact.getUrl() != null) { BrowserUtil.openUrl(artifact.getUrl(), BrowserUtil.NO_RICH_EDITOR); } } } });
@Override public void open(OpenEvent event) { ISelection selection = event.getSelection(); StructuredSelection newSelection = convertSelection(selection, true); super.open(new OpenEvent((Viewer)event.getSource(), newSelection)); } @Override
public void open(OpenEvent event) { IStructuredSelection sel= (IStructuredSelection) event.getSelection(); Object obj= sel.getFirstElement(); if (obj instanceof HunkDiffNode) { getCompareConfiguration().setLeftLabel(PatchMessages.PreviewPatchPage2_PatchedLocalFile); getCompareConfiguration().setRightLabel(PatchMessages.PreviewPatchPage2_OrphanedHunk); } else { getCompareConfiguration().setLeftLabel(PatchMessages.PatcherCompareEditorInput_LocalCopy); getCompareConfiguration().setRightLabel(PatchMessages.PatcherCompareEditorInput_AfterPatch); } }