Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » TextPropertyDescriptor and EInt
TextPropertyDescriptor and EInt [message #173491] Thu, 24 March 2005 15:40 Go to next message
Eclipse UserFriend
Originally posted by: dan.vaum.net

Hi!

How can I edit an EInt in a property sheet with a TextPropertyDescriptor, or
can this be done? Shouldn't it be working exactly like when using an
EString? I keep getting an assertion error. Here is a bit of stack trace:

org.eclipse.jface.util.Assert$AssertionFailedException: Assertion failed:
at org.eclipse.jface.util.Assert.isTrue(Assert.java:180)
at org.eclipse.jface.util.Assert.isTrue(Assert.java:165)
at
org.eclipse.jface.viewers.TextCellEditor.doSetValue(TextCell Editor.java:226)
at org.eclipse.jface.viewers.CellEditor.setValue(CellEditor.jav a:816)
....

Thank you!
Re: TextPropertyDescriptor and EInt [message #173546 is a reply to message #173491] Thu, 24 March 2005 16:27 Go to previous message
Pratik Shah is currently offline Pratik ShahFriend
Messages: 1077
Registered: July 2009
Senior Member
Did you check to see what the assertion was that failed? Chances are you're
passing in the EInt object itself, when you should be passing in a String.

"Dan" <dan@vaum.net> wrote in message news:d1urrn$ppt$1@news.eclipse.org...
> Hi!
>
> How can I edit an EInt in a property sheet with a TextPropertyDescriptor,
or
> can this be done? Shouldn't it be working exactly like when using an
> EString? I keep getting an assertion error. Here is a bit of stack trace:
>
> org.eclipse.jface.util.Assert$AssertionFailedException: Assertion failed:
> at org.eclipse.jface.util.Assert.isTrue(Assert.java:180)
> at org.eclipse.jface.util.Assert.isTrue(Assert.java:165)
> at
>
org.eclipse.jface.viewers.TextCellEditor.doSetValue(TextCell Editor.java:226)
> at org.eclipse.jface.viewers.CellEditor.setValue(CellEditor.jav a:816)
> ...
>
> Thank you!
>
>
Previous Topic:How to activate copy, paste, cut
Next Topic:Property Sheet value updates a Figure
Goto Forum:
  


Current Time: Thu Apr 25 11:36:10 GMT 2024

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

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

Back to the top