Author: ips
Date: 2009-04-24 18:37:41 -0400 (Fri, 24 Apr 2009)
New Revision: 339
Modified:
trunk/core/src/main/java/org/jboss/on/embedded/ui/NavigationContent.java
Log:
give a couple vars better names
Modified: trunk/core/src/main/java/org/jboss/on/embedded/ui/NavigationContent.java
===================================================================
--- trunk/core/src/main/java/org/jboss/on/embedded/ui/NavigationContent.java 2009-04-24
21:26:16 UTC (rev 338)
+++ trunk/core/src/main/java/org/jboss/on/embedded/ui/NavigationContent.java 2009-04-24
22:37:41 UTC (rev 339)
@@ -70,9 +70,9 @@
{
log.trace("Resource of type [" + typeOfNewResource + "] added
beneath Resource [" + parentResource
+ "] - updating nav tree...");
- JONTreeNode parentNode = findNode(getResourcePath(parentResource));
- JONTreeNode node = findNodeByResourceTypeAndParent(typeOfNewResource,
parentNode);
- node.reInitializeChildrenMap();
+ JONTreeNode parentResourceNode = findNode(getResourcePath(parentResource));
+ JONTreeNode resourceTypeNode = findNodeByResourceTypeAndParent(typeOfNewResource,
parentResourceNode);
+ resourceTypeNode.reInitializeChildrenMap();
}
@Observer(ResourceManager.RESOURCE_DELETED_EVENT)