Revision 687 org.gvsig.animation3d/trunk/org.gvsig.animation3d/org.gvsig.animation3d.app/org.gvsig.animation3d.app.mainplugin/src/main/java/org/gvsig/animation3d/app/mainplugin/Animation3DExtension.java
Animation3DExtension.java | ||
---|---|---|
145 | 145 |
if (document instanceof ViewDocument) { |
146 | 146 |
ViewDocument viewDocument = (ViewDocument) document; |
147 | 147 |
viewDocument.addPropertyChangeListener(getDocumentPropertyChangeListener()); |
148 |
animationManager.addViewDocument(viewDocument.getName(), viewDocument);
|
|
148 |
animationManager.addExtendedPropertiesSupport(viewDocument.getName(), viewDocument);
|
|
149 | 149 |
} |
150 | 150 |
} else if ("delDocument".equals(event.getPropertyName())) { |
151 | 151 |
Document document = (Document) event.getOldValue(); |
152 | 152 |
if (document instanceof ViewDocument) { |
153 | 153 |
ViewDocument viewDocument = (ViewDocument) document; |
154 |
animationManager.removeViewDocument(viewDocument.getName());
|
|
154 |
animationManager.removeExtendedPropertiesSupport(viewDocument.getName());
|
|
155 | 155 |
} |
156 | 156 |
} |
157 | 157 |
} |
... | ... | |
173 | 173 |
|
174 | 174 |
protected void doDocumentPropertyChangeListener(PropertyChangeEvent event) { |
175 | 175 |
if ("name".equals(event.getPropertyName())) { |
176 |
animationManager.changeViewDocumentName((String) event.getOldValue(),
|
|
176 |
animationManager.changeExtendedPropertiesSupportName((String) event.getOldValue(),
|
|
177 | 177 |
(String) event.getNewValue()); |
178 | 178 |
} |
179 | 179 |
} |
Also available in: Unified diff