Revision 42168 trunk/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.app/org.gvsig.app.mainplugin/src/main/java/org/gvsig/app/project/documents/view/toc/gui/TOC.java
TOC.java | ||
---|---|---|
268 | 268 |
@SuppressWarnings("rawtypes") |
269 | 269 |
Enumeration enumeration = node.children(); |
270 | 270 |
//Copia necesaria para que los cambios no adulteren el estado inicial del TOC |
271 |
Map<String, Boolean> m_ItemsExpanded_copy = new HashMap<String, Boolean>(m_ItemsExpanded);
|
|
271 |
Map<String, Boolean> itemsExpanded_copy = new HashMap<String, Boolean>(m_ItemsExpanded);
|
|
272 | 272 |
|
273 | 273 |
while (enumeration.hasMoreElements()) { |
274 | 274 |
n = (DefaultMutableTreeNode) enumeration.nextElement(); |
... | ... | |
277 | 277 |
} |
278 | 278 |
TreePath path = new TreePath(m_TreeModel.getPathToRoot(n)); |
279 | 279 |
ITocItem item = (ITocItem) n.getUserObject(); |
280 |
Boolean b = (Boolean) m_ItemsExpanded_copy.get(item.getLabel());
|
|
280 |
Boolean b = (Boolean) itemsExpanded_copy.get(item.getLabel());
|
|
281 | 281 |
|
282 | 282 |
if (b == null) // No estaba en el hash todav?a: valor por defecto |
283 | 283 |
{ |
Also available in: Unified diff