Revision 6698 org.gvsig.raster/branches/org.gvsig.raster.2.4/org.gvsig.raster.tools/org.gvsig.raster.tools.app/org.gvsig.raster.tools.app.mainplugin/src/main/java/org/gvsig/raster/tools/app/mainplugin/AssignProjectionExtension.java
AssignProjectionExtension.java | ||
---|---|---|
47 | 47 |
|
48 | 48 |
@Override |
49 | 49 |
public void execute(String actionCommand) { |
50 |
ThreadSafeDialogsManager dlgManager = ToolsSwingLocator.getThreadSafeDialogsManager();
|
|
50 |
ApplicationManager applicationManager = ApplicationLocator.getManager();
|
|
51 | 51 |
I18nManager i18nManager = ToolsLocator.getI18nManager(); |
52 | 52 |
if (StringUtils.equalsIgnoreCase(actionCommand, "assign-projection")) { |
53 | 53 |
IView view = getActiveView(); |
... | ... | |
63 | 63 |
if (prjFile.exists()) { |
64 | 64 |
String message = "_the_content_of_the_file_XFILEX_will_be_replaced_do_you_want_to_continue"; |
65 | 65 |
int reply = |
66 |
dlgManager.confirmDialog(
|
|
66 |
applicationManager.confirmDialog(
|
|
67 | 67 |
i18nManager.getTranslation(message, new String[] { prjFile.getAbsolutePath() }), |
68 | 68 |
i18nManager.getTranslation("Assign_projection"), |
69 | 69 |
JOptionPane.YES_NO_OPTION, |
... | ... | |
77 | 77 |
} catch (IOException e) { |
78 | 78 |
logger.warn("Can't save prj file.", e); |
79 | 79 |
String message2 = "_cant_save_prj_file"; |
80 |
dlgManager.messageDialog(message2, "Assing_projection", JOptionPane.WARNING_MESSAGE);
|
|
80 |
applicationManager.messageDialog(message2, "Assing_projection", JOptionPane.WARNING_MESSAGE);
|
|
81 | 81 |
} |
82 | 82 |
} |
83 | 83 |
} |
Also available in: Unified diff