mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-07 09:46:02 +02:00
Cosmetics
Change-Id: Ia9a8c9052f255bfbadf919b4aea029707d77b294
This commit is contained in:
parent
26569fbf72
commit
94a97818bf
2 changed files with 1 additions and 7 deletions
|
@ -25,7 +25,6 @@ import org.eclipse.jface.viewers.TableViewerColumn;
|
||||||
import org.eclipse.jface.viewers.TreeViewer;
|
import org.eclipse.jface.viewers.TreeViewer;
|
||||||
import org.eclipse.jface.viewers.Viewer;
|
import org.eclipse.jface.viewers.Viewer;
|
||||||
import org.eclipse.jface.viewers.ViewerComparator;
|
import org.eclipse.jface.viewers.ViewerComparator;
|
||||||
import org.eclipse.jface.viewers.ViewerSorter;
|
|
||||||
import org.eclipse.search.ui.text.AbstractTextSearchViewPage;
|
import org.eclipse.search.ui.text.AbstractTextSearchViewPage;
|
||||||
import org.eclipse.search.ui.text.Match;
|
import org.eclipse.search.ui.text.Match;
|
||||||
import org.eclipse.swt.SWT;
|
import org.eclipse.swt.SWT;
|
||||||
|
@ -181,7 +180,7 @@ public class CSearchViewPage extends AbstractTextSearchViewPage {
|
||||||
* <p>
|
* <p>
|
||||||
* This sorter categorizes the different kinds of ICElement matches (as well as IStatus
|
* This sorter categorizes the different kinds of ICElement matches (as well as IStatus
|
||||||
* messages and External Files groups) to place them in groups. The items within a
|
* messages and External Files groups) to place them in groups. The items within a
|
||||||
* category are sorted in the default way {@link ViewerSorter#compare(Viewer, Object, Object)} works,
|
* category are sorted in the default way {@link ViewerComparator#compare(Viewer, Object, Object)} works,
|
||||||
* by comparing text labels.
|
* by comparing text labels.
|
||||||
* <p>
|
* <p>
|
||||||
* A potential concern here is that, in sorting the elements by name, the user may
|
* A potential concern here is that, in sorting the elements by name, the user may
|
||||||
|
@ -192,8 +191,6 @@ public class CSearchViewPage extends AbstractTextSearchViewPage {
|
||||||
* a big deal. Furthermore, usually it would be a wildcard search that would result in
|
* a big deal. Furthermore, usually it would be a wildcard search that would result in
|
||||||
* this situation -- indicating the user doesn't know the identifier and wants to find it using
|
* this situation -- indicating the user doesn't know the identifier and wants to find it using
|
||||||
* search. In such a case, a sorted list of results in much more friendly to navigate.
|
* search. In such a case, a sorted list of results in much more friendly to navigate.
|
||||||
* @author eswartz
|
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
private class SearchViewerComparator extends ViewerComparator {
|
private class SearchViewerComparator extends ViewerComparator {
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -1115,9 +1115,6 @@ public class CAutoIndentStrategy extends DefaultIndentLineAutoEditStrategy {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* @see org.eclipse.jface.text.IAutoEditStrategy#customizeDocumentCommand(IDocument, DocumentCommand)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void customizeDocumentCommand(IDocument d, DocumentCommand c) {
|
public void customizeDocumentCommand(IDocument d, DocumentCommand c) {
|
||||||
if (!c.doit)
|
if (!c.doit)
|
||||||
|
|
Loading…
Add table
Reference in a new issue