当前位置: 首页>>代码示例>>Java>>正文


Java HelpID类代码示例

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


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

示例1: createToolbarPanel

import com.intellij.lang.ant.config.impl.HelpID; //导入依赖的package包/类
private JPanel createToolbarPanel() {
  final DefaultActionGroup group = new DefaultActionGroup();
  group.add(new AddAction());
  group.add(new RemoveAction());
  group.add(new RunAction());
  group.add(myAntBuildFilePropertiesAction);
  group.addSeparator();
  group.add(new ShowAllTargetsAction());
  group.add(new ShowModuleGrouping());
  AnAction action = CommonActionsManager.getInstance().createExpandAllAction(myTreeExpander, this);
  action.getTemplatePresentation().setDescription(AntBundle.message("ant.explorer.expand.all.nodes.action.description"));
  group.add(action);
  action = CommonActionsManager.getInstance().createCollapseAllAction(myTreeExpander, this);
  action.getTemplatePresentation().setDescription(AntBundle.message("ant.explorer.collapse.all.nodes.action.description"));
  group.add(action);
  group.addSeparator();
  group.add(new ContextHelpAction(HelpID.ANT));

  final ActionToolbar actionToolBar = ActionManager.getInstance().createActionToolbar(ActionPlaces.ANT_EXPLORER_TOOLBAR, group, true);
  final JPanel buttonsPanel = new JPanel(new BorderLayout());
  buttonsPanel.add(actionToolBar.getComponent(), BorderLayout.CENTER);
  return buttonsPanel;
}
 
开发者ID:consulo,项目名称:consulo-apache-ant,代码行数:24,代码来源:AntExplorer.java

示例2: createToolbarPanel

import com.intellij.lang.ant.config.impl.HelpID; //导入依赖的package包/类
private JPanel createToolbarPanel() {
  RunAction runAction = new RunAction(this);
  runAction.registerCustomShortcutSet(CommonShortcuts.getRerun(), this);

  DefaultActionGroup leftActionGroup = new DefaultActionGroup();
  leftActionGroup.add(runAction);
  leftActionGroup.add(new PauseOutputAction(this));
  leftActionGroup.add(new StopAction(this));
  leftActionGroup.add(new CloseAction());
  leftActionGroup.add(new PreviousOccurenceToolbarAction(this));
  leftActionGroup.add(new NextOccurenceToolbarAction(this));
  leftActionGroup.add(new ContextHelpAction(HelpID.ANT));

  DefaultActionGroup rightActionGroup = new DefaultActionGroup();
  rightActionGroup.add(new ChangeViewAction(this));
  rightActionGroup.add(new VerboseAction(this));
  rightActionGroup.add(CommonActionsManager.getInstance().createExpandAllAction(myTreeExpander, this));
  rightActionGroup.add(CommonActionsManager.getInstance().createCollapseAllAction(myTreeExpander, this));
  rightActionGroup.add(myTreeView.createToggleAutoscrollAction());

  myLeftToolbar = ActionManager.getInstance().createActionToolbar(ActionPlaces.ANT_MESSAGES_TOOLBAR, leftActionGroup, false);
  JPanel toolbarPanel = new JPanel(new GridLayout(1, 2, 2, 0));
  toolbarPanel.add(myLeftToolbar.getComponent());
  myRightToolbar = ActionManager.getInstance().createActionToolbar(ActionPlaces.ANT_MESSAGES_TOOLBAR, rightActionGroup, false);
  toolbarPanel.add(myRightToolbar.getComponent());

  return toolbarPanel;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:29,代码来源:AntBuildMessageView.java

示例3: getData

import com.intellij.lang.ant.config.impl.HelpID; //导入依赖的package包/类
public Object getData(String dataId) {
  Object data = myCurrentView.getData(dataId);
  if (data != null) {
    return data;
  }
  if (PlatformDataKeys.HELP_ID.is(dataId)) {
    return HelpID.ANT;
  }
  else if (PlatformDataKeys.TREE_EXPANDER.is(dataId)) {
    return myTreeExpander;
  }
  return null;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:14,代码来源:AntBuildMessageView.java

示例4: getData

import com.intellij.lang.ant.config.impl.HelpID; //导入依赖的package包/类
public Object getData(String dataId) {
  Object data = myCurrentView.getData(dataId);
  if (data != null) return data;
  if (PlatformDataKeys.HELP_ID.is(dataId)) {
    return HelpID.ANT;
  }
  else if (PlatformDataKeys.TREE_EXPANDER.is(dataId)) {
    return myTreeExpander;
  }
  return null;
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:12,代码来源:AntBuildMessageView.java

示例5: getData

import com.intellij.lang.ant.config.impl.HelpID; //导入依赖的package包/类
@Override
public Object getData(Key<?> dataId) {
  Object data = myCurrentView.getData(dataId);
  if (data != null) return data;
  if (PlatformDataKeys.HELP_ID == dataId) {
    return HelpID.ANT;
  }
  else if (PlatformDataKeys.TREE_EXPANDER == dataId) {
    return myTreeExpander;
  }
  return null;
}
 
开发者ID:consulo,项目名称:consulo-apache-ant,代码行数:13,代码来源:AntBuildMessageView.java


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