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:
parent
a09eaa034f
commit
e7ebb3a57a
2 changed files with 30 additions and 20 deletions
|
@ -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
|
||||||
|
|
|
@ -182,6 +182,9 @@ 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,25 +340,25 @@ 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();
|
||||||
|
@ -363,8 +366,11 @@ public class CElementImageProvider {
|
||||||
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:
|
||||||
|
|
Loading…
Add table
Reference in a new issue