|
Runtime | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IEditHelper
A factory for commands that will modify elements of a specific type.
Clients should not implement this interface directly, but should subclass
AbstractEditHelper
instead.
Method Summary | |
---|---|
boolean |
canEdit(IEditCommandRequest req)
Answers whether or not the requested edit can be performed. |
java.util.List |
getContainedValues(org.eclipse.emf.ecore.EObject eContainer,
org.eclipse.emf.ecore.EReference feature)
Gets the values that can be contained in the feature of
eContainer . |
ICommand |
getEditCommand(IEditCommandRequest req)
Gets an edit command to perform the work requested in req . |
Method Detail |
---|
boolean canEdit(IEditCommandRequest req)
req
- the edit request
true
if the requested edit can be performed,
false
otherwise.ICommand getEditCommand(IEditCommandRequest req)
req
.
The work should be considered unsupported by this edit helper if the
command returned is null
or its
isExecutable()
method returns false
.
req
- the edit request
null
if none could be foundjava.util.List getContainedValues(org.eclipse.emf.ecore.EObject eContainer, org.eclipse.emf.ecore.EReference feature)
feature
of
eContainer
. Such values may be element types that could
be owned by the eContainer
, or actual model element
instances that can be referenced by the feature.
eContainer
- the container objectfeature
- the feature of the container object
|
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.