Revision 1231 trunk/applications/appgvSIG/src/com/iver/cit/gvsig/gui/project/ViewProperties.java
ViewProperties.java | ||
---|---|---|
51 | 51 |
import com.iver.andami.PluginServices; |
52 | 52 |
import com.iver.andami.ui.mdiManager.View; |
53 | 53 |
import com.iver.andami.ui.mdiManager.ViewInfo; |
54 |
import com.iver.cit.gvsig.gui.Dialogs.CSSelectionDialog; |
|
54 | 55 |
import com.iver.cit.gvsig.gui.layout.Attributes; |
55 | 56 |
import com.iver.cit.gvsig.project.ProjectView; |
56 | 57 |
/** |
... | ... | |
581 | 582 |
jBtnChangeProj = new JButton(); |
582 | 583 |
jBtnChangeProj.setText("..."); |
583 | 584 |
jBtnChangeProj.setPreferredSize(new java.awt.Dimension(34,16)); |
585 |
jBtnChangeProj.addActionListener(new java.awt.event.ActionListener() { |
|
586 |
public void actionPerformed(java.awt.event.ActionEvent e) { |
|
587 |
CSSelectionDialog csSelect = new CSSelectionDialog(); |
|
588 |
csSelect.setProjection(view.getProjection()); |
|
589 |
|
|
590 |
PluginServices.getMDIManager().addView(csSelect); |
|
591 |
|
|
592 |
if (csSelect.isOkPressed()) { |
|
593 |
view.getMapContext().setProjection(csSelect.getProjection()); |
|
594 |
jLblProj.setText(view.getProjection().getAbrev()); |
|
595 |
} |
|
596 |
} |
|
597 |
}); |
|
584 | 598 |
} |
585 | 599 |
return jBtnChangeProj; |
586 | 600 |
} |
Also available in: Unified diff