Revision 20288
trunk/extensions/extGeoreferencing/src/org/gvsig/georeferencing/main/Georeferencing.java | ||
---|---|---|
423 | 423 |
if(initDialog != null) { |
424 | 424 |
selectedView = initDialog.getSelectedView(); |
425 | 425 |
|
426 |
boolean findView = false; |
|
427 |
IWindow[] windowList = PluginServices.getMDIManager().getAllWindows(); |
|
428 |
for (int i = 0; i < windowList.length; i++) |
|
429 |
if(windowList[i] instanceof IView && windowList[i].getWindowInfo().getTitle().endsWith(": " + selectedView)) |
|
430 |
findView = true; |
|
431 |
|
|
432 |
if(!findView) { |
|
433 |
RasterToolsUtil.messageBoxError("no_view_found", this); |
|
434 |
return; |
|
426 |
if(initDialog.getType() == Georeferencing.WITH_MAP) { |
|
427 |
boolean findView = false; |
|
428 |
IWindow[] windowList = PluginServices.getMDIManager().getAllWindows(); |
|
429 |
for (int i = 0; i < windowList.length; i++) |
|
430 |
if(windowList[i] instanceof IView && windowList[i].getWindowInfo().getTitle().endsWith(": " + selectedView)) |
|
431 |
findView = true; |
|
432 |
|
|
433 |
if(!findView) { |
|
434 |
RasterToolsUtil.messageBoxError("no_view_found", this); |
|
435 |
return; |
|
436 |
} |
|
435 | 437 |
} |
436 | 438 |
|
437 | 439 |
lyrToGeoref = initDialog.getLayer(); |
Also available in: Unified diff