org.eclipse.ui.IActionDelegate2 Java Examples

The following examples show how to use org.eclipse.ui.IActionDelegate2. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SVNPluginAction.java    From APICloud-Studio with GNU General Public License v3.0 5 votes vote down vote up
public void runWithEvent(Event event) {
	if ((event != null) && (delegate instanceof IActionDelegate2)) {
		((IActionDelegate2)delegate).runWithEvent(this, event);
	} else {
		run();
	}
}
 
Example #2
Source File: SVNPluginAction.java    From APICloud-Studio with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Disposes this action.
 */
public void dispose() {
    if (delegate instanceof IActionDelegate2) {
    	((IActionDelegate2)delegate).dispose();
    	delegate = null;
    }
}