Changeset 1461


Ignore:
Timestamp:
03/29/12 09:06:25 (12 years ago)
Author:
wschamai
Message:

MOD: message dialog

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/modelicaml/org.openmodelica.modelicaml.common/src/org/openmodelica/modelicaml/common/dialogs/DialogMessage.java

    r1358 r1461  
    5555    public DialogMessage(Shell parentShell,String title, String infoText, String message) {
    5656        super(parentShell);
    57         setShellStyle(getShellStyle() | SWT.RESIZE | SWT.APPLICATION_MODAL);
     57        setBlockOnOpen(false);
     58       
     59//      setShellStyle(getShellStyle() | SWT.RESIZE | SWT.APPLICATION_MODAL);
     60        setShellStyle( SWT.DIALOG_TRIM | SWT.PRIMARY_MODAL | SWT.SHELL_TRIM );
    5861        this.title = title;
    5962        this.infoText = infoText;
    6063        this.message = message;
    6164    }
     65   
     66    @Override
     67    protected void createButtonsForButtonBar(Composite parent) {
     68    }
     69   
    6270   
    6371    protected void configureShell(Shell shell) {
     
    6876    }
    6977   
    70 //  @Override
    71 //  protected void okPressed() {
    72 //      super.okPressed();
    73 //  }
    74 
    7578   
    7679    @Override
     
    8588        }
    8689
    87         text = new StyledText(composite, SWT.BORDER | SWT.V_SCROLL | SWT.H_SCROLL);
     90        text = new StyledText(composite, SWT.BORDER | SWT.V_SCROLL | SWT.WRAP);
     91        text.setWrapIndent(10);
     92        text.setTopMargin(5);
     93        text.setRightMargin(5);
     94        text.setLeftMargin(5);
    8895        text.setLayout(new GridLayout());
    8996        GridData textGD = new GridData(SWT.FILL, SWT.FILL, true, true);
Note: See TracChangeset for help on using the changeset viewer.