1 package org
.tianocore
.frameworkwizard
;
3 import java
.awt
.event
.ActionEvent
;
4 import java
.awt
.event
.ActionListener
;
6 import javax
.swing
.JFrame
;
7 import javax
.swing
.JPanel
;
8 import javax
.swing
.JTextPane
;
10 import org
.tianocore
.frameworkwizard
.common
.DataType
;
11 import javax
.swing
.JButton
;
14 public class ToolChainConfigHelp
extends JFrame
implements ActionListener
{
19 private static final long serialVersionUID
= -6315081029366587222L;
21 private JPanel jContentPane
= null;
23 private String helpContent
= "";
25 private JTextPane jTextPane
= null;
27 private JButton jButtonClose
= null;
29 private static ToolChainConfigHelp tcch
= null;
32 * This method initializes jTextPane
34 * @return javax.swing.JTextPane
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 template for the Property is: TARGET_TAGNAME_ARCH_COMMAND_ATTR" + DataType
.UNIX_LINE_SEPARATOR
44 + "The Value, is either a full 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
;
62 jTextPane
.setText(helpContent
);
68 * This method initializes jButtonClose
70 * @return javax.swing.JButton
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);
82 public static ToolChainConfigHelp
getInstance() {
84 tcch
= new ToolChainConfigHelp();
94 public static void main(String
[] args
) {
95 ToolChainConfigHelp tcch
= new ToolChainConfigHelp();
96 tcch
.setVisible(true);
100 * This is the default constructor
102 public ToolChainConfigHelp() {
108 * This method initializes this
112 private void initialize() {
113 this.setSize(625, 520);
114 this.setResizable(false);
115 this.setTitle("How to Modify a Tool Chain Configuration");
116 this.setContentPane(getJContentPane());
120 * This method initializes jContentPane
122 * @return javax.swing.JPanel
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);
134 public void actionPerformed(ActionEvent arg0
) {
135 if (arg0
.getSource() == jButtonClose
) {