Statistics
| Revision:

svn-gvsig-desktop / branches / v2_0_0_prep / extensions / extIconThemeBase / src / org / gvsig / theme / baseicons / ExtensionIcon16Theme.java @ 29636

History | View | Annotate | Download (1.34 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 ExtensionIcon16Theme 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
                iconTheme.setName("IconsTheme16");
25
                iconTheme.setResource( new File (ExtensionIcon16Theme.getExtensionPath()+File.separator+ "images" +File.separator+"16x16"));
26
                PluginServices.getIconThemeManager().register(iconTheme);
27
                PluginServices.getIconThemeManager().setCurrent(iconTheme);
28
                iconTheme.load();
29

    
30

    
31
        }
32

    
33
        public static String getExtensionPath() {
34
                String pluginName = "org.gvsig.theme.baseicons";
35
                PluginServices ps = PluginServices.getPluginServices(pluginName);
36
                return ps.getPluginDirectory().getAbsolutePath();
37
        }
38

    
39
        public boolean isEnabled() {
40
                // TODO Auto-generated method stub
41
                return false;
42
        }
43

    
44
        public boolean isVisible() {
45
                // TODO Auto-generated method stub
46
                return false;
47
        }
48

    
49

    
50

    
51
}