Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » JFace elements without JFace application possible?
JFace elements without JFace application possible? [message #448497] Tue, 11 January 2005 15:08 Go to next message
Oliver Schmidt is currently offline Oliver SchmidtFriend
Messages: 17
Registered: July 2009
Junior Member
- AssertionFailedException in TreeViewer on Mac -

Should it be possible to use JFace elements withtout using a
JFace-application?
On windows it works without problems and on a Mac "most" of it works.
Here comes the only problem weŽve found (until now):

When the user opens a node in a TreeViewer and later collapses that node,
the program crashes with an Assertion FailedException ("assertion failed:
The application has not been initialized").

Since it looks like an assertion i was hoping, that "-disableassertions"
or "-disablesystemassertions" might work, but nothing changed (why?).
Ideas for an easy solution?

(Building a snippet takes some time, since iŽm the developer (only working
on Windows) and my colleague is able to test if the snippet does what itŽs
supposed to do).

EMail: Change "-@-" into "@" (Spam-protection)
Re: JFace elements without JFace application possible? [message #448609 is a reply to message #448497] Tue, 11 January 2005 23:06 Go to previous messageGo to next message
Benjamin Pasero is currently offline Benjamin PaseroFriend
Messages: 337
Registered: July 2009
Senior Member
Maybe this is of interest: https://bugs.eclipse.org/bugs/show_bug.cgi?id=49497

Ben

> - AssertionFailedException in TreeViewer on Mac -
>
> Should it be possible to use JFace elements withtout using a
> JFace-application?
> On windows it works without problems and on a Mac "most" of it works.
> Here comes the only problem weŽve found (until now):
>
> When the user opens a node in a TreeViewer and later collapses that node,
> the program crashes with an Assertion FailedException ("assertion
> failed: The application has not been initialized").
>
> Since it looks like an assertion i was hoping, that "-disableassertions"
> or "-disablesystemassertions" might work, but nothing changed (why?).
> Ideas for an easy solution?
>
> (Building a snippet takes some time, since iŽm the developer (only
> working on Windows) and my colleague is able to test if the snippet does
> what itŽs supposed to do).
>
> EMail: Change "-@-" into "@" (Spam-protection)
>
Re: JFace elements without JFace application possible? - SOLUTION [message #448658 is a reply to message #448609] Wed, 12 January 2005 21:07 Go to previous message
Oliver Schmidt is currently offline Oliver SchmidtFriend
Messages: 17
Registered: July 2009
Junior Member
The exception was not caused by the fact, that i used JFace elements
directly in a Shell!

Every exception that occurs in a standalone JFace application,
is accidentally converted in an AssertionFailedException, if you
use a runtime.jar version thatŽs too old.
(fortunately i found a description of this problem in Googles cache,
i didnŽt find a hint in the eclipse newsgroups).

I donŽt know in which version this was fixed, but at least 3.1M4 handles
exceptions correctly! :-)

It worked in Windows and didnŽt work on Mac because there is a different
behaviour for selection-change-event in a tree.
In Windows you always get a not empty array of selected TreeItems,
on a Mac this array can be empty!

Bye,
Oliver
(change "-@-" to "@" in E-Mail)
Previous Topic:JFace: AssertionFailedException: application not initialized
Next Topic:Browser View Contribution
Goto Forum:
  


Current Time: Thu Apr 25 05:55:12 GMT 2024

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

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

Back to the top