|
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(org.eclipse.emf.ecore.EObject container,
org.eclipse.emf.ecore.EReference reference,
org.eclipse.emf.ecore.EClass containedType)
MSL has extensions for metamodels to implement containment conditions. |
java.lang.String |
getName(org.eclipse.emf.ecore.EObject eObject)
MSL has extensions for metamodels to get object names. |
org.eclipse.emf.ecore.xmi.XMLResource |
getResource(org.eclipse.emf.ecore.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(org.eclipse.emf.ecore.EObject eObject)
MSL has extensions for metamodels to indicate which objects can have names. |
void |
sendCreateNotification(org.eclipse.emf.ecore.EObject eObject)
MSL implements creation notifications. |
void |
setName(org.eclipse.emf.ecore.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(org.eclipse.emf.ecore.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(org.eclipse.emf.ecore.EObject eObject)
getName
in interface IClipboardSupport
eObject
- an element
null
if notIClipboardSupport.isNameable(EObject)
public void setName(org.eclipse.emf.ecore.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 org.eclipse.emf.ecore.xmi.XMLResource getResource(org.eclipse.emf.ecore.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(org.eclipse.emf.ecore.EObject eObject)
sendCreateNotification
in interface IClipboardSupport
eObject
- an object newly created in the editing domainpublic boolean canContain(org.eclipse.emf.ecore.EObject container, org.eclipse.emf.ecore.EReference reference, org.eclipse.emf.ecore.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.