]> git.proxmox.com Git - mirror_edk2.git/blame - Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/common/DataType.java
1. Support to Create/Update/Delete/Install far file
[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
a13899c5 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
171\r
172 public static final int SPACE_TO_RIGHT_FOR_PROTOCOL_NOTIFY = 25;\r
173\r
a13899c5 174 public static final int LEFT_WIDTH = 160;\r
06a19cee 175\r
a13899c5 176 public static final int LEFT_HEIGHT = 20;\r
06a19cee 177\r
a13899c5 178 public static final int RIGHT_WIDTH = 320;\r
06a19cee 179\r
a13899c5 180 public static final int RIGHT_HEIGHT = 20;\r
06a19cee 181\r
a13899c5 182 public static final int RIGHT_MULTIPLE_HEIGHT = 4 * RIGHT_HEIGHT;\r
06a19cee 183\r
a13899c5 184 public static final int BUTTON_GEN_WIDTH = 65;\r
06a19cee 185\r
a13899c5 186 public static final int BUTTON_GEN_HEIGHT = 20;\r
06a19cee 187\r
a13899c5 188 public static final int BUTTON_BROWSE_WIDTH = 65;\r
06a19cee 189\r
a13899c5 190 public static final int BUTTON_BROWSE_HEIGHT = 20;\r
06a19cee 191\r
a13899c5 192 public static final int BUTTON_ADD_WIDTH = 80;\r
06a19cee 193\r
a13899c5 194 public static final int BUTTON_ADD_HEIGHT = 20;\r
06a19cee 195\r
a13899c5 196 public static final int BUTTON_UPDATE_WIDTH = 80;\r
06a19cee 197\r
a13899c5 198 public static final int BUTTON_UPDATE_HEIGHT = 20;\r
06a19cee 199\r
a13899c5 200 public static final int BUTTON_REMOVE_WIDTH = 80;\r
06a19cee 201\r
a13899c5 202 public static final int BUTTON_REMOVE_HEIGHT = 20;\r
06a19cee 203\r
a13899c5 204 public static final int SCROLLBAR_WIDTH = 18;\r
06a19cee 205\r
a13899c5 206 public static final int SCROLLBAR_HEIGHT = 18;\r
06a19cee 207\r
a13899c5 208 //\r
209 // Common Help Text\r
210 // First defined here\r
211 // Will be replaced by resource file later\r
212 //\r
213 public static final String SUP_ARCH_LIST_HELP_TEXT = "Deselecting a checkbox will restrict this module for use with the selected architectures, based on the list of items that are checked. If all boxes are checked, then the module will support all current AND FUTURE architectures";\r
06a19cee 214\r
8f9acbd7 215 //\r
216 // Project name and version\r
217 //\r
218 public static final String PROJECT_NAME = "Framework Wizard";\r
06a19cee 219\r
8f9acbd7 220 public static final String PROJECT_VERSION = "1.0";\r
06a19cee 221\r
92e29378 222 //\r
223 // Sort Type\r
224 //\r
225 public static final int SORT_TYPE_ASCENDING = 1;\r
06a19cee 226\r
92e29378 227 public static final int SORT_TYPE_DESCENDING = 2;\r
06a19cee 228\r
92e29378 229 //\r
230 // Module Type\r
231 //\r
232 public static final String MODULE_TYPE_LIBRARY = "Library";\r
06a19cee 233\r
92e29378 234 public static final String MODULE_TYPE_MODULE = "Module";\r
a13899c5 235}\r