Search in sources :

Example 1 with TextDiffSettings

use of com.intellij.diff.tools.util.base.TextDiffSettingsHolder.TextDiffSettings in project intellij-community by JetBrains.

the class TextDiffViewerUtil method getTextSettings.

@NotNull
public static TextDiffSettings getTextSettings(@NotNull DiffContext context) {
    TextDiffSettings settings = context.getUserData(TextDiffSettings.KEY);
    if (settings == null) {
        settings = TextDiffSettings.getSettings(context.getUserData(DiffUserDataKeys.PLACE));
        context.putUserData(TextDiffSettings.KEY, settings);
        if (DiffUtil.isUserDataFlagSet(DiffUserDataKeys.DO_NOT_IGNORE_WHITESPACES, context)) {
            settings.setIgnorePolicy(IgnorePolicy.DEFAULT);
        }
    }
    return settings;
}
Also used : TextDiffSettings(com.intellij.diff.tools.util.base.TextDiffSettingsHolder.TextDiffSettings) NotNull(org.jetbrains.annotations.NotNull)

Aggregations

TextDiffSettings (com.intellij.diff.tools.util.base.TextDiffSettingsHolder.TextDiffSettings)1 NotNull (org.jetbrains.annotations.NotNull)1