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


Java ToggleBooleanProperty类代码示例

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


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

示例1: createToolbarPanel

import com.intellij.util.config.ToggleBooleanProperty; //导入依赖的package包/类
@Override
protected ToolbarPanel createToolbarPanel() {
  final ToolbarPanel panel = new ToolbarPanel(getProperties(), myEnvironment, this){
    @Override
    protected void appendAdditionalActions(DefaultActionGroup actionGroup,
                                           TestConsoleProperties properties,
                                           ExecutionEnvironment environment, JComponent parent) {
      super.appendAdditionalActions(actionGroup, properties, environment, parent);
      actionGroup.addAction(new ToggleBooleanProperty(
        ExecutionBundle.message("junit.runing.info.include.non.started.in.rerun.failed.action.name"),
                                                  null,
                                                  null,
                                                  properties, TestConsoleProperties.INCLUDE_NON_STARTED_IN_RERUN_FAILED)).setAsSecondary(true);
    }
  };
  panel.setModel(this);
  return panel;
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:19,代码来源:TestNGResults.java

示例2: appendAdditionalActions

import com.intellij.util.config.ToggleBooleanProperty; //导入依赖的package包/类
@Override
protected void appendAdditionalActions(DefaultActionGroup actionGroup,
                                       TestConsoleProperties properties,
                                       ExecutionEnvironment environment, JComponent parent) {
  super.appendAdditionalActions(actionGroup, properties, environment, parent);
  actionGroup.addAction(new ToggleBooleanProperty(
    ExecutionBundle.message("junit.runing.info.include.non.started.in.rerun.failed.action.name"),
    null,
    null,
    properties, TestConsoleProperties.INCLUDE_NON_STARTED_IN_RERUN_FAILED)).setAsSecondary(true);
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:12,代码来源:JUnitToolbarPanel.java

示例3: createIncludeNonStartedInRerun

import com.intellij.util.config.ToggleBooleanProperty; //导入依赖的package包/类
@NotNull
protected ToggleBooleanProperty createIncludeNonStartedInRerun(TestConsoleProperties target) {
  String text = ExecutionBundle.message("junit.runing.info.include.non.started.in.rerun.failed.action.name");
  return new ToggleBooleanProperty(text, null, null, target, INCLUDE_NON_STARTED_IN_RERUN_FAILED);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:6,代码来源:TestConsoleProperties.java

示例4: createHideSuccessfulConfig

import com.intellij.util.config.ToggleBooleanProperty; //导入依赖的package包/类
@NotNull
protected ToggleBooleanProperty createHideSuccessfulConfig(TestConsoleProperties target) {
  String text = ExecutionBundle.message("junit.runing.info.hide.successful.config.action.name");
  setIfUndefined(HIDE_SUCCESSFUL_CONFIG, true);
  return new ToggleBooleanProperty(text, null, null, target, HIDE_SUCCESSFUL_CONFIG);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:7,代码来源:TestConsoleProperties.java

示例5: ToolbarPanel

import com.intellij.util.config.ToggleBooleanProperty; //导入依赖的package包/类
public ToolbarPanel(final TestConsoleProperties properties,
                    ExecutionEnvironment environment, JComponent parent) {
  super(new BorderLayout());
  final DefaultActionGroup actionGroup = new DefaultActionGroup(null, false);
  actionGroup.addAction(new ToggleBooleanProperty(ExecutionBundle.message("junit.run.hide.passed.action.name"),
                                                  ExecutionBundle.message("junit.run.hide.passed.action.description"),
                                                  AllIcons.RunConfigurations.HidePassed,
                                                  properties, TestConsoleProperties.HIDE_PASSED_TESTS));
  actionGroup.addSeparator();

  actionGroup.addAction(new ToggleBooleanProperty(ExecutionBundle.message("junit.runing.info.track.test.action.name"),
                                                  ExecutionBundle.message("junit.runing.info.track.test.action.description"),
                                                  AllIcons.RunConfigurations.TrackTests,
                                                  properties, TestConsoleProperties.TRACK_RUNNING_TEST)).setAsSecondary(true);
  actionGroup.addAction(new ToggleBooleanProperty("Hide Ignored", null, null, properties, TestConsoleProperties.HIDE_IGNORED_TEST)).setAsSecondary(true);

  actionGroup.addAction(new ToggleBooleanProperty(ExecutionBundle.message("junit.runing.info.sort.alphabetically.action.name"),
                                                  ExecutionBundle.message("junit.runing.info.sort.alphabetically.action.description"),
                                                  AllIcons.ObjectBrowser.Sorted,
                                                  properties, TestConsoleProperties.SORT_ALPHABETICALLY));
  actionGroup.addSeparator();

  AnAction action = CommonActionsManager.getInstance().createExpandAllAction(myTreeExpander, parent);
  action.getTemplatePresentation().setDescription(ExecutionBundle.message("junit.runing.info.expand.test.action.name"));
  actionGroup.add(action);

  action = CommonActionsManager.getInstance().createCollapseAllAction(myTreeExpander, parent);
  action.getTemplatePresentation().setDescription(ExecutionBundle.message("junit.runing.info.collapse.test.action.name"));
  actionGroup.add(action);

  actionGroup.addSeparator();
  final CommonActionsManager actionsManager = CommonActionsManager.getInstance();
  myOccurenceNavigator = new FailedTestsNavigator();
  actionGroup.add(actionsManager.createPrevOccurenceAction(myOccurenceNavigator));
  actionGroup.add(actionsManager.createNextOccurenceAction(myOccurenceNavigator));

  actionGroup.addAction(new ToggleBooleanProperty(ExecutionBundle.message("junit.runing.info.select.first.failed.action.name"),
                                                  null,
                                                  AllIcons.RunConfigurations.SelectFirstDefect,
                                                  properties, TestConsoleProperties.SELECT_FIRST_DEFECT)).setAsSecondary(true);
  actionGroup.addAction(new ToggleBooleanProperty(ExecutionBundle.message("junit.runing.info.scroll.to.stacktrace.action.name"),
                                                  ExecutionBundle.message("junit.runing.info.scroll.to.stacktrace.action.description"),
                                                  AllIcons.RunConfigurations.ScrollToStackTrace,
                                                  properties, TestConsoleProperties.SCROLL_TO_STACK_TRACE)).setAsSecondary(true);
  myScrollToSource = new ScrollToTestSourceAction(properties);
  actionGroup.addAction(myScrollToSource).setAsSecondary(true);
  actionGroup.addAction(new ToggleBooleanProperty(ExecutionBundle.message("junit.runing.info.open.source.at.exception.action.name"),
                                                  ExecutionBundle
                                                    .message("junit.runing.info.open.source.at.exception.action.description"),
                                                  AllIcons.RunConfigurations.SourceAtException,
                                                  properties, TestConsoleProperties.OPEN_FAILURE_LINE)).setAsSecondary(true);

  actionGroup.addAction(new ShowStatisticsAction(properties)).setAsSecondary(true);

  for (ToggleModelActionProvider actionProvider : Extensions.getExtensions(ToggleModelActionProvider.EP_NAME)) {
    final ToggleModelAction toggleModelAction = actionProvider.createToggleModelAction(properties);
    myActions.add(toggleModelAction);
    actionGroup.add(toggleModelAction);
  }

  myExportAction = ExportTestResultsAction.create(properties.getExecutor().getToolWindowId(), properties.getConfiguration());
  actionGroup.addAction(myExportAction);

  appendAdditionalActions(actionGroup, properties, environment, parent);

  add(ActionManager.getInstance().
    createActionToolbar(ActionPlaces.TESTTREE_VIEW_TOOLBAR, actionGroup, true).
    getComponent(), BorderLayout.CENTER);
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:70,代码来源:ToolbarPanel.java


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