Search in sources :

Example 1 with GitSimplePathsBrowser

use of git4idea.util.GitSimplePathsBrowser in project intellij-community by JetBrains.

the class GitUtil method showPathsInDialog.

public static void showPathsInDialog(@NotNull Project project, @NotNull Collection<String> absolutePaths, @NotNull String title, @Nullable String description) {
    DialogBuilder builder = new DialogBuilder(project);
    builder.setCenterPanel(new GitSimplePathsBrowser(project, absolutePaths));
    if (description != null) {
        builder.setNorthPanel(new MultiLineLabel(description));
    }
    builder.addOkAction();
    builder.setTitle(title);
    builder.show();
}
Also used : GitSimplePathsBrowser(git4idea.util.GitSimplePathsBrowser) DialogBuilder(com.intellij.openapi.ui.DialogBuilder) MultiLineLabel(com.intellij.openapi.ui.ex.MultiLineLabel)

Aggregations

DialogBuilder (com.intellij.openapi.ui.DialogBuilder)1 MultiLineLabel (com.intellij.openapi.ui.ex.MultiLineLabel)1 GitSimplePathsBrowser (git4idea.util.GitSimplePathsBrowser)1