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


Java UndoConfirmationPolicy.DEFAULT属性代码示例

本文整理汇总了Java中com.intellij.openapi.command.UndoConfirmationPolicy.DEFAULT属性的典型用法代码示例。如果您正苦于以下问题:Java UndoConfirmationPolicy.DEFAULT属性的具体用法?Java UndoConfirmationPolicy.DEFAULT怎么用?Java UndoConfirmationPolicy.DEFAULT使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在com.intellij.openapi.command.UndoConfirmationPolicy的用法示例。


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

示例1: ActionRequestBuilder

public ActionRequestBuilder() {
    //defaults
    request = new ActionRequest();
    request.project = null;
    request.actions = new ArrayList<>();
    request.actionLabel = "actionLabel";
    request.groupId = null;
    request.accessPrivileges = AccessPrivileges.NONE;
    request.confirmationPolicy = UndoConfirmationPolicy.DEFAULT;
    request.isUndoable = true;
}
 
开发者ID:CeH9,项目名称:PackageTemplates,代码行数:11,代码来源:ActionRequestBuilder.java

示例2: mergeUndoConfirmationPolicy

public void mergeUndoConfirmationPolicy(UndoConfirmationPolicy undoConfirmationPolicy) {
  if (myUndoConfirmationPolicy == UndoConfirmationPolicy.DEFAULT) {
    myUndoConfirmationPolicy = undoConfirmationPolicy;
  }
  else if (myUndoConfirmationPolicy == UndoConfirmationPolicy.DO_NOT_REQUEST_CONFIRMATION) {
    if (undoConfirmationPolicy == UndoConfirmationPolicy.REQUEST_CONFIRMATION) {
      myUndoConfirmationPolicy = UndoConfirmationPolicy.REQUEST_CONFIRMATION;
    }
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:10,代码来源:CommandMerger.java

示例3: reset

private void reset() {
  myCurrentActions = new ArrayList<UndoableAction>();
  myAllAffectedDocuments = new THashSet<DocumentReference>();
  myAdditionalAffectedDocuments = new THashSet<DocumentReference>();
  myLastGroupId = null;
  myForcedGlobal = false;
  myTransparent = false;
  myCommandName = null;
  myValid = true;
  myStateAfter = null;
  myStateBefore = null;
  myUndoConfirmationPolicy = UndoConfirmationPolicy.DEFAULT;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:13,代码来源:CommandMerger.java

示例4: mergeUndoConfirmationPolicy

void mergeUndoConfirmationPolicy(UndoConfirmationPolicy undoConfirmationPolicy) {
  if (myUndoConfirmationPolicy == UndoConfirmationPolicy.DEFAULT) {
    myUndoConfirmationPolicy = undoConfirmationPolicy;
  }
  else if (myUndoConfirmationPolicy == UndoConfirmationPolicy.DO_NOT_REQUEST_CONFIRMATION) {
    if (undoConfirmationPolicy == UndoConfirmationPolicy.REQUEST_CONFIRMATION) {
      myUndoConfirmationPolicy = UndoConfirmationPolicy.REQUEST_CONFIRMATION;
    }
  }
}
 
开发者ID:consulo,项目名称:consulo,代码行数:10,代码来源:CommandMerger.java

示例5: reset

private void reset() {
  myCurrentActions = new ArrayList<>();
  myAllAffectedDocuments = new THashSet<>();
  myAdditionalAffectedDocuments = new THashSet<>();
  myLastGroupId = null;
  myForcedGlobal = false;
  myTransparent = false;
  myCommandName = null;
  myValid = true;
  myStateAfter = null;
  myStateBefore = null;
  myUndoConfirmationPolicy = UndoConfirmationPolicy.DEFAULT;
}
 
开发者ID:consulo,项目名称:consulo,代码行数:13,代码来源:CommandMerger.java

示例6: MergeCommandAction

public MergeCommandAction(@Nullable Project project,
                          @Nullable String commandName,
                          boolean underBulkUpdate,
                          @Nullable List<TextMergeChange> changes) {
  this(project, commandName, null, UndoConfirmationPolicy.DEFAULT, underBulkUpdate, changes);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:6,代码来源:TextMergeTool.java

示例7: DiffCommandAction

public DiffCommandAction(@Nullable Project project,
                         @NotNull Document document,
                         @Nullable String commandName) {
  this(project, document, commandName, null, UndoConfirmationPolicy.DEFAULT);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:DiffUtil.java

示例8: getUndoConfirmationPolicy

@SuppressWarnings("MethodMayBeStatic")
@NotNull
protected UndoConfirmationPolicy getUndoConfirmationPolicy() {
  return UndoConfirmationPolicy.DEFAULT;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:BaseRefactoringProcessor.java

示例9: getUndoConfirmationPolicy

protected UndoConfirmationPolicy getUndoConfirmationPolicy() {
  return UndoConfirmationPolicy.DEFAULT;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:3,代码来源:DynamicWizard.java

示例10: getUndoConfirmationPolicy

@SuppressWarnings("MethodMayBeStatic")
protected UndoConfirmationPolicy getUndoConfirmationPolicy() {
  return UndoConfirmationPolicy.DEFAULT;
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:4,代码来源:BaseRefactoringProcessor.java

示例11: getUndoConfirmationPolicy

@SuppressWarnings("MethodMayBeStatic")
@Nonnull
protected UndoConfirmationPolicy getUndoConfirmationPolicy() {
  return UndoConfirmationPolicy.DEFAULT;
}
 
开发者ID:consulo,项目名称:consulo,代码行数:5,代码来源:BaseRefactoringProcessor.java


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