public class ResourceUtils
extends java.lang.Object
Constructor and Description |
---|
ResourceUtils() |
Modifier and Type | Method and Description |
---|---|
static org.eclipse.uml2.uml.Model |
getModel(org.eclipse.emf.ecore.resource.Resource res)
Returns the
Model of the given Resource . |
static org.eclipse.emf.ecore.resource.Resource |
getNotationResource(org.eclipse.ui.IEditorPart editor)
Returns the Resource containing the notation model given the editor part.
|
static org.eclipse.emf.ecore.resource.Resource |
getNotationResource(org.eclipse.papyrus.infra.core.services.ServicesRegistry editor)
Returns the Resource containing the notation model given the
ServicesRegistry . |
static org.eclipse.emf.ecore.resource.Resource |
getUMLResource(org.eclipse.papyrus.infra.core.services.ServicesRegistry editor)
Returns the Resource containing the model given the
ServiceRegistry . |
public static org.eclipse.uml2.uml.Model getModel(org.eclipse.emf.ecore.resource.Resource res)
Model
of the given Resource
.res
- the resourcepublic static org.eclipse.emf.ecore.resource.Resource getUMLResource(org.eclipse.papyrus.infra.core.services.ServicesRegistry editor) throws org.eclipse.papyrus.infra.core.services.ServiceException
ServiceRegistry
.editor
- the ServiceRegistry
org.eclipse.papyrus.infra.core.services.ServiceException
- the service exceptionpublic static org.eclipse.emf.ecore.resource.Resource getNotationResource(org.eclipse.papyrus.infra.core.services.ServicesRegistry editor) throws org.eclipse.papyrus.infra.core.services.ServiceException
ServicesRegistry
.editor
- the ServicesRegistry
org.eclipse.papyrus.infra.core.services.ServiceException
- the service exceptionpublic static org.eclipse.emf.ecore.resource.Resource getNotationResource(org.eclipse.ui.IEditorPart editor) throws org.eclipse.papyrus.infra.core.services.ServiceException
editor
- the editororg.eclipse.papyrus.infra.core.services.ServiceException
- the service exception