|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.gmt.umlx.editor.domain.SharedEditDomain
public class SharedEditDomain
A SharedEditDomain instance manages the SharedResourceSet and SharedCommandStack that are shared by multiple (possiblythemseelves multi-sheet) editors that reference common Ecore resources, for which independent Undo sequencing for each editor is not supported.
Nested Class Summary | |
---|---|
class |
SharedEditDomain.ResourceSetListener
|
Method Summary | |
---|---|
void |
attach(IActiveEditDomain editDomain)
|
static java.lang.String |
createDomainId(java.lang.String string)
|
org.eclipse.emf.ecore.resource.Resource |
createResource(EcoreURI ecoreURI,
org.eclipse.emf.ecore.EObject contents)
|
void |
detach(IActiveEditDomain editDomain)
|
SharedCommandStack |
getCommandStack()
|
org.eclipse.emf.ecore.EPackage |
getDefaultDefaultPackage()
Return the first writeable package. |
org.eclipse.emf.ecore.resource.Resource |
getDefaultDefaultResource()
Return a Resource into which orphan packages can be put. |
static SharedEditDomain |
getDomain(java.lang.String domainId)
|
static int |
getDomainCount()
|
java.lang.String |
getDomainId()
|
static java.lang.String |
getFilePath(java.lang.String domainId)
|
org.eclipse.emf.ecore.resource.Resource |
getResource(GImport gImport)
|
org.eclipse.emf.ecore.resource.ResourceSet |
getResourceSet()
|
static int |
getUriUsageCount()
|
boolean |
isDirty()
Returns true if any resource is modified |
void |
modelChanged(org.eclipse.emf.common.notify.Notification notification)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static java.lang.String createDomainId(java.lang.String string)
public static SharedEditDomain getDomain(java.lang.String domainId)
public static int getDomainCount()
public static java.lang.String getFilePath(java.lang.String domainId)
public static int getUriUsageCount()
public void attach(IActiveEditDomain editDomain)
public org.eclipse.emf.ecore.resource.Resource createResource(EcoreURI ecoreURI, org.eclipse.emf.ecore.EObject contents)
public void detach(IActiveEditDomain editDomain)
public SharedCommandStack getCommandStack()
public org.eclipse.emf.ecore.EPackage getDefaultDefaultPackage()
public org.eclipse.emf.ecore.resource.Resource getDefaultDefaultResource()
public java.lang.String getDomainId()
public org.eclipse.emf.ecore.resource.Resource getResource(GImport gImport)
public org.eclipse.emf.ecore.resource.ResourceSet getResourceSet()
public boolean isDirty()
true
if any resource is modified
ISaveablePart.isDirty()
public void modelChanged(org.eclipse.emf.common.notify.Notification notification)
modelChanged
in interface IModelChangeListener
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |