Differences
This shows you the differences between two versions of the page.
— |
saving_bundle_state_data [2021/04/05 11:23] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Saving Bundle State Data ====== | ||
+ | Problem number one is: //Where to save the data?// | ||
+ | |||
+ | Eclipse provides a bundle state location which can be obtain in various ways. | ||
+ | |||
+ | ===== Eclipse Platform ===== | ||
+ | The '' | ||
+ | |||
+ | Bundle bundle = Platform.getBundle(PLUGIN_ID); | ||
+ | IPath location = Platform.getStateLocation(bundle); | ||
+ | | ||
+ | This returns the location to a directory the bundle can use to store some bundle specific data. The directory will exist if queried in this way. | ||
+ | |||
+ | Internal: The directory can be found at ''< | ||
+ | |||
+ | |||
+ | {{tag> | ||