Search in sources :

Example 1 with WatcherInfo

use of com.intellij.cvsSupport2.cvsoperations.cvsWatch.WatcherInfo in project intellij-community by JetBrains.

the class ViewWatchersAction method onActionPerformed.

protected void onActionPerformed(CvsContext context, CvsTabbedWindow tabbedWindow, boolean successfully, CvsHandler handler) {
    super.onActionPerformed(context, tabbedWindow, successfully, handler);
    if (successfully) {
        List<WatcherInfo> watchers = myWatchersOperation.getWatchers();
        String filePath = CvsVfsUtil.getFileFor(context.getSelectedFile()).getAbsolutePath();
        final Project project = context.getProject();
        if (project == null) {
            return;
        }
        if (watchers.isEmpty()) {
            VcsBalloonProblemNotifier.showOverChangesView(project, CvsBundle.message("message.error.no.watchers.for.file", filePath), MessageType.INFO);
        } else {
            tabbedWindow.addTab(CvsBundle.message("message.watchers.for.file", filePath), new WatchersPanel(watchers), true, true, true, true, null, "cvs.watchers");
        }
    }
}
Also used : Project(com.intellij.openapi.project.Project) WatcherInfo(com.intellij.cvsSupport2.cvsoperations.cvsWatch.WatcherInfo) WatchersPanel(com.intellij.cvsSupport2.cvsoperations.cvsWatch.ui.WatchersPanel)

Aggregations

WatcherInfo (com.intellij.cvsSupport2.cvsoperations.cvsWatch.WatcherInfo)1 WatchersPanel (com.intellij.cvsSupport2.cvsoperations.cvsWatch.ui.WatchersPanel)1 Project (com.intellij.openapi.project.Project)1