@@ -25,7 +25,7 @@ public class J2SConsoleOptionsTab extends AbstractLaunchConfigurationTab {
25
25
26
26
private Button btnCompatiable ;
27
27
28
- private Button btnCompatiableJS ; // whether import or include mozilla.addon.js
28
+ private Button btnCompatiableRawJS ; // whether import or include mozilla.addon.js
29
29
30
30
private Button btnFastView ;
31
31
@@ -92,16 +92,16 @@ public void widgetSelected(SelectionEvent e) {
92
92
btnCompatiable .addSelectionListener (new SelectionAdapter () {
93
93
public void widgetSelected (SelectionEvent e ) {
94
94
updateLaunchConfigurationDialog ();
95
- btnCompatiableJS .setEnabled (btnCompatiable .getSelection ());
95
+ btnCompatiableRawJS .setEnabled (btnCompatiable .getSelection ());
96
96
}
97
97
});
98
98
99
- btnCompatiableJS = new Button (group , SWT .CHECK );
99
+ btnCompatiableRawJS = new Button (group , SWT .CHECK );
100
100
GridData gdjs = new GridData ();
101
101
gdjs .horizontalIndent = 32 ;
102
- btnCompatiableJS .setLayoutData (gdjs );
103
- btnCompatiableJS .setText ("Write compatiable JavaScript instead of including mozilla.addon.js" );
104
- btnCompatiableJS .addSelectionListener (new SelectionAdapter () {
102
+ btnCompatiableRawJS .setLayoutData (gdjs );
103
+ btnCompatiableRawJS .setText ("Write compatiable JavaScript instead of including mozilla.addon.js" );
104
+ btnCompatiableRawJS .addSelectionListener (new SelectionAdapter () {
105
105
public void widgetSelected (SelectionEvent e ) {
106
106
updateLaunchConfigurationDialog ();
107
107
}
@@ -128,7 +128,7 @@ public void setDefaults(ILaunchConfigurationWorkingCopy configuration) {
128
128
IJ2SLauchingConfiguration .J2S_MOZILLA_ADDON_COMPATIABLE , preferred );
129
129
130
130
configuration .setAttribute (
131
- IJ2SLauchingConfiguration .J2S_MOZILLA_ADDON_COMPATIABLE_JS , false );
131
+ IJ2SLauchingConfiguration .J2S_MOZILLA_ADDON_COMPATIABLE_RAW_JS , true );
132
132
}
133
133
134
134
public void initializeFrom (ILaunchConfiguration configuration ) {
@@ -137,8 +137,8 @@ public void initializeFrom(ILaunchConfiguration configuration) {
137
137
IJ2SLauchingConfiguration .FAST_VIEW_J2S_CONSOLE , false ));
138
138
btnMaximize .setSelection (configuration .getAttribute (
139
139
IJ2SLauchingConfiguration .MAXIMIZE_J2S_CONSOLE , false ));
140
- btnCompatiableJS .setSelection (configuration .getAttribute (
141
- IJ2SLauchingConfiguration .J2S_MOZILLA_ADDON_COMPATIABLE_JS , false ));
140
+ btnCompatiableRawJS .setSelection (configuration .getAttribute (
141
+ IJ2SLauchingConfiguration .J2S_MOZILLA_ADDON_COMPATIABLE_RAW_JS , true ));
142
142
143
143
IPreferenceStore store = Java2ScriptUIPlugin .getDefault ()
144
144
.getPreferenceStore ();
@@ -156,7 +156,7 @@ public void initializeFrom(ILaunchConfiguration configuration) {
156
156
boolean compatiable = configuration .getAttribute (
157
157
IJ2SLauchingConfiguration .J2S_MOZILLA_ADDON_COMPATIABLE , preferred );
158
158
btnCompatiable .setSelection (compatiable );
159
- btnCompatiableJS .setEnabled (compatiable );
159
+ btnCompatiableRawJS .setEnabled (compatiable );
160
160
161
161
} catch (CoreException e ) {
162
162
e .printStackTrace ();
@@ -173,7 +173,7 @@ public void performApply(ILaunchConfigurationWorkingCopy configuration) {
173
173
configuration .setAttribute (
174
174
IJ2SLauchingConfiguration .J2S_MOZILLA_ADDON_COMPATIABLE , btnCompatiable .getSelection ());
175
175
configuration .setAttribute (
176
- IJ2SLauchingConfiguration .J2S_MOZILLA_ADDON_COMPATIABLE_JS , btnCompatiableJS .getSelection ());
176
+ IJ2SLauchingConfiguration .J2S_MOZILLA_ADDON_COMPATIABLE_RAW_JS , btnCompatiableRawJS .getSelection ());
177
177
}
178
178
179
179
public String getName () {
0 commit comments