Revision 40769 trunk/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.app/org.gvsig.app.mainplugin/src/main/java/org/gvsig/app/project/documents/view/gui/AbstractViewPanel.java
AbstractViewPanel.java | ||
---|---|---|
32 | 32 |
import javax.swing.JSplitPane; |
33 | 33 |
|
34 | 34 |
import org.cresques.cts.IProjection; |
35 |
|
|
36 | 35 |
import org.gvsig.andami.PluginServices; |
37 | 36 |
import org.gvsig.andami.messages.NotificationManager; |
38 | 37 |
import org.gvsig.andami.ui.mdiManager.IWindowTransform; |
39 | 38 |
import org.gvsig.andami.ui.mdiManager.WindowInfo; |
39 |
import org.gvsig.app.extension.ViewPropertiesExtension; |
|
40 | 40 |
import org.gvsig.app.project.ProjectManager; |
41 | 41 |
import org.gvsig.app.project.documents.gui.WindowLayout; |
42 | 42 |
import org.gvsig.app.project.documents.view.MapOverview; |
... | ... | |
82 | 82 |
protected ViewSplitPane tempMainSplit = null; |
83 | 83 |
protected JSplitPane tempSplitToc = null; |
84 | 84 |
|
85 |
public void windowActivated() { |
|
86 |
// By default do nothing |
|
85 |
|
|
86 |
// This class is to temporarily solve a problem with jcrs |
|
87 |
private class ViewProjectionContainer implements org.gvsig.andami.ProjectionContainerManager.ProjectionContainer { |
|
88 |
public Object getCurrentProjection() { |
|
89 |
return getProjection(); |
|
90 |
} |
|
91 |
public void set() { |
|
92 |
org.gvsig.andami.ProjectionContainerManager.set(this); |
|
93 |
} |
|
94 |
public void unset() { |
|
95 |
org.gvsig.andami.ProjectionContainerManager.unset(this); |
|
96 |
} |
|
87 | 97 |
} |
98 |
private ViewProjectionContainer viewProjectionContainer = new ViewProjectionContainer(); |
|
99 |
|
|
100 |
public void windowActivated() { |
|
101 |
// This code is to temporarily solve a problem with jcrs |
|
102 |
viewProjectionContainer.set(); |
|
103 |
} |
|
88 | 104 |
|
89 | 105 |
public void toPalette() { |
90 | 106 |
// By default do nothing |
... | ... | |
161 | 177 |
* @see org.gvsig.andami.ui.mdiManager.IWindowListener#windowClosed() |
162 | 178 |
*/ |
163 | 179 |
public void windowClosed() { |
180 |
viewProjectionContainer.unset(); |
|
164 | 181 |
if (movp != null) { |
165 | 182 |
PluginServices.getMDIManager().closeWindow(movp); |
166 | 183 |
} |
Also available in: Unified diff