@Override protected void open(ISelection selection, boolean activate) { handleOpen(new OpenEvent(viewer, selection)); } };
@Override protected void open(ISelection selection, boolean activate) { handleOpen(new OpenEvent(fViewer, selection)); }
/** * The given element was selected from a drop down menu. * * @param selection the selected element */ void fireMenuSelection(ISelection selection) { fireOpen(new OpenEvent(this, selection)); }
@Override public void openSelection() { fireOpen(new OpenEvent(this, getSelection())); } @Override
/** * Notifies all open listeners. */ void fireOpen() { fireOpen(new OpenEvent(this, getSelection())); }
/** * Notifies all open listeners. */ void fireOpen() { fireOpen(new OpenEvent(this, getSelection())); }
public void openSelection() { fireOpen(new OpenEvent(this, getSelection())); } protected void internalRefresh(Object element, boolean updateLabels) {
private void internalOpen() { ISelection selection= getSelection(); if (selection != null && !selection.isEmpty()) { fireOpen(new OpenEvent(this, selection)); } } }
/** * The given element was selected from a drop down menu. * * @param element the selected element */ void fireMenuSelection(Object element) { fireOpen(new OpenEvent(this, new StructuredSelection(element))); }
/** * The given element was selected from a drop down menu. * * @param element the selected element */ void fireMenuSelection(Object element) { fireOpen(new OpenEvent(this, new StructuredSelection(element))); }
private boolean internalOpen() { ISelection selection= getSelection(); if (selection != null && !selection.isEmpty()) { fireOpen(new OpenEvent(this, selection)); return true; } return false; } }
@Override void handleDoubleClickEvent() { Viewer viewer = getViewer(); fireDoubleClick(new DoubleClickEvent(viewer, viewer.getSelection())); fireOpen(new OpenEvent(viewer, viewer.getSelection())); } };
@Override public void open(OpenEvent event) { ISelection selection = event.getSelection(); StructuredSelection newSelection = convertSelection(selection, true); super.open(new OpenEvent((Viewer)event.getSource(), newSelection)); } @Override
@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); } }
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) {
@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); } }
private void internalSetSelection(TreeItem ti) { if (ti != null) { Object data = ti.getData(); if (data != null) { ISelection selection = new StructuredSelection(data); viewer.setSelection(selection, true); page.handleOpen(new OpenEvent(viewer, selection)); } } }
void handleDoubleClickEvent() { viewer.fireDoubleClick(new DoubleClickEvent(viewer, viewer .getSelection())); viewer.fireOpen(new OpenEvent(viewer, viewer.getSelection())); }
void handleDoubleClickEvent() { viewer.fireDoubleClick(new DoubleClickEvent(viewer, viewer .getSelection())); viewer.fireOpen(new OpenEvent(viewer, viewer.getStructuredSelection())); }
void handleDoubleClickEvent() { Viewer viewer = getViewer(); fireDoubleClick(new DoubleClickEvent(viewer, viewer.getSelection())); fireOpen(new OpenEvent(viewer, viewer.getSelection())); } }