Revision 38564 branches/v2_0_0_prep/applications/appgvSIG/src/org/gvsig/app/extension/ViewInvertSelection.java

View differences:

ViewInvertSelection.java
95 95
 */
96 96
package org.gvsig.app.extension;
97 97

  
98
import org.gvsig.andami.IconThemeHelper;
98 99
import org.gvsig.andami.PluginServices;
99 100
import org.gvsig.andami.messages.NotificationManager;
100 101
import org.gvsig.andami.plugins.Extension;
......
125 126
    private static final Logger logger = LoggerFactory
126 127
            .getLogger(ViewInvertSelection.class);
127 128
	private DefaultViewPanel vista;
129
	
128 130
	public void initialize() {
131
		IconThemeHelper.registerIcon("action", "selection-reverse", this);
129 132
	}
130 133

  
134
	public void postInitialize() {
135
	}
136
	
131 137
	public void execute(String actionCommand) {
132 138
		ViewDocument model = vista.getModel();
133 139
		MapContext mapa = model.getMapContext();
134 140
		logger.debug("Comand : " + actionCommand);
135
		if (actionCommand.equals("INVERT_SELECTION")) {
141
		if (actionCommand.equalsIgnoreCase("selection-reverse-view")) {
136 142
			FLayer[] actives = mapa.getLayers().getActives();
137 143
			for (int i = 0; i < actives.length; i++) {
138 144
				FLayer lyr = actives[i];

Also available in: Unified diff