Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 341841 - [generator] generate empty value converter service into src
Summary: [generator] generate empty value converter service into src
Status: CLOSED WORKSFORME
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: 2.0.0   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-04 16:45 EDT by Knut Wannheden CLA
Modified: 2012-11-21 03:21 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Knut Wannheden CLA 2011-04-04 16:45:28 EDT
The value converter service is probably one of the first services a developer ends up overriding in the runtime module. Therefore (and to get the singleton binding right) I think it would make sense and be quite convenient for the user if the generator would generate an empty class into the 'src' source folder extending the default DefaultTerminalConverters. The developer would then only have to add converter methods for the rules.
Comment 1 Sven Efftinge CLA 2012-11-21 03:21:59 EST
I don't like to have that many stubs in the beginning. If you want to use a different return type, it's nicely documented how to it and how to do the value conversion. I think that's appropriate.