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) {
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 the node is not opened yet
// 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.PACKAGE) {
path = iTree.getSelectNode().getId().getPath();
}
openModule(path);
return;
path = iTree.getSelectNode().getId().getPath();
}
if (intCategory == IDefaultMutableTreeNode.PACKAGE) {
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;
}
//