Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Schindl2010-06-28 17:58:12 +0000
committerThomas Schindl2010-06-28 17:58:12 +0000
commit495edabee3354f6cec8c5ec0fd9dfa144119fa27 (patch)
treeece9c1085d078e2b17c5b8c60f1d7955b7e3c196
parentee24ab322b12001464648e0e9a6bdc7ce35cea2f (diff)
downloadorg.eclipse.e4.tools-495edabee3354f6cec8c5ec0fd9dfa144119fa27.tar.gz
org.eclipse.e4.tools-495edabee3354f6cec8c5ec0fd9dfa144119fa27.tar.xz
org.eclipse.e4.tools-495edabee3354f6cec8c5ec0fd9dfa144119fa27.zip
Bug 304584 - [Tooling] Implement Workbench-Model-Tooling
* some padding for the live editor
-rw-r--r--bundles/org.eclipse.e4.tools.emf.liveeditor/src/org/eclipse/e4/tools/emf/liveeditor/OpenLiveDialogHandler.java13
1 files changed, 10 insertions, 3 deletions
diff --git a/bundles/org.eclipse.e4.tools.emf.liveeditor/src/org/eclipse/e4/tools/emf/liveeditor/OpenLiveDialogHandler.java b/bundles/org.eclipse.e4.tools.emf.liveeditor/src/org/eclipse/e4/tools/emf/liveeditor/OpenLiveDialogHandler.java
index 8b350faf..630ae811 100644
--- a/bundles/org.eclipse.e4.tools.emf.liveeditor/src/org/eclipse/e4/tools/emf/liveeditor/OpenLiveDialogHandler.java
+++ b/bundles/org.eclipse.e4.tools.emf.liveeditor/src/org/eclipse/e4/tools/emf/liveeditor/OpenLiveDialogHandler.java
@@ -19,6 +19,8 @@ import org.eclipse.e4.tools.emf.ui.common.IModelResource;
import org.eclipse.e4.tools.emf.ui.internal.wbm.ApplicationModelEditor;
import org.eclipse.e4.ui.model.application.MApplication;
import org.eclipse.e4.ui.services.IServiceConstants;
+import org.eclipse.e4.ui.services.IStylingEngine;
+import org.eclipse.swt.SWT;
import org.eclipse.swt.events.DisposeEvent;
import org.eclipse.swt.events.DisposeListener;
import org.eclipse.swt.layout.FillLayout;
@@ -34,11 +36,16 @@ public class OpenLiveDialogHandler {
@Execute
public void run(@Named(IServiceConstants.ACTIVE_SHELL) Shell shell,
- IEclipseContext context, MApplication application) {
+ IEclipseContext context, MApplication application, IStylingEngine engine) {
if (this.shell == null || ! this.shell.isDisposed()) {
try {
- shell = new Shell(shell.getDisplay());
- shell.setLayout(new FillLayout());
+ shell = new Shell(shell.getDisplay(),SWT.ON_TOP|SWT.SHELL_TRIM);
+ //FIXME Style
+ shell.setBackground(shell.getDisplay().getSystemColor(SWT.COLOR_WHITE));
+ FillLayout layout = new FillLayout();
+ layout.marginHeight=10;
+ layout.marginWidth=10;
+ shell.setLayout(layout);
final IEclipseContext childContext = context
.createChild("EditorContext");
MemoryModelResource resource = new MemoryModelResource(application);

Back to the top