Lines 26-31
Link Here
|
26 |
import org.eclipse.core.filebuffers.ITextFileBufferManager; |
26 |
import org.eclipse.core.filebuffers.ITextFileBufferManager; |
27 |
import org.eclipse.core.filebuffers.LocationKind; |
27 |
import org.eclipse.core.filebuffers.LocationKind; |
28 |
|
28 |
|
|
|
29 |
import org.eclipse.jface.preference.IPreferenceStore; |
30 |
|
29 |
import org.eclipse.jface.text.IDocument; |
31 |
import org.eclipse.jface.text.IDocument; |
30 |
|
32 |
|
31 |
import org.eclipse.ui.texteditor.spelling.ISpellingProblemCollector; |
33 |
import org.eclipse.ui.texteditor.spelling.ISpellingProblemCollector; |
Lines 66-72
Link Here
|
66 |
super.setUp(); |
68 |
super.setUp(); |
67 |
setWarmUpRuns(WARM_UP_RUNS); |
69 |
setWarmUpRuns(WARM_UP_RUNS); |
68 |
setMeasuredRuns(MEASURED_RUNS); |
70 |
setMeasuredRuns(MEASURED_RUNS); |
|
|
71 |
|
69 |
PreferenceConstants.getPreferenceStore().setValue(PreferenceConstants.SPELLING_PROBLEMS_THRESHOLD, Integer.MAX_VALUE); |
72 |
PreferenceConstants.getPreferenceStore().setValue(PreferenceConstants.SPELLING_PROBLEMS_THRESHOLD, Integer.MAX_VALUE); |
|
|
73 |
EditorsUI.getPreferenceStore().putValue(SpellingService.PREFERENCE_SPELLING_ENABLED, IPreferenceStore.TRUE); |
70 |
|
74 |
|
71 |
fSpellingContext= new SpellingContext(); |
75 |
fSpellingContext= new SpellingContext(); |
72 |
fSpellingContext.setContentType(Platform.getContentTypeManager().getContentType(IContentTypeManager.CT_TEXT)); |
76 |
fSpellingContext.setContentType(Platform.getContentTypeManager().getContentType(IContentTypeManager.CT_TEXT)); |
Lines 87-92
Link Here
|
87 |
protected void tearDown() throws Exception { |
91 |
protected void tearDown() throws Exception { |
88 |
super.tearDown(); |
92 |
super.tearDown(); |
89 |
PreferenceConstants.getPreferenceStore().setToDefault(PreferenceConstants.SPELLING_PROBLEMS_THRESHOLD); |
93 |
PreferenceConstants.getPreferenceStore().setToDefault(PreferenceConstants.SPELLING_PROBLEMS_THRESHOLD); |
|
|
94 |
EditorsUI.getPreferenceStore().setToDefault(SpellingService.PREFERENCE_SPELLING_ENABLED); |
90 |
} |
95 |
} |
91 |
|
96 |
|
92 |
public void test() throws Exception { |
97 |
public void test() throws Exception { |