Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Dyanmic AboutDialog text
Dyanmic AboutDialog text [message #462980] Fri, 02 February 2007 20:08 Go to next message
Stef van Dijk is currently offline Stef van DijkFriend
Messages: 31
Registered: July 2009
Member
Hope this is the right place to ask...

I know I can define the aboutText as a property for the
org.eclipse.core.runtime.products extension point. However, I'd like for the
text to be more "dynamic" and thus not have it hardcoded into a plugin.xml
file. Is there a way to acheive this?
Looking around, I've found IProductProvider. Is this a way by which I can
accomplish this, and if so, does anyone have an example of how this approach
might be used?
Re: Dyanmic AboutDialog text [message #463063 is a reply to message #462980] Mon, 05 February 2007 20:10 Go to previous messageGo to next message
Stef van Dijk is currently offline Stef van DijkFriend
Messages: 31
Registered: July 2009
Member
I've tried to make use of IProductProvider, but I keep running into dead
ends with it. Has anyone used this mechanism with success?
One of the issues I have with using <provider> rather than <product> is that
in the launcher, I can no longer select "Run a product" and from there, I
can't get it to recognize the product I return from my provider. In the end,
I wind up with a NullPointerException because of the intro extension point
I'm also trying to define.

Stef

"Stef van Dijk" <not-me@not-here.com> wrote in message
news:eq05o0$egh$1@utils.eclipse.org...
> Hope this is the right place to ask...
>
> I know I can define the aboutText as a property for the
> org.eclipse.core.runtime.products extension point. However, I'd like for
> the text to be more "dynamic" and thus not have it hardcoded into a
> plugin.xml file. Is there a way to acheive this?
> Looking around, I've found IProductProvider. Is this a way by which I can
> accomplish this, and if so, does anyone have an example of how this
> approach might be used?
>
Re: Dyanmic AboutDialog text [message #533994 is a reply to message #462980] Mon, 17 May 2010 16:13 Go to previous message
Justin Dolezy is currently offline Justin DolezyFriend
Messages: 68
Registered: July 2009
Member
An old thread, but I'd like to do something similar - ie supply a more "context aware" aboutText at runtime before the AboutDialog becomes visible.

I managed to achieve this with Ganymede (3.4) rather rudely extending the AboutDialog and overriding method
protected AboutItem scan(String s)
in parent class ProductInfoDialog.

However I'm moving to Helios (3.6) now and things have changed making this approach no longer possible.

It seems as of 3.5 there are extension points to customise the AboutDialog - however I haven't seen anything that allows runtime provision of the aboutText.

Is this correct? Is there some way to achieve this?

Thanks,
Jusitn
Previous Topic:Associating an Action with a key binding
Next Topic:direct process output to console view
Goto Forum:
  


Current Time: Thu Dec 18 04:08:24 GMT 2014

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

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