Revision 39408 branches/v2_0_0_prep/frameworks/_fwAndami/src/org/gvsig/andami/actioninfo/impl/DefaultActionInfoManager.java
DefaultActionInfoManager.java | ||
---|---|---|
21 | 21 |
private Map<String, ActionInfo>actions = new HashMap<String, ActionInfo>(); |
22 | 22 |
private int anonymousCounter = 1; |
23 | 23 |
|
24 |
public ActionInfo createAction(Class<? extends IExtension> extension, String name, String text, String command, String icon, String enableText, long position, String tip) {
|
|
24 |
public ActionInfo createAction(Class<? extends IExtension> extension, String name, String text, String command, String icon, String accelerator, long position, String tip) {
|
|
25 | 25 |
name = emptyToNull(name); |
26 | 26 |
String actionName = name; |
27 | 27 |
if( actionName==null ){ |
28 | 28 |
actionName = String.format("anonymous__%04d",this.anonymousCounter++); |
29 | 29 |
} |
30 |
ActionInfo action = new DefaultActionInfo(extension, actionName, text, command, icon, enableText, position, tip);
|
|
30 |
ActionInfo action = new DefaultActionInfo(extension, actionName, text, command, icon, accelerator, position, tip);
|
|
31 | 31 |
ActionInfo previous = this.getAction(action.getName()); |
32 | 32 |
if( previous != null ) { |
33 | 33 |
((DefaultActionInfo)action).merge(previous); |
Also available in: Unified diff