本文整理汇总了Java中com.intellij.ide.actions.NextOccurenceToolbarAction类的典型用法代码示例。如果您正苦于以下问题:Java NextOccurenceToolbarAction类的具体用法?Java NextOccurenceToolbarAction怎么用?Java NextOccurenceToolbarAction使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
NextOccurenceToolbarAction类属于com.intellij.ide.actions包,在下文中一共展示了NextOccurenceToolbarAction类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: createToolbarPanel
import com.intellij.ide.actions.NextOccurenceToolbarAction; //导入依赖的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
示例2: createToolbarPanel
import com.intellij.ide.actions.NextOccurenceToolbarAction; //导入依赖的package包/类
/** A custom toolbar panel, without most of the irrelevant built-in items. */
private JComponent createToolbarPanel() {
DefaultActionGroup group = new DefaultActionGroup();
group.add(new PreviousOccurenceToolbarAction(this)); // NOTYPO
group.add(new NextOccurenceToolbarAction(this)); // NOTYPO
fillRightToolbarGroup(group);
ActionToolbar toolbar =
ActionManager.getInstance()
.createActionToolbar(ActionPlaces.COMPILER_MESSAGES_TOOLBAR, group, false);
return toolbar.getComponent();
}
开发者ID:bazelbuild,项目名称:intellij,代码行数:12,代码来源:BlazeProblemsViewPanel.java
注:本文中的com.intellij.ide.actions.NextOccurenceToolbarAction类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论