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 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
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
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
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
desc.setOptionType(NotifyDescriptor.OK_CANCEL_OPTION); JButton alwaysButton = null; if (mode == CONFLICT_ASK_MANY) {
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 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 boolean showMe() { String title = NbBundle.getMessage(RerunArguments.class, "RerunArguments.title.text"); // NOI18N DialogDescriptor dd = new DialogDescriptor(this, title); dd.setOptionType(NotifyDescriptor.OK_CANCEL_OPTION); JButton run = new JButton(NbBundle.getMessage(RerunArguments.class, "LBL_run_advanced_run")); // NOI18N run.setDefaultCapable(true); JButton cancel = new JButton(NbBundle.getMessage(RerunArguments.class, "LBL_run_advanced_cancel")); // NOI18N dd.setOptions(new Object[] {run, cancel}); dd.setModal(true); Object result = DialogDisplayer.getDefault().notify(dd); if (result.equals(run)) { for(ProjectActionEvent event : paes) { if (event.getType() == ProjectActionEvent.PredefinedType.RUN || event.getType() == ProjectActionEvent.PredefinedType.DEBUG || event.getType() == ProjectActionEvent.PredefinedType.DEBUG_STEPINTO) { event.getProfile().getRunCommand().setValue(argumentsField.getText()); break; } } return true; } return false; }
dd.setOptionType(NotifyDescriptor.OK_CANCEL_OPTION); dd.setModal(true); dd.setHelpCtx(new HelpCtx(GemRequirementsPanel.class));
dd.setOptionType(NotifyDescriptor.OK_CANCEL_OPTION); dd.setModal(true); dd.setHelpCtx(new HelpCtx(InstallationSettingsPanel.class));
dialogDesc.setOptionType(DialogDescriptor.OK_CANCEL_OPTION);
dd.setOptionType(NotifyDescriptor.OK_CANCEL_OPTION); dd.setModal(true); dd.setHelpCtx(new HelpCtx(GemPanel.class));
ResolveEnvVarPanel panel = new ResolveEnvVarPanel(unset); DialogDescriptor dd = new DialogDescriptor(panel, NbBundle.getMessage(ResolveEnvVarPanel.class, "env_var_fix_title")); dd.setOptionType(NotifyDescriptor.OK_CANCEL_OPTION); if (NotifyDescriptor.OK_OPTION.equals(DialogDisplayer.getDefault().notify(dd))) { boolean success = true;
dd.setOptionType(NotifyDescriptor.OK_CANCEL_OPTION); dd.setModal(true); dd.setHelpCtx(new HelpCtx(GemPanel.class));
private void editButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_editButtonActionPerformed String[] selected = getSelection(); if (selected == null) { return; } GemRequirementDetailsPanel panel = new GemRequirementDetailsPanel(getGemManager(), selected[0], selected[1], selected[2]); DialogDescriptor dd = new DialogDescriptor(panel, NbBundle.getMessage(GemRequirementsPanel.class, "GemRequirementDetailsPanel.title", selected[0])); dd.setOptionType(NotifyDescriptor.OK_CANCEL_OPTION); dd.setModal(true); dd.setHelpCtx(new HelpCtx(GemRequirementsPanel.class)); Object result = DialogDisplayer.getDefault().notify(dd); if (result.equals(NotifyDescriptor.OK_OPTION)) { GemRequirement req = panel.getGemRequirement(); getSelectedRequiredGems().removeRequirement(req.getName()); getSelectedRequiredGems().addRequirements(Collections.singleton(req)); getSelectedTable().setModel(createTableModel()); } }//GEN-LAST:event_editButtonActionPerformed