else if (e.getSource().equals(cmbDateType)) { if (!(formatspecifier instanceof DateFormatSpecifier)) { formatspecifier = AttributeFactory.eINSTANCE.createDateFormatSpecifier(); ((DateFormatSpecifier) formatspecifier).setDetail(DateFormatDetail.get(cmbDateForm.getText())); } ((DateFormatSpecifier) formatspecifier).setType(DateFormatType.get(cmbDateType.getText())); } else if (e.getSource().equals(cmbDateForm)) { if (!(formatspecifier instanceof DateFormatSpecifier)) { formatspecifier = AttributeFactory.eINSTANCE.createDateFormatSpecifier(); ((DateFormatSpecifier) formatspecifier).setType(DateFormatType.get(cmbDateType.getText())); } ((DateFormatSpecifier) formatspecifier).setDetail(DateFormatDetail.get(cmbDateForm.getText())); }
    public void widgetSelected(SelectionEvent e)    {        if (!bEnableEvents)        {            return;        }        if (e.getSource().equals(cmbDataType))        {            if (cmbDataType.getText().equals("Number"))            {                if (!(formatspecifier instanceof NumberFormatSpecifier)                    && !(formatspecifier instanceof JavaNumberFormatSpecifier))                {                    formatspecifier = NumberFormatSpecifierImpl.create();                }                slDetails.topControl = cmpNumberDetails;            }            else            {                if (!(formatspecifier instanceof DateFormatSpecifier)                    && !(formatspecifier instanceof JavaDateFormatSpecifier))                {                    formatspecifier = AttributeFactory.eINSTANCE.createDateFormatSpecifier();                }                slDetails.topControl = cmpDateDetails;            }            cmpDetails.layout();        }        else if (e.getSource().equals(cmbDateType))        {            if (!(formatspecifier instanceof DateFormatSpecifier))            {                formatspecifier = AttributeFactory.eINSTANCE.createDateFormatSpecifier();                ((DateFormatSpecifier) formatspecifier).setDetail(DateFormatDetail.get(cmbDateForm.getText()));            }            ((DateFormatSpecifier) formatspecifier).setType(DateFormatType.get(cmbDateType.getText()));        }        else if (e.getSource().equals(cmbDateForm))        {            if (!(formatspecifier instanceof DateFormatSpecifier))            {                formatspecifier = AttributeFactory.eINSTANCE.createDateFormatSpecifier();                ((DateFormatSpecifier) formatspecifier).setType(DateFormatType.get(cmbDateType.getText()));            }            ((DateFormatSpecifier) formatspecifier).setDetail(DateFormatDetail.get(cmbDateForm.getText()));        }    }