]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/common/ui/IFrame.java
1. Fix displaying wrong file type bug.
[mirror_edk2.git] / Tools / Source / FrameworkWizard / src / org / tianocore / frameworkwizard / common / ui / IFrame.java
index 4778133a41068272ea898c48743152ae49167800..d0222e95741eb5ebe627736dd4aeea059352aeae 100644 (file)
@@ -48,7 +48,7 @@ public class IFrame extends JFrame implements ActionListener, WindowListener {
     // 1 - Whne editing module\r
     //\r
     private int intExitType = 0;\r
-\r
+    \r
     /**\r
      Main class, used for test\r
      \r
@@ -214,4 +214,28 @@ public class IFrame extends JFrame implements ActionListener, WindowListener {
     public int showSaveDialog() {\r
         return JOptionPane.showConfirmDialog(null, "Save all changed files?", "Save", JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.WARNING_MESSAGE);\r
     }\r
+    \r
+    /**\r
+    Check the input data is empty or not\r
+    \r
+    @param strValue The input data which need be checked\r
+    \r
+    @retval true - The input data is empty\r
+    @retval fals - The input data is not empty\r
+    \r
+    **/\r
+   public boolean isEmpty(String strValue) {\r
+       if (strValue.length() > 0) {\r
+           return false;\r
+       }\r
+       return true;\r
+   }\r
+   \r
+   /**\r
+    Display the dialog\r
+    \r
+    **/\r
+   public void showDialog() {\r
+       this.setVisible(true);\r
+   }\r
 }\r