|
Runtime | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.gmf.runtime.emf.ui.services.modelingassistant.GetRelTypesOnSourceAndTargetOperation
public class GetRelTypesOnSourceAndTargetOperation
The operation used with the modeling assistant service that gets the type of relationships that can be created between a given source and target element.
Field Summary |
---|
Fields inherited from interface org.eclipse.gmf.runtime.emf.ui.services.modelingassistant.IModelingAssistantOperation |
---|
GET_REL_TYPES_FOR_SRE_ON_SOURCE_ID, GET_REL_TYPES_FOR_SRE_ON_TARGET_ID, GET_REL_TYPES_ON_SOURCE_AND_TARGET_ID, GET_REL_TYPES_ON_SOURCE_ID, GET_REL_TYPES_ON_TARGET_ID, GET_TYPES_FOR_POPUP_BAR_ID, GET_TYPES_FOR_SOURCE_ID, GET_TYPES_FOR_TARGET_ID, GET_TYPES_ID, SELECT_EXISTING_ELEMENT_FOR_SOURCE_ID, SELECT_EXISTING_ELEMENT_FOR_TARGET_ID |
Constructor Summary | |
---|---|
protected |
GetRelTypesOnSourceAndTargetOperation(IAdaptable source,
IAdaptable target)
Creates a new GetRelTypesOnSourceAndTargetOperation . |
Method Summary | |
---|---|
java.lang.Object |
execute(IProvider provider)
Executes this operation on the specified provider. |
IAdaptable |
getContext()
Returns the source. |
java.lang.String |
getId()
Returns the id string to match that specified in the plugin.xml for deferred loading. |
IAdaptable |
getSource()
Gets the source. |
IAdaptable |
getTarget()
Gets the target. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected GetRelTypesOnSourceAndTargetOperation(IAdaptable source, IAdaptable target)
GetRelTypesOnSourceAndTargetOperation
.
source
- the source: adapts to editpart, view, element, etc.target
- the target: adapts to editpart, view, element, etc.Method Detail |
---|
public java.lang.String getId()
IModelingAssistantOperation
getId
in interface IModelingAssistantOperation
public IAdaptable getContext()
getContext
in interface IModelingAssistantOperation
public java.lang.Object execute(IProvider provider)
IOperation
Service implementers generally implement this method by first casting the
provider to their service specific IProvider
-derived class and
then by delegating it the execution. Delegation is accomplished through
the service specific provider derived class API.
execute
in interface IOperation
provider
- The provider on which to execute the operation.
public IAdaptable getSource()
public IAdaptable getTarget()
|
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.