Java API extending - how to get workspace root
Hi,
Using RTC 4.0.3 Java API I am trying to load an existing workspace to download content from the stream. I am basing my code on the sample here:
https://jazz.net/forum/questions/118483/rtc-v401-java-api-how-to-load-a-workspace-using-java-api
My code fails at the following line with an IllegalStateException "Workspace is closed".
File workspaceRoot = ResourcesPlugin.getWorkspace().getRoot().getLocation().toFile();
I don't see documentation available for the ResourcesPlugin class. Is there a way to get a File workspace root object from a IWorkspaceConnection object?
A different build of the source from the Forum link above indicates that the DojoObject class is required. Can anyone point me to where I might be able to dowload the .jar for com.ibm.jdojo.lang.DojoObject?
Peter
|
One answer
That code is Eclipse API and is out of scope for RTC API.
However, the Javadoc for ResourcesPlugin#getWorkspace() says the workspace is not accessible after the resources plug-in has shutdown.
|
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.