本文整理了Java中com.intellij.openapi.ui.Messages.getErrorIcon()
方法的一些代码示例,展示了Messages.getErrorIcon()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Messages.getErrorIcon()
方法的具体详情如下:
包路径:com.intellij.openapi.ui.Messages
类名称:Messages
方法名:getErrorIcon
暂无
代码示例来源:origin: groboclown/p4ic4idea
@Override
public void textUpdated(@NotNull DocumentEvent e, @Nullable String text) {
if (getSelectedSyncType() == SyncOptions.SyncType.REV && getRevValue() < 0) {
Messages.showMessageDialog(
P4Bundle.message("sync.options.rev.error"),
P4Bundle.message("sync.options.rev.error.title"),
Messages.getErrorIcon());
} else {
updateValues(parent);
}
}
代码示例来源:origin: Haehnchen/idea-php-toolbox
public void initComponent() {
if(!settings.serverEnabled) {
return;
}
final int port = settings.serverPort;
final String host = !settings.listenAll ? "localhost" : "0.0.0.0";
try {
server = HttpServer.create(new InetSocketAddress(host, port), 0);
} catch (IOException e) {
PhpToolboxApplicationService.LOG.error(String.format("Can't bind with server to %s:%s", host, port));
ApplicationManager.getApplication().invokeLater(() -> Messages.showMessageDialog(
String.format("Can't bind with server to %s:%s", host, port), "PHP Toolbox",
Messages.getErrorIcon()
));
return;
}
server.createContext("/", new RouterHttpHandler());
final HttpServer finalServer = server;
listenerThread = new Thread(() -> {
finalServer.start();
PhpToolboxApplicationService.LOG.info(String.format("Starting server on %s:%s", host, port));
});
listenerThread.start();
}
代码示例来源:origin: t28hub/json2java4idea
bundle.message("error.message.class.exists", dialog.getClassName()),
bundle.message("error.title.cannot.create.class"),
Messages.getErrorIcon()
);
return;
代码示例来源:origin: GoogleCloudPlatform/google-cloud-intellij
new String[] {"Ok"},
0,
Messages.getErrorIcon());
内容来源于网络,如有侵权,请联系作者删除!