Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Problems with path to resource
Problems with path to resource [message #1759045] Wed, 05 April 2017 14:30
kozhaev Vladimir is currently offline kozhaev VladimirFriend
Messages: 108
Registered: July 2009
Senior Member
Hi all
I have following build.properties in my eclipse plug-in

source.. = src/main/java,\
           src/main/resources
output.. = bin/
bin.includes = plugin.xml,\
               META-INF/,\
               .


And following structure of the project

index.php/fa/28983/0/

When I try to load the image with following code, I have null pointer exception.

private static void putInIconMap(
			HashMap<String, Image> pIconsMap, String pEnv, String pIconPath) {
		ImageDescriptor fromPlugin = AbstractUIPlugin.imageDescriptorFromPlugin(PLUGIN_ID,
						pIconPath);
		try {

			Image createImage = fromPlugin.createImage();
			pIconsMap.put(pEnv, createImage);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}


Look like some problem with the path to file.
But why and how I can to fix it?
Regards,
Vladimir
Previous Topic:Restricting Target Platform's API usage when developing Eclipse plugins
Next Topic:Line/Column Number missing in Status Bar for custom Text Editor
Goto Forum:
  


Current Time: Fri Apr 26 11:34:53 GMT 2024

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

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

Back to the top