Search in sources :

Example 1 with BrowserPanel

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");
    }
}
Also used : CvsTabbedWindow(com.intellij.cvsSupport2.ui.CvsTabbedWindow) MessageType(com.intellij.openapi.ui.MessageType) FileSetToBeUpdated(com.intellij.cvsSupport2.cvshandlers.FileSetToBeUpdated) VcsContext(com.intellij.openapi.vcs.actions.VcsContext) Presentation(com.intellij.openapi.actionSystem.Presentation) CvsHandler(com.intellij.cvsSupport2.cvshandlers.CvsHandler) CvsBundle(com.intellij.CvsBundle) VcsBalloonProblemNotifier(com.intellij.openapi.vcs.ui.VcsBalloonProblemNotifier) CvsContext(com.intellij.cvsSupport2.actions.cvsContext.CvsContext) BrowserPanel(com.intellij.cvsSupport2.cvsBrowser.ui.BrowserPanel) LoginPerformer(com.intellij.cvsSupport2.cvsoperations.common.LoginPerformer) AnActionEvent(com.intellij.openapi.actionSystem.AnActionEvent) SelectCvsConfigurationDialog(com.intellij.cvsSupport2.config.ui.SelectCvsConfigurationDialog) Project(com.intellij.openapi.project.Project) CommonDataKeys(com.intellij.openapi.actionSystem.CommonDataKeys) DumbAware(com.intellij.openapi.project.DumbAware) VcsException(com.intellij.openapi.vcs.VcsException) Collections(java.util.Collections) CvsRootConfiguration(com.intellij.cvsSupport2.config.CvsRootConfiguration) Consumer(com.intellij.util.Consumer) CvsEnvironment(com.intellij.cvsSupport2.connections.CvsEnvironment) Project(com.intellij.openapi.project.Project) BrowserPanel(com.intellij.cvsSupport2.cvsBrowser.ui.BrowserPanel)

Aggregations

CvsBundle (com.intellij.CvsBundle)1 CvsContext (com.intellij.cvsSupport2.actions.cvsContext.CvsContext)1 CvsRootConfiguration (com.intellij.cvsSupport2.config.CvsRootConfiguration)1 SelectCvsConfigurationDialog (com.intellij.cvsSupport2.config.ui.SelectCvsConfigurationDialog)1 CvsEnvironment (com.intellij.cvsSupport2.connections.CvsEnvironment)1 BrowserPanel (com.intellij.cvsSupport2.cvsBrowser.ui.BrowserPanel)1 CvsHandler (com.intellij.cvsSupport2.cvshandlers.CvsHandler)1 FileSetToBeUpdated (com.intellij.cvsSupport2.cvshandlers.FileSetToBeUpdated)1 LoginPerformer (com.intellij.cvsSupport2.cvsoperations.common.LoginPerformer)1 CvsTabbedWindow (com.intellij.cvsSupport2.ui.CvsTabbedWindow)1 AnActionEvent (com.intellij.openapi.actionSystem.AnActionEvent)1 CommonDataKeys (com.intellij.openapi.actionSystem.CommonDataKeys)1 Presentation (com.intellij.openapi.actionSystem.Presentation)1 DumbAware (com.intellij.openapi.project.DumbAware)1 Project (com.intellij.openapi.project.Project)1 MessageType (com.intellij.openapi.ui.MessageType)1 VcsException (com.intellij.openapi.vcs.VcsException)1 VcsContext (com.intellij.openapi.vcs.actions.VcsContext)1 VcsBalloonProblemNotifier (com.intellij.openapi.vcs.ui.VcsBalloonProblemNotifier)1 Consumer (com.intellij.util.Consumer)1