1. Fix a bug about "Can't open a module/platform/package again after they are closed...
authorhche10x <hche10x@6f19259b-4bc3-4df7-8a09-765794883524>
Sat, 26 Aug 2006 01:51:56 +0000 (01:51 +0000)
committerhche10x <hche10x@6f19259b-4bc3-4df7-8a09-765794883524>
Sat, 26 Aug 2006 01:51:56 +0000 (01:51 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1389 6f19259b-4bc3-4df7-8a09-765794883524

Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/FrameworkWizardUI.java

index decd2e5a37f134ccec8cd35d659e62ec5e0d738b..c05c9eeecbe2416f682d1bb09b4b267d52200439 100644 (file)
@@ -1865,7 +1865,7 @@ public class FrameworkWizardUI extends IFrame implements MouseListener, TreeSele
         if (arg0.getSource() == this.jMenuItemEditFindLibraryClass) {\r
             this.findLibraryClass();\r
         }\r
-        \r
+\r
         if (arg0.getSource() == this.jMenuItemEditFindLibraryInstance) {\r
             this.findLibraryInstance();\r
         }\r
@@ -2477,38 +2477,35 @@ public class FrameworkWizardUI extends IFrame implements MouseListener, TreeSele
         Identification id = null;\r
         int intCategory = -1;\r
         String path = null;\r
-        boolean isOpen = false;\r
+\r
         try {\r
             id = iTree.getSelectNode().getId();\r
             intCategory = iTree.getSelectCategory();\r
-            isOpen = iTree.getSelectNode().isOpening();\r
 \r
-            if (!isOpen) {\r
-                //              \r
-                // If the node is not opened yet\r
-                // Insert top level elements first\r
-                //\r
-                if (intCategory == IDefaultMutableTreeNode.MODULE) {\r
+            //              \r
+            // If the node is not opened yet\r
+            // Insert top level elements first\r
+            //\r
+            if (intCategory == IDefaultMutableTreeNode.MODULE) {\r
 \r
-                    if (intCategory == IDefaultMutableTreeNode.MODULE) {\r
-                        path = iTree.getSelectNode().getId().getPath();\r
-                    }\r
-                    if (intCategory == IDefaultMutableTreeNode.PACKAGE) {\r
-                        path = iTree.getSelectNode().getId().getPath();\r
-                    }\r
-                    openModule(path);\r
-                    return;\r
-                }\r
-                if (intCategory == IDefaultMutableTreeNode.PACKAGE) {\r
+                if (intCategory == IDefaultMutableTreeNode.MODULE) {\r
                     path = iTree.getSelectNode().getId().getPath();\r
-                    openPackage(path);\r
-                    return;\r
                 }\r
-                if (intCategory == IDefaultMutableTreeNode.PLATFORM) {\r
+                if (intCategory == IDefaultMutableTreeNode.PACKAGE) {\r
                     path = iTree.getSelectNode().getId().getPath();\r
-                    openPlatform(path);\r
-                    return;\r
                 }\r
+                openModule(path);\r
+                return;\r
+            }\r
+            if (intCategory == IDefaultMutableTreeNode.PACKAGE) {\r
+                path = iTree.getSelectNode().getId().getPath();\r
+                openPackage(path);\r
+                return;\r
+            }\r
+            if (intCategory == IDefaultMutableTreeNode.PLATFORM) {\r
+                path = iTree.getSelectNode().getId().getPath();\r
+                openPlatform(path);\r
+                return;\r
             }\r
 \r
             //\r