Revision 41284 trunk/org.gvsig.desktop/org.gvsig.desktop.framework/org.gvsig.andami/src/main/java/org/gvsig/andami/impl/DefaultPluginsManager.java
DefaultPluginsManager.java | ||
---|---|---|
76 | 76 |
} |
77 | 77 |
|
78 | 78 |
public PluginServices getPlugin(Object obj) { |
79 |
return this.getPlugin(obj.getClass()); |
|
79 |
if( obj instanceof IExtension ) { |
|
80 |
return this.getPlugin(obj.getClass()); |
|
81 |
} |
|
82 |
PluginClassLoader loader = (PluginClassLoader) obj.getClass().getClassLoader(); |
|
83 |
String pluginName = loader.getPluginName(); |
|
84 |
return this.getPlugin(pluginName); |
|
80 | 85 |
} |
81 | 86 |
|
82 | 87 |
public PluginServices getPlugin(String pluginName) { |
... | ... | |
238 | 243 |
} |
239 | 244 |
|
240 | 245 |
} |
246 |
|
|
247 |
public File getApplicationI18nFolder() { |
|
248 |
return new File(this.getApplicationFolder(),"i18n"); |
|
249 |
} |
|
250 |
|
|
241 | 251 |
|
242 | 252 |
|
243 | 253 |
} |
Also available in: Unified diff