Revision 1094 trunk/applications/appgvSIG/src/com/iver/cit/gvsig/project/castor/ProjectElement.java

View differences:

ProjectElement.java
139 139
     */
140 140
    public XMLEntity getXMLEntity() {
141 141
        XMLEntity xml = new XMLEntity();
142
        xml.putProperty("className",this.getClass().getName());
142 143
        xml.putProperty("comment", comment);
143 144
        xml.putProperty("creationDate", creationDate);
144 145
        xml.putProperty("name", name);
......
172 173

  
173 174
            Class clase;
174 175
			try {
175
				clase = Class.forName(xml.getStringProperty("nameClass"));
176
				clase = Class.forName(xml.getStringProperty("className"));
176 177
			pe = (ProjectElement) clase.newInstance();
177 178
			} catch (ClassNotFoundException e) {
178 179
	            NotificationManager.addError("Clase de ProjectElement no reconocida",

Also available in: Unified diff