Revision 40938 trunk/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.selectiontools.app/org.gvsig.selectiontools.app.mainplugin/src/main/java/org/gvsig/selectiontools/app/extension/tools/buffer/gui/BufferConfigurationPanel.java
BufferConfigurationPanel.java | ||
---|---|---|
74 | 74 |
import org.gvsig.gui.beans.incrementabletask.IncrementableTask; |
75 | 75 |
import org.gvsig.gui.beans.progresspanel.ProgressPanel; |
76 | 76 |
import org.gvsig.gui.beans.specificcaretposition.JFormattedTextFieldSCP; |
77 |
import org.gvsig.i18n.Messages; |
|
77 | 78 |
import org.gvsig.selectiontools.app.extension.tools.buffer.process.BufferSelectionProcess; |
78 | 79 |
import org.gvsig.utils.swing.JComboBox; |
79 | 80 |
|
... | ... | |
170 | 171 |
multiLayerSelectionCBox = new JCheckBox(); |
171 | 172 |
multiLayerSelectionCBox.setPreferredSize(new Dimension(330, 22)); |
172 | 173 |
multiLayerSelectionCBox.setText(PluginServices.getText(multiLayerSelectionCBox, |
173 |
"multiLayer_selection"));
|
|
174 |
"_MultiLayer_selection"));
|
|
174 | 175 |
multiLayerSelectionCBox.setSelected(true); |
175 | 176 |
multiLayerSelectionCBox.setToolTipText(PluginServices.getText(null, |
176 | 177 |
"multiLayerSelection_checkbox_TOOLTIP_HTML_explanation")); |
... | ... | |
210 | 211 |
private JFormattedTextFieldSCP getWidthTextField() { |
211 | 212 |
if (distanceTextField == null) { |
212 | 213 |
DecimalFormat decimalFormat = new DecimalFormat(); |
214 |
|
|
213 | 215 |
decimalFormat.setDecimalSeparatorAlwaysShown(true); |
214 | 216 |
decimalFormat.setMaximumIntegerDigits(12); |
215 | 217 |
decimalFormat.setMinimumIntegerDigits(1); |
216 | 218 |
decimalFormat.setMinimumFractionDigits(2); |
217 | 219 |
decimalFormat.setMaximumFractionDigits(4); |
220 |
|
|
221 |
decimalFormat.getDecimalFormatSymbols().setDecimalSeparator('.'); |
|
218 | 222 |
|
219 | 223 |
NumberFormatter numberFormatter = new NumberFormatter(); |
220 | 224 |
numberFormatter.setAllowsInvalid(false); |
... | ... | |
261 | 265 |
distanceUnitsCombo.addItem("Ya"); |
262 | 266 |
distanceUnitsCombo.addItem("ft"); |
263 | 267 |
distanceUnitsCombo.addItem("in"); |
264 |
distanceUnitsCombo.addItem("?"); |
|
268 |
// distanceUnitsCombo.addItem("?");
|
|
265 | 269 |
distanceUnitsCombo.setSelectedIndex(1); // By default in meters |
266 | 270 |
distanceUnitsCombo.setToolTipText(PluginServices.getText(null, |
267 | 271 |
"distanceUnitsLabel_TOOLTIP_HTML_explanation")); |
... | ... | |
455 | 459 |
public WindowInfo getWindowInfo() { |
456 | 460 |
if (viewInfo == null) { |
457 | 461 |
viewInfo = new WindowInfo(WindowInfo.MODALDIALOG); |
458 |
viewInfo.setTitle(PluginServices.getText(this, "configuration")); |
|
462 |
viewInfo.setTitle( |
|
463 |
Messages.getText("Select_by_buffer")); |
|
459 | 464 |
viewInfo.setWidth(Window_Width); |
460 | 465 |
viewInfo.setHeight(Window_Height); |
461 | 466 |
} |
... | ... | |
508 | 513 |
double width; |
509 | 514 |
|
510 | 515 |
try { |
511 |
width = |
|
512 |
Double.parseDouble(getWidthTextField().getText()
|
|
516 |
width = Double.parseDouble(getWidthTextField().getText());
|
|
517 |
/*
|
|
513 | 518 |
.replaceAll("(\\.)?", "") |
514 | 519 |
.replace(",", ".")); // Formats the decimal |
515 | 520 |
// number to be parsed |
521 |
* |
|
522 |
*/ |
|
516 | 523 |
} catch (Exception ex) { |
517 | 524 |
NotificationManager.showMessageError(PluginServices.getText(null, |
518 | 525 |
"Invalid_width"), |
Also available in: Unified diff