commit | 3f439f55037d49435844ffa01d6a70f4caf66841 | [log] [tgz] |
---|---|---|
author | pavery <pavery> | Mon Mar 21 19:52:14 2005 +0000 |
committer | pavery <pavery> | Mon Mar 21 19:52:14 2005 +0000 |
tree | c70d4e0292181c930edc4fea2243c4c3c21617d1 | |
parent | 6fcbb09cb81dd782af1a3c8c06135268ce5b2495 [diff] |
added constructor w/ preference store for unit test purposes
diff --git a/bundles/org.eclipse.wst.html.ui/src/org/eclipse/wst/html/ui/StructuredTextViewerConfigurationHTML.java b/bundles/org.eclipse.wst.html.ui/src/org/eclipse/wst/html/ui/StructuredTextViewerConfigurationHTML.java index fcf4d30..304afc0 100644 --- a/bundles/org.eclipse.wst.html.ui/src/org/eclipse/wst/html/ui/StructuredTextViewerConfigurationHTML.java +++ b/bundles/org.eclipse.wst.html.ui/src/org/eclipse/wst/html/ui/StructuredTextViewerConfigurationHTML.java
@@ -78,7 +78,15 @@ InformationPresenter fInformationPresenter = null; private JavaSourceViewerConfiguration fJavaSourceViewerConfiguration; - + + public StructuredTextViewerConfigurationHTML() { + super(); + } + + public StructuredTextViewerConfigurationHTML(IPreferenceStore store) { + super(store); + } + /* * (non-Javadoc) *
diff --git a/bundles/org.eclipse.wst.sse.ui/src/org/eclipse/wst/sse/ui/StructuredTextViewerConfiguration.java b/bundles/org.eclipse.wst.sse.ui/src/org/eclipse/wst/sse/ui/StructuredTextViewerConfiguration.java index ad4254b..b6c40e2 100644 --- a/bundles/org.eclipse.wst.sse.ui/src/org/eclipse/wst/sse/ui/StructuredTextViewerConfiguration.java +++ b/bundles/org.eclipse.wst.sse.ui/src/org/eclipse/wst/sse/ui/StructuredTextViewerConfiguration.java
@@ -76,6 +76,20 @@ protected final String SSE_MODEL_ID = "org.eclipse.wst.sse.core"; //$NON-NLS-1$ /** + * This is intended for unit testing only. + * + * This preference store will be overwritten when configured with + * a StructuredTextEditor + * + * @param store + */ + public StructuredTextViewerConfiguration(IPreferenceStore store) { + super(store); + fPreferenceStore = store; + fContentAssistProcessors = new ArrayList(); + } + + /** * Default constructor. */ public StructuredTextViewerConfiguration() {
diff --git a/bundles/org.eclipse.wst.xml.ui/src/org/eclipse/wst/xml/ui/StructuredTextViewerConfigurationXML.java b/bundles/org.eclipse.wst.xml.ui/src/org/eclipse/wst/xml/ui/StructuredTextViewerConfigurationXML.java index c34225f..06405dc 100644 --- a/bundles/org.eclipse.wst.xml.ui/src/org/eclipse/wst/xml/ui/StructuredTextViewerConfigurationXML.java +++ b/bundles/org.eclipse.wst.xml.ui/src/org/eclipse/wst/xml/ui/StructuredTextViewerConfigurationXML.java
@@ -16,6 +16,7 @@ import java.util.List; import java.util.Map; +import org.eclipse.jface.preference.IPreferenceStore; import org.eclipse.jface.text.IDocument; import org.eclipse.jface.text.ITextDoubleClickStrategy; import org.eclipse.jface.text.ITextHover; @@ -65,6 +66,14 @@ InformationPresenter fInformationPresenter = null; + public StructuredTextViewerConfigurationXML() { + super(); + } + + public StructuredTextViewerConfigurationXML(IPreferenceStore store) { + super(store); + } + /* * (non-Javadoc) *