Revision 31984 trunk/extensions/extGraph/src/org/gvsig/graph/gui/solvers/ClosestFacilityDialog.java
ClosestFacilityDialog.java | ||
---|---|---|
322 | 322 |
|
323 | 323 |
public WindowInfo getWindowInfo() { |
324 | 324 |
if(this.wi==null){ |
325 |
this.wi=new WindowInfo(WindowInfo.PALETTE); |
|
325 |
this.wi=new WindowInfo(WindowInfo.PALETTE | WindowInfo.RESIZABLE);
|
|
326 | 326 |
this.wi.setTitle(ps.getText("closest_facility")); |
327 | 327 |
this.wi.setWidth(510); |
328 | 328 |
this.wi.setHeight(400); |
... | ... | |
348 | 348 |
fileChooser.setFileSelectionMode(JFileChooser.FILES_ONLY); |
349 | 349 |
fileChooser.addChoosableFileFilter(new GenericFileFilter("shp", ps.getText("shp_files"))); |
350 | 350 |
if(fileChooser.showOpenDialog(this)==JFileChooser.APPROVE_OPTION){ |
351 |
|
|
351 | 352 |
this.cfc.loadEventsFromFile(fileChooser.getSelectedFile()); |
352 | 353 |
} |
353 | 354 |
} |
... | ... | |
391 | 392 |
fileChooser.addChoosableFileFilter(new GenericFileFilter("shp", ps.getText("shp_files"))); |
392 | 393 |
if(fileChooser.showSaveDialog(this)==JFileChooser.APPROVE_OPTION){ |
393 | 394 |
File shpFile=fileChooser.getSelectedFile(); |
395 |
if (!shpFile.getPath().toLowerCase().endsWith(".shp")) |
|
396 |
shpFile = new File(shpFile.getPath() + ".shp"); |
|
394 | 397 |
if(shpFile!=null){ |
395 | 398 |
try{ |
396 | 399 |
if(shpFile.exists()){ |
Also available in: Unified diff