Revision 6897 org.gvsig.raster/branches/org.gvsig.raster.2.4/org.gvsig.raster/org.gvsig.raster.app/org.gvsig.raster.app.mainplugin/src/main/java/org/gvsig/raster/app/mainplugin/RasterExtension.java
RasterExtension.java | ||
---|---|---|
1 | 1 |
package org.gvsig.raster.app.mainplugin; |
2 | 2 |
|
3 |
import java.io.File; |
|
4 |
|
|
3 | 5 |
import org.gvsig.andami.IconThemeHelper; |
6 |
import org.gvsig.andami.PluginsLocator; |
|
4 | 7 |
import org.gvsig.andami.plugins.Extension; |
5 | 8 |
import org.gvsig.fmap.mapcontrol.MapControlLocator; |
6 | 9 |
import org.gvsig.propertypage.PropertiesPageManager; |
10 |
import org.gvsig.tools.dynobject.DynObject; |
|
7 | 11 |
|
8 | 12 |
/** |
9 | 13 |
* @author fdiaz |
... | ... | |
20 | 24 |
@Override |
21 | 25 |
public void initialize() { |
22 | 26 |
registerIcons(); |
27 |
DynObject properties = this.getPlugin().getPluginProperties(); |
|
28 |
File defaultColorTableLibraryPath = (File) properties.getDynValue("defaultColorTableLibraryPath"); |
|
29 |
if(defaultColorTableLibraryPath==null){ |
|
30 |
defaultColorTableLibraryPath = new File(PluginsLocator.getManager().getApplicationHomeFolder(),"colortable"); |
|
31 |
properties.setDynValue("defaultColorTableLibraryPath", defaultColorTableLibraryPath); |
|
32 |
} |
|
23 | 33 |
} |
24 | 34 |
|
25 | 35 |
@Override |
Also available in: Unified diff