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 224362 Details for
Bug 394412
SWT crashes on Drag&Drop
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
Dnd-patch
osx_dnd.patch (text/plain), 1.29 KB, created by
Tobias Verhoeven
on 2012-12-06 06:12:33 EST
(
hide
)
Description:
Dnd-patch
Filename:
MIME Type:
Creator:
Tobias Verhoeven
Created:
2012-12-06 06:12:33 EST
Size:
1.29 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.emf.ecp.ui >diff --git src/org/eclipse/emf/ecp/ui/common/dnd/ModelExplorerDropAdapter.java src/org/eclipse/emf/ecp/ui/common/dnd/ModelExplorerDropAdapter.java >index e388fea..1fb3b32 100644 >--- src/org/eclipse/emf/ecp/ui/common/dnd/ModelExplorerDropAdapter.java >+++ src/org/eclipse/emf/ecp/ui/common/dnd/ModelExplorerDropAdapter.java >@@ -24,6 +24,8 @@ > import org.eclipse.emf.edit.domain.EditingDomain; > import org.eclipse.emf.edit.ui.dnd.EditingDomainViewerDropAdapter; > >+import org.eclipse.jface.viewers.ISelection; >+import org.eclipse.jface.viewers.IStructuredSelection; > import org.eclipse.jface.viewers.Viewer; > import org.eclipse.swt.dnd.DND; > import org.eclipse.swt.dnd.DropTargetEvent; >@@ -78,7 +80,18 @@ > return; > } > source = getDragSource(event); >- Object sourceObject = source.iterator().next(); >+ >+ Object sourceObject = null; >+ >+ if (source == null) { >+ ISelection selection = viewer.getSelection(); >+ if (selection instanceof IStructuredSelection) { >+ sourceObject = ((IStructuredSelection) viewer.getSelection()).getFirstElement(); >+ } >+ >+ } else { >+ sourceObject = source.iterator().next(); >+ } > > EditingDomain sourceProjectDomain = getProjectDomain(sourceObject); > EditingDomain targetProjectDomain = getProjectDomain(target);
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:
eneufeld
:
iplog+
Actions:
View
|
Diff
Attachments on
bug 394412
: 224362