1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 22:52:11 +02:00

Alphabetical sorting of problem types.

This commit is contained in:
Sergey Prigogin 2012-04-29 17:36:54 -07:00
parent d74d5f3757
commit cc3dcd0e96

View file

@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2000, 2010 IBM Corporation and others.
* Copyright (c) 2000, 2012 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@ -7,6 +7,7 @@
*
* Contributors:
* IBM Corporation - initial API and implementation
* Sergey Prigogin (Google)
*******************************************************************************/
package org.eclipse.cdt.codan.internal.ui.preferences;
@ -17,6 +18,7 @@ import org.eclipse.jface.viewers.CheckboxTreeViewer;
import org.eclipse.jface.viewers.ICheckStateListener;
import org.eclipse.jface.viewers.ITreeContentProvider;
import org.eclipse.jface.viewers.StructuredViewer;
import org.eclipse.jface.viewers.ViewerComparator;
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
@ -39,13 +41,12 @@ import org.eclipse.swt.widgets.Tree;
*/
public abstract class CheckedTreeEditor extends FieldEditor implements ICheckStateListener {
/**
* The list widget; <code>null</code> if none (before creation or after
* disposal).
* The list widget; <code>null</code> if none (before creation or after disposal).
*/
private CheckboxTreeViewer treeViewer;
private Composite listParent;
private boolean isValid;
private boolean emptySelectionAllowed = false;
private boolean emptySelectionAllowed;
/**
* Creates a new list field editor
@ -214,6 +215,7 @@ public abstract class CheckedTreeEditor extends FieldEditor implements ICheckSta
treeViewer = new CheckboxTreeViewer(parent, SWT.BORDER | SWT.MULTI | SWT.V_SCROLL | SWT.H_SCROLL | SWT.FULL_SELECTION);
table = treeViewer.getTree();
table.setFont(parent.getFont());
treeViewer.setComparator(new ViewerComparator());
treeViewer.addCheckStateListener(this);
} else {
checkParent(table, parent);