Programatically associating a EditorPart to a domain/model object [message #162726] |
Fri, 28 July 2006 15:00 |
Eclipse User |
|
|
|
I am bulding an editor (class extends EditorPart) which has an associated
IEditorInput that provides model data (a domain object) to my editor. this
model data is shown as the text values within my editor Text objects. When
my editor becomes dirty and the doSave() method is called I want to save
my newly modified model/domain object but there is no clear way to tie the
text values of the Text objects to the domain object through the
IEditorInput object.
What is the best way to get text data(value) from a Text widget and set it
that data into a domain object before saving? I would hope I don't have to
write a mapping of the Text inputs (widgets) to my domain object.
Thoughts?
|
|
|
Powered by
FUDForum. Page generated in 0.05810 seconds