Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCamille Letavernier2013-12-18 12:57:51 +0000
committerCamille Letavernier2013-12-18 12:57:51 +0000
commit616909f16c45d079a158a3c66b9b05874ef3fe21 (patch)
tree3333c590c8738b0b17ea24da743f7ddccf44b820
parent2fa08c80bf087a7261c974805b2060a4844febba (diff)
downloadorg.eclipse.papyrus-616909f16c45d079a158a3c66b9b05874ef3fe21.tar.gz
org.eclipse.papyrus-616909f16c45d079a158a3c66b9b05874ef3fe21.tar.xz
org.eclipse.papyrus-616909f16c45d079a158a3c66b9b05874ef3fe21.zip
423729: [Performances - Symbols] SVG Images are reloaded too often
https://bugs.eclipse.org/bugs/show_bug.cgi?id=423729 Remove the CSS Context, which is not required anymore after the previous commit
-rw-r--r--plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css/plugin.xml8
-rw-r--r--plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css/src/org/eclipse/papyrus/infra/gmfdiag/css/Activator.java15
2 files changed, 0 insertions, 23 deletions
diff --git a/plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css/plugin.xml b/plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css/plugin.xml
index d1f57f8d7eb..685554e93ec 100644
--- a/plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css/plugin.xml
+++ b/plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css/plugin.xml
@@ -11,14 +11,6 @@
</factory>
</extension>
<extension
- point="org.eclipse.ui.contexts">
- <context
- description="A context used to indicate that the Papyrus CSS support is available"
- id="Papyrus CSS"
- name="Papyrus CSS context">
- </context>
- </extension>
- <extension
point="org.eclipse.papyrus.infra.emf.appearance.styleProvider">
<styleprovider
priority="40"
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 ebd1ac8dd40..14d5da1206a 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
@@ -12,9 +12,6 @@
package org.eclipse.papyrus.infra.gmfdiag.css;
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;
import org.osgi.framework.BundleContext;
@@ -57,18 +54,6 @@ public class Activator extends AbstractUIPlugin {
super.start(context);
plugin = this;
log = new LogHelper(this);
-
- if(Display.getCurrent() != null) {
- Display.getCurrent().asyncExec(new Runnable() {
-
- public void run() {
- IContextService contextService = (IContextService)PlatformUI.getWorkbench().getService(IContextService.class);
- contextService.activateContext(CSS);
- }
- });
- } else {
- log.warn("Cannot activate the CSS Context");
- }
}
/*

Back to the top