|Serialization of an IJavaElement ? [message #757067]
||Wed, 16 November 2011 10:54
| Missing name Missing name
Registered: November 2011
I am working with drag/drop to store certain java elements that were dropped into my view. Those elements implement the IJavaElement interface(I usually drag from the package explorer). They are actually also a TreePath Elements and thus, the half Eclipse environment is attached to this objects, which causes problems if I try to store them persistently.
I need those dropped objects as some kind of "favorites" and I want to open them at a later point in time in the corresponding default editor:
IEditorPart part = JavaUI.openInEditor((IJavaElement) node
JavaUI.revealInEditor(part, (IJavaElement) node.getValue());
Converting the object to a string alone won't help me if I try to open the file; Is there a way to serialize an IJavaElement (or to rebuild one from a string)?
Powered by FUDForum
. Page generated in 0.01934 seconds