]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/common/ui/IDialog.java
1. Fix EDKT273 "Externs are not being grouped together in MSA Files"
[mirror_edk2.git] / Tools / Source / FrameworkWizard / src / org / tianocore / frameworkwizard / common / ui / IDialog.java
index 3272d207f38472b94568d28c2872bf77693ca69d..1fc7c4c156032b874916760386cc50156bc7ecbb 100644 (file)
@@ -23,6 +23,7 @@ import java.awt.event.ActionListener;
 import javax.swing.JDialog;\r
 \r
 import org.tianocore.frameworkwizard.common.DataType;\r
+import org.tianocore.frameworkwizard.common.Tools;\r
 \r
 /**\r
  The class is used to override Dialog to provides customized interfaces\r
@@ -148,10 +149,7 @@ public class IDialog extends JDialog implements ActionListener {
      \r
      **/\r
     public boolean isEmpty(String strValue) {\r
-        if (strValue.length() > 0) {\r
-            return false;\r
-        }\r
-        return true;\r
+        return Tools.isEmpty(strValue);\r
     }\r
     \r
     /**\r