Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Including icons in a plug-in
Including icons in a plug-in [message #51171] Wed, 28 May 2003 08:57 Go to next message
Jon Skeet is currently offline Jon SkeetFriend
Messages: 67
Registered: July 2009
Member
I'm sure everyone who's developed a plug-in knows the answer to this
one, but I can't find it in the help...

I've got an editor, which uses an icon. All works fine when I deploy
the plug-in manually - I copy over the "icons" directory as well as
plugin.xml and the code jar file, and all is well. However, trying to
package the plug-in into a feature and put that on an update site, I
can't work out where I need to specify that the icons directory should
be packaged as well. Is it in the plug-in project or the feature
project? Where is it in either of them?

--
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet/
If replying to the group, please do not mail me too
Re: Including icons in a plug-in [message #51463 is a reply to message #51171] Wed, 28 May 2003 10:12 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: gg.decisionsoft.com

Jon Skeet wrote:
> I'm sure everyone who's developed a plug-in knows the answer to this
> one, but I can't find it in the help...
>
> I've got an editor, which uses an icon. All works fine when I deploy
> the plug-in manually - I copy over the "icons" directory as well as
> plugin.xml and the code jar file, and all is well. However, trying to
> package the plug-in into a feature and put that on an update site, I
> can't work out where I need to specify that the icons directory should
> be packaged as well. Is it in the plug-in project or the feature
> project? Where is it in either of them?
>

If your using Eclipse to package up the feature all you need to do is
open build.properties for the plugin and add "icons/" to "bin.includes".
This should created the icons directory where needed.

Geoff.
Re: Including icons in a plug-in [message #51594 is a reply to message #51463] Wed, 28 May 2003 10:49 Go to previous messageGo to next message
Jon Skeet is currently offline Jon SkeetFriend
Messages: 67
Registered: July 2009
Member
Geoff Gibbs <gg@decisionsoft.com> wrote:
> > I've got an editor, which uses an icon. All works fine when I deploy
> > the plug-in manually - I copy over the "icons" directory as well as
> > plugin.xml and the code jar file, and all is well. However, trying to
> > package the plug-in into a feature and put that on an update site, I
> > can't work out where I need to specify that the icons directory should
> > be packaged as well. Is it in the plug-in project or the feature
> > project? Where is it in either of them?
>
> If your using Eclipse to package up the feature all you need to do is
> open build.properties for the plugin and add "icons/" to "bin.includes".
> This should created the icons directory where needed.

Thanks. I'm surprised this needs to be done semi-manually though - I'd
have thought it would be something that an awful lot of plug-ins need.
I'm also surprised it's either not documented or not very simply
documented: "including resources in your plug-in" or something similar.
It's easy to include resources within a plug-in *library* - why not
outside it? (Not moaning to you personally, of course.)

Does anyone know of any RFE for this?

--
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet/
If replying to the group, please do not mail me too
Re: Including icons in a plug-in [message #53278 is a reply to message #51594] Thu, 29 May 2003 07:11 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: gg.decisionsoft.com

> Thanks. I'm surprised this needs to be done semi-manually though - I'd
> have thought it would be something that an awful lot of plug-ins need.
> I'm also surprised it's either not documented or not very simply
> documented: "including resources in your plug-in" or something similar.

We've just started developing a product as an Eclipse feature and are
finding a number of problems like this.
We've created an internal website with How Tos and FAQs to document
things like this, and others, so that we don't get stuck each time a new
developer hits the problem.

There is a chance we may make this site external, depending on how
useful it turns out to be (or how much demand there seems to be for a
site like it).

Geoff.
Re: Including icons in a plug-in [message #53377 is a reply to message #53278] Thu, 29 May 2003 07:44 Go to previous messageGo to next message
Jon Skeet is currently offline Jon SkeetFriend
Messages: 67
Registered: July 2009
Member
Geoff Gibbs <gg@decisionsoft.com> wrote:
> > Thanks. I'm surprised this needs to be done semi-manually though - I'd
> > have thought it would be something that an awful lot of plug-ins need.
> > I'm also surprised it's either not documented or not very simply
> > documented: "including resources in your plug-in" or something similar.
>
> We've just started developing a product as an Eclipse feature and are
> finding a number of problems like this.
> We've created an internal website with How Tos and FAQs to document
> things like this, and others, so that we don't get stuck each time a new
> developer hits the problem.
>
> There is a chance we may make this site external, depending on how
> useful it turns out to be (or how much demand there seems to be for a
> site like it).

I would personally find such a site useful - or you could consider
adding the pages to the eclipse wiki:

http://eclipsewiki.swiki.net

(I believe there *was* a plan to move this onto www.eclipse.org, but I
haven't seen any evidence of it happening. I may well have just missed
it though.)

--
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet/
If replying to the group, please do not mail me too
Re: Including icons in a plug-in [message #54508 is a reply to message #53377] Thu, 29 May 2003 17:49 Go to previous message
Martin Möbius is currently offline Martin MöbiusFriend
Messages: 90
Registered: July 2009
Member
Last thing I got were a contribution agreement to move the contents to
another wiki, about january that year.

martin
Previous Topic:eclipse not handling international chars
Next Topic:Eclipse Problems
Goto Forum:
  


Current Time: Fri Apr 19 20:58:37 GMT 2024

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

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

Back to the top