Examples of DialogDescriptor


Examples of org.openide.DialogDescriptor

        Project project = controller.getCurrentProject();
        ProjectPropertiesUI ui = Lookup.getDefault().lookup(ProjectPropertiesUI.class);
        if (ui != null) {
            JPanel panel = ui.getPanel();
            ui.setup(project);
            DialogDescriptor dd = new DialogDescriptor(panel, NbBundle.getMessage(ProjectControllerUIImpl.class, "ProjectProperties_dialog_title"));
            Object result = DialogDisplayer.getDefault().notify(dd);
            if (result == NotifyDescriptor.OK_OPTION) {
                ui.unsetup(project);
            }
        }
View Full Code Here

Examples of org.openide.DialogDescriptor

        });
    }

    private void ShowDialogInternal(String caption) {
        //OConnectionJPanel oc = new OConnectionJPanel();
        DialogDescriptor d = new DialogDescriptor(this, caption, true, str, null, DialogDescriptor.BOTTOM_ALIGN, HelpCtx.findHelp(this), listener);
        //d.setModal(true);
        //d.setMessageType(NotifyDescriptor.PLAIN_MESSAGE);
        //d.setOptionType(NotifyDescriptor.DEFAULT_OPTION);
        dlg = DialogDisplayer.getDefault().createDialog(d);
        dlg.pack();
View Full Code Here

Examples of org.openide.DialogDescriptor

        }
    };

    public void ShowDialog(String username) {
        this.UserNamejTextField.setText(username);
        DialogDescriptor d = new DialogDescriptor(this, Utils.getBundle().getString("LBL_ConnectionInformation"), true,
                NotifyDescriptor.OK_CANCEL_OPTION, NotifyDescriptor.OK_OPTION, listener);
        dlg = DialogDisplayer.getDefault().createDialog(d);
        dlg.pack();
        dlg.setVisible(true);
    }
View Full Code Here

Examples of org.openide.DialogDescriptor

        File f = new File(FileUtil.toFile(parent), name);

        boolean create = true;

        if (f.exists()) {
            DialogDescriptor dialog = new DialogDescriptor
            (NbBundle.getMessage(SIPProvider.class, "MSG_OverwriteFile",        // NOI18N
                    f.getAbsolutePath()), NbBundle.getMessage(SIPProvider.class,
                    "TTL_OverwriteFile"), true, DialogDescriptor.YES_NO_OPTION, // NOI18N
                    DialogDescriptor.NO_OPTION, null);
            java.awt.Dialog d = DialogDisplayer.getDefault().createDialog(dialog);
            d.setVisible(true);
            create = (dialog.getValue() == org.openide.DialogDescriptor.NO_OPTION);
        }

        return create;
    }
View Full Code Here

Examples of org.openide.DialogDescriptor

        catch (IOException ioe) {
            ErrorManager.getDefault().notify(ioe);
            return false;
        }

        DialogDescriptor dd = new DialogDescriptor(configuror,
            ConfigurePanel.DIALOG_TITLE);
       
        Dialog dialog = TopManager.getDefault().createDialog(dd);
        dialog.show();
       
        if (dd.getValue() == DialogDescriptor.OK_OPTION) {
            try {
                ParcelDescriptor descriptor = configuror.getConfiguration();
                descriptor.write();
            }
            catch (Exception e) {
View Full Code Here

Examples of org.openide.DialogDescriptor

       
        MouseListener ml = new TreeMouseAdapter(tree, bf, options);
        tree.addMouseListener(ml);


        DialogDescriptor dialogDescriptor = new DialogDescriptor(bf, // innerPane
                NbBundle.getMessage(BrowseFolders.class, "LBL_BrowseFiles"), // displayName
                true, // modal
                options, // options
                options[0], // initial value
                DialogDescriptor.BOTTOM_ALIGN, // options align
                null, // helpCtx
                null);                                 // listener

        dialogDescriptor.setClosingOptions(new Object[]{options[0], options[1]});

        Dialog dialog = DialogDisplayer.getDefault().createDialog(dialogDescriptor);
        dialog.setVisible(true);

        return optionsListener.getResult();
View Full Code Here

Examples of org.openide.DialogDescriptor

            dialogTitle = NbBundle.
                    getMessage(getClass(), "default.dialog.title");        }
       
        dialogOK = false;

        descriptor = new DialogDescriptor(this, dialogTitle,  true,
                DialogDescriptor.OK_CANCEL_OPTION,
                DialogDescriptor.OK_OPTION,
                new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        if (descriptor.getValue().equals(DialogDescriptor.OK_OPTION)) {
View Full Code Here

Examples of org.openide.DialogDescriptor

                }
            }
        });

        okButton.setEnabled(false);
        DialogDescriptor desc = new DialogDescriptor(panel,
                NbBundle.getMessage(MainClassWarning.class, "CTL_MainClassWarning_Title", ProjectUtils.getInformation(project).getDisplayName()), // NOI18N
                true, options, options[0], DialogDescriptor.BOTTOM_ALIGN, null, null);
        desc.setMessageType(DialogDescriptor.INFORMATION_MESSAGE);
        Dialog dlg = DialogDisplayer.getDefault().createDialog(desc);
        dlg.setVisible(true);
        if (desc.getValue() != options[0]) {
            canceled = true;
        } else {
            mainClass = panel.getSelectedMainClass();
            canceled = false;
            ep.put(J2SEProjectProperties.MAIN_CLASS, mainClass == null ? "" : mainClass);
View Full Code Here

Examples of org.openide.DialogDescriptor

                } else {
                    okButton.setEnabled(panel.getSelectedMainClass() != null);
                }
            }
        });
        DialogDescriptor desc = new DialogDescriptor(panel,
                NbBundle.getMessage(MainClassWarning.class, "CTL_FileMainClass_Title"), // NOI18N
                true, options, options[0], DialogDescriptor.BOTTOM_ALIGN, null, null);
        desc.setMessageType(DialogDescriptor.INFORMATION_MESSAGE);
        Dialog dlg = DialogDisplayer.getDefault().createDialog(desc);
        dlg.setVisible(true);
        if (desc.getValue() == options[0]) {
            mainClass = panel.getSelectedMainClass();
        }
        dlg.dispose();
        return mainClass;
    }
View Full Code Here

Examples of org.openide.DialogDescriptor

        closeOption.getAccessibleContext().setAccessibleDescription(NbBundle.getMessage(J2SEActionProvider.class, "AD_BrokenPlatform_Close"));
        final ProjectInformation pi = project.getLookup().lookup(ProjectInformation.class);
        final String projectDisplayName = pi == null
                ? NbBundle.getMessage(J2SEActionProvider.class, "TEXT_BrokenPlatform_UnknownProjectName")
                : pi.getDisplayName();
        final DialogDescriptor dd = new DialogDescriptor(
                NbBundle.getMessage(J2SEActionProvider.class, "TEXT_BrokenPlatform", projectDisplayName),
                NbBundle.getMessage(J2SEActionProvider.class, "MSG_BrokenPlatform_Title"),
                true,
                new Object[]{closeOption},
                closeOption,
                DialogDescriptor.DEFAULT_ALIGN,
                null,
                null);
        dd.setMessageType(DialogDescriptor.WARNING_MESSAGE);
        final Dialog dlg = DialogDisplayer.getDefault().createDialog(dd);
        dlg.setVisible(true);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.