]> git.proxmox.com Git - mirror_edk2.git/blob - Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/ToolChainConfigHelp.java
1. Add help for ToolChainConfig
[mirror_edk2.git] / Tools / Source / FrameworkWizard / src / org / tianocore / frameworkwizard / ToolChainConfigHelp.java
1 package org.tianocore.frameworkwizard;
2
3 import java.awt.event.ActionEvent;
4 import java.awt.event.ActionListener;
5
6 import javax.swing.JFrame;
7 import javax.swing.JPanel;
8 import javax.swing.JTextPane;
9
10 import org.tianocore.frameworkwizard.common.DataType;
11 import javax.swing.JButton;
12
13
14 public class ToolChainConfigHelp extends JFrame implements ActionListener {
15
16 ///
17 ///
18 ///
19 private static final long serialVersionUID = -6315081029366587222L;
20
21 private JPanel jContentPane = null;
22
23 private String helpContent = "";
24
25 private JTextPane jTextPane = null;
26
27 private JButton jButtonClose = null;
28
29 /**
30 * This method initializes jTextPane
31 *
32 * @return javax.swing.JTextPane
33 */
34 private JTextPane getJTextPane() {
35 if (jTextPane == null) {
36 jTextPane = new JTextPane();
37 jTextPane.setBounds(new java.awt.Rectangle(10,10,600,420));
38 jTextPane.setBackground(new java.awt.Color(238,238,238));
39 jTextPane.setEditable(false);
40 helpContent = helpContent
41 + "The coding forthe Property is: TARGET_TAGNAME_ARCH_COMMAND_ATTR" + DataType.UNIX_LINE_SEPARATOR
42 + "The Value, is either afull path, full path and filename or a reserved word." + DataType.UNIX_LINE_SEPARATOR
43 + DataType.UNIX_LINE_SEPARATOR
44 + DataType.UNIX_LINE_SEPARATOR
45 + "TARGET - DEBUG and RELEASE are predefined, however the user may define one or more of their own TARGET types in this file." + DataType.UNIX_LINE_SEPARATOR
46 + DataType.UNIX_LINE_SEPARATOR
47 + "TAGNAME - HOST, MSFT, GCC, INTC are predefined, however the user may define one or more of their own TAGNAME keywords in this file." + DataType.UNIX_LINE_SEPARATOR
48 + DataType.UNIX_LINE_SEPARATOR
49 + "ARCH - EDK II supports IA32, X64, IPF and EBC at this time." + DataType.UNIX_LINE_SEPARATOR
50 + DataType.UNIX_LINE_SEPARATOR
51 + "COMMAND - Predefined command codes are listed in the tools_def.txt file, however the user can specify additional command codes for their one, non-standard tools." + DataType.UNIX_LINE_SEPARATOR
52 + DataType.UNIX_LINE_SEPARATOR
53 + "ATTR - Predefined Attributes are listed in the tools_def.txt file." + DataType.UNIX_LINE_SEPARATOR
54 + DataType.UNIX_LINE_SEPARATOR
55 + "NOTE: The TAGNAME: HOST is reserved and MUST be defined in order to build the included Tiano tools from their C source files. These tools have been built and tested using both Microsoft and GCC tool chains." + DataType.UNIX_LINE_SEPARATOR
56 + DataType.UNIX_LINE_SEPARATOR
57 + "NOTE: The \"*\" symbol may be used as a wildcard character in most of these fields, refer to the tools_def.txt and the \"EDK II Build and Packaging Architecture Specification\" for more details." + DataType.UNIX_LINE_SEPARATOR
58 + DataType.UNIX_LINE_SEPARATOR;
59
60
61 jTextPane.setText(helpContent);
62 }
63 return jTextPane;
64 }
65
66 /**
67 * This method initializes jButtonClose
68 *
69 * @return javax.swing.JButton
70 */
71 private JButton getJButtonClose() {
72 if (jButtonClose == null) {
73 jButtonClose = new JButton();
74 jButtonClose.setBounds(new java.awt.Rectangle(480,450,80,20));
75 jButtonClose.setText("Close");
76 jButtonClose.addActionListener(this);
77 }
78 return jButtonClose;
79 }
80
81 /**
82
83 @param args
84
85 **/
86 public static void main(String[] args) {
87 ToolChainConfigHelp tcch = new ToolChainConfigHelp();
88 tcch.setVisible(true);
89 }
90
91 /**
92 * This is the default constructor
93 */
94 public ToolChainConfigHelp() {
95 super();
96 initialize();
97 }
98
99 /**
100 * This method initializes this
101 *
102 * @return void
103 */
104 private void initialize() {
105 this.setSize(625, 520);
106 this.setTitle("How to Setup Tool Chain Configuration");
107 this.setContentPane(getJContentPane());
108 }
109
110 /**
111 * This method initializes jContentPane
112 *
113 * @return javax.swing.JPanel
114 */
115 private JPanel getJContentPane() {
116 if (jContentPane == null) {
117 jContentPane = new JPanel();
118 jContentPane.setLayout(null);
119 jContentPane.add(getJTextPane(), null);
120 jContentPane.add(getJButtonClose(), null);
121 }
122 return jContentPane;
123 }
124
125 public void actionPerformed(ActionEvent arg0) {
126 if (arg0.getSource() == jButtonClose) {
127 this.dispose();
128 }
129
130 }
131
132 }