@@ -74,63 +74,6 @@ public void modifyText(ModifyEvent evt) {
7474 updateLaunchConfigurationDialog ();
7575 }
7676 });
77- Composite c = new Composite (comp , parent .getStyle ());
78- layout = new GridLayout (4 , false );
79- c .setLayout (layout );
80- gd = new GridData (GridData .FILL_BOTH );
81- c .setLayoutData (gd );
82- new Label (c , SWT .NONE ).setText ("Generate System.out.*() by" );
83- Button btnAlert = new Button (c , SWT .PUSH );
84- btnAlert .setText ("window.alert" );
85- btnAlert .addSelectionListener (new SelectionAdapter () {
86- public void widgetSelected (SelectionEvent e ) {
87- String str = "<script type=\" text/javascript\" >\r \n " +
88- "System = {};\r \n " +
89- "System.out = {};\r \n " +
90- "System.err = {};\r \n " +
91- "System.out.println = System.err.println = alert;\r \n " +
92- "System.out.print = System.err.print = alert;\r \n " +
93- "</script>" ;
94- headHeaderText .setText (str );
95- }
96- });
97- Button btnWrite = new Button (c , SWT .PUSH );
98- btnWrite .setText ("document.write" );
99- btnWrite .addSelectionListener (new SelectionAdapter () {
100- public void widgetSelected (SelectionEvent e ) {
101- String str = "<script type=\" text/javascript\" >\r \n " +
102- "System = {};\r \n " +
103- "System.out = {};\r \n " +
104- "System.err = {};\r \n " +
105- "System.out.println = System.err.println = function (str) {\r \n " +
106- "\t document.write (str + \" <br/>\" );\r \n " +
107- "};\r \n " +
108- "System.out.print = System.err.print = function (str) {\r \n " +
109- "\t document.write (str);\r \n " +
110- "};\r \n " +
111- "</script>" ;
112- headHeaderText .setText (str );
113- }
114- });
115- Button btnInsert = new Button (c , SWT .PUSH );
116- btnInsert .setText ("document.body.appendChild" );
117- btnInsert .addSelectionListener (new SelectionAdapter () {
118- public void widgetSelected (SelectionEvent e ) {
119- String str = "<script type=\" text/javascript\" >\r \n " +
120- "System = {};\r \n " +
121- "System.out = {};\r \n " +
122- "System.err = {};\r \n " +
123- "System.out.println = System.err.println = function (str) {\r \n " +
124- "\t document.body.appendChild (document.createTextNode (str));\r \n " +
125- "\t document.body.appendChild (document.createElement (\" BR\" ));\r \n " +
126- "};\r \n " +
127- "System.out.print = System.err.print = function (str) {\r \n " +
128- "\t document.body.appendChild (document.createTextNode (str));\r \n " +
129- "};\r \n " +
130- "</script>" ;
131- headHeaderText .setText (str );
132- }
133- });
13477
13578 new Label (comp , SWT .NONE ).setText ("Tail of Header:" );
13679 tailHeaderText = new Text (comp , SWT .MULTI | SWT .WRAP | SWT .BORDER
0 commit comments