org.eclipse.gmt.umlx.registry.eclipse
Class EclipseModelRegistryEnvironment
java.lang.Object
org.eclipse.gmt.umlx.registry.environment.ModelRegistryEnvironment
org.eclipse.gmt.umlx.registry.eclipse.EclipseModelRegistryEnvironment
public class EclipseModelRegistryEnvironment
- extends ModelRegistryEnvironment
Method Summary |
java.io.File |
getFile(org.eclipse.emf.common.util.URI uri)
Return a File to access the URI, or null if the URI cannot be
resolved to a file protocol. |
void |
logException(java.lang.Throwable e,
boolean showErrorDialog)
|
void |
logTheError(java.lang.String string,
java.lang.Throwable e)
|
org.eclipse.core.runtime.CoreException |
newError(java.lang.String text,
java.lang.Throwable exception)
Return a CoreException with Error severity containing a text description and optionally
wrapping a further exception. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ACCESSOR_KIND_PPID
public static final java.lang.String ACCESSOR_KIND_PPID
- See Also:
- Constant Field Values
MODEL_CONTENT_PPID
public static final java.lang.String MODEL_CONTENT_PPID
- See Also:
- Constant Field Values
MODEL_SERIALIZATION_PPID
public static final java.lang.String MODEL_SERIALIZATION_PPID
- See Also:
- Constant Field Values
EclipseModelRegistryEnvironment
public EclipseModelRegistryEnvironment()
getFile
public java.io.File getFile(org.eclipse.emf.common.util.URI uri)
throws java.net.URISyntaxException,
java.io.IOException
- Return a File to access the URI, or null if the URI cannot be
resolved to a file protocol.
- Overrides:
getFile
in class ModelRegistryEnvironment
- Returns:
- the File
- Throws:
java.net.URISyntaxException
- if the URI syntax is bad
java.io.IOException
- if URL resolution fails
logTheError
public void logTheError(java.lang.String string,
java.lang.Throwable e)
- Specified by:
logTheError
in class ModelRegistryEnvironment
logException
public void logException(java.lang.Throwable e,
boolean showErrorDialog)
newError
public org.eclipse.core.runtime.CoreException newError(java.lang.String text,
java.lang.Throwable exception)
- Return a CoreException with Error severity containing a text description and optionally
wrapping a further exception.
- Parameters:
text
- description of exceptionexception
- optional wrapped exception