Thursday, January 15, 2009

Eclipse: Create a file in the runtime workspace

Sometimes you may need to create a file in the runtime workspace temporarily or to store application wide data. This is better than storing the file inside the .metadata/.plugins/ folder since this will require having to have a dependency on plugin which is creating the file.


IPath path = Platform.getLocation();


This gives the path of the runtime workspace.

No comments: