| 
 | 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.ObjectCanonicalConnectionEditPolicy
com.ibm.etools.systems.application.visual.editor.editpolicies.AggregateCanonicalConnectionEditPolicy
com.ibm.etools.systems.application.visual.editor.srcinfo.editpolicies.SourceContainerCompartmentCanonicalEditPolicy
public class SourceContainerCompartmentCanonicalEditPolicy
CanonicalConnectionEditPolicy for SourceContainerCompartment.
| Field Summary | |
|---|---|
| static String | copyright | 
| Constructor Summary | |
|---|---|
| SourceContainerCompartmentCanonicalEditPolicy()Constructor. | |
| SourceContainerCompartmentCanonicalEditPolicy(boolean readOnly)Constructor. | |
| Method Summary | |
|---|---|
| protected  boolean | applyTo(Object modelElement)Return true if given modelElement should be presentated. | 
|  void | deactivate()Clean up | 
| protected  Collection | getConnectionViews()Return the list of connections between elements contained within the host. | 
| protected  Collection<Edge> | getExistingConnections()Get existing edges related with the host, including: a. | 
| protected  ICollapsableEditPart | getOwningCollapsableEditPart(EditPart ep)Gets the collapsable edipart ancestor for a given editpart. | 
| protected  List | getSemanticChildrenList() | 
| protected  List | getSemanticConnectionsList()Return a list of semantic relationships contained inside this compartment. | 
| protected  EObject | getSourceElement(EObject relationship) | 
| protected  EObject | getTargetElement(EObject relationship) | 
|  boolean | isEnabled()Return true if the editpolicy is enabled and its host is visible; otherwise false. | 
| protected  boolean | isFirstTimeToExpand()Return true if the host is in the first time to be expanded. | 
|  boolean | isReadOnly()Return true if this edit policy uses read only snapshot from model. | 
| protected  boolean | isRelatedConnection(Edge edge,
                    EditPart host,
                    Map editPartRegistry)Check if an edge is related with the host. | 
| protected  boolean | isRelatedSemanticRelationship(Relationship relation)Check if the given Relationship semantic element is related with the host. | 
| protected  void | refreshAggregateConnectionAttachments(ConnectionEditPart editPart,
                                      boolean isVisible)Refresh the visibility of edges attached on aggregate connection. | 
| protected  void | refreshAggregateConnections()Refresh aggregate connections owned by the host. | 
| protected  void | refreshConnections(Collection existingLinks)Refresh connections. | 
| protected  void | refreshSemantic()Refresh semantic children. | 
| protected  boolean | registerSemanticElementToViewMappings(View view)Register semantic element to view mappings for all semantic children elements from the element of given view. | 
| protected  void | setFirstTimeToExpand(boolean firstTime)Return true if the host is in the first time to be expanded. | 
|  void | setReadOnly(boolean readOnly)Setter for read only attribute. | 
| protected  boolean | shouldCheckForConnections(View view,
                          Collection viewChildren)Determines if a given view should be checked to see if any attached connections should be considered by the canonical synchronization routine. | 
| 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 | shouldShowAggregateConnection(ConnectionEditPart connEP)Check if the given editpart should be displayed. | 
| protected  void | syncUpConnections(Collection relatedSemanticRelations,
                  Collection existingLinks)Sync up the semantic relation list and the connections already displayed in the diagram. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public static String copyright
| Constructor Detail | 
|---|
public SourceContainerCompartmentCanonicalEditPolicy()
public SourceContainerCompartmentCanonicalEditPolicy(boolean readOnly)
readOnly: - flag for using read only model.| Method Detail | 
|---|
protected List getSemanticChildrenList()
protected boolean applyTo(Object modelElement)
modelElement - protected boolean shouldHandleNotificationEvent(Notification event)
protected void refreshSemantic()
protected boolean registerSemanticElementToViewMappings(View view)
registerSemanticElementToViewMappings in class AggregateCanonicalConnectionEditPolicyview - the view whose semantic elements to be mapped.
protected Collection<Edge> getExistingConnections()
protected boolean isRelatedSemanticRelationship(Relationship relation)
isRelatedSemanticRelationship in class AggregateCanonicalConnectionEditPolicy
protected boolean isRelatedConnection(Edge edge,
                                      EditPart host,
                                      Map editPartRegistry)
edge - the edge to be checkedhost - the host for this editpolicyeditPartRegistry - edit part registry
protected void refreshAggregateConnections()
protected boolean shouldShowAggregateConnection(ConnectionEditPart connEP)
connEP - 
protected ICollapsableEditPart getOwningCollapsableEditPart(EditPart ep)
getOwningCollapsableEditPart in class AggregateCanonicalConnectionEditPolicyep - edit part
 ShapeCompartmentEditPart
protected void refreshAggregateConnectionAttachments(ConnectionEditPart editPart,
                                                     boolean isVisible)
isVisible: - true for visible, false for invisible.protected Collection getConnectionViews()
Edges.org.eclipse.gmf.runtime.diagram.ui.editpolicies.CanonicalConnectionEditPolicy#getConnectionViews()
protected boolean shouldCheckForConnections(View view,
                                            Collection viewChildren)
view - a View to check to see if attached connections should be considered.viewChildren - a Collection of view children of the host notation view, that can be used
 as a context to determine if the given view's attached connections should be considered.
boolean true if connections on the view are used as part of the 
 canonical synchronization.  false if the view's attached connections are to be ignored.org.eclipse.gmf.runtime.diagram.ui.editpolicies.CanonicalConnectionEditPolicy#shouldCheckForConnections(View, Collection)protected boolean isFirstTimeToExpand()
protected void setFirstTimeToExpand(boolean firstTime)
protected void refreshConnections(Collection existingLinks)
protected void syncUpConnections(Collection relatedSemanticRelations,
                                 Collection existingLinks)
relatedSemanticRelations - relation list computed from ApplicationModelexistingLinks - connections already displayed in the diagram.protected boolean shouldDeleteView(View view)
public boolean isEnabled()
protected List getSemanticConnectionsList()
getSemanticConnectionsList in class AggregateCanonicalConnectionEditPolicypublic boolean isReadOnly()
public void setReadOnly(boolean readOnly)
protected EObject getSourceElement(EObject relationship)
getSourceElement in class AggregateCanonicalConnectionEditPolicyprotected EObject getTargetElement(EObject relationship)
getTargetElement in class AggregateCanonicalConnectionEditPolicypublic void deactivate()
deactivate in class AggregateCanonicalConnectionEditPolicyorg.eclipse.gef.EditPolicy#deactivate()| 
 | Rational Developer for Power Systems Software V7.6 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||