1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-28 11:25:35 +02:00

2005-01-22 Alain Magloire

PR 38958
	* src/org/eclipse/cdt/internal/ui/viewsupport/CElementImageProvider.java
This commit is contained in:
Alain Magloire 2005-01-23 04:46:25 +00:00
parent a09eaa034f
commit e7ebb3a57a
2 changed files with 30 additions and 20 deletions

View file

@ -1,5 +1,9 @@
2005-01-20 2005-01-22 Alain Magloire
PR 82964 PR 38958
* src/org/eclipse/cdt/internal/ui/viewsupport/CElementImageProvider.java
2005-01-20 Alain Magloire
PR 82964 patch form Przemek
* icons/full/cview16/view_menu.gif * icons/full/cview16/view_menu.gif
* src/org/eclipse/cdt/internal.ui/CPluginImages.java * src/org/eclipse/cdt/internal.ui/CPluginImages.java
* src/org/eclipse/cdt/internal/ui/actions/ActionMessages.properties * src/org/eclipse/cdt/internal/ui/actions/ActionMessages.properties

View file

@ -181,7 +181,10 @@ public class CElementImageProvider {
case ICElement.C_FUNCTION: case ICElement.C_FUNCTION:
return CPluginImages.DESC_OBJS_FUNCTION; return CPluginImages.DESC_OBJS_FUNCTION;
case ICElement.C_STRUCT_DECLARATION:
case ICElement.C_CLASS_DECLARATION:
case ICElement.C_UNION_DECLARATION:
case ICElement.C_VARIABLE_DECLARATION: case ICElement.C_VARIABLE_DECLARATION:
return CPluginImages.DESC_OBJS_VAR_DECLARARION; return CPluginImages.DESC_OBJS_VAR_DECLARARION;
@ -337,34 +340,37 @@ public class CElementImageProvider {
return getEnumeratorImageDescriptor(); return getEnumeratorImageDescriptor();
case ICElement.C_FIELD: case ICElement.C_FIELD:
try { try {
IField field = (IField)celement; IField field = (IField)celement;
ASTAccessVisibility visibility = field.getVisibility(); ASTAccessVisibility visibility = field.getVisibility();
return getFieldImageDescriptor(visibility); return getFieldImageDescriptor(visibility);
} catch (CModelException e) { } catch (CModelException e) {
return null; return null;
} }
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:
try { try {
IMethodDeclaration md= (IMethodDeclaration)celement; IMethodDeclaration md= (IMethodDeclaration)celement;
ASTAccessVisibility visibility =md.getVisibility(); ASTAccessVisibility visibility =md.getVisibility();
return getMethodImageDescriptor(visibility); return getMethodImageDescriptor(visibility);
} catch (CModelException e) { } catch (CModelException e) {
return null; return null;
} }
case ICElement.C_VARIABLE: case ICElement.C_VARIABLE:
case ICElement.C_TEMPLATE_VARIABLE: case ICElement.C_TEMPLATE_VARIABLE:
return getVariableImageDescriptor(); return getVariableImageDescriptor();
case ICElement.C_FUNCTION: case ICElement.C_FUNCTION:
return getFunctionImageDescriptor(); return getFunctionImageDescriptor();
case ICElement.C_STRUCT_DECLARATION:
case ICElement.C_CLASS_DECLARATION:
case ICElement.C_UNION_DECLARATION:
case ICElement.C_VARIABLE_DECLARATION: case ICElement.C_VARIABLE_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: