Workspace is closed exception when trying to get the workspace through ResourcesPlugin
- by Jenny Smith
I get this error:
java.lang.IllegalStateException: Workspace is closed.
at org.eclipse.core.resources.ResourcesPlugin.getWorkspace(ResourcesPlugin.java:339)
The code generating it is this:
IWorkspace ws = ResourcesPlugin.getWorkspace();
Can you please help with this problem?