Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Where Can I Find org.eclipse.core.runtime.IProgressMonitor?

I am trying to work on some plug-in development for extending RTC and am using some sample code provided as part of a workshop as the basis for my efforts. However, the workshop code includes a reference to a plug-in that isn't included in my eclipse environment.

The following code:

final IQueryableAttribute attributeID = factory.findAttribute(projectArea, attributeIdentifier, auditableCommon, monitor)

Generated errors for each of the parameters of the function. Each error looked something like:

[parameter name] cannot be resolved to a variable

To address it, I looked at the function definition for factory.findAttribute. The definition specified the types of the arguments to the function so I went ahead and declared each argument locally within the function using the identified types:

IAuditableCommon
IProjectAreaHandle
String
IProgressMonitor

For some of these, specifying the type required that I add a reference to a plug-in. The eClipse IDE helped me identify which plug-ins needed to be referenced. However, when I got to IProgressMonitor, the expected plug-in could not be found. I have installed the 4.0.6 RTC SDK, but it doesn't appear to include org.eclipse.core.runtime.IProgressMonitor among the provided plug-ins and that plug-in doesn't appear to be part of my eClipse installation either.

Can someone steer me in the right direction here?

0 votes


Accepted answer

Permanent link
Evidently I needed to add a reference to a package rather than a plug-in. The missing package was org.eclipse.core.runtime.
Ralph Schoon selected this answer as the correct answer

0 votes

Comments

well, actually not true..

it is packaged in
jar org.eclipse.equinox.common

I recently ran across this issue again. Previously it was during extension development (operation behaviors), this time it was during Java client development.

Strangely, adding the org.eclipse.core.runtime packageĀ solved the problem when doing extensions development, but adding a reference to that jar file in Java Client development does not. In fact, if I add a reference to that jar file and then expand the list of classes that belong to it, the IProgressMonitor class is not even present.

Searching online actually led me back to this very question and Sam's response. Adding a reference to org.eclipse.equinox.common does indeed satisfy the IProgressMonitor reference. I feel like I'm in library hell a little bit here. I don't understand why it's different between the two API types.

Anyway, I thought I would post this updated comment on here for future reference.

I think it is packaged in one of the server function jar files too.. and NOT in the client api jars.

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,938

Question asked: Apr 16 '14, 9:14 a.m.

Question was seen: 6,719 times

Last updated: Apr 19 '16, 1:44 p.m.

Confirmation Cancel Confirm