Java Code Examples for org.eclipse.jdt.internal.ui.JavaPluginImages#DESC_FIELD_PUBLIC
The following examples show how to use
org.eclipse.jdt.internal.ui.JavaPluginImages#DESC_FIELD_PUBLIC .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: BindingLabelProvider.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 5 votes |
private static ImageDescriptor getFieldImageDescriptor(IVariableBinding binding) { final int modifiers= binding.getModifiers(); if (Modifier.isPublic(modifiers) || binding.isEnumConstant()) return JavaPluginImages.DESC_FIELD_PUBLIC; if (Modifier.isProtected(modifiers)) return JavaPluginImages.DESC_FIELD_PROTECTED; if (Modifier.isPrivate(modifiers)) return JavaPluginImages.DESC_FIELD_PRIVATE; return JavaPluginImages.DESC_FIELD_DEFAULT; }
Example 2
Source File: JavaElementImageProvider.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 5 votes |
public static ImageDescriptor getFieldImageDescriptor(boolean isInInterfaceOrAnnotation, int flags) { if (Flags.isPublic(flags) || isInInterfaceOrAnnotation || Flags.isEnum(flags)) return JavaPluginImages.DESC_FIELD_PUBLIC; if (Flags.isProtected(flags)) return JavaPluginImages.DESC_FIELD_PROTECTED; if (Flags.isPrivate(flags)) return JavaPluginImages.DESC_FIELD_PRIVATE; return JavaPluginImages.DESC_FIELD_DEFAULT; }