|
 |
|
|
Uses of Interface org.eclipse.gmf.runtime.notation.View
Methods in
org.eclipse.gmf.runtime.diagram.core.providers with parameters of type
View
|
Edge
|
IViewProvider.
createEdge
(
IAdaptable semanticAdapter,
View containerView,
java.lang.String semanticHint,
int index,
boolean persisted,
PreferencesHint preferencesHint)
create an Edge element. |
Edge
|
AbstractViewProvider.
createEdge
(
IAdaptable semanticAdapter,
View containerView,
java.lang.String semanticHint,
int index,
boolean persisted,
PreferencesHint preferencesHint)
|
Node
|
IViewProvider.
createNode
(
IAdaptable semanticAdapter,
View containerView,
java.lang.String semanticHint,
int index,
boolean persisted,
PreferencesHint preferencesHint)
create a Node . |
Node
|
AbstractViewProvider.
createNode
(
IAdaptable semanticAdapter,
View containerView,
java.lang.String semanticHint,
int index,
boolean persisted,
PreferencesHint preferencesHint)
|
protected java.lang.Class
|
AbstractViewProvider.
getEdgeViewClass
(
IAdaptable semanticAdapter,
View containerView,
java.lang.String semanticHint)
Returns the edge view class to instantiate based on the passed params |
protected java.lang.Class
|
AbstractViewProvider.
getNodeViewClass
(
IAdaptable semanticAdapter,
View containerView,
java.lang.String semanticHint)
Returns the node view class to instantiate based on the passed params |
boolean
|
ViewProviderConfiguration.
supports
(java.lang.Class viewKind,
IAdaptable semanticAdapter,
View containerView,
java.lang.String semanticHint)
Determines if the provider understands the given context
The provider understands the request if:
1- There are no listed provider contexts
2- The context matches one of the provider contexts |
Methods in
org.eclipse.gmf.runtime.diagram.core.services that return
View
|
View
|
ViewService.
createEdge
(
IAdaptable semanticAdapter,
View containerView,
java.lang.String semanticHint,
int index,
PreferencesHint preferencesHint)
|
View
|
ViewService.
createView
(java.lang.Class viewKind,
IAdaptable semanticAdapter,
View containerView,
java.lang.String semanticHint,
int index,
boolean persisted,
PreferencesHint preferencesHint)
A convenience method to create a view with the given parameters |
Methods in
org.eclipse.gmf.runtime.diagram.core.services with parameters of type
View
|
Edge
|
ViewService.
createEdge
(
IAdaptable semanticAdapter,
View containerView,
java.lang.String semanticHint,
int index,
boolean persisted,
PreferencesHint preferencesHint)
|
View
|
ViewService.
createEdge
(
IAdaptable semanticAdapter,
View containerView,
java.lang.String semanticHint,
int index,
PreferencesHint preferencesHint)
|
static
Edge
|
ViewService.
createEdge
(
View source,
View target,
org.eclipse.emf.ecore.EObject eObject,
java.lang.String type,
PreferencesHint preferencesHint)
Creates an edge for a given eObject and with a given type and connects it
between a given source and a given target |
static
Edge
|
ViewService.
createEdge
(
View source,
View target,
java.lang.String type,
PreferencesHint preferencesHint)
Creates an edge with a given type and connects it between the given
source and target |
Node
|
ViewService.
createNode
(
IAdaptable semanticAdapter,
View containerView,
java.lang.String semanticHint,
int index,
boolean persisted,
PreferencesHint preferencesHint)
creates a Node |
Node
|
ViewService.
createNode
(
IAdaptable semanticElement,
View containerView,
java.lang.String semanticHint,
int index,
PreferencesHint preferencesHint)
creates a persisted Node |
static
Node
|
ViewService.
createNode
(
View container,
org.eclipse.emf.ecore.EObject eObject,
java.lang.String type,
PreferencesHint preferencesHint)
Creates a node for a given eObject and with a given type and inserts it
into a given container |
static
Node
|
ViewService.
createNode
(
View container,
java.lang.String type,
PreferencesHint preferencesHint)
Creates a node for a with a given type and inserts it thegiven container |
View
|
ViewService.
createView
(java.lang.Class viewKind,
IAdaptable semanticAdapter,
View containerView,
java.lang.String semanticHint,
int index,
boolean persisted,
PreferencesHint preferencesHint)
A convenience method to create a view with the given parameters |
boolean
|
ViewService.
provides
(java.lang.Class viewKind,
IAdaptable semanticAdapter,
View containerView,
java.lang.String semanticHint,
int index,
boolean persisted,
PreferencesHint preferencesHint)
A convenience method to determine whether there is a provider
that can create a view with the given parameters |
Constructors in
org.eclipse.gmf.runtime.diagram.core.services.view with parameters of type
View
|
CreateChildViewOperation
(
IAdaptable semanticAdapter,
View containerView,
java.lang.String semanticHint,
int index,
boolean persisted,
PreferencesHint preferencesHint)
Method CreateChildViewOperation. |
CreateEdgeViewOperation
(
IAdaptable semanticAdapter,
View containerView,
java.lang.String semanticHint,
int index,
boolean persisted,
PreferencesHint preferencesHint)
Creates a new instance. |
CreateNodeViewOperation
(
IAdaptable semanticAdapter,
View containerView,
java.lang.String semanticHint,
int index,
boolean persisted,
PreferencesHint preferencesHint)
Constructor for CreateNodeViewOperation. |
CreateViewForKindOperation
(java.lang.Class viewKind,
IAdaptable semanticAdapter,
View containerView,
java.lang.String semanticHint,
int index,
PreferencesHint preferencesHint)
|
Methods in
org.eclipse.gmf.runtime.diagram.core.util that return
View
|
static
View
|
ViewUtil.
getChildByIdStr
(
View view,
java.lang.String idStr)
returns the first child whose id matched the given id |
static
View
|
ViewUtil.
getChildBySemanticHint
(
View view,
java.lang.String semanticHint)
gets a the first child in the passed View that had the
same type as the passed semantic hint. |
static
View
|
ViewUtil.
getContainerView
(
View eObject)
Returns the container view, or null if the container is not a view or
null |
static
View
|
ViewUtil.
getTopViewToPersist
(
View view)
Returns the top view that should be persisted, starting from the passed
view, it could return the passed view itself if it is a transient view,
other wise it will check its parent and so on ... |
static
View
|
ViewUtil.
getViewContainer
(org.eclipse.emf.ecore.EObject obj)
Goes up through the containers of the passed in EObject
and returns the first container that is a View
|
Methods in
org.eclipse.gmf.runtime.diagram.core.util with parameters of type
View
|
void
|
ViewRefactorHelper.
copyViewAppearance
(
View oldView,
View newView,
java.util.List excludeStyles)
Copies the appearance of the old view to the new view. |
protected void
|
ViewRefactorHelper.
copyViewChild
(
View oldView,
View newView,
Node oldChildNode)
If the child view has the same element as the parent and also has a type, it is considered a subview
and therefore only its properties are copied to matching subviews (if any) of the new parent. |
protected void
|
ViewRefactorHelper.
copyViewChildren
(
View oldView,
View newView)
Copies the notational properties of the old view children to the new view children |
protected void
|
ViewRefactorHelper.
copyViewFeatures
(
View oldView,
View newView)
Copies the notational features of the old view to the new view |
protected void
|
ViewRefactorHelper.
copyViewStyle
(
View oldView,
View newView,
Style oldStyle,
java.util.List excludeStyles)
Copies the given style features of the old view to the new view |
protected void
|
ViewRefactorHelper.
copyViewStyles
(
View oldView,
View newView)
Copies the style features of the old view to the new view |
protected void
|
ViewRefactorHelper.
copyViewStyles
(
View oldView,
View newView,
java.util.List excludeStyles)
Copies all styles feature from the old view to the new view |
static void
|
ViewUtil.
destroy
(
View view)
Destroys the supplied view notational element and remove any references
this class may have to it. |
static java.util.Set<
Edge>
|
ViewUtil.
getAllInnerEdges
(
View view)
|
static void
|
ViewUtil.
getAllRelatedEdgesForView
(
View view,
java.util.Set<
Edge> allEdges)
Constructs a set of all source and target edges from a view and all its
children down to the leaves of a view hierarchy |
static
View
|
ViewUtil.
getChildByIdStr
(
View view,
java.lang.String idStr)
returns the first child whose id matched the given id |
static
View
|
ViewUtil.
getChildBySemanticHint
(
View view,
java.lang.String semanticHint)
gets a the first child in the passed View that had the
same type as the passed semantic hint. |
static
View
|
ViewUtil.
getContainerView
(
View eObject)
Returns the container view, or null if the container is not a view or
null |
static java.lang.String
|
ViewUtil.
getIdStr
(
View view)
returns the unique GUID of the view |
protected java.lang.String
|
ViewRefactorHelper.
getNewViewType
(
View oldView,
org.eclipse.emf.ecore.EObject newElement)
Returns the type of the new view that replaces the old one |
static java.lang.Object
|
ViewUtil.
getPropertyValue
(
View view,
org.eclipse.emf.ecore.EStructuralFeature feature,
org.eclipse.emf.ecore.EClass featureClass)
Returns the value of the featrue inside a specific EClass within the
passed view |
static java.lang.Object
|
ViewUtil.
getPropertyValue
(
View view,
java.lang.Object id)
Deprecated. use
ViewUtil.getStructuralFeatureValue(View, EStructuralFeature)
instead
|
static java.lang.String
|
ViewUtil.
getSemanticEClassName
(
View view)
return eClass Name of the view's semantic element, this method works only
if the semantic element is a NameElement, otherwise it will return an
Empty String |
static java.lang.String
|
ViewUtil.
getSemanticElementClassId
(
View view)
gets the View 's semantic element Class Id, this could be
used to check the semantic element type |
static java.util.List
|
ViewUtil.
getSourceConnections
(
View view)
gets all the Edge 's whose source is this view |
static java.util.List
|
ViewUtil.
getSourceConnectionsConnectingVisibleViews
(
View view)
gets all the Edge 's whose source is this view |
static java.lang.Object
|
ViewUtil.
getStructuralFeatureValue
(
View view,
org.eclipse.emf.ecore.EStructuralFeature feature)
Returns the value of the passed feature inside the passed view |
static java.util.List
|
ViewUtil.
getTargetConnections
(
View view)
gets all the Edge 's whose target is this view |
static java.util.List
|
ViewUtil.
getTargetConnectionsConnectingVisibleViews
(
View view)
gets all the Edge 's whose target is this view |
static
View
|
ViewUtil.
getTopViewToPersist
(
View view)
Returns the top view that should be persisted, starting from the passed
view, it could return the passed view itself if it is a transient view,
other wise it will check its parent and so on ... |
static void
|
ViewUtil.
insertChildView
(
View containerView,
View childView,
int index,
boolean persisted)
inserts a child View in a container. the view will be
inserted in the persisted collection if the persisted flag is
true; otherwise it will be added to the transied collection. |
static boolean
|
ViewUtil.
isFeatureSupported
(
View view,
org.eclipse.emf.ecore.EStructuralFeature feature)
checks if the passed feature is supported by the passed view |
static boolean
|
ViewUtil.
isPropertySupported
(
View view,
org.eclipse.emf.ecore.EStructuralFeature feature,
org.eclipse.emf.ecore.EClass featureClass)
checks if the passed feature is supported by the passed view |
static boolean
|
ViewUtil.
isPropertySupported
(
View view,
java.lang.Object id)
checks if the passed property is supported bythe passed view |
static void
|
ViewUtil.
persistElement
(
View view)
move the supplied view from, and all of its parents from the transient
collections to the persisted collections. |
static void
|
ViewUtil.
repositionChildAt
(
View container,
View child,
int newIndex)
reorders the child at the oldIndex to the newIndex |
static org.eclipse.emf.ecore.EObject
|
ViewUtil.
resolveSemanticElement
(
View view)
resolves the passed View's semantic element, and returns it. |
static void
|
ViewUtil.
setPropertyValue
(
View view,
org.eclipse.emf.ecore.EStructuralFeature feature,
org.eclipse.emf.ecore.EClass featureClass,
java.lang.Object value)
Sets the passed featrue on the passed EClass inside the passed view to
the new value if possible |
static void
|
ViewUtil.
setPropertyValue
(
View view,
java.lang.Object id,
java.lang.Object value)
Deprecated. use
ViewUtil#setStructuralFeatureValue(View, EStructuralFeature, Object }
instead
|
static void
|
ViewUtil.
setStructuralFeatureValue
(
View view,
org.eclipse.emf.ecore.EStructuralFeature feature,
java.lang.Object value)
Sets the passed feature if possible on the passed view to the passed
value. |
Subinterfaces of
View in
org.eclipse.gmf.runtime.notation
|
interface
|
BasicCompartment
A representation of the model object '
Basic Compartment
'. |
interface
|
BasicDecorationNode
A representation of the model object '
Basic Decoration Node
'. |
interface
|
BasicSemanticCompartment
A representation of the model object '
Basic Semantic Compartment
'. |
interface
|
Compartment
A representation of the model object '
Compartment
'. |
interface
|
Connector
A representation of the model object '
Connector
' |
interface
|
DecorationNode
A representation of the model object '
Decoration Node
'. |
interface
|
Diagram
A representation of the model object '
Diagram
'. |
interface
|
Edge
A representation of the model object '
Edge
'. |
interface
|
ListCompartment
A representation of the model object '
List Compartment
'. |
interface
|
Node
A representation of the model object '
Node
'. |
interface
|
SemanticListCompartment
A representation of the model object '
Semantic List Compartment
'. |
interface
|
Shape
A representation of the model object '
Shape
' |
interface
|
StandardDiagram
A representation of the model object '
Standard Diagram
' |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp., Borland Software Corp., and others 2005,2006. All rights reserved.
|
|
|