Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNitin Dahyabhai2020-04-08 01:49:22 +0000
committerNitin Dahyabhai2020-04-08 01:49:22 +0000
commita4eafd084073257f988824b177e9213f09770dd4 (patch)
tree081408efa3620624d3d29de62a16fa5387704326
parent32376f09481c5ec2c6d69c45c4b17016a2d2a909 (diff)
downloadwebtools.sourceediting-a4eafd084073257f988824b177e9213f09770dd4.tar.gz
webtools.sourceediting-a4eafd084073257f988824b177e9213f09770dd4.tar.xz
webtools.sourceediting-a4eafd084073257f988824b177e9213f09770dd4.zip
[561347] Add API StructuredTextViewerConfiguration#createPreferenceStores()
-rw-r--r--core/bundles/org.eclipse.wst.sse.ui/src/org/eclipse/wst/sse/ui/StructuredTextViewerConfiguration.java10
1 files changed, 9 insertions, 1 deletions
diff --git a/core/bundles/org.eclipse.wst.sse.ui/src/org/eclipse/wst/sse/ui/StructuredTextViewerConfiguration.java b/core/bundles/org.eclipse.wst.sse.ui/src/org/eclipse/wst/sse/ui/StructuredTextViewerConfiguration.java
index 424b7982fe..93162f353b 100644
--- a/core/bundles/org.eclipse.wst.sse.ui/src/org/eclipse/wst/sse/ui/StructuredTextViewerConfiguration.java
+++ b/core/bundles/org.eclipse.wst.sse.ui/src/org/eclipse/wst/sse/ui/StructuredTextViewerConfiguration.java
@@ -135,9 +135,17 @@ public class StructuredTextViewerConfiguration extends TextSourceViewerConfigura
* @return IPreferenceStore
*/
private IPreferenceStore createCombinedPreferenceStore() {
+ return new ChainedPreferenceStore(createPreferenceStores());
+ }
+
+ /**
+ * @since 1.7.0
+ * Create the preference stores from which this viewer configuration will draw values.
+ */
+ protected IPreferenceStore[] createPreferenceStores() {
IPreferenceStore sseEditorPrefs = SSEUIPlugin.getDefault().getPreferenceStore();
IPreferenceStore baseEditorPrefs = EditorsUI.getPreferenceStore();
- return new ChainedPreferenceStore(new IPreferenceStore[]{sseEditorPrefs, baseEditorPrefs});
+ return new IPreferenceStore[]{sseEditorPrefs, baseEditorPrefs};
}
/**

Back to the top