Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » getInstallURL with RCP applications
getInstallURL with RCP applications [message #201057] Tue, 24 February 2004 15:01 Go to next message
Eclipse UserFriend
I'm a little confused on how to work with images within the context of
RCP applications. In past plugins that extended the AbstractUIPlugin
you could simply use
MyPlugin.getDefault().getDescriptor().getInstallURL() to get the
location of where the icons resided.

In RCP with the usage of the WorkBenchAdvisor's it's not clear to me
how to go about getting a specific plugin's URL and eventually their
icons. The examples I've seen to date only use the SharedImages from
the WorkBench as opposed to Plugin specific resources.

Any thoughts or ideas appreciated!
Re: getInstallURL with RCP applications [message #201144 is a reply to message #201057] Tue, 24 February 2004 17:02 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ed.burnette.REMOVE.THIS.sas.com

You can still have a plug-in class that extends AbstractUIPlugin, and get
your icons in the way you always have. RCP programming is basically the same
as plug-in programming, with a couple extra classes used to customize things
when the app is being run stand-alone. In fact it's common for the same
plug-in to be used in an RCP application and as an add-in to the Eclipse
IDE.

--
Ed Burnette, co-author, Eclipse in Action
www.eclipsepowered.org

"Brendan Reekie" <bdr@rsssolutions.com> wrote in message
news:f0bn30189m9m2ejb4cftqcbji6q6pf7qtc@4ax.com...
> I'm a little confused on how to work with images within the context of
> RCP applications. In past plugins that extended the AbstractUIPlugin
> you could simply use
> MyPlugin.getDefault().getDescriptor().getInstallURL() to get the
> location of where the icons resided.
>
> In RCP with the usage of the WorkBenchAdvisor's it's not clear to me
> how to go about getting a specific plugin's URL and eventually their
> icons. The examples I've seen to date only use the SharedImages from
> the WorkBench as opposed to Plugin specific resources.
>
> Any thoughts or ideas appreciated!
Re: getInstallURL with RCP applications [message #204640 is a reply to message #201144] Tue, 02 March 2004 13:00 Go to previous message
Eclipse UserFriend
Thanks for the reply, it's starting to become clearer. The one
related issue I'm still hung up on is how to locate an icon for the
main RCP application. I have a plugin acting as the main container
for all of my other plugins which seems to be working quite well.

I've seen in other postings the way to set the main RCP applications
icon use:

configurer.getWindow().getShell().setImage(...);

This works fine when I hard code the Image location, but I still
haven't found a way to locate the icon correctly. When I attempt to
create an extended AbstractUIPlugin class and modify my plugin.xml
accordingly the application no longer loads.

Can anyone provide insights recommendations of how they've loaded the
RCP application icon?

Thanks!

On Tue, 24 Feb 2004 17:02:34 -0500, "Ed Burnette"
<ed.burnette@REMOVE.THIS.sas.com> wrote:

>You can still have a plug-in class that extends AbstractUIPlugin, and get
>your icons in the way you always have. RCP programming is basically the same
>as plug-in programming, with a couple extra classes used to customize things
>when the app is being run stand-alone. In fact it's common for the same
>plug-in to be used in an RCP application and as an add-in to the Eclipse
>IDE.

"Brendan Reekie" <bdr@rsssolutions.com> wrote in message
news:f0bn30189m9m2ejb4cftqcbji6q6pf7qtc@4ax.com...
> I'm a little confused on how to work with images within the context of
> RCP applications. In past plugins that extended the AbstractUIPlugin
> you could simply use
> MyPlugin.getDefault().getDescriptor().getInstallURL() to get the
> location of where the icons resided.
>
> In RCP with the usage of the WorkBenchAdvisor's it's not clear to me
> how to go about getting a specific plugin's URL and eventually their
> icons. The examples I've seen to date only use the SharedImages from
> the WorkBench as opposed to Plugin specific resources.
>
> Any thoughts or ideas appreciated!
Previous Topic:Force View Action bar on a separate row?
Next Topic:Repost: PDE + bin directory
Goto Forum:
  


Current Time: Tue Jun 10 19:04:06 EDT 2025

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

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

Back to the top