Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Using java 5 features in plugin development
Using java 5 features in plugin development [message #287116] Fri, 24 June 2005 08:15 Go to next message
Eclipse UserFriend
Originally posted by: michael.illgner.email.de

Hi,
It is possible or allowed to use java 5.0 features like generics in
plugin development ?
What happens if a typed collection is used as an input parameter for a
plugin ?
Re: Using java 5 features in plugin development [message #287120 is a reply to message #287116] Fri, 24 June 2005 09:05 Go to previous messageGo to next message
Tom Hofmann is currently offline Tom HofmannFriend
Messages: 770
Registered: July 2009
Senior Member
Michael Illgner wrote:
> Hi,
> It is possible or allowed to use java 5.0 features like generics in
> plugin development ?

Yes - however, eclipse APIs do not currently leverage Java5 features.
Since the APIs usually use arrays, there are not too many places where
you have to live with unchecked conversions.

-tom
Re: Using java 5 features in plugin development [message #287232 is a reply to message #287116] Mon, 27 June 2005 22:01 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse.rizzoweb.com

Michael Illgner wrote:
> Hi,
> It is possible or allowed to use java 5.0 features like generics in
> plugin development ?
> What happens if a typed collection is used as an input parameter for a
> plugin ?

Doing so will mean that all users of your plugin will be required to run
their Eclipse with a 1.5 JVM. I would recommend against that, since
adoption is still slow or uncertain at best.
If you DO decide that 1.5 is required, make it fail gracefully and alert
the user of what the problem is when 1.5 is not present.


Eric
Re: Using java 5 features in plugin development [message #287247 is a reply to message #287232] Tue, 28 June 2005 07:22 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: michael.illgner.email.de

Eric Rizzo wrote:
> Michael Illgner wrote:
>
....
> Doing so will mean that all users of your plugin will be required to run
> their Eclipse with a 1.5 JVM. I would recommend against that, since
> adoption is still slow or uncertain at best.

So, if I build an RCP application it should be alright.
Our server staff wants to use jdk 5.0 features, and so some of the used
5.0 classes are leaking through the server API to the RCP frontend ...
Re: Using java 5 features in plugin development [message #287328 is a reply to message #287247] Tue, 28 June 2005 19:36 Go to previous message
Eclipse UserFriend
Originally posted by: eclipse.rizzoweb.com

Michael Illgner wrote:
> Eric Rizzo wrote:
>
>> Michael Illgner wrote:
>>
> ...
>
>> Doing so will mean that all users of your plugin will be required to
>> run their Eclipse with a 1.5 JVM. I would recommend against that,
>> since adoption is still slow or uncertain at best.
>
>
> So, if I build an RCP application it should be alright.

Eclipse already runs fine under a 1.5 JVM so I would think you're OK.


> Our server staff wants to use jdk 5.0 features, and so some of the used
> 5.0 classes are leaking through the server API to the RCP frontend ...

Oooh, that sounds not-too-friendly. The client<->server API should be as
clean and simple as possible, and have as few dependencies as possible
(I consider "latest and greatest" Java version to be a dependency on par
with depending on a third-party library, which for an API is a
questionable design decision IMO).

HTH,
Eric
Previous Topic:Cann't find SWT Application in Run... menu
Next Topic:plug-in extension point loading policy
Goto Forum:
  


Current Time: Sat Oct 19 14:50:02 GMT 2024

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

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

Back to the top