Search in sources :

Example 1 with SelectionHistoryDialog

use of com.intellij.history.integration.ui.views.SelectionHistoryDialog in project intellij-community by JetBrains.

the class ShowSelectionHistoryAction method actionPerformed.

@Override
protected void actionPerformed(@NotNull Project p, @NotNull IdeaGateway gw, @NotNull VirtualFile f, @NotNull AnActionEvent e) {
    VcsSelection sel = notNull(getSelection(e));
    int from = sel.getSelectionStartLineNumber();
    int to = sel.getSelectionEndLineNumber();
    new SelectionHistoryDialog(p, gw, f, from, to).show();
}
Also used : VcsSelection(com.intellij.vcsUtil.VcsSelection) SelectionHistoryDialog(com.intellij.history.integration.ui.views.SelectionHistoryDialog)

Example 2 with SelectionHistoryDialog

use of com.intellij.history.integration.ui.views.SelectionHistoryDialog in project intellij-community by JetBrains.

the class SelectionHistoryDialogTest method testDialogWorks.

public void testDialogWorks() throws IOException {
    SelectionHistoryDialog d = new SelectionHistoryDialog(myProject, myGateway, f, 0, 0);
    Disposer.dispose(d);
}
Also used : SelectionHistoryDialog(com.intellij.history.integration.ui.views.SelectionHistoryDialog)

Aggregations

SelectionHistoryDialog (com.intellij.history.integration.ui.views.SelectionHistoryDialog)2 VcsSelection (com.intellij.vcsUtil.VcsSelection)1