Bug 87152 - [Markers] No API way to drop bookmark onto viewpart
Summary: [Markers] No API way to drop bookmark onto viewpart
Status: RESOLVED INVALID
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2005-03-04 10:55 EST by Ron Kadomiya CLA
Modified: 2009-08-30 02:11 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ron Kadomiya CLA 2005-03-04 10:55:41 EST
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
Comment 1 Tod Creasey CLA 2006-03-21 14:12:06 EST
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.
Comment 2 Tod Creasey CLA 2006-04-07 12:53:59 EDT
There are currently no plans to work on this feature
Comment 3 Denis Roy CLA 2009-08-30 02:11:43 EDT
As of now 'LATER' and 'REMIND' resolutions are no longer supported.
Please reopen this bug if it is still valid for you.