Examples of addCancelAction()


Examples of com.intellij.openapi.ui.DialogBuilder.addCancelAction()

    public RepoPathElement[] show(final Project pProject) {
        final DialogBuilder builder = new DialogBuilder(pProject);
        final RepositoryBrowser browser = new DialogRepoBrowser(pProject, builder);

        builder.addOkAction();
        builder.addCancelAction();
        builder.setCenterPanel(browser);
        builder.setTitle(title == null || title.trim().length() == 0 ? "Browse Repository" : title);
        builder.setOkActionEnabled(false);

        final int exitCode = builder.show();
View Full Code Here

Examples of com.intellij.openapi.ui.DialogBuilder.addCancelAction()

    if (exportDir.isEmpty() || !exportXml && !exportBoth && !exportHtml) {

      //Ask the user for a export directory
      final DialogBuilder dialogBuilder = new DialogBuilder(project);
      dialogBuilder.addOkAction();
      dialogBuilder.addCancelAction();
      dialogBuilder.setTitle("Select directory to save the exported file");
      final ExportFileDialog exportDialog = new ExportFileDialog(exportDir, dialogBuilder);
      dialogBuilder.showModal(true);
      if (dialogBuilder.getDialogWrapper().getExitCode() == DialogWrapper.CANCEL_EXIT_CODE) {
        return;
View Full Code Here

Examples of com.intellij.openapi.ui.DialogBuilder.addCancelAction()

    }

    //Ask the user for a export directory
    final DialogBuilder dialogBuilder = new DialogBuilder(project);
    dialogBuilder.addOkAction();
    dialogBuilder.addCancelAction();
    dialogBuilder.setTitle("Import previous saved bug collection xml");

    final FindBugsPreferences preferences = getPluginInterface(project).getPreferences();
    final String exportDir = preferences.getProperty(FindBugsPreferences.EXPORT_BASE_DIR, FindBugsPluginConstants.DEFAULT_EXPORT_DIR) + File.separatorChar + project.getName();
View Full Code Here

Examples of com.intellij.openapi.ui.DialogBuilder.addCancelAction()

        @Override
        public void actionPerformed(ActionEvent e) {
            DialogBuilder dialogBuilder = new DialogBuilder((Component)e.getSource());
            dialogBuilder.setTitle("Pegdown Rendering Options");
            dialogBuilder.addOkAction();
            dialogBuilder.addCancelAction();
            RenderingOptionsForm form = new RenderingOptionsForm(options.renderingOptions);
            dialogBuilder.setCenterPanel(form.getComponent());
            int exitCode = dialogBuilder.show();
            if ( exitCode == DialogWrapper.OK_EXIT_CODE ) {
                options.renderingOptions = form.get();
View Full Code Here

Examples of com.lightcrafts.ui.print.PrintLayoutDialog.addCancelAction()

        // Show the layout dialog:
        final PrintLayoutDialog dialog = new PrintLayoutDialog(
            (BufferedImage) image, layout, frame, LOCALE.get("PrintDialogTitle")
        );
        // Hook up behaviors for the dialog buttons:
        dialog.addCancelAction(
            new ActionListener() {
                public void actionPerformed(ActionEvent event) {
                    dialog.dispose();
                    if (callback != null)
                        callback.done();
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.