]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/common/DataType.java
Restructuring for better separation of Tool packages.
[mirror_edk2.git] / Tools / Java / Source / FrameworkWizard / src / org / tianocore / frameworkwizard / common / DataType.java
diff --git a/Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/common/DataType.java b/Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/common/DataType.java
new file mode 100644 (file)
index 0000000..21d7613
--- /dev/null
@@ -0,0 +1,287 @@
+/** @file\r
\r
+ The file is used to define all used final variables\r
\r
+ Copyright (c) 2006, Intel Corporation\r
+ All rights reserved. This program and the accompanying materials\r
+ are licensed and made available under the terms and conditions of the BSD License\r
+ which accompanies this distribution.  The full text of the license may be found at\r
+ http://opensource.org/licenses/bsd-license.php\r
\r
+ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+\r
+ **/\r
+package org.tianocore.frameworkwizard.common;\r
+\r
+/**\r
+ The class is used to define all used final variables\r
+\r
+ **/\r
+public class DataType {\r
+\r
+    /**\r
+     \r
+     @param args\r
+     \r
+     **/\r
+    public static void main(String[] args) {\r
+\r
+    }\r
+\r
+    //\r
+    // Define all return types\r
+    //\r
+    public static final int RETURN_TYPE_OK = 1;\r
+\r
+    public static final int RETURN_TYPE_CANCEL = 2;\r
+\r
+    public static final int RETURN_TYPE_NEXT = 3;\r
+\r
+    public static final int RETURN_TYPE_BACK = 4;\r
+\r
+    public static final int RETURN_TYPE_MODULE_SURFACE_AREA = 11;\r
+\r
+    public static final int RETURN_TYPE_PACKAGE_SURFACE_AREA = 12;\r
+\r
+    public static final int RETURN_TYPE_PLATFORM_SURFACE_AREA = 13;\r
+\r
+    public static final int RETURN_TYPE_BUILD_XML = 14;\r
+\r
+    public static final int RETURN_TYPE_WORKSPACE = 15;\r
+\r
+    public static final int RETURN_TYPE_TEXT = 16;\r
+\r
+    public static final int RETURN_TYPE_FAR_SURFACE_AREA = 17;\r
+    \r
+    \r
+    //\r
+    // Define all used final variables\r
+    //\r
+    public static final String DOS_LINE_SEPARATOR = "\r\n";\r
+\r
+    public static final String UNIX_LINE_SEPARATOR = "\n";\r
+    \r
+    public static final String LINE_SEPARATOR = UNIX_LINE_SEPARATOR;\r
+    \r
+    public static final String HTML_LINE_SEPARATOR = "<br>";\r
+\r
+    public static final String EMPTY_SELECT_ITEM = "----";\r
+\r
+    public static final String DOS_FILE_SEPARATOR = "\\";\r
+\r
+    public static final String UNIX_FILE_SEPARATOR = "/";\r
+\r
+    //\r
+    // Define xml files ext\r
+    //\r
+    public static final String COPY_OF = "Copy of ";\r
+\r
+    public static final String FILE_EXT_SEPARATOR = ".";\r
+\r
+    public static final String WORKSPACE = "Workspace";\r
+\r
+    public static final String MODULE_SURFACE_AREA = "Module Surface Area Description";\r
+\r
+    public static final String MODULE_SURFACE_AREA_EXT = "msa";\r
+\r
+    public static final String MODULE_SURFACE_AREA_EXT_DESCRIPTION = MODULE_SURFACE_AREA + " (*."\r
+                                                                     + MODULE_SURFACE_AREA_EXT + ")";\r
+\r
+    public static final String PACKAGE_SURFACE_AREA = "Package Surface Area Description";\r
+\r
+    public static final String PACKAGE_SURFACE_AREA_EXT = "spd";\r
+\r
+    public static final String PACKAGE_SURFACE_AREA_EXT_DESCRIPTION = PACKAGE_SURFACE_AREA + " (*."\r
+                                                                      + PACKAGE_SURFACE_AREA_EXT + ")";\r
+\r
+    public static final String PLATFORM_SURFACE_AREA = "Platform Surface Area Description";\r
+\r
+    public static final String PLATFORM_SURFACE_AREA_EXT = "fpd";\r
+\r
+    public static final String PLATFORM_SURFACE_AREA_EXT_DESCRIPTION = PLATFORM_SURFACE_AREA + " (*."\r
+                                                                       + PLATFORM_SURFACE_AREA_EXT + ")";\r
+\r
+    public static final String ANT_BUILD_FILE = "ANT Build File";\r
+\r
+    public static final String ANT_BUILD_FILE_EXT = "xml";\r
+\r
+    public static final String ANT_BUILD_FILE_EXT_DESCRIPTION = ANT_BUILD_FILE + " (*." + ANT_BUILD_FILE_EXT + ")";\r
+\r
+    public static final String TEXT_FILE = "Text File";\r
+\r
+    public static final String TEXT_FILE_EXT = "txt";\r
+\r
+    public static final String TEXT_FILE_EXT_DESCRIPTION = TEXT_FILE + " (*." + TEXT_FILE_EXT + ")";\r
+\r
+    public static final String FAR_SURFACE_AREA = "Framework Archive";\r
+    \r
+    public static final String FAR_SURFACE_AREA_EXT = "far";\r
+    \r
+    public static final String FAR_SURFACE_AREA_EXT_DESCRIPTION = FAR_SURFACE_AREA + " (*." + FAR_SURFACE_AREA_EXT + ")";\r
+    //\r
+    // Define file separator for current OS\r
+    //\r
+    public static String FILE_SEPARATOR = System.getProperty("file.separator");\r
+\r
+    //\r
+    // Defien all used frame, container component's sizes\r
+    //\r
+    public static final int MAIN_FRAME_PREFERRED_SIZE_WIDTH = 800;\r
+\r
+    public static final int MAIN_FRAME_PREFERRED_SIZE_HEIGHT = 600;\r
+\r
+    public static final int MAIN_FRAME_MAX_SIZE_WIDTH = 1920;\r
+\r
+    public static final int MAIN_FRAME_MAX_SIZE_HEIGHT = 1200;\r
+\r
+    public static final int MAIN_FRAME_SPLIT_PANEL_PREFERRED_SIZE_WIDTH = 790;\r
+\r
+    public static final int MAIN_FRAME_SPLIT_PANEL_PREFERRED_SIZE_HEIGHT = 545;\r
+\r
+    public static final int MAIN_FRAME_WIDTH_SPACING = MAIN_FRAME_PREFERRED_SIZE_WIDTH\r
+                                                       - MAIN_FRAME_SPLIT_PANEL_PREFERRED_SIZE_WIDTH;\r
+\r
+    public static final int MAIN_FRAME_HEIGHT_SPACING = MAIN_FRAME_PREFERRED_SIZE_HEIGHT\r
+                                                        - MAIN_FRAME_SPLIT_PANEL_PREFERRED_SIZE_HEIGHT;\r
+\r
+    public static final int MAIN_FRAME_TREE_PANEL_PREFERRED_SIZE_WIDTH = 273;\r
+\r
+    public static final int MAIN_FRAME_TREE_PANEL_PREFERRED_SIZE_HEIGHT = 545;\r
+\r
+    public static final int MAIN_FRAME_EDITOR_PANEL_PREFERRED_SIZE_WIDTH = 515;\r
+\r
+    public static final int MAIN_FRAME_EDITOR_PANEL_PREFERRED_SIZE_HEIGHT = 545;\r
+\r
+    public static final int MAIN_FRAME_EDITOR_PANEL_LOCATION_X = 260;\r
+\r
+    public static final int MAIN_FRAME_EDITOR_PANEL_LOCATION_Y = 1;\r
+\r
+    public static final int SPACE_TO_RIGHT_FOR_GENERATE_BUTTON = 10;\r
+\r
+    public static final int SPACE_TO_RIGHT_FOR_OK_BUTTON = 10;\r
+\r
+    public static final int SPACE_TO_RIGHT_FOR_ADD_BUTTON = 180;\r
+\r
+    public static final int SPACE_TO_RIGHT_FOR_REMOVE_BUTTON = 95;\r
+\r
+    public static final int SPACE_TO_RIGHT_FOR_UPDATE_BUTTON = 10;\r
+\r
+    public static final int SPACE_TO_BOTTOM_FOR_ADD_BUTTON = 30;\r
+\r
+    public static final int SPACE_TO_BOTTOM_FOR_REMOVE_BUTTON = 30;\r
+\r
+    public static final int SPACE_TO_BOTTOM_FOR_UPDATE_BUTTON = 30;\r
+    \r
+    public static final int SPACE_TO_RIGHT_FOR_CLOSE_BUTTON = 240;\r
+    \r
+    public static final int SPACE_TO_BOTTOM_FOR_CLOSE_BUTTON = 25;\r
+\r
+    public static final int SPACE_TO_RIGHT_FOR_PROTOCOL_NOTIFY = 25;\r
+\r
+    public static final int LEFT_WIDTH = 160;\r
+\r
+    public static final int LEFT_HEIGHT = 20;\r
+\r
+    public static final int RIGHT_WIDTH = 320;\r
+\r
+    public static final int RIGHT_HEIGHT = 20;\r
+\r
+    public static final int RIGHT_MULTIPLE_HEIGHT = 4 * RIGHT_HEIGHT;\r
+\r
+    public static final int BUTTON_GEN_WIDTH = 65;\r
+\r
+    public static final int BUTTON_GEN_HEIGHT = 20;\r
+\r
+    public static final int BUTTON_BROWSE_WIDTH = 65;\r
+\r
+    public static final int BUTTON_BROWSE_HEIGHT = 20;\r
+\r
+    public static final int BUTTON_ADD_WIDTH = 80;\r
+\r
+    public static final int BUTTON_ADD_HEIGHT = 20;\r
+\r
+    public static final int BUTTON_UPDATE_WIDTH = 80;\r
+\r
+    public static final int BUTTON_UPDATE_HEIGHT = 20;\r
+\r
+    public static final int BUTTON_REMOVE_WIDTH = 80;\r
+\r
+    public static final int BUTTON_REMOVE_HEIGHT = 20;\r
+\r
+    public static final int SCROLLBAR_WIDTH = 18;\r
+\r
+    public static final int SCROLLBAR_HEIGHT = 18;\r
+\r
+    //\r
+    // Common Help Text\r
+    // First defined here\r
+    // Will be replaced by resource file later\r
+    //\r
+    public static final String SUP_ARCH_LIST_HELP_TEXT = "<html>Selecting a checkbox is a restriction of only the selected architectures;<br>If none of boxes are selected, all architectures are supported.<html>";\r
+\r
+    //\r
+    // Project name and version\r
+    //\r
+    public static final String PROJECT_NAME = "Framework Wizard";\r
+\r
+    public static final String PROJECT_VERSION = "1.0";\r
+\r
+    //\r
+    // Sort Type\r
+    //\r
+    public static final int SORT_TYPE_ASCENDING = 1;\r
+\r
+    public static final int SORT_TYPE_DESCENDING = 2;\r
+\r
+    //\r
+    // Module Type\r
+    //\r
+    public static final String MODULE_TYPE_LIBRARY = "Library";\r
+\r
+    public static final String MODULE_TYPE_MODULE = "Module";\r
+    \r
+    //\r
+    // Hex String Header\r
+    //\r
+    public static final String HEX_STRING_HEADER = "0x";\r
+    \r
+    //\r
+    // The String of Boolean\r
+    //\r
+    public static final String TRUE = "True";\r
+    \r
+    public static final String FALSE = "False";\r
+    \r
+    //\r
+    // The Sting for USAGE type\r
+    //\r
+    public final static String USAGE_TYPE_ALWAYS_CONSUMED = "ALWAYS_CONSUMED";\r
+    \r
+    public final static String USAGE_TYPE_SOMETIMES_CONSUMED = "SOMETIMES_CONSUMED";\r
+    \r
+    public final static String USAGE_TYPE_ALWAYS_PRODUCED = "ALWAYS_PRODUCED";\r
+    \r
+    public final static String USAGE_TYPE_SOMETIMES_PRODUCED = "SOMETIMES_PRODUCED";\r
+    \r
+    public final static String USAGE_TYPE_PRIVATE = "PRIVATE";\r
+    \r
+    //\r
+    // The String for PPI type\r
+    //\r
+    public final static String PPI_TYPE_PPI = "Ppi";\r
+    \r
+    public final static String PPI_TYPE_PPI_NOTIFY = "Ppi Notify";\r
+    \r
+    //\r
+    // The String for Protocol type\r
+    //\r
+    public final static String PROTOCOL_TYPE_PROTOCOL = "Protocol";\r
+    \r
+    public final static String PROTOCOL_TYPE_PROTOCOL_NOTIFY = "Protocol Notify";\r
+    \r
+    //\r
+    // The default file name for guids.xref file\r
+    //\r
+    public final static String GUIDS_XREF_FILE_NAME = "guids.xref";\r
+}\r