|
Re: Change the style (viewer) of a view [message #30996 is a reply to message #30960] |
Tue, 04 November 2008 14:59 |
Eclipse User |
|
|
|
Originally posted by: eclipse-news.rizzoweb.com
On 11/4/2008 4:38 AM, Matthias Kohles wrote:
> Hey,
>
> i created my own view in a plugin. This view uses a table viewer for
> displaying the input by default. Now i want to implement an option to
> switch from the table viewer to a treeviewer. I know how the viewers are
> working but i don't know how i can change the viewer in my View. There
> is no "setViewer()" method or something like that. Does anyone know how
> i can manage this?
One option would be to use a org.eclipse.swt.custom.StackLayout as the
top-level layout of your view and then you can easily switch between two
children, a tree and a table.
Hope this helps,
Eric
|
|
|
|
|
Re: Change the style (viewer) of a view [message #31523 is a reply to message #31364] |
Thu, 06 November 2008 15:08 |
Eclipse User |
|
|
|
Originally posted by: eclipse-news.rizzoweb.com
On 11/6/2008 1:20 AM, Matthias Kohles wrote:
> Hey,
> thanks for your answer. I've found an example for the StackLayout on
> google, but unfortunately it didn't work for me :(
StackLayout is extremely simple - the Javadoc for it even has example
code. Perhaps if you describe what "didn't work" and show some code you
tried, then we could tell you what is wrong.
Eric
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02193 seconds