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 50498 Details for
Bug 139666
[DnD] TreeViewerTransferDropListener causes reorder problems
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Potential bug fix
Bug139666.patch.txt (text/plain), 1.62 KB, created by
David Dubrow
on 2006-09-19 14:47:00 EDT
(
hide
)
Description:
Potential bug fix
Filename:
MIME Type:
Creator:
David Dubrow
Created:
2006-09-19 14:47:00 EDT
Size:
1.62 KB
patch
obsolete
>Index: src/org/eclipse/gef/ui/parts/TreeViewerTransferDropListener.java >=================================================================== >RCS file: /cvsroot/tools/org.eclipse.gef/src/org/eclipse/gef/ui/parts/TreeViewerTransferDropListener.java,v >retrieving revision 1.10 >diff -u -r1.10 TreeViewerTransferDropListener.java >--- src/org/eclipse/gef/ui/parts/TreeViewerTransferDropListener.java 29 Mar 2005 23:57:35 -0000 1.10 >+++ src/org/eclipse/gef/ui/parts/TreeViewerTransferDropListener.java 19 Sep 2006 18:46:40 -0000 >@@ -49,21 +49,21 @@ > Iterator iter = ((List)TreeViewerTransfer.getInstance().getObject()).iterator(); > > Request request = getTargetRequest(); >- request.setType(isMove() ? RequestConstants.REQ_MOVE : RequestConstants.REQ_ORPHAN); > >- while (iter.hasNext()) { >- EditPart editPart = (EditPart)iter.next(); >- command.add(editPart.getCommand(request)); >- } >- >- //If reparenting, add all editparts to target editpart. > if (!isMove()) { >- request.setType(RequestConstants.REQ_ADD); >- if (getTargetEditPart() == null) >- command.add(UnexecutableCommand.INSTANCE); >- else >- command.add(getTargetEditPart().getCommand(getTargetRequest())); >+ request.setType(RequestConstants.REQ_ORPHAN); >+ while (iter.hasNext()) { >+ EditPart editPart = (EditPart)iter.next(); >+ command.add(editPart.getCommand(request)); >+ } > } >+ >+ request.setType(isMove() ? RequestConstants.REQ_MOVE_CHILDREN : RequestConstants.REQ_ADD); >+ if (getTargetEditPart() == null) >+ command.add(UnexecutableCommand.INSTANCE); >+ else >+ command.add(getTargetEditPart().getCommand(getTargetRequest())); >+ > return command; > } >
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 139666
: 50498