01: /* uDig - User Friendly Desktop Internet GIS client
02: * http://udig.refractions.net
03: * (C) 2004, Refractions Research Inc.
04: *
05: * This library is free software; you can redistribute it and/or
06: * modify it under the terms of the GNU Lesser General Public
07: * License as published by the Free Software Foundation;
08: * version 2.1 of the License.
09: *
10: * This library is distributed in the hope that it will be useful,
11: * but WITHOUT ANY WARRANTY; without even the implied warranty of
12: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13: * Lesser General Public License for more details.
14: */
15: package net.refractions.udig.internal.ui;
16:
17: import org.eclipse.jface.action.IAction;
18: import org.eclipse.ui.IWorkbenchWindow;
19: import org.eclipse.ui.IWorkbenchWindowActionDelegate;
20: import org.eclipse.ui.actions.ActionDelegate;
21:
22: /**
23: * Shows the dialog for sending the error log to the development team.
24: * @author chorner
25: */
26: public class ShowSendLogAction extends ActionDelegate implements
27: IWorkbenchWindowActionDelegate {
28:
29: private IWorkbenchWindow window;
30:
31: @Override
32: public void run(IAction action) {
33: SendLogDialog dialog = new SendLogDialog(window.getShell());
34: dialog.setBlockOnOpen(true);
35: dialog.open();
36: }
37:
38: public void init(IWorkbenchWindow window) {
39: this.window = window;
40: }
41:
42: }
|