|
Re: conditional wizard [message #466493 is a reply to message #466411] |
Fri, 20 April 2007 07:26 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03437 seconds