org.eclipse.gmt.umlx.registry.eclipse
Class EclipseModelRegistryEnvironment

java.lang.Object
  extended by org.eclipse.gmt.umlx.registry.environment.ModelRegistryEnvironment
      extended by org.eclipse.gmt.umlx.registry.eclipse.EclipseModelRegistryEnvironment

public class EclipseModelRegistryEnvironment
extends ModelRegistryEnvironment


Field Summary
static java.lang.String ACCESSOR_KIND_PPID
           
static java.lang.String MODEL_CONTENT_PPID
           
static java.lang.String MODEL_SERIALIZATION_PPID
           
 
Fields inherited from class org.eclipse.gmt.umlx.registry.environment.ModelRegistryEnvironment
PLUGIN_ID
 
Constructor Summary
EclipseModelRegistryEnvironment()
           
 
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 org.eclipse.gmt.umlx.registry.environment.ModelRegistryEnvironment
getAccessorKindRegistry, getInstance, getModelContentRegistry, getModelSerializationRegistry, logError
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

EclipseModelRegistryEnvironment

public EclipseModelRegistryEnvironment()
Method Detail

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 exception
exception - optional wrapped exception