- Timestamp:
- 03/29/12 09:06:25 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/modelicaml/org.openmodelica.modelicaml.common/src/org/openmodelica/modelicaml/common/dialogs/DialogMessage.java
r1358 r1461 55 55 public DialogMessage(Shell parentShell,String title, String infoText, String message) { 56 56 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 ); 58 61 this.title = title; 59 62 this.infoText = infoText; 60 63 this.message = message; 61 64 } 65 66 @Override 67 protected void createButtonsForButtonBar(Composite parent) { 68 } 69 62 70 63 71 protected void configureShell(Shell shell) { … … 68 76 } 69 77 70 // @Override71 // protected void okPressed() {72 // super.okPressed();73 // }74 75 78 76 79 @Override … … 85 88 } 86 89 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); 88 95 text.setLayout(new GridLayout()); 89 96 GridData textGD = new GridData(SWT.FILL, SWT.FILL, true, true);
Note: See TracChangeset
for help on using the changeset viewer.