use of com.intellij.cvsSupport2.cvsBrowser.ui.BrowserPanel in project intellij-community by JetBrains.
the class BrowseCvsRepositoryAction method onActionPerformed.
@Override
protected void onActionPerformed(CvsContext context, CvsTabbedWindow tabbedWindow, boolean successfully, CvsHandler handler) {
if (mySelectedConfiguration == null)
return;
final Project project = context.getProject();
if (!loginImpl(context.getProject(), e -> VcsBalloonProblemNotifier.showOverChangesView(project, e.getMessage(), MessageType.WARNING)))
return;
super.onActionPerformed(context, tabbedWindow, successfully, handler);
if (successfully) {
LOG.assertTrue(project != null);
LOG.assertTrue(mySelectedConfiguration != null);
final BrowserPanel browserPanel = new BrowserPanel(mySelectedConfiguration, project, e -> VcsBalloonProblemNotifier.showOverChangesView(project, e.getMessage(), MessageType.ERROR));
tabbedWindow.addTab(TITLE, browserPanel, true, true, true, true, browserPanel.getActionGroup(), "cvs.browse");
}
}
Aggregations