|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.gmt.weaver.plugin.util.WeaverInterfaceUtil
public class WeaverInterfaceUtil
Util class for extension panels
| Constructor Summary | |
|---|---|
WeaverInterfaceUtil()
|
|
| Method Summary | |
|---|---|
static IIdentifierAdapter |
createGetIdentifierAdapter(org.eclipse.emf.ecore.EObject eObj)
return the identifier adapter for generating IDs for a given object. |
static org.eclipse.emf.ecore.EObject |
createGetWElementRef(org.eclipse.emf.ecore.EObject sourceObj,
WeaverModelManager manager,
org.eclipse.emf.edit.domain.EditingDomain editingDomain)
gets (or create) a new WelementRef and generates and ID for it |
static java.lang.String |
getNameProperty(org.eclipse.emf.ecore.EObject sourceObj)
tries to get a name property value from an object . if it doees not exist returns its URI |
static org.eclipse.emf.ecore.EObject |
getWModelRef(java.lang.String uri,
org.eclipse.emf.ecore.resource.Resource res)
returns the WModelRef that points to the resource passed in the URI |
static org.eclipse.emf.ecore.EObject |
getWModelRef(java.lang.String uri,
WeaverModelManager manager)
returns the WModelRef that points to the resource passed in the URI |
static void |
setAssociatedWLink(org.eclipse.emf.ecore.EObject wLink,
org.eclipse.emf.ecore.EObject wAssociationEnd,
WeaverModelManager mngr,
org.eclipse.emf.edit.domain.EditingDomain domain)
sets a new associated WLink for the specified WAssociationEnd |
static void |
setLinkEndValueProperty(org.eclipse.emf.ecore.EObject aSource,
org.eclipse.emf.ecore.EObject target,
WeaverModelManager manager,
org.eclipse.emf.edit.domain.EditingDomain editingDomain)
sets the element property of the WLinkEnd object associated with the current action |
static void |
setNewAssociationEnd(org.eclipse.emf.ecore.EObject wLink,
org.eclipse.emf.ecore.EObject wAssociation,
java.lang.String associationEndTypeDescr,
java.lang.String referenceName,
WeaverModelManager modelManager,
org.eclipse.emf.edit.domain.EditingDomain editingDomain)
creates a new WAssociationEnd for the given association and associates the WLink passed as parameter |
static java.lang.Object |
setNewWLink(org.eclipse.emf.ecore.EObject parent,
WeaverModelManager manager,
org.eclipse.emf.edit.domain.EditingDomain editingDomain)
creates a new WLink for the selected parent element |
static java.lang.Object |
setNewWLinkEnd(org.eclipse.emf.ecore.EObject aSource,
org.eclipse.emf.ecore.EObject target,
java.lang.String linkEndTypeDescr,
java.lang.String referenceName,
WeaverModelManager manager,
org.eclipse.emf.edit.domain.EditingDomain editingDomain)
creates a new WLinkEnd for the selected WLink element |
static void |
setWLinkEndProperties(org.eclipse.emf.ecore.EObject wLinkEnd,
org.eclipse.emf.ecore.EObject elementRef,
org.eclipse.emf.edit.domain.EditingDomain editingDomain)
sets the value of name and element feature of a WLinkEnd |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WeaverInterfaceUtil()
| Method Detail |
|---|
public static void setAssociatedWLink(org.eclipse.emf.ecore.EObject wLink,
org.eclipse.emf.ecore.EObject wAssociationEnd,
WeaverModelManager mngr,
org.eclipse.emf.edit.domain.EditingDomain domain)
wLink - the wlink derived instancewAssociationEnd - the WAssociationEnd derived instancemngr - the model managerdomain - the editing domain
public static java.lang.Object setNewWLinkEnd(org.eclipse.emf.ecore.EObject aSource,
org.eclipse.emf.ecore.EObject target,
java.lang.String linkEndTypeDescr,
java.lang.String referenceName,
WeaverModelManager manager,
org.eclipse.emf.edit.domain.EditingDomain editingDomain)
aSource - the object to be woventarget - the WLink where the WLinkEnd will be createdlinkEndTypeDescr - the type of WLinkEndmanager - editingDomain -
public static java.lang.Object setNewWLink(org.eclipse.emf.ecore.EObject parent,
WeaverModelManager manager,
org.eclipse.emf.edit.domain.EditingDomain editingDomain)
parent - it might be a WModel or WLink where the WLink will be createdmanager - editingDomain -
public static void setNewAssociationEnd(org.eclipse.emf.ecore.EObject wLink,
org.eclipse.emf.ecore.EObject wAssociation,
java.lang.String associationEndTypeDescr,
java.lang.String referenceName,
WeaverModelManager modelManager,
org.eclipse.emf.edit.domain.EditingDomain editingDomain)
wLink - the associated elementwAssociation - the associationassociationEndTypeDescr - WAssociationEnd typemodelManager - editingDomain -
public static void setWLinkEndProperties(org.eclipse.emf.ecore.EObject wLinkEnd,
org.eclipse.emf.ecore.EObject elementRef,
org.eclipse.emf.edit.domain.EditingDomain editingDomain)
wLinkEnd - elementRef - the WElementRef to be referenced in refeditingDomain -
public static org.eclipse.emf.ecore.EObject createGetWElementRef(org.eclipse.emf.ecore.EObject sourceObj,
WeaverModelManager manager,
org.eclipse.emf.edit.domain.EditingDomain editingDomain)
sourceObj - the source objectmanager - editingDomain -
WeaverExceptionpublic static java.lang.String getNameProperty(org.eclipse.emf.ecore.EObject sourceObj)
sourceObj -
public static org.eclipse.emf.ecore.EObject getWModelRef(java.lang.String uri,
WeaverModelManager manager)
uri - manager -
public static org.eclipse.emf.ecore.EObject getWModelRef(java.lang.String uri,
org.eclipse.emf.ecore.resource.Resource res)
uri - res -
public static void setLinkEndValueProperty(org.eclipse.emf.ecore.EObject aSource,
org.eclipse.emf.ecore.EObject target,
WeaverModelManager manager,
org.eclipse.emf.edit.domain.EditingDomain editingDomain)
aSource - the object source with a given URItarget - the WLinkEndmanager - editingDomain - public static IIdentifierAdapter createGetIdentifierAdapter(org.eclipse.emf.ecore.EObject eObj)
eObj -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||