Revision 7823 trunk/libraries/libJCRS/src/org/gvsig/crs/gui/panels/ProjChooserPanel.java
ProjChooserPanel.java | ||
---|---|---|
36 | 36 |
private static boolean okPressed = false; |
37 | 37 |
private String abrev; |
38 | 38 |
boolean panel = false; |
39 |
boolean targetNad = false; |
|
39 | 40 |
|
40 | 41 |
public EpsgConnection connect = null; |
41 | 42 |
|
... | ... | |
104 | 105 |
else { |
105 | 106 |
okPressed = false; |
106 | 107 |
trSelect = new TRSelectionDialog(); |
108 |
|
|
107 | 109 |
trSelect.setProjection(curProj); |
108 | 110 |
|
109 | 111 |
trSelect.setLayout(new GridLayout(0,1)); |
110 | 112 |
|
111 | 113 |
PluginServices.getMDIManager().addWindow(trSelect); |
114 |
setTargetNad(trSelect.getTargetNad()); |
|
112 | 115 |
abrev = curProj.getAbrev(); |
113 | 116 |
|
114 | 117 |
if (trSelect.getProjection() != curProj) { |
... | ... | |
124 | 127 |
jLblProj.setText(abrev); |
125 | 128 |
|
126 | 129 |
} |
127 |
|
|
128 |
/* IWindow activeWindow = PluginServices.getMDIManager().getActiveWindow(); |
|
129 |
View activeView = (com.iver.cit.gvsig.gui.View) activeWindow; |
|
130 |
if(activeView.getMapControl() == null)*/ |
|
131 |
|
|
130 |
|
|
132 | 131 |
} |
133 | 132 |
}); |
134 | 133 |
} |
... | ... | |
164 | 163 |
} |
165 | 164 |
return jBtnChangeProj; |
166 | 165 |
} |
166 |
|
|
167 |
public void setTargetNad(boolean tarNad){ |
|
168 |
targetNad = tarNad; |
|
169 |
} |
|
170 |
|
|
171 |
public boolean getTargetNad(){ |
|
172 |
return targetNad; |
|
173 |
} |
|
174 |
|
|
167 | 175 |
/** |
168 | 176 |
* @return Returns the curProj. |
169 | 177 |
*/ |
Also available in: Unified diff