property set twice in property view [message #460688] |
Thu, 28 December 2006 06:04  |
Eclipse User |
|
|
|
Originally posted by: peter_ossipov.mail.ru
Hi everybody!
I have come across a strange behavior.
I try to set some value in a property view. In my model (where the value
finally goes) I check whether the value is appropriate, if not I throw
IllegalArgumentException. It turns out that, when the value is not
appropriate the exception is thrown twice. Why? Because the value is set
twice by UI. Once - when the value is set and then when text editor
looses focus. Why is that?
How can I overcome this difficulty? :-/
Thanks very much in advance, guys.
|
|
|
|
|
|
|
Re: property set twice in property view [message #460907 is a reply to message #460901] |
Tue, 02 January 2007 11:37  |
Eclipse User |
|
|
|
It's just that in the 3rd message of this post ( http://www.eclipsezone.com/eclipse/forums/m92122629.html#921 22356) you seemed to be replying to yourself, and including the full body of the message each time, that's all :-)
As opposed to the stack traces, there's really not a lot of information in them generally. For example, the following would probably be enough to diagnose some part of the information:
ERROR - Connection with server name 'Server1' already exists.
java.lang.IllegalArgumentException: Connection with server name
'Server1' already exists.
at
com.astrac.as.client.ide.core.util.connections.Connection.ch eckProperty(Connection.java:214)
at
com.astrac.as.client.ide.core.util.connections.Connection.se tProperty(Connection.java:110)
at
com.astrac.as.client.ide.core.model.adapters.connection.Conn ectionAdapaterFactory$1.setPropertyValue(ConnectionAdapaterF actory.java:137)
at
org.eclipse.ui.views.properties.PropertySheetEntry.valueChan ged(PropertySheetEntry.java:789)
at
org.eclipse.ui.views.properties.PropertySheetEntry.setValue( PropertySheetEntry.java:730)
at
org.eclipse.ui.views.properties.PropertySheetEntry.applyEdit orValue(PropertySheetEntry.java:147)
But yes, if you want to attach the full stacktrace/log, (i.e. more than 5-10 lines) an attachment might be a better way. At least, this is all IMHO you understand :-)
Alex.
|
|
|
Powered by
FUDForum. Page generated in 0.04046 seconds