Revision 44395 trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/java/org/gvsig/export/swing/impl/panels/SelectTargetProjectionPanel.java
SelectTargetProjectionPanel.java | ||
---|---|---|
71 | 71 |
this.projectionController.set(this.parameters.getSourceProjection()); |
72 | 72 |
} else { |
73 | 73 |
this.projectionController.set(this.parameters.getTargetProjection()); |
74 |
}
|
|
74 |
} |
|
75 | 75 |
this.rdbtnOriginalProjection.addItemListener(new ItemListener() { |
76 | 76 |
@Override |
77 | 77 |
public void itemStateChanged(ItemEvent e) { |
... | ... | |
90 | 90 |
doRadioButonsStateChanged(); |
91 | 91 |
} |
92 | 92 |
}); |
93 |
if( this.parameters.getSourceProjection()==null ) {
|
|
93 |
if (this.parameters.getSourceProjection() == null) {
|
|
94 | 94 |
this.rdbtnUserProjection.setSelected(true); |
95 |
} else if (this.parameters.getTargetProjection()==this.parameters.getSourceProjection()) {
|
|
95 |
} else if (this.parameters.getTargetProjection() == this.parameters.getSourceProjection()) {
|
|
96 | 96 |
this.rdbtnOriginalProjection.setSelected(true); |
97 |
} else if (this.parameters.getTargetProjection()==this.parameters.getContextProjection()) {
|
|
97 |
} else if (this.parameters.getTargetProjection() == this.parameters.getContextProjection()) {
|
|
98 | 98 |
this.rdbtnViewProjection.setSelected(true); |
99 | 99 |
} else { |
100 | 100 |
this.rdbtnUserProjection.setSelected(true); |
... | ... | |
151 | 151 |
|
152 | 152 |
@Override |
153 | 153 |
public void enterPanel() { |
154 |
// IProjection targetProjection = this.parameters.getTargetProjection(); |
|
155 |
// IProjection contextProjection = this.parameters.getContextProjection(); |
|
156 |
// IProjection sourceProjection = this.parameters.getSourceProjection(); |
|
157 |
// |
|
158 |
// ICoordTrans trans = this.parameters.getTargetTransformation(); |
|
159 |
// |
|
160 |
// |
|
161 |
// if (targetProjection != null) { |
|
162 |
// |
|
163 |
// this.projectionController.set(targetProjection); |
|
164 |
// } |
|
165 |
// IProjection actualProjection = this.parameters.getContextProjection(); |
|
166 |
// |
|
167 |
// if (targetProjection != actualProjection) { |
|
168 |
// rdbtnUserProjection.setEnabled(true); |
|
169 |
// } |
|
154 |
IProjection targetProjection = this.parameters.getTargetProjection(); |
|
155 |
IProjection contextProjection = this.parameters.getContextProjection(); |
|
156 |
IProjection sourceProjection = this.parameters.getSourceProjection(); |
|
157 |
|
|
158 |
ICoordTrans trans = this.parameters.getTargetTransformation(); |
|
159 |
|
|
160 |
if (targetProjection != null) { |
|
161 |
this.projectionController.set(targetProjection); |
|
162 |
} else if (contextProjection != null) { |
|
163 |
this.projectionController.set(contextProjection); |
|
164 |
} else if (sourceProjection != null) { |
|
165 |
this.projectionController.set(sourceProjection); |
|
166 |
} |
|
167 |
|
|
168 |
if (targetProjection != contextProjection) { |
|
169 |
rdbtnUserProjection.setSelected(true); |
|
170 |
} else { |
|
171 |
if (targetProjection == sourceProjection) { |
|
172 |
rdbtnOriginalProjection.setSelected(true); |
|
173 |
} else if (targetProjection == contextProjection) { |
|
174 |
rdbtnViewProjection.setSelected(true); |
|
175 |
} |
|
176 |
} |
|
170 | 177 |
} |
171 | 178 |
|
172 | 179 |
@Override |
Also available in: Unified diff