Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » JFace dependancies
JFace dependancies [message #447745] Thu, 16 December 2004 22:05 Go to next message
Benjamin Pasero is currently offline Benjamin PaseroFriend
Messages: 337
Registered: July 2009
Senior Member
Hello,

I would like to evolve my SWT application with using the Model- and
Viewer-Classes of JFace. Now, as far as I know in order to use JFace I need to
put runtime.jar and platform.jar on the classpath too. I do not understand why,
since the Model-Classes should work without it, or am I wrong?

Regards,
Ben
Re: JFace dependancies [message #447902 is a reply to message #447745] Tue, 21 December 2004 17:17 Go to previous messageGo to next message
Benjamin Pasero is currently offline Benjamin PaseroFriend
Messages: 337
Registered: July 2009
Senior Member
Any comments?

> Hello,
>
> I would like to evolve my SWT application with using the Model- and
> Viewer-Classes of JFace. Now, as far as I know in order to use JFace I
> need to put runtime.jar and platform.jar on the classpath too. I do not
> understand why, since the Model-Classes should work without it, or am I
> wrong?
>
> Regards,
> Ben
Re: JFace dependancies [message #447907 is a reply to message #447902] Tue, 21 December 2004 18:36 Go to previous messageGo to next message
Chris Gross is currently offline Chris GrossFriend
Messages: 471
Registered: July 2009
Senior Member
I think you need runtime.jar and osgi.jar but not platform.jar.

JFace depends on some classes in the runtime packages. From what I've
heard, the Platform UI team (they're responsible for JFace, not the SWT
team) isn't explicitly designing JFace for standalone SWT app use. I think
they are not trying to make things very tightly coupled to Eclipse, but at
the same time they aren't practicing any specific discipline to assure that
there is zero coupling. So there are instances where the JFace classes
require some runtime classes (which in turn require some osgi classes). I
believe the Platform UI team is debating whether to devote time to removing
these dependencies from JFace.

See:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=49497

-Chris


"Benjamin Pasero" <bpasero@rssowl.org> wrote in message
news:cq9m0j$o84$1@www.eclipse.org...
> Any comments?
>
>> Hello,
>>
>> I would like to evolve my SWT application with using the Model- and
>> Viewer-Classes of JFace. Now, as far as I know in order to use JFace I
>> need to put runtime.jar and platform.jar on the classpath too. I do not
>> understand why, since the Model-Classes should work without it, or am I
>> wrong?
>>
>> Regards,
>> Ben
Re: JFace dependancies [message #447915 is a reply to message #447907] Tue, 21 December 2004 21:08 Go to previous messageGo to next message
Benjamin Pasero is currently offline Benjamin PaseroFriend
Messages: 337
Registered: July 2009
Senior Member
Thanks Chris, that bug report is exactly what I was talking about.
Too bad that activity froze some months ago :/

Regards,
Ben

> I think you need runtime.jar and osgi.jar but not platform.jar.
>
> JFace depends on some classes in the runtime packages. From what I've
> heard, the Platform UI team (they're responsible for JFace, not the SWT
> team) isn't explicitly designing JFace for standalone SWT app use. I think
> they are not trying to make things very tightly coupled to Eclipse, but at
> the same time they aren't practicing any specific discipline to assure that
> there is zero coupling. So there are instances where the JFace classes
> require some runtime classes (which in turn require some osgi classes). I
> believe the Platform UI team is debating whether to devote time to removing
> these dependencies from JFace.
>
> See:
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=49497
>
> -Chris
>
>
> "Benjamin Pasero" <bpasero@rssowl.org> wrote in message
> news:cq9m0j$o84$1@www.eclipse.org...
>
>>Any comments?
>>
>>
>>>Hello,
>>>
>>>I would like to evolve my SWT application with using the Model- and
>>>Viewer-Classes of JFace. Now, as far as I know in order to use JFace I
>>>need to put runtime.jar and platform.jar on the classpath too. I do not
>>>understand why, since the Model-Classes should work without it, or am I
>>>wrong?
>>>
>>>Regards,
>>>Ben
>
>
>
Re: JFace dependancies [message #448121 is a reply to message #447745] Mon, 03 January 2005 17:30 Go to previous message
Andre Weinand is currently offline Andre WeinandFriend
Messages: 66
Registered: July 2009
Member
On 16.12.2004 23:05 Uhr, in article cpt0t3$d2c$1@www.eclipse.org, "Benjamin
Pasero" <bpasero@rssowl.org> wrote:

> Hello,
>
> I would like to evolve my SWT application with using the Model- and
> Viewer-Classes of JFace. Now, as far as I know in order to use JFace I need to
> put runtime.jar and platform.jar on the classpath too. I do not understand
> why,
> since the Model-Classes should work without it, or am I wrong?
>
> Regards,
> Ben

A few months ago I've implemented a few stubs that eliminated the
dependencies on runtime.jar, platform.jar and OSGI.jar without problems.
Let me know if you are interested...

--andre
Previous Topic:Example of JDNC/Swing Extensions
Next Topic:Adding toolbar and min/max to any composite
Goto Forum:
  


Current Time: Wed Oct 21 11:32:06 GMT 2020

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

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

Back to the top