Examples of SettingsProviderComponent


Examples of org.editorconfig.plugincomponents.SettingsProviderComponent

            final CodeStyleSettings currentSettings = codeStyleSettingsManager.getCurrentSettings();
            final CodeStyleSettings newSettings = new CodeStyleSettings();
            newSettings.copyFrom(currentSettings);
            // Get editorconfig settings
            final String filePath = file.getCanonicalPath();
            final SettingsProviderComponent settingsProvider = SettingsProviderComponent.getInstance();
            final List<OutPair> outPairs = settingsProvider.getOutPairs(filePath);
            // Apply editorconfig settings for the current editor
            applyCodeStyleSettings(outPairs, newSettings, file);
            codeStyleSettingsManager.setTemporarySettings(newSettings);
            final EditorEx currentEditor = (EditorEx) FileEditorManager.getInstance(project).getSelectedTextEditor();
            if (currentEditor != null){
View Full Code Here

Examples of org.editorconfig.plugincomponents.SettingsProviderComponent

    private static void applySettings(VirtualFile file) {
        if (file == null || !file.isInLocalFileSystem()) return;
        // Get editorconfig settings
        final String filePath = file.getCanonicalPath();
        final SettingsProviderComponent settingsProvider = SettingsProviderComponent.getInstance();
        final List<EditorConfig.OutPair> outPairs = settingsProvider.getOutPairs(filePath);
        // Apply trailing spaces setting
        final String trimTrailingWhitespace = Utils.configValueForKey(outPairs, trimTrailingWhitespaceKey);
        applyConfigValueToUserData(file, TrailingSpacesStripper.OVERRIDE_STRIP_TRAILING_SPACES_KEY,
                                   trimTrailingWhitespaceKey, trimTrailingWhitespace, trimMap);
        // Apply final newline setting
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.