Esempio n. 1
0
 public Image forOperation(
     JvmVisibility visibility, boolean isAbstract, boolean isStatic, boolean isFinal) {
   ImageDescriptor descriptor =
       JavaElementImageProvider.getMethodImageDescriptor(
           false, toFlags(visibility, isAbstract, isStatic, isFinal));
   int adornment = 0;
   if (isStatic) adornment |= JavaElementImageDescriptor.STATIC;
   if (isFinal) adornment |= JavaElementImageDescriptor.FINAL;
   if (isAbstract) adornment |= JavaElementImageDescriptor.ABSTRACT;
   if (adornment != 0) return getDecoratedJdtImage(descriptor, adornment);
   else return getJdtImage(descriptor);
 }
Esempio n. 2
0
 public Image forConstructor(JvmVisibility visibility) {
   return getDecoratedJdtImage(
       JavaElementImageProvider.getMethodImageDescriptor(false, toFlags(visibility)),
       JavaElementImageDescriptor.CONSTRUCTOR);
 }