List of usage examples for org.eclipse.jface.viewers IOpenListener open
public void open(OpenEvent event);
From source file:com.nokia.sdt.uidesigner.gallery.GalleryViewer.java
License:Open Source License
private void fireOpenEvent(final OpenEvent event) { Object[] listeners = openListeners.getListeners(); for (int i = 0; i < listeners.length; ++i) { final IOpenListener curr = (IOpenListener) listeners[i]; SafeRunnable.run(new SafeRunnable() { public void run() { curr.open(event); }/*from w ww . j av a2 s.c om*/ }); } }
From source file:org.eclipse.egit.ui.internal.commit.DiffEditorOutlinePage.java
License:Open Source License
private void fireOpenEvent(OpenEvent event) { for (IOpenListener listener : openListeners) { SafeRunnable.run(new SafeRunnable() { @Override/*from w ww. j a v a 2s. c om*/ public void run() { listener.open(event); } }); } }
From source file:org.neuro4j.studio.debug.ui.views.StructuredViewer.java
License:Apache License
/** * Notifies any open event listeners that a open event has been received. * Only listeners registered at the time this method is called are notified. * /*from w ww . ja v a 2 s .c o m*/ * @param event * a double-click event * * @see IOpenListener#open(OpenEvent) */ protected void fireOpen(final OpenEvent event) { Object[] listeners = openListeners.getListeners(); for (int i = 0; i < listeners.length; ++i) { final IOpenListener l = (IOpenListener) listeners[i]; SafeRunnable.run(new SafeRunnable() { public void run() { l.open(event); } }); } }
From source file:org.rssowl.ui.internal.views.explorer.BookMarkViewer.java
License:Open Source License
private void internalFireOpen(final OpenEvent event) { Object[] listeners = fOpenListeners.getListeners(); for (int i = 0; i < listeners.length; ++i) { final IOpenListener listener = (IOpenListener) listeners[i]; SafeRunnable.run(new SafeRunnable() { public void run() { listener.open(event); }// ww w . j ava2 s . c o m }); } }
From source file:org.xmind.ui.viewers.ImageButton.java
License:Open Source License
protected void fireOpen(final OpenEvent event) { if (openListeners == null || event == null) return;/*w w w . j av a2 s. c om*/ Object[] listeners = openListeners.toArray(); for (int i = 0; i < listeners.length; i++) { final IOpenListener listener = (IOpenListener) listeners[i]; SafeRunner.run(new SafeRunnable() { public void run() throws Exception { listener.open(event); } }); } }