Bug 111257 - [DnD] Prevent illegal transfers between GEF-based editors
Summary: [DnD] Prevent illegal transfers between GEF-based editors
Status: NEW
Alias: None
Product: GEF
Classification: Tools
Component: GEF-Legacy GEF (MVC) (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: gef-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-30 16:47 EDT by Pratik Shah CLA
Modified: 2010-11-05 12:56 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pratik Shah CLA 2005-09-30 16:47:37 EDT
In GEF 3.2M2, transferring (copy-pasting or dragging) assumes that the given 
template is the factory.  This causes a problem when the factory is from a 
different editor.  Currently, it is the clients' responsibility to verify that 
the part being pasted/dropped in the viewer is of a type it understands.  
However, most clients won't be aware of that and will likely run into some 
problem (Logic example encounters a ClassCastException).

A potential solution is to make the clients provide some sort of a context id 
that would prevent the transferring of a type to a viewer that does not 
support it.
Comment 1 Randy Hudson CLA 2006-02-28 10:50:42 EST
Steve, this new function is going to cause problem.
See class TTDTL. It used to be abstract, but now clients can use it directly. Also see CombinedTemplateCreationEntry. A new constructor added there allows factories to be the template.
Comment 2 Anthony Hunter CLA 2006-08-11 14:01:20 EDT
Changing to RESOLVE WONTFIX based on the above comments.
Reporter to re-open with more information if enhancement is still required.
Comment 3 Pratik Shah CLA 2006-08-14 11:18:30 EDT
Why was this marked as WONTFIX?  This is still a problem and should be fixed.  Don't know if it can be fixed without changing API (which means it might not be fixable in the maintenance release).
Comment 4 Randy Hudson CLA 2006-12-06 17:05:56 EST
We encountered this problem "in the field", so it's no longer a what-if. Increasing severity.