Eclipse RCP

Rich Client Platform Best Practices

These are some lessons learned from trial and error using the Eclipse Rich Client Platform:

  • Don’t perform any persistence operations from a Dialog, including WizardDialog.  Performing persistence operations from a Dialog restricts your ability to re-use the Dialog in a different context.  Perform these operations through an action triggered from a View or Editor after the Dialog closes.
  • Use one perspective per user group to facilitate maintenance and customization.
  • If possible, extend ViewPart instead of EditorPart.  The Editor will be visible across all perspectives; a View is perspective-specific.
  • Do not try RCP without WindowBuilder from Instantiations.
  • If you intend to persist an entity that holds a reference to other entities, persist the object before adding references to other entities.  Later on merge all the objects.  Indeally, you will merge the main object and the operation will cascade through a CascadeType.MERGE.

You must be logged in to post a comment.