Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Problem with TableTreeViewer with SWT.CHECK on FEDORA CORE 3 -- HELP NEEDED!
Problem with TableTreeViewer with SWT.CHECK on FEDORA CORE 3 -- HELP NEEDED! [message #464976] Fri, 02 December 2005 13:08 Go to next message
Eclipse UserFriend
Originally posted by: preetamp.aftek.com

Hi All,
I have a tabletreeviewer with SWT.CHECK style
This tree looks good on win 2k but looks improper in fedora core 3

I means on fedora the nodes at verious levels of tree should get indented to
right. The tree hirarchy should get clear.
I m attaching the sample pic.
See that node1 has child node2 which has also a child node3
The relation between node1 and node2 does not get seen properly wheare as
the relation between node2 and node3 is clear deu to indentation !

Any clue ?

Thanks
~Preetam


  • Attachment: tree.jpg
    (Size: 7.90KB, Downloaded 116 times)
Re: Problem with TableTreeViewer with SWT.CHECK on FEDORA CORE 3 -- HELP NEEDED! [message #464992 is a reply to message #464976] Fri, 02 December 2005 15:37 Go to previous messageGo to next message
Jeremy Dowdall is currently offline Jeremy DowdallFriend
Messages: 48
Registered: July 2009
Member
tabletree is apparently deprecated for issues such as this (lots of
discussions earlier in this newsgroup on it)

your best bet is to switch to a Tree with TreeColumns - the good news is
that it's "almost" a drop-in replacement :)


Preetam wrote:
> Hi All,
> I have a tabletreeviewer with SWT.CHECK style
> This tree looks good on win 2k but looks improper in fedora core 3
>
> I means on fedora the nodes at verious levels of tree should get indented to
> right. The tree hirarchy should get clear.
> I m attaching the sample pic.
> See that node1 has child node2 which has also a child node3
> The relation between node1 and node2 does not get seen properly wheare as
> the relation between node2 and node3 is clear deu to indentation !
>
> Any clue ?
>
> Thanks
> ~Preetam
>
>
>
Re: Problem with TableTreeViewer with SWT.CHECK on FEDORA CORE 3 -- HELP NEEDED! [message #465069 is a reply to message #464992] Mon, 05 December 2005 11:45 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: preetamp.aftek.com

But I am using TableTreeViewer to build tree
how can I get Tree from it ?
I can get only TableTree and TableTreeItem
Can somebody give me a sample code for the same ?

Thanks
~Preetam



"Jeremy Dowdall" <dev@myriadfinancial.com> wrote in message
news:dmppo1$pjp$1@news.eclipse.org...
> tabletree is apparently deprecated for issues such as this (lots of
> discussions earlier in this newsgroup on it)
>
> your best bet is to switch to a Tree with TreeColumns - the good news is
> that it's "almost" a drop-in replacement :)
>
>
> Preetam wrote:
> > Hi All,
> > I have a tabletreeviewer with SWT.CHECK style
> > This tree looks good on win 2k but looks improper in fedora core 3
> >
> > I means on fedora the nodes at verious levels of tree should get
indented to
> > right. The tree hirarchy should get clear.
> > I m attaching the sample pic.
> > See that node1 has child node2 which has also a child node3
> > The relation between node1 and node2 does not get seen properly wheare
as
> > the relation between node2 and node3 is clear deu to indentation !
> >
> > Any clue ?
> >
> > Thanks
> > ~Preetam
> >
> >
> >
Re: Problem with TableTreeViewer with SWT.CHECK on FEDORA CORE 3 -- HELP NEEDED! [message #465075 is a reply to message #465069] Mon, 05 December 2005 14:49 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: preetamp.aftek.com

Thanks !
I managed that with treeviewer !

Thanks again !
~Preetam


"Preetam" <preetamp@aftek.com> wrote in message
news:dn1997$rm1$1@news.eclipse.org...
> But I am using TableTreeViewer to build tree
> how can I get Tree from it ?
> I can get only TableTree and TableTreeItem
> Can somebody give me a sample code for the same ?
>
> Thanks
> ~Preetam
>
>
>
> "Jeremy Dowdall" <dev@myriadfinancial.com> wrote in message
> news:dmppo1$pjp$1@news.eclipse.org...
> > tabletree is apparently deprecated for issues such as this (lots of
> > discussions earlier in this newsgroup on it)
> >
> > your best bet is to switch to a Tree with TreeColumns - the good news is
> > that it's "almost" a drop-in replacement :)
> >
> >
> > Preetam wrote:
> > > Hi All,
> > > I have a tabletreeviewer with SWT.CHECK style
> > > This tree looks good on win 2k but looks improper in fedora core 3
> > >
> > > I means on fedora the nodes at verious levels of tree should get
> indented to
> > > right. The tree hirarchy should get clear.
> > > I m attaching the sample pic.
> > > See that node1 has child node2 which has also a child node3
> > > The relation between node1 and node2 does not get seen properly wheare
> as
> > > the relation between node2 and node3 is clear deu to indentation !
> > >
> > > Any clue ?
> > >
> > > Thanks
> > > ~Preetam
> > >
> > >
> > >
>
>
Re: Problem with TableTreeViewer with SWT.CHECK on FEDORA CORE 3 -- HELP NEEDED! [message #465077 is a reply to message #465069] Mon, 05 December 2005 14:55 Go to previous messageGo to next message
Jeremy Dowdall is currently offline Jeremy DowdallFriend
Messages: 48
Registered: July 2009
Member
my bad, you'd need to use the TreeViewer rather than the TableTreeViewer:

TreeViewer viewer = new TreeViewer(parent, style);

Tree tree = viewer.getTree();

TreeColumn column0 = new TreeColumn(tree, SWT.LEFT);
column0.setText("col 0");
column0.setMoveable(true);
column0.pack();

TreeColumn column1 = new TreeColumn(tree, SWT.RIGHT);
column1.setText("col 1");
column1.setMoveable(true);
column1.pack();


your content providers shouldn't need to change:

viewer.setContentProvider( ITreeContentProvider );
viewer.setLabelProvider( ITableLabelProvider );




Preetam wrote:
> But I am using TableTreeViewer to build tree
> how can I get Tree from it ?
> I can get only TableTree and TableTreeItem
> Can somebody give me a sample code for the same ?
>
> Thanks
> ~Preetam
>
>
>
> "Jeremy Dowdall" <dev@myriadfinancial.com> wrote in message
> news:dmppo1$pjp$1@news.eclipse.org...
>
>>tabletree is apparently deprecated for issues such as this (lots of
>>discussions earlier in this newsgroup on it)
>>
>>your best bet is to switch to a Tree with TreeColumns - the good news is
>>that it's "almost" a drop-in replacement :)
>>
>>
>>Preetam wrote:
>>
>>>Hi All,
>>> I have a tabletreeviewer with SWT.CHECK style
>>>This tree looks good on win 2k but looks improper in fedora core 3
>>>
>>>I means on fedora the nodes at verious levels of tree should get
>
> indented to
>
>>>right. The tree hirarchy should get clear.
>>> I m attaching the sample pic.
>>>See that node1 has child node2 which has also a child node3
>>>The relation between node1 and node2 does not get seen properly wheare
>
> as
>
>>>the relation between node2 and node3 is clear deu to indentation !
>>>
>>>Any clue ?
>>>
>>>Thanks
>>>~Preetam
>>>
>>>
>>>
>
>
>
Re: Problem with TableTreeViewer with SWT.CHECK on FEDORA CORE 3 -- HELP NEEDED! [message #465079 is a reply to message #465075] Mon, 05 December 2005 14:56 Go to previous message
Jeremy Dowdall is currently offline Jeremy DowdallFriend
Messages: 48
Registered: July 2009
Member
oops - should've refreshed before sending... oh well, glad you got it!


Preetam wrote:
> Thanks !
> I managed that with treeviewer !
>
> Thanks again !
> ~Preetam
>
>
> "Preetam" <preetamp@aftek.com> wrote in message
> news:dn1997$rm1$1@news.eclipse.org...
>
>>But I am using TableTreeViewer to build tree
>>how can I get Tree from it ?
>>I can get only TableTree and TableTreeItem
>>Can somebody give me a sample code for the same ?
>>
>>Thanks
>>~Preetam
>>
>>
>>
>>"Jeremy Dowdall" <dev@myriadfinancial.com> wrote in message
>>news:dmppo1$pjp$1@news.eclipse.org...
>>
>>>tabletree is apparently deprecated for issues such as this (lots of
>>>discussions earlier in this newsgroup on it)
>>>
>>>your best bet is to switch to a Tree with TreeColumns - the good news is
>>>that it's "almost" a drop-in replacement :)
>>>
>>>
>>>Preetam wrote:
>>>
>>>>Hi All,
>>>> I have a tabletreeviewer with SWT.CHECK style
>>>>This tree looks good on win 2k but looks improper in fedora core 3
>>>>
>>>>I means on fedora the nodes at verious levels of tree should get
>>
>>indented to
>>
>>>>right. The tree hirarchy should get clear.
>>>> I m attaching the sample pic.
>>>>See that node1 has child node2 which has also a child node3
>>>>The relation between node1 and node2 does not get seen properly wheare
>>
>>as
>>
>>>>the relation between node2 and node3 is clear deu to indentation !
>>>>
>>>>Any clue ?
>>>>
>>>>Thanks
>>>>~Preetam
>>>>
>>>>
>>>>
>>
>>
>
>
Previous Topic:Centering a Dialog on Screen
Next Topic:Problem with StatusLineManager
Goto Forum:
  


Current Time: Sun Sep 23 04:19:39 GMT 2018

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

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

Back to the top