1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-07 09:46:02 +02:00

Cosmetics.

This commit is contained in:
Sergey Prigogin 2011-05-06 03:50:55 +00:00
parent 47c5cf200e
commit f7a9c21d2e
2 changed files with 3 additions and 8 deletions

View file

@ -11,14 +11,11 @@
*******************************************************************************/ *******************************************************************************/
package org.eclipse.cdt.core.parser.ast; package org.eclipse.cdt.core.parser.ast;
/** /**
* Use compareTo() to order access restriction. * Use compareTo() to order access restriction.
*/ */
public enum ASTAccessVisibility { public enum ASTAccessVisibility {
PUBLIC, PUBLIC,
PROTECTED, PROTECTED,
PRIVATE, PRIVATE,
} }

View file

@ -27,12 +27,11 @@ import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Table; import org.eclipse.swt.widgets.Table;
/** /**
* A list with checkboxes and a button bar. Typical buttons are 'Check All' and 'Uncheck All'. * A list with check boxes and a button bar. Typical buttons are 'Check All' and 'Uncheck All'.
* List model is independend of widget creation. * List model is independent of widget creation.
* DialogFields controls are: Label, List and Composite containing buttons. * DialogFields controls are: Label, List and Composite containing buttons.
*/ */
public class CheckedListDialogField<T> extends ListDialogField<T> { public class CheckedListDialogField<T> extends ListDialogField<T> {
private int fCheckAllButtonIndex; private int fCheckAllButtonIndex;
private int fUncheckAllButtonIndex; private int fUncheckAllButtonIndex;
@ -180,12 +179,11 @@ public class CheckedListDialogField<T> extends ListDialogField<T> {
fCheckElements.clear(); fCheckElements.clear();
} }
if (fTable != null) { if (fTable != null) {
((CheckboxTableViewer)fTable).setAllChecked(state); ((CheckboxTableViewer) fTable).setAllChecked(state);
} }
checkStateChanged(); checkStateChanged();
} }
void doCheckStateChanged(CheckStateChangedEvent e) { void doCheckStateChanged(CheckStateChangedEvent e) {
if (e.getChecked()) { if (e.getChecked()) {
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")