1 package $packageName$; 2 3 import org.eclipse.core.commands.AbstractHandler; 4 import org.eclipse.core.commands.ExecutionEvent; 5 import org.eclipse.core.commands.ExecutionException; 6 import org.eclipse.ui.IWorkbenchWindow; 7 import org.eclipse.ui.handlers.HandlerUtil; 8 import org.eclipse.jface.dialogs.MessageDialog; 9 10 15 public class $className$ extends AbstractHandler { 16 19 public $className$() { 20 } 21 22 26 public Object execute(ExecutionEvent event) throws ExecutionException { 27 IWorkbenchWindow window = HandlerUtil.getActiveWorkbenchWindowChecked(event); 28 MessageDialog.openInformation( 29 window.getShell(), 30 "$pluginName$", 31 "$message$"); 32 return null; 33 } 34 } 35 | Popular Tags |