Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » conditional wizard
conditional wizard [message #466411] Wed, 18 April 2007 14:26 Go to next message
Sven Krause is currently offline Sven KrauseFriend
Messages: 64
Registered: July 2009
Member
Hi,

I've sees the question has been asked before but unfortunately not
answered yet...

How can I "disable" a wizard from use dynamically, if e.g. some
preconditions are not fulfilled? Leaving the addPages() empty results in
a blank page. It looks like the wizard itself will be initialized after
the wizard has been choosen - so its too late. Again: can I and how can
I disable or remove a wizard declared at the extension point?

Thanks in advance,
Sven
Re: conditional wizard [message #466493 is a reply to message #466411] Fri, 20 April 2007 07:26 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: peter_ossipov.mail.ru

Well, I tried the following approach. The thing was that on the start of
application the license was checked and some of the extension points
were added on the fly, if the license was appropriate.
There is even a hacky approach where you have to use reflection to
obtain a private object of some class managing the extension and using
that object you can remove the desired extension point.
You can use the first approach - it is "legal", so to speak, but the
second one is hacky, so you will probably be better showing some warning
messages in a wizard explaining why it does not want to work.
I can not provide you with details, how I did it. Try searching. I
explained the first approach in detail in of the topics about a year ago.
Sven Krause wrote:
> Hi,
>
> I've sees the question has been asked before but unfortunately not
> answered yet...
>
> How can I "disable" a wizard from use dynamically, if e.g. some
> preconditions are not fulfilled? Leaving the addPages() empty results
> in a blank page. It looks like the wizard itself will be initialized
> after the wizard has been choosen - so its too late. Again: can I and
> how can I disable or remove a wizard declared at the extension point?
>
> Thanks in advance,
> Sven
Re: conditional wizard [message #466495 is a reply to message #466493] Fri, 20 April 2007 07:42 Go to previous message
Eclipse UserFriend
Originally posted by: peter_ossipov.mail.ru

I found that topic! Here you go
http://dev.eclipse.org/newslists/news.eclipse.platform.rcp/m sg16765.html
:-)
Peter Osipov wrote:
> Well, I tried the following approach. The thing was that on the start
> of application the license was checked and some of the extension
> points were added on the fly, if the license was appropriate.
> There is even a hacky approach where you have to use reflection to
> obtain a private object of some class managing the extension and using
> that object you can remove the desired extension point.
> You can use the first approach - it is "legal", so to speak, but the
> second one is hacky, so you will probably be better showing some
> warning messages in a wizard explaining why it does not want to work.
> I can not provide you with details, how I did it. Try searching. I
> explained the first approach in detail in of the topics about a year ago.
> Sven Krause wrote:
>> Hi,
>>
>> I've sees the question has been asked before but unfortunately not
>> answered yet...
>>
>> How can I "disable" a wizard from use dynamically, if e.g. some
>> preconditions are not fulfilled? Leaving the addPages() empty results
>> in a blank page. It looks like the wizard itself will be initialized
>> after the wizard has been choosen - so its too late. Again: can I and
>> how can I disable or remove a wizard declared at the extension point?
>>
>> Thanks in advance,
>> Sven
Previous Topic:Where custom perspective stored?
Next Topic:MasterDetailsBlock resizes when expanding section
Goto Forum:
  


Current Time: Thu Apr 25 06:53:45 GMT 2024

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

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

Back to the top