Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Schorn2010-08-13 08:47:10 +0000
committerMarkus Schorn2010-08-13 08:47:10 +0000
commit6048a19e1c682d5c44cbd7f3f480af1bf30adf2f (patch)
tree779289bd5308ce8e9a34a880635e5c56734220a9
parent992cf58f31d7db2e8c58ae3e821e239135e0dd6e (diff)
downloadorg.eclipse.cdt-6048a19e1c682d5c44cbd7f3f480af1bf30adf2f.tar.gz
org.eclipse.cdt-6048a19e1c682d5c44cbd7f3f480af1bf30adf2f.tar.xz
org.eclipse.cdt-6048a19e1c682d5c44cbd7f3f480af1bf30adf2f.zip
Bug 321976: Sorting of CElements.
-rw-r--r--core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/CElementSorter.java16
1 files changed, 9 insertions, 7 deletions
diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/CElementSorter.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/CElementSorter.java
index c4f2829dc97..4e19ab3fbd6 100644
--- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/CElementSorter.java
+++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/CElementSorter.java
@@ -9,6 +9,7 @@
* IBM Corporation - initial API and implementation
* QNX Software System
* Anton Leherbauer (Wind River Systems)
+ * Markus Schorn (Wind River Systems)
*******************************************************************************/
package org.eclipse.cdt.ui;
@@ -78,7 +79,10 @@ public class CElementSorter extends ViewerSorter {
* @since 5.1
*/
protected static final int TYPES = 35;
+
+ @Deprecated
protected static final int VARIABLEDECLARATIONS = 36;
+ @Deprecated
protected static final int FUNCTIONDECLARATIONS = 37;
protected static final int VARIABLES = 38;
protected static final int VARIABLES_RESERVED = 39;
@@ -86,6 +90,7 @@ public class CElementSorter extends ViewerSorter {
protected static final int FUNCTIONS = 41;
protected static final int FUNCTIONS_RESERVED = 42;
protected static final int FUNCTIONS_SYSTEM = 43;
+ @Deprecated
protected static final int METHODDECLARATIONS = 44;
protected static final int CELEMENTS = 100;
@@ -186,21 +191,18 @@ public class CElementSorter extends ViewerSorter {
case ICElement.C_TEMPLATE_UNION_DECLARATION:
case ICElement.C_ENUMERATION:
return TYPES;
- case ICElement.C_FUNCTION_DECLARATION:
- case ICElement.C_TEMPLATE_FUNCTION_DECLARATION:
- return FUNCTIONDECLARATIONS;
- case ICElement.C_METHOD_DECLARATION:
- case ICElement.C_TEMPLATE_METHOD_DECLARATION:
- return METHODDECLARATIONS;
case ICElement.C_VARIABLE_DECLARATION:
- return VARIABLEDECLARATIONS;
case ICElement.C_VARIABLE:
case ICElement.C_TEMPLATE_VARIABLE:
case ICElement.C_FIELD:
return VARIABLES + getNameKind(cElement.getElementName());
+ case ICElement.C_FUNCTION_DECLARATION:
case ICElement.C_FUNCTION:
+ case ICElement.C_TEMPLATE_FUNCTION_DECLARATION:
case ICElement.C_TEMPLATE_FUNCTION:
+ case ICElement.C_METHOD_DECLARATION:
case ICElement.C_METHOD:
+ case ICElement.C_TEMPLATE_METHOD_DECLARATION:
case ICElement.C_TEMPLATE_METHOD:
return FUNCTIONS + getNameKind(cElement.getElementName());
case ICElement.C_ARCHIVE:

Back to the top