]>
Commit | Line | Data |
---|---|---|
06a19cee | 1 | /** @file\r |
2 | \r | |
3f62225f | 3 | The file is used to create, update Variables section of the MSA file\r |
06a19cee | 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 | |
15 | \r | |
16 | package org.tianocore.frameworkwizard.module.ui.dialog;\r | |
17 | \r | |
18 | import java.awt.event.ActionEvent;\r | |
19 | import java.util.Vector;\r | |
20 | \r | |
21 | import javax.swing.JButton;\r | |
22 | import javax.swing.JComboBox;\r | |
23 | import javax.swing.JLabel;\r | |
24 | import javax.swing.JPanel;\r | |
25 | import javax.swing.JScrollPane;\r | |
26 | import javax.swing.JTextField;\r | |
ccb063b1 | 27 | import javax.swing.JTextArea;\r |
06a19cee | 28 | \r |
29 | import org.tianocore.frameworkwizard.common.DataType;\r | |
30 | import org.tianocore.frameworkwizard.common.DataValidation;\r | |
31 | import org.tianocore.frameworkwizard.common.EnumerationData;\r | |
32 | import org.tianocore.frameworkwizard.common.Log;\r | |
33 | import org.tianocore.frameworkwizard.common.Tools;\r | |
34 | import org.tianocore.frameworkwizard.common.ui.ArchCheckBox;\r | |
35 | import org.tianocore.frameworkwizard.common.ui.IDialog;\r | |
36 | import org.tianocore.frameworkwizard.common.ui.IFrame;\r | |
37 | import org.tianocore.frameworkwizard.common.ui.StarLabel;\r | |
e08433ef | 38 | import org.tianocore.frameworkwizard.module.Identifications.ModuleIdentification;\r |
06a19cee | 39 | import org.tianocore.frameworkwizard.module.Identifications.Variables.VariablesIdentification;\r |
d48c170d | 40 | import org.tianocore.frameworkwizard.packaging.PackageIdentification;\r |
06a19cee | 41 | import org.tianocore.frameworkwizard.workspace.WorkspaceTools;\r |
42 | \r | |
43 | /**\r | |
9e857952 | 44 | * The class is used to create, update Variables section of the MSA file\r |
45 | * \r | |
3f62225f | 46 | * It extends IDialog\r |
ccb063b1 | 47 | * \r |
48 | */\r | |
06a19cee | 49 | public class VariablesDlg extends IDialog {\r |
50 | \r | |
a929458e | 51 | // /\r |
52 | // / Define class Serial Version UID\r | |
53 | // /\r | |
54 | private static final long serialVersionUID = -6998982978030439446L;\r | |
06a19cee | 55 | \r |
a929458e | 56 | //\r |
57 | // Define class members\r | |
58 | //\r | |
59 | private JPanel jContentPane = null;\r | |
06a19cee | 60 | \r |
a929458e | 61 | private JLabel jLabelVariableName = null;\r |
06a19cee | 62 | \r |
a929458e | 63 | private JTextField jTextFieldVariableName = null;\r |
06a19cee | 64 | \r |
a929458e | 65 | private JLabel jLabelUsage = null;\r |
06a19cee | 66 | \r |
a929458e | 67 | private JComboBox jComboBoxUsage = null;\r |
06a19cee | 68 | \r |
a929458e | 69 | private StarLabel jStarLabel1 = null;\r |
06a19cee | 70 | \r |
a929458e | 71 | private StarLabel jStarLabel2 = null;\r |
06a19cee | 72 | \r |
a929458e | 73 | private StarLabel jStarLabel3 = null;\r |
06a19cee | 74 | \r |
a929458e | 75 | private JScrollPane jScrollPane = null;\r |
06a19cee | 76 | \r |
a929458e | 77 | private JLabel jLabelGuidCName = null;\r |
06a19cee | 78 | \r |
a929458e | 79 | private JComboBox jComboBoxGuidC_Name = null;\r |
06a19cee | 80 | \r |
a929458e | 81 | private JTextField jTextFieldFeatureFlag = null;\r |
06a19cee | 82 | \r |
a929458e | 83 | private JLabel jLabelFeatureFlag = null;\r |
06a19cee | 84 | \r |
a929458e | 85 | private JLabel jLabelArch = null;\r |
06a19cee | 86 | \r |
a929458e | 87 | private JLabel jLabelHelpText = null;\r |
06a19cee | 88 | \r |
a929458e | 89 | private JTextArea jTextAreaHelpText = null;\r |
06a19cee | 90 | \r |
a929458e | 91 | private JScrollPane jScrollPaneHelpText = null;\r |
06a19cee | 92 | \r |
a929458e | 93 | private ArchCheckBox jArchCheckBox = null;\r |
06a19cee | 94 | \r |
a929458e | 95 | private JButton jButtonOk = null;\r |
06a19cee | 96 | \r |
a929458e | 97 | private JButton jButtonCancel = null;\r |
06a19cee | 98 | \r |
a929458e | 99 | //\r |
100 | // Not used by UI\r | |
101 | //\r | |
102 | private VariablesIdentification id = null;\r | |
103 | \r | |
104 | private EnumerationData ed = new EnumerationData();\r | |
105 | \r | |
106 | private WorkspaceTools wt = new WorkspaceTools();\r | |
107 | \r | |
108 | /**\r | |
109 | * This method initializes jTextFieldString\r | |
110 | * \r | |
111 | * @return javax.swing.JTextField jTextFieldString\r | |
112 | * \r | |
113 | */\r | |
114 | private JTextField getJTextFieldString() {\r | |
115 | if (jTextFieldVariableName == null) {\r | |
116 | jTextFieldVariableName = new JTextField();\r | |
117 | jTextFieldVariableName.setSize(new java.awt.Dimension(320, 20));\r | |
118 | jTextFieldVariableName.setPreferredSize(new java.awt.Dimension(320, 20));\r | |
3f62225f | 119 | jTextFieldVariableName.setLocation(new java.awt.Point(168, 12));\r |
d48c170d | 120 | jTextFieldVariableName.setToolTipText("Enter a string; the tool will convert to Unicode hex");\r |
a929458e | 121 | }\r |
122 | return jTextFieldVariableName;\r | |
123 | }\r | |
06a19cee | 124 | \r |
a929458e | 125 | /**\r |
126 | * This method initializes jComboBoxUsage\r | |
127 | * \r | |
128 | * @return javax.swing.JComboBox jComboBoxUsage\r | |
129 | * \r | |
130 | */\r | |
131 | private JComboBox getJComboBoxUsage() {\r | |
132 | if (jComboBoxUsage == null) {\r | |
133 | jComboBoxUsage = new JComboBox();\r | |
3f62225f | 134 | jComboBoxUsage.setBounds(new java.awt.Rectangle(168, 62, 320, 20));\r |
a929458e | 135 | jComboBoxUsage.setPreferredSize(new java.awt.Dimension(320, 20));\r |
136 | jComboBoxUsage\r | |
9e857952 | 137 | .setToolTipText("<html><table>"\r |
138 | + "<tr><td>ALWAYS_CONSUMED</td><td>The module requires the variable entry to be set</td></tr>"\r | |
139 | + "<tr><td>SOMETIMES_CONSUMED</td><td>The module will use the variable entry if it is set.</td></tr>"\r | |
140 | + "<tr><td>ALWAYS_PRODUCED</td><td>The module will always write the variable.</td></tr>"\r | |
141 | + "<tr><td>SOMETIMES_PRODUCED</td><td>The module will sometimes write the variable.</td></tr>"\r | |
142 | + "</table></html>");\r | |
a929458e | 143 | }\r |
144 | return jComboBoxUsage;\r | |
145 | }\r | |
06a19cee | 146 | \r |
a929458e | 147 | /**\r |
148 | * This method initializes jScrollPane\r | |
149 | * \r | |
150 | * @return javax.swing.JScrollPane\r | |
151 | */\r | |
152 | private JScrollPane getJScrollPane() {\r | |
153 | if (jScrollPane == null) {\r | |
154 | jScrollPane = new JScrollPane();\r | |
155 | jScrollPane.setViewportView(getJContentPane());\r | |
156 | }\r | |
157 | return jScrollPane;\r | |
06a19cee | 158 | }\r |
a929458e | 159 | \r |
160 | /**\r | |
161 | * This method initializes jTextFieldFeatureFlag\r | |
162 | * \r | |
163 | * @return javax.swing.JTextField jTextFieldFeatureFlag\r | |
164 | * \r | |
165 | */\r | |
166 | private JTextField getJTextFieldFeatureFlag() {\r | |
167 | if (jTextFieldFeatureFlag == null) {\r | |
168 | jTextFieldFeatureFlag = new JTextField();\r | |
21b42c66 | 169 | jTextFieldFeatureFlag.setBounds(new java.awt.Rectangle(168, 157, 320, 20));\r |
a929458e | 170 | jTextFieldFeatureFlag.setPreferredSize(new java.awt.Dimension(320, 20));\r |
171 | jTextFieldFeatureFlag.setToolTipText("Postfix expression that must evaluate to TRUE or FALSE");\r | |
21b42c66 | 172 | jTextFieldFeatureFlag.setEnabled(false);\r |
a929458e | 173 | }\r |
174 | return jTextFieldFeatureFlag;\r | |
06a19cee | 175 | }\r |
a929458e | 176 | \r |
177 | /**\r | |
178 | * This method initializes jTextFieldHelpText\r | |
179 | * \r | |
180 | * @return javax.swing.JTextField\r | |
181 | * \r | |
182 | */\r | |
183 | private JTextArea getJTextAreaHelpText() {\r | |
184 | if (jTextAreaHelpText == null) {\r | |
185 | jTextAreaHelpText = new JTextArea();\r | |
186 | jTextAreaHelpText.setLineWrap(true);\r | |
187 | jTextAreaHelpText.setWrapStyleWord(true);\r | |
188 | jTextAreaHelpText.setToolTipText("Enter information on how to use this Variable.");\r | |
189 | }\r | |
190 | return jTextAreaHelpText;\r | |
06a19cee | 191 | }\r |
a929458e | 192 | \r |
193 | private JScrollPane getJScrollPaneHelpText() {\r | |
194 | if (jScrollPaneHelpText == null) {\r | |
195 | jScrollPaneHelpText = new JScrollPane();\r | |
196 | jScrollPaneHelpText.setHorizontalScrollBarPolicy(javax.swing.JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);\r | |
197 | jScrollPaneHelpText.setSize(new java.awt.Dimension(320, 40));\r | |
198 | jScrollPaneHelpText.setPreferredSize(new java.awt.Dimension(320, 40));\r | |
3f62225f | 199 | jScrollPaneHelpText.setLocation(new java.awt.Point(168, 87));\r |
a929458e | 200 | jScrollPaneHelpText.setViewportView(getJTextAreaHelpText());\r |
201 | }\r | |
202 | return jScrollPaneHelpText;\r | |
06a19cee | 203 | }\r |
a929458e | 204 | \r |
205 | /**\r | |
206 | * This method initializes jComboBoxGuidC_Name\r | |
207 | * \r | |
208 | * @return javax.swing.JComboBox jComboBoxGuidC_Name\r | |
209 | * \r | |
210 | */\r | |
211 | private JComboBox getJComboBoxGuidC_Name() {\r | |
212 | if (jComboBoxGuidC_Name == null) {\r | |
213 | jComboBoxGuidC_Name = new JComboBox();\r | |
3f62225f | 214 | jComboBoxGuidC_Name.setBounds(new java.awt.Rectangle(168, 37, 320, 20));\r |
a929458e | 215 | jComboBoxGuidC_Name.setPreferredSize(new java.awt.Dimension(320, 20));\r |
216 | jComboBoxGuidC_Name.setToolTipText("Select the GUID C Name of the Variable.");\r | |
217 | }\r | |
218 | return jComboBoxGuidC_Name;\r | |
06a19cee | 219 | }\r |
a929458e | 220 | \r |
221 | /**\r | |
222 | * This method initializes jButtonOk\r | |
223 | * \r | |
224 | * @return javax.swing.JButton\r | |
225 | * \r | |
226 | */\r | |
227 | private JButton getJButtonOk() {\r | |
228 | if (jButtonOk == null) {\r | |
229 | jButtonOk = new JButton();\r | |
3f62225f | 230 | jButtonOk.setBounds(new java.awt.Rectangle(290, 187, 90, 20));\r |
a929458e | 231 | jButtonOk.setText("Ok");\r |
232 | jButtonOk.addActionListener(this);\r | |
233 | }\r | |
234 | return jButtonOk;\r | |
06a19cee | 235 | }\r |
a929458e | 236 | \r |
237 | /**\r | |
238 | * This method initializes jButtonCancel\r | |
239 | * \r | |
240 | * @return javax.swing.JButton\r | |
241 | * \r | |
242 | */\r | |
243 | private JButton getJButtonCancel() {\r | |
244 | if (jButtonCancel == null) {\r | |
245 | jButtonCancel = new JButton();\r | |
3f62225f | 246 | jButtonCancel.setBounds(new java.awt.Rectangle(390, 187, 90, 20));\r |
a929458e | 247 | jButtonCancel.setText("Cancel");\r |
248 | jButtonCancel.addActionListener(this);\r | |
249 | }\r | |
250 | return jButtonCancel;\r | |
251 | }\r | |
252 | \r | |
253 | public static void main(String[] args) {\r | |
254 | \r | |
06a19cee | 255 | }\r |
a929458e | 256 | \r |
257 | /**\r | |
258 | * This method initializes this\r | |
259 | * \r | |
260 | */\r | |
261 | private void init() {\r | |
3f62225f | 262 | this.setSize(505, 260);\r |
a929458e | 263 | this.setContentPane(getJScrollPane());\r |
264 | this.setTitle("Variables");\r | |
265 | initFrame();\r | |
266 | this.setViewMode(false);\r | |
267 | this.centerWindow();\r | |
06a19cee | 268 | }\r |
a929458e | 269 | \r |
270 | /**\r | |
271 | * This method initializes this Fill values to all fields if these values are\r | |
272 | * not empty\r | |
273 | * \r | |
274 | * @param inVariablesId\r | |
275 | * \r | |
276 | */\r | |
e08433ef | 277 | private void init(VariablesIdentification inVariablesId, ModuleIdentification mid) {\r |
a929458e | 278 | init();\r |
279 | this.id = inVariablesId;\r | |
d48c170d | 280 | \r |
e08433ef | 281 | //\r |
282 | // Init arch with module's arch\r | |
283 | //\r | |
284 | this.jArchCheckBox.setEnabledItems(wt.getModuleArch(mid));\r | |
a929458e | 285 | \r |
d48c170d | 286 | //\r |
287 | // Get defined guids from dependent packages\r | |
288 | //\r | |
289 | Vector<PackageIdentification> vpid = wt.getPackageDependenciesOfModule(mid);\r | |
290 | if (vpid.size() <= 0) {\r | |
291 | Log\r | |
292 | .wrn("Init Guid",\r | |
293 | "This module hasn't defined any package dependency, so there is no guid value can be added for variable");\r | |
294 | }\r | |
295 | //\r | |
296 | // Init guids drop down list\r | |
297 | //\r | |
298 | Tools\r | |
299 | .generateComboBoxByVector(jComboBoxGuidC_Name,\r | |
300 | wt.getAllGuidDeclarationsFromPackages(vpid, EnumerationData.GUID_TYPE_EFI_VARIABLE));\r | |
301 | \r | |
a929458e | 302 | if (this.id != null) {\r |
303 | this.jTextFieldVariableName.setText(id.getName());\r | |
304 | this.jComboBoxGuidC_Name.setSelectedItem(id.getGuid());\r | |
305 | this.jComboBoxUsage.setSelectedItem(id.getUsage());\r | |
306 | this.jTextAreaHelpText.setText(id.getHelp());\r | |
307 | this.jTextFieldFeatureFlag.setText(id.getFeatureFlag());\r | |
308 | this.jArchCheckBox.setSelectedItems(id.getSupArchList());\r | |
309 | }\r | |
06a19cee | 310 | }\r |
a929458e | 311 | \r |
312 | /**\r | |
313 | * This is the override edit constructor\r | |
314 | * \r | |
315 | * @param inVariablesIdentification\r | |
316 | * @param iFrame\r | |
317 | * \r | |
318 | */\r | |
e08433ef | 319 | public VariablesDlg(VariablesIdentification inVariablesIdentification, IFrame iFrame, ModuleIdentification mid) {\r |
a929458e | 320 | super(iFrame, true);\r |
e08433ef | 321 | init(inVariablesIdentification, mid);\r |
06a19cee | 322 | }\r |
a929458e | 323 | \r |
324 | /**\r | |
325 | * Disable all components when the mode is view\r | |
326 | * \r | |
327 | * @param isView\r | |
328 | * true - The view mode; false - The non-view mode\r | |
329 | * \r | |
330 | */\r | |
331 | public void setViewMode(boolean isView) {\r | |
332 | if (isView) {\r | |
333 | this.jTextFieldVariableName.setEnabled(!isView);\r | |
334 | this.jComboBoxUsage.setEnabled(!isView);\r | |
335 | }\r | |
06a19cee | 336 | }\r |
a929458e | 337 | \r |
338 | /**\r | |
339 | * This method initializes jContentPane\r | |
340 | * \r | |
341 | * @return javax.swing.JPanel jContentPane\r | |
342 | * \r | |
343 | */\r | |
344 | private JPanel getJContentPane() {\r | |
345 | if (jContentPane == null) {\r | |
346 | jStarLabel1 = new StarLabel();\r | |
3f62225f | 347 | jStarLabel1.setLocation(new java.awt.Point(2, 12));\r |
a929458e | 348 | jLabelVariableName = new JLabel();\r |
349 | jLabelVariableName.setText("Variable Name");\r | |
3f62225f | 350 | jLabelVariableName.setBounds(new java.awt.Rectangle(12, 12, 168, 20));\r |
a929458e | 351 | \r |
352 | jStarLabel2 = new StarLabel();\r | |
3f62225f | 353 | jStarLabel2.setLocation(new java.awt.Point(2, 37));\r |
a929458e | 354 | jLabelGuidCName = new JLabel();\r |
3f62225f | 355 | jLabelGuidCName.setBounds(new java.awt.Rectangle(12, 37, 168, 20));\r |
a929458e | 356 | jLabelGuidCName.setText("Variable Guid C Name");\r |
357 | \r | |
358 | jStarLabel3 = new StarLabel();\r | |
3f62225f | 359 | jStarLabel3.setLocation(new java.awt.Point(2, 62));\r |
a929458e | 360 | jLabelUsage = new JLabel();\r |
361 | jLabelUsage.setText("Usage");\r | |
3f62225f | 362 | jLabelUsage.setBounds(new java.awt.Rectangle(12, 62, 168, 20));\r |
a929458e | 363 | \r |
364 | jLabelHelpText = new JLabel();\r | |
3f62225f | 365 | jLabelHelpText.setBounds(new java.awt.Rectangle(12, 87, 168, 20));\r |
a929458e | 366 | jLabelHelpText.setText("Help Text");\r |
367 | \r | |
368 | jLabelFeatureFlag = new JLabel();\r | |
369 | jLabelFeatureFlag.setText("Feature Flag Expression");\r | |
21b42c66 | 370 | jLabelFeatureFlag.setBounds(new java.awt.Rectangle(12, 157, 168, 20));\r |
371 | jLabelFeatureFlag.setEnabled(false);\r | |
a929458e | 372 | \r |
373 | jLabelArch = new JLabel();\r | |
21b42c66 | 374 | jLabelArch.setBounds(new java.awt.Rectangle(12, 132, 168, 20));\r |
a929458e | 375 | jLabelArch.setText("Supported Architectures");\r |
376 | jArchCheckBox = new ArchCheckBox();\r | |
21b42c66 | 377 | jArchCheckBox.setBounds(new java.awt.Rectangle(168, 132, 320, 20));\r |
a929458e | 378 | jArchCheckBox.setPreferredSize(new java.awt.Dimension(320, 20));\r |
379 | \r | |
380 | jContentPane = new JPanel();\r | |
381 | jContentPane.setLayout(null);\r | |
3f62225f | 382 | jContentPane.setPreferredSize(new java.awt.Dimension(485, 215));\r |
a929458e | 383 | \r |
384 | jContentPane.add(jStarLabel1, null);\r | |
385 | jContentPane.add(jLabelVariableName, null);\r | |
386 | jContentPane.add(getJTextFieldString(), null);\r | |
387 | jContentPane.add(jStarLabel2, null);\r | |
388 | jContentPane.add(jLabelGuidCName, null);\r | |
389 | jContentPane.add(getJComboBoxGuidC_Name(), null);\r | |
390 | jContentPane.add(jStarLabel3, null);\r | |
391 | jContentPane.add(jLabelUsage, null);\r | |
392 | jContentPane.add(getJComboBoxUsage(), null);\r | |
393 | jContentPane.add(jLabelHelpText, null);\r | |
394 | jContentPane.add(getJScrollPaneHelpText(), null);\r | |
395 | jContentPane.add(jLabelFeatureFlag, null);\r | |
396 | jContentPane.add(getJTextFieldFeatureFlag(), null);\r | |
397 | jContentPane.add(jLabelArch, null);\r | |
398 | jContentPane.add(jArchCheckBox, null);\r | |
399 | jContentPane.add(getJButtonOk(), null);\r | |
400 | jContentPane.add(getJButtonCancel(), null);\r | |
401 | }\r | |
402 | return jContentPane;\r | |
06a19cee | 403 | }\r |
a929458e | 404 | \r |
405 | /*\r | |
406 | * (non-Javadoc)\r | |
407 | * \r | |
408 | * @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)\r | |
409 | * \r | |
410 | * Override actionPerformed to listen all actions\r | |
411 | * \r | |
412 | */\r | |
413 | public void actionPerformed(ActionEvent arg0) {\r | |
414 | if (arg0.getSource() == jButtonOk) {\r | |
415 | if (checkAdd()) {\r | |
416 | getCurrentVariables();\r | |
417 | this.returnType = DataType.RETURN_TYPE_OK;\r | |
418 | this.setVisible(false);\r | |
419 | }\r | |
420 | }\r | |
421 | \r | |
422 | if (arg0.getSource() == jButtonCancel) {\r | |
423 | this.returnType = DataType.RETURN_TYPE_CANCEL;\r | |
424 | this.setVisible(false);\r | |
425 | }\r | |
06a19cee | 426 | }\r |
427 | \r | |
a929458e | 428 | /**\r |
429 | * This method initializes Usage type\r | |
430 | * \r | |
431 | */\r | |
432 | private void initFrame() {\r | |
433 | Tools.generateComboBoxByVector(jComboBoxUsage, ed.getVPpiUsage());\r | |
ccb063b1 | 434 | }\r |
06a19cee | 435 | \r |
a929458e | 436 | /**\r |
437 | * Data validation for all fields\r | |
438 | * \r | |
439 | * @retval true - All datas are valid\r | |
440 | * @retval false - At least one data is invalid\r | |
441 | * \r | |
442 | */\r | |
443 | public boolean checkAdd() {\r | |
444 | //\r | |
445 | // Check if all fields have correct data types\r | |
446 | //\r | |
d48c170d | 447 | \r |
a929458e | 448 | //\r |
449 | // Check VariableName\r | |
450 | //\r | |
451 | if (isEmpty(this.jTextFieldVariableName.getText())) {\r | |
623db5ca | 452 | Log.wrn("Update Variables", "Variable Name must be entered!");\r |
a929458e | 453 | return false;\r |
454 | }\r | |
d48c170d | 455 | \r |
456 | //\r | |
457 | // Check Guid Value\r | |
458 | //\r | |
459 | if (this.jComboBoxGuidC_Name.getSelectedItem() == null) {\r | |
460 | Log.wrn("Update Guids", "Please select one Varibale Guid value");\r | |
461 | return false;\r | |
462 | }\r | |
a929458e | 463 | \r |
a929458e | 464 | //\r |
465 | // Check FeatureFlag\r | |
466 | //\r | |
467 | if (!isEmpty(this.jTextFieldFeatureFlag.getText())) {\r | |
468 | if (!DataValidation.isFeatureFlag(this.jTextFieldFeatureFlag.getText())) {\r | |
469 | Log.wrn("Update Variables", "Incorrect data type for Feature Flag");\r | |
470 | return false;\r | |
471 | }\r | |
472 | }\r | |
473 | \r | |
474 | return true;\r | |
06a19cee | 475 | }\r |
476 | \r | |
a929458e | 477 | private VariablesIdentification getCurrentVariables() {\r |
478 | String arg0 = this.jTextFieldVariableName.getText();\r | |
479 | String arg1 = this.jComboBoxGuidC_Name.getSelectedItem().toString();\r | |
480 | String arg2 = this.jComboBoxUsage.getSelectedItem().toString();\r | |
481 | \r | |
482 | String arg3 = this.jTextFieldFeatureFlag.getText();\r | |
483 | Vector<String> arg4 = this.jArchCheckBox.getSelectedItemsVector();\r | |
484 | String arg5 = this.jTextAreaHelpText.getText();\r | |
485 | \r | |
486 | id = new VariablesIdentification(arg0, arg1, arg2, arg3, arg4, arg5);\r | |
487 | return id;\r | |
06a19cee | 488 | }\r |
489 | \r | |
a929458e | 490 | public VariablesIdentification getId() {\r |
491 | return id;\r | |
06a19cee | 492 | }\r |
ccb063b1 | 493 | \r |
a929458e | 494 | public void setId(VariablesIdentification id) {\r |
495 | this.id = id;\r | |
496 | }\r | |
06a19cee | 497 | }\r |