]> git.proxmox.com Git - mirror_edk2.git/blob - Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/ToolChainConfigHelp.java
5d23469c5a7b66a14e01a3c749ebed0ba8fb5de4
[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 private static ToolChainConfigHelp tcch = null;
30
31 /**
32 * This method initializes jTextPane
33 *
34 * @return javax.swing.JTextPane
35 */
36 private JTextPane getJTextPane() {
37 if (jTextPane == null) {
38 jTextPane = new JTextPane();
39 jTextPane.setBounds(new java.awt.Rectangle(10,10,600,420));
40 jTextPane.setBackground(new java.awt.Color(238,238,238));
41 jTextPane.setEditable(false);
42 helpContent = helpContent
43 + "The coding for the Property is: TARGET_TAGNAME_ARCH_COMMAND_ATTR" + DataType.UNIX_LINE_SEPARATOR
44 + "The Value, is either afull path, full path and filename or a reserved word." + DataType.UNIX_LINE_SEPARATOR
45 + DataType.UNIX_LINE_SEPARATOR
46 + DataType.UNIX_LINE_SEPARATOR
47 + "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
48 + DataType.UNIX_LINE_SEPARATOR
49 + "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
50 + DataType.UNIX_LINE_SEPARATOR
51 + "ARCH - EDK II supports IA32, X64, IPF and EBC at this time." + DataType.UNIX_LINE_SEPARATOR
52 + DataType.UNIX_LINE_SEPARATOR
53 + "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
54 + DataType.UNIX_LINE_SEPARATOR
55 + "ATTR - Predefined Attributes are listed in the tools_def.txt file." + DataType.UNIX_LINE_SEPARATOR
56 + DataType.UNIX_LINE_SEPARATOR
57 + "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
58 + DataType.UNIX_LINE_SEPARATOR
59 + "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
60 + DataType.UNIX_LINE_SEPARATOR;
61
62 jTextPane.setText(helpContent);
63 }
64 return jTextPane;
65 }
66
67 /**
68 * This method initializes jButtonClose
69 *
70 * @return javax.swing.JButton
71 */
72 private JButton getJButtonClose() {
73 if (jButtonClose == null) {
74 jButtonClose = new JButton();
75 jButtonClose.setBounds(new java.awt.Rectangle(480,450,80,20));
76 jButtonClose.setText("Close");
77 jButtonClose.addActionListener(this);
78 }
79 return jButtonClose;
80 }
81
82 public static ToolChainConfigHelp getInstance() {
83 if (tcch == null) {
84 tcch = new ToolChainConfigHelp();
85 }
86 return tcch;
87 }
88
89 /**
90
91 @param args
92
93 **/
94 public static void main(String[] args) {
95 ToolChainConfigHelp tcch = new ToolChainConfigHelp();
96 tcch.setVisible(true);
97 }
98
99 /**
100 * This is the default constructor
101 */
102 public ToolChainConfigHelp() {
103 super();
104 initialize();
105 }
106
107 /**
108 * This method initializes this
109 *
110 * @return void
111 */
112 private void initialize() {
113 this.setSize(625, 520);
114 this.setResizable(false);
115 this.setTitle("How to Setup Tool Chain Configuration");
116 this.setContentPane(getJContentPane());
117 }
118
119 /**
120 * This method initializes jContentPane
121 *
122 * @return javax.swing.JPanel
123 */
124 private JPanel getJContentPane() {
125 if (jContentPane == null) {
126 jContentPane = new JPanel();
127 jContentPane.setLayout(null);
128 jContentPane.add(getJTextPane(), null);
129 jContentPane.add(getJButtonClose(), null);
130 }
131 return jContentPane;
132 }
133
134 public void actionPerformed(ActionEvent arg0) {
135 if (arg0.getSource() == jButtonClose) {
136 this.dispose();
137 }
138 }
139 }