|
Lines 59-64
Link Here
|
| 59 |
import org.eclipse.wst.css.ui.internal.style.LineStyleProviderForEmbeddedCSS; |
59 |
import org.eclipse.wst.css.ui.internal.style.LineStyleProviderForEmbeddedCSS; |
| 60 |
import org.eclipse.wst.html.core.internal.format.HTMLFormatProcessorImpl; |
60 |
import org.eclipse.wst.html.core.internal.format.HTMLFormatProcessorImpl; |
| 61 |
import org.eclipse.wst.html.core.internal.provisional.text.IHTMLPartitionTypes; |
61 |
import org.eclipse.wst.html.core.internal.provisional.text.IHTMLPartitionTypes; |
|
|
62 |
import org.eclipse.wst.html.ui.internal.autoedit.AutoEditStrategyForTabs; |
| 62 |
import org.eclipse.wst.html.ui.internal.provisional.StructuredTextViewerConfigurationHTML; |
63 |
import org.eclipse.wst.html.ui.internal.provisional.StructuredTextViewerConfigurationHTML; |
| 63 |
import org.eclipse.wst.html.ui.internal.style.LineStyleProviderForHTML; |
64 |
import org.eclipse.wst.html.ui.internal.style.LineStyleProviderForHTML; |
| 64 |
import org.eclipse.wst.javascript.ui.internal.common.style.LineStyleProviderForJavaScript; |
65 |
import org.eclipse.wst.javascript.ui.internal.common.style.LineStyleProviderForJavaScript; |
|
Lines 108-114
Link Here
|
| 108 |
if (contentType == IXMLPartitions.XML_DEFAULT) { |
109 |
if (contentType == IXMLPartitions.XML_DEFAULT) { |
| 109 |
strategies = getXMLSourceViewerConfiguration().getAutoEditStrategies(sourceViewer, contentType); |
110 |
strategies = getXMLSourceViewerConfiguration().getAutoEditStrategies(sourceViewer, contentType); |
| 110 |
} else if (contentType == IJSPPartitionTypes.JSP_CONTENT_JAVA) { |
111 |
} else if (contentType == IJSPPartitionTypes.JSP_CONTENT_JAVA) { |
| 111 |
strategies = getJavaSourceViewerConfiguration().getAutoEditStrategies(sourceViewer, IJavaPartitions.JAVA_PARTITIONING); |
112 |
List allStrategies = new ArrayList(0); |
|
|
113 |
|
| 114 |
IAutoEditStrategy[] javaStrategies = getJavaSourceViewerConfiguration().getAutoEditStrategies(sourceViewer, IJavaPartitions.JAVA_PARTITIONING); |
| 115 |
for (int i = 0; i < javaStrategies.length; i++) { |
| 116 |
allStrategies.add(javaStrategies[i]); |
| 117 |
} |
| 118 |
|
| 119 |
// add auto edit strategy that handles when tab key is pressed |
| 120 |
allStrategies.add(new AutoEditStrategyForTabs()); |
| 121 |
|
| 122 |
strategies = (IAutoEditStrategy[]) allStrategies.toArray(new IAutoEditStrategy[0]); |
| 112 |
} else { |
123 |
} else { |
| 113 |
List allStrategies = new ArrayList(0); |
124 |
List allStrategies = new ArrayList(0); |
| 114 |
|
125 |
|
|
Lines 116-121
Link Here
|
| 116 |
for (int i = 0; i < superStrategies.length; i++) { |
127 |
for (int i = 0; i < superStrategies.length; i++) { |
| 117 |
allStrategies.add(superStrategies[i]); |
128 |
allStrategies.add(superStrategies[i]); |
| 118 |
} |
129 |
} |
|
|
130 |
|
| 131 |
// add auto edit strategy that handles when tab key is pressed |
| 132 |
allStrategies.add(new AutoEditStrategyForTabs()); |
| 119 |
|
133 |
|
| 120 |
if (contentType == IHTMLPartitionTypes.HTML_DEFAULT || contentType == IHTMLPartitionTypes.HTML_DECLARATION) { |
134 |
if (contentType == IHTMLPartitionTypes.HTML_DEFAULT || contentType == IHTMLPartitionTypes.HTML_DECLARATION) { |
| 121 |
allStrategies.add(new StructuredAutoEditStrategyJSP()); |
135 |
allStrategies.add(new StructuredAutoEditStrategyJSP()); |