if (formatspecifier == null) { this.formatspecifier = AttributeFactory.eINSTANCE.createNumberFormatSpecifier(); fsBackup = (FormatSpecifier) EcoreUtil.copy(this.formatspecifier); } else
if(formatspecifier != null)
    public FormatSpecifierDialog(Shell shellParent, FormatSpecifier formatspecifier, String sTitle)    {        super();        if (formatspecifier == null)        {            this.formatspecifier = AttributeFactory.eINSTANCE.createNumberFormatSpecifier();            fsBackup = (FormatSpecifier) EcoreUtil.copy(this.formatspecifier);        }        else        {            this.formatspecifier = (FormatSpecifier) EcoreUtil.copy(formatspecifier);            fsBackup = formatspecifier;        }        shell = new Shell(shellParent, SWT.DIALOG_TRIM | SWT.RESIZE | SWT.APPLICATION_MODAL);        GridLayout gridLayout = new GridLayout();        gridLayout.numColumns = 2;        shell.setLayout(new FillLayout());        placeComponents();        shell.setText("Format Specifier - " + sTitle);        shell.pack();        UIHelper.centerOnScreen(shell);        shell.layout();        shell.open();        while (!shell.isDisposed())        {            if (!shell.getDisplay().readAndDispatch())            {                shell.getDisplay().sleep();            }        }    }