Community
Participate
Working Groups
= Problem description = Calling EcorePlatformUtil#getFile(Resoure) and EcorePlatformUtil#getFile(URI) in standalone applications currently causes an IllegalStateException indicating that the workspace is closed. This comes from the fact that the WorkspaceSynchonizer#getFile(URI) method that is ultimately invoked by both of aforementioned methods attempts to access the workspace by calling ResourcesPlugin#getWorkspace() but the latter has never been initialized. = Resolution proposal = Add a Platform#isRunning() test to EcorePlatformUtil#getFile(Resoure) and EcorePlatformUtil#getFile(URI) and let them return null if it evaluates to false.
Fixed as proposed in description.
Mass-closing Resolved tickets