Overview | Package | Class | Use | Tree | Deprecated | Index
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.eclipse.emf.ecp.view.spi.model
Class DiagnosticMessageExtractor

    java.lang.Object
      org.eclipse.emf.ecp.view.spi.model.DiagnosticMessageExtractor

    public final class DiagnosticMessageExtractor

extends Object

This Util allows to extract messages from Diagnostics.

Since:
  1.5
Author:
  Eugen Neufeld

Method Summary
`static String` | `getMessage(Collection<org.eclipse.emf.common.util.Diagnostic> diagnostics)` Extract the message to display from a collection of `Diagnostics`.
`static String` | `getMessage(org.eclipse.emf.common.util.Diagnostic diagnostic)` Extract the message to display from a single `Diagnostic`.

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Method Detail

### getMessage

    public static String getMessage(org.eclipse.emf.common.util.Diagnostic diagnostic)

  Extract the message to display from a single `Diagnostic`. If the severity of the Diagnostic is `Diagnostic.OK` then the message is empty.

  Parameters:
    `diagnostic` - The `Diagnostic` to get the message for
  Returns:
    The message or an empty string if the severity of the `Diagnostic` is ok.

### getMessage

    public static String getMessage(Collection<org.eclipse.emf.common.util.Diagnostic> diagnostics)

  Extract the message to display from a collection of `Diagnostics`. If the severity of the Diagnostic is `Diagnostic.OK` then it is skipped.

  Parameters:
    `diagnostics` - The Collection of `Diagnostics` to get the message for
  Returns:
    The compound message for all `Diagnostics`

Overview | Package | Class | Use | Tree | Deprecated | Index
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2015. All Rights Reserved.