Community
Participate
Working Groups
Add MarkerTransfer to Transfer[] for DropAdapter and dragged a Bookmark from the Bookmarks View to the receiving view. Got this exception. java.lang.ClassCastException at org.eclipse.ui.part.MarkerTransfer.lazyInit(MarkerTransfer.java:144) at org.eclipse.ui.part.MarkerTransfer.javaToNative(MarkerTransfer.java:113) at org.eclipse.swt.dnd.DragSource.GetData(DragSource.java:373) at org.eclipse.swt.dnd.DragSource.access$7(DragSource.java:334) at org.eclipse.swt.dnd.DragSource$4.method3(DragSource.java:233) Here is the code in MarkerTransfer that got the exception: private void lazyInit(Object[] markers) { if (workspace == null) { if (markers != null && markers.length > 0) { this.workspace = ((IMarker)markers[0]).getResource().getWorkspace(); } } } Problem appears to be that BookmarkMarker doesn't implement IMarker. I searched Bugzilla so I hope this isn't a dupe. Ron Kadomiya rkadomiya@alum.mit.edu
BookmarkMarker is a ConcreteMarker which is not an IMarker but rather contains one. ConcreteMarker is internal currently. The problem with just adding this Transfer is that we are not showing IMarkers =- we are showing ConcreteMarkers.
There are currently no plans to work on this feature
As of now 'LATER' and 'REMIND' resolutions are no longer supported. Please reopen this bug if it is still valid for you.