Revision 47433 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.swing/org.gvsig.fmap.dal.swing.impl/src/main/java/org/gvsig/fmap/dal/swing/impl/featuretype/DefaultFeatureTypePanel.java
DefaultFeatureTypePanel.java | ||
---|---|---|
22 | 22 |
import javax.swing.event.TableModelEvent; |
23 | 23 |
import javax.swing.table.AbstractTableModel; |
24 | 24 |
import org.apache.commons.lang3.StringUtils; |
25 |
import org.cresques.cts.IProjection; |
|
25 | 26 |
import org.gvsig.configurableactions.ConfigurableActionsMamager; |
26 | 27 |
import org.gvsig.expressionevaluator.ExpressionUtils; |
27 | 28 |
import org.gvsig.featureform.swing.impl.DefaultJFeatureForm; |
... | ... | |
67 | 68 |
private JSplitPane splAttributes; |
68 | 69 |
private FeatureRuleController ruleController; |
69 | 70 |
private JSplitPane splTags; |
71 |
private IProjection defaultProjection; |
|
70 | 72 |
|
71 | 73 |
private class FeatureTypeTableModel extends AbstractTableModel { |
72 | 74 |
|
... | ... | |
393 | 395 |
} |
394 | 396 |
}); |
395 | 397 |
this.descriptorPanel = new DefaultFeatureAttributePanel(); |
398 |
this.descriptorPanel.setDefaultProjection(this.defaultProjection); |
|
396 | 399 |
this.pnlField.setLayout(new BorderLayout()); |
397 | 400 |
this.pnlField.add(this.descriptorPanel, BorderLayout.CENTER); |
398 | 401 |
this.descriptorPanel.setEnabled(false); |
... | ... | |
822 | 825 |
cfgActionsManager.addConfigurableAction(CONFIGURABLE_PANEL_ID, new PreviewFormAction()); |
823 | 826 |
cfgActionsManager.addConfigurableAction(CONFIGURABLE_PANEL_ID, new ForceSynchronizeAction()); |
824 | 827 |
} |
828 |
|
|
829 |
@Override |
|
830 |
public void setDefaultProjection(IProjection projection) { |
|
831 |
this.defaultProjection = projection; |
|
832 |
if( this.descriptorPanel!=null ) { |
|
833 |
this.descriptorPanel.setDefaultProjection(projection); |
|
834 |
} |
|
835 |
} |
|
836 |
|
|
837 |
|
|
825 | 838 |
} |
Also available in: Unified diff