本文整理匯總了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;
}