Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 20499

Summary: Need a public API similer to FragmentDescriptor#getInstallURL()
Product: [Eclipse Project] Platform Reporter: Tetsuro Asahata <asahata>
Component: ResourcesAssignee: DJ Houghton <dj.houghton>
Status: RESOLVED DUPLICATE QA Contact:
Severity: enhancement    
Priority: P3    
Version: 2.0   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Tetsuro Asahata CLA 2002-06-17 15:24:10 EDT
I'd like to get a fragment install directory from its plugin,
or fragment itself.

I found FragmentDescriptor#getInstallURL() but it is an internal API.

Here is my situation:
I hava a plugin which uses JNI, and JNI dll for each platform 
(Windows and Linux)
needs to load large data files which are independent to platform.

Therefore I'd like to configure as follows:
- my plugin
- its fragment for win32
- its fragment for Linux
- its fragment for common data files which are loaded by JNI dlls

and from the plugin code, I'd like to tell each JNI library where to load
its data files.


Here is a second case:
We have a plugin which has an ActiveX control and its large data files, 
and we'd like to split the plugins to:

A. Plugin with Java code
B. Fragment plugin with the ActiveX control and its data files

or

A. Plugin with Java code
B. Fragment plugin with the ActiveX control
B. Fragment plugin with data files

In ether cases ActiveX control needs to know where to load its 
data files, and I'd like to tell the path to the control from Java code.
Comment 1 DJ Houghton CLA 2002-06-17 15:29:03 EDT

*** This bug has been marked as a duplicate of 14460 ***