Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDani Megert2012-03-21 17:05:56 +0000
committerDani Megert2012-03-21 17:05:56 +0000
commit0ff4b7113c6e626657bd2141b11925cab5ddaf41 (patch)
treeeb953d53f5f177ed1d5012cf96bd60218a951a88
parent661cdd12064aa52a6fe8ab130a2a7f08ea33c16b (diff)
downloadeclipse.platform.text-0ff4b7113c6e626657bd2141b11925cab5ddaf41.tar.gz
eclipse.platform.text-0ff4b7113c6e626657bd2141b11925cab5ddaf41.tar.xz
eclipse.platform.text-0ff4b7113c6e626657bd2141b11925cab5ddaf41.zip
Fixed bug 364695: [implementation] DelegatingAnnotationPreference doesv20120321-1705I20120328-2028I20120328-2020I20120328-2007I20120328-1956
not override all get-methods of AnnotationPreference
-rw-r--r--org.eclipse.ui.editors/src/org/eclipse/ui/internal/texteditor/DelegatingAnnotationPreference.java27
1 files changed, 25 insertions, 2 deletions
diff --git a/org.eclipse.ui.editors/src/org/eclipse/ui/internal/texteditor/DelegatingAnnotationPreference.java b/org.eclipse.ui.editors/src/org/eclipse/ui/internal/texteditor/DelegatingAnnotationPreference.java
index b4048550764..f986d4f46a9 100644
--- a/org.eclipse.ui.editors/src/org/eclipse/ui/internal/texteditor/DelegatingAnnotationPreference.java
+++ b/org.eclipse.ui.editors/src/org/eclipse/ui/internal/texteditor/DelegatingAnnotationPreference.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2008 IBM Corporation and others.
+ * Copyright (c) 2000, 2012 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -66,7 +66,7 @@ public class DelegatingAnnotationPreference extends AnnotationPreference {
setValue(attribute, preference.getValue(attribute));
markCached(attribute);
}
- return getValue(attribute);
+ return super.getValue(attribute);
}
private boolean getBooleanAttributeValue(Object attribute) {
@@ -256,4 +256,27 @@ public class DelegatingAnnotationPreference extends AnnotationPreference {
return getBooleanAttributeValue(SHOW_IN_NAVIGATION_DROPDOWN_VALUE);
}
+ /*
+ * @see org.eclipse.ui.texteditor.AnnotationPreference#getTextStylePreferenceKey()
+ * @since 3.8
+ */
+ public String getTextStylePreferenceKey() {
+ return (String)getAttributeValue(TEXT_STYLE_PREFERENCE_KEY);
+ }
+
+ /*
+ * @see org.eclipse.ui.texteditor.AnnotationPreference#getTextStyleValue()
+ * @since 3.8
+ */
+ public String getTextStyleValue() {
+ return (String)getAttributeValue(TEXT_STYLE_PREFERENCE_VALUE);
+ }
+
+ /*
+ * @see org.eclipse.ui.texteditor.AnnotationPreference#getValue(java.lang.Object)
+ * @since 3.8
+ */
+ public Object getValue(Object attribute) {
+ return getAttributeValue(attribute);
+ }
}

Back to the top