Revision 20646 trunk/extensions/extRasterTools-SE/src/org/gvsig/rastertools/analysisview/ViewRasterAnalysisTocMenuEntry.java
ViewRasterAnalysisTocMenuEntry.java | ||
---|---|---|
18 | 18 |
*/ |
19 | 19 |
package org.gvsig.rastertools.analysisview; |
20 | 20 |
|
21 |
import java.awt.Component; |
|
22 | 21 |
import java.beans.PropertyChangeEvent; |
23 | 22 |
import java.beans.PropertyChangeListener; |
24 | 23 |
import java.util.ArrayList; |
... | ... | |
29 | 28 |
import org.gvsig.fmap.raster.layers.FLyrRasterSE; |
30 | 29 |
import org.gvsig.fmap.raster.layers.ILayerState; |
31 | 30 |
import org.gvsig.raster.gui.IGenericToolBarMenuItem; |
31 |
import org.gvsig.raster.util.RasterToolsUtil; |
|
32 | 32 |
import org.gvsig.rastertools.pixelincrease.PixelncreaseDialog; |
33 | 33 |
|
34 | 34 |
import com.iver.andami.PluginServices; |
... | ... | |
100 | 100 |
*/ |
101 | 101 |
public String getText() { |
102 | 102 |
if (!onView) |
103 |
return PluginServices.getText(this, "analysisview");
|
|
103 |
return RasterToolsUtil.getText(this, "analysisview");
|
|
104 | 104 |
else |
105 |
return PluginServices.getText(this, "closeanalysisview");
|
|
105 |
return RasterToolsUtil.getText(this, "closeanalysisview");
|
|
106 | 106 |
} |
107 | 107 |
|
108 | 108 |
/* |
... | ... | |
150 | 150 |
// obtenemos el mapcontrol del localizador |
151 | 151 |
for (int i = 0; i < w.length; i++) { |
152 | 152 |
if (w[i] instanceof PixelncreaseDialog) |
153 |
PluginServices.getMDIManager().closeWindow(w[i]);
|
|
153 |
RasterToolsUtil.closeWindow(w[i]);
|
|
154 | 154 |
if (w[i] instanceof View && w[i].equals(activeWindow)) |
155 | 155 |
mcCurrentLoc = ((View) w[i]).getMapOverview(); |
156 | 156 |
if (w[i] instanceof View) |
... | ... | |
160 | 160 |
if (!onView) { |
161 | 161 |
// Abrimos el inspector de pixeles |
162 | 162 |
PixelncreaseDialog pIncrease = new PixelncreaseDialog(); |
163 |
PluginServices.getMDIManager().addWindow(pIncrease);
|
|
163 |
RasterToolsUtil.addWindow(pIncrease);
|
|
164 | 164 |
|
165 | 165 |
// Cargamos el raster en el localizador |
166 | 166 |
mcCurrentLoc.getMapContext().beginAtomicEvent(); |
... | ... | |
174 | 174 |
rasterNameInLoc = lyr.getName(); |
175 | 175 |
mcCurrentLoc.getMapContext().getLayers().addLayer(lyr); |
176 | 176 |
} catch (LoadLayerException e) { |
177 |
JOptionPane.showMessageDialog((Component) PluginServices.getMainFrame(), PluginServices.getText(this, "coordenadas_erroneas"));
|
|
177 |
JOptionPane.showMessageDialog(null, RasterToolsUtil.getText(this, "coordenadas_erroneas"));
|
|
178 | 178 |
} |
179 | 179 |
mcCurrentLoc.getMapContext().endAtomicEvent(); |
180 | 180 |
} else { |
... | ... | |
197 | 197 |
* @see org.gvsig.rastertools.generictoolbar.IGenericToolBarMenuItem#getIcon() |
198 | 198 |
*/ |
199 | 199 |
public Icon getIcon() { |
200 |
return PluginServices.getIconTheme().get("analisis-icon");
|
|
200 |
return RasterToolsUtil.getIcon("analisis-icon");
|
|
201 | 201 |
} |
202 | 202 |
|
203 | 203 |
public void propertyChange(PropertyChangeEvent evt) {} |
Also available in: Unified diff