Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » [DataBinding]
[DataBinding] [message #325986] Wed, 05 March 2008 03:28 Go to next message
Eclipse UserFriend
Originally posted by: housh_housh.yahoo.com

Hello,

what is the scope of an DataBindingContext when I use it in an RCP app?
Can I put all my Bindings in one place or is there a BindingContext for
every Plugin?

thx,
ex
Re: [DataBinding] DataBindingContext scope [message #326019 is a reply to message #325986] Wed, 05 March 2008 17:31 Go to previous message
Eclipse UserFriend
exquisitus wrote:
> what is the scope of an DataBindingContext when I use it in an RCP app?

Typically a DataBindingContext has the same scope as the editor or view
it is used for. In the case of wizards, you could use one DBC for the
whole wizard or one for each individual page.

> Can I put all my Bindings in one place or is there a BindingContext for
> every Plugin?

You could do either of these--DataBinding or RCP do not force you one
way or another. However I think you are approaching the problem from
the wrong perspective: you want to consolidate your domain objects (the
model), not bindings. At each point where the UI needs to hook into
your model, create a DBC and create your bindings. When that UI element
is closed, the DBC should be disposed.

Hope this helps,

Matthew
Previous Topic:get the standard context menu on custom objects
Next Topic:IProcess listener?
Goto Forum:
  


Current Time: Fri May 09 09:04:13 EDT 2025

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

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

Back to the top