mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-01 06:05:24 +02:00
Fix Pr 50794 .
Rename CViewSorter to CElementSorter and refactor in org.eclipse.cdt.ui.CElementSorter
This commit is contained in:
parent
f596606ff7
commit
78769c3537
3 changed files with 13 additions and 3 deletions
|
@ -1,3 +1,12 @@
|
|||
2004-02-10 Alain Magloire
|
||||
|
||||
Fix to PR 50794
|
||||
Rename The CViewSorter to CElementSorter, it is more consistent
|
||||
with eclipse i.e. JavaElementSorter, ResourceSorter ....
|
||||
Also make it accessible.
|
||||
|
||||
* src/prg/eclipse/cdt/ui/CElementSorter.java
|
||||
|
||||
2004-02-06 Hoda Amer
|
||||
- Patch for Keith Campbell: Default template file change ( for statement )
|
||||
- Patch for Chris Wiebe: Better header file icon
|
||||
|
|
|
@ -36,6 +36,7 @@ import org.eclipse.cdt.internal.ui.editor.SearchDialogAction;
|
|||
import org.eclipse.cdt.internal.ui.preferences.CPluginPreferencePage;
|
||||
import org.eclipse.cdt.internal.ui.util.EditorUtility;
|
||||
import org.eclipse.cdt.internal.ui.util.ProblemTreeViewer;
|
||||
import org.eclipse.cdt.ui.*;
|
||||
import org.eclipse.cdt.ui.CElementContentProvider;
|
||||
import org.eclipse.cdt.ui.CLocalSelectionTransfer;
|
||||
import org.eclipse.cdt.ui.CUIPlugin;
|
||||
|
@ -465,7 +466,7 @@ public class CView extends ViewPart implements IMenuListener, ISetSelectionTarge
|
|||
viewer.addFilter(patternFilter);
|
||||
viewer.addFilter(workingSetFilter);
|
||||
//viewer.addFilter(clibFilter);
|
||||
viewer.setSorter(new CViewSorter ());
|
||||
viewer.setSorter(new CElementSorter ());
|
||||
// FIXME: Add different Sorting.
|
||||
if(memento != null)
|
||||
restoreFilters();
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package org.eclipse.cdt.internal.ui.cview;
|
||||
package org.eclipse.cdt.ui;
|
||||
|
||||
/*
|
||||
* (c) Copyright IBM Corp. 2000, 2001.
|
||||
|
@ -44,7 +44,7 @@ import org.eclipse.ui.model.IWorkbenchAdapter;
|
|||
* 5 C File
|
||||
* 6 the reset
|
||||
*/
|
||||
public class CViewSorter extends ViewerSorter {
|
||||
public class CElementSorter extends ViewerSorter {
|
||||
|
||||
private static final int CMODEL = 0;
|
||||
private static final int PROJECT = 10;
|
Loading…
Add table
Reference in a new issue