Example usage for com.intellij.openapi.help HelpManager getInstance

List of usage examples for com.intellij.openapi.help HelpManager getInstance

Introduction

In this page you can find the example usage for com.intellij.openapi.help HelpManager getInstance.

Prototype

public static HelpManager getInstance() 

Source Link

Usage

From source file:com.eightbitmage.moonscript.refactoring.introduce.MoonIntroduceVariableDialog.java

License:Apache License

protected void doHelpAction() {
    HelpManager.getInstance().invokeHelp(HelpID.INTRODUCE_VARIABLE);
}

From source file:com.intellij.analysis.BaseAnalysisAction.java

License:Apache License

@Override
public void actionPerformed(AnActionEvent e) {
    DataContext dataContext = e.getDataContext();
    final Project project = e.getData(CommonDataKeys.PROJECT);
    final Module module = e.getData(LangDataKeys.MODULE);
    if (project == null) {
        return;/*from   w ww . j a  v  a 2  s  .  c  o m*/
    }
    AnalysisScope scope = getInspectionScope(dataContext);
    LOG.assertTrue(scope != null);
    final boolean rememberScope = e.getPlace().equals(ActionPlaces.MAIN_MENU);
    final AnalysisUIOptions uiOptions = AnalysisUIOptions.getInstance(project);
    PsiElement element = CommonDataKeys.PSI_ELEMENT.getData(dataContext);
    BaseAnalysisActionDialog dlg = new BaseAnalysisActionDialog(
            AnalysisScopeBundle.message("specify.analysis.scope", myTitle),
            AnalysisScopeBundle.message("analysis.scope.title", myAnalysisNoon), project, scope,
            module != null ? ModuleUtilCore.getModuleNameInReadAction(module) : null, rememberScope,
            AnalysisUIOptions.getInstance(project), element) {
        @Override
        @Nullable
        protected JComponent getAdditionalActionSettings(final Project project) {
            return BaseAnalysisAction.this.getAdditionalActionSettings(project, this);
        }

        @Override
        protected void doHelpAction() {
            HelpManager.getInstance().invokeHelp(getHelpTopic());
        }

        @NotNull
        @Override
        protected Action[] createActions() {
            return new Action[] { getOKAction(), getCancelAction(), getHelpAction() };
        }
    };
    dlg.show();
    if (!dlg.isOK()) {
        canceled();
        return;
    }
    final int oldScopeType = uiOptions.SCOPE_TYPE;
    scope = dlg.getScope(uiOptions, scope, project, module);
    if (!rememberScope) {
        uiOptions.SCOPE_TYPE = oldScopeType;
    }
    uiOptions.ANALYZE_TEST_SOURCES = dlg.isInspectTestSources();
    FileDocumentManager.getInstance().saveAllDocuments();

    analyze(project, scope);
}

From source file:com.intellij.application.options.pathMacros.PathMacroEditor.java

License:Apache License

protected void doHelpAction() {
    HelpManager.getInstance().invokeHelp(PathMacroConfigurable.HELP_ID);
}

From source file:com.intellij.codeEditor.printing.ExportToHTMLDialog.java

License:Apache License

@Override
public void doHelpAction() {
    HelpManager.getInstance().invokeHelp(HelpID.EXPORT_TO_HTML);
}

From source file:com.intellij.codeEditor.printing.PrintDialog.java

License:Apache License

@Override
public void doHelpAction() {
    HelpManager.getInstance().invokeHelp(HelpID.PRINT);
}

From source file:com.intellij.codeInsight.actions.LayoutCodeDialog.java

License:Apache License

@Override
protected void doHelpAction() {
    HelpManager.getInstance().invokeHelp(myHelpId);
}

From source file:com.intellij.codeInsight.actions.LayoutProjectCodeDialog.java

License:Apache License

@Override
protected void doHelpAction() {
    HelpManager.getInstance().invokeHelp(HELP_ID);
}

From source file:com.intellij.codeInsight.template.impl.EditVariableDialog.java

License:Apache License

@Override
protected void doHelpAction() {
    HelpManager.getInstance().invokeHelp("editing.templates.defineTemplates.editTemplVars");
}

From source file:com.intellij.debugger.ui.ExportDialog.java

License:Apache License

protected void doHelpAction() {
    HelpManager.getInstance().invokeHelp(HelpID.EXPORT_THREADS);
}

From source file:com.intellij.debugger.ui.ExpressionEvaluationDialog.java

License:Apache License

protected void doHelpAction() {
    HelpManager.getInstance().invokeHelp(HelpID.EVALUATE);
}