|
|
|
|
|
Re: Working with XML files [message #437662 is a reply to message #437658] |
Fri, 30 September 2005 16:24 |
|
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 it’s 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 I’m 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
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
|
|
|
|
Powered by
FUDForum. Page generated in 0.03726 seconds