1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

2005-06-25 Alain Magloire

Fix for PR 98788: Templates
	* src/org/eclipse/cdt/internal/ui/viewsupport/CElementImageProvider.java
This commit is contained in:
Alain Magloire 2005-06-25 16:42:51 +00:00
parent 1252d8004a
commit 732810e8ec
2 changed files with 16 additions and 2 deletions

View file

@ -1,3 +1,7 @@
2005-06-25 Alain Magloire
Fix for PR 98788: Templates
* src/org/eclipse/cdt/internal/ui/viewsupport/CElementImageProvider.java
2005-06-22 Alain Magloire 2005-06-22 Alain Magloire
Fix PR 99668 from Craig Watson. Fix PR 99668 from Craig Watson.
* src/org/eclipse/cdt/internal/ui/cview/CViewContentProvider.java * src/org/eclipse/cdt/internal/ui/cview/CViewContentProvider.java

View file

@ -177,19 +177,24 @@ public class CElementImageProvider {
case ICElement.C_METHOD: case ICElement.C_METHOD:
case ICElement.C_METHOD_DECLARATION: case ICElement.C_METHOD_DECLARATION:
case ICElement.C_TEMPLATE_METHOD: case ICElement.C_TEMPLATE_METHOD:
case ICElement.C_TEMPLATE_METHOD_DECLARATION:
return CPluginImages.DESC_OBJS_PUBLIC_METHOD; return CPluginImages.DESC_OBJS_PUBLIC_METHOD;
case ICElement.C_FUNCTION: case ICElement.C_FUNCTION:
case ICElement.C_TEMPLATE_FUNCTION:
return CPluginImages.DESC_OBJS_FUNCTION; return CPluginImages.DESC_OBJS_FUNCTION;
case ICElement.C_STRUCT_DECLARATION: case ICElement.C_STRUCT_DECLARATION:
case ICElement.C_CLASS_DECLARATION: case ICElement.C_CLASS_DECLARATION:
case ICElement.C_UNION_DECLARATION: case ICElement.C_UNION_DECLARATION:
case ICElement.C_VARIABLE_DECLARATION: case ICElement.C_VARIABLE_DECLARATION:
case ICElement.C_TEMPLATE_CLASS_DECLARATION:
case ICElement.C_TEMPLATE_STRUCT_DECLARATION:
case ICElement.C_TEMPLATE_UNION_DECLARATION:
return CPluginImages.DESC_OBJS_VAR_DECLARARION; return CPluginImages.DESC_OBJS_VAR_DECLARARION;
case ICElement.C_FUNCTION_DECLARATION: case ICElement.C_FUNCTION_DECLARATION:
case ICElement.C_TEMPLATE_FUNCTION: case ICElement.C_TEMPLATE_FUNCTION_DECLARATION:
return CPluginImages.DESC_OBJS_DECLARARION; return CPluginImages.DESC_OBJS_DECLARARION;
case ICElement.C_INCLUDE: case ICElement.C_INCLUDE:
@ -351,6 +356,7 @@ public class CElementImageProvider {
case ICElement.C_METHOD: case ICElement.C_METHOD:
case ICElement.C_METHOD_DECLARATION: case ICElement.C_METHOD_DECLARATION:
case ICElement.C_TEMPLATE_METHOD: case ICElement.C_TEMPLATE_METHOD:
case ICElement.C_TEMPLATE_METHOD_DECLARATION:
try { try {
IMethodDeclaration md= (IMethodDeclaration)celement; IMethodDeclaration md= (IMethodDeclaration)celement;
@ -364,16 +370,20 @@ public class CElementImageProvider {
return getVariableImageDescriptor(); return getVariableImageDescriptor();
case ICElement.C_FUNCTION: case ICElement.C_FUNCTION:
case ICElement.C_TEMPLATE_FUNCTION:
return getFunctionImageDescriptor(); return getFunctionImageDescriptor();
case ICElement.C_STRUCT_DECLARATION: case ICElement.C_STRUCT_DECLARATION:
case ICElement.C_CLASS_DECLARATION: case ICElement.C_CLASS_DECLARATION:
case ICElement.C_UNION_DECLARATION: case ICElement.C_UNION_DECLARATION:
case ICElement.C_VARIABLE_DECLARATION: case ICElement.C_VARIABLE_DECLARATION:
case ICElement.C_TEMPLATE_CLASS_DECLARATION:
case ICElement.C_TEMPLATE_UNION_DECLARATION:
case ICElement.C_TEMPLATE_STRUCT_DECLARATION:
return getVariableDeclarationImageDescriptor(); return getVariableDeclarationImageDescriptor();
case ICElement.C_FUNCTION_DECLARATION: case ICElement.C_FUNCTION_DECLARATION:
case ICElement.C_TEMPLATE_FUNCTION: case ICElement.C_TEMPLATE_FUNCTION_DECLARATION:
return getFunctionDeclarationImageDescriptor(); return getFunctionDeclarationImageDescriptor();
case ICElement.C_INCLUDE: case ICElement.C_INCLUDE: