public void run() { Object obj = TALK.get(); if (obj instanceof org.openide.DialogDescriptor) { TALK.set(org.openide.DialogDisplayer.getDefault().createDialog((org.openide.DialogDescriptor) obj)); } else { TALK.set(null); } } }
@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."); } };
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(); } } }
public void showEditor() { String title = NbBundle.getMessage(MappingEditor.class, "TITLE_filter_mapping"); //NOI18N editDialog = new DialogDescriptor(this, title, true, DialogDescriptor.OK_CANCEL_OPTION, DialogDescriptor.CANCEL_OPTION, DialogDescriptor.BOTTOM_ALIGN, null, this); dialog = DialogDisplayer.getDefault().createDialog(editDialog); dialog.pack(); dialog.setVisible(true); }
/** 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 ) ); }
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; }
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; } }
boolean open() { final DialogDescriptor dd = new DialogDescriptor ( this, NbBundle.getMessage(RevertDeletedAction.class, "LBL_SELECT_FILES"), // NOI18N true, DialogDescriptor.OK_CANCEL_OPTION, DialogDescriptor.OK_OPTION, null); final Dialog dialog = DialogDisplayer.getDefault().createDialog(dd); dialog.setVisible(true); return dd.getValue() == DialogDescriptor.OK_OPTION; }
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); }
@Override public void actionPerformed(ActionEvent e) { ReportPanel.this.report.setUserDescription(problemArea.getText()); ReportPanel.this.report.setUserEmail(emailTextField.getText()); DialogDescriptor dd = new DialogDescriptor(new ViewDataPanel(document), NbBundle.getMessage(ReportPanel.class, "ReportPanel.viewData.title"), true, DialogDescriptor.DEFAULT_OPTION, null, null); DialogDisplayer.getDefault().notify(dd); } });
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)); }
/** * 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); }
public boolean showWindow() { DialogDescriptor dd = new DialogDescriptor(this, NbBundle.getMessage(FilterEditor.class, "LBL_FilterEditor"), true, //NOI18N new Object[]{btnOk, btnCancel}, btnOk, DialogDescriptor.DEFAULT_ALIGN, HelpCtx.DEFAULT_HELP, null); Dialog dlg = DialogDisplayer.getDefault().createDialog(dd); dlg.setVisible(true); if (btnOk.equals(dd.getValue())) { updateFilters(); return true; } return false; }
private void displayGrailsHomeWarning() { DialogDisplayer.getDefault().notify(new NotifyDescriptor.Message( NbBundle.getMessage(GrailsRuntimePanel.class, "LBL_Not_grails_home"), NotifyDescriptor.Message.WARNING_MESSAGE )); }
private void includeExcludeButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_includeExcludeButtonActionPerformed IncludeExcludeVisualizer v = new IncludeExcludeVisualizer(); uiProperties.loadIncludesExcludes(v); DialogDescriptor dd = new DialogDescriptor(v.getVisualizerPanel(), NbBundle.getMessage(CustomizerSources.class, "CustomizerSources.title.includeExclude")); dd.setOptionType(NotifyDescriptor.OK_CANCEL_OPTION); if (NotifyDescriptor.OK_OPTION.equals(DialogDisplayer.getDefault().notify(dd))) { uiProperties.storeIncludesExcludes(v); } }//GEN-LAST:event_includeExcludeButtonActionPerformed
@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); } }
@Override public void run() { DialogDisplayer.getDefault().notify(new NotifyDescriptor.Message(getString("ERR_EMPTY_PROJECT"), NotifyDescriptor.ERROR_MESSAGE)); // NOI18N } });
public void run() { dialog[0] = DialogDisplayer.getDefault().createDialog(new DialogDescriptor(DetectRunnable.this, NbBundle.getMessage(SearchRunnable.class, "Title_DetectRunnable_Searching"), true, new Object[]{ NotifyDescriptor.CANCEL_OPTION, }, NotifyDescriptor.CANCEL_OPTION, DialogDescriptor.DEFAULT_ALIGN, new HelpCtx(DetectPanel.class), new ActionListener() { public void actionPerformed(@SuppressWarnings("unused") ActionEvent e) { stop = true; } })); } });
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); } }
private void includeExcludeButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_includeExcludeButtonActionPerformed IncludeExcludeVisualizer v = new IncludeExcludeVisualizer(); uiProperties.loadIncludesExcludes(v); DialogDescriptor dd = new DialogDescriptor(v.getVisualizerPanel(), NbBundle.getMessage(CustomizerSources.class, "CustomizerSources.title.includeExclude")); dd.setOptionType(NotifyDescriptor.OK_CANCEL_OPTION); if (NotifyDescriptor.OK_OPTION.equals(DialogDisplayer.getDefault().notify(dd))) { uiProperties.storeIncludesExcludes(v); } }//GEN-LAST:event_includeExcludeButtonActionPerformed