Working with XML files [message #437545] |
Thu, 29 September 2005 17:29  |
Eclipse User |
|
|
|
If i wanted to have a couple of xml files defined in my RCP app and wanted to display these in a TreeViewer inside a View, what is the best approach? Would I use the workspace to physically hold these files then use the resource plugin and IProject, IWorkspace, IPath and IFile to access them? Please help and suggest!
Thanks,
Jason
|
|
|
|
|
|
|
|
Re: Working with XML files [message #437668 is a reply to message #437662] |
Fri, 30 September 2005 15:19  |
Eclipse User |
|
|
|
> Jason Milliron wrote:
> >
> >
> > So here is my entire scenario. I would like to have
> 1 perspective with 1 left view with a TreeViewer. In
> that treeViewer I will have Wizards and folders and
> some xml objects. So your saying that those xml
> files should be displayed using JFace but will
> actually be a SWT File chooser? Where does the
> physical file live? On the external file system
> since its not in the workspace? Or should I have
> these files in the workspace because they will be
> kind of like property files and I will need to edit
> them by a custom editor I will build. So when a user
> double clicks one of the xml objects, a custom xml
> editor will be displayed that I can edit and see
> another tree view of the xml in the outline. Does
> this seem feasible for an RCP application? I just
> want to make sure Im heading down the correct path.
> Thank you PW for all your help. I deeply appreciate
> it.
> Sorry, I misunderstood. You want to display files in
> a tree viewer, and
> when the user double clicks on them, then you'll move
> into editing mode.
>
> If you want to role your own navigator view, you can
> put it together
> based on SWT Tree. Check out the snippet on
> http://www.eclipse.org/swt/
>
> * create a tree (lazy)
>
> Or you can try and include org.eclipse.ide in your
> RCP app. You have to
> initialize the workspace somehow (worst case with the
> command line -data
> <workspace_location>)
>
>
>
> I was talking about after a user picks a file and you
> want to display
> the XML contents in a view, although I'm sure you can
> use a TreeViewer
> to imlement a file navigator.
>
> Later,
> PW
Thanks much! Have a great day!!!
|
|
|
Powered by
FUDForum. Page generated in 0.04300 seconds