Revision 6752 trunk/extensions/extGeoprocessingExtensions/src/com/iver/cit/gvsig/geoprocess/impl/xyshift/gui/GeoprocessingXYShiftPanel.java
GeoprocessingXYShiftPanel.java | ||
---|---|---|
45 | 45 |
* |
46 | 46 |
* $Id$ |
47 | 47 |
* $Log$ |
48 |
* Revision 1.3 2006-07-03 20:29:08 azabala
|
|
48 |
* Revision 1.4 2006-08-11 17:17:55 azabala
|
|
49 | 49 |
* *** empty log message *** |
50 | 50 |
* |
51 |
* Revision 1.3 2006/07/03 20:29:08 azabala |
|
52 |
* *** empty log message *** |
|
53 |
* |
|
51 | 54 |
* Revision 1.2 2006/06/29 17:58:31 azabala |
52 | 55 |
* *** empty log message *** |
53 | 56 |
* |
... | ... | |
90 | 93 |
private JCheckBox selectedOnlyCheckBox = null; |
91 | 94 |
private JPanel resultSelectionPanel = null; |
92 | 95 |
private JButton openResultButton = null; |
93 |
private JTextField jTextField = null; |
|
94 | 96 |
private JLabel jLabel2 = null; |
95 | 97 |
private JLabel xoffsetLabel = null; |
96 | 98 |
private JTextField xoffsetTextField = null; |
... | ... | |
268 | 270 |
* @return javax.swing.JTextField |
269 | 271 |
*/ |
270 | 272 |
public JTextField getFileNameResultTextField() { |
271 |
if (jTextField == null) { |
|
272 |
jTextField = new JTextField(); |
|
273 |
jTextField.setBounds(new Rectangle(135, 11, 169, 21)); |
|
273 |
if (fileNameResultTextField == null) { |
|
274 |
super.getFileNameResultTextField(). |
|
275 |
setBounds(new Rectangle(135, 11, |
|
276 |
169, 21)); |
|
274 | 277 |
} |
275 |
return jTextField;
|
|
278 |
return fileNameResultTextField;
|
|
276 | 279 |
} |
277 | 280 |
|
278 | 281 |
/** |
... | ... | |
301 | 304 |
return yoffsetTextField; |
302 | 305 |
} |
303 | 306 |
|
304 |
public File getOutputFile() { |
|
305 |
String fileName = getFileNameResultTextField().getText(); |
|
306 |
if(! fileName.endsWith(".shp")){ |
|
307 |
if(! fileName.endsWith(".")) |
|
308 |
fileName += "."; |
|
309 |
fileName += "shp"; |
|
310 |
} |
|
311 |
return new File(fileName); |
|
312 |
} |
|
313 |
|
|
314 | 307 |
} // @jve:decl-index=0:visual-constraint="13,15" |
315 | 308 |
|
Also available in: Unified diff