Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCamille Letavernier2014-01-28 09:38:26 -0500
committerCamille Letavernier2014-01-28 09:38:26 -0500
commit913a421258a4abb5210eda4437630e2b98a34b1f (patch)
tree1115547d3ea503d978e44f6b9cc0150e5c07a8c5 /plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css.configuration/src
parent87209b1823cac4476687ce9554701de01e1d2076 (diff)
downloadorg.eclipse.papyrus-913a421258a4abb5210eda4437630e2b98a34b1f.tar.gz
org.eclipse.papyrus-913a421258a4abb5210eda4437630e2b98a34b1f.tar.xz
org.eclipse.papyrus-913a421258a4abb5210eda4437630e2b98a34b1f.zip
[CSS] Fix a potential stack over flow error
Diffstat (limited to 'plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css.configuration/src')
-rw-r--r--plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css.configuration/src/org/eclipse/papyrus/infra/gmfdiag/css/configuration/helper/XtextStylesheetHelper.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css.configuration/src/org/eclipse/papyrus/infra/gmfdiag/css/configuration/helper/XtextStylesheetHelper.java b/plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css.configuration/src/org/eclipse/papyrus/infra/gmfdiag/css/configuration/helper/XtextStylesheetHelper.java
index 2580fdae5da..3fff0e46641 100644
--- a/plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css.configuration/src/org/eclipse/papyrus/infra/gmfdiag/css/configuration/helper/XtextStylesheetHelper.java
+++ b/plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css.configuration/src/org/eclipse/papyrus/infra/gmfdiag/css/configuration/helper/XtextStylesheetHelper.java
@@ -1,6 +1,6 @@
/*****************************************************************************
* Copyright (c) 2012 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -25,15 +25,15 @@ import org.eclipse.xtext.resource.XtextResourceSet;
/**
* A helper for XText stylesheets
- *
+ *
* @author Camille Letavernier
- *
+ *
*/
public class XtextStylesheetHelper {
/**
* Loads and returns a Resource containing an XText Stylesheet
- *
+ *
* @param stylesheet
* The object representing the Stylesheet's path or contents
* @param resourceSet
@@ -47,7 +47,7 @@ public class XtextStylesheetHelper {
*/
public static Resource loadStylesheet(StyleSheet stylesheet, ResourceSet resourceSet, View contextView, Shell parentShell) {
if(stylesheet instanceof StyleSheetReference) {
- return loadStylesheet(stylesheet, resourceSet, contextView, parentShell);
+ return loadStylesheet((StyleSheetReference)stylesheet, resourceSet, contextView, parentShell);
} else if(stylesheet instanceof EmbeddedStyleSheet) {
//TODO: Edit EmbeddedStyleSheets with XText
throw new UnsupportedOperationException();
@@ -57,7 +57,7 @@ public class XtextStylesheetHelper {
/**
* Loads and returns a Resource containing an XText Stylesheet
- *
+ *
* @param stylesheet
* The object representing the Stylesheet's path
* @param resourceSet

Back to the top