|
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
public abstract class ElementType
Abstract implementation for application element types.
| Constructor Summary | |
|---|---|
protected |
ElementType(java.lang.String id,
java.net.URL iconURL,
java.lang.String displayName)
Constructs a new element type. |
protected |
ElementType(java.lang.String id,
java.net.URL iconURL,
java.lang.String displayName,
EClass eClass)
Constructs a new element type. |
| Method Summary | |
|---|---|
boolean |
canEdit(IEditCommandRequest req)
Answers whether or not the requested edit can be performed. |
java.lang.Object |
getAdapter(java.lang.Class adapter)
|
IElementType[] |
getAllSuperTypes()
Gets the element supertypes for this type. |
java.lang.String |
getDisplayName()
Gets the display name. |
EClass |
getEClass()
Gets the metamodel type. |
ICommand |
getEditCommand(IEditCommandRequest request)
Gets a command to edit an element of this type. |
java.net.URL |
getIconURL()
Gets the icon. |
java.lang.String |
getId()
Gets the unique identifier. |
protected void |
setAllSupertypes(IElementType[] supertypes)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.eclipse.gmf.runtime.emf.type.core.IElementType |
|---|
getEditHelper |
| Constructor Detail |
|---|
protected ElementType(java.lang.String id,
java.net.URL iconURL,
java.lang.String displayName)
id - the type IDiconURL - the URL for the icon, or displayName - the display name
protected ElementType(java.lang.String id,
java.net.URL iconURL,
java.lang.String displayName,
EClass eClass)
id - the type IDiconURL - the URL for the icon, or displayName - the display nameeClass - the metaclass associated with the element type| Method Detail |
|---|
public java.lang.String getId()
getId in interface IElementTypepublic java.net.URL getIconURL()
getIconURL in interface IElementTypepublic java.lang.String getDisplayName()
getDisplayName in interface IElementTypepublic EClass getEClass()
getEClass in interface IElementTypepublic ICommand getEditCommand(IEditCommandRequest request)
IElementType
getEditCommand in interface IElementTyperequest - 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 boolean canEdit(IEditCommandRequest req)
IElementType
canEdit in interface IElementTypereq - the edit request
true if the requested edit can be performed,
false otherwise.public java.lang.Object getAdapter(java.lang.Class adapter)
getAdapter in interface IAdaptablepublic IElementType[] getAllSuperTypes()
IElementType
getAllSuperTypes in interface IElementTypeprotected void setAllSupertypes(IElementType[] supertypes)
|
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.