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