1. Move resize funtions from IInternalFrame.java to Tools.java.
authorhche10x <hche10x@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 21 Aug 2006 20:05:17 +0000 (20:05 +0000)
committerhche10x <hche10x@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 21 Aug 2006 20:05:17 +0000 (20:05 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1337 6f19259b-4bc3-4df7-8a09-765794883524

28 files changed:
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/FrameworkWizardUI.java
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/common/DataType.java
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/common/Tools.java
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/common/ui/IFrame.java
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/common/ui/IInternalFrame.java
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/ui/ModuleBootModes.java
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/ui/ModuleDataHubs.java
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/ui/ModuleEvents.java
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/ui/ModuleExterns.java
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/ui/ModuleGuids.java
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/ui/ModuleHiiPackages.java
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/ui/ModuleHobs.java
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/ui/ModuleLibraryClassDefinitions.java
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/ui/ModulePCDs.java
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/ui/ModulePackageDependencies.java
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/ui/ModulePpis.java
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/ui/ModuleProtocols.java
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/ui/ModuleSourceFiles.java
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/ui/ModuleSystemTables.java
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/ui/ModuleVariables.java
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/ui/MsaHeader.java
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/packaging/ui/SpdGuidDecls.java
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/packaging/ui/SpdHeader.java
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/packaging/ui/SpdLibClassDecls.java
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/packaging/ui/SpdMsaFiles.java
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/packaging/ui/SpdPackageHeaders.java
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/packaging/ui/SpdPcdDefs.java
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/platform/ui/FpdHeader.java

index 0207e4104dbd73d5f6750960034aa5cf03440ad6..2508a895ffcb77197415f2cb43d7c9f6deb302e4 100644 (file)
@@ -17,7 +17,6 @@ package org.tianocore.frameworkwizard;
 \r
 import java.awt.event.ActionEvent;\r
 import java.awt.event.ComponentEvent;\r
-import java.awt.event.ComponentListener;\r
 import java.awt.event.MouseEvent;\r
 import java.awt.event.MouseListener;\r
 import java.awt.event.WindowEvent;\r
@@ -55,6 +54,7 @@ import org.tianocore.frameworkwizard.common.Identifications.Identification;
 import org.tianocore.frameworkwizard.common.Identifications.OpeningModuleType;\r
 import org.tianocore.frameworkwizard.common.Identifications.OpeningPackageType;\r
 import org.tianocore.frameworkwizard.common.Identifications.OpeningPlatformType;\r
+import org.tianocore.frameworkwizard.common.find.FindPPIsResult;\r
 import org.tianocore.frameworkwizard.common.ui.IDefaultMutableTreeNode;\r
 import org.tianocore.frameworkwizard.common.ui.IDesktopManager;\r
 import org.tianocore.frameworkwizard.common.ui.IFrame;\r
@@ -105,8 +105,7 @@ import org.tianocore.frameworkwizard.workspace.ui.SwitchWorkspace;
  It extends IFrame implements MouseListener, TreeSelectionListener, ComponentListener and MenuListener\r
 \r
  **/\r
-public class FrameworkWizardUI extends IFrame implements MouseListener, TreeSelectionListener, ComponentListener,\r
-                                             MenuListener {\r
+public class FrameworkWizardUI extends IFrame implements MouseListener, TreeSelectionListener, MenuListener {\r
     ///\r
     /// Define class Serial Version UID\r
     ///\r
@@ -217,8 +216,6 @@ public class FrameworkWizardUI extends IFrame implements MouseListener, TreeSele
 \r
     private JMenuItem jMenuItemEditSelectAll = null;\r
 \r
-    private JMenuItem jMenuItemEditFind = null;\r
-\r
     private JMenuItem jMenuItemEditFindNext = null;\r
 \r
     private JMenu jMenuView = null;\r
@@ -281,6 +278,20 @@ public class FrameworkWizardUI extends IFrame implements MouseListener, TreeSele
 \r
     private JMenuItem jMenuItemProjectCreateFar = null;\r
 \r
+    private JMenu jMenuEditFind = null;\r
+\r
+    private JMenuItem jMenuItemEditFindPcd = null;\r
+\r
+    private JMenuItem jMenuItemEditFindLibraryClass = null;\r
+\r
+    private JMenuItem jMenuItemEditFindPpi = null;\r
+\r
+    private JMenuItem jMenuItemEditFindProtocol = null;\r
+\r
+    private JMenuItem jMenuItemEditFindGuid = null;\r
+\r
+    private JMenuItem jMenuItemEditFindLibraryInstance = null;\r
+\r
     ///\r
     /// A static definition for this class itself\r
     ///\r
@@ -477,18 +488,18 @@ public class FrameworkWizardUI extends IFrame implements MouseListener, TreeSele
             //\r
             jMenuEdit.add(getJMenuItemEditUndo());\r
             jMenuEdit.add(getJMenuItemEditRedo());\r
-            jMenuEdit.addSeparator();\r
+            //jMenuEdit.addSeparator();\r
 \r
             jMenuEdit.add(getJMenuItemEditCut());\r
             jMenuEdit.add(getJMenuItemEditCopy());\r
             jMenuEdit.add(getJMenuItemEditPaste());\r
             jMenuEdit.add(getJMenuItemEditDelete());\r
-            jMenuEdit.addSeparator();\r
+            //jMenuEdit.addSeparator();\r
 \r
             jMenuEdit.add(getJMenuItemEditSelectAll());\r
-            jMenuEdit.add(getJMenuItemEditFind());\r
+            jMenuEdit.add(getJMenuEditFind());\r
             jMenuEdit.add(getJMenuItemEditFindNext());\r
-            jMenuEdit.addSeparator();\r
+            //jMenuEdit.addSeparator();\r
         }\r
         return jMenuEdit;\r
     }\r
@@ -654,6 +665,8 @@ public class FrameworkWizardUI extends IFrame implements MouseListener, TreeSele
             jMenuItemEditDelete = new JMenuItem();\r
             jMenuItemEditDelete.setText("Delete");\r
             jMenuItemEditDelete.setMnemonic('D');\r
+            jMenuItemEditDelete.setVisible(false);\r
+            jMenuItemEditDelete.setEnabled(false);\r
             jMenuItemEditDelete.addActionListener(this);\r
             //\r
             //Disabled first when no module is open\r
@@ -985,6 +998,7 @@ public class FrameworkWizardUI extends IFrame implements MouseListener, TreeSele
             jMenuItemEditUndo.setText("Undo");\r
             jMenuItemEditUndo.setMnemonic('U');\r
             jMenuItemEditUndo.setEnabled(false);\r
+            jMenuItemEditUndo.setVisible(false);\r
             jMenuItemEditUndo.addActionListener(this);\r
         }\r
         return jMenuItemEditUndo;\r
@@ -1002,6 +1016,7 @@ public class FrameworkWizardUI extends IFrame implements MouseListener, TreeSele
             jMenuItemEditRedo.setText("Redo");\r
             jMenuItemEditRedo.setMnemonic('R');\r
             jMenuItemEditRedo.setEnabled(false);\r
+            jMenuItemEditRedo.setVisible(false);\r
             jMenuItemEditRedo.addActionListener(this);\r
         }\r
         return jMenuItemEditRedo;\r
@@ -1019,6 +1034,7 @@ public class FrameworkWizardUI extends IFrame implements MouseListener, TreeSele
             jMenuItemEditCut.setText("Cut");\r
             jMenuItemEditCut.setMnemonic('t');\r
             jMenuItemEditCut.setEnabled(false);\r
+            jMenuItemEditCut.setVisible(false);\r
             jMenuItemEditCut.addActionListener(this);\r
         }\r
         return jMenuItemEditCut;\r
@@ -1036,6 +1052,7 @@ public class FrameworkWizardUI extends IFrame implements MouseListener, TreeSele
             jMenuItemEditCopy.setText("Copy");\r
             jMenuItemEditCopy.setMnemonic('C');\r
             jMenuItemEditCopy.setEnabled(false);\r
+            jMenuItemEditCopy.setVisible(false);\r
             jMenuItemEditCopy.addActionListener(this);\r
         }\r
         return jMenuItemEditCopy;\r
@@ -1053,6 +1070,7 @@ public class FrameworkWizardUI extends IFrame implements MouseListener, TreeSele
             jMenuItemEditPaste.setText("Paste");\r
             jMenuItemEditPaste.setMnemonic('P');\r
             jMenuItemEditPaste.setEnabled(false);\r
+            jMenuItemEditPaste.setVisible(false);\r
             jMenuItemEditPaste.addActionListener(this);\r
         }\r
         return jMenuItemEditPaste;\r
@@ -1070,28 +1088,12 @@ public class FrameworkWizardUI extends IFrame implements MouseListener, TreeSele
             jMenuItemEditSelectAll.setText("Select All");\r
             jMenuItemEditSelectAll.setMnemonic('A');\r
             jMenuItemEditSelectAll.setEnabled(false);\r
+            jMenuItemEditSelectAll.setVisible(false);\r
             jMenuItemEditSelectAll.addActionListener(this);\r
         }\r
         return jMenuItemEditSelectAll;\r
     }\r
 \r
-    /**\r
-     This method initializes jMenuItemEditFind \r
-     \r
-     @return javax.swing.JMenuItem     \r
-     \r
-     **/\r
-    private JMenuItem getJMenuItemEditFind() {\r
-        if (jMenuItemEditFind == null) {\r
-            jMenuItemEditFind = new JMenuItem();\r
-            jMenuItemEditFind.setText("Find");\r
-            jMenuItemEditFind.setMnemonic('F');\r
-            jMenuItemEditFind.setEnabled(false);\r
-            jMenuItemEditFind.addActionListener(this);\r
-        }\r
-        return jMenuItemEditFind;\r
-    }\r
-\r
     /**\r
      This method initializes jMenuItemEditFindNext     \r
      \r
@@ -1104,6 +1106,7 @@ public class FrameworkWizardUI extends IFrame implements MouseListener, TreeSele
             jMenuItemEditFindNext.setText("Find Next");\r
             jMenuItemEditFindNext.setMnemonic('n');\r
             jMenuItemEditFindNext.setEnabled(false);\r
+            jMenuItemEditFindNext.setVisible(false);\r
             jMenuItemEditFindNext.addActionListener(this);\r
         }\r
         return jMenuItemEditFindNext;\r
@@ -1642,6 +1645,119 @@ public class FrameworkWizardUI extends IFrame implements MouseListener, TreeSele
         return jMenuItemProjectCreateFar;\r
     }\r
 \r
+    /**\r
+     * This method initializes jMenuEditFind   \r
+     *         \r
+     * @return javax.swing.JMenu       \r
+     */\r
+    private JMenu getJMenuEditFind() {\r
+        if (jMenuEditFind == null) {\r
+            jMenuEditFind = new JMenu();\r
+            jMenuEditFind.setText("Find");\r
+            jMenuEditFind.setMnemonic('F');\r
+\r
+            jMenuEditFind.add(getJMenuItemEditFindPpi());\r
+            jMenuEditFind.add(getJMenuItemEditFindProtocol());\r
+            jMenuEditFind.add(getJMenuItemEditFindGuid());\r
+            jMenuEditFind.add(getJMenuItemEditFindPcd());\r
+            jMenuEditFind.addSeparator();\r
+\r
+            jMenuEditFind.add(getJMenuItemEditFindLibraryClass());\r
+            jMenuEditFind.add(getJMenuItemEditFindLibraryInstance());\r
+        }\r
+        return jMenuEditFind;\r
+    }\r
+\r
+    /**\r
+     * This method initializes jMenuItemEditFindPcd    \r
+     *         \r
+     * @return javax.swing.JMenuItem   \r
+     */\r
+    private JMenuItem getJMenuItemEditFindPcd() {\r
+        if (jMenuItemEditFindPcd == null) {\r
+            jMenuItemEditFindPcd = new JMenuItem();\r
+            jMenuItemEditFindPcd.setText("All PCD entries");\r
+            jMenuItemEditFindPcd.setMnemonic('P');\r
+            jMenuItemEditFindPcd.addActionListener(this);\r
+        }\r
+        return jMenuItemEditFindPcd;\r
+    }\r
+\r
+    /**\r
+     * This method initializes jMenuItemEditFindLibraryClass   \r
+     *         \r
+     * @return javax.swing.JMenuItem   \r
+     */\r
+    private JMenuItem getJMenuItemEditFindLibraryClass() {\r
+        if (jMenuItemEditFindLibraryClass == null) {\r
+            jMenuItemEditFindLibraryClass = new JMenuItem();\r
+            jMenuItemEditFindLibraryClass.setText("All Library Classes");\r
+            jMenuItemEditFindLibraryClass.setMnemonic('C');\r
+            jMenuItemEditFindLibraryClass.addActionListener(this);\r
+        }\r
+        return jMenuItemEditFindLibraryClass;\r
+    }\r
+\r
+    /**\r
+     * This method initializes jMenuItemEditFindPpi    \r
+     *         \r
+     * @return javax.swing.JMenuItem   \r
+     */\r
+    private JMenuItem getJMenuItemEditFindPpi() {\r
+        if (jMenuItemEditFindPpi == null) {\r
+            jMenuItemEditFindPpi = new JMenuItem();\r
+            jMenuItemEditFindPpi.setText("All PPIs");\r
+            jMenuItemEditFindPpi.setMnemonic('I');\r
+            jMenuItemEditFindPpi.addActionListener(this);\r
+        }\r
+        return jMenuItemEditFindPpi;\r
+    }\r
+\r
+    /**\r
+     * This method initializes jMenuItemEditFindProtocol       \r
+     *         \r
+     * @return javax.swing.JMenuItem   \r
+     */\r
+    private JMenuItem getJMenuItemEditFindProtocol() {\r
+        if (jMenuItemEditFindProtocol == null) {\r
+            jMenuItemEditFindProtocol = new JMenuItem();\r
+            jMenuItemEditFindProtocol.setText("All Protocols");\r
+            jMenuItemEditFindProtocol.setMnemonic('r');\r
+            jMenuItemEditFindProtocol.addActionListener(this);\r
+        }\r
+        return jMenuItemEditFindProtocol;\r
+    }\r
+\r
+    /**\r
+     * This method initializes jMenuItemEditFindGuid   \r
+     *         \r
+     * @return javax.swing.JMenuItem   \r
+     */\r
+    private JMenuItem getJMenuItemEditFindGuid() {\r
+        if (jMenuItemEditFindGuid == null) {\r
+            jMenuItemEditFindGuid = new JMenuItem();\r
+            jMenuItemEditFindGuid.setText("All GUIDs");\r
+            jMenuItemEditFindGuid.setMnemonic('G');\r
+            jMenuItemEditFindGuid.addActionListener(this);\r
+        }\r
+        return jMenuItemEditFindGuid;\r
+    }\r
+\r
+    /**\r
+     * This method initializes jMenuItemEditFindLibraryInstance        \r
+     *         \r
+     * @return javax.swing.JMenuItem   \r
+     */\r
+    private JMenuItem getJMenuItemEditFindLibraryInstance() {\r
+        if (jMenuItemEditFindLibraryInstance == null) {\r
+            jMenuItemEditFindLibraryInstance = new JMenuItem();\r
+            jMenuItemEditFindLibraryInstance.setText("All Library Instances");\r
+            jMenuItemEditFindLibraryInstance.setMnemonic('n');\r
+            jMenuItemEditFindLibraryInstance.addActionListener(this);\r
+        }\r
+        return jMenuItemEditFindLibraryInstance;\r
+    }\r
+\r
     /* (non-Javadoc)\r
      * @see org.tianocore.packaging.common.ui.IFrame#main(java.lang.String[])\r
      *\r
@@ -1692,7 +1808,6 @@ public class FrameworkWizardUI extends IFrame implements MouseListener, TreeSele
         this.setSize(DataType.MAIN_FRAME_PREFERRED_SIZE_WIDTH, DataType.MAIN_FRAME_PREFERRED_SIZE_HEIGHT);\r
         this.setResizable(true);\r
         this.setJMenuBar(getjJMenuBar());\r
-        this.addComponentListener(this);\r
         this.setContentPane(getJContentPane());\r
         this.setTitle(DataType.PROJECT_NAME + " " + DataType.PROJECT_VERSION + " " + "- ["\r
                       + Workspace.getCurrentWorkspace() + "]");\r
@@ -1730,67 +1845,71 @@ public class FrameworkWizardUI extends IFrame implements MouseListener, TreeSele
         //\r
         // Operations of Menu\r
         //\r
-        if (arg0.getSource() == jMenuItemFileNew) {\r
+        if (arg0.getSource() == this.jMenuItemFileNew) {\r
             this.fileNew();\r
         }\r
 \r
-        if (arg0.getSource() == jMenuItemFileOpen) {\r
+        if (arg0.getSource() == this.jMenuItemFileOpen) {\r
             this.open();\r
         }\r
 \r
-        if (arg0.getSource() == jMenuItemFileClose) {\r
+        if (arg0.getSource() == this.jMenuItemFileClose) {\r
             this.close();\r
         }\r
 \r
-        if (arg0.getSource() == jMenuItemFileCloseAll) {\r
+        if (arg0.getSource() == this.jMenuItemFileCloseAll) {\r
             this.closeAll();\r
         }\r
 \r
-        if (arg0.getSource() == jMenuItemFileSave) {\r
+        if (arg0.getSource() == this.jMenuItemFileSave) {\r
             this.save();\r
         }\r
 \r
-        if (arg0.getSource() == jMenuItemFileSaveAs) {\r
+        if (arg0.getSource() == this.jMenuItemFileSaveAs) {\r
             this.saveAs();\r
         }\r
 \r
-        if (arg0.getSource() == jMenuItemFileSaveAll) {\r
+        if (arg0.getSource() == this.jMenuItemFileSaveAll) {\r
             this.saveAll();\r
         }\r
 \r
-        if (arg0.getSource() == jMenuItemFileExit) {\r
+        if (arg0.getSource() == this.jMenuItemFileExit) {\r
             this.exit();\r
         }\r
 \r
-        if (arg0.getSource() == jMenuItemProjectChangeWorkspace) {\r
-            changeWorkspace();\r
+        if (arg0.getSource() == this.jMenuItemEditFindPpi) {\r
+            this.findPpi();\r
+        }\r
+\r
+        if (arg0.getSource() == this.jMenuItemProjectChangeWorkspace) {\r
+            this.changeWorkspace();\r
         }\r
 \r
-        if (arg0.getSource() == jMenuItemProjectCreateFar) {\r
-            createFar();\r
+        if (arg0.getSource() == this.jMenuItemProjectCreateFar) {\r
+            this.createFar();\r
         }\r
 \r
-        if (arg0.getSource() == jMenuItemProjectInstallFar) {\r
-            installFar();\r
+        if (arg0.getSource() == this.jMenuItemProjectInstallFar) {\r
+            this.installFar();\r
         }\r
 \r
-        if (arg0.getSource() == jMenuItemProjectRemoveFar) {\r
-            removeFar();\r
+        if (arg0.getSource() == this.jMenuItemProjectRemoveFar) {\r
+            this.removeFar();\r
         }\r
 \r
-        if (arg0.getSource() == jMenuItemProjectUpdateFar) {\r
-            updateFar();\r
+        if (arg0.getSource() == this.jMenuItemProjectUpdateFar) {\r
+            this.updateFar();\r
         }\r
 \r
-        if (arg0.getSource() == jMenuItemToolsClone) {\r
-            cloneItem();\r
+        if (arg0.getSource() == this.jMenuItemToolsClone) {\r
+            this.cloneItem();\r
         }\r
 \r
-        if (arg0.getSource() == jMenuItemToolsToolChainConfiguration) {\r
-            setupToolChainConfiguration();\r
+        if (arg0.getSource() == this.jMenuItemToolsToolChainConfiguration) {\r
+            this.setupToolChainConfiguration();\r
         }\r
 \r
-        if (arg0.getSource() == jMenuItemHelpAbout) {\r
+        if (arg0.getSource() == this.jMenuItemHelpAbout) {\r
             About a = new About(this, true);\r
             int result = a.showDialog();\r
             if (result == DataType.RETURN_TYPE_OK) {\r
@@ -2014,8 +2133,8 @@ public class FrameworkWizardUI extends IFrame implements MouseListener, TreeSele
         //\r
         // Add new MsaHeader node to the tree\r
         //\r
-        IDefaultMutableTreeNode node = new IDefaultMutableTreeNode(mid.getName(), IDefaultMutableTreeNode.MODULE,\r
-                                                                   true, mid);\r
+        IDefaultMutableTreeNode node = new IDefaultMutableTreeNode(mid.getName(), IDefaultMutableTreeNode.MODULE, true,\r
+                                                                   mid);\r
         //\r
         // First find the module belongs to which package\r
         //\r
@@ -2276,26 +2395,13 @@ public class FrameworkWizardUI extends IFrame implements MouseListener, TreeSele
         }\r
     }\r
 \r
-    public void componentHidden(ComponentEvent arg0) {\r
-        // TODO Auto-generated method stub\r
-\r
-    }\r
-\r
-    public void componentMoved(ComponentEvent arg0) {\r
-        // TODO Auto-generated method stub\r
-\r
-    }\r
-\r
     public void componentResized(ComponentEvent arg0) {\r
-        this.jSplitPane.setSize(this.getWidth() - DataType.MAIN_FRAME_WIDTH_SPACING,\r
-                                this.getHeight() - DataType.MAIN_FRAME_HEIGHT_SPACING);\r
-        this.jSplitPane.validate();\r
-        resizeDesktopPanel();\r
-    }\r
-\r
-    public void componentShown(ComponentEvent arg0) {\r
-        // TODO Auto-generated method stub\r
-\r
+        if (this.jSplitPane != null) {\r
+            this.jSplitPane.setSize(this.getWidth() - DataType.MAIN_FRAME_WIDTH_SPACING,\r
+                                    this.getHeight() - DataType.MAIN_FRAME_HEIGHT_SPACING);\r
+            this.jSplitPane.validate();\r
+            resizeDesktopPanel();\r
+        }\r
     }\r
 \r
     /**\r
@@ -2667,18 +2773,18 @@ public class FrameworkWizardUI extends IFrame implements MouseListener, TreeSele
                         Log.err("Upddate MsaFiles of Package", e.getMessage());\r
                         return;\r
                     }\r
-                    \r
+\r
                     //\r
                     // Update Global Data\r
                     //\r
                     GlobalData.openingModuleList.insertToOpeningModuleList(mid, smb.getMsa());\r
                     GlobalData.vModuleList.addElement(mid);\r
-                    \r
+\r
                     //\r
                     // Create new node on the tree\r
                     //\r
                     addModuleToTree(mid);\r
-                    \r
+\r
                     //\r
                     // Open the node\r
                     //\r
@@ -2989,6 +3095,15 @@ public class FrameworkWizardUI extends IFrame implements MouseListener, TreeSele
         System.exit(0);\r
     }\r
 \r
+    /**\r
+     To find all defined PPIs in workspace\r
+     \r
+     **/\r
+    private void findPpi() {\r
+        FindPPIsResult fpr = FindPPIsResult.getInstance();\r
+        fpr.setVisible(true);\r
+    }\r
+\r
     /**\r
      Switch current workspace to others\r
      \r
index 30454ec1a30ceaad6d6e819905a10de3a0894326..9170c9c3366b043419a27aa8548c162fba2cfde3 100644 (file)
@@ -168,6 +168,10 @@ public class DataType {
     public static final int SPACE_TO_BOTTOM_FOR_REMOVE_BUTTON = 30;\r
 \r
     public static final int SPACE_TO_BOTTOM_FOR_UPDATE_BUTTON = 30;\r
+    \r
+    public static final int SPACE_TO_RIGHT_FOR_CLOSE_BUTTON = 240;\r
+    \r
+    public static final int SPACE_TO_BOTTOM_FOR_CLOSE_BUTTON = 25;\r
 \r
     public static final int SPACE_TO_RIGHT_FOR_PROTOCOL_NOTIFY = 25;\r
 \r
index a5345019ea2bb20e616265591dbcb3f84453c124..983201f5a0f11444dcd15d254b314af7b262e835 100644 (file)
@@ -15,6 +15,7 @@
 \r
 package org.tianocore.frameworkwizard.common;\r
 \r
+import java.awt.Component;\r
 import java.io.File;\r
 import java.text.SimpleDateFormat;\r
 import java.util.Date;\r
@@ -494,4 +495,126 @@ public class Tools {
         PlatformIdentification id = new PlatformIdentification(name, guid, version, path);\r
         return id;\r
     }\r
+    \r
+    /**\r
+     * To reset the width of input component via container width\r
+     * \r
+     * @param c\r
+     * @param containerWidth\r
+     * \r
+     */\r
+    public static void resizeComponentWidth(Component c, int containerWidth, int preferredWidth) {\r
+        int newWidth = c.getPreferredSize().width + (containerWidth - preferredWidth);\r
+        if (newWidth < c.getPreferredSize().width) {\r
+            newWidth = c.getPreferredSize().width;\r
+        }\r
+        c.setSize(new java.awt.Dimension(newWidth, c.getHeight()));\r
+        c.validate();\r
+    }\r
+\r
+    /**\r
+     * To reset the height of input component via container height\r
+     * \r
+     * @param c\r
+     * @param containerHeight\r
+     * \r
+     */\r
+    public static void resizeComponentHeight(Component c, int containerHeight, int preferredHeight) {\r
+        int newHeight = c.getPreferredSize().height + (containerHeight - preferredHeight);\r
+        if (newHeight < c.getPreferredSize().height) {\r
+            newHeight = c.getPreferredSize().height;\r
+        }\r
+        c.setSize(new java.awt.Dimension(c.getWidth(), newHeight));\r
+        c.validate();\r
+    }\r
+\r
+    /**\r
+     * To reset the size of input component via container size\r
+     * \r
+     * @param c\r
+     * @param containerWidth\r
+     * @param containerHeight\r
+     * \r
+     */\r
+    public static void resizeComponent(Component c, int containerWidth, int containerHeight, int preferredWidth,\r
+                                int preferredHeight) {\r
+        resizeComponentWidth(c, containerWidth, preferredWidth);\r
+        resizeComponentHeight(c, containerHeight, preferredHeight);\r
+    }\r
+\r
+    /**\r
+     * To relocate the input component\r
+     * \r
+     * @param c\r
+     * @param containerWidth\r
+     * @param spaceToRight\r
+     * \r
+     */\r
+    public static void relocateComponentX(Component c, int containerWidth, int preferredWidth, int spaceToRight) {\r
+        int intGapToRight = spaceToRight + c.getPreferredSize().width;\r
+        int newLocationX = containerWidth - intGapToRight;\r
+        if (newLocationX < preferredWidth - intGapToRight) {\r
+            newLocationX = preferredWidth - intGapToRight;\r
+        }\r
+        c.setLocation(newLocationX, c.getLocation().y);\r
+        c.validate();\r
+    }\r
+\r
+    /**\r
+     * To relocate the input component\r
+     * \r
+     * @param c\r
+     * @param containerHeight\r
+     * @param spaceToBottom\r
+     * \r
+     */\r
+    public static void relocateComponentY(Component c, int containerHeight, int preferredHeight, int spaceToBottom) {\r
+        int intGapToBottom = spaceToBottom + c.getPreferredSize().height;\r
+        int newLocationY = containerHeight - intGapToBottom;\r
+        if (newLocationY < preferredHeight - spaceToBottom) {\r
+            newLocationY = preferredHeight - spaceToBottom;\r
+        }\r
+        c.setLocation(c.getLocation().x, newLocationY);\r
+        c.validate();\r
+    }\r
+\r
+    /**\r
+     * To relocate the input component\r
+     * \r
+     * @param c\r
+     * @param containerWidth\r
+     * @param containerHeight\r
+     * @param spaceToBottom\r
+     * @param spaceToRight\r
+     * \r
+     */\r
+    public static void relocateComponent(Component c, int containerWidth, int containerHeight, int preferredWidht,\r
+                                  int preferredHeight, int spaceToRight, int spaceToBottom) {\r
+        relocateComponentX(c, containerWidth, preferredWidht, spaceToRight);\r
+        relocateComponentY(c, containerHeight, preferredHeight, spaceToBottom);\r
+    }\r
+    \r
+    /**\r
+     Move the component to the center of screen \r
+         \r
+     @param c\r
+     @param width\r
+    \r
+    **/\r
+    public static void centerComponent(Component c, int width) {\r
+        c.setLocation(width / 2 - c.getWidth() / 2, c.getLocation().y);\r
+        c.validate();\r
+    }\r
+    \r
+    /**\r
+    Move the component to the center of screen and adjust the y location \r
+        \r
+    @param c\r
+    @param width\r
+   \r
+   **/\r
+   public static void centerComponent(Component c, int width, int containerHeight, int preferredHeight, int spaceToBottom) {\r
+       relocateComponentY(c, containerHeight, preferredHeight, spaceToBottom);\r
+       centerComponent(c, width);\r
+   }\r
 }\r
index 61d70d30438bb8a5d684af1914fde0411cb3a7d4..198841941bd0fbfa6c1df9eeed3f53fd3397d159 100644 (file)
@@ -19,6 +19,8 @@ import java.awt.Dimension;
 import java.awt.Toolkit;\r
 import java.awt.event.ActionEvent;\r
 import java.awt.event.ActionListener;\r
+import java.awt.event.ComponentEvent;\r
+import java.awt.event.ComponentListener;\r
 import java.awt.event.WindowEvent;\r
 import java.awt.event.WindowListener;\r
 \r
@@ -30,7 +32,7 @@ import javax.swing.JOptionPane;
  It extends JFrame implements ActionListener and WindowListener\r
  \r
  **/\r
-public class IFrame extends JFrame implements ActionListener, WindowListener {\r
+public class IFrame extends JFrame implements ActionListener, WindowListener, ComponentListener {\r
 \r
     ///\r
     /// Define class Serial Version UID\r
@@ -77,6 +79,7 @@ public class IFrame extends JFrame implements ActionListener, WindowListener {
         this.setResizable(false);\r
         this.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);\r
         this.addWindowListener(this);\r
+        this.addComponentListener(this);\r
     }\r
 \r
     /**\r
@@ -238,4 +241,24 @@ public class IFrame extends JFrame implements ActionListener, WindowListener {
    public void showDialog() {\r
        this.setVisible(true);\r
    }\r
+\r
+public void componentResized(ComponentEvent arg0) {\r
+    // TODO Auto-generated method stub\r
+    \r
+}\r
+\r
+public void componentMoved(ComponentEvent arg0) {\r
+    // TODO Auto-generated method stub\r
+    \r
+}\r
+\r
+public void componentShown(ComponentEvent arg0) {\r
+    // TODO Auto-generated method stub\r
+    \r
+}\r
+\r
+public void componentHidden(ComponentEvent arg0) {\r
+    // TODO Auto-generated method stub\r
+    \r
+}\r
 }\r
index b5f09da0835ceab63005e78053b0238c96445e98..df58142728fc151c3d780d0630ab273f6816f981 100644 (file)
@@ -15,7 +15,6 @@
 \r
 package org.tianocore.frameworkwizard.common.ui;\r
 \r
-import java.awt.Component;\r
 import java.awt.event.ActionEvent;\r
 import java.awt.event.ActionListener;\r
 import java.awt.event.ComponentEvent;\r
@@ -154,104 +153,6 @@ public class IInternalFrame extends JInternalFrame implements ActionListener, Co
 \r
     }\r
 \r
-    /**\r
-     * To reset the width of input component via container width\r
-     * \r
-     * @param c\r
-     * @param containerWidth\r
-     * \r
-     */\r
-    public void resizeComponentWidth(Component c, int containerWidth, int preferredWidth) {\r
-        int newWidth = c.getPreferredSize().width + (containerWidth - preferredWidth);\r
-        if (newWidth < c.getPreferredSize().width) {\r
-            newWidth = c.getPreferredSize().width;\r
-        }\r
-        c.setSize(new java.awt.Dimension(newWidth, c.getHeight()));\r
-        c.validate();\r
-    }\r
-\r
-    /**\r
-     * To reset the height of input component via container height\r
-     * \r
-     * @param c\r
-     * @param containerHeight\r
-     * \r
-     */\r
-    public void resizeComponentHeight(Component c, int containerHeight, int preferredHeight) {\r
-        int newHeight = c.getPreferredSize().height + (containerHeight - preferredHeight);\r
-        if (newHeight < c.getPreferredSize().height) {\r
-            newHeight = c.getPreferredSize().height;\r
-        }\r
-        c.setSize(new java.awt.Dimension(c.getWidth(), newHeight));\r
-        c.validate();\r
-    }\r
-\r
-    /**\r
-     * To reset the size of input component via container size\r
-     * \r
-     * @param c\r
-     * @param containerWidth\r
-     * @param containerHeight\r
-     * \r
-     */\r
-    public void resizeComponent(Component c, int containerWidth, int containerHeight, int preferredWidth,\r
-                                int preferredHeight) {\r
-        resizeComponentWidth(c, containerWidth, preferredWidth);\r
-        resizeComponentHeight(c, containerHeight, preferredHeight);\r
-    }\r
-\r
-    /**\r
-     * To relocate the input component\r
-     * \r
-     * @param c\r
-     * @param containerWidth\r
-     * @param spaceToRight\r
-     * \r
-     */\r
-    public void relocateComponentX(Component c, int containerWidth, int preferredWidth, int spaceToRight) {\r
-        int intGapToRight = spaceToRight + c.getPreferredSize().width;\r
-        int newLocationX = containerWidth - intGapToRight;\r
-        if (newLocationX < preferredWidth - intGapToRight) {\r
-            newLocationX = preferredWidth - intGapToRight;\r
-        }\r
-        c.setLocation(newLocationX, c.getLocation().y);\r
-        c.validate();\r
-    }\r
-\r
-    /**\r
-     * To relocate the input component\r
-     * \r
-     * @param c\r
-     * @param containerHeight\r
-     * @param spaceToBottom\r
-     * \r
-     */\r
-    public void relocateComponentY(Component c, int containerHeight, int preferredHeight, int spaceToBottom) {\r
-        int intGapToBottom = spaceToBottom + c.getPreferredSize().height;\r
-        int newLocationY = containerHeight - intGapToBottom;\r
-        if (newLocationY < preferredHeight - spaceToBottom) {\r
-            newLocationY = preferredHeight - spaceToBottom;\r
-        }\r
-        c.setLocation(c.getLocation().x, newLocationY);\r
-        c.validate();\r
-    }\r
-\r
-    /**\r
-     * To relocate the input component\r
-     * \r
-     * @param c\r
-     * @param containerWidth\r
-     * @param containerHeight\r
-     * @param spaceToBottom\r
-     * @param spaceToRight\r
-     * \r
-     */\r
-    public void relocateComponent(Component c, int containerWidth, int containerHeight, int preferredWidht,\r
-                                  int preferredHeight, int spaceToRight, int spaceToBottom) {\r
-        relocateComponentX(c, containerWidth, preferredWidht, spaceToRight);\r
-        relocateComponentY(c, containerHeight, preferredHeight, spaceToBottom);\r
-    }\r
-\r
     public void showStandard() {\r
 \r
     }\r
index d1ec613c8613214807251e09a400730364d17e58..46b333efbec7a07f0da5dc8d61d21720831695f9 100644 (file)
@@ -449,12 +449,16 @@ public class ModuleBootModes extends IInternalFrame {
         int intPreferredWidth = this.getJContentPane().getPreferredSize().width;\r
         int intPreferredHeight = this.getJContentPane().getPreferredSize().height;\r
 \r
-        resizeComponent(this.jScrollPaneTable, intCurrentWidth, intCurrentHeight, intPreferredWidth, intPreferredHeight);\r
-        relocateComponent(this.jButtonAdd, intCurrentWidth, intCurrentHeight, intPreferredWidth, intPreferredHeight,\r
-                          DataType.SPACE_TO_RIGHT_FOR_ADD_BUTTON, DataType.SPACE_TO_BOTTOM_FOR_ADD_BUTTON);\r
-        relocateComponent(this.jButtonRemove, intCurrentWidth, intCurrentHeight, intPreferredWidth, intPreferredHeight,\r
-                          DataType.SPACE_TO_RIGHT_FOR_REMOVE_BUTTON, DataType.SPACE_TO_BOTTOM_FOR_REMOVE_BUTTON);\r
-        relocateComponent(this.jButtonUpdate, intCurrentWidth, intCurrentHeight, intPreferredWidth, intPreferredHeight,\r
-                          DataType.SPACE_TO_RIGHT_FOR_UPDATE_BUTTON, DataType.SPACE_TO_BOTTOM_FOR_UPDATE_BUTTON);\r
+        Tools.resizeComponent(this.jScrollPaneTable, intCurrentWidth, intCurrentHeight, intPreferredWidth,\r
+                              intPreferredHeight);\r
+        Tools.relocateComponent(this.jButtonAdd, intCurrentWidth, intCurrentHeight, intPreferredWidth,\r
+                                intPreferredHeight, DataType.SPACE_TO_RIGHT_FOR_ADD_BUTTON,\r
+                                DataType.SPACE_TO_BOTTOM_FOR_ADD_BUTTON);\r
+        Tools.relocateComponent(this.jButtonRemove, intCurrentWidth, intCurrentHeight, intPreferredWidth,\r
+                                intPreferredHeight, DataType.SPACE_TO_RIGHT_FOR_REMOVE_BUTTON,\r
+                                DataType.SPACE_TO_BOTTOM_FOR_REMOVE_BUTTON);\r
+        Tools.relocateComponent(this.jButtonUpdate, intCurrentWidth, intCurrentHeight, intPreferredWidth,\r
+                                intPreferredHeight, DataType.SPACE_TO_RIGHT_FOR_UPDATE_BUTTON,\r
+                                DataType.SPACE_TO_BOTTOM_FOR_UPDATE_BUTTON);\r
     }\r
 }\r
index 585eaec33facd263b2757f08ef861cece1dbbd05..85a4a93a5f21cb6a933a2cfe6c03825f5772b2d4 100644 (file)
@@ -446,12 +446,16 @@ public class ModuleDataHubs extends IInternalFrame {
         int intPreferredWidth = this.getJContentPane().getPreferredSize().width;\r
         int intPreferredHeight = this.getJContentPane().getPreferredSize().height;\r
 \r
-        resizeComponent(this.jScrollPaneTable, intCurrentWidth, intCurrentHeight, intPreferredWidth, intPreferredHeight);\r
-        relocateComponent(this.jButtonAdd, intCurrentWidth, intCurrentHeight, intPreferredWidth, intPreferredHeight,\r
-                          DataType.SPACE_TO_RIGHT_FOR_ADD_BUTTON, DataType.SPACE_TO_BOTTOM_FOR_ADD_BUTTON);\r
-        relocateComponent(this.jButtonRemove, intCurrentWidth, intCurrentHeight, intPreferredWidth, intPreferredHeight,\r
-                          DataType.SPACE_TO_RIGHT_FOR_REMOVE_BUTTON, DataType.SPACE_TO_BOTTOM_FOR_REMOVE_BUTTON);\r
-        relocateComponent(this.jButtonUpdate, intCurrentWidth, intCurrentHeight, intPreferredWidth, intPreferredHeight,\r
-                          DataType.SPACE_TO_RIGHT_FOR_UPDATE_BUTTON, DataType.SPACE_TO_BOTTOM_FOR_UPDATE_BUTTON);\r
+        Tools.resizeComponent(this.jScrollPaneTable, intCurrentWidth, intCurrentHeight, intPreferredWidth,\r
+                              intPreferredHeight);\r
+        Tools.relocateComponent(this.jButtonAdd, intCurrentWidth, intCurrentHeight, intPreferredWidth,\r
+                                intPreferredHeight, DataType.SPACE_TO_RIGHT_FOR_ADD_BUTTON,\r
+                                DataType.SPACE_TO_BOTTOM_FOR_ADD_BUTTON);\r
+        Tools.relocateComponent(this.jButtonRemove, intCurrentWidth, intCurrentHeight, intPreferredWidth,\r
+                                intPreferredHeight, DataType.SPACE_TO_RIGHT_FOR_REMOVE_BUTTON,\r
+                                DataType.SPACE_TO_BOTTOM_FOR_REMOVE_BUTTON);\r
+        Tools.relocateComponent(this.jButtonUpdate, intCurrentWidth, intCurrentHeight, intPreferredWidth,\r
+                                intPreferredHeight, DataType.SPACE_TO_RIGHT_FOR_UPDATE_BUTTON,\r
+                                DataType.SPACE_TO_BOTTOM_FOR_UPDATE_BUTTON);\r
     }\r
 }\r
index e70933499af7a5d40b2ae7b7847ef49b483652b5..c8f34c6d1db983b37f5edb8d35e13cb1d1596caf 100644 (file)
@@ -514,12 +514,16 @@ public class ModuleEvents extends IInternalFrame {
         int intPreferredWidth = this.getJContentPane().getPreferredSize().width;\r
         int intPreferredHeight = this.getJContentPane().getPreferredSize().height;\r
 \r
-        resizeComponent(this.jScrollPaneTable, intCurrentWidth, intCurrentHeight, intPreferredWidth, intPreferredHeight);\r
-        relocateComponent(this.jButtonAdd, intCurrentWidth, intCurrentHeight, intPreferredWidth, intPreferredHeight,\r
-                          DataType.SPACE_TO_RIGHT_FOR_ADD_BUTTON, DataType.SPACE_TO_BOTTOM_FOR_ADD_BUTTON);\r
-        relocateComponent(this.jButtonRemove, intCurrentWidth, intCurrentHeight, intPreferredWidth, intPreferredHeight,\r
-                          DataType.SPACE_TO_RIGHT_FOR_REMOVE_BUTTON, DataType.SPACE_TO_BOTTOM_FOR_REMOVE_BUTTON);\r
-        relocateComponent(this.jButtonUpdate, intCurrentWidth, intCurrentHeight, intPreferredWidth, intPreferredHeight,\r
-                          DataType.SPACE_TO_RIGHT_FOR_UPDATE_BUTTON, DataType.SPACE_TO_BOTTOM_FOR_UPDATE_BUTTON);\r
+        Tools.resizeComponent(this.jScrollPaneTable, intCurrentWidth, intCurrentHeight, intPreferredWidth,\r
+                              intPreferredHeight);\r
+        Tools.relocateComponent(this.jButtonAdd, intCurrentWidth, intCurrentHeight, intPreferredWidth,\r
+                                intPreferredHeight, DataType.SPACE_TO_RIGHT_FOR_ADD_BUTTON,\r
+                                DataType.SPACE_TO_BOTTOM_FOR_ADD_BUTTON);\r
+        Tools.relocateComponent(this.jButtonRemove, intCurrentWidth, intCurrentHeight, intPreferredWidth,\r
+                                intPreferredHeight, DataType.SPACE_TO_RIGHT_FOR_REMOVE_BUTTON,\r
+                                DataType.SPACE_TO_BOTTOM_FOR_REMOVE_BUTTON);\r
+        Tools.relocateComponent(this.jButtonUpdate, intCurrentWidth, intCurrentHeight, intPreferredWidth,\r
+                                intPreferredHeight, DataType.SPACE_TO_RIGHT_FOR_UPDATE_BUTTON,\r
+                                DataType.SPACE_TO_BOTTOM_FOR_UPDATE_BUTTON);\r
     }\r
 }\r
index c90a6ba7404477cdc6e703968a7ede48c36d4c7d..d885028bd8ef4d1a59630e9152616e38fc166e03 100644 (file)
@@ -592,12 +592,16 @@ public class ModuleExterns extends IInternalFrame implements ItemListener {
         int intPreferredWidth = this.getJContentPane().getPreferredSize().width;\r
         int intPreferredHeight = this.getJContentPane().getPreferredSize().height;\r
 \r
-        resizeComponent(this.jScrollPaneTable, intCurrentWidth, intCurrentHeight, intPreferredWidth, intPreferredHeight);\r
-        relocateComponent(this.jButtonAdd, intCurrentWidth, intCurrentHeight, intPreferredWidth, intPreferredHeight,\r
-                          DataType.SPACE_TO_RIGHT_FOR_ADD_BUTTON, DataType.SPACE_TO_BOTTOM_FOR_ADD_BUTTON);\r
-        relocateComponent(this.jButtonRemove, intCurrentWidth, intCurrentHeight, intPreferredWidth, intPreferredHeight,\r
-                          DataType.SPACE_TO_RIGHT_FOR_REMOVE_BUTTON, DataType.SPACE_TO_BOTTOM_FOR_REMOVE_BUTTON);\r
-        relocateComponent(this.jButtonUpdate, intCurrentWidth, intCurrentHeight, intPreferredWidth, intPreferredHeight,\r
-                          DataType.SPACE_TO_RIGHT_FOR_UPDATE_BUTTON, DataType.SPACE_TO_BOTTOM_FOR_UPDATE_BUTTON);\r
+        Tools.resizeComponent(this.jScrollPaneTable, intCurrentWidth, intCurrentHeight, intPreferredWidth,\r
+                              intPreferredHeight);\r
+        Tools.relocateComponent(this.jButtonAdd, intCurrentWidth, intCurrentHeight, intPreferredWidth,\r
+                                intPreferredHeight, DataType.SPACE_TO_RIGHT_FOR_ADD_BUTTON,\r
+                                DataType.SPACE_TO_BOTTOM_FOR_ADD_BUTTON);\r
+        Tools.relocateComponent(this.jButtonRemove, intCurrentWidth, intCurrentHeight, intPreferredWidth,\r
+                                intPreferredHeight, DataType.SPACE_TO_RIGHT_FOR_REMOVE_BUTTON,\r
+                                DataType.SPACE_TO_BOTTOM_FOR_REMOVE_BUTTON);\r
+        Tools.relocateComponent(this.jButtonUpdate, intCurrentWidth, intCurrentHeight, intPreferredWidth,\r
+                                intPreferredHeight, DataType.SPACE_TO_RIGHT_FOR_UPDATE_BUTTON,\r
+                                DataType.SPACE_TO_BOTTOM_FOR_UPDATE_BUTTON);\r
     }\r
 }\r
index 472d501eacc48a54305b55ffbb4dfee2a06b1129..3724525a24fa8ae5d6abac893015a015a3462fc4 100644 (file)
@@ -442,12 +442,16 @@ public class ModuleGuids extends IInternalFrame {
         int intPreferredWidth = this.getJContentPane().getPreferredSize().width;\r
         int intPreferredHeight = this.getJContentPane().getPreferredSize().height;\r
 \r
-        resizeComponent(this.jScrollPaneTable, intCurrentWidth, intCurrentHeight, intPreferredWidth, intPreferredHeight);\r
-        relocateComponent(this.jButtonAdd, intCurrentWidth, intCurrentHeight, intPreferredWidth, intPreferredHeight,\r
-                          DataType.SPACE_TO_RIGHT_FOR_ADD_BUTTON, DataType.SPACE_TO_BOTTOM_FOR_ADD_BUTTON);\r
-        relocateComponent(this.jButtonRemove, intCurrentWidth, intCurrentHeight, intPreferredWidth, intPreferredHeight,\r
-                          DataType.SPACE_TO_RIGHT_FOR_REMOVE_BUTTON, DataType.SPACE_TO_BOTTOM_FOR_REMOVE_BUTTON);\r
-        relocateComponent(this.jButtonUpdate, intCurrentWidth, intCurrentHeight, intPreferredWidth, intPreferredHeight,\r
-                          DataType.SPACE_TO_RIGHT_FOR_UPDATE_BUTTON, DataType.SPACE_TO_BOTTOM_FOR_UPDATE_BUTTON);\r
+        Tools.resizeComponent(this.jScrollPaneTable, intCurrentWidth, intCurrentHeight, intPreferredWidth,\r
+                              intPreferredHeight);\r
+        Tools.relocateComponent(this.jButtonAdd, intCurrentWidth, intCurrentHeight, intPreferredWidth,\r
+                                intPreferredHeight, DataType.SPACE_TO_RIGHT_FOR_ADD_BUTTON,\r
+                                DataType.SPACE_TO_BOTTOM_FOR_ADD_BUTTON);\r
+        Tools.relocateComponent(this.jButtonRemove, intCurrentWidth, intCurrentHeight, intPreferredWidth,\r
+                                intPreferredHeight, DataType.SPACE_TO_RIGHT_FOR_REMOVE_BUTTON,\r
+                                DataType.SPACE_TO_BOTTOM_FOR_REMOVE_BUTTON);\r
+        Tools.relocateComponent(this.jButtonUpdate, intCurrentWidth, intCurrentHeight, intPreferredWidth,\r
+                                intPreferredHeight, DataType.SPACE_TO_RIGHT_FOR_UPDATE_BUTTON,\r
+                                DataType.SPACE_TO_BOTTOM_FOR_UPDATE_BUTTON);\r
     }\r
 }\r
index 27e2470731399a8a48780c7c3a8c37ed6fa5dc21..a1efd28263ca03f25228cee67a90db3e9f9505c9 100644 (file)
@@ -446,12 +446,16 @@ public class ModuleHiiPackages extends IInternalFrame {
         int intPreferredWidth = this.getJContentPane().getPreferredSize().width;\r
         int intPreferredHeight = this.getJContentPane().getPreferredSize().height;\r
 \r
-        resizeComponent(this.jScrollPaneTable, intCurrentWidth, intCurrentHeight, intPreferredWidth, intPreferredHeight);\r
-        relocateComponent(this.jButtonAdd, intCurrentWidth, intCurrentHeight, intPreferredWidth, intPreferredHeight,\r
-                          DataType.SPACE_TO_RIGHT_FOR_ADD_BUTTON, DataType.SPACE_TO_BOTTOM_FOR_ADD_BUTTON);\r
-        relocateComponent(this.jButtonRemove, intCurrentWidth, intCurrentHeight, intPreferredWidth, intPreferredHeight,\r
-                          DataType.SPACE_TO_RIGHT_FOR_REMOVE_BUTTON, DataType.SPACE_TO_BOTTOM_FOR_REMOVE_BUTTON);\r
-        relocateComponent(this.jButtonUpdate, intCurrentWidth, intCurrentHeight, intPreferredWidth, intPreferredHeight,\r
-                          DataType.SPACE_TO_RIGHT_FOR_UPDATE_BUTTON, DataType.SPACE_TO_BOTTOM_FOR_UPDATE_BUTTON);\r
+        Tools.resizeComponent(this.jScrollPaneTable, intCurrentWidth, intCurrentHeight, intPreferredWidth,\r
+                              intPreferredHeight);\r
+        Tools.relocateComponent(this.jButtonAdd, intCurrentWidth, intCurrentHeight, intPreferredWidth,\r
+                                intPreferredHeight, DataType.SPACE_TO_RIGHT_FOR_ADD_BUTTON,\r
+                                DataType.SPACE_TO_BOTTOM_FOR_ADD_BUTTON);\r
+        Tools.relocateComponent(this.jButtonRemove, intCurrentWidth, intCurrentHeight, intPreferredWidth,\r
+                                intPreferredHeight, DataType.SPACE_TO_RIGHT_FOR_REMOVE_BUTTON,\r
+                                DataType.SPACE_TO_BOTTOM_FOR_REMOVE_BUTTON);\r
+        Tools.relocateComponent(this.jButtonUpdate, intCurrentWidth, intCurrentHeight, intPreferredWidth,\r
+                                intPreferredHeight, DataType.SPACE_TO_RIGHT_FOR_UPDATE_BUTTON,\r
+                                DataType.SPACE_TO_BOTTOM_FOR_UPDATE_BUTTON);\r
     }\r
 }\r
index ca6cdc42f35fa5950d0a31d97d3b383886e2599d..06ca286a2cf6ed95a7c62e45b88a429fd18dcd0c 100644 (file)
@@ -448,12 +448,16 @@ public class ModuleHobs extends IInternalFrame {
         int intPreferredWidth = this.getJContentPane().getPreferredSize().width;\r
         int intPreferredHeight = this.getJContentPane().getPreferredSize().height;\r
 \r
-        resizeComponent(this.jScrollPaneTable, intCurrentWidth, intCurrentHeight, intPreferredWidth, intPreferredHeight);\r
-        relocateComponent(this.jButtonAdd, intCurrentWidth, intCurrentHeight, intPreferredWidth, intPreferredHeight,\r
-                          DataType.SPACE_TO_RIGHT_FOR_ADD_BUTTON, DataType.SPACE_TO_BOTTOM_FOR_ADD_BUTTON);\r
-        relocateComponent(this.jButtonRemove, intCurrentWidth, intCurrentHeight, intPreferredWidth, intPreferredHeight,\r
-                          DataType.SPACE_TO_RIGHT_FOR_REMOVE_BUTTON, DataType.SPACE_TO_BOTTOM_FOR_REMOVE_BUTTON);\r
-        relocateComponent(this.jButtonUpdate, intCurrentWidth, intCurrentHeight, intPreferredWidth, intPreferredHeight,\r
-                          DataType.SPACE_TO_RIGHT_FOR_UPDATE_BUTTON, DataType.SPACE_TO_BOTTOM_FOR_UPDATE_BUTTON);\r
+        Tools.resizeComponent(this.jScrollPaneTable, intCurrentWidth, intCurrentHeight, intPreferredWidth,\r
+                              intPreferredHeight);\r
+        Tools.relocateComponent(this.jButtonAdd, intCurrentWidth, intCurrentHeight, intPreferredWidth,\r
+                                intPreferredHeight, DataType.SPACE_TO_RIGHT_FOR_ADD_BUTTON,\r
+                                DataType.SPACE_TO_BOTTOM_FOR_ADD_BUTTON);\r
+        Tools.relocateComponent(this.jButtonRemove, intCurrentWidth, intCurrentHeight, intPreferredWidth,\r
+                                intPreferredHeight, DataType.SPACE_TO_RIGHT_FOR_REMOVE_BUTTON,\r
+                                DataType.SPACE_TO_BOTTOM_FOR_REMOVE_BUTTON);\r
+        Tools.relocateComponent(this.jButtonUpdate, intCurrentWidth, intCurrentHeight, intPreferredWidth,\r
+                                intPreferredHeight, DataType.SPACE_TO_RIGHT_FOR_UPDATE_BUTTON,\r
+                                DataType.SPACE_TO_BOTTOM_FOR_UPDATE_BUTTON);\r
     }\r
 }\r
index 28cf57e5823bd15515023da2e64ea3a236863da9..1decd0fa32b87e8bed4a98f885f84a3da9b4f7e7 100644 (file)
@@ -458,12 +458,16 @@ public class ModuleLibraryClassDefinitions extends IInternalFrame {
         int intPreferredWidth = this.getJContentPane().getPreferredSize().width;\r
         int intPreferredHeight = this.getJContentPane().getPreferredSize().height;\r
 \r
-        resizeComponent(this.jScrollPaneTable, intCurrentWidth, intCurrentHeight, intPreferredWidth, intPreferredHeight);\r
-        relocateComponent(this.jButtonAdd, intCurrentWidth, intCurrentHeight, intPreferredWidth, intPreferredHeight,\r
-                          DataType.SPACE_TO_RIGHT_FOR_ADD_BUTTON, DataType.SPACE_TO_BOTTOM_FOR_ADD_BUTTON);\r
-        relocateComponent(this.jButtonRemove, intCurrentWidth, intCurrentHeight, intPreferredWidth, intPreferredHeight,\r
-                          DataType.SPACE_TO_RIGHT_FOR_REMOVE_BUTTON, DataType.SPACE_TO_BOTTOM_FOR_REMOVE_BUTTON);\r
-        relocateComponent(this.jButtonUpdate, intCurrentWidth, intCurrentHeight, intPreferredWidth, intPreferredHeight,\r
-                          DataType.SPACE_TO_RIGHT_FOR_UPDATE_BUTTON, DataType.SPACE_TO_BOTTOM_FOR_UPDATE_BUTTON);\r
+        Tools.resizeComponent(this.jScrollPaneTable, intCurrentWidth, intCurrentHeight, intPreferredWidth,\r
+                              intPreferredHeight);\r
+        Tools.relocateComponent(this.jButtonAdd, intCurrentWidth, intCurrentHeight, intPreferredWidth,\r
+                                intPreferredHeight, DataType.SPACE_TO_RIGHT_FOR_ADD_BUTTON,\r
+                                DataType.SPACE_TO_BOTTOM_FOR_ADD_BUTTON);\r
+        Tools.relocateComponent(this.jButtonRemove, intCurrentWidth, intCurrentHeight, intPreferredWidth,\r
+                                intPreferredHeight, DataType.SPACE_TO_RIGHT_FOR_REMOVE_BUTTON,\r
+                                DataType.SPACE_TO_BOTTOM_FOR_REMOVE_BUTTON);\r
+        Tools.relocateComponent(this.jButtonUpdate, intCurrentWidth, intCurrentHeight, intPreferredWidth,\r
+                                intPreferredHeight, DataType.SPACE_TO_RIGHT_FOR_UPDATE_BUTTON,\r
+                                DataType.SPACE_TO_BOTTOM_FOR_UPDATE_BUTTON);\r
     }\r
 }\r
index 85fe67ca3af0c54b24c55680f413f04d3a53f7d6..3531399a42902aa1a78ba3f975b1e2b1ca82f144 100644 (file)
@@ -462,12 +462,16 @@ public class ModulePCDs extends IInternalFrame {
         int intPreferredWidth = this.getJContentPane().getPreferredSize().width;\r
         int intPreferredHeight = this.getJContentPane().getPreferredSize().height;\r
 \r
-        resizeComponent(this.jScrollPaneTable, intCurrentWidth, intCurrentHeight, intPreferredWidth, intPreferredHeight);\r
-        relocateComponent(this.jButtonAdd, intCurrentWidth, intCurrentHeight, intPreferredWidth, intPreferredHeight,\r
-                          DataType.SPACE_TO_RIGHT_FOR_ADD_BUTTON, DataType.SPACE_TO_BOTTOM_FOR_ADD_BUTTON);\r
-        relocateComponent(this.jButtonRemove, intCurrentWidth, intCurrentHeight, intPreferredWidth, intPreferredHeight,\r
-                          DataType.SPACE_TO_RIGHT_FOR_REMOVE_BUTTON, DataType.SPACE_TO_BOTTOM_FOR_REMOVE_BUTTON);\r
-        relocateComponent(this.jButtonUpdate, intCurrentWidth, intCurrentHeight, intPreferredWidth, intPreferredHeight,\r
-                          DataType.SPACE_TO_RIGHT_FOR_UPDATE_BUTTON, DataType.SPACE_TO_BOTTOM_FOR_UPDATE_BUTTON);\r
+        Tools.resizeComponent(this.jScrollPaneTable, intCurrentWidth, intCurrentHeight, intPreferredWidth,\r
+                              intPreferredHeight);\r
+        Tools.relocateComponent(this.jButtonAdd, intCurrentWidth, intCurrentHeight, intPreferredWidth,\r
+                                intPreferredHeight, DataType.SPACE_TO_RIGHT_FOR_ADD_BUTTON,\r
+                                DataType.SPACE_TO_BOTTOM_FOR_ADD_BUTTON);\r
+        Tools.relocateComponent(this.jButtonRemove, intCurrentWidth, intCurrentHeight, intPreferredWidth,\r
+                                intPreferredHeight, DataType.SPACE_TO_RIGHT_FOR_REMOVE_BUTTON,\r
+                                DataType.SPACE_TO_BOTTOM_FOR_REMOVE_BUTTON);\r
+        Tools.relocateComponent(this.jButtonUpdate, intCurrentWidth, intCurrentHeight, intPreferredWidth,\r
+                                intPreferredHeight, DataType.SPACE_TO_RIGHT_FOR_UPDATE_BUTTON,\r
+                                DataType.SPACE_TO_BOTTOM_FOR_UPDATE_BUTTON);\r
     }\r
 }\r
index 7464035ba8a2beb2f94af646e86c3aafd7b92b6e..563d3c88eaf2545950d70585fc6aec21edd4efc5 100644 (file)
@@ -456,12 +456,16 @@ public class ModulePackageDependencies extends IInternalFrame {
         int intPreferredWidth = this.getJContentPane().getPreferredSize().width;\r
         int intPreferredHeight = this.getJContentPane().getPreferredSize().height;\r
 \r
-        resizeComponent(this.jScrollPaneTable, intCurrentWidth, intCurrentHeight, intPreferredWidth, intPreferredHeight);\r
-        relocateComponent(this.jButtonAdd, intCurrentWidth, intCurrentHeight, intPreferredWidth, intPreferredHeight,\r
-                          DataType.SPACE_TO_RIGHT_FOR_ADD_BUTTON, DataType.SPACE_TO_BOTTOM_FOR_ADD_BUTTON);\r
-        relocateComponent(this.jButtonRemove, intCurrentWidth, intCurrentHeight, intPreferredWidth, intPreferredHeight,\r
-                          DataType.SPACE_TO_RIGHT_FOR_REMOVE_BUTTON, DataType.SPACE_TO_BOTTOM_FOR_REMOVE_BUTTON);\r
-        relocateComponent(this.jButtonUpdate, intCurrentWidth, intCurrentHeight, intPreferredWidth, intPreferredHeight,\r
-                          DataType.SPACE_TO_RIGHT_FOR_UPDATE_BUTTON, DataType.SPACE_TO_BOTTOM_FOR_UPDATE_BUTTON);\r
+        Tools.resizeComponent(this.jScrollPaneTable, intCurrentWidth, intCurrentHeight, intPreferredWidth,\r
+                              intPreferredHeight);\r
+        Tools.relocateComponent(this.jButtonAdd, intCurrentWidth, intCurrentHeight, intPreferredWidth,\r
+                                intPreferredHeight, DataType.SPACE_TO_RIGHT_FOR_ADD_BUTTON,\r
+                                DataType.SPACE_TO_BOTTOM_FOR_ADD_BUTTON);\r
+        Tools.relocateComponent(this.jButtonRemove, intCurrentWidth, intCurrentHeight, intPreferredWidth,\r
+                                intPreferredHeight, DataType.SPACE_TO_RIGHT_FOR_REMOVE_BUTTON,\r
+                                DataType.SPACE_TO_BOTTOM_FOR_REMOVE_BUTTON);\r
+        Tools.relocateComponent(this.jButtonUpdate, intCurrentWidth, intCurrentHeight, intPreferredWidth,\r
+                                intPreferredHeight, DataType.SPACE_TO_RIGHT_FOR_UPDATE_BUTTON,\r
+                                DataType.SPACE_TO_BOTTOM_FOR_UPDATE_BUTTON);\r
     }\r
 }\r
index 7ce181b70731971158a8fa5da687ef6b06bac18d..793bf849372073d248d51da51ee3ec89c873ec27 100644 (file)
@@ -491,12 +491,16 @@ public class ModulePpis extends IInternalFrame {
         int intPreferredWidth = this.getJContentPane().getPreferredSize().width;\r
         int intPreferredHeight = this.getJContentPane().getPreferredSize().height;\r
 \r
-        resizeComponent(this.jScrollPaneTable, intCurrentWidth, intCurrentHeight, intPreferredWidth, intPreferredHeight);\r
-        relocateComponent(this.jButtonAdd, intCurrentWidth, intCurrentHeight, intPreferredWidth, intPreferredHeight,\r
-                          DataType.SPACE_TO_RIGHT_FOR_ADD_BUTTON, DataType.SPACE_TO_BOTTOM_FOR_ADD_BUTTON);\r
-        relocateComponent(this.jButtonRemove, intCurrentWidth, intCurrentHeight, intPreferredWidth, intPreferredHeight,\r
-                          DataType.SPACE_TO_RIGHT_FOR_REMOVE_BUTTON, DataType.SPACE_TO_BOTTOM_FOR_REMOVE_BUTTON);\r
-        relocateComponent(this.jButtonUpdate, intCurrentWidth, intCurrentHeight, intPreferredWidth, intPreferredHeight,\r
-                          DataType.SPACE_TO_RIGHT_FOR_UPDATE_BUTTON, DataType.SPACE_TO_BOTTOM_FOR_UPDATE_BUTTON);\r
+        Tools.resizeComponent(this.jScrollPaneTable, intCurrentWidth, intCurrentHeight, intPreferredWidth,\r
+                              intPreferredHeight);\r
+        Tools.relocateComponent(this.jButtonAdd, intCurrentWidth, intCurrentHeight, intPreferredWidth,\r
+                                intPreferredHeight, DataType.SPACE_TO_RIGHT_FOR_ADD_BUTTON,\r
+                                DataType.SPACE_TO_BOTTOM_FOR_ADD_BUTTON);\r
+        Tools.relocateComponent(this.jButtonRemove, intCurrentWidth, intCurrentHeight, intPreferredWidth,\r
+                                intPreferredHeight, DataType.SPACE_TO_RIGHT_FOR_REMOVE_BUTTON,\r
+                                DataType.SPACE_TO_BOTTOM_FOR_REMOVE_BUTTON);\r
+        Tools.relocateComponent(this.jButtonUpdate, intCurrentWidth, intCurrentHeight, intPreferredWidth,\r
+                                intPreferredHeight, DataType.SPACE_TO_RIGHT_FOR_UPDATE_BUTTON,\r
+                                DataType.SPACE_TO_BOTTOM_FOR_UPDATE_BUTTON);\r
     }\r
 }\r
index b62338b211c99a5a9c0695cf993cb498522e6d8a..bf728a563378b3f200bed129726649d87f9ff14a 100644 (file)
@@ -492,12 +492,16 @@ public class ModuleProtocols extends IInternalFrame {
         int intPreferredWidth = this.getJContentPane().getPreferredSize().width;\r
         int intPreferredHeight = this.getJContentPane().getPreferredSize().height;\r
 \r
-        resizeComponent(this.jScrollPaneTable, intCurrentWidth, intCurrentHeight, intPreferredWidth, intPreferredHeight);\r
-        relocateComponent(this.jButtonAdd, intCurrentWidth, intCurrentHeight, intPreferredWidth, intPreferredHeight,\r
-                          DataType.SPACE_TO_RIGHT_FOR_ADD_BUTTON, DataType.SPACE_TO_BOTTOM_FOR_ADD_BUTTON);\r
-        relocateComponent(this.jButtonRemove, intCurrentWidth, intCurrentHeight, intPreferredWidth, intPreferredHeight,\r
-                          DataType.SPACE_TO_RIGHT_FOR_REMOVE_BUTTON, DataType.SPACE_TO_BOTTOM_FOR_REMOVE_BUTTON);\r
-        relocateComponent(this.jButtonUpdate, intCurrentWidth, intCurrentHeight, intPreferredWidth, intPreferredHeight,\r
-                          DataType.SPACE_TO_RIGHT_FOR_UPDATE_BUTTON, DataType.SPACE_TO_BOTTOM_FOR_UPDATE_BUTTON);\r
+        Tools.resizeComponent(this.jScrollPaneTable, intCurrentWidth, intCurrentHeight, intPreferredWidth,\r
+                              intPreferredHeight);\r
+        Tools.relocateComponent(this.jButtonAdd, intCurrentWidth, intCurrentHeight, intPreferredWidth,\r
+                                intPreferredHeight, DataType.SPACE_TO_RIGHT_FOR_ADD_BUTTON,\r
+                                DataType.SPACE_TO_BOTTOM_FOR_ADD_BUTTON);\r
+        Tools.relocateComponent(this.jButtonRemove, intCurrentWidth, intCurrentHeight, intPreferredWidth,\r
+                                intPreferredHeight, DataType.SPACE_TO_RIGHT_FOR_REMOVE_BUTTON,\r
+                                DataType.SPACE_TO_BOTTOM_FOR_REMOVE_BUTTON);\r
+        Tools.relocateComponent(this.jButtonUpdate, intCurrentWidth, intCurrentHeight, intPreferredWidth,\r
+                                intPreferredHeight, DataType.SPACE_TO_RIGHT_FOR_UPDATE_BUTTON,\r
+                                DataType.SPACE_TO_BOTTOM_FOR_UPDATE_BUTTON);\r
     }\r
 }\r
index 644302f55e8fc00b12cfc54c354e8468d0fed650..26d43ab5212875ea15173c83121f3f2f9d09e925 100644 (file)
@@ -469,12 +469,16 @@ public class ModuleSourceFiles extends IInternalFrame {
         int intPreferredWidth = this.getJContentPane().getPreferredSize().width;\r
         int intPreferredHeight = this.getJContentPane().getPreferredSize().height;\r
 \r
-        resizeComponent(this.jScrollPaneTable, intCurrentWidth, intCurrentHeight, intPreferredWidth, intPreferredHeight);\r
-        relocateComponent(this.jButtonAdd, intCurrentWidth, intCurrentHeight, intPreferredWidth, intPreferredHeight,\r
-                          DataType.SPACE_TO_RIGHT_FOR_ADD_BUTTON, DataType.SPACE_TO_BOTTOM_FOR_ADD_BUTTON);\r
-        relocateComponent(this.jButtonRemove, intCurrentWidth, intCurrentHeight, intPreferredWidth, intPreferredHeight,\r
-                          DataType.SPACE_TO_RIGHT_FOR_REMOVE_BUTTON, DataType.SPACE_TO_BOTTOM_FOR_REMOVE_BUTTON);\r
-        relocateComponent(this.jButtonUpdate, intCurrentWidth, intCurrentHeight, intPreferredWidth, intPreferredHeight,\r
-                          DataType.SPACE_TO_RIGHT_FOR_UPDATE_BUTTON, DataType.SPACE_TO_BOTTOM_FOR_UPDATE_BUTTON);\r
+        Tools.resizeComponent(this.jScrollPaneTable, intCurrentWidth, intCurrentHeight, intPreferredWidth,\r
+                              intPreferredHeight);\r
+        Tools.relocateComponent(this.jButtonAdd, intCurrentWidth, intCurrentHeight, intPreferredWidth,\r
+                                intPreferredHeight, DataType.SPACE_TO_RIGHT_FOR_ADD_BUTTON,\r
+                                DataType.SPACE_TO_BOTTOM_FOR_ADD_BUTTON);\r
+        Tools.relocateComponent(this.jButtonRemove, intCurrentWidth, intCurrentHeight, intPreferredWidth,\r
+                                intPreferredHeight, DataType.SPACE_TO_RIGHT_FOR_REMOVE_BUTTON,\r
+                                DataType.SPACE_TO_BOTTOM_FOR_REMOVE_BUTTON);\r
+        Tools.relocateComponent(this.jButtonUpdate, intCurrentWidth, intCurrentHeight, intPreferredWidth,\r
+                                intPreferredHeight, DataType.SPACE_TO_RIGHT_FOR_UPDATE_BUTTON,\r
+                                DataType.SPACE_TO_BOTTOM_FOR_UPDATE_BUTTON);\r
     }\r
 }\r
index cabd9a3f2db27a09fcf9bc86b6c6ad3d5c41c1ac..a9973c06965e734798d162176250c41a77073cba 100644 (file)
@@ -446,12 +446,16 @@ public class ModuleSystemTables extends IInternalFrame {
         int intPreferredWidth = this.getJContentPane().getPreferredSize().width;\r
         int intPreferredHeight = this.getJContentPane().getPreferredSize().height;\r
 \r
-        resizeComponent(this.jScrollPaneTable, intCurrentWidth, intCurrentHeight, intPreferredWidth, intPreferredHeight);\r
-        relocateComponent(this.jButtonAdd, intCurrentWidth, intCurrentHeight, intPreferredWidth, intPreferredHeight,\r
-                          DataType.SPACE_TO_RIGHT_FOR_ADD_BUTTON, DataType.SPACE_TO_BOTTOM_FOR_ADD_BUTTON);\r
-        relocateComponent(this.jButtonRemove, intCurrentWidth, intCurrentHeight, intPreferredWidth, intPreferredHeight,\r
-                          DataType.SPACE_TO_RIGHT_FOR_REMOVE_BUTTON, DataType.SPACE_TO_BOTTOM_FOR_REMOVE_BUTTON);\r
-        relocateComponent(this.jButtonUpdate, intCurrentWidth, intCurrentHeight, intPreferredWidth, intPreferredHeight,\r
-                          DataType.SPACE_TO_RIGHT_FOR_UPDATE_BUTTON, DataType.SPACE_TO_BOTTOM_FOR_UPDATE_BUTTON);\r
+        Tools.resizeComponent(this.jScrollPaneTable, intCurrentWidth, intCurrentHeight, intPreferredWidth,\r
+                              intPreferredHeight);\r
+        Tools.relocateComponent(this.jButtonAdd, intCurrentWidth, intCurrentHeight, intPreferredWidth,\r
+                                intPreferredHeight, DataType.SPACE_TO_RIGHT_FOR_ADD_BUTTON,\r
+                                DataType.SPACE_TO_BOTTOM_FOR_ADD_BUTTON);\r
+        Tools.relocateComponent(this.jButtonRemove, intCurrentWidth, intCurrentHeight, intPreferredWidth,\r
+                                intPreferredHeight, DataType.SPACE_TO_RIGHT_FOR_REMOVE_BUTTON,\r
+                                DataType.SPACE_TO_BOTTOM_FOR_REMOVE_BUTTON);\r
+        Tools.relocateComponent(this.jButtonUpdate, intCurrentWidth, intCurrentHeight, intPreferredWidth,\r
+                                intPreferredHeight, DataType.SPACE_TO_RIGHT_FOR_UPDATE_BUTTON,\r
+                                DataType.SPACE_TO_BOTTOM_FOR_UPDATE_BUTTON);\r
     }\r
 }\r
index ed2f5aa0e1ed5ef50999f702ad9e6d7934680439..4c2c10fbd3d4c92f9920b807bc88ceca8d4dd8fa 100644 (file)
@@ -221,7 +221,8 @@ public class ModuleVariables extends IInternalFrame {
         if (this.variables != null) {\r
             if (this.variables.getVariableList().size() > 0) {\r
                 for (int index = 0; index < this.variables.getVariableList().size(); index++) {\r
-                    String arg0 = Tools.convertUnicodeHexStringToString(variables.getVariableList().get(index).getVariableName());\r
+                    String arg0 = Tools.convertUnicodeHexStringToString(variables.getVariableList().get(index)\r
+                                                                                 .getVariableName());\r
                     String arg1 = variables.getVariableList().get(index).getGuidCName();\r
                     String arg2 = null;\r
                     if (variables.getVariableList().get(index).getUsage() != null) {\r
@@ -448,12 +449,16 @@ public class ModuleVariables extends IInternalFrame {
         int intPreferredWidth = this.getJContentPane().getPreferredSize().width;\r
         int intPreferredHeight = this.getJContentPane().getPreferredSize().height;\r
 \r
-        resizeComponent(this.jScrollPaneTable, intCurrentWidth, intCurrentHeight, intPreferredWidth, intPreferredHeight);\r
-        relocateComponent(this.jButtonAdd, intCurrentWidth, intCurrentHeight, intPreferredWidth, intPreferredHeight,\r
-                          DataType.SPACE_TO_RIGHT_FOR_ADD_BUTTON, DataType.SPACE_TO_BOTTOM_FOR_ADD_BUTTON);\r
-        relocateComponent(this.jButtonRemove, intCurrentWidth, intCurrentHeight, intPreferredWidth, intPreferredHeight,\r
-                          DataType.SPACE_TO_RIGHT_FOR_REMOVE_BUTTON, DataType.SPACE_TO_BOTTOM_FOR_REMOVE_BUTTON);\r
-        relocateComponent(this.jButtonUpdate, intCurrentWidth, intCurrentHeight, intPreferredWidth, intPreferredHeight,\r
-                          DataType.SPACE_TO_RIGHT_FOR_UPDATE_BUTTON, DataType.SPACE_TO_BOTTOM_FOR_UPDATE_BUTTON);\r
+        Tools.resizeComponent(this.jScrollPaneTable, intCurrentWidth, intCurrentHeight, intPreferredWidth,\r
+                              intPreferredHeight);\r
+        Tools.relocateComponent(this.jButtonAdd, intCurrentWidth, intCurrentHeight, intPreferredWidth,\r
+                                intPreferredHeight, DataType.SPACE_TO_RIGHT_FOR_ADD_BUTTON,\r
+                                DataType.SPACE_TO_BOTTOM_FOR_ADD_BUTTON);\r
+        Tools.relocateComponent(this.jButtonRemove, intCurrentWidth, intCurrentHeight, intPreferredWidth,\r
+                                intPreferredHeight, DataType.SPACE_TO_RIGHT_FOR_REMOVE_BUTTON,\r
+                                DataType.SPACE_TO_BOTTOM_FOR_REMOVE_BUTTON);\r
+        Tools.relocateComponent(this.jButtonUpdate, intCurrentWidth, intCurrentHeight, intPreferredWidth,\r
+                                intPreferredHeight, DataType.SPACE_TO_RIGHT_FOR_UPDATE_BUTTON,\r
+                                DataType.SPACE_TO_BOTTOM_FOR_UPDATE_BUTTON);\r
     }\r
 }\r
index 5513cb3778a8b1a5072fa2ab0f42b971e9bab6c9..07081bcaee7e4ef06ccfa5cb22a879c9e5321eec 100644 (file)
@@ -1093,20 +1093,20 @@ public class MsaHeader extends IInternalFrame {
         int intCurrentWidth = this.getJContentPane().getWidth();\r
         int intPreferredWidth = this.getJContentPane().getPreferredSize().width;\r
 \r
-        resizeComponentWidth(this.jTextFieldBaseName, intCurrentWidth, intPreferredWidth);\r
-        resizeComponentWidth(this.jTextFieldGuid, intCurrentWidth, intPreferredWidth);\r
-        resizeComponentWidth(this.jTextFieldVersion, intCurrentWidth, intPreferredWidth);\r
-        resizeComponentWidth(this.jScrollPaneLicense, intCurrentWidth, intPreferredWidth);\r
-        resizeComponentWidth(this.jTextFieldURL, intCurrentWidth, intPreferredWidth);\r
-        resizeComponentWidth(this.jScrollPaneCopyright, intCurrentWidth, intPreferredWidth);\r
-        resizeComponentWidth(this.jScrollPaneDescription, intCurrentWidth, intPreferredWidth);\r
-        resizeComponentWidth(this.jTextFieldSpecification, intCurrentWidth, intPreferredWidth);\r
-        resizeComponentWidth(this.jTextFieldAbstract, intCurrentWidth, intPreferredWidth);\r
-        resizeComponentWidth(this.jComboBoxModuleType, intCurrentWidth, intPreferredWidth);\r
-        resizeComponentWidth(this.jComboBoxBinaryModule, intCurrentWidth, intPreferredWidth);\r
-        resizeComponentWidth(this.jTextFieldOutputFileBasename, intCurrentWidth, intPreferredWidth);\r
-\r
-        relocateComponentX(this.jButtonGenerateGuid, intCurrentWidth, intPreferredWidth,\r
+        Tools.resizeComponentWidth(this.jTextFieldBaseName, intCurrentWidth, intPreferredWidth);\r
+        Tools.resizeComponentWidth(this.jTextFieldGuid, intCurrentWidth, intPreferredWidth);\r
+        Tools.resizeComponentWidth(this.jTextFieldVersion, intCurrentWidth, intPreferredWidth);\r
+        Tools.resizeComponentWidth(this.jScrollPaneLicense, intCurrentWidth, intPreferredWidth);\r
+        Tools.resizeComponentWidth(this.jTextFieldURL, intCurrentWidth, intPreferredWidth);\r
+        Tools.resizeComponentWidth(this.jScrollPaneCopyright, intCurrentWidth, intPreferredWidth);\r
+        Tools.resizeComponentWidth(this.jScrollPaneDescription, intCurrentWidth, intPreferredWidth);\r
+        Tools.resizeComponentWidth(this.jTextFieldSpecification, intCurrentWidth, intPreferredWidth);\r
+        Tools.resizeComponentWidth(this.jTextFieldAbstract, intCurrentWidth, intPreferredWidth);\r
+        Tools.resizeComponentWidth(this.jComboBoxModuleType, intCurrentWidth, intPreferredWidth);\r
+        Tools.resizeComponentWidth(this.jComboBoxBinaryModule, intCurrentWidth, intPreferredWidth);\r
+        Tools.resizeComponentWidth(this.jTextFieldOutputFileBasename, intCurrentWidth, intPreferredWidth);\r
+\r
+        Tools.relocateComponentX(this.jButtonGenerateGuid, intCurrentWidth, intPreferredWidth,\r
                            DataType.SPACE_TO_RIGHT_FOR_GENERATE_BUTTON);\r
     }\r
 \r
index 9ffefec4a42611987ad551a1acdf9583e6e54d78..94e2e9655365baf8b4a71f5e0e273bf231c58abd 100644 (file)
@@ -708,12 +708,12 @@ public class SpdGuidDecls extends IInternalFrame implements TableModelListener{
     public void componentResized(ComponentEvent arg0) {\r
         int intPreferredWidth = 500;\r
         \r
-        resizeComponentWidth(this.jTextFieldName, this.getWidth(), intPreferredWidth);\r
-        resizeComponentWidth(this.jTextFieldAdd, this.getWidth(), intPreferredWidth);\r
-        resizeComponentWidth(this.jTextFieldVersion, this.getWidth(), intPreferredWidth);\r
-        resizeComponentWidth(this.jTextFieldHelp, this.getWidth(), intPreferredWidth);\r
-        resizeComponentWidth(this.jScrollPane, this.getWidth(), intPreferredWidth);\r
-        relocateComponentX(this.jButtonGen, this.getWidth(), this.getPreferredSize().width, 40);\r
+        Tools.resizeComponentWidth(this.jTextFieldName, this.getWidth(), intPreferredWidth);\r
+        Tools.resizeComponentWidth(this.jTextFieldAdd, this.getWidth(), intPreferredWidth);\r
+        Tools.resizeComponentWidth(this.jTextFieldVersion, this.getWidth(), intPreferredWidth);\r
+        Tools.resizeComponentWidth(this.jTextFieldHelp, this.getWidth(), intPreferredWidth);\r
+        Tools.resizeComponentWidth(this.jScrollPane, this.getWidth(), intPreferredWidth);\r
+        Tools.relocateComponentX(this.jButtonGen, this.getWidth(), this.getPreferredSize().width, 40);\r
         \r
     }\r
     \r
index faf0c79727add0afe2622abf4221594dd152a098..4e996b139935cd77e98e31dde45c5ee59290fd6b 100644 (file)
@@ -734,16 +734,16 @@ public class SpdHeader extends IInternalFrame {
         int intPreferredWidth = 500;\r
         int intCurrentWidth = this.getJContentPane().getWidth();\r
         \r
-               resizeComponentWidth(this.jTextFieldBaseName, intCurrentWidth,intPreferredWidth);\r
-               resizeComponentWidth(this.jTextFieldGuid, intCurrentWidth,intPreferredWidth);\r
-               resizeComponentWidth(this.jTextFieldVersion, intCurrentWidth,intPreferredWidth);\r
-        resizeComponentWidth(this.jTextFieldUrl, intCurrentWidth,intPreferredWidth);\r
-               resizeComponentWidth(this.jScrollPaneLicense, intCurrentWidth,intPreferredWidth);\r
-               resizeComponentWidth(this.jTextFieldCopyright, intCurrentWidth,intPreferredWidth);\r
-               resizeComponentWidth(this.jScrollPaneDescription, intCurrentWidth,intPreferredWidth);\r
-               resizeComponentWidth(this.jTextFieldSpecification, intCurrentWidth,intPreferredWidth);\r
-               resizeComponentWidth(this.jTextFieldAbstract, intCurrentWidth,intPreferredWidth);\r
-               relocateComponentX(this.jButtonGenerateGuid, intCurrentWidth, jButtonGenerateGuid.getWidth(),30);\r
+        Tools.resizeComponentWidth(this.jTextFieldBaseName, intCurrentWidth,intPreferredWidth);\r
+        Tools.resizeComponentWidth(this.jTextFieldGuid, intCurrentWidth,intPreferredWidth);\r
+        Tools.resizeComponentWidth(this.jTextFieldVersion, intCurrentWidth,intPreferredWidth);\r
+        Tools.resizeComponentWidth(this.jTextFieldUrl, intCurrentWidth,intPreferredWidth);\r
+        Tools.resizeComponentWidth(this.jScrollPaneLicense, intCurrentWidth,intPreferredWidth);\r
+        Tools.resizeComponentWidth(this.jTextFieldCopyright, intCurrentWidth,intPreferredWidth);\r
+        Tools.resizeComponentWidth(this.jScrollPaneDescription, intCurrentWidth,intPreferredWidth);\r
+        Tools.resizeComponentWidth(this.jTextFieldSpecification, intCurrentWidth,intPreferredWidth);\r
+        Tools.resizeComponentWidth(this.jTextFieldAbstract, intCurrentWidth,intPreferredWidth);\r
+        Tools.relocateComponentX(this.jButtonGenerateGuid, intCurrentWidth, jButtonGenerateGuid.getWidth(),30);\r
        }\r
 \r
     private JScrollPane getTopScrollPane() {\r
index 2a52e3121e324360eb5a581be754f6e433417d3f..6b5e17ffc13a915a05445742ac5e0337fecf4ef4 100644 (file)
@@ -52,7 +52,7 @@ import org.tianocore.frameworkwizard.common.ui.IInternalFrame;
 import org.tianocore.frameworkwizard.common.ui.StarLabel;\r
 import org.tianocore.frameworkwizard.common.ui.iCheckBoxList.ICheckBoxList;\r
 import org.tianocore.frameworkwizard.platform.ui.ListEditor;\r
-import org.tianocore.frameworkwizard.platform.ui.global.WorkspaceProfile;\r
+import org.tianocore.frameworkwizard.platform.ui.global.GlobalData;\r
 import org.tianocore.frameworkwizard.platform.ui.global.SurfaceAreaQuery;\r
 import org.tianocore.frameworkwizard.platform.ui.id.ModuleIdentification;\r
 import org.tianocore.frameworkwizard.platform.ui.id.PackageIdentification;\r
@@ -768,9 +768,9 @@ public class SpdLibClassDecls extends IInternalFrame implements TableModelListen
     public void componentResized(ComponentEvent arg0) {\r
         int intPreferredWidth = 500;\r
         \r
-        resizeComponentWidth(this.jTextFieldClass, this.getWidth(), intPreferredWidth);\r
-        resizeComponentWidth(this.jTextFieldHelp, this.getWidth(), intPreferredWidth);\r
-        resizeComponentWidth(this.jScrollPane, this.getWidth(), intPreferredWidth-10);\r
+        Tools.resizeComponentWidth(this.jTextFieldClass, this.getWidth(), intPreferredWidth);\r
+        Tools.resizeComponentWidth(this.jTextFieldHelp, this.getWidth(), intPreferredWidth);\r
+        Tools.resizeComponentWidth(this.jScrollPane, this.getWidth(), intPreferredWidth-10);\r
         \r
     }\r
     /**\r
@@ -920,19 +920,19 @@ public class SpdLibClassDecls extends IInternalFrame implements TableModelListen
     private void getLibInstances(String libClass){\r
         libNameGuidMap.clear();\r
         try {\r
-            WorkspaceProfile.initInfo("Tools" + File.separator + "Conf" + File.separator + "FrameworkDatabase.db", System.getenv("WORKSPACE"));\r
+            GlobalData.initInfo("Tools" + File.separator + "Conf" + File.separator + "FrameworkDatabase.db", System.getenv("WORKSPACE"));\r
         \r
-            Set<PackageIdentification> spi = WorkspaceProfile.getPackageList();\r
+            Set<PackageIdentification> spi = GlobalData.getPackageList();\r
             Iterator ispi = spi.iterator();\r
             \r
             while (ispi.hasNext()) {\r
                 PackageIdentification pi = (PackageIdentification) ispi.next();\r
 \r
-                Set<ModuleIdentification> smi = WorkspaceProfile.getModules(pi);\r
+                Set<ModuleIdentification> smi = GlobalData.getModules(pi);\r
                 Iterator ismi = smi.iterator();\r
                 while (ismi.hasNext()) {\r
                     ModuleIdentification mi = (ModuleIdentification) ismi.next();\r
-                    Map<String, XmlObject> m = WorkspaceProfile.getNativeMsa(mi);\r
+                    Map<String, XmlObject> m = GlobalData.getNativeMsa(mi);\r
                     SurfaceAreaQuery.setDoc(m);\r
                     Vector<String> classProduced = SurfaceAreaQuery.getLibraryClasses("ALWAYS_PRODUCED", mi);\r
                     for (int i = 0; i < classProduced.size(); ++i) {\r
index 9e25465ca1b517a3f520782286405898191780b1..b4ed73a3a55868961c133f373795efcc6c4ed4e2 100644 (file)
@@ -485,9 +485,9 @@ public class SpdMsaFiles extends IInternalFrame implements TableModelListener{
     public void componentResized(ComponentEvent arg0) {\r
         int intPreferredWidth = 500;\r
         \r
-        resizeComponentWidth(this.jScrollPaneMsa, this.getWidth(), intPreferredWidth);\r
-        resizeComponentWidth(this.jTextField, this.getWidth(), intPreferredWidth);\r
-        relocateComponentX(this.jButtonBrowse, this.getWidth(), this.getPreferredSize().width, 25);\r
+        Tools.resizeComponentWidth(this.jScrollPaneMsa, this.getWidth(), intPreferredWidth);\r
+        Tools.resizeComponentWidth(this.jTextField, this.getWidth(), intPreferredWidth);\r
+        Tools.relocateComponentX(this.jButtonBrowse, this.getWidth(), this.getPreferredSize().width, 25);\r
     }\r
     \r
     public static void main(String[] args){\r
index 8b14758f0190528a368faa550800d6d409b68b0a..342f13d6bfd1d1af2b1430babce69722591a0ed1 100644 (file)
@@ -593,10 +593,10 @@ public class SpdPackageHeaders extends IInternalFrame implements TableModelListe
     public void componentResized(ComponentEvent arg0) {\r
         int intPreferredWidth = 500;\r
         \r
-        resizeComponentWidth(this.jComboBoxSelect, this.getWidth(), intPreferredWidth);\r
-        resizeComponentWidth(this.jTextField, this.getWidth(), intPreferredWidth);\r
-        resizeComponentWidth(this.jScrollPane, this.getWidth(), intPreferredWidth);\r
-        relocateComponentX(this.jButtonBrowse, this.getWidth(), this.getPreferredSize().width, 30);\r
+        Tools.resizeComponentWidth(this.jComboBoxSelect, this.getWidth(), intPreferredWidth);\r
+        Tools.resizeComponentWidth(this.jTextField, this.getWidth(), intPreferredWidth);\r
+        Tools.resizeComponentWidth(this.jScrollPane, this.getWidth(), intPreferredWidth);\r
+        Tools.relocateComponentX(this.jButtonBrowse, this.getWidth(), this.getPreferredSize().width, 30);\r
     }\r
     \r
     public static void main(String[] args){\r
index 76a4dea0499b891532359cde4a1befc6b5cfc0d0..ec0339269270f3b49a90d4ad90c9aa1a76d9e5c7 100644 (file)
@@ -39,6 +39,7 @@ import javax.swing.table.TableModel;
 import org.tianocore.PackageSurfaceAreaDocument;\r
 \r
 import org.tianocore.frameworkwizard.common.DataValidation;\r
+import org.tianocore.frameworkwizard.common.Tools;\r
 import org.tianocore.frameworkwizard.common.Identifications.OpeningPackageType;\r
 import org.tianocore.frameworkwizard.common.ui.IInternalFrame;\r
 import org.tianocore.frameworkwizard.common.ui.StarLabel;\r
@@ -606,14 +607,14 @@ public class SpdPcdDefs extends IInternalFrame implements TableModelListener{
     public void componentResized(ComponentEvent arg0) {\r
         int intPreferredWidth = 500;\r
         \r
-        resizeComponentWidth(this.jTextFieldC_Name, this.getWidth(), intPreferredWidth);\r
-        resizeComponentWidth(this.jTextFieldToken, this.getWidth(), intPreferredWidth);\r
-        resizeComponentWidth(this.jTextFieldTsGuid, this.getWidth(), intPreferredWidth);\r
-        resizeComponentWidth(this.jTextFieldDefaultValue, this.getWidth(), intPreferredWidth);\r
-        resizeComponentWidth(this.jTextFieldHelp, this.getWidth(), intPreferredWidth);\r
-        resizeComponentWidth(this.jScrollPane, this.getWidth(), intPreferredWidth);\r
+        Tools.resizeComponentWidth(this.jTextFieldC_Name, this.getWidth(), intPreferredWidth);\r
+        Tools.resizeComponentWidth(this.jTextFieldToken, this.getWidth(), intPreferredWidth);\r
+        Tools.resizeComponentWidth(this.jTextFieldTsGuid, this.getWidth(), intPreferredWidth);\r
+        Tools.resizeComponentWidth(this.jTextFieldDefaultValue, this.getWidth(), intPreferredWidth);\r
+        Tools.resizeComponentWidth(this.jTextFieldHelp, this.getWidth(), intPreferredWidth);\r
+        Tools.resizeComponentWidth(this.jScrollPane, this.getWidth(), intPreferredWidth);\r
         \r
-        resizeComponentWidth(this.jTextFieldDefaultValue, this.getWidth(), intPreferredWidth);\r
+        Tools.resizeComponentWidth(this.jTextFieldDefaultValue, this.getWidth(), intPreferredWidth);\r
 //        relocateComponentX(this.jButtonClearAll, this.getWidth(), DataType.SPACE_TO_RIGHT_FOR_GENERATE_BUTTON);\r
 //        relocateComponentX(this.jButtonRemove, this.getWidth(), DataType.SPACE_TO_RIGHT_FOR_GENERATE_BUTTON);\r
 //        relocateComponentX(this.jButtonAdd, this.getWidth(), DataType.SPACE_TO_RIGHT_FOR_GENERATE_BUTTON);\r
@@ -909,8 +910,8 @@ public class SpdPcdDefs extends IInternalFrame implements TableModelListener{
             JOptionPane.showMessageDialog(frame, "C_Name is NOT C_NameType.");\r
             return false;\r
         }\r
-        if (!DataValidation.isHexDoubleWordDataType(row[1].toString()) && \r
-                        !DataValidation.isInt(row[1].toString(), Integer.MIN_VALUE, Integer.MAX_VALUE)) {\r
+        if (!(DataValidation.isHexDoubleWordDataType(row[1].toString()) || \r
+                        DataValidation.isInt(row[1].toString(), 0, 0xffffffff))) {\r
             JOptionPane.showMessageDialog(frame, "Token is NOT correct.");\r
             return false;\r
         }\r
index ea6171fac7ddf8c1b05a8e8ff774182c16b876f3..6c583f3c06b4cb81ac13fb04e7885871e8448406 100644 (file)
@@ -683,16 +683,16 @@ public class FpdHeader extends IInternalFrame {
        public void componentResized(ComponentEvent arg0) {\r
         int intPreferredWidth = 500;\r
         \r
-        resizeComponentWidth(this.jTextFieldBaseName, this.getWidth(), intPreferredWidth);\r
-               resizeComponentWidth(this.jTextFieldGuid, this.getWidth(), intPreferredWidth);\r
-               resizeComponentWidth(this.jTextFieldVersion, this.getWidth(), intPreferredWidth);\r
-        resizeComponentWidth(this.jTextFieldUrl, this.getWidth(), intPreferredWidth);\r
-               resizeComponentWidth(this.jScrollPaneLicense, this.getWidth(), intPreferredWidth);\r
-               resizeComponentWidth(this.jTextFieldCopyright, this.getWidth(), intPreferredWidth);\r
-               resizeComponentWidth(this.jScrollPaneDescription, this.getWidth(), intPreferredWidth);\r
-               resizeComponentWidth(this.jTextFieldSpecification, this.getWidth(), intPreferredWidth);\r
-               resizeComponentWidth(this.jTextFieldAbstract, this.getWidth(), intPreferredWidth);\r
+        Tools.resizeComponentWidth(this.jTextFieldBaseName, this.getWidth(), intPreferredWidth);\r
+        Tools.resizeComponentWidth(this.jTextFieldGuid, this.getWidth(), intPreferredWidth);\r
+        Tools.resizeComponentWidth(this.jTextFieldVersion, this.getWidth(), intPreferredWidth);\r
+        Tools.resizeComponentWidth(this.jTextFieldUrl, this.getWidth(), intPreferredWidth);\r
+        Tools.resizeComponentWidth(this.jScrollPaneLicense, this.getWidth(), intPreferredWidth);\r
+        Tools.resizeComponentWidth(this.jTextFieldCopyright, this.getWidth(), intPreferredWidth);\r
+        Tools.resizeComponentWidth(this.jScrollPaneDescription, this.getWidth(), intPreferredWidth);\r
+        Tools.resizeComponentWidth(this.jTextFieldSpecification, this.getWidth(), intPreferredWidth);\r
+        Tools.resizeComponentWidth(this.jTextFieldAbstract, this.getWidth(), intPreferredWidth);\r
                \r
-               relocateComponentX(this.jButtonGenerateGuid, this.getWidth(), jButtonGenerateGuid.getWidth(), 25);\r
+        Tools.relocateComponentX(this.jButtonGenerateGuid, this.getWidth(), jButtonGenerateGuid.getWidth(), 25);\r
        }\r
 }\r