Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Serialization of an IJavaElement ?(Serialization of an IJavaElement ?)
Serialization of an IJavaElement ? [message #757067] Wed, 16 November 2011 10:54
Missing name Missing name is currently offline Missing name Missing nameFriend
Messages: 6
Registered: November 2011
Junior Member

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)?
Previous Topic:Understanding the Evolution Eclipse non-APIs
Next Topic:export war/ear file programmatically
Goto Forum:

Current Time: Sat Jul 02 01:39:57 GMT 2022

Powered by FUDForum. Page generated in 0.01698 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top