|
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,
org.eclipse.emf.ecore.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. |
org.eclipse.emf.ecore.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 nameprotected ElementType(java.lang.String id, java.net.URL iconURL, java.lang.String displayName, org.eclipse.emf.ecore.EClass eClass)
id
- the type IDiconURL
- the URL for the icon, or displayName
- the display nameeClass
- the metaclass associated with the element typeMethod Detail |
---|
public java.lang.String getId()
getId
in interface IElementType
public java.net.URL getIconURL()
getIconURL
in interface IElementType
public java.lang.String getDisplayName()
getDisplayName
in interface IElementType
public org.eclipse.emf.ecore.EClass getEClass()
getEClass
in interface IElementType
public ICommand getEditCommand(IEditCommandRequest request)
IElementType
getEditCommand
in interface IElementType
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 boolean canEdit(IEditCommandRequest req)
IElementType
canEdit
in interface IElementType
req
- 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 IAdaptable
public IElementType[] getAllSuperTypes()
IElementType
getAllSuperTypes
in interface IElementType
protected 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.