Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » [DataBinding]
[DataBinding] [message #325986] Wed, 05 March 2008 08: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 22:31 Go to previous message
Matthew Hall is currently offline Matthew HallFriend
Messages: 368
Registered: July 2009
Senior Member
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 Dec 27 03:41:49 GMT 2024

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

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

Back to the top