org.eclipse.emf.importer.util
Class ImporterUtil

java.lang.Object
  extended byorg.eclipse.emf.importer.util.ImporterUtil

public class ImporterUtil
extends Object

Utility methods and classes. This class cannot import UI code because it is used on headless scenarios.

Since:
2.1.0

Nested Class Summary
static class ImporterUtil.DecodedAction
           
static class ImporterUtil.MergedStatus
           
 
Field Summary
static int ACTION_DEFAULT
           
static int ACTION_DIALOG_NONE
           
static int ACTION_DIALOG_SHOW
           
static int ACTION_DIALOG_SHOW_ERROR
           
static int ACTION_DIALOG_SHOW_IF_HAS_CHILD
           
static int ACTION_MESSAGE_NONE
           
static int ACTION_MESSAGE_SET
           
static int ACTION_MESSAGE_SET_ERROR
           
static int ACTION_MESSAGE_SET_TYPED
           
 
Constructor Summary
ImporterUtil()
           
 
Method Summary
static int computeActionCode(IStatus status)
           
static IStatus createErrorStatus(Throwable throwable, boolean showErrorDialog)
           
static ResourceSet createResourceSet()
           
static IStatus createStatus(IStatus baseStatus, String pluginID, int code)
          Creates a new status based on the specified status, setting a new pluginID and code.
static ImporterUtil.DecodedAction decodeAction(int actionCode)
           
static MultiStatus mergeStatus(IStatus baseStatus, IStatus statusToBeMerged)
           
static String validPluginID(String base)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ACTION_DEFAULT

public static final int ACTION_DEFAULT
See Also:
Constant Field Values

ACTION_MESSAGE_NONE

public static final int ACTION_MESSAGE_NONE
See Also:
Constant Field Values

ACTION_MESSAGE_SET

public static final int ACTION_MESSAGE_SET
See Also:
Constant Field Values

ACTION_MESSAGE_SET_TYPED

public static final int ACTION_MESSAGE_SET_TYPED
See Also:
Constant Field Values

ACTION_MESSAGE_SET_ERROR

public static final int ACTION_MESSAGE_SET_ERROR
See Also:
Constant Field Values

ACTION_DIALOG_NONE

public static final int ACTION_DIALOG_NONE
See Also:
Constant Field Values

ACTION_DIALOG_SHOW_IF_HAS_CHILD

public static final int ACTION_DIALOG_SHOW_IF_HAS_CHILD
See Also:
Constant Field Values

ACTION_DIALOG_SHOW

public static final int ACTION_DIALOG_SHOW
See Also:
Constant Field Values

ACTION_DIALOG_SHOW_ERROR

public static final int ACTION_DIALOG_SHOW_ERROR
See Also:
Constant Field Values
Constructor Detail

ImporterUtil

public ImporterUtil()
Method Detail

decodeAction

public static ImporterUtil.DecodedAction decodeAction(int actionCode)

computeActionCode

public static int computeActionCode(IStatus status)

mergeStatus

public static MultiStatus mergeStatus(IStatus baseStatus,
                                      IStatus statusToBeMerged)

createStatus

public static IStatus createStatus(IStatus baseStatus,
                                   String pluginID,
                                   int code)
Creates a new status based on the specified status, setting a new pluginID and code.

Parameters:
baseStatus -
pluginID -
code -
Returns:
IStatus

createErrorStatus

public static IStatus createErrorStatus(Throwable throwable,
                                        boolean showErrorDialog)

createResourceSet

public static ResourceSet createResourceSet()

validPluginID

public static String validPluginID(String base)

Copyright 2001-2004 IBM Corporation and others.
All Rights Reserved.