popup actions marker

This commit is contained in:
Konstantin Bulenkov
2011-03-11 16:12:36 +03:00
parent 086af9d29f
commit 84fcd02e0d
4 changed files with 28 additions and 3 deletions

View File

@@ -34,7 +34,7 @@ import com.intellij.psi.*;
import org.jetbrains.annotations.NonNls;
import org.jetbrains.annotations.NotNull;
public class ShowJavaDocInfoAction extends BaseCodeInsightAction implements HintManagerImpl.ActionToIgnore, DumbAware {
public class ShowJavaDocInfoAction extends BaseCodeInsightAction implements HintManagerImpl.ActionToIgnore, DumbAware, PopupAction {
@NonNls public static final String CODEASSISTS_QUICKJAVADOC_LOOKUP_FEATURE = "codeassists.quickjavadoc.lookup";
@NonNls public static final String CODEASSISTS_QUICKJAVADOC_FEATURE = "codeassists.quickjavadoc";

View File

@@ -44,7 +44,7 @@ import org.jetbrains.annotations.NonNls;
import java.util.*;
public class ShowImplementationsAction extends AnAction {
public class ShowImplementationsAction extends AnAction implements PopupAction {
@NonNls public static final String CODEASSISTS_QUICKDEFINITION_LOOKUP_FEATURE = "codeassists.quickdefinition.lookup";
@NonNls public static final String CODEASSISTS_QUICKDEFINITION_FEATURE = "codeassists.quickdefinition";

View File

@@ -30,7 +30,7 @@ import org.jetbrains.annotations.Nullable;
* @author Konstantin Bulenkov
*/
@SuppressWarnings({"MethodMayBeStatic"})
public class NewElementAction extends AnAction implements DumbAware {
public class NewElementAction extends AnAction implements DumbAware, PopupAction {
public void actionPerformed(final AnActionEvent event) {
showPopup(event.getDataContext());
}

View File

@@ -0,0 +1,25 @@
/*
* Copyright 2000-2011 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.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.intellij.openapi.actionSystem;
/**
* Markup interface for actions showing popups. This interface helps to call
* actions on hints or popups.
*
* @author Konstantin Bulenkov
*/
public interface PopupAction {
}