@@ -0,0 +1,1024 @@
+package logtool.handlers;%0A%0Aimport org.eclipse.core.commands.AbstractHandler;%0Aimport org.eclipse.core.commands.ExecutionEvent;%0Aimport org.eclipse.core.commands.ExecutionException;%0Aimport org.eclipse.jface.window.Window;%0Aimport org.eclipse.swt.widgets.Shell;%0Aimport org.eclipse.ui.handlers.HandlerUtil;%0A%0A/**%0A * Our sample handler extends AbstractHandler, an IHandler base class.%0A * @see org.eclipse.core.commands.IHandler%0A * @see org.eclipse.core.commands.AbstractHandler%0A */%0Apublic class SampleHandler extends AbstractHandler %7B%0A%09/**%0A%09 * The constructor.%0A%09 */%0A%09public SampleHandler() %7B%0A%09%7D%0A%0A%09/**%0A%09 * the command has been executed, so extract extract the needed information%0A%09 * from the application context.%0A%09 */%0A%09public Object execute(ExecutionEvent event) throws ExecutionException %7B%0A%09%09final Shell shell = HandlerUtil.getActiveShellChecked(event);%0A%09%09MyTitleAreaDialog dialog = new MyTitleAreaDialog(HandlerUtil.getActiveShellChecked(event));%0A%09%09dialog.create();%0A%09%09if (dialog.open() == Window.OK) %7B%0A%09%09%09%0A%09%09%7D%0A%09%09return null; %0A%09%7D%0A%7D%0A

Create SampleHandler.java