]> git.proxmox.com Git - mirror_edk2.git/blame - Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/common/DataType.java
Changed spelling to manifest
[mirror_edk2.git] / Tools / Source / FrameworkWizard / src / org / tianocore / frameworkwizard / common / DataType.java
CommitLineData
a13899c5 1/** @file\r
2 \r
3 The file is used to define all used final variables\r
4 \r
5 Copyright (c) 2006, Intel Corporation\r
6 All rights reserved. This program and the accompanying materials\r
7 are licensed and made available under the terms and conditions of the BSD License\r
8 which accompanies this distribution. The full text of the license may be found at\r
9 http://opensource.org/licenses/bsd-license.php\r
10 \r
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
13\r
14 **/\r
15package org.tianocore.frameworkwizard.common;\r
16\r
17/**\r
18 The class is used to define all used final variables\r
19\r
06a19cee 20 **/\r
a13899c5 21public class DataType {\r
22\r
23 /**\r
24 \r
25 @param args\r
26 \r
27 **/\r
28 public static void main(String[] args) {\r
29\r
30 }\r
06a19cee 31\r
a13899c5 32 //\r
33 // Define all return types\r
34 //\r
35 public static final int RETURN_TYPE_OK = 1;\r
06a19cee 36\r
a13899c5 37 public static final int RETURN_TYPE_CANCEL = 2;\r
06a19cee 38\r
a13899c5 39 public static final int RETURN_TYPE_NEXT = 3;\r
06a19cee 40\r
a13899c5 41 public static final int RETURN_TYPE_BACK = 4;\r
06a19cee 42\r
a13899c5 43 public static final int RETURN_TYPE_MODULE_SURFACE_AREA = 11;\r
06a19cee 44\r
a13899c5 45 public static final int RETURN_TYPE_PACKAGE_SURFACE_AREA = 12;\r
06a19cee 46\r
a13899c5 47 public static final int RETURN_TYPE_PLATFORM_SURFACE_AREA = 13;\r
06a19cee 48\r
a13899c5 49 public static final int RETURN_TYPE_BUILD_XML = 14;\r
06a19cee 50\r
a13899c5 51 public static final int RETURN_TYPE_WORKSPACE = 15;\r
06a19cee 52\r
92e29378 53 public static final int RETURN_TYPE_TEXT = 16;\r
06a19cee 54\r
5a24e806 55 public static final int RETURN_TYPE_FAR_SURFACE_AREA = 17;\r
56 \r
57 \r
a13899c5 58 //\r
59 // Define all used final variables\r
60 //\r
61 public static final String DOS_LINE_SEPARATOR = "\r\n";\r
62\r
63 public static final String UNIX_LINE_SEPARATOR = "\n";\r
3b7a9058 64 \r
65 public static final String LINE_SEPARATOR = UNIX_LINE_SEPARATOR;\r
66 \r
67 public static final String HTML_LINE_SEPARATOR = "<br>";\r
06a19cee 68\r
a13899c5 69 public static final String EMPTY_SELECT_ITEM = "----";\r
06a19cee 70\r
a13899c5 71 public static final String DOS_FILE_SEPARATOR = "\\";\r
06a19cee 72\r
a13899c5 73 public static final String UNIX_FILE_SEPARATOR = "/";\r
06a19cee 74\r
a13899c5 75 //\r
76 // Define xml files ext\r
77 //\r
78 public static final String COPY_OF = "Copy of ";\r
06a19cee 79\r
a13899c5 80 public static final String FILE_EXT_SEPARATOR = ".";\r
06a19cee 81\r
a13899c5 82 public static final String WORKSPACE = "Workspace";\r
06a19cee 83\r
a13899c5 84 public static final String MODULE_SURFACE_AREA = "Module Surface Area Description";\r
06a19cee 85\r
a13899c5 86 public static final String MODULE_SURFACE_AREA_EXT = "msa";\r
06a19cee 87\r
88 public static final String MODULE_SURFACE_AREA_EXT_DESCRIPTION = MODULE_SURFACE_AREA + " (*."\r
89 + MODULE_SURFACE_AREA_EXT + ")";\r
90\r
a13899c5 91 public static final String PACKAGE_SURFACE_AREA = "Package Surface Area Description";\r
06a19cee 92\r
a13899c5 93 public static final String PACKAGE_SURFACE_AREA_EXT = "spd";\r
06a19cee 94\r
95 public static final String PACKAGE_SURFACE_AREA_EXT_DESCRIPTION = PACKAGE_SURFACE_AREA + " (*."\r
96 + PACKAGE_SURFACE_AREA_EXT + ")";\r
97\r
a13899c5 98 public static final String PLATFORM_SURFACE_AREA = "Platform Surface Area Description";\r
06a19cee 99\r
a13899c5 100 public static final String PLATFORM_SURFACE_AREA_EXT = "fpd";\r
06a19cee 101\r
102 public static final String PLATFORM_SURFACE_AREA_EXT_DESCRIPTION = PLATFORM_SURFACE_AREA + " (*."\r
103 + PLATFORM_SURFACE_AREA_EXT + ")";\r
104\r
a13899c5 105 public static final String ANT_BUILD_FILE = "ANT Build File";\r
06a19cee 106\r
a13899c5 107 public static final String ANT_BUILD_FILE_EXT = "xml";\r
06a19cee 108\r
a13899c5 109 public static final String ANT_BUILD_FILE_EXT_DESCRIPTION = ANT_BUILD_FILE + " (*." + ANT_BUILD_FILE_EXT + ")";\r
06a19cee 110\r
92e29378 111 public static final String TEXT_FILE = "Text File";\r
06a19cee 112\r
92e29378 113 public static final String TEXT_FILE_EXT = "txt";\r
06a19cee 114\r
92e29378 115 public static final String TEXT_FILE_EXT_DESCRIPTION = TEXT_FILE + " (*." + TEXT_FILE_EXT + ")";\r
06a19cee 116\r
5a24e806 117 public static final String FAR_SURFACE_AREA = "Framework Archive";\r
118 \r
119 public static final String FAR_SURFACE_AREA_EXT = "far";\r
120 \r
121 public static final String FAR_SURFACE_AREA_EXT_DESCRIPTION = FAR_SURFACE_AREA + " (*." + FAR_SURFACE_AREA_EXT + ")";\r
a13899c5 122 //\r
123 // Define file separator for current OS\r
124 //\r
125 public static String FILE_SEPARATOR = System.getProperty("file.separator");\r
06a19cee 126\r
a13899c5 127 //\r
128 // Defien all used frame, container component's sizes\r
129 //\r
130 public static final int MAIN_FRAME_PREFERRED_SIZE_WIDTH = 800;\r
06a19cee 131\r
a13899c5 132 public static final int MAIN_FRAME_PREFERRED_SIZE_HEIGHT = 600;\r
06a19cee 133\r
a13899c5 134 public static final int MAIN_FRAME_MAX_SIZE_WIDTH = 1920;\r
06a19cee 135\r
a13899c5 136 public static final int MAIN_FRAME_MAX_SIZE_HEIGHT = 1200;\r
06a19cee 137\r
a13899c5 138 public static final int MAIN_FRAME_SPLIT_PANEL_PREFERRED_SIZE_WIDTH = 790;\r
06a19cee 139\r
a13899c5 140 public static final int MAIN_FRAME_SPLIT_PANEL_PREFERRED_SIZE_HEIGHT = 545;\r
06a19cee 141\r
142 public static final int MAIN_FRAME_WIDTH_SPACING = MAIN_FRAME_PREFERRED_SIZE_WIDTH\r
143 - MAIN_FRAME_SPLIT_PANEL_PREFERRED_SIZE_WIDTH;\r
144\r
145 public static final int MAIN_FRAME_HEIGHT_SPACING = MAIN_FRAME_PREFERRED_SIZE_HEIGHT\r
146 - MAIN_FRAME_SPLIT_PANEL_PREFERRED_SIZE_HEIGHT;\r
147\r
a13899c5 148 public static final int MAIN_FRAME_TREE_PANEL_PREFERRED_SIZE_WIDTH = 273;\r
06a19cee 149\r
a13899c5 150 public static final int MAIN_FRAME_TREE_PANEL_PREFERRED_SIZE_HEIGHT = 545;\r
06a19cee 151\r
a13899c5 152 public static final int MAIN_FRAME_EDITOR_PANEL_PREFERRED_SIZE_WIDTH = 515;\r
06a19cee 153\r
a13899c5 154 public static final int MAIN_FRAME_EDITOR_PANEL_PREFERRED_SIZE_HEIGHT = 545;\r
06a19cee 155\r
a13899c5 156 public static final int MAIN_FRAME_EDITOR_PANEL_LOCATION_X = 260;\r
06a19cee 157\r
a13899c5 158 public static final int MAIN_FRAME_EDITOR_PANEL_LOCATION_Y = 1;\r
06a19cee 159\r
a13899c5 160 public static final int SPACE_TO_RIGHT_FOR_GENERATE_BUTTON = 10;\r
06a19cee 161\r
a13899c5 162 public static final int SPACE_TO_RIGHT_FOR_OK_BUTTON = 10;\r
06a19cee 163\r
a13899c5 164 public static final int SPACE_TO_RIGHT_FOR_ADD_BUTTON = 180;\r
06a19cee 165\r
a13899c5 166 public static final int SPACE_TO_RIGHT_FOR_REMOVE_BUTTON = 95;\r
06a19cee 167\r
a13899c5 168 public static final int SPACE_TO_RIGHT_FOR_UPDATE_BUTTON = 10;\r
55a2762d 169\r
06a19cee 170 public static final int SPACE_TO_BOTTOM_FOR_ADD_BUTTON = 30;\r
171\r
172 public static final int SPACE_TO_BOTTOM_FOR_REMOVE_BUTTON = 30;\r
173\r
174 public static final int SPACE_TO_BOTTOM_FOR_UPDATE_BUTTON = 30;\r
8792f60f 175 \r
176 public static final int SPACE_TO_RIGHT_FOR_CLOSE_BUTTON = 240;\r
177 \r
178 public static final int SPACE_TO_BOTTOM_FOR_CLOSE_BUTTON = 25;\r
06a19cee 179\r
180 public static final int SPACE_TO_RIGHT_FOR_PROTOCOL_NOTIFY = 25;\r
181\r
a13899c5 182 public static final int LEFT_WIDTH = 160;\r
06a19cee 183\r
a13899c5 184 public static final int LEFT_HEIGHT = 20;\r
06a19cee 185\r
a13899c5 186 public static final int RIGHT_WIDTH = 320;\r
06a19cee 187\r
a13899c5 188 public static final int RIGHT_HEIGHT = 20;\r
06a19cee 189\r
a13899c5 190 public static final int RIGHT_MULTIPLE_HEIGHT = 4 * RIGHT_HEIGHT;\r
06a19cee 191\r
a13899c5 192 public static final int BUTTON_GEN_WIDTH = 65;\r
06a19cee 193\r
a13899c5 194 public static final int BUTTON_GEN_HEIGHT = 20;\r
06a19cee 195\r
a13899c5 196 public static final int BUTTON_BROWSE_WIDTH = 65;\r
06a19cee 197\r
a13899c5 198 public static final int BUTTON_BROWSE_HEIGHT = 20;\r
06a19cee 199\r
a13899c5 200 public static final int BUTTON_ADD_WIDTH = 80;\r
06a19cee 201\r
a13899c5 202 public static final int BUTTON_ADD_HEIGHT = 20;\r
06a19cee 203\r
a13899c5 204 public static final int BUTTON_UPDATE_WIDTH = 80;\r
06a19cee 205\r
a13899c5 206 public static final int BUTTON_UPDATE_HEIGHT = 20;\r
06a19cee 207\r
a13899c5 208 public static final int BUTTON_REMOVE_WIDTH = 80;\r
06a19cee 209\r
a13899c5 210 public static final int BUTTON_REMOVE_HEIGHT = 20;\r
06a19cee 211\r
a13899c5 212 public static final int SCROLLBAR_WIDTH = 18;\r
06a19cee 213\r
a13899c5 214 public static final int SCROLLBAR_HEIGHT = 18;\r
06a19cee 215\r
a13899c5 216 //\r
217 // Common Help Text\r
218 // First defined here\r
219 // Will be replaced by resource file later\r
220 //\r
af6afe48 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>";\r
06a19cee 222\r
8f9acbd7 223 //\r
224 // Project name and version\r
225 //\r
226 public static final String PROJECT_NAME = "Framework Wizard";\r
06a19cee 227\r
8f9acbd7 228 public static final String PROJECT_VERSION = "1.0";\r
06a19cee 229\r
92e29378 230 //\r
231 // Sort Type\r
232 //\r
233 public static final int SORT_TYPE_ASCENDING = 1;\r
06a19cee 234\r
92e29378 235 public static final int SORT_TYPE_DESCENDING = 2;\r
06a19cee 236\r
92e29378 237 //\r
238 // Module Type\r
239 //\r
240 public static final String MODULE_TYPE_LIBRARY = "Library";\r
06a19cee 241\r
92e29378 242 public static final String MODULE_TYPE_MODULE = "Module";\r
43dc3851 243 \r
244 //\r
245 // Hex String Header\r
246 //\r
247 public static final String HEX_STRING_HEADER = "0x";\r
739c6b04 248 \r
249 //\r
250 // The String of Boolean\r
251 //\r
252 public static final String TRUE = "True";\r
253 \r
254 public static final String FALSE = "False";\r
55e83b18 255 \r
256 //\r
257 // The Sting for USAGE type\r
258 //\r
259 public final static String USAGE_TYPE_ALWAYS_CONSUMED = "ALWAYS_CONSUMED";\r
260 \r
261 public final static String USAGE_TYPE_SOMETIMES_CONSUMED = "SOMETIMES_CONSUMED";\r
262 \r
263 public final static String USAGE_TYPE_ALWAYS_PRODUCED = "ALWAYS_PRODUCED";\r
264 \r
265 public final static String USAGE_TYPE_SOMETIMES_PRODUCED = "SOMETIMES_PRODUCED";\r
266 \r
267 public final static String USAGE_TYPE_PRIVATE = "PRIVATE";\r
268 \r
269 //\r
270 // The String for PPI type\r
271 //\r
272 public final static String PPI_TYPE_PPI = "Ppi";\r
273 \r
274 public final static String PPI_TYPE_PPI_NOTIFY = "Ppi Notify";\r
275 \r
276 //\r
277 // The String for Protocol type\r
278 //\r
279 public final static String PROTOCOL_TYPE_PROTOCOL = "Protocol";\r
280 \r
281 public final static String PROTOCOL_TYPE_PROTOCOL_NOTIFY = "Protocol Notify";\r
b63cc1b6 282 \r
283 //\r
284 // The default file name for guids.xref file\r
285 //\r
286 public final static String GUIDS_XREF_FILE_NAME = "guids.xref";\r
a13899c5 287}\r