public class EclipseModelRegistryEnvironment extends ModelRegistryEnvironment
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
EXTENSION_POINT_NAMESPACE |
static java.lang.String |
MODEL_SERIALIZATION_PPID |
static java.lang.String |
NAMESPACE_PPID |
PLUGIN_ID
Constructor and Description |
---|
EclipseModelRegistryEnvironment() |
Modifier and Type | Method and Description |
---|---|
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.
|
protected void |
initializeModelSerializationRegistry(ModelSerializationRegistry modelSerializationRegistry)
Install any required content in the ModelSerializationRegistry.
|
protected void |
initializeNamespaceRegistry(NamespaceRegistry namespaceRegistry)
Install any required content in the NamespaceRegistry.
|
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.
|
createModelSerializationRegistry, createNamespaceRegistry, getInstance, getModelSerializationRegistry, getNamespaceRegistry, logError
public static final java.lang.String EXTENSION_POINT_NAMESPACE
public static final java.lang.String NAMESPACE_PPID
public static final java.lang.String MODEL_SERIALIZATION_PPID
public java.io.File getFile(org.eclipse.emf.common.util.URI uri) throws java.net.URISyntaxException, java.io.IOException
getFile
in class ModelRegistryEnvironment
java.net.URISyntaxException
- if the URI syntax is badjava.io.IOException
- if URL resolution failsprotected void initializeNamespaceRegistry(NamespaceRegistry namespaceRegistry)
ModelRegistryEnvironment
initializeNamespaceRegistry
in class ModelRegistryEnvironment
protected void initializeModelSerializationRegistry(ModelSerializationRegistry modelSerializationRegistry)
ModelRegistryEnvironment
initializeModelSerializationRegistry
in class ModelRegistryEnvironment
public void logTheError(java.lang.String string, java.lang.Throwable e)
logTheError
in class ModelRegistryEnvironment
public void logException(java.lang.Throwable e, boolean showErrorDialog)
public org.eclipse.core.runtime.CoreException newError(java.lang.String text, java.lang.Throwable exception)
text
- description of exceptionexception
- optional wrapped exception