public class GotoDeclarationAction extends BaseCodeInsightAction implements CodeInsightActionHandler, DumbAware
AnAction.TransparentUpdateACTIONS_KEY, EMPTY_ARRAY| Constructor and Description | 
|---|
| GotoDeclarationAction() | 
| Modifier and Type | Method and Description | 
|---|---|
| static boolean | chooseAmbiguousTarget(Editor editor,
                     int offset,
                     PsiElementProcessor<? super PsiElement> processor,
                     java.lang.String titlePattern,
                     PsiElement [] elements)Deprecated. 
 use chooseAmbiguousTarget(Project, Editor, int, PsiElementProcessor, String, PsiElement[]) | 
| static boolean | chooseAmbiguousTarget(Project project,
                     Editor editor,
                     int offset,
                     PsiElementProcessor<? super PsiElement> processor,
                     java.lang.String titlePattern,
                     PsiElement [] elements) | 
| static PsiElement [] | findAllTargetElements(Project project,
                     Editor editor,
                     int offset) | 
| static PsiElement | findElementToShowUsagesOf(Editor editor,
                         int offset) | 
| static PsiElement | findTargetElement(Project project,
                 Editor editor,
                 int offset) | 
| static PsiElement [] | findTargetElementsNoVS(Project project,
                      Editor editor,
                      int offset,
                      boolean lookupAccepted) | 
| protected CodeInsightActionHandler | getHandler() | 
| void | invoke(Project project,
      Editor editor,
      PsiFile file) | 
| protected boolean | isValidForLookup() | 
| static void | startFindUsages(Editor editor,
               Project project,
               PsiElement element) | 
| static void | startFindUsages(Editor editor,
               Project project,
               PsiElement element,
               RelativePoint point) | 
| boolean | startInWriteAction()Indicate whether this action should be invoked inside write action. | 
| void | update(AnActionEvent event)Updates the state of the action. | 
getBaseEditor, getEditor, getInjectedEditor, getInjectedEditoractionPerformed, actionPerformedImpl, beforeActionPerformedUpdate, getCommandName, isValidForFile, update, updateaddTextOverride, applyTextOverride, copyFrom, copyShortcutFrom, displayTextInToolbar, getEventProject, getShortcutSet, getTemplatePresentation, getTemplateText, isDefaultIcon, isEnabledInModalContext, isInInjectedContext, isTransparentUpdate, registerCustomShortcutSet, registerCustomShortcutSet, registerCustomShortcutSet, registerCustomShortcutSet, setDefaultIcon, setEnabledInModalContext, setInjectedContext, setShortcutSet, startInTransaction, toString, unregisterCustomShortcutSet, useSmallerFontForTextInToolbarclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetElementToMakeWritableisDumbAwareprotected CodeInsightActionHandler getHandler()
getHandler in class CodeInsightActionprotected boolean isValidForLookup()
isValidForLookup in class BaseCodeInsightActionpublic void invoke(Project project, Editor editor, PsiFile file)
invoke in interface CodeInsightActionHandlerpublic static void startFindUsages(Editor editor, Project project, PsiElement element)
public static void startFindUsages(Editor editor, Project project, PsiElement element, RelativePoint point)
public static PsiElement findElementToShowUsagesOf(Editor editor, int offset)
@Deprecated public static boolean chooseAmbiguousTarget(Editor editor, int offset, PsiElementProcessor<? super PsiElement> processor, java.lang.String titlePattern, PsiElement [] elements)
public static boolean chooseAmbiguousTarget(Project project, Editor editor, int offset, PsiElementProcessor<? super PsiElement> processor, java.lang.String titlePattern, PsiElement [] elements)
public boolean startInWriteAction()
WriteActionAwarefalse if e.g. modal dialog is shown inside the action.
 If false is returned the action itself is responsible for starting write action
 when needed, by calling Application.runWriteAction(Runnable).startInWriteAction in interface WriteActionAwaretrue if the action requires a write action (default), false otherwise.public static PsiElement findTargetElement(Project project, Editor editor, int offset)
public static PsiElement [] findAllTargetElements(Project project, Editor editor, int offset)
public static PsiElement [] findTargetElementsNoVS(Project project, Editor editor, int offset, boolean lookupAccepted)
public void update(AnActionEvent event)
AnActionAnAction.actionPerformed(AnActionEvent) method and notify
 the user that action cannot be executed if it's the case.
 If the action is added to a toolbar, its "update" can be called twice a second, but only if there was
 any user activity or a focus transfer. If your action's availability is changed
 in absence of any of these events, please call ActivityTracker.getInstance().inc() to notify
 action subsystem to update all toolbar actions when your subsystem's determines that its actions' visibility might be affected.update in class BaseCodeInsightActionevent - Carries information on the invocation place and data available