@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."); } };
/** 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 ) ); }
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() { Index idx = (Index) TALK.get(); java.awt.Container p = new javax.swing.JPanel(); IndexedCustomizer ic = new IndexedCustomizer(p, false); ic.setObject(idx); ic.setImmediateReorder(false); org.openide.DialogDescriptor dd = new org.openide.DialogDescriptor(p, Node.getString("LAB_order")); dd.setModal(true); dd.setOptionType(org.openide.DialogDescriptor.DEFAULT_OPTION); Object result = org.openide.DialogDisplayer.getDefault().notify(dd); if (result == org.openide.DialogDescriptor.OK_OPTION) { ic.doClose(); } } }
private void displayGrailsHomeWarning() { DialogDisplayer.getDefault().notify(new NotifyDescriptor.Message( NbBundle.getMessage(GrailsRuntimePanel.class, "LBL_Not_grails_home"), NotifyDescriptor.Message.WARNING_MESSAGE )); }
/** * Show message box of the specified severity. */ public static void notifyUser(String msg, int messageType) { NotifyDescriptor descr = new NotifyDescriptor.Message(msg, messageType); DialogDisplayer.getDefault().notify(descr); }
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); } }
@Override public void run() { DialogDisplayer.getDefault().notify(new NotifyDescriptor.Message(getString("ERR_EMPTY_PROJECT"), NotifyDescriptor.ERROR_MESSAGE)); // NOI18N } });
@Override public void run() { NotifyDescriptor warningDialog = new NotifyDescriptor.Message( NbBundle.getMessage(JSFFrameworkProvider.class, "WARN_UnknownDeploymentDescriptorText"), //NOI18N NotifyDescriptor.WARNING_MESSAGE); DialogDisplayer.getDefault().notify(warningDialog); } });
public void run() { NotifyDescriptor d = new NotifyDescriptor.Message(mesg, NotifyDescriptor.WARNING_MESSAGE); DialogDisplayer.getDefault().notify(d); } });
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) { NotifyDescriptor descriptor = new NotifyDescriptor.Message(NbBundle.getMessage(DummyAction.class, "LBL_DummyAction"), NotifyDescriptor.INFORMATION_MESSAGE); //NOI18N DialogDisplayer.getDefault().notify(descriptor); } }
public void run() { if (!SwingUtilities.isEventDispatchThread()) { SwingUtilities.invokeLater(this); } else { DialogDisplayer.getDefault().notify(new NotifyDescriptor.Message(message, NotifyDescriptor.ERROR_MESSAGE)); } } };
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)); }
/*************************************************************************** * * **************************************************************************/ public static void showError (final String message) { DialogDisplayer.getDefault().notify(new NotifyDescriptor.Message(message, NotifyDescriptor.ERROR_MESSAGE)); }
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); } }
@Override public void run() { NotifyDescriptor d = new NotifyDescriptor.Message(msg, NotifyDescriptor.WARNING_MESSAGE); DialogDisplayer.getDefault().notify(d); } });
public boolean open() { DialogDescriptor input = new DialogDescriptor( this, NbBundle.getMessage(PasswordPanel.class, "LBL_EnterPassword", configurationName), true, NotifyDescriptor.OK_CANCEL_OPTION, NotifyDescriptor.OK_OPTION, null); return DialogDisplayer.getDefault().notify(input) == NotifyDescriptor.OK_OPTION; }
@Override public void notify(String message) { DialogDisplayer.getDefault().notify( new NotifyDescriptor.Message(message)); }