I have been following the tutorial here. In the advanced tutorial ResourceSelectionHistory stores the selected items and the retrieves it when the dialog is relaunched. I wanted the ResourceSelectionHistory to store objects and not just strings, is there i way to do that.
I also want the items to open in the editor when the user clicks on them. When I click on an item in the actual populated list it opens, but not when I click on the part showing history.
Thanks in advance
c yah!
You can store strings, integers and Boolean to
IMemento. You can cleverly utilize them to reveal the type of object. For example you can useelement.putInteger("objType", 1);if your object is of say type A andelement.putInteger("objType", 2);if its of type B.