• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java HelpManager类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中com.intellij.openapi.help.HelpManager的典型用法代码示例。如果您正苦于以下问题:Java HelpManager类的具体用法?Java HelpManager怎么用?Java HelpManager使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



HelpManager类属于com.intellij.openapi.help包,在下文中一共展示了HelpManager类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: doHelpAction

import com.intellij.openapi.help.HelpManager; //导入依赖的package包/类
protected void doHelpAction() {
  String helpTopic = null;
  final Collection<Configurable> v = myEnvToConfMap.values();
  final Configurable[] configurables = v.toArray(new Configurable[v.size()]);
  if (myMainPanel instanceof JTabbedPane) {
    final int tabIndex = ((JTabbedPane)myMainPanel).getSelectedIndex();
    if (tabIndex >= 0 && tabIndex < configurables.length) {
      helpTopic = configurables [tabIndex].getHelpTopic();
    }
  }
  else {
    helpTopic = configurables [0].getHelpTopic();
  }
  if (helpTopic != null) {
    HelpManager.getInstance().invokeHelp(helpTopic);
  }
  else {
    super.doHelpAction();
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:21,代码来源:UpdateOrStatusOptionsDialog.java


示例2: doHelpAction

import com.intellij.openapi.help.HelpManager; //导入依赖的package包/类
/**
 * Invoked by default implementation of "Help" action.
 * Note that the method does nothing if "Help" action isn't enabled.
 * <p/>
 * The default implementation shows the help page with id returned
 * by {@link #getHelpId()}. If that method returns null,
 * a message box with message "no help available" is shown.
 */
protected void doHelpAction() {
  if (myHelpAction.isEnabled()) {
    String helpId = getHelpId();
    if (helpId != null) {
      HelpManager.getInstance().invokeHelp(helpId);
    }
    else {
      Messages.showMessageDialog(getContentPane(), UIBundle.message("there.is.no.help.for.this.dialog.error.message"),
                                 UIBundle.message("no.help.available.dialog.title"), Messages.getInformationIcon());
    }
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:21,代码来源:DialogWrapper.java


示例3: doHelpAction

import com.intellij.openapi.help.HelpManager; //导入依赖的package包/类
@Override
protected void doHelpAction() {
  if (myHelpId == null) {
    super.doHelpAction();
    return;
  }

  HelpManager.getInstance().invokeHelp(myHelpId);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:10,代码来源:DialogBuilder.java


示例4: actionPerformed

import com.intellij.openapi.help.HelpManager; //导入依赖的package包/类
public void actionPerformed(AnActionEvent e) {
  DataContext dataContext = e.getDataContext();
  final String helpId = getHelpId(dataContext);
  if (helpId != null) {
    HelpManager.getInstance().invokeHelp(helpId);
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:8,代码来源:ContextHelpAction.java


示例5: doHelpAction

import com.intellij.openapi.help.HelpManager; //导入依赖的package包/类
@Override
protected void doHelpAction() {
  String topic = myEditor.getHelpTopic();
  if (topic != null) {
    HelpManager.getInstance().invokeHelp(topic);
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:8,代码来源:SettingsDialog.java


示例6: doHelpAction

import com.intellij.openapi.help.HelpManager; //导入依赖的package包/类
@Override
protected void doHelpAction() {
  final String topic = myEditor.getHelpTopic();
  if (topic != null) {
    HelpManager.getInstance().invokeHelp(topic);
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:8,代码来源:IdeSettingsDialog.java


示例7: ColorBlindnessPanel

import com.intellij.openapi.help.HelpManager; //导入依赖的package包/类
public ColorBlindnessPanel() {
  super(new HorizontalLayout(JBUI.scale(10)));
  add(HorizontalLayout.LEFT, myCheckBox);
  add(HorizontalLayout.LEFT, myComboBox);

  JLabel label = new SwingActionLink(new AbstractAction(UIBundle.message("color.blindness.link.to.help")) {
    @Override
    public void actionPerformed(ActionEvent event) {
      HelpManager.getInstance().invokeHelp("Colorblind_Settings");
    }
  });
  add(HorizontalLayout.LEFT, label);
  
  myCheckBox.setSelected(false);
  myCheckBox.addChangeListener(this);
  myCheckBox.setText(UIBundle.message("color.blindness.checkbox.text"));
  int count = 0;
  for (ColorBlindness blindness : ColorBlindness.values()) {
    String name = UIBundle.message(blindness.key);
    if (!name.isEmpty()) {
      myComboBox.addItem(new Item(blindness, name));
      count++;
    }
  }
  myComboBox.setEnabled(false);
  myComboBox.setVisible(count > 1);
  setVisible(count > 0);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:29,代码来源:ColorBlindnessPanel.java


示例8: doHelpAction

import com.intellij.openapi.help.HelpManager; //导入依赖的package包/类
@Override
public void doHelpAction() {
  String id = myModel.isReplaceState()
              ? myModel.isMultipleFiles() ? HelpID.REPLACE_IN_PATH : HelpID.REPLACE_OPTIONS
              : myModel.isMultipleFiles() ? HelpID.FIND_IN_PATH : HelpID.FIND_OPTIONS;
  HelpManager.getInstance().invokeHelp(id);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:8,代码来源:FindDialog.java


示例9: doHelpAction

import com.intellij.openapi.help.HelpManager; //导入依赖的package包/类
protected void doHelpAction() {
  if (myHelpId == null) {
    super.doHelpAction();
    return;
  }

  HelpManager.getInstance().invokeHelp(myHelpId);
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:9,代码来源:DialogBuilder.java


示例10: doHelpAction

import com.intellij.openapi.help.HelpManager; //导入依赖的package包/类
/**
 * Invoked by default implementation of "Help" action.
 * Note that the method does nothing if "Help" action isn't enabled.
 * <p>
 * The default implementation shows the help page with id returned
 * by {@link #getHelpId()}. If that method returns null,
 * a message box with message "no help available" is shown.
 */
protected void doHelpAction() {
  if (myHelpAction.isEnabled()) {
    String helpId = getHelpId();
    if (helpId != null) {
      HelpManager.getInstance().invokeHelp(helpId);
    }
    else {
      Messages.showMessageDialog(getContentPane(), UIBundle.message("there.is.no.help.for.this.dialog.error.message"), UIBundle.message("no.help.available.dialog.title"),
                                 Messages.getInformationIcon());
    }
  }
}
 
开发者ID:consulo,项目名称:consulo,代码行数:21,代码来源:DialogWrapper.java


示例11: doHelpAction

import com.intellij.openapi.help.HelpManager; //导入依赖的package包/类
protected void doHelpAction() {
    HelpManager.getInstance().invokeHelp(this.myHelpID);
}
 
开发者ID:machaval,项目名称:mule-intellij-plugins,代码行数:4,代码来源:FlowRenameDialog.java


示例12: doHelpAction

import com.intellij.openapi.help.HelpManager; //导入依赖的package包/类
@Override
public void doHelpAction() {
  HelpManager.getInstance().invokeHelp("find.analyzeStackTrace");
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:UnscrambleDialog.java


示例13: doHelpAction

import com.intellij.openapi.help.HelpManager; //导入依赖的package包/类
@Override
protected void doHelpAction() {
  HelpManager.getInstance().invokeHelp("reference.dialogs.createTest");
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:CreateTestDialog.java


示例14: doHelpAction

import com.intellij.openapi.help.HelpManager; //导入依赖的package包/类
protected void doHelpAction() {
  HelpManager.getInstance().invokeHelp(HelpID.ENCAPSULATE_FIELDS);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:4,代码来源:EncapsulateFieldsDialog.java


示例15: doHelpAction

import com.intellij.openapi.help.HelpManager; //导入依赖的package包/类
protected void doHelpAction() {
  HelpManager.getInstance().invokeHelp(HelpID.REPLACE_CONSTRUCTOR_WITH_FACTORY);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:4,代码来源:ReplaceConstructorWithFactoryDialog.java


示例16: doHelpAction

import com.intellij.openapi.help.HelpManager; //导入依赖的package包/类
protected void doHelpAction() {
  HelpManager.getInstance().invokeHelp(HelpID.WrapReturnValue);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:4,代码来源:WrapReturnValueDialog.java


示例17: doHelpAction

import com.intellij.openapi.help.HelpManager; //导入依赖的package包/类
protected void doHelpAction() {
  HelpManager.getInstance().invokeHelp(HelpID.MIGRATION);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:4,代码来源:MigrationDialog.java


示例18: doHelpAction

import com.intellij.openapi.help.HelpManager; //导入依赖的package包/类
protected void doHelpAction() {
  HelpManager.getInstance().invokeHelp(HelpID.MEMBERS_PUSH_DOWN);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:4,代码来源:PushDownDialog.java


示例19: doHelpAction

import com.intellij.openapi.help.HelpManager; //导入依赖的package包/类
protected void doHelpAction() {
  final HelpManager helpManager = HelpManager.getInstance();
  helpManager.invokeHelp(HelpID.IntroduceParameterObject);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:IntroduceParameterObjectDialog.java


示例20: doHelpAction

import com.intellij.openapi.help.HelpManager; //导入依赖的package包/类
protected void doHelpAction() {
  HelpManager.getInstance().invokeHelp(HelpID.CONVERT_TO_INSTANCE_METHOD);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:4,代码来源:ConvertToInstanceMethodDialog.java



注:本文中的com.intellij.openapi.help.HelpManager类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java Action类代码示例发布时间:2022-05-23
下一篇:
Java AbstractYarnScheduler类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap