Revision 47283 trunk/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.xml2db/org.gvsig.xml2db.app/org.gvsig.xml2db.app.mainplugin/src/main/java/org/gvsig/xml2db/app/mainplugin/Xml2dbExtension.java
Xml2dbExtension.java | ||
---|---|---|
118 | 118 |
null, |
119 | 119 |
WindowManager_v2.BUTTONS_OK_CANCEL |
120 | 120 |
); |
121 |
dialog.setButtonLabel(WindowManager_v2.BUTTONS_OK, i18n.getTranslation(labelAction)); |
|
121 |
dialog.setAutoclose(false); |
|
122 |
dialog.setButtonLabel(WindowManager_v2.BUTTON_OK, i18n.getTranslation(labelAction)); |
|
123 |
dialog.setButtonLabel(WindowManager_v2.BUTTON_CANCEL, i18n.getTranslation("_Close")); |
|
122 | 124 |
panel.setDialog(dialog); |
123 | 125 |
dialog.addActionListener((ActionEvent e) -> { |
124 |
if( dialog.getAction()==WindowManager_v2.BUTTONS_OK ) { |
|
125 |
panel.performAction(); |
|
126 |
switch(dialog.getAction()) { |
|
127 |
case WindowManager_v2.BUTTON_OK: |
|
128 |
panel.performAction(); |
|
129 |
break; |
|
130 |
case WindowManager_v2.BUTTON_CANCEL: |
|
131 |
dialog.hideDialog(); |
|
132 |
break; |
|
126 | 133 |
} |
127 | 134 |
}); |
128 | 135 |
dialog.show( |
Also available in: Unified diff