shell = new Shell(Display.getCurrent(), SWT.DIALOG_TRIM | SWT.RESIZE | SWT.APPLICATION_MODAL);
shell = new Shell(shellParent, SWT.DIALOG_TRIM | SWT.RESIZE | SWT.APPLICATION_MODAL);
    public TriggerEditorDialog(EList triggers)    {        super();        this.triggers = triggers;        vOriginalTriggers = EcoreUtil.copyAll(triggers);        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("Trigger Editor Dialog:");        shell.setSize(400, 340);        UIHelper.centerOnScreen(shell);        shell.layout();        shell.open();        while (!shell.isDisposed())        {            if (!shell.getDisplay().readAndDispatch())            {                shell.getDisplay().sleep();            }        }    }