@Override public void run() { err.log(Level.FINE, "onValidPerformer on next button entry."); //#163078 - validate first then store storeSettingsAndNotify(data); panels.nextPanel(); try { // change UI to show next step, show wait cursor during // the change goToNextStep(previousSize); } catch (IllegalStateException ise) { panels.previousPanel(); String msg = ise.getMessage(); if (msg != null) { // this is only for backward compatitility DialogDisplayer.getDefault().notify(new NotifyDescriptor.Message(msg)); } else { // this should be used (it checks for exception // annotations and severity) Exceptions.printStackTrace(ise); } _updateState(); } err.log(Level.FINE, "onValidPerformer on next button exit."); } };
private void warnIssue204880(final String msg) { LOG.log(Level.SEVERE, msg + " (issue 204880)."); // NOI18N Exception npe = new NullPointerException(msg + " (issue 204880)."); // NOI18N npe.printStackTrace(); NotifyDescriptor d = new NotifyDescriptor.Message( NbBundle.getMessage(JavaFXProjectWizardIterator.class,"WARN_Issue204880"), NotifyDescriptor.ERROR_MESSAGE); // NOI18N DialogDisplayer.getDefault().notify(d); } }
private void showFailures(Set<FileObject> files) { if (files.isEmpty()) { return; } StringBuilder sb = new StringBuilder(50); for (FileObject file : files) { sb.append(file.getNameExt()); sb.append("\n"); // NOI18N } DialogDisplayer.getDefault().notifyLater(new NotifyDescriptor.Message( NbBundle.getMessage(CreateTestsAction.class, "MSG_TestNotGenerated", sb.toString()), NotifyDescriptor.WARNING_MESSAGE)); }
static NotifyDescriptor createNotifyDescriptor(ExecutionException exc) { assert exc != null; final Throwable cause = exc.getCause(); assert cause != null; return new NotifyDescriptor.Message( NbBundle.getMessage(UiUtils.class, "MSG_ExceptionDuringRunScript", cause.getLocalizedMessage()), NotifyDescriptor.ERROR_MESSAGE); }
private void notifyPortConflict() { String message = NbBundle.getMessage(RailsServerManager.class, "Conflict", Integer.toString(originalPort)); NotifyDescriptor nd = new NotifyDescriptor.Message(message, NotifyDescriptor.Message.ERROR_MESSAGE); DialogDisplayer.getDefault().notify(nd); }
public void run() { if (!SwingUtilities.isEventDispatchThread()) { SwingUtilities.invokeLater(this); } else { DialogDisplayer.getDefault().notify(new NotifyDescriptor.Message(message, NotifyDescriptor.ERROR_MESSAGE)); } } };
private void showWarning(boolean selected) { if (warningShown) { return; } if (selected) { NotifyDescriptor descriptor = new NotifyDescriptor.Message( NbBundle.getMessage(PhpDebuggerPanel.class, "MSG_WatchesAndEval"), NotifyDescriptor.WARNING_MESSAGE); DialogDisplayer.getDefault().notifyLater(descriptor); warningShown = true; } }
public static void notifyLocalized(Class aClass, String resName, int type, Object... params) { String message = NbBundle.getMessage(aClass, resName, params); if (type == NotifyDescriptor.ERROR_MESSAGE) { LOGGER.severe(message); } DialogDisplayer.getDefault().notify(new NotifyDescriptor.Message(message, type)); }
public void run() { if (!SwingUtilities.isEventDispatchThread()) { SwingUtilities.invokeLater(this); } else { DialogDisplayer.getDefault().notify(new NotifyDescriptor.Message(message, NotifyDescriptor.ERROR_MESSAGE)); } } };
@Override public void actionPerformed(ActionEvent e) { if (!CsmRefactoringUtils.REFACTORING_EXTRA) { return; } String error = doPerform(); if (error != null) { String errorText = NbBundle.getMessage(HintAction.class, error); NotifyDescriptor nd = new NotifyDescriptor.Message(errorText, NotifyDescriptor.ERROR_MESSAGE); DialogDisplayer.getDefault().notifyLater(nd); } }
private void warnOnEmptyString(String name) { if ("".equals(name)) { NotifyDescriptor d = new NotifyDescriptor.Message(NbBundle.getMessage(CodeClipsParametersDialog.class, "NO_EMPTY_STRING"), // NOI18N NotifyDescriptor.ERROR_MESSAGE); DialogDisplayer.getDefault().notify(d); } }
public void run() { if (!SwingUtilities.isEventDispatchThread()) { SwingUtilities.invokeLater(this); } else { DialogDisplayer.getDefault().notify(new NotifyDescriptor.Message(message, NotifyDescriptor.ERROR_MESSAGE)); } } };
@Override public void run() { if (!goToAction()) { DialogDisplayer.getDefault().notifyLater(new DialogDescriptor.Message(NbBundle.getMessage(GoToActionAction.class, "MSG_ActionNotFound"))); } } });
private void notifyAboutConflictIds(StringBuilder conflictMsg, boolean silently){ if(silently){ return; } String msg = NbBundle.getMessage(ElementMapping.class, "WARNING_IDConflicts", conflictMsg.toString()); //NOI18N DialogDisplayer.getDefault().notify( new NotifyDescriptor.Message(msg, NotifyDescriptor.Message.WARNING_MESSAGE)); }
private boolean isNotUnique(String newVal){ for(int i=0; i<data.size()-1; i++){ NameValuePair pair = (NameValuePair)data.elementAt(i); if(pair.getParamName().equals(newVal)){ NotifyDescriptor d = new NotifyDescriptor.Message(bundle.getString("Err_DuplicateValue"), NotifyDescriptor.INFORMATION_MESSAGE); DialogDisplayer.getDefault().notify(d); return true; } } return false; }
@Override protected void perform(CsmContext context) { String error = doPerformAction(context); if (error != null) { String errorText = NbBundle.getMessage(IntroduceAction.class, error); NotifyDescriptor nd = new NotifyDescriptor.Message(errorText, NotifyDescriptor.ERROR_MESSAGE); DialogDisplayer.getDefault().notifyLater(nd); } }
private void openTool(final FileObject tool) { if (tool == null) return; final File f = FileUtil.toFile(tool); if (f == null) return; try { Runtime.getRuntime().exec(f.getAbsolutePath()); } catch (IOException e) { DialogDisplayer.getDefault().notify(new NotifyDescriptor.Message(NbBundle.getMessage(CustomizerPanel.class, "MSG_CustomizerPanel_CannotExecTool", f.getAbsolutePath()))); //NOI18N } }
public void notifyError(Exception ex) { NotifyDescriptor ndd = new NotifyDescriptor.Message(ex.getMessage(), NotifyDescriptor.ERROR_MESSAGE); DialogDisplayer.getDefault().notify(ndd); } }
@Override public void run() { if (!goToView()) { DialogDisplayer.getDefault().notifyLater(new DialogDescriptor.Message(NbBundle.getMessage(GoToViewAction.class, "MSG_ViewNotFound"))); } } });
/** Notifies user that the drop was not succesfull. */ static void dropNotSuccesfull() { DialogDisplayer.getDefault().notify( new Message( NbBundle.getMessage(TreeViewDropSupport.class, "MSG_NoPasteTypes"), NotifyDescriptor.WARNING_MESSAGE ) ); }