summaryrefslogtreecommitdiff
path: root/Tools/Source/ModuleEditor/src/org/tianocore/packaging/common/ui/IDefaultMutableTreeNode.java
diff options
context:
space:
mode:
Diffstat (limited to 'Tools/Source/ModuleEditor/src/org/tianocore/packaging/common/ui/IDefaultMutableTreeNode.java')
-rw-r--r--Tools/Source/ModuleEditor/src/org/tianocore/packaging/common/ui/IDefaultMutableTreeNode.java307
1 files changed, 0 insertions, 307 deletions
diff --git a/Tools/Source/ModuleEditor/src/org/tianocore/packaging/common/ui/IDefaultMutableTreeNode.java b/Tools/Source/ModuleEditor/src/org/tianocore/packaging/common/ui/IDefaultMutableTreeNode.java
deleted file mode 100644
index ae51c5fa45..0000000000
--- a/Tools/Source/ModuleEditor/src/org/tianocore/packaging/common/ui/IDefaultMutableTreeNode.java
+++ /dev/null
@@ -1,307 +0,0 @@
-/** @file
-
-
- The file is used to override DefaultMutableTreeNode to provides customized interfaces
-
- Copyright (c) 2006, Intel Corporation
- All rights reserved. This program and the accompanying materials
- are licensed and made available under the terms and conditions of the BSD License
- which accompanies this distribution. The full text of the license may be found at
- http://opensource.org/licenses/bsd-license.php
-
- THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
- WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
-
- **/
-
-package org.tianocore.packaging.common.ui;
-
-import javax.swing.tree.DefaultMutableTreeNode;
-
-/**
- The class is used to override DefaultMutableTreeNode to provides customized interfaces
- It extends DefaultMutableTreeNode
-
- @since ModuleEditor 1.0
-
- **/
-public class IDefaultMutableTreeNode extends DefaultMutableTreeNode {
- ///
- /// Define class Serial Version UID
- ///
- private static final long serialVersionUID = -1947340717458069548L;
-
- //
- //Static final definitions for all kinds of node
- //
- public static final int MSA_HEADER = 0;
-
- public static final int LIBRARYCLASSDEFINITIONS = 1;
-
- public static final int SOURCEFILES = 2;
-
- public static final int INCLUDES = 3;
-
- public static final int PROTOCOLS = 4;
-
- public static final int EVENTS = 5;
-
- public static final int HOBS = 6;
-
- public static final int PPIS = 7;
-
- public static final int VARIABLES = 8;
-
- public static final int BOOTMODES = 9;
-
- public static final int SYSTEMTABLES = 10;
-
- public static final int DATAHUBS = 11;
-
- public static final int FORMSETS = 12;
-
- public static final int GUIDS = 13;
-
- public static final int EXTERNS = 14;
-
- public static final int PCDS = 15;
-
- public static final int MBD_HEADER = 20;
-
- public static final int MLSA_HEADER = 21;
-
- public static final int MLBD_HEADER = 22;
-
- public static final int LIBRARIES = 23;
-
- public static final int LIBRARY_CLASS_DEFINITION = 101;
-
- public static final int SOURCEFILES_FILENAME = 210;
-
- public static final int SOURCEFILES_FILENAME_ITEM = 211;
-
- public static final int SOURCEFILES_ARCH = 220;
-
- public static final int SOURCEFILES_ARCH_ITEM = 221;
-
- public static final int INCLUDES_PACKAGENAME = 310;
-
- public static final int INCLUDES_PACKAGENAME_ITEM = 311;
-
- public static final int INCLUDES_ARCH = 320;
-
- public static final int INCLUDES_ARCH_ITEM = 321;
-
- public static final int PROTOCOLS_PROTOCOL = 410;
-
- public static final int PROTOCOLS_PROTOCOL_ITEM = 411;
-
- public static final int PROTOCOLS_PROTOCOLNOTIFY = 420;
-
- public static final int PROTOCOLS_PROTOCOLNOTIFY_ITEM = 421;
-
- public static final int EVENTS_CREATEEVENTS = 510;
-
- public static final int EVENTS_CREATEEVENTS_ITEM = 511;
-
- public static final int EVENTS_SIGNALEVENTS = 520;
-
- public static final int EVENTS_SIGNALEVENTS_ITEM = 521;
-
- public static final int HOBS_HOB_ITEM = 611;
-
- public static final int PPIS_PPI = 710;
-
- public static final int PPIS_PPI_ITEM = 711;
-
- public static final int PPIS_PPINOTIFY = 720;
-
- public static final int PPIS_PPINOTIFY_ITEM = 721;
-
- public static final int VARIABLES_VARIABLE_ITEM = 811;
-
- public static final int BOOTMODES_BOOTMODE_ITEM = 911;
-
- public static final int SYSTEMTABLES_SYSTEMTABLE_ITEM = 1011;
-
- public static final int DATAHUBS_DATAHUB_ITEM = 1111;
-
- public static final int FORMSETS_FORMSET_ITEM = 1211;
-
- public static final int GUIDS_GUIDENTRY_ITEM = 1311;
-
- public static final int EXTERNS_EXTERN_ITEM = 1411;
-
- public static final int PCDS_PCDDATA_ITEM = 1511;
-
- public static final int LIBRARIES_LIBRARY = 2310;
-
- public static final int LIBRARIES_LIBRARY_ITEM = 2311;
-
- public static final int LIBRARIES_ARCH = 2320;
-
- public static final int LIBRARIES_ARCH_ITEM = 2321;
-
- //
- //Static final definitions for operation
- //
- public static final int OPERATION_NULL = 0;
-
- public static final int OPERATION_ADD = 1;
-
- public static final int OPERATION_UPDATE = 2;
-
- public static final int OPERATION_DELETE = 4;
-
- public static final int OPERATION_ADD_UPDATE = 3;
-
- public static final int OPERATION_ADD_DELETE = 5;
-
- public static final int OPERATION_UPDATE_DELETE = 6;
-
- public static final int OPERATION_ADD_UPDATE_DELETE = 7;
-
- //
- //Define 4 node attributes
- //
- private int category = 0;
-
- private int operation = 0;
-
- private int location = 0;
-
- private String nodeName = "";
-
- /**
- Main class, reserved for test
-
- @param args
-
- **/
- public static void main(String[] args) {
- // TODO Auto-generated method stub
-
- }
-
- /**
- This is the default constructor
-
- **/
- public IDefaultMutableTreeNode() {
- super();
- }
-
- /**
- This is the overrided constructor
- Init clase members with input data
-
- @param strNodeName The name of node
- @param intCategory The category of node
- @param intOperation The operation of node
-
- **/
- public IDefaultMutableTreeNode(String strNodeName, int intCategory, int intOperation) {
- super(strNodeName);
- this.nodeName = strNodeName;
- this.category = intCategory;
- this.operation = intOperation;
- }
-
- /**
- This is the overrided constructor
- Init clase members with input data
-
- @param strNodeName The name of node
- @param intCategory The category of node
- @param intOperation The operation of node
- @param intLocation The location of node
-
- **/
- public IDefaultMutableTreeNode(String strNodeName, int intCategory, int intOperation, int intLocation) {
- super(strNodeName);
- this.nodeName = strNodeName;
- this.category = intCategory;
- this.operation = intOperation;
- this.location = intLocation;
- }
-
- /**
- Get category of node
-
- @return The category of node
-
- **/
- public int getCategory() {
- return category;
- }
-
- /**
- Set category of node
-
- @param category The input data of node category
-
- **/
- public void setCategory(int category) {
- this.category = category;
- }
-
- /**
- Get name of node
-
- @return The name of node
-
- **/
- public String getNodeName() {
- return nodeName;
- }
-
- /**
- Set name of node
-
- @param nodeName The input data of node name
-
- **/
- public void setNodeName(String nodeName) {
- this.nodeName = nodeName;
- }
-
- /**
- Get operation of node
-
- @return The operation of node
-
- **/
- public int getOperation() {
- return operation;
- }
-
- /**
- Set operation of node
-
- @param operation The input data of node operation
-
- **/
- public void setOperation(int operation) {
- this.operation = operation;
- }
-
- /**
- Get location of node
-
- @return The location of node
-
- **/
- public int getLocation() {
- return location;
- }
-
- /**
- Set location of node
-
- @param location The input data of node location
-
- **/
- public void setLocation(int location) {
- this.location = location;
- }
-}