Package com.intellij.util

Examples of com.intellij.util.LineSeparator


        final String filePath = file.getCanonicalPath();
        final List<EditorConfig.OutPair> outPairs = SettingsProviderComponent.getInstance().getOutPairs(filePath);
        final String lineEndings = Utils.configValueForKey(outPairs, lineEndingsKey);
        if (!lineEndings.isEmpty()) {
            try {
                LineSeparator separator = LineSeparator.valueOf(lineEndings.toUpperCase(Locale.US));
                String oldSeparator = file.getDetectedLineSeparator();
                String newSeparator = separator.getSeparatorString();
                if (!StringUtil.equals(oldSeparator, newSeparator)) {
                    file.setDetectedLineSeparator(newSeparator);
                    if (!statusBarUpdated) {
                        statusBarUpdated = true;
                        updateStatusBar();
View Full Code Here

TOP

Related Classes of com.intellij.util.LineSeparator

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.