public void handleEvent(Event event) { this.bEnableEvents = false; if (event.widget.equals(iscFractionDigits)) { if (!(formatspecifier instanceof NumberFormatSpecifier)) { formatspecifier = NumberFormatSpecifierImpl.create(); ((NumberFormatSpecifier) formatspecifier).setPrefix(txtPrefix.getText()); ((NumberFormatSpecifier) formatspecifier).setSuffix(txtSuffix.getText()); try { String str = txtMultiplier.getText(); if (str.length() > 0) { ((NumberFormatSpecifier) formatspecifier).setMultiplier(new Double(str).doubleValue()); } } catch (NumberFormatException e1 ) {  e1.printStackTrace(); } } ((NumberFormatSpecifier) formatspecifier).setFractionDigits(((Integer) event.data).intValue()); } this.bEnableEvents = true; }
public void handleEvent( Event event ) { this.bEnableEvents = false; if ( event.widget.equals( iscFractionDigits ) ) { if ( !( formatspecifier instanceof NumberFormatSpecifier ) ) { formatspecifier = NumberFormatSpecifierImpl.create( ); ( (NumberFormatSpecifier) formatspecifier ).setPrefix( txtPrefix.getText( ) ); ( (NumberFormatSpecifier) formatspecifier ).setSuffix( txtSuffix.getText( ) ); try { String str = txtMultiplier.getText( ); if ( str.length( ) > 0 ) { ( (NumberFormatSpecifier) formatspecifier ).setMultiplier( new Double( str ).doubleValue( ) ); } } catch ( NumberFormatException e1 ) { handleFormatError( txtMultiplier.getText( ) ); } } ( (NumberFormatSpecifier) formatspecifier ).setFractionDigits( ( (Integer) event.data ).intValue( ) ); } this.bEnableEvents = true; }
    public void handleEvent(Event event)    {        this.bEnableEvents = false;        if (event.widget.equals(iscFractionDigits))        {            if (!(formatspecifier instanceof NumberFormatSpecifier))            {                formatspecifier = NumberFormatSpecifierImpl.create();                ((NumberFormatSpecifier) formatspecifier).setPrefix(txtPrefix.getText());                ((NumberFormatSpecifier) formatspecifier).setSuffix(txtSuffix.getText());                try                {                    String str = txtMultiplier.getText();                    if (str.length() > 0)                    {                        ((NumberFormatSpecifier) formatspecifier).setMultiplier(new Double(str).doubleValue());                    }                }                catch (NumberFormatException e1 )                {                    // TODO Auto-generated catch block                    e1.printStackTrace();                }            }            ((NumberFormatSpecifier) formatspecifier).setFractionDigits(((Integer) event.data).intValue());        }        this.bEnableEvents = true;    }