|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object CanonicalConnectionEditPolicy com.ibm.etools.systems.application.visual.editor.editpolicies.AggregateCanonicalConnectionEditPolicy com.ibm.etools.systems.application.visual.editor.editpolicies.ApplicationModelCanonicalConnectionEditPolicy
public class ApplicationModelCanonicalConnectionEditPolicy
Canonical editpolicy for ApplicationModel in Application Diagram.
Nested Class Summary | |
---|---|
static class |
ApplicationModelCanonicalConnectionEditPolicy.ConnectorInfo
|
Field Summary | |
---|---|
static String |
copyright
|
Constructor Summary | |
---|---|
ApplicationModelCanonicalConnectionEditPolicy()
Constructor. |
Method Summary | |
---|---|
protected boolean |
applyTo(Object modelElement)
Return true if given modelElement should be shown. |
protected List |
createOperationSet()
|
protected Request |
createTargetRequest()
|
void |
deactivate()
|
protected void |
expandSoleCollapsableChild()
If there is only one collapable editpart in the children, expand it. |
protected Set |
getConnectionEditParts()
Get all connections in the diagram. |
protected String |
getDefaultFactoryHint()
Return default factory hint. |
protected SystemModelElementFilterProxy |
getFilterProxy()
Get current activated model element filter descriptor. |
protected List |
getOperationSet()
Return the list of editparts considered the operation set after caching them |
protected List |
getSemanticChildrenList()
|
protected List |
getSemanticConnectionsList()
Return semantic connections list. |
protected EObject |
getSourceElement(EObject relationship)
Return source element for a given relationship. |
protected EObject |
getTargetElement(EObject relationship)
Return target element for a given relationship. |
protected Request |
getTargetRequest()
Gets a request to be addressed to the operation set |
protected boolean |
hasAttachment(View view)
Return true if the View has connection with other views. |
protected boolean |
hasCollapsedParent(IGraphicalEditPart endEP)
Check if the given editpart is a child of collapsed parent. |
protected boolean |
isInMemoryModel()
Check if current ApplicationModel is created on the fly. |
protected boolean |
isOrphan(Artifact modelElement)
Check if the given element is orphan, ie, not the source or target of any relationship |
protected boolean |
isRelatedSemanticRelationship(Relationship relation)
Check if the given Relationship semantic element is related with the host. |
protected boolean |
needToExpand(ICollapsableEditPart elementEditPart)
Check if the given editpart should be expanded. |
protected void |
refreshConnections(Collection existingLinks)
Refresh connections. |
protected void |
refreshOnActivate()
Override to apply default filter. |
protected void |
refreshSemantic()
Refresh semantic children. |
void |
setFilter(String filterID)
Set view filter. |
protected void |
setFilterProxy(SystemModelElementFilterProxy filterProxy)
Get current activated model element filter descriptor. |
protected boolean |
shouldDeleteView(View view)
Return true if view can be deleted, false otherwise. |
protected boolean |
shouldHandleNotificationEvent(Notification event)
Return true if the canonical edit policy should handle the notification, false otherwise. |
protected boolean |
shouldIncludeConnection(Edge connector,
Collection children)
Return true if connection should be included, false otherwise. |
protected boolean |
shouldShowAggregateConnection(AggregateConnectionEditPart connEP)
Check if the given editpart should be displayed, given the both end are visible. |
void |
updateFigureVisibility()
Update visibility of children nodes and connections. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String copyright
Constructor Detail |
---|
public ApplicationModelCanonicalConnectionEditPolicy()
Method Detail |
---|
protected List getSemanticChildrenList()
protected boolean isOrphan(Artifact modelElement)
modelElement
-
protected boolean applyTo(Object modelElement)
modelElement
-
protected boolean shouldDeleteView(View view)
protected boolean hasAttachment(View view)
protected String getDefaultFactoryHint()
protected List getSemanticConnectionsList()
getSemanticConnectionsList
in class AggregateCanonicalConnectionEditPolicy
protected EObject getSourceElement(EObject relationship)
getSourceElement
in class AggregateCanonicalConnectionEditPolicy
protected EObject getTargetElement(EObject relationship)
getTargetElement
in class AggregateCanonicalConnectionEditPolicy
protected boolean shouldIncludeConnection(Edge connector, Collection children)
protected void refreshOnActivate()
protected void refreshSemantic()
public void updateFigureVisibility()
protected boolean shouldShowAggregateConnection(AggregateConnectionEditPart connEP)
connEP
-
protected Set getConnectionEditParts()
protected boolean hasCollapsedParent(IGraphicalEditPart endEP)
endEP
-
protected void expandSoleCollapsableChild()
protected boolean needToExpand(ICollapsableEditPart elementEditPart)
elementEditPart
-
protected void refreshConnections(Collection existingLinks)
protected boolean isRelatedSemanticRelationship(Relationship relation)
isRelatedSemanticRelationship
in class AggregateCanonicalConnectionEditPolicy
protected final List getOperationSet()
protected Request getTargetRequest()
protected Request createTargetRequest()
protected List createOperationSet()
public void setFilter(String filterID)
protected SystemModelElementFilterProxy getFilterProxy()
protected void setFilterProxy(SystemModelElementFilterProxy filterProxy)
protected boolean shouldHandleNotificationEvent(Notification event)
protected boolean isInMemoryModel()
public void deactivate()
deactivate
in class AggregateCanonicalConnectionEditPolicy
|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |