Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » using fragments for version-specific features
using fragments for version-specific features [message #335653] Sun, 19 April 2009 17:16 Go to next message
Eclipse UserFriend
Originally posted by: marc.esher.comcast.net

All,
I'd like to take advantage of the new JFace StyledCellLabelProvider in my
plugin; however, I have a lot of users still on 3.3

Is there a way that I can add this support for my 3.4+ users without
creating an entirely separate branch of the plugin just for a single
LabelProvider class? I imagine this is a fairly common thing, but I didn't
see any info on this in my Eclipse books. Possibly though I just don't know
the terminology to look for

Thanks for any tips

marc
Re: using fragments for version-specific features [message #335665 is a reply to message #335653] Mon, 20 April 2009 14:46 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Marc E wrote:
> All,
> I'd like to take advantage of the new JFace StyledCellLabelProvider in
> my plugin; however, I have a lot of users still on 3.3
>
> Is there a way that I can add this support for my 3.4+ users without
> creating an entirely separate branch of the plugin just for a single
> LabelProvider class? I imagine this is a fairly common thing, but I
> didn't see any info on this in my Eclipse books. Possibly though I just
> don't know the terminology to look for

you can either create a 3.4.x compatible version of your plugin that
requires the JFace 3.4.x (so that your 3.3 compatible plugin will be
loaded if 3.4 is not available). Since you are consuming new API, this
the the way to do it.

But I don't see why a fragment wouldn't work ... if you host your
fragment and depend on 3.4 jface. A possible problem is that since a
fragment is simply absorbed into the host plugin space, your fragment
can't require 3.4 JFace if the host can already see 3.3 (at least, you
might have to add that restriction manually).

PW


--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclips e.platform.doc.isv/guide/workbench.htm


Previous Topic:Contributing drop down actions to a view
Next Topic:Properties Page behavior
Goto Forum:
  


Current Time: Thu Apr 25 12:14:06 GMT 2024

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

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

Back to the top