Java 类org.eclipse.ui.IObjectActionDelegate 实例源码

项目:LogViewer    文件:OpenWith.java   
public Object execute(ExecutionEvent event) throws ExecutionException {
    IWorkbenchPart part = HandlerUtil.getActivePart(event);
    IObjectActionDelegate action = EditorPropertyTester.hasResourceSelection(part);
    if (action == null) {
        action = EditorPropertyTester.hasAbstractConsole(part);
    }
    if (action != null)
        action.run(null);
    return null;
}