Revision 31496 branches/v2_0_0_prep/extensions/extRasterTools-SE/src/org/gvsig/rastertools/properties/control/TranspByPixelListener.java
TranspByPixelListener.java | ||
---|---|---|
33 | 33 |
|
34 | 34 |
import org.gvsig.andami.PluginServices; |
35 | 35 |
import org.gvsig.andami.ui.mdiManager.IWindow; |
36 |
import org.gvsig.app.project.documents.view.gui.BaseView;
|
|
37 |
import org.gvsig.app.project.documents.view.gui.View;
|
|
36 |
import org.gvsig.app.project.documents.view.gui.AbstractViewPanel;
|
|
37 |
import org.gvsig.app.project.documents.view.gui.DefaultViewPanel;
|
|
38 | 38 |
import org.gvsig.fmap.mapcontrol.MapControl; |
39 | 39 |
import org.gvsig.fmap.mapcontrol.tools.Behavior.Behavior; |
40 | 40 |
import org.gvsig.fmap.mapcontrol.tools.Behavior.MouseMovementBehavior; |
... | ... | |
72 | 72 |
* This is the default constructor |
73 | 73 |
*/ |
74 | 74 |
public TranspByPixelListener(TranspByPixelPanel panel) { |
75 |
BaseView view = (BaseView) PluginServices.getMDIManager().getActiveWindow();
|
|
75 |
AbstractViewPanel view = (AbstractViewPanel) PluginServices.getMDIManager().getActiveWindow();
|
|
76 | 76 |
viewName = PluginServices.getMDIManager().getWindowInfo(view).getTitle(); |
77 | 77 |
|
78 | 78 |
this.panel = panel; |
... | ... | |
151 | 151 |
* A?ade una tool a la vista para la selecci?n de RGB. |
152 | 152 |
*/ |
153 | 153 |
public void colorToolButton() { |
154 |
View theView = null;
|
|
154 |
DefaultViewPanel theView = null;
|
|
155 | 155 |
try { |
156 | 156 |
IWindow[] allViews = PluginServices.getMDIManager().getAllWindows(); |
157 | 157 |
for (int i = 0; i < allViews.length; i++) { |
158 |
if (allViews[i] instanceof View &&
|
|
159 |
PluginServices.getMDIManager().getWindowInfo((View) allViews[i]).getTitle().equals(viewName))
|
|
160 |
theView = (View) allViews[i];
|
|
158 |
if (allViews[i] instanceof DefaultViewPanel &&
|
|
159 |
PluginServices.getMDIManager().getWindowInfo((DefaultViewPanel) allViews[i]).getTitle().equals(viewName))
|
|
160 |
theView = (DefaultViewPanel) allViews[i];
|
|
161 | 161 |
} |
162 | 162 |
if (theView == null) |
163 | 163 |
return; |
Also available in: Unified diff