Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » TreeViewer
TreeViewer [message #436407] Tue, 18 May 2004 18:42 Go to next message
Eclipse UserFriend
Originally posted by: christian_mangeot.ibi.com

Couls someone point me to a working TreeViewer example that works stand
alone (outside the plug-in context). The example given in the article
section is plug-in based, and the example given in the IBM site gives a
stack trace.
Thanks.
Re: TreeViewer [message #436408 is a reply to message #436407] Tue, 18 May 2004 18:46 Go to previous messageGo to next message
Henning Rogge is currently offline Henning RoggeFriend
Messages: 148
Registered: July 2009
Senior Member
Christian Mangeot wrote:
> Couls someone point me to a working TreeViewer example that works stand
> alone (outside the plug-in context). The example given in the article
> section is plug-in based, and the example given in the IBM site gives a
> stack trace.

TreeViewer is no SWT but a JFace based class, you cannot use it in a SWT
only application. The rich client platform ( RCP ) might be a sollution
for you, the other one is to write your own wrapper around
org.eclipse.swt.widgets.Tree class.

Henning Rogge.
Re: TreeViewer [message #436805 is a reply to message #436408] Mon, 24 May 2004 21:08 Go to previous messageGo to next message
Jos Warmer is currently offline Jos WarmerFriend
Messages: 66
Registered: July 2009
Member
Henning,

This isn't quite right. TreeViewer is a JFace based class, but you
can certainly use JFace based classes in a standalone application.
I am using Jface and SWT myself in a standalone application.

See

http://www-106.ibm.com/developerworks/java/library/os-ecgui1 /

for a tutorial in three parts that uses SWT and JFACE in a standalone
application.

Jos Warmer

On Tue, 18 May 2004 20:46:37 +0200, Henning Rogge <HRogge@gmx.net>
wrote:

>Christian Mangeot wrote:
>> Couls someone point me to a working TreeViewer example that works stand
>> alone (outside the plug-in context). The example given in the article
>> section is plug-in based, and the example given in the IBM site gives a
>> stack trace.
>
>TreeViewer is no SWT but a JFace based class, you cannot use it in a SWT
>only application. The rich client platform ( RCP ) might be a sollution
>for you, the other one is to write your own wrapper around
>org.eclipse.swt.widgets.Tree class.
>
>Henning Rogge.
Re: TreeViewer [message #436808 is a reply to message #436805] Mon, 24 May 2004 21:40 Go to previous messageGo to next message
Henning Rogge is currently offline Henning RoggeFriend
Messages: 148
Registered: July 2009
Senior Member
Jos Warmer wrote:

> Henning,
>
> This isn't quite right. TreeViewer is a JFace based class, but you
> can certainly use JFace based classes in a standalone application.
> I am using Jface and SWT myself in a standalone application.
>
> See
>
> http://www-106.ibm.com/developerworks/java/library/os-ecgui1 /
>
> for a tutorial in three parts that uses SWT and JFACE in a standalone
> application.
>
> Jos Warmer

Ahh okay. I though there were links between the JFace classes and some
of the basic runtime routines... seems they were killed in the same
process that made RCP possible.

Henning Rogge.
Re: TreeViewer [message #437426 is a reply to message #436408] Fri, 04 June 2004 12:11 Go to previous message
Eclipse UserFriend
Originally posted by: olivier.larivain.criltechnology.com

I don't think so, I use a TreeViewer in my SWT stand alone application
without any problem..

I'll try and post a snippet of my code if you still need it


"Henning Rogge" <HRogge@gmx.net> a
Previous Topic:ANN: article "Java 2D imaging for the Standard Widget Toolkit"
Next Topic:TableTreeItem - changing fonts
Goto Forum:
  


Current Time: Thu Apr 25 05:47:15 GMT 2024

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

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

Back to the top