Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » TreeViewer with non-visible objects
TreeViewer with non-visible objects [message #230273] Thu, 08 February 2007 09:59 Go to next message
Eclipse UserFriend
Originally posted by: johan.piculell.ericsson.com

Hi.
I have a ContentOutlinePage with a TreeView and this shows my graphical
objects I have in my model just fine, so far so good.
But now I want to add nodes in the TreeView that does not show in the
Editor area, i.e I have model objects that have no graphical
representation and should only show up in the tree overview.
I have not found any way to directly add nodes to the tree, so I tried to
add nodes just as I do with the graphical elements, but then I need to add
something to the editor area as well which messes up some other things
like autolayout.
Quite hard to explain, but someone hopefully follows what I mean and might
have a clue if this is possible to achieve or not.

regards
/Johan
Re: TreeViewer with non-visible objects [message #230312 is a reply to message #230273] Thu, 08 February 2007 11:21 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: neerajkarandikar.gmail.com

I faced similer problem with no obvious and effiecient solution.
The workaround i used is:
For the components which should not be visible on graphical editor i added
an empty white image for the graphical editor and placed them at 0,0
location then i made them non-selectable by user... I works fine but still
not very promising solution.

-Neeraj


"Johan" <johan.piculell@ericsson.com> wrote in message
news:07ee5407a89f47f4e1e7c894d2955f08$1@www.eclipse.org...
> Hi.
> I have a ContentOutlinePage with a TreeView and this shows my graphical
> objects I have in my model just fine, so far so good. But now I want to
> add nodes in the TreeView that does not show in the Editor area, i.e I
> have model objects that have no graphical representation and should only
> show up in the tree overview. I have not found any way to directly add
> nodes to the tree, so I tried to add nodes just as I do with the graphical
> elements, but then I need to add something to the editor area as well
> which messes up some other things like autolayout. Quite hard to explain,
> but someone hopefully follows what I mean and might have a clue if this is
> possible to achieve or not.
>
> regards
> /Johan
>
Re: TreeViewer with non-visible objects [message #230498 is a reply to message #230312] Tue, 13 February 2007 00:18 Go to previous message
Eclipse UserFriend
Originally posted by: none.unknown.com

There is no restriction saying that you can only have tree items for items
in the editor. You don't need to add anything to the editor. The tree
editpart can return a different set of children in its getModelChildren()
method than the one in the editor.

"neeraj" <neerajkarandikar@gmail.com> wrote in message
news:eqf13t$eao$1@utils.eclipse.org...
>I faced similer problem with no obvious and effiecient solution.
> The workaround i used is:
> For the components which should not be visible on graphical editor i added
> an empty white image for the graphical editor and placed them at 0,0
> location then i made them non-selectable by user... I works fine but still
> not very promising solution.
>
> -Neeraj
>
>
> "Johan" <johan.piculell@ericsson.com> wrote in message
> news:07ee5407a89f47f4e1e7c894d2955f08$1@www.eclipse.org...
>> Hi.
>> I have a ContentOutlinePage with a TreeView and this shows my graphical
>> objects I have in my model just fine, so far so good. But now I want to
>> add nodes in the TreeView that does not show in the Editor area, i.e I
>> have model objects that have no graphical representation and should only
>> show up in the tree overview. I have not found any way to directly add
>> nodes to the tree, so I tried to add nodes just as I do with the
>> graphical elements, but then I need to add something to the editor area
>> as well which messes up some other things like autolayout. Quite hard to
>> explain, but someone hopefully follows what I mean and might have a clue
>> if this is possible to achieve or not.
>>
>> regards
>> /Johan
>>
>
>
Previous Topic:SWT: no more handles error
Next Topic:mouseDoubleClick
Goto Forum:
  


Current Time: Sun Nov 28 21:37:25 GMT 2021

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

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

Back to the top