Search in sources :

Example 1 with PerlStringContentManipulator

use of com.perl5.lang.perl.idea.manipulators.PerlStringContentManipulator in project Perl5-IDEA by Camelcade.

the class PerlLightTestCase method setUp.

@Override
protected void setUp() throws Exception {
    super.setUp();
    myDisposable = Disposer.newDisposable();
    EditorColorsScheme scheme = EditorColorsManager.getInstance().getGlobalScheme();
    myReadAttributes = scheme.getAttributes(EditorColors.SEARCH_RESULT_ATTRIBUTES);
    myWriteAttributes = scheme.getAttributes(EditorColors.WRITE_SEARCH_RESULT_ATTRIBUTES);
    ElementManipulators.INSTANCE.addExplicitExtension(PerlStringMixin.class, new PerlStringManipulator());
    ElementManipulators.INSTANCE.addExplicitExtension(PerlStringBareMixin.class, new PerlBareStringManipulator());
    ElementManipulators.INSTANCE.addExplicitExtension(PerlStringContentElement.class, new PerlStringContentManipulator());
    setUpLibrary();
    myCodeInsightSettings = Perl5CodeInsightSettings.getInstance().copy();
}
Also used : PerlBareStringManipulator(com.perl5.lang.perl.idea.manipulators.PerlBareStringManipulator) EditorColorsScheme(com.intellij.openapi.editor.colors.EditorColorsScheme) PerlStringContentManipulator(com.perl5.lang.perl.idea.manipulators.PerlStringContentManipulator) PerlStringManipulator(com.perl5.lang.perl.idea.manipulators.PerlStringManipulator)

Aggregations

EditorColorsScheme (com.intellij.openapi.editor.colors.EditorColorsScheme)1 PerlBareStringManipulator (com.perl5.lang.perl.idea.manipulators.PerlBareStringManipulator)1 PerlStringContentManipulator (com.perl5.lang.perl.idea.manipulators.PerlStringContentManipulator)1 PerlStringManipulator (com.perl5.lang.perl.idea.manipulators.PerlStringManipulator)1