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 63767 Details for
Bug 174085
Connection is deactivated after moving
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Attempted fix.
AbstractGraphicalEditPartPatch.txt (text/plain), 1.46 KB, created by
Cherie Revells
on 2007-04-13 11:30:22 EDT
(
hide
)
Description:
Attempted fix.
Filename:
MIME Type:
Creator:
Cherie Revells
Created:
2007-04-13 11:30:22 EDT
Size:
1.46 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.gef >Index: src/org/eclipse/gef/editparts/AbstractGraphicalEditPart.java >=================================================================== >RCS file: /cvsroot/tools/org.eclipse.gef/src/org/eclipse/gef/editparts/AbstractGraphicalEditPart.java,v >retrieving revision 1.24 >diff -u -r1.24 AbstractGraphicalEditPart.java >--- src/org/eclipse/gef/editparts/AbstractGraphicalEditPart.java 22 Mar 2007 14:02:00 -0000 1.24 >+++ src/org/eclipse/gef/editparts/AbstractGraphicalEditPart.java 13 Apr 2007 15:30:16 -0000 >@@ -237,6 +237,13 @@ > */ > protected void addSourceConnection(ConnectionEditPart connection, int index) { > primAddSourceConnection(connection, index); >+ >+ EditPart oldSourceEP = connection.getSource(); >+ if (oldSourceEP instanceof GraphicalEditPart) { >+ ((GraphicalEditPart) oldSourceEP).getSourceConnections().remove( >+ connection); >+ } >+ > connection.setSource(this); > if (isActive()) > connection.activate(); >@@ -258,6 +265,13 @@ > */ > protected void addTargetConnection(ConnectionEditPart connection, int index) { > primAddTargetConnection(connection, index); >+ >+ EditPart oldTargetEP = connection.getTarget(); >+ if (oldTargetEP instanceof GraphicalEditPart) { >+ ((GraphicalEditPart) oldTargetEP).getTargetConnections().remove( >+ connection); >+ } >+ > connection.setTarget(this); > fireTargetConnectionAdded(connection, index); > }
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
Flags:
ahunter.eclipse
:
iplog+
Actions:
View
|
Diff
Attachments on
bug 174085
: 63767