Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 49497 Details for
Bug 156253
Children of SemanticListCompartmentEditPart cannot be deleted
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
patch
Patch_156253 (text/plain), 1.99 KB, created by
Alex Boyko
on 2006-09-06 11:16:15 EDT
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Alex Boyko
Created:
2006-09-06 11:16:15 EDT
Size:
1.99 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.gmf.runtime.diagram.ui >Index: src/org/eclipse/gmf/runtime/diagram/ui/editparts/SemanticListCompartmentEditPart.java >=================================================================== >RCS file: /cvsroot/technology/org.eclipse.gmf/plugins/org.eclipse.gmf.runtime.diagram.ui/src/org/eclipse/gmf/runtime/diagram/ui/editparts/SemanticListCompartmentEditPart.java,v >retrieving revision 1.2.2.4 >diff -u -r1.2.2.4 SemanticListCompartmentEditPart.java >--- src/org/eclipse/gmf/runtime/diagram/ui/editparts/SemanticListCompartmentEditPart.java 28 Jul 2006 20:40:45 -0000 1.2.2.4 >+++ src/org/eclipse/gmf/runtime/diagram/ui/editparts/SemanticListCompartmentEditPart.java 6 Sep 2006 15:18:56 -0000 >@@ -175,7 +175,7 @@ > while( childrenIT.hasNext() ) { > GraphicalEditPart eP = (GraphicalEditPart)childrenIT.next(); > semanticChild = (EObject)eP.basicGetModel(); >- semanticChildren.remove(semanticChild); >+ semanticChildren.remove(semanticChild); > } > > // >@@ -237,15 +237,20 @@ > * @param evt > */ > protected void semanticChildrenListChanged(Notification event) { >- if (!isCanonicalEnabled()) >- return; >- if (NotificationUtil.isElementAddedToSlot(event) || >- NotificationUtil.isMove(event)){ >- refreshChildren(); >- } >- else if(NotificationUtil.isElementRemovedFromSlot(event) && >+ if (isCanonicalEnabled()){ >+ if (NotificationUtil.isElementAddedToSlot(event) || >+ NotificationUtil.isMove(event)){ >+ refreshChildren(); >+ } >+ else if(NotificationUtil.isElementRemovedFromSlot(event) && > event.getOldValue() instanceof EObject){ > semanticChildRemoved((EObject)event.getOldValue()); >+ >+ } >+ }else if(NotificationUtil.isElementRemovedFromSlot(event) && >+ event.getOldValue() instanceof EObject && >+ !getChildren().isEmpty()){ >+ semanticChildRemoved((EObject)event.getOldValue()); > } > } > >@@ -390,6 +395,6 @@ > > public boolean isCanonical() { > return true; >- } >+ } > > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 156253
: 49497