本文整理了Java中com.intellij.openapi.ui.Messages.getInformationIcon()
方法的一些代码示例,展示了Messages.getInformationIcon()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Messages.getInformationIcon()
方法的具体详情如下:
包路径:com.intellij.openapi.ui.Messages
类名称:Messages
方法名:getInformationIcon
暂无
代码示例来源:origin: pengwei1024/AndroidSourceViewer
@Override
public void run() {
Messages.showMessageDialog(message, "Error", Messages.getInformationIcon());
}
});
代码示例来源:origin: pengwei1024/AndroidSourceViewer
/**
* error message dialog
*
* @param message
*/
public static void errorMsgDialog(String message) {
Messages.showMessageDialog(message, "Error", Messages.getInformationIcon());
}
代码示例来源:origin: ballerina-platform/ballerina-lang
alias = Messages.showInputDialog(project, "Package '" + ((PsiDirectory) element).getName() +
"' already imported. Please enter an alias:", "Enter Alias",
Messages.getInformationIcon());
if (alias == null || alias.isEmpty()) {
Messages.showErrorDialog("Alias cannot be null or empty.", "Error");
代码示例来源:origin: pengwei1024/AndroidSourceViewer
@Override
public void actionPerformed(AnActionEvent e) {
cacheFile = new File(Constant.CACHE_PATH);
if (!cacheFile.exists()) {
cacheFile.mkdirs();
}
long size = FileUtils.sizeOfDirectory(cacheFile);
DialogBuilder builder = new DialogBuilder();
builder.setTitle(Constant.TITLE);
builder.resizable(false);
builder.setCenterPanel(new JLabel(String.format("Currently occupy storage %.2fM, "
+ "Clean Cache immediately?", size/1024.0/1024.0),
Messages.getInformationIcon(), SwingConstants.CENTER));
builder.addOkAction().setText("Clean Now");
builder.addCancelAction().setText("Cancel");
builder.setButtonsAlignment(SwingConstants.RIGHT);
if (builder.show() == 0) {
clean();
}
}
代码示例来源:origin: JetBrains/intellij-sdk-docs
public void actionPerformed(AnActionEvent event) {
Project project = event.getProject();
Messages.showMessageDialog(project, "Hello world!", "Greeting", Messages.getInformationIcon());
}
}
代码示例来源:origin: GoogleCloudPlatform/google-cloud-intellij
StackdriverDebuggerBundle.getString("clouddebug.restorestash", branchDisplayName),
StackdriverDebuggerBundle.getString("clouddebug.restorechanges.title"),
Messages.getInformationIcon())
== Messages.YES) {
final GitBrancher brancher = ServiceManager.getService(project, GitBrancher.class);
代码示例来源:origin: mustfun/mybatis-plus
String dbName = connectDbSetting.getDbName().getText();
if (StringUtils.isEmpty(dbName)){
Messages.showMessageDialog("DB名称配置不正确", "连接数据库提示", Messages.getInformationIcon());
return;
p = Integer.parseInt(port);
} catch (NumberFormatException e1) {
Messages.showMessageDialog("端口配置不正确", "连接数据库提示", Messages.getInformationIcon());
return;
Connection connection = dbService.getConnection(dbSourcePo);
if (connection == null) {
Messages.showMessageDialog("数据库连接失败", "连接数据库提示", Messages.getInformationIcon());
return;
内容来源于网络,如有侵权,请联系作者删除!