Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcletavernie2012-04-27 10:29:10 -0400
committercletavernie2012-04-27 10:29:10 -0400
commitd8526d072f0a90bbfa548f411d5569e52c27566e (patch)
tree4f296801d2a9c91b61ea633e7a72d1ee71b370c3 /plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css.properties
parentf21f8a96c6e2acbd83ecb4325e5c03fb583dda9c (diff)
downloadorg.eclipse.papyrus-d8526d072f0a90bbfa548f411d5569e52c27566e.tar.gz
org.eclipse.papyrus-d8526d072f0a90bbfa548f411d5569e52c27566e.tar.xz
org.eclipse.papyrus-d8526d072f0a90bbfa548f411d5569e52c27566e.zip
370797: [Theme] Papyrus should provide a support for CSS files on its diagrams
https://bugs.eclipse.org/bugs/show_bug.cgi?id=370797
Diffstat (limited to 'plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css.properties')
-rw-r--r--plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css.properties/src/org/eclipse/papyrus/infra/gmfdiag/css/properties/modelelement/CSSModelElement.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css.properties/src/org/eclipse/papyrus/infra/gmfdiag/css/properties/modelelement/CSSModelElement.java b/plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css.properties/src/org/eclipse/papyrus/infra/gmfdiag/css/properties/modelelement/CSSModelElement.java
index 4edd0765b18..382e23367e9 100644
--- a/plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css.properties/src/org/eclipse/papyrus/infra/gmfdiag/css/properties/modelelement/CSSModelElement.java
+++ b/plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css.properties/src/org/eclipse/papyrus/infra/gmfdiag/css/properties/modelelement/CSSModelElement.java
@@ -17,8 +17,8 @@ import org.eclipse.emf.edit.domain.EditingDomain;
import org.eclipse.gmf.runtime.notation.Diagram;
import org.eclipse.gmf.runtime.notation.View;
import org.eclipse.jface.viewers.ILabelProvider;
-import org.eclipse.papyrus.infra.gmfdiag.css.notation.CSSAnnotations;
import org.eclipse.papyrus.infra.gmfdiag.css.notation.CSSDiagram;
+import org.eclipse.papyrus.infra.gmfdiag.css.notation.CSSStyles;
import org.eclipse.papyrus.infra.gmfdiag.css.properties.creation.StyleSheetFactory;
import org.eclipse.papyrus.infra.gmfdiag.css.properties.databinding.DiagramStyleSheetObservableList;
import org.eclipse.papyrus.infra.gmfdiag.css.properties.provider.CSSStyleSheetContentProvider;
@@ -43,10 +43,10 @@ public class CSSModelElement extends CustomStyleModelElement {
@Override
public ReferenceValueFactory getValueFactory(String propertyPath) {
- if(CSSAnnotations.CSS_DIAGRAM_STYLESHEETS_KEY.equals(propertyPath)) {
+ if(CSSStyles.CSS_DIAGRAM_STYLESHEETS_KEY.equals(propertyPath)) {
return new StyleSheetFactory((View)this.source);
}
- if(CSSAnnotations.CSS_GMF_CLASS_KEY.equals(propertyPath)) {
+ if(CSSStyles.CSS_GMF_CLASS_KEY.equals(propertyPath)) {
StringEditionFactory factory = new StringEditionFactory();
factory.setContentProvider(getContentProvider(propertyPath));
return factory;
@@ -57,7 +57,7 @@ public class CSSModelElement extends CustomStyleModelElement {
@Override
public IObservable doGetObservable(String propertyPath) {
- if(CSSAnnotations.CSS_DIAGRAM_STYLESHEETS_KEY.equals(propertyPath)) {
+ if(CSSStyles.CSS_DIAGRAM_STYLESHEETS_KEY.equals(propertyPath)) {
return new DiagramStyleSheetObservableList((View)source, domain, propertyPath);
}
return super.doGetObservable(propertyPath);
@@ -65,7 +65,7 @@ public class CSSModelElement extends CustomStyleModelElement {
@Override
public ILabelProvider getLabelProvider(String propertyPath) {
- if(CSSAnnotations.CSS_DIAGRAM_STYLESHEETS_KEY.equals(propertyPath)) {
+ if(CSSStyles.CSS_DIAGRAM_STYLESHEETS_KEY.equals(propertyPath)) {
return new CSSStyleSheetLabelProvider();
}
return super.getLabelProvider(propertyPath);
@@ -73,11 +73,11 @@ public class CSSModelElement extends CustomStyleModelElement {
@Override
public IStaticContentProvider getContentProvider(String propertyPath) {
- if(propertyPath.equals(CSSAnnotations.CSS_DIAGRAM_STYLESHEETS_KEY)) {
+ if(propertyPath.equals(CSSStyles.CSS_DIAGRAM_STYLESHEETS_KEY)) {
return new CSSStyleSheetContentProvider(source);
}
- if(propertyPath.equals(CSSAnnotations.CSS_GMF_CLASS_KEY)) {
+ if(propertyPath.equals(CSSStyles.CSS_GMF_CLASS_KEY)) {
Diagram diagram = ((View)source).getDiagram();
if(diagram instanceof CSSDiagram) {

Back to the top