本文整理汇总了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;
}
示例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;
}
}
}
示例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;
}
示例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;
}
}
}
示例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;
}
示例6: MergeCommandAction
public MergeCommandAction(@Nullable Project project,
@Nullable String commandName,
boolean underBulkUpdate,
@Nullable List<TextMergeChange> changes) {
this(project, commandName, null, UndoConfirmationPolicy.DEFAULT, underBulkUpdate, changes);
}
示例7: DiffCommandAction
public DiffCommandAction(@Nullable Project project,
@NotNull Document document,
@Nullable String commandName) {
this(project, document, commandName, null, UndoConfirmationPolicy.DEFAULT);
}
示例8: getUndoConfirmationPolicy
@SuppressWarnings("MethodMayBeStatic")
@NotNull
protected UndoConfirmationPolicy getUndoConfirmationPolicy() {
return UndoConfirmationPolicy.DEFAULT;
}
示例9: getUndoConfirmationPolicy
protected UndoConfirmationPolicy getUndoConfirmationPolicy() {
return UndoConfirmationPolicy.DEFAULT;
}
示例10: getUndoConfirmationPolicy
@SuppressWarnings("MethodMayBeStatic")
protected UndoConfirmationPolicy getUndoConfirmationPolicy() {
return UndoConfirmationPolicy.DEFAULT;
}
示例11: getUndoConfirmationPolicy
@SuppressWarnings("MethodMayBeStatic")
@Nonnull
protected UndoConfirmationPolicy getUndoConfirmationPolicy() {
return UndoConfirmationPolicy.DEFAULT;
}