Can't add org.eclipse.e4.ui.progress bundle as dependency [message #1851578] |
Fri, 08 April 2022 16:06  |
Eclipse User |
|
|
|
I am trying to figure out how to add a ProgressView to an Eclipse RPC E4 application. I am trying to use the following: http://https://wiki.eclipse.org/Eclipse4/ProgressView.
It outlines 3 steps. The first is "Add the Progress View plug-in (org.eclipse.e4.ui.progress) to your application dependencies". I can't get past this. I am trying to add the dependency from a JAR. The link above says there are 2 ways to produce a JAR.
1)Download from http://https://mvnrepository.com/artifact/com.github.adedayo.eclipse.sdk/org.eclipse.e4.ui.progress/0.1.100
The JAR you could get from here doesn't have any classes. Its just a META-INF folder with metadata.
2)Download Source code from here:
http://http://git.eclipse.org/c/platform/eclipse.platform.ui.git/tree/bundles/org.eclipse.e4.ui.progress
I have to build the whole eclipse.platform.ui, but that's ok. I end up with a JAR that actually has classes.
So now I am trying to figure out how to add this as a dependency. I added the JAR ( org.eclipse.e4.ui.progress-<version>.jar) to the classpath in my Eclipse RCP E4 project (Right click->"Build Path"-<"Configure Build Path..").
I am trying to use the standard way of adding the bundle/plugin as a dependency to the project, (section 6.14 of http://https://www.vogella.com/tutorials/EclipseRCP/article.html explains it).
Basically double clicking on the plugin.xml file, click on he dependency tab, there is a list of "Required Plugin-ins". Click "Add". There is a "Select a Plugi-in" list and matching items. The trouble is that the org.eclipse.e4.ui.progress plugin is not available so, I can't add it to the application. It seems it doesn't get resolved.
A note to add: the org.eclipse.e4.ui.progress-<version>.jar contents have a plugin.properties file but no plugin.xml. I don't know if that's expected, but it surprised me. Thats how it built using the Maven build.
My questions is: Is it the case that adding org.eclipse.e4.ui.progress-<version>.jar to the build path isn't sufficient? (If I try adding it to the MANIFEST.MF file's "Require-Bundle" section there is an error that the bundle can't be resolved).
Any insights would be appreciated.
|
|
|
Re: Can't add org.eclipse.e4.ui.progress bundle as dependency [message #1851587 is a reply to message #1851578] |
Sat, 09 April 2022 06:41   |
Eclipse User |
|
|
|
Eclipse uses the OSGi framework to manage plugin dependencies. That is, the jars in an Eclipse product are 'special' it are OSGi bundles or plugins. OSGi is used to manage the classpath, as a result, adding a jar to the classpath doesn't work as you expect it to work in this OSGi environment.
You should be able to add the progress plugin as dependency to the product/feature/plugin (sections 6.7/6.3/6.14 of the tutorial). However, the plugin should be part of your target-platform. By default, Eclipse takes the target-platform from your running IDE. The org.eclipse.e4.ui.progress is not part of the IDE by default, and thus not available in the target platform.
You can download/install the plugin from this update site: https://download.eclipse.org/eclipse/updates/4.23/
When you continue with your RCP, I suggest that you create a target-platform for your product, to be in control what is included in your RCP and not. A target platform can be made by hand, or generated by Oomph.
|
|
|
|
Powered by
FUDForum. Page generated in 0.04124 seconds