fsBackup = (FormatSpecifier) EcoreUtil.copy(formatspecifier);
if (formatspecifier == null) { this.formatspecifier = AttributeFactory.eINSTANCE.createNumberFormatSpecifier(); fsBackup = (FormatSpecifier) EcoreUtil.copy(this.formatspecifier); } else { fsBackup = null; }
    public FormatSpecifierDialog(FormatSpecifier formatspecifier)    {        super();        this.formatspecifier = formatspecifier;        fsBackup = (FormatSpecifier) EcoreUtil.copy(formatspecifier);        shell = new Shell(Display.getCurrent(), SWT.DIALOG_TRIM | SWT.RESIZE | SWT.APPLICATION_MODAL);        GridLayout gridLayout = new GridLayout();        gridLayout.numColumns = 2;        shell.setLayout(new FillLayout());        placeComponents();        shell.setText("Format Specifier Dialog:");        shell.setSize(332, 255);        shell.setLocation(Display.getCurrent().getClientArea().width / 2 - (shell.getSize().x / 2), Display            .getCurrent().getClientArea().height            / 2 - (shell.getSize().y / 2));        shell.open();        while (!shell.isDisposed())        {            if (!shell.getDisplay().readAndDispatch())            {                shell.getDisplay().sleep();            }        }    }