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


Java ToggleAction类代码示例

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


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

示例1: initToolbarActionGroup

import com.intellij.openapi.actionSystem.ToggleAction; //导入依赖的package包/类
private DefaultActionGroup initToolbarActionGroup() {
    DefaultActionGroup actionGroup = new DefaultActionGroup();

    AnAction startAction = new StartAction();
    AnAction stopAction = new StopAction();
    AnAction clearAction = new ClearAction();
    AnAction clearSelectedAction = new ClearSelectedAction();
    AnAction aboutAction = new AboutAction();
    ToggleAction wrapAction = new WrapAction();

    actionGroup.add(startAction);
    actionGroup.add(stopAction);
    actionGroup.add(clearSelectedAction);
    actionGroup.add(clearAction);
    actionGroup.add(wrapAction);
    actionGroup.add(aboutAction);

    return actionGroup;
}
 
开发者ID:milanboruvka,项目名称:tunnellij,代码行数:20,代码来源:TunnelPlugin.java

示例2: fillToolbarActions

import com.intellij.openapi.actionSystem.ToggleAction; //导入依赖的package包/类
@Override
protected void fillToolbarActions(DefaultActionGroup group)
{
	super.fillToolbarActions(group);
	if(myToImplement)
	{
		return;
	}

	ToggleAction sortByOverridingAction = new MySortByOverridingAction();
	if(mySortedByOverriding)
	{
		changeSortComparator(PsiMethodWithOverridingPercentMember.COMPARATOR);
	}
	group.add(sortByOverridingAction, Constraints.FIRST);

	myMergeAction = new MyMergeAction();
	group.add(myMergeAction);
}
 
开发者ID:consulo,项目名称:consulo-java,代码行数:20,代码来源:JavaOverrideImplementMemberChooser.java

示例3: createToggleAction

import com.intellij.openapi.actionSystem.ToggleAction; //导入依赖的package包/类
public ToggleAction createToggleAction() {
  return new AutoScrollFromSourceAction();
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:4,代码来源:AutoScrollFromSourceHandler.java

示例4: createToggleAutoscrollAction

import com.intellij.openapi.actionSystem.ToggleAction; //导入依赖的package包/类
@NotNull
public ToggleAction createToggleAutoscrollAction() {
  return myUIOptions.getAutoScrollToSourceHandler().createToggleAction();
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:GlobalInspectionContextImpl.java

示例5: createToggleAction

import com.intellij.openapi.actionSystem.ToggleAction; //导入依赖的package包/类
public ToggleAction createToggleAction() {
  return new AutoscrollToSourceAction();
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:4,代码来源:AutoScrollToSourceHandler.java

示例6: createToggleAutoscrollAction

import com.intellij.openapi.actionSystem.ToggleAction; //导入依赖的package包/类
public ToggleAction createToggleAutoscrollAction() {
  return myUIOptions.getAutoScrollToSourceHandler().createToggleAction();
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:4,代码来源:GlobalInspectionContextImpl.java

示例7: createToggleAutoscrollAction

import com.intellij.openapi.actionSystem.ToggleAction; //导入依赖的package包/类
ToggleAction createToggleAutoscrollAction() {
  return myAutoScrollToSourceHandler.createToggleAction();
}
 
开发者ID:consulo,项目名称:consulo-apache-ant,代码行数:4,代码来源:TreeView.java

示例8: createToggleAutoscrollAction

import com.intellij.openapi.actionSystem.ToggleAction; //导入依赖的package包/类
@Nonnull
public ToggleAction createToggleAutoscrollAction() {
  return myUIOptions.getAutoScrollToSourceHandler().createToggleAction();
}
 
开发者ID:consulo,项目名称:consulo,代码行数:5,代码来源:GlobalInspectionContextImpl.java


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