]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Tools/Source/MigrationTools/org/tianocore/migration/MigrationTool.java
add lisence
[mirror_edk2.git] / Tools / Source / MigrationTools / org / tianocore / migration / MigrationTool.java
index 3b3486fea6674f6cab546e735f306118750f4c0b..cbb49a13daa06953406b0afaef9c8f37cf6918bd 100644 (file)
@@ -1,8 +1,22 @@
+/** @file\r
\r
+ Copyright (c) 2006, Intel Corporation\r
+ All rights reserved. This program and the accompanying materials\r
+ are licensed and made available under the terms and conditions of the BSD License\r
+ which accompanies this distribution.  The full text of the license may be found at\r
+ http://opensource.org/licenses/bsd-license.php\r
\r
+ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
+ **/\r
 package org.tianocore.migration;\r
 \r
 import java.io.File;\r
 import java.util.*;\r
 \r
+import javax.swing.JFileChooser;\r
+\r
 public class MigrationTool {\r
        public static UI ui = null;\r
        public static Database db = null;\r
@@ -64,7 +78,7 @@ public class MigrationTool {
                if (MigrationTool.defaultoutput) {\r
                        return inputpath.replaceAll(Common.strseparate, "$1");\r
                } else {\r
-                       return MigrationTool.ui.getFilepath("Please choose where to place the output module");\r
+                       return MigrationTool.ui.getFilepath("Please choose where to place the output module", JFileChooser.DIRECTORIES_ONLY);\r
                }\r
        }\r
        \r