/** * Returns the Quick Fix image descriptor for the image to be drawn in the vertical ruler. The provided * image is only used, if <code>getAnnotationImageProvider</code> returns <code>null</code>. * * @return the image descriptor or <code>null</code> * @since 3.2 */ public ImageDescriptor getQuickFixImageDescriptor() { return (ImageDescriptor) getValue(QUICK_FIX_IMAGE_DESCRIPTOR); }
/** * Returns the default presentation color. * * @return the default presentation color or <code>null</code> if none is * set */ public RGB getColorPreferenceValue() { return (RGB) getValue(COLOR_PREFERENCE_VALUE); }
/** * Returns the image descriptor for the image to be drawn in the vertical ruler. The provided * image is only used, if <code>getAnnotationImageProvider</code> returns <code>null</code>. * * @return the image descriptor or <code>null</code> * @since 3.0 */ public ImageDescriptor getImageDescriptor() { return (ImageDescriptor) getValue(IMAGE_DESCRIPTOR); }
/** * Returns the image descriptor for the image to be drawn in the vertical ruler. The provided * image is only used, if <code>getAnnotationImageProvider</code> returns <code>null</code>. * * @return the image descriptor or <code>null</code> * @since 3.0 */ public ImageDescriptor getImageDescriptor() { return (ImageDescriptor) getValue(IMAGE_DESCRIPTOR); }
/** * Returns the Quick Fix image descriptor for the image to be drawn in the vertical ruler. The provided * image is only used, if <code>getAnnotationImageProvider</code> returns <code>null</code>. * * @return the image descriptor or <code>null</code> * @since 3.2 */ public ImageDescriptor getQuickFixImageDescriptor() { return (ImageDescriptor) getValue(QUICK_FIX_IMAGE_DESCRIPTOR); }
/** * Returns the image descriptor for the image to be drawn in the vertical ruler. The provided * image is only used, if <code>getAnnotationImageProvider</code> returns <code>null</code>. * * @return the image descriptor or <code>null</code> * @since 3.0 */ public ImageDescriptor getImageDescriptor() { return (ImageDescriptor) getValue(IMAGE_DESCRIPTOR); }
/** * Returns the Quick Fix image descriptor for the image to be drawn in the vertical ruler. The provided * image is only used, if <code>getAnnotationImageProvider</code> returns <code>null</code>. * * @return the image descriptor or <code>null</code> * @since 3.2 */ public ImageDescriptor getQuickFixImageDescriptor() { return (ImageDescriptor) getValue(QUICK_FIX_IMAGE_DESCRIPTOR); }
/** * Returns the default presentation color. * * @return the default presentation color or <code>null</code> if none is * set */ public RGB getColorPreferenceValue() { return (RGB) getValue(COLOR_PREFERENCE_VALUE); }
/** * Returns the default presentation color. * * @return the default presentation color or <code>null</code> if none is * set */ public RGB getColorPreferenceValue() { return (RGB) getValue(COLOR_PREFERENCE_VALUE); }
/** * Merges the values of the given preference into this preference. Existing * values will not be overwritten. Subclasses may extend. * * @param preference the preference to merge into this preference * @since 3.0 */ public void merge(AnnotationPreference preference) { if (!getAnnotationType().equals(preference.getAnnotationType())) return; for (int i= 0; i < ATTRIBUTES.length; i++) { if (!hasValue(ATTRIBUTES[i])) setValue(ATTRIBUTES[i], preference.getValue(ATTRIBUTES[i])); } if (fAnnotationImageProvider == null) fAnnotationImageProvider= preference.fAnnotationImageProvider; if (fConfigurationElement == null) fConfigurationElement= preference.fConfigurationElement; if (fAnnotationImageProviderAttribute == null) fAnnotationImageProviderAttribute= preference.fAnnotationImageProviderAttribute; }
/** * Merges the values of the given preference into this preference. Existing * values will not be overwritten. Subclasses may extend. * * @param preference the preference to merge into this preference * @since 3.0 */ public void merge(AnnotationPreference preference) { if (!getAnnotationType().equals(preference.getAnnotationType())) return; for (int i= 0; i < ATTRIBUTES.length; i++) { if (!hasValue(ATTRIBUTES[i])) setValue(ATTRIBUTES[i], preference.getValue(ATTRIBUTES[i])); } if (fAnnotationImageProvider == null) fAnnotationImageProvider= preference.fAnnotationImageProvider; if (fConfigurationElement == null) fConfigurationElement= preference.fConfigurationElement; if (fAnnotationImageProviderAttribute == null) fAnnotationImageProviderAttribute= preference.fAnnotationImageProviderAttribute; }
/** * Merges the values of the given preference into this preference. Existing * values will not be overwritten. Subclasses may extend. * * @param preference the preference to merge into this preference * @since 3.0 */ public void merge(AnnotationPreference preference) { if (!getAnnotationType().equals(preference.getAnnotationType())) return; for (int i= 0; i < ATTRIBUTES.length; i++) { if (!hasValue(ATTRIBUTES[i])) setValue(ATTRIBUTES[i], preference.getValue(ATTRIBUTES[i])); } if (fAnnotationImageProvider == null) fAnnotationImageProvider= preference.fAnnotationImageProvider; if (fConfigurationElement == null) fConfigurationElement= preference.fConfigurationElement; if (fAnnotationImageProviderAttribute == null) fAnnotationImageProviderAttribute= preference.fAnnotationImageProviderAttribute; }
private Object getAttributeValue(Object attribute) { if (!isCached(attribute)) { AnnotationPreference preference= getDefiningPreference(attribute); if (preference != null) setValue(attribute, preference.getValue(attribute)); markCached(attribute); } return getValue(attribute); }