Obliterate this file.
authorbbahnsen <bbahnsen@6f19259b-4bc3-4df7-8a09-765794883524>
Sat, 22 Apr 2006 00:00:01 +0000 (00:00 +0000)
committerbbahnsen <bbahnsen@6f19259b-4bc3-4df7-8a09-765794883524>
Sat, 22 Apr 2006 00:00:01 +0000 (00:00 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10 6f19259b-4bc3-4df7-8a09-765794883524

13 files changed:
Tools/Source/CreateMdkPkg/MANIFEST.MF [deleted file]
Tools/Source/CreateMdkPkg/build.xml [deleted file]
Tools/Source/CreateMdkPkg/src/org/tianocore/common/Log.java [deleted file]
Tools/Source/CreateMdkPkg/src/org/tianocore/common/Tools.java [deleted file]
Tools/Source/CreateMdkPkg/src/org/tianocore/packaging/FrameworkPkg.java [deleted file]
Tools/Source/CreateMdkPkg/src/org/tianocore/packaging/MdkPkg.java [deleted file]
Tools/Source/CreateMdkPkg/src/org/tianocore/packaging/common/ui/ExitConfirm.java [deleted file]
Tools/Source/CreateMdkPkg/src/org/tianocore/packaging/common/ui/IFrame.java [deleted file]
Tools/Source/CreateMdkPkg/src/org/tianocore/packaging/workspace/command/InstallWorkspace.java [deleted file]
Tools/Source/CreateMdkPkg/src/org/tianocore/packaging/workspace/ui/Finish.java [deleted file]
Tools/Source/CreateMdkPkg/src/org/tianocore/packaging/workspace/ui/LicenseAgreement.java [deleted file]
Tools/Source/CreateMdkPkg/src/org/tianocore/packaging/workspace/ui/SelectDestinationDirectory.java [deleted file]
Tools/Source/CreateMdkPkg/src/org/tianocore/packaging/workspace/ui/Welcome.java [deleted file]

diff --git a/Tools/Source/CreateMdkPkg/MANIFEST.MF b/Tools/Source/CreateMdkPkg/MANIFEST.MF
deleted file mode 100644 (file)
index 28f83c0..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-Manifest-Version: 1.0\r
-Main-Class: org.tianocore.packaging.workspace.ui.Welcome\r
diff --git a/Tools/Source/CreateMdkPkg/build.xml b/Tools/Source/CreateMdkPkg/build.xml
deleted file mode 100644 (file)
index 1352d5d..0000000
+++ /dev/null
@@ -1,64 +0,0 @@
-<?xml version="1.0"?>\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
-<project name="Setup" default="all" basedir=".">\r
-  <taskdef resource="net/sf/antcontrib/antlib.xml"/>\r
-  <property environment="env"/>\r
-  <property name="WORKSPACE" value="${env.WORKSPACE}"/>\r
-  <path id="classpath">\r
-    <fileset dir="${WORKSPACE}/Tools/Jars" includes="*.jar"/>\r
-    <fileset dir="${WORKSPACE}/Tools/bin/xmlbeans/lib" includes="*.jar"/>\r
-  </path>\r
-  <property name="buildDir" value="build"/>\r
-  <property name="installLocation" value="${WORKSPACE}/Tools/bin"/>\r
-  <target name="all" depends="deleteTemp"/>\r
-  <target name="source">\r
-    <mkdir dir="${buildDir}"/>\r
-    <javac srcdir="src" destdir="${buildDir}">\r
-      <classpath refid="classpath"/>\r
-      <compilerarg value="-Xlint"/>\r
-    </javac>\r
-  </target>\r
-  <target name="clean">\r
-    <delete dir="${buildDir}"/>\r
-  </target>\r
-  <target name="cleanall">\r
-    <delete dir="${buildDir}"/>\r
-    <delete file="${installLocation}/CreateMdkPkg.jar"/>\r
-  </target>\r
-  <target name="relocate" depends="source">\r
-    <delete file="${installLocation}/CreateMdkPkg.jar"/>\r
-    <copy todir="${buildDir}/Tools">\r
-      <fileset dir="${WORKSPACE}/Tools"/>\r
-    </copy>\r
-    <copy todir="${buildDir}/MdePkg">\r
-      <fileset dir="${WORKSPACE}/MdePkg"/>\r
-    </copy>\r
-    <copy file="${WORKSPACE}/build.xml"\r
-           todir="${buildDir}"/>\r
-    <copy file="${WORKSPACE}/DeveloperManual.doc"\r
-           todir="${buildDir}"/>\r
-    <copy file="${WORKSPACE}/edksetup.bat"\r
-           todir="${buildDir}"/>\r
-    <copy file="${WORKSPACE}/edksetup.sh"\r
-           todir="${buildDir}"/>\r
-  </target>\r
-  <target name="install" depends="relocate">\r
-    <jar destfile="${installLocation}/CreateMdkPkg.jar"\r
-      basedir="${buildDir}"\r
-      includes="**"\r
-      manifest="MANIFEST.MF"\r
-    />\r
-  </target>\r
-  <target name="deleteTemp" depends="install">\r
-    <delete dir="${buildDir}"/>\r
-  </target>\r
-</project>\r
diff --git a/Tools/Source/CreateMdkPkg/src/org/tianocore/common/Log.java b/Tools/Source/CreateMdkPkg/src/org/tianocore/common/Log.java
deleted file mode 100644 (file)
index 383ffa7..0000000
+++ /dev/null
@@ -1,188 +0,0 @@
-/** @file\r
\r
- The file is used to provides static interfaces to save log and error information \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
-\r
-package org.tianocore.common;\r
-\r
-import java.io.File;\r
-import java.io.FileNotFoundException;\r
-import java.io.FileOutputStream;\r
-import java.io.IOException;\r
-\r
-import javax.swing.JOptionPane;\r
-\r
-/**\r
- The class is used to provides static interfaces to save log and error information\r
\r
- @since CreateMdkPkg 1.0\r
\r
- **/\r
-public class Log {\r
-\r
-    //\r
-    //Log file\r
-    //\r
-    private static File fleLogFile = null;\r
-\r
-    //\r
-    //Err file\r
-    //\r
-    private static File fleErrFile = null;\r
-\r
-    //\r
-    //Log file name\r
-    //\r
-    static String strLogFileName = "Log.log";\r
-\r
-    //\r
-    //Err file name\r
-    //\r
-    static String strErrFileName = "Err.log";\r
-\r
-    /**\r
-     Main class, used for test\r
-     \r
-     @param args\r
-     \r
-     **/\r
-    public static void main(String[] args) {\r
-        try {\r
-            Log.log("Test", "test");\r
-            Log.err("Test1", "test1");\r
-        } catch (Exception e) {\r
-            e.printStackTrace();\r
-        }\r
-    }\r
-\r
-    /**\r
-     This is the default constructor\r
-     Do nothing\r
-     \r
-     **/\r
-    public Log() {\r
-    }\r
-\r
-    /**\r
-     Call writeToLogFile to save log item and log information to log file\r
-     \r
-     @param strItem The log item\r
-     @param strLog The log information\r
-     \r
-     **/\r
-    public static void log(String strItem, String strLog) {\r
-        try {\r
-            writeToLogFile(strItem + ":" + strLog);\r
-        } catch (IOException e) {\r
-            e.printStackTrace();\r
-        }\r
-    }\r
-\r
-    /**\r
-     Call writeToLogFile to save log information to log file\r
-     \r
-     @param strLog The log information\r
-     \r
-     **/\r
-    public static void log(String strLog) {\r
-        try {\r
-            writeToLogFile(strLog);\r
-        } catch (IOException e) {\r
-            e.printStackTrace();\r
-        }\r
-    }\r
-\r
-    /**\r
-     Call writeToErrFile to save err item and err information to err file\r
-     \r
-     @param strItem The err item\r
-     @param strLog The err information\r
-     \r
-     **/\r
-    public static void err(String strItem, String strErr) {\r
-        try {\r
-            writeToErrFile("Error when " + strItem + ":" + strErr);\r
-            JOptionPane.showConfirmDialog(null, "Error when " + strItem + "::" + strErr, "Error",\r
-                                          JOptionPane.DEFAULT_OPTION, JOptionPane.ERROR_MESSAGE);\r
-\r
-        } catch (IOException e) {\r
-            e.printStackTrace();\r
-        }\r
-    }\r
-\r
-    /**\r
-     Call writeToErrFile to save err information to err file\r
-     \r
-     @param strLog The err information\r
-     \r
-     **/\r
-    public static void err(String strErr) {\r
-        try {\r
-            writeToErrFile("Error::" + strErr);\r
-            JOptionPane.showConfirmDialog(null, "Error::" + strErr, "Error", JOptionPane.DEFAULT_OPTION,\r
-                                          JOptionPane.ERROR_MESSAGE);\r
-        } catch (IOException e) {\r
-            e.printStackTrace();\r
-        }\r
-    }\r
-\r
-    /**\r
-     Open log file and write log information\r
-     \r
-     @param strLog The log information\r
-     @throws IOException\r
-     \r
-     **/\r
-    private static void writeToLogFile(String strLog) throws IOException {\r
-        try {\r
-            if (fleLogFile == null) {\r
-                fleLogFile = new File(strLogFileName);\r
-                fleLogFile.createNewFile();\r
-            }\r
-            FileOutputStream fos = new FileOutputStream(fleLogFile, true);\r
-            fos.write((Tools.getCurrentDateTime() + "\r\n").getBytes());\r
-            fos.write((strLog + "\r\n").getBytes());\r
-            fos.flush();\r
-            fos.close();\r
-        } catch (FileNotFoundException e) {\r
-            e.printStackTrace();\r
-        } catch (IOException e) {\r
-            e.printStackTrace();\r
-        }\r
-    }\r
-\r
-    /**\r
-     Open err file and write err information\r
-     \r
-     @param strLog The log information\r
-     @throws IOException\r
-     \r
-     **/\r
-    private static void writeToErrFile(String strLog) throws IOException {\r
-        try {\r
-            if (fleErrFile == null) {\r
-                fleErrFile = new File(strErrFileName);\r
-                fleErrFile.createNewFile();\r
-            }\r
-            FileOutputStream fos = new FileOutputStream(fleErrFile, true);\r
-            fos.write((Tools.getCurrentDateTime() + "\r\n").getBytes());\r
-            fos.write((strLog + "\r\n").getBytes());\r
-            fos.flush();\r
-            fos.close();\r
-        } catch (FileNotFoundException e) {\r
-            e.printStackTrace();\r
-        } catch (IOException e) {\r
-            e.printStackTrace();\r
-        }\r
-    }\r
-}\r
diff --git a/Tools/Source/CreateMdkPkg/src/org/tianocore/common/Tools.java b/Tools/Source/CreateMdkPkg/src/org/tianocore/common/Tools.java
deleted file mode 100644 (file)
index 2494b03..0000000
+++ /dev/null
@@ -1,120 +0,0 @@
-/** @file\r
\r
- The file is used to provides some useful interfaces \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
-\r
-package org.tianocore.common;\r
-\r
-import java.io.File;\r
-import java.text.SimpleDateFormat;\r
-import java.util.Date;\r
-import java.util.UUID;\r
-\r
-/**\r
- The class is used to provides some useful interfaces \r
\r
- @since CreateMdkPkg 1.0\r
\r
- **/\r
-public class Tools {\r
-\r
-    /**\r
-     Used for test\r
-     \r
-     @param args\r
-     \r
-     **/\r
-    public static void main(String[] args) {\r
-        System.out.println(getCurrentDateTime());\r
-    }\r
-\r
-    /**\r
-     Get current date and time and format it as "yyyy-MM-dd HH:mm"\r
-     \r
-     @return formatted current date and time\r
-     \r
-     **/\r
-    public static String getCurrentDateTime() {\r
-        Date now = new Date(System.currentTimeMillis());\r
-        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm");\r
-        return sdf.format(now);\r
-    }\r
-\r
-    /**\r
-     Delete a folder and all its files\r
-     \r
-     @param fleFolderName The name of the folder which need be deleted\r
-     \r
-     @retval true - Delete successfully\r
-     @retval false - Delete successfully\r
-     \r
-     **/\r
-    public static boolean deleteFolder(File fleFolderName) {\r
-        boolean blnIsDeleted = true;\r
-        File[] aryAllFiles = fleFolderName.listFiles();\r
-\r
-        for (int indexI = 0; indexI < aryAllFiles.length; indexI++) {\r
-            if (blnIsDeleted) {\r
-                if (aryAllFiles[indexI].isDirectory()) {\r
-                    //\r
-                    //If is a directory, recursively call this function to delete sub folders\r
-                    //\r
-                    blnIsDeleted = deleteFolder(aryAllFiles[indexI]);\r
-                } else if (aryAllFiles[indexI].isFile()) {\r
-                    //\r
-                    //If is a file, delete it\r
-                    //\r
-                    if (!aryAllFiles[indexI].delete()) {\r
-                        blnIsDeleted = false;\r
-                    }\r
-                }\r
-            }\r
-        }\r
-        if (blnIsDeleted) {\r
-            fleFolderName.delete();\r
-        }\r
-        return blnIsDeleted;\r
-    }\r
-\r
-    /**\r
-     Generate a UUID\r
-     \r
-     @return the created UUID\r
-     \r
-     **/\r
-    public static String generateUuidString() {\r
-        return UUID.randomUUID().toString();\r
-    }\r
-\r
-    /**\r
-     Get all system properties and output to the console\r
-     \r
-     **/\r
-    public static void getSystemProperties() {\r
-        System.out.println(System.getProperty("java.class.version"));\r
-        System.out.println(System.getProperty("java.class.path"));\r
-        System.out.println(System.getProperty("java.ext.dirs"));\r
-        System.out.println(System.getProperty("os.name"));\r
-        System.out.println(System.getProperty("os.arch"));\r
-        System.out.println(System.getProperty("os.version"));\r
-        System.out.println(System.getProperty("file.separator"));\r
-        System.out.println(System.getProperty("path.separator"));\r
-        System.out.println(System.getProperty("line.separator"));\r
-        System.out.println(System.getProperty("user.name"));\r
-        System.out.println(System.getProperty("user.home"));\r
-        System.out.println(System.getProperty("user.dir"));\r
-        System.out.println(System.getProperty("PATH"));\r
-\r
-        System.out.println(System.getenv("PROCESSOR_REVISION"));\r
-    }\r
-}\r
diff --git a/Tools/Source/CreateMdkPkg/src/org/tianocore/packaging/FrameworkPkg.java b/Tools/Source/CreateMdkPkg/src/org/tianocore/packaging/FrameworkPkg.java
deleted file mode 100644 (file)
index e12b584..0000000
+++ /dev/null
@@ -1,238 +0,0 @@
-/** @file\r
\r
- The file is used to install .jar 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
-\r
-package org.tianocore.packaging;\r
-\r
-import java.io.File;\r
-import java.io.FileOutputStream;\r
-import java.io.IOException;\r
-import java.io.InputStream;\r
-import java.util.Enumeration;\r
-import java.util.jar.JarEntry;\r
-import java.util.jar.JarFile;\r
-\r
-import javax.swing.JFrame;\r
-\r
-/**\r
- The class is used to install .jar file\r
\r
- @since CreateMdkPkg 1.0\r
-\r
- **/\r
-public class FrameworkPkg {\r
-    //\r
-    // Define class members\r
-    //\r
-    static JFrame frame;\r
-\r
-    private String pkg = null;\r
-\r
-    private JarFile jf = null;\r
-\r
-    /**\r
-     Main clase, used to test\r
-     \r
-     @param args\r
-     \r
-     **/\r
-    public static void main(String[] args) {\r
-        FrameworkPkg fp = new FrameworkPkg("C:\\Documents and Settings\\hchen30\\Desktop\\com.jar");\r
-        try {\r
-            fp.install("C:\\MyWorkspace" + System.getProperty("file.separator"));\r
-        } catch (Exception e) {\r
-            e.printStackTrace();\r
-        }\r
-    }\r
-\r
-    /**\r
-     This is the default constructor\r
-     \r
-     **/\r
-    public FrameworkPkg() {\r
-\r
-    }\r
-\r
-    /**\r
-     This is the override constructor\r
-     \r
-     @param package_name\r
-     \r
-     **/\r
-    public FrameworkPkg(String package_name) {\r
-        pkg = package_name;\r
-    }\r
-\r
-    /**\r
-     Get package name\r
-     \r
-     @param package_name\r
-     \r
-     **/\r
-    public void setPkg(String package_name) {\r
-        pkg = package_name;\r
-    }\r
-\r
-    /**\r
-     Set Jarfile\r
-     \r
-     @throws IOException\r
-     \r
-     **/\r
-    public void setJarFile() throws IOException {\r
-        jf = new JarFile(pkg);\r
-    }\r
-\r
-    /**\r
-     Install the jar file to specific path\r
-     \r
-     @param dir The target path\r
-     @return 0 - success\r
-     @throws IOException\r
-     @throws BasePkgNotInstalled\r
-     @throws VerNotEqual\r
-     @throws GuidNotEqual\r
-     @throws SameAll\r
-     \r
-     **/\r
-    public int install(final String dir) throws IOException, BasePkgNotInstalled, VerNotEqual, GuidNotEqual, SameAll {\r
-        pre_install();\r
-        extract(dir);\r
-        post_install();\r
-        return 0;\r
-    }\r
-\r
-    /**\r
-     \r
-     @return\r
-     \r
-     **/\r
-    public int uninstall() {\r
-\r
-        return 0;\r
-    }\r
-\r
-    /**\r
-     Check before install\r
-     \r
-     @throws IOException\r
-     @throws BasePkgNotInstalled\r
-     @throws VerNotEqual\r
-     @throws GuidNotEqual\r
-     @throws SameAll\r
-     \r
-     **/\r
-    protected void pre_install() throws IOException, BasePkgNotInstalled, VerNotEqual, GuidNotEqual, SameAll {\r
-        jf = new JarFile(pkg);\r
-        if (false) {\r
-            throw new BasePkgNotInstalled();\r
-        }\r
-        if (false) {\r
-            throw new VerNotEqual();\r
-        }\r
-        if (false) {\r
-            throw new GuidNotEqual();\r
-        }\r
-        if (false) {\r
-            throw new SameAll();\r
-        }\r
-    }\r
-\r
-    /**\r
-     End of install\r
-     \r
-     @throws IOException\r
-     \r
-     **/\r
-    protected void post_install() throws IOException {\r
-        jf.close();\r
-\r
-    }\r
-\r
-    /**\r
-     Extract the jar file to specific dir\r
-     \r
-     @param dir The target path\r
-     @throws IOException\r
-     \r
-     **/\r
-    private synchronized void extract(String dir) throws IOException {\r
-\r
-        int i = 0;\r
-        try {\r
-            for (Enumeration e = jf.entries(); e.hasMoreElements(); i++) {\r
-                JarEntry je = (JarEntry) e.nextElement();\r
-                if (je.getName().contains("META-INF"))\r
-                    continue;\r
-                if (je.isDirectory()) {\r
-                    new File(dir + je.getName()).mkdirs();\r
-                    continue;\r
-                }\r
-\r
-                if (je != null) {\r
-                    //\r
-                    // Get an input stream for the entry.\r
-                    //\r
-                    InputStream entryStream = jf.getInputStream(je);\r
-\r
-                    try {\r
-                        //\r
-                        // Create the output file (clobbering the file if it exists).\r
-                        //\r
-                        FileOutputStream file = new FileOutputStream(dir + je.getName());\r
-\r
-                        try {\r
-                            //\r
-                            // Allocate a buffer for reading the entry data.\r
-                            //\r
-                            byte[] buffer = new byte[1024];\r
-                            int bytesRead;\r
-\r
-                            //\r
-                            // Read the entry data and write it to the output file.\r
-                            //    \r
-                            while ((bytesRead = entryStream.read(buffer)) != -1) {\r
-                                file.write(buffer, 0, bytesRead);\r
-                            }\r
-\r
-                            System.out.println(je.getName() + " extracted.");\r
-                        } finally {\r
-                            file.close();\r
-                        }\r
-                    } finally {\r
-                        entryStream.close();\r
-                    }\r
-                }\r
-            }\r
-        } finally {\r
-            jf.close();\r
-        }\r
-    }\r
-}\r
-\r
-class BasePkgNotInstalled extends Exception {\r
-    final static long serialVersionUID = 0;\r
-}\r
-\r
-class VerNotEqual extends Exception {\r
-    final static long serialVersionUID = 0;\r
-}\r
-\r
-class GuidNotEqual extends Exception {\r
-    final static long serialVersionUID = 0;\r
-}\r
-\r
-class SameAll extends Exception {\r
-    final static long serialVersionUID = 0;\r
-}\r
diff --git a/Tools/Source/CreateMdkPkg/src/org/tianocore/packaging/MdkPkg.java b/Tools/Source/CreateMdkPkg/src/org/tianocore/packaging/MdkPkg.java
deleted file mode 100644 (file)
index 74250cc..0000000
+++ /dev/null
@@ -1,59 +0,0 @@
-/** @file\r
\r
- The file is used to override FrameworkPkg to provides customized interfaces \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
-\r
-package org.tianocore.packaging;\r
-\r
-import java.io.IOException;\r
-\r
-/**\r
- The class is used to override FrameworkPkg to provides customized interfaces\r
\r
- @since CreateMdkPkg 1.0\r
-\r
- **/\r
-public class MdkPkg extends FrameworkPkg {\r
-\r
-    /**\r
-     Main class, reserved for test\r
-     \r
-     @param args\r
-     \r
-     **/\r
-    public static void main(String[] args) {\r
-        // TODO Auto-generated method stub\r
-\r
-    }\r
-\r
-    /**\r
-     This is the default constructor\r
-     \r
-     @param strJarFile The jar file need be installed\r
-     @throws IOException\r
-     \r
-     **/\r
-    public MdkPkg(String strJarFile) throws IOException {\r
-        this.setPkg(strJarFile);\r
-        this.setJarFile();\r
-    }\r
-\r
-    /* (non-Javadoc)\r
-     * @see org.tianocore.packaging.FrameworkPkg#pre_install()\r
-     * \r
-     * Override pre_install to do nothing\r
-     * \r
-     */\r
-    protected void pre_install() {\r
-    }\r
-}\r
diff --git a/Tools/Source/CreateMdkPkg/src/org/tianocore/packaging/common/ui/ExitConfirm.java b/Tools/Source/CreateMdkPkg/src/org/tianocore/packaging/common/ui/ExitConfirm.java
deleted file mode 100644 (file)
index 170ca62..0000000
+++ /dev/null
@@ -1,264 +0,0 @@
-/** @file\r
\r
- The file is used to popup a exit confirmation window when program exists\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
-package org.tianocore.packaging.common.ui;\r
-\r
-import java.awt.Dimension;\r
-import java.awt.Toolkit;\r
-import java.awt.event.ActionEvent;\r
-import java.awt.event.ActionListener;\r
-import java.awt.event.WindowEvent;\r
-import java.awt.event.WindowListener;\r
-\r
-import javax.swing.JButton;\r
-import javax.swing.JDialog;\r
-import javax.swing.JFrame;\r
-import javax.swing.JLabel;\r
-import javax.swing.JPanel;\r
-\r
-/**\r
- The class is used to popup a exit confirmation window when program exists\r
- It extends JDialog and implements ActionListener and WindowListener\r
\r
- @since CreateMdkPkg 1.0\r
\r
- **/\r
-public class ExitConfirm extends JDialog implements ActionListener, WindowListener {\r
-    ///\r
-    /// Define class Serial Version UID\r
-    ///\r
-    private static final long serialVersionUID = -5875921789385911029L;\r
-\r
-    //\r
-    // Define class members\r
-    //\r
-    private JPanel jContentPane = null;\r
-\r
-    private JLabel jLabelMessage = null;\r
-\r
-    private JLabel jLabelResume = null;\r
-\r
-    private JLabel jLabelExit = null;\r
-\r
-    private JButton jButtonResume = null;\r
-\r
-    private JButton jButtonExit = null;\r
-\r
-    public boolean isCancel = false;\r
-\r
-    /**\r
-     This method initializes jButtonResume\r
-     \r
-     @return javax.swing.JButton jButtonResume\r
-     \r
-     **/\r
-    private JButton getJButtonResume() {\r
-        if (jButtonResume == null) {\r
-            jButtonResume = new JButton();\r
-            jButtonResume.setText("Resume");\r
-            jButtonResume.setSize(new java.awt.Dimension(90, 20));\r
-            jButtonResume.setLocation(new java.awt.Point(150, 105));\r
-            jButtonResume.setMnemonic('R');\r
-            jButtonResume.addActionListener(this);\r
-        }\r
-        return jButtonResume;\r
-    }\r
-\r
-    /**\r
-     This method initializes jButtonExit    \r
-     \r
-     @return javax.swing.JButton jButtonExit\r
-     \r
-     **/\r
-    private JButton getJButtonExit() {\r
-        if (jButtonExit == null) {\r
-            jButtonExit = new JButton();\r
-            jButtonExit.setText("Exit");\r
-            jButtonExit.setSize(new java.awt.Dimension(90, 20));\r
-            jButtonExit.setLocation(new java.awt.Point(260, 105));\r
-            jButtonExit.setMnemonic('x');\r
-            jButtonExit.addActionListener(this);\r
-        }\r
-        return jButtonExit;\r
-    }\r
-\r
-    /**\r
-     Main clasee, reserved for test\r
-     \r
-     @param args\r
-     \r
-     **/\r
-    public static void main(String[] args) {\r
-        // TODO Auto-generated method stub\r
-\r
-    }\r
-\r
-    /**\r
-     This is the default constructor\r
-     \r
-     **/\r
-    public ExitConfirm(IFrame parentFrame, boolean modal) {\r
-        super(parentFrame, modal);\r
-        initialize();\r
-    }\r
-\r
-    /**\r
-     This method initializes this\r
-     \r
-     **/\r
-    private void initialize() {\r
-        this.setSize(500, 170);\r
-        this.setTitle("Exit");\r
-        this.setResizable(false);\r
-        this.setContentPane(getJContentPane());\r
-        this.addWindowListener(this);\r
-        //\r
-        //Set DO_NOTHING_ON_CLOSE when click Close button on title bar\r
-        //\r
-        this.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);\r
-        centerWindow();\r
-    }\r
-\r
-    /**\r
-     This method initializes jContentPane\r
-     \r
-     @return javax.swing.JPanel jContentPane\r
-     \r
-     **/\r
-    private JPanel getJContentPane() {\r
-        if (jContentPane == null) {\r
-            jLabelExit = new JLabel();\r
-            jLabelExit.setSize(new java.awt.Dimension(450, 20));\r
-            jLabelExit.setLocation(new java.awt.Point(25, 70));\r
-            jLabelResume = new JLabel();\r
-            jLabelResume.setSize(new java.awt.Dimension(450, 20));\r
-            jLabelResume.setLocation(new java.awt.Point(25, 40));\r
-            jLabelMessage = new JLabel();\r
-            jLabelMessage.setSize(new java.awt.Dimension(450, 20));\r
-            jLabelMessage.setLocation(new java.awt.Point(25, 10));\r
-            jContentPane = new JPanel();\r
-            jContentPane.setLayout(null);\r
-            jContentPane.add(jLabelMessage, null);\r
-            jContentPane.add(jLabelResume, null);\r
-            jContentPane.add(jLabelExit, null);\r
-            jContentPane.add(getJButtonResume(), null);\r
-            jContentPane.add(getJButtonExit(), null);\r
-        }\r
-        return jContentPane;\r
-    }\r
-\r
-    /**\r
-     Call setWarningMessage to set messages of frame when it is used for Setup\r
-     \r
-     **/\r
-    public void setSetupMessage() {\r
-        String strTitle = "Exit Setup";\r
-        String strMessage = "Setup is not complete. If you quit now, the program will not be installed.";\r
-        //String strResume = "You may run the setup program at a later time to complete the installation.";\r
-        String strResume = "";\r
-        String strExit = "To continue installing, click Resume. To quit the Setup program, click Exit.";\r
-        setWarningMessage(strTitle, strMessage, strResume, strExit);\r
-    }\r
-\r
-    /**\r
-     Call setWarningMessage to set messages of frame when it is used for Module Main GUI\r
-     \r
-     **/\r
-    public void setModuleMessage() {\r
-        String strTitle = "Exit";\r
-        String strMessage = "Do you really want to quit now?";\r
-        String strResume = "All unsaved module information will be lost.";\r
-        String strExit = "To continue editing module, click Resume. To quit the program, click Exit.";\r
-        setWarningMessage(strTitle, strMessage, strResume, strExit);\r
-    }\r
-\r
-    /**\r
-     Set message information via input data\r
-     \r
-     @param strTitle The title value\r
-     @param strMessage The main message value\r
-     @param strResume The resume message value\r
-     @param strExit The exit message value\r
-     \r
-     **/\r
-    private void setWarningMessage(String strTitle, String strMessage, String strResume, String strExit) {\r
-        this.setTitle(strTitle);\r
-        jLabelMessage.setText(strMessage);\r
-        jLabelResume.setText(strResume);\r
-        jLabelExit.setText(strExit);\r
-    }\r
-\r
-    /* (non-Javadoc)\r
-     * @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)\r
-     * \r
-     * Override actionPerformed to listern all actions\r
-     * \r
-     */\r
-    public void actionPerformed(ActionEvent arg0) {\r
-        //\r
-        //Set isCancel true when click button "Exit"\r
-        //\r
-        Object obj = arg0.getSource();\r
-        if (obj == jButtonResume) {\r
-            isCancel = false;\r
-        }\r
-        if (obj == jButtonExit) {\r
-            isCancel = true;\r
-        }\r
-        this.setVisible(false);\r
-    }\r
-\r
-    /**\r
-     Make the window in the center of the screen\r
-     \r
-     **/\r
-    private void centerWindow() {\r
-        Dimension d = Toolkit.getDefaultToolkit().getScreenSize();\r
-        this.setLocation((d.width - this.getSize().width) / 2, (d.height - this.getSize().height) / 2);\r
-    }\r
-\r
-    public void windowActivated(WindowEvent arg0) {\r
-        // TODO Auto-generated method stub\r
-\r
-    }\r
-\r
-    public void windowClosed(WindowEvent arg0) {\r
-        // TODO Auto-generated method stub\r
-\r
-    }\r
-\r
-    public void windowClosing(WindowEvent arg0) {\r
-        isCancel = false;\r
-        this.setVisible(false);\r
-    }\r
-\r
-    public void windowDeactivated(WindowEvent arg0) {\r
-        // TODO Auto-generated method stub\r
-\r
-    }\r
-\r
-    public void windowDeiconified(WindowEvent arg0) {\r
-        // TODO Auto-generated method stub\r
-\r
-    }\r
-\r
-    public void windowIconified(WindowEvent arg0) {\r
-        // TODO Auto-generated method stub\r
-\r
-    }\r
-\r
-    public void windowOpened(WindowEvent arg0) {\r
-        // TODO Auto-generated method stub\r
-\r
-    }\r
-}\r
diff --git a/Tools/Source/CreateMdkPkg/src/org/tianocore/packaging/common/ui/IFrame.java b/Tools/Source/CreateMdkPkg/src/org/tianocore/packaging/common/ui/IFrame.java
deleted file mode 100644 (file)
index 211b9c3..0000000
+++ /dev/null
@@ -1,203 +0,0 @@
-/** @file\r
\r
- The file is used to override Frame to provides customized interfaces \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
-\r
-package org.tianocore.packaging.common.ui;\r
-\r
-import java.awt.Dimension;\r
-import java.awt.Toolkit;\r
-import java.awt.event.ActionEvent;\r
-import java.awt.event.ActionListener;\r
-import java.awt.event.WindowEvent;\r
-import java.awt.event.WindowListener;\r
-\r
-import javax.swing.JFrame;\r
-\r
-/**\r
- The class is used to override Frame to provides customized interfaces \r
- It extends JFrame implements ActionListener and WindowListener\r
\r
- @since CreateMdkPkg 1.0\r
\r
- **/\r
-public class IFrame extends JFrame implements ActionListener, WindowListener {\r
-    ///\r
-    /// Define class Serial Version UID\r
-    ///\r
-    private static final long serialVersionUID = -3324138961029300427L;\r
-\r
-    //\r
-    // Define class members\r
-    //\r
-    private ExitConfirm ec = null;\r
-\r
-    //\r
-    // To indicate the status while quit\r
-    // 0 - When setup (Default)\r
-    // 1 - Whne editing module\r
-    //\r
-    private int intExitType = 0;\r
-\r
-    /**\r
-     Main class, used for test\r
-     \r
-     @param args\r
-     \r
-     **/\r
-    public static void main(String[] args) {\r
-        IFrame i = new IFrame();\r
-        i.setVisible(true);\r
-    }\r
-\r
-    /**\r
-     This is the default constructor\r
-     \r
-     **/\r
-    public IFrame() {\r
-        super();\r
-        initialize();\r
-    }\r
-\r
-    /**\r
-     This method initializes this\r
-     \r
-     **/\r
-    public void initialize() {\r
-        this.setResizable(false);\r
-        this.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);\r
-        this.addWindowListener(this);\r
-    }\r
-\r
-    /**\r
-     Start the dialog at the center of screen\r
-     \r
-     @param intWidth The width of the dialog\r
-     @param intHeight The height of the dialog\r
-     \r
-     **/\r
-    protected void centerWindow(int intWidth, int intHeight) {\r
-        Dimension d = Toolkit.getDefaultToolkit().getScreenSize();\r
-        this.setLocation((d.width - intWidth) / 2, (d.height - intHeight) / 2);\r
-    }\r
-\r
-    /**\r
-     Start the dialog at the center of screen\r
-     \r
-     **/\r
-    protected void centerWindow() {\r
-        centerWindow(this.getSize().width, this.getSize().height);\r
-    }\r
-\r
-    /**\r
-     Set the exit window type\r
-     \r
-     @param ExitType The input data of ExitType\r
-     \r
-     **/\r
-    protected void setExitType(int ExitType) {\r
-        this.intExitType = ExitType;\r
-    }\r
-\r
-    /* (non-Javadoc)\r
-     * @see java.awt.event.WindowListener#windowClosing(java.awt.event.WindowEvent)\r
-     *\r
-     * Override windowClosing to call this.onDisvisible()\r
-     * \r
-     */\r
-    public void windowClosing(WindowEvent arg0) {\r
-        this.onDisvisible();\r
-    }\r
-\r
-    public void windowOpened(WindowEvent arg0) {\r
-        // TODO Auto-generated method stub\r
-\r
-    }\r
-\r
-    public void windowClosed(WindowEvent arg0) {\r
-        // TODO Auto-generated method stub\r
-\r
-    }\r
-\r
-    public void windowIconified(WindowEvent arg0) {\r
-        // TODO Auto-generated method stub\r
-\r
-    }\r
-\r
-    public void windowDeiconified(WindowEvent arg0) {\r
-        // TODO Auto-generated method stub\r
-\r
-    }\r
-\r
-    public void windowActivated(WindowEvent arg0) {\r
-        // TODO Auto-generated method stub\r
-\r
-    }\r
-\r
-    public void windowDeactivated(WindowEvent arg0) {\r
-        // TODO Auto-generated method stub\r
-\r
-    }\r
-\r
-    public void actionPerformed(ActionEvent arg0) {\r
-        // TODO Auto-generated method stub\r
-\r
-    }\r
-\r
-    /**\r
-     Define the actions when exit\r
-     \r
-     **/\r
-    public void onExit() {\r
-        ec = new ExitConfirm(this, true);\r
-        //\r
-        //Show different warning message via different ExitType\r
-        //\r
-        switch (intExitType) {\r
-        case 0:\r
-            ec.setSetupMessage();\r
-            break;\r
-        case 1:\r
-            ec.setModuleMessage();\r
-            break;\r
-        }\r
-        ec.setVisible(true);\r
-        if (ec.isCancel) {\r
-            this.dispose();\r
-            System.exit(0);\r
-        }\r
-    }\r
-\r
-    /**\r
-     Define the actions when disvisible\r
-     \r
-     **/\r
-    public void onDisvisible() {\r
-        ec = new ExitConfirm(this, true);\r
-        //\r
-        //Show different warning message via different ExitType\r
-        //\r
-        switch (intExitType) {\r
-        case 0:\r
-            ec.setSetupMessage();\r
-            break;\r
-        case 1:\r
-            ec.setModuleMessage();\r
-            break;\r
-        }\r
-        ec.setVisible(true);\r
-        if (ec.isCancel) {\r
-            this.dispose();\r
-        }\r
-    }\r
-}\r
diff --git a/Tools/Source/CreateMdkPkg/src/org/tianocore/packaging/workspace/command/InstallWorkspace.java b/Tools/Source/CreateMdkPkg/src/org/tianocore/packaging/workspace/command/InstallWorkspace.java
deleted file mode 100644 (file)
index 47bd36f..0000000
+++ /dev/null
@@ -1,161 +0,0 @@
-/** @file\r
\r
- The file is used to override AbstractCellEditor to provides customized interfaces \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
-\r
-package org.tianocore.packaging.workspace.command;\r
-\r
-import java.io.File;\r
-import java.io.IOException;\r
-\r
-import org.tianocore.common.Log;\r
-import org.tianocore.common.Tools;\r
-import org.tianocore.packaging.MdkPkg;\r
-\r
-/**\r
- The class is used to override AbstractCellEditor to provides customized interfaces \r
\r
- @since CreateMdkPkg 1.0\r
-\r
- **/\r
-public class InstallWorkspace {\r
-    /**\r
-     Main class, reserved for test\r
-     \r
-     @param args\r
-     \r
-     **/\r
-    public static void main(String[] args) {\r
-        // TODO Auto-generated method stub\r
-\r
-    }\r
-\r
-    /**\r
-     This is the default constructor\r
-     Reserved\r
-     \r
-     **/\r
-    public InstallWorkspace() {\r
-        // TODO\r
-    }\r
-\r
-    /**\r
-     Check if exist target dir\r
-     \r
-     @param strInstallDir The install target dir\r
-     @retval true - The target exists\r
-     @retval false - The target doesn't exist\r
-     \r
-     **/\r
-    public static boolean isExistInstallDir(String strInstallDir) {\r
-        File id = new File(strInstallDir);\r
-        return id.exists();\r
-    }\r
-\r
-    /**\r
-     Create install target dir\r
-     \r
-     @param strInstallDir The install target dir\r
-     @retval true - Install success\r
-     @retval false - Install fail\r
-     \r
-     **/\r
-    public static boolean createInstallDir(String strInstallDir) {\r
-        File id = new File(strInstallDir);\r
-        try {\r
-            return id.mkdir();\r
-        } catch (Exception e) {\r
-            System.out.print(e.getMessage());\r
-            return false;\r
-        }\r
-    }\r
-\r
-    /**\r
-     Reserved\r
-     \r
-     @return boolean\r
-     \r
-     **/\r
-    public static boolean setSystemEnvironment() {\r
-        return true;\r
-    }\r
-\r
-    /**\r
-     Reserved \r
-     \r
-     @return boolean\r
-     **/\r
-    public static boolean setToolChainPath() {\r
-        return true;\r
-    }\r
-\r
-    /**\r
-     Reserved\r
-     \r
-     @return boolean\r
-     **/\r
-    public static boolean setToolChain() {\r
-        return true;\r
-    }\r
-\r
-    /**\r
-     Reserved\r
-     \r
-     @return boolean\r
-     **/\r
-    public static boolean setFrameworkDatabase() {\r
-        return true;\r
-    }\r
-\r
-    /**\r
-     Delete setup files and directory\r
-     \r
-     @param strPath The delete target dir\r
-     @retval true - Delete success\r
-     @retval false - Delete fail\r
-     \r
-     **/\r
-    public static boolean delSetupPackage(String strPath) {\r
-        File f = new File(strPath);\r
-        try {\r
-            Tools.deleteFolder(f);\r
-        } catch (Exception e) {\r
-            e.printStackTrace();\r
-        }\r
-        return true;\r
-    }\r
-\r
-    /**\r
-     \r
-     @param strInstallDir The install target dir\r
-     @param strJarFile The install target file\r
-     @retval true - Install success\r
-     @retval false - Install fail\r
-     @throws IOException\r
-     \r
-     **/\r
-    public static boolean installPackage(String strInstallDir, String strJarFile) throws IOException {\r
-        Log.log("Install Dir", strInstallDir);\r
-        Log.log("Jar File Path", strJarFile);\r
-\r
-        MdkPkg mp = new MdkPkg(strJarFile);\r
-        try {\r
-            mp.install(strInstallDir + System.getProperty("file.separator"));\r
-            return true;\r
-        } catch (Exception e) {\r
-            e.printStackTrace();\r
-            Log.log("Install Err", e.toString());\r
-        }\r
-        return false;\r
-    }\r
-}\r
diff --git a/Tools/Source/CreateMdkPkg/src/org/tianocore/packaging/workspace/ui/Finish.java b/Tools/Source/CreateMdkPkg/src/org/tianocore/packaging/workspace/ui/Finish.java
deleted file mode 100644 (file)
index aab046f..0000000
+++ /dev/null
@@ -1,295 +0,0 @@
-/** @file\r
\r
- The file is used to show a Finish page in the last step of setup\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
-\r
-package org.tianocore.packaging.workspace.ui;\r
-\r
-import java.awt.event.ActionEvent;\r
-import java.awt.event.ActionListener;\r
-import java.awt.event.WindowEvent;\r
-\r
-import javax.swing.JButton;\r
-import javax.swing.JFrame;\r
-import javax.swing.JLabel;\r
-import javax.swing.JPanel;\r
-import javax.swing.JScrollPane;\r
-import javax.swing.JTextArea;\r
-\r
-import org.tianocore.packaging.common.ui.IFrame;\r
-\r
-/**\r
- The class is used to show a Finish page in the last step of setup\r
\r
- @since CreateMdkPkg 1.0\r
-\r
- **/\r
-public class Finish extends IFrame implements ActionListener {\r
-\r
-    ///\r
-    /// Define class Serial Version UID\r
-    ///\r
-    private static final long serialVersionUID = 9055339173915836187L;\r
-\r
-    //\r
-    // Define class members\r
-    //\r
-    private JPanel jContentPane = null;\r
-\r
-    private JTextArea jTextAreaTitle = null;\r
-\r
-    private JTextArea jTextAreaContent = null;\r
-\r
-    private JPanel jPanel = null;\r
-\r
-    private JButton jButtonFinish = null;\r
-\r
-    private JLabel jLabel = null;\r
-\r
-    private JLabel jLabel1 = null;\r
-\r
-    private JScrollPane jScrollPane = null;\r
-\r
-    private JTextArea jTextAreaComment = null;\r
-\r
-    private String strInstallDir = "";\r
-\r
-    /**\r
-     This method initializes jTextAreaTitle \r
-     \r
-     @return javax.swing.JTextArea jTextAreaTitle\r
-     \r
-     **/\r
-    private JTextArea getJTextAreaTitle() {\r
-        if (jTextAreaTitle == null) {\r
-            jTextAreaTitle = new JTextArea();\r
-            jTextAreaTitle.setLocation(new java.awt.Point(0, 0));\r
-            jTextAreaTitle.setText("     Click button \"Install\" to start installation");\r
-            jTextAreaTitle.setFont(new java.awt.Font("Dialog", java.awt.Font.BOLD, 14));\r
-            jTextAreaTitle.setEditable(false);\r
-            jTextAreaTitle.setSize(new java.awt.Dimension(495, 20));\r
-        }\r
-        return jTextAreaTitle;\r
-    }\r
-\r
-    /**\r
-     This method initializes jTextAreaContent \r
-     \r
-     @return javax.swing.JTextArea jTextAreaContent\r
-     \r
-     **/\r
-    private JTextArea getJTextAreaContent() {\r
-        if (jTextAreaContent == null) {\r
-            jTextAreaContent = new JTextArea();\r
-            jTextAreaContent.setLocation(new java.awt.Point(0, 20));\r
-            jTextAreaContent.setText("");\r
-            jTextAreaContent.setEditable(false);\r
-            jTextAreaContent.setSize(new java.awt.Dimension(495, 35));\r
-        }\r
-        return jTextAreaContent;\r
-    }\r
-\r
-    /**\r
-     This method initializes jPanel \r
-     \r
-     @return javax.swing.JPanel jPanel\r
-     \r
-     **/\r
-    private JPanel getJPanel() {\r
-        if (jPanel == null) {\r
-            jLabel1 = new JLabel();\r
-            jLabel1.setText("");\r
-            jLabel1.setLocation(new java.awt.Point(30, 40));\r
-            jLabel1.setSize(new java.awt.Dimension(435, 20));\r
-            jLabel = new JLabel();\r
-            jLabel.setText("");\r
-            jLabel.setLocation(new java.awt.Point(30, 15));\r
-            jLabel.setSize(new java.awt.Dimension(435, 20));\r
-            jPanel = new JPanel();\r
-            jPanel.setLayout(null);\r
-            jPanel.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.LOWERED));\r
-            jPanel.setSize(new java.awt.Dimension(494, 251));\r
-            jPanel.setLocation(new java.awt.Point(0, 55));\r
-            jPanel.add(jLabel, null);\r
-            jPanel.add(jLabel1, null);\r
-            jPanel.add(getJScrollPane(), null);\r
-        }\r
-        return jPanel;\r
-    }\r
-\r
-    /**\r
-     This method initializes jButtonFinish \r
-     \r
-     @return javax.swing.JButton jButtonFinish\r
-     \r
-     **/\r
-    private JButton getJButtonCancel() {\r
-        if (jButtonFinish == null) {\r
-            jButtonFinish = new JButton();\r
-            jButtonFinish.setText("Finish");\r
-            jButtonFinish.setBounds(new java.awt.Rectangle(360, 315, 90, 20));\r
-            jButtonFinish.setEnabled(true);\r
-            jButtonFinish.setSelected(false);\r
-            jButtonFinish.setMnemonic('C');\r
-            jButtonFinish.addActionListener(this);\r
-        }\r
-        return jButtonFinish;\r
-    }\r
-\r
-    /**\r
-     This method initializes jScrollPane \r
-     \r
-     @return javax.swing.JScrollPane jScrollPane\r
-     \r
-     **/\r
-    private JScrollPane getJScrollPane() {\r
-        if (jScrollPane == null) {\r
-            jScrollPane = new JScrollPane();\r
-            jScrollPane.setLocation(new java.awt.Point(30, 65));\r
-            jScrollPane.setSize(new java.awt.Dimension(435, 180));\r
-            jScrollPane.setViewportView(getJTextAreaComment());\r
-        }\r
-        return jScrollPane;\r
-    }\r
-\r
-    /**\r
-     This method initializes jTextAreaComment \r
-     \r
-     @return javax.swing.JTextArea jTextAreaComment\r
-     \r
-     **/\r
-    private JTextArea getJTextAreaComment() {\r
-        if (jTextAreaComment == null) {\r
-            jTextAreaComment = new JTextArea();\r
-            jTextAreaComment.setEditable(false);\r
-            jTextAreaComment.setLineWrap(true);\r
-            jTextAreaComment.setWrapStyleWord(false);\r
-        }\r
-        return jTextAreaComment;\r
-    }\r
-\r
-    /**\r
-     Main class, used for test\r
-     \r
-     @param args\r
-     **/\r
-    public static void main(String[] args) {\r
-        Finish f = new Finish();\r
-        f.setVisible(true);\r
-    }\r
-\r
-    /**\r
-     This is the override constructor\r
-     \r
-     @param InstallDir The install target dir\r
-     \r
-     **/\r
-    public Finish(String InstallDir) {\r
-        super();\r
-        this.strInstallDir = InstallDir;\r
-        init();\r
-    }\r
-\r
-    /**\r
-     This is the default constructor\r
-     \r
-     **/\r
-    public Finish() {\r
-        super();\r
-        init();\r
-    }\r
-\r
-    /**\r
-     This method initializes this\r
-     \r
-     **/\r
-    private void init() {\r
-        this.setSize(500, 390);\r
-\r
-        this.setContentPane(getJContentPane());\r
-        this.setTitle("Setup - Installing");\r
-        this.centerWindow();\r
-        this.getRootPane().setDefaultButton(jButtonFinish);\r
-        switchFinish();\r
-    }\r
-\r
-    /**\r
-     This method initializes jContentPane\r
-     \r
-     @return javax.swing.JPanel jContentPane\r
-     \r
-     **/\r
-    private JPanel getJContentPane() {\r
-        if (jContentPane == null) {\r
-            jContentPane = new JPanel();\r
-            jContentPane.setLayout(null);\r
-            jContentPane.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));\r
-            jContentPane.add(getJTextAreaTitle(), null);\r
-            jContentPane.add(getJTextAreaContent(), null);\r
-            jContentPane.add(getJPanel(), null);\r
-            jContentPane.add(getJButtonCancel(), null);\r
-        }\r
-        return jContentPane;\r
-    }\r
-\r
-    /* (non-Javadoc)\r
-     * @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)\r
-     * \r
-     * Override actionPerformed to listen all actions\r
-     * \r
-     */\r
-    public void actionPerformed(ActionEvent arg0) {\r
-        Object obj = arg0.getSource();\r
-\r
-        if (obj == jButtonFinish) {\r
-            this.dispose();\r
-            System.exit(0);\r
-        }\r
-    }\r
-\r
-    /**\r
-    Change all message values to Finish contents.\r
-    \r
-    **/\r
-    private void switchFinish() {\r
-        this.setTitle("Setup - Finish");\r
-        jTextAreaTitle.setText("     Congratulations");\r
-        jTextAreaContent.setText("           Your workspace was installed!");\r
-        jLabel.setText("The MDK package was installed successfully");\r
-        jLabel1.setText("Now you can start the trip with EFI");\r
-        jTextAreaComment.setText("Please add \"WORKSPACE=" + this.strInstallDir\r
-                                 + "\" into your system environment variable");\r
-        jButtonFinish.setEnabled(true);\r
-        this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r
-        jButtonFinish.setText("Finish");\r
-    }\r
-\r
-    //    private void switchInstall() {\r
-    //        jTextAreaTitle.setText("     Installation is in process...");\r
-    //        jLabel.setText("The MDK package was being installed...");\r
-    //        jLabel1.setText("Just waiting for a second");\r
-    //        jButtonFinish.setEnabled(false);\r
-    //        jButtonFinish.setText("Finish");\r
-    //    }\r
-    \r
-    /* (non-Javadoc)\r
-     * @see java.awt.event.WindowListener#windowClosing(java.awt.event.WindowEvent)\r
-     * \r
-     * Override windowClosing to exit directly\r
-     * \r
-     */\r
-    public void windowClosing(WindowEvent arg0) {\r
-        this.dispose();\r
-        System.exit(0);\r
-    }\r
-}\r
diff --git a/Tools/Source/CreateMdkPkg/src/org/tianocore/packaging/workspace/ui/LicenseAgreement.java b/Tools/Source/CreateMdkPkg/src/org/tianocore/packaging/workspace/ui/LicenseAgreement.java
deleted file mode 100644 (file)
index 4661743..0000000
+++ /dev/null
@@ -1,403 +0,0 @@
-/** @file\r
\r
- The class is used to show a License Agreement page in\r
- the process of setup\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
-\r
-package org.tianocore.packaging.workspace.ui;\r
-\r
-import java.awt.event.ActionEvent;\r
-import java.awt.event.ActionListener;\r
-import java.awt.event.WindowEvent;\r
-\r
-import javax.swing.JButton;\r
-import javax.swing.JLabel;\r
-import javax.swing.JPanel;\r
-import javax.swing.JRadioButton;\r
-import javax.swing.JScrollPane;\r
-import javax.swing.JTextArea;\r
-\r
-import org.tianocore.packaging.common.ui.IFrame;\r
-\r
-/**\r
- The class is used to show a License Agreement page in\r
- the process of setup\r
\r
- @since CreateMdkPkg 1.0\r
-\r
- **/\r
-public class LicenseAgreement extends IFrame implements ActionListener {\r
-\r
-    ///\r
-    /// Define class Serial Version UID\r
-    ///\r
-    private static final long serialVersionUID = 5507683268692334188L;\r
-\r
-    //\r
-    // Define class members\r
-    //\r
-    private JPanel jContentPane = null;\r
-\r
-    private JTextArea jTextArea = null;\r
-\r
-    private JTextArea jTextArea1 = null;\r
-\r
-    private JPanel jPanel = null;\r
-\r
-    private JButton jButtonBack = null;\r
-\r
-    private JButton jButtonNext = null;\r
-\r
-    private JButton jButtonCancel = null;\r
-\r
-    private JLabel jLabel = null;\r
-\r
-    private JRadioButton jRadioButtonAgree = null;\r
-\r
-    private JRadioButton jRadioButtonDisagree = null;\r
-\r
-    private JScrollPane jScrollPane = null;\r
-\r
-    private JTextArea jTextArea2 = null;\r
-\r
-    private JLabel jLabel1 = null;\r
-\r
-    private Welcome w = null;\r
-\r
-    private SelectDestinationDirectory sdd = null;\r
-\r
-    /**\r
-     This method initializes jTextArea \r
-     \r
-     @return javax.swing.JTextArea jTextArea\r
-     \r
-     **/\r
-    private JTextArea getJTextArea() {\r
-        if (jTextArea == null) {\r
-            jTextArea = new JTextArea();\r
-            jTextArea.setLocation(new java.awt.Point(0, 0));\r
-            jTextArea.setText("    License Agreement");\r
-            jTextArea.setFont(new java.awt.Font("Dialog", java.awt.Font.BOLD, 14));\r
-            jTextArea.setEditable(false);\r
-            jTextArea.setSize(new java.awt.Dimension(495, 20));\r
-        }\r
-        return jTextArea;\r
-    }\r
-\r
-    /**\r
-     This method initializes jTextArea1 \r
-     \r
-     @return javax.swing.JTextArea jTextArea1\r
-     \r
-     **/\r
-    private JTextArea getJTextArea1() {\r
-        if (jTextArea1 == null) {\r
-            jTextArea1 = new JTextArea();\r
-            jTextArea1.setLocation(new java.awt.Point(0, 20));\r
-            jTextArea1.setText("           Please read the following important information before continuing.");\r
-            jTextArea1.setEditable(false);\r
-            jTextArea1.setSize(new java.awt.Dimension(495, 35));\r
-        }\r
-        return jTextArea1;\r
-    }\r
-\r
-    /**\r
-     This method initializes jPanel \r
-     \r
-     @return javax.swing.JPanel jPanel\r
-     \r
-     **/\r
-    private JPanel getJPanel() {\r
-        if (jPanel == null) {\r
-            jLabel1 = new JLabel();\r
-            jLabel1.setText(" this agreement before continuing with the installation.");\r
-            jLabel1.setLocation(new java.awt.Point(30, 35));\r
-            jLabel1.setSize(new java.awt.Dimension(435, 20));\r
-            jLabel = new JLabel();\r
-            jLabel.setText("Please read the following License Agreement. You must accept the terms of");\r
-            jLabel.setLocation(new java.awt.Point(30, 15));\r
-            jLabel.setSize(new java.awt.Dimension(435, 20));\r
-            jPanel = new JPanel();\r
-            jPanel.setLayout(null);\r
-            jPanel.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.LOWERED));\r
-            jPanel.setSize(new java.awt.Dimension(494, 251));\r
-            jPanel.setLocation(new java.awt.Point(0, 55));\r
-            jPanel.add(jLabel, null);\r
-            jPanel.add(getJRadioButtonAgree(), null);\r
-            jPanel.add(getJRadioButtonDisagree(), null);\r
-            jPanel.add(getJScrollPane(), null);\r
-            jPanel.add(jLabel1, null);\r
-        }\r
-        return jPanel;\r
-    }\r
-\r
-    /**\r
-     This method initializes jButtonBack \r
-     \r
-     @return javax.swing.JButton jButtonBack\r
-     \r
-     **/\r
-    private JButton getJButtonBack() {\r
-        if (jButtonBack == null) {\r
-            jButtonBack = new JButton();\r
-            jButtonBack.setText("Back");\r
-            jButtonBack.setSize(new java.awt.Dimension(90, 20));\r
-            jButtonBack.setLocation(new java.awt.Point(200, 315));\r
-            jButtonBack.setMnemonic('B');\r
-            jButtonBack.addActionListener(this);\r
-        }\r
-        return jButtonBack;\r
-    }\r
-\r
-    /**\r
-     This method initializes jButtonNext \r
-     \r
-     @return javax.swing.JButton jButtonNext\r
-     \r
-     **/\r
-    private JButton getJButtonNext() {\r
-        if (jButtonNext == null) {\r
-            jButtonNext = new JButton();\r
-            jButtonNext.setText("Next");\r
-            jButtonNext.setBounds(new java.awt.Rectangle(292, 315, 90, 20));\r
-            jButtonNext.setEnabled(false);\r
-            jButtonNext.setMnemonic('N');\r
-            jButtonNext.addActionListener(this);\r
-        }\r
-        return jButtonNext;\r
-    }\r
-\r
-    /**\r
-     This method initializes jButtonCancel \r
-     \r
-     @return javax.swing.JButton jButtonCancel\r
-     \r
-     **/\r
-    private JButton getJButtonCancel() {\r
-        if (jButtonCancel == null) {\r
-            jButtonCancel = new JButton();\r
-            jButtonCancel.setText("Cancel");\r
-            jButtonCancel.setBounds(new java.awt.Rectangle(390, 315, 90, 20));\r
-            jButtonCancel.setMnemonic('C');\r
-            jButtonCancel.addActionListener(this);\r
-        }\r
-        return jButtonCancel;\r
-    }\r
-\r
-    /**\r
-     This method initializes jRadioButtonAgree \r
-     \r
-     @return javax.swing.JRadioButton jRadioButtonAgree\r
-     \r
-     **/\r
-    private JRadioButton getJRadioButtonAgree() {\r
-        if (jRadioButtonAgree == null) {\r
-            jRadioButtonAgree = new JRadioButton();\r
-            jRadioButtonAgree.setText("I accept the agreement");\r
-            jRadioButtonAgree.setLocation(new java.awt.Point(30, 200));\r
-            jRadioButtonAgree.setSize(new java.awt.Dimension(156, 19));\r
-            jRadioButtonAgree.addActionListener(this);\r
-        }\r
-        return jRadioButtonAgree;\r
-    }\r
-\r
-    /**\r
-     This method initializes jRadioButtonDisagree \r
-     \r
-     @return javax.swing.JRadioButton jRadioButtonDisagree\r
-     \r
-     **/\r
-    private JRadioButton getJRadioButtonDisagree() {\r
-        if (jRadioButtonDisagree == null) {\r
-            jRadioButtonDisagree = new JRadioButton();\r
-            jRadioButtonDisagree.setText("I do not accept the agreement");\r
-            jRadioButtonDisagree.setLocation(new java.awt.Point(30, 220));\r
-            jRadioButtonDisagree.setSize(new java.awt.Dimension(248, 19));\r
-            jRadioButtonDisagree.addActionListener(this);\r
-        }\r
-        return jRadioButtonDisagree;\r
-    }\r
-\r
-    /**\r
-     This method initializes jScrollPane \r
-     \r
-     @return javax.swing.JScrollPane jScrollPane\r
-     \r
-     **/\r
-    private JScrollPane getJScrollPane() {\r
-        if (jScrollPane == null) {\r
-            jScrollPane = new JScrollPane();\r
-            jScrollPane.setSize(new java.awt.Dimension(435, 140));\r
-            jScrollPane.setVerticalScrollBarPolicy(javax.swing.JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);\r
-            jScrollPane.setHorizontalScrollBarPolicy(javax.swing.JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);\r
-            jScrollPane.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.LOWERED));\r
-            jScrollPane.setViewportView(getJTextArea2());\r
-            jScrollPane.setLocation(new java.awt.Point(30, 55));\r
-        }\r
-        return jScrollPane;\r
-    }\r
-\r
-    /**\r
-     This method initializes jTextArea2 \r
-     \r
-     @return javax.swing.JTextArea jTextArea2\r
-     \r
-     **/\r
-    private JTextArea getJTextArea2() {\r
-        if (jTextArea2 == null) {\r
-            jTextArea2 = new JTextArea();\r
-            jTextArea2.setEditable(false);\r
-            jTextArea2.setWrapStyleWord(false);\r
-            jTextArea2.setLineWrap(true);\r
-            jTextArea2.setText("Copyright (c) 2006, Intel Corp.\n"\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 may be found at http://opensource.org/licenses/bsd-license.php\n\n\n"\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
-        return jTextArea2;\r
-    }\r
-\r
-    /**\r
-     Main class, used for test\r
-     \r
-     @param args\r
-     \r
-     **/\r
-    public static void main(String[] args) {\r
-        LicenseAgreement la = new LicenseAgreement();\r
-        la.setVisible(true);\r
-    }\r
-\r
-    /**\r
-     This is the default constructor\r
-     \r
-     **/\r
-    public LicenseAgreement() {\r
-        super();\r
-        init();\r
-    }\r
-\r
-    /**\r
-     This is the override constructor\r
-\r
-     @param welcome The input data of Welcome\r
-     \r
-     **/\r
-    public LicenseAgreement(Welcome welcome) {\r
-        super();\r
-        init();\r
-        w = welcome;\r
-    }\r
-\r
-    /**\r
-     This method initializes this\r
-     \r
-     **/\r
-    private void init() {\r
-        this.setSize(500, 390);\r
-        this.setContentPane(getJContentPane());\r
-        this.setTitle("Setup - License Agreement");\r
-        this.centerWindow();\r
-        this.getRootPane().setDefaultButton(jButtonNext);\r
-    }\r
-\r
-    /**\r
-     This method initializes jContentPane\r
-     \r
-     @return javax.swing.JPanel jContentPane\r
-     \r
-     **/\r
-    private JPanel getJContentPane() {\r
-        if (jContentPane == null) {\r
-            jContentPane = new JPanel();\r
-            jContentPane.setLayout(null);\r
-            jContentPane.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));\r
-            jContentPane.add(getJTextArea(), null);\r
-            jContentPane.add(getJTextArea1(), null);\r
-            jContentPane.add(getJPanel(), null);\r
-            jContentPane.add(getJButtonBack(), null);\r
-            jContentPane.add(getJButtonNext(), null);\r
-            jContentPane.add(getJButtonCancel(), null);\r
-        }\r
-        return jContentPane;\r
-    }\r
-\r
-    /* (non-Javadoc)\r
-     * @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)\r
-     * \r
-     * Override actionPerformed to listen all actions\r
-     * \r
-     */\r
-    public void actionPerformed(ActionEvent arg0) {\r
-        Object obj = arg0.getSource();\r
-        //\r
-        // Disable button next when select jRadioButtonDisagree\r
-        //\r
-        if (obj == jRadioButtonDisagree) {\r
-            if (jRadioButtonDisagree.isSelected()) {\r
-                jRadioButtonAgree.setSelected(false);\r
-                jButtonNext.setEnabled(false);\r
-                jButtonNext.setFocusable(false);\r
-            }\r
-            if (!jRadioButtonAgree.isSelected() && !jRadioButtonDisagree.isSelected()) {\r
-                jRadioButtonDisagree.setSelected(true);\r
-            }\r
-        }\r
-        \r
-        //\r
-        // Enable button next when select jRadioButtonAgree\r
-        //\r
-        if (obj == jRadioButtonAgree) {\r
-            if (jRadioButtonAgree.isSelected()) {\r
-                jRadioButtonDisagree.setSelected(false);\r
-                jButtonNext.setEnabled(true);\r
-                jButtonNext.setFocusable(true);\r
-            }\r
-            if (!jRadioButtonAgree.isSelected() && !jRadioButtonDisagree.isSelected()) {\r
-                jRadioButtonAgree.setSelected(true);\r
-            }\r
-        }\r
-\r
-        if (obj == jButtonBack) {\r
-            this.setVisible(false);\r
-            w.setVisible(true);\r
-        }\r
-\r
-        //\r
-        // Show next page when click button Next\r
-        //\r
-        if (obj == jButtonNext) {\r
-            if (sdd == null) {\r
-                sdd = new SelectDestinationDirectory(this);\r
-            }\r
-            this.setVisible(false);\r
-            sdd.setVisible(true);\r
-        }\r
-\r
-        if (obj == jButtonCancel) {\r
-            this.onExit();\r
-        }\r
-    }\r
-\r
-    /* (non-Javadoc)\r
-     * @see java.awt.event.WindowListener#windowClosing(java.awt.event.WindowEvent)\r
-     * \r
-     * Override windowClosing to show confirm quit dialog\r
-     * \r
-     */\r
-    public void windowClosing(WindowEvent arg0) {\r
-        this.onExit();\r
-    }\r
-}\r
diff --git a/Tools/Source/CreateMdkPkg/src/org/tianocore/packaging/workspace/ui/SelectDestinationDirectory.java b/Tools/Source/CreateMdkPkg/src/org/tianocore/packaging/workspace/ui/SelectDestinationDirectory.java
deleted file mode 100644 (file)
index 4f167dc..0000000
+++ /dev/null
@@ -1,469 +0,0 @@
-/** @file\r
\r
- The file is used to show a Select Destination Directory page in\r
- the process of setup\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
-\r
-package org.tianocore.packaging.workspace.ui;\r
-\r
-import java.awt.event.ActionEvent;\r
-import java.awt.event.ActionListener;\r
-import java.awt.event.WindowEvent;\r
-\r
-import javax.swing.JButton;\r
-import javax.swing.JFileChooser;\r
-import javax.swing.JLabel;\r
-import javax.swing.JOptionPane;\r
-import javax.swing.JPanel;\r
-import javax.swing.JTextArea;\r
-import javax.swing.JTextField;\r
-\r
-import org.tianocore.common.Log;\r
-import org.tianocore.packaging.common.ui.IFrame;\r
-import org.tianocore.packaging.workspace.command.InstallWorkspace;\r
-\r
-/**\r
- The class is used to show a Select Destination Directory page in\r
- the process of setup\r
\r
- @since CreateMdkPkg 1.0\r
-\r
- **/\r
-public class SelectDestinationDirectory extends IFrame implements ActionListener {\r
-\r
-    ///\r
-    /// Define class Serial Version UID\r
-    ///\r
-    private static final long serialVersionUID = -2924500118774744205L;\r
-\r
-    //\r
-    // Define class members\r
-    //\r
-    private JPanel jContentPane = null;\r
-\r
-    private JTextArea jTextArea = null;\r
-\r
-    private JTextArea jTextArea1 = null;\r
-\r
-    private JPanel jPanel = null;\r
-\r
-    private JButton jButtonBack = null;\r
-\r
-    private JButton jButtonNext = null;\r
-\r
-    private JButton jButtonCancel = null;\r
-\r
-    private JLabel jLabel = null;\r
-\r
-    private JLabel jLabel1 = null;\r
-\r
-    private JTextField jTextFieldInstallDir = null;\r
-\r
-    private JButton jButtonBrowse = null;\r
-\r
-    private JLabel jLabel2 = null;\r
-\r
-    private LicenseAgreement la = null;\r
-\r
-    /**\r
-     This method initializes jTextArea \r
-     \r
-     @return javax.swing.JTextArea jTextArea\r
-     \r
-     **/\r
-    private JTextArea getJTextArea() {\r
-        if (jTextArea == null) {\r
-            jTextArea = new JTextArea();\r
-            jTextArea.setLocation(new java.awt.Point(0, 0));\r
-            jTextArea.setText("    Select Destination Directory");\r
-            jTextArea.setFont(new java.awt.Font("Dialog", java.awt.Font.BOLD, 14));\r
-            jTextArea.setEditable(false);\r
-            jTextArea.setSize(new java.awt.Dimension(495, 20));\r
-        }\r
-        return jTextArea;\r
-    }\r
-\r
-    /**\r
-     This method initializes jTextArea1 \r
-     \r
-     @return javax.swing.JTextArea jTextArea1\r
-     \r
-     **/\r
-    private JTextArea getJTextArea1() {\r
-        if (jTextArea1 == null) {\r
-            jTextArea1 = new JTextArea();\r
-            jTextArea1.setLocation(new java.awt.Point(0, 20));\r
-            jTextArea1.setText("           Where should MDK package be installed?");\r
-            jTextArea1.setEditable(false);\r
-            jTextArea1.setSize(new java.awt.Dimension(495, 35));\r
-        }\r
-        return jTextArea1;\r
-    }\r
-\r
-    /**\r
-     This method initializes jPanel \r
-     \r
-     @return javax.swing.JPanel jPanel\r
-     \r
-     **/\r
-    private JPanel getJPanel() {\r
-        if (jPanel == null) {\r
-            jLabel2 = new JLabel();\r
-            jLabel2.setText("At least 10 MB of free disk space is required");\r
-            jLabel2.setLocation(new java.awt.Point(30, 225));\r
-            jLabel2.setSize(new java.awt.Dimension(290, 20));\r
-            jLabel1 = new JLabel();\r
-            jLabel1.setText("To continue, click Next. If you wuold like to select different folder, click Browse.");\r
-            jLabel1.setLocation(new java.awt.Point(30, 55));\r
-            jLabel1.setSize(new java.awt.Dimension(435, 20));\r
-            jLabel = new JLabel();\r
-            jLabel.setText("Setup will install MDK package into the following folders:");\r
-            jLabel.setLocation(new java.awt.Point(30, 15));\r
-            jLabel.setSize(new java.awt.Dimension(435, 20));\r
-            jPanel = new JPanel();\r
-            jPanel.setLayout(null);\r
-            jPanel.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.LOWERED));\r
-            jPanel.setSize(new java.awt.Dimension(494, 251));\r
-            jPanel.setLocation(new java.awt.Point(0, 55));\r
-            jPanel.add(jLabel, null);\r
-            jPanel.add(jLabel1, null);\r
-            jPanel.add(getJTextField(), null);\r
-            jPanel.add(getJButtonBrowse(), null);\r
-            jPanel.add(jLabel2, null);\r
-        }\r
-        return jPanel;\r
-    }\r
-\r
-    /**\r
-     This method initializes jButtonBack \r
-     \r
-     @return javax.swing.JButton jButtonBack\r
-     \r
-     **/\r
-    private JButton getJButtonBack() {\r
-        if (jButtonBack == null) {\r
-            jButtonBack = new JButton();\r
-            jButtonBack.setText("Back");\r
-            jButtonBack.setSize(new java.awt.Dimension(90, 20));\r
-            jButtonBack.setLocation(new java.awt.Point(200, 315));\r
-            jButtonBack.setMnemonic('B');\r
-            jButtonBack.addActionListener(this);\r
-        }\r
-        return jButtonBack;\r
-    }\r
-\r
-    /**\r
-     This method initializes jButtonNext \r
-     \r
-     @return javax.swing.JButton jButtonNext\r
-     \r
-     **/\r
-    private JButton getJButtonNext() {\r
-        if (jButtonNext == null) {\r
-            jButtonNext = new JButton();\r
-            jButtonNext.setText("Next");\r
-            jButtonNext.setBounds(new java.awt.Rectangle(292, 315, 90, 20));\r
-            jButtonNext.setEnabled(true);\r
-            jButtonNext.setMnemonic('N');\r
-            jButtonNext.addActionListener(this);\r
-        }\r
-        return jButtonNext;\r
-    }\r
-\r
-    /**\r
-     This method initializes jButtonCancel \r
-     \r
-     @return javax.swing.JButton jButtonCancel\r
-     \r
-     **/\r
-    private JButton getJButtonCancel() {\r
-        if (jButtonCancel == null) {\r
-            jButtonCancel = new JButton();\r
-            jButtonCancel.setText("Cancel");\r
-            jButtonCancel.setBounds(new java.awt.Rectangle(390, 315, 90, 20));\r
-            jButtonCancel.setMnemonic('C');\r
-            jButtonCancel.addActionListener(this);\r
-        }\r
-        return jButtonCancel;\r
-    }\r
-\r
-    /**\r
-     This method initializes jTextFieldInstallDir \r
-     \r
-     @return javax.swing.JTextField jTextFieldInstallDir\r
-     \r
-     **/\r
-    private JTextField getJTextField() {\r
-        if (jTextFieldInstallDir == null) {\r
-            jTextFieldInstallDir = new JTextField();\r
-            jTextFieldInstallDir.setLocation(new java.awt.Point(30, 90));\r
-            jTextFieldInstallDir.setSize(new java.awt.Dimension(320, 20));\r
-            jTextFieldInstallDir.setText("C:\\MyWorkspace");\r
-        }\r
-        return jTextFieldInstallDir;\r
-    }\r
-\r
-    /**\r
-     This method initializes jButtonBrowse \r
-     \r
-     @return javax.swing.JButton jButtonBrowse\r
-     \r
-     **/\r
-    private JButton getJButtonBrowse() {\r
-        if (jButtonBrowse == null) {\r
-            jButtonBrowse = new JButton();\r
-            jButtonBrowse.setText("Browse");\r
-            jButtonBrowse.setSize(new java.awt.Dimension(90, 20));\r
-            jButtonBrowse.setLocation(new java.awt.Point(370, 90));\r
-            jButtonBrowse.addActionListener(this);\r
-        }\r
-        return jButtonBrowse;\r
-    }\r
-\r
-    /**\r
-     Main class, used for test\r
-     \r
-     @param args\r
-     \r
-     **/\r
-    public static void main(String[] args) {\r
-        SelectDestinationDirectory sdd = new SelectDestinationDirectory();\r
-        sdd.setVisible(true);\r
-    }\r
-\r
-    /**\r
-     This is the default constructor\r
-     \r
-     **/\r
-    public SelectDestinationDirectory() {\r
-        super();\r
-        init();\r
-    }\r
-\r
-    /**\r
-     This is the override constructor\r
-     \r
-     @param licenseagreement The input data of licenseagreement\r
-     \r
-     **/\r
-    public SelectDestinationDirectory(LicenseAgreement licenseagreement) {\r
-        super();\r
-        init();\r
-        la = licenseagreement;\r
-    }\r
-\r
-    /**\r
-     This method initializes this\r
-     \r
-     **/\r
-    private void init() {\r
-        this.setSize(500, 390);\r
-        this.setTitle("Setup - Select Destination Directory");\r
-        this.setContentPane(getJContentPane());\r
-        this.centerWindow();\r
-        this.getRootPane().setDefaultButton(jButtonNext);\r
-    }\r
-\r
-    /**\r
-     This method initializes jContentPane\r
-     \r
-     @return javax.swing.JPanel jContentPane\r
-     \r
-     **/\r
-    private JPanel getJContentPane() {\r
-        if (jContentPane == null) {\r
-            jContentPane = new JPanel();\r
-            jContentPane.setLayout(null);\r
-            jContentPane.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));\r
-            jContentPane.add(getJTextArea(), null);\r
-            jContentPane.add(getJTextArea1(), null);\r
-            jContentPane.add(getJPanel(), null);\r
-            jContentPane.add(getJButtonBack(), null);\r
-            jContentPane.add(getJButtonNext(), null);\r
-            jContentPane.add(getJButtonCancel(), null);\r
-        }\r
-        return jContentPane;\r
-    }\r
-\r
-    /* (non-Javadoc)\r
-     * @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)\r
-     * \r
-     * Override actionPerformed to listen all actions\r
-     * \r
-     */\r
-    public void actionPerformed(ActionEvent arg0) {\r
-        Object obj = arg0.getSource();\r
-\r
-        if (obj == jButtonBack) {\r
-            this.setVisible(false);\r
-            la.setVisible(true);\r
-        }\r
-\r
-        //\r
-        // Show next page if click button Next\r
-        //\r
-        if (obj == jButtonNext) {\r
-            if (createWorkspace(jTextFieldInstallDir.getText())) {\r
-                if (initWorkspace(jTextFieldInstallDir.getText())) {\r
-                    this.setVisible(false);\r
-                    Finish f = new Finish(jTextFieldInstallDir.getText());\r
-                    f.setVisible(true);\r
-                }\r
-            }\r
-        }\r
-\r
-        if (obj == jButtonCancel) {\r
-            this.onExit();\r
-        }\r
-\r
-        if (obj == jButtonBrowse) {\r
-            JFileChooser fc = new JFileChooser();\r
-            fc.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);\r
-            int result = fc.showOpenDialog(new JPanel());\r
-            if (result == JFileChooser.APPROVE_OPTION) {\r
-                jTextFieldInstallDir.setText(fc.getCurrentDirectory().toString() + System.getProperty("file.separator")\r
-                                             + fc.getSelectedFile().getName());\r
-            }\r
-        }\r
-    }\r
-\r
-    /**\r
-     Create workspace to target dir\r
-     \r
-     @param strInstallDir The install target dir\r
-     @retval true - Create success\r
-     @retval false - Create fail\r
-     \r
-     **/\r
-    private boolean createWorkspace(String strInstallDir) {\r
-        boolean bolCreateDirectory = true;\r
-        int intResult;\r
-\r
-        //\r
-        //Check if the Install Dir exists\r
-        //\r
-        Log.log("is Exist Install Dir");\r
-        if (InstallWorkspace.isExistInstallDir(strInstallDir)) {\r
-            intResult = JOptionPane.showConfirmDialog(null, strInstallDir + " already exists, continue anyway?",\r
-                                                      "Override", JOptionPane.YES_NO_OPTION);\r
-            if (intResult != JOptionPane.YES_OPTION) {\r
-                return false;\r
-            } else {\r
-                bolCreateDirectory = false;\r
-            }\r
-        }\r
-\r
-        //\r
-        //Create the directory\r
-        //\r
-        Log.log("Create Directory");\r
-        if (bolCreateDirectory) {\r
-            if (!InstallWorkspace.createInstallDir(strInstallDir)) {\r
-                intResult = JOptionPane.showConfirmDialog(null, "Cannot create direcotry " + strInstallDir\r
-                                                                + " in system. Click OK to exist.", "Error",\r
-                                                          JOptionPane.DEFAULT_OPTION, JOptionPane.WARNING_MESSAGE);\r
-                return false;\r
-            }\r
-        }\r
-        return true;\r
-    }\r
-\r
-    /**\r
-     Init created workspace\r
-     \r
-     @param strInstallDir The dir of workspace\r
-     @retval true - Init Success\r
-     @retval false - Init fail\r
-     \r
-     **/\r
-    private boolean initWorkspace(String strInstallDir) {\r
-        String strJarFile = System.getProperty("user.dir") + System.getProperty("file.separator") + "CreateMdkPkg.jar";\r
-\r
-        //\r
-        //Install package\r
-        //\r
-        Log.log("Install Package");\r
-        try {\r
-            if (!InstallWorkspace.installPackage(strInstallDir, strJarFile)) {\r
-                JOptionPane.showConfirmDialog(null, "Cannot intall package in system. Click OK to exist.", "Error",\r
-                                              JOptionPane.DEFAULT_OPTION, JOptionPane.WARNING_MESSAGE);\r
-                return false;\r
-            }\r
-        } catch (Exception e) {\r
-            e.printStackTrace();\r
-        }\r
-\r
-        //\r
-        //Update framework database\r
-        //\r
-        Log.log("Set Framework Database");\r
-        if (!InstallWorkspace.setFrameworkDatabase()) {\r
-            JOptionPane.showConfirmDialog(null, "Cannot create workspace database in system. Click OK to exist.",\r
-                                          "Error", JOptionPane.DEFAULT_OPTION, JOptionPane.WARNING_MESSAGE);\r
-            return false;\r
-        }\r
-\r
-        //\r
-        //Set System Environment\r
-        //\r
-        Log.log("Set System Environment");\r
-        if (!InstallWorkspace.setSystemEnvironment()) {\r
-            JOptionPane.showConfirmDialog(null, "Cannot set WORKSPACE variable in system. Click OK to exist.", "Error",\r
-                                          JOptionPane.DEFAULT_OPTION, JOptionPane.WARNING_MESSAGE);\r
-            return false;\r
-        }\r
-\r
-        //\r
-        //Set Tool Chain Path\r
-        //\r
-        Log.log("Set Tool Chain Path");\r
-        if (!InstallWorkspace.setToolChainPath()) {\r
-            JOptionPane.showConfirmDialog(null, "Cannot set Tool Chain path variable in system. Click OK to exist.",\r
-                                          "Error", JOptionPane.DEFAULT_OPTION, JOptionPane.WARNING_MESSAGE);\r
-            return false;\r
-        }\r
-\r
-        //\r
-        //Install tool chain\r
-        //\r
-        Log.log("Set Tool Chain");\r
-        if (!InstallWorkspace.setToolChain()) {\r
-            JOptionPane.showConfirmDialog(null, "Cannot set Tool Chain in system. Click OK to exist.", "Error",\r
-                                          JOptionPane.DEFAULT_OPTION, JOptionPane.WARNING_MESSAGE);\r
-            return false;\r
-        }\r
-\r
-        //\r
-        //Delete setup files\r
-        //\r
-        Log.log("Delete Setup Files");\r
-        try {\r
-            InstallWorkspace.delSetupPackage(strInstallDir + System.getProperty("file.separator") + "org");\r
-        } catch (Exception e) {\r
-            e.printStackTrace();\r
-            Log.log(e.getMessage());\r
-        }\r
-\r
-        return true;\r
-    }\r
-\r
-    /* (non-Javadoc)\r
-     * @see java.awt.event.WindowListener#windowClosing(java.awt.event.WindowEvent)\r
-     * \r
-     * Override windowClosing to show confirm quit dialog\r
-     * \r
-     */\r
-    public void windowClosing(WindowEvent arg0) {\r
-        this.onExit();\r
-    }\r
-}\r
diff --git a/Tools/Source/CreateMdkPkg/src/org/tianocore/packaging/workspace/ui/Welcome.java b/Tools/Source/CreateMdkPkg/src/org/tianocore/packaging/workspace/ui/Welcome.java
deleted file mode 100644 (file)
index aa2e586..0000000
+++ /dev/null
@@ -1,272 +0,0 @@
-/** @file\r
\r
- The file is used to show a welcome page in the process of setup \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
-\r
-package org.tianocore.packaging.workspace.ui;\r
-\r
-import java.awt.event.ActionEvent;\r
-import java.awt.event.ActionListener;\r
-import java.awt.event.WindowEvent;\r
-\r
-import javax.swing.JButton;\r
-import javax.swing.JPanel;\r
-import javax.swing.JTextArea;\r
-\r
-import org.tianocore.packaging.common.ui.IFrame;\r
-\r
-/**\r
- The class is used to show a welcome page in the process of setup\r
\r
- @since CreateMdkPkg 1.0\r
-\r
- **/\r
-public class Welcome extends IFrame implements ActionListener {\r
-\r
-    ///\r
-    /// Define class Serial Version UID\r
-    ///\r
-    private static final long serialVersionUID = 8160041311175680637L;\r
-\r
-    //\r
-    // Define class members\r
-    //\r
-    private JPanel jContentPane = null;\r
-\r
-    private JPanel jPanel = null;\r
-\r
-    private JTextArea jTextArea = null;\r
-\r
-    private JTextArea jTextArea1 = null;\r
-\r
-    private JTextArea jTextArea2 = null;\r
-\r
-    private JTextArea jTextArea3 = null;\r
-\r
-    private JButton jButtonNext = null;\r
-\r
-    private JButton jButtonCancel = null;\r
-\r
-    private LicenseAgreement la = null;\r
-\r
-    /**\r
-     This method initializes jPanel \r
-     \r
-     @return javax.swing.JPanel jPanel\r
-     \r
-     **/\r
-    private JPanel getJPanel() {\r
-        if (jPanel == null) {\r
-            jPanel = new JPanel();\r
-            jPanel.setLayout(null);\r
-            jPanel.setSize(new java.awt.Dimension(495, 355));\r
-            jPanel.setLocation(new java.awt.Point(0, 0));\r
-            jPanel.add(getJTextArea(), null);\r
-            jPanel.add(getJTextArea1(), null);\r
-            jPanel.add(getJTextArea2(), null);\r
-            jPanel.add(getJTextArea3(), null);\r
-            jPanel.add(getJButtonNext(), null);\r
-            jPanel.add(getJButtonCancel(), null);\r
-        }\r
-        return jPanel;\r
-    }\r
-\r
-    /**\r
-     This method initializes jTextArea \r
-     \r
-     @return javax.swing.JTextArea jTextArea\r
-     \r
-     **/\r
-    private JTextArea getJTextArea() {\r
-        if (jTextArea == null) {\r
-            jTextArea = new JTextArea();\r
-            jTextArea.setFont(new java.awt.Font("Times New Roman", java.awt.Font.BOLD, 24));\r
-            jTextArea.setSize(new java.awt.Dimension(495, 70));\r
-            jTextArea.setLocation(new java.awt.Point(0, 0));\r
-            jTextArea.setEnabled(true);\r
-            jTextArea.setEditable(false);\r
-            jTextArea.setText("Welcome to the MDK Package Setup Wizard");\r
-        }\r
-        return jTextArea;\r
-    }\r
-\r
-    /**\r
-     This method initializes jTextArea1 \r
-     \r
-     @return javax.swing.JTextArea jTextArea1\r
-     \r
-     **/\r
-    private JTextArea getJTextArea1() {\r
-        if (jTextArea1 == null) {\r
-            jTextArea1 = new JTextArea();\r
-            jTextArea1.setText("This will install MDK Package on your computer. ");\r
-            jTextArea1.setSize(new java.awt.Dimension(495, 40));\r
-            jTextArea1.setEnabled(true);\r
-            jTextArea1.setEditable(false);\r
-            jTextArea1.setLocation(new java.awt.Point(0, 70));\r
-        }\r
-        return jTextArea1;\r
-    }\r
-\r
-    /**\r
-     This method initializes jTextArea2 \r
-     \r
-     @return javax.swing.JTextArea jTextArea2\r
-     \r
-     **/\r
-    private JTextArea getJTextArea2() {\r
-        if (jTextArea2 == null) {\r
-            jTextArea2 = new JTextArea();\r
-            jTextArea2.setSize(new java.awt.Dimension(495, 50));\r
-            jTextArea2\r
-                      .setText("It is strongly recommended that you exit all other programs before running this installation program.");\r
-            jTextArea2.setLineWrap(true);\r
-            jTextArea2.setEnabled(true);\r
-            jTextArea2.setEditable(false);\r
-            jTextArea2.setLocation(new java.awt.Point(0, 110));\r
-        }\r
-        return jTextArea2;\r
-    }\r
-\r
-    /**\r
-     This method initializes jTextArea3 \r
-     \r
-     @return javax.swing.JTextArea jTextArea3\r
-     \r
-     **/\r
-    private JTextArea getJTextArea3() {\r
-        if (jTextArea3 == null) {\r
-            jTextArea3 = new JTextArea();\r
-            jTextArea3.setBounds(new java.awt.Rectangle(0, 160, 495, 150));\r
-            jTextArea3.setEnabled(true);\r
-            jTextArea3.setEditable(false);\r
-            jTextArea3.setText("Click Nex to continue. Or click Cancel to exit Setup");\r
-        }\r
-        return jTextArea3;\r
-    }\r
-\r
-    /**\r
-     This method initializes jButtonNext \r
-     \r
-     @return javax.swing.JButton jButtonNext\r
-     \r
-     **/\r
-    private JButton getJButtonNext() {\r
-        if (jButtonNext == null) {\r
-            jButtonNext = new JButton();\r
-            jButtonNext.setText("Next");\r
-            jButtonNext.setSize(new java.awt.Dimension(90, 20));\r
-            jButtonNext.setLocation(new java.awt.Point(290, 320));\r
-            jButtonNext.setMnemonic('N');\r
-            jButtonNext.addActionListener(this);\r
-        }\r
-        return jButtonNext;\r
-    }\r
-\r
-    /**\r
-     This method initializes jButtonCancel \r
-     \r
-     @return javax.swing.JButton jButtonCancel\r
-     \r
-     **/\r
-    private JButton getJButtonCancel() {\r
-        if (jButtonCancel == null) {\r
-            jButtonCancel = new JButton();\r
-            jButtonCancel.setText("Cancel");\r
-            jButtonCancel.setSize(new java.awt.Dimension(90, 20));\r
-            jButtonCancel.setLocation(new java.awt.Point(390, 320));\r
-            jButtonCancel.setMnemonic('C');\r
-            jButtonCancel.addActionListener(this);\r
-        }\r
-        return jButtonCancel;\r
-    }\r
-\r
-    /**\r
-     Main class, used for test\r
-     \r
-     @param args\r
-     **/\r
-    public static void main(String[] args) {\r
-        Welcome w = new Welcome();\r
-        w.setVisible(true);\r
-    }\r
-\r
-    /**\r
-     This is the default constructor\r
-     \r
-     **/\r
-    public Welcome() {\r
-        super();\r
-        init();\r
-    }\r
-\r
-    /**\r
-     This method initializes this\r
-     \r
-     **/\r
-    private void init() {\r
-        this.setSize(500, 390);\r
-        this.setContentPane(getJContentPane());\r
-        this.setTitle("Welcome");\r
-        this.centerWindow();\r
-        this.getRootPane().setDefaultButton(jButtonNext);\r
-    }\r
-\r
-    /**\r
-     This method initializes jContentPane\r
-     \r
-     @return javax.swing.JPanel jContentPane\r
-     \r
-     **/\r
-    private JPanel getJContentPane() {\r
-        if (jContentPane == null) {\r
-            jContentPane = new JPanel();\r
-            jContentPane.setLayout(null);\r
-            jContentPane.add(getJPanel(), null);\r
-        }\r
-        return jContentPane;\r
-    }\r
-\r
-    /* (non-Javadoc)\r
-     * @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)\r
-     * \r
-     * Override actionPerformed to listen all actions\r
-     * \r
-     */\r
-    public void actionPerformed(ActionEvent arg0) {\r
-        Object obj = arg0.getSource();\r
-        //\r
-        // Show next page if click button Next\r
-        //\r
-        if (obj == jButtonNext) {\r
-            if (la == null) {\r
-                la = new LicenseAgreement(this);\r
-            }\r
-            this.setVisible(false);\r
-            la.setVisible(true);\r
-        }\r
-        if (obj == jButtonCancel) {\r
-            this.onExit();\r
-        }\r
-    }\r
-\r
-    /* (non-Javadoc)\r
-     * @see java.awt.event.WindowListener#windowClosing(java.awt.event.WindowEvent)\r
-     * \r
-     * Override windowClosing to show confirm quit dialog\r
-     * \r
-     */\r
-    public void windowClosing(WindowEvent arg0) {\r
-        this.onExit();\r
-    }\r
-}\r