Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 312513

Summary: Create a more robust or flexible mechanism to store/retrieve Sketch objects
Product: z_Archived Reporter: Ugo Braga Sangiorgi <ugo.sangiorgi>
Component: SketchAssignee: Project Inbox <sketch-inbox>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
mylyn/context/zip none

Description Ugo Braga Sangiorgi CLA 2010-05-11 19:37:31 EDT
Sketches are relatively big objects, since they hold:
-raw points (x,y) 
-quantized points (only the x,y pairs that matter for recognition)
-sketch's word (the quantized points transformed into a word, for string comparison using Levenshtein string distance)
-location
-size

At the present version, the only attribute that is hold is the word and the element's name, onto a serialized Properties object.
We need a better way of storing sketches, in order to: 
-algorithms to take advantage of the information 
-allow background computation of sketches, since some may take place while the tool is inactive. Ordering, ranking, and so on.
Comment 1 Ugo Braga Sangiorgi CLA 2010-05-11 19:47:15 EDT
Created attachment 168062 [details]
mylyn/context/zip
Comment 2 Ugo Braga Sangiorgi CLA 2011-02-23 04:28:45 EST
One possible way is to use EMF + XML schema:
http://www.eclipse.org/modeling/emf/docs/1.x/tutorials/xlibmod/xlibmod_emf1.1.html
Comment 3 Ugo Braga Sangiorgi CLA 2011-02-23 10:56:59 EST
(In reply to comment #2)
> One possible way is to use EMF + XML schema:
> http://www.eclipse.org/modeling/emf/docs/1.x/tutorials/xlibmod/xlibmod_emf1.1.html

correcy link http://www.eclipse.org/modeling/emf/docs/2.x/tutorials/xlibmod/xlibmod_emf2.0.html