Revision 42348 trunk/org.gvsig.desktop/org.gvsig.desktop.framework/org.gvsig.andami/src/main/java/org/gvsig/andami/actioninfo/impl/DefaultActionInfo.java
DefaultActionInfo.java | ||
---|---|---|
75 | 75 |
private Boolean previousEnabled = null; |
76 | 76 |
private SimpleIdentityManager identityManager; |
77 | 77 |
|
78 |
DefaultActionInfo(Class<? extends IExtension> extension, String name, |
|
78 |
|
|
79 |
DefaultActionInfo(IExtension extension, String name, |
|
79 | 80 |
String text, String command, String icon, String accelerator, |
80 | 81 |
long position, String tip) { |
81 |
this.extensionClass = extension; |
|
82 |
this.extensionClass = extension.getClass(); |
|
83 |
this.extension = extension; |
|
82 | 84 |
this.name = name; |
83 | 85 |
this.text = emptyToNull(text); |
84 | 86 |
this.command = emptyToNull(command); |
... | ... | |
91 | 93 |
|
92 | 94 |
fixIcon(); |
93 | 95 |
} |
96 |
|
|
97 |
DefaultActionInfo(Class<? extends IExtension> extensionClass, String name, |
|
98 |
String text, String command, String icon, String accelerator, |
|
99 |
long position, String tip) { |
|
100 |
this.extensionClass = extensionClass; |
|
101 |
this.name = name; |
|
102 |
this.text = emptyToNull(text); |
|
103 |
this.command = emptyToNull(command); |
|
104 |
this.iconName = emptyToNull(icon); |
|
105 |
this.accelerator = emptyToNull(accelerator); |
|
106 |
this.position = position; |
|
107 |
this.tip = emptyToNull(tip); |
|
108 |
this.redirections = null; |
|
109 |
this.active = true; |
|
94 | 110 |
|
111 |
fixIcon(); |
|
112 |
} |
|
113 |
|
|
95 | 114 |
public Object clone() throws CloneNotSupportedException { |
96 | 115 |
DefaultActionInfo other = (DefaultActionInfo) super.clone(); |
97 | 116 |
if (other.redirections != null) { |
Also available in: Unified diff