Lines 1-5
Link Here
|
1 |
/******************************************************************************* |
1 |
/******************************************************************************* |
2 |
* Copyright (c) 2008, 2009 IBM Corporation and others. |
2 |
* Copyright (c) 2008, 2010 IBM Corporation and others. |
3 |
* All rights reserved. This program and the accompanying materials |
3 |
* All rights reserved. This program and the accompanying materials |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
5 |
* which accompanies this distribution, and is available at |
5 |
* which accompanies this distribution, and is available at |
Lines 19-28
Link Here
|
19 |
|
19 |
|
20 |
public class RCPSessionApplication implements IApplication { |
20 |
public class RCPSessionApplication implements IApplication { |
21 |
|
21 |
|
|
|
22 |
private boolean windowlessApp = false; |
23 |
|
22 |
public Object start(IApplicationContext context) throws Exception { |
24 |
public Object start(IApplicationContext context) throws Exception { |
23 |
Display display = PlatformUI.createDisplay(); |
25 |
Display display = PlatformUI.createDisplay(); |
24 |
try { |
26 |
try { |
25 |
PlatformUI.createAndRunWorkbench(display, new RCPTestWorkbenchAdvisor()); |
27 |
PlatformUI.createAndRunWorkbench(display, new RCPTestWorkbenchAdvisor(windowlessApp)); |
26 |
} finally { |
28 |
} finally { |
27 |
if (display != null) |
29 |
if (display != null) |
28 |
display.dispose(); |
30 |
display.dispose(); |
Lines 42-45
Link Here
|
42 |
} |
44 |
} |
43 |
}); |
45 |
}); |
44 |
} |
46 |
} |
|
|
47 |
|
48 |
/** |
49 |
* @param windowlessApp The windowlessApp to set. |
50 |
*/ |
51 |
public void setWindowlessApp(boolean windowlessApp) { |
52 |
this.windowlessApp = windowlessApp; |
53 |
} |
54 |
|
45 |
} |
55 |
} |