Revision 11359
trunk/applications/appgvSIG/src/com/iver/cit/gvsig/AddLayer.java | ||
---|---|---|
154 | 154 |
PluginServices.addLoaders(wm.getWriterClassLoaders()); |
155 | 155 |
} |
156 | 156 |
|
157 |
private void checkProjection(FLayer lyr, ViewPort viewPort) {
|
|
157 |
public static void checkProjection(FLayer lyr, ViewPort viewPort) {
|
|
158 | 158 |
if (lyr instanceof FLayers){ |
159 | 159 |
FLayers layers=(FLayers)lyr; |
160 | 160 |
for (int i=0;i<layers.getLayersCount();i++){ |
... | ... | |
174 | 174 |
int option = JOptionPane.YES_OPTION; |
175 | 175 |
if (proj != viewPort.getProjection()) { |
176 | 176 |
option = JOptionPane.showConfirmDialog((Component)PluginServices.getMainFrame(), PluginServices |
177 |
.getText(this, "reproyectar_aviso")+"\n"+ PluginServices.getText(this,"Capa")+": "+lyrVect.getName(), PluginServices
|
|
178 |
.getText(this, "reproyectar_pregunta"),
|
|
177 |
.getText(AddLayer.class, "reproyectar_aviso")+"\n"+ PluginServices.getText(AddLayer.class,"Capa")+": "+lyrVect.getName(), PluginServices
|
|
178 |
.getText(AddLayer.class, "reproyectar_pregunta"),
|
|
179 | 179 |
JOptionPane.YES_NO_OPTION); |
180 | 180 |
|
181 | 181 |
if (option != JOptionPane.OK_OPTION) { |
Also available in: Unified diff