Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » MasterDetailsBlock - any way to veto details page switch?
MasterDetailsBlock - any way to veto details page switch? [message #448237] Wed, 19 April 2006 13:17
Eclipse UserFriend
Originally posted by: mmcsweeny.3esi.com

Hi,

I am using a MasterDetailsBlock in Eclipse 3.1.2. As it stands, there does
not appear to be any way for a given details page to veto a switch to
another page. For example, I may not be able to commit the current details
page due to validation errors in its fields.

I considered throwing an unchecked exception from within the commit() method
that the outer container would trap and handle appropriately, but that
strategy interferes with the operation of the page cache in the DetailsPart.
And it is an ugly solution ;-)

Another option is to write my own version of MasterDetailsBlock with a
slightly different life-cycle, but that seems like overkill. I would need
to make my own versions of the various interfaces related to
MasterDetailsBlock (e.g. IDetailsPage, IDetailsPageProvider, IManagedForm,
etc) to accomodate a change to the signature of the commit() method.

Can anyone suggest a best practice for dealing with this situation?

Thanks,

Mark
Previous Topic:how to make the initial window maximal in RCP?
Next Topic:[DataBinding] SWT Event Dispatch Thread Synchronization for TextObservableValue - gone?
Goto Forum:
  


Current Time: Sun Jul 06 04:38:23 EDT 2025

Powered by FUDForum. Page generated in 0.02879 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top