Revision 43213 trunk/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.projection.app/org.gvsig.projection.app.proj4j/src/main/java/org/gvsig/proj/app/mainplugin/CoordinateReferenceSystemSelectionDialog.java
CoordinateReferenceSystemSelectionDialog.java | ||
---|---|---|
32 | 32 |
|
33 | 33 |
import org.cresques.cts.IProjection; |
34 | 34 |
|
35 |
import org.gvsig.andami.PluginServices; |
|
36 |
import org.gvsig.andami.ui.mdiManager.IWindow; |
|
37 |
import org.gvsig.andami.ui.mdiManager.WindowInfo; |
|
38 | 35 |
import org.gvsig.app.gui.panels.crs.ISelectCrsPanel; |
39 | 36 |
import org.gvsig.proj.CoordinateReferenceSystem; |
40 | 37 |
import org.gvsig.proj.cts.DefaultIProjection; |
... | ... | |
52 | 49 |
* @author gvSIG Team |
53 | 50 |
*/ |
54 | 51 |
public class CoordinateReferenceSystemSelectionDialog extends JPanel implements |
55 |
IWindow, ISelectCrsPanel {
|
|
52 |
ISelectCrsPanel { |
|
56 | 53 |
|
57 | 54 |
private static final long serialVersionUID = 810773451033764544L; |
58 | 55 |
private boolean okPressed = false; |
... | ... | |
95 | 92 |
} |
96 | 93 |
|
97 | 94 |
@Override |
98 |
public WindowInfo getWindowInfo() { |
|
99 |
WindowInfo m_viewinfo = |
|
100 |
new WindowInfo(WindowInfo.MODALDIALOG | WindowInfo.RESIZABLE); |
|
101 |
m_viewinfo.setTitle(PluginServices.getText(this, |
|
102 |
"selecciona_sistema_de_referencia")); |
|
103 |
Dimension dim = getPreferredSize(); |
|
104 |
m_viewinfo.setWidth(dim.width); |
|
105 |
m_viewinfo.setHeight(dim.height); |
|
106 |
return m_viewinfo; |
|
107 |
} |
|
108 |
|
|
109 |
@Override |
|
110 | 95 |
public boolean isOkPressed() { |
111 | 96 |
return okPressed; |
112 | 97 |
} |
... | ... | |
149 | 134 |
} |
150 | 135 |
|
151 | 136 |
@Override |
152 |
public Object getWindowProfile() {
|
|
153 |
return WindowInfo.DIALOG_PROFILE;
|
|
154 |
} |
|
137 |
public JComponent asJComponent() {
|
|
138 |
return this;
|
|
139 |
}
|
|
155 | 140 |
} |
Also available in: Unified diff