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
This commit is contained in:
hche10x 2006-08-26 01:51:56 +00:00
parent bf6aed4db5
commit fe1543a5eb
1 changed files with 21 additions and 24 deletions

View File

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