Package org.openquark.util.ui

Examples of org.openquark.util.ui.DetailsDialog.doModal()


           
            DetailsDialog.MessageType messageType = capturedStatus.getSeverity() == Status.Severity.WARNING ?
                        DetailsDialog.MessageType.WARNING : DetailsDialog.MessageType.ERROR;
           
            DetailsDialog dialog = new DetailsDialog(this, title, message, details, messageType);
            dialog.doModal();
        }
       
        return new GemGenerator.GeneratedDefinitions() {

            public ModuleDefn getModuleDefn() {
View Full Code Here


           
            DetailsDialog.MessageType messageType = initStatus.getSeverity() == Status.Severity.WARNING ?
                        DetailsDialog.MessageType.WARNING : DetailsDialog.MessageType.ERROR;
           
            DetailsDialog dialog = new DetailsDialog(this, title, message, details, messageType);
            dialog.doModal();
           
            if (initStatus.getSeverity().compareTo(Status.Severity.ERROR) >= 0) {
                System.exit(-1);
            }
        }
View Full Code Here

                            String errMessage = getResourceString("ErrorSavingGemDefinition");

                            DetailsDialog dialog = new DetailsDialog(GemCutter.this, errTitle, errMessage,
                                    saveStatus.getDebugMessage(), DetailsDialog.MessageType.ERROR);

                            dialog.doModal();
   
                            // Don't bother trying to save the other gems.
                            break;
                        }
                    }
View Full Code Here

            private void showProblemsGeneratingModuleDialog(DetailsDialog.MessageType messageType, String details) {
                String title = getResourceString("WindowTitle");
                String message = getResourceString("ProblemsGeneratingModule");
               
                DetailsDialog dialog = new DetailsDialog(GemCutter.this, title, message, details, messageType);
                dialog.doModal();
            }
        };
       
        return factoryAction;
    }
View Full Code Here

        // Just dump the text to a details dialog.
        VaultStatus vaultStatus = getWorkspace().getVaultStatus();
        DetailsDialog detailsDialog = new DetailsDialog(GemCutter.this, getResourceString("WorkspaceVaultStatusDialogTitle"), getResourceString("WorkspaceCurrentVaultStatus"),
                                                        vaultStatus.getStatusString(), DetailsDialog.MessageType.PLAIN);
        detailsDialog.setDetailsVisible(true);
        detailsDialog.doModal();
    }

    /**
     * @return the submenu item to sync the workspace.
     */
 
View Full Code Here

            String title = getResourceString("SyncWorkspaceWarningTitle");
            String message = getResourceString("SyncWorkspaceWarningMessage");
            DetailsDialog detailsDialog = new DetailsDialog(GemCutter.this, title, message,
                                                            syncStatus.getDebugMessage(), DetailsDialog.MessageType.WARNING);
            detailsDialog.setDetailsVisible(true);
            detailsDialog.doModal();
        }
       
        // Display the result of the sync.
        Set<ResourceIdentifier> updatedResourceIdentifierSet = syncInfo.getUpdatedResourceIdentifiers();
        Set<ResourceIdentifier> resourceImportFailureSet = syncInfo.getResourceImportFailures();
View Full Code Here

        String message = getResourceString("SyncWorkspaceResultMessage");
        DetailsDialog detailsDialog = new DetailsDialog(GemCutter.this, title, message,
                                                        syncResultMessage, DetailsDialog.MessageType.PLAIN);
       
        detailsDialog.setDetailsVisible(true);
        detailsDialog.doModal();
       
        // Compile modified modules.
        recompileWorkspace(true);
    }
View Full Code Here

            details.append(getResourceString("WorkspaceInfo_None"));
        }
       
        DetailsDialog dialog = new DetailsDialog(GemCutter.this, title, message, details.toString(), (Icon)null);
        dialog.setDetailsVisible(true);
        dialog.doModal();
    }

    /**
     * Do the work necessary to carry out a user-initiated action to change the current working module in the GemCutter
     * @param newWorkingModule the name of the new working module.
View Full Code Here

        if (!loadStatus.isOK()) {
            String title = getResourceString("WarningDialogTitle");
            String message = getResourceString("OpenErrorsWarning");
            String details = loadStatus.getDebugMessage();
            DetailsDialog dialog = new DetailsDialog(this, title, message, details, DetailsDialog.MessageType.WARNING);
            dialog.doModal();
        }
           
        // reset the table top explorer
        getTableTop().addGemGraphChangeListener(getTableTopExplorer());
        getTableTopExplorerAdapter().getTableTopExplorer().rebuildTree();
View Full Code Here

                getResourceString("ExportCarMessagesDialogTitle"),
                getResourceString("ExportCarMessagesDialogMessage"),
                details.toString(),
                DetailsDialog.MessageType.INFORMATION);
           
            dialog.doModal();
        }
       
        /**
         * {@inheritDoc}
         */
 
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.