/** * @return true if editors should be activated when opened. */ public static boolean activateOnOpen() { return getOpenMethod() == DOUBLE_CLICK; }
/** * @return true if editors should be activated when opened. */ public static boolean activateOnOpen() { return getOpenMethod() == DOUBLE_CLICK; }
/** * @return true if editors should be activated when opened. */ public static boolean activateOnOpen() { return getOpenMethod() == DOUBLE_CLICK; }
@Override public void mouseUp(MouseEvent e) { if (JavaPlugin.DEBUG_BREADCRUMB_ITEM_DROP_DOWN) System.out.println("BreadcrumbItemDropDown.showMenu()$treeViewer>mouseUp"); //$NON-NLS-1$ if (e.button != 1) return; if ((OpenStrategy.getOpenMethod() & OpenStrategy.SINGLE_CLICK) != 0) return; Item item= tree.getItem(new Point(e.x, e.y)); if (item == null) return; openElement(item.getData()); }
@Override public void mouseUp(MouseEvent e) { if (JavaPlugin.DEBUG_BREADCRUMB_ITEM_DROP_DOWN) System.out.println("BreadcrumbItemDropDown.showMenu()$treeViewer>mouseUp"); //$NON-NLS-1$ if (e.button != 1) return; if ((OpenStrategy.getOpenMethod() & OpenStrategy.SINGLE_CLICK) != 0) return; Item item= tree.getItem(new Point(e.x, e.y)); if (item == null) return; openElement(item.getData()); }
@Override protected void activate(ISelection selection) { final int currentMode= OpenStrategy.getOpenMethod(); try { OpenStrategy.setOpenMethod(OpenStrategy.DOUBLE_CLICK); handleOpen(); } finally { OpenStrategy.setOpenMethod(currentMode); } }
@Override protected void activate(ISelection selection) { final int currentMode = OpenStrategy.getOpenMethod(); try { OpenStrategy.setOpenMethod(OpenStrategy.DOUBLE_CLICK); openSelectedMarkers(); } finally { OpenStrategy.setOpenMethod(currentMode); } }
@Override protected void activate(ISelection selection) { int currentMode= OpenStrategy.getOpenMethod(); try { OpenStrategy.setOpenMethod(OpenStrategy.DOUBLE_CLICK); open(selection, true); } finally { OpenStrategy.setOpenMethod(currentMode); } }
@Override protected void activate(ISelection selection) { final int currentMode= OpenStrategy.getOpenMethod(); try { OpenStrategy.setOpenMethod(OpenStrategy.DOUBLE_CLICK); handleOpen(new OpenEvent(fViewer, selection)); } finally { OpenStrategy.setOpenMethod(currentMode); } }
@Override protected void activate(ISelection selection) { final int currentMode = OpenStrategy.getOpenMethod(); try { OpenStrategy.setOpenMethod(OpenStrategy.DOUBLE_CLICK); handleOpen(new OpenEvent(viewer, selection)); } finally { OpenStrategy.setOpenMethod(currentMode); } }
@Override public void mouseUp(MouseEvent e) { if (DebugUIPlugin.DEBUG_TREE_VIEWER_DROPDOWN) { DebugUIPlugin.trace("BreadcrumbItemDropDown.showMenu()$treeViewer>mouseUp"); //$NON-NLS-1$ } if (e.button != 1) { return; } if ((OpenStrategy.getOpenMethod() & OpenStrategy.SINGLE_CLICK) != 0) { return; } TreeItem item= tree.getItem(new Point(e.x, e.y)); if (item == null) { return; } List<Object> pathElements = new LinkedList<>(); while(item != null) { Object data = item.getData(); if (data == null) { return; } pathElements.add(0, data); item = item.getParentItem(); } openElement(new TreeSelection(new TreePath(pathElements.toArray()))); }
if (openAction != null && openAction.isEnabled() && OpenStrategy.getOpenMethod() == OpenStrategy.DOUBLE_CLICK) return; if (selection instanceof ITreeSelection) {
if (openAction != null && openAction.isEnabled() && OpenStrategy.getOpenMethod() == OpenStrategy.DOUBLE_CLICK) return; if (selection instanceof ITreeSelection) {
if (openAction != null && openAction.isEnabled() && OpenStrategy.getOpenMethod() == OpenStrategy.DOUBLE_CLICK) return; if (selection instanceof ITreeSelection) {