|
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.SpecializationType
public class SpecializationType
Represents an application type that specializes other application types.
Specializations can contribute 'before' and 'after' advice to the editing commands associated with the application types that they specialize.
Constructor Summary | |
---|---|
SpecializationType(ISpecializationTypeDescriptor descriptor)
Constructs a new instance using values from the type descriptor. |
|
SpecializationType(java.lang.String id,
java.net.URL iconURL,
java.lang.String displayName,
IElementType[] elementTypes,
IElementMatcher matcher,
IContainerDescriptor descriptor,
IEditHelperAdvice editHelperAdvice)
Constructs a new specialization type. |
Method Summary | |
---|---|
IElementType[] |
getAllSuperTypes()
Gets the element supertypes for this type. |
org.eclipse.emf.ecore.EClass |
getEClass()
Gets the metaclass that is specialized by this type. |
IContainerDescriptor |
getEContainerDescriptor()
Gets the container descriptor. |
ICommand |
getEditCommand(IEditCommandRequest request)
Gets a command to edit an element of this type. |
IEditHelper |
getEditHelper()
Gets the edit helper for this element type. |
IEditHelperAdvice |
getEditHelperAdvice()
Gets my edit helper advice. |
IElementMatcher |
getMatcher()
Gets the element matcher. |
IMetamodelType |
getMetamodelType()
Gets the metamodel type that this type is a specialization of. |
java.lang.String[] |
getSpecializedTypeIds()
Gets the IDs of the specialized types. |
IElementType[] |
getSpecializedTypes()
Gets the element types that this type specializes. |
boolean |
isSpecializationOf(IElementType type)
Answers whether or not I am a specialization of type . |
java.lang.String |
toString()
|
Methods inherited from class org.eclipse.gmf.runtime.emf.type.core.ElementType |
---|
canEdit, getAdapter, getDisplayName, 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, getIconURL, getId |
Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
---|
getAdapter |
Constructor Detail |
---|
public SpecializationType(java.lang.String id, java.net.URL iconURL, java.lang.String displayName, IElementType[] elementTypes, IElementMatcher matcher, IContainerDescriptor descriptor, IEditHelperAdvice editHelperAdvice)
id
- the type idiconURL
- the URL for the icondisplayName
- the display nameelementTypes
- the element types that are specialized by this typematcher
- the element matcherdescriptor
- the container descriptoreditHelperAdvice
- the edit helper advicepublic SpecializationType(ISpecializationTypeDescriptor descriptor)
descriptor
- the specialization type descriptorMethod Detail |
---|
public IContainerDescriptor getEContainerDescriptor()
getEContainerDescriptor
in interface ISpecializationType
public IElementMatcher getMatcher()
getMatcher
in interface ISpecializationType
public IElementType[] getSpecializedTypes()
getSpecializedTypes
in interface ISpecializationType
public java.lang.String[] getSpecializedTypeIds()
getSpecializedTypeIds
in interface ISpecializationType
public boolean isSpecializationOf(IElementType type)
type
.
isSpecializationOf
in interface ISpecializationType
type
- the type to be tested
true
if I am a specialization of type
,
false
otherwise.public IEditHelperAdvice getEditHelperAdvice()
getEditHelperAdvice
in interface ISpecializationType
public org.eclipse.emf.ecore.EClass getEClass()
getEClass
in interface IElementType
getEClass
in class ElementType
public IMetamodelType getMetamodelType()
ISpecializationType
getMetamodelType
in interface ISpecializationType
public IEditHelper getEditHelper()
IElementType
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.