Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Accessing plugin resources
Accessing plugin resources [message #465528] Sun, 01 April 2007 08:54 Go to next message
Amgad Hanafy is currently offline Amgad HanafyFriend
Messages: 11
Registered: July 2009
Junior Member
What is the best way to access the internal plugin resources? for example:

- using PlatformUI.getPreferenceStore()
or
Activator.getDefault().getPreferenceStore();

another case

- using Activator.imageDescriptorFromPlugin(pluginId,imageFilePath)
or
ImageDescriptor.createFromURL(MyClass.class.getResource("photo.gif "));
Re: Accessing plugin resources [message #465543 is a reply to message #465528] Mon, 02 April 2007 08:19 Go to previous messageGo to next message
Jakub Jurkiewicz is currently offline Jakub JurkiewiczFriend
Messages: 38
Registered: July 2009
Member
Hi Amgad,

For me the:

> Activator.getDefault().getPreferenceStore();
and
> Activator.imageDescriptorFromPlugin(pluginId,imageFilePath)

I always use these ones.

regards,
Jakub Jurkiewicz

Amgad Hanafy wrote:
> What is the best way to access the internal plugin resources? for example:
>
> - using PlatformUI.getPreferenceStore()
> or
> Activator.getDefault().getPreferenceStore();
>
> another case
>
> - using Activator.imageDescriptorFromPlugin(pluginId,imageFilePath)
> or
> ImageDescriptor.createFromURL(MyClass.class.getResource("photo.gif "));
Re: Accessing plugin resources [message #465567 is a reply to message #465543] Mon, 02 April 2007 12:42 Go to previous message
Amgad Hanafy is currently offline Amgad HanafyFriend
Messages: 11
Registered: July 2009
Junior Member
Is there a difference between them or they do the same job ?
Previous Topic:adding jmxremote_optional.jar in existing RCP application
Next Topic:Problem loading plugin when started from outside eclipse
Goto Forum:
  


Current Time: Wed Sep 25 03:38:31 GMT 2024

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

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

Back to the top