Revision 21739 trunk/extensions/extRasterTools-SE/src/org/gvsig/rastertools/roi/ui/ROIManagerDialog.java
ROIManagerDialog.java | ||
---|---|---|
85 | 85 |
this.setSize(width, height); |
86 | 86 |
this.setLayout(new BorderLayout()); |
87 | 87 |
this.add(getROIsManagerPanel(), BorderLayout.CENTER); |
88 |
View view = (View) PluginServices.getMDIManager().getActiveWindow(); |
|
88 |
IWindow[] list = PluginServices.getMDIManager().getAllWindows(); |
|
89 |
View view = null; |
|
90 |
for (int i = 0; i < list.length; i++) { |
|
91 |
if(list[i] instanceof View) |
|
92 |
view = (View)list[i]; |
|
93 |
} |
|
94 |
if (view == null) |
|
95 |
return; |
|
89 | 96 |
mapControl = view.getMapControl(); |
90 | 97 |
previousTool = mapControl.getCurrentTool(); |
91 | 98 |
|
Also available in: Unified diff