Package com.intellij.psi.codeStyle

Examples of com.intellij.psi.codeStyle.CodeStyleSettingsManager


    }


    @Override
    protected void tearDown() throws Exception {
        final CodeStyleSettingsManager manager = CodeStyleSettingsManager.getInstance(getProject());
        myTempSettings.getIndentOptions(PbFileType.PROTOBUF_FILE_TYPE).INDENT_SIZE = 200;
        myTempSettings.getIndentOptions(PbFileType.PROTOBUF_FILE_TYPE).CONTINUATION_INDENT_SIZE = 200;
        myTempSettings.getIndentOptions(PbFileType.PROTOBUF_FILE_TYPE).TAB_SIZE = 200;
        manager.dropTemporarySettings();
        myTempSettings = null;

        super.tearDown();
    }
View Full Code Here


    restoreStyleSettings();
    super.tearDown();
  }

  private void setTestStyleSettings() {
    CodeStyleSettingsManager settingsManager = CodeStyleSettingsManager.getInstance(getProject());
    CodeStyleSettings currSettings = settingsManager.getCurrentSettings();
    Assert.assertNotNull(currSettings);
    myTemporarySettings = currSettings.clone();
    CodeStyleSettings.IndentOptions indentOptions = myTemporarySettings.getIndentOptions(ErlangFileType.MODULE);
    Assert.assertNotNull(indentOptions);
    settingsManager.setTemporarySettings(myTemporarySettings);
  }
View Full Code Here

TOP

Related Classes of com.intellij.psi.codeStyle.CodeStyleSettingsManager

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.