diff options
author | cletavernie | 2012-07-09 14:09:55 +0000 |
---|---|---|
committer | cletavernie | 2012-07-09 14:09:55 +0000 |
commit | 3cbeb0f08616058a05de608c66b4f8edf233552f (patch) | |
tree | b1d196b277cdd804c50c8e64a6b85c3658388559 /plugins/infra | |
parent | 64868d5c559d5b631dadf122511d03302459d049 (diff) | |
download | org.eclipse.papyrus-3cbeb0f08616058a05de608c66b4f8edf233552f.tar.gz org.eclipse.papyrus-3cbeb0f08616058a05de608c66b4f8edf233552f.tar.xz org.eclipse.papyrus-3cbeb0f08616058a05de608c66b4f8edf233552f.zip |
384570: [CSS - Export] It should be possible to export a set of stylesheets to create a Theme plug-in
https://bugs.eclipse.org/bugs/show_bug.cgi?id=384570
Change the visiblity of EmptyTheme singleton instance to Public
Diffstat (limited to 'plugins/infra')
2 files changed, 9 insertions, 4 deletions
diff --git a/plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css/src/org/eclipse/papyrus/infra/gmfdiag/css/Activator.java b/plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css/src/org/eclipse/papyrus/infra/gmfdiag/css/Activator.java index bfa98d4d754..049da86d92c 100644 --- a/plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css/src/org/eclipse/papyrus/infra/gmfdiag/css/Activator.java +++ b/plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css/src/org/eclipse/papyrus/infra/gmfdiag/css/Activator.java @@ -11,8 +11,8 @@ *****************************************************************************/
package org.eclipse.papyrus.infra.gmfdiag.css;
-import org.eclipse.core.commands.contexts.Context;
import org.eclipse.papyrus.infra.core.log.LogHelper;
+import org.eclipse.swt.widgets.Display;
import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.contexts.IContextService;
import org.eclipse.ui.plugin.AbstractUIPlugin;
@@ -57,8 +57,13 @@ public class Activator extends AbstractUIPlugin { super.start(context);
plugin = this;
log = new LogHelper(this);
- IContextService contextService = (IContextService)PlatformUI.getWorkbench().getService(IContextService.class);
- contextService.activateContext(CSS);
+ Display.getCurrent().asyncExec(new Runnable() {
+
+ public void run() {
+ IContextService contextService = (IContextService)PlatformUI.getWorkbench().getService(IContextService.class);
+ contextService.activateContext(CSS);
+ }
+ });
}
/*
diff --git a/plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css/src/org/eclipse/papyrus/infra/gmfdiag/css/theme/ThemeManager.java b/plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css/src/org/eclipse/papyrus/infra/gmfdiag/css/theme/ThemeManager.java index 945fe45ddbb..0447500b859 100644 --- a/plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css/src/org/eclipse/papyrus/infra/gmfdiag/css/theme/ThemeManager.java +++ b/plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css/src/org/eclipse/papyrus/infra/gmfdiag/css/theme/ThemeManager.java @@ -174,7 +174,7 @@ public class ThemeManager { return theme;
}
- private static class EmptyTheme extends Theme {
+ public static class EmptyTheme extends Theme {
public static Theme instance = new EmptyTheme();
|