Package com.salesforce.ide.core.internal.utils

Examples of com.salesforce.ide.core.internal.utils.DeployMessageExtractor


        }

        // clear all existing save markers on deployed resources
        MarkerUtils.getInstance().clearSaveMarkers(projectPackageList.getAllComponentResources(false));

        DeployMessageExtractor messageExtractor = new DeployMessageExtractor(deployResultHandler);

        handleDeployErrorMessages(projectPackageList, messageExtractor.getDeployFailures(), monitor);

        // retrieve result will clear markers for successfully saved files, so it must be
        // done before adding the deploy warning messages
        handleRetrieveResult(projectPackageList, deployResultHandler.getRetrieveResultHandler(), save, monitor);

        handleDeployWarningMessages(projectPackageList, messageExtractor.getDeployWarnings(), monitor);

        handleRunTestResult(projectPackageList, deployResultHandler.getRunTestsResultHandler(), monitor);

        monitorWork(monitor);
View Full Code Here


        handleFailureAndWarningResults();
        handleCodeCoverageResults();
    }

    protected void handleFailureAndWarningResults() {
        DeployMessageExtractor extractor = new DeployMessageExtractor(deployResultHandler);

        FontRegistry registry = new FontRegistry();
        Font boldFont = registry.getBold(Display.getCurrent().getSystemFont().getFontData()[0].getName());

        Collection<DeployMessage> deploySuccesses = extractor.getDeploySuccesses();
        handleDeploySuccessMessages(deploySuccesses);

        Collection<DeployMessage> deployFailures = extractor.getDeployFailures();
        Collection<RunTestFailure> testFailures = extractor.getTestFailures();
        if (!deployFailures.isEmpty() || !testFailures.isEmpty()) {
            TreeItem rootFailureTreeItem = new TreeItem(resultsTree, SWT.NONE);
            rootFailureTreeItem.setText("Failures");
            rootFailureTreeItem.setImage(failureIcon);
            rootFailureTreeItem.setForeground(rootFailureTreeItem.getDisplay().getSystemColor(SWT.COLOR_RED));
            rootFailureTreeItem.setFont(boldFont);
            rootFailureTreeItem.setExpanded(true);

            handleDeployFailureMessages(deployFailures, rootFailureTreeItem);
            handleDeployTestFailureMessages(testFailures, rootFailureTreeItem);
        }

        Collection<DeployMessage> deployWarnings = extractor.getDeployWarnings();
        List<CodeCoverageWarning> testWarnings = extractor.getTestWarnings();
        if (!deployWarnings.isEmpty()) {
          TreeItem rootWarningTreeItem = new TreeItem(resultsTree, SWT.NONE);
            rootWarningTreeItem.setText("Deploy Warnings");
            rootWarningTreeItem.setImage(warningIcon);
            rootWarningTreeItem.setForeground(rootWarningTreeItem.getDisplay().getSystemColor(SWT.COLOR_DARK_YELLOW));
View Full Code Here

TOP

Related Classes of com.salesforce.ide.core.internal.utils.DeployMessageExtractor

Copyright © 2018 www.massapicom. 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.