org.eclipse.emf.importer.util
Class ImporterUtil
java.lang.Object
org.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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
ImporterUtil
public ImporterUtil()
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)