SWT Browser window displays incorrectly after exporting [message #901321] |
Fri, 10 August 2012 15:28  |
Eclipse User |
|
|
|
I have an Eclipse RCP application created using Indigo. Application includes an SWT Browser window. HTML for the browser window displays an OpenLayers map. HTML attached. When I run from the Eclipse IDE browser window displays correctly. After I export using the export wizard, the browser window will launch but the map does not appear. Two screen prints attached. There are no errors in the JAVA console, OSGI console shows the plugin active with no unsatisfied dependencies. I've verified the jar file is complete and that the plugin manifest class path contains all the folders.
Resource is loaded by the application using:
public static URL locateResource(String relativePath) {
URL fileUrl = null;
try {
Bundle bundle = getDefault().getBundle();
Path path = new Path(relativePath); //$NON-NLS-1$
URL url = FileLocator.find(bundle, path, Collections.EMPTY_MAP);
fileUrl = FileLocator.toFileURL(url);
} catch (Exception e) {
// Will happen if the file cannot be read for some reason
e.printStackTrace();
}
return fileUrl;
}
Any ideas or suggestions would be greatly appreciated.
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.63888 seconds