com.intellij.openapi.actionSystem.AnActionEvent



API Populatity

7 Client projects

Project: com.intellij

Project JetBrains/intellij-community in file ...lij.codeInsight.completion.CompletionProvider.java (2008-01-29)
@@ -6,11 +6,15 @@ package com.intellij.codeInsight.completion;
 
 import com.intellij.util.QueryResultSet;
 import com.intellij.patterns.MatchingContext;
+import com.intellij.openapi.actionSystem.AnActionEvent;
 import org.jetbrains.annotations.NotNull;
 
 /**
  * @author peter
  */
 public abstract class CompletionProvider<T, V extends CompletionParameters> {
+
   public abstract void addCompletions(@NotNull V parameters, final MatchingContext context, @NotNull QueryResultSet<T> result);
+
+  public void updateActionPresentation(AnActionEvent event) {}  
 }
Project JetBrains/intellij-community in file ...ij.openapi.vcs.actions.ShowBaseRevisionAction.java (2011-11-28)
@@ -15,6 +15,7 @@
  */
 package com.intellij.openapi.vcs.actions;
 
+import com.intellij.openapi.actionSystem.AnActionEvent;
 import com.intellij.openapi.actionSystem.Presentation;
 import com.intellij.openapi.editor.colors.EditorColors;
 import com.intellij.openapi.editor.colors.EditorColorsManager;
@@ -103,7 +104,6 @@ public class ShowBaseRevisionAction extends AbstractVcsAction {
   protected void update(VcsContext vcsContext, Presentation presentation) {
     final AbstractVcs vcs = AbstractShowDiffAction.isEnabled(vcsContext, null);
     presentation.setEnabled(vcs != null);
-    presentation.setVisible(isVisible(vcsContext));
   }
   
   private static boolean isVisible(VcsContext vcsContext) {
Project JetBrains/intellij-community in file ...latform.lang-impl.src.com.intellij.tools.Tool.java (2013-01-24)
@@ -26,6 +26,7 @@ import com.intellij.execution.runners.ProgramRunner;
 import com.intellij.execution.util.ExecutionErrorDialog;
 import com.intellij.ide.macro.Macro;
 import com.intellij.ide.macro.MacroManager;
+import com.intellij.openapi.actionSystem.AnActionEvent;
 import com.intellij.openapi.actionSystem.DataContext;
 import com.intellij.openapi.actionSystem.PlatformDataKeys;
 import com.intellij.openapi.fileEditor.FileDocumentManager;
@@ -259,7 +260,7 @@ public class Tool implements SchemeElement {
     return name.toString();
   }
 
-  public void execute(DataContext dataContext) {
+  public void execute(AnActionEvent event, DataContext dataContext) {
     final Project project = PlatformDataKeys.PROJECT.getData(dataContext);
     if (project == null) {
       return;