Bundle State Location

The bundle state location is the path to a meta data folder of the bundle in the workspace where a bundle can put its state and/or temporary stuff.

Bundle miworkplace.services f. e. has the bundle location:

workspace/.metadata/.plugins/miworkplace.services

The bundle state location can be easily retrieved with the class org.eclipse.core.runtime.Platform.

Bundle bundle = Platform.getBundle(PLUGIN_ID);
IPath bundleStateLocation = Platform.getStateLocation(bundle);