01: package net.refractions.udig.project.ui.tool;
02:
03: import java.util.List;
04:
05: import org.eclipse.jface.action.IAction;
06: import org.eclipse.jface.action.IContributionItem;
07:
08: /**
09: *
10: * If the currently active <code>ModalTool</code> implements this interface
11: * the <code>MapEditor</code> asks it to contribute to the context menu programmatically.
12: *
13: *
14: * @author Vitalus
15: * @since UDIG 1.1.0
16: *
17: */
18: public interface IContextMenuContributionTool {
19:
20: /**
21: * The ModalTool may implement this method to contribute
22: * programmatially to the context menu on the MapEditor.
23: *
24: * <p>
25: * For the contribution of <code>IAction</code> use
26: * <code>contributions.add(new ActionContributionItem(IAction))</code>.
27: *
28: * @param contributions
29: */
30: public void contributeContextMenu(
31: List<IContributionItem> contributions);
32:
33: }
|