Elexis API documentation
Version 2.1.6 as of December 11 2011

de.ralfebert.rcputils.databinding
Class ModelDataBindingEditorPart<INPUT extends IEditorInput,MODEL>

java.lang.Object
  extended by EditorPart
      extended by de.ralfebert.rcputils.parts.AbstractEditorPart<INPUT>
          extended by de.ralfebert.rcputils.databinding.DataBindingEditorPart<INPUT>
              extended by 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

Constructor Summary
ModelDataBindingEditorPart()
           
 
Method Summary
 void doSave(IProgressMonitor monitor)
           
 void init(IEditorSite site, IEditorInput input)
           
 
Methods inherited from class de.ralfebert.rcputils.databinding.DataBindingEditorPart
isDirty
 
Methods inherited from class de.ralfebert.rcputils.parts.AbstractEditorPart
createPartControl, doSaveAs, getEditorInput, isSaveAsAllowed
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModelDataBindingEditorPart

public ModelDataBindingEditorPart()
Method Detail

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)

Elexis API documentation
Version 2.1.6 as of December 11 2011

Copyright 2005-2011 by Gerry Weirich, Elexis