diff options
author | hche10x <hche10x@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-08-26 01:51:56 +0000 |
---|---|---|
committer | hche10x <hche10x@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-08-26 01:51:56 +0000 |
commit | fe1543a5eb094c7760746614d7bdbf1bf7ceae15 (patch) | |
tree | aca913389b98c28840d585d8ed684c58fc7eb9c2 /Tools | |
parent | bf6aed4db555839b076cf270b42e2c6c96ae3022 (diff) | |
download | edk2-platforms-fe1543a5eb094c7760746614d7bdbf1bf7ceae15.tar.xz |
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
Diffstat (limited to 'Tools')
-rw-r--r-- | Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/FrameworkWizardUI.java | 45 |
1 files changed, 21 insertions, 24 deletions
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;
}
//
|