|
Runtime | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.gmf.runtime.emf.core.clipboard.AbstractClipboardSupport
public abstract class AbstractClipboardSupport
A partial implementation of the IClipboardSupport interface that
uses MSL facilities to implement some of the metamodel-specific hooks that
MSL, itself, provides support for.
| Constructor Summary | |
|---|---|
AbstractClipboardSupport()
Initializes me. |
|
| Method Summary | |
|---|---|
boolean |
canContain(EObject container,
EReference reference,
EClass containedType)
MSL has extensions for metamodels to implement containment conditions. |
java.lang.String |
getName(EObject eObject)
MSL has extensions for metamodels to get object names. |
XMLResource |
getResource(EObject eObject)
Obtains the resource containing an eObject or, if the
eObject is to be copied but is not attached to a resource,
the resource containing some related element that the detached
eObject would otherwise have been in. |
boolean |
isNameable(EObject eObject)
MSL has extensions for metamodels to indicate which objects can have names. |
void |
sendCreateNotification(EObject eObject)
MSL implements creation notifications. |
void |
setName(EObject eObject,
java.lang.String name)
MSL has extensions for metamodels to set object names. |
| 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.clipboard.core.IClipboardSupport |
|---|
destroy, getExcludedCopyObjects, getOverrideChildPasteOperation, getOverrideCopyOperation, getPasteCollisionAction, hasPasteOption, isCopyAlways, performPostPasteProcessing, shouldOverrideChildPasteOperation, shouldOverrideCopyOperation, shouldSaveContainmentFeature |
| Constructor Detail |
|---|
public AbstractClipboardSupport()
| Method Detail |
|---|
public boolean isNameable(EObject eObject)
isNameable in interface IClipboardSupporteObject - an EObject
eObject supports a "name" of some kindIClipboardSupport.getName(EObject),
IClipboardSupport.setName(EObject, String)public java.lang.String getName(EObject eObject)
getName in interface IClipboardSupporteObject - an element
null if notIClipboardSupport.isNameable(EObject)
public void setName(EObject eObject,
java.lang.String name)
setName in interface IClipboardSupporteObject - an elementname - the element's new "name", or null to clear itIClipboardSupport.isNameable(EObject)public XMLResource getResource(EObject eObject)
IClipboardSupporteObject or, if the
eObject is to be copied but is not attached to a resource,
the resource containing some related element that the detached
eObject would otherwise have been in.
getResource in interface IClipboardSupporteObject - the object for which we need the associated resource
eObject is
detached, some resource from which it is reachable via some
other attached objectpublic void sendCreateNotification(EObject eObject)
sendCreateNotification in interface IClipboardSupporteObject - an object newly created in the editing domain
public boolean canContain(EObject container,
EReference reference,
EClass containedType)
canContain in interface IClipboardSupportcontainer - a prospective containing objectreference - the containment reference to checkcontainedType - the type of the prospective contained object
true if an element of the specified type is
permitted to be contained as indicated; false, otherwise
|
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.