Revision 3102 trunk/extensions/extGeoreferencing/src/com/iver/cit/gvsig/fmap/tools/Behavior/GeoMoveBehavior.java
GeoMoveBehavior.java | ||
---|---|---|
117 | 117 |
/** |
118 | 118 |
* Funci?n que carga la capa si todav?a no lo est?. |
119 | 119 |
*/ |
120 |
private void loadLayer() throws InstantiationException{ |
|
120 |
private void loadLayer() throws InstantiationException, ClassCastException{
|
|
121 | 121 |
//Cargamos la capa |
122 | 122 |
|
123 | 123 |
View theView = (View) PluginServices.getMDIManager().getActiveView(); |
... | ... | |
164 | 164 |
}catch(InstantiationException exc){ |
165 | 165 |
JOptionPane.showMessageDialog((Component)PluginServices.getMainFrame(), |
166 | 166 |
PluginServices.getText(this, "error_capa_puntos")); |
167 |
}catch(ClassCastException exc){ |
|
168 |
JOptionPane.showMessageDialog((Component)PluginServices.getMainFrame(), |
|
169 |
PluginServices.getText(this, "error_capa_puntos")); |
|
167 | 170 |
} |
168 | 171 |
|
169 | 172 |
} |
... | ... | |
188 | 191 |
JOptionPane.showMessageDialog((Component)PluginServices.getMainFrame(), |
189 | 192 |
PluginServices.getText(this, "error_capa_puntos")); |
190 | 193 |
return; |
194 |
}catch(ClassCastException exc){ |
|
195 |
JOptionPane.showMessageDialog((Component)PluginServices.getMainFrame(), |
|
196 |
PluginServices.getText(this, "error_capa_puntos")); |
|
197 |
return; |
|
191 | 198 |
} |
192 | 199 |
|
193 | 200 |
ViewPort vp = getMapControl().getMapContext().getViewPort(); |
Also available in: Unified diff