Revision 45048 trunk/org.gvsig.desktop/org.gvsig.desktop.framework/org.gvsig.andami/src/main/java/org/gvsig/andami/actioninfo/ActionInfoManager.java

View differences:

ActionInfoManager.java
47 47
    public ActionInfo createAction(IExtension extension, String name, String text, String command, String icon, String accelerator, long position, String tip);
48 48

  
49 49
    /**
50
     * Register the action in the actions of the system, and return the action
51
     * that is registered.
50
     * Register the action in the actions of the system.
51
     * If an action with the same name is in the system and override is false
52
     * then actions are merged and the merged action is returned and remain 
53
     * in the system. If override is true and the action is already registered
54
     * the new action replace the previous action.
52 55
     *
53
     * If an action with the same name is in the system then actions are merged
54
     * and the merged action is returned and remain in the system.
55
     *
56 56
     * @param action
57
     * @param override
58
     * @return 
57 59
     */
58
    public ActionInfo registerAction(ActionInfo action);
60
    public ActionInfo registerAction(ActionInfo action, boolean override);
59 61

  
60 62
    /**
63
     * Utility method that call registerAction with override to false.
64
     * 
65
     * @param action
66
     * @return 
67
     */
68
    public ActionInfo registerAction(ActionInfo action);
69
    /**
61 70
     * Retrieve an action by name
62 71
     *
63 72
     * @param name

Also available in: Unified diff