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.printing.ui;
16:
17: import org.eclipse.jface.action.Action;
18: import org.eclipse.ui.IWorkbenchPart;
19:
20: /**
21: * Creates an action that will be added to the PageEditor's {@link org.eclipse.gef.ui.actions.ActionRegistry}.
22: *
23: * @author Jesse
24: * @since 1.1.0
25: */
26: public interface EditActionFactory {
27: /**
28: * Creates the action that must be added to the page editor.
29: *
30: * @param part the workbench part that the action will listen to.
31: * @param policy the policy object that needs an action.
32: * @return the action that must be added to the page editor.
33: */
34: public Action create(IWorkbenchPart part, Object policy);
35: }
|