JFace elements without JFace application possible? [message #448497] |
Tue, 11 January 2005 10:08  |
Eclipse User |
|
|
|
- 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 16:07  |
Eclipse User |
|
|
|
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)
|
|
|
Powered by
FUDForum. Page generated in 0.04211 seconds