Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Is is possible to make a tree node non-collapsible
Is is possible to make a tree node non-collapsible [message #446807] Thu, 02 December 2004 16:04 Go to next message
Jim Adams is currently offline Jim AdamsFriend
Messages: 160
Registered: July 2009
Senior Member
I want to display a tree with a root node that can never be collapsed. As
such I want to remove the initial -/+ and slide everything over to the left.
Is that possible?
Re: Is is possible to make a tree node non-collapsible [message #446810 is a reply to message #446807] Thu, 02 December 2004 16:12 Go to previous messageGo to next message
Stefan Pietsch is currently offline Stefan PietschFriend
Messages: 68
Registered: July 2009
Member
Hi Jim,

I think you have to implement a TreeListener and than manually call
setExpand(true) if the TreeItem was collapsed. I do not know, how to hide
the [+/-].

Bye Stefan

"Jim Adams" <Jim.Adams@sas.com> schrieb im Newsbeitrag
news:conecu$pe4$1@www.eclipse.org...
> I want to display a tree with a root node that can never be collapsed. As
> such I want to remove the initial -/+ and slide everything over to the
left.
> Is that possible?
>
>
Re: Is is possible to make a tree node non-collapsible [message #446811 is a reply to message #446807] Thu, 02 December 2004 16:30 Go to previous messageGo to next message
Stefan Pietsch is currently offline Stefan PietschFriend
Messages: 68
Registered: July 2009
Member
Hi Jim,

take a look at jface.TreeViewer. There is a method called isExpandable which
you can override.

Bye Stefan

"Jim Adams" <Jim.Adams@sas.com> schrieb im Newsbeitrag
news:conecu$pe4$1@www.eclipse.org...
> I want to display a tree with a root node that can never be collapsed. As
> such I want to remove the initial -/+ and slide everything over to the
left.
> Is that possible?
>
>
Re: Is is possible to make a tree node non-collapsible [message #446813 is a reply to message #446811] Thu, 02 December 2004 17:29 Go to previous messageGo to next message
Jim Adams is currently offline Jim AdamsFriend
Messages: 160
Registered: July 2009
Senior Member
Yeah, but its the +/- that I really want to get rid of....

And, in any case, I would really need that to be isCollapsilbe which is
different from isExpandable...

"Stefan Pietsch" <pietsch@multichart.de> wrote in message
news:confup$tgv$1@www.eclipse.org...
> Hi Jim,
>
> take a look at jface.TreeViewer. There is a method called isExpandable
which
> you can override.
>
> Bye Stefan
>
> "Jim Adams" <Jim.Adams@sas.com> schrieb im Newsbeitrag
> news:conecu$pe4$1@www.eclipse.org...
> > I want to display a tree with a root node that can never be collapsed.
As
> > such I want to remove the initial -/+ and slide everything over to the
> left.
> > Is that possible?
> >
> >
>
>
Re: Is is possible to make a tree node non-collapsible [message #446828 is a reply to message #446813] Fri, 03 December 2004 10:31 Go to previous messageGo to next message
Mark McLaren is currently offline Mark McLarenFriend
Messages: 45
Registered: July 2009
Member
One workaround is to create a regular old table with spaces at the
beginning of some rows.


Jim Adams wrote:

> Yeah, but its the +/- that I really want to get rid of....

> And, in any case, I would really need that to be isCollapsilbe which is
> different from isExpandable...

> "Stefan Pietsch" <pietsch@multichart.de> wrote in message
> news:confup$tgv$1@www.eclipse.org...
>> Hi Jim,
>>
>> take a look at jface.TreeViewer. There is a method called isExpandable
> which
>> you can override.
>>
>> Bye Stefan
>>
>> "Jim Adams" <Jim.Adams@sas.com> schrieb im Newsbeitrag
>> news:conecu$pe4$1@www.eclipse.org...
>> > I want to display a tree with a root node that can never be collapsed.
> As
>> > such I want to remove the initial -/+ and slide everything over to the
>> left.
>> > Is that possible?
>> >
>> >
>>
>>
Re: Is is possible to make a tree node non-collapsible [message #446863 is a reply to message #446828] Fri, 03 December 2004 19:17 Go to previous message
Jim Adams is currently offline Jim AdamsFriend
Messages: 160
Registered: July 2009
Senior Member
Not if I wanted to delete spaces.....
"Mark McLaren" <noone@nowhere.com> wrote in message
news:copf97$406$1@www.eclipse.org...
> One workaround is to create a regular old table with spaces at the
> beginning of some rows.
>
>
> Jim Adams wrote:
>
> > Yeah, but its the +/- that I really want to get rid of....
>
> > And, in any case, I would really need that to be isCollapsilbe which is
> > different from isExpandable...
>
> > "Stefan Pietsch" <pietsch@multichart.de> wrote in message
> > news:confup$tgv$1@www.eclipse.org...
> >> Hi Jim,
> >>
> >> take a look at jface.TreeViewer. There is a method called isExpandable
> > which
> >> you can override.
> >>
> >> Bye Stefan
> >>
> >> "Jim Adams" <Jim.Adams@sas.com> schrieb im Newsbeitrag
> >> news:conecu$pe4$1@www.eclipse.org...
> >> > I want to display a tree with a root node that can never be
collapsed.
> > As
> >> > such I want to remove the initial -/+ and slide everything over to
the
> >> left.
> >> > Is that possible?
> >> >
> >> >
> >>
> >>
>
>
Previous Topic:[MacOS X] Image size changes after redrawing on TableTree
Next Topic:Widget layout
Goto Forum:
  


Current Time: Sun Nov 29 20:23:40 GMT 2020

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

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

Back to the top