]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/common/ui/IDefaultMutableTreeNode.java
Restructuring for better separation of Tool packages.
[mirror_edk2.git] / Tools / Source / FrameworkWizard / src / org / tianocore / frameworkwizard / common / ui / IDefaultMutableTreeNode.java
diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/common/ui/IDefaultMutableTreeNode.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/common/ui/IDefaultMutableTreeNode.java
deleted file mode 100644 (file)
index 4708191..0000000
+++ /dev/null
@@ -1,280 +0,0 @@
-/** @file\r
\r
\r
- The file is used to override DefaultMutableTreeNode 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.frameworkwizard.common.ui;\r
-\r
-import javax.swing.tree.DefaultMutableTreeNode;\r
-\r
-import org.tianocore.frameworkwizard.common.Identifications.Identification;\r
-\r
-/**\r
- The class is used to override DefaultMutableTreeNode to provides customized interfaces\r
- It extends DefaultMutableTreeNode\r
\r
-\r
\r
- **/\r
-public class IDefaultMutableTreeNode extends DefaultMutableTreeNode {\r
-    ///\r
-    /// Define class Serial Version UID\r
-    ///\r
-    private static final long serialVersionUID = -1947340717458069548L;\r
-\r
-    //\r
-    // Static final definitions for all kinds of node\r
-    //\r
-    public static final int MSA_HEADER = 100;\r
-\r
-    public static final int MSA_LIBRARYCLASSDEFINITIONS = 101;\r
-\r
-    public static final int MSA_PACKAGEDEPENDENCIES = 102;\r
-\r
-    public static final int MSA_SOURCEFILES = 103;\r
-\r
-    public static final int MSA_PROTOCOLS = 104;\r
-\r
-    public static final int MSA_EVENTS = 105;\r
-\r
-    public static final int MSA_HOBS = 106;\r
-\r
-    public static final int MSA_PPIS = 107;\r
-\r
-    public static final int MSA_VARIABLES = 108;\r
-\r
-    public static final int MSA_BOOTMODES = 109;\r
-\r
-    public static final int MSA_SYSTEMTABLES = 110;\r
-\r
-    public static final int MSA_DATAHUBS = 111;\r
-\r
-    public static final int MSA_HIIPACKAGES = 112;\r
-\r
-    public static final int MSA_GUIDS = 113;\r
-\r
-    public static final int MSA_EXTERNS = 114;\r
-\r
-    public static final int MSA_PCDS = 115;\r
-\r
-    public static final int MSA_BUILDOPTIONS = 117;\r
-\r
-    public static final int MSA_USEREXTENSIONS = 118;\r
-\r
-    public static final int MSA_MODULEDEFINITIONS = 119;\r
-\r
-    public static final int SPD_HEADER = 200;\r
-\r
-    public static final int SPD_LIBRARYCLASSDECLARATIONS = 201;\r
-\r
-    public static final int SPD_MSAFILES = 202;\r
-\r
-    public static final int SPD_PACKAGEHEADERS = 203;\r
-\r
-    public static final int SPD_GUIDDECLARATIONS = 204;\r
-\r
-    public static final int SPD_PROTOCOLDECLARATIONS = 205;\r
-\r
-    public static final int SPD_PPIDECLARATIONS = 206;\r
-\r
-    public static final int SPD_PCDDECLARATIONS = 207;\r
-\r
-    public static final int SPD_PACKAGEDEFINITIONS = 208;\r
-\r
-    public static final int SPD_INDUSTRYSTDINCLUDES = 209;\r
-\r
-    public static final int FPD_PLATFORMHEADER = 300;\r
-\r
-    public static final int FPD_FLASH = 301;\r
-\r
-    public static final int FPD_FRAMEWORKMODULES = 302;\r
-\r
-    public static final int FPD_PCDDYNAMICBUILDDECLARATIONS = 303;\r
-\r
-    public static final int FPD_BUILDOPTIONS = 304;\r
-\r
-    public static final int FPD_PLATFORMDEFINITIONS = 305;\r
-\r
-    public static final int WORKSPACE = 0;\r
-\r
-    public static final int MODULE_DESCRIPTION = 1;\r
-\r
-    public static final int PACKAGE_DESCRIPTION = 2;\r
-\r
-    public static final int PLATFORM_DESCRIPTION = 3;\r
-\r
-    public static final int MODULE = 4;\r
-\r
-    public static final int PACKAGE = 5;\r
-\r
-    public static final int PLATFORM = 6;\r
-\r
-    public static final int MODULE_PACKAGE = 7;\r
-\r
-    public static final int MODULE_PACKAGE_LIBRARY = 8;\r
-\r
-    public static final int MODULE_PACKAGE_MODULE = 9;\r
-\r
-    //\r
-    //Static final definitions for operation\r
-    //\r
-    public static final int OPERATION_NULL = 0;\r
-\r
-    public static final int OPERATION_ADD = 1;\r
-\r
-    public static final int OPERATION_UPDATE = 2;\r
-\r
-    public static final int OPERATION_DELETE = 4;\r
-\r
-    public static final int OPERATION_ADD_UPDATE = 3;\r
-\r
-    public static final int OPERATION_ADD_DELETE = 5;\r
-\r
-    public static final int OPERATION_UPDATE_DELETE = 6;\r
-\r
-    public static final int OPERATION_ADD_UPDATE_DELETE = 7;\r
-\r
-    //\r
-    //Define 4 node attributes\r
-    //\r
-    private int category = 0;\r
-\r
-    private String nodeName = "";\r
-\r
-    private boolean isOpening = false;\r
-\r
-    private Identification id = null;\r
-    \r
-    private IDefaultMutableTreeNode belongNode = null;\r
-\r
-    /**\r
-     This is the default constructor\r
-     \r
-     **/\r
-    public IDefaultMutableTreeNode() {\r
-        super();\r
-    }\r
-\r
-    /**\r
-     This is the overrided constructor\r
-     Init clase members with input data\r
-     \r
-     @param strNodeName The name of node\r
-     @param intCategory The category of node\r
-     @param bolIsOpened to identify if the node is opening or not\r
-     @param identification The Identification of node\r
-     \r
-     **/\r
-    public IDefaultMutableTreeNode(String strNodeName, int intCategory, boolean bolIsOpening,\r
-                                   Identification identification, IDefaultMutableTreeNode idmtBelongNode) {\r
-        super(strNodeName);\r
-        this.nodeName = strNodeName;\r
-        this.category = intCategory;\r
-        this.isOpening = bolIsOpening;\r
-        this.id = identification;\r
-        this.belongNode = idmtBelongNode;\r
-    }\r
-\r
-    /**\r
-     Get category of node \r
-     \r
-     @return The category of node\r
-     \r
-     **/\r
-    public int getCategory() {\r
-        return category;\r
-    }\r
-\r
-    /**\r
-     Set category of node\r
-     \r
-     @param category The input data of node category\r
-     \r
-     **/\r
-    public void setCategory(int category) {\r
-        this.category = category;\r
-    }\r
-\r
-    /**\r
-     Get name of node\r
-     \r
-     @return The name of node\r
-     \r
-     **/\r
-    public String getNodeName() {\r
-        return nodeName;\r
-    }\r
-\r
-    /**\r
-     Set name of node\r
-     \r
-     @param nodeName The input data of node name\r
-     \r
-     **/\r
-    public void setNodeName(String nodeName) {\r
-        this.nodeName = nodeName;\r
-    }\r
-\r
-    /**\r
-     Get identification of node\r
-     \r
-     @return\r
-     \r
-     **/\r
-    public Identification getId() {\r
-        return id;\r
-    }\r
-\r
-    /**\r
-     Set identification of node\r
-     \r
-     @param id\r
-     \r
-     **/\r
-    public void setId(Identification id) {\r
-        this.id = id;\r
-    }\r
-\r
-    /**\r
-     get isOpening of node\r
-     \r
-     @return\r
-     \r
-     **/\r
-    public boolean isOpening() {\r
-        return isOpening;\r
-    }\r
-\r
-    /**\r
-     Set isOpening of node\r
-     \r
-     @param isOpening\r
-     \r
-     **/\r
-    public void setOpening(boolean isOpening) {\r
-        this.isOpening = isOpening;\r
-    }\r
-    \r
-    public String toString() {\r
-        return this.nodeName;\r
-    }\r
-\r
-    public IDefaultMutableTreeNode getBelongNode() {\r
-        return belongNode;\r
-    }\r
-\r
-    public void setBelongNode(IDefaultMutableTreeNode belongNode) {\r
-        this.belongNode = belongNode;\r
-    }\r
-}\r