下面列出了怎么用org.eclipse.ui.IActionDelegate2的API类实例代码及写法,或者点击链接到github查看源代码。
public void runWithEvent(Event event) {
if ((event != null) && (delegate instanceof IActionDelegate2)) {
((IActionDelegate2)delegate).runWithEvent(this, event);
} else {
run();
}
}
/**
* Disposes this action.
*/
public void dispose() {
if (delegate instanceof IActionDelegate2) {
((IActionDelegate2)delegate).dispose();
delegate = null;
}
}