diff options
Diffstat (limited to 'incoming')
165 files changed, 73856 insertions, 27 deletions
diff --git a/incoming/org.eclipse.papyrus.infra.gmfdiag.css.configuration/.classpath b/incoming/org.eclipse.papyrus.infra.gmfdiag.css.configuration/.classpath new file mode 100644 index 00000000000..2d1a4302f04 --- /dev/null +++ b/incoming/org.eclipse.papyrus.infra.gmfdiag.css.configuration/.classpath @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
diff --git a/incoming/org.eclipse.papyrus.infra.gmfdiag.css.configuration/.project b/incoming/org.eclipse.papyrus.infra.gmfdiag.css.configuration/.project new file mode 100644 index 00000000000..1b939fb2cc4 --- /dev/null +++ b/incoming/org.eclipse.papyrus.infra.gmfdiag.css.configuration/.project @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.eclipse.papyrus.infra.gmfdiag.css.configuration</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.ManifestBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.SchemaBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
diff --git a/incoming/org.eclipse.papyrus.infra.gmfdiag.css.configuration/.settings/org.eclipse.jdt.core.prefs b/incoming/org.eclipse.papyrus.infra.gmfdiag.css.configuration/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 00000000000..44217f8c068 --- /dev/null +++ b/incoming/org.eclipse.papyrus.infra.gmfdiag.css.configuration/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,7 @@ +eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
+org.eclipse.jdt.core.compiler.compliance=1.5
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.5
diff --git a/incoming/org.eclipse.papyrus.infra.gmfdiag.css.configuration/META-INF/MANIFEST.MF b/incoming/org.eclipse.papyrus.infra.gmfdiag.css.configuration/META-INF/MANIFEST.MF new file mode 100644 index 00000000000..566a644a919 --- /dev/null +++ b/incoming/org.eclipse.papyrus.infra.gmfdiag.css.configuration/META-INF/MANIFEST.MF @@ -0,0 +1,23 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: CSS Configuration +Bundle-SymbolicName: org.eclipse.papyrus.infra.gmfdiag.css.configuration;singleton:=true +Bundle-Version: 0.9.0.qualifier +Bundle-Activator: org.eclipse.papyrus.infra.gmfdiag.css.configuration.Activator +Bundle-Vendor: Eclipse Modeling Project +Require-Bundle: org.eclipse.ui, + org.eclipse.core.runtime, + org.eclipse.papyrus.infra.core.log;bundle-version="0.9.0", + org.eclipse.papyrus.infra.gmfdiag.common;bundle-version="0.9.0", + org.eclipse.papyrus.infra.gmfdiag.css.xtext;bundle-version="1.0.0", + org.eclipse.gmf.runtime.notation;bundle-version="1.5.0", + org.eclipse.gmf.runtime.draw2d.ui;bundle-version="1.5.0", + org.eclipse.draw2d;bundle-version="3.8.0", + org.eclipse.papyrus.infra.core;bundle-version="0.9.0", + org.eclipse.papyrus.infra.widgets;bundle-version="0.9.0", + org.eclipse.papyrus.infra.gmfdiag.css.properties;bundle-version="0.9.0", + org.eclipse.papyrus.infra.emf;bundle-version="0.9.0", + org.eclipse.papyrus.infra.gmfdiag.css.model;bundle-version="0.9.0", + org.eclipse.papyrus.infra.gmfdiag.css;bundle-version="0.9.0" +Bundle-RequiredExecutionEnvironment: J2SE-1.5 +Bundle-ActivationPolicy: lazy diff --git a/incoming/org.eclipse.papyrus.infra.gmfdiag.css.configuration/build.properties b/incoming/org.eclipse.papyrus.infra.gmfdiag.css.configuration/build.properties new file mode 100644 index 00000000000..6f20375d6c7 --- /dev/null +++ b/incoming/org.eclipse.papyrus.infra.gmfdiag.css.configuration/build.properties @@ -0,0 +1,5 @@ +source.. = src/
+output.. = bin/
+bin.includes = META-INF/,\
+ .,\
+ plugin.xml
diff --git a/incoming/org.eclipse.papyrus.infra.gmfdiag.css.configuration/icons/sourceEditor.gif b/incoming/org.eclipse.papyrus.infra.gmfdiag.css.configuration/icons/sourceEditor.gif Binary files differnew file mode 100644 index 00000000000..75ebdb85865 --- /dev/null +++ b/incoming/org.eclipse.papyrus.infra.gmfdiag.css.configuration/icons/sourceEditor.gif diff --git a/incoming/org.eclipse.papyrus.infra.gmfdiag.css.configuration/plugin.xml b/incoming/org.eclipse.papyrus.infra.gmfdiag.css.configuration/plugin.xml new file mode 100644 index 00000000000..4c4cd0021d4 --- /dev/null +++ b/incoming/org.eclipse.papyrus.infra.gmfdiag.css.configuration/plugin.xml @@ -0,0 +1,57 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.4"?>
+<plugin>
+ <extension
+ point="org.eclipse.ui.menus">
+ <menuContribution
+ allPopups="false"
+ locationURI="popup:org.eclipse.papyrus.uml.diagram.ui.popupmenu.format?after=org.eclipse.papyrus.uml.diagram.menu.commands.CopyAppearancePropertiesCommand">
+ <separator
+ name="org.eclipse.papyrus.infra.gmfdiag.css.separator"
+ visible="true">
+ </separator>
+ <command
+ commandId="org.eclipse.papyrus.infra.gmfdiag.css.createStyle"
+ icon="icons/sourceEditor.gif"
+ style="push">
+ <visibleWhen
+ checkEnabled="true">
+ </visibleWhen>
+ </command>
+ <command
+ commandId="org.eclipse.papyrus.infra.gmfdiag.css.editStyle"
+ icon="icons/sourceEditor.gif"
+ style="push">
+ <visibleWhen
+ checkEnabled="true">
+ </visibleWhen>
+ </command>
+ </menuContribution>
+ </extension>
+ <extension
+ point="org.eclipse.ui.commands">
+ <command
+ categoryId="org.eclipse.papyrus.editor.category"
+ description="Creates a new style based on the selected item"
+ id="org.eclipse.papyrus.infra.gmfdiag.css.createStyle"
+ name="Create a new style">
+ </command>
+ <command
+ description="Replace an existing style based on the selected item"
+ id="org.eclipse.papyrus.infra.gmfdiag.css.editStyle"
+ name="Edit an existing style">
+ </command>
+ </extension>
+ <extension
+ point="org.eclipse.ui.handlers">
+ <handler
+ class="org.eclipse.papyrus.infra.gmfdiag.css.configuration.handler.CreateStyleHandler"
+ commandId="org.eclipse.papyrus.infra.gmfdiag.css.createStyle">
+ </handler>
+ <handler
+ class="org.eclipse.papyrus.infra.gmfdiag.css.configuration.handler.EditStyleHandler"
+ commandId="org.eclipse.papyrus.infra.gmfdiag.css.editStyle">
+ </handler>
+ </extension>
+
+</plugin>
diff --git a/incoming/org.eclipse.papyrus.infra.gmfdiag.css.configuration/src/org/eclipse/papyrus/infra/gmfdiag/css/configuration/Activator.java b/incoming/org.eclipse.papyrus.infra.gmfdiag.css.configuration/src/org/eclipse/papyrus/infra/gmfdiag/css/configuration/Activator.java new file mode 100644 index 00000000000..aac4232ff39 --- /dev/null +++ b/incoming/org.eclipse.papyrus.infra.gmfdiag.css.configuration/src/org/eclipse/papyrus/infra/gmfdiag/css/configuration/Activator.java @@ -0,0 +1,69 @@ +/*****************************************************************************
+ * 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
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
+ *****************************************************************************/
+package org.eclipse.papyrus.infra.gmfdiag.css.configuration;
+
+import org.eclipse.papyrus.infra.core.log.LogHelper;
+import org.eclipse.ui.plugin.AbstractUIPlugin;
+import org.osgi.framework.BundleContext;
+
+/**
+ * The activator class controls the plug-in life cycle
+ */
+public class Activator extends AbstractUIPlugin {
+
+ // The plug-in ID
+ public static final String PLUGIN_ID = "org.eclipse.papyrus.infra.gmfdiag.css.configuration"; //$NON-NLS-1$
+
+ // The shared instance
+ private static Activator plugin;
+
+ public static LogHelper log;
+
+ /**
+ * The constructor
+ */
+ public Activator() {
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
+ */
+ @Override
+ public void start(BundleContext context) throws Exception {
+ super.start(context);
+ plugin = this;
+ log = new LogHelper(this);
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
+ */
+ @Override
+ public void stop(BundleContext context) throws Exception {
+ plugin = null;
+ super.stop(context);
+ }
+
+ /**
+ * Returns the shared instance
+ *
+ * @return the shared instance
+ */
+ public static Activator getDefault() {
+ return plugin;
+ }
+
+}
diff --git a/incoming/org.eclipse.papyrus.infra.gmfdiag.css.configuration/src/org/eclipse/papyrus/infra/gmfdiag/css/configuration/handler/CreateStyleHandler.java b/incoming/org.eclipse.papyrus.infra.gmfdiag.css.configuration/src/org/eclipse/papyrus/infra/gmfdiag/css/configuration/handler/CreateStyleHandler.java new file mode 100644 index 00000000000..81ede998d5f --- /dev/null +++ b/incoming/org.eclipse.papyrus.infra.gmfdiag.css.configuration/src/org/eclipse/papyrus/infra/gmfdiag/css/configuration/handler/CreateStyleHandler.java @@ -0,0 +1,339 @@ +/*****************************************************************************
+ * 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
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
+ *****************************************************************************/
+package org.eclipse.papyrus.infra.gmfdiag.css.configuration.handler;
+
+import java.io.IOException;
+import java.util.Collections;
+import java.util.HashMap;
+import java.util.LinkedHashMap;
+import java.util.Map;
+
+import org.eclipse.core.commands.AbstractHandler;
+import org.eclipse.core.commands.ExecutionEvent;
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.emf.common.util.Enumerator;
+import org.eclipse.emf.common.util.URI;
+import org.eclipse.emf.ecore.EDataType;
+import org.eclipse.emf.ecore.EEnum;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.emf.ecore.EcorePackage;
+import org.eclipse.emf.ecore.resource.Resource;
+import org.eclipse.emf.ecore.resource.ResourceSet;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.FigureUtilities;
+import org.eclipse.gmf.runtime.notation.Diagram;
+import org.eclipse.gmf.runtime.notation.NamedStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.Style;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.gmf.runtime.notation.datatype.GradientData;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.dialogs.MessageDialog;
+import org.eclipse.jface.viewers.ISelection;
+import org.eclipse.jface.viewers.IStructuredSelection;
+import org.eclipse.papyrus.infra.core.services.ServiceException;
+import org.eclipse.papyrus.infra.core.utils.ServiceUtilsForActionHandlers;
+import org.eclipse.papyrus.infra.gmfdiag.common.helper.NotationHelper;
+import org.eclipse.papyrus.infra.gmfdiag.css.ATTRIBUTE_OP;
+import org.eclipse.papyrus.infra.gmfdiag.css.Attribute;
+import org.eclipse.papyrus.infra.gmfdiag.css.AttributeValue;
+import org.eclipse.papyrus.infra.gmfdiag.css.CompositeSelector;
+import org.eclipse.papyrus.infra.gmfdiag.css.CssFactory;
+import org.eclipse.papyrus.infra.gmfdiag.css.Declaration;
+import org.eclipse.papyrus.infra.gmfdiag.css.Ruleset;
+import org.eclipse.papyrus.infra.gmfdiag.css.SelectorCondition;
+import org.eclipse.papyrus.infra.gmfdiag.css.SimpleSelector;
+import org.eclipse.papyrus.infra.gmfdiag.css.Stylesheet;
+import org.eclipse.papyrus.infra.gmfdiag.css.configuration.Activator;
+import org.eclipse.papyrus.infra.gmfdiag.css.handler.CSSRefreshHandler;
+import org.eclipse.papyrus.infra.gmfdiag.css.stylesheets.StyleSheet;
+import org.eclipse.papyrus.infra.gmfdiag.css.stylesheets.StyleSheetReference;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.widgets.Event;
+import org.eclipse.swt.widgets.Shell;
+import org.eclipse.xtext.resource.XtextResourceSet;
+
+
+public class CreateStyleHandler extends AbstractHandler {
+
+ public Object execute(ExecutionEvent event) throws ExecutionException {
+ ISelection selection;
+ try {
+ selection = ServiceUtilsForActionHandlers.getInstance().getNestedActiveIEditorPart().getSite().getSelectionProvider().getSelection();
+ if(selection.isEmpty()) {
+ return null;
+ }
+ } catch (ServiceException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ return null;
+ }
+
+ if(!(selection instanceof IStructuredSelection)) {
+ return null;
+ }
+
+ IStructuredSelection sSelection = (IStructuredSelection)selection;
+ Object element = sSelection.getFirstElement();
+
+ View view = NotationHelper.findView(element);
+ if(view == null) {
+ Activator.log.warn("Cannot create a Style from the selected element ; the element is not a View");
+ return null;
+ }
+
+ Shell parentShell = ((Event)event.getTrigger()).widget.getDisplay().getActiveShell();
+
+ if(view.getElement() == null || view instanceof Diagram) {
+ MessageDialog.open(MessageDialog.WARNING, parentShell, "Style error", "The selected element's style cannot be exported", SWT.NONE);
+ return null;
+ }
+
+ Map<Declaration, Boolean> declarations = handleStyles(view);
+ Map<SelectorCondition, Boolean> conditions = handleSemantic(view);
+
+ String selectorName = view.getElement().eClass().getName();
+
+ StyleCreationDialog dialog = new StyleCreationDialog(parentShell, conditions, declarations, selectorName, view);
+ if(dialog.open() != Dialog.OK) {
+ return null;
+ }
+
+ Ruleset ruleset = CssFactory.eINSTANCE.createRuleset();
+ SimpleSelector selector = CssFactory.eINSTANCE.createSimpleSelector();
+
+ if(dialog.useSelectorName()) {
+ selector.setElementName(selectorName);
+ } else {
+ selector.setElementName("*"); //$NON-NLS-1$
+ }
+
+ if(dialog.getDiagramRestriction()) {
+ String diagramType = view.getDiagram().getType();
+ CompositeSelector compositeSelector = CssFactory.eINSTANCE.createCompositeSelector();
+ compositeSelector.setRight(selector);
+
+ SimpleSelector diagramSelector = CssFactory.eINSTANCE.createSimpleSelector();
+ diagramSelector.setElementName(diagramType);
+ compositeSelector.setLeft(diagramSelector);
+
+ ruleset.getSelectors().add(compositeSelector);
+ } else {
+ ruleset.getSelectors().add(selector);
+ }
+
+ if(dialog.getCSSClass() != null) {
+ String cssClass = dialog.getCSSClass();
+ org.eclipse.papyrus.infra.gmfdiag.css.Class classCondition = CssFactory.eINSTANCE.createClass();
+ classCondition.setClass(cssClass);
+ selector.getCondition().add(classCondition);
+ }
+
+ for(SelectorCondition condition : conditions.keySet()) {
+ if(conditions.get(condition)) {
+ selector.getCondition().add(condition);
+ }
+ }
+
+ for(Declaration declaration : declarations.keySet()) {
+ if(declarations.get(declaration)) {
+ ruleset.getProperties().add(declaration);
+ }
+ }
+
+ StyleSheet styleSheet = dialog.getStylesheet();
+ if(styleSheet == null) {
+ MessageDialog.open(MessageDialog.ERROR, parentShell, "Stylesheet error", "Invalid stylesheet", SWT.NONE);
+ return null;
+ }
+
+ ResourceSet resourceSet = new XtextResourceSet();
+ Resource resource;
+
+ if(styleSheet instanceof StyleSheetReference) {
+ //Supported pathes:
+ // /<plugin>/path/file.css (Workspace, platform:/resource/)
+ // relative/path/file.css (Relative)
+ String path = ((StyleSheetReference)styleSheet).getPath();
+ if(!path.endsWith(".css")) {
+ //FIXME: The X-Text editor supports CSS Content Types, but it is not yet configured
+ //to automatically accept other extensions than *.css
+ //The parser should rely on the file's content type instead of the file extension
+ //Attemps to serialize to a custom extension (even an extension compatible with CSS Content Type)
+ //would result in xmi serialization. We'd better stop here.
+ MessageDialog.open(MessageDialog.ERROR, parentShell, "Stylesheet error", "The stylesheet must have the *.css extension", SWT.NONE);
+ return null;
+ }
+ URI uri;
+ if(path.startsWith("/")) {
+ uri = URI.createPlatformResourceURI(path, true);
+ } else {
+ uri = URI.createURI(path);
+ uri = uri.resolve(view.eResource().getURI());
+ }
+
+ try {
+ resource = resourceSet.getResource(uri, true);
+ } catch (Exception ex) {
+ resource = resourceSet.createResource(uri, "org.eclipse.wst.css.core.csssource");
+ }
+ } else {
+ MessageDialog.open(MessageDialog.ERROR, parentShell, "Stylesheet error", "Embedded stylesheets are not yet supported", SWT.NONE);
+ return null;
+ }
+
+ Stylesheet xtextStylesheet;
+
+ if(resource.getContents().isEmpty()) {
+ xtextStylesheet = CssFactory.eINSTANCE.createStylesheet();
+ xtextStylesheet.setCharset("UTF-8");
+ resource.getContents().add(xtextStylesheet);
+ } else {
+ xtextStylesheet = (Stylesheet)resource.getContents().get(0);
+ }
+
+ xtextStylesheet.getContents().add(ruleset);
+
+ try {
+ resource.save(new HashMap<Object, Object>());
+ (new CSSRefreshHandler()).execute(null);
+ } catch (IOException ex) {
+ Activator.log.error(ex);
+ MessageDialog.open(MessageDialog.ERROR, parentShell, "Style error", "An unexpected error occured while trying to save the Stylesheet", SWT.NONE);
+ } catch (Exception ex) {
+ Activator.log.error(ex);
+ MessageDialog.open(MessageDialog.ERROR, parentShell, "Style error", "An unexpected error occured while trying to save the Stylesheet", SWT.NONE);
+ }
+
+ return null;
+ }
+
+ private Map<Declaration, Boolean> handleStyles(View view) {
+ Map<Declaration, Boolean> declarations = new LinkedHashMap<Declaration, Boolean>();
+
+ for(Object styleObject : view.getStyles()) {
+ Style style = (Style)styleObject;
+ declarations.putAll(handleStyle(style));
+ }
+
+ if(view instanceof Style) {
+ declarations.putAll(handleStyle((Style)view));
+ }
+
+ return declarations;
+ }
+
+ private Map<SelectorCondition, Boolean> handleSemantic(View view) {
+ Map<SelectorCondition, Boolean> result = new LinkedHashMap<SelectorCondition, Boolean>();
+
+ EObject semanticElement = view.getElement();
+
+ for(EStructuralFeature feature : semanticElement.eClass().getEAllStructuralFeatures()) {
+ if(isBoolean(feature) || isInteger(feature) || feature.getEType() instanceof EEnum) {
+ Attribute attributeCondition = CssFactory.eINSTANCE.createAttribute();
+ attributeCondition.setName(feature.getName());
+
+ AttributeValue attributeValue = CssFactory.eINSTANCE.createAttributeValue();
+ attributeValue.setOperator(ATTRIBUTE_OP.EQUALS);
+ attributeValue.setValue(semanticElement.eGet(feature).toString());
+ attributeCondition.setValue(attributeValue);
+
+ boolean check = semanticElement.eGet(feature) != feature.getDefaultValue();
+
+ result.put(attributeCondition, check);
+ }
+ }
+
+ return result;
+ }
+
+ private boolean isBoolean(EStructuralFeature feature) {
+ if(feature.getEType() == EcorePackage.eINSTANCE.getEBoolean() || feature.getEType() == EcorePackage.eINSTANCE.getEBooleanObject()) {
+ return true;
+ }
+
+ if(feature.getEType() instanceof EDataType) {
+ EDataType datatype = (EDataType)feature.getEType();
+ return datatype.getName().equals("Boolean");
+ }
+
+ return false;
+ }
+
+ private boolean isString(EStructuralFeature feature) {
+ return feature.getEType() == EcorePackage.eINSTANCE.getEString();
+ }
+
+ private boolean isInteger(EStructuralFeature feature) {
+ if(feature.getEType() == EcorePackage.eINSTANCE.getEInt() || feature.getEType() == EcorePackage.eINSTANCE.getEIntegerObject()) {
+ return true;
+ }
+
+ if(feature.getEType() instanceof EDataType) {
+ EDataType datatype = (EDataType)feature.getEType();
+ return datatype.getName().equals("Integer");
+ }
+
+ return false;
+ }
+
+ private Map<Declaration, Boolean> handleStyle(Style style) {
+ if(style instanceof NamedStyle) {
+ return Collections.emptyMap();
+ }
+
+ Map<Declaration, Boolean> declarations = new LinkedHashMap<Declaration, Boolean>();
+
+ for(EStructuralFeature feature : style.eClass().getEAllStructuralFeatures()) {
+ if(NotationPackage.eINSTANCE.getStyle().isSuperTypeOf(feature.getEContainingClass())) {
+ boolean check = style.eGet(feature) != feature.getDefaultValue();
+ declarations.put(handleStyleFeature(style, feature), check);
+ }
+ }
+
+ return declarations;
+ }
+
+ private Declaration handleStyleFeature(Style style, EStructuralFeature feature) {
+ Declaration declaration = CssFactory.eINSTANCE.createDeclaration();
+ declaration.setProperty(feature.getName());
+
+ GMFToCSSConverter converter = GMFToCSSConverter.instance;
+
+ if(isString(feature)) {
+ declaration.setExpression(converter.convert((String)style.eGet(feature)));
+ }
+
+ if(isInteger(feature)) {
+ if(feature.getName().endsWith("Color")) {
+ declaration.setExpression(converter.convert(FigureUtilities.integerToColor((Integer)style.eGet(feature))));
+ } else {
+ declaration.setExpression(converter.convert((Integer)style.eGet(feature)));
+ }
+ }
+
+ if(feature.getEType() == NotationPackage.eINSTANCE.getGradientData()) {
+ declaration.setExpression(converter.convert((GradientData)style.eGet(feature)));
+ }
+
+ if(feature.getEType() instanceof EEnum) {
+ declaration.setExpression(converter.convert((Enumerator)style.eGet(feature)));
+ }
+
+ if(isBoolean(feature)) {
+ declaration.setExpression(converter.convert((Boolean)style.eGet(feature)));
+ }
+
+ return declaration;
+ }
+
+}
diff --git a/incoming/org.eclipse.papyrus.infra.gmfdiag.css.configuration/src/org/eclipse/papyrus/infra/gmfdiag/css/configuration/handler/EditStyleHandler.java b/incoming/org.eclipse.papyrus.infra.gmfdiag.css.configuration/src/org/eclipse/papyrus/infra/gmfdiag/css/configuration/handler/EditStyleHandler.java new file mode 100644 index 00000000000..7932fbe9665 --- /dev/null +++ b/incoming/org.eclipse.papyrus.infra.gmfdiag.css.configuration/src/org/eclipse/papyrus/infra/gmfdiag/css/configuration/handler/EditStyleHandler.java @@ -0,0 +1,32 @@ +/*****************************************************************************
+ * 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
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
+ *****************************************************************************/
+package org.eclipse.papyrus.infra.gmfdiag.css.configuration.handler;
+
+import org.eclipse.core.commands.AbstractHandler;
+import org.eclipse.core.commands.ExecutionEvent;
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.jface.dialogs.MessageDialog;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.widgets.Event;
+import org.eclipse.swt.widgets.Shell;
+
+
+public class EditStyleHandler extends AbstractHandler {
+
+ public Object execute(ExecutionEvent event) throws ExecutionException {
+ //TODO
+ Shell parentShell = ((Event)event.getTrigger()).widget.getDisplay().getActiveShell();
+ MessageDialog.open(MessageDialog.WARNING, parentShell, "Edit style error", "This action is not yet supported", SWT.NONE);
+ return null;
+ }
+
+}
diff --git a/incoming/org.eclipse.papyrus.infra.gmfdiag.css.configuration/src/org/eclipse/papyrus/infra/gmfdiag/css/configuration/handler/GMFToCSSConverter.java b/incoming/org.eclipse.papyrus.infra.gmfdiag.css.configuration/src/org/eclipse/papyrus/infra/gmfdiag/css/configuration/handler/GMFToCSSConverter.java new file mode 100644 index 00000000000..fdacd0d7190 --- /dev/null +++ b/incoming/org.eclipse.papyrus.infra.gmfdiag.css.configuration/src/org/eclipse/papyrus/infra/gmfdiag/css/configuration/handler/GMFToCSSConverter.java @@ -0,0 +1,133 @@ +/*****************************************************************************
+ * 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
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
+ *****************************************************************************/
+package org.eclipse.papyrus.infra.gmfdiag.css.configuration.handler;
+
+import org.eclipse.emf.common.util.Enumerator;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.FigureUtilities;
+import org.eclipse.gmf.runtime.notation.GradientStyle;
+import org.eclipse.gmf.runtime.notation.datatype.GradientData;
+import org.eclipse.papyrus.infra.gmfdiag.css.CssFactory;
+import org.eclipse.papyrus.infra.gmfdiag.css.Expression;
+import org.eclipse.papyrus.infra.gmfdiag.css.HexColor;
+import org.eclipse.papyrus.infra.gmfdiag.css.Name;
+import org.eclipse.papyrus.infra.gmfdiag.css.Number;
+import org.eclipse.papyrus.infra.gmfdiag.css.StringValue;
+import org.eclipse.papyrus.infra.gmfdiag.css.Subterm;
+import org.eclipse.papyrus.infra.gmfdiag.css.Term;
+import org.eclipse.papyrus.infra.gmfdiag.css.UNARY;
+import org.eclipse.papyrus.infra.gmfdiag.css.UnaryOperator;
+import org.eclipse.swt.graphics.Color;
+
+
+public class GMFToCSSConverter {
+
+ public static final GMFToCSSConverter instance = new GMFToCSSConverter();
+
+ private GMFToCSSConverter() {
+
+ }
+
+ public Expression convert(Color color) {
+ HexColor hexColor = getColor(color);
+ return getExpression(hexColor);
+ }
+
+ private HexColor getColor(Color color) {
+ HexColor hexColor = CssFactory.eINSTANCE.createHexColor();
+
+ String hexString = twoDigitsHexString(color.getRed()) + twoDigitsHexString(color.getGreen()) + twoDigitsHexString(color.getBlue());
+ hexColor.setValue(hexString.toUpperCase());
+ return hexColor;
+ }
+
+ private HexColor getColor(int color) {
+ return getColor(FigureUtilities.integerToColor(color));
+ }
+
+ private String twoDigitsHexString(int color) {
+ String hexString = Integer.toHexString(color);
+ if(hexString.length() < 2) {
+ hexString = "0" + hexString;
+ }
+ return hexString;
+ }
+
+ public Expression convert(GradientData gradient) {
+ if(gradient == null) {
+ Name noGradient = CssFactory.eINSTANCE.createName();
+ noGradient.setValue("none");
+ return getExpression(noGradient);
+ }
+
+ HexColor gradientColor = getColor(gradient.getGradientColor1());
+
+ Name gradientStyle = CssFactory.eINSTANCE.createName();
+ int style = gradient.getGradientStyle();
+
+ if(style == GradientStyle.HORIZONTAL) {
+ gradientStyle.setValue("horizontal");
+ } else {
+ gradientStyle.setValue("vertical");
+ }
+
+ return getExpression(gradientColor, gradientStyle);
+ }
+
+ public Expression convert(String string) {
+ StringValue stringValue = CssFactory.eINSTANCE.createStringValue();
+ stringValue.setValue(string);
+ return getExpression(stringValue);
+ }
+
+ public Expression convert(Integer intValue) {
+ Number numberValue = CssFactory.eINSTANCE.createNumber();
+ numberValue.setValue(Integer.toString(Math.abs(intValue)));
+ if(intValue < 0) {
+ UnaryOperator operator = CssFactory.eINSTANCE.createUnaryOperator();
+ operator.setOperator(UNARY.NEG);
+ numberValue.setOp(operator);
+ }
+
+ return getExpression(numberValue);
+ }
+
+ public Expression convert(Enumerator enumerated) {
+ Name literalValue = CssFactory.eINSTANCE.createName();
+
+ literalValue.setValue(enumerated.getName());
+
+ return getExpression(literalValue);
+ }
+
+ private Expression getExpression(Term... values) {
+ if(values.length == 0) {
+ throw new IllegalArgumentException("An expression must contain at least one value");
+ }
+
+ Expression result = CssFactory.eINSTANCE.createExpression();
+ result.setTerms(values[0]);
+
+ for(int i = 1; i < values.length; i++) {
+ Subterm subterm = CssFactory.eINSTANCE.createSubterm();
+ subterm.setTerm(values[i]);
+ result.getSubterms().add(subterm);
+ }
+
+ return result;
+ }
+
+ public Expression convert(boolean booleanValue) {
+ Name nameValue = CssFactory.eINSTANCE.createName();
+ nameValue.setValue(booleanValue ? "true" : "false");
+ return getExpression(nameValue);
+ }
+}
diff --git a/incoming/org.eclipse.papyrus.infra.gmfdiag.css.configuration/src/org/eclipse/papyrus/infra/gmfdiag/css/configuration/handler/StyleCreationDialog.java b/incoming/org.eclipse.papyrus.infra.gmfdiag.css.configuration/src/org/eclipse/papyrus/infra/gmfdiag/css/configuration/handler/StyleCreationDialog.java new file mode 100644 index 00000000000..5a0eda76c54 --- /dev/null +++ b/incoming/org.eclipse.papyrus.infra.gmfdiag.css.configuration/src/org/eclipse/papyrus/infra/gmfdiag/css/configuration/handler/StyleCreationDialog.java @@ -0,0 +1,393 @@ +/*****************************************************************************
+ * 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
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
+ *****************************************************************************/
+package org.eclipse.papyrus.infra.gmfdiag.css.configuration.handler;
+
+import java.util.Map;
+
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.TrayDialog;
+import org.eclipse.jface.viewers.ILabelProvider;
+import org.eclipse.jface.viewers.LabelProvider;
+import org.eclipse.papyrus.infra.gmfdiag.css.Attribute;
+import org.eclipse.papyrus.infra.gmfdiag.css.Declaration;
+import org.eclipse.papyrus.infra.gmfdiag.css.Expression;
+import org.eclipse.papyrus.infra.gmfdiag.css.HexColor;
+import org.eclipse.papyrus.infra.gmfdiag.css.Name;
+import org.eclipse.papyrus.infra.gmfdiag.css.Number;
+import org.eclipse.papyrus.infra.gmfdiag.css.SelectorCondition;
+import org.eclipse.papyrus.infra.gmfdiag.css.StringValue;
+import org.eclipse.papyrus.infra.gmfdiag.css.Subterm;
+import org.eclipse.papyrus.infra.gmfdiag.css.Term;
+import org.eclipse.papyrus.infra.gmfdiag.css.properties.provider.CSSStyleSheetContentProvider;
+import org.eclipse.papyrus.infra.gmfdiag.css.properties.provider.CSSStyleSheetLabelProvider;
+import org.eclipse.papyrus.infra.gmfdiag.css.stylesheets.EmbeddedStyleSheet;
+import org.eclipse.papyrus.infra.gmfdiag.css.stylesheets.StyleSheet;
+import org.eclipse.papyrus.infra.gmfdiag.css.stylesheets.StyleSheetReference;
+import org.eclipse.papyrus.infra.gmfdiag.css.stylesheets.StylesheetsFactory;
+import org.eclipse.papyrus.infra.gmfdiag.css.util.CssSwitch;
+import org.eclipse.papyrus.infra.widgets.editors.AbstractEditor;
+import org.eclipse.papyrus.infra.widgets.editors.BooleanCheckbox;
+import org.eclipse.papyrus.infra.widgets.editors.EnumRadio;
+import org.eclipse.papyrus.infra.widgets.editors.ICommitListener;
+import org.eclipse.papyrus.infra.widgets.editors.ReferenceDialog;
+import org.eclipse.papyrus.infra.widgets.editors.StringEditor;
+import org.eclipse.papyrus.infra.widgets.editors.StringFileSelector;
+import org.eclipse.papyrus.infra.widgets.providers.StaticContentProvider;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.custom.CTabFolder;
+import org.eclipse.swt.custom.CTabItem;
+import org.eclipse.swt.layout.GridData;
+import org.eclipse.swt.layout.GridLayout;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Label;
+import org.eclipse.swt.widgets.Shell;
+
+
+public class StyleCreationDialog extends TrayDialog {
+
+ private final Map<SelectorCondition, Boolean> conditions;
+
+ private final Map<Declaration, Boolean> declarations;
+
+ private final String selectorName;
+
+ private boolean useSelectorName = true;
+
+ private boolean diagramRestriction = false;
+
+ private String cssClass;
+
+ private View contextView;
+
+ private StyleSheet stylesheet;
+
+ /**
+ *
+ * @param shell
+ * @param conditions
+ * inout
+ * @param declarations
+ * inout
+ * @param selectorName
+ */
+ public StyleCreationDialog(Shell shell, Map<SelectorCondition, Boolean> conditions, Map<Declaration, Boolean> declarations, String selectorName, View context) {
+ super(shell);
+ this.conditions = conditions;
+ this.declarations = declarations;
+ this.selectorName = selectorName;
+ this.contextView = context;
+ }
+
+ @Override
+ public void create() {
+ super.create();
+ Composite parent = getDialogArea();
+
+ CTabFolder tabFolder = new CTabFolder(parent, SWT.BORDER);
+ tabFolder.setLayoutData(new GridData(GridData.FILL_BOTH));
+
+ CTabItem conditionsTab = new CTabItem(tabFolder, SWT.NONE);
+ CTabItem declarationsTab = new CTabItem(tabFolder, SWT.NONE);
+ CTabItem stylesheetTab = new CTabItem(tabFolder, SWT.NONE);
+
+ conditionsTab.setText("Conditions");
+ declarationsTab.setText("Properties");
+ stylesheetTab.setText("Stylesheet");
+
+ Composite conditionsContainer = new Composite(tabFolder, SWT.NONE);
+ conditionsContainer.setLayoutData(new GridData(SWT.BEGINNING, SWT.BEGINNING, true, true));
+ conditionsContainer.setBackground(parent.getDisplay().getSystemColor(SWT.COLOR_WHITE));
+ conditionsContainer.setBackgroundMode(SWT.INHERIT_DEFAULT);
+
+ conditionsTab.setControl(conditionsContainer);
+
+ Composite declarationsContainer = new Composite(tabFolder, SWT.NONE);
+ declarationsContainer.setLayoutData(new GridData(SWT.BEGINNING, SWT.BEGINNING, true, true));
+ declarationsContainer.setBackground(parent.getDisplay().getSystemColor(SWT.COLOR_WHITE));
+ declarationsContainer.setBackgroundMode(SWT.INHERIT_DEFAULT);
+
+ declarationsTab.setControl(declarationsContainer);
+
+ Composite stylesheetContainer = new Composite(tabFolder, SWT.NONE);
+ stylesheetContainer.setLayoutData(new GridData(SWT.BEGINNING, SWT.BEGINNING, true, true));
+ stylesheetContainer.setBackground(parent.getDisplay().getSystemColor(SWT.COLOR_WHITE));
+ stylesheetContainer.setBackgroundMode(SWT.INHERIT_DEFAULT);
+
+ stylesheetTab.setControl(stylesheetContainer);
+
+ createConditions(conditionsContainer);
+ createDeclarations(declarationsContainer);
+ createStylesheet(stylesheetContainer);
+
+ getShell().setText("New Style");
+ getShell().pack();
+ }
+
+ protected void createConditions(Composite parent) {
+ parent.setLayout(new GridLayout(3, false));
+
+ Label conditionsLabel = new Label(parent, SWT.WRAP);
+ conditionsLabel.setText("Select the condition(s) under which the style will be applied.");
+ conditionsLabel.setLayoutData(new GridData(SWT.FILL, SWT.BEGINNING, true, false, 3, 1));
+
+ createElementNameSection(parent);
+ createAttributeSelectorsSection(parent);
+ createStyleNameSection(parent);
+ }
+
+ protected void createElementNameSection(Composite parent) {
+ EnumRadio diagramRestrictionWidget = new EnumRadio(parent, SWT.NONE, "Diagram:");
+ diagramRestrictionWidget.setLayoutData(new GridData(SWT.FILL, SWT.BEGINNING, true, false, 3, 1));
+
+ ILabelProvider labelProvider = new LabelProvider() {
+
+ @Override
+ public String getText(Object element) {
+ Boolean value = (Boolean)element;
+ return value ? contextView.getDiagram().getType() + " only" : "Any diagram";
+ }
+ };
+
+ diagramRestrictionWidget.setProviders(new StaticContentProvider(new Boolean[]{ true, false }), labelProvider);
+ diagramRestrictionWidget.setValue(this.diagramRestriction);
+ diagramRestrictionWidget.addCommitListener(new ICommitListener() {
+
+ public void commit(AbstractEditor editor) {
+ diagramRestriction = (Boolean)((EnumRadio)editor).getValue();
+ }
+ });
+
+ EnumRadio selectorNameWidget = new EnumRadio(parent, SWT.NONE, "Applies to:");
+ selectorNameWidget.setLayoutData(new GridData(SWT.FILL, SWT.BEGINNING, true, false, 3, 1));
+
+ labelProvider = new LabelProvider() {
+
+ @Override
+ public String getText(Object element) {
+ Boolean value = (Boolean)element;
+ return value ? selectorName + " only" : "Any kind of element";
+ }
+ };
+
+ selectorNameWidget.setProviders(new StaticContentProvider(new Boolean[]{ true, false }), labelProvider);
+ selectorNameWidget.setValue(this.useSelectorName);
+ selectorNameWidget.addCommitListener(new ICommitListener() {
+
+ public void commit(AbstractEditor editor) {
+ useSelectorName = (Boolean)((EnumRadio)editor).getValue();
+ }
+ });
+ }
+
+ protected void createAttributeSelectorsSection(Composite parent) {
+ if(conditions.isEmpty()) {
+ return;
+ }
+
+ Label detailLabel = new Label(parent, SWT.NONE);
+ detailLabel.setText("If the following properties are matched:");
+ detailLabel.setLayoutData(new GridData(SWT.FILL, SWT.BEGINNING, true, false, 3, 1));
+
+ for(SelectorCondition condition : conditions.keySet()) {
+ final Attribute currentCondition = (Attribute)condition;
+
+ String attributeLabel = currentCondition.getName();
+ if(currentCondition.getValue() != null) {
+ attributeLabel += " " + currentCondition.getValue().getOperator() + " " + currentCondition.getValue().getValue();
+ }
+
+ BooleanCheckbox checkbox = new BooleanCheckbox(parent, SWT.NONE, attributeLabel);
+ checkbox.setValue(conditions.get(currentCondition));
+
+ checkbox.addCommitListener(new ICommitListener() {
+
+ public void commit(AbstractEditor editor) {
+ conditions.put(currentCondition, ((BooleanCheckbox)editor).getValue());
+ }
+ });
+ }
+ }
+
+ protected void createStyleNameSection(Composite parent) {
+ Label styleNameLabel = new Label(parent, SWT.WRAP);
+
+ String label = "If a name is used for this style, it will have to be applied manually:";
+
+ styleNameLabel.setText(label);
+ styleNameLabel.setLayoutData(new GridData(SWT.FILL, SWT.BEGINNING, true, false, 3, 1));
+
+ StringEditor styleNameEditor = new StringEditor(parent, SWT.NONE, "Style name:");
+ styleNameEditor.setLayoutData(new GridData(SWT.FILL, SWT.BEGINNING, true, false, 3, 1));
+ // styleNameEditor.setToolTipText(label);
+ styleNameEditor.addCommitListener(new ICommitListener() {
+
+ public void commit(AbstractEditor editor) {
+ cssClass = (String)((StringEditor)editor).getValue();
+ }
+
+ });
+ }
+
+ protected void createDeclarations(Composite parent) {
+ parent.setLayout(new GridLayout(3, false));
+ // parent.setLayout(new FillLayout());
+
+ Label declarationsLabel = new Label(parent, SWT.WRAP);
+ declarationsLabel.setText("Select the properties you want to set. Unchecked properties will keep their default value (Which might be inherited from another style).");
+ declarationsLabel.setLayoutData(new GridData(SWT.FILL, SWT.BEGINNING, true, false, 3, 1));
+
+ for(Declaration declaration : declarations.keySet()) {
+ String label = declaration.getProperty() + ": " + getLabel(declaration.getExpression());
+ BooleanCheckbox checkbox = new BooleanCheckbox(parent, SWT.NONE, label);
+ checkbox.setValue(declarations.get(declaration));
+
+ final Declaration currentDeclaration = declaration;
+ checkbox.addCommitListener(new ICommitListener() {
+
+ public void commit(AbstractEditor editor) {
+ declarations.put(currentDeclaration, ((BooleanCheckbox)editor).getValue());
+ }
+ });
+ }
+ }
+
+ protected void createStylesheet(Composite parent) {
+ //TODO: Use a preference to remember the last edited Stylesheet (Per model? Diagram? Workspace? With user choice?)
+
+ parent.setLayout(new GridLayout(1, false));
+
+ //Create or use an existing External Stylesheet
+ StringFileSelector externalStylesheet = new StringFileSelector(parent, SWT.NONE);
+ externalStylesheet.setAllowFileSystem(false);
+ externalStylesheet.setLabel("External stylesheet:");
+ externalStylesheet.setToolTipText("Create or use an existing external CSS Stylesheet");
+ externalStylesheet.setLayoutData(new GridData(SWT.FILL, SWT.BEGINNING, true, false));
+ externalStylesheet.addCommitListener(new ICommitListener() {
+
+ public void commit(AbstractEditor editor) {
+ String path = (String)((StringEditor)editor).getValue();
+ StyleSheetReference stylesheetReference = StylesheetsFactory.eINSTANCE.createStyleSheetReference();
+ stylesheetReference.setPath(path);
+ stylesheet = stylesheetReference;
+ }
+ });
+
+ Label orLabel = new Label(parent, SWT.NONE);
+ orLabel.setText("-- OR --");
+
+ //Create a new Embedded Stylesheet
+ StringEditor embeddedStylesheet = new StringEditor(parent, SWT.NONE);
+ embeddedStylesheet.setLabel("New local stylesheet:");
+ embeddedStylesheet.setToolTipText("Create a new local stylesheet. The stylesheet will be embedded in the current model. Unsupported yet");
+ embeddedStylesheet.setReadOnly(true);
+ embeddedStylesheet.setLayoutData(new GridData(SWT.FILL, SWT.BEGINNING, true, false));
+ embeddedStylesheet.addCommitListener(new ICommitListener() {
+
+ public void commit(AbstractEditor editor) {
+ String name = (String)((StringEditor)editor).getValue();
+ EmbeddedStyleSheet embeddedStylesheet = StylesheetsFactory.eINSTANCE.createEmbeddedStyleSheet();
+ embeddedStylesheet.setLabel(name);
+ stylesheet = embeddedStylesheet;
+ }
+ });
+
+ orLabel = new Label(parent, SWT.NONE);
+ orLabel.setText("-- OR --");
+
+ //Use an existing applied stylesheet (Either Reference or Embedded)
+ ReferenceDialog appliedStylesheet = new ReferenceDialog(parent, SWT.NONE);
+ appliedStylesheet.setLabel("Applied stylesheet:");
+ appliedStylesheet.setToolTipText("Use an existing stylesheet, from the stylesheets applied to the current model");
+ appliedStylesheet.setLayoutData(new GridData(SWT.FILL, SWT.BEGINNING, true, false));
+ appliedStylesheet.setContentProvider(new CSSStyleSheetContentProvider(contextView));
+ appliedStylesheet.setLabelProvider(new CSSStyleSheetLabelProvider());
+ appliedStylesheet.addCommitListener(new ICommitListener() {
+
+ public void commit(AbstractEditor editor) {
+ StyleSheet value = (StyleSheet)((ReferenceDialog)editor).getValue();
+ stylesheet = value;
+ }
+ });
+
+ }
+
+ public String getCSSClass() {
+ if(cssClass != null) {
+ return cssClass.trim().equals("") ? null : cssClass.trim();
+ }
+ return null;
+ }
+
+ protected String getLabel(Expression expression) {
+ String label = getLabel(expression.getTerms());
+ for(Subterm subTerm : expression.getSubterms()) {
+ if(subTerm.getOperator() != null) {
+ label += subTerm.getOperator();
+ }
+ label += " " + getLabel(subTerm.getTerm());
+ }
+ return label;
+ }
+
+ protected String getLabel(Term term) {
+ return (new CssSwitch<String>() {
+
+ @Override
+ public String caseHexColor(HexColor term) {
+ return '#' + term.getValue();
+ }
+
+ @Override
+ public String caseName(Name term) {
+ return term.getValue();
+ }
+
+ @Override
+ public String caseStringValue(StringValue term) {
+ return "\"" + term.getValue() + "\"";
+ }
+
+ @Override
+ public String caseNumber(Number term) {
+ String label = "";
+ if(term.getOp() != null) {
+ label += term.getOp().getOperator();
+ }
+ label += term.getValue();
+ return label;
+ }
+ }).doSwitch(term);
+ }
+
+ public StyleSheet getStylesheet() {
+ return stylesheet;
+ }
+
+ @Override
+ protected boolean isResizable() {
+ return true;
+ }
+
+ @Override
+ public Composite getDialogArea() {
+ return (Composite)super.getDialogArea();
+ }
+
+ public boolean useSelectorName() {
+ return useSelectorName;
+ }
+
+ public boolean getDiagramRestriction() {
+ return diagramRestriction;
+ }
+
+}
diff --git a/incoming/org.eclipse.papyrus.infra.gmfdiag.css.model/.project b/incoming/org.eclipse.papyrus.infra.gmfdiag.css.model/.project index e15ced466a0..f2b2ef7edf2 100644 --- a/incoming/org.eclipse.papyrus.infra.gmfdiag.css.model/.project +++ b/incoming/org.eclipse.papyrus.infra.gmfdiag.css.model/.project @@ -20,11 +20,11 @@ <arguments>
</arguments>
</buildCommand>
- <buildCommand>
- <name>org.eclipse.emf.facet.common.core.builder</name>
- <arguments>
- </arguments>
- </buildCommand>
+<!-- <buildCommand> -->
+<!-- <name>org.eclipse.emf.facet.common.core.builder</name> -->
+<!-- <arguments> -->
+<!-- </arguments> -->
+<!-- </buildCommand> -->
</buildSpec>
<natures>
<nature>org.eclipse.pde.PluginNature</nature>
diff --git a/incoming/org.eclipse.papyrus.infra.gmfdiag.css.properties/META-INF/MANIFEST.MF b/incoming/org.eclipse.papyrus.infra.gmfdiag.css.properties/META-INF/MANIFEST.MF index 8f223fdf033..f861799c0cd 100644 --- a/incoming/org.eclipse.papyrus.infra.gmfdiag.css.properties/META-INF/MANIFEST.MF +++ b/incoming/org.eclipse.papyrus.infra.gmfdiag.css.properties/META-INF/MANIFEST.MF @@ -25,3 +25,6 @@ Require-Bundle: org.eclipse.ui, org.eclipse.papyrus.infra.gmfdiag.css.model;bundle-version="0.9.0" Bundle-RequiredExecutionEnvironment: J2SE-1.5 Bundle-ActivationPolicy: lazy +Export-Package: org.eclipse.papyrus.infra.gmfdiag.css.properties.creation, + org.eclipse.papyrus.infra.gmfdiag.css.properties.databinding, + org.eclipse.papyrus.infra.gmfdiag.css.properties.provider diff --git a/incoming/org.eclipse.papyrus.infra.gmfdiag.css.properties/icons/sourceEditor.gif b/incoming/org.eclipse.papyrus.infra.gmfdiag.css.properties/icons/sourceEditor.gif Binary files differnew file mode 100644 index 00000000000..75ebdb85865 --- /dev/null +++ b/incoming/org.eclipse.papyrus.infra.gmfdiag.css.properties/icons/sourceEditor.gif diff --git a/incoming/org.eclipse.papyrus.infra.gmfdiag.css.properties/plugin.xml b/incoming/org.eclipse.papyrus.infra.gmfdiag.css.properties/plugin.xml index 448f5a2791e..651d763f968 100644 --- a/incoming/org.eclipse.papyrus.infra.gmfdiag.css.properties/plugin.xml +++ b/incoming/org.eclipse.papyrus.infra.gmfdiag.css.properties/plugin.xml @@ -4,8 +4,7 @@ <extension
point="org.eclipse.papyrus.views.properties.context">
<context
- contextModel="model/properties/css.ctx"
- loadDefault="true">
+ contextModel="model/properties/css.ctx">
</context>
</extension>
<extension
diff --git a/incoming/org.eclipse.papyrus.infra.gmfdiag.css.properties/src/org/eclipse/papyrus/infra/gmfdiag/css/properties/modelelement/CSSModelElement.java b/incoming/org.eclipse.papyrus.infra.gmfdiag.css.properties/src/org/eclipse/papyrus/infra/gmfdiag/css/properties/modelelement/CSSModelElement.java index 518ac583d3b..d40e6d8099f 100644 --- a/incoming/org.eclipse.papyrus.infra.gmfdiag.css.properties/src/org/eclipse/papyrus/infra/gmfdiag/css/properties/modelelement/CSSModelElement.java +++ b/incoming/org.eclipse.papyrus.infra.gmfdiag.css.properties/src/org/eclipse/papyrus/infra/gmfdiag/css/properties/modelelement/CSSModelElement.java @@ -12,16 +12,21 @@ package org.eclipse.papyrus.infra.gmfdiag.css.properties.modelelement;
import org.eclipse.core.databinding.observable.IObservable;
+import org.eclipse.emf.ecore.EObject;
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.CSSDiagramImpl;
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;
import org.eclipse.papyrus.infra.gmfdiag.css.properties.provider.CSSStyleSheetLabelProvider;
+import org.eclipse.papyrus.infra.gmfdiag.css.provider.CSSClassContentProvider;
import org.eclipse.papyrus.infra.gmfdiag.properties.modelelement.CustomStyleModelElement;
import org.eclipse.papyrus.infra.widgets.creation.ReferenceValueFactory;
+import org.eclipse.papyrus.infra.widgets.creation.StringEditionFactory;
import org.eclipse.papyrus.infra.widgets.providers.IStaticContentProvider;
import org.eclipse.papyrus.views.properties.contexts.DataContextElement;
@@ -41,6 +46,11 @@ public class CSSModelElement extends CustomStyleModelElement { if(CSSAnnotations.CSS_DIAGRAM_STYLESHEETS_KEY.equals(propertyPath)) {
return new StyleSheetFactory((View)this.source);
}
+ if(CSSAnnotations.CSS_GMF_CLASS_KEY.equals(propertyPath)) {
+ StringEditionFactory factory = new StringEditionFactory();
+ factory.setContentProvider(getContentProvider(propertyPath));
+ return factory;
+ }
return super.getValueFactory(propertyPath);
}
@@ -63,7 +73,28 @@ public class CSSModelElement extends CustomStyleModelElement { @Override
public IStaticContentProvider getContentProvider(String propertyPath) {
- return new CSSStyleSheetContentProvider(source);
+ if(propertyPath.equals(CSSAnnotations.CSS_DIAGRAM_STYLESHEETS_KEY)) {
+ return new CSSStyleSheetContentProvider(source);
+ }
+
+ if(propertyPath.equals(CSSAnnotations.CSS_GMF_CLASS_KEY)) {
+ Diagram diagram = ((View)source).getDiagram();
+ if(diagram instanceof CSSDiagramImpl) {
+
+ EObject semanticElement = ((View)source).getElement();
+
+ if(semanticElement != null) {
+ //TODO: For Diagrams, we should use the right DiagramKind (See GMFElementAdapter)
+ //Until then, we list all available classes (*)
+ String elementName = source instanceof Diagram ? "*" : semanticElement.eClass().getName();
+ return new CSSClassContentProvider(elementName, ((CSSDiagramImpl)diagram).getEngine());
+ }
+ }
+
+ return null;
+ }
+
+ return null;
}
}
diff --git a/incoming/org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/.classpath b/incoming/org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/.classpath new file mode 100644 index 00000000000..e5fbd3dd27a --- /dev/null +++ b/incoming/org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/.classpath @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="src" path="src-gen"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
diff --git a/incoming/org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/.project b/incoming/org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/.project new file mode 100644 index 00000000000..5b041d73e14 --- /dev/null +++ b/incoming/org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/.project @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.ManifestBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.SchemaBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ </natures>
+</projectDescription>
diff --git a/incoming/org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/META-INF/MANIFEST.MF b/incoming/org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/META-INF/MANIFEST.MF new file mode 100644 index 00000000000..bd1fb04c3e3 --- /dev/null +++ b/incoming/org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/META-INF/MANIFEST.MF @@ -0,0 +1,25 @@ +Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui
+Bundle-Vendor: My Company
+Bundle-Version: 1.0.0
+Bundle-SymbolicName: org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui; singleton:=true
+Bundle-ActivationPolicy: lazy
+Require-Bundle: org.eclipse.papyrus.infra.gmfdiag.css.xtext;visibility:=reexport,
+ org.eclipse.xtext.ui,
+ org.eclipse.ui.editors;bundle-version="3.5.0",
+ org.eclipse.ui.ide;bundle-version="3.5.0",
+ org.eclipse.xtext.ui.shared,
+ org.eclipse.ui,
+ org.eclipse.xtext.builder,
+ org.antlr.runtime,
+ org.eclipse.xtext.common.types.ui,
+ org.eclipse.xtext.ui.codetemplates.ui,
+ org.eclipse.compare
+Import-Package: org.apache.log4j,
+ org.apache.commons.logging
+Bundle-RequiredExecutionEnvironment: J2SE-1.5
+Export-Package: org.eclipse.papyrus.infra.gmfdiag.ui.contentassist,
+ org.eclipse.papyrus.infra.gmfdiag.ui.contentassist.antlr,
+ org.eclipse.papyrus.infra.gmfdiag.ui.internal
+Bundle-Activator: org.eclipse.papyrus.infra.gmfdiag.ui.internal.CSSActivator
diff --git a/incoming/org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/build.properties b/incoming/org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/build.properties new file mode 100644 index 00000000000..e10dcceb6a3 --- /dev/null +++ b/incoming/org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/build.properties @@ -0,0 +1,5 @@ +source.. = src/,\ + src-gen/ +bin.includes = META-INF/,\ + .,\ + plugin.xml
\ No newline at end of file diff --git a/incoming/org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/icons/sourceEditor.gif b/incoming/org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/icons/sourceEditor.gif Binary files differnew file mode 100644 index 00000000000..75ebdb85865 --- /dev/null +++ b/incoming/org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/icons/sourceEditor.gif diff --git a/incoming/org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/plugin.xml b/incoming/org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/plugin.xml new file mode 100644 index 00000000000..0394a39dd99 --- /dev/null +++ b/incoming/org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/plugin.xml @@ -0,0 +1,277 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?eclipse version="3.0"?> + +<plugin> + + <extension + point="org.eclipse.ui.editors"> + <editor + class="org.eclipse.papyrus.infra.gmfdiag.ui.CSSExecutableExtensionFactory:org.eclipse.xtext.ui.editor.XtextEditor" + contributorClass="org.eclipse.ui.editors.text.TextEditorActionContributor" + default="true" + icon="icons/sourceEditor.gif" + id="org.eclipse.papyrus.infra.gmfdiag.CSS" + name="Papyrus CSS Editor"> + <contentTypeBinding + contentTypeId="org.eclipse.wst.css.core.csssource"> + </contentTypeBinding> + </editor> + </extension> + <extension + point="org.eclipse.ui.handlers"> + <handler + class="org.eclipse.papyrus.infra.gmfdiag.ui.CSSExecutableExtensionFactory:org.eclipse.xtext.ui.editor.hyperlinking.OpenDeclarationHandler" + commandId="org.eclipse.xtext.ui.editor.hyperlinking.OpenDeclaration"> + <activeWhen> + <reference + definitionId="org.eclipse.papyrus.infra.gmfdiag.CSS.Editor.opened"> + </reference> + </activeWhen> + </handler> + <handler + class="org.eclipse.papyrus.infra.gmfdiag.ui.CSSExecutableExtensionFactory:org.eclipse.xtext.ui.editor.handler.ValidateActionHandler" + commandId="org.eclipse.papyrus.infra.gmfdiag.CSS.validate"> + <activeWhen> + <reference + definitionId="org.eclipse.papyrus.infra.gmfdiag.CSS.Editor.opened"> + </reference> + </activeWhen> + </handler> + </extension> + <extension point="org.eclipse.core.expressions.definitions"> + <definition id="org.eclipse.papyrus.infra.gmfdiag.CSS.Editor.opened"> + <and> + <reference definitionId="isActiveEditorAnInstanceOfXtextEditor"/> + <with variable="activeEditor"> + <test property="org.eclipse.xtext.ui.editor.XtextEditor.languageName" + value="org.eclipse.papyrus.infra.gmfdiag.CSS" + forcePluginActivation="true"/> + </with> + </and> + </definition> + </extension> + <extension + point="org.eclipse.ui.preferencePages"> + <page + class="org.eclipse.papyrus.infra.gmfdiag.ui.CSSExecutableExtensionFactory:org.eclipse.xtext.ui.editor.preferences.LanguageRootPreferencePage" + id="org.eclipse.papyrus.infra.gmfdiag.CSS" + name="CSS"> + <keywordReference id="org.eclipse.papyrus.infra.gmfdiag.ui.keyword_CSS"/> + </page> + <page + category="org.eclipse.papyrus.infra.gmfdiag.CSS" + class="org.eclipse.papyrus.infra.gmfdiag.ui.CSSExecutableExtensionFactory:org.eclipse.xtext.ui.editor.syntaxcoloring.SyntaxColoringPreferencePage" + id="org.eclipse.papyrus.infra.gmfdiag.CSS.coloring" + name="Syntax Coloring"> + <keywordReference id="org.eclipse.papyrus.infra.gmfdiag.ui.keyword_CSS"/> + </page> + <page + category="org.eclipse.papyrus.infra.gmfdiag.CSS" + class="org.eclipse.papyrus.infra.gmfdiag.ui.CSSExecutableExtensionFactory:org.eclipse.xtext.ui.editor.templates.XtextTemplatePreferencePage" + id="org.eclipse.papyrus.infra.gmfdiag.CSS.templates" + name="Templates"> + <keywordReference id="org.eclipse.papyrus.infra.gmfdiag.ui.keyword_CSS"/> + </page> + </extension> + <extension + point="org.eclipse.ui.propertyPages"> + <page + class="org.eclipse.papyrus.infra.gmfdiag.ui.CSSExecutableExtensionFactory:org.eclipse.xtext.ui.editor.preferences.LanguageRootPreferencePage" + id="org.eclipse.papyrus.infra.gmfdiag.CSS" + name="CSS"> + <keywordReference id="org.eclipse.papyrus.infra.gmfdiag.ui.keyword_CSS"/> + <enabledWhen> + <adapt type="org.eclipse.core.resources.IProject"/> + </enabledWhen> + <filter name="projectNature" value="org.eclipse.xtext.ui.shared.xtextNature"/> + </page> + </extension> + <extension + point="org.eclipse.ui.keywords"> + <keyword + id="org.eclipse.papyrus.infra.gmfdiag.ui.keyword_CSS" + label="CSS"/> + </extension> + <extension + point="org.eclipse.ui.commands"> + <command + description="Trigger expensive validation" + id="org.eclipse.papyrus.infra.gmfdiag.CSS.validate" + name="Validate"> + </command> + </extension> + <extension point="org.eclipse.ui.menus"> + <menuContribution + locationURI="popup:#TextEditorContext?after=group.edit"> + <command + commandId="org.eclipse.papyrus.infra.gmfdiag.CSS.validate" + style="push" + tooltip="Trigger expensive validation"> + <visibleWhen checkEnabled="false"> + <reference + definitionId="org.eclipse.papyrus.infra.gmfdiag.CSS.Editor.opened"> + </reference> + </visibleWhen> + </command> + </menuContribution> + </extension> + <extension point="org.eclipse.ui.menus"> + <menuContribution locationURI="popup:#TextEditorContext?endof=group.find"> + <command commandId="org.eclipse.xtext.ui.editor.FindReferences"> + <visibleWhen checkEnabled="false"> + <reference definitionId="org.eclipse.papyrus.infra.gmfdiag.CSS.Editor.opened"> + </reference> + </visibleWhen> + </command> + </menuContribution> + </extension> + <extension point="org.eclipse.ui.handlers"> + <handler + class="org.eclipse.papyrus.infra.gmfdiag.ui.CSSExecutableExtensionFactory:org.eclipse.xtext.ui.editor.findrefs.FindReferencesHandler" + commandId="org.eclipse.xtext.ui.editor.FindReferences"> + <activeWhen> + <reference + definitionId="org.eclipse.papyrus.infra.gmfdiag.CSS.Editor.opened"> + </reference> + </activeWhen> + </handler> + </extension> + +<!-- adding resource factories --> + + <extension + point="org.eclipse.emf.ecore.extension_parser"> + <parser + class="org.eclipse.papyrus.infra.gmfdiag.ui.CSSExecutableExtensionFactory:org.eclipse.xtext.resource.IResourceFactory" + type="css"> + </parser> + </extension> + <extension point="org.eclipse.xtext.extension_resourceServiceProvider"> + <resourceServiceProvider + class="org.eclipse.papyrus.infra.gmfdiag.ui.CSSExecutableExtensionFactory:org.eclipse.xtext.ui.resource.IResourceUIServiceProvider" + uriExtension="css"> + </resourceServiceProvider> + </extension> + + + + <extension + point="org.eclipse.xtext.builder.participant"> + <participant + class="org.eclipse.papyrus.infra.gmfdiag.ui.CSSExecutableExtensionFactory:org.eclipse.xtext.builder.IXtextBuilderParticipant"> + </participant> + </extension> + <extension + point="org.eclipse.ui.preferencePages"> + <page + category="org.eclipse.papyrus.infra.gmfdiag.CSS" + class="org.eclipse.papyrus.infra.gmfdiag.ui.CSSExecutableExtensionFactory:org.eclipse.xtext.builder.preferences.BuilderPreferencePage" + id="org.eclipse.papyrus.infra.gmfdiag.CSS.compiler.preferencePage" + name="Compiler"> + <keywordReference id="org.eclipse.papyrus.infra.gmfdiag.ui.keyword_CSS"/> + </page> + </extension> + <extension + point="org.eclipse.ui.propertyPages"> + <page + category="org.eclipse.papyrus.infra.gmfdiag.CSS" + class="org.eclipse.papyrus.infra.gmfdiag.ui.CSSExecutableExtensionFactory:org.eclipse.xtext.builder.preferences.BuilderPreferencePage" + id="org.eclipse.papyrus.infra.gmfdiag.CSS.compiler.propertyPage" + name="Compiler"> + <keywordReference id="org.eclipse.papyrus.infra.gmfdiag.ui.keyword_CSS"/> + <enabledWhen> + <adapt type="org.eclipse.core.resources.IProject"/> + </enabledWhen> + <filter name="projectNature" value="org.eclipse.xtext.ui.shared.xtextNature"/> + </page> + </extension> + + <!-- Quick Outline --> + <extension + point="org.eclipse.ui.handlers"> + <handler + class="org.eclipse.papyrus.infra.gmfdiag.ui.CSSExecutableExtensionFactory:org.eclipse.xtext.ui.editor.outline.quickoutline.ShowQuickOutlineActionHandler" + commandId="org.eclipse.xtext.ui.editor.outline.QuickOutline"> + <activeWhen> + <reference + definitionId="org.eclipse.papyrus.infra.gmfdiag.CSS.Editor.opened"> + </reference> + </activeWhen> + </handler> + </extension> + <extension + point="org.eclipse.ui.commands"> + <command + description="Open the quick outline." + id="org.eclipse.xtext.ui.editor.outline.QuickOutline" + name="Quick Outline"> + </command> + </extension> + <extension point="org.eclipse.ui.menus"> + <menuContribution + locationURI="popup:#TextEditorContext?after=group.open"> + <command commandId="org.eclipse.xtext.ui.editor.outline.QuickOutline" + style="push" + tooltip="Open Quick Outline"> + <visibleWhen checkEnabled="false"> + <reference definitionId="org.eclipse.papyrus.infra.gmfdiag.CSS.Editor.opened"/> + </visibleWhen> + </command> + </menuContribution> + </extension> + <!-- quickfix marker resolution generator --> + <extension + point="org.eclipse.ui.ide.markerResolution"> + <markerResolutionGenerator + class="org.eclipse.papyrus.infra.gmfdiag.ui.CSSExecutableExtensionFactory:org.eclipse.xtext.ui.editor.quickfix.MarkerResolutionGenerator"> + </markerResolutionGenerator> + </extension> + <!-- Rename Refactoring --> + <extension point="org.eclipse.ui.handlers"> + <handler + class="org.eclipse.papyrus.infra.gmfdiag.ui.CSSExecutableExtensionFactory:org.eclipse.xtext.ui.refactoring.ui.IRenameElementHandler" + commandId="org.eclipse.xtext.ui.refactoring.RenameElement"> + <activeWhen> + <reference + definitionId="org.eclipse.papyrus.infra.gmfdiag.CSS.Editor.opened"> + </reference> + </activeWhen> + </handler> + </extension> + <extension point="org.eclipse.ui.menus"> + <menuContribution + locationURI="popup:#TextEditorContext?after=group.edit"> + <command commandId="org.eclipse.xtext.ui.refactoring.RenameElement" + style="push"> + <visibleWhen checkEnabled="false"> + <reference + definitionId="org.eclipse.papyrus.infra.gmfdiag.CSS.Editor.opened"> + </reference> + </visibleWhen> + </command> + </menuContribution> + </extension> + <extension point="org.eclipse.ui.preferencePages"> + <page + category="org.eclipse.papyrus.infra.gmfdiag.CSS" + class="org.eclipse.papyrus.infra.gmfdiag.ui.CSSExecutableExtensionFactory:org.eclipse.xtext.ui.refactoring.ui.RefactoringPreferencePage" + id="org.eclipse.papyrus.infra.gmfdiag.CSS.refactoring" + name="Refactoring"> + <keywordReference id="org.eclipse.papyrus.infra.gmfdiag.ui.keyword_CSS"/> + </page> + </extension> + + <extension point="org.eclipse.compare.contentViewers"> + <viewer id="org.eclipse.papyrus.infra.gmfdiag.CSS.compare.contentViewers" + class="org.eclipse.papyrus.infra.gmfdiag.ui.CSSExecutableExtensionFactory:org.eclipse.xtext.ui.compare.InjectableViewerCreator" + extensions="css"> + </viewer> + </extension> + <extension point="org.eclipse.compare.contentMergeViewers"> + <viewer id="org.eclipse.papyrus.infra.gmfdiag.CSS.compare.contentMergeViewers" + class="org.eclipse.papyrus.infra.gmfdiag.ui.CSSExecutableExtensionFactory:org.eclipse.xtext.ui.compare.InjectableViewerCreator" + extensions="css" label="CSS Compare"> + </viewer> + </extension> + +</plugin> diff --git a/incoming/org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/plugin.xml_gen b/incoming/org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/plugin.xml_gen new file mode 100644 index 00000000000..ecd95a11843 --- /dev/null +++ b/incoming/org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/plugin.xml_gen @@ -0,0 +1,280 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?eclipse version="3.0"?> + +<plugin> + + <extension + point="org.eclipse.ui.editors"> + <editor + class="org.eclipse.papyrus.infra.gmfdiag.ui.CSSExecutableExtensionFactory:org.eclipse.xtext.ui.editor.XtextEditor" + contributorClass="org.eclipse.ui.editors.text.TextEditorActionContributor" + default="true" + extensions="css" + id="org.eclipse.papyrus.infra.gmfdiag.CSS" + name="CSS Editor"> + </editor> + </extension> + <extension + point="org.eclipse.ui.handlers"> + <handler + class="org.eclipse.papyrus.infra.gmfdiag.ui.CSSExecutableExtensionFactory:org.eclipse.xtext.ui.editor.hyperlinking.OpenDeclarationHandler" + commandId="org.eclipse.xtext.ui.editor.hyperlinking.OpenDeclaration"> + <activeWhen> + <reference + definitionId="org.eclipse.papyrus.infra.gmfdiag.CSS.Editor.opened"> + </reference> + </activeWhen> + </handler> + <handler + class="org.eclipse.papyrus.infra.gmfdiag.ui.CSSExecutableExtensionFactory:org.eclipse.xtext.ui.editor.handler.ValidateActionHandler" + commandId="org.eclipse.papyrus.infra.gmfdiag.CSS.validate"> + <activeWhen> + <reference + definitionId="org.eclipse.papyrus.infra.gmfdiag.CSS.Editor.opened"> + </reference> + </activeWhen> + </handler> + </extension> + <extension point="org.eclipse.core.expressions.definitions"> + <definition id="org.eclipse.papyrus.infra.gmfdiag.CSS.Editor.opened"> + <and> + <reference definitionId="isActiveEditorAnInstanceOfXtextEditor"/> + <with variable="activeEditor"> + <test property="org.eclipse.xtext.ui.editor.XtextEditor.languageName" + value="org.eclipse.papyrus.infra.gmfdiag.CSS" + forcePluginActivation="true"/> + </with> + </and> + </definition> + </extension> + <extension + point="org.eclipse.ui.preferencePages"> + <page + class="org.eclipse.papyrus.infra.gmfdiag.ui.CSSExecutableExtensionFactory:org.eclipse.xtext.ui.editor.preferences.LanguageRootPreferencePage" + id="org.eclipse.papyrus.infra.gmfdiag.CSS" + name="CSS"> + <keywordReference id="org.eclipse.papyrus.infra.gmfdiag.ui.keyword_CSS"/> + </page> + <page + category="org.eclipse.papyrus.infra.gmfdiag.CSS" + class="org.eclipse.papyrus.infra.gmfdiag.ui.CSSExecutableExtensionFactory:org.eclipse.xtext.ui.editor.syntaxcoloring.SyntaxColoringPreferencePage" + id="org.eclipse.papyrus.infra.gmfdiag.CSS.coloring" + name="Syntax Coloring"> + <keywordReference id="org.eclipse.papyrus.infra.gmfdiag.ui.keyword_CSS"/> + </page> + <page + category="org.eclipse.papyrus.infra.gmfdiag.CSS" + class="org.eclipse.papyrus.infra.gmfdiag.ui.CSSExecutableExtensionFactory:org.eclipse.xtext.ui.editor.templates.XtextTemplatePreferencePage" + id="org.eclipse.papyrus.infra.gmfdiag.CSS.templates" + name="Templates"> + <keywordReference id="org.eclipse.papyrus.infra.gmfdiag.ui.keyword_CSS"/> + </page> + </extension> + <extension + point="org.eclipse.ui.propertyPages"> + <page + class="org.eclipse.papyrus.infra.gmfdiag.ui.CSSExecutableExtensionFactory:org.eclipse.xtext.ui.editor.preferences.LanguageRootPreferencePage" + id="org.eclipse.papyrus.infra.gmfdiag.CSS" + name="CSS"> + <keywordReference id="org.eclipse.papyrus.infra.gmfdiag.ui.keyword_CSS"/> + <enabledWhen> + <adapt type="org.eclipse.core.resources.IProject"/> + </enabledWhen> + <filter name="projectNature" value="org.eclipse.xtext.ui.shared.xtextNature"/> + </page> + </extension> + <extension + point="org.eclipse.ui.keywords"> + <keyword + id="org.eclipse.papyrus.infra.gmfdiag.ui.keyword_CSS" + label="CSS"/> + </extension> + <extension + point="org.eclipse.ui.commands"> + <command + description="Trigger expensive validation" + id="org.eclipse.papyrus.infra.gmfdiag.CSS.validate" + name="Validate"> + </command> + </extension> + <extension point="org.eclipse.ui.menus"> + <menuContribution + locationURI="popup:#TextEditorContext?after=group.edit"> + <command + commandId="org.eclipse.papyrus.infra.gmfdiag.CSS.validate" + style="push" + tooltip="Trigger expensive validation"> + <visibleWhen checkEnabled="false"> + <reference + definitionId="org.eclipse.papyrus.infra.gmfdiag.CSS.Editor.opened"> + </reference> + </visibleWhen> + </command> + </menuContribution> + </extension> + <extension point="org.eclipse.ui.menus"> + <menuContribution locationURI="popup:#TextEditorContext?endof=group.find"> + <command commandId="org.eclipse.xtext.ui.editor.FindReferences"> + <visibleWhen checkEnabled="false"> + <reference definitionId="org.eclipse.papyrus.infra.gmfdiag.CSS.Editor.opened"> + </reference> + </visibleWhen> + </command> + </menuContribution> + </extension> + <extension point="org.eclipse.ui.handlers"> + <handler + class="org.eclipse.papyrus.infra.gmfdiag.ui.CSSExecutableExtensionFactory:org.eclipse.xtext.ui.editor.findrefs.FindReferencesHandler" + commandId="org.eclipse.xtext.ui.editor.FindReferences"> + <activeWhen> + <reference + definitionId="org.eclipse.papyrus.infra.gmfdiag.CSS.Editor.opened"> + </reference> + </activeWhen> + </handler> + </extension> + +<!-- adding resource factories --> + + <extension + point="org.eclipse.emf.ecore.extension_parser"> + <parser + class="org.eclipse.papyrus.infra.gmfdiag.ui.CSSExecutableExtensionFactory:org.eclipse.xtext.resource.IResourceFactory" + type="css"> + </parser> + </extension> + <extension point="org.eclipse.xtext.extension_resourceServiceProvider"> + <resourceServiceProvider + class="org.eclipse.papyrus.infra.gmfdiag.ui.CSSExecutableExtensionFactory:org.eclipse.xtext.ui.resource.IResourceUIServiceProvider" + uriExtension="css"> + </resourceServiceProvider> + </extension> + + + + <extension + point="org.eclipse.xtext.builder.participant"> + <participant + class="org.eclipse.papyrus.infra.gmfdiag.ui.CSSExecutableExtensionFactory:org.eclipse.xtext.builder.IXtextBuilderParticipant"> + </participant> + </extension> + <extension + point="org.eclipse.ui.preferencePages"> + <page + category="org.eclipse.papyrus.infra.gmfdiag.CSS" + class="org.eclipse.papyrus.infra.gmfdiag.ui.CSSExecutableExtensionFactory:org.eclipse.xtext.builder.preferences.BuilderPreferencePage" + id="org.eclipse.papyrus.infra.gmfdiag.CSS.compiler.preferencePage" + name="Compiler"> + <keywordReference id="org.eclipse.papyrus.infra.gmfdiag.ui.keyword_CSS"/> + </page> + </extension> + <extension + point="org.eclipse.ui.propertyPages"> + <page + category="org.eclipse.papyrus.infra.gmfdiag.CSS" + class="org.eclipse.papyrus.infra.gmfdiag.ui.CSSExecutableExtensionFactory:org.eclipse.xtext.builder.preferences.BuilderPreferencePage" + id="org.eclipse.papyrus.infra.gmfdiag.CSS.compiler.propertyPage" + name="Compiler"> + <keywordReference id="org.eclipse.papyrus.infra.gmfdiag.ui.keyword_CSS"/> + <enabledWhen> + <adapt type="org.eclipse.core.resources.IProject"/> + </enabledWhen> + <filter name="projectNature" value="org.eclipse.xtext.ui.shared.xtextNature"/> + </page> + </extension> + + <!-- Quick Outline --> + <extension + point="org.eclipse.ui.handlers"> + <handler + class="org.eclipse.papyrus.infra.gmfdiag.ui.CSSExecutableExtensionFactory:org.eclipse.xtext.ui.editor.outline.quickoutline.ShowQuickOutlineActionHandler" + commandId="org.eclipse.xtext.ui.editor.outline.QuickOutline"> + <activeWhen> + <reference + definitionId="org.eclipse.papyrus.infra.gmfdiag.CSS.Editor.opened"> + </reference> + </activeWhen> + </handler> + </extension> + <extension + point="org.eclipse.ui.commands"> + <command + description="Open the quick outline." + id="org.eclipse.xtext.ui.editor.outline.QuickOutline" + name="Quick Outline"> + </command> + </extension> + <extension point="org.eclipse.ui.menus"> + <menuContribution + locationURI="popup:#TextEditorContext?after=group.open"> + <command commandId="org.eclipse.xtext.ui.editor.outline.QuickOutline" + style="push" + tooltip="Open Quick Outline"> + <visibleWhen checkEnabled="false"> + <reference definitionId="org.eclipse.papyrus.infra.gmfdiag.CSS.Editor.opened"/> + </visibleWhen> + </command> + </menuContribution> + </extension> + <!-- quickfix marker resolution generator --> + <extension + point="org.eclipse.ui.ide.markerResolution"> + <markerResolutionGenerator + class="org.eclipse.papyrus.infra.gmfdiag.ui.CSSExecutableExtensionFactory:org.eclipse.xtext.ui.editor.quickfix.MarkerResolutionGenerator"> + </markerResolutionGenerator> + </extension> + <!-- Rename Refactoring --> + <extension point="org.eclipse.ui.handlers"> + <handler + class="org.eclipse.papyrus.infra.gmfdiag.ui.CSSExecutableExtensionFactory:org.eclipse.xtext.ui.refactoring.ui.IRenameElementHandler" + commandId="org.eclipse.xtext.ui.refactoring.RenameElement"> + <activeWhen> + <reference + definitionId="org.eclipse.papyrus.infra.gmfdiag.CSS.Editor.opened"> + </reference> + </activeWhen> + </handler> + </extension> + <extension point="org.eclipse.ui.menus"> + <menuContribution + locationURI="popup:#TextEditorContext?after=group.edit"> + <command commandId="org.eclipse.xtext.ui.refactoring.RenameElement" + style="push"> + <visibleWhen checkEnabled="false"> + <reference + definitionId="org.eclipse.papyrus.infra.gmfdiag.CSS.Editor.opened"> + </reference> + </visibleWhen> + </command> + </menuContribution> + </extension> + <extension point="org.eclipse.ui.preferencePages"> + <page + category="org.eclipse.papyrus.infra.gmfdiag.CSS" + class="org.eclipse.papyrus.infra.gmfdiag.ui.CSSExecutableExtensionFactory:org.eclipse.xtext.ui.refactoring.ui.RefactoringPreferencePage" + id="org.eclipse.papyrus.infra.gmfdiag.CSS.refactoring" + name="Refactoring"> + <keywordReference id="org.eclipse.papyrus.infra.gmfdiag.ui.keyword_CSS"/> + </page> + </extension> + + <extension point="org.eclipse.compare.contentViewers"> + <viewer id="org.eclipse.papyrus.infra.gmfdiag.CSS.compare.contentViewers" + class="org.eclipse.papyrus.infra.gmfdiag.ui.CSSExecutableExtensionFactory:org.eclipse.xtext.ui.compare.InjectableViewerCreator" + extensions="css"> + </viewer> + </extension> + <extension point="org.eclipse.compare.contentMergeViewers"> + <viewer id="org.eclipse.papyrus.infra.gmfdiag.CSS.compare.contentMergeViewers" + class="org.eclipse.papyrus.infra.gmfdiag.ui.CSSExecutableExtensionFactory:org.eclipse.xtext.ui.compare.InjectableViewerCreator" + extensions="css" label="CSS Compare"> + </viewer> + </extension> + <extension point="org.eclipse.ui.editors.documentProviders"> + <provider id="org.eclipse.papyrus.infra.gmfdiag.CSS.editors.documentProviders" + class="org.eclipse.papyrus.infra.gmfdiag.ui.CSSExecutableExtensionFactory:org.eclipse.xtext.ui.editor.model.XtextDocumentProvider" + extensions="css"> + </provider> + </extension> + +</plugin> diff --git a/incoming/org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/AbstractCSSUiModule.java b/incoming/org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/AbstractCSSUiModule.java new file mode 100644 index 00000000000..4c92fd1169b --- /dev/null +++ b/incoming/org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/AbstractCSSUiModule.java @@ -0,0 +1,242 @@ + +/* + * generated by Xtext + */ +package org.eclipse.papyrus.infra.gmfdiag.ui; + +import org.eclipse.xtext.ui.DefaultUiModule; +import org.eclipse.ui.plugin.AbstractUIPlugin; + +/** + * Manual modifications go to {org.eclipse.papyrus.infra.gmfdiag.ui.CSSUiModule} + */ +@SuppressWarnings("all") +public abstract class AbstractCSSUiModule extends DefaultUiModule { + + public AbstractCSSUiModule(AbstractUIPlugin plugin) { + super(plugin); + } + + + // contributed by org.eclipse.xtext.ui.generator.ImplicitUiFragment + public com.google.inject.Provider<org.eclipse.xtext.resource.containers.IAllContainersState> provideIAllContainersState() { + return org.eclipse.xtext.ui.shared.Access.getJavaProjectsState(); + } + + // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment + public Class<? extends org.eclipse.xtext.ui.editor.contentassist.IProposalConflictHelper> bindIProposalConflictHelper() { + return org.eclipse.xtext.ui.editor.contentassist.antlr.AntlrProposalConflictHelper.class; + } + + // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment + public void configureHighlightingLexer(com.google.inject.Binder binder) { + binder.bind(org.eclipse.xtext.parser.antlr.Lexer.class).annotatedWith(com.google.inject.name.Names.named(org.eclipse.xtext.ui.LexerUIBindings.HIGHLIGHTING)).to(org.eclipse.papyrus.infra.gmfdiag.parser.antlr.internal.InternalCSSLexer.class); + } + + // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment + public void configureHighlightingTokenDefProvider(com.google.inject.Binder binder) { + binder.bind(org.eclipse.xtext.parser.antlr.ITokenDefProvider.class).annotatedWith(com.google.inject.name.Names.named(org.eclipse.xtext.ui.LexerUIBindings.HIGHLIGHTING)).to(org.eclipse.xtext.parser.antlr.AntlrTokenDefProvider.class); + } + + // contributed by org.eclipse.xtext.generator.exporting.QualifiedNamesFragment + public Class<? extends org.eclipse.xtext.ui.refactoring.IDependentElementsCalculator> bindIDependentElementsCalculator() { + return org.eclipse.xtext.ui.refactoring.impl.DefaultDependentElementsCalculator.class; + } + + // contributed by org.eclipse.xtext.generator.builder.BuilderIntegrationFragment + public void configureIResourceDescriptionsBuilderScope(com.google.inject.Binder binder) { + binder.bind(org.eclipse.xtext.resource.IResourceDescriptions.class).annotatedWith(com.google.inject.name.Names.named(org.eclipse.xtext.resource.impl.ResourceDescriptionsProvider.NAMED_BUILDER_SCOPE)).to(org.eclipse.xtext.builder.clustering.CurrentDescriptions.ResourceSetAware.class); + } + + // contributed by org.eclipse.xtext.generator.builder.BuilderIntegrationFragment + public Class<? extends org.eclipse.xtext.ui.editor.IXtextEditorCallback> bindIXtextEditorCallback() { + return org.eclipse.xtext.builder.nature.NatureAddingEditorCallback.class; + } + + // contributed by org.eclipse.xtext.generator.builder.BuilderIntegrationFragment + public void configureIResourceDescriptionsPersisted(com.google.inject.Binder binder) { + binder.bind(org.eclipse.xtext.resource.IResourceDescriptions.class).annotatedWith(com.google.inject.name.Names.named(org.eclipse.xtext.builder.impl.PersistentDataAwareDirtyResource.PERSISTED_DESCRIPTIONS)).to(org.eclipse.xtext.builder.builderState.IBuilderState.class); + } + + // contributed by org.eclipse.xtext.generator.builder.BuilderIntegrationFragment + public Class<? extends org.eclipse.xtext.ui.editor.DocumentBasedDirtyResource> bindDocumentBasedDirtyResource() { + return org.eclipse.xtext.builder.impl.PersistentDataAwareDirtyResource.class; + } + + // contributed by org.eclipse.xtext.generator.generator.GeneratorFragment + public Class<? extends org.eclipse.xtext.builder.IXtextBuilderParticipant> bindIXtextBuilderParticipant() { + return org.eclipse.xtext.builder.BuilderParticipant.class; + } + + // contributed by org.eclipse.xtext.generator.generator.GeneratorFragment + public org.eclipse.core.resources.IWorkspaceRoot bindIWorkspaceRootToInstance() { + return org.eclipse.core.resources.ResourcesPlugin.getWorkspace().getRoot(); + } + + // contributed by org.eclipse.xtext.generator.generator.GeneratorFragment + public void configureBuilderPreferenceStoreInitializer(com.google.inject.Binder binder) { + binder.bind(org.eclipse.xtext.ui.editor.preferences.IPreferenceStoreInitializer.class).annotatedWith(com.google.inject.name.Names.named("builderPreferenceInitializer")).to(org.eclipse.xtext.builder.preferences.BuilderPreferenceAccess.Initializer.class); + } + + // contributed by org.eclipse.xtext.ui.generator.labeling.LabelProviderFragment + public Class<? extends org.eclipse.jface.viewers.ILabelProvider> bindILabelProvider() { + return org.eclipse.papyrus.infra.gmfdiag.ui.labeling.CSSLabelProvider.class; + } + + // contributed by org.eclipse.xtext.ui.generator.labeling.LabelProviderFragment + public void configureResourceUIServiceLabelProvider(com.google.inject.Binder binder) { + binder.bind(org.eclipse.jface.viewers.ILabelProvider.class).annotatedWith(org.eclipse.xtext.ui.resource.ResourceServiceDescriptionLabelProvider.class).to(org.eclipse.papyrus.infra.gmfdiag.ui.labeling.CSSDescriptionLabelProvider.class); + } + + // contributed by org.eclipse.xtext.ui.generator.outline.OutlineTreeProviderFragment + public Class<? extends org.eclipse.xtext.ui.editor.outline.IOutlineTreeProvider> bindIOutlineTreeProvider() { + return org.eclipse.papyrus.infra.gmfdiag.ui.outline.CSSOutlineTreeProvider.class; + } + + // contributed by org.eclipse.xtext.ui.generator.outline.OutlineTreeProviderFragment + public Class<? extends org.eclipse.xtext.ui.editor.outline.impl.IOutlineTreeStructureProvider> bindIOutlineTreeStructureProvider() { + return org.eclipse.papyrus.infra.gmfdiag.ui.outline.CSSOutlineTreeProvider.class; + } + + // contributed by org.eclipse.xtext.ui.generator.quickfix.QuickfixProviderFragment + public Class<? extends org.eclipse.xtext.ui.editor.quickfix.IssueResolutionProvider> bindIssueResolutionProvider() { + return org.eclipse.papyrus.infra.gmfdiag.ui.quickfix.CSSQuickfixProvider.class; + } + + // contributed by org.eclipse.xtext.ui.generator.contentAssist.JavaBasedContentAssistFragment + public Class<? extends org.eclipse.xtext.ui.editor.contentassist.IContentProposalProvider> bindIContentProposalProvider() { + return org.eclipse.papyrus.infra.gmfdiag.ui.contentassist.CSSProposalProvider.class; + } + + // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrUiGeneratorFragment + public Class<? extends org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext.Factory> bindContentAssistContext$Factory() { + return org.eclipse.xtext.ui.editor.contentassist.antlr.ParserBasedContentAssistContextFactory.class; + } + + // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrUiGeneratorFragment + public Class<? extends org.eclipse.xtext.ui.editor.contentassist.antlr.IContentAssistParser> bindIContentAssistParser() { + return org.eclipse.papyrus.infra.gmfdiag.ui.contentassist.antlr.CSSParser.class; + } + + // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrUiGeneratorFragment + public void configureContentAssistLexerProvider(com.google.inject.Binder binder) { + binder.bind(org.eclipse.papyrus.infra.gmfdiag.ui.contentassist.antlr.internal.InternalCSSLexer.class).toProvider(org.eclipse.xtext.parser.antlr.LexerProvider.create(org.eclipse.papyrus.infra.gmfdiag.ui.contentassist.antlr.internal.InternalCSSLexer.class)); + } + + // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrUiGeneratorFragment + public void configureContentAssistLexer(com.google.inject.Binder binder) { + binder.bind(org.eclipse.xtext.ui.editor.contentassist.antlr.internal.Lexer.class).annotatedWith(com.google.inject.name.Names.named(org.eclipse.xtext.ui.LexerUIBindings.CONTENT_ASSIST)).to(org.eclipse.papyrus.infra.gmfdiag.ui.contentassist.antlr.internal.InternalCSSLexer.class); + } + + // contributed by org.eclipse.xtext.ui.generator.refactoring.RefactorElementNameFragment + public Class<? extends org.eclipse.xtext.ui.refactoring.IRenameStrategy> bindIRenameStrategy() { + return org.eclipse.xtext.ui.refactoring.impl.DefaultRenameStrategy.class; + } + + // contributed by org.eclipse.xtext.ui.generator.refactoring.RefactorElementNameFragment + public Class<? extends org.eclipse.xtext.ui.refactoring.IReferenceUpdater> bindIReferenceUpdater() { + return org.eclipse.xtext.ui.refactoring.impl.DefaultReferenceUpdater.class; + } + + // contributed by org.eclipse.xtext.ui.generator.refactoring.RefactorElementNameFragment + public void configureIPreferenceStoreInitializer(com.google.inject.Binder binder) { + binder.bind(org.eclipse.xtext.ui.editor.preferences.IPreferenceStoreInitializer.class).annotatedWith(com.google.inject.name.Names.named("RefactoringPreferences")).to(org.eclipse.xtext.ui.refactoring.ui.RefactoringPreferences.Initializer.class); + } + + // contributed by org.eclipse.xtext.ui.generator.refactoring.RefactorElementNameFragment + public Class<? extends org.eclipse.xtext.ui.refactoring.IRenameRefactoringProvider> bindIRenameRefactoringProvider() { + return org.eclipse.xtext.ui.refactoring.impl.DefaultRenameRefactoringProvider.class; + } + + // contributed by org.eclipse.xtext.ui.generator.refactoring.RefactorElementNameFragment + public Class<? extends org.eclipse.xtext.ui.refactoring.ui.IRenameSupport.Factory> bindIRenameSupport$Factory() { + return org.eclipse.xtext.ui.refactoring.ui.DefaultRenameSupport.Factory.class; + } + + // contributed by org.eclipse.xtext.ui.generator.refactoring.RefactorElementNameFragment + public Class<? extends org.eclipse.xtext.ui.refactoring.ui.IRenameElementHandler> bindIRenameElementHandler() { + return org.eclipse.xtext.ui.refactoring.ui.DefaultRenameElementHandler.class; + } + + // contributed by org.eclipse.xtext.generator.types.TypesGeneratorFragment + public java.lang.ClassLoader bindClassLoaderToInstance() { + return getClass().getClassLoader(); + } + + // contributed by org.eclipse.xtext.generator.types.TypesGeneratorFragment + public Class<? extends org.eclipse.xtext.common.types.access.IJvmTypeProvider.Factory> bindIJvmTypeProvider$Factory() { + return org.eclipse.xtext.common.types.access.jdt.JdtTypeProviderFactory.class; + } + + // contributed by org.eclipse.xtext.generator.types.TypesGeneratorFragment + public Class<? extends org.eclipse.xtext.common.types.xtext.AbstractTypeScopeProvider> bindAbstractTypeScopeProvider() { + return org.eclipse.xtext.common.types.xtext.ui.JdtBasedSimpleTypeScopeProvider.class; + } + + // contributed by org.eclipse.xtext.generator.types.TypesGeneratorFragment + public Class<? extends org.eclipse.xtext.common.types.xtext.ui.ITypesProposalProvider> bindITypesProposalProvider() { + return org.eclipse.xtext.common.types.xtext.ui.JdtTypesProposalProvider.class; + } + + // contributed by org.eclipse.xtext.generator.types.TypesGeneratorFragment + public Class<? extends org.eclipse.xtext.common.types.access.jdt.IJavaProjectProvider> bindIJavaProjectProvider() { + return org.eclipse.xtext.common.types.xtext.ui.XtextResourceSetBasedProjectProvider.class; + } + + // contributed by org.eclipse.xtext.generator.types.TypesGeneratorFragment + public Class<? extends org.eclipse.xtext.ui.editor.hyperlinking.IHyperlinkHelper> bindIHyperlinkHelper() { + return org.eclipse.xtext.common.types.xtext.ui.TypeAwareHyperlinkHelper.class; + } + + // contributed by org.eclipse.xtext.generator.types.TypesGeneratorFragment + public Class<? extends org.eclipse.xtext.ui.editor.contentassist.PrefixMatcher> bindPrefixMatcher() { + return org.eclipse.xtext.ui.editor.contentassist.FQNPrefixMatcher.class; + } + + // contributed by org.eclipse.xtext.generator.types.TypesGeneratorFragment + public Class<? extends org.eclipse.xtext.ui.editor.contentassist.AbstractJavaBasedContentProposalProvider.ReferenceProposalCreator> bindAbstractJavaBasedContentProposalProvider$ReferenceProposalCreator() { + return org.eclipse.xtext.common.types.xtext.ui.TypeAwareReferenceProposalCreator.class; + } + + // contributed by org.eclipse.xtext.generator.types.TypesGeneratorFragment + public Class<? extends org.eclipse.xtext.ui.editor.IValidationJobScheduler> bindIValidationJobScheduler() { + return org.eclipse.xtext.common.types.xtext.ui.JdtValidationJobScheduler.class; + } + + // contributed by org.eclipse.xtext.generator.types.TypesGeneratorFragment + public Class<? extends org.eclipse.xtext.ui.refactoring.impl.RefactoringResourceSetProvider> bindRefactoringResourceSetProvider() { + return org.eclipse.xtext.common.types.ui.refactoring.JvmRefactoringResourceSetProvider.class; + } + + // contributed by org.eclipse.xtext.ui.generator.templates.CodetemplatesGeneratorFragment + public com.google.inject.Provider<org.eclipse.xtext.ui.codetemplates.ui.preferences.TemplatesLanguageConfiguration> provideTemplatesLanguageConfiguration() { + return org.eclipse.xtext.ui.codetemplates.ui.AccessibleCodetemplatesActivator.getTemplatesLanguageConfigurationProvider(); + } + + // contributed by org.eclipse.xtext.ui.generator.templates.CodetemplatesGeneratorFragment + public com.google.inject.Provider<org.eclipse.xtext.ui.codetemplates.ui.registry.LanguageRegistry> provideLanguageRegistry() { + return org.eclipse.xtext.ui.codetemplates.ui.AccessibleCodetemplatesActivator.getLanguageRegistry(); + } + + // contributed by org.eclipse.xtext.ui.generator.templates.CodetemplatesGeneratorFragment + @org.eclipse.xtext.service.SingletonBinding(eager=true) public Class<? extends org.eclipse.xtext.ui.codetemplates.ui.registry.LanguageRegistrar> bindLanguageRegistrar() { + return org.eclipse.xtext.ui.codetemplates.ui.registry.LanguageRegistrar.class; + } + + // contributed by org.eclipse.xtext.ui.generator.templates.CodetemplatesGeneratorFragment + public Class<? extends org.eclipse.xtext.ui.editor.templates.XtextTemplatePreferencePage> bindXtextTemplatePreferencePage() { + return org.eclipse.xtext.ui.codetemplates.ui.preferences.AdvancedTemplatesPreferencePage.class; + } + + // contributed by org.eclipse.xtext.ui.generator.templates.CodetemplatesGeneratorFragment + public Class<? extends org.eclipse.xtext.ui.codetemplates.ui.partialEditing.IPartialContentAssistParser> bindIPartialContentAssistParser() { + return org.eclipse.papyrus.infra.gmfdiag.ui.contentassist.antlr.PartialCSSContentAssistParser.class; + } + + // contributed by org.eclipse.xtext.ui.generator.compare.CompareFragment + public Class<? extends org.eclipse.compare.IViewerCreator> bindIViewerCreator() { + return org.eclipse.xtext.ui.compare.DefaultViewerCreator.class; + } + + +} diff --git a/incoming/org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/CSSExecutableExtensionFactory.java b/incoming/org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/CSSExecutableExtensionFactory.java new file mode 100644 index 00000000000..1b944f0bae5 --- /dev/null +++ b/incoming/org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/CSSExecutableExtensionFactory.java @@ -0,0 +1,27 @@ +/* + * generated by Xtext + */ +package org.eclipse.papyrus.infra.gmfdiag.ui; + +import org.eclipse.xtext.ui.guice.AbstractGuiceAwareExecutableExtensionFactory; +import org.osgi.framework.Bundle; + +import com.google.inject.Injector; + +/** + * This class was generated. Customizations should only happen in a newly + * introduced subclass. + */ +public class CSSExecutableExtensionFactory extends AbstractGuiceAwareExecutableExtensionFactory { + + @Override + protected Bundle getBundle() { + return org.eclipse.papyrus.infra.gmfdiag.ui.internal.CSSActivator.getInstance().getBundle(); + } + + @Override + protected Injector getInjector() { + return org.eclipse.papyrus.infra.gmfdiag.ui.internal.CSSActivator.getInstance().getInjector("org.eclipse.papyrus.infra.gmfdiag.CSS"); + } + +} diff --git a/incoming/org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/AbstractCSSProposalProvider.java b/incoming/org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/AbstractCSSProposalProvider.java new file mode 100644 index 00000000000..aa798fedcfe --- /dev/null +++ b/incoming/org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/AbstractCSSProposalProvider.java @@ -0,0 +1,386 @@ +/* +* generated by Xtext +*/ +package org.eclipse.papyrus.infra.gmfdiag.ui.contentassist; + +import org.eclipse.emf.ecore.EObject; +import org.eclipse.xtext.*; +import org.eclipse.xtext.ui.editor.contentassist.AbstractJavaBasedContentProposalProvider; +import org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor; +import org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext; + +/** + * Represents a generated, default implementation of interface {@link IProposalProvider}. + * Methods are dynamically dispatched on the first parameter, i.e., you can override them + * with a more concrete subtype. + */ +@SuppressWarnings("all") +public class AbstractCSSProposalProvider extends AbstractJavaBasedContentProposalProvider { + + public void completeStylesheet_Charset(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); + } + public void completeStylesheet_Imports(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); + } + public void completeStylesheet_Contents(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); + } + public void completeImport_String(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); + } + public void completeImport_Uri(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); + } + public void completeImport_Media(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); + } + public void completeMedia_Media(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); + } + public void completeMedia_Rules(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); + } + public void completePage_Pseudo(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); + } + public void completePage_Declarations(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); + } + public void completePseudoPage_Id(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); + } + public void completeRuleset_Selectors(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); + } + public void completeRuleset_Properties(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); + } + public void completeCompositeSelector_Left(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); + } + public void completeCompositeSelector_Combinator(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); + } + public void completeCompositeSelector_Right(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); + } + public void completeSimpleSelector_ElementName(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + completeRuleCall(((RuleCall)((Alternatives)assignment.getTerminal()).getElements().get(0)), context, acceptor); + // subclasses may override + } + public void completeSimpleSelector_Condition(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); + } + public void completeCombinator_Kind(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); + } + public void completeDeclaration_Property(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); + } + public void completeDeclaration_Expression(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); + } + public void completeDeclaration_Important(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); + } + public void completeExpression_Terms(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); + } + public void completeExpression_Subterms(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); + } + public void completeSubterm_Operator(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); + } + public void completeSubterm_Term(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); + } + public void completeFunction_Name(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); + } + public void completeFunction_Args(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); + } + public void completeName_Value(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); + } + public void completeNumber_Op(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); + } + public void completeNumber_Value(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); + } + public void completePercentage_Op(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); + } + public void completePercentage_Value(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); + } + public void completePercentage_Unit(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); + } + public void completeLength_Op(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); + } + public void completeLength_Value(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); + } + public void completeLength_Unit(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); + } + public void completeEms_Op(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); + } + public void completeEms_Value(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); + } + public void completeEms_Unit(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); + } + public void completeExs_Op(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); + } + public void completeExs_Value(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); + } + public void completeExs_Unit(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); + } + public void completeAngle_Op(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); + } + public void completeAngle_Value(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); + } + public void completeAngle_Unit(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); + } + public void completeTime_Op(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); + } + public void completeTime_Value(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); + } + public void completeTime_Unit(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); + } + public void completeFrequency_Op(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); + } + public void completeFrequency_Value(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); + } + public void completeFrequency_Unit(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); + } + public void completeUri_Value(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); + } + public void completeStringValue_Value(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); + } + public void completeHexColor_Value(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); + } + public void completeClass_Class(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); + } + public void completeAttribute_Name(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); + } + public void completeAttribute_Value(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); + } + public void completeAttributeValue_Operator(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); + } + public void completeAttributeValue_Value(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + completeRuleCall(((RuleCall)((Alternatives)assignment.getTerminal()).getElements().get(0)), context, acceptor); + completeRuleCall(((RuleCall)((Alternatives)assignment.getTerminal()).getElements().get(1)), context, acceptor); + } + public void completePseudo_Pseudo(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); + } + public void completePseudo_Args(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); + } + public void completeCSSId_Value(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); + } + public void completeUnaryOperator_Operator(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); + } + + public void complete_Stylesheet(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + // subclasses may override + } + public void complete_Content(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + // subclasses may override + } + public void complete_Import(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + // subclasses may override + } + public void complete_Media(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + // subclasses may override + } + public void complete_Page(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + // subclasses may override + } + public void complete_PseudoPage(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + // subclasses may override + } + public void complete_Ruleset(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + // subclasses may override + } + public void complete_Selector(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + // subclasses may override + } + public void complete_CompositeSelector(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + // subclasses may override + } + public void complete_SimpleSelector(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + // subclasses may override + } + public void complete_SelectorCondition(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + // subclasses may override + } + public void complete_Combinator(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + // subclasses may override + } + public void complete_Declaration(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + // subclasses may override + } + public void complete_Expression(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + // subclasses may override + } + public void complete_Subterm(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + // subclasses may override + } + public void complete_Term(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + // subclasses may override + } + public void complete_Function(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + // subclasses may override + } + public void complete_Name(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + // subclasses may override + } + public void complete_Number(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + // subclasses may override + } + public void complete_Percentage(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + // subclasses may override + } + public void complete_Length(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + // subclasses may override + } + public void complete_Ems(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + // subclasses may override + } + public void complete_Exs(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + // subclasses may override + } + public void complete_Angle(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + // subclasses may override + } + public void complete_Time(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + // subclasses may override + } + public void complete_Frequency(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + // subclasses may override + } + public void complete_Uri(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + // subclasses may override + } + public void complete_StringValue(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + // subclasses may override + } + public void complete_HexColor(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + // subclasses may override + } + public void complete_Operator(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + // subclasses may override + } + public void complete_Class(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + // subclasses may override + } + public void complete_Attribute(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + // subclasses may override + } + public void complete_AttributeValue(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + // subclasses may override + } + public void complete_Pseudo(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + // subclasses may override + } + public void complete_CSSId(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + // subclasses may override + } + public void complete_UnaryOperator(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + // subclasses may override + } + public void complete_UNARY(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + // subclasses may override + } + public void complete_KIND(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + // subclasses may override + } + public void complete_ATTRIBUTE_OP(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + // subclasses may override + } + public void complete_HASH(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + // subclasses may override + } + public void complete_T_CLASS(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + // subclasses may override + } + public void complete_T_IMPORTANT(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + // subclasses may override + } + public void complete_PC_UNIT(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + // subclasses may override + } + public void complete_LEN_UNIT(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + // subclasses may override + } + public void complete_EM_UNIT(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + // subclasses may override + } + public void complete_EX_UNIT(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + // subclasses may override + } + public void complete_ANGLE_UNIT(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + // subclasses may override + } + public void complete_TIME_UNIT(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + // subclasses may override + } + public void complete_FREQ_UNIT(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + // subclasses may override + } + public void complete_T_NUM(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + // subclasses may override + } + public void complete_ID(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + // subclasses may override + } + public void complete_STRING(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + // subclasses may override + } + public void complete_CDO(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + // subclasses may override + } + public void complete_CDC(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + // subclasses may override + } + public void complete_ML_COMMENT(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + // subclasses may override + } + public void complete_WS(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + // subclasses may override + } + public void complete_ANY_OTHER(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + // subclasses may override + } +} diff --git a/incoming/org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/CSSParser.java b/incoming/org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/CSSParser.java new file mode 100644 index 00000000000..a5e2c61d056 --- /dev/null +++ b/incoming/org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/CSSParser.java @@ -0,0 +1,205 @@ +/* +* generated by Xtext +*/ +package org.eclipse.papyrus.infra.gmfdiag.ui.contentassist.antlr; + +import java.util.Collection; +import java.util.Map; +import java.util.HashMap; + +import org.antlr.runtime.RecognitionException; +import org.eclipse.xtext.AbstractElement; +import org.eclipse.xtext.ui.editor.contentassist.antlr.AbstractContentAssistParser; +import org.eclipse.xtext.ui.editor.contentassist.antlr.FollowElement; +import org.eclipse.xtext.ui.editor.contentassist.antlr.internal.AbstractInternalContentAssistParser; + +import com.google.inject.Inject; + +import org.eclipse.papyrus.infra.gmfdiag.services.CSSGrammarAccess; + +public class CSSParser extends AbstractContentAssistParser { + + @Inject + private CSSGrammarAccess grammarAccess; + + private Map<AbstractElement, String> nameMappings; + + @Override + protected org.eclipse.papyrus.infra.gmfdiag.ui.contentassist.antlr.internal.InternalCSSParser createParser() { + org.eclipse.papyrus.infra.gmfdiag.ui.contentassist.antlr.internal.InternalCSSParser result = new org.eclipse.papyrus.infra.gmfdiag.ui.contentassist.antlr.internal.InternalCSSParser(null); + result.setGrammarAccess(grammarAccess); + return result; + } + + @Override + protected String getRuleName(AbstractElement element) { + if (nameMappings == null) { + nameMappings = new HashMap<AbstractElement, String>() { + private static final long serialVersionUID = 1L; + { + put(grammarAccess.getStylesheetAccess().getAlternatives_1(), "rule__Stylesheet__Alternatives_1"); + put(grammarAccess.getStylesheetAccess().getAlternatives_2_1(), "rule__Stylesheet__Alternatives_2_1"); + put(grammarAccess.getStylesheetAccess().getAlternatives_3_1(), "rule__Stylesheet__Alternatives_3_1"); + put(grammarAccess.getContentAccess().getAlternatives(), "rule__Content__Alternatives"); + put(grammarAccess.getImportAccess().getAlternatives_1(), "rule__Import__Alternatives_1"); + put(grammarAccess.getSelectorAccess().getAlternatives(), "rule__Selector__Alternatives"); + put(grammarAccess.getCompositeSelectorAccess().getAlternatives_1(), "rule__CompositeSelector__Alternatives_1"); + put(grammarAccess.getSimpleSelectorAccess().getAlternatives(), "rule__SimpleSelector__Alternatives"); + put(grammarAccess.getSimpleSelectorAccess().getElementNameAlternatives_0_0_0(), "rule__SimpleSelector__ElementNameAlternatives_0_0_0"); + put(grammarAccess.getSelectorConditionAccess().getAlternatives(), "rule__SelectorCondition__Alternatives"); + put(grammarAccess.getTermAccess().getAlternatives_0(), "rule__Term__Alternatives_0"); + put(grammarAccess.getOperatorAccess().getAlternatives(), "rule__Operator__Alternatives"); + put(grammarAccess.getAttributeValueAccess().getValueAlternatives_2_0(), "rule__AttributeValue__ValueAlternatives_2_0"); + put(grammarAccess.getPseudoAccess().getAlternatives_1(), "rule__Pseudo__Alternatives_1"); + put(grammarAccess.getUNARYAccess().getAlternatives(), "rule__UNARY__Alternatives"); + put(grammarAccess.getKINDAccess().getAlternatives(), "rule__KIND__Alternatives"); + put(grammarAccess.getATTRIBUTE_OPAccess().getAlternatives(), "rule__ATTRIBUTE_OP__Alternatives"); + put(grammarAccess.getStylesheetAccess().getGroup(), "rule__Stylesheet__Group__0"); + put(grammarAccess.getStylesheetAccess().getGroup_0(), "rule__Stylesheet__Group_0__0"); + put(grammarAccess.getStylesheetAccess().getGroup_2(), "rule__Stylesheet__Group_2__0"); + put(grammarAccess.getStylesheetAccess().getGroup_2_1_0(), "rule__Stylesheet__Group_2_1_0__0"); + put(grammarAccess.getStylesheetAccess().getGroup_2_1_1(), "rule__Stylesheet__Group_2_1_1__0"); + put(grammarAccess.getStylesheetAccess().getGroup_3(), "rule__Stylesheet__Group_3__0"); + put(grammarAccess.getStylesheetAccess().getGroup_3_1_0(), "rule__Stylesheet__Group_3_1_0__0"); + put(grammarAccess.getStylesheetAccess().getGroup_3_1_1(), "rule__Stylesheet__Group_3_1_1__0"); + put(grammarAccess.getImportAccess().getGroup(), "rule__Import__Group__0"); + put(grammarAccess.getImportAccess().getGroup_1_0(), "rule__Import__Group_1_0__0"); + put(grammarAccess.getImportAccess().getGroup_1_1(), "rule__Import__Group_1_1__0"); + put(grammarAccess.getImportAccess().getGroup_3(), "rule__Import__Group_3__0"); + put(grammarAccess.getImportAccess().getGroup_3_2(), "rule__Import__Group_3_2__0"); + put(grammarAccess.getMediaAccess().getGroup(), "rule__Media__Group__0"); + put(grammarAccess.getMediaAccess().getGroup_4(), "rule__Media__Group_4__0"); + put(grammarAccess.getPageAccess().getGroup(), "rule__Page__Group__0"); + put(grammarAccess.getPageAccess().getGroup_7(), "rule__Page__Group_7__0"); + put(grammarAccess.getPseudoPageAccess().getGroup(), "rule__PseudoPage__Group__0"); + put(grammarAccess.getRulesetAccess().getGroup(), "rule__Ruleset__Group__0"); + put(grammarAccess.getRulesetAccess().getGroup_1(), "rule__Ruleset__Group_1__0"); + put(grammarAccess.getRulesetAccess().getGroup_5(), "rule__Ruleset__Group_5__0"); + put(grammarAccess.getSelectorAccess().getGroup_0(), "rule__Selector__Group_0__0"); + put(grammarAccess.getCompositeSelectorAccess().getGroup(), "rule__CompositeSelector__Group__0"); + put(grammarAccess.getCompositeSelectorAccess().getGroup_1_1(), "rule__CompositeSelector__Group_1_1__0"); + put(grammarAccess.getSimpleSelectorAccess().getGroup_0(), "rule__SimpleSelector__Group_0__0"); + put(grammarAccess.getCombinatorAccess().getGroup(), "rule__Combinator__Group__0"); + put(grammarAccess.getDeclarationAccess().getGroup(), "rule__Declaration__Group__0"); + put(grammarAccess.getDeclarationAccess().getGroup_5(), "rule__Declaration__Group_5__0"); + put(grammarAccess.getExpressionAccess().getGroup(), "rule__Expression__Group__0"); + put(grammarAccess.getSubtermAccess().getGroup(), "rule__Subterm__Group__0"); + put(grammarAccess.getTermAccess().getGroup(), "rule__Term__Group__0"); + put(grammarAccess.getFunctionAccess().getGroup(), "rule__Function__Group__0"); + put(grammarAccess.getNumberAccess().getGroup(), "rule__Number__Group__0"); + put(grammarAccess.getPercentageAccess().getGroup(), "rule__Percentage__Group__0"); + put(grammarAccess.getLengthAccess().getGroup(), "rule__Length__Group__0"); + put(grammarAccess.getEmsAccess().getGroup(), "rule__Ems__Group__0"); + put(grammarAccess.getExsAccess().getGroup(), "rule__Exs__Group__0"); + put(grammarAccess.getAngleAccess().getGroup(), "rule__Angle__Group__0"); + put(grammarAccess.getTimeAccess().getGroup(), "rule__Time__Group__0"); + put(grammarAccess.getFrequencyAccess().getGroup(), "rule__Frequency__Group__0"); + put(grammarAccess.getUriAccess().getGroup(), "rule__Uri__Group__0"); + put(grammarAccess.getOperatorAccess().getGroup_0(), "rule__Operator__Group_0__0"); + put(grammarAccess.getOperatorAccess().getGroup_1(), "rule__Operator__Group_1__0"); + put(grammarAccess.getAttributeAccess().getGroup(), "rule__Attribute__Group__0"); + put(grammarAccess.getAttributeValueAccess().getGroup(), "rule__AttributeValue__Group__0"); + put(grammarAccess.getPseudoAccess().getGroup(), "rule__Pseudo__Group__0"); + put(grammarAccess.getPseudoAccess().getGroup_1_1(), "rule__Pseudo__Group_1_1__0"); + put(grammarAccess.getPseudoAccess().getGroup_1_1_3(), "rule__Pseudo__Group_1_1_3__0"); + put(grammarAccess.getStylesheetAccess().getCharsetAssignment_0_1(), "rule__Stylesheet__CharsetAssignment_0_1"); + put(grammarAccess.getStylesheetAccess().getImportsAssignment_2_0(), "rule__Stylesheet__ImportsAssignment_2_0"); + put(grammarAccess.getStylesheetAccess().getContentsAssignment_3_0(), "rule__Stylesheet__ContentsAssignment_3_0"); + put(grammarAccess.getImportAccess().getStringAssignment_1_0_1(), "rule__Import__StringAssignment_1_0_1"); + put(grammarAccess.getImportAccess().getUriAssignment_1_1_1(), "rule__Import__UriAssignment_1_1_1"); + put(grammarAccess.getImportAccess().getMediaAssignment_3_0(), "rule__Import__MediaAssignment_3_0"); + put(grammarAccess.getImportAccess().getMediaAssignment_3_2_2(), "rule__Import__MediaAssignment_3_2_2"); + put(grammarAccess.getMediaAccess().getMediaAssignment_2(), "rule__Media__MediaAssignment_2"); + put(grammarAccess.getMediaAccess().getMediaAssignment_4_2(), "rule__Media__MediaAssignment_4_2"); + put(grammarAccess.getMediaAccess().getRulesAssignment_7(), "rule__Media__RulesAssignment_7"); + put(grammarAccess.getPageAccess().getPseudoAssignment_3(), "rule__Page__PseudoAssignment_3"); + put(grammarAccess.getPageAccess().getDeclarationsAssignment_6(), "rule__Page__DeclarationsAssignment_6"); + put(grammarAccess.getPageAccess().getDeclarationsAssignment_7_2(), "rule__Page__DeclarationsAssignment_7_2"); + put(grammarAccess.getPseudoPageAccess().getIdAssignment_1(), "rule__PseudoPage__IdAssignment_1"); + put(grammarAccess.getRulesetAccess().getSelectorsAssignment_0(), "rule__Ruleset__SelectorsAssignment_0"); + put(grammarAccess.getRulesetAccess().getSelectorsAssignment_1_2(), "rule__Ruleset__SelectorsAssignment_1_2"); + put(grammarAccess.getRulesetAccess().getPropertiesAssignment_4(), "rule__Ruleset__PropertiesAssignment_4"); + put(grammarAccess.getRulesetAccess().getPropertiesAssignment_5_2(), "rule__Ruleset__PropertiesAssignment_5_2"); + put(grammarAccess.getCompositeSelectorAccess().getLeftAssignment_0(), "rule__CompositeSelector__LeftAssignment_0"); + put(grammarAccess.getCompositeSelectorAccess().getCombinatorAssignment_1_1_1(), "rule__CompositeSelector__CombinatorAssignment_1_1_1"); + put(grammarAccess.getCompositeSelectorAccess().getRightAssignment_2(), "rule__CompositeSelector__RightAssignment_2"); + put(grammarAccess.getSimpleSelectorAccess().getElementNameAssignment_0_0(), "rule__SimpleSelector__ElementNameAssignment_0_0"); + put(grammarAccess.getSimpleSelectorAccess().getConditionAssignment_0_1(), "rule__SimpleSelector__ConditionAssignment_0_1"); + put(grammarAccess.getSimpleSelectorAccess().getConditionAssignment_1(), "rule__SimpleSelector__ConditionAssignment_1"); + put(grammarAccess.getCombinatorAccess().getKindAssignment_0(), "rule__Combinator__KindAssignment_0"); + put(grammarAccess.getDeclarationAccess().getPropertyAssignment_0(), "rule__Declaration__PropertyAssignment_0"); + put(grammarAccess.getDeclarationAccess().getExpressionAssignment_4(), "rule__Declaration__ExpressionAssignment_4"); + put(grammarAccess.getDeclarationAccess().getImportantAssignment_5_0(), "rule__Declaration__ImportantAssignment_5_0"); + put(grammarAccess.getExpressionAccess().getTermsAssignment_0(), "rule__Expression__TermsAssignment_0"); + put(grammarAccess.getExpressionAccess().getSubtermsAssignment_1(), "rule__Expression__SubtermsAssignment_1"); + put(grammarAccess.getSubtermAccess().getOperatorAssignment_0(), "rule__Subterm__OperatorAssignment_0"); + put(grammarAccess.getSubtermAccess().getTermAssignment_1(), "rule__Subterm__TermAssignment_1"); + put(grammarAccess.getFunctionAccess().getNameAssignment_0(), "rule__Function__NameAssignment_0"); + put(grammarAccess.getFunctionAccess().getArgsAssignment_3(), "rule__Function__ArgsAssignment_3"); + put(grammarAccess.getNameAccess().getValueAssignment(), "rule__Name__ValueAssignment"); + put(grammarAccess.getNumberAccess().getOpAssignment_0(), "rule__Number__OpAssignment_0"); + put(grammarAccess.getNumberAccess().getValueAssignment_1(), "rule__Number__ValueAssignment_1"); + put(grammarAccess.getPercentageAccess().getOpAssignment_0(), "rule__Percentage__OpAssignment_0"); + put(grammarAccess.getPercentageAccess().getValueAssignment_1(), "rule__Percentage__ValueAssignment_1"); + put(grammarAccess.getPercentageAccess().getUnitAssignment_2(), "rule__Percentage__UnitAssignment_2"); + put(grammarAccess.getLengthAccess().getOpAssignment_0(), "rule__Length__OpAssignment_0"); + put(grammarAccess.getLengthAccess().getValueAssignment_1(), "rule__Length__ValueAssignment_1"); + put(grammarAccess.getLengthAccess().getUnitAssignment_2(), "rule__Length__UnitAssignment_2"); + put(grammarAccess.getEmsAccess().getOpAssignment_0(), "rule__Ems__OpAssignment_0"); + put(grammarAccess.getEmsAccess().getValueAssignment_1(), "rule__Ems__ValueAssignment_1"); + put(grammarAccess.getEmsAccess().getUnitAssignment_2(), "rule__Ems__UnitAssignment_2"); + put(grammarAccess.getExsAccess().getOpAssignment_0(), "rule__Exs__OpAssignment_0"); + put(grammarAccess.getExsAccess().getValueAssignment_1(), "rule__Exs__ValueAssignment_1"); + put(grammarAccess.getExsAccess().getUnitAssignment_2(), "rule__Exs__UnitAssignment_2"); + put(grammarAccess.getAngleAccess().getOpAssignment_0(), "rule__Angle__OpAssignment_0"); + put(grammarAccess.getAngleAccess().getValueAssignment_1(), "rule__Angle__ValueAssignment_1"); + put(grammarAccess.getAngleAccess().getUnitAssignment_2(), "rule__Angle__UnitAssignment_2"); + put(grammarAccess.getTimeAccess().getOpAssignment_0(), "rule__Time__OpAssignment_0"); + put(grammarAccess.getTimeAccess().getValueAssignment_1(), "rule__Time__ValueAssignment_1"); + put(grammarAccess.getTimeAccess().getUnitAssignment_2(), "rule__Time__UnitAssignment_2"); + put(grammarAccess.getFrequencyAccess().getOpAssignment_0(), "rule__Frequency__OpAssignment_0"); + put(grammarAccess.getFrequencyAccess().getValueAssignment_1(), "rule__Frequency__ValueAssignment_1"); + put(grammarAccess.getFrequencyAccess().getUnitAssignment_2(), "rule__Frequency__UnitAssignment_2"); + put(grammarAccess.getUriAccess().getValueAssignment_2(), "rule__Uri__ValueAssignment_2"); + put(grammarAccess.getStringValueAccess().getValueAssignment(), "rule__StringValue__ValueAssignment"); + put(grammarAccess.getHexColorAccess().getValueAssignment(), "rule__HexColor__ValueAssignment"); + put(grammarAccess.getClassAccess().getClassAssignment(), "rule__Class__ClassAssignment"); + put(grammarAccess.getAttributeAccess().getNameAssignment_2(), "rule__Attribute__NameAssignment_2"); + put(grammarAccess.getAttributeAccess().getValueAssignment_4(), "rule__Attribute__ValueAssignment_4"); + put(grammarAccess.getAttributeValueAccess().getOperatorAssignment_0(), "rule__AttributeValue__OperatorAssignment_0"); + put(grammarAccess.getAttributeValueAccess().getValueAssignment_2(), "rule__AttributeValue__ValueAssignment_2"); + put(grammarAccess.getPseudoAccess().getPseudoAssignment_1_0(), "rule__Pseudo__PseudoAssignment_1_0"); + put(grammarAccess.getPseudoAccess().getPseudoAssignment_1_1_0(), "rule__Pseudo__PseudoAssignment_1_1_0"); + put(grammarAccess.getPseudoAccess().getArgsAssignment_1_1_3_0(), "rule__Pseudo__ArgsAssignment_1_1_3_0"); + put(grammarAccess.getCSSIdAccess().getValueAssignment(), "rule__CSSId__ValueAssignment"); + put(grammarAccess.getUnaryOperatorAccess().getOperatorAssignment(), "rule__UnaryOperator__OperatorAssignment"); + } + }; + } + return nameMappings.get(element); + } + + @Override + protected Collection<FollowElement> getFollowElements(AbstractInternalContentAssistParser parser) { + try { + org.eclipse.papyrus.infra.gmfdiag.ui.contentassist.antlr.internal.InternalCSSParser typedParser = (org.eclipse.papyrus.infra.gmfdiag.ui.contentassist.antlr.internal.InternalCSSParser) parser; + typedParser.entryRuleStylesheet(); + return typedParser.getFollowElements(); + } catch(RecognitionException ex) { + throw new RuntimeException(ex); + } + } + + @Override + protected String[] getInitialHiddenTokens() { + return new String[] { "RULE_ML_COMMENT" }; + } + + public CSSGrammarAccess getGrammarAccess() { + return this.grammarAccess; + } + + public void setGrammarAccess(CSSGrammarAccess grammarAccess) { + this.grammarAccess = grammarAccess; + } +} diff --git a/incoming/org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/PartialCSSContentAssistParser.java b/incoming/org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/PartialCSSContentAssistParser.java new file mode 100644 index 00000000000..e9652a28fdb --- /dev/null +++ b/incoming/org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/PartialCSSContentAssistParser.java @@ -0,0 +1,37 @@ +/* + * generated by Xtext + */ +package org.eclipse.papyrus.infra.gmfdiag.ui.contentassist.antlr; + +import java.util.Collection; +import java.util.Collections; + +import org.eclipse.xtext.AbstractRule; +import org.eclipse.xtext.ui.codetemplates.ui.partialEditing.IPartialContentAssistParser; +import org.eclipse.xtext.ui.editor.contentassist.antlr.FollowElement; +import org.eclipse.xtext.ui.editor.contentassist.antlr.internal.AbstractInternalContentAssistParser; +import org.eclipse.xtext.util.PolymorphicDispatcher; + +/** + * @author Sebastian Zarnekow - Initial contribution and API + */ +public class PartialCSSContentAssistParser extends CSSParser implements IPartialContentAssistParser { + + private AbstractRule rule; + + public void initializeFor(AbstractRule rule) { + this.rule = rule; + } + + @Override + protected Collection<FollowElement> getFollowElements(AbstractInternalContentAssistParser parser) { + if (rule == null || rule.eIsProxy()) + return Collections.emptyList(); + String methodName = "entryRule" + rule.getName(); + PolymorphicDispatcher<Collection<FollowElement>> dispatcher = + new PolymorphicDispatcher<Collection<FollowElement>>(methodName, 0, 0, Collections.singletonList(parser)); + dispatcher.invoke(); + return parser.getFollowElements(); + } + +} diff --git a/incoming/org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g b/incoming/org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g new file mode 100644 index 00000000000..d984467b735 --- /dev/null +++ b/incoming/org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g @@ -0,0 +1,7668 @@ +/* +* generated by Xtext +*/ +grammar InternalCSS; + +options { + superClass=AbstractInternalContentAssistParser; + +} + +@lexer::header { +package org.eclipse.papyrus.infra.gmfdiag.ui.contentassist.antlr.internal; + +// Hack: Use our own Lexer superclass by means of import. +// Currently there is no other way to specify the superclass for the lexer. +import org.eclipse.xtext.ui.editor.contentassist.antlr.internal.Lexer; +} + +@parser::header { +package org.eclipse.papyrus.infra.gmfdiag.ui.contentassist.antlr.internal; + +import java.io.InputStream; +import org.eclipse.xtext.*; +import org.eclipse.xtext.parser.*; +import org.eclipse.xtext.parser.impl.*; +import org.eclipse.emf.ecore.util.EcoreUtil; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.xtext.parser.antlr.XtextTokenStream; +import org.eclipse.xtext.parser.antlr.XtextTokenStream.HiddenTokens; +import org.eclipse.xtext.ui.editor.contentassist.antlr.internal.AbstractInternalContentAssistParser; +import org.eclipse.xtext.ui.editor.contentassist.antlr.internal.DFA; +import org.eclipse.papyrus.infra.gmfdiag.services.CSSGrammarAccess; + +} + +@parser::members { + + private CSSGrammarAccess grammarAccess; + + public void setGrammarAccess(CSSGrammarAccess grammarAccess) { + this.grammarAccess = grammarAccess; + } + + @Override + protected Grammar getGrammar() { + return grammarAccess.getGrammar(); + } + + @Override + protected String getValueForTokenName(String tokenName) { + return tokenName; + } + +} + + + + +// Entry rule entryRuleStylesheet +entryRuleStylesheet +: +{ before(grammarAccess.getStylesheetRule()); } + ruleStylesheet +{ after(grammarAccess.getStylesheetRule()); } + EOF +; + +// Rule Stylesheet +ruleStylesheet + @init { + int stackSize = keepStackSize(); + } + : +( +{ before(grammarAccess.getStylesheetAccess().getGroup()); } +(rule__Stylesheet__Group__0) +{ after(grammarAccess.getStylesheetAccess().getGroup()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + + +// Entry rule entryRuleContent +entryRuleContent +: +{ before(grammarAccess.getContentRule()); } + ruleContent +{ after(grammarAccess.getContentRule()); } + EOF +; + +// Rule Content +ruleContent + @init { + int stackSize = keepStackSize(); + } + : +( +{ before(grammarAccess.getContentAccess().getAlternatives()); } +(rule__Content__Alternatives) +{ after(grammarAccess.getContentAccess().getAlternatives()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + + +// Entry rule entryRuleImport +entryRuleImport +: +{ before(grammarAccess.getImportRule()); } + ruleImport +{ after(grammarAccess.getImportRule()); } + EOF +; + +// Rule Import +ruleImport + @init { + int stackSize = keepStackSize(); + } + : +( +{ before(grammarAccess.getImportAccess().getGroup()); } +(rule__Import__Group__0) +{ after(grammarAccess.getImportAccess().getGroup()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + + +// Entry rule entryRuleMedia +entryRuleMedia +: +{ before(grammarAccess.getMediaRule()); } + ruleMedia +{ after(grammarAccess.getMediaRule()); } + EOF +; + +// Rule Media +ruleMedia + @init { + int stackSize = keepStackSize(); + } + : +( +{ before(grammarAccess.getMediaAccess().getGroup()); } +(rule__Media__Group__0) +{ after(grammarAccess.getMediaAccess().getGroup()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + + +// Entry rule entryRulePage +entryRulePage +: +{ before(grammarAccess.getPageRule()); } + rulePage +{ after(grammarAccess.getPageRule()); } + EOF +; + +// Rule Page +rulePage + @init { + int stackSize = keepStackSize(); + } + : +( +{ before(grammarAccess.getPageAccess().getGroup()); } +(rule__Page__Group__0) +{ after(grammarAccess.getPageAccess().getGroup()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + + +// Entry rule entryRulePseudoPage +entryRulePseudoPage +: +{ before(grammarAccess.getPseudoPageRule()); } + rulePseudoPage +{ after(grammarAccess.getPseudoPageRule()); } + EOF +; + +// Rule PseudoPage +rulePseudoPage + @init { + int stackSize = keepStackSize(); + } + : +( +{ before(grammarAccess.getPseudoPageAccess().getGroup()); } +(rule__PseudoPage__Group__0) +{ after(grammarAccess.getPseudoPageAccess().getGroup()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + + +// Entry rule entryRuleRuleset +entryRuleRuleset +: +{ before(grammarAccess.getRulesetRule()); } + ruleRuleset +{ after(grammarAccess.getRulesetRule()); } + EOF +; + +// Rule Ruleset +ruleRuleset + @init { + int stackSize = keepStackSize(); + } + : +( +{ before(grammarAccess.getRulesetAccess().getGroup()); } +(rule__Ruleset__Group__0) +{ after(grammarAccess.getRulesetAccess().getGroup()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + + +// Entry rule entryRuleSelector +entryRuleSelector +: +{ before(grammarAccess.getSelectorRule()); } + ruleSelector +{ after(grammarAccess.getSelectorRule()); } + EOF +; + +// Rule Selector +ruleSelector + @init { + int stackSize = keepStackSize(); + } + : +( +{ before(grammarAccess.getSelectorAccess().getAlternatives()); } +(rule__Selector__Alternatives) +{ after(grammarAccess.getSelectorAccess().getAlternatives()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + + +// Entry rule entryRuleCompositeSelector +entryRuleCompositeSelector +: +{ before(grammarAccess.getCompositeSelectorRule()); } + ruleCompositeSelector +{ after(grammarAccess.getCompositeSelectorRule()); } + EOF +; + +// Rule CompositeSelector +ruleCompositeSelector + @init { + int stackSize = keepStackSize(); + } + : +( +{ before(grammarAccess.getCompositeSelectorAccess().getGroup()); } +(rule__CompositeSelector__Group__0) +{ after(grammarAccess.getCompositeSelectorAccess().getGroup()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + + +// Entry rule entryRuleSimpleSelector +entryRuleSimpleSelector +: +{ before(grammarAccess.getSimpleSelectorRule()); } + ruleSimpleSelector +{ after(grammarAccess.getSimpleSelectorRule()); } + EOF +; + +// Rule SimpleSelector +ruleSimpleSelector + @init { + int stackSize = keepStackSize(); + } + : +( +{ before(grammarAccess.getSimpleSelectorAccess().getAlternatives()); } +(rule__SimpleSelector__Alternatives) +{ after(grammarAccess.getSimpleSelectorAccess().getAlternatives()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + + +// Entry rule entryRuleSelectorCondition +entryRuleSelectorCondition +: +{ before(grammarAccess.getSelectorConditionRule()); } + ruleSelectorCondition +{ after(grammarAccess.getSelectorConditionRule()); } + EOF +; + +// Rule SelectorCondition +ruleSelectorCondition + @init { + int stackSize = keepStackSize(); + } + : +( +{ before(grammarAccess.getSelectorConditionAccess().getAlternatives()); } +(rule__SelectorCondition__Alternatives) +{ after(grammarAccess.getSelectorConditionAccess().getAlternatives()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + + +// Entry rule entryRuleCombinator +entryRuleCombinator +: +{ before(grammarAccess.getCombinatorRule()); } + ruleCombinator +{ after(grammarAccess.getCombinatorRule()); } + EOF +; + +// Rule Combinator +ruleCombinator + @init { + int stackSize = keepStackSize(); + } + : +( +{ before(grammarAccess.getCombinatorAccess().getGroup()); } +(rule__Combinator__Group__0) +{ after(grammarAccess.getCombinatorAccess().getGroup()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + + +// Entry rule entryRuleDeclaration +entryRuleDeclaration +: +{ before(grammarAccess.getDeclarationRule()); } + ruleDeclaration +{ after(grammarAccess.getDeclarationRule()); } + EOF +; + +// Rule Declaration +ruleDeclaration + @init { + int stackSize = keepStackSize(); + } + : +( +{ before(grammarAccess.getDeclarationAccess().getGroup()); } +(rule__Declaration__Group__0) +{ after(grammarAccess.getDeclarationAccess().getGroup()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + + +// Entry rule entryRuleExpression +entryRuleExpression +: +{ before(grammarAccess.getExpressionRule()); } + ruleExpression +{ after(grammarAccess.getExpressionRule()); } + EOF +; + +// Rule Expression +ruleExpression + @init { + int stackSize = keepStackSize(); + } + : +( +{ before(grammarAccess.getExpressionAccess().getGroup()); } +(rule__Expression__Group__0) +{ after(grammarAccess.getExpressionAccess().getGroup()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + + +// Entry rule entryRuleSubterm +entryRuleSubterm +: +{ before(grammarAccess.getSubtermRule()); } + ruleSubterm +{ after(grammarAccess.getSubtermRule()); } + EOF +; + +// Rule Subterm +ruleSubterm + @init { + int stackSize = keepStackSize(); + } + : +( +{ before(grammarAccess.getSubtermAccess().getGroup()); } +(rule__Subterm__Group__0) +{ after(grammarAccess.getSubtermAccess().getGroup()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + + +// Entry rule entryRuleTerm +entryRuleTerm +: +{ before(grammarAccess.getTermRule()); } + ruleTerm +{ after(grammarAccess.getTermRule()); } + EOF +; + +// Rule Term +ruleTerm + @init { + int stackSize = keepStackSize(); + } + : +( +{ before(grammarAccess.getTermAccess().getGroup()); } +(rule__Term__Group__0) +{ after(grammarAccess.getTermAccess().getGroup()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + + +// Entry rule entryRuleFunction +entryRuleFunction +: +{ before(grammarAccess.getFunctionRule()); } + ruleFunction +{ after(grammarAccess.getFunctionRule()); } + EOF +; + +// Rule Function +ruleFunction + @init { + int stackSize = keepStackSize(); + } + : +( +{ before(grammarAccess.getFunctionAccess().getGroup()); } +(rule__Function__Group__0) +{ after(grammarAccess.getFunctionAccess().getGroup()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + + +// Entry rule entryRuleName +entryRuleName +: +{ before(grammarAccess.getNameRule()); } + ruleName +{ after(grammarAccess.getNameRule()); } + EOF +; + +// Rule Name +ruleName + @init { + int stackSize = keepStackSize(); + } + : +( +{ before(grammarAccess.getNameAccess().getValueAssignment()); } +(rule__Name__ValueAssignment) +{ after(grammarAccess.getNameAccess().getValueAssignment()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + + +// Entry rule entryRuleNumber +entryRuleNumber +: +{ before(grammarAccess.getNumberRule()); } + ruleNumber +{ after(grammarAccess.getNumberRule()); } + EOF +; + +// Rule Number +ruleNumber + @init { + int stackSize = keepStackSize(); + } + : +( +{ before(grammarAccess.getNumberAccess().getGroup()); } +(rule__Number__Group__0) +{ after(grammarAccess.getNumberAccess().getGroup()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + + +// Entry rule entryRulePercentage +entryRulePercentage +: +{ before(grammarAccess.getPercentageRule()); } + rulePercentage +{ after(grammarAccess.getPercentageRule()); } + EOF +; + +// Rule Percentage +rulePercentage + @init { + int stackSize = keepStackSize(); + } + : +( +{ before(grammarAccess.getPercentageAccess().getGroup()); } +(rule__Percentage__Group__0) +{ after(grammarAccess.getPercentageAccess().getGroup()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + + +// Entry rule entryRuleLength +entryRuleLength +: +{ before(grammarAccess.getLengthRule()); } + ruleLength +{ after(grammarAccess.getLengthRule()); } + EOF +; + +// Rule Length +ruleLength + @init { + int stackSize = keepStackSize(); + } + : +( +{ before(grammarAccess.getLengthAccess().getGroup()); } +(rule__Length__Group__0) +{ after(grammarAccess.getLengthAccess().getGroup()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + + +// Entry rule entryRuleEms +entryRuleEms +: +{ before(grammarAccess.getEmsRule()); } + ruleEms +{ after(grammarAccess.getEmsRule()); } + EOF +; + +// Rule Ems +ruleEms + @init { + int stackSize = keepStackSize(); + } + : +( +{ before(grammarAccess.getEmsAccess().getGroup()); } +(rule__Ems__Group__0) +{ after(grammarAccess.getEmsAccess().getGroup()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + + +// Entry rule entryRuleExs +entryRuleExs +: +{ before(grammarAccess.getExsRule()); } + ruleExs +{ after(grammarAccess.getExsRule()); } + EOF +; + +// Rule Exs +ruleExs + @init { + int stackSize = keepStackSize(); + } + : +( +{ before(grammarAccess.getExsAccess().getGroup()); } +(rule__Exs__Group__0) +{ after(grammarAccess.getExsAccess().getGroup()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + + +// Entry rule entryRuleAngle +entryRuleAngle +: +{ before(grammarAccess.getAngleRule()); } + ruleAngle +{ after(grammarAccess.getAngleRule()); } + EOF +; + +// Rule Angle +ruleAngle + @init { + int stackSize = keepStackSize(); + } + : +( +{ before(grammarAccess.getAngleAccess().getGroup()); } +(rule__Angle__Group__0) +{ after(grammarAccess.getAngleAccess().getGroup()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + + +// Entry rule entryRuleTime +entryRuleTime +: +{ before(grammarAccess.getTimeRule()); } + ruleTime +{ after(grammarAccess.getTimeRule()); } + EOF +; + +// Rule Time +ruleTime + @init { + int stackSize = keepStackSize(); + } + : +( +{ before(grammarAccess.getTimeAccess().getGroup()); } +(rule__Time__Group__0) +{ after(grammarAccess.getTimeAccess().getGroup()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + + +// Entry rule entryRuleFrequency +entryRuleFrequency +: +{ before(grammarAccess.getFrequencyRule()); } + ruleFrequency +{ after(grammarAccess.getFrequencyRule()); } + EOF +; + +// Rule Frequency +ruleFrequency + @init { + int stackSize = keepStackSize(); + } + : +( +{ before(grammarAccess.getFrequencyAccess().getGroup()); } +(rule__Frequency__Group__0) +{ after(grammarAccess.getFrequencyAccess().getGroup()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + + +// Entry rule entryRuleUri +entryRuleUri +: +{ before(grammarAccess.getUriRule()); } + ruleUri +{ after(grammarAccess.getUriRule()); } + EOF +; + +// Rule Uri +ruleUri + @init { + int stackSize = keepStackSize(); + } + : +( +{ before(grammarAccess.getUriAccess().getGroup()); } +(rule__Uri__Group__0) +{ after(grammarAccess.getUriAccess().getGroup()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + + +// Entry rule entryRuleStringValue +entryRuleStringValue +: +{ before(grammarAccess.getStringValueRule()); } + ruleStringValue +{ after(grammarAccess.getStringValueRule()); } + EOF +; + +// Rule StringValue +ruleStringValue + @init { + int stackSize = keepStackSize(); + } + : +( +{ before(grammarAccess.getStringValueAccess().getValueAssignment()); } +(rule__StringValue__ValueAssignment) +{ after(grammarAccess.getStringValueAccess().getValueAssignment()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + + +// Entry rule entryRuleHexColor +entryRuleHexColor +: +{ before(grammarAccess.getHexColorRule()); } + ruleHexColor +{ after(grammarAccess.getHexColorRule()); } + EOF +; + +// Rule HexColor +ruleHexColor + @init { + int stackSize = keepStackSize(); + } + : +( +{ before(grammarAccess.getHexColorAccess().getValueAssignment()); } +(rule__HexColor__ValueAssignment) +{ after(grammarAccess.getHexColorAccess().getValueAssignment()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + + +// Entry rule entryRuleOperator +entryRuleOperator +: +{ before(grammarAccess.getOperatorRule()); } + ruleOperator +{ after(grammarAccess.getOperatorRule()); } + EOF +; + +// Rule Operator +ruleOperator + @init { + int stackSize = keepStackSize(); + } + : +( +{ before(grammarAccess.getOperatorAccess().getAlternatives()); } +(rule__Operator__Alternatives) +{ after(grammarAccess.getOperatorAccess().getAlternatives()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + + +// Entry rule entryRuleClass +entryRuleClass +: +{ before(grammarAccess.getClassRule()); } + ruleClass +{ after(grammarAccess.getClassRule()); } + EOF +; + +// Rule Class +ruleClass + @init { + int stackSize = keepStackSize(); + } + : +( +{ before(grammarAccess.getClassAccess().getClassAssignment()); } +(rule__Class__ClassAssignment) +{ after(grammarAccess.getClassAccess().getClassAssignment()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + + +// Entry rule entryRuleAttribute +entryRuleAttribute +: +{ before(grammarAccess.getAttributeRule()); } + ruleAttribute +{ after(grammarAccess.getAttributeRule()); } + EOF +; + +// Rule Attribute +ruleAttribute + @init { + int stackSize = keepStackSize(); + } + : +( +{ before(grammarAccess.getAttributeAccess().getGroup()); } +(rule__Attribute__Group__0) +{ after(grammarAccess.getAttributeAccess().getGroup()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + + +// Entry rule entryRuleAttributeValue +entryRuleAttributeValue +: +{ before(grammarAccess.getAttributeValueRule()); } + ruleAttributeValue +{ after(grammarAccess.getAttributeValueRule()); } + EOF +; + +// Rule AttributeValue +ruleAttributeValue + @init { + int stackSize = keepStackSize(); + } + : +( +{ before(grammarAccess.getAttributeValueAccess().getGroup()); } +(rule__AttributeValue__Group__0) +{ after(grammarAccess.getAttributeValueAccess().getGroup()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + + +// Entry rule entryRulePseudo +entryRulePseudo +: +{ before(grammarAccess.getPseudoRule()); } + rulePseudo +{ after(grammarAccess.getPseudoRule()); } + EOF +; + +// Rule Pseudo +rulePseudo + @init { + int stackSize = keepStackSize(); + } + : +( +{ before(grammarAccess.getPseudoAccess().getGroup()); } +(rule__Pseudo__Group__0) +{ after(grammarAccess.getPseudoAccess().getGroup()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + + +// Entry rule entryRuleCSSId +entryRuleCSSId +: +{ before(grammarAccess.getCSSIdRule()); } + ruleCSSId +{ after(grammarAccess.getCSSIdRule()); } + EOF +; + +// Rule CSSId +ruleCSSId + @init { + int stackSize = keepStackSize(); + } + : +( +{ before(grammarAccess.getCSSIdAccess().getValueAssignment()); } +(rule__CSSId__ValueAssignment) +{ after(grammarAccess.getCSSIdAccess().getValueAssignment()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + + +// Entry rule entryRuleUnaryOperator +entryRuleUnaryOperator +: +{ before(grammarAccess.getUnaryOperatorRule()); } + ruleUnaryOperator +{ after(grammarAccess.getUnaryOperatorRule()); } + EOF +; + +// Rule UnaryOperator +ruleUnaryOperator + @init { + int stackSize = keepStackSize(); + } + : +( +{ before(grammarAccess.getUnaryOperatorAccess().getOperatorAssignment()); } +(rule__UnaryOperator__OperatorAssignment) +{ after(grammarAccess.getUnaryOperatorAccess().getOperatorAssignment()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + + + +// Rule UNARY +ruleUNARY + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getUNARYAccess().getAlternatives()); } +(rule__UNARY__Alternatives) +{ after(grammarAccess.getUNARYAccess().getAlternatives()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + + +// Rule KIND +ruleKIND + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getKINDAccess().getAlternatives()); } +(rule__KIND__Alternatives) +{ after(grammarAccess.getKINDAccess().getAlternatives()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + + +// Rule ATTRIBUTE_OP +ruleATTRIBUTE_OP + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getATTRIBUTE_OPAccess().getAlternatives()); } +(rule__ATTRIBUTE_OP__Alternatives) +{ after(grammarAccess.getATTRIBUTE_OPAccess().getAlternatives()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + + +rule__Stylesheet__Alternatives_1 + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getStylesheetAccess().getWSTerminalRuleCall_1_0()); } + RULE_WS +{ after(grammarAccess.getStylesheetAccess().getWSTerminalRuleCall_1_0()); } +) + + |( +{ before(grammarAccess.getStylesheetAccess().getCDOTerminalRuleCall_1_1()); } + RULE_CDO +{ after(grammarAccess.getStylesheetAccess().getCDOTerminalRuleCall_1_1()); } +) + + |( +{ before(grammarAccess.getStylesheetAccess().getCDCTerminalRuleCall_1_2()); } + RULE_CDC +{ after(grammarAccess.getStylesheetAccess().getCDCTerminalRuleCall_1_2()); } +) + +; +finally { + restoreStackSize(stackSize); +} + +rule__Stylesheet__Alternatives_2_1 + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getStylesheetAccess().getGroup_2_1_0()); } +(rule__Stylesheet__Group_2_1_0__0) +{ after(grammarAccess.getStylesheetAccess().getGroup_2_1_0()); } +) + + |( +{ before(grammarAccess.getStylesheetAccess().getGroup_2_1_1()); } +(rule__Stylesheet__Group_2_1_1__0) +{ after(grammarAccess.getStylesheetAccess().getGroup_2_1_1()); } +) + +; +finally { + restoreStackSize(stackSize); +} + +rule__Stylesheet__Alternatives_3_1 + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getStylesheetAccess().getGroup_3_1_0()); } +(rule__Stylesheet__Group_3_1_0__0) +{ after(grammarAccess.getStylesheetAccess().getGroup_3_1_0()); } +) + + |( +{ before(grammarAccess.getStylesheetAccess().getGroup_3_1_1()); } +(rule__Stylesheet__Group_3_1_1__0) +{ after(grammarAccess.getStylesheetAccess().getGroup_3_1_1()); } +) + +; +finally { + restoreStackSize(stackSize); +} + +rule__Content__Alternatives + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getContentAccess().getRulesetParserRuleCall_0()); } + ruleRuleset +{ after(grammarAccess.getContentAccess().getRulesetParserRuleCall_0()); } +) + + |( +{ before(grammarAccess.getContentAccess().getMediaParserRuleCall_1()); } + ruleMedia +{ after(grammarAccess.getContentAccess().getMediaParserRuleCall_1()); } +) + + |( +{ before(grammarAccess.getContentAccess().getPageParserRuleCall_2()); } + rulePage +{ after(grammarAccess.getContentAccess().getPageParserRuleCall_2()); } +) + +; +finally { + restoreStackSize(stackSize); +} + +rule__Import__Alternatives_1 + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getImportAccess().getGroup_1_0()); } +(rule__Import__Group_1_0__0) +{ after(grammarAccess.getImportAccess().getGroup_1_0()); } +) + + |( +{ before(grammarAccess.getImportAccess().getGroup_1_1()); } +(rule__Import__Group_1_1__0) +{ after(grammarAccess.getImportAccess().getGroup_1_1()); } +) + +; +finally { + restoreStackSize(stackSize); +} + +rule__Selector__Alternatives + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getSelectorAccess().getGroup_0()); } +(rule__Selector__Group_0__0) +{ after(grammarAccess.getSelectorAccess().getGroup_0()); } +) + + |( +{ before(grammarAccess.getSelectorAccess().getCompositeSelectorParserRuleCall_1()); } + ruleCompositeSelector +{ after(grammarAccess.getSelectorAccess().getCompositeSelectorParserRuleCall_1()); } +) + +; +finally { + restoreStackSize(stackSize); +} + +rule__CompositeSelector__Alternatives_1 + @init { + int stackSize = keepStackSize(); + } +: +( +( +{ before(grammarAccess.getCompositeSelectorAccess().getWSTerminalRuleCall_1_0()); } +( RULE_WS) +{ after(grammarAccess.getCompositeSelectorAccess().getWSTerminalRuleCall_1_0()); } +) +( +{ before(grammarAccess.getCompositeSelectorAccess().getWSTerminalRuleCall_1_0()); } +( RULE_WS)* +{ after(grammarAccess.getCompositeSelectorAccess().getWSTerminalRuleCall_1_0()); } +) +) + + |( +{ before(grammarAccess.getCompositeSelectorAccess().getGroup_1_1()); } +(rule__CompositeSelector__Group_1_1__0) +{ after(grammarAccess.getCompositeSelectorAccess().getGroup_1_1()); } +) + +; +finally { + restoreStackSize(stackSize); +} + +rule__SimpleSelector__Alternatives + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getSimpleSelectorAccess().getGroup_0()); } +(rule__SimpleSelector__Group_0__0) +{ after(grammarAccess.getSimpleSelectorAccess().getGroup_0()); } +) + + |( +( +{ before(grammarAccess.getSimpleSelectorAccess().getConditionAssignment_1()); } +(rule__SimpleSelector__ConditionAssignment_1) +{ after(grammarAccess.getSimpleSelectorAccess().getConditionAssignment_1()); } +) +( +{ before(grammarAccess.getSimpleSelectorAccess().getConditionAssignment_1()); } +(rule__SimpleSelector__ConditionAssignment_1)* +{ after(grammarAccess.getSimpleSelectorAccess().getConditionAssignment_1()); } +) +) + +; +finally { + restoreStackSize(stackSize); +} + +rule__SimpleSelector__ElementNameAlternatives_0_0_0 + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getSimpleSelectorAccess().getElementNameIDTerminalRuleCall_0_0_0_0()); } + RULE_ID +{ after(grammarAccess.getSimpleSelectorAccess().getElementNameIDTerminalRuleCall_0_0_0_0()); } +) + + |( +{ before(grammarAccess.getSimpleSelectorAccess().getElementNameAsteriskKeyword_0_0_0_1()); } + + '*' + +{ after(grammarAccess.getSimpleSelectorAccess().getElementNameAsteriskKeyword_0_0_0_1()); } +) + +; +finally { + restoreStackSize(stackSize); +} + +rule__SelectorCondition__Alternatives + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getSelectorConditionAccess().getCSSIdParserRuleCall_0()); } + ruleCSSId +{ after(grammarAccess.getSelectorConditionAccess().getCSSIdParserRuleCall_0()); } +) + + |( +{ before(grammarAccess.getSelectorConditionAccess().getClassParserRuleCall_1()); } + ruleClass +{ after(grammarAccess.getSelectorConditionAccess().getClassParserRuleCall_1()); } +) + + |( +{ before(grammarAccess.getSelectorConditionAccess().getAttributeParserRuleCall_2()); } + ruleAttribute +{ after(grammarAccess.getSelectorConditionAccess().getAttributeParserRuleCall_2()); } +) + + |( +{ before(grammarAccess.getSelectorConditionAccess().getPseudoParserRuleCall_3()); } + rulePseudo +{ after(grammarAccess.getSelectorConditionAccess().getPseudoParserRuleCall_3()); } +) + +; +finally { + restoreStackSize(stackSize); +} + +rule__Term__Alternatives_0 + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getTermAccess().getNumberParserRuleCall_0_0()); } + ruleNumber +{ after(grammarAccess.getTermAccess().getNumberParserRuleCall_0_0()); } +) + + |( +{ before(grammarAccess.getTermAccess().getPercentageParserRuleCall_0_1()); } + rulePercentage +{ after(grammarAccess.getTermAccess().getPercentageParserRuleCall_0_1()); } +) + + |( +{ before(grammarAccess.getTermAccess().getLengthParserRuleCall_0_2()); } + ruleLength +{ after(grammarAccess.getTermAccess().getLengthParserRuleCall_0_2()); } +) + + |( +{ before(grammarAccess.getTermAccess().getEmsParserRuleCall_0_3()); } + ruleEms +{ after(grammarAccess.getTermAccess().getEmsParserRuleCall_0_3()); } +) + + |( +{ before(grammarAccess.getTermAccess().getExsParserRuleCall_0_4()); } + ruleExs +{ after(grammarAccess.getTermAccess().getExsParserRuleCall_0_4()); } +) + + |( +{ before(grammarAccess.getTermAccess().getAngleParserRuleCall_0_5()); } + ruleAngle +{ after(grammarAccess.getTermAccess().getAngleParserRuleCall_0_5()); } +) + + |( +{ before(grammarAccess.getTermAccess().getTimeParserRuleCall_0_6()); } + ruleTime +{ after(grammarAccess.getTermAccess().getTimeParserRuleCall_0_6()); } +) + + |( +{ before(grammarAccess.getTermAccess().getFrequencyParserRuleCall_0_7()); } + ruleFrequency +{ after(grammarAccess.getTermAccess().getFrequencyParserRuleCall_0_7()); } +) + + |( +{ before(grammarAccess.getTermAccess().getNameParserRuleCall_0_8()); } + ruleName +{ after(grammarAccess.getTermAccess().getNameParserRuleCall_0_8()); } +) + + |( +{ before(grammarAccess.getTermAccess().getStringValueParserRuleCall_0_9()); } + ruleStringValue +{ after(grammarAccess.getTermAccess().getStringValueParserRuleCall_0_9()); } +) + + |( +{ before(grammarAccess.getTermAccess().getUriParserRuleCall_0_10()); } + ruleUri +{ after(grammarAccess.getTermAccess().getUriParserRuleCall_0_10()); } +) + + |( +{ before(grammarAccess.getTermAccess().getHexColorParserRuleCall_0_11()); } + ruleHexColor +{ after(grammarAccess.getTermAccess().getHexColorParserRuleCall_0_11()); } +) + + |( +{ before(grammarAccess.getTermAccess().getFunctionParserRuleCall_0_12()); } + ruleFunction +{ after(grammarAccess.getTermAccess().getFunctionParserRuleCall_0_12()); } +) + +; +finally { + restoreStackSize(stackSize); +} + +rule__Operator__Alternatives + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getOperatorAccess().getGroup_0()); } +(rule__Operator__Group_0__0) +{ after(grammarAccess.getOperatorAccess().getGroup_0()); } +) + + |( +{ before(grammarAccess.getOperatorAccess().getGroup_1()); } +(rule__Operator__Group_1__0) +{ after(grammarAccess.getOperatorAccess().getGroup_1()); } +) + +; +finally { + restoreStackSize(stackSize); +} + +rule__AttributeValue__ValueAlternatives_2_0 + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getAttributeValueAccess().getValueIDTerminalRuleCall_2_0_0()); } + RULE_ID +{ after(grammarAccess.getAttributeValueAccess().getValueIDTerminalRuleCall_2_0_0()); } +) + + |( +{ before(grammarAccess.getAttributeValueAccess().getValueSTRINGTerminalRuleCall_2_0_1()); } + RULE_STRING +{ after(grammarAccess.getAttributeValueAccess().getValueSTRINGTerminalRuleCall_2_0_1()); } +) + +; +finally { + restoreStackSize(stackSize); +} + +rule__Pseudo__Alternatives_1 + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getPseudoAccess().getPseudoAssignment_1_0()); } +(rule__Pseudo__PseudoAssignment_1_0) +{ after(grammarAccess.getPseudoAccess().getPseudoAssignment_1_0()); } +) + + |( +{ before(grammarAccess.getPseudoAccess().getGroup_1_1()); } +(rule__Pseudo__Group_1_1__0) +{ after(grammarAccess.getPseudoAccess().getGroup_1_1()); } +) + +; +finally { + restoreStackSize(stackSize); +} + +rule__UNARY__Alternatives + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getUNARYAccess().getNEGEnumLiteralDeclaration_0()); } +( '-' +) +{ after(grammarAccess.getUNARYAccess().getNEGEnumLiteralDeclaration_0()); } +) + + |( +{ before(grammarAccess.getUNARYAccess().getPLUSEnumLiteralDeclaration_1()); } +( '+' +) +{ after(grammarAccess.getUNARYAccess().getPLUSEnumLiteralDeclaration_1()); } +) + +; +finally { + restoreStackSize(stackSize); +} + +rule__KIND__Alternatives + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getKINDAccess().getFIRST_CHILDEnumLiteralDeclaration_0()); } +( '>' +) +{ after(grammarAccess.getKINDAccess().getFIRST_CHILDEnumLiteralDeclaration_0()); } +) + + |( +{ before(grammarAccess.getKINDAccess().getSIBLINGEnumLiteralDeclaration_1()); } +( '+' +) +{ after(grammarAccess.getKINDAccess().getSIBLINGEnumLiteralDeclaration_1()); } +) + +; +finally { + restoreStackSize(stackSize); +} + +rule__ATTRIBUTE_OP__Alternatives + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getATTRIBUTE_OPAccess().getEQUALSEnumLiteralDeclaration_0()); } +( '=' +) +{ after(grammarAccess.getATTRIBUTE_OPAccess().getEQUALSEnumLiteralDeclaration_0()); } +) + + |( +{ before(grammarAccess.getATTRIBUTE_OPAccess().getCONTAINSEnumLiteralDeclaration_1()); } +( '~=' +) +{ after(grammarAccess.getATTRIBUTE_OPAccess().getCONTAINSEnumLiteralDeclaration_1()); } +) + + |( +{ before(grammarAccess.getATTRIBUTE_OPAccess().getUNEQUALSEnumLiteralDeclaration_2()); } +( '!=' +) +{ after(grammarAccess.getATTRIBUTE_OPAccess().getUNEQUALSEnumLiteralDeclaration_2()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + + +rule__Stylesheet__Group__0 + @init { + int stackSize = keepStackSize(); + } +: + rule__Stylesheet__Group__0__Impl + rule__Stylesheet__Group__1 +; +finally { + restoreStackSize(stackSize); +} + +rule__Stylesheet__Group__0__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getStylesheetAccess().getGroup_0()); } +(rule__Stylesheet__Group_0__0)? +{ after(grammarAccess.getStylesheetAccess().getGroup_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__Stylesheet__Group__1 + @init { + int stackSize = keepStackSize(); + } +: + rule__Stylesheet__Group__1__Impl + rule__Stylesheet__Group__2 +; +finally { + restoreStackSize(stackSize); +} + +rule__Stylesheet__Group__1__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getStylesheetAccess().getAlternatives_1()); } +(rule__Stylesheet__Alternatives_1)* +{ after(grammarAccess.getStylesheetAccess().getAlternatives_1()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__Stylesheet__Group__2 + @init { + int stackSize = keepStackSize(); + } +: + rule__Stylesheet__Group__2__Impl + rule__Stylesheet__Group__3 +; +finally { + restoreStackSize(stackSize); +} + +rule__Stylesheet__Group__2__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getStylesheetAccess().getGroup_2()); } +(rule__Stylesheet__Group_2__0)* +{ after(grammarAccess.getStylesheetAccess().getGroup_2()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__Stylesheet__Group__3 + @init { + int stackSize = keepStackSize(); + } +: + rule__Stylesheet__Group__3__Impl +; +finally { + restoreStackSize(stackSize); +} + +rule__Stylesheet__Group__3__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getStylesheetAccess().getGroup_3()); } +(rule__Stylesheet__Group_3__0)* +{ after(grammarAccess.getStylesheetAccess().getGroup_3()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + + + + + + + + + +rule__Stylesheet__Group_0__0 + @init { + int stackSize = keepStackSize(); + } +: + rule__Stylesheet__Group_0__0__Impl + rule__Stylesheet__Group_0__1 +; +finally { + restoreStackSize(stackSize); +} + +rule__Stylesheet__Group_0__0__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getStylesheetAccess().getCharsetKeyword_0_0()); } + + '@charset ' + +{ after(grammarAccess.getStylesheetAccess().getCharsetKeyword_0_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__Stylesheet__Group_0__1 + @init { + int stackSize = keepStackSize(); + } +: + rule__Stylesheet__Group_0__1__Impl + rule__Stylesheet__Group_0__2 +; +finally { + restoreStackSize(stackSize); +} + +rule__Stylesheet__Group_0__1__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getStylesheetAccess().getCharsetAssignment_0_1()); } +(rule__Stylesheet__CharsetAssignment_0_1) +{ after(grammarAccess.getStylesheetAccess().getCharsetAssignment_0_1()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__Stylesheet__Group_0__2 + @init { + int stackSize = keepStackSize(); + } +: + rule__Stylesheet__Group_0__2__Impl +; +finally { + restoreStackSize(stackSize); +} + +rule__Stylesheet__Group_0__2__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getStylesheetAccess().getSemicolonKeyword_0_2()); } + + ';' + +{ after(grammarAccess.getStylesheetAccess().getSemicolonKeyword_0_2()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + + + + + + + +rule__Stylesheet__Group_2__0 + @init { + int stackSize = keepStackSize(); + } +: + rule__Stylesheet__Group_2__0__Impl + rule__Stylesheet__Group_2__1 +; +finally { + restoreStackSize(stackSize); +} + +rule__Stylesheet__Group_2__0__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getStylesheetAccess().getImportsAssignment_2_0()); } +(rule__Stylesheet__ImportsAssignment_2_0) +{ after(grammarAccess.getStylesheetAccess().getImportsAssignment_2_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__Stylesheet__Group_2__1 + @init { + int stackSize = keepStackSize(); + } +: + rule__Stylesheet__Group_2__1__Impl +; +finally { + restoreStackSize(stackSize); +} + +rule__Stylesheet__Group_2__1__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getStylesheetAccess().getAlternatives_2_1()); } +(rule__Stylesheet__Alternatives_2_1)* +{ after(grammarAccess.getStylesheetAccess().getAlternatives_2_1()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + + + + + +rule__Stylesheet__Group_2_1_0__0 + @init { + int stackSize = keepStackSize(); + } +: + rule__Stylesheet__Group_2_1_0__0__Impl + rule__Stylesheet__Group_2_1_0__1 +; +finally { + restoreStackSize(stackSize); +} + +rule__Stylesheet__Group_2_1_0__0__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getStylesheetAccess().getCDOTerminalRuleCall_2_1_0_0()); } + RULE_CDO +{ after(grammarAccess.getStylesheetAccess().getCDOTerminalRuleCall_2_1_0_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__Stylesheet__Group_2_1_0__1 + @init { + int stackSize = keepStackSize(); + } +: + rule__Stylesheet__Group_2_1_0__1__Impl +; +finally { + restoreStackSize(stackSize); +} + +rule__Stylesheet__Group_2_1_0__1__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getStylesheetAccess().getWSTerminalRuleCall_2_1_0_1()); } +( RULE_WS)* +{ after(grammarAccess.getStylesheetAccess().getWSTerminalRuleCall_2_1_0_1()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + + + + + +rule__Stylesheet__Group_2_1_1__0 + @init { + int stackSize = keepStackSize(); + } +: + rule__Stylesheet__Group_2_1_1__0__Impl + rule__Stylesheet__Group_2_1_1__1 +; +finally { + restoreStackSize(stackSize); +} + +rule__Stylesheet__Group_2_1_1__0__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getStylesheetAccess().getCDCTerminalRuleCall_2_1_1_0()); } + RULE_CDC +{ after(grammarAccess.getStylesheetAccess().getCDCTerminalRuleCall_2_1_1_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__Stylesheet__Group_2_1_1__1 + @init { + int stackSize = keepStackSize(); + } +: + rule__Stylesheet__Group_2_1_1__1__Impl +; +finally { + restoreStackSize(stackSize); +} + +rule__Stylesheet__Group_2_1_1__1__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getStylesheetAccess().getWSTerminalRuleCall_2_1_1_1()); } +( RULE_WS)* +{ after(grammarAccess.getStylesheetAccess().getWSTerminalRuleCall_2_1_1_1()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + + + + + +rule__Stylesheet__Group_3__0 + @init { + int stackSize = keepStackSize(); + } +: + rule__Stylesheet__Group_3__0__Impl + rule__Stylesheet__Group_3__1 +; +finally { + restoreStackSize(stackSize); +} + +rule__Stylesheet__Group_3__0__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getStylesheetAccess().getContentsAssignment_3_0()); } +(rule__Stylesheet__ContentsAssignment_3_0) +{ after(grammarAccess.getStylesheetAccess().getContentsAssignment_3_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__Stylesheet__Group_3__1 + @init { + int stackSize = keepStackSize(); + } +: + rule__Stylesheet__Group_3__1__Impl +; +finally { + restoreStackSize(stackSize); +} + +rule__Stylesheet__Group_3__1__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getStylesheetAccess().getAlternatives_3_1()); } +(rule__Stylesheet__Alternatives_3_1)* +{ after(grammarAccess.getStylesheetAccess().getAlternatives_3_1()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + + + + + +rule__Stylesheet__Group_3_1_0__0 + @init { + int stackSize = keepStackSize(); + } +: + rule__Stylesheet__Group_3_1_0__0__Impl + rule__Stylesheet__Group_3_1_0__1 +; +finally { + restoreStackSize(stackSize); +} + +rule__Stylesheet__Group_3_1_0__0__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getStylesheetAccess().getCDOTerminalRuleCall_3_1_0_0()); } + RULE_CDO +{ after(grammarAccess.getStylesheetAccess().getCDOTerminalRuleCall_3_1_0_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__Stylesheet__Group_3_1_0__1 + @init { + int stackSize = keepStackSize(); + } +: + rule__Stylesheet__Group_3_1_0__1__Impl +; +finally { + restoreStackSize(stackSize); +} + +rule__Stylesheet__Group_3_1_0__1__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getStylesheetAccess().getWSTerminalRuleCall_3_1_0_1()); } +( RULE_WS)* +{ after(grammarAccess.getStylesheetAccess().getWSTerminalRuleCall_3_1_0_1()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + + + + + +rule__Stylesheet__Group_3_1_1__0 + @init { + int stackSize = keepStackSize(); + } +: + rule__Stylesheet__Group_3_1_1__0__Impl + rule__Stylesheet__Group_3_1_1__1 +; +finally { + restoreStackSize(stackSize); +} + +rule__Stylesheet__Group_3_1_1__0__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getStylesheetAccess().getCDCTerminalRuleCall_3_1_1_0()); } + RULE_CDC +{ after(grammarAccess.getStylesheetAccess().getCDCTerminalRuleCall_3_1_1_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__Stylesheet__Group_3_1_1__1 + @init { + int stackSize = keepStackSize(); + } +: + rule__Stylesheet__Group_3_1_1__1__Impl +; +finally { + restoreStackSize(stackSize); +} + +rule__Stylesheet__Group_3_1_1__1__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getStylesheetAccess().getWSTerminalRuleCall_3_1_1_1()); } +( RULE_WS)* +{ after(grammarAccess.getStylesheetAccess().getWSTerminalRuleCall_3_1_1_1()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + + + + + +rule__Import__Group__0 + @init { + int stackSize = keepStackSize(); + } +: + rule__Import__Group__0__Impl + rule__Import__Group__1 +; +finally { + restoreStackSize(stackSize); +} + +rule__Import__Group__0__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getImportAccess().getImportKeyword_0()); } + + '@import' + +{ after(grammarAccess.getImportAccess().getImportKeyword_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__Import__Group__1 + @init { + int stackSize = keepStackSize(); + } +: + rule__Import__Group__1__Impl + rule__Import__Group__2 +; +finally { + restoreStackSize(stackSize); +} + +rule__Import__Group__1__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getImportAccess().getAlternatives_1()); } +(rule__Import__Alternatives_1) +{ after(grammarAccess.getImportAccess().getAlternatives_1()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__Import__Group__2 + @init { + int stackSize = keepStackSize(); + } +: + rule__Import__Group__2__Impl + rule__Import__Group__3 +; +finally { + restoreStackSize(stackSize); +} + +rule__Import__Group__2__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getImportAccess().getWSTerminalRuleCall_2()); } +( RULE_WS)* +{ after(grammarAccess.getImportAccess().getWSTerminalRuleCall_2()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__Import__Group__3 + @init { + int stackSize = keepStackSize(); + } +: + rule__Import__Group__3__Impl + rule__Import__Group__4 +; +finally { + restoreStackSize(stackSize); +} + +rule__Import__Group__3__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getImportAccess().getGroup_3()); } +(rule__Import__Group_3__0)? +{ after(grammarAccess.getImportAccess().getGroup_3()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__Import__Group__4 + @init { + int stackSize = keepStackSize(); + } +: + rule__Import__Group__4__Impl + rule__Import__Group__5 +; +finally { + restoreStackSize(stackSize); +} + +rule__Import__Group__4__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getImportAccess().getSemicolonKeyword_4()); } + + ';' + +{ after(grammarAccess.getImportAccess().getSemicolonKeyword_4()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__Import__Group__5 + @init { + int stackSize = keepStackSize(); + } +: + rule__Import__Group__5__Impl +; +finally { + restoreStackSize(stackSize); +} + +rule__Import__Group__5__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getImportAccess().getWSTerminalRuleCall_5()); } +( RULE_WS)* +{ after(grammarAccess.getImportAccess().getWSTerminalRuleCall_5()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + + + + + + + + + + + + + +rule__Import__Group_1_0__0 + @init { + int stackSize = keepStackSize(); + } +: + rule__Import__Group_1_0__0__Impl + rule__Import__Group_1_0__1 +; +finally { + restoreStackSize(stackSize); +} + +rule__Import__Group_1_0__0__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getImportAccess().getWSTerminalRuleCall_1_0_0()); } +( RULE_WS)* +{ after(grammarAccess.getImportAccess().getWSTerminalRuleCall_1_0_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__Import__Group_1_0__1 + @init { + int stackSize = keepStackSize(); + } +: + rule__Import__Group_1_0__1__Impl +; +finally { + restoreStackSize(stackSize); +} + +rule__Import__Group_1_0__1__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getImportAccess().getStringAssignment_1_0_1()); } +(rule__Import__StringAssignment_1_0_1) +{ after(grammarAccess.getImportAccess().getStringAssignment_1_0_1()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + + + + + +rule__Import__Group_1_1__0 + @init { + int stackSize = keepStackSize(); + } +: + rule__Import__Group_1_1__0__Impl + rule__Import__Group_1_1__1 +; +finally { + restoreStackSize(stackSize); +} + +rule__Import__Group_1_1__0__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getImportAccess().getWSTerminalRuleCall_1_1_0()); } + RULE_WS +{ after(grammarAccess.getImportAccess().getWSTerminalRuleCall_1_1_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__Import__Group_1_1__1 + @init { + int stackSize = keepStackSize(); + } +: + rule__Import__Group_1_1__1__Impl +; +finally { + restoreStackSize(stackSize); +} + +rule__Import__Group_1_1__1__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getImportAccess().getUriAssignment_1_1_1()); } +(rule__Import__UriAssignment_1_1_1) +{ after(grammarAccess.getImportAccess().getUriAssignment_1_1_1()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + + + + + +rule__Import__Group_3__0 + @init { + int stackSize = keepStackSize(); + } +: + rule__Import__Group_3__0__Impl + rule__Import__Group_3__1 +; +finally { + restoreStackSize(stackSize); +} + +rule__Import__Group_3__0__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getImportAccess().getMediaAssignment_3_0()); } +(rule__Import__MediaAssignment_3_0) +{ after(grammarAccess.getImportAccess().getMediaAssignment_3_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__Import__Group_3__1 + @init { + int stackSize = keepStackSize(); + } +: + rule__Import__Group_3__1__Impl + rule__Import__Group_3__2 +; +finally { + restoreStackSize(stackSize); +} + +rule__Import__Group_3__1__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getImportAccess().getWSTerminalRuleCall_3_1()); } +( RULE_WS)* +{ after(grammarAccess.getImportAccess().getWSTerminalRuleCall_3_1()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__Import__Group_3__2 + @init { + int stackSize = keepStackSize(); + } +: + rule__Import__Group_3__2__Impl +; +finally { + restoreStackSize(stackSize); +} + +rule__Import__Group_3__2__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getImportAccess().getGroup_3_2()); } +(rule__Import__Group_3_2__0)* +{ after(grammarAccess.getImportAccess().getGroup_3_2()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + + + + + + + +rule__Import__Group_3_2__0 + @init { + int stackSize = keepStackSize(); + } +: + rule__Import__Group_3_2__0__Impl + rule__Import__Group_3_2__1 +; +finally { + restoreStackSize(stackSize); +} + +rule__Import__Group_3_2__0__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getImportAccess().getCommaKeyword_3_2_0()); } + + ',' + +{ after(grammarAccess.getImportAccess().getCommaKeyword_3_2_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__Import__Group_3_2__1 + @init { + int stackSize = keepStackSize(); + } +: + rule__Import__Group_3_2__1__Impl + rule__Import__Group_3_2__2 +; +finally { + restoreStackSize(stackSize); +} + +rule__Import__Group_3_2__1__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getImportAccess().getWSTerminalRuleCall_3_2_1()); } +( RULE_WS)* +{ after(grammarAccess.getImportAccess().getWSTerminalRuleCall_3_2_1()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__Import__Group_3_2__2 + @init { + int stackSize = keepStackSize(); + } +: + rule__Import__Group_3_2__2__Impl +; +finally { + restoreStackSize(stackSize); +} + +rule__Import__Group_3_2__2__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getImportAccess().getMediaAssignment_3_2_2()); } +(rule__Import__MediaAssignment_3_2_2) +{ after(grammarAccess.getImportAccess().getMediaAssignment_3_2_2()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + + + + + + + +rule__Media__Group__0 + @init { + int stackSize = keepStackSize(); + } +: + rule__Media__Group__0__Impl + rule__Media__Group__1 +; +finally { + restoreStackSize(stackSize); +} + +rule__Media__Group__0__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getMediaAccess().getMediaKeyword_0()); } + + '@media' + +{ after(grammarAccess.getMediaAccess().getMediaKeyword_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__Media__Group__1 + @init { + int stackSize = keepStackSize(); + } +: + rule__Media__Group__1__Impl + rule__Media__Group__2 +; +finally { + restoreStackSize(stackSize); +} + +rule__Media__Group__1__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getMediaAccess().getWSTerminalRuleCall_1()); } + RULE_WS +{ after(grammarAccess.getMediaAccess().getWSTerminalRuleCall_1()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__Media__Group__2 + @init { + int stackSize = keepStackSize(); + } +: + rule__Media__Group__2__Impl + rule__Media__Group__3 +; +finally { + restoreStackSize(stackSize); +} + +rule__Media__Group__2__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getMediaAccess().getMediaAssignment_2()); } +(rule__Media__MediaAssignment_2) +{ after(grammarAccess.getMediaAccess().getMediaAssignment_2()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__Media__Group__3 + @init { + int stackSize = keepStackSize(); + } +: + rule__Media__Group__3__Impl + rule__Media__Group__4 +; +finally { + restoreStackSize(stackSize); +} + +rule__Media__Group__3__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getMediaAccess().getWSTerminalRuleCall_3()); } +( RULE_WS)* +{ after(grammarAccess.getMediaAccess().getWSTerminalRuleCall_3()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__Media__Group__4 + @init { + int stackSize = keepStackSize(); + } +: + rule__Media__Group__4__Impl + rule__Media__Group__5 +; +finally { + restoreStackSize(stackSize); +} + +rule__Media__Group__4__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getMediaAccess().getGroup_4()); } +(rule__Media__Group_4__0)* +{ after(grammarAccess.getMediaAccess().getGroup_4()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__Media__Group__5 + @init { + int stackSize = keepStackSize(); + } +: + rule__Media__Group__5__Impl + rule__Media__Group__6 +; +finally { + restoreStackSize(stackSize); +} + +rule__Media__Group__5__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getMediaAccess().getLeftCurlyBracketKeyword_5()); } + + '{' + +{ after(grammarAccess.getMediaAccess().getLeftCurlyBracketKeyword_5()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__Media__Group__6 + @init { + int stackSize = keepStackSize(); + } +: + rule__Media__Group__6__Impl + rule__Media__Group__7 +; +finally { + restoreStackSize(stackSize); +} + +rule__Media__Group__6__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getMediaAccess().getWSTerminalRuleCall_6()); } +( RULE_WS)* +{ after(grammarAccess.getMediaAccess().getWSTerminalRuleCall_6()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__Media__Group__7 + @init { + int stackSize = keepStackSize(); + } +: + rule__Media__Group__7__Impl + rule__Media__Group__8 +; +finally { + restoreStackSize(stackSize); +} + +rule__Media__Group__7__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getMediaAccess().getRulesAssignment_7()); } +(rule__Media__RulesAssignment_7)* +{ after(grammarAccess.getMediaAccess().getRulesAssignment_7()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__Media__Group__8 + @init { + int stackSize = keepStackSize(); + } +: + rule__Media__Group__8__Impl + rule__Media__Group__9 +; +finally { + restoreStackSize(stackSize); +} + +rule__Media__Group__8__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getMediaAccess().getRightCurlyBracketKeyword_8()); } + + '}' + +{ after(grammarAccess.getMediaAccess().getRightCurlyBracketKeyword_8()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__Media__Group__9 + @init { + int stackSize = keepStackSize(); + } +: + rule__Media__Group__9__Impl +; +finally { + restoreStackSize(stackSize); +} + +rule__Media__Group__9__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getMediaAccess().getWSTerminalRuleCall_9()); } +( RULE_WS)* +{ after(grammarAccess.getMediaAccess().getWSTerminalRuleCall_9()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + + + + + + + + + + + + + + + + + + + + + +rule__Media__Group_4__0 + @init { + int stackSize = keepStackSize(); + } +: + rule__Media__Group_4__0__Impl + rule__Media__Group_4__1 +; +finally { + restoreStackSize(stackSize); +} + +rule__Media__Group_4__0__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getMediaAccess().getCommaKeyword_4_0()); } + + ',' + +{ after(grammarAccess.getMediaAccess().getCommaKeyword_4_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__Media__Group_4__1 + @init { + int stackSize = keepStackSize(); + } +: + rule__Media__Group_4__1__Impl + rule__Media__Group_4__2 +; +finally { + restoreStackSize(stackSize); +} + +rule__Media__Group_4__1__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getMediaAccess().getWSTerminalRuleCall_4_1()); } +( RULE_WS)* +{ after(grammarAccess.getMediaAccess().getWSTerminalRuleCall_4_1()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__Media__Group_4__2 + @init { + int stackSize = keepStackSize(); + } +: + rule__Media__Group_4__2__Impl +; +finally { + restoreStackSize(stackSize); +} + +rule__Media__Group_4__2__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getMediaAccess().getMediaAssignment_4_2()); } +(rule__Media__MediaAssignment_4_2) +{ after(grammarAccess.getMediaAccess().getMediaAssignment_4_2()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + + + + + + + +rule__Page__Group__0 + @init { + int stackSize = keepStackSize(); + } +: + rule__Page__Group__0__Impl + rule__Page__Group__1 +; +finally { + restoreStackSize(stackSize); +} + +rule__Page__Group__0__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getPageAccess().getPageAction_0()); } +( + +) +{ after(grammarAccess.getPageAccess().getPageAction_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__Page__Group__1 + @init { + int stackSize = keepStackSize(); + } +: + rule__Page__Group__1__Impl + rule__Page__Group__2 +; +finally { + restoreStackSize(stackSize); +} + +rule__Page__Group__1__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getPageAccess().getPageKeyword_1()); } + + '@page' + +{ after(grammarAccess.getPageAccess().getPageKeyword_1()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__Page__Group__2 + @init { + int stackSize = keepStackSize(); + } +: + rule__Page__Group__2__Impl + rule__Page__Group__3 +; +finally { + restoreStackSize(stackSize); +} + +rule__Page__Group__2__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getPageAccess().getWSTerminalRuleCall_2()); } +( RULE_WS)* +{ after(grammarAccess.getPageAccess().getWSTerminalRuleCall_2()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__Page__Group__3 + @init { + int stackSize = keepStackSize(); + } +: + rule__Page__Group__3__Impl + rule__Page__Group__4 +; +finally { + restoreStackSize(stackSize); +} + +rule__Page__Group__3__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getPageAccess().getPseudoAssignment_3()); } +(rule__Page__PseudoAssignment_3)? +{ after(grammarAccess.getPageAccess().getPseudoAssignment_3()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__Page__Group__4 + @init { + int stackSize = keepStackSize(); + } +: + rule__Page__Group__4__Impl + rule__Page__Group__5 +; +finally { + restoreStackSize(stackSize); +} + +rule__Page__Group__4__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getPageAccess().getLeftCurlyBracketKeyword_4()); } + + '{' + +{ after(grammarAccess.getPageAccess().getLeftCurlyBracketKeyword_4()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__Page__Group__5 + @init { + int stackSize = keepStackSize(); + } +: + rule__Page__Group__5__Impl + rule__Page__Group__6 +; +finally { + restoreStackSize(stackSize); +} + +rule__Page__Group__5__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getPageAccess().getWSTerminalRuleCall_5()); } +( RULE_WS)* +{ after(grammarAccess.getPageAccess().getWSTerminalRuleCall_5()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__Page__Group__6 + @init { + int stackSize = keepStackSize(); + } +: + rule__Page__Group__6__Impl + rule__Page__Group__7 +; +finally { + restoreStackSize(stackSize); +} + +rule__Page__Group__6__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getPageAccess().getDeclarationsAssignment_6()); } +(rule__Page__DeclarationsAssignment_6)? +{ after(grammarAccess.getPageAccess().getDeclarationsAssignment_6()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__Page__Group__7 + @init { + int stackSize = keepStackSize(); + } +: + rule__Page__Group__7__Impl + rule__Page__Group__8 +; +finally { + restoreStackSize(stackSize); +} + +rule__Page__Group__7__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getPageAccess().getGroup_7()); } +(rule__Page__Group_7__0)* +{ after(grammarAccess.getPageAccess().getGroup_7()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__Page__Group__8 + @init { + int stackSize = keepStackSize(); + } +: + rule__Page__Group__8__Impl + rule__Page__Group__9 +; +finally { + restoreStackSize(stackSize); +} + +rule__Page__Group__8__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getPageAccess().getRightCurlyBracketKeyword_8()); } + + '}' + +{ after(grammarAccess.getPageAccess().getRightCurlyBracketKeyword_8()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__Page__Group__9 + @init { + int stackSize = keepStackSize(); + } +: + rule__Page__Group__9__Impl +; +finally { + restoreStackSize(stackSize); +} + +rule__Page__Group__9__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getPageAccess().getWSTerminalRuleCall_9()); } +( RULE_WS)* +{ after(grammarAccess.getPageAccess().getWSTerminalRuleCall_9()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + + + + + + + + + + + + + + + + + + + + + +rule__Page__Group_7__0 + @init { + int stackSize = keepStackSize(); + } +: + rule__Page__Group_7__0__Impl + rule__Page__Group_7__1 +; +finally { + restoreStackSize(stackSize); +} + +rule__Page__Group_7__0__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getPageAccess().getSemicolonKeyword_7_0()); } + + ';' + +{ after(grammarAccess.getPageAccess().getSemicolonKeyword_7_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__Page__Group_7__1 + @init { + int stackSize = keepStackSize(); + } +: + rule__Page__Group_7__1__Impl + rule__Page__Group_7__2 +; +finally { + restoreStackSize(stackSize); +} + +rule__Page__Group_7__1__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getPageAccess().getWSTerminalRuleCall_7_1()); } +( RULE_WS)* +{ after(grammarAccess.getPageAccess().getWSTerminalRuleCall_7_1()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__Page__Group_7__2 + @init { + int stackSize = keepStackSize(); + } +: + rule__Page__Group_7__2__Impl +; +finally { + restoreStackSize(stackSize); +} + +rule__Page__Group_7__2__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getPageAccess().getDeclarationsAssignment_7_2()); } +(rule__Page__DeclarationsAssignment_7_2)? +{ after(grammarAccess.getPageAccess().getDeclarationsAssignment_7_2()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + + + + + + + +rule__PseudoPage__Group__0 + @init { + int stackSize = keepStackSize(); + } +: + rule__PseudoPage__Group__0__Impl + rule__PseudoPage__Group__1 +; +finally { + restoreStackSize(stackSize); +} + +rule__PseudoPage__Group__0__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getPseudoPageAccess().getColonKeyword_0()); } + + ':' + +{ after(grammarAccess.getPseudoPageAccess().getColonKeyword_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__PseudoPage__Group__1 + @init { + int stackSize = keepStackSize(); + } +: + rule__PseudoPage__Group__1__Impl + rule__PseudoPage__Group__2 +; +finally { + restoreStackSize(stackSize); +} + +rule__PseudoPage__Group__1__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getPseudoPageAccess().getIdAssignment_1()); } +(rule__PseudoPage__IdAssignment_1) +{ after(grammarAccess.getPseudoPageAccess().getIdAssignment_1()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__PseudoPage__Group__2 + @init { + int stackSize = keepStackSize(); + } +: + rule__PseudoPage__Group__2__Impl +; +finally { + restoreStackSize(stackSize); +} + +rule__PseudoPage__Group__2__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getPseudoPageAccess().getWSTerminalRuleCall_2()); } +( RULE_WS)* +{ after(grammarAccess.getPseudoPageAccess().getWSTerminalRuleCall_2()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + + + + + + + +rule__Ruleset__Group__0 + @init { + int stackSize = keepStackSize(); + } +: + rule__Ruleset__Group__0__Impl + rule__Ruleset__Group__1 +; +finally { + restoreStackSize(stackSize); +} + +rule__Ruleset__Group__0__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getRulesetAccess().getSelectorsAssignment_0()); } +(rule__Ruleset__SelectorsAssignment_0) +{ after(grammarAccess.getRulesetAccess().getSelectorsAssignment_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__Ruleset__Group__1 + @init { + int stackSize = keepStackSize(); + } +: + rule__Ruleset__Group__1__Impl + rule__Ruleset__Group__2 +; +finally { + restoreStackSize(stackSize); +} + +rule__Ruleset__Group__1__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getRulesetAccess().getGroup_1()); } +(rule__Ruleset__Group_1__0)* +{ after(grammarAccess.getRulesetAccess().getGroup_1()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__Ruleset__Group__2 + @init { + int stackSize = keepStackSize(); + } +: + rule__Ruleset__Group__2__Impl + rule__Ruleset__Group__3 +; +finally { + restoreStackSize(stackSize); +} + +rule__Ruleset__Group__2__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getRulesetAccess().getLeftCurlyBracketKeyword_2()); } + + '{' + +{ after(grammarAccess.getRulesetAccess().getLeftCurlyBracketKeyword_2()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__Ruleset__Group__3 + @init { + int stackSize = keepStackSize(); + } +: + rule__Ruleset__Group__3__Impl + rule__Ruleset__Group__4 +; +finally { + restoreStackSize(stackSize); +} + +rule__Ruleset__Group__3__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getRulesetAccess().getWSTerminalRuleCall_3()); } +( RULE_WS)* +{ after(grammarAccess.getRulesetAccess().getWSTerminalRuleCall_3()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__Ruleset__Group__4 + @init { + int stackSize = keepStackSize(); + } +: + rule__Ruleset__Group__4__Impl + rule__Ruleset__Group__5 +; +finally { + restoreStackSize(stackSize); +} + +rule__Ruleset__Group__4__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getRulesetAccess().getPropertiesAssignment_4()); } +(rule__Ruleset__PropertiesAssignment_4)? +{ after(grammarAccess.getRulesetAccess().getPropertiesAssignment_4()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__Ruleset__Group__5 + @init { + int stackSize = keepStackSize(); + } +: + rule__Ruleset__Group__5__Impl + rule__Ruleset__Group__6 +; +finally { + restoreStackSize(stackSize); +} + +rule__Ruleset__Group__5__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getRulesetAccess().getGroup_5()); } +(rule__Ruleset__Group_5__0)* +{ after(grammarAccess.getRulesetAccess().getGroup_5()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__Ruleset__Group__6 + @init { + int stackSize = keepStackSize(); + } +: + rule__Ruleset__Group__6__Impl + rule__Ruleset__Group__7 +; +finally { + restoreStackSize(stackSize); +} + +rule__Ruleset__Group__6__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getRulesetAccess().getRightCurlyBracketKeyword_6()); } + + '}' + +{ after(grammarAccess.getRulesetAccess().getRightCurlyBracketKeyword_6()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__Ruleset__Group__7 + @init { + int stackSize = keepStackSize(); + } +: + rule__Ruleset__Group__7__Impl +; +finally { + restoreStackSize(stackSize); +} + +rule__Ruleset__Group__7__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getRulesetAccess().getWSTerminalRuleCall_7()); } +( RULE_WS)* +{ after(grammarAccess.getRulesetAccess().getWSTerminalRuleCall_7()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + + + + + + + + + + + + + + + + + +rule__Ruleset__Group_1__0 + @init { + int stackSize = keepStackSize(); + } +: + rule__Ruleset__Group_1__0__Impl + rule__Ruleset__Group_1__1 +; +finally { + restoreStackSize(stackSize); +} + +rule__Ruleset__Group_1__0__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getRulesetAccess().getCommaKeyword_1_0()); } + + ',' + +{ after(grammarAccess.getRulesetAccess().getCommaKeyword_1_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__Ruleset__Group_1__1 + @init { + int stackSize = keepStackSize(); + } +: + rule__Ruleset__Group_1__1__Impl + rule__Ruleset__Group_1__2 +; +finally { + restoreStackSize(stackSize); +} + +rule__Ruleset__Group_1__1__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getRulesetAccess().getWSTerminalRuleCall_1_1()); } +( RULE_WS)* +{ after(grammarAccess.getRulesetAccess().getWSTerminalRuleCall_1_1()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__Ruleset__Group_1__2 + @init { + int stackSize = keepStackSize(); + } +: + rule__Ruleset__Group_1__2__Impl +; +finally { + restoreStackSize(stackSize); +} + +rule__Ruleset__Group_1__2__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getRulesetAccess().getSelectorsAssignment_1_2()); } +(rule__Ruleset__SelectorsAssignment_1_2) +{ after(grammarAccess.getRulesetAccess().getSelectorsAssignment_1_2()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + + + + + + + +rule__Ruleset__Group_5__0 + @init { + int stackSize = keepStackSize(); + } +: + rule__Ruleset__Group_5__0__Impl + rule__Ruleset__Group_5__1 +; +finally { + restoreStackSize(stackSize); +} + +rule__Ruleset__Group_5__0__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getRulesetAccess().getSemicolonKeyword_5_0()); } + + ';' + +{ after(grammarAccess.getRulesetAccess().getSemicolonKeyword_5_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__Ruleset__Group_5__1 + @init { + int stackSize = keepStackSize(); + } +: + rule__Ruleset__Group_5__1__Impl + rule__Ruleset__Group_5__2 +; +finally { + restoreStackSize(stackSize); +} + +rule__Ruleset__Group_5__1__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getRulesetAccess().getWSTerminalRuleCall_5_1()); } +( RULE_WS)* +{ after(grammarAccess.getRulesetAccess().getWSTerminalRuleCall_5_1()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__Ruleset__Group_5__2 + @init { + int stackSize = keepStackSize(); + } +: + rule__Ruleset__Group_5__2__Impl +; +finally { + restoreStackSize(stackSize); +} + +rule__Ruleset__Group_5__2__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getRulesetAccess().getPropertiesAssignment_5_2()); } +(rule__Ruleset__PropertiesAssignment_5_2)? +{ after(grammarAccess.getRulesetAccess().getPropertiesAssignment_5_2()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + + + + + + + +rule__Selector__Group_0__0 + @init { + int stackSize = keepStackSize(); + } +: + rule__Selector__Group_0__0__Impl + rule__Selector__Group_0__1 +; +finally { + restoreStackSize(stackSize); +} + +rule__Selector__Group_0__0__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getSelectorAccess().getSimpleSelectorParserRuleCall_0_0()); } + ruleSimpleSelector +{ after(grammarAccess.getSelectorAccess().getSimpleSelectorParserRuleCall_0_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__Selector__Group_0__1 + @init { + int stackSize = keepStackSize(); + } +: + rule__Selector__Group_0__1__Impl +; +finally { + restoreStackSize(stackSize); +} + +rule__Selector__Group_0__1__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getSelectorAccess().getWSTerminalRuleCall_0_1()); } +( RULE_WS)* +{ after(grammarAccess.getSelectorAccess().getWSTerminalRuleCall_0_1()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + + + + + +rule__CompositeSelector__Group__0 + @init { + int stackSize = keepStackSize(); + } +: + rule__CompositeSelector__Group__0__Impl + rule__CompositeSelector__Group__1 +; +finally { + restoreStackSize(stackSize); +} + +rule__CompositeSelector__Group__0__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getCompositeSelectorAccess().getLeftAssignment_0()); } +(rule__CompositeSelector__LeftAssignment_0) +{ after(grammarAccess.getCompositeSelectorAccess().getLeftAssignment_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__CompositeSelector__Group__1 + @init { + int stackSize = keepStackSize(); + } +: + rule__CompositeSelector__Group__1__Impl + rule__CompositeSelector__Group__2 +; +finally { + restoreStackSize(stackSize); +} + +rule__CompositeSelector__Group__1__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getCompositeSelectorAccess().getAlternatives_1()); } +(rule__CompositeSelector__Alternatives_1) +{ after(grammarAccess.getCompositeSelectorAccess().getAlternatives_1()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__CompositeSelector__Group__2 + @init { + int stackSize = keepStackSize(); + } +: + rule__CompositeSelector__Group__2__Impl +; +finally { + restoreStackSize(stackSize); +} + +rule__CompositeSelector__Group__2__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getCompositeSelectorAccess().getRightAssignment_2()); } +(rule__CompositeSelector__RightAssignment_2) +{ after(grammarAccess.getCompositeSelectorAccess().getRightAssignment_2()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + + + + + + + +rule__CompositeSelector__Group_1_1__0 + @init { + int stackSize = keepStackSize(); + } +: + rule__CompositeSelector__Group_1_1__0__Impl + rule__CompositeSelector__Group_1_1__1 +; +finally { + restoreStackSize(stackSize); +} + +rule__CompositeSelector__Group_1_1__0__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getCompositeSelectorAccess().getWSTerminalRuleCall_1_1_0()); } +( RULE_WS)* +{ after(grammarAccess.getCompositeSelectorAccess().getWSTerminalRuleCall_1_1_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__CompositeSelector__Group_1_1__1 + @init { + int stackSize = keepStackSize(); + } +: + rule__CompositeSelector__Group_1_1__1__Impl +; +finally { + restoreStackSize(stackSize); +} + +rule__CompositeSelector__Group_1_1__1__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getCompositeSelectorAccess().getCombinatorAssignment_1_1_1()); } +(rule__CompositeSelector__CombinatorAssignment_1_1_1) +{ after(grammarAccess.getCompositeSelectorAccess().getCombinatorAssignment_1_1_1()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + + + + + +rule__SimpleSelector__Group_0__0 + @init { + int stackSize = keepStackSize(); + } +: + rule__SimpleSelector__Group_0__0__Impl + rule__SimpleSelector__Group_0__1 +; +finally { + restoreStackSize(stackSize); +} + +rule__SimpleSelector__Group_0__0__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getSimpleSelectorAccess().getElementNameAssignment_0_0()); } +(rule__SimpleSelector__ElementNameAssignment_0_0) +{ after(grammarAccess.getSimpleSelectorAccess().getElementNameAssignment_0_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__SimpleSelector__Group_0__1 + @init { + int stackSize = keepStackSize(); + } +: + rule__SimpleSelector__Group_0__1__Impl +; +finally { + restoreStackSize(stackSize); +} + +rule__SimpleSelector__Group_0__1__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getSimpleSelectorAccess().getConditionAssignment_0_1()); } +(rule__SimpleSelector__ConditionAssignment_0_1)* +{ after(grammarAccess.getSimpleSelectorAccess().getConditionAssignment_0_1()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + + + + + +rule__Combinator__Group__0 + @init { + int stackSize = keepStackSize(); + } +: + rule__Combinator__Group__0__Impl + rule__Combinator__Group__1 +; +finally { + restoreStackSize(stackSize); +} + +rule__Combinator__Group__0__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getCombinatorAccess().getKindAssignment_0()); } +(rule__Combinator__KindAssignment_0) +{ after(grammarAccess.getCombinatorAccess().getKindAssignment_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__Combinator__Group__1 + @init { + int stackSize = keepStackSize(); + } +: + rule__Combinator__Group__1__Impl +; +finally { + restoreStackSize(stackSize); +} + +rule__Combinator__Group__1__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getCombinatorAccess().getWSTerminalRuleCall_1()); } +( RULE_WS)* +{ after(grammarAccess.getCombinatorAccess().getWSTerminalRuleCall_1()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + + + + + +rule__Declaration__Group__0 + @init { + int stackSize = keepStackSize(); + } +: + rule__Declaration__Group__0__Impl + rule__Declaration__Group__1 +; +finally { + restoreStackSize(stackSize); +} + +rule__Declaration__Group__0__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getDeclarationAccess().getPropertyAssignment_0()); } +(rule__Declaration__PropertyAssignment_0) +{ after(grammarAccess.getDeclarationAccess().getPropertyAssignment_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__Declaration__Group__1 + @init { + int stackSize = keepStackSize(); + } +: + rule__Declaration__Group__1__Impl + rule__Declaration__Group__2 +; +finally { + restoreStackSize(stackSize); +} + +rule__Declaration__Group__1__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getDeclarationAccess().getWSTerminalRuleCall_1()); } +( RULE_WS)* +{ after(grammarAccess.getDeclarationAccess().getWSTerminalRuleCall_1()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__Declaration__Group__2 + @init { + int stackSize = keepStackSize(); + } +: + rule__Declaration__Group__2__Impl + rule__Declaration__Group__3 +; +finally { + restoreStackSize(stackSize); +} + +rule__Declaration__Group__2__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getDeclarationAccess().getColonKeyword_2()); } + + ':' + +{ after(grammarAccess.getDeclarationAccess().getColonKeyword_2()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__Declaration__Group__3 + @init { + int stackSize = keepStackSize(); + } +: + rule__Declaration__Group__3__Impl + rule__Declaration__Group__4 +; +finally { + restoreStackSize(stackSize); +} + +rule__Declaration__Group__3__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getDeclarationAccess().getWSTerminalRuleCall_3()); } +( RULE_WS)* +{ after(grammarAccess.getDeclarationAccess().getWSTerminalRuleCall_3()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__Declaration__Group__4 + @init { + int stackSize = keepStackSize(); + } +: + rule__Declaration__Group__4__Impl + rule__Declaration__Group__5 +; +finally { + restoreStackSize(stackSize); +} + +rule__Declaration__Group__4__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getDeclarationAccess().getExpressionAssignment_4()); } +(rule__Declaration__ExpressionAssignment_4) +{ after(grammarAccess.getDeclarationAccess().getExpressionAssignment_4()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__Declaration__Group__5 + @init { + int stackSize = keepStackSize(); + } +: + rule__Declaration__Group__5__Impl +; +finally { + restoreStackSize(stackSize); +} + +rule__Declaration__Group__5__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getDeclarationAccess().getGroup_5()); } +(rule__Declaration__Group_5__0)? +{ after(grammarAccess.getDeclarationAccess().getGroup_5()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + + + + + + + + + + + + + +rule__Declaration__Group_5__0 + @init { + int stackSize = keepStackSize(); + } +: + rule__Declaration__Group_5__0__Impl + rule__Declaration__Group_5__1 +; +finally { + restoreStackSize(stackSize); +} + +rule__Declaration__Group_5__0__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getDeclarationAccess().getImportantAssignment_5_0()); } +(rule__Declaration__ImportantAssignment_5_0) +{ after(grammarAccess.getDeclarationAccess().getImportantAssignment_5_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__Declaration__Group_5__1 + @init { + int stackSize = keepStackSize(); + } +: + rule__Declaration__Group_5__1__Impl +; +finally { + restoreStackSize(stackSize); +} + +rule__Declaration__Group_5__1__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getDeclarationAccess().getWSTerminalRuleCall_5_1()); } +( RULE_WS)* +{ after(grammarAccess.getDeclarationAccess().getWSTerminalRuleCall_5_1()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + + + + + +rule__Expression__Group__0 + @init { + int stackSize = keepStackSize(); + } +: + rule__Expression__Group__0__Impl + rule__Expression__Group__1 +; +finally { + restoreStackSize(stackSize); +} + +rule__Expression__Group__0__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getExpressionAccess().getTermsAssignment_0()); } +(rule__Expression__TermsAssignment_0) +{ after(grammarAccess.getExpressionAccess().getTermsAssignment_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__Expression__Group__1 + @init { + int stackSize = keepStackSize(); + } +: + rule__Expression__Group__1__Impl +; +finally { + restoreStackSize(stackSize); +} + +rule__Expression__Group__1__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getExpressionAccess().getSubtermsAssignment_1()); } +(rule__Expression__SubtermsAssignment_1)* +{ after(grammarAccess.getExpressionAccess().getSubtermsAssignment_1()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + + + + + +rule__Subterm__Group__0 + @init { + int stackSize = keepStackSize(); + } +: + rule__Subterm__Group__0__Impl + rule__Subterm__Group__1 +; +finally { + restoreStackSize(stackSize); +} + +rule__Subterm__Group__0__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getSubtermAccess().getOperatorAssignment_0()); } +(rule__Subterm__OperatorAssignment_0)? +{ after(grammarAccess.getSubtermAccess().getOperatorAssignment_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__Subterm__Group__1 + @init { + int stackSize = keepStackSize(); + } +: + rule__Subterm__Group__1__Impl +; +finally { + restoreStackSize(stackSize); +} + +rule__Subterm__Group__1__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getSubtermAccess().getTermAssignment_1()); } +(rule__Subterm__TermAssignment_1) +{ after(grammarAccess.getSubtermAccess().getTermAssignment_1()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + + + + + +rule__Term__Group__0 + @init { + int stackSize = keepStackSize(); + } +: + rule__Term__Group__0__Impl + rule__Term__Group__1 +; +finally { + restoreStackSize(stackSize); +} + +rule__Term__Group__0__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getTermAccess().getAlternatives_0()); } +(rule__Term__Alternatives_0) +{ after(grammarAccess.getTermAccess().getAlternatives_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__Term__Group__1 + @init { + int stackSize = keepStackSize(); + } +: + rule__Term__Group__1__Impl +; +finally { + restoreStackSize(stackSize); +} + +rule__Term__Group__1__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getTermAccess().getWSTerminalRuleCall_1()); } +( RULE_WS)* +{ after(grammarAccess.getTermAccess().getWSTerminalRuleCall_1()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + + + + + +rule__Function__Group__0 + @init { + int stackSize = keepStackSize(); + } +: + rule__Function__Group__0__Impl + rule__Function__Group__1 +; +finally { + restoreStackSize(stackSize); +} + +rule__Function__Group__0__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getFunctionAccess().getNameAssignment_0()); } +(rule__Function__NameAssignment_0) +{ after(grammarAccess.getFunctionAccess().getNameAssignment_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__Function__Group__1 + @init { + int stackSize = keepStackSize(); + } +: + rule__Function__Group__1__Impl + rule__Function__Group__2 +; +finally { + restoreStackSize(stackSize); +} + +rule__Function__Group__1__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getFunctionAccess().getLeftParenthesisKeyword_1()); } + + '(' + +{ after(grammarAccess.getFunctionAccess().getLeftParenthesisKeyword_1()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__Function__Group__2 + @init { + int stackSize = keepStackSize(); + } +: + rule__Function__Group__2__Impl + rule__Function__Group__3 +; +finally { + restoreStackSize(stackSize); +} + +rule__Function__Group__2__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getFunctionAccess().getWSTerminalRuleCall_2()); } +( RULE_WS)* +{ after(grammarAccess.getFunctionAccess().getWSTerminalRuleCall_2()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__Function__Group__3 + @init { + int stackSize = keepStackSize(); + } +: + rule__Function__Group__3__Impl + rule__Function__Group__4 +; +finally { + restoreStackSize(stackSize); +} + +rule__Function__Group__3__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getFunctionAccess().getArgsAssignment_3()); } +(rule__Function__ArgsAssignment_3) +{ after(grammarAccess.getFunctionAccess().getArgsAssignment_3()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__Function__Group__4 + @init { + int stackSize = keepStackSize(); + } +: + rule__Function__Group__4__Impl +; +finally { + restoreStackSize(stackSize); +} + +rule__Function__Group__4__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getFunctionAccess().getRightParenthesisKeyword_4()); } + + ')' + +{ after(grammarAccess.getFunctionAccess().getRightParenthesisKeyword_4()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + + + + + + + + + + + +rule__Number__Group__0 + @init { + int stackSize = keepStackSize(); + } +: + rule__Number__Group__0__Impl + rule__Number__Group__1 +; +finally { + restoreStackSize(stackSize); +} + +rule__Number__Group__0__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getNumberAccess().getOpAssignment_0()); } +(rule__Number__OpAssignment_0)? +{ after(grammarAccess.getNumberAccess().getOpAssignment_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__Number__Group__1 + @init { + int stackSize = keepStackSize(); + } +: + rule__Number__Group__1__Impl +; +finally { + restoreStackSize(stackSize); +} + +rule__Number__Group__1__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getNumberAccess().getValueAssignment_1()); } +(rule__Number__ValueAssignment_1) +{ after(grammarAccess.getNumberAccess().getValueAssignment_1()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + + + + + +rule__Percentage__Group__0 + @init { + int stackSize = keepStackSize(); + } +: + rule__Percentage__Group__0__Impl + rule__Percentage__Group__1 +; +finally { + restoreStackSize(stackSize); +} + +rule__Percentage__Group__0__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getPercentageAccess().getOpAssignment_0()); } +(rule__Percentage__OpAssignment_0)? +{ after(grammarAccess.getPercentageAccess().getOpAssignment_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__Percentage__Group__1 + @init { + int stackSize = keepStackSize(); + } +: + rule__Percentage__Group__1__Impl + rule__Percentage__Group__2 +; +finally { + restoreStackSize(stackSize); +} + +rule__Percentage__Group__1__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getPercentageAccess().getValueAssignment_1()); } +(rule__Percentage__ValueAssignment_1) +{ after(grammarAccess.getPercentageAccess().getValueAssignment_1()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__Percentage__Group__2 + @init { + int stackSize = keepStackSize(); + } +: + rule__Percentage__Group__2__Impl +; +finally { + restoreStackSize(stackSize); +} + +rule__Percentage__Group__2__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getPercentageAccess().getUnitAssignment_2()); } +(rule__Percentage__UnitAssignment_2) +{ after(grammarAccess.getPercentageAccess().getUnitAssignment_2()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + + + + + + + +rule__Length__Group__0 + @init { + int stackSize = keepStackSize(); + } +: + rule__Length__Group__0__Impl + rule__Length__Group__1 +; +finally { + restoreStackSize(stackSize); +} + +rule__Length__Group__0__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getLengthAccess().getOpAssignment_0()); } +(rule__Length__OpAssignment_0)? +{ after(grammarAccess.getLengthAccess().getOpAssignment_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__Length__Group__1 + @init { + int stackSize = keepStackSize(); + } +: + rule__Length__Group__1__Impl + rule__Length__Group__2 +; +finally { + restoreStackSize(stackSize); +} + +rule__Length__Group__1__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getLengthAccess().getValueAssignment_1()); } +(rule__Length__ValueAssignment_1) +{ after(grammarAccess.getLengthAccess().getValueAssignment_1()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__Length__Group__2 + @init { + int stackSize = keepStackSize(); + } +: + rule__Length__Group__2__Impl +; +finally { + restoreStackSize(stackSize); +} + +rule__Length__Group__2__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getLengthAccess().getUnitAssignment_2()); } +(rule__Length__UnitAssignment_2) +{ after(grammarAccess.getLengthAccess().getUnitAssignment_2()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + + + + + + + +rule__Ems__Group__0 + @init { + int stackSize = keepStackSize(); + } +: + rule__Ems__Group__0__Impl + rule__Ems__Group__1 +; +finally { + restoreStackSize(stackSize); +} + +rule__Ems__Group__0__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getEmsAccess().getOpAssignment_0()); } +(rule__Ems__OpAssignment_0)? +{ after(grammarAccess.getEmsAccess().getOpAssignment_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__Ems__Group__1 + @init { + int stackSize = keepStackSize(); + } +: + rule__Ems__Group__1__Impl + rule__Ems__Group__2 +; +finally { + restoreStackSize(stackSize); +} + +rule__Ems__Group__1__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getEmsAccess().getValueAssignment_1()); } +(rule__Ems__ValueAssignment_1) +{ after(grammarAccess.getEmsAccess().getValueAssignment_1()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__Ems__Group__2 + @init { + int stackSize = keepStackSize(); + } +: + rule__Ems__Group__2__Impl +; +finally { + restoreStackSize(stackSize); +} + +rule__Ems__Group__2__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getEmsAccess().getUnitAssignment_2()); } +(rule__Ems__UnitAssignment_2) +{ after(grammarAccess.getEmsAccess().getUnitAssignment_2()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + + + + + + + +rule__Exs__Group__0 + @init { + int stackSize = keepStackSize(); + } +: + rule__Exs__Group__0__Impl + rule__Exs__Group__1 +; +finally { + restoreStackSize(stackSize); +} + +rule__Exs__Group__0__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getExsAccess().getOpAssignment_0()); } +(rule__Exs__OpAssignment_0)? +{ after(grammarAccess.getExsAccess().getOpAssignment_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__Exs__Group__1 + @init { + int stackSize = keepStackSize(); + } +: + rule__Exs__Group__1__Impl + rule__Exs__Group__2 +; +finally { + restoreStackSize(stackSize); +} + +rule__Exs__Group__1__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getExsAccess().getValueAssignment_1()); } +(rule__Exs__ValueAssignment_1) +{ after(grammarAccess.getExsAccess().getValueAssignment_1()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__Exs__Group__2 + @init { + int stackSize = keepStackSize(); + } +: + rule__Exs__Group__2__Impl +; +finally { + restoreStackSize(stackSize); +} + +rule__Exs__Group__2__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getExsAccess().getUnitAssignment_2()); } +(rule__Exs__UnitAssignment_2) +{ after(grammarAccess.getExsAccess().getUnitAssignment_2()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + + + + + + + +rule__Angle__Group__0 + @init { + int stackSize = keepStackSize(); + } +: + rule__Angle__Group__0__Impl + rule__Angle__Group__1 +; +finally { + restoreStackSize(stackSize); +} + +rule__Angle__Group__0__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getAngleAccess().getOpAssignment_0()); } +(rule__Angle__OpAssignment_0)? +{ after(grammarAccess.getAngleAccess().getOpAssignment_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__Angle__Group__1 + @init { + int stackSize = keepStackSize(); + } +: + rule__Angle__Group__1__Impl + rule__Angle__Group__2 +; +finally { + restoreStackSize(stackSize); +} + +rule__Angle__Group__1__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getAngleAccess().getValueAssignment_1()); } +(rule__Angle__ValueAssignment_1) +{ after(grammarAccess.getAngleAccess().getValueAssignment_1()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__Angle__Group__2 + @init { + int stackSize = keepStackSize(); + } +: + rule__Angle__Group__2__Impl +; +finally { + restoreStackSize(stackSize); +} + +rule__Angle__Group__2__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getAngleAccess().getUnitAssignment_2()); } +(rule__Angle__UnitAssignment_2) +{ after(grammarAccess.getAngleAccess().getUnitAssignment_2()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + + + + + + + +rule__Time__Group__0 + @init { + int stackSize = keepStackSize(); + } +: + rule__Time__Group__0__Impl + rule__Time__Group__1 +; +finally { + restoreStackSize(stackSize); +} + +rule__Time__Group__0__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getTimeAccess().getOpAssignment_0()); } +(rule__Time__OpAssignment_0)? +{ after(grammarAccess.getTimeAccess().getOpAssignment_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__Time__Group__1 + @init { + int stackSize = keepStackSize(); + } +: + rule__Time__Group__1__Impl + rule__Time__Group__2 +; +finally { + restoreStackSize(stackSize); +} + +rule__Time__Group__1__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getTimeAccess().getValueAssignment_1()); } +(rule__Time__ValueAssignment_1) +{ after(grammarAccess.getTimeAccess().getValueAssignment_1()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__Time__Group__2 + @init { + int stackSize = keepStackSize(); + } +: + rule__Time__Group__2__Impl +; +finally { + restoreStackSize(stackSize); +} + +rule__Time__Group__2__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getTimeAccess().getUnitAssignment_2()); } +(rule__Time__UnitAssignment_2) +{ after(grammarAccess.getTimeAccess().getUnitAssignment_2()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + + + + + + + +rule__Frequency__Group__0 + @init { + int stackSize = keepStackSize(); + } +: + rule__Frequency__Group__0__Impl + rule__Frequency__Group__1 +; +finally { + restoreStackSize(stackSize); +} + +rule__Frequency__Group__0__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getFrequencyAccess().getOpAssignment_0()); } +(rule__Frequency__OpAssignment_0)? +{ after(grammarAccess.getFrequencyAccess().getOpAssignment_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__Frequency__Group__1 + @init { + int stackSize = keepStackSize(); + } +: + rule__Frequency__Group__1__Impl + rule__Frequency__Group__2 +; +finally { + restoreStackSize(stackSize); +} + +rule__Frequency__Group__1__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getFrequencyAccess().getValueAssignment_1()); } +(rule__Frequency__ValueAssignment_1) +{ after(grammarAccess.getFrequencyAccess().getValueAssignment_1()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__Frequency__Group__2 + @init { + int stackSize = keepStackSize(); + } +: + rule__Frequency__Group__2__Impl +; +finally { + restoreStackSize(stackSize); +} + +rule__Frequency__Group__2__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getFrequencyAccess().getUnitAssignment_2()); } +(rule__Frequency__UnitAssignment_2) +{ after(grammarAccess.getFrequencyAccess().getUnitAssignment_2()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + + + + + + + +rule__Uri__Group__0 + @init { + int stackSize = keepStackSize(); + } +: + rule__Uri__Group__0__Impl + rule__Uri__Group__1 +; +finally { + restoreStackSize(stackSize); +} + +rule__Uri__Group__0__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getUriAccess().getUrlKeyword_0()); } + + 'url(' + +{ after(grammarAccess.getUriAccess().getUrlKeyword_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__Uri__Group__1 + @init { + int stackSize = keepStackSize(); + } +: + rule__Uri__Group__1__Impl + rule__Uri__Group__2 +; +finally { + restoreStackSize(stackSize); +} + +rule__Uri__Group__1__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getUriAccess().getWSTerminalRuleCall_1()); } +( RULE_WS)? +{ after(grammarAccess.getUriAccess().getWSTerminalRuleCall_1()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__Uri__Group__2 + @init { + int stackSize = keepStackSize(); + } +: + rule__Uri__Group__2__Impl + rule__Uri__Group__3 +; +finally { + restoreStackSize(stackSize); +} + +rule__Uri__Group__2__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getUriAccess().getValueAssignment_2()); } +(rule__Uri__ValueAssignment_2) +{ after(grammarAccess.getUriAccess().getValueAssignment_2()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__Uri__Group__3 + @init { + int stackSize = keepStackSize(); + } +: + rule__Uri__Group__3__Impl + rule__Uri__Group__4 +; +finally { + restoreStackSize(stackSize); +} + +rule__Uri__Group__3__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getUriAccess().getWSTerminalRuleCall_3()); } +( RULE_WS)? +{ after(grammarAccess.getUriAccess().getWSTerminalRuleCall_3()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__Uri__Group__4 + @init { + int stackSize = keepStackSize(); + } +: + rule__Uri__Group__4__Impl +; +finally { + restoreStackSize(stackSize); +} + +rule__Uri__Group__4__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getUriAccess().getRightParenthesisKeyword_4()); } + + ')' + +{ after(grammarAccess.getUriAccess().getRightParenthesisKeyword_4()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + + + + + + + + + + + +rule__Operator__Group_0__0 + @init { + int stackSize = keepStackSize(); + } +: + rule__Operator__Group_0__0__Impl + rule__Operator__Group_0__1 +; +finally { + restoreStackSize(stackSize); +} + +rule__Operator__Group_0__0__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getOperatorAccess().getSolidusKeyword_0_0()); } + + '/' + +{ after(grammarAccess.getOperatorAccess().getSolidusKeyword_0_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__Operator__Group_0__1 + @init { + int stackSize = keepStackSize(); + } +: + rule__Operator__Group_0__1__Impl +; +finally { + restoreStackSize(stackSize); +} + +rule__Operator__Group_0__1__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getOperatorAccess().getWSTerminalRuleCall_0_1()); } +( RULE_WS)* +{ after(grammarAccess.getOperatorAccess().getWSTerminalRuleCall_0_1()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + + + + + +rule__Operator__Group_1__0 + @init { + int stackSize = keepStackSize(); + } +: + rule__Operator__Group_1__0__Impl + rule__Operator__Group_1__1 +; +finally { + restoreStackSize(stackSize); +} + +rule__Operator__Group_1__0__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getOperatorAccess().getCommaKeyword_1_0()); } + + ',' + +{ after(grammarAccess.getOperatorAccess().getCommaKeyword_1_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__Operator__Group_1__1 + @init { + int stackSize = keepStackSize(); + } +: + rule__Operator__Group_1__1__Impl +; +finally { + restoreStackSize(stackSize); +} + +rule__Operator__Group_1__1__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getOperatorAccess().getWSTerminalRuleCall_1_1()); } +( RULE_WS)* +{ after(grammarAccess.getOperatorAccess().getWSTerminalRuleCall_1_1()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + + + + + +rule__Attribute__Group__0 + @init { + int stackSize = keepStackSize(); + } +: + rule__Attribute__Group__0__Impl + rule__Attribute__Group__1 +; +finally { + restoreStackSize(stackSize); +} + +rule__Attribute__Group__0__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getAttributeAccess().getLeftSquareBracketKeyword_0()); } + + '[' + +{ after(grammarAccess.getAttributeAccess().getLeftSquareBracketKeyword_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__Attribute__Group__1 + @init { + int stackSize = keepStackSize(); + } +: + rule__Attribute__Group__1__Impl + rule__Attribute__Group__2 +; +finally { + restoreStackSize(stackSize); +} + +rule__Attribute__Group__1__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getAttributeAccess().getWSTerminalRuleCall_1()); } +( RULE_WS)* +{ after(grammarAccess.getAttributeAccess().getWSTerminalRuleCall_1()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__Attribute__Group__2 + @init { + int stackSize = keepStackSize(); + } +: + rule__Attribute__Group__2__Impl + rule__Attribute__Group__3 +; +finally { + restoreStackSize(stackSize); +} + +rule__Attribute__Group__2__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getAttributeAccess().getNameAssignment_2()); } +(rule__Attribute__NameAssignment_2) +{ after(grammarAccess.getAttributeAccess().getNameAssignment_2()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__Attribute__Group__3 + @init { + int stackSize = keepStackSize(); + } +: + rule__Attribute__Group__3__Impl + rule__Attribute__Group__4 +; +finally { + restoreStackSize(stackSize); +} + +rule__Attribute__Group__3__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getAttributeAccess().getWSTerminalRuleCall_3()); } +( RULE_WS)* +{ after(grammarAccess.getAttributeAccess().getWSTerminalRuleCall_3()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__Attribute__Group__4 + @init { + int stackSize = keepStackSize(); + } +: + rule__Attribute__Group__4__Impl + rule__Attribute__Group__5 +; +finally { + restoreStackSize(stackSize); +} + +rule__Attribute__Group__4__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getAttributeAccess().getValueAssignment_4()); } +(rule__Attribute__ValueAssignment_4)? +{ after(grammarAccess.getAttributeAccess().getValueAssignment_4()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__Attribute__Group__5 + @init { + int stackSize = keepStackSize(); + } +: + rule__Attribute__Group__5__Impl +; +finally { + restoreStackSize(stackSize); +} + +rule__Attribute__Group__5__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getAttributeAccess().getRightSquareBracketKeyword_5()); } + + ']' + +{ after(grammarAccess.getAttributeAccess().getRightSquareBracketKeyword_5()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + + + + + + + + + + + + + +rule__AttributeValue__Group__0 + @init { + int stackSize = keepStackSize(); + } +: + rule__AttributeValue__Group__0__Impl + rule__AttributeValue__Group__1 +; +finally { + restoreStackSize(stackSize); +} + +rule__AttributeValue__Group__0__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getAttributeValueAccess().getOperatorAssignment_0()); } +(rule__AttributeValue__OperatorAssignment_0) +{ after(grammarAccess.getAttributeValueAccess().getOperatorAssignment_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__AttributeValue__Group__1 + @init { + int stackSize = keepStackSize(); + } +: + rule__AttributeValue__Group__1__Impl + rule__AttributeValue__Group__2 +; +finally { + restoreStackSize(stackSize); +} + +rule__AttributeValue__Group__1__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getAttributeValueAccess().getWSTerminalRuleCall_1()); } +( RULE_WS)* +{ after(grammarAccess.getAttributeValueAccess().getWSTerminalRuleCall_1()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__AttributeValue__Group__2 + @init { + int stackSize = keepStackSize(); + } +: + rule__AttributeValue__Group__2__Impl + rule__AttributeValue__Group__3 +; +finally { + restoreStackSize(stackSize); +} + +rule__AttributeValue__Group__2__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getAttributeValueAccess().getValueAssignment_2()); } +(rule__AttributeValue__ValueAssignment_2) +{ after(grammarAccess.getAttributeValueAccess().getValueAssignment_2()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__AttributeValue__Group__3 + @init { + int stackSize = keepStackSize(); + } +: + rule__AttributeValue__Group__3__Impl +; +finally { + restoreStackSize(stackSize); +} + +rule__AttributeValue__Group__3__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getAttributeValueAccess().getWSTerminalRuleCall_3()); } +( RULE_WS)* +{ after(grammarAccess.getAttributeValueAccess().getWSTerminalRuleCall_3()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + + + + + + + + + +rule__Pseudo__Group__0 + @init { + int stackSize = keepStackSize(); + } +: + rule__Pseudo__Group__0__Impl + rule__Pseudo__Group__1 +; +finally { + restoreStackSize(stackSize); +} + +rule__Pseudo__Group__0__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getPseudoAccess().getColonKeyword_0()); } + + ':' + +{ after(grammarAccess.getPseudoAccess().getColonKeyword_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__Pseudo__Group__1 + @init { + int stackSize = keepStackSize(); + } +: + rule__Pseudo__Group__1__Impl +; +finally { + restoreStackSize(stackSize); +} + +rule__Pseudo__Group__1__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getPseudoAccess().getAlternatives_1()); } +(rule__Pseudo__Alternatives_1) +{ after(grammarAccess.getPseudoAccess().getAlternatives_1()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + + + + + +rule__Pseudo__Group_1_1__0 + @init { + int stackSize = keepStackSize(); + } +: + rule__Pseudo__Group_1_1__0__Impl + rule__Pseudo__Group_1_1__1 +; +finally { + restoreStackSize(stackSize); +} + +rule__Pseudo__Group_1_1__0__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getPseudoAccess().getPseudoAssignment_1_1_0()); } +(rule__Pseudo__PseudoAssignment_1_1_0) +{ after(grammarAccess.getPseudoAccess().getPseudoAssignment_1_1_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__Pseudo__Group_1_1__1 + @init { + int stackSize = keepStackSize(); + } +: + rule__Pseudo__Group_1_1__1__Impl + rule__Pseudo__Group_1_1__2 +; +finally { + restoreStackSize(stackSize); +} + +rule__Pseudo__Group_1_1__1__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getPseudoAccess().getLeftParenthesisKeyword_1_1_1()); } + + '(' + +{ after(grammarAccess.getPseudoAccess().getLeftParenthesisKeyword_1_1_1()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__Pseudo__Group_1_1__2 + @init { + int stackSize = keepStackSize(); + } +: + rule__Pseudo__Group_1_1__2__Impl + rule__Pseudo__Group_1_1__3 +; +finally { + restoreStackSize(stackSize); +} + +rule__Pseudo__Group_1_1__2__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getPseudoAccess().getWSTerminalRuleCall_1_1_2()); } +( RULE_WS)* +{ after(grammarAccess.getPseudoAccess().getWSTerminalRuleCall_1_1_2()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__Pseudo__Group_1_1__3 + @init { + int stackSize = keepStackSize(); + } +: + rule__Pseudo__Group_1_1__3__Impl + rule__Pseudo__Group_1_1__4 +; +finally { + restoreStackSize(stackSize); +} + +rule__Pseudo__Group_1_1__3__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getPseudoAccess().getGroup_1_1_3()); } +(rule__Pseudo__Group_1_1_3__0)? +{ after(grammarAccess.getPseudoAccess().getGroup_1_1_3()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__Pseudo__Group_1_1__4 + @init { + int stackSize = keepStackSize(); + } +: + rule__Pseudo__Group_1_1__4__Impl +; +finally { + restoreStackSize(stackSize); +} + +rule__Pseudo__Group_1_1__4__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getPseudoAccess().getRightParenthesisKeyword_1_1_4()); } + + ')' + +{ after(grammarAccess.getPseudoAccess().getRightParenthesisKeyword_1_1_4()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + + + + + + + + + + + +rule__Pseudo__Group_1_1_3__0 + @init { + int stackSize = keepStackSize(); + } +: + rule__Pseudo__Group_1_1_3__0__Impl + rule__Pseudo__Group_1_1_3__1 +; +finally { + restoreStackSize(stackSize); +} + +rule__Pseudo__Group_1_1_3__0__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getPseudoAccess().getArgsAssignment_1_1_3_0()); } +(rule__Pseudo__ArgsAssignment_1_1_3_0) +{ after(grammarAccess.getPseudoAccess().getArgsAssignment_1_1_3_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__Pseudo__Group_1_1_3__1 + @init { + int stackSize = keepStackSize(); + } +: + rule__Pseudo__Group_1_1_3__1__Impl +; +finally { + restoreStackSize(stackSize); +} + +rule__Pseudo__Group_1_1_3__1__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getPseudoAccess().getWSTerminalRuleCall_1_1_3_1()); } +( RULE_WS)* +{ after(grammarAccess.getPseudoAccess().getWSTerminalRuleCall_1_1_3_1()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + + + + + + +rule__Stylesheet__CharsetAssignment_0_1 + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getStylesheetAccess().getCharsetSTRINGTerminalRuleCall_0_1_0()); } + RULE_STRING{ after(grammarAccess.getStylesheetAccess().getCharsetSTRINGTerminalRuleCall_0_1_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + +rule__Stylesheet__ImportsAssignment_2_0 + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getStylesheetAccess().getImportsImportParserRuleCall_2_0_0()); } + ruleImport{ after(grammarAccess.getStylesheetAccess().getImportsImportParserRuleCall_2_0_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + +rule__Stylesheet__ContentsAssignment_3_0 + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getStylesheetAccess().getContentsContentParserRuleCall_3_0_0()); } + ruleContent{ after(grammarAccess.getStylesheetAccess().getContentsContentParserRuleCall_3_0_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + +rule__Import__StringAssignment_1_0_1 + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getImportAccess().getStringSTRINGTerminalRuleCall_1_0_1_0()); } + RULE_STRING{ after(grammarAccess.getImportAccess().getStringSTRINGTerminalRuleCall_1_0_1_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + +rule__Import__UriAssignment_1_1_1 + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getImportAccess().getUriUriParserRuleCall_1_1_1_0()); } + ruleUri{ after(grammarAccess.getImportAccess().getUriUriParserRuleCall_1_1_1_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + +rule__Import__MediaAssignment_3_0 + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getImportAccess().getMediaIDTerminalRuleCall_3_0_0()); } + RULE_ID{ after(grammarAccess.getImportAccess().getMediaIDTerminalRuleCall_3_0_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + +rule__Import__MediaAssignment_3_2_2 + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getImportAccess().getMediaIDTerminalRuleCall_3_2_2_0()); } + RULE_ID{ after(grammarAccess.getImportAccess().getMediaIDTerminalRuleCall_3_2_2_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + +rule__Media__MediaAssignment_2 + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getMediaAccess().getMediaIDTerminalRuleCall_2_0()); } + RULE_ID{ after(grammarAccess.getMediaAccess().getMediaIDTerminalRuleCall_2_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + +rule__Media__MediaAssignment_4_2 + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getMediaAccess().getMediaIDTerminalRuleCall_4_2_0()); } + RULE_ID{ after(grammarAccess.getMediaAccess().getMediaIDTerminalRuleCall_4_2_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + +rule__Media__RulesAssignment_7 + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getMediaAccess().getRulesRulesetParserRuleCall_7_0()); } + ruleRuleset{ after(grammarAccess.getMediaAccess().getRulesRulesetParserRuleCall_7_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + +rule__Page__PseudoAssignment_3 + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getPageAccess().getPseudoPseudoPageParserRuleCall_3_0()); } + rulePseudoPage{ after(grammarAccess.getPageAccess().getPseudoPseudoPageParserRuleCall_3_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + +rule__Page__DeclarationsAssignment_6 + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getPageAccess().getDeclarationsDeclarationParserRuleCall_6_0()); } + ruleDeclaration{ after(grammarAccess.getPageAccess().getDeclarationsDeclarationParserRuleCall_6_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + +rule__Page__DeclarationsAssignment_7_2 + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getPageAccess().getDeclarationsDeclarationParserRuleCall_7_2_0()); } + ruleDeclaration{ after(grammarAccess.getPageAccess().getDeclarationsDeclarationParserRuleCall_7_2_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + +rule__PseudoPage__IdAssignment_1 + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getPseudoPageAccess().getIdIDTerminalRuleCall_1_0()); } + RULE_ID{ after(grammarAccess.getPseudoPageAccess().getIdIDTerminalRuleCall_1_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + +rule__Ruleset__SelectorsAssignment_0 + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getRulesetAccess().getSelectorsSelectorParserRuleCall_0_0()); } + ruleSelector{ after(grammarAccess.getRulesetAccess().getSelectorsSelectorParserRuleCall_0_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + +rule__Ruleset__SelectorsAssignment_1_2 + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getRulesetAccess().getSelectorsSelectorParserRuleCall_1_2_0()); } + ruleSelector{ after(grammarAccess.getRulesetAccess().getSelectorsSelectorParserRuleCall_1_2_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + +rule__Ruleset__PropertiesAssignment_4 + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getRulesetAccess().getPropertiesDeclarationParserRuleCall_4_0()); } + ruleDeclaration{ after(grammarAccess.getRulesetAccess().getPropertiesDeclarationParserRuleCall_4_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + +rule__Ruleset__PropertiesAssignment_5_2 + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getRulesetAccess().getPropertiesDeclarationParserRuleCall_5_2_0()); } + ruleDeclaration{ after(grammarAccess.getRulesetAccess().getPropertiesDeclarationParserRuleCall_5_2_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + +rule__CompositeSelector__LeftAssignment_0 + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getCompositeSelectorAccess().getLeftSimpleSelectorParserRuleCall_0_0()); } + ruleSimpleSelector{ after(grammarAccess.getCompositeSelectorAccess().getLeftSimpleSelectorParserRuleCall_0_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + +rule__CompositeSelector__CombinatorAssignment_1_1_1 + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getCompositeSelectorAccess().getCombinatorCombinatorParserRuleCall_1_1_1_0()); } + ruleCombinator{ after(grammarAccess.getCompositeSelectorAccess().getCombinatorCombinatorParserRuleCall_1_1_1_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + +rule__CompositeSelector__RightAssignment_2 + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getCompositeSelectorAccess().getRightSelectorParserRuleCall_2_0()); } + ruleSelector{ after(grammarAccess.getCompositeSelectorAccess().getRightSelectorParserRuleCall_2_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + +rule__SimpleSelector__ElementNameAssignment_0_0 + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getSimpleSelectorAccess().getElementNameAlternatives_0_0_0()); } +(rule__SimpleSelector__ElementNameAlternatives_0_0_0) +{ after(grammarAccess.getSimpleSelectorAccess().getElementNameAlternatives_0_0_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + +rule__SimpleSelector__ConditionAssignment_0_1 + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getSimpleSelectorAccess().getConditionSelectorConditionParserRuleCall_0_1_0()); } + ruleSelectorCondition{ after(grammarAccess.getSimpleSelectorAccess().getConditionSelectorConditionParserRuleCall_0_1_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + +rule__SimpleSelector__ConditionAssignment_1 + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getSimpleSelectorAccess().getConditionSelectorConditionParserRuleCall_1_0()); } + ruleSelectorCondition{ after(grammarAccess.getSimpleSelectorAccess().getConditionSelectorConditionParserRuleCall_1_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + +rule__Combinator__KindAssignment_0 + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getCombinatorAccess().getKindKINDEnumRuleCall_0_0()); } + ruleKIND{ after(grammarAccess.getCombinatorAccess().getKindKINDEnumRuleCall_0_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + +rule__Declaration__PropertyAssignment_0 + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getDeclarationAccess().getPropertyIDTerminalRuleCall_0_0()); } + RULE_ID{ after(grammarAccess.getDeclarationAccess().getPropertyIDTerminalRuleCall_0_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + +rule__Declaration__ExpressionAssignment_4 + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getDeclarationAccess().getExpressionExpressionParserRuleCall_4_0()); } + ruleExpression{ after(grammarAccess.getDeclarationAccess().getExpressionExpressionParserRuleCall_4_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + +rule__Declaration__ImportantAssignment_5_0 + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getDeclarationAccess().getImportantT_IMPORTANTTerminalRuleCall_5_0_0()); } + RULE_T_IMPORTANT{ after(grammarAccess.getDeclarationAccess().getImportantT_IMPORTANTTerminalRuleCall_5_0_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + +rule__Expression__TermsAssignment_0 + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getExpressionAccess().getTermsTermParserRuleCall_0_0()); } + ruleTerm{ after(grammarAccess.getExpressionAccess().getTermsTermParserRuleCall_0_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + +rule__Expression__SubtermsAssignment_1 + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getExpressionAccess().getSubtermsSubtermParserRuleCall_1_0()); } + ruleSubterm{ after(grammarAccess.getExpressionAccess().getSubtermsSubtermParserRuleCall_1_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + +rule__Subterm__OperatorAssignment_0 + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getSubtermAccess().getOperatorOperatorParserRuleCall_0_0()); } + ruleOperator{ after(grammarAccess.getSubtermAccess().getOperatorOperatorParserRuleCall_0_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + +rule__Subterm__TermAssignment_1 + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getSubtermAccess().getTermTermParserRuleCall_1_0()); } + ruleTerm{ after(grammarAccess.getSubtermAccess().getTermTermParserRuleCall_1_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + +rule__Function__NameAssignment_0 + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getFunctionAccess().getNameIDTerminalRuleCall_0_0()); } + RULE_ID{ after(grammarAccess.getFunctionAccess().getNameIDTerminalRuleCall_0_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + +rule__Function__ArgsAssignment_3 + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getFunctionAccess().getArgsExpressionParserRuleCall_3_0()); } + ruleExpression{ after(grammarAccess.getFunctionAccess().getArgsExpressionParserRuleCall_3_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + +rule__Name__ValueAssignment + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getNameAccess().getValueIDTerminalRuleCall_0()); } + RULE_ID{ after(grammarAccess.getNameAccess().getValueIDTerminalRuleCall_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + +rule__Number__OpAssignment_0 + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getNumberAccess().getOpUnaryOperatorParserRuleCall_0_0()); } + ruleUnaryOperator{ after(grammarAccess.getNumberAccess().getOpUnaryOperatorParserRuleCall_0_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + +rule__Number__ValueAssignment_1 + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getNumberAccess().getValueT_NUMTerminalRuleCall_1_0()); } + RULE_T_NUM{ after(grammarAccess.getNumberAccess().getValueT_NUMTerminalRuleCall_1_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + +rule__Percentage__OpAssignment_0 + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getPercentageAccess().getOpUnaryOperatorParserRuleCall_0_0()); } + ruleUnaryOperator{ after(grammarAccess.getPercentageAccess().getOpUnaryOperatorParserRuleCall_0_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + +rule__Percentage__ValueAssignment_1 + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getPercentageAccess().getValueT_NUMTerminalRuleCall_1_0()); } + RULE_T_NUM{ after(grammarAccess.getPercentageAccess().getValueT_NUMTerminalRuleCall_1_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + +rule__Percentage__UnitAssignment_2 + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getPercentageAccess().getUnitPC_UNITTerminalRuleCall_2_0()); } + RULE_PC_UNIT{ after(grammarAccess.getPercentageAccess().getUnitPC_UNITTerminalRuleCall_2_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + +rule__Length__OpAssignment_0 + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getLengthAccess().getOpUnaryOperatorParserRuleCall_0_0()); } + ruleUnaryOperator{ after(grammarAccess.getLengthAccess().getOpUnaryOperatorParserRuleCall_0_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + +rule__Length__ValueAssignment_1 + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getLengthAccess().getValueT_NUMTerminalRuleCall_1_0()); } + RULE_T_NUM{ after(grammarAccess.getLengthAccess().getValueT_NUMTerminalRuleCall_1_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + +rule__Length__UnitAssignment_2 + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getLengthAccess().getUnitLEN_UNITTerminalRuleCall_2_0()); } + RULE_LEN_UNIT{ after(grammarAccess.getLengthAccess().getUnitLEN_UNITTerminalRuleCall_2_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + +rule__Ems__OpAssignment_0 + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getEmsAccess().getOpUnaryOperatorParserRuleCall_0_0()); } + ruleUnaryOperator{ after(grammarAccess.getEmsAccess().getOpUnaryOperatorParserRuleCall_0_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + +rule__Ems__ValueAssignment_1 + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getEmsAccess().getValueT_NUMTerminalRuleCall_1_0()); } + RULE_T_NUM{ after(grammarAccess.getEmsAccess().getValueT_NUMTerminalRuleCall_1_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + +rule__Ems__UnitAssignment_2 + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getEmsAccess().getUnitEM_UNITTerminalRuleCall_2_0()); } + RULE_EM_UNIT{ after(grammarAccess.getEmsAccess().getUnitEM_UNITTerminalRuleCall_2_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + +rule__Exs__OpAssignment_0 + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getExsAccess().getOpUnaryOperatorParserRuleCall_0_0()); } + ruleUnaryOperator{ after(grammarAccess.getExsAccess().getOpUnaryOperatorParserRuleCall_0_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + +rule__Exs__ValueAssignment_1 + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getExsAccess().getValueT_NUMTerminalRuleCall_1_0()); } + RULE_T_NUM{ after(grammarAccess.getExsAccess().getValueT_NUMTerminalRuleCall_1_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + +rule__Exs__UnitAssignment_2 + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getExsAccess().getUnitEX_UNITTerminalRuleCall_2_0()); } + RULE_EX_UNIT{ after(grammarAccess.getExsAccess().getUnitEX_UNITTerminalRuleCall_2_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + +rule__Angle__OpAssignment_0 + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getAngleAccess().getOpUnaryOperatorParserRuleCall_0_0()); } + ruleUnaryOperator{ after(grammarAccess.getAngleAccess().getOpUnaryOperatorParserRuleCall_0_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + +rule__Angle__ValueAssignment_1 + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getAngleAccess().getValueT_NUMTerminalRuleCall_1_0()); } + RULE_T_NUM{ after(grammarAccess.getAngleAccess().getValueT_NUMTerminalRuleCall_1_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + +rule__Angle__UnitAssignment_2 + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getAngleAccess().getUnitANGLE_UNITTerminalRuleCall_2_0()); } + RULE_ANGLE_UNIT{ after(grammarAccess.getAngleAccess().getUnitANGLE_UNITTerminalRuleCall_2_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + +rule__Time__OpAssignment_0 + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getTimeAccess().getOpUnaryOperatorParserRuleCall_0_0()); } + ruleUnaryOperator{ after(grammarAccess.getTimeAccess().getOpUnaryOperatorParserRuleCall_0_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + +rule__Time__ValueAssignment_1 + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getTimeAccess().getValueT_NUMTerminalRuleCall_1_0()); } + RULE_T_NUM{ after(grammarAccess.getTimeAccess().getValueT_NUMTerminalRuleCall_1_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + +rule__Time__UnitAssignment_2 + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getTimeAccess().getUnitTIME_UNITTerminalRuleCall_2_0()); } + RULE_TIME_UNIT{ after(grammarAccess.getTimeAccess().getUnitTIME_UNITTerminalRuleCall_2_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + +rule__Frequency__OpAssignment_0 + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getFrequencyAccess().getOpUnaryOperatorParserRuleCall_0_0()); } + ruleUnaryOperator{ after(grammarAccess.getFrequencyAccess().getOpUnaryOperatorParserRuleCall_0_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + +rule__Frequency__ValueAssignment_1 + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getFrequencyAccess().getValueT_NUMTerminalRuleCall_1_0()); } + RULE_T_NUM{ after(grammarAccess.getFrequencyAccess().getValueT_NUMTerminalRuleCall_1_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + +rule__Frequency__UnitAssignment_2 + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getFrequencyAccess().getUnitFREQ_UNITTerminalRuleCall_2_0()); } + RULE_FREQ_UNIT{ after(grammarAccess.getFrequencyAccess().getUnitFREQ_UNITTerminalRuleCall_2_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + +rule__Uri__ValueAssignment_2 + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getUriAccess().getValueSTRINGTerminalRuleCall_2_0()); } + RULE_STRING{ after(grammarAccess.getUriAccess().getValueSTRINGTerminalRuleCall_2_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + +rule__StringValue__ValueAssignment + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getStringValueAccess().getValueSTRINGTerminalRuleCall_0()); } + RULE_STRING{ after(grammarAccess.getStringValueAccess().getValueSTRINGTerminalRuleCall_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + +rule__HexColor__ValueAssignment + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getHexColorAccess().getValueHASHTerminalRuleCall_0()); } + RULE_HASH{ after(grammarAccess.getHexColorAccess().getValueHASHTerminalRuleCall_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + +rule__Class__ClassAssignment + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getClassAccess().getClassT_CLASSTerminalRuleCall_0()); } + RULE_T_CLASS{ after(grammarAccess.getClassAccess().getClassT_CLASSTerminalRuleCall_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + +rule__Attribute__NameAssignment_2 + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getAttributeAccess().getNameIDTerminalRuleCall_2_0()); } + RULE_ID{ after(grammarAccess.getAttributeAccess().getNameIDTerminalRuleCall_2_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + +rule__Attribute__ValueAssignment_4 + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getAttributeAccess().getValueAttributeValueParserRuleCall_4_0()); } + ruleAttributeValue{ after(grammarAccess.getAttributeAccess().getValueAttributeValueParserRuleCall_4_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + +rule__AttributeValue__OperatorAssignment_0 + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getAttributeValueAccess().getOperatorATTRIBUTE_OPEnumRuleCall_0_0()); } + ruleATTRIBUTE_OP{ after(grammarAccess.getAttributeValueAccess().getOperatorATTRIBUTE_OPEnumRuleCall_0_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + +rule__AttributeValue__ValueAssignment_2 + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getAttributeValueAccess().getValueAlternatives_2_0()); } +(rule__AttributeValue__ValueAlternatives_2_0) +{ after(grammarAccess.getAttributeValueAccess().getValueAlternatives_2_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + +rule__Pseudo__PseudoAssignment_1_0 + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getPseudoAccess().getPseudoIDTerminalRuleCall_1_0_0()); } + RULE_ID{ after(grammarAccess.getPseudoAccess().getPseudoIDTerminalRuleCall_1_0_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + +rule__Pseudo__PseudoAssignment_1_1_0 + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getPseudoAccess().getPseudoIDTerminalRuleCall_1_1_0_0()); } + RULE_ID{ after(grammarAccess.getPseudoAccess().getPseudoIDTerminalRuleCall_1_1_0_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + +rule__Pseudo__ArgsAssignment_1_1_3_0 + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getPseudoAccess().getArgsIDTerminalRuleCall_1_1_3_0_0()); } + RULE_ID{ after(grammarAccess.getPseudoAccess().getArgsIDTerminalRuleCall_1_1_3_0_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + +rule__CSSId__ValueAssignment + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getCSSIdAccess().getValueHASHTerminalRuleCall_0()); } + RULE_HASH{ after(grammarAccess.getCSSIdAccess().getValueHASHTerminalRuleCall_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + +rule__UnaryOperator__OperatorAssignment + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getUnaryOperatorAccess().getOperatorUNARYEnumRuleCall_0()); } + ruleUNARY{ after(grammarAccess.getUnaryOperatorAccess().getOperatorUNARYEnumRuleCall_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +RULE_HASH : '#' ('A'..'Z'|'a'..'z'|'0'..'9')+; + +RULE_T_CLASS : '.' RULE_ID; + +RULE_T_IMPORTANT : '!important'; + +RULE_PC_UNIT : '%'; + +RULE_LEN_UNIT : ('px'|'cm'|'mm'|'in'|'pt'|'pc'); + +RULE_EM_UNIT : 'em'; + +RULE_EX_UNIT : 'ex'; + +RULE_ANGLE_UNIT : ('deg'|'rad'|'grad'); + +RULE_TIME_UNIT : ('s'|'ms'); + +RULE_FREQ_UNIT : ('hz'|'mhz'); + +RULE_T_NUM : (('0'..'9')+|('0'..'9')* '.' ('0'..'9')+); + +RULE_ID : ('a'..'z'|'A'..'Z'|'_') ('a'..'z'|'A'..'Z'|'_'|'0'..'9')*; + +RULE_STRING : ('"' ('\\' ('b'|'t'|'n'|'f'|'r'|'u'|'"'|'\''|'\\')|~(('\\'|'"')))* '"'|'\'' ('\\' ('b'|'t'|'n'|'f'|'r'|'u'|'"'|'\''|'\\')|~(('\\'|'\'')))* '\''); + +RULE_CDO : '<!--'; + +RULE_CDC : '-->'; + +RULE_ML_COMMENT : '/*' ( options {greedy=false;} : . )*'*/'; + +RULE_WS : (' '|'\t'|'\r'|'\n')+; + +RULE_ANY_OTHER : .; + + diff --git a/incoming/org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.tokens b/incoming/org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.tokens new file mode 100644 index 00000000000..8c80dd262bb --- /dev/null +++ b/incoming/org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.tokens @@ -0,0 +1,62 @@ +RULE_ID=7
+T__29=29
+T__28=28
+T__27=27
+T__26=26
+T__25=25
+T__24=24
+T__23=23
+RULE_PC_UNIT=11
+T__22=22
+RULE_ANY_OTHER=21
+RULE_T_CLASS=19
+RULE_CDC=6
+T__42=42
+RULE_CDO=5
+T__43=43
+T__40=40
+T__41=41
+RULE_FREQ_UNIT=17
+RULE_T_IMPORTANT=9
+RULE_HASH=18
+RULE_ML_COMMENT=20
+T__30=30
+RULE_TIME_UNIT=16
+T__31=31
+RULE_LEN_UNIT=12
+T__32=32
+RULE_STRING=8
+T__33=33
+T__34=34
+T__35=35
+T__36=36
+T__37=37
+T__38=38
+T__39=39
+RULE_T_NUM=10
+RULE_ANGLE_UNIT=15
+RULE_EX_UNIT=14
+RULE_WS=4
+RULE_EM_UNIT=13
+'}'=35
+'/'=41
+'url('=40
+'>'=25
+'{'=34
+'~='=27
+'@charset '=29
+'@media'=33
+';'=30
+'!='=28
+'@import'=31
+'='=26
+'('=38
+':'=37
+'['=42
+'*'=22
+'-'=23
+'+'=24
+','=32
+')'=39
+']'=43
+'@page'=36
diff --git a/incoming/org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSSLexer.java b/incoming/org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSSLexer.java new file mode 100644 index 00000000000..eb43998ac2e --- /dev/null +++ b/incoming/org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSSLexer.java @@ -0,0 +1,2136 @@ +package org.eclipse.papyrus.infra.gmfdiag.ui.contentassist.antlr.internal;
+
+// Hack: Use our own Lexer superclass by means of import.
+// Currently there is no other way to specify the superclass for the lexer.
+import org.eclipse.xtext.ui.editor.contentassist.antlr.internal.Lexer;
+
+
+import org.antlr.runtime.*;
+import java.util.Stack;
+import java.util.List;
+import java.util.ArrayList;
+
+@SuppressWarnings("all") +public class InternalCSSLexer extends Lexer {
+ public static final int RULE_ID=7;
+ public static final int T__29=29;
+ public static final int T__28=28;
+ public static final int T__27=27;
+ public static final int T__26=26;
+ public static final int T__25=25;
+ public static final int T__24=24;
+ public static final int RULE_PC_UNIT=11;
+ public static final int T__23=23;
+ public static final int T__22=22;
+ public static final int RULE_ANY_OTHER=21;
+ public static final int RULE_T_CLASS=19;
+ public static final int EOF=-1;
+ public static final int RULE_CDC=6;
+ public static final int RULE_CDO=5;
+ public static final int T__42=42;
+ public static final int T__43=43;
+ public static final int T__40=40;
+ public static final int T__41=41;
+ public static final int RULE_FREQ_UNIT=17;
+ public static final int RULE_T_IMPORTANT=9;
+ public static final int RULE_HASH=18;
+ public static final int RULE_ML_COMMENT=20;
+ public static final int T__30=30;
+ public static final int RULE_TIME_UNIT=16;
+ public static final int T__31=31;
+ public static final int RULE_LEN_UNIT=12;
+ public static final int T__32=32;
+ public static final int RULE_STRING=8;
+ public static final int T__33=33;
+ public static final int T__34=34;
+ public static final int T__35=35;
+ public static final int T__36=36;
+ public static final int T__37=37;
+ public static final int T__38=38;
+ public static final int T__39=39;
+ public static final int RULE_T_NUM=10;
+ public static final int RULE_ANGLE_UNIT=15;
+ public static final int RULE_EX_UNIT=14;
+ public static final int RULE_WS=4;
+ public static final int RULE_EM_UNIT=13;
+
+ // delegates
+ // delegators
+
+ public InternalCSSLexer() {;}
+ public InternalCSSLexer(CharStream input) {
+ this(input, new RecognizerSharedState());
+ }
+ public InternalCSSLexer(CharStream input, RecognizerSharedState state) {
+ super(input,state);
+
+ }
+ public String getGrammarFileName() { return "../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g"; }
+
+ // $ANTLR start "T__22"
+ public final void mT__22() throws RecognitionException {
+ try {
+ int _type = T__22;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:11:7: ( '*' )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:11:9: '*'
+ {
+ match('*');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__22"
+
+ // $ANTLR start "T__23"
+ public final void mT__23() throws RecognitionException {
+ try {
+ int _type = T__23;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:12:7: ( '-' )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:12:9: '-'
+ {
+ match('-');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__23"
+
+ // $ANTLR start "T__24"
+ public final void mT__24() throws RecognitionException {
+ try {
+ int _type = T__24;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:13:7: ( '+' )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:13:9: '+'
+ {
+ match('+');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__24"
+
+ // $ANTLR start "T__25"
+ public final void mT__25() throws RecognitionException {
+ try {
+ int _type = T__25;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:14:7: ( '>' )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:14:9: '>'
+ {
+ match('>');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__25"
+
+ // $ANTLR start "T__26"
+ public final void mT__26() throws RecognitionException {
+ try {
+ int _type = T__26;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:15:7: ( '=' )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:15:9: '='
+ {
+ match('=');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__26"
+
+ // $ANTLR start "T__27"
+ public final void mT__27() throws RecognitionException {
+ try {
+ int _type = T__27;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:16:7: ( '~=' )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:16:9: '~='
+ {
+ match("~=");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__27"
+
+ // $ANTLR start "T__28"
+ public final void mT__28() throws RecognitionException {
+ try {
+ int _type = T__28;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:17:7: ( '!=' )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:17:9: '!='
+ {
+ match("!=");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__28"
+
+ // $ANTLR start "T__29"
+ public final void mT__29() throws RecognitionException {
+ try {
+ int _type = T__29;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:18:7: ( '@charset ' )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:18:9: '@charset '
+ {
+ match("@charset ");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__29"
+
+ // $ANTLR start "T__30"
+ public final void mT__30() throws RecognitionException {
+ try {
+ int _type = T__30;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:19:7: ( ';' )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:19:9: ';'
+ {
+ match(';');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__30"
+
+ // $ANTLR start "T__31"
+ public final void mT__31() throws RecognitionException {
+ try {
+ int _type = T__31;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:20:7: ( '@import' )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:20:9: '@import'
+ {
+ match("@import");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__31"
+
+ // $ANTLR start "T__32"
+ public final void mT__32() throws RecognitionException {
+ try {
+ int _type = T__32;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:21:7: ( ',' )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:21:9: ','
+ {
+ match(',');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__32"
+
+ // $ANTLR start "T__33"
+ public final void mT__33() throws RecognitionException {
+ try {
+ int _type = T__33;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:22:7: ( '@media' )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:22:9: '@media'
+ {
+ match("@media");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__33"
+
+ // $ANTLR start "T__34"
+ public final void mT__34() throws RecognitionException {
+ try {
+ int _type = T__34;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:23:7: ( '{' )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:23:9: '{'
+ {
+ match('{');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__34"
+
+ // $ANTLR start "T__35"
+ public final void mT__35() throws RecognitionException {
+ try {
+ int _type = T__35;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:24:7: ( '}' )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:24:9: '}'
+ {
+ match('}');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__35"
+
+ // $ANTLR start "T__36"
+ public final void mT__36() throws RecognitionException {
+ try {
+ int _type = T__36;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:25:7: ( '@page' )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:25:9: '@page'
+ {
+ match("@page");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__36"
+
+ // $ANTLR start "T__37"
+ public final void mT__37() throws RecognitionException {
+ try {
+ int _type = T__37;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:26:7: ( ':' )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:26:9: ':'
+ {
+ match(':');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__37"
+
+ // $ANTLR start "T__38"
+ public final void mT__38() throws RecognitionException {
+ try {
+ int _type = T__38;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:27:7: ( '(' )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:27:9: '('
+ {
+ match('(');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__38"
+
+ // $ANTLR start "T__39"
+ public final void mT__39() throws RecognitionException {
+ try {
+ int _type = T__39;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:28:7: ( ')' )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:28:9: ')'
+ {
+ match(')');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__39"
+
+ // $ANTLR start "T__40"
+ public final void mT__40() throws RecognitionException {
+ try {
+ int _type = T__40;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:29:7: ( 'url(' )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:29:9: 'url('
+ {
+ match("url(");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__40"
+
+ // $ANTLR start "T__41"
+ public final void mT__41() throws RecognitionException {
+ try {
+ int _type = T__41;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:30:7: ( '/' )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:30:9: '/'
+ {
+ match('/');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__41"
+
+ // $ANTLR start "T__42"
+ public final void mT__42() throws RecognitionException {
+ try {
+ int _type = T__42;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:31:7: ( '[' )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:31:9: '['
+ {
+ match('[');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__42"
+
+ // $ANTLR start "T__43"
+ public final void mT__43() throws RecognitionException {
+ try {
+ int _type = T__43;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:32:7: ( ']' )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:32:9: ']'
+ {
+ match(']');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__43"
+
+ // $ANTLR start "RULE_HASH"
+ public final void mRULE_HASH() throws RecognitionException {
+ try {
+ int _type = RULE_HASH;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:7632:11: ( '#' ( 'A' .. 'Z' | 'a' .. 'z' | '0' .. '9' )+ )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:7632:13: '#' ( 'A' .. 'Z' | 'a' .. 'z' | '0' .. '9' )+
+ {
+ match('#');
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:7632:17: ( 'A' .. 'Z' | 'a' .. 'z' | '0' .. '9' )+
+ int cnt1=0;
+ loop1:
+ do {
+ int alt1=2;
+ int LA1_0 = input.LA(1);
+
+ if ( ((LA1_0>='0' && LA1_0<='9')||(LA1_0>='A' && LA1_0<='Z')||(LA1_0>='a' && LA1_0<='z')) ) {
+ alt1=1;
+ }
+
+
+ switch (alt1) {
+ case 1 :
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:
+ {
+ if ( (input.LA(1)>='0' && input.LA(1)<='9')||(input.LA(1)>='A' && input.LA(1)<='Z')||(input.LA(1)>='a' && input.LA(1)<='z') ) {
+ input.consume();
+
+ }
+ else {
+ MismatchedSetException mse = new MismatchedSetException(null,input);
+ recover(mse);
+ throw mse;}
+
+
+ }
+ break;
+
+ default :
+ if ( cnt1 >= 1 ) break loop1;
+ EarlyExitException eee =
+ new EarlyExitException(1, input);
+ throw eee;
+ }
+ cnt1++;
+ } while (true);
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "RULE_HASH"
+
+ // $ANTLR start "RULE_T_CLASS"
+ public final void mRULE_T_CLASS() throws RecognitionException {
+ try {
+ int _type = RULE_T_CLASS;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:7634:14: ( '.' RULE_ID )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:7634:16: '.' RULE_ID
+ {
+ match('.');
+ mRULE_ID();
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "RULE_T_CLASS"
+
+ // $ANTLR start "RULE_T_IMPORTANT"
+ public final void mRULE_T_IMPORTANT() throws RecognitionException {
+ try {
+ int _type = RULE_T_IMPORTANT;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:7636:18: ( '!important' )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:7636:20: '!important'
+ {
+ match("!important");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "RULE_T_IMPORTANT"
+
+ // $ANTLR start "RULE_PC_UNIT"
+ public final void mRULE_PC_UNIT() throws RecognitionException {
+ try {
+ int _type = RULE_PC_UNIT;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:7638:14: ( '%' )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:7638:16: '%'
+ {
+ match('%');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "RULE_PC_UNIT"
+
+ // $ANTLR start "RULE_LEN_UNIT"
+ public final void mRULE_LEN_UNIT() throws RecognitionException {
+ try {
+ int _type = RULE_LEN_UNIT;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:7640:15: ( ( 'px' | 'cm' | 'mm' | 'in' | 'pt' | 'pc' ) )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:7640:17: ( 'px' | 'cm' | 'mm' | 'in' | 'pt' | 'pc' )
+ {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:7640:17: ( 'px' | 'cm' | 'mm' | 'in' | 'pt' | 'pc' )
+ int alt2=6;
+ switch ( input.LA(1) ) {
+ case 'p':
+ {
+ switch ( input.LA(2) ) {
+ case 'x':
+ {
+ alt2=1;
+ }
+ break;
+ case 't':
+ {
+ alt2=5;
+ }
+ break;
+ case 'c':
+ {
+ alt2=6;
+ }
+ break;
+ default:
+ NoViableAltException nvae =
+ new NoViableAltException("", 2, 1, input);
+
+ throw nvae;
+ }
+
+ }
+ break;
+ case 'c':
+ {
+ alt2=2;
+ }
+ break;
+ case 'm':
+ {
+ alt2=3;
+ }
+ break;
+ case 'i':
+ {
+ alt2=4;
+ }
+ break;
+ default:
+ NoViableAltException nvae =
+ new NoViableAltException("", 2, 0, input);
+
+ throw nvae;
+ }
+
+ switch (alt2) {
+ case 1 :
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:7640:18: 'px'
+ {
+ match("px");
+
+
+ }
+ break;
+ case 2 :
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:7640:23: 'cm'
+ {
+ match("cm");
+
+
+ }
+ break;
+ case 3 :
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:7640:28: 'mm'
+ {
+ match("mm");
+
+
+ }
+ break;
+ case 4 :
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:7640:33: 'in'
+ {
+ match("in");
+
+
+ }
+ break;
+ case 5 :
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:7640:38: 'pt'
+ {
+ match("pt");
+
+
+ }
+ break;
+ case 6 :
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:7640:43: 'pc'
+ {
+ match("pc");
+
+
+ }
+ break;
+
+ }
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "RULE_LEN_UNIT"
+
+ // $ANTLR start "RULE_EM_UNIT"
+ public final void mRULE_EM_UNIT() throws RecognitionException {
+ try {
+ int _type = RULE_EM_UNIT;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:7642:14: ( 'em' )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:7642:16: 'em'
+ {
+ match("em");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "RULE_EM_UNIT"
+
+ // $ANTLR start "RULE_EX_UNIT"
+ public final void mRULE_EX_UNIT() throws RecognitionException {
+ try {
+ int _type = RULE_EX_UNIT;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:7644:14: ( 'ex' )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:7644:16: 'ex'
+ {
+ match("ex");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "RULE_EX_UNIT"
+
+ // $ANTLR start "RULE_ANGLE_UNIT"
+ public final void mRULE_ANGLE_UNIT() throws RecognitionException {
+ try {
+ int _type = RULE_ANGLE_UNIT;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:7646:17: ( ( 'deg' | 'rad' | 'grad' ) )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:7646:19: ( 'deg' | 'rad' | 'grad' )
+ {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:7646:19: ( 'deg' | 'rad' | 'grad' )
+ int alt3=3;
+ switch ( input.LA(1) ) {
+ case 'd':
+ {
+ alt3=1;
+ }
+ break;
+ case 'r':
+ {
+ alt3=2;
+ }
+ break;
+ case 'g':
+ {
+ alt3=3;
+ }
+ break;
+ default:
+ NoViableAltException nvae =
+ new NoViableAltException("", 3, 0, input);
+
+ throw nvae;
+ }
+
+ switch (alt3) {
+ case 1 :
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:7646:20: 'deg'
+ {
+ match("deg");
+
+
+ }
+ break;
+ case 2 :
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:7646:26: 'rad'
+ {
+ match("rad");
+
+
+ }
+ break;
+ case 3 :
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:7646:32: 'grad'
+ {
+ match("grad");
+
+
+ }
+ break;
+
+ }
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "RULE_ANGLE_UNIT"
+
+ // $ANTLR start "RULE_TIME_UNIT"
+ public final void mRULE_TIME_UNIT() throws RecognitionException {
+ try {
+ int _type = RULE_TIME_UNIT;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:7648:16: ( ( 's' | 'ms' ) )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:7648:18: ( 's' | 'ms' )
+ {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:7648:18: ( 's' | 'ms' )
+ int alt4=2;
+ int LA4_0 = input.LA(1);
+
+ if ( (LA4_0=='s') ) {
+ alt4=1;
+ }
+ else if ( (LA4_0=='m') ) {
+ alt4=2;
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("", 4, 0, input);
+
+ throw nvae;
+ }
+ switch (alt4) {
+ case 1 :
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:7648:19: 's'
+ {
+ match('s');
+
+ }
+ break;
+ case 2 :
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:7648:23: 'ms'
+ {
+ match("ms");
+
+
+ }
+ break;
+
+ }
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "RULE_TIME_UNIT"
+
+ // $ANTLR start "RULE_FREQ_UNIT"
+ public final void mRULE_FREQ_UNIT() throws RecognitionException {
+ try {
+ int _type = RULE_FREQ_UNIT;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:7650:16: ( ( 'hz' | 'mhz' ) )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:7650:18: ( 'hz' | 'mhz' )
+ {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:7650:18: ( 'hz' | 'mhz' )
+ int alt5=2;
+ int LA5_0 = input.LA(1);
+
+ if ( (LA5_0=='h') ) {
+ alt5=1;
+ }
+ else if ( (LA5_0=='m') ) {
+ alt5=2;
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("", 5, 0, input);
+
+ throw nvae;
+ }
+ switch (alt5) {
+ case 1 :
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:7650:19: 'hz'
+ {
+ match("hz");
+
+
+ }
+ break;
+ case 2 :
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:7650:24: 'mhz'
+ {
+ match("mhz");
+
+
+ }
+ break;
+
+ }
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "RULE_FREQ_UNIT"
+
+ // $ANTLR start "RULE_T_NUM"
+ public final void mRULE_T_NUM() throws RecognitionException {
+ try {
+ int _type = RULE_T_NUM;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:7652:12: ( ( ( '0' .. '9' )+ | ( '0' .. '9' )* '.' ( '0' .. '9' )+ ) )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:7652:14: ( ( '0' .. '9' )+ | ( '0' .. '9' )* '.' ( '0' .. '9' )+ )
+ {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:7652:14: ( ( '0' .. '9' )+ | ( '0' .. '9' )* '.' ( '0' .. '9' )+ )
+ int alt9=2;
+ alt9 = dfa9.predict(input);
+ switch (alt9) {
+ case 1 :
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:7652:15: ( '0' .. '9' )+
+ {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:7652:15: ( '0' .. '9' )+
+ int cnt6=0;
+ loop6:
+ do {
+ int alt6=2;
+ int LA6_0 = input.LA(1);
+
+ if ( ((LA6_0>='0' && LA6_0<='9')) ) {
+ alt6=1;
+ }
+
+
+ switch (alt6) {
+ case 1 :
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:7652:16: '0' .. '9'
+ {
+ matchRange('0','9');
+
+ }
+ break;
+
+ default :
+ if ( cnt6 >= 1 ) break loop6;
+ EarlyExitException eee =
+ new EarlyExitException(6, input);
+ throw eee;
+ }
+ cnt6++;
+ } while (true);
+
+
+ }
+ break;
+ case 2 :
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:7652:27: ( '0' .. '9' )* '.' ( '0' .. '9' )+
+ {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:7652:27: ( '0' .. '9' )*
+ loop7:
+ do {
+ int alt7=2;
+ int LA7_0 = input.LA(1);
+
+ if ( ((LA7_0>='0' && LA7_0<='9')) ) {
+ alt7=1;
+ }
+
+
+ switch (alt7) {
+ case 1 :
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:7652:28: '0' .. '9'
+ {
+ matchRange('0','9');
+
+ }
+ break;
+
+ default :
+ break loop7;
+ }
+ } while (true);
+
+ match('.');
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:7652:43: ( '0' .. '9' )+
+ int cnt8=0;
+ loop8:
+ do {
+ int alt8=2;
+ int LA8_0 = input.LA(1);
+
+ if ( ((LA8_0>='0' && LA8_0<='9')) ) {
+ alt8=1;
+ }
+
+
+ switch (alt8) {
+ case 1 :
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:7652:44: '0' .. '9'
+ {
+ matchRange('0','9');
+
+ }
+ break;
+
+ default :
+ if ( cnt8 >= 1 ) break loop8;
+ EarlyExitException eee =
+ new EarlyExitException(8, input);
+ throw eee;
+ }
+ cnt8++;
+ } while (true);
+
+
+ }
+ break;
+
+ }
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "RULE_T_NUM"
+
+ // $ANTLR start "RULE_ID"
+ public final void mRULE_ID() throws RecognitionException {
+ try {
+ int _type = RULE_ID;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:7654:9: ( ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:7654:11: ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*
+ {
+ if ( (input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) {
+ input.consume();
+
+ }
+ else {
+ MismatchedSetException mse = new MismatchedSetException(null,input);
+ recover(mse);
+ throw mse;}
+
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:7654:35: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*
+ loop10:
+ do {
+ int alt10=2;
+ int LA10_0 = input.LA(1);
+
+ if ( ((LA10_0>='0' && LA10_0<='9')||(LA10_0>='A' && LA10_0<='Z')||LA10_0=='_'||(LA10_0>='a' && LA10_0<='z')) ) {
+ alt10=1;
+ }
+
+
+ switch (alt10) {
+ case 1 :
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:
+ {
+ if ( (input.LA(1)>='0' && input.LA(1)<='9')||(input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) {
+ input.consume();
+
+ }
+ else {
+ MismatchedSetException mse = new MismatchedSetException(null,input);
+ recover(mse);
+ throw mse;}
+
+
+ }
+ break;
+
+ default :
+ break loop10;
+ }
+ } while (true);
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "RULE_ID"
+
+ // $ANTLR start "RULE_STRING"
+ public final void mRULE_STRING() throws RecognitionException {
+ try {
+ int _type = RULE_STRING;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:7656:13: ( ( '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' ) )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:7656:15: ( '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' )
+ {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:7656:15: ( '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' )
+ int alt13=2;
+ int LA13_0 = input.LA(1);
+
+ if ( (LA13_0=='\"') ) {
+ alt13=1;
+ }
+ else if ( (LA13_0=='\'') ) {
+ alt13=2;
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("", 13, 0, input);
+
+ throw nvae;
+ }
+ switch (alt13) {
+ case 1 :
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:7656:16: '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )* '\"'
+ {
+ match('\"');
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:7656:20: ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )*
+ loop11:
+ do {
+ int alt11=3;
+ int LA11_0 = input.LA(1);
+
+ if ( (LA11_0=='\\') ) {
+ alt11=1;
+ }
+ else if ( ((LA11_0>='\u0000' && LA11_0<='!')||(LA11_0>='#' && LA11_0<='[')||(LA11_0>=']' && LA11_0<='\uFFFF')) ) {
+ alt11=2;
+ }
+
+
+ switch (alt11) {
+ case 1 :
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:7656:21: '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' )
+ {
+ match('\\');
+ if ( input.LA(1)=='\"'||input.LA(1)=='\''||input.LA(1)=='\\'||input.LA(1)=='b'||input.LA(1)=='f'||input.LA(1)=='n'||input.LA(1)=='r'||(input.LA(1)>='t' && input.LA(1)<='u') ) {
+ input.consume();
+
+ }
+ else {
+ MismatchedSetException mse = new MismatchedSetException(null,input);
+ recover(mse);
+ throw mse;}
+
+
+ }
+ break;
+ case 2 :
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:7656:66: ~ ( ( '\\\\' | '\"' ) )
+ {
+ if ( (input.LA(1)>='\u0000' && input.LA(1)<='!')||(input.LA(1)>='#' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFF') ) {
+ input.consume();
+
+ }
+ else {
+ MismatchedSetException mse = new MismatchedSetException(null,input);
+ recover(mse);
+ throw mse;}
+
+
+ }
+ break;
+
+ default :
+ break loop11;
+ }
+ } while (true);
+
+ match('\"');
+
+ }
+ break;
+ case 2 :
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:7656:86: '\\'' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\\'' ) ) )* '\\''
+ {
+ match('\'');
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:7656:91: ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\\'' ) ) )*
+ loop12:
+ do {
+ int alt12=3;
+ int LA12_0 = input.LA(1);
+
+ if ( (LA12_0=='\\') ) {
+ alt12=1;
+ }
+ else if ( ((LA12_0>='\u0000' && LA12_0<='&')||(LA12_0>='(' && LA12_0<='[')||(LA12_0>=']' && LA12_0<='\uFFFF')) ) {
+ alt12=2;
+ }
+
+
+ switch (alt12) {
+ case 1 :
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:7656:92: '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' )
+ {
+ match('\\');
+ if ( input.LA(1)=='\"'||input.LA(1)=='\''||input.LA(1)=='\\'||input.LA(1)=='b'||input.LA(1)=='f'||input.LA(1)=='n'||input.LA(1)=='r'||(input.LA(1)>='t' && input.LA(1)<='u') ) {
+ input.consume();
+
+ }
+ else {
+ MismatchedSetException mse = new MismatchedSetException(null,input);
+ recover(mse);
+ throw mse;}
+
+
+ }
+ break;
+ case 2 :
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:7656:137: ~ ( ( '\\\\' | '\\'' ) )
+ {
+ if ( (input.LA(1)>='\u0000' && input.LA(1)<='&')||(input.LA(1)>='(' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFF') ) {
+ input.consume();
+
+ }
+ else {
+ MismatchedSetException mse = new MismatchedSetException(null,input);
+ recover(mse);
+ throw mse;}
+
+
+ }
+ break;
+
+ default :
+ break loop12;
+ }
+ } while (true);
+
+ match('\'');
+
+ }
+ break;
+
+ }
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "RULE_STRING"
+
+ // $ANTLR start "RULE_CDO"
+ public final void mRULE_CDO() throws RecognitionException {
+ try {
+ int _type = RULE_CDO;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:7658:10: ( '<!--' )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:7658:12: '<!--'
+ {
+ match("<!--");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "RULE_CDO"
+
+ // $ANTLR start "RULE_CDC"
+ public final void mRULE_CDC() throws RecognitionException {
+ try {
+ int _type = RULE_CDC;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:7660:10: ( '-->' )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:7660:12: '-->'
+ {
+ match("-->");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "RULE_CDC"
+
+ // $ANTLR start "RULE_ML_COMMENT"
+ public final void mRULE_ML_COMMENT() throws RecognitionException {
+ try {
+ int _type = RULE_ML_COMMENT;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:7662:17: ( '/*' ( options {greedy=false; } : . )* '*/' )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:7662:19: '/*' ( options {greedy=false; } : . )* '*/'
+ {
+ match("/*");
+
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:7662:24: ( options {greedy=false; } : . )*
+ loop14:
+ do {
+ int alt14=2;
+ int LA14_0 = input.LA(1);
+
+ if ( (LA14_0=='*') ) {
+ int LA14_1 = input.LA(2);
+
+ if ( (LA14_1=='/') ) {
+ alt14=2;
+ }
+ else if ( ((LA14_1>='\u0000' && LA14_1<='.')||(LA14_1>='0' && LA14_1<='\uFFFF')) ) {
+ alt14=1;
+ }
+
+
+ }
+ else if ( ((LA14_0>='\u0000' && LA14_0<=')')||(LA14_0>='+' && LA14_0<='\uFFFF')) ) {
+ alt14=1;
+ }
+
+
+ switch (alt14) {
+ case 1 :
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:7662:52: .
+ {
+ matchAny();
+
+ }
+ break;
+
+ default :
+ break loop14;
+ }
+ } while (true);
+
+ match("*/");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "RULE_ML_COMMENT"
+
+ // $ANTLR start "RULE_WS"
+ public final void mRULE_WS() throws RecognitionException {
+ try {
+ int _type = RULE_WS;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:7664:9: ( ( ' ' | '\\t' | '\\r' | '\\n' )+ )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:7664:11: ( ' ' | '\\t' | '\\r' | '\\n' )+
+ {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:7664:11: ( ' ' | '\\t' | '\\r' | '\\n' )+
+ int cnt15=0;
+ loop15:
+ do {
+ int alt15=2;
+ int LA15_0 = input.LA(1);
+
+ if ( ((LA15_0>='\t' && LA15_0<='\n')||LA15_0=='\r'||LA15_0==' ') ) {
+ alt15=1;
+ }
+
+
+ switch (alt15) {
+ case 1 :
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:
+ {
+ if ( (input.LA(1)>='\t' && input.LA(1)<='\n')||input.LA(1)=='\r'||input.LA(1)==' ' ) {
+ input.consume();
+
+ }
+ else {
+ MismatchedSetException mse = new MismatchedSetException(null,input);
+ recover(mse);
+ throw mse;}
+
+
+ }
+ break;
+
+ default :
+ if ( cnt15 >= 1 ) break loop15;
+ EarlyExitException eee =
+ new EarlyExitException(15, input);
+ throw eee;
+ }
+ cnt15++;
+ } while (true);
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "RULE_WS"
+
+ // $ANTLR start "RULE_ANY_OTHER"
+ public final void mRULE_ANY_OTHER() throws RecognitionException {
+ try {
+ int _type = RULE_ANY_OTHER;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:7666:16: ( . )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:7666:18: .
+ {
+ matchAny();
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "RULE_ANY_OTHER"
+
+ public void mTokens() throws RecognitionException {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1:8: ( T__22 | T__23 | T__24 | T__25 | T__26 | T__27 | T__28 | T__29 | T__30 | T__31 | T__32 | T__33 | T__34 | T__35 | T__36 | T__37 | T__38 | T__39 | T__40 | T__41 | T__42 | T__43 | RULE_HASH | RULE_T_CLASS | RULE_T_IMPORTANT | RULE_PC_UNIT | RULE_LEN_UNIT | RULE_EM_UNIT | RULE_EX_UNIT | RULE_ANGLE_UNIT | RULE_TIME_UNIT | RULE_FREQ_UNIT | RULE_T_NUM | RULE_ID | RULE_STRING | RULE_CDO | RULE_CDC | RULE_ML_COMMENT | RULE_WS | RULE_ANY_OTHER )
+ int alt16=40;
+ alt16 = dfa16.predict(input);
+ switch (alt16) {
+ case 1 :
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1:10: T__22
+ {
+ mT__22();
+
+ }
+ break;
+ case 2 :
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1:16: T__23
+ {
+ mT__23();
+
+ }
+ break;
+ case 3 :
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1:22: T__24
+ {
+ mT__24();
+
+ }
+ break;
+ case 4 :
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1:28: T__25
+ {
+ mT__25();
+
+ }
+ break;
+ case 5 :
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1:34: T__26
+ {
+ mT__26();
+
+ }
+ break;
+ case 6 :
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1:40: T__27
+ {
+ mT__27();
+
+ }
+ break;
+ case 7 :
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1:46: T__28
+ {
+ mT__28();
+
+ }
+ break;
+ case 8 :
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1:52: T__29
+ {
+ mT__29();
+
+ }
+ break;
+ case 9 :
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1:58: T__30
+ {
+ mT__30();
+
+ }
+ break;
+ case 10 :
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1:64: T__31
+ {
+ mT__31();
+
+ }
+ break;
+ case 11 :
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1:70: T__32
+ {
+ mT__32();
+
+ }
+ break;
+ case 12 :
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1:76: T__33
+ {
+ mT__33();
+
+ }
+ break;
+ case 13 :
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1:82: T__34
+ {
+ mT__34();
+
+ }
+ break;
+ case 14 :
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1:88: T__35
+ {
+ mT__35();
+
+ }
+ break;
+ case 15 :
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1:94: T__36
+ {
+ mT__36();
+
+ }
+ break;
+ case 16 :
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1:100: T__37
+ {
+ mT__37();
+
+ }
+ break;
+ case 17 :
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1:106: T__38
+ {
+ mT__38();
+
+ }
+ break;
+ case 18 :
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1:112: T__39
+ {
+ mT__39();
+
+ }
+ break;
+ case 19 :
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1:118: T__40
+ {
+ mT__40();
+
+ }
+ break;
+ case 20 :
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1:124: T__41
+ {
+ mT__41();
+
+ }
+ break;
+ case 21 :
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1:130: T__42
+ {
+ mT__42();
+
+ }
+ break;
+ case 22 :
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1:136: T__43
+ {
+ mT__43();
+
+ }
+ break;
+ case 23 :
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1:142: RULE_HASH
+ {
+ mRULE_HASH();
+
+ }
+ break;
+ case 24 :
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1:152: RULE_T_CLASS
+ {
+ mRULE_T_CLASS();
+
+ }
+ break;
+ case 25 :
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1:165: RULE_T_IMPORTANT
+ {
+ mRULE_T_IMPORTANT();
+
+ }
+ break;
+ case 26 :
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1:182: RULE_PC_UNIT
+ {
+ mRULE_PC_UNIT();
+
+ }
+ break;
+ case 27 :
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1:195: RULE_LEN_UNIT
+ {
+ mRULE_LEN_UNIT();
+
+ }
+ break;
+ case 28 :
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1:209: RULE_EM_UNIT
+ {
+ mRULE_EM_UNIT();
+
+ }
+ break;
+ case 29 :
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1:222: RULE_EX_UNIT
+ {
+ mRULE_EX_UNIT();
+
+ }
+ break;
+ case 30 :
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1:235: RULE_ANGLE_UNIT
+ {
+ mRULE_ANGLE_UNIT();
+
+ }
+ break;
+ case 31 :
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1:251: RULE_TIME_UNIT
+ {
+ mRULE_TIME_UNIT();
+
+ }
+ break;
+ case 32 :
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1:266: RULE_FREQ_UNIT
+ {
+ mRULE_FREQ_UNIT();
+
+ }
+ break;
+ case 33 :
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1:281: RULE_T_NUM
+ {
+ mRULE_T_NUM();
+
+ }
+ break;
+ case 34 :
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1:292: RULE_ID
+ {
+ mRULE_ID();
+
+ }
+ break;
+ case 35 :
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1:300: RULE_STRING
+ {
+ mRULE_STRING();
+
+ }
+ break;
+ case 36 :
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1:312: RULE_CDO
+ {
+ mRULE_CDO();
+
+ }
+ break;
+ case 37 :
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1:321: RULE_CDC
+ {
+ mRULE_CDC();
+
+ }
+ break;
+ case 38 :
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1:330: RULE_ML_COMMENT
+ {
+ mRULE_ML_COMMENT();
+
+ }
+ break;
+ case 39 :
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1:346: RULE_WS
+ {
+ mRULE_WS();
+
+ }
+ break;
+ case 40 :
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1:354: RULE_ANY_OTHER
+ {
+ mRULE_ANY_OTHER();
+
+ }
+ break;
+
+ }
+
+ }
+
+
+ protected DFA9 dfa9 = new DFA9(this);
+ protected DFA16 dfa16 = new DFA16(this);
+ static final String DFA9_eotS =
+ "\1\uffff\1\3\2\uffff";
+ static final String DFA9_eofS =
+ "\4\uffff";
+ static final String DFA9_minS =
+ "\2\56\2\uffff";
+ static final String DFA9_maxS =
+ "\2\71\2\uffff";
+ static final String DFA9_acceptS =
+ "\2\uffff\1\2\1\1";
+ static final String DFA9_specialS =
+ "\4\uffff}>";
+ static final String[] DFA9_transitionS = {
+ "\1\2\1\uffff\12\1",
+ "\1\2\1\uffff\12\1",
+ "",
+ ""
+ };
+
+ static final short[] DFA9_eot = DFA.unpackEncodedString(DFA9_eotS);
+ static final short[] DFA9_eof = DFA.unpackEncodedString(DFA9_eofS);
+ static final char[] DFA9_min = DFA.unpackEncodedStringToUnsignedChars(DFA9_minS);
+ static final char[] DFA9_max = DFA.unpackEncodedStringToUnsignedChars(DFA9_maxS);
+ static final short[] DFA9_accept = DFA.unpackEncodedString(DFA9_acceptS);
+ static final short[] DFA9_special = DFA.unpackEncodedString(DFA9_specialS);
+ static final short[][] DFA9_transition;
+
+ static {
+ int numStates = DFA9_transitionS.length;
+ DFA9_transition = new short[numStates][];
+ for (int i=0; i<numStates; i++) {
+ DFA9_transition[i] = DFA.unpackEncodedString(DFA9_transitionS[i]);
+ }
+ }
+
+ class DFA9 extends DFA {
+
+ public DFA9(BaseRecognizer recognizer) {
+ this.recognizer = recognizer;
+ this.decisionNumber = 9;
+ this.eot = DFA9_eot;
+ this.eof = DFA9_eof;
+ this.min = DFA9_min;
+ this.max = DFA9_max;
+ this.accept = DFA9_accept;
+ this.special = DFA9_special;
+ this.transition = DFA9_transition;
+ }
+ public String getDescription() {
+ return "7652:14: ( ( '0' .. '9' )+ | ( '0' .. '9' )* '.' ( '0' .. '9' )+ )";
+ }
+ }
+ static final String DFA16_eotS =
+ "\2\uffff\1\52\3\uffff\3\47\7\uffff\1\75\1\77\2\uffff\2\47\1\uffff"+
+ "\10\75\1\123\1\75\2\uffff\3\47\26\uffff\1\75\11\uffff\5\131\1\123"+
+ "\1\75\1\131\1\133\1\134\3\75\1\uffff\1\140\3\uffff\1\75\1\uffff"+
+ "\1\140\2\uffff\2\142\1\75\3\uffff\1\142";
+ static final String DFA16_eofS =
+ "\144\uffff";
+ static final String DFA16_minS =
+ "\1\0\1\uffff\1\55\3\uffff\2\75\1\143\7\uffff\1\162\1\52\2\uffff"+
+ "\2\60\1\uffff\1\143\1\155\1\150\1\156\1\155\1\145\1\141\1\162\1"+
+ "\60\1\172\2\uffff\2\0\1\41\26\uffff\1\154\11\uffff\6\60\1\172\3"+
+ "\60\1\147\1\144\1\141\1\uffff\1\60\3\uffff\1\50\1\uffff\1\60\2\uffff"+
+ "\2\60\1\144\3\uffff\1\60";
+ static final String DFA16_maxS =
+ "\1\uffff\1\uffff\1\55\3\uffff\1\75\1\151\1\160\7\uffff\1\162\1"+
+ "\52\2\uffff\2\172\1\uffff\1\170\1\155\1\163\1\156\1\170\1\145\1"+
+ "\141\1\162\2\172\2\uffff\2\uffff\1\41\26\uffff\1\154\11\uffff\12"+
+ "\172\1\147\1\144\1\141\1\uffff\1\172\3\uffff\1\50\1\uffff\1\172"+
+ "\2\uffff\2\172\1\144\3\uffff\1\172";
+ static final String DFA16_acceptS =
+ "\1\uffff\1\1\1\uffff\1\3\1\4\1\5\3\uffff\1\11\1\13\1\15\1\16\1"+
+ "\20\1\21\1\22\2\uffff\1\25\1\26\2\uffff\1\32\12\uffff\1\41\1\42"+
+ "\3\uffff\1\47\1\50\1\1\1\45\1\2\1\3\1\4\1\5\1\6\1\7\1\31\1\10\1"+
+ "\12\1\14\1\17\1\11\1\13\1\15\1\16\1\20\1\21\1\22\1\uffff\1\42\1"+
+ "\46\1\24\1\25\1\26\1\27\1\41\1\30\1\32\15\uffff\1\37\1\uffff\1\43"+
+ "\1\44\1\47\1\uffff\1\33\1\uffff\1\34\1\35\3\uffff\1\40\1\23\1\36"+
+ "\1\uffff";
+ static final String DFA16_specialS =
+ "\1\1\42\uffff\1\2\1\0\77\uffff}>";
+ static final String[] DFA16_transitionS = {
+ "\11\47\2\46\2\47\1\46\22\47\1\46\1\7\1\43\1\24\1\47\1\26\1"+
+ "\47\1\44\1\16\1\17\1\1\1\3\1\12\1\2\1\25\1\21\12\41\1\15\1\11"+
+ "\1\45\1\5\1\4\1\47\1\10\32\42\1\22\1\47\1\23\1\47\1\42\1\47"+
+ "\2\42\1\30\1\34\1\33\1\42\1\36\1\40\1\32\3\42\1\31\2\42\1\27"+
+ "\1\42\1\35\1\37\1\42\1\20\5\42\1\13\1\47\1\14\1\6\uff81\47",
+ "",
+ "\1\51",
+ "",
+ "",
+ "",
+ "\1\56",
+ "\1\57\53\uffff\1\60",
+ "\1\61\5\uffff\1\62\3\uffff\1\63\2\uffff\1\64",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "\1\74",
+ "\1\76",
+ "",
+ "",
+ "\12\102\7\uffff\32\102\6\uffff\32\102",
+ "\12\103\7\uffff\32\104\4\uffff\1\104\1\uffff\32\104",
+ "",
+ "\1\110\20\uffff\1\107\3\uffff\1\106",
+ "\1\111",
+ "\1\114\4\uffff\1\112\5\uffff\1\113",
+ "\1\115",
+ "\1\116\12\uffff\1\117",
+ "\1\120",
+ "\1\121",
+ "\1\122",
+ "\12\75\7\uffff\32\75\4\uffff\1\75\1\uffff\32\75",
+ "\1\124",
+ "",
+ "",
+ "\0\125",
+ "\0\125",
+ "\1\126",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "\1\130",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "\12\75\7\uffff\32\75\4\uffff\1\75\1\uffff\32\75",
+ "\12\75\7\uffff\32\75\4\uffff\1\75\1\uffff\32\75",
+ "\12\75\7\uffff\32\75\4\uffff\1\75\1\uffff\32\75",
+ "\12\75\7\uffff\32\75\4\uffff\1\75\1\uffff\32\75",
+ "\12\75\7\uffff\32\75\4\uffff\1\75\1\uffff\32\75",
+ "\12\75\7\uffff\32\75\4\uffff\1\75\1\uffff\32\75",
+ "\1\132",
+ "\12\75\7\uffff\32\75\4\uffff\1\75\1\uffff\32\75",
+ "\12\75\7\uffff\32\75\4\uffff\1\75\1\uffff\32\75",
+ "\12\75\7\uffff\32\75\4\uffff\1\75\1\uffff\32\75",
+ "\1\135",
+ "\1\136",
+ "\1\137",
+ "",
+ "\12\75\7\uffff\32\75\4\uffff\1\75\1\uffff\32\75",
+ "",
+ "",
+ "",
+ "\1\141",
+ "",
+ "\12\75\7\uffff\32\75\4\uffff\1\75\1\uffff\32\75",
+ "",
+ "",
+ "\12\75\7\uffff\32\75\4\uffff\1\75\1\uffff\32\75",
+ "\12\75\7\uffff\32\75\4\uffff\1\75\1\uffff\32\75",
+ "\1\143",
+ "",
+ "",
+ "",
+ "\12\75\7\uffff\32\75\4\uffff\1\75\1\uffff\32\75"
+ };
+
+ static final short[] DFA16_eot = DFA.unpackEncodedString(DFA16_eotS);
+ static final short[] DFA16_eof = DFA.unpackEncodedString(DFA16_eofS);
+ static final char[] DFA16_min = DFA.unpackEncodedStringToUnsignedChars(DFA16_minS);
+ static final char[] DFA16_max = DFA.unpackEncodedStringToUnsignedChars(DFA16_maxS);
+ static final short[] DFA16_accept = DFA.unpackEncodedString(DFA16_acceptS);
+ static final short[] DFA16_special = DFA.unpackEncodedString(DFA16_specialS);
+ static final short[][] DFA16_transition;
+
+ static {
+ int numStates = DFA16_transitionS.length;
+ DFA16_transition = new short[numStates][];
+ for (int i=0; i<numStates; i++) {
+ DFA16_transition[i] = DFA.unpackEncodedString(DFA16_transitionS[i]);
+ }
+ }
+
+ class DFA16 extends DFA {
+
+ public DFA16(BaseRecognizer recognizer) {
+ this.recognizer = recognizer;
+ this.decisionNumber = 16;
+ this.eot = DFA16_eot;
+ this.eof = DFA16_eof;
+ this.min = DFA16_min;
+ this.max = DFA16_max;
+ this.accept = DFA16_accept;
+ this.special = DFA16_special;
+ this.transition = DFA16_transition;
+ }
+ public String getDescription() {
+ return "1:1: Tokens : ( T__22 | T__23 | T__24 | T__25 | T__26 | T__27 | T__28 | T__29 | T__30 | T__31 | T__32 | T__33 | T__34 | T__35 | T__36 | T__37 | T__38 | T__39 | T__40 | T__41 | T__42 | T__43 | RULE_HASH | RULE_T_CLASS | RULE_T_IMPORTANT | RULE_PC_UNIT | RULE_LEN_UNIT | RULE_EM_UNIT | RULE_EX_UNIT | RULE_ANGLE_UNIT | RULE_TIME_UNIT | RULE_FREQ_UNIT | RULE_T_NUM | RULE_ID | RULE_STRING | RULE_CDO | RULE_CDC | RULE_ML_COMMENT | RULE_WS | RULE_ANY_OTHER );";
+ }
+ public int specialStateTransition(int s, IntStream _input) throws NoViableAltException {
+ IntStream input = _input;
+ int _s = s;
+ switch ( s ) {
+ case 0 :
+ int LA16_36 = input.LA(1);
+
+ s = -1;
+ if ( ((LA16_36>='\u0000' && LA16_36<='\uFFFF')) ) {s = 85;}
+
+ else s = 39;
+
+ if ( s>=0 ) return s;
+ break;
+ case 1 :
+ int LA16_0 = input.LA(1);
+
+ s = -1;
+ if ( (LA16_0=='*') ) {s = 1;}
+
+ else if ( (LA16_0=='-') ) {s = 2;}
+
+ else if ( (LA16_0=='+') ) {s = 3;}
+
+ else if ( (LA16_0=='>') ) {s = 4;}
+
+ else if ( (LA16_0=='=') ) {s = 5;}
+
+ else if ( (LA16_0=='~') ) {s = 6;}
+
+ else if ( (LA16_0=='!') ) {s = 7;}
+
+ else if ( (LA16_0=='@') ) {s = 8;}
+
+ else if ( (LA16_0==';') ) {s = 9;}
+
+ else if ( (LA16_0==',') ) {s = 10;}
+
+ else if ( (LA16_0=='{') ) {s = 11;}
+
+ else if ( (LA16_0=='}') ) {s = 12;}
+
+ else if ( (LA16_0==':') ) {s = 13;}
+
+ else if ( (LA16_0=='(') ) {s = 14;}
+
+ else if ( (LA16_0==')') ) {s = 15;}
+
+ else if ( (LA16_0=='u') ) {s = 16;}
+
+ else if ( (LA16_0=='/') ) {s = 17;}
+
+ else if ( (LA16_0=='[') ) {s = 18;}
+
+ else if ( (LA16_0==']') ) {s = 19;}
+
+ else if ( (LA16_0=='#') ) {s = 20;}
+
+ else if ( (LA16_0=='.') ) {s = 21;}
+
+ else if ( (LA16_0=='%') ) {s = 22;}
+
+ else if ( (LA16_0=='p') ) {s = 23;}
+
+ else if ( (LA16_0=='c') ) {s = 24;}
+
+ else if ( (LA16_0=='m') ) {s = 25;}
+
+ else if ( (LA16_0=='i') ) {s = 26;}
+
+ else if ( (LA16_0=='e') ) {s = 27;}
+
+ else if ( (LA16_0=='d') ) {s = 28;}
+
+ else if ( (LA16_0=='r') ) {s = 29;}
+
+ else if ( (LA16_0=='g') ) {s = 30;}
+
+ else if ( (LA16_0=='s') ) {s = 31;}
+
+ else if ( (LA16_0=='h') ) {s = 32;}
+
+ else if ( ((LA16_0>='0' && LA16_0<='9')) ) {s = 33;}
+
+ else if ( ((LA16_0>='A' && LA16_0<='Z')||LA16_0=='_'||(LA16_0>='a' && LA16_0<='b')||LA16_0=='f'||(LA16_0>='j' && LA16_0<='l')||(LA16_0>='n' && LA16_0<='o')||LA16_0=='q'||LA16_0=='t'||(LA16_0>='v' && LA16_0<='z')) ) {s = 34;}
+
+ else if ( (LA16_0=='\"') ) {s = 35;}
+
+ else if ( (LA16_0=='\'') ) {s = 36;}
+
+ else if ( (LA16_0=='<') ) {s = 37;}
+
+ else if ( ((LA16_0>='\t' && LA16_0<='\n')||LA16_0=='\r'||LA16_0==' ') ) {s = 38;}
+
+ else if ( ((LA16_0>='\u0000' && LA16_0<='\b')||(LA16_0>='\u000B' && LA16_0<='\f')||(LA16_0>='\u000E' && LA16_0<='\u001F')||LA16_0=='$'||LA16_0=='&'||LA16_0=='?'||LA16_0=='\\'||LA16_0=='^'||LA16_0=='`'||LA16_0=='|'||(LA16_0>='\u007F' && LA16_0<='\uFFFF')) ) {s = 39;}
+
+ if ( s>=0 ) return s;
+ break;
+ case 2 :
+ int LA16_35 = input.LA(1);
+
+ s = -1;
+ if ( ((LA16_35>='\u0000' && LA16_35<='\uFFFF')) ) {s = 85;}
+
+ else s = 39;
+
+ if ( s>=0 ) return s;
+ break;
+ }
+ NoViableAltException nvae =
+ new NoViableAltException(getDescription(), 16, _s, input);
+ error(nvae);
+ throw nvae;
+ }
+ }
+
+
+}
\ No newline at end of file diff --git a/incoming/org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSSParser.java b/incoming/org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSSParser.java new file mode 100644 index 00000000000..f290d34c887 --- /dev/null +++ b/incoming/org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSSParser.java @@ -0,0 +1,22459 @@ +package org.eclipse.papyrus.infra.gmfdiag.ui.contentassist.antlr.internal;
+
+import java.io.InputStream;
+import org.eclipse.xtext.*;
+import org.eclipse.xtext.parser.*;
+import org.eclipse.xtext.parser.impl.*;
+import org.eclipse.emf.ecore.util.EcoreUtil;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.xtext.parser.antlr.XtextTokenStream;
+import org.eclipse.xtext.parser.antlr.XtextTokenStream.HiddenTokens;
+import org.eclipse.xtext.ui.editor.contentassist.antlr.internal.AbstractInternalContentAssistParser;
+import org.eclipse.xtext.ui.editor.contentassist.antlr.internal.DFA;
+import org.eclipse.papyrus.infra.gmfdiag.services.CSSGrammarAccess;
+
+
+
+import org.antlr.runtime.*;
+import java.util.Stack;
+import java.util.List;
+import java.util.ArrayList;
+
+@SuppressWarnings("all") +public class InternalCSSParser extends AbstractInternalContentAssistParser {
+ public static final String[] tokenNames = new String[] {
+ "<invalid>", "<EOR>", "<DOWN>", "<UP>", "RULE_WS", "RULE_CDO", "RULE_CDC", "RULE_ID", "RULE_STRING", "RULE_T_IMPORTANT", "RULE_T_NUM", "RULE_PC_UNIT", "RULE_LEN_UNIT", "RULE_EM_UNIT", "RULE_EX_UNIT", "RULE_ANGLE_UNIT", "RULE_TIME_UNIT", "RULE_FREQ_UNIT", "RULE_HASH", "RULE_T_CLASS", "RULE_ML_COMMENT", "RULE_ANY_OTHER", "'*'", "'-'", "'+'", "'>'", "'='", "'~='", "'!='", "'@charset '", "';'", "'@import'", "','", "'@media'", "'{'", "'}'", "'@page'", "':'", "'('", "')'", "'url('", "'/'", "'['", "']'"
+ };
+ public static final int RULE_ID=7;
+ public static final int T__29=29;
+ public static final int T__28=28;
+ public static final int T__27=27;
+ public static final int T__26=26;
+ public static final int T__25=25;
+ public static final int T__24=24;
+ public static final int T__23=23;
+ public static final int RULE_PC_UNIT=11;
+ public static final int T__22=22;
+ public static final int RULE_ANY_OTHER=21;
+ public static final int RULE_T_CLASS=19;
+ public static final int EOF=-1;
+ public static final int RULE_CDC=6;
+ public static final int T__42=42;
+ public static final int RULE_CDO=5;
+ public static final int T__43=43;
+ public static final int T__40=40;
+ public static final int T__41=41;
+ public static final int RULE_FREQ_UNIT=17;
+ public static final int RULE_T_IMPORTANT=9;
+ public static final int RULE_HASH=18;
+ public static final int RULE_ML_COMMENT=20;
+ public static final int T__30=30;
+ public static final int RULE_TIME_UNIT=16;
+ public static final int T__31=31;
+ public static final int RULE_LEN_UNIT=12;
+ public static final int T__32=32;
+ public static final int RULE_STRING=8;
+ public static final int T__33=33;
+ public static final int T__34=34;
+ public static final int T__35=35;
+ public static final int T__36=36;
+ public static final int T__37=37;
+ public static final int T__38=38;
+ public static final int T__39=39;
+ public static final int RULE_T_NUM=10;
+ public static final int RULE_ANGLE_UNIT=15;
+ public static final int RULE_EX_UNIT=14;
+ public static final int RULE_WS=4;
+ public static final int RULE_EM_UNIT=13;
+
+ // delegates
+ // delegators
+
+
+ public InternalCSSParser(TokenStream input) {
+ this(input, new RecognizerSharedState());
+ }
+ public InternalCSSParser(TokenStream input, RecognizerSharedState state) {
+ super(input, state);
+
+ }
+
+
+ public String[] getTokenNames() { return InternalCSSParser.tokenNames; }
+ public String getGrammarFileName() { return "../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g"; }
+
+
+
+ private CSSGrammarAccess grammarAccess;
+
+ public void setGrammarAccess(CSSGrammarAccess grammarAccess) {
+ this.grammarAccess = grammarAccess;
+ }
+
+ @Override
+ protected Grammar getGrammar() {
+ return grammarAccess.getGrammar();
+ }
+
+ @Override
+ protected String getValueForTokenName(String tokenName) {
+ return tokenName;
+ }
+
+
+
+
+ // $ANTLR start "entryRuleStylesheet"
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:60:1: entryRuleStylesheet : ruleStylesheet EOF ;
+ public final void entryRuleStylesheet() throws RecognitionException {
+ try {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:61:1: ( ruleStylesheet EOF )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:62:1: ruleStylesheet EOF
+ {
+ before(grammarAccess.getStylesheetRule());
+ pushFollow(FOLLOW_ruleStylesheet_in_entryRuleStylesheet61);
+ ruleStylesheet();
+
+ state._fsp--;
+
+ after(grammarAccess.getStylesheetRule());
+ match(input,EOF,FOLLOW_EOF_in_entryRuleStylesheet68);
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return ;
+ }
+ // $ANTLR end "entryRuleStylesheet"
+
+
+ // $ANTLR start "ruleStylesheet"
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:69:1: ruleStylesheet : ( ( rule__Stylesheet__Group__0 ) ) ;
+ public final void ruleStylesheet() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:73:2: ( ( ( rule__Stylesheet__Group__0 ) ) )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:74:1: ( ( rule__Stylesheet__Group__0 ) )
+ {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:74:1: ( ( rule__Stylesheet__Group__0 ) )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:75:1: ( rule__Stylesheet__Group__0 )
+ {
+ before(grammarAccess.getStylesheetAccess().getGroup());
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:76:1: ( rule__Stylesheet__Group__0 )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:76:2: rule__Stylesheet__Group__0
+ {
+ pushFollow(FOLLOW_rule__Stylesheet__Group__0_in_ruleStylesheet94);
+ rule__Stylesheet__Group__0();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getStylesheetAccess().getGroup());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "ruleStylesheet"
+
+
+ // $ANTLR start "entryRuleContent"
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:88:1: entryRuleContent : ruleContent EOF ;
+ public final void entryRuleContent() throws RecognitionException {
+ try {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:89:1: ( ruleContent EOF )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:90:1: ruleContent EOF
+ {
+ before(grammarAccess.getContentRule());
+ pushFollow(FOLLOW_ruleContent_in_entryRuleContent121);
+ ruleContent();
+
+ state._fsp--;
+
+ after(grammarAccess.getContentRule());
+ match(input,EOF,FOLLOW_EOF_in_entryRuleContent128);
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return ;
+ }
+ // $ANTLR end "entryRuleContent"
+
+
+ // $ANTLR start "ruleContent"
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:97:1: ruleContent : ( ( rule__Content__Alternatives ) ) ;
+ public final void ruleContent() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:101:2: ( ( ( rule__Content__Alternatives ) ) )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:102:1: ( ( rule__Content__Alternatives ) )
+ {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:102:1: ( ( rule__Content__Alternatives ) )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:103:1: ( rule__Content__Alternatives )
+ {
+ before(grammarAccess.getContentAccess().getAlternatives());
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:104:1: ( rule__Content__Alternatives )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:104:2: rule__Content__Alternatives
+ {
+ pushFollow(FOLLOW_rule__Content__Alternatives_in_ruleContent154);
+ rule__Content__Alternatives();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getContentAccess().getAlternatives());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "ruleContent"
+
+
+ // $ANTLR start "entryRuleImport"
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:116:1: entryRuleImport : ruleImport EOF ;
+ public final void entryRuleImport() throws RecognitionException {
+ try {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:117:1: ( ruleImport EOF )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:118:1: ruleImport EOF
+ {
+ before(grammarAccess.getImportRule());
+ pushFollow(FOLLOW_ruleImport_in_entryRuleImport181);
+ ruleImport();
+
+ state._fsp--;
+
+ after(grammarAccess.getImportRule());
+ match(input,EOF,FOLLOW_EOF_in_entryRuleImport188);
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return ;
+ }
+ // $ANTLR end "entryRuleImport"
+
+
+ // $ANTLR start "ruleImport"
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:125:1: ruleImport : ( ( rule__Import__Group__0 ) ) ;
+ public final void ruleImport() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:129:2: ( ( ( rule__Import__Group__0 ) ) )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:130:1: ( ( rule__Import__Group__0 ) )
+ {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:130:1: ( ( rule__Import__Group__0 ) )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:131:1: ( rule__Import__Group__0 )
+ {
+ before(grammarAccess.getImportAccess().getGroup());
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:132:1: ( rule__Import__Group__0 )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:132:2: rule__Import__Group__0
+ {
+ pushFollow(FOLLOW_rule__Import__Group__0_in_ruleImport214);
+ rule__Import__Group__0();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getImportAccess().getGroup());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "ruleImport"
+
+
+ // $ANTLR start "entryRuleMedia"
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:144:1: entryRuleMedia : ruleMedia EOF ;
+ public final void entryRuleMedia() throws RecognitionException {
+ try {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:145:1: ( ruleMedia EOF )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:146:1: ruleMedia EOF
+ {
+ before(grammarAccess.getMediaRule());
+ pushFollow(FOLLOW_ruleMedia_in_entryRuleMedia241);
+ ruleMedia();
+
+ state._fsp--;
+
+ after(grammarAccess.getMediaRule());
+ match(input,EOF,FOLLOW_EOF_in_entryRuleMedia248);
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return ;
+ }
+ // $ANTLR end "entryRuleMedia"
+
+
+ // $ANTLR start "ruleMedia"
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:153:1: ruleMedia : ( ( rule__Media__Group__0 ) ) ;
+ public final void ruleMedia() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:157:2: ( ( ( rule__Media__Group__0 ) ) )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:158:1: ( ( rule__Media__Group__0 ) )
+ {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:158:1: ( ( rule__Media__Group__0 ) )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:159:1: ( rule__Media__Group__0 )
+ {
+ before(grammarAccess.getMediaAccess().getGroup());
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:160:1: ( rule__Media__Group__0 )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:160:2: rule__Media__Group__0
+ {
+ pushFollow(FOLLOW_rule__Media__Group__0_in_ruleMedia274);
+ rule__Media__Group__0();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getMediaAccess().getGroup());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "ruleMedia"
+
+
+ // $ANTLR start "entryRulePage"
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:172:1: entryRulePage : rulePage EOF ;
+ public final void entryRulePage() throws RecognitionException {
+ try {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:173:1: ( rulePage EOF )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:174:1: rulePage EOF
+ {
+ before(grammarAccess.getPageRule());
+ pushFollow(FOLLOW_rulePage_in_entryRulePage301);
+ rulePage();
+
+ state._fsp--;
+
+ after(grammarAccess.getPageRule());
+ match(input,EOF,FOLLOW_EOF_in_entryRulePage308);
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return ;
+ }
+ // $ANTLR end "entryRulePage"
+
+
+ // $ANTLR start "rulePage"
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:181:1: rulePage : ( ( rule__Page__Group__0 ) ) ;
+ public final void rulePage() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:185:2: ( ( ( rule__Page__Group__0 ) ) )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:186:1: ( ( rule__Page__Group__0 ) )
+ {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:186:1: ( ( rule__Page__Group__0 ) )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:187:1: ( rule__Page__Group__0 )
+ {
+ before(grammarAccess.getPageAccess().getGroup());
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:188:1: ( rule__Page__Group__0 )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:188:2: rule__Page__Group__0
+ {
+ pushFollow(FOLLOW_rule__Page__Group__0_in_rulePage334);
+ rule__Page__Group__0();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getPageAccess().getGroup());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rulePage"
+
+
+ // $ANTLR start "entryRulePseudoPage"
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:200:1: entryRulePseudoPage : rulePseudoPage EOF ;
+ public final void entryRulePseudoPage() throws RecognitionException {
+ try {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:201:1: ( rulePseudoPage EOF )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:202:1: rulePseudoPage EOF
+ {
+ before(grammarAccess.getPseudoPageRule());
+ pushFollow(FOLLOW_rulePseudoPage_in_entryRulePseudoPage361);
+ rulePseudoPage();
+
+ state._fsp--;
+
+ after(grammarAccess.getPseudoPageRule());
+ match(input,EOF,FOLLOW_EOF_in_entryRulePseudoPage368);
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return ;
+ }
+ // $ANTLR end "entryRulePseudoPage"
+
+
+ // $ANTLR start "rulePseudoPage"
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:209:1: rulePseudoPage : ( ( rule__PseudoPage__Group__0 ) ) ;
+ public final void rulePseudoPage() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:213:2: ( ( ( rule__PseudoPage__Group__0 ) ) )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:214:1: ( ( rule__PseudoPage__Group__0 ) )
+ {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:214:1: ( ( rule__PseudoPage__Group__0 ) )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:215:1: ( rule__PseudoPage__Group__0 )
+ {
+ before(grammarAccess.getPseudoPageAccess().getGroup());
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:216:1: ( rule__PseudoPage__Group__0 )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:216:2: rule__PseudoPage__Group__0
+ {
+ pushFollow(FOLLOW_rule__PseudoPage__Group__0_in_rulePseudoPage394);
+ rule__PseudoPage__Group__0();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getPseudoPageAccess().getGroup());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rulePseudoPage"
+
+
+ // $ANTLR start "entryRuleRuleset"
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:228:1: entryRuleRuleset : ruleRuleset EOF ;
+ public final void entryRuleRuleset() throws RecognitionException {
+ try {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:229:1: ( ruleRuleset EOF )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:230:1: ruleRuleset EOF
+ {
+ before(grammarAccess.getRulesetRule());
+ pushFollow(FOLLOW_ruleRuleset_in_entryRuleRuleset421);
+ ruleRuleset();
+
+ state._fsp--;
+
+ after(grammarAccess.getRulesetRule());
+ match(input,EOF,FOLLOW_EOF_in_entryRuleRuleset428);
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return ;
+ }
+ // $ANTLR end "entryRuleRuleset"
+
+
+ // $ANTLR start "ruleRuleset"
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:237:1: ruleRuleset : ( ( rule__Ruleset__Group__0 ) ) ;
+ public final void ruleRuleset() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:241:2: ( ( ( rule__Ruleset__Group__0 ) ) )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:242:1: ( ( rule__Ruleset__Group__0 ) )
+ {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:242:1: ( ( rule__Ruleset__Group__0 ) )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:243:1: ( rule__Ruleset__Group__0 )
+ {
+ before(grammarAccess.getRulesetAccess().getGroup());
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:244:1: ( rule__Ruleset__Group__0 )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:244:2: rule__Ruleset__Group__0
+ {
+ pushFollow(FOLLOW_rule__Ruleset__Group__0_in_ruleRuleset454);
+ rule__Ruleset__Group__0();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getRulesetAccess().getGroup());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "ruleRuleset"
+
+
+ // $ANTLR start "entryRuleSelector"
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:256:1: entryRuleSelector : ruleSelector EOF ;
+ public final void entryRuleSelector() throws RecognitionException {
+ try {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:257:1: ( ruleSelector EOF )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:258:1: ruleSelector EOF
+ {
+ before(grammarAccess.getSelectorRule());
+ pushFollow(FOLLOW_ruleSelector_in_entryRuleSelector481);
+ ruleSelector();
+
+ state._fsp--;
+
+ after(grammarAccess.getSelectorRule());
+ match(input,EOF,FOLLOW_EOF_in_entryRuleSelector488);
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return ;
+ }
+ // $ANTLR end "entryRuleSelector"
+
+
+ // $ANTLR start "ruleSelector"
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:265:1: ruleSelector : ( ( rule__Selector__Alternatives ) ) ;
+ public final void ruleSelector() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:269:2: ( ( ( rule__Selector__Alternatives ) ) )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:270:1: ( ( rule__Selector__Alternatives ) )
+ {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:270:1: ( ( rule__Selector__Alternatives ) )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:271:1: ( rule__Selector__Alternatives )
+ {
+ before(grammarAccess.getSelectorAccess().getAlternatives());
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:272:1: ( rule__Selector__Alternatives )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:272:2: rule__Selector__Alternatives
+ {
+ pushFollow(FOLLOW_rule__Selector__Alternatives_in_ruleSelector514);
+ rule__Selector__Alternatives();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getSelectorAccess().getAlternatives());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "ruleSelector"
+
+
+ // $ANTLR start "entryRuleCompositeSelector"
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:284:1: entryRuleCompositeSelector : ruleCompositeSelector EOF ;
+ public final void entryRuleCompositeSelector() throws RecognitionException {
+ try {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:285:1: ( ruleCompositeSelector EOF )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:286:1: ruleCompositeSelector EOF
+ {
+ before(grammarAccess.getCompositeSelectorRule());
+ pushFollow(FOLLOW_ruleCompositeSelector_in_entryRuleCompositeSelector541);
+ ruleCompositeSelector();
+
+ state._fsp--;
+
+ after(grammarAccess.getCompositeSelectorRule());
+ match(input,EOF,FOLLOW_EOF_in_entryRuleCompositeSelector548);
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return ;
+ }
+ // $ANTLR end "entryRuleCompositeSelector"
+
+
+ // $ANTLR start "ruleCompositeSelector"
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:293:1: ruleCompositeSelector : ( ( rule__CompositeSelector__Group__0 ) ) ;
+ public final void ruleCompositeSelector() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:297:2: ( ( ( rule__CompositeSelector__Group__0 ) ) )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:298:1: ( ( rule__CompositeSelector__Group__0 ) )
+ {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:298:1: ( ( rule__CompositeSelector__Group__0 ) )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:299:1: ( rule__CompositeSelector__Group__0 )
+ {
+ before(grammarAccess.getCompositeSelectorAccess().getGroup());
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:300:1: ( rule__CompositeSelector__Group__0 )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:300:2: rule__CompositeSelector__Group__0
+ {
+ pushFollow(FOLLOW_rule__CompositeSelector__Group__0_in_ruleCompositeSelector574);
+ rule__CompositeSelector__Group__0();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getCompositeSelectorAccess().getGroup());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "ruleCompositeSelector"
+
+
+ // $ANTLR start "entryRuleSimpleSelector"
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:312:1: entryRuleSimpleSelector : ruleSimpleSelector EOF ;
+ public final void entryRuleSimpleSelector() throws RecognitionException {
+ try {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:313:1: ( ruleSimpleSelector EOF )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:314:1: ruleSimpleSelector EOF
+ {
+ before(grammarAccess.getSimpleSelectorRule());
+ pushFollow(FOLLOW_ruleSimpleSelector_in_entryRuleSimpleSelector601);
+ ruleSimpleSelector();
+
+ state._fsp--;
+
+ after(grammarAccess.getSimpleSelectorRule());
+ match(input,EOF,FOLLOW_EOF_in_entryRuleSimpleSelector608);
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return ;
+ }
+ // $ANTLR end "entryRuleSimpleSelector"
+
+
+ // $ANTLR start "ruleSimpleSelector"
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:321:1: ruleSimpleSelector : ( ( rule__SimpleSelector__Alternatives ) ) ;
+ public final void ruleSimpleSelector() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:325:2: ( ( ( rule__SimpleSelector__Alternatives ) ) )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:326:1: ( ( rule__SimpleSelector__Alternatives ) )
+ {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:326:1: ( ( rule__SimpleSelector__Alternatives ) )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:327:1: ( rule__SimpleSelector__Alternatives )
+ {
+ before(grammarAccess.getSimpleSelectorAccess().getAlternatives());
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:328:1: ( rule__SimpleSelector__Alternatives )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:328:2: rule__SimpleSelector__Alternatives
+ {
+ pushFollow(FOLLOW_rule__SimpleSelector__Alternatives_in_ruleSimpleSelector634);
+ rule__SimpleSelector__Alternatives();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getSimpleSelectorAccess().getAlternatives());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "ruleSimpleSelector"
+
+
+ // $ANTLR start "entryRuleSelectorCondition"
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:340:1: entryRuleSelectorCondition : ruleSelectorCondition EOF ;
+ public final void entryRuleSelectorCondition() throws RecognitionException {
+ try {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:341:1: ( ruleSelectorCondition EOF )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:342:1: ruleSelectorCondition EOF
+ {
+ before(grammarAccess.getSelectorConditionRule());
+ pushFollow(FOLLOW_ruleSelectorCondition_in_entryRuleSelectorCondition661);
+ ruleSelectorCondition();
+
+ state._fsp--;
+
+ after(grammarAccess.getSelectorConditionRule());
+ match(input,EOF,FOLLOW_EOF_in_entryRuleSelectorCondition668);
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return ;
+ }
+ // $ANTLR end "entryRuleSelectorCondition"
+
+
+ // $ANTLR start "ruleSelectorCondition"
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:349:1: ruleSelectorCondition : ( ( rule__SelectorCondition__Alternatives ) ) ;
+ public final void ruleSelectorCondition() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:353:2: ( ( ( rule__SelectorCondition__Alternatives ) ) )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:354:1: ( ( rule__SelectorCondition__Alternatives ) )
+ {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:354:1: ( ( rule__SelectorCondition__Alternatives ) )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:355:1: ( rule__SelectorCondition__Alternatives )
+ {
+ before(grammarAccess.getSelectorConditionAccess().getAlternatives());
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:356:1: ( rule__SelectorCondition__Alternatives )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:356:2: rule__SelectorCondition__Alternatives
+ {
+ pushFollow(FOLLOW_rule__SelectorCondition__Alternatives_in_ruleSelectorCondition694);
+ rule__SelectorCondition__Alternatives();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getSelectorConditionAccess().getAlternatives());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "ruleSelectorCondition"
+
+
+ // $ANTLR start "entryRuleCombinator"
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:368:1: entryRuleCombinator : ruleCombinator EOF ;
+ public final void entryRuleCombinator() throws RecognitionException {
+ try {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:369:1: ( ruleCombinator EOF )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:370:1: ruleCombinator EOF
+ {
+ before(grammarAccess.getCombinatorRule());
+ pushFollow(FOLLOW_ruleCombinator_in_entryRuleCombinator721);
+ ruleCombinator();
+
+ state._fsp--;
+
+ after(grammarAccess.getCombinatorRule());
+ match(input,EOF,FOLLOW_EOF_in_entryRuleCombinator728);
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return ;
+ }
+ // $ANTLR end "entryRuleCombinator"
+
+
+ // $ANTLR start "ruleCombinator"
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:377:1: ruleCombinator : ( ( rule__Combinator__Group__0 ) ) ;
+ public final void ruleCombinator() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:381:2: ( ( ( rule__Combinator__Group__0 ) ) )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:382:1: ( ( rule__Combinator__Group__0 ) )
+ {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:382:1: ( ( rule__Combinator__Group__0 ) )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:383:1: ( rule__Combinator__Group__0 )
+ {
+ before(grammarAccess.getCombinatorAccess().getGroup());
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:384:1: ( rule__Combinator__Group__0 )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:384:2: rule__Combinator__Group__0
+ {
+ pushFollow(FOLLOW_rule__Combinator__Group__0_in_ruleCombinator754);
+ rule__Combinator__Group__0();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getCombinatorAccess().getGroup());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "ruleCombinator"
+
+
+ // $ANTLR start "entryRuleDeclaration"
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:396:1: entryRuleDeclaration : ruleDeclaration EOF ;
+ public final void entryRuleDeclaration() throws RecognitionException {
+ try {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:397:1: ( ruleDeclaration EOF )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:398:1: ruleDeclaration EOF
+ {
+ before(grammarAccess.getDeclarationRule());
+ pushFollow(FOLLOW_ruleDeclaration_in_entryRuleDeclaration781);
+ ruleDeclaration();
+
+ state._fsp--;
+
+ after(grammarAccess.getDeclarationRule());
+ match(input,EOF,FOLLOW_EOF_in_entryRuleDeclaration788);
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return ;
+ }
+ // $ANTLR end "entryRuleDeclaration"
+
+
+ // $ANTLR start "ruleDeclaration"
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:405:1: ruleDeclaration : ( ( rule__Declaration__Group__0 ) ) ;
+ public final void ruleDeclaration() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:409:2: ( ( ( rule__Declaration__Group__0 ) ) )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:410:1: ( ( rule__Declaration__Group__0 ) )
+ {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:410:1: ( ( rule__Declaration__Group__0 ) )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:411:1: ( rule__Declaration__Group__0 )
+ {
+ before(grammarAccess.getDeclarationAccess().getGroup());
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:412:1: ( rule__Declaration__Group__0 )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:412:2: rule__Declaration__Group__0
+ {
+ pushFollow(FOLLOW_rule__Declaration__Group__0_in_ruleDeclaration814);
+ rule__Declaration__Group__0();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getDeclarationAccess().getGroup());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "ruleDeclaration"
+
+
+ // $ANTLR start "entryRuleExpression"
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:424:1: entryRuleExpression : ruleExpression EOF ;
+ public final void entryRuleExpression() throws RecognitionException {
+ try {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:425:1: ( ruleExpression EOF )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:426:1: ruleExpression EOF
+ {
+ before(grammarAccess.getExpressionRule());
+ pushFollow(FOLLOW_ruleExpression_in_entryRuleExpression841);
+ ruleExpression();
+
+ state._fsp--;
+
+ after(grammarAccess.getExpressionRule());
+ match(input,EOF,FOLLOW_EOF_in_entryRuleExpression848);
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return ;
+ }
+ // $ANTLR end "entryRuleExpression"
+
+
+ // $ANTLR start "ruleExpression"
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:433:1: ruleExpression : ( ( rule__Expression__Group__0 ) ) ;
+ public final void ruleExpression() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:437:2: ( ( ( rule__Expression__Group__0 ) ) )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:438:1: ( ( rule__Expression__Group__0 ) )
+ {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:438:1: ( ( rule__Expression__Group__0 ) )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:439:1: ( rule__Expression__Group__0 )
+ {
+ before(grammarAccess.getExpressionAccess().getGroup());
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:440:1: ( rule__Expression__Group__0 )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:440:2: rule__Expression__Group__0
+ {
+ pushFollow(FOLLOW_rule__Expression__Group__0_in_ruleExpression874);
+ rule__Expression__Group__0();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getExpressionAccess().getGroup());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "ruleExpression"
+
+
+ // $ANTLR start "entryRuleSubterm"
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:452:1: entryRuleSubterm : ruleSubterm EOF ;
+ public final void entryRuleSubterm() throws RecognitionException {
+ try {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:453:1: ( ruleSubterm EOF )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:454:1: ruleSubterm EOF
+ {
+ before(grammarAccess.getSubtermRule());
+ pushFollow(FOLLOW_ruleSubterm_in_entryRuleSubterm901);
+ ruleSubterm();
+
+ state._fsp--;
+
+ after(grammarAccess.getSubtermRule());
+ match(input,EOF,FOLLOW_EOF_in_entryRuleSubterm908);
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return ;
+ }
+ // $ANTLR end "entryRuleSubterm"
+
+
+ // $ANTLR start "ruleSubterm"
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:461:1: ruleSubterm : ( ( rule__Subterm__Group__0 ) ) ;
+ public final void ruleSubterm() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:465:2: ( ( ( rule__Subterm__Group__0 ) ) )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:466:1: ( ( rule__Subterm__Group__0 ) )
+ {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:466:1: ( ( rule__Subterm__Group__0 ) )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:467:1: ( rule__Subterm__Group__0 )
+ {
+ before(grammarAccess.getSubtermAccess().getGroup());
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:468:1: ( rule__Subterm__Group__0 )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:468:2: rule__Subterm__Group__0
+ {
+ pushFollow(FOLLOW_rule__Subterm__Group__0_in_ruleSubterm934);
+ rule__Subterm__Group__0();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getSubtermAccess().getGroup());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "ruleSubterm"
+
+
+ // $ANTLR start "entryRuleTerm"
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:480:1: entryRuleTerm : ruleTerm EOF ;
+ public final void entryRuleTerm() throws RecognitionException {
+ try {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:481:1: ( ruleTerm EOF )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:482:1: ruleTerm EOF
+ {
+ before(grammarAccess.getTermRule());
+ pushFollow(FOLLOW_ruleTerm_in_entryRuleTerm961);
+ ruleTerm();
+
+ state._fsp--;
+
+ after(grammarAccess.getTermRule());
+ match(input,EOF,FOLLOW_EOF_in_entryRuleTerm968);
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return ;
+ }
+ // $ANTLR end "entryRuleTerm"
+
+
+ // $ANTLR start "ruleTerm"
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:489:1: ruleTerm : ( ( rule__Term__Group__0 ) ) ;
+ public final void ruleTerm() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:493:2: ( ( ( rule__Term__Group__0 ) ) )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:494:1: ( ( rule__Term__Group__0 ) )
+ {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:494:1: ( ( rule__Term__Group__0 ) )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:495:1: ( rule__Term__Group__0 )
+ {
+ before(grammarAccess.getTermAccess().getGroup());
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:496:1: ( rule__Term__Group__0 )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:496:2: rule__Term__Group__0
+ {
+ pushFollow(FOLLOW_rule__Term__Group__0_in_ruleTerm994);
+ rule__Term__Group__0();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getTermAccess().getGroup());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "ruleTerm"
+
+
+ // $ANTLR start "entryRuleFunction"
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:508:1: entryRuleFunction : ruleFunction EOF ;
+ public final void entryRuleFunction() throws RecognitionException {
+ try {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:509:1: ( ruleFunction EOF )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:510:1: ruleFunction EOF
+ {
+ before(grammarAccess.getFunctionRule());
+ pushFollow(FOLLOW_ruleFunction_in_entryRuleFunction1021);
+ ruleFunction();
+
+ state._fsp--;
+
+ after(grammarAccess.getFunctionRule());
+ match(input,EOF,FOLLOW_EOF_in_entryRuleFunction1028);
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return ;
+ }
+ // $ANTLR end "entryRuleFunction"
+
+
+ // $ANTLR start "ruleFunction"
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:517:1: ruleFunction : ( ( rule__Function__Group__0 ) ) ;
+ public final void ruleFunction() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:521:2: ( ( ( rule__Function__Group__0 ) ) )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:522:1: ( ( rule__Function__Group__0 ) )
+ {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:522:1: ( ( rule__Function__Group__0 ) )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:523:1: ( rule__Function__Group__0 )
+ {
+ before(grammarAccess.getFunctionAccess().getGroup());
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:524:1: ( rule__Function__Group__0 )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:524:2: rule__Function__Group__0
+ {
+ pushFollow(FOLLOW_rule__Function__Group__0_in_ruleFunction1054);
+ rule__Function__Group__0();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getFunctionAccess().getGroup());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "ruleFunction"
+
+
+ // $ANTLR start "entryRuleName"
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:536:1: entryRuleName : ruleName EOF ;
+ public final void entryRuleName() throws RecognitionException {
+ try {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:537:1: ( ruleName EOF )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:538:1: ruleName EOF
+ {
+ before(grammarAccess.getNameRule());
+ pushFollow(FOLLOW_ruleName_in_entryRuleName1081);
+ ruleName();
+
+ state._fsp--;
+
+ after(grammarAccess.getNameRule());
+ match(input,EOF,FOLLOW_EOF_in_entryRuleName1088);
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return ;
+ }
+ // $ANTLR end "entryRuleName"
+
+
+ // $ANTLR start "ruleName"
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:545:1: ruleName : ( ( rule__Name__ValueAssignment ) ) ;
+ public final void ruleName() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:549:2: ( ( ( rule__Name__ValueAssignment ) ) )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:550:1: ( ( rule__Name__ValueAssignment ) )
+ {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:550:1: ( ( rule__Name__ValueAssignment ) )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:551:1: ( rule__Name__ValueAssignment )
+ {
+ before(grammarAccess.getNameAccess().getValueAssignment());
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:552:1: ( rule__Name__ValueAssignment )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:552:2: rule__Name__ValueAssignment
+ {
+ pushFollow(FOLLOW_rule__Name__ValueAssignment_in_ruleName1114);
+ rule__Name__ValueAssignment();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getNameAccess().getValueAssignment());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "ruleName"
+
+
+ // $ANTLR start "entryRuleNumber"
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:564:1: entryRuleNumber : ruleNumber EOF ;
+ public final void entryRuleNumber() throws RecognitionException {
+ try {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:565:1: ( ruleNumber EOF )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:566:1: ruleNumber EOF
+ {
+ before(grammarAccess.getNumberRule());
+ pushFollow(FOLLOW_ruleNumber_in_entryRuleNumber1141);
+ ruleNumber();
+
+ state._fsp--;
+
+ after(grammarAccess.getNumberRule());
+ match(input,EOF,FOLLOW_EOF_in_entryRuleNumber1148);
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return ;
+ }
+ // $ANTLR end "entryRuleNumber"
+
+
+ // $ANTLR start "ruleNumber"
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:573:1: ruleNumber : ( ( rule__Number__Group__0 ) ) ;
+ public final void ruleNumber() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:577:2: ( ( ( rule__Number__Group__0 ) ) )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:578:1: ( ( rule__Number__Group__0 ) )
+ {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:578:1: ( ( rule__Number__Group__0 ) )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:579:1: ( rule__Number__Group__0 )
+ {
+ before(grammarAccess.getNumberAccess().getGroup());
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:580:1: ( rule__Number__Group__0 )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:580:2: rule__Number__Group__0
+ {
+ pushFollow(FOLLOW_rule__Number__Group__0_in_ruleNumber1174);
+ rule__Number__Group__0();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getNumberAccess().getGroup());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "ruleNumber"
+
+
+ // $ANTLR start "entryRulePercentage"
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:592:1: entryRulePercentage : rulePercentage EOF ;
+ public final void entryRulePercentage() throws RecognitionException {
+ try {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:593:1: ( rulePercentage EOF )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:594:1: rulePercentage EOF
+ {
+ before(grammarAccess.getPercentageRule());
+ pushFollow(FOLLOW_rulePercentage_in_entryRulePercentage1201);
+ rulePercentage();
+
+ state._fsp--;
+
+ after(grammarAccess.getPercentageRule());
+ match(input,EOF,FOLLOW_EOF_in_entryRulePercentage1208);
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return ;
+ }
+ // $ANTLR end "entryRulePercentage"
+
+
+ // $ANTLR start "rulePercentage"
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:601:1: rulePercentage : ( ( rule__Percentage__Group__0 ) ) ;
+ public final void rulePercentage() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:605:2: ( ( ( rule__Percentage__Group__0 ) ) )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:606:1: ( ( rule__Percentage__Group__0 ) )
+ {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:606:1: ( ( rule__Percentage__Group__0 ) )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:607:1: ( rule__Percentage__Group__0 )
+ {
+ before(grammarAccess.getPercentageAccess().getGroup());
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:608:1: ( rule__Percentage__Group__0 )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:608:2: rule__Percentage__Group__0
+ {
+ pushFollow(FOLLOW_rule__Percentage__Group__0_in_rulePercentage1234);
+ rule__Percentage__Group__0();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getPercentageAccess().getGroup());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rulePercentage"
+
+
+ // $ANTLR start "entryRuleLength"
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:620:1: entryRuleLength : ruleLength EOF ;
+ public final void entryRuleLength() throws RecognitionException {
+ try {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:621:1: ( ruleLength EOF )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:622:1: ruleLength EOF
+ {
+ before(grammarAccess.getLengthRule());
+ pushFollow(FOLLOW_ruleLength_in_entryRuleLength1261);
+ ruleLength();
+
+ state._fsp--;
+
+ after(grammarAccess.getLengthRule());
+ match(input,EOF,FOLLOW_EOF_in_entryRuleLength1268);
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return ;
+ }
+ // $ANTLR end "entryRuleLength"
+
+
+ // $ANTLR start "ruleLength"
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:629:1: ruleLength : ( ( rule__Length__Group__0 ) ) ;
+ public final void ruleLength() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:633:2: ( ( ( rule__Length__Group__0 ) ) )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:634:1: ( ( rule__Length__Group__0 ) )
+ {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:634:1: ( ( rule__Length__Group__0 ) )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:635:1: ( rule__Length__Group__0 )
+ {
+ before(grammarAccess.getLengthAccess().getGroup());
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:636:1: ( rule__Length__Group__0 )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:636:2: rule__Length__Group__0
+ {
+ pushFollow(FOLLOW_rule__Length__Group__0_in_ruleLength1294);
+ rule__Length__Group__0();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getLengthAccess().getGroup());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "ruleLength"
+
+
+ // $ANTLR start "entryRuleEms"
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:648:1: entryRuleEms : ruleEms EOF ;
+ public final void entryRuleEms() throws RecognitionException {
+ try {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:649:1: ( ruleEms EOF )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:650:1: ruleEms EOF
+ {
+ before(grammarAccess.getEmsRule());
+ pushFollow(FOLLOW_ruleEms_in_entryRuleEms1321);
+ ruleEms();
+
+ state._fsp--;
+
+ after(grammarAccess.getEmsRule());
+ match(input,EOF,FOLLOW_EOF_in_entryRuleEms1328);
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return ;
+ }
+ // $ANTLR end "entryRuleEms"
+
+
+ // $ANTLR start "ruleEms"
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:657:1: ruleEms : ( ( rule__Ems__Group__0 ) ) ;
+ public final void ruleEms() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:661:2: ( ( ( rule__Ems__Group__0 ) ) )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:662:1: ( ( rule__Ems__Group__0 ) )
+ {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:662:1: ( ( rule__Ems__Group__0 ) )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:663:1: ( rule__Ems__Group__0 )
+ {
+ before(grammarAccess.getEmsAccess().getGroup());
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:664:1: ( rule__Ems__Group__0 )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:664:2: rule__Ems__Group__0
+ {
+ pushFollow(FOLLOW_rule__Ems__Group__0_in_ruleEms1354);
+ rule__Ems__Group__0();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getEmsAccess().getGroup());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "ruleEms"
+
+
+ // $ANTLR start "entryRuleExs"
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:676:1: entryRuleExs : ruleExs EOF ;
+ public final void entryRuleExs() throws RecognitionException {
+ try {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:677:1: ( ruleExs EOF )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:678:1: ruleExs EOF
+ {
+ before(grammarAccess.getExsRule());
+ pushFollow(FOLLOW_ruleExs_in_entryRuleExs1381);
+ ruleExs();
+
+ state._fsp--;
+
+ after(grammarAccess.getExsRule());
+ match(input,EOF,FOLLOW_EOF_in_entryRuleExs1388);
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return ;
+ }
+ // $ANTLR end "entryRuleExs"
+
+
+ // $ANTLR start "ruleExs"
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:685:1: ruleExs : ( ( rule__Exs__Group__0 ) ) ;
+ public final void ruleExs() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:689:2: ( ( ( rule__Exs__Group__0 ) ) )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:690:1: ( ( rule__Exs__Group__0 ) )
+ {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:690:1: ( ( rule__Exs__Group__0 ) )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:691:1: ( rule__Exs__Group__0 )
+ {
+ before(grammarAccess.getExsAccess().getGroup());
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:692:1: ( rule__Exs__Group__0 )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:692:2: rule__Exs__Group__0
+ {
+ pushFollow(FOLLOW_rule__Exs__Group__0_in_ruleExs1414);
+ rule__Exs__Group__0();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getExsAccess().getGroup());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "ruleExs"
+
+
+ // $ANTLR start "entryRuleAngle"
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:704:1: entryRuleAngle : ruleAngle EOF ;
+ public final void entryRuleAngle() throws RecognitionException {
+ try {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:705:1: ( ruleAngle EOF )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:706:1: ruleAngle EOF
+ {
+ before(grammarAccess.getAngleRule());
+ pushFollow(FOLLOW_ruleAngle_in_entryRuleAngle1441);
+ ruleAngle();
+
+ state._fsp--;
+
+ after(grammarAccess.getAngleRule());
+ match(input,EOF,FOLLOW_EOF_in_entryRuleAngle1448);
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return ;
+ }
+ // $ANTLR end "entryRuleAngle"
+
+
+ // $ANTLR start "ruleAngle"
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:713:1: ruleAngle : ( ( rule__Angle__Group__0 ) ) ;
+ public final void ruleAngle() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:717:2: ( ( ( rule__Angle__Group__0 ) ) )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:718:1: ( ( rule__Angle__Group__0 ) )
+ {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:718:1: ( ( rule__Angle__Group__0 ) )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:719:1: ( rule__Angle__Group__0 )
+ {
+ before(grammarAccess.getAngleAccess().getGroup());
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:720:1: ( rule__Angle__Group__0 )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:720:2: rule__Angle__Group__0
+ {
+ pushFollow(FOLLOW_rule__Angle__Group__0_in_ruleAngle1474);
+ rule__Angle__Group__0();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getAngleAccess().getGroup());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "ruleAngle"
+
+
+ // $ANTLR start "entryRuleTime"
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:732:1: entryRuleTime : ruleTime EOF ;
+ public final void entryRuleTime() throws RecognitionException {
+ try {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:733:1: ( ruleTime EOF )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:734:1: ruleTime EOF
+ {
+ before(grammarAccess.getTimeRule());
+ pushFollow(FOLLOW_ruleTime_in_entryRuleTime1501);
+ ruleTime();
+
+ state._fsp--;
+
+ after(grammarAccess.getTimeRule());
+ match(input,EOF,FOLLOW_EOF_in_entryRuleTime1508);
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return ;
+ }
+ // $ANTLR end "entryRuleTime"
+
+
+ // $ANTLR start "ruleTime"
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:741:1: ruleTime : ( ( rule__Time__Group__0 ) ) ;
+ public final void ruleTime() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:745:2: ( ( ( rule__Time__Group__0 ) ) )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:746:1: ( ( rule__Time__Group__0 ) )
+ {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:746:1: ( ( rule__Time__Group__0 ) )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:747:1: ( rule__Time__Group__0 )
+ {
+ before(grammarAccess.getTimeAccess().getGroup());
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:748:1: ( rule__Time__Group__0 )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:748:2: rule__Time__Group__0
+ {
+ pushFollow(FOLLOW_rule__Time__Group__0_in_ruleTime1534);
+ rule__Time__Group__0();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getTimeAccess().getGroup());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "ruleTime"
+
+
+ // $ANTLR start "entryRuleFrequency"
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:760:1: entryRuleFrequency : ruleFrequency EOF ;
+ public final void entryRuleFrequency() throws RecognitionException {
+ try {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:761:1: ( ruleFrequency EOF )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:762:1: ruleFrequency EOF
+ {
+ before(grammarAccess.getFrequencyRule());
+ pushFollow(FOLLOW_ruleFrequency_in_entryRuleFrequency1561);
+ ruleFrequency();
+
+ state._fsp--;
+
+ after(grammarAccess.getFrequencyRule());
+ match(input,EOF,FOLLOW_EOF_in_entryRuleFrequency1568);
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return ;
+ }
+ // $ANTLR end "entryRuleFrequency"
+
+
+ // $ANTLR start "ruleFrequency"
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:769:1: ruleFrequency : ( ( rule__Frequency__Group__0 ) ) ;
+ public final void ruleFrequency() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:773:2: ( ( ( rule__Frequency__Group__0 ) ) )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:774:1: ( ( rule__Frequency__Group__0 ) )
+ {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:774:1: ( ( rule__Frequency__Group__0 ) )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:775:1: ( rule__Frequency__Group__0 )
+ {
+ before(grammarAccess.getFrequencyAccess().getGroup());
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:776:1: ( rule__Frequency__Group__0 )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:776:2: rule__Frequency__Group__0
+ {
+ pushFollow(FOLLOW_rule__Frequency__Group__0_in_ruleFrequency1594);
+ rule__Frequency__Group__0();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getFrequencyAccess().getGroup());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "ruleFrequency"
+
+
+ // $ANTLR start "entryRuleUri"
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:788:1: entryRuleUri : ruleUri EOF ;
+ public final void entryRuleUri() throws RecognitionException {
+ try {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:789:1: ( ruleUri EOF )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:790:1: ruleUri EOF
+ {
+ before(grammarAccess.getUriRule());
+ pushFollow(FOLLOW_ruleUri_in_entryRuleUri1621);
+ ruleUri();
+
+ state._fsp--;
+
+ after(grammarAccess.getUriRule());
+ match(input,EOF,FOLLOW_EOF_in_entryRuleUri1628);
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return ;
+ }
+ // $ANTLR end "entryRuleUri"
+
+
+ // $ANTLR start "ruleUri"
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:797:1: ruleUri : ( ( rule__Uri__Group__0 ) ) ;
+ public final void ruleUri() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:801:2: ( ( ( rule__Uri__Group__0 ) ) )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:802:1: ( ( rule__Uri__Group__0 ) )
+ {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:802:1: ( ( rule__Uri__Group__0 ) )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:803:1: ( rule__Uri__Group__0 )
+ {
+ before(grammarAccess.getUriAccess().getGroup());
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:804:1: ( rule__Uri__Group__0 )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:804:2: rule__Uri__Group__0
+ {
+ pushFollow(FOLLOW_rule__Uri__Group__0_in_ruleUri1654);
+ rule__Uri__Group__0();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getUriAccess().getGroup());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "ruleUri"
+
+
+ // $ANTLR start "entryRuleStringValue"
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:816:1: entryRuleStringValue : ruleStringValue EOF ;
+ public final void entryRuleStringValue() throws RecognitionException {
+ try {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:817:1: ( ruleStringValue EOF )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:818:1: ruleStringValue EOF
+ {
+ before(grammarAccess.getStringValueRule());
+ pushFollow(FOLLOW_ruleStringValue_in_entryRuleStringValue1681);
+ ruleStringValue();
+
+ state._fsp--;
+
+ after(grammarAccess.getStringValueRule());
+ match(input,EOF,FOLLOW_EOF_in_entryRuleStringValue1688);
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return ;
+ }
+ // $ANTLR end "entryRuleStringValue"
+
+
+ // $ANTLR start "ruleStringValue"
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:825:1: ruleStringValue : ( ( rule__StringValue__ValueAssignment ) ) ;
+ public final void ruleStringValue() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:829:2: ( ( ( rule__StringValue__ValueAssignment ) ) )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:830:1: ( ( rule__StringValue__ValueAssignment ) )
+ {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:830:1: ( ( rule__StringValue__ValueAssignment ) )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:831:1: ( rule__StringValue__ValueAssignment )
+ {
+ before(grammarAccess.getStringValueAccess().getValueAssignment());
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:832:1: ( rule__StringValue__ValueAssignment )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:832:2: rule__StringValue__ValueAssignment
+ {
+ pushFollow(FOLLOW_rule__StringValue__ValueAssignment_in_ruleStringValue1714);
+ rule__StringValue__ValueAssignment();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getStringValueAccess().getValueAssignment());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "ruleStringValue"
+
+
+ // $ANTLR start "entryRuleHexColor"
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:844:1: entryRuleHexColor : ruleHexColor EOF ;
+ public final void entryRuleHexColor() throws RecognitionException {
+ try {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:845:1: ( ruleHexColor EOF )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:846:1: ruleHexColor EOF
+ {
+ before(grammarAccess.getHexColorRule());
+ pushFollow(FOLLOW_ruleHexColor_in_entryRuleHexColor1741);
+ ruleHexColor();
+
+ state._fsp--;
+
+ after(grammarAccess.getHexColorRule());
+ match(input,EOF,FOLLOW_EOF_in_entryRuleHexColor1748);
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return ;
+ }
+ // $ANTLR end "entryRuleHexColor"
+
+
+ // $ANTLR start "ruleHexColor"
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:853:1: ruleHexColor : ( ( rule__HexColor__ValueAssignment ) ) ;
+ public final void ruleHexColor() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:857:2: ( ( ( rule__HexColor__ValueAssignment ) ) )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:858:1: ( ( rule__HexColor__ValueAssignment ) )
+ {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:858:1: ( ( rule__HexColor__ValueAssignment ) )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:859:1: ( rule__HexColor__ValueAssignment )
+ {
+ before(grammarAccess.getHexColorAccess().getValueAssignment());
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:860:1: ( rule__HexColor__ValueAssignment )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:860:2: rule__HexColor__ValueAssignment
+ {
+ pushFollow(FOLLOW_rule__HexColor__ValueAssignment_in_ruleHexColor1774);
+ rule__HexColor__ValueAssignment();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getHexColorAccess().getValueAssignment());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "ruleHexColor"
+
+
+ // $ANTLR start "entryRuleOperator"
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:872:1: entryRuleOperator : ruleOperator EOF ;
+ public final void entryRuleOperator() throws RecognitionException {
+ try {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:873:1: ( ruleOperator EOF )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:874:1: ruleOperator EOF
+ {
+ before(grammarAccess.getOperatorRule());
+ pushFollow(FOLLOW_ruleOperator_in_entryRuleOperator1801);
+ ruleOperator();
+
+ state._fsp--;
+
+ after(grammarAccess.getOperatorRule());
+ match(input,EOF,FOLLOW_EOF_in_entryRuleOperator1808);
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return ;
+ }
+ // $ANTLR end "entryRuleOperator"
+
+
+ // $ANTLR start "ruleOperator"
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:881:1: ruleOperator : ( ( rule__Operator__Alternatives ) ) ;
+ public final void ruleOperator() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:885:2: ( ( ( rule__Operator__Alternatives ) ) )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:886:1: ( ( rule__Operator__Alternatives ) )
+ {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:886:1: ( ( rule__Operator__Alternatives ) )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:887:1: ( rule__Operator__Alternatives )
+ {
+ before(grammarAccess.getOperatorAccess().getAlternatives());
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:888:1: ( rule__Operator__Alternatives )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:888:2: rule__Operator__Alternatives
+ {
+ pushFollow(FOLLOW_rule__Operator__Alternatives_in_ruleOperator1834);
+ rule__Operator__Alternatives();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getOperatorAccess().getAlternatives());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "ruleOperator"
+
+
+ // $ANTLR start "entryRuleClass"
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:900:1: entryRuleClass : ruleClass EOF ;
+ public final void entryRuleClass() throws RecognitionException {
+ try {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:901:1: ( ruleClass EOF )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:902:1: ruleClass EOF
+ {
+ before(grammarAccess.getClassRule());
+ pushFollow(FOLLOW_ruleClass_in_entryRuleClass1861);
+ ruleClass();
+
+ state._fsp--;
+
+ after(grammarAccess.getClassRule());
+ match(input,EOF,FOLLOW_EOF_in_entryRuleClass1868);
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return ;
+ }
+ // $ANTLR end "entryRuleClass"
+
+
+ // $ANTLR start "ruleClass"
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:909:1: ruleClass : ( ( rule__Class__ClassAssignment ) ) ;
+ public final void ruleClass() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:913:2: ( ( ( rule__Class__ClassAssignment ) ) )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:914:1: ( ( rule__Class__ClassAssignment ) )
+ {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:914:1: ( ( rule__Class__ClassAssignment ) )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:915:1: ( rule__Class__ClassAssignment )
+ {
+ before(grammarAccess.getClassAccess().getClassAssignment());
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:916:1: ( rule__Class__ClassAssignment )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:916:2: rule__Class__ClassAssignment
+ {
+ pushFollow(FOLLOW_rule__Class__ClassAssignment_in_ruleClass1894);
+ rule__Class__ClassAssignment();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getClassAccess().getClassAssignment());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "ruleClass"
+
+
+ // $ANTLR start "entryRuleAttribute"
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:928:1: entryRuleAttribute : ruleAttribute EOF ;
+ public final void entryRuleAttribute() throws RecognitionException {
+ try {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:929:1: ( ruleAttribute EOF )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:930:1: ruleAttribute EOF
+ {
+ before(grammarAccess.getAttributeRule());
+ pushFollow(FOLLOW_ruleAttribute_in_entryRuleAttribute1921);
+ ruleAttribute();
+
+ state._fsp--;
+
+ after(grammarAccess.getAttributeRule());
+ match(input,EOF,FOLLOW_EOF_in_entryRuleAttribute1928);
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return ;
+ }
+ // $ANTLR end "entryRuleAttribute"
+
+
+ // $ANTLR start "ruleAttribute"
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:937:1: ruleAttribute : ( ( rule__Attribute__Group__0 ) ) ;
+ public final void ruleAttribute() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:941:2: ( ( ( rule__Attribute__Group__0 ) ) )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:942:1: ( ( rule__Attribute__Group__0 ) )
+ {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:942:1: ( ( rule__Attribute__Group__0 ) )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:943:1: ( rule__Attribute__Group__0 )
+ {
+ before(grammarAccess.getAttributeAccess().getGroup());
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:944:1: ( rule__Attribute__Group__0 )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:944:2: rule__Attribute__Group__0
+ {
+ pushFollow(FOLLOW_rule__Attribute__Group__0_in_ruleAttribute1954);
+ rule__Attribute__Group__0();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getAttributeAccess().getGroup());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "ruleAttribute"
+
+
+ // $ANTLR start "entryRuleAttributeValue"
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:956:1: entryRuleAttributeValue : ruleAttributeValue EOF ;
+ public final void entryRuleAttributeValue() throws RecognitionException {
+ try {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:957:1: ( ruleAttributeValue EOF )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:958:1: ruleAttributeValue EOF
+ {
+ before(grammarAccess.getAttributeValueRule());
+ pushFollow(FOLLOW_ruleAttributeValue_in_entryRuleAttributeValue1981);
+ ruleAttributeValue();
+
+ state._fsp--;
+
+ after(grammarAccess.getAttributeValueRule());
+ match(input,EOF,FOLLOW_EOF_in_entryRuleAttributeValue1988);
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return ;
+ }
+ // $ANTLR end "entryRuleAttributeValue"
+
+
+ // $ANTLR start "ruleAttributeValue"
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:965:1: ruleAttributeValue : ( ( rule__AttributeValue__Group__0 ) ) ;
+ public final void ruleAttributeValue() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:969:2: ( ( ( rule__AttributeValue__Group__0 ) ) )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:970:1: ( ( rule__AttributeValue__Group__0 ) )
+ {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:970:1: ( ( rule__AttributeValue__Group__0 ) )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:971:1: ( rule__AttributeValue__Group__0 )
+ {
+ before(grammarAccess.getAttributeValueAccess().getGroup());
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:972:1: ( rule__AttributeValue__Group__0 )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:972:2: rule__AttributeValue__Group__0
+ {
+ pushFollow(FOLLOW_rule__AttributeValue__Group__0_in_ruleAttributeValue2014);
+ rule__AttributeValue__Group__0();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getAttributeValueAccess().getGroup());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "ruleAttributeValue"
+
+
+ // $ANTLR start "entryRulePseudo"
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:984:1: entryRulePseudo : rulePseudo EOF ;
+ public final void entryRulePseudo() throws RecognitionException {
+ try {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:985:1: ( rulePseudo EOF )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:986:1: rulePseudo EOF
+ {
+ before(grammarAccess.getPseudoRule());
+ pushFollow(FOLLOW_rulePseudo_in_entryRulePseudo2041);
+ rulePseudo();
+
+ state._fsp--;
+
+ after(grammarAccess.getPseudoRule());
+ match(input,EOF,FOLLOW_EOF_in_entryRulePseudo2048);
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return ;
+ }
+ // $ANTLR end "entryRulePseudo"
+
+
+ // $ANTLR start "rulePseudo"
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:993:1: rulePseudo : ( ( rule__Pseudo__Group__0 ) ) ;
+ public final void rulePseudo() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:997:2: ( ( ( rule__Pseudo__Group__0 ) ) )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:998:1: ( ( rule__Pseudo__Group__0 ) )
+ {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:998:1: ( ( rule__Pseudo__Group__0 ) )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:999:1: ( rule__Pseudo__Group__0 )
+ {
+ before(grammarAccess.getPseudoAccess().getGroup());
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1000:1: ( rule__Pseudo__Group__0 )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1000:2: rule__Pseudo__Group__0
+ {
+ pushFollow(FOLLOW_rule__Pseudo__Group__0_in_rulePseudo2074);
+ rule__Pseudo__Group__0();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getPseudoAccess().getGroup());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rulePseudo"
+
+
+ // $ANTLR start "entryRuleCSSId"
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1012:1: entryRuleCSSId : ruleCSSId EOF ;
+ public final void entryRuleCSSId() throws RecognitionException {
+ try {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1013:1: ( ruleCSSId EOF )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1014:1: ruleCSSId EOF
+ {
+ before(grammarAccess.getCSSIdRule());
+ pushFollow(FOLLOW_ruleCSSId_in_entryRuleCSSId2101);
+ ruleCSSId();
+
+ state._fsp--;
+
+ after(grammarAccess.getCSSIdRule());
+ match(input,EOF,FOLLOW_EOF_in_entryRuleCSSId2108);
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return ;
+ }
+ // $ANTLR end "entryRuleCSSId"
+
+
+ // $ANTLR start "ruleCSSId"
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1021:1: ruleCSSId : ( ( rule__CSSId__ValueAssignment ) ) ;
+ public final void ruleCSSId() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1025:2: ( ( ( rule__CSSId__ValueAssignment ) ) )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1026:1: ( ( rule__CSSId__ValueAssignment ) )
+ {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1026:1: ( ( rule__CSSId__ValueAssignment ) )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1027:1: ( rule__CSSId__ValueAssignment )
+ {
+ before(grammarAccess.getCSSIdAccess().getValueAssignment());
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1028:1: ( rule__CSSId__ValueAssignment )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1028:2: rule__CSSId__ValueAssignment
+ {
+ pushFollow(FOLLOW_rule__CSSId__ValueAssignment_in_ruleCSSId2134);
+ rule__CSSId__ValueAssignment();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getCSSIdAccess().getValueAssignment());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "ruleCSSId"
+
+
+ // $ANTLR start "entryRuleUnaryOperator"
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1040:1: entryRuleUnaryOperator : ruleUnaryOperator EOF ;
+ public final void entryRuleUnaryOperator() throws RecognitionException {
+ try {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1041:1: ( ruleUnaryOperator EOF )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1042:1: ruleUnaryOperator EOF
+ {
+ before(grammarAccess.getUnaryOperatorRule());
+ pushFollow(FOLLOW_ruleUnaryOperator_in_entryRuleUnaryOperator2161);
+ ruleUnaryOperator();
+
+ state._fsp--;
+
+ after(grammarAccess.getUnaryOperatorRule());
+ match(input,EOF,FOLLOW_EOF_in_entryRuleUnaryOperator2168);
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return ;
+ }
+ // $ANTLR end "entryRuleUnaryOperator"
+
+
+ // $ANTLR start "ruleUnaryOperator"
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1049:1: ruleUnaryOperator : ( ( rule__UnaryOperator__OperatorAssignment ) ) ;
+ public final void ruleUnaryOperator() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1053:2: ( ( ( rule__UnaryOperator__OperatorAssignment ) ) )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1054:1: ( ( rule__UnaryOperator__OperatorAssignment ) )
+ {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1054:1: ( ( rule__UnaryOperator__OperatorAssignment ) )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1055:1: ( rule__UnaryOperator__OperatorAssignment )
+ {
+ before(grammarAccess.getUnaryOperatorAccess().getOperatorAssignment());
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1056:1: ( rule__UnaryOperator__OperatorAssignment )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1056:2: rule__UnaryOperator__OperatorAssignment
+ {
+ pushFollow(FOLLOW_rule__UnaryOperator__OperatorAssignment_in_ruleUnaryOperator2194);
+ rule__UnaryOperator__OperatorAssignment();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getUnaryOperatorAccess().getOperatorAssignment());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "ruleUnaryOperator"
+
+
+ // $ANTLR start "ruleUNARY"
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1069:1: ruleUNARY : ( ( rule__UNARY__Alternatives ) ) ;
+ public final void ruleUNARY() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1073:1: ( ( ( rule__UNARY__Alternatives ) ) )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1074:1: ( ( rule__UNARY__Alternatives ) )
+ {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1074:1: ( ( rule__UNARY__Alternatives ) )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1075:1: ( rule__UNARY__Alternatives )
+ {
+ before(grammarAccess.getUNARYAccess().getAlternatives());
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1076:1: ( rule__UNARY__Alternatives )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1076:2: rule__UNARY__Alternatives
+ {
+ pushFollow(FOLLOW_rule__UNARY__Alternatives_in_ruleUNARY2231);
+ rule__UNARY__Alternatives();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getUNARYAccess().getAlternatives());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "ruleUNARY"
+
+
+ // $ANTLR start "ruleKIND"
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1088:1: ruleKIND : ( ( rule__KIND__Alternatives ) ) ;
+ public final void ruleKIND() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1092:1: ( ( ( rule__KIND__Alternatives ) ) )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1093:1: ( ( rule__KIND__Alternatives ) )
+ {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1093:1: ( ( rule__KIND__Alternatives ) )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1094:1: ( rule__KIND__Alternatives )
+ {
+ before(grammarAccess.getKINDAccess().getAlternatives());
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1095:1: ( rule__KIND__Alternatives )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1095:2: rule__KIND__Alternatives
+ {
+ pushFollow(FOLLOW_rule__KIND__Alternatives_in_ruleKIND2267);
+ rule__KIND__Alternatives();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getKINDAccess().getAlternatives());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "ruleKIND"
+
+
+ // $ANTLR start "ruleATTRIBUTE_OP"
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1107:1: ruleATTRIBUTE_OP : ( ( rule__ATTRIBUTE_OP__Alternatives ) ) ;
+ public final void ruleATTRIBUTE_OP() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1111:1: ( ( ( rule__ATTRIBUTE_OP__Alternatives ) ) )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1112:1: ( ( rule__ATTRIBUTE_OP__Alternatives ) )
+ {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1112:1: ( ( rule__ATTRIBUTE_OP__Alternatives ) )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1113:1: ( rule__ATTRIBUTE_OP__Alternatives )
+ {
+ before(grammarAccess.getATTRIBUTE_OPAccess().getAlternatives());
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1114:1: ( rule__ATTRIBUTE_OP__Alternatives )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1114:2: rule__ATTRIBUTE_OP__Alternatives
+ {
+ pushFollow(FOLLOW_rule__ATTRIBUTE_OP__Alternatives_in_ruleATTRIBUTE_OP2303);
+ rule__ATTRIBUTE_OP__Alternatives();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getATTRIBUTE_OPAccess().getAlternatives());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "ruleATTRIBUTE_OP"
+
+
+ // $ANTLR start "rule__Stylesheet__Alternatives_1"
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1125:1: rule__Stylesheet__Alternatives_1 : ( ( RULE_WS ) | ( RULE_CDO ) | ( RULE_CDC ) );
+ public final void rule__Stylesheet__Alternatives_1() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1129:1: ( ( RULE_WS ) | ( RULE_CDO ) | ( RULE_CDC ) )
+ int alt1=3;
+ switch ( input.LA(1) ) {
+ case RULE_WS:
+ {
+ alt1=1;
+ }
+ break;
+ case RULE_CDO:
+ {
+ alt1=2;
+ }
+ break;
+ case RULE_CDC:
+ {
+ alt1=3;
+ }
+ break;
+ default:
+ NoViableAltException nvae =
+ new NoViableAltException("", 1, 0, input);
+
+ throw nvae;
+ }
+
+ switch (alt1) {
+ case 1 :
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1130:1: ( RULE_WS )
+ {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1130:1: ( RULE_WS )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1131:1: RULE_WS
+ {
+ before(grammarAccess.getStylesheetAccess().getWSTerminalRuleCall_1_0());
+ match(input,RULE_WS,FOLLOW_RULE_WS_in_rule__Stylesheet__Alternatives_12338);
+ after(grammarAccess.getStylesheetAccess().getWSTerminalRuleCall_1_0());
+
+ }
+
+
+ }
+ break;
+ case 2 :
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1136:6: ( RULE_CDO )
+ {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1136:6: ( RULE_CDO )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1137:1: RULE_CDO
+ {
+ before(grammarAccess.getStylesheetAccess().getCDOTerminalRuleCall_1_1());
+ match(input,RULE_CDO,FOLLOW_RULE_CDO_in_rule__Stylesheet__Alternatives_12355);
+ after(grammarAccess.getStylesheetAccess().getCDOTerminalRuleCall_1_1());
+
+ }
+
+
+ }
+ break;
+ case 3 :
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1142:6: ( RULE_CDC )
+ {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1142:6: ( RULE_CDC )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1143:1: RULE_CDC
+ {
+ before(grammarAccess.getStylesheetAccess().getCDCTerminalRuleCall_1_2());
+ match(input,RULE_CDC,FOLLOW_RULE_CDC_in_rule__Stylesheet__Alternatives_12372);
+ after(grammarAccess.getStylesheetAccess().getCDCTerminalRuleCall_1_2());
+
+ }
+
+
+ }
+ break;
+
+ }
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__Stylesheet__Alternatives_1"
+
+
+ // $ANTLR start "rule__Stylesheet__Alternatives_2_1"
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1153:1: rule__Stylesheet__Alternatives_2_1 : ( ( ( rule__Stylesheet__Group_2_1_0__0 ) ) | ( ( rule__Stylesheet__Group_2_1_1__0 ) ) );
+ public final void rule__Stylesheet__Alternatives_2_1() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1157:1: ( ( ( rule__Stylesheet__Group_2_1_0__0 ) ) | ( ( rule__Stylesheet__Group_2_1_1__0 ) ) )
+ int alt2=2;
+ int LA2_0 = input.LA(1);
+
+ if ( (LA2_0==RULE_CDO) ) {
+ alt2=1;
+ }
+ else if ( (LA2_0==RULE_CDC) ) {
+ alt2=2;
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("", 2, 0, input);
+
+ throw nvae;
+ }
+ switch (alt2) {
+ case 1 :
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1158:1: ( ( rule__Stylesheet__Group_2_1_0__0 ) )
+ {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1158:1: ( ( rule__Stylesheet__Group_2_1_0__0 ) )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1159:1: ( rule__Stylesheet__Group_2_1_0__0 )
+ {
+ before(grammarAccess.getStylesheetAccess().getGroup_2_1_0());
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1160:1: ( rule__Stylesheet__Group_2_1_0__0 )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1160:2: rule__Stylesheet__Group_2_1_0__0
+ {
+ pushFollow(FOLLOW_rule__Stylesheet__Group_2_1_0__0_in_rule__Stylesheet__Alternatives_2_12404);
+ rule__Stylesheet__Group_2_1_0__0();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getStylesheetAccess().getGroup_2_1_0());
+
+ }
+
+
+ }
+ break;
+ case 2 :
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1164:6: ( ( rule__Stylesheet__Group_2_1_1__0 ) )
+ {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1164:6: ( ( rule__Stylesheet__Group_2_1_1__0 ) )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1165:1: ( rule__Stylesheet__Group_2_1_1__0 )
+ {
+ before(grammarAccess.getStylesheetAccess().getGroup_2_1_1());
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1166:1: ( rule__Stylesheet__Group_2_1_1__0 )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1166:2: rule__Stylesheet__Group_2_1_1__0
+ {
+ pushFollow(FOLLOW_rule__Stylesheet__Group_2_1_1__0_in_rule__Stylesheet__Alternatives_2_12422);
+ rule__Stylesheet__Group_2_1_1__0();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getStylesheetAccess().getGroup_2_1_1());
+
+ }
+
+
+ }
+ break;
+
+ }
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__Stylesheet__Alternatives_2_1"
+
+
+ // $ANTLR start "rule__Stylesheet__Alternatives_3_1"
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1175:1: rule__Stylesheet__Alternatives_3_1 : ( ( ( rule__Stylesheet__Group_3_1_0__0 ) ) | ( ( rule__Stylesheet__Group_3_1_1__0 ) ) );
+ public final void rule__Stylesheet__Alternatives_3_1() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1179:1: ( ( ( rule__Stylesheet__Group_3_1_0__0 ) ) | ( ( rule__Stylesheet__Group_3_1_1__0 ) ) )
+ int alt3=2;
+ int LA3_0 = input.LA(1);
+
+ if ( (LA3_0==RULE_CDO) ) {
+ alt3=1;
+ }
+ else if ( (LA3_0==RULE_CDC) ) {
+ alt3=2;
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("", 3, 0, input);
+
+ throw nvae;
+ }
+ switch (alt3) {
+ case 1 :
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1180:1: ( ( rule__Stylesheet__Group_3_1_0__0 ) )
+ {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1180:1: ( ( rule__Stylesheet__Group_3_1_0__0 ) )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1181:1: ( rule__Stylesheet__Group_3_1_0__0 )
+ {
+ before(grammarAccess.getStylesheetAccess().getGroup_3_1_0());
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1182:1: ( rule__Stylesheet__Group_3_1_0__0 )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1182:2: rule__Stylesheet__Group_3_1_0__0
+ {
+ pushFollow(FOLLOW_rule__Stylesheet__Group_3_1_0__0_in_rule__Stylesheet__Alternatives_3_12455);
+ rule__Stylesheet__Group_3_1_0__0();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getStylesheetAccess().getGroup_3_1_0());
+
+ }
+
+
+ }
+ break;
+ case 2 :
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1186:6: ( ( rule__Stylesheet__Group_3_1_1__0 ) )
+ {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1186:6: ( ( rule__Stylesheet__Group_3_1_1__0 ) )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1187:1: ( rule__Stylesheet__Group_3_1_1__0 )
+ {
+ before(grammarAccess.getStylesheetAccess().getGroup_3_1_1());
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1188:1: ( rule__Stylesheet__Group_3_1_1__0 )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1188:2: rule__Stylesheet__Group_3_1_1__0
+ {
+ pushFollow(FOLLOW_rule__Stylesheet__Group_3_1_1__0_in_rule__Stylesheet__Alternatives_3_12473);
+ rule__Stylesheet__Group_3_1_1__0();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getStylesheetAccess().getGroup_3_1_1());
+
+ }
+
+
+ }
+ break;
+
+ }
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__Stylesheet__Alternatives_3_1"
+
+
+ // $ANTLR start "rule__Content__Alternatives"
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1197:1: rule__Content__Alternatives : ( ( ruleRuleset ) | ( ruleMedia ) | ( rulePage ) );
+ public final void rule__Content__Alternatives() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1201:1: ( ( ruleRuleset ) | ( ruleMedia ) | ( rulePage ) )
+ int alt4=3;
+ switch ( input.LA(1) ) {
+ case RULE_ID:
+ case RULE_HASH:
+ case RULE_T_CLASS:
+ case 22:
+ case 37:
+ case 42:
+ {
+ alt4=1;
+ }
+ break;
+ case 33:
+ {
+ alt4=2;
+ }
+ break;
+ case 36:
+ {
+ alt4=3;
+ }
+ break;
+ default:
+ NoViableAltException nvae =
+ new NoViableAltException("", 4, 0, input);
+
+ throw nvae;
+ }
+
+ switch (alt4) {
+ case 1 :
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1202:1: ( ruleRuleset )
+ {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1202:1: ( ruleRuleset )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1203:1: ruleRuleset
+ {
+ before(grammarAccess.getContentAccess().getRulesetParserRuleCall_0());
+ pushFollow(FOLLOW_ruleRuleset_in_rule__Content__Alternatives2506);
+ ruleRuleset();
+
+ state._fsp--;
+
+ after(grammarAccess.getContentAccess().getRulesetParserRuleCall_0());
+
+ }
+
+
+ }
+ break;
+ case 2 :
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1208:6: ( ruleMedia )
+ {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1208:6: ( ruleMedia )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1209:1: ruleMedia
+ {
+ before(grammarAccess.getContentAccess().getMediaParserRuleCall_1());
+ pushFollow(FOLLOW_ruleMedia_in_rule__Content__Alternatives2523);
+ ruleMedia();
+
+ state._fsp--;
+
+ after(grammarAccess.getContentAccess().getMediaParserRuleCall_1());
+
+ }
+
+
+ }
+ break;
+ case 3 :
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1214:6: ( rulePage )
+ {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1214:6: ( rulePage )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1215:1: rulePage
+ {
+ before(grammarAccess.getContentAccess().getPageParserRuleCall_2());
+ pushFollow(FOLLOW_rulePage_in_rule__Content__Alternatives2540);
+ rulePage();
+
+ state._fsp--;
+
+ after(grammarAccess.getContentAccess().getPageParserRuleCall_2());
+
+ }
+
+
+ }
+ break;
+
+ }
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__Content__Alternatives"
+
+
+ // $ANTLR start "rule__Import__Alternatives_1"
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1225:1: rule__Import__Alternatives_1 : ( ( ( rule__Import__Group_1_0__0 ) ) | ( ( rule__Import__Group_1_1__0 ) ) );
+ public final void rule__Import__Alternatives_1() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1229:1: ( ( ( rule__Import__Group_1_0__0 ) ) | ( ( rule__Import__Group_1_1__0 ) ) )
+ int alt5=2;
+ int LA5_0 = input.LA(1);
+
+ if ( (LA5_0==RULE_WS) ) {
+ int LA5_1 = input.LA(2);
+
+ if ( (LA5_1==40) ) {
+ alt5=2;
+ }
+ else if ( (LA5_1==RULE_WS||LA5_1==RULE_STRING) ) {
+ alt5=1;
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("", 5, 1, input);
+
+ throw nvae;
+ }
+ }
+ else if ( (LA5_0==RULE_STRING) ) {
+ alt5=1;
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("", 5, 0, input);
+
+ throw nvae;
+ }
+ switch (alt5) {
+ case 1 :
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1230:1: ( ( rule__Import__Group_1_0__0 ) )
+ {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1230:1: ( ( rule__Import__Group_1_0__0 ) )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1231:1: ( rule__Import__Group_1_0__0 )
+ {
+ before(grammarAccess.getImportAccess().getGroup_1_0());
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1232:1: ( rule__Import__Group_1_0__0 )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1232:2: rule__Import__Group_1_0__0
+ {
+ pushFollow(FOLLOW_rule__Import__Group_1_0__0_in_rule__Import__Alternatives_12572);
+ rule__Import__Group_1_0__0();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getImportAccess().getGroup_1_0());
+
+ }
+
+
+ }
+ break;
+ case 2 :
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1236:6: ( ( rule__Import__Group_1_1__0 ) )
+ {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1236:6: ( ( rule__Import__Group_1_1__0 ) )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1237:1: ( rule__Import__Group_1_1__0 )
+ {
+ before(grammarAccess.getImportAccess().getGroup_1_1());
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1238:1: ( rule__Import__Group_1_1__0 )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1238:2: rule__Import__Group_1_1__0
+ {
+ pushFollow(FOLLOW_rule__Import__Group_1_1__0_in_rule__Import__Alternatives_12590);
+ rule__Import__Group_1_1__0();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getImportAccess().getGroup_1_1());
+
+ }
+
+
+ }
+ break;
+
+ }
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__Import__Alternatives_1"
+
+
+ // $ANTLR start "rule__Selector__Alternatives"
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1247:1: rule__Selector__Alternatives : ( ( ( rule__Selector__Group_0__0 ) ) | ( ruleCompositeSelector ) );
+ public final void rule__Selector__Alternatives() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1251:1: ( ( ( rule__Selector__Group_0__0 ) ) | ( ruleCompositeSelector ) )
+ int alt6=2;
+ alt6 = dfa6.predict(input);
+ switch (alt6) {
+ case 1 :
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1252:1: ( ( rule__Selector__Group_0__0 ) )
+ {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1252:1: ( ( rule__Selector__Group_0__0 ) )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1253:1: ( rule__Selector__Group_0__0 )
+ {
+ before(grammarAccess.getSelectorAccess().getGroup_0());
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1254:1: ( rule__Selector__Group_0__0 )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1254:2: rule__Selector__Group_0__0
+ {
+ pushFollow(FOLLOW_rule__Selector__Group_0__0_in_rule__Selector__Alternatives2623);
+ rule__Selector__Group_0__0();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getSelectorAccess().getGroup_0());
+
+ }
+
+
+ }
+ break;
+ case 2 :
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1258:6: ( ruleCompositeSelector )
+ {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1258:6: ( ruleCompositeSelector )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1259:1: ruleCompositeSelector
+ {
+ before(grammarAccess.getSelectorAccess().getCompositeSelectorParserRuleCall_1());
+ pushFollow(FOLLOW_ruleCompositeSelector_in_rule__Selector__Alternatives2641);
+ ruleCompositeSelector();
+
+ state._fsp--;
+
+ after(grammarAccess.getSelectorAccess().getCompositeSelectorParserRuleCall_1());
+
+ }
+
+
+ }
+ break;
+
+ }
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__Selector__Alternatives"
+
+
+ // $ANTLR start "rule__CompositeSelector__Alternatives_1"
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1269:1: rule__CompositeSelector__Alternatives_1 : ( ( ( ( RULE_WS ) ) ( ( RULE_WS )* ) ) | ( ( rule__CompositeSelector__Group_1_1__0 ) ) );
+ public final void rule__CompositeSelector__Alternatives_1() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1273:1: ( ( ( ( RULE_WS ) ) ( ( RULE_WS )* ) ) | ( ( rule__CompositeSelector__Group_1_1__0 ) ) )
+ int alt8=2;
+ alt8 = dfa8.predict(input);
+ switch (alt8) {
+ case 1 :
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1274:1: ( ( ( RULE_WS ) ) ( ( RULE_WS )* ) )
+ {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1274:1: ( ( ( RULE_WS ) ) ( ( RULE_WS )* ) )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1275:1: ( ( RULE_WS ) ) ( ( RULE_WS )* )
+ {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1275:1: ( ( RULE_WS ) )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1276:1: ( RULE_WS )
+ {
+ before(grammarAccess.getCompositeSelectorAccess().getWSTerminalRuleCall_1_0());
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1277:1: ( RULE_WS )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1277:3: RULE_WS
+ {
+ match(input,RULE_WS,FOLLOW_RULE_WS_in_rule__CompositeSelector__Alternatives_12676);
+
+ }
+
+ after(grammarAccess.getCompositeSelectorAccess().getWSTerminalRuleCall_1_0());
+
+ }
+
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1280:1: ( ( RULE_WS )* )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1281:1: ( RULE_WS )*
+ {
+ before(grammarAccess.getCompositeSelectorAccess().getWSTerminalRuleCall_1_0());
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1282:1: ( RULE_WS )*
+ loop7:
+ do {
+ int alt7=2;
+ int LA7_0 = input.LA(1);
+
+ if ( (LA7_0==RULE_WS) ) {
+ alt7=1;
+ }
+
+
+ switch (alt7) {
+ case 1 :
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1282:3: RULE_WS
+ {
+ match(input,RULE_WS,FOLLOW_RULE_WS_in_rule__CompositeSelector__Alternatives_12689);
+
+ }
+ break;
+
+ default :
+ break loop7;
+ }
+ } while (true);
+
+ after(grammarAccess.getCompositeSelectorAccess().getWSTerminalRuleCall_1_0());
+
+ }
+
+
+ }
+
+
+ }
+ break;
+ case 2 :
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1287:6: ( ( rule__CompositeSelector__Group_1_1__0 ) )
+ {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1287:6: ( ( rule__CompositeSelector__Group_1_1__0 ) )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1288:1: ( rule__CompositeSelector__Group_1_1__0 )
+ {
+ before(grammarAccess.getCompositeSelectorAccess().getGroup_1_1());
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1289:1: ( rule__CompositeSelector__Group_1_1__0 )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1289:2: rule__CompositeSelector__Group_1_1__0
+ {
+ pushFollow(FOLLOW_rule__CompositeSelector__Group_1_1__0_in_rule__CompositeSelector__Alternatives_12710);
+ rule__CompositeSelector__Group_1_1__0();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getCompositeSelectorAccess().getGroup_1_1());
+
+ }
+
+
+ }
+ break;
+
+ }
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__CompositeSelector__Alternatives_1"
+
+
+ // $ANTLR start "rule__SimpleSelector__Alternatives"
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1298:1: rule__SimpleSelector__Alternatives : ( ( ( rule__SimpleSelector__Group_0__0 ) ) | ( ( ( rule__SimpleSelector__ConditionAssignment_1 ) ) ( ( rule__SimpleSelector__ConditionAssignment_1 )* ) ) );
+ public final void rule__SimpleSelector__Alternatives() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1302:1: ( ( ( rule__SimpleSelector__Group_0__0 ) ) | ( ( ( rule__SimpleSelector__ConditionAssignment_1 ) ) ( ( rule__SimpleSelector__ConditionAssignment_1 )* ) ) )
+ int alt10=2;
+ int LA10_0 = input.LA(1);
+
+ if ( (LA10_0==RULE_ID||LA10_0==22) ) {
+ alt10=1;
+ }
+ else if ( ((LA10_0>=RULE_HASH && LA10_0<=RULE_T_CLASS)||LA10_0==37||LA10_0==42) ) {
+ alt10=2;
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("", 10, 0, input);
+
+ throw nvae;
+ }
+ switch (alt10) {
+ case 1 :
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1303:1: ( ( rule__SimpleSelector__Group_0__0 ) )
+ {
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1303:1: ( ( rule__SimpleSelector__Group_0__0 ) )
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1304:1: ( rule__SimpleSelector__Group_0__0 )
+ {
+ before(grammarAccess.getSimpleSelectorAccess().getGroup_0());
+ // ../org.eclipse.papyrus.infra.gmfdiag.css.xtext.ui/src-gen/org/eclipse/papyrus/infra/gmfdiag/ui/contentassist/antlr/internal/InternalCSS.g:1305:1: ( rule__SimpleSelector__Group_0__0 )
+ // ../org.eclipse.papyrus.inf |