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