From 18d2a0228b0e4425f9f12861a017dfad7e02face Mon Sep 17 00:00:00 2001 From: Bas Leijdekkers Date: Fri, 14 Mar 2014 13:16:53 +0100 Subject: [PATCH] make browser panel action dumb aware --- .../cvsSupport2/cvsBrowser/ui/BrowserPanel.java | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/plugins/cvs/cvs-plugin/src/com/intellij/cvsSupport2/cvsBrowser/ui/BrowserPanel.java b/plugins/cvs/cvs-plugin/src/com/intellij/cvsSupport2/cvsBrowser/ui/BrowserPanel.java index 8c5a5dc7e3bc..4f0d380646af 100644 --- a/plugins/cvs/cvs-plugin/src/com/intellij/cvsSupport2/cvsBrowser/ui/BrowserPanel.java +++ b/plugins/cvs/cvs-plugin/src/com/intellij/cvsSupport2/cvsBrowser/ui/BrowserPanel.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2011 JetBrains s.r.o. + * Copyright 2000-2014 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -33,6 +33,7 @@ import com.intellij.icons.AllIcons; import com.intellij.idea.ActionsBundle; import com.intellij.openapi.actionSystem.*; import com.intellij.openapi.fileEditor.OpenFileDescriptor; +import com.intellij.openapi.project.DumbAware; import com.intellij.openapi.project.Project; import com.intellij.openapi.vcs.AbstractVcsHelper; import com.intellij.openapi.vcs.VcsBundle; @@ -94,7 +95,7 @@ public class BrowserPanel extends JPanel implements DataProvider, CvsTabbedWindo return result; } - private static class EditSourceAction extends AnAction { + private static class EditSourceAction extends AnAction implements DumbAware { public EditSourceAction() { super(ActionsBundle.actionText("EditSource"), ActionsBundle.actionDescription("EditSource"), @@ -114,7 +115,7 @@ public class BrowserPanel extends JPanel implements DataProvider, CvsTabbedWindo } } - private class MyCheckoutAction extends AnAction { + private class MyCheckoutAction extends AnAction implements DumbAware { public MyCheckoutAction() { super(CvsBundle.message("operation.name.check.out"), null, AllIcons.Actions.CheckOut); } @@ -153,7 +154,7 @@ public class BrowserPanel extends JPanel implements DataProvider, CvsTabbedWindo } } - private class MyAnnotateAction extends AnAction { + private class MyAnnotateAction extends AnAction implements DumbAware { public MyAnnotateAction() { super(CvsBundle.message("operation.name.annotate"), null, AllIcons.Actions.Annotate); } @@ -184,7 +185,7 @@ public class BrowserPanel extends JPanel implements DataProvider, CvsTabbedWindo } } - private class BrowseChangesAction extends AnAction { + private class BrowseChangesAction extends AnAction implements DumbAware { public BrowseChangesAction() { super(VcsBundle.message("browse.changes.action"), "", AllIcons.Actions.ShowChangesOnly); }