[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools.gef] Re: Weird problem with ICellValidator

Thanks, that answers a part of my query. I still don't understand how the text of my label is getting set when I change the value inside the TextCellEditor. I haven't written any explicit code to do that. Can you tell me how that is happening.
I am using the schema editor code (Database schema editor article) and over there the label is getting resized irrespective of the validity of the string entered.



news.eclipse.org wrote:
The label grows as you're typing because its text is set to what you're
entering in the TextCellEditor.  The answer to your query is in the javadoc
of CellEditor's getValue() method.  It will return null if the value is not
valid.


"Pavan Podila" <pavan.podila@xxxxxxxxx> wrote in message
news:coacnp$5t8$1@xxxxxxxxxxxxxxx...
  
Hi,
    I have attached a CellValidator for the TextCellEditor of my label.
When I type my text in the TextCellEditor, the label size automatically
grows. However when the isValid() of the CellValidator returns a string
error message, the label size stops growing and resizes just big enough
to fit one character. I am attaching the screenshots below for the two
cases. What could be the problem?

thanks in advance,
Pavan

    


----------------------------------------------------------------------------
----






----------------------------------------------------------------------------
----