Revision 42937
trunk/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.coreplugin.app/org.gvsig.coreplugin.app.mainplugin/src/main/java/org/gvsig/coreplugin/preferences/general/ExtensionPage.java | ||
---|---|---|
125 | 125 |
} |
126 | 126 |
|
127 | 127 |
public void storeValues() throws StoreException { |
128 |
int pri; |
|
129 |
try { |
|
130 |
pri = Integer.parseInt(getJTextField().getText()); |
|
131 |
} catch (Exception e){ |
|
132 |
throw new StoreException( PluginServices.getText(this, "invalid_priority_value"),e); |
|
133 |
} |
|
134 |
extension.setActive(chbActivar.isSelected()); |
|
135 |
extension.setPriority(pri); |
|
136 |
// Se escribe el config de los plugins |
|
137 |
marshalPlugins(); |
|
128 |
// int pri;
|
|
129 |
// try {
|
|
130 |
// pri = Integer.parseInt(getJTextField().getText());
|
|
131 |
// } catch (Exception e){
|
|
132 |
// throw new StoreException( PluginServices.getText(this, "invalid_priority_value"),e);
|
|
133 |
// }
|
|
134 |
// extension.setActive(chbActivar.isSelected());
|
|
135 |
// extension.setPriority(pri);
|
|
136 |
// // Se escribe el config de los plugins
|
|
137 |
// marshalPlugins();
|
|
138 | 138 |
} |
139 | 139 |
|
140 | 140 |
/** |
... | ... | |
273 | 273 |
if (chbActivar == null) { |
274 | 274 |
chbActivar = new JCheckBox(); |
275 | 275 |
chbActivar.setSelected(true); |
276 |
chbActivar.setEnabled(false); |
|
276 | 277 |
chbActivar.setText(PluginServices.getText(this, "extension_activada")); |
277 | 278 |
chbActivar.addActionListener(myAction); |
278 | 279 |
} |
... | ... | |
318 | 319 |
private JTextField getJTextField() { |
319 | 320 |
if (jTextField == null) { |
320 | 321 |
jTextField = new JTextField(); |
322 |
jTextField.setEnabled(false); |
|
321 | 323 |
jTextField.setPreferredSize(new Dimension(40, 20)); |
322 | 324 |
jTextField.addKeyListener(myAction); |
323 | 325 |
} |
Also available in: Unified diff