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

Bug 333118

Summary: Sample needed for storing custom types in value properties
Product: z_Archived Reporter: Konstantin Komissarchik <konstantin>
Component: SapphireAssignee: Konstantin Komissarchik <konstantin>
Status: CLOSED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: ling.hao
Version: unspecifiedKeywords: plan
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Konstantin Komissarchik CLA 2010-12-22 16:39:28 EST
A request was made on the Sapphire forum to show how to use custom types in value properties.

http://www.eclipse.org/forums/index.php?t=msg&th=202129&start=0&S=f3ca5d69fbf0e6143713e109046082bb
Comment 1 Konstantin Komissarchik CLA 2011-01-04 15:18:51 EST
Added this scenario to the sapphire gallery sample (under Values->Custom).

In source, see...

org.eclipse.sapphire.samples.gallery.Circle
org.eclipse.sapphire.samples.gallery.Rectangle
org.eclipse.sapphire.samples.gallery.ICustomValueGallery
org.eclipse.sapphire.samples.gallery.internal.CircleSerializationService
org.eclipse.sapphire.samples.gallery.internal.RectangleSerializationService
META-INF/sapphire-extension.xml

At runtime...

1. Run with Sapphire samples.
2. Create sapphire-gallery.xml file in any project.
3. Go to Values-Custom in the editor's outline.
Comment 2 Ling Hao CLA 2011-01-05 18:55:50 EST
Verified.