diff options
author | Thomas Schindl | 2010-06-28 17:58:12 +0000 |
---|---|---|
committer | Thomas Schindl | 2010-06-28 17:58:12 +0000 |
commit | 495edabee3354f6cec8c5ec0fd9dfa144119fa27 (patch) | |
tree | ece9c1085d078e2b17c5b8c60f1d7955b7e3c196 | |
parent | ee24ab322b12001464648e0e9a6bdc7ce35cea2f (diff) | |
download | org.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.java | 13 |
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); |