Java 类com.intellij.openapi.actionSystem.ToggleAction 实例源码

项目:tunnellij    文件:TunnelPlugin.java   
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;
}
项目:consulo-java    文件:JavaOverrideImplementMemberChooser.java   
@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);
}
项目:intellij-ce-playground    文件:AutoScrollFromSourceHandler.java   
public ToggleAction createToggleAction() {
  return new AutoScrollFromSourceAction();
}
项目:intellij-ce-playground    文件:GlobalInspectionContextImpl.java   
@NotNull
public ToggleAction createToggleAutoscrollAction() {
  return myUIOptions.getAutoScrollToSourceHandler().createToggleAction();
}
项目:tools-idea    文件:AutoScrollFromSourceHandler.java   
public ToggleAction createToggleAction() {
  return new AutoScrollFromSourceAction();
}
项目:tools-idea    文件:AutoScrollToSourceHandler.java   
public ToggleAction createToggleAction() {
  return new AutoscrollToSourceAction();
}
项目:tools-idea    文件:GlobalInspectionContextImpl.java   
public ToggleAction createToggleAutoscrollAction() {
  return myUIOptions.getAutoScrollToSourceHandler().createToggleAction();
}
项目:consulo-apache-ant    文件:TreeView.java   
ToggleAction createToggleAutoscrollAction() {
  return myAutoScrollToSourceHandler.createToggleAction();
}
项目:consulo    文件:AutoScrollFromSourceHandler.java   
public ToggleAction createToggleAction() {
  return new AutoScrollFromSourceAction();
}
项目:consulo    文件:AutoScrollToSourceHandler.java   
public ToggleAction createToggleAction() {
  return new AutoscrollToSourceAction();
}
项目:consulo    文件:GlobalInspectionContextImpl.java   
@Nonnull
public ToggleAction createToggleAutoscrollAction() {
  return myUIOptions.getAutoScrollToSourceHandler().createToggleAction();
}