X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=Tools%2FJava%2FSource%2FFrameworkWizard%2Fsrc%2Forg%2Ftianocore%2Fframeworkwizard%2FFrameworkWizardUI.java;h=d57c777f1d6049a581ac09bc217d144178060d80;hp=b8bb5581c53afeca6feca9b792fd69b0628bb658;hb=14a32a70c262396b9e384b3c385159da88356e84;hpb=e421fb258cc4c908b2804554a758e14cba784ee7 diff --git a/Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/FrameworkWizardUI.java b/Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/FrameworkWizardUI.java index b8bb5581c5..d57c777f1d 100644 --- a/Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/FrameworkWizardUI.java +++ b/Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/FrameworkWizardUI.java @@ -44,6 +44,7 @@ import javax.swing.JPanel; import javax.swing.JScrollPane; import javax.swing.JSplitPane; import javax.swing.JTabbedPane; +import javax.swing.ToolTipManager; import javax.swing.event.MenuEvent; import javax.swing.event.MenuListener; import javax.swing.event.TreeSelectionEvent; @@ -73,6 +74,7 @@ import org.tianocore.frameworkwizard.far.installui.InstallStepOne; import org.tianocore.frameworkwizard.far.updateui.UpdateStepOne; import org.tianocore.frameworkwizard.module.Identifications.ModuleIdentification; import org.tianocore.frameworkwizard.module.ui.ModuleBootModes; +import org.tianocore.frameworkwizard.module.ui.ModuleBuildOptions; import org.tianocore.frameworkwizard.module.ui.ModuleDataHubs; import org.tianocore.frameworkwizard.module.ui.ModuleEvents; import org.tianocore.frameworkwizard.module.ui.ModuleExterns; @@ -120,6 +122,12 @@ public class FrameworkWizardUI extends IFrame implements KeyListener, MouseListe /// Define class Serial Version UID /// private static final long serialVersionUID = -7103240960573031772L; + + // + // Set ToolTipText Show Time + // + static { ToolTipManager.sharedInstance().setDismissDelay(18000);} + /// /// Used to record current operation target @@ -1829,7 +1837,7 @@ public class FrameworkWizardUI extends IFrame implements KeyListener, MouseListe // Close splash screen // ss.dispose(); - + // // Init the frame // @@ -1887,6 +1895,7 @@ public class FrameworkWizardUI extends IFrame implements KeyListener, MouseListe if (arg0.getSource() == this.jMenuItemFileCloseAll) { this.closeAll(); + this.refresh(); this.makeEmptyTree(); } @@ -2534,6 +2543,7 @@ public class FrameworkWizardUI extends IFrame implements KeyListener, MouseListe iTree.addNode(new IDefaultMutableTreeNode("External Defintions", IDefaultMutableTreeNode.MSA_EXTERNS, true, id, belongNode)); iTree.addNode(new IDefaultMutableTreeNode("Pcd Coded", IDefaultMutableTreeNode.MSA_PCDS, true, id, belongNode)); + iTree.addNode(new IDefaultMutableTreeNode("Build Options", IDefaultMutableTreeNode.MSA_BUILDOPTIONS, true, id, belongNode)); } private void insertPackageTreeNode(Identification id) { @@ -2881,6 +2891,10 @@ public class FrameworkWizardUI extends IFrame implements KeyListener, MouseListe ModulePCDs frmPcd = new ModulePCDs(msa); getJDesktopPaneModule().add(frmPcd, 1); break; + case IDefaultMutableTreeNode.MSA_BUILDOPTIONS: + ModuleBuildOptions frmMbo = new ModuleBuildOptions(msa); + getJDesktopPaneModule().add(frmMbo, 1); + break; } this.jTabbedPaneEditor.setSelectedIndex(0); resizeDesktopPanel(); @@ -3108,7 +3122,10 @@ public class FrameworkWizardUI extends IFrame implements KeyListener, MouseListe iTree.removeNodeChildrenByPath(item); } + GlobalData.openingModuleList.reload(this.currentOpeningModuleIndex); GlobalData.openingModuleList.setModuleOpen(this.currentOpeningModuleIndex, false); + GlobalData.openingModuleList.setModuleSaved(this.currentOpeningModuleIndex, true); + this.cleanDesktopPaneModule(); this.currentOpeningModuleIndex = -1; } @@ -3143,7 +3160,9 @@ public class FrameworkWizardUI extends IFrame implements KeyListener, MouseListe iTree.removeNodeChildrenByPath(item); } + GlobalData.openingPackageList.reload(this.currentOpeningPackageIndex); GlobalData.openingPackageList.setPackageOpen(this.currentOpeningPackageIndex, false); + GlobalData.openingPackageList.setPackageSaved(this.currentOpeningPackageIndex, true); this.cleanDesktopPanePackage(); this.currentOpeningPackageIndex = -1; } @@ -3178,7 +3197,9 @@ public class FrameworkWizardUI extends IFrame implements KeyListener, MouseListe iTree.removeNodeChildrenByPath(item); } + GlobalData.openingPlatformList.reload(this.currentOpeningPlatformIndex); GlobalData.openingPlatformList.setPlatformOpen(this.currentOpeningPlatformIndex, false); + GlobalData.openingPlatformList.setPlatformSaved(this.currentOpeningPlatformIndex, true); this.cleanDesktopPanePlatform(); this.currentOpeningPlatformIndex = -1; }