public class ResolveOperation
extends java.lang.Object
implements org.eclipse.gmf.runtime.common.core.service.IOperation
vr
to
EObject
.Constructor and Description |
---|
ResolveOperation(org.eclipse.emf.transaction.TransactionalEditingDomain domain,
StructuredReference sRef,
org.eclipse.emf.ecore.EClass langKind,
boolean checkOnly)
Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object object)
An
object is equal to this , if and only if it is
an instance of ResolveOperation and the vr.getProviderId()
are equal. |
java.lang.Object |
execute(org.eclipse.gmf.runtime.common.core.service.IProvider provider) |
java.lang.String |
getProviderId() |
org.eclipse.emf.ecore.EClass |
getTargetKind() |
int |
hashCode()
HashCode for ResolveOperation is defined as sum of hash of
vr.getProviderId() and
hash of targetKind . |
public ResolveOperation(org.eclipse.emf.transaction.TransactionalEditingDomain domain, StructuredReference sRef, org.eclipse.emf.ecore.EClass langKind, boolean checkOnly)
domain
- TransactionalEditingDomainsRef
- StructuredReference to be resolved to an EObject.langKind
- EClass of the EObject the StructuredReference will be
resolved tocheckOnly
- do not actually resolve, and only return a Boolean value
in the execute() method if true. When true, canResolve() instead of
resolve() in IModelMappingProvider is called. When false, execute() will
call resolve() and return the resolved EObject.public java.lang.Object execute(org.eclipse.gmf.runtime.common.core.service.IProvider provider)
execute
in interface org.eclipse.gmf.runtime.common.core.service.IOperation
IOperation.execute(org.eclipse.gmf.runtime.common.core.service.IProvider)
public java.lang.String getProviderId()
StructuredReference
.public org.eclipse.emf.ecore.EClass getTargetKind()
vr
.public boolean equals(java.lang.Object object)
object
is equal to this
, if and only if it is
an instance of ResolveOperation
and the vr.getProviderId()
are equal. The targetKind
of both object
and
this
should be equal.equals
in class java.lang.Object
Object.equals(java.lang.Object)
public int hashCode()
vr.getProviderId()
and
hash of targetKind
.hashCode
in class java.lang.Object
Object.hashCode()