本文整理了Java中com.intellij.openapi.ui.Messages.showChooseDialog()
方法的一些代码示例,展示了Messages.showChooseDialog()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Messages.showChooseDialog()
方法的具体详情如下:
包路径:com.intellij.openapi.ui.Messages
类名称:Messages
方法名:showChooseDialog
暂无
代码示例来源:origin: Camelcade/Perl5-IDEA
int[] resultIndex = new int[]{-1};
ApplicationManager.getApplication().invokeAndWait(
() -> resultIndex[0] = Messages.showChooseDialog(
PerlDockerBundle.message("perl.host.handler.docker.choose.distro.message"),
PerlDockerBundle.message("perl.host.handler.docker.choose.distro.title"),
代码示例来源:origin: Camelcade/Perl5-IDEA
@Nullable
protected PerlWslData createDataInteractively() {
String[] ids = ArrayUtil.toStringArray(ContainerUtil.map(WSLUtil.getAvailableDistributions(), WSLDistribution::getId));
if (ids.length < 1) {
return null;
}
int[] result = new int[]{-1};
ApplicationManager.getApplication().invokeAndWait(
() -> result[0] = Messages.showChooseDialog(
PerlWslBundle.message("perl.host.handler.wsl.choose.distro.message"),
PerlWslBundle.message("perl.host.handler.wsl.choose.distro.title"),
ids, ids[0], null));
int index = result[0];
if (index < 0 || index >= ids.length) {
return null;
}
PerlWslData hostData = createData();
hostData.setDistributionId(ids[index]);
return hostData;
}
代码示例来源:origin: Camelcade/Perl5-IDEA
Ref<Integer> selectionRef = Ref.create(-1);
ApplicationManager.getApplication().invokeAndWait(
() -> selectionRef.set(Messages.showChooseDialog(
"",
PerlBundle.message("perl.vm.perlbrew.choose.installation"),
内容来源于网络,如有侵权,请联系作者删除!