@Override public void run() { Messages.showMessageDialog(message, "Error", Messages.getInformationIcon()); } });
/** * error message dialog * * @param message */ public static void errorMsgDialog(String message) { Messages.showMessageDialog(message, "Error", Messages.getInformationIcon()); }
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");
@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(); } }
public void actionPerformed(AnActionEvent event) { Project project = event.getProject(); Messages.showMessageDialog(project, "Hello world!", "Greeting", Messages.getInformationIcon()); } }
StackdriverDebuggerBundle.getString("clouddebug.restorestash", branchDisplayName), StackdriverDebuggerBundle.getString("clouddebug.restorechanges.title"), Messages.getInformationIcon()) == Messages.YES) { final GitBrancher brancher = ServiceManager.getService(project, GitBrancher.class);
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;