Revision 7735 trunk/libraries/libJCRS/src/org/gvsig/crs/gui/panels/ProjChooserPanel.java

View differences:

ProjChooserPanel.java
47 47
		initialize();
48 48
	}
49 49
	
50
/*	public ProjChooserPanel(){
51
		  connect = new EpsgConnection();
52
		  connect.setConnection();
53
		 }*/
54 50

  
55 51
	/**
56 52
	 * This method initializes this
......
79 75
				TRSelectionDialog trSelect = null;
80 76
				if (!isTransPanelActive()){
81 77
					okPressed = false;
82
					 csSelect = new CSSelectionDialog();
78
					csSelect = new CSSelectionDialog();
83 79
					csSelect.setProjection(curProj);
84 80
					
85 81
					csSelect.setLayout(new GridLayout(0,1));
......
91 87

  
92 88
			        if (csSelect.isOkPressed()) {
93 89
			        	curProj = csSelect.getProjection();
94
		//	        	if(activeView.getMapControl() == null)
95
			        		abrev = csSelect.getProjectionAbrev();
90
			        	//if(activeView.getMapControl() == null)
91
			        	abrev = csSelect.getProjectionAbrev();
96 92
			        	/*else 
97 93
			        		abrev = activeView.getMapControl().getProjection().getAbrev();*/
94
			        	
98 95
			        	jLblProj.setText(curProj.getAbrev());
99 96
			        	FOpenDialog.setLastProjection(curProj);
100 97
			        	okPressed = true;
101 98
			        	if (actionListener != null) {
102 99
			        		actionListener.actionPerformed(e);
103 100
			        	}
104
			        }else
105
			        	
106
			        	jLblProj.setText(abrev);
107
			        
101
			        }else			        	
102
			        	jLblProj.setText(abrev);  
108 103
				}
109 104
				else {
110 105
					okPressed = false;

Also available in: Unified diff