|
Re: Changing contents of an editor [message #326199 is a reply to message #326186] |
Tue, 11 March 2008 12:52 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: eclipse-news.rizzoweb.com
Jan Weidauer wrote:
> Hi there.
>
> I've built an editor which displays a set of SWT based editors like
> org.eclipse.swt.widgets.Text.
> The input file for this editor consists of different parts: a root part
> and a set of other parts. The editor shall display only one part in a
> time. On opening the editor will show the root part. To switch the part
> to be displayed I built a tree viewer in the outline view. By selecting
> an item in the outline the content of the editor shall change and so the
> selected part from input file shall be displayed.
> My problem is, that I have absolutely no idea how to tell the editor to
> update and redraw itself. Does anyone have a hint?
There are several options, depending on the user experience you want to
provide. Instead of using the outline view you could use a multi-page
(multi-tab) editor, one tab for each part. Another idea would be to have
a single tab editor but follow the master/details UI design (like the
Extensions tab of the plugin editor).
Finally, if you really want to keep using the Outline view, you could
use a StackLayout in your editor to show only one composite at a time
(each composite representing a part of your file).
Hope this helps,
Eric
|
|
|
|
Powered by
FUDForum. Page generated in 0.03483 seconds