Revision 15765 trunk/extensions/extRasterTools-SE/src/org/gvsig/rastertools/RasterBarToolsModule.java

View differences:

RasterBarToolsModule.java
102 102
	 * @see com.iver.andami.plugins.IExtension#initialize()
103 103
	 */
104 104
	public void initialize() {
105
		
105
		registerIcons();
106 106
	}
107 107

  
108
	private void registerIcons(){
109
		PluginServices.getIconTheme().register(
110
				"forward-icon",
111
				this.getClass().getClassLoader().getResource("images/forward.png")
112
		);
113
		PluginServices.getIconTheme().register(
114
				"backwardward-icon",
115
				this.getClass().getClassLoader().getResource("images/backward.png")
116
		);
117
	}
118

  
108 119
	/*
109 120
	 * (non-Javadoc)
110 121
	 * @see com.iver.andami.plugins.IExtension#isEnabled()
......
126 137
			IProjectView model = vista.getModel();
127 138
			MapContext mapa = model.getMapContext();
128 139
			if (mapa.getLayers().getLayersCount() > 0) {
129
				if( mapa.getLayers().getActives().length == 1 && 
140
				if( mapa.getLayers().getActives().length == 1 &&
130 141
					mapa.getLayers().getActives()[0] instanceof FLyrRasterSE &&
131 142
					((FLyrRasterSE)mapa.getLayers().getActives()[0]).isActionEnabled(IRasterLayerActions.FLYRASTER_BAR_TOOLS))
132 143
				return true;

Also available in: Unified diff