Skip to main content



      Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Declare an extension as optional?
Declare an extension as optional? [message #59128] Thu, 30 April 2009 18:31 Go to next message
Eclipse UserFriend
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 18:17 Go to previous messageGo to next message
Eclipse UserFriend
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 05:57 Go to previous messageGo to next message
Eclipse UserFriend
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 09:32 Go to previous message
Eclipse UserFriend
> 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 18:17 Go to previous message
Eclipse UserFriend
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 05:57 Go to previous message
Eclipse UserFriend
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 09:32 Go to previous message
Eclipse UserFriend
> 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 Jul 03 13:45:45 EDT 2025

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

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

Back to the top