|
From: Jan H. <jh...@sc...> - 2007-12-20 10:47:38
|
Seems reasonable to me.
+1
Kind Regards,
Jan
On Wed, 2007-12-19 at 09:40 +0100, Peter De Bruycker wrote:
> Does anyone know why the StatusBarCommandGroup is a CommandGroup?
>
> I think it'd be better if we have something like this:
>
>
> public interface StatusBar extends ControlFactory,
> ApplicationWindowAware {
> ProgressMonitor getProgressMonitor();
>
> void setMessage(Message message);
>
> void setMessage(String message);
>
> void setErrorMessage(Message message);
>
> void setErrorMessage(String message);
>
> void setVisible(boolean visible);
>
> void setCancelEnabled(boolean enabled);
> }
>
> with a default implementation, and perhaps an implementation using
> JXStatusBar from SwingLabs.
>
> the ApplicationLifecycleAdvisor.getStatusBarCommandGroup could then be
> replaced with a "public StatusBar createStatusBar()" method which can
> be overridden to create the correct instance.
>
> What do you think?
>
> Peter
>
> On Jul 9, 2007 2:27 PM, Benoit Xhenseval < bx...@ob...> wrote:
> Hi Jan,
>
> You are right, I have looked deeper and had a chat with Jonny
> too; the StatusBar itself could stay a concrete class.
> Unfortunately, the StatusBarCommandGroup is concrete and
> cannot be injected. It would be nice and simplify use of say
> the jide Status Bar... The only we found to replace a
> StatusBar was to extend the StatusBarCommandGroup and replace
> all methods.
>
> I'd say that the StatusBarCommandGroup would be better as an
> interface.
>
> Thanks for considering this.
>
> Best regards
>
> Benoit.
>
>
>
> -----Original Message-----
> From: spr...@li...
> [mailto:spr...@li...]
> On Behalf Of Jan Hoskens
> Sent: 09 July 2007 12:59
> To: spr...@li...
> Subject: Re: [Springframework-rcp-dev] StatusBar a concrete
> class...
>
> Hmm,
>
> As far as my eclipse search shows me, the StatusBar is only
> used
> internally by the StatusBarCommandGroup. The implementation of
> StatusBar
> is quite specific. I don't think we need interfacing at that
> level
> because it's actually the StatusBarCommandGroup that takes
> care of this.
> You can create your own CustomStatusBar without extending the
> Status Bar
> and then extend the StatusBarCommandGroup by overriding all
> methods and
> delegating to your own CustomStatusBar.
>
> Then again, at that point (the StatusBarCommandGroup) it might
> be
> feasible/preferable to have an interface but I don't know how
> tight the
> specific StatusBarCommandGroup is coupled in the rcp-code.
>
> Kind Regards,
> Jan
>
> On Fri, 2007-07-06 at 17:55 +0100, Benoit Xhenseval wrote:
> > Hi
> >
> > I'm trying to change the StatusBar to split it to have a
> section for
> > scrolling messages. I'm a bit surprised that quite a few
> interfaces
> > are using StatusBar which is a concrete class.
> >
> >
> >
> > Should I use only the StatusBarCommandGroup???
> >
> >
> > At the moment, my approach is to have:
> > - my lifecycleAdvisor to override
> getStatusBarCommandGroup()
> > - returning a StatusBarCommandGroup that overrides
> createStatusBar()
> > (but requires a StatusBar itself!!! so I must extends that
> class even
> > if I do not intend to use it...
> >
> > Is my approach ok?
> >
> >
> >
> > However this seems extension of the StatusBar seems to cause
> some
> > issue, the initialize method on StatusBar is called which
> then creates
> > items in the JPanel…
> >
> >
> > Could the StatusBar be refactored to be an interface?
> >
> >
> >
> > I'm willing to provide a patch if you're ok with this:
> >
> > Interface StatusBar {
> >
> > ProgressMonitor getProgressMonitor()
> >
> > void setMessage(String message)
> >
> > void setMessage(ImageIcon icon, String message)
> >
> > void setErrorMessage(String message)
> >
> > void setErrorMessage(ImageIcon icon, String message)
> >
> > void setVisible(boolean visible)
> >
> > }
> >
> >
> >
> > Let me know, we're a bit stuck at the moment…
> >
> >
> > Thanks!
> >
> > Benoit
> >
> >
> >
> > No virus found in this outgoing message.
> > Checked by AVG Free Edition.
> > Version: 7.5.476 / Virus Database: 269.10.1/888 - Release
> Date:
> > 06/07/2007 06:36
> >
> >
> >
> -------------------------------------------------------------------------
> > This SF.net email is sponsored by DB2 Express
> > Download DB2 Express C - the FREE version of DB2 express and
> take
> > control of your XML. No limits. Just data. Click to get it
> now.
> > http://sourceforge.net/powerbar/db2/
> > _______________________________________________
> Springframework-rcp-dev mailing list
> Spr...@li...
> https://lists.sourceforge.net/lists/listinfo/springframework-rcp-dev
>
>
> **** DISCLAIMER ****
> http://www.schaubroeck.be/maildisclaimer.htm
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and
> take
> control of your XML. No limits. Just data. Click to get it
> now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Springframework-rcp-dev mailing list
> Spr...@li...
> https://lists.sourceforge.net/lists/listinfo/springframework-rcp-dev
>
>
> No virus found in this incoming message.
> Checked by AVG Free Edition.
>
> Version: 7.5.476 / Virus Database: 269.10.2/891 - Release
> Date: 08/07/2007 18:32
>
>
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
>
> Version: 7.5.476 / Virus Database: 269.10.2/891 - Release
> Date: 08/07/2007 18:32
>
>
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and
> take
> control of your XML. No limits. Just data. Click to get it
> now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Springframework-rcp-dev mailing list
> Spr...@li...
> https://lists.sourceforge.net/lists/listinfo/springframework-rcp-dev
>
>
> -------------------------------------------------------------------------
> SF.Net email is sponsored by:
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services
> for just about anything Open Source.
> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
> _______________________________________________ Springframework-rcp-dev mailing list Spr...@li... https://lists.sourceforge.net/lists/listinfo/springframework-rcp-dev
**** DISCLAIMER ****
http://www.schaubroeck.be/maildisclaimer.htm
|