Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Location of Filter icon?
Location of Filter icon? [message #104746] Tue, 14 October 2003 19:15 Go to next message
Eclipse UserFriend
Originally posted by: derisor.arcor.de

I am trying to locate the icon used for filter actions and it isn't in the
SharedIcons class. Can anyone tell me where I can find it and why it isn't in
the
shared icons?

Should I file a bug that it should be in shared icons?

-- Robert
Re: Location of Filter icon? [message #104769 is a reply to message #104746] Tue, 14 October 2003 21:02 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: derisor.arcor.de

I have the same problem with the Refresh icon.

-- Robert

"Robert Simmons" <derisor@arcor.de> wrote in message
news:bmi01r$nq2$1@eclipse.org...
> I am trying to locate the icon used for filter actions and it isn't in the
> SharedIcons class. Can anyone tell me where I can find it and why it isn't in
> the
> shared icons?
>
> Should I file a bug that it should be in shared icons?
>
> -- Robert
>
>
Re: Location of Filter icon? [message #104783 is a reply to message #104769] Tue, 14 October 2003 21:27 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ed.burnette.REMOVE.THIS.sas.com

Go to Eclipse's plugins directory and do a find for *.gif. That will give
you more icons than you can shake a stick at, and the location will tell you
which plug-in loads the one you want.

--
Ed Burnette, co-author Eclipse in Action (www.manning.com/gallardo)


"Robert Simmons" <derisor@arcor.de> wrote in message
news:bmi69f$ssj$1@eclipse.org...
> I have the same problem with the Refresh icon.
>
> -- Robert
>
> "Robert Simmons" <derisor@arcor.de> wrote in message
> news:bmi01r$nq2$1@eclipse.org...
> > I am trying to locate the icon used for filter actions and it isn't in
the
> > SharedIcons class. Can anyone tell me where I can find it and why it
isn't in
> > the
> > shared icons?
> >
> > Should I file a bug that it should be in shared icons?
> >
> > -- Robert
> >
> >
>
>
Re: Location of Filter icon? [message #104809 is a reply to message #104783] Tue, 14 October 2003 21:55 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: derisor.arcor.de

OK, so I found them under the following paths, but how do I load an image in
another plugin?

org.eclipse.jdt.ui_3.0.0\icons\full\clcl16\filter_ps.gif
org.eclipse.update.ui_3.0.0\icons\full\clcl16\refresh_nav.gi f

-- Robert

"Ed Burnette" <ed.burnette@REMOVE.THIS.sas.com> wrote in message
news:bmi7pv$u2v$1@eclipse.org...
> Go to Eclipse's plugins directory and do a find for *.gif. That will give
> you more icons than you can shake a stick at, and the location will tell you
> which plug-in loads the one you want.
>
> --
> Ed Burnette, co-author Eclipse in Action (www.manning.com/gallardo)
>
>
> "Robert Simmons" <derisor@arcor.de> wrote in message
> news:bmi69f$ssj$1@eclipse.org...
> > I have the same problem with the Refresh icon.
> >
> > -- Robert
> >
> > "Robert Simmons" <derisor@arcor.de> wrote in message
> > news:bmi01r$nq2$1@eclipse.org...
> > > I am trying to locate the icon used for filter actions and it isn't in
> the
> > > SharedIcons class. Can anyone tell me where I can find it and why it
> isn't in
> > > the
> > > shared icons?
> > >
> > > Should I file a bug that it should be in shared icons?
> > >
> > > -- Robert
> > >
> > >
> >
> >
>
>
Re: Location of Filter icon? [message #106436 is a reply to message #104809] Thu, 16 October 2003 11:52 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: derisor.arcor.de

No one knows how I load an icon from another plugin? A hint off where to look
for help on it would also be helpful.

-- Robert

"Robert Simmons" <derisor@arcor.de> wrote in message
news:bmi9eg$vec$1@eclipse.org...
> OK, so I found them under the following paths, but how do I load an image in
> another plugin?
>
> org.eclipse.jdt.ui_3.0.0\icons\full\clcl16\filter_ps.gif
> org.eclipse.update.ui_3.0.0\icons\full\clcl16\refresh_nav.gi f
>
> -- Robert
>
> "Ed Burnette" <ed.burnette@REMOVE.THIS.sas.com> wrote in message
> news:bmi7pv$u2v$1@eclipse.org...
> > Go to Eclipse's plugins directory and do a find for *.gif. That will give
> > you more icons than you can shake a stick at, and the location will tell you
> > which plug-in loads the one you want.
> >
> > --
> > Ed Burnette, co-author Eclipse in Action (www.manning.com/gallardo)
> >
> >
> > "Robert Simmons" <derisor@arcor.de> wrote in message
> > news:bmi69f$ssj$1@eclipse.org...
> > > I have the same problem with the Refresh icon.
> > >
> > > -- Robert
> > >
> > > "Robert Simmons" <derisor@arcor.de> wrote in message
> > > news:bmi01r$nq2$1@eclipse.org...
> > > > I am trying to locate the icon used for filter actions and it isn't in
> > the
> > > > SharedIcons class. Can anyone tell me where I can find it and why it
> > isn't in
> > > > the
> > > > shared icons?
> > > >
> > > > Should I file a bug that it should be in shared icons?
> > > >
> > > > -- Robert
> > > >
> > > >
> > >
> > >
> >
> >
>
>
Re: Location of Filter icon?/Load an icon image [message #107145 is a reply to message #104809] Fri, 17 October 2003 15:00 Go to previous message
Eclipse UserFriend
Originally posted by: ed.burnette.REMOVE.THIS.sas.com

You'll have to copy the image into your own plug-in, then load it from
there. They're usually very small so that shouldn't be a problem. I've
included some example code for your plugin class to load an image below. You
give it a path relative to the top level directory of your plugin (e.g.,
"icons/myIcon.gif"). Be sure to mention the icons in your build.properties
file or they won't get included in your plugin's zip file.

/**
* Returns the ImageDescriptor for the icon with the given path
*
* @return the ImageDescriptor object
*/
public ImageDescriptor getImageDescriptor(String path) {
ImageDescriptor desc = getImageRegistry().getDescriptor(path);
if (desc == null) {
try {
URL installURL = getDescriptor().getInstallURL();
URL url = new URL(installURL, path);
desc = ImageDescriptor.createFromURL(url);
getImageRegistry().put(path, desc);
} catch (MalformedURLException e) {
DebugPlugin.log(e);
}
}
return desc;
}

/**
* Returns the Image for the icon with the given path
*
* @return the Image object
*/
public Image getImage(String path) {
if (getImageDescriptor(path) == null) {
return null;
}
Image image = getImageRegistry().get(path);
return image;
}




"Robert Simmons" <derisor@arcor.de> wrote in message
news:bmi9eg$vec$1@eclipse.org...
> OK, so I found them under the following paths, but how do I load an image
in
> another plugin?
>
> org.eclipse.jdt.ui_3.0.0\icons\full\clcl16\filter_ps.gif
> org.eclipse.update.ui_3.0.0\icons\full\clcl16\refresh_nav.gi f
>
> -- Robert
>
> "Ed Burnette" <ed.burnette@REMOVE.THIS.sas.com> wrote in message
> news:bmi7pv$u2v$1@eclipse.org...
> > Go to Eclipse's plugins directory and do a find for *.gif. That will
give
> > you more icons than you can shake a stick at, and the location will tell
you
> > which plug-in loads the one you want.
> >
> > --
> > Ed Burnette, co-author Eclipse in Action (www.manning.com/gallardo)
> >
> >
Previous Topic:Eclipse 3.0 and J2me
Next Topic:How to get J9 working with Eclipse M4 on Linux
Goto Forum:
  


Current Time: Fri May 02 18:23:42 EDT 2025

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

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

Back to the top