Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Can't add org.eclipse.e4.ui.progress bundle as dependency(Can't add org.eclipse.e4.ui.progress bundle as dependency)
Can't add org.eclipse.e4.ui.progress bundle as dependency [message #1851578] Fri, 08 April 2022 20:06 Go to next message
Andrew Whelan is currently offline Andrew WhelanFriend
Messages: 71
Registered: October 2012
Location: Syracuse NY
Member
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 10:41 Go to previous messageGo to next message
Rolf Theunissen is currently offline Rolf TheunissenFriend
Messages: 260
Registered: April 2012
Senior Member
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.


Re: Can't add org.eclipse.e4.ui.progress bundle as dependency [message #1851590 is a reply to message #1851587] Sat, 09 April 2022 13:24 Go to previous message
Andrew Whelan is currently offline Andrew WhelanFriend
Messages: 71
Registered: October 2012
Location: Syracuse NY
Member
Thanks Rolf. I was able to download/install the plugin from this update site. Thanks for the information on the target platform. Its a small, old application and previous developers never had a need for one until now. It wouldn't take much to add it and we should do it.

Thanks Again!
Previous Topic:OSGI Console not visible
Next Topic:RCP Application do not export product with Babel feature
Goto Forum:
  


Current Time: Sat May 25 23:40:32 GMT 2024

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

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

Back to the top