Revision 35176 branches/v2_0_0_prep/applications/appgvSIG/src/org/gvsig/app/extension/ZoomToSelectExtension.java
ZoomToSelectExtension.java | ||
---|---|---|
110 | 110 |
FeatureTableDocumentPanel featureTableDocumentPanel = (FeatureTableDocumentPanel)window; |
111 | 111 |
IWindow[] windows = PluginServices.getMDIManager().getAllWindows(); |
112 | 112 |
for (int i=0;i<windows.length;i++) { |
113 |
if (windows[i] instanceof DefaultViewPanel) { |
|
114 |
if (((DefaultViewPanel)windows[i]).getMapControl().getMapContext().equals( |
|
115 |
(featureTableDocumentPanel.getModel().getAssociatedLayer()).getMapContext())){ |
|
116 |
return true; |
|
117 |
} |
|
118 |
} |
|
113 |
if (windows[i] instanceof DefaultViewPanel) { |
|
114 |
if (featureTableDocumentPanel.getModel().getAssociatedLayer() != null){ |
|
115 |
if (((DefaultViewPanel)windows[i]).getMapControl().getMapContext().equals( |
|
116 |
(featureTableDocumentPanel.getModel().getAssociatedLayer()).getMapContext())){ |
|
117 |
return true; |
|
118 |
} |
|
119 |
} |
|
120 |
} |
|
119 | 121 |
} |
120 | 122 |
} |
121 | 123 |
return false; |
Also available in: Unified diff