]> git.proxmox.com Git - mirror_edk2.git/blame - Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/common/DataType.java
1. Provide "Find" function for Ppi/Protocol/Guid/Pcd/LibraryClass.
[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
06a19cee 64\r
a13899c5 65 public static final String EMPTY_SELECT_ITEM = "----";\r
06a19cee 66\r
a13899c5 67 public static final String DOS_FILE_SEPARATOR = "\\";\r
06a19cee 68\r
a13899c5 69 public static final String UNIX_FILE_SEPARATOR = "/";\r
06a19cee 70\r
a13899c5 71 //\r
72 // Define xml files ext\r
73 //\r
74 public static final String COPY_OF = "Copy of ";\r
06a19cee 75\r
a13899c5 76 public static final String FILE_EXT_SEPARATOR = ".";\r
06a19cee 77\r
a13899c5 78 public static final String WORKSPACE = "Workspace";\r
06a19cee 79\r
a13899c5 80 public static final String MODULE_SURFACE_AREA = "Module Surface Area Description";\r
06a19cee 81\r
a13899c5 82 public static final String MODULE_SURFACE_AREA_EXT = "msa";\r
06a19cee 83\r
84 public static final String MODULE_SURFACE_AREA_EXT_DESCRIPTION = MODULE_SURFACE_AREA + " (*."\r
85 + MODULE_SURFACE_AREA_EXT + ")";\r
86\r
a13899c5 87 public static final String PACKAGE_SURFACE_AREA = "Package Surface Area Description";\r
06a19cee 88\r
a13899c5 89 public static final String PACKAGE_SURFACE_AREA_EXT = "spd";\r
06a19cee 90\r
91 public static final String PACKAGE_SURFACE_AREA_EXT_DESCRIPTION = PACKAGE_SURFACE_AREA + " (*."\r
92 + PACKAGE_SURFACE_AREA_EXT + ")";\r
93\r
a13899c5 94 public static final String PLATFORM_SURFACE_AREA = "Platform Surface Area Description";\r
06a19cee 95\r
a13899c5 96 public static final String PLATFORM_SURFACE_AREA_EXT = "fpd";\r
06a19cee 97\r
98 public static final String PLATFORM_SURFACE_AREA_EXT_DESCRIPTION = PLATFORM_SURFACE_AREA + " (*."\r
99 + PLATFORM_SURFACE_AREA_EXT + ")";\r
100\r
a13899c5 101 public static final String ANT_BUILD_FILE = "ANT Build File";\r
06a19cee 102\r
a13899c5 103 public static final String ANT_BUILD_FILE_EXT = "xml";\r
06a19cee 104\r
a13899c5 105 public static final String ANT_BUILD_FILE_EXT_DESCRIPTION = ANT_BUILD_FILE + " (*." + ANT_BUILD_FILE_EXT + ")";\r
06a19cee 106\r
92e29378 107 public static final String TEXT_FILE = "Text File";\r
06a19cee 108\r
92e29378 109 public static final String TEXT_FILE_EXT = "txt";\r
06a19cee 110\r
92e29378 111 public static final String TEXT_FILE_EXT_DESCRIPTION = TEXT_FILE + " (*." + TEXT_FILE_EXT + ")";\r
06a19cee 112\r
5a24e806 113 public static final String FAR_SURFACE_AREA = "Framework Archive";\r
114 \r
115 public static final String FAR_SURFACE_AREA_EXT = "far";\r
116 \r
117 public static final String FAR_SURFACE_AREA_EXT_DESCRIPTION = FAR_SURFACE_AREA + " (*." + FAR_SURFACE_AREA_EXT + ")";\r
a13899c5 118 //\r
119 // Define file separator for current OS\r
120 //\r
121 public static String FILE_SEPARATOR = System.getProperty("file.separator");\r
06a19cee 122\r
a13899c5 123 //\r
124 // Defien all used frame, container component's sizes\r
125 //\r
126 public static final int MAIN_FRAME_PREFERRED_SIZE_WIDTH = 800;\r
06a19cee 127\r
a13899c5 128 public static final int MAIN_FRAME_PREFERRED_SIZE_HEIGHT = 600;\r
06a19cee 129\r
a13899c5 130 public static final int MAIN_FRAME_MAX_SIZE_WIDTH = 1920;\r
06a19cee 131\r
a13899c5 132 public static final int MAIN_FRAME_MAX_SIZE_HEIGHT = 1200;\r
06a19cee 133\r
a13899c5 134 public static final int MAIN_FRAME_SPLIT_PANEL_PREFERRED_SIZE_WIDTH = 790;\r
06a19cee 135\r
a13899c5 136 public static final int MAIN_FRAME_SPLIT_PANEL_PREFERRED_SIZE_HEIGHT = 545;\r
06a19cee 137\r
138 public static final int MAIN_FRAME_WIDTH_SPACING = MAIN_FRAME_PREFERRED_SIZE_WIDTH\r
139 - MAIN_FRAME_SPLIT_PANEL_PREFERRED_SIZE_WIDTH;\r
140\r
141 public static final int MAIN_FRAME_HEIGHT_SPACING = MAIN_FRAME_PREFERRED_SIZE_HEIGHT\r
142 - MAIN_FRAME_SPLIT_PANEL_PREFERRED_SIZE_HEIGHT;\r
143\r
a13899c5 144 public static final int MAIN_FRAME_TREE_PANEL_PREFERRED_SIZE_WIDTH = 273;\r
06a19cee 145\r
a13899c5 146 public static final int MAIN_FRAME_TREE_PANEL_PREFERRED_SIZE_HEIGHT = 545;\r
06a19cee 147\r
a13899c5 148 public static final int MAIN_FRAME_EDITOR_PANEL_PREFERRED_SIZE_WIDTH = 515;\r
06a19cee 149\r
a13899c5 150 public static final int MAIN_FRAME_EDITOR_PANEL_PREFERRED_SIZE_HEIGHT = 545;\r
06a19cee 151\r
a13899c5 152 public static final int MAIN_FRAME_EDITOR_PANEL_LOCATION_X = 260;\r
06a19cee 153\r
a13899c5 154 public static final int MAIN_FRAME_EDITOR_PANEL_LOCATION_Y = 1;\r
06a19cee 155\r
a13899c5 156 public static final int SPACE_TO_RIGHT_FOR_GENERATE_BUTTON = 10;\r
06a19cee 157\r
a13899c5 158 public static final int SPACE_TO_RIGHT_FOR_OK_BUTTON = 10;\r
06a19cee 159\r
a13899c5 160 public static final int SPACE_TO_RIGHT_FOR_ADD_BUTTON = 180;\r
06a19cee 161\r
a13899c5 162 public static final int SPACE_TO_RIGHT_FOR_REMOVE_BUTTON = 95;\r
06a19cee 163\r
a13899c5 164 public static final int SPACE_TO_RIGHT_FOR_UPDATE_BUTTON = 10;\r
55a2762d 165\r
06a19cee 166 public static final int SPACE_TO_BOTTOM_FOR_ADD_BUTTON = 30;\r
167\r
168 public static final int SPACE_TO_BOTTOM_FOR_REMOVE_BUTTON = 30;\r
169\r
170 public static final int SPACE_TO_BOTTOM_FOR_UPDATE_BUTTON = 30;\r
8792f60f 171 \r
172 public static final int SPACE_TO_RIGHT_FOR_CLOSE_BUTTON = 240;\r
173 \r
174 public static final int SPACE_TO_BOTTOM_FOR_CLOSE_BUTTON = 25;\r
06a19cee 175\r
176 public static final int SPACE_TO_RIGHT_FOR_PROTOCOL_NOTIFY = 25;\r
177\r
a13899c5 178 public static final int LEFT_WIDTH = 160;\r
06a19cee 179\r
a13899c5 180 public static final int LEFT_HEIGHT = 20;\r
06a19cee 181\r
a13899c5 182 public static final int RIGHT_WIDTH = 320;\r
06a19cee 183\r
a13899c5 184 public static final int RIGHT_HEIGHT = 20;\r
06a19cee 185\r
a13899c5 186 public static final int RIGHT_MULTIPLE_HEIGHT = 4 * RIGHT_HEIGHT;\r
06a19cee 187\r
a13899c5 188 public static final int BUTTON_GEN_WIDTH = 65;\r
06a19cee 189\r
a13899c5 190 public static final int BUTTON_GEN_HEIGHT = 20;\r
06a19cee 191\r
a13899c5 192 public static final int BUTTON_BROWSE_WIDTH = 65;\r
06a19cee 193\r
a13899c5 194 public static final int BUTTON_BROWSE_HEIGHT = 20;\r
06a19cee 195\r
a13899c5 196 public static final int BUTTON_ADD_WIDTH = 80;\r
06a19cee 197\r
a13899c5 198 public static final int BUTTON_ADD_HEIGHT = 20;\r
06a19cee 199\r
a13899c5 200 public static final int BUTTON_UPDATE_WIDTH = 80;\r
06a19cee 201\r
a13899c5 202 public static final int BUTTON_UPDATE_HEIGHT = 20;\r
06a19cee 203\r
a13899c5 204 public static final int BUTTON_REMOVE_WIDTH = 80;\r
06a19cee 205\r
a13899c5 206 public static final int BUTTON_REMOVE_HEIGHT = 20;\r
06a19cee 207\r
a13899c5 208 public static final int SCROLLBAR_WIDTH = 18;\r
06a19cee 209\r
a13899c5 210 public static final int SCROLLBAR_HEIGHT = 18;\r
06a19cee 211\r
a13899c5 212 //\r
213 // Common Help Text\r
214 // First defined here\r
215 // Will be replaced by resource file later\r
216 //\r
af6afe48 217 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 218\r
8f9acbd7 219 //\r
220 // Project name and version\r
221 //\r
222 public static final String PROJECT_NAME = "Framework Wizard";\r
06a19cee 223\r
8f9acbd7 224 public static final String PROJECT_VERSION = "1.0";\r
06a19cee 225\r
92e29378 226 //\r
227 // Sort Type\r
228 //\r
229 public static final int SORT_TYPE_ASCENDING = 1;\r
06a19cee 230\r
92e29378 231 public static final int SORT_TYPE_DESCENDING = 2;\r
06a19cee 232\r
92e29378 233 //\r
234 // Module Type\r
235 //\r
236 public static final String MODULE_TYPE_LIBRARY = "Library";\r
06a19cee 237\r
92e29378 238 public static final String MODULE_TYPE_MODULE = "Module";\r
43dc3851 239 \r
240 //\r
241 // Hex String Header\r
242 //\r
243 public static final String HEX_STRING_HEADER = "0x";\r
739c6b04 244 \r
245 //\r
246 // The String of Boolean\r
247 //\r
248 public static final String TRUE = "True";\r
249 \r
250 public static final String FALSE = "False";\r
55e83b18 251 \r
252 //\r
253 // The Sting for USAGE type\r
254 //\r
255 public final static String USAGE_TYPE_ALWAYS_CONSUMED = "ALWAYS_CONSUMED";\r
256 \r
257 public final static String USAGE_TYPE_SOMETIMES_CONSUMED = "SOMETIMES_CONSUMED";\r
258 \r
259 public final static String USAGE_TYPE_ALWAYS_PRODUCED = "ALWAYS_PRODUCED";\r
260 \r
261 public final static String USAGE_TYPE_SOMETIMES_PRODUCED = "SOMETIMES_PRODUCED";\r
262 \r
263 public final static String USAGE_TYPE_PRIVATE = "PRIVATE";\r
264 \r
265 //\r
266 // The String for PPI type\r
267 //\r
268 public final static String PPI_TYPE_PPI = "Ppi";\r
269 \r
270 public final static String PPI_TYPE_PPI_NOTIFY = "Ppi Notify";\r
271 \r
272 //\r
273 // The String for Protocol type\r
274 //\r
275 public final static String PROTOCOL_TYPE_PROTOCOL = "Protocol";\r
276 \r
277 public final static String PROTOCOL_TYPE_PROTOCOL_NOTIFY = "Protocol Notify";\r
a13899c5 278}\r