Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Going forward, how to handle extensions in a pure e4 app?
Going forward, how to handle extensions in a pure e4 app? [message #760669] Sun, 04 December 2011 04:19 Go to next message
Eclipse UserFriend
In 3.x I understand how to define extension points and contribute
extensions to those points. What I feel I am missing is what is the
model for how to handle this in a pure e4 way? IIRC, defining
extensions the 3.x way will force the use of the compatibility layer.
ATM I don't have a real issue with that, however I still would like to
understand what should be done if you want to go pure e4.

Wb
Re: Going forward, how to handle extensions in a pure e4 app? [message #760693 is a reply to message #760669] Sun, 04 December 2011 10:06 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Why do you think that if you declare your own extension points you use
the compat layer? Extension points are an Equinox concept and you are
free to use it in pure e4. Having said that I though would advise you to
look at Declarative Services as a way to contribute.

Tom


Am 04.12.11 05:19, schrieb Wendell Beckwith:
> In 3.x I understand how to define extension points and contribute
> extensions to those points. What I feel I am missing is what is the
> model for how to handle this in a pure e4 way? IIRC, defining
> extensions the 3.x way will force the use of the compatibility layer.
> ATM I don't have a real issue with that, however I still would like to
> understand what should be done if you want to go pure e4.
>
> Wb
Re: Going forward, how to handle extensions in a pure e4 app? [message #760705 is a reply to message #760693] Sun, 04 December 2011 14:06 Go to previous messageGo to next message
Eclipse UserFriend
On 12/4/2011 4:06 AM, Tom Schindl wrote:
> Why do you think that if you declare your own extension points you use
> the compat layer? Extension points are an Equinox concept and you are
> free to use it in pure e4. Having said that I though would advise you to
> look at Declarative Services as a way to contribute.
>
> Tom

Looking back I see I tied the discussion from the "Pure e4 Application
with old UI extensions" newsgroup thread to the use of the compat.
layer. Now as for DS, there is definitely some overlap between what the
registry does and what DS provides. And in some cases it comes down to
6 of 1 and half a dozen of another where it is just the developer's
preference. However, as an e4 best practice, eclipse should be leading
as to which way we should go. That way most devs will have the same
model making integration easier.

Also IIRC DS is not usable for extensions that are data based like help
content plug-ins. A dev could define an interface that provides all the
info, and put implementations into DS, but it seems overkill in relation
to just using the registry.

Wb
Re: Going forward, how to handle extensions in a pure e4 app? [message #761106 is a reply to message #760705] Mon, 05 December 2011 22:50 Go to previous message
Brian de Alwis is currently offline Brian de AlwisFriend
Messages: 242
Registered: July 2009
Senior Member
There are at least 3 ways to provide extensions:


  1. Extension points
  2. Services (Declarative and registered)
  3. DI with the IEclipseContext and IContextFunctions


They differ in terms of ease-of-definition, the obliviousness of the code using the extension, the types of things that can be injected (like data, as you mentioned), and lifecycle. And in other ways too.

Brian.
Previous Topic:Running e4 as IDE causes curious errors
Next Topic:external css file
Goto Forum:
  


Current Time: Thu Apr 25 15:05:57 GMT 2024

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

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

Back to the top