]>
git.argeo.org Git - lgpl/argeo-commons.git/blob - rcp/org.argeo.swt.specific.rcp/src/org/eclipse/rap/rwt/application/AbstractEntryPoint.java
1 package org
.eclipse
.rap
.rwt
.application
;
3 import org
.eclipse
.swt
.layout
.GridLayout
;
4 import org
.eclipse
.swt
.widgets
.Composite
;
5 import org
.eclipse
.swt
.widgets
.Display
;
6 import org
.eclipse
.swt
.widgets
.Shell
;
8 public abstract class AbstractEntryPoint
implements EntryPoint
{
9 private Display display
;
12 protected Shell
createShell(Display display
) {
13 return new Shell(display
);
16 protected void createContents(Composite parent
) {
20 public int createUI() {
21 display
= new Display();
22 shell
= createShell(display
);
23 shell
.setLayout(new GridLayout(1, false));
24 createContents(shell
);
25 if (shell
.getMaximized()) {
31 while (!shell
.isDisposed()) {
32 if (!display
.readAndDispatch()) {
40 protected Shell
getShell() {