Example usage for com.intellij.openapi.diff DiffBundle message

List of usage examples for com.intellij.openapi.diff DiffBundle message

Introduction

In this page you can find the example usage for com.intellij.openapi.diff DiffBundle message.

Prototype

@NotNull
    public static String message(@NotNull @PropertyKey(resourceBundle = BUNDLE) String key,
            Object @NotNull... params) 

Source Link

Usage

From source file:com.intellij.diff.actions.CompareClipboardWithSelectionAction.java

License:Apache License

@NotNull
private static String createContentTitle(@NotNull Editor editor) {
    VirtualFile file = FileDocumentManager.getInstance().getFile(editor.getDocument());
    String title = file != null ? DiffRequestFactory.getInstance().getContentTitle(file) : "Editor";

    if (editor.getSelectionModel().hasSelection()) {
        title = DiffBundle.message("diff.content.selection.from.file.content.title", title);
    }// w  w w .  j a v  a 2 s .  c  o m

    return title;
}

From source file:com.intellij.diff.tools.util.StatusPanel.java

License:Apache License

@Nullable
protected String getMessage() {
    int count = getChangesCount();
    if (count == -1)
        return null;
    return DiffBundle.message("diff.count.differences.status.text", count);
}