本文整理汇总了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;
}
示例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);
}
示例3: createToggleAction
import com.intellij.openapi.actionSystem.ToggleAction; //导入依赖的package包/类
public ToggleAction createToggleAction() {
return new AutoScrollFromSourceAction();
}
示例4: createToggleAutoscrollAction
import com.intellij.openapi.actionSystem.ToggleAction; //导入依赖的package包/类
@NotNull
public ToggleAction createToggleAutoscrollAction() {
return myUIOptions.getAutoScrollToSourceHandler().createToggleAction();
}
示例5: createToggleAction
import com.intellij.openapi.actionSystem.ToggleAction; //导入依赖的package包/类
public ToggleAction createToggleAction() {
return new AutoscrollToSourceAction();
}
示例6: createToggleAutoscrollAction
import com.intellij.openapi.actionSystem.ToggleAction; //导入依赖的package包/类
public ToggleAction createToggleAutoscrollAction() {
return myUIOptions.getAutoScrollToSourceHandler().createToggleAction();
}
示例7: createToggleAutoscrollAction
import com.intellij.openapi.actionSystem.ToggleAction; //导入依赖的package包/类
ToggleAction createToggleAutoscrollAction() {
return myAutoScrollToSourceHandler.createToggleAction();
}
示例8: createToggleAutoscrollAction
import com.intellij.openapi.actionSystem.ToggleAction; //导入依赖的package包/类
@Nonnull
public ToggleAction createToggleAutoscrollAction() {
return myUIOptions.getAutoScrollToSourceHandler().createToggleAction();
}