root / branches / v2_0_0_prep / extensions / extIconThemeBase / src / org / gvsig / theme / baseicons / ExtensionIcon22Theme.java @ 38522
History | View | Annotate | Download (1.33 KB)
1 |
package org.gvsig.theme.baseicons; |
---|---|
2 |
|
3 |
import java.io.File; |
4 |
|
5 |
import org.gvsig.andami.PluginServices; |
6 |
import org.gvsig.andami.iconthemes.AbstractIconTheme; |
7 |
import org.gvsig.andami.iconthemes.IconThemeDir; |
8 |
import org.gvsig.andami.iconthemes.IconThemeManager; |
9 |
import org.gvsig.andami.plugins.Extension; |
10 |
|
11 |
|
12 |
public class ExtensionIcon22Theme extends Extension { |
13 |
|
14 |
|
15 |
public void execute(String actionCommand) { |
16 |
// TODO Auto-generated method stub
|
17 |
|
18 |
} |
19 |
|
20 |
public void initialize() { |
21 |
// TODO Auto-generated method stub
|
22 |
|
23 |
AbstractIconTheme iconTheme = new IconThemeDir(PluginServices.getIconThemeManager().getDefault());
|
24 |
|
25 |
iconTheme.setName("IconsTheme22");
|
26 |
iconTheme.setResource(new File (ExtensionIcon22Theme.getExtensionPath()+File.separator+ "images"+File.separator+"22x22")); |
27 |
PluginServices.getIconThemeManager().register(iconTheme); |
28 |
PluginServices.getIconThemeManager().setCurrent(iconTheme); |
29 |
iconTheme.load(); |
30 |
|
31 |
|
32 |
} |
33 |
|
34 |
public static String getExtensionPath() { |
35 |
String pluginName = "org.gvsig.theme.baseicons"; |
36 |
PluginServices ps = PluginServices.getPluginServices(pluginName); |
37 |
return ps.getPluginDirectory().getAbsolutePath();
|
38 |
} |
39 |
|
40 |
public boolean isEnabled() { |
41 |
// TODO Auto-generated method stub
|
42 |
return false; |
43 |
} |
44 |
|
45 |
public boolean isVisible() { |
46 |
// TODO Auto-generated method stub
|
47 |
return false; |
48 |
} |
49 |
|
50 |
} |