Skip to content

Commit 4d2f379

Browse files
author
angelozerr
committed
Don't use status changed listener.
1 parent fec16ae commit 4d2f379

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

eclipse/ts.eclipse.ide.ui/src/ts/eclipse/ide/ui/preferences/OptionsConfigurationBlock.java

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,10 @@ public int getSelection(String value) {
187187
private int fRebuildCount; /// used to prevent multiple dialogs that ask for
188188
/// a rebuild
189189

190+
public OptionsConfigurationBlock(IProject project, Key[] allKeys, IWorkbenchPreferenceContainer container) {
191+
this(null, project, allKeys, container);
192+
}
193+
190194
public OptionsConfigurationBlock(IStatusChangeListener context, IProject project, Key[] allKeys,
191195
IWorkbenchPreferenceContainer container) {
192196
fContext = context;
@@ -343,15 +347,15 @@ protected Button addCheckBox(Composite parent, String label, Key key, String[] v
343347
protected Button addRadioBox(Composite parent, String label, Key key, String[] values, int indent) {
344348
ControlData data = new ControlData(key, values);
345349

346-
// GridData gd = new GridData(GridData.HORIZONTAL_ALIGN_FILL);
347-
// gd.horizontalSpan = 3;
348-
// gd.horizontalIndent = indent;
350+
// GridData gd = new GridData(GridData.HORIZONTAL_ALIGN_FILL);
351+
// gd.horizontalSpan = 3;
352+
// gd.horizontalIndent = indent;
349353

350354
Button checkBox = new Button(parent, SWT.RADIO);
351355
checkBox.setFont(JFaceResources.getDialogFont());
352356
checkBox.setText(label);
353357
checkBox.setData(data);
354-
//checkBox.setLayoutData(gd);
358+
// checkBox.setLayoutData(gd);
355359
checkBox.addSelectionListener(getSelectionListener());
356360

357361
makeScrollableCompositeAware(checkBox);
@@ -363,7 +367,7 @@ protected Button addRadioBox(Composite parent, String label, Key key, String[] v
363367

364368
return checkBox;
365369
}
366-
370+
367371
protected Button addCheckBoxWithLink(Composite parent, String label, Key key, String[] values, int indent,
368372
int widthHint, SelectionListener listener) {
369373
ControlData data = new ControlData(key, values);
@@ -940,7 +944,7 @@ protected void setComboEnabled(Key key, boolean enabled) {
940944
combo.setEnabled(enabled);
941945
label.setEnabled(enabled);
942946
}
943-
947+
944948
public IProject getProject() {
945949
return fProject;
946950
}

0 commit comments

Comments
 (0)