Revision 37817 branches/v2_0_0_prep/extensions/org.gvsig.daltransform.app.mainplugin/src/main/java/org/gvsig/daltransform/app/mainplugin/DataTransformExtension.java
DataTransformExtension.java | ||
---|---|---|
40 | 40 |
import org.gvsig.daltransform.DataTransformLocator; |
41 | 41 |
import org.gvsig.daltransform.DataTransformManager; |
42 | 42 |
import org.gvsig.daltransform.swing.JDialogDataTransformList; |
43 |
import org.gvsig.i18n.Messages; |
|
43 | 44 |
import org.gvsig.tools.swing.api.windowmanager.WindowManager; |
44 | 45 |
|
45 | 46 |
/** |
... | ... | |
64 | 65 |
|
65 | 66 |
} catch (Exception e) { |
66 | 67 |
JOptionPane.showInternalMessageDialog( |
67 |
(Component) PluginServices.getMDIManager(), PluginServices
|
|
68 |
.getText(this, "transform_create_wizard_exception"),
|
|
69 |
PluginServices.getText(this, "feature_transform"),
|
|
68 |
(Component) PluginServices.getMDIManager(), |
|
69 |
Messages.getText("transform_create_wizard_exception"),
|
|
70 |
Messages.getText("feature_transform"),
|
|
70 | 71 |
JOptionPane.ERROR_MESSAGE); |
71 | 72 |
} |
72 | 73 |
} else |
... | ... | |
75 | 76 |
// there is no layer loaded |
76 | 77 |
if (application.getActiveDocument() == null) { |
77 | 78 |
JOptionPane.showMessageDialog(null, |
78 |
"_There_is_not_any_layer_loaded.", "_View_Transforms", |
|
79 |
Messages.getText("not_featurestore_loaded"), |
|
80 |
Messages.getText("view_transforms"), |
|
79 | 81 |
JOptionPane.OK_OPTION + JOptionPane.WARNING_MESSAGE); |
80 | 82 |
return; |
81 | 83 |
} |
82 | 84 |
|
83 |
// Document doc = |
|
84 |
// application.getActiveDocument(ViewManager.TYPENAME); |
|
85 |
// |
|
86 |
// //no active document |
|
87 |
// if (doc == null) { |
|
88 |
// JOptionPane.showMessageDialog(null, |
|
89 |
// "_There_is_not_any_layer_loaded.", "_View_Transforms", |
|
90 |
// JOptionPane.OK_OPTION + JOptionPane.WARNING_MESSAGE); |
|
91 |
// return; |
|
92 |
// } |
|
93 |
|
|
94 | 85 |
JDialogDataTransformList dialog = |
95 | 86 |
manager.createJDialogDataTransformList(); |
96 | 87 |
|
97 | 88 |
ToolsWindowManager wm = new ToolsWindowManager(); |
98 |
wm.showWindow(dialog, "_View_transforms",
|
|
89 |
wm.showWindow(dialog, Messages.getText("view_transforms"),
|
|
99 | 90 |
WindowManager.MODE.WINDOW, GridBagConstraints.CENTER); |
100 | 91 |
} |
101 | 92 |
|
Also available in: Unified diff