Revision 28832 trunk/extensions/extJCRS/src/org/gvsig/crs/gui/CRSSelectionTrDialog.java

View differences:

CRSSelectionTrDialog.java
42 42

  
43 43
import javax.swing.JPanel;
44 44

  
45
import org.cresques.cts.IProjection;
45 46
import org.gvsig.crs.CrsWkt;
46 47
import org.gvsig.crs.ICrs;
47 48
import org.gvsig.crs.persistence.CrsData;
......
65 66
	
66 67
	JPanel contentPane = null;
67 68
	ICrs curProj = null;
68

  
69
	private IProjection lastProj = null;
70
	private boolean okPressed = false;
71
	
69 72
	public CRSSelectionTrDialog(ICrs proj) {
70 73
		super(false);
71 74
		curProj = proj;
......
84 87
        return (CRSMainTrPanel) getContentPanel();
85 88
    }
86 89

  
90
	/**
91
	 * @return
92
	 */
93
	public IProjection getProjection() {
94
		return (IProjection) getProjPanel().getProjection();
95
	}
96
	/**
97
	 * @param proj
98
	 */
99
	public void setProjection(IProjection proj) {
100
		lastProj = proj;
101
		getProjPanel().setProjection(proj);
102
	}
103

  
87 104
	public JPanel getContentPanel() {
88 105
	    if (contentPane == null) {	    	
89 106
	    	IWindow activeWindow = PluginServices.getMDIManager().getActiveWindow();
......
98 115
	   return contentPane;
99 116
    }
100 117
	
118
	public boolean isOkPressed() { return okPressed; }	
101 119
}

Also available in: Unified diff