3 The file is used to define all used final variables
5 Copyright (c) 2006, Intel Corporation
6 All rights reserved. This program and the accompanying materials
7 are licensed and made available under the terms and conditions of the BSD License
8 which accompanies this distribution. The full text of the license may be found at
9 http://opensource.org/licenses/bsd-license.php
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
15 package org
.tianocore
.frameworkwizard
.common
;
18 The class is used to define all used final variables
21 public class DataType
{
28 public static void main(String
[] args
) {
33 // Define all return types
35 public static final int RETURN_TYPE_OK
= 1;
37 public static final int RETURN_TYPE_CANCEL
= 2;
39 public static final int RETURN_TYPE_NEXT
= 3;
41 public static final int RETURN_TYPE_BACK
= 4;
43 public static final int RETURN_TYPE_MODULE_SURFACE_AREA
= 11;
45 public static final int RETURN_TYPE_PACKAGE_SURFACE_AREA
= 12;
47 public static final int RETURN_TYPE_PLATFORM_SURFACE_AREA
= 13;
49 public static final int RETURN_TYPE_BUILD_XML
= 14;
51 public static final int RETURN_TYPE_WORKSPACE
= 15;
53 public static final int RETURN_TYPE_TEXT
= 16;
55 public static final int RETURN_TYPE_FAR_SURFACE_AREA
= 17;
59 // Define all used final variables
61 public static final String DOS_LINE_SEPARATOR
= "\r\n";
63 public static final String UNIX_LINE_SEPARATOR
= "\n";
65 public static final String LINE_SEPARATOR
= UNIX_LINE_SEPARATOR
;
67 public static final String HTML_LINE_SEPARATOR
= "<br>";
69 public static final String EMPTY_SELECT_ITEM
= "----";
71 public static final String DOS_FILE_SEPARATOR
= "\\";
73 public static final String UNIX_FILE_SEPARATOR
= "/";
76 // Define xml files ext
78 public static final String COPY_OF
= "Copy of ";
80 public static final String FILE_EXT_SEPARATOR
= ".";
82 public static final String WORKSPACE
= "Workspace";
84 public static final String MODULE_SURFACE_AREA
= "Module Surface Area Description";
86 public static final String MODULE_SURFACE_AREA_EXT
= "msa";
88 public static final String MODULE_SURFACE_AREA_EXT_DESCRIPTION
= MODULE_SURFACE_AREA
+ " (*."
89 + MODULE_SURFACE_AREA_EXT
+ ")";
91 public static final String PACKAGE_SURFACE_AREA
= "Package Surface Area Description";
93 public static final String PACKAGE_SURFACE_AREA_EXT
= "spd";
95 public static final String PACKAGE_SURFACE_AREA_EXT_DESCRIPTION
= PACKAGE_SURFACE_AREA
+ " (*."
96 + PACKAGE_SURFACE_AREA_EXT
+ ")";
98 public static final String PLATFORM_SURFACE_AREA
= "Platform Surface Area Description";
100 public static final String PLATFORM_SURFACE_AREA_EXT
= "fpd";
102 public static final String PLATFORM_SURFACE_AREA_EXT_DESCRIPTION
= PLATFORM_SURFACE_AREA
+ " (*."
103 + PLATFORM_SURFACE_AREA_EXT
+ ")";
105 public static final String ANT_BUILD_FILE
= "ANT Build File";
107 public static final String ANT_BUILD_FILE_EXT
= "xml";
109 public static final String ANT_BUILD_FILE_EXT_DESCRIPTION
= ANT_BUILD_FILE
+ " (*." + ANT_BUILD_FILE_EXT
+ ")";
111 public static final String TEXT_FILE
= "Text File";
113 public static final String TEXT_FILE_EXT
= "txt";
115 public static final String TEXT_FILE_EXT_DESCRIPTION
= TEXT_FILE
+ " (*." + TEXT_FILE_EXT
+ ")";
117 public static final String FAR_SURFACE_AREA
= "Framework Archive";
119 public static final String FAR_SURFACE_AREA_EXT
= "far";
121 public static final String FAR_SURFACE_AREA_EXT_DESCRIPTION
= FAR_SURFACE_AREA
+ " (*." + FAR_SURFACE_AREA_EXT
+ ")";
123 // Define file separator for current OS
125 public static String FILE_SEPARATOR
= System
.getProperty("file.separator");
128 // Defien all used frame, container component's sizes
130 public static final int MAIN_FRAME_PREFERRED_SIZE_WIDTH
= 800;
132 public static final int MAIN_FRAME_PREFERRED_SIZE_HEIGHT
= 600;
134 public static final int MAIN_FRAME_MAX_SIZE_WIDTH
= 1920;
136 public static final int MAIN_FRAME_MAX_SIZE_HEIGHT
= 1200;
138 public static final int MAIN_FRAME_SPLIT_PANEL_PREFERRED_SIZE_WIDTH
= 790;
140 public static final int MAIN_FRAME_SPLIT_PANEL_PREFERRED_SIZE_HEIGHT
= 545;
142 public static final int MAIN_FRAME_WIDTH_SPACING
= MAIN_FRAME_PREFERRED_SIZE_WIDTH
143 - MAIN_FRAME_SPLIT_PANEL_PREFERRED_SIZE_WIDTH
;
145 public static final int MAIN_FRAME_HEIGHT_SPACING
= MAIN_FRAME_PREFERRED_SIZE_HEIGHT
146 - MAIN_FRAME_SPLIT_PANEL_PREFERRED_SIZE_HEIGHT
;
148 public static final int MAIN_FRAME_TREE_PANEL_PREFERRED_SIZE_WIDTH
= 273;
150 public static final int MAIN_FRAME_TREE_PANEL_PREFERRED_SIZE_HEIGHT
= 545;
152 public static final int MAIN_FRAME_EDITOR_PANEL_PREFERRED_SIZE_WIDTH
= 515;
154 public static final int MAIN_FRAME_EDITOR_PANEL_PREFERRED_SIZE_HEIGHT
= 545;
156 public static final int MAIN_FRAME_EDITOR_PANEL_LOCATION_X
= 260;
158 public static final int MAIN_FRAME_EDITOR_PANEL_LOCATION_Y
= 1;
160 public static final int SPACE_TO_RIGHT_FOR_GENERATE_BUTTON
= 10;
162 public static final int SPACE_TO_RIGHT_FOR_OK_BUTTON
= 10;
164 public static final int SPACE_TO_RIGHT_FOR_ADD_BUTTON
= 200;
166 public static final int SPACE_TO_RIGHT_FOR_REMOVE_BUTTON
= 105;
168 public static final int SPACE_TO_RIGHT_FOR_UPDATE_BUTTON
= 10;
170 public static final int SPACE_TO_BOTTOM_FOR_ADD_BUTTON
= 30;
172 public static final int SPACE_TO_BOTTOM_FOR_REMOVE_BUTTON
= 30;
174 public static final int SPACE_TO_BOTTOM_FOR_UPDATE_BUTTON
= 30;
176 public static final int SPACE_TO_RIGHT_FOR_CLOSE_BUTTON
= 240;
178 public static final int SPACE_TO_BOTTOM_FOR_CLOSE_BUTTON
= 25;
180 public static final int SPACE_TO_RIGHT_FOR_PROTOCOL_NOTIFY
= 25;
182 public static final int LEFT_WIDTH
= 160;
184 public static final int LEFT_HEIGHT
= 20;
186 public static final int RIGHT_WIDTH
= 320;
188 public static final int RIGHT_HEIGHT
= 20;
190 public static final int RIGHT_MULTIPLE_HEIGHT
= 4 * RIGHT_HEIGHT
;
192 public static final int BUTTON_GEN_WIDTH
= 65;
194 public static final int BUTTON_GEN_HEIGHT
= 20;
196 public static final int BUTTON_BROWSE_WIDTH
= 65;
198 public static final int BUTTON_BROWSE_HEIGHT
= 20;
200 public static final int BUTTON_ADD_WIDTH
= 80;
202 public static final int BUTTON_ADD_HEIGHT
= 20;
204 public static final int BUTTON_UPDATE_WIDTH
= 80;
206 public static final int BUTTON_UPDATE_HEIGHT
= 20;
208 public static final int BUTTON_REMOVE_WIDTH
= 80;
210 public static final int BUTTON_REMOVE_HEIGHT
= 20;
212 public static final int SCROLLBAR_WIDTH
= 18;
214 public static final int SCROLLBAR_HEIGHT
= 18;
218 // First defined here
219 // Will be replaced by resource file later
221 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>";
224 // Project name and version
226 public static final String PROJECT_NAME
= "Framework Wizard";
228 public static final String PROJECT_VERSION
= "1.0";
233 public static final int SORT_TYPE_ASCENDING
= 1;
235 public static final int SORT_TYPE_DESCENDING
= 2;
240 public static final String MODULE_TYPE_LIBRARY
= "Library";
242 public static final String MODULE_TYPE_MODULE
= "Module";
247 public static final String HEX_STRING_HEADER
= "0x";
250 // The String of Boolean
252 public static final String TRUE
= "True";
254 public static final String FALSE
= "False";
257 // The String for USAGE type
259 public final static String USAGE_TYPE_ALWAYS_CONSUMED
= "ALWAYS_CONSUMED";
261 public final static String USAGE_TYPE_SOMETIMES_CONSUMED
= "SOMETIMES_CONSUMED";
263 public final static String USAGE_TYPE_ALWAYS_PRODUCED
= "ALWAYS_PRODUCED";
265 public final static String USAGE_TYPE_SOMETIMES_PRODUCED
= "SOMETIMES_PRODUCED";
267 public final static String USAGE_TYPE_PRIVATE
= "PRIVATE";
270 // The String for PCD type
272 public final static String PCD_ITEM_TYPE_FEATURE_FLAG
= "FEATURE_FLAG";
274 public final static String PCD_ITEM_TYPE_FIXED_AT_BUILD
= "FIXED_AT_BUILD";
276 public final static String PCD_ITEM_TYPE_PATCHABLE_IN_MODULE
= "PATCHABLE_IN_MODULE";
278 public final static String PCD_ITEM_TYPE_DYNAMIC
= "DYNAMIC";
280 public final static String PCD_ITEM_TYPE_DYNAMIC_EX
= "DYNAMIC_EX";
283 // The String for PPI type
285 public final static String PPI_TYPE_PPI
= "Ppi";
287 public final static String PPI_TYPE_PPI_NOTIFY
= "Ppi Notify";
290 // The String for Protocol type
292 public final static String PROTOCOL_TYPE_PROTOCOL
= "Protocol";
294 public final static String PROTOCOL_TYPE_PROTOCOL_NOTIFY
= "Protocol Notify";
297 // The default file name for guids.xref file
299 public final static String GUIDS_XREF_FILE_NAME
= "guids.xref";