]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Tools/Source/ModuleEditor/src/org/tianocore/packaging/module/ui/ModuleAbout.java
Remove ModuleEditor and PackageEditor from Tools\Source
[mirror_edk2.git] / Tools / Source / ModuleEditor / src / org / tianocore / packaging / module / ui / ModuleAbout.java
diff --git a/Tools/Source/ModuleEditor/src/org/tianocore/packaging/module/ui/ModuleAbout.java b/Tools/Source/ModuleEditor/src/org/tianocore/packaging/module/ui/ModuleAbout.java
deleted file mode 100644 (file)
index eb217f5..0000000
+++ /dev/null
@@ -1,146 +0,0 @@
-/** @file\r
\r
- To show a about window with copyright 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.packaging.module.ui;\r
-\r
-import java.awt.event.ActionEvent;\r
-import java.awt.event.WindowEvent;\r
-\r
-import javax.swing.JButton;\r
-import javax.swing.JLabel;\r
-import javax.swing.JPanel;\r
-\r
-import org.tianocore.packaging.common.ui.IDialog;\r
-\r
-/**\r
- The class is used to show a about window with copyright information\r
- It extends IDialog\r
\r
- @since ModuleEditor 1.0\r
-\r
- **/\r
-public class ModuleAbout extends IDialog {\r
-\r
-    ///\r
-    /// Define class Serial Version UID\r
-    ///\r
-    private static final long serialVersionUID = 2958136136667310962L;\r
-\r
-    //\r
-    //Define class members\r
-    //\r
-    private JPanel jContentPane = null;\r
-\r
-    private JLabel jLabel = null;\r
-\r
-    private JLabel jLabel1 = null;\r
-\r
-    private JLabel jLabel2 = null;\r
-\r
-    private JButton jButtonOK = null;\r
-\r
-    /**\r
-     This method initializes jButtonOK \r
-     \r
-     @return javax.swing.JButton jButtonOK\r
-     \r
-     **/\r
-    private JButton getJButtonOK() {\r
-        if (jButtonOK == null) {\r
-            jButtonOK = new JButton();\r
-            jButtonOK.setBounds(new java.awt.Rectangle(105, 120, 90, 20));\r
-            jButtonOK.setText("OK");\r
-            jButtonOK.addActionListener(this);\r
-        }\r
-        return jButtonOK;\r
-    }\r
-\r
-    public static void main(String[] args) {\r
-    }\r
-\r
-    /**\r
-     This is the default constructor\r
-     \r
-     **/\r
-    public ModuleAbout() {\r
-        super();\r
-        init();\r
-    }\r
-\r
-    /**\r
-     This method initializes this\r
-     \r
-     **/\r
-    private void init() {\r
-        this.setSize(300, 200);\r
-        this.setContentPane(getJContentPane());\r
-        this.setTitle("About...");\r
-        this.getRootPane().setDefaultButton(jButtonOK);\r
-        this.centerWindow();\r
-        this.setVisible(true);\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
-            jLabel2 = new JLabel();\r
-            jLabel2.setBounds(new java.awt.Rectangle(15, 80, 270, 20));\r
-            jLabel2.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\r
-            jLabel2.setText("All rights reserved");\r
-            jLabel1 = new JLabel();\r
-            jLabel1.setBounds(new java.awt.Rectangle(15, 50, 270, 20));\r
-            jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\r
-            jLabel1.setText("Copyright (c) 2006, Intel Corporation");\r
-            jLabel = new JLabel();\r
-            jLabel.setToolTipText("");\r
-            jLabel.setBounds(new java.awt.Rectangle(15, 20, 270, 20));\r
-            jLabel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\r
-            jLabel.setText("Framework Development Package System 1.0");\r
-            jContentPane = new JPanel();\r
-            jContentPane.setLayout(null);\r
-            jContentPane.add(jLabel, null);\r
-            jContentPane.add(jLabel1, null);\r
-            jContentPane.add(jLabel2, null);\r
-            jContentPane.add(getJButtonOK(), 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
-    public void actionPerformed(ActionEvent arg0) {\r
-        if (arg0.getSource() == jButtonOK) {\r
-            this.dispose();\r
-        }\r
-    }\r
-\r
-    /**\r
-     Dispose when windows is closing\r
-     \r
-     @param arg0\r
-     \r
-     **/\r
-    public void windowClosing(WindowEvent arg0) {\r
-        this.dispose();\r
-    }\r
-}\r