Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Nebula » Copy and Paste with NumberFormatter
Copy and Paste with NumberFormatter [message #592607] Tue, 21 October 2008 17:42
Leo Niedermeier is currently offline Leo NiedermeierFriend
Messages: 4
Registered: July 2009
Junior Member
Hi,

I am trying to use NumberFormatter and DataBinding with a Text control.
When I insert some number with copy and paste, only the first digit
appears in the text control. When I change the verifyText method form
(line 637 ff)

int d = editValue.indexOf(EMPTY + symbols.getDecimalSeparator()); //
Decimal separator position
for (int i = 0; i < e.text.length(); i++) {
....

to

for (int i = 0; i < e.text.length(); i++){
int d = this.editValue.indexOf(EMPTY +
this.symbols.getDecimalSeparator());
...

it works. So I have two questions:
1. Does copy and paste work with NumberFormatter?
2a. If yes: Can you give mi some hint what to do?

Somebody can give me some help on this?

Thanks in advance.

Leo
Previous Topic:CompositeTable selection question
Next Topic:CompositeTable selection question
Goto Forum:
  


Current Time: Mon Dec 22 20:46:58 GMT 2014

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

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