1 11 12 package org.eclipse.ui.internal.handlers; 13 14 import org.eclipse.core.commands.ExecutionEvent; 15 import org.eclipse.core.commands.ExecutionException; 16 import org.eclipse.jface.action.IAction; 17 import org.eclipse.jface.viewers.ISelection; 18 import org.eclipse.ui.IWorkbenchWindow; 19 20 25 public abstract class WorkbenchWindowHandlerDelegate extends 26 ExecutableExtensionHandler implements IWorkbenchWindowHandlerDelegate { 27 28 35 public void init(final IWorkbenchWindow window) { 36 } 38 39 49 public void run(final IAction action) { 50 try { 51 execute(new ExecutionEvent()); 52 } catch (final ExecutionException e) { 53 } 55 } 56 57 69 public void selectionChanged(IAction action, ISelection selection) { 70 } 72 } 73 | Popular Tags |