Revision 3628 org.gvsig.vcsgis/trunk/org.gvsig.vcsgis/org.gvsig.vcsgis.swing/org.gvsig.vcsgis.swing.impl/src/main/java/org/gvsig/vcsgis/swing/impl/export/VCSGisJExportImpl.java
VCSGisJExportImpl.java | ||
---|---|---|
392 | 392 |
if (canExport) { |
393 | 393 |
if (isLayer(selectedTable)) { |
394 | 394 |
this.rdbAddLayerToView.setEnabled(canExport); |
395 |
this.cboView.setEnabled(canExport && this.rdbAddLayerToView.isSelected()); |
|
395 |
// this.cboView.setEnabled(canExport && this.rdbAddLayerToView.isSelected()); |
|
396 |
|
|
397 |
if (this.cboView.getModel().getSize() > 0) { |
|
398 |
this.rdbAddLayerToView.setSelected(canExport && !this.rdbDontAddToProject.isSelected()); |
|
399 |
this.cboView.setEnabled(canExport && this.rdbAddLayerToView.isSelected()); |
|
400 |
if (this.cboView.getModel().getSize() == 2) { |
|
401 |
this.cboView.setSelectedIndex(1); |
|
402 |
} else { |
|
403 |
this.cboView.setSelectedIndex(0); |
|
404 |
} |
|
405 |
} else { |
|
406 |
this.rdbAddLayerToView.setSelected(false); |
|
407 |
this.cboView.setEnabled(false); |
|
408 |
this.cboView.setSelectedIndex(0); |
|
409 |
} |
|
410 |
|
|
396 | 411 |
} else { |
412 |
if(!this.rdbDontAddToProject.isSelected()){ |
|
413 |
this.rdbAddTableToProject.setSelected(true); |
|
414 |
} |
|
397 | 415 |
this.rdbAddLayerToView.setEnabled(false); |
398 | 416 |
this.cboView.setEnabled(false); |
417 |
this.cboView.setSelectedIndex(0); |
|
399 | 418 |
} |
400 | 419 |
} else { |
401 | 420 |
this.rdbAddLayerToView.setEnabled(false); |
Also available in: Unified diff