AppletTalk.com Forum Index AppletTalk.com
Java discussions newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

SWT/JFace TreeViewer

 
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java GUI Toolkits
View previous topic :: View next topic  
Author Message
CABA
Guest





PostPosted: Thu Nov 20, 2003 1:53 pm    Post subject: SWT/JFace TreeViewer Reply with quote



Hi,

I try recently the graphic SWT / JFace library.
I use the JFace TreeViewer as it is described in this IBM's article:
http://www-106.ibm.com/developerworks/opensource/library/os-ecgui1/

I have two problems :

1. they give 5 jar files to include, but I find only 4 files. Indeed the
directory ..../eclipse/plugins/org.eclipse.runtime_2.1.0 does not exist!
Has anybody this directory?

2. The missing .jar file does not prevent me from compiling their TreeViewer
example, but during the execution, I obtain the following error:

java.lang.NoClassDefFoundError:
org/eclipse/core/internal/boot/DelegatingURLClassLoader
at org.eclipse.core.runtime.Platform.run(Platform.java:413)
at
org.eclipse.jface.viewers.StructuredViewer.updateItem(StructuredViewer.java:
1271)
at
org.eclipse.jface.viewers.AbstractTreeViewer.createTreeItem(AbstractTreeView
er.java:320)
at
org.eclipse.jface.viewers.AbstractTreeViewer$1.run(AbstractTreeViewer.java:3
03)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
at
org.eclipse.jface.viewers.AbstractTreeViewer.createChildren(AbstractTreeView
er.java:289)
at
org.eclipse.jface.viewers.AbstractTreeViewer$5.run(AbstractTreeViewer.java:7
29)
at
org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredVie
wer.java:801)
at
org.eclipse.jface.viewers.AbstractTreeViewer.inputChanged(AbstractTreeViewer
..java:721)
at
org.eclipse.jface.viewers.ContentViewer.setInput(ContentViewer.java:238)
at
org.eclipse.jface.viewers.StructuredViewer.setInput(StructuredViewer.java:99
1)
at TestJFace.createContents(TestJFace.java:21)
at org.eclipse.jface.window.Window.create(Window.java:302)
at org.eclipse.jface.window.Window.open(Window.java:552)
at TestJFace.main(TestJFace.java:32)
Exception in thread "main"


Nevertheless, my program is exactly written like in the IBM's example, an
idee? I don't find the class DelegatingURLClassLoader !!!


Thanks

CABA






Back to top
Andreas Schmidt
Guest





PostPosted: Fri Nov 21, 2003 12:08 am    Post subject: Re: SWT/JFace TreeViewer Reply with quote



On Thu, 20 Nov 2003 14:53:52 +0100, CABA <caba (AT) netcourrier (DOT) com> wrote:

Quote:
Hi,

I try recently the graphic SWT / JFace library.
I use the JFace TreeViewer as it is described in this IBM's article:
http://www-106.ibm.com/developerworks/opensource/library/os-ecgui1/

I have two problems :

As noone is answering here, I think you should ask in one of the the
news.eclipse.org newsgroups...

Andi

Back to top
Yvon Thoraval
Guest





PostPosted: Fri Nov 21, 2003 7:47 am    Post subject: Re: SWT/JFace TreeViewer Reply with quote



Andreas Schmidt <schmidt.2002 (AT) gmx (DOT) de> wrote:

Quote:

As noone is answering here, I think you should ask in one of the the
news.eclipse.org newsgroups...

I'm also interested however the server asks for a username-pwd...
how could i get one ?
--
Yvon Thoraval

Back to top
Yvon Thoraval
Guest





PostPosted: Fri Nov 21, 2003 8:24 am    Post subject: Re: SWT/JFace TreeViewer Reply with quote

Yvon Thoraval <yvon.thoraval (AT) free (DOT) fr> wrote:

Quote:
I'm also interested however the server asks for a username-pwd...
how could i get one ?

i found it...
--
Yvon Thoraval

Back to top
talkabout
Guest





PostPosted: Fri Jan 09, 2004 4:34 pm    Post subject: Re: SWT/JFace TreeViewer Reply with quote

Caba

I faced the same problem. Have you got the answer ?

Luciano

Back to top
sinar-g
Guest





PostPosted: Mon Jan 12, 2004 12:55 pm    Post subject: Re: SWT/JFace TreeViewer Reply with quote

yup

you have to include eclipse/plugins/org.eclipse.core.boot_x.y.z/boot.jar in your classpath

gorm

Back to top
CABA
Guest





PostPosted: Mon Jan 12, 2004 3:05 pm    Post subject: Re: SWT/JFace TreeViewer Reply with quote

Yes,

You have to include this five .jar files :

- boot.jar : org.eclipse.core.boot_2.1.2
- jface.jar : org.eclipse.jface_2.1.1
- runtime.jar : org.eclipse.core.runtime_2.1.1
- swt.jar : org.eclipse.swt.win32_2.1.2
- ui.jar : org.eclipse.ui_2.1.1

CABA

"talkabout" <lrabottini (AT) ig (DOT) com.br> a écrit dans le message de news:
[email]a50f8a2676b15f2064d6fec1d827fa9c (AT) localhost (DOT) talkaboutprogramming.com[/email]...
Quote:
Caba

I faced the same problem. Have you got the answer ?

Luciano




Back to top
Display posts from previous:   
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java GUI Toolkits All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.