本文整理汇总了Java中com.intellij.openapi.application.ModalityState.any方法的典型用法代码示例。如果您正苦于以下问题:Java ModalityState.any方法的具体用法?Java ModalityState.any怎么用?Java ModalityState.any使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.intellij.openapi.application.ModalityState
的用法示例。
在下文中一共展示了ModalityState.any方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: execute
import com.intellij.openapi.application.ModalityState; //导入方法依赖的package包/类
@Nullable
public HgCommandResult execute(@NotNull VirtualFile repo,
@NotNull String template,
@NotNull String source,
@NotNull String destination,
boolean doNotShowAuthorizationRequest) {
List<String> arguments = new LinkedList<String>();
arguments.add("-n");
arguments.add("--template");
arguments.add(template);
arguments.add(HgHistoryUtil.prepareParameter("rev", source));
arguments.add(destination);
HgRemoteCommandExecutor commandExecutor =
new HgRemoteCommandExecutor(project, destination, ModalityState.any(), doNotShowAuthorizationRequest);
commandExecutor.setOutputAlwaysSuppressed(true);
return commandExecutor.executeInCurrentThread(repo, "outgoing", arguments);
}
示例2: dominates
import com.intellij.openapi.application.ModalityState; //导入方法依赖的package包/类
@Override
public boolean dominates(@NotNull ModalityState anotherState){
if (anotherState == ModalityState.any()) return false;
List<Object> otherEntities = ((ModalityStateEx)anotherState).getModalEntities();
for (Object entity : getModalEntities()) {
if (!otherEntities.contains(entity)) return true; // I have entity which is absent in anotherState
}
return false;
}
示例3: ComboBoxUpdater
import com.intellij.openapi.application.ModalityState; //导入方法依赖的package包/类
public ComboBoxUpdater(@Nullable Project project, @NotNull String title, @NotNull JComboBox comboBox) {
super(project, title, ModalityState.any());
myComboBox = comboBox;
}