From: hche10x Date: Sat, 26 Aug 2006 01:51:56 +0000 (+0000) Subject: 1. Fix a bug about "Can't open a module/platform/package again after they are closed... X-Git-Tag: edk2-stable201903~24485 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=fe1543a5eb094c7760746614d7bdbf1bf7ceae15 1. Fix a bug about "Can't open a module/platform/package again after they are closed once" git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1389 6f19259b-4bc3-4df7-8a09-765794883524 --- diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/FrameworkWizardUI.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/FrameworkWizardUI.java index decd2e5a37..c05c9eeecb 100644 --- a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/FrameworkWizardUI.java +++ b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/FrameworkWizardUI.java @@ -1865,7 +1865,7 @@ public class FrameworkWizardUI extends IFrame implements MouseListener, TreeSele if (arg0.getSource() == this.jMenuItemEditFindLibraryClass) { this.findLibraryClass(); } - + if (arg0.getSource() == this.jMenuItemEditFindLibraryInstance) { this.findLibraryInstance(); } @@ -2477,38 +2477,35 @@ public class FrameworkWizardUI extends IFrame implements MouseListener, TreeSele Identification id = null; int intCategory = -1; String path = null; - boolean isOpen = false; + try { id = iTree.getSelectNode().getId(); intCategory = iTree.getSelectCategory(); - isOpen = iTree.getSelectNode().isOpening(); - if (!isOpen) { - // - // If the node is not opened yet - // Insert top level elements first - // - if (intCategory == IDefaultMutableTreeNode.MODULE) { + // + // If the node is not opened yet + // Insert top level elements first + // + if (intCategory == IDefaultMutableTreeNode.MODULE) { - if (intCategory == IDefaultMutableTreeNode.MODULE) { - path = iTree.getSelectNode().getId().getPath(); - } - if (intCategory == IDefaultMutableTreeNode.PACKAGE) { - path = iTree.getSelectNode().getId().getPath(); - } - openModule(path); - return; - } - if (intCategory == IDefaultMutableTreeNode.PACKAGE) { + if (intCategory == IDefaultMutableTreeNode.MODULE) { path = iTree.getSelectNode().getId().getPath(); - openPackage(path); - return; } - if (intCategory == IDefaultMutableTreeNode.PLATFORM) { + if (intCategory == IDefaultMutableTreeNode.PACKAGE) { path = iTree.getSelectNode().getId().getPath(); - openPlatform(path); - return; } + openModule(path); + return; + } + if (intCategory == IDefaultMutableTreeNode.PACKAGE) { + path = iTree.getSelectNode().getId().getPath(); + openPackage(path); + return; + } + if (intCategory == IDefaultMutableTreeNode.PLATFORM) { + path = iTree.getSelectNode().getId().getPath(); + openPlatform(path); + return; } //