Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Unselectable nodes in TableTreeView
Unselectable nodes in TableTreeView [message #452887] Sat, 26 March 2005 06:13 Go to next message
Eclipse UserFriend
Originally posted by: flamereaver.yahoo.co.in

Dear all,
Is there any way to make certain TableTreeItems in a TableTree
unselectable by the user? I'm doing a task in which the child
TableTreeItems display info about their parent TableTreeItem and there in
no need for them to be selectable by the user (the children should behave
much like a label). I know which TableTreeItems are not selectable even
before I add them to the TableTree.

Thanks,
Siv
Re: Unselectable nodes in TableTreeView [message #453077 is a reply to message #452887] Wed, 30 March 2005 08:30 Go to previous messageGo to next message
Stefan Pietsch is currently offline Stefan PietschFriend
Messages: 68
Registered: July 2009
Member
Hi Siv,

I'm using a similar functionality in a Tree-widget, but I think, you can do
something like this for your problem.

I implemented a SelectionListener with the methode widgetSelected. This
method simply calls Tree.deselectAll if the selected item is one which
should not be selected.

Bye Stefan

"Siv" <flamereaver@yahoo.co.in> schrieb im Newsbeitrag
news:df187038be84f6bde2f9e7e6668e6f48$1@www.eclipse.org...
> Dear all,
> Is there any way to make certain TableTreeItems in a TableTree
> unselectable by the user? I'm doing a task in which the child
> TableTreeItems display info about their parent TableTreeItem and there in
> no need for them to be selectable by the user (the children should behave
> much like a label). I know which TableTreeItems are not selectable even
> before I add them to the TableTree.
>
> Thanks,
> Siv
>
Re: Unselectable nodes in TableTreeView [message #453168 is a reply to message #453077] Thu, 31 March 2005 05:48 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: flamereaver.yahoo.co.in

hi stefan,

would'nt using an listener & then using a deselect result in flashing of
the selection bar?
Re: Unselectable nodes in TableTreeView [message #453170 is a reply to message #453168] Thu, 31 March 2005 06:58 Go to previous messageGo to next message
Stefan Pietsch is currently offline Stefan PietschFriend
Messages: 68
Registered: July 2009
Member
Hi Siv,

may be. But I didn't find any possibility to avoid this.

"Siv" <flamereaver@yahoo.co.in> schrieb im Newsbeitrag
news:71d1fa25b69c2feb7831c30b5f2335bd$1@www.eclipse.org...
> hi stefan,
>
> would'nt using an listener & then using a deselect result in flashing of
> the selection bar?
>
Re: Unselectable nodes in TableTreeView [message #453252 is a reply to message #453170] Sat, 02 April 2005 13:37 Go to previous message
Eclipse UserFriend
Originally posted by: flamereaver.yahoo.co.in

Hi Stefan,
Tnx 4 the help. I came across a posting that said TableTreeItems cannot
be disabled because they are subclassed from widget. The link's below

http://dev.eclipse.org/newslists/news.eclipse.tools/msg03203 .html

thanks,
Siv
Previous Topic:How to code accessibility relations (e.g. rel of Text field inside a Group Composite to the Group) i
Next Topic:Problem with OLE automation and Microsof Excel
Goto Forum:
  


Current Time: Tue Apr 16 12:02:14 GMT 2024

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

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

Back to the top