Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Declare an extension as optional?
Declare an extension as optional? [message #59128] Thu, 30 April 2009 22:31 Go to next message
Timothy Marc is currently offline Timothy MarcFriend
Messages: 547
Registered: July 2009
Senior Member
Hey all,

i have an UML profile (don't panic, it is no UML-specific questions),
which i want to reuse for several IDE's (Papyrus, RSM, etc.), but every
IDE has its own internal registration mechanism via an Extension Point.

Is it possible to declare in one plugin, several extension and set these
extensions to a kind of "optional"? The problem is, that if the required
plugin was not found in the environment, the whole plugin will not be
registered! But, i didn't want to duplicate the Profile/Resource/What
ever for every new IDE.

Thanks a lot
Timothy
Re: Declare an extension as optional? [message #59203 is a reply to message #59128] Fri, 01 May 2009 22:17 Go to previous messageGo to next message
Felix Dorner is currently offline Felix DornerFriend
Messages: 676
Registered: July 2009
Senior Member
Hey Timothy, > Is it possible to declare in one plugin, several
extension and set these
> extensions to a kind of "optional"? The problem is, that if the required
> plugin was not found in the environment, the whole plugin will not be
> registered!
Is it possible to programatically register an extension at runtime?

Felix
Re: Declare an extension as optional? [message #59228 is a reply to message #59203] Sat, 02 May 2009 09:57 Go to previous messageGo to next message
Timothy Marc is currently offline Timothy MarcFriend
Messages: 547
Registered: July 2009
Senior Member
Felix,

what do you want to say with this fragment? Was this an additional
question or an answer? :)

Timothy

Felix Dorner schrieb:
> Hey Timothy, > Is it possible to declare in one plugin, several
> extension and set these
>> extensions to a kind of "optional"? The problem is, that if the
>> required plugin was not found in the environment, the whole plugin
>> will not be registered!
> Is it possible to programatically register an extension at runtime?
>
> Felix
>
>
Re: Declare an extension as optional? [message #59278 is a reply to message #59228] Sat, 02 May 2009 13:32 Go to previous message
Felix Dorner is currently offline Felix DornerFriend
Messages: 676
Registered: July 2009
Senior Member
> what do you want to say with this fragment? Was this an additional
> question or an answer? :)

Hey Timothy. Sorry. I wanted to say: If it is possible to
programatically register an extension at runtime, then you could do:

if (plugin1 is present){
register extension for plugin1
}

Now we just need someone who can answer my question. Then yours would be
answered too :-)

Felix
Re: Declare an extension as optional? [message #596652 is a reply to message #59128] Fri, 01 May 2009 22:17 Go to previous message
Felix Dorner is currently offline Felix DornerFriend
Messages: 676
Registered: July 2009
Senior Member
Hey Timothy, > Is it possible to declare in one plugin, several
extension and set these
> extensions to a kind of "optional"? The problem is, that if the required
> plugin was not found in the environment, the whole plugin will not be
> registered!
Is it possible to programatically register an extension at runtime?

Felix
Re: Declare an extension as optional? [message #596662 is a reply to message #59203] Sat, 02 May 2009 09:57 Go to previous message
Timothy Marc is currently offline Timothy MarcFriend
Messages: 547
Registered: July 2009
Senior Member
Felix,

what do you want to say with this fragment? Was this an additional
question or an answer? :)

Timothy

Felix Dorner schrieb:
> Hey Timothy, > Is it possible to declare in one plugin, several
> extension and set these
>> extensions to a kind of "optional"? The problem is, that if the
>> required plugin was not found in the environment, the whole plugin
>> will not be registered!
> Is it possible to programatically register an extension at runtime?
>
> Felix
>
>
Re: Declare an extension as optional? [message #596680 is a reply to message #59228] Sat, 02 May 2009 13:32 Go to previous message
Felix Dorner is currently offline Felix DornerFriend
Messages: 676
Registered: July 2009
Senior Member
> what do you want to say with this fragment? Was this an additional
> question or an answer? :)

Hey Timothy. Sorry. I wanted to say: If it is possible to
programatically register an extension at runtime, then you could do:

if (plugin1 is present){
register extension for plugin1
}

Now we just need someone who can answer my question. Then yours would be
answered too :-)

Felix
Previous Topic:Toolbar contributions not shown in Customize Perspective dialog
Next Topic:"Build site" debugging
Goto Forum:
  


Current Time: Thu Apr 25 10:19:04 GMT 2024

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

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

Back to the top