Search in sources :

Example 1 with EditorsPanel

use of com.intellij.cvsSupport2.cvsoperations.cvsEdit.ui.EditorsPanel in project intellij-community by JetBrains.

the class ViewEditorsAction method onActionPerformed.

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

Aggregations

EditorInfo (com.intellij.cvsSupport2.cvsoperations.cvsEdit.EditorInfo)1 EditorsPanel (com.intellij.cvsSupport2.cvsoperations.cvsEdit.ui.EditorsPanel)1 Project (com.intellij.openapi.project.Project)1