|
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 IClipboardSupport
eObject
- 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 IClipboardSupport
eObject
- an element
null
if notIClipboardSupport.isNameable(EObject)
public void setName(EObject eObject, java.lang.String name)
setName
in interface IClipboardSupport
eObject
- an elementname
- the element's new "name", or null
to clear itIClipboardSupport.isNameable(EObject)
public XMLResource getResource(EObject eObject)
IClipboardSupport
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.
getResource
in interface IClipboardSupport
eObject
- 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 IClipboardSupport
eObject
- an object newly created in the editing domainpublic boolean canContain(EObject container, EReference reference, EClass containedType)
canContain
in interface IClipboardSupport
container
- 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.