Revision 7735 trunk/libraries/libJCRS/src/org/gvsig/crs/gui/CRSSelectionDialogPanel.java
CRSSelectionDialogPanel.java | ||
---|---|---|
22 | 22 |
JPanel contentPane = null; |
23 | 23 |
public CRSViewPanel vp = null; |
24 | 24 |
private IProjection lastProj = null; |
25 |
int code = 0; |
|
25 | 26 |
|
26 | 27 |
private boolean okPressed = false; |
27 | 28 |
|
... | ... | |
79 | 80 |
vp.ep.selectedRowTable = -1; |
80 | 81 |
vp.ep.setCodeCRS(-1); |
81 | 82 |
vp.getButtonAccept().setEnabled(false); |
82 |
vp.ep.getInfoCrs().setEnabled(false); |
|
83 |
vp.ep.getInfoCrs().setEnabled(false); |
|
84 |
setCode(0); |
|
83 | 85 |
} |
84 | 86 |
else { |
85 | 87 |
vp.ep.selectedRowTable = lsm.getMinSelectionIndex(); |
86 | 88 |
vp.ep.setCodeCRS(Integer.parseInt((String)vp.ep.dtm.getValueAt(vp.ep.selectedRowTable,0))); |
87 | 89 |
vp.ep.setWKT(); |
90 |
setCode(vp.ep.epsg_code); |
|
88 | 91 |
vp.getButtonAccept().setEnabled(true); |
89 | 92 |
vp.ep.getInfoCrs().setEnabled(true); |
90 | 93 |
} |
91 | 94 |
|
92 |
}
|
|
95 |
} |
|
93 | 96 |
|
97 |
public void setCode(int cod){ |
|
98 |
code = cod; |
|
99 |
} |
|
100 |
|
|
101 |
public int getCode(){ |
|
102 |
return code; |
|
103 |
} |
|
104 |
|
|
94 | 105 |
public IProjection getProjection() { |
95 | 106 |
return (IProjection) getProjPanel().getProjection(); |
96 | 107 |
} |
... | ... | |
103 | 114 |
} |
104 | 115 |
|
105 | 116 |
public String getProjectionAbrev(){ |
106 |
return (String) getProjPanel().getProjection().getAbrev();
|
|
117 |
return (String) getProjPanel().getProjection().getAbrev(); |
|
107 | 118 |
} |
108 | 119 |
|
109 | 120 |
public void actionPerformed(ActionEvent arg0) { |
Also available in: Unified diff