de.ralfebert.rcputils.databinding
Class ModelDataBindingEditorPart<INPUT extends IEditorInput,MODEL>
java.lang.Object
EditorPart
de.ralfebert.rcputils.parts.AbstractEditorPart<INPUT>
de.ralfebert.rcputils.databinding.DataBindingEditorPart<INPUT>
de.ralfebert.rcputils.databinding.ModelDataBindingEditorPart<INPUT,MODEL>
public abstract class ModelDataBindingEditorPart<INPUT extends IEditorInput,MODEL>
- extends DataBindingEditorPart<INPUT>
ModelDataBindingEditorPart is base class for editors that use data binding to
edit a single model object.
The actual editor implementation goes into the methods onLoad (loading the
model object from the editor input), onCreatePartControl (creating the UI),
onBind (binding the UI to the model), onSave (saving the model object).
This resembles the typical structure for editors that edit a single model
object.
Please take care that the UI are the targets when creating your bindings as
all changes in target observables (the UI) will cause the editor to get
dirty.
- Author:
- Ralf Ebert
Method Summary |
void |
doSave(IProgressMonitor monitor)
|
void |
init(IEditorSite site,
IEditorInput input)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ModelDataBindingEditorPart
public ModelDataBindingEditorPart()
init
public void init(IEditorSite site,
IEditorInput input)
throws PartInitException
- Overrides:
init
in class DataBindingEditorPart<INPUT extends IEditorInput>
- Throws:
PartInitException
doSave
public final void doSave(IProgressMonitor monitor)
Copyright 2005-2011 by Gerry Weirich, Elexis