Class ImportFileStatus

  • All Implemented Interfaces:
    org.eclipse.core.runtime.IStatus

    public class ImportFileStatus
    extends org.eclipse.core.runtime.MultiStatus
    File import result status

    Contain file path of imported file

    • Field Summary

      • Fields inherited from class org.eclipse.core.runtime.Status

        CANCEL_STATUS, OK_STATUS
      • Fields inherited from interface org.eclipse.core.runtime.IStatus

        CANCEL, ERROR, INFO, OK, WARNING
    • Constructor Summary

      Constructors 
      Constructor Description
      ImportFileStatus​(int severity, String pluginId, int code, String message, Path path, Throwable exception)
      Creates and returns a new file import status object with no children.
      ImportFileStatus​(int severity, String pluginId, int code, String message, Path path, org.eclipse.core.runtime.IStatus[] children, Throwable exception)
      Creates and returns a new file import status object with the given children.
      ImportFileStatus​(int severity, String pluginId, int code, String message, Path path, org.eclipse.core.runtime.IStatus subStatus, Throwable exception)
      Creates and returns a new file import status object with the given children.
    • Constructor Detail

      • ImportFileStatus

        public ImportFileStatus​(int severity,
                                String pluginId,
                                int code,
                                String message,
                                Path path,
                                Throwable exception)
        Creates and returns a new file import status object with no children.
        Parameters:
        severity - the severity; one of OK, ERROR, INFO, WARNING, or CANCEL
        pluginId - the unique identifier of the relevant plug-in, cannot be null
        code - the plug-in-specific status code
        message - a human-readable message, localized to the current locale, cannot be null
        path - the imported file path, cannot be null
        exception - a low-level exception, or null if not applicable
      • ImportFileStatus

        public ImportFileStatus​(int severity,
                                String pluginId,
                                int code,
                                String message,
                                Path path,
                                org.eclipse.core.runtime.IStatus[] children,
                                Throwable exception)
        Creates and returns a new file import status object with the given children.
        Parameters:
        severity - the severity; one of OK, ERROR, INFO, WARNING, or CANCEL
        pluginId - the unique identifier of the relevant plug-in, cannot be null
        code - the plug-in-specific status code
        message - a human-readable message, localized to the current locale, cannot be null
        path - the imported file path, cannot be null
        children - the list of children status objects, cannot be null
        exception - a low-level exception, or null if not applicable
      • ImportFileStatus

        public ImportFileStatus​(int severity,
                                String pluginId,
                                int code,
                                String message,
                                Path path,
                                org.eclipse.core.runtime.IStatus subStatus,
                                Throwable exception)
        Creates and returns a new file import status object with the given children.
        Parameters:
        severity - the severity; one of OK, ERROR, INFO, WARNING, or CANCEL
        pluginId - the unique identifier of the relevant plug-in, cannot be null
        code - the plug-in-specific status code
        message - a human-readable message, localized to the current locale, cannot be null
        path - the imported file path, cannot be null
        subStatus - the status object to provide children statuses, cannot be null children will be sets from subStatus children if subStatus is multi-status and has no message, in oherwise subStatus will be sets as single child.
        exception - a low-level exception, or null if not applicable
    • Method Detail

      • getFilePath

        public Path getFilePath()
        Imported file path
        Returns:
        the imported file path, never null