|
Runtime | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.gmf.runtime.emf.type.core.ElementType
org.eclipse.gmf.runtime.emf.type.core.MetamodelType
public class MetamodelType
Represents an element type that maps directly to a metamodel element type (
EClass
). There is only one metamodel type registered with the
ElementTypeRegistry
for a given EClass.
Provides an edit helper for editing model elements with the same
EClass
.
Constructor Summary | |
---|---|
MetamodelType(IMetamodelTypeDescriptor descriptor)
Constructs a new metamodel type using values from the type descriptor. |
|
MetamodelType(java.lang.String id,
java.net.URL iconURL,
java.lang.String displayName,
org.eclipse.emf.ecore.EClass eClass,
IEditHelper editHelper)
Constructs a new metamodel type. |
Method Summary | |
---|---|
IElementType[] |
getAllSuperTypes()
Gets the element supertypes for this type. |
ICommand |
getEditCommand(IEditCommandRequest request)
Gets a command to edit an element of this type. |
IEditHelper |
getEditHelper()
Gets the edit helper. |
java.lang.String |
toString()
|
Methods inherited from class org.eclipse.gmf.runtime.emf.type.core.ElementType |
---|
canEdit, getAdapter, getDisplayName, getEClass, getIconURL, getId, setAllSupertypes |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.eclipse.gmf.runtime.emf.type.core.IElementType |
---|
canEdit, getDisplayName, getEClass, getIconURL, getId |
Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
---|
getAdapter |
Constructor Detail |
---|
public MetamodelType(java.lang.String id, java.net.URL iconURL, java.lang.String displayName, org.eclipse.emf.ecore.EClass eClass, IEditHelper editHelper)
id
- the idiconURL
- the URL for the icondisplayName
- the display nameeClass
- the metaclasseditHelper
- the edit helperpublic MetamodelType(IMetamodelTypeDescriptor descriptor)
descriptor
- the metamodel type descriptor.Method Detail |
---|
public IEditHelper getEditHelper()
getEditHelper
in interface IElementType
public ICommand getEditCommand(IEditCommandRequest request)
IElementType
getEditCommand
in interface IElementType
getEditCommand
in class ElementType
request
- the edit request
null
if none is found. The
command returned may not be executable, and this should be tested
before it is executed.public IElementType[] getAllSuperTypes()
IElementType
getAllSuperTypes
in interface IElementType
getAllSuperTypes
in class ElementType
public java.lang.String toString()
toString
in class java.lang.Object
|
Runtime | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp., Borland Software Corp., and others 2005,2006. All rights reserved.