|
|
|
|
Re: status bar injected into DAO [message #506086 is a reply to message #502630] |
Wed, 06 January 2010 03:04 |
Eclipse User |
|
|
|
Originally posted by: jccanova.gmail.com
Hi Luca.
For me is pretty simple, create a EventObject and configure it into you
app-context... retrieve the EventObject from your context into your
application and create a EventListener which will be responsible to update
the status bar.
Another way could be you create a content provider for the status label...
is this make any sense for you ?
I crancked my head last week checking how i could use Spring to configure
SWT = JFace components and concluded that i will write a lot of code
(delegates) since SWT as a lightweight framework and dont follow the
javabeans get-set methods (mainly layout), but it can be done.... like your
applicationWindow can be a BeanFactorAware and retrieve the controls from
the spring application context (i dont see any problem in it). But inject
the control directly into the DAO i dont see it as a good pratice...
Regards,
Jose
"Luca Ferrari" <fluca1978@infinito.it> wrote in message
news:hfnod1$qib$1@build.eclipse.org...
> Hi,
> in my project I'm using spring DAOs and I'd like them to update the status
> bar and progress bar of my RCP application while doing operations. However
> I don't want to programmatically couple the DAO and the statusbarmanager,
> so I'd like to know if there's a way to inject the status bar into the dao
> thru the spring configuration file.
> Anybody has done something similar?
|
|
|
|
Powered by
FUDForum. Page generated in 0.02404 seconds