Revision 38564 branches/v2_0_0_prep/extensions/org.gvsig.selectiontools.app/org.gvsig.selectiontools.app.extension/src/main/java/org/gvsig/selectiontools/app/extension/SelectByCircleExtension.java

View differences:

SelectByCircleExtension.java
1 1
package org.gvsig.selectiontools.app.extension;
2 2

  
3
import org.gvsig.andami.IconThemeHelper;
3 4
import org.gvsig.andami.PluginServices;
4 5
import org.gvsig.andami.plugins.Extension;
5 6
import org.gvsig.andami.ui.mdiManager.IWindow;
......
53 54
     * @see com.iver.andami.plugins.IExtension#initialize()
54 55
     */
55 56
    public void initialize() {
56
        registerIcons();
57
    	IconThemeHelper.registerIcon("action", "selection-select-by-circle", this);
58
    	IconThemeHelper.registerIcon("cursor", "cursor-select-by-circle", this);
57 59
    }
58 60

  
59
    private void registerIcons() {
60
        PluginServices.getIconTheme().registerDefault("circle-cursor-icon",
61
            this.getClass()
62
                .getClassLoader()
63
                .getResource("images/circle-cursor-icon.png"));
64

  
65
        PluginServices.getIconTheme().registerDefault("select-by-circle-icon",
66
            this.getClass()
67
                .getClassLoader()
68
                .getResource("images/select-by-circle-icon.png"));
69
    }
70

  
71 61
    /*
72 62
     * (non-Javadoc)
73 63
     * 

Also available in: Unified diff