Package org.eclipse.core.runtime

Examples of org.eclipse.core.runtime.MultiStatus


        if (isDerived(file)) {
          IStatus status= new Status(IStatus.WARNING, EditorsUI.PLUGIN_ID, EditorsUI.DERIVED_FILE, TextEditorMessages.FileDocumentProvider_warning_fileIsDerived, null);
          if (info.fStatus == null || info.fStatus.isOK())
            info.fStatus= status;
          else
            info.fStatus= new MultiStatus(EditorsUI.PLUGIN_ID, EditorsUI.STATE_VALIDATION_FAILED, new IStatus[] {info.fStatus, status}, TextEditorMessages.FileDocumentProvider_stateValidationFailed, null);
        }
      }
    }

    super.doValidateState(element, computationContext);
View Full Code Here


        message = t.getLocalizedMessage();
        if(message==null) {
            message = t.getMessage() == null ? "" : t.getMessage(); //$NON-NLS-1$
        }

        MultiStatus multiStatus =
                new MultiStatus(EclipseCommonPlugin.PLUGIN_ID,
                        Status.ERROR, multi, message, t);

        try {
            title = getErrorTitle(t);
        } catch (Throwable anotherT) {
            multiStatus.add(new Status(Status.ERROR,
                    EclipseCommonPlugin.PLUGIN_ID, Status.ERROR,
                    createStringStackTrace(anotherT), anotherT));
            title = FALLBACK_GENERIC_ERROR_TITLE;
        }

        try {
            message = getErrorMessage(t);
        } catch (Throwable anotherT) {
            multiStatus.add(new Status(Status.ERROR,
                    EclipseCommonPlugin.PLUGIN_ID, Status.ERROR,
                    createStringStackTrace(anotherT), anotherT));
            message = FALLBACK_GENERIC_ERROR_MESSAGE;
        }
View Full Code Here

                        monitor.done();
                        ivy.getEventManager().removeIvyListener(IvyResolveJob.this);
                    }

                    if (!problemMessages.isEmpty()) {
                        MultiStatus multiStatus = new MultiStatus(
                                IvyPlugin.ID,
                                IStatus.ERROR,
                                "Impossible to resolve dependencies of " + md.getModuleRevisionId(),
                                null);
                        for (Iterator iter = problemMessages.iterator(); iter.hasNext();) {
                            multiStatus.add(new Status(IStatus.ERROR, IvyPlugin.ID, IStatus.ERROR,
                                    (String) iter.next(), null));
                        }
                        status[0] = multiStatus;
                        return;
                    }
View Full Code Here

        }
        return SIZE_UNAVAILABLE;
    }

    public MultiStatus getInitialStatus() {
        return new MultiStatus(ServiceHolder.ID, 10001, "Your original uninstall request has been modified.", null);
    }
View Full Code Here

                        IProgressMonitor monitor) {
        return 0;
    }

    public MultiStatus getInitialStatus() {
        return new MultiStatus(ServiceHolder.ID, 10001, "Your original revert request has been modified.", null);
    }
View Full Code Here

        }
        return SIZE_UNAVAILABLE;
    }

    public MultiStatus getInitialStatus() {
        return new MultiStatus(ServiceHolder.ID, 10001, "Your original install request has been modified.", null);
    }
View Full Code Here

        return Status.OK_STATUS;
    }

    public void addSummaryStatus(IStatus status) {
        if (summaryStatus == null) {
            summaryStatus = new MultiStatus("temp", 0, "Operation details", null);
        }
        summaryStatus.add(status);
    }
View Full Code Here

    public IStatus statusOf(IInstallableUnit iu) {
        return (IStatus) iuToStatusMap.get(iu);
    }

    public void addStatus(IInstallableUnit iu, IStatus status) {
        MultiStatus iuSummaryStatus = (MultiStatus) iuToStatusMap.get(iu);
        if (iuSummaryStatus != null) {
            iuSummaryStatus.add(status);
        }
    }
View Full Code Here

    // Answers null if there is nothing to say about the ius
    public String getDetailedReport(IInstallableUnit[] ius) {
        StringBuffer buffer = new StringBuffer();
        for (int i = 0; i < ius.length; i++) {
            MultiStatus iuStatus = (MultiStatus) iuToStatusMap.get(ius[i]);
            if (iuStatus != null) {
                appendDetailText(iuStatus, buffer, 0, true);
            }
        }
        String report = buffer.toString();
View Full Code Here

    private final Matcher matcher;
    private final Matcher matcherWithBrackets;

    public ProcessDefinitionSearchVisitor(GPDSearchQuery query) {
        this.query = query;
        this.status = new MultiStatus(NewSearchUI.PLUGIN_ID, IStatus.OK, SearchMessages.TextSearchEngine_statusMessage, null);
        this.fileCharSequenceProvider = new FileCharSequenceProvider();
        this.matcher = Pattern.compile(Pattern.quote(query.getSearchText())).matcher("");
        this.matcherWithBrackets = Pattern.compile(Pattern.quote("\"" + query.getSearchText() + "\"")).matcher("");
    }
View Full Code Here

TOP

Related Classes of org.eclipse.core.runtime.MultiStatus

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.