Revision 24759 branches/v2_0_0_prep/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/view/ProjectView.java
ProjectView.java | ||
---|---|---|
46 | 46 |
import java.util.TreeMap; |
47 | 47 |
import java.util.Map.Entry; |
48 | 48 |
|
49 |
import org.gvsig.fmap.data.ReadException; |
|
50 | 49 |
import org.gvsig.fmap.mapcontext.MapContext; |
51 | 50 |
import org.gvsig.fmap.mapcontext.layers.FLayer; |
52 | 51 |
import org.gvsig.fmap.mapcontext.layers.FLayers; |
53 | 52 |
import org.gvsig.fmap.mapcontext.layers.vectorial.FLyrVect; |
53 |
import org.gvsig.tools.exception.DriverException; |
|
54 | 54 |
|
55 | 55 |
import com.iver.andami.PluginServices; |
56 | 56 |
import com.iver.andami.ui.mdiManager.IWindow; |
... | ... | |
90 | 90 |
XMLEntity xml = super.getXMLEntity(); |
91 | 91 |
//xml.putProperty("nameClass", this.getClass().getName()); |
92 | 92 |
try{ |
93 |
int numViews=((Integer)ProjectDocument.NUMS.get(ProjectViewFactory.registerName)).intValue();
|
|
93 |
int numViews=(ProjectDocument.NUMS.get(ProjectViewFactory.registerName)).intValue(); |
|
94 | 94 |
|
95 | 95 |
xml.putProperty("numViews", numViews); |
96 | 96 |
xml.putProperty("m_selectedField", m_selectedField); |
... | ... | |
134 | 134 |
int numViews = xml.getIntProperty("numViews"); |
135 | 135 |
ProjectDocument.NUMS.put(ProjectViewFactory.registerName,new Integer(numViews)); |
136 | 136 |
|
137 |
if (xml.contains("m_selectedField")) |
|
137 |
if (xml.contains("m_selectedField")) {
|
|
138 | 138 |
m_selectedField = xml.getStringProperty("m_selectedField"); |
139 |
} |
|
139 | 140 |
m_typeLink = xml.getIntProperty("m_typeLink"); |
140 |
if (xml.contains("m_extLink")) |
|
141 |
if (xml.contains("m_extLink")) {
|
|
141 | 142 |
m_extLink = xml.getStringProperty("m_extLink"); |
143 |
} |
|
142 | 144 |
|
143 | 145 |
setMapContext(MapContext.createFromXML(xml.getChild(currentChild))); |
144 | 146 |
currentChild++; |
... | ... | |
175 | 177 |
|
176 | 178 |
public IWindow createWindow() { |
177 | 179 |
com.iver.cit.gvsig.project.documents.view.gui.View view = new com.iver.cit.gvsig.project.documents.view.gui.View(); |
178 |
if (windowData != null) |
|
180 |
if (windowData != null) {
|
|
179 | 181 |
view.setWindowData(windowData); |
182 |
} |
|
180 | 183 |
view.initialize(); |
181 | 184 |
view.setModel(this); |
182 | 185 |
return view; |
Also available in: Unified diff