|
Runtime | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.gmf.runtime.common.core.service.AbstractProvider
org.eclipse.gmf.runtime.common.core.service.Service
org.eclipse.gmf.runtime.emf.ui.services.modelingassistant.ModelingAssistantService
public class ModelingAssistantService
This service is used to assist the user with modeling gestures.
Nested Class Summary | |
---|---|
protected static class |
ModelingAssistantService.ProviderDescriptor
A descriptor for IModelingAssistantProvider defined
by a configuration element. |
Field Summary |
---|
Fields inherited from class org.eclipse.gmf.runtime.common.core.service.Service |
---|
INVALID_ELEMENT_MESSAGE_PATTERN |
Constructor Summary | |
---|---|
ModelingAssistantService()
|
Method Summary | |
---|---|
static ModelingAssistantService |
getInstance()
Retrieves the singleton instance of the modeling assistant service. |
java.util.List |
getRelTypesForSREOnSource(IAdaptable source)
Executes the GetRelTypesForSREOnSourceOperation using the
FORWARD execution strategy. |
java.util.List |
getRelTypesForSREOnTarget(IAdaptable target)
Executes the GetRelTypesForSREOnTargetOperation using the
FORWARD execution strategy. |
java.util.List |
getRelTypesOnSource(IAdaptable source)
Executes the GetRelTypesOnSourceOperation using the
FORWARD execution strategy. |
java.util.List |
getRelTypesOnSourceAndTarget(IAdaptable source,
IAdaptable target)
Executes the GetRelTypesOnSourceAndTargetOperation using the
FORWARD execution strategy. |
java.util.List |
getRelTypesOnTarget(IAdaptable target)
Executes the GetRelTypesOnTargetOperation using the
FORWARD execution strategy. |
java.util.List |
getTypes(java.lang.String hint,
IAdaptable data)
Executes the GetTypesOperation using the
FORWARD execution strategy. |
java.util.List |
getTypesForActionBar(IAdaptable host)
Deprecated. Renamed to getTypesForPopupBar(IAdaptable) |
java.util.List |
getTypesForPopupBar(IAdaptable host)
Executes the GetTypesForPopupBarOperation using the
FORWARD execution strategy. |
java.util.List |
getTypesForSource(IAdaptable target,
IElementType relationshipType)
Executes the GetTypesForSourceOperation using the
FORWARD execution strategy. |
java.util.List |
getTypesForTarget(IAdaptable source,
IElementType relationshipType)
Executes the GetTypesForTargetOperation using the
FORWARD execution strategy. |
protected Service.ProviderDescriptor |
newProviderDescriptor(IConfigurationElement element)
Creates a new provider descriptor for the specified configuration element . |
org.eclipse.emf.ecore.EObject |
selectExistingElementForSource(IAdaptable target,
IElementType relationshipType)
Executes the SelectExistingElementForSourceOperation using the
FIRST execution strategy. |
org.eclipse.emf.ecore.EObject |
selectExistingElementForTarget(IAdaptable source,
IElementType relationshipType)
Executes the SelectExistingElementForTargetOperation using the
FIRST execution strategy. |
Methods inherited from class org.eclipse.gmf.runtime.common.core.service.Service |
---|
addProvider, clearCache, configureProviders, configureProviders, createPriorityCache, execute, executeUnique, getAllProviders, getCachingKey, getPriority, getProviders, isOptimistic, isOptimized, providerChanged, provides, provides, removeProvider |
Methods inherited from class org.eclipse.gmf.runtime.common.core.service.AbstractProvider |
---|
addProviderChangeListener, fireProviderChange, removeProviderChangeListener |
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.common.core.service.IProvider |
---|
addProviderChangeListener, provides, removeProviderChangeListener |
Constructor Detail |
---|
public ModelingAssistantService()
Method Detail |
---|
protected Service.ProviderDescriptor newProviderDescriptor(IConfigurationElement element)
Service
element
.
newProviderDescriptor
in class Service
element
- The configuration element from which to create the descriptor.
public static ModelingAssistantService getInstance()
public java.util.List getTypes(java.lang.String hint, IAdaptable data)
GetTypesOperation
using the
FORWARD
execution strategy.
getTypes
in interface IModelingAssistantProvider
hint
- identifies the hint or gesturedata
- IElementType
)public java.util.List getRelTypesOnSource(IAdaptable source)
GetRelTypesOnSourceOperation
using the
FORWARD
execution strategy.
getRelTypesOnSource
in interface IModelingAssistantProvider
source
- the source: adapts to editpart, view, element, etc.
IElementType
)public java.util.List getRelTypesOnTarget(IAdaptable target)
GetRelTypesOnTargetOperation
using the
FORWARD
execution strategy.
getRelTypesOnTarget
in interface IModelingAssistantProvider
target
- the target: adapts to editpart, view, element, etc.
IElementType
)public java.util.List getRelTypesOnSourceAndTarget(IAdaptable source, IAdaptable target)
GetRelTypesOnSourceAndTargetOperation
using the
FORWARD
execution strategy.
getRelTypesOnSourceAndTarget
in interface IModelingAssistantProvider
source
- the source: adapts to editpart, view, element, etc.target
- the target: adapts to editpart, view, element, etc.
IElementType
)public java.util.List getRelTypesForSREOnSource(IAdaptable source)
GetRelTypesForSREOnSourceOperation
using the
FORWARD
execution strategy.
getRelTypesForSREOnSource
in interface IModelingAssistantProvider
source
- the source: adapts to editpart, view, element, etc.
IElementType
)public java.util.List getRelTypesForSREOnTarget(IAdaptable target)
GetRelTypesForSREOnTargetOperation
using the
FORWARD
execution strategy.
getRelTypesForSREOnTarget
in interface IModelingAssistantProvider
target
- the target: adapts to editpart, view, element, etc.
IElementType
objects)public java.util.List getTypesForSource(IAdaptable target, IElementType relationshipType)
GetTypesForSourceOperation
using the
FORWARD
execution strategy.
getTypesForSource
in interface IModelingAssistantProvider
target
- the target: adapts to editpart, view, element, etc.relationshipType
- the relationship type to be created
IElementType
objects)public java.util.List getTypesForTarget(IAdaptable source, IElementType relationshipType)
GetTypesForTargetOperation
using the
FORWARD
execution strategy.
getTypesForTarget
in interface IModelingAssistantProvider
source
- the source: adapts to editpart, view, element, etc.relationshipType
- the relationship type to be created
IElementType
objects)public org.eclipse.emf.ecore.EObject selectExistingElementForSource(IAdaptable target, IElementType relationshipType)
SelectExistingElementForSourceOperation
using the
FIRST
execution strategy.
selectExistingElementForSource
in interface IModelingAssistantProvider
target
- the target: adapts to editpart, view, element, etc.relationshipType
- the relationship type to be created
EObject
the user selected, or null if
an error occurred or the gesture was cancelled.public org.eclipse.emf.ecore.EObject selectExistingElementForTarget(IAdaptable source, IElementType relationshipType)
SelectExistingElementForTargetOperation
using the
FIRST
execution strategy.
selectExistingElementForTarget
in interface IModelingAssistantProvider
source
- the source: adapts to editpart, view, element, etc.relationshipType
- the relationship type to be created
IElement
the user selected, or null if
an error occurred or the gesture was cancelled.public java.util.List getTypesForPopupBar(IAdaptable host)
GetTypesForPopupBarOperation
using the
FORWARD
execution strategy.
getTypesForPopupBar
in interface IModelingAssistantProvider
host
- the host on which the popup bar will be displayed: adapts to
editpart, view, element, etc.
IElementType
)public java.util.List getTypesForActionBar(IAdaptable host)
getTypesForPopupBar(IAdaptable)
GetTypesForPopupBarOperation
using the
FORWARD
execution strategy.
org.eclipse.gmf.runtime.emf.ui.services.modelingassistant.IModelingAssistantProvider#getTypesForActionBar(IAdaptable)
|
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.