mirror of
https://github.com/Minres/RDL-Editor.git
synced 2025-04-21 15:42:16 +02:00
Compare commits
67 Commits
Author | SHA1 | Date | |
---|---|---|---|
52c0c1d9a6 | |||
80ebbbea0f | |||
f7c2614e8a | |||
35a4e7f5cf | |||
d657ab45b7 | |||
e2d7a0f180 | |||
13594cf149 | |||
c6efe0f9d2 | |||
262100d648 | |||
ab015c3d88 | |||
30b425dbcf | |||
aa866c26a3 | |||
53bee39661 | |||
954bf79d9c | |||
26fc38b7ee | |||
1d2384257e | |||
1c9c0ee340 | |||
96c8c1310e | |||
0ced8fcec4 | |||
9211dfdb68 | |||
9fdaf19fea | |||
84d69fef5b | |||
1639239b2b | |||
dae876ff84 | |||
a78566675e | |||
291a079bc0 | |||
6b1bc92918 | |||
5a62a66f94 | |||
ffa5058caa | |||
c827f261ff | |||
564977ed54 | |||
add1d362cc | |||
1804692f8d | |||
ef9391a196 | |||
2173b0554f | |||
7e060f2a7e | |||
c2ff8f1f67 | |||
aee194f777 | |||
c7d8d6c417 | |||
acb5b95f5a | |||
e43f205ba7 | |||
661a40c5d4 | |||
1eea28e55c | |||
9a55dd5a21 | |||
cc6d106838 | |||
71f8f3b920 | |||
|
126046430d | ||
30653d0f26 | |||
dada6724db | |||
0e526f811a | |||
f950322d05 | |||
|
a1bcd48a4c | ||
|
781b83091c | ||
|
b6528d97e3 | ||
|
fd0d001b3f | ||
|
6c7515fd49 | ||
8a4469923a | |||
a973f43fe6 | |||
8ceb09beed | |||
d865faf127 | |||
bc15a75974 | |||
d050a47357 | |||
dc6577b2b9 | |||
93646a3ad0 | |||
bd660003f4 | |||
cc2891cb8c | |||
|
2d55eac2b9 |
3
.gitignore
vendored
3
.gitignore
vendored
@ -3,3 +3,6 @@ com.minres.rdl.parent/*/target
|
|||||||
*.xtextbin
|
*.xtextbin
|
||||||
*.xtendbin
|
*.xtendbin
|
||||||
*._trace
|
*._trace
|
||||||
|
/.envrc
|
||||||
|
/*.py
|
||||||
|
/*.txt
|
||||||
|
24
Modulefile
Normal file
24
Modulefile
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
#%Module######################################################################
|
||||||
|
##
|
||||||
|
## Project Module
|
||||||
|
##
|
||||||
|
proc ModulesHelp { } {
|
||||||
|
puts stderr "\tThe TGFS-CG Project Module\n"
|
||||||
|
puts stderr "\tThis module loads PATHs and variables for accessing Verilator."
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#set distro [exec /bin/lsb_release -i -s]
|
||||||
|
#if { $distro == "CentOS" && ![info exists ::env(PROJECT)] && ![info exists ::env(PCP_DIR)] } {
|
||||||
|
# puts stderr "Don't forget to execute 'scl enable devtoolset-7 bash'"
|
||||||
|
#}
|
||||||
|
|
||||||
|
if {![info exists ::env(PROJECT)] && [file exists $::env(HOME)/.sdkman/candidates/java/17.0.2-open/] != 1} {
|
||||||
|
puts stderr "Please install java via 'sdk install java 17.0.2-open'!"
|
||||||
|
prereq java/17.0.2
|
||||||
|
} else {
|
||||||
|
prepend-path PATH $::env(HOME)/.sdkman/candidates/java/17.0.2-open/bin
|
||||||
|
}
|
||||||
|
|
||||||
|
setenv PROJECT RDL-Editor
|
||||||
|
|
11
README.md
11
README.md
@ -1,2 +1,9 @@
|
|||||||
# RDL-Editor
|
## RDL Editor
|
||||||
An Xtext based SystemRDL editor with syntax highlighting and cross references
|
|
||||||
|
This is an editor for [SystemRDL](http://www.accellera.org/activities/working-groups/systemrdl/).
|
||||||
|
|
||||||
|
Quote from Accellera: "SystemRDL is designed to increase productivity, quality, and reuse during the design and development of complex digital systems. It can be used to share IP within and between groups, companies, and consortiums. This is accomplished by specifying a single source for the register description from which all views can be automatically generated, which ensures consistency between multiple views. A view is any output generated from the SystemRDL description, e.g., RTL code or documentation."
|
||||||
|
|
||||||
|
The editor is build on top of [Eclipse Xtext](http://www.eclipse.org/Xtext/), a framework to build **D**omain **S**pecific **L**anguages (DSL).
|
||||||
|
|
||||||
|
It has a code generator to create the register models using the [SC-Components](https://github.com/Minres/SystemC-Components) library. Due to the nature of Xtext this generator can easily be tailored to various needs.
|
||||||
|
1
_config.yml
Normal file
1
_config.yml
Normal file
@ -0,0 +1 @@
|
|||||||
|
theme: jekyll-theme-tactile
|
@ -2,31 +2,8 @@
|
|||||||
<feature
|
<feature
|
||||||
id="com.minres.rdl.feature"
|
id="com.minres.rdl.feature"
|
||||||
label="RDL Feature "
|
label="RDL Feature "
|
||||||
version="1.0.0.qualifier">
|
version="1.4.1"
|
||||||
|
provider-name="MINRES Technologies GmbH">
|
||||||
<requires>
|
|
||||||
<import plugin="org.eclipse.xtext"/>
|
|
||||||
<import plugin="org.eclipse.xtext.xbase"/>
|
|
||||||
<import plugin="org.eclipse.equinox.common" version="3.5.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.emf.ecore"/>
|
|
||||||
<import plugin="org.eclipse.xtext.xbase.lib"/>
|
|
||||||
<import plugin="org.antlr.runtime"/>
|
|
||||||
<import plugin="org.eclipse.xtext.util"/>
|
|
||||||
<import plugin="org.eclipse.xtend.lib"/>
|
|
||||||
<import plugin="org.eclipse.emf.common"/>
|
|
||||||
<import plugin="org.eclipse.equinox.preferences"/>
|
|
||||||
<import plugin="org.apache.log4j"/>
|
|
||||||
<import plugin="org.eclipse.xtext.ide"/>
|
|
||||||
<import plugin="org.eclipse.xtext.xbase.ide"/>
|
|
||||||
<import plugin="org.eclipse.xtext.ui"/>
|
|
||||||
<import plugin="org.eclipse.xtext.ui.shared"/>
|
|
||||||
<import plugin="org.eclipse.xtext.ui.codetemplates.ui"/>
|
|
||||||
<import plugin="org.eclipse.ui.editors" version="3.5.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.ui.ide" version="3.5.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.ui"/>
|
|
||||||
<import plugin="org.eclipse.compare"/>
|
|
||||||
<import plugin="org.eclipse.xtext.builder"/>
|
|
||||||
</requires>
|
|
||||||
|
|
||||||
<plugin
|
<plugin
|
||||||
id="com.minres.rdl"
|
id="com.minres.rdl"
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>com.minres.rdl</groupId>
|
<groupId>com.minres.rdl</groupId>
|
||||||
<artifactId>com.minres.rdl.parent</artifactId>
|
<artifactId>com.minres.rdl.parent</artifactId>
|
||||||
<version>1.0.0-SNAPSHOT</version>
|
<version>1.4.1</version>
|
||||||
</parent>
|
</parent>
|
||||||
<artifactId>com.minres.rdl.feature</artifactId>
|
<artifactId>com.minres.rdl.feature</artifactId>
|
||||||
<packaging>eclipse-feature</packaging>
|
<packaging>eclipse-feature</packaging>
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
<classpathentry kind="src" path="src"/>
|
<classpathentry kind="src" path="src"/>
|
||||||
<classpathentry kind="src" path="src-gen"/>
|
<classpathentry kind="src" path="src-gen"/>
|
||||||
<classpathentry kind="src" path="xtend-gen"/>
|
<classpathentry kind="src" path="xtend-gen"/>
|
||||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
|
|
||||||
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
|
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
|
||||||
|
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-11"/>
|
||||||
<classpathentry kind="output" path="target/classes"/>
|
<classpathentry kind="output" path="target/classes"/>
|
||||||
</classpath>
|
</classpath>
|
||||||
|
1
com.minres.rdl.parent/com.minres.rdl.ide/.gitignore
vendored
Normal file
1
com.minres.rdl.parent/com.minres.rdl.ide/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
/xtend-gen/
|
@ -1,7 +1,10 @@
|
|||||||
eclipse.preferences.version=1
|
eclipse.preferences.version=1
|
||||||
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
|
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
|
||||||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
|
org.eclipse.jdt.core.compiler.codegen.targetPlatform=11
|
||||||
org.eclipse.jdt.core.compiler.compliance=1.8
|
org.eclipse.jdt.core.compiler.compliance=11
|
||||||
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
|
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
|
||||||
|
org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
|
||||||
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
|
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
|
||||||
org.eclipse.jdt.core.compiler.source=1.8
|
org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning
|
||||||
|
org.eclipse.jdt.core.compiler.release=enabled
|
||||||
|
org.eclipse.jdt.core.compiler.source=11
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
Manifest-Version: 1.0
|
Manifest-Version: 1.0
|
||||||
|
Automatic-Module-Name: com.minres.rdl.ide
|
||||||
Bundle-ManifestVersion: 2
|
Bundle-ManifestVersion: 2
|
||||||
Bundle-Name: com.minres.rdl.ide
|
Bundle-Name: com.minres.rdl.ide
|
||||||
Bundle-Vendor: My Company
|
Bundle-Vendor: My Company
|
||||||
Bundle-Version: 1.0.0.qualifier
|
Bundle-Version: 1.4.1
|
||||||
Bundle-SymbolicName: com.minres.rdl.ide; singleton:=true
|
Bundle-SymbolicName: com.minres.rdl.ide; singleton:=true
|
||||||
Bundle-ActivationPolicy: lazy
|
Bundle-ActivationPolicy: lazy
|
||||||
Require-Bundle: com.minres.rdl,
|
Require-Bundle: com.minres.rdl,
|
||||||
org.eclipse.xtext.ide,
|
org.eclipse.xtext.ide,
|
||||||
org.eclipse.xtext.xbase.ide,
|
org.eclipse.xtext.xbase.ide,
|
||||||
org.antlr.runtime
|
org.antlr.runtime;bundle-version="[3.2.0,3.2.1)"
|
||||||
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
|
Bundle-RequiredExecutionEnvironment: JavaSE-11
|
||||||
Export-Package: com.minres.rdl.ide.contentassist.antlr.internal,
|
Export-Package: com.minres.rdl.ide.contentassist.antlr.internal,
|
||||||
com.minres.rdl.ide.contentassist.antlr
|
com.minres.rdl.ide.contentassist.antlr
|
||||||
|
|
||||||
|
@ -4,17 +4,182 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>com.minres.rdl</groupId>
|
<groupId>com.minres.rdl</groupId>
|
||||||
<artifactId>com.minres.rdl.parent</artifactId>
|
<artifactId>com.minres.rdl.parent</artifactId>
|
||||||
<version>1.0.0-SNAPSHOT</version>
|
<version>1.4.1</version>
|
||||||
</parent>
|
</parent>
|
||||||
<artifactId>com.minres.rdl.ide</artifactId>
|
<artifactId>com.minres.rdl.ide</artifactId>
|
||||||
<packaging>eclipse-plugin</packaging>
|
<packaging>eclipse-plugin</packaging>
|
||||||
|
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>log4j</groupId>
|
||||||
|
<artifactId>log4j</artifactId>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.eclipse.lsp4j</groupId>
|
||||||
|
<artifactId>org.eclipse.lsp4j</artifactId>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.ow2.asm</groupId>
|
||||||
|
<artifactId>asm</artifactId>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.ow2.asm</groupId>
|
||||||
|
<artifactId>asm-commons</artifactId>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.ow2.asm</groupId>
|
||||||
|
<artifactId>asm-tree</artifactId>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.eclipse.xtend</groupId>
|
<groupId>org.eclipse.xtend</groupId>
|
||||||
<artifactId>xtend-maven-plugin</artifactId>
|
<artifactId>xtend-maven-plugin</artifactId>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.eclipse.tycho</groupId>
|
||||||
|
<artifactId>target-platform-configuration</artifactId>
|
||||||
|
<configuration>
|
||||||
|
<pomDependencies>consider</pomDependencies>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-dependency-plugin</artifactId>
|
||||||
|
<version>3.0.1</version>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>copy-dependencies</id>
|
||||||
|
<phase>package</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>copy-dependencies</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<outputDirectory>${project.build.directory}/libs</outputDirectory>
|
||||||
|
<overWriteReleases>false</overWriteReleases>
|
||||||
|
<overWriteSnapshots>false</overWriteSnapshots>
|
||||||
|
<overWriteIfNewer>true</overWriteIfNewer>
|
||||||
|
<excludeTransitive>true</excludeTransitive>
|
||||||
|
<excludeArtifactIds>
|
||||||
|
com.ibm.icu,
|
||||||
|
org.apache.ant,
|
||||||
|
org.apache.commons.lang,
|
||||||
|
org.apache.commons.logging,
|
||||||
|
org.eclipse.core.commands,
|
||||||
|
org.eclipse.core.contenttype,
|
||||||
|
org.eclipse.core.expressions,
|
||||||
|
org.eclipse.core.filesystem,
|
||||||
|
org.eclipse.core.jobs,
|
||||||
|
org.eclipse.core.resources,
|
||||||
|
org.eclipse.core.runtime,
|
||||||
|
org.eclipse.core.variables,
|
||||||
|
org.eclipse.debug.core,
|
||||||
|
org.eclipse.emf.codegen.ecore,
|
||||||
|
org.eclipse.emf.codegen,
|
||||||
|
org.eclipse.emf.mwe.core,
|
||||||
|
org.eclipse.emf.mwe.utils,
|
||||||
|
org.eclipse.emf.mwe2.lib,
|
||||||
|
org.eclipse.emf.mwe2.runtime,
|
||||||
|
org.eclipse.equinox.app,
|
||||||
|
org.eclipse.equinox.preferences,
|
||||||
|
org.eclipse.equinox.registry,
|
||||||
|
org.eclipse.jdt.core,
|
||||||
|
org.eclipse.jdt.debug,
|
||||||
|
org.eclipse.jdt.launching,
|
||||||
|
org.eclipse.text,
|
||||||
|
org.eclipse.xtend.typesystem.emf,
|
||||||
|
org.eclipse.xtend,
|
||||||
|
</excludeArtifactIds>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>com.googlecode.addjars-maven-plugin</groupId>
|
||||||
|
<artifactId>addjars-maven-plugin</artifactId>
|
||||||
|
<version>1.0.5</version>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<phase>package</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>add-jars</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<resources>
|
||||||
|
<resource>
|
||||||
|
<directory>${project.build.directory}/libs</directory>
|
||||||
|
</resource>
|
||||||
|
</resources>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-shade-plugin</artifactId>
|
||||||
|
<version>3.0.0</version>
|
||||||
|
<configuration>
|
||||||
|
<transformers>
|
||||||
|
<transformer
|
||||||
|
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
|
||||||
|
<mainClass>org.eclipse.xtext.ide.server.ServerLauncher</mainClass>
|
||||||
|
</transformer>
|
||||||
|
<transformer
|
||||||
|
implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
|
||||||
|
<resource>plugin.properties</resource>
|
||||||
|
</transformer>
|
||||||
|
</transformers>
|
||||||
|
<artifactSet>
|
||||||
|
<excludes><!-- avoid duplicate inclusion due to addjars plugin -->
|
||||||
|
<exclude>*:com.minres.rdl.ide-org.eclipse.lsp4j*</exclude>
|
||||||
|
<exclude>*:com.minres.rdl.ide-org.eclipse.xtext.xbase.lib*</exclude>
|
||||||
|
<exclude>*:com.minres.rdl.ide-org.eclipse.xtend.lib*</exclude>
|
||||||
|
<exclude>*:com.minres.rdl.ide-com.google.guava*</exclude>
|
||||||
|
<exclude>*:com.minres.rdl.ide-asm*</exclude>
|
||||||
|
<exclude>*:com.minres.rdl.ide-log4j*</exclude>
|
||||||
|
<exclude>*:com.minres.rdl.ide-org.objectweb.asm*</exclude>
|
||||||
|
<exclude>*:com.minres.rdl.ide-org.apache.log4j*</exclude>
|
||||||
|
</excludes>
|
||||||
|
</artifactSet>
|
||||||
|
<filters>
|
||||||
|
<filter>
|
||||||
|
<artifact>*:*</artifact>
|
||||||
|
<excludes>
|
||||||
|
<exclude>META-INF/INDEX.LIST</exclude>
|
||||||
|
<exclude>META-INF/*.SF</exclude>
|
||||||
|
<exclude>META-INF/*.DSA</exclude>
|
||||||
|
<exclude>META-INF/*.RSA</exclude>
|
||||||
|
<exclude>.options</exclude>
|
||||||
|
<exclude>.api_description</exclude>
|
||||||
|
<exclude>*.profile</exclude>
|
||||||
|
<exclude>*.html</exclude>
|
||||||
|
<exclude>about.*</exclude>
|
||||||
|
<exclude>about_files/*</exclude>
|
||||||
|
<exclude>plugin.xml</exclude>
|
||||||
|
<exclude>modeling32.png</exclude>
|
||||||
|
<exclude>systembundle.properties</exclude>
|
||||||
|
<exclude>profile.list</exclude>
|
||||||
|
<exclude>**/*._trace</exclude>
|
||||||
|
<exclude>**/*.g</exclude>
|
||||||
|
<exclude>**/*.mwe2</exclude>
|
||||||
|
<exclude>**/*.xtext</exclude>
|
||||||
|
</excludes>
|
||||||
|
</filter>
|
||||||
|
</filters>
|
||||||
|
<shadedArtifactAttached>true</shadedArtifactAttached>
|
||||||
|
<shadedClassifierName>ls</shadedClassifierName>
|
||||||
|
<minimizeJar>false</minimizeJar>
|
||||||
|
</configuration>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<phase>package</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>shade</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* generated by Xtext 2.12.0
|
* generated by Xtext 2.26.0
|
||||||
*/
|
*/
|
||||||
package com.minres.rdl.ide;
|
package com.minres.rdl.ide;
|
||||||
|
|
||||||
@ -15,6 +15,9 @@ import org.eclipse.xtext.ide.editor.contentassist.IProposalConflictHelper;
|
|||||||
import org.eclipse.xtext.ide.editor.contentassist.antlr.AntlrProposalConflictHelper;
|
import org.eclipse.xtext.ide.editor.contentassist.antlr.AntlrProposalConflictHelper;
|
||||||
import org.eclipse.xtext.ide.editor.contentassist.antlr.IContentAssistParser;
|
import org.eclipse.xtext.ide.editor.contentassist.antlr.IContentAssistParser;
|
||||||
import org.eclipse.xtext.ide.editor.contentassist.antlr.internal.Lexer;
|
import org.eclipse.xtext.ide.editor.contentassist.antlr.internal.Lexer;
|
||||||
|
import org.eclipse.xtext.ide.refactoring.IRenameStrategy2;
|
||||||
|
import org.eclipse.xtext.ide.server.rename.IRenameService2;
|
||||||
|
import org.eclipse.xtext.ide.server.rename.RenameService2;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Manual modifications go to {@link RDLIdeModule}.
|
* Manual modifications go to {@link RDLIdeModule}.
|
||||||
@ -44,4 +47,14 @@ public abstract class AbstractRDLIdeModule extends DefaultIdeModule {
|
|||||||
return FQNPrefixMatcher.class;
|
return FQNPrefixMatcher.class;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// contributed by org.eclipse.xtext.xtext.generator.ui.refactoring.RefactorElementNameFragment2
|
||||||
|
public Class<? extends IRenameService2> bindIRenameService2() {
|
||||||
|
return RenameService2.class;
|
||||||
|
}
|
||||||
|
|
||||||
|
// contributed by org.eclipse.xtext.xtext.generator.ui.refactoring.RefactorElementNameFragment2
|
||||||
|
public Class<? extends IRenameStrategy2> bindIRenameStrategy2() {
|
||||||
|
return IRenameStrategy2.DefaultImpl.class;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* generated by Xtext 2.12.0
|
* generated by Xtext 2.26.0
|
||||||
*/
|
*/
|
||||||
package com.minres.rdl.ide.contentassist.antlr;
|
package com.minres.rdl.ide.contentassist.antlr;
|
||||||
|
|
||||||
@ -8,10 +8,9 @@ import java.util.Collections;
|
|||||||
import org.eclipse.xtext.AbstractRule;
|
import org.eclipse.xtext.AbstractRule;
|
||||||
import org.eclipse.xtext.ide.editor.contentassist.antlr.FollowElement;
|
import org.eclipse.xtext.ide.editor.contentassist.antlr.FollowElement;
|
||||||
import org.eclipse.xtext.ide.editor.contentassist.antlr.internal.AbstractInternalContentAssistParser;
|
import org.eclipse.xtext.ide.editor.contentassist.antlr.internal.AbstractInternalContentAssistParser;
|
||||||
import org.eclipse.xtext.ide.editor.partialEditing.IPartialEditingContentAssistParser;
|
|
||||||
import org.eclipse.xtext.util.PolymorphicDispatcher;
|
import org.eclipse.xtext.util.PolymorphicDispatcher;
|
||||||
|
|
||||||
public class PartialRDLContentAssistParser extends RDLParser implements IPartialEditingContentAssistParser {
|
public class PartialRDLContentAssistParser extends RDLParser {
|
||||||
|
|
||||||
private AbstractRule rule;
|
private AbstractRule rule;
|
||||||
|
|
||||||
|
@ -1,23 +1,222 @@
|
|||||||
/*
|
/*
|
||||||
* generated by Xtext 2.12.0
|
* generated by Xtext 2.26.0
|
||||||
*/
|
*/
|
||||||
package com.minres.rdl.ide.contentassist.antlr;
|
package com.minres.rdl.ide.contentassist.antlr;
|
||||||
|
|
||||||
|
import com.google.common.collect.ImmutableMap;
|
||||||
import com.google.inject.Inject;
|
import com.google.inject.Inject;
|
||||||
|
import com.google.inject.Singleton;
|
||||||
import com.minres.rdl.ide.contentassist.antlr.internal.InternalRDLParser;
|
import com.minres.rdl.ide.contentassist.antlr.internal.InternalRDLParser;
|
||||||
import com.minres.rdl.services.RDLGrammarAccess;
|
import com.minres.rdl.services.RDLGrammarAccess;
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import org.eclipse.xtext.AbstractElement;
|
import org.eclipse.xtext.AbstractElement;
|
||||||
import org.eclipse.xtext.ide.editor.contentassist.antlr.AbstractContentAssistParser;
|
import org.eclipse.xtext.ide.editor.contentassist.antlr.AbstractContentAssistParser;
|
||||||
|
|
||||||
public class RDLParser extends AbstractContentAssistParser {
|
public class RDLParser extends AbstractContentAssistParser {
|
||||||
|
|
||||||
|
@Singleton
|
||||||
|
public static final class NameMappings {
|
||||||
|
|
||||||
|
private final Map<AbstractElement, String> mappings;
|
||||||
|
|
||||||
|
@Inject
|
||||||
|
public NameMappings(RDLGrammarAccess grammarAccess) {
|
||||||
|
ImmutableMap.Builder<AbstractElement, String> builder = ImmutableMap.builder();
|
||||||
|
init(builder, grammarAccess);
|
||||||
|
this.mappings = builder.build();
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRuleName(AbstractElement element) {
|
||||||
|
return mappings.get(element);
|
||||||
|
}
|
||||||
|
|
||||||
|
private static void init(ImmutableMap.Builder<AbstractElement, String> builder, RDLGrammarAccess grammarAccess) {
|
||||||
|
builder.put(grammarAccess.getRootAccess().getAlternatives(), "rule__Root__Alternatives");
|
||||||
|
builder.put(grammarAccess.getPropertyDefinitionAccess().getAlternatives_3(), "rule__PropertyDefinition__Alternatives_3");
|
||||||
|
builder.put(grammarAccess.getPropertyDefinitionAccess().getAlternatives_3_0_4(), "rule__PropertyDefinition__Alternatives_3_0_4");
|
||||||
|
builder.put(grammarAccess.getPropertyDefinitionAccess().getAlternatives_3_1_1(), "rule__PropertyDefinition__Alternatives_3_1_1");
|
||||||
|
builder.put(grammarAccess.getPropertyDefinitionAccess().getAlternatives_3_2_1(), "rule__PropertyDefinition__Alternatives_3_2_1");
|
||||||
|
builder.put(grammarAccess.getPropertyDefaultAccess().getAlternatives_2(), "rule__PropertyDefault__Alternatives_2");
|
||||||
|
builder.put(grammarAccess.getComponentDefinitionAccess().getAlternatives_3(), "rule__ComponentDefinition__Alternatives_3");
|
||||||
|
builder.put(grammarAccess.getInstantiationAccess().getAlternatives_0(), "rule__Instantiation__Alternatives_0");
|
||||||
|
builder.put(grammarAccess.getRangeAccess().getAlternatives_1(), "rule__Range__Alternatives_1");
|
||||||
|
builder.put(grammarAccess.getPropertyAssignmentAccess().getAlternatives(), "rule__PropertyAssignment__Alternatives");
|
||||||
|
builder.put(grammarAccess.getExplicitPropertyAssignmentAccess().getAlternatives(), "rule__ExplicitPropertyAssignment__Alternatives");
|
||||||
|
builder.put(grammarAccess.getPostPropertyAssignmentAccess().getAlternatives_0(), "rule__PostPropertyAssignment__Alternatives_0");
|
||||||
|
builder.put(grammarAccess.getPostPropertyAssignmentAccess().getAlternatives_0_0_2(), "rule__PostPropertyAssignment__Alternatives_0_0_2");
|
||||||
|
builder.put(grammarAccess.getInstancePropertyRefAccess().getAlternatives_1_1(), "rule__InstancePropertyRef__Alternatives_1_1");
|
||||||
|
builder.put(grammarAccess.getEntityAccess().getAlternatives(), "rule__Entity__Alternatives");
|
||||||
|
builder.put(grammarAccess.getPropertyAssignmentRhsAccess().getAlternatives(), "rule__PropertyAssignmentRhs__Alternatives");
|
||||||
|
builder.put(grammarAccess.getConcatElemAccess().getAlternatives(), "rule__ConcatElem__Alternatives");
|
||||||
|
builder.put(grammarAccess.getPropertyRvalueConstantAccess().getAlternatives(), "rule__PropertyRvalueConstant__Alternatives");
|
||||||
|
builder.put(grammarAccess.getEnumPropertyAccess().getAlternatives_0(), "rule__EnumProperty__Alternatives_0");
|
||||||
|
builder.put(grammarAccess.getEnumInstanceTypeAccess().getAlternatives(), "rule__EnumInstanceType__Alternatives");
|
||||||
|
builder.put(grammarAccess.getPropertyTypeNameAccess().getAlternatives(), "rule__PropertyTypeName__Alternatives");
|
||||||
|
builder.put(grammarAccess.getPropertyComponentAccess().getAlternatives(), "rule__PropertyComponent__Alternatives");
|
||||||
|
builder.put(grammarAccess.getComponentDefinitionTypeAccess().getAlternatives(), "rule__ComponentDefinitionType__Alternatives");
|
||||||
|
builder.put(grammarAccess.getPropertyEnumAccess().getAlternatives(), "rule__PropertyEnum__Alternatives");
|
||||||
|
builder.put(grammarAccess.getPropertyAccess().getAlternatives(), "rule__Property__Alternatives");
|
||||||
|
builder.put(grammarAccess.getRValueConstantAccess().getAlternatives(), "rule__RValueConstant__Alternatives");
|
||||||
|
builder.put(grammarAccess.getPropertyModifierAccess().getAlternatives(), "rule__PropertyModifier__Alternatives");
|
||||||
|
builder.put(grammarAccess.getRootAccess().getGroup_1(), "rule__Root__Group_1__0");
|
||||||
|
builder.put(grammarAccess.getRootAccess().getGroup_2(), "rule__Root__Group_2__0");
|
||||||
|
builder.put(grammarAccess.getRootAccess().getGroup_3(), "rule__Root__Group_3__0");
|
||||||
|
builder.put(grammarAccess.getRootAccess().getGroup_4(), "rule__Root__Group_4__0");
|
||||||
|
builder.put(grammarAccess.getRootAccess().getGroup_5(), "rule__Root__Group_5__0");
|
||||||
|
builder.put(grammarAccess.getIncludeAccess().getGroup(), "rule__Include__Group__0");
|
||||||
|
builder.put(grammarAccess.getPropertyDefinitionAccess().getGroup(), "rule__PropertyDefinition__Group__0");
|
||||||
|
builder.put(grammarAccess.getPropertyDefinitionAccess().getGroup_3_0(), "rule__PropertyDefinition__Group_3_0__0");
|
||||||
|
builder.put(grammarAccess.getPropertyDefinitionAccess().getGroup_3_0_4_0(), "rule__PropertyDefinition__Group_3_0_4_0__0");
|
||||||
|
builder.put(grammarAccess.getPropertyDefinitionAccess().getGroup_3_0_4_1(), "rule__PropertyDefinition__Group_3_0_4_1__0");
|
||||||
|
builder.put(grammarAccess.getPropertyDefinitionAccess().getGroup_3_1(), "rule__PropertyDefinition__Group_3_1__0");
|
||||||
|
builder.put(grammarAccess.getPropertyDefinitionAccess().getGroup_3_1_1_0(), "rule__PropertyDefinition__Group_3_1_1_0__0");
|
||||||
|
builder.put(grammarAccess.getPropertyDefinitionAccess().getGroup_3_1_1_1(), "rule__PropertyDefinition__Group_3_1_1_1__0");
|
||||||
|
builder.put(grammarAccess.getPropertyDefinitionAccess().getGroup_3_2(), "rule__PropertyDefinition__Group_3_2__0");
|
||||||
|
builder.put(grammarAccess.getPropertyDefinitionAccess().getGroup_3_2_1_0(), "rule__PropertyDefinition__Group_3_2_1_0__0");
|
||||||
|
builder.put(grammarAccess.getPropertyDefinitionAccess().getGroup_3_2_1_1(), "rule__PropertyDefinition__Group_3_2_1_1__0");
|
||||||
|
builder.put(grammarAccess.getPropertyDefaultAccess().getGroup(), "rule__PropertyDefault__Group__0");
|
||||||
|
builder.put(grammarAccess.getPropertyUsageAccess().getGroup(), "rule__PropertyUsage__Group__0");
|
||||||
|
builder.put(grammarAccess.getPropertyUsageAccess().getGroup_3(), "rule__PropertyUsage__Group_3__0");
|
||||||
|
builder.put(grammarAccess.getComponentDefinitionAccess().getGroup(), "rule__ComponentDefinition__Group__0");
|
||||||
|
builder.put(grammarAccess.getComponentDefinitionAccess().getGroup_3_0(), "rule__ComponentDefinition__Group_3_0__0");
|
||||||
|
builder.put(grammarAccess.getComponentDefinitionAccess().getGroup_3_1(), "rule__ComponentDefinition__Group_3_1__0");
|
||||||
|
builder.put(grammarAccess.getComponentDefinitionAccess().getGroup_3_2(), "rule__ComponentDefinition__Group_3_2__0");
|
||||||
|
builder.put(grammarAccess.getComponentDefinitionAccess().getGroup_3_3(), "rule__ComponentDefinition__Group_3_3__0");
|
||||||
|
builder.put(grammarAccess.getInstantiationAccess().getGroup(), "rule__Instantiation__Group__0");
|
||||||
|
builder.put(grammarAccess.getInstantiationAccess().getGroup_0_0(), "rule__Instantiation__Group_0_0__0");
|
||||||
|
builder.put(grammarAccess.getInstantiationAccess().getGroup_0_0_1(), "rule__Instantiation__Group_0_0_1__0");
|
||||||
|
builder.put(grammarAccess.getInstantiationAccess().getGroup_0_1(), "rule__Instantiation__Group_0_1__0");
|
||||||
|
builder.put(grammarAccess.getInstantiationAccess().getGroup_2(), "rule__Instantiation__Group_2__0");
|
||||||
|
builder.put(grammarAccess.getComponentInstanceAccess().getGroup(), "rule__ComponentInstance__Group__0");
|
||||||
|
builder.put(grammarAccess.getComponentInstanceAccess().getGroup_2(), "rule__ComponentInstance__Group_2__0");
|
||||||
|
builder.put(grammarAccess.getComponentInstanceAccess().getGroup_3(), "rule__ComponentInstance__Group_3__0");
|
||||||
|
builder.put(grammarAccess.getComponentInstanceAccess().getGroup_4(), "rule__ComponentInstance__Group_4__0");
|
||||||
|
builder.put(grammarAccess.getComponentInstanceAccess().getGroup_5(), "rule__ComponentInstance__Group_5__0");
|
||||||
|
builder.put(grammarAccess.getRangeAccess().getGroup(), "rule__Range__Group__0");
|
||||||
|
builder.put(grammarAccess.getRangeAccess().getGroup_1_0(), "rule__Range__Group_1_0__0");
|
||||||
|
builder.put(grammarAccess.getDefaultProperyAssignmentAccess().getGroup(), "rule__DefaultProperyAssignment__Group__0");
|
||||||
|
builder.put(grammarAccess.getExplicitPropertyAssignmentAccess().getGroup_0(), "rule__ExplicitPropertyAssignment__Group_0__0");
|
||||||
|
builder.put(grammarAccess.getExplicitPropertyAssignmentAccess().getGroup_1(), "rule__ExplicitPropertyAssignment__Group_1__0");
|
||||||
|
builder.put(grammarAccess.getExplicitPropertyAssignmentAccess().getGroup_1_1(), "rule__ExplicitPropertyAssignment__Group_1_1__0");
|
||||||
|
builder.put(grammarAccess.getPostPropertyAssignmentAccess().getGroup(), "rule__PostPropertyAssignment__Group__0");
|
||||||
|
builder.put(grammarAccess.getPostPropertyAssignmentAccess().getGroup_0_0(), "rule__PostPropertyAssignment__Group_0_0__0");
|
||||||
|
builder.put(grammarAccess.getPostPropertyAssignmentAccess().getGroup_1(), "rule__PostPropertyAssignment__Group_1__0");
|
||||||
|
builder.put(grammarAccess.getInstancePropertyRefAccess().getGroup(), "rule__InstancePropertyRef__Group__0");
|
||||||
|
builder.put(grammarAccess.getInstancePropertyRefAccess().getGroup_1(), "rule__InstancePropertyRef__Group_1__0");
|
||||||
|
builder.put(grammarAccess.getInstanceRefAccess().getGroup(), "rule__InstanceRef__Group__0");
|
||||||
|
builder.put(grammarAccess.getInstanceRefAccess().getGroup_1(), "rule__InstanceRef__Group_1__0");
|
||||||
|
builder.put(grammarAccess.getHierInstanceRefAccess().getGroup(), "rule__HierInstanceRef__Group__0");
|
||||||
|
builder.put(grammarAccess.getHierInstanceRefAccess().getGroup_1(), "rule__HierInstanceRef__Group_1__0");
|
||||||
|
builder.put(grammarAccess.getPropertyAssignmentRhsAccess().getGroup_2(), "rule__PropertyAssignmentRhs__Group_2__0");
|
||||||
|
builder.put(grammarAccess.getConcatAccess().getGroup(), "rule__Concat__Group__0");
|
||||||
|
builder.put(grammarAccess.getConcatAccess().getGroup_2(), "rule__Concat__Group_2__0");
|
||||||
|
builder.put(grammarAccess.getEnumDefinitionAccess().getGroup(), "rule__EnumDefinition__Group__0");
|
||||||
|
builder.put(grammarAccess.getEnumBodyAccess().getGroup(), "rule__EnumBody__Group__0");
|
||||||
|
builder.put(grammarAccess.getEnumEntryAccess().getGroup(), "rule__EnumEntry__Group__0");
|
||||||
|
builder.put(grammarAccess.getEnumEntryAccess().getGroup_3(), "rule__EnumEntry__Group_3__0");
|
||||||
|
builder.put(grammarAccess.getEnumPropertyAccess().getGroup(), "rule__EnumProperty__Group__0");
|
||||||
|
builder.put(grammarAccess.getEnumPropertyAccess().getGroup_0_0(), "rule__EnumProperty__Group_0_0__0");
|
||||||
|
builder.put(grammarAccess.getEnumPropertyAccess().getGroup_0_1(), "rule__EnumProperty__Group_0_1__0");
|
||||||
|
builder.put(grammarAccess.getRootAccess().getIncludesAssignment_0(), "rule__Root__IncludesAssignment_0");
|
||||||
|
builder.put(grammarAccess.getRootAccess().getComponentDefinitionsAssignment_1_0(), "rule__Root__ComponentDefinitionsAssignment_1_0");
|
||||||
|
builder.put(grammarAccess.getRootAccess().getEnumDefinitionsAssignment_2_0(), "rule__Root__EnumDefinitionsAssignment_2_0");
|
||||||
|
builder.put(grammarAccess.getRootAccess().getInstantiationsAssignment_3_0(), "rule__Root__InstantiationsAssignment_3_0");
|
||||||
|
builder.put(grammarAccess.getRootAccess().getPropertyAssignmentsAssignment_4_0(), "rule__Root__PropertyAssignmentsAssignment_4_0");
|
||||||
|
builder.put(grammarAccess.getRootAccess().getPropertyDefinitionsAssignment_5_0(), "rule__Root__PropertyDefinitionsAssignment_5_0");
|
||||||
|
builder.put(grammarAccess.getIncludeAccess().getImportURIAssignment_1(), "rule__Include__ImportURIAssignment_1");
|
||||||
|
builder.put(grammarAccess.getPropertyDefinitionAccess().getNameAssignment_1(), "rule__PropertyDefinition__NameAssignment_1");
|
||||||
|
builder.put(grammarAccess.getPropertyDefinitionAccess().getTypeAssignment_3_0_2(), "rule__PropertyDefinition__TypeAssignment_3_0_2");
|
||||||
|
builder.put(grammarAccess.getPropertyDefinitionAccess().getUsageAssignment_3_0_4_0_0(), "rule__PropertyDefinition__UsageAssignment_3_0_4_0_0");
|
||||||
|
builder.put(grammarAccess.getPropertyDefinitionAccess().getDefaultAssignment_3_0_4_0_1(), "rule__PropertyDefinition__DefaultAssignment_3_0_4_0_1");
|
||||||
|
builder.put(grammarAccess.getPropertyDefinitionAccess().getDefaultAssignment_3_0_4_1_0(), "rule__PropertyDefinition__DefaultAssignment_3_0_4_1_0");
|
||||||
|
builder.put(grammarAccess.getPropertyDefinitionAccess().getUsageAssignment_3_0_4_1_1(), "rule__PropertyDefinition__UsageAssignment_3_0_4_1_1");
|
||||||
|
builder.put(grammarAccess.getPropertyDefinitionAccess().getUsageAssignment_3_1_0(), "rule__PropertyDefinition__UsageAssignment_3_1_0");
|
||||||
|
builder.put(grammarAccess.getPropertyDefinitionAccess().getTypeAssignment_3_1_1_0_2(), "rule__PropertyDefinition__TypeAssignment_3_1_1_0_2");
|
||||||
|
builder.put(grammarAccess.getPropertyDefinitionAccess().getDefaultAssignment_3_1_1_0_4(), "rule__PropertyDefinition__DefaultAssignment_3_1_1_0_4");
|
||||||
|
builder.put(grammarAccess.getPropertyDefinitionAccess().getDefaultAssignment_3_1_1_1_0(), "rule__PropertyDefinition__DefaultAssignment_3_1_1_1_0");
|
||||||
|
builder.put(grammarAccess.getPropertyDefinitionAccess().getTypeAssignment_3_1_1_1_3(), "rule__PropertyDefinition__TypeAssignment_3_1_1_1_3");
|
||||||
|
builder.put(grammarAccess.getPropertyDefinitionAccess().getDefaultAssignment_3_2_0(), "rule__PropertyDefinition__DefaultAssignment_3_2_0");
|
||||||
|
builder.put(grammarAccess.getPropertyDefinitionAccess().getTypeAssignment_3_2_1_0_2(), "rule__PropertyDefinition__TypeAssignment_3_2_1_0_2");
|
||||||
|
builder.put(grammarAccess.getPropertyDefinitionAccess().getUsageAssignment_3_2_1_0_4(), "rule__PropertyDefinition__UsageAssignment_3_2_1_0_4");
|
||||||
|
builder.put(grammarAccess.getPropertyDefinitionAccess().getUsageAssignment_3_2_1_1_0(), "rule__PropertyDefinition__UsageAssignment_3_2_1_1_0");
|
||||||
|
builder.put(grammarAccess.getPropertyDefinitionAccess().getTypeAssignment_3_2_1_1_3(), "rule__PropertyDefinition__TypeAssignment_3_2_1_1_3");
|
||||||
|
builder.put(grammarAccess.getPropertyDefaultAccess().getStringAssignment_2_0(), "rule__PropertyDefault__StringAssignment_2_0");
|
||||||
|
builder.put(grammarAccess.getPropertyDefaultAccess().getValueAssignment_2_1(), "rule__PropertyDefault__ValueAssignment_2_1");
|
||||||
|
builder.put(grammarAccess.getPropertyDefaultAccess().getStringAssignment_2_2(), "rule__PropertyDefault__StringAssignment_2_2");
|
||||||
|
builder.put(grammarAccess.getPropertyDefaultAccess().getStringAssignment_2_3(), "rule__PropertyDefault__StringAssignment_2_3");
|
||||||
|
builder.put(grammarAccess.getPropertyUsageAccess().getComponentsAssignment_2(), "rule__PropertyUsage__ComponentsAssignment_2");
|
||||||
|
builder.put(grammarAccess.getPropertyUsageAccess().getComponentsAssignment_3_1(), "rule__PropertyUsage__ComponentsAssignment_3_1");
|
||||||
|
builder.put(grammarAccess.getComponentDefinitionAccess().getTypeAssignment_0(), "rule__ComponentDefinition__TypeAssignment_0");
|
||||||
|
builder.put(grammarAccess.getComponentDefinitionAccess().getNameAssignment_1(), "rule__ComponentDefinition__NameAssignment_1");
|
||||||
|
builder.put(grammarAccess.getComponentDefinitionAccess().getComponentDefinitionsAssignment_3_0_0(), "rule__ComponentDefinition__ComponentDefinitionsAssignment_3_0_0");
|
||||||
|
builder.put(grammarAccess.getComponentDefinitionAccess().getInstantiationsAssignment_3_1_0(), "rule__ComponentDefinition__InstantiationsAssignment_3_1_0");
|
||||||
|
builder.put(grammarAccess.getComponentDefinitionAccess().getPropertyAssignmentsAssignment_3_2_0(), "rule__ComponentDefinition__PropertyAssignmentsAssignment_3_2_0");
|
||||||
|
builder.put(grammarAccess.getComponentDefinitionAccess().getEnumDefinitionsAssignment_3_3_0(), "rule__ComponentDefinition__EnumDefinitionsAssignment_3_3_0");
|
||||||
|
builder.put(grammarAccess.getInstantiationAccess().getInstanceTypeAssignment_0_0_0(), "rule__Instantiation__InstanceTypeAssignment_0_0_0");
|
||||||
|
builder.put(grammarAccess.getInstantiationAccess().getAliasAssignment_0_0_1_1(), "rule__Instantiation__AliasAssignment_0_0_1_1");
|
||||||
|
builder.put(grammarAccess.getInstantiationAccess().getComponentRefAssignment_0_0_2(), "rule__Instantiation__ComponentRefAssignment_0_0_2");
|
||||||
|
builder.put(grammarAccess.getInstantiationAccess().getComponentAssignment_0_1_0(), "rule__Instantiation__ComponentAssignment_0_1_0");
|
||||||
|
builder.put(grammarAccess.getInstantiationAccess().getInstanceTypeAssignment_0_1_1(), "rule__Instantiation__InstanceTypeAssignment_0_1_1");
|
||||||
|
builder.put(grammarAccess.getInstantiationAccess().getComponentInstancesAssignment_1(), "rule__Instantiation__ComponentInstancesAssignment_1");
|
||||||
|
builder.put(grammarAccess.getInstantiationAccess().getComponentInstancesAssignment_2_1(), "rule__Instantiation__ComponentInstancesAssignment_2_1");
|
||||||
|
builder.put(grammarAccess.getComponentInstanceAccess().getNameAssignment_0(), "rule__ComponentInstance__NameAssignment_0");
|
||||||
|
builder.put(grammarAccess.getComponentInstanceAccess().getRangeAssignment_1(), "rule__ComponentInstance__RangeAssignment_1");
|
||||||
|
builder.put(grammarAccess.getComponentInstanceAccess().getResetAssignment_2_1(), "rule__ComponentInstance__ResetAssignment_2_1");
|
||||||
|
builder.put(grammarAccess.getComponentInstanceAccess().getAddressAssignment_3_1(), "rule__ComponentInstance__AddressAssignment_3_1");
|
||||||
|
builder.put(grammarAccess.getComponentInstanceAccess().getAddrIncAssignment_4_1(), "rule__ComponentInstance__AddrIncAssignment_4_1");
|
||||||
|
builder.put(grammarAccess.getComponentInstanceAccess().getAddrModAssignment_5_1(), "rule__ComponentInstance__AddrModAssignment_5_1");
|
||||||
|
builder.put(grammarAccess.getRangeAccess().getLeftAssignment_1_0_0(), "rule__Range__LeftAssignment_1_0_0");
|
||||||
|
builder.put(grammarAccess.getRangeAccess().getRightAssignment_1_0_2(), "rule__Range__RightAssignment_1_0_2");
|
||||||
|
builder.put(grammarAccess.getRangeAccess().getSizeAssignment_1_1(), "rule__Range__SizeAssignment_1_1");
|
||||||
|
builder.put(grammarAccess.getExplicitPropertyAssignmentAccess().getModifierAssignment_0_0(), "rule__ExplicitPropertyAssignment__ModifierAssignment_0_0");
|
||||||
|
builder.put(grammarAccess.getExplicitPropertyAssignmentAccess().getNameAssignment_0_1(), "rule__ExplicitPropertyAssignment__NameAssignment_0_1");
|
||||||
|
builder.put(grammarAccess.getExplicitPropertyAssignmentAccess().getNameAssignment_1_0(), "rule__ExplicitPropertyAssignment__NameAssignment_1_0");
|
||||||
|
builder.put(grammarAccess.getExplicitPropertyAssignmentAccess().getRhsAssignment_1_1_1(), "rule__ExplicitPropertyAssignment__RhsAssignment_1_1_1");
|
||||||
|
builder.put(grammarAccess.getPostPropertyAssignmentAccess().getInstanceAssignment_0_0_0(), "rule__PostPropertyAssignment__InstanceAssignment_0_0_0");
|
||||||
|
builder.put(grammarAccess.getPostPropertyAssignmentAccess().getPropertyEnumAssignment_0_0_2_0(), "rule__PostPropertyAssignment__PropertyEnumAssignment_0_0_2_0");
|
||||||
|
builder.put(grammarAccess.getPostPropertyAssignmentAccess().getPropertyAssignment_0_0_2_1(), "rule__PostPropertyAssignment__PropertyAssignment_0_0_2_1");
|
||||||
|
builder.put(grammarAccess.getPostPropertyAssignmentAccess().getPropertyAssignment_0_1(), "rule__PostPropertyAssignment__PropertyAssignment_0_1");
|
||||||
|
builder.put(grammarAccess.getPostPropertyAssignmentAccess().getRhsAssignment_1_1(), "rule__PostPropertyAssignment__RhsAssignment_1_1");
|
||||||
|
builder.put(grammarAccess.getInstancePropertyRefAccess().getInstanceAssignment_0(), "rule__InstancePropertyRef__InstanceAssignment_0");
|
||||||
|
builder.put(grammarAccess.getInstancePropertyRefAccess().getPropertyEnumAssignment_1_1_0(), "rule__InstancePropertyRef__PropertyEnumAssignment_1_1_0");
|
||||||
|
builder.put(grammarAccess.getInstancePropertyRefAccess().getPropertyAssignment_1_1_1(), "rule__InstancePropertyRef__PropertyAssignment_1_1_1");
|
||||||
|
builder.put(grammarAccess.getInstanceRefAccess().getInstanceAssignment_0(), "rule__InstanceRef__InstanceAssignment_0");
|
||||||
|
builder.put(grammarAccess.getInstanceRefAccess().getTailAssignment_1_1(), "rule__InstanceRef__TailAssignment_1_1");
|
||||||
|
builder.put(grammarAccess.getHierInstanceRefAccess().getInstanceAssignment_0(), "rule__HierInstanceRef__InstanceAssignment_0");
|
||||||
|
builder.put(grammarAccess.getHierInstanceRefAccess().getTailAssignment_1_1(), "rule__HierInstanceRef__TailAssignment_1_1");
|
||||||
|
builder.put(grammarAccess.getPropertyAssignmentRhsAccess().getValueAssignment_0(), "rule__PropertyAssignmentRhs__ValueAssignment_0");
|
||||||
|
builder.put(grammarAccess.getPropertyAssignmentRhsAccess().getInstPropRefAssignment_1(), "rule__PropertyAssignmentRhs__InstPropRefAssignment_1");
|
||||||
|
builder.put(grammarAccess.getPropertyAssignmentRhsAccess().getEnumRefAssignment_2_0(), "rule__PropertyAssignmentRhs__EnumRefAssignment_2_0");
|
||||||
|
builder.put(grammarAccess.getPropertyAssignmentRhsAccess().getEnumsAssignment_2_2(), "rule__PropertyAssignmentRhs__EnumsAssignment_2_2");
|
||||||
|
builder.put(grammarAccess.getPropertyAssignmentRhsAccess().getElementsAssignment_3(), "rule__PropertyAssignmentRhs__ElementsAssignment_3");
|
||||||
|
builder.put(grammarAccess.getConcatAccess().getElementsAssignment_1(), "rule__Concat__ElementsAssignment_1");
|
||||||
|
builder.put(grammarAccess.getConcatAccess().getElementsAssignment_2_1(), "rule__Concat__ElementsAssignment_2_1");
|
||||||
|
builder.put(grammarAccess.getConcatElemAccess().getInstPropRefAssignment_0(), "rule__ConcatElem__InstPropRefAssignment_0");
|
||||||
|
builder.put(grammarAccess.getConcatElemAccess().getValueAssignment_1(), "rule__ConcatElem__ValueAssignment_1");
|
||||||
|
builder.put(grammarAccess.getPropertyRvalueConstantAccess().getValAssignment_0(), "rule__PropertyRvalueConstant__ValAssignment_0");
|
||||||
|
builder.put(grammarAccess.getPropertyRvalueConstantAccess().getNumAssignment_1(), "rule__PropertyRvalueConstant__NumAssignment_1");
|
||||||
|
builder.put(grammarAccess.getPropertyRvalueConstantAccess().getStrAssignment_2(), "rule__PropertyRvalueConstant__StrAssignment_2");
|
||||||
|
builder.put(grammarAccess.getEnumDefinitionAccess().getNameAssignment_1(), "rule__EnumDefinition__NameAssignment_1");
|
||||||
|
builder.put(grammarAccess.getEnumDefinitionAccess().getBodyAssignment_2(), "rule__EnumDefinition__BodyAssignment_2");
|
||||||
|
builder.put(grammarAccess.getEnumBodyAccess().getEntriesAssignment_2(), "rule__EnumBody__EntriesAssignment_2");
|
||||||
|
builder.put(grammarAccess.getEnumEntryAccess().getNameAssignment_0(), "rule__EnumEntry__NameAssignment_0");
|
||||||
|
builder.put(grammarAccess.getEnumEntryAccess().getIndexAssignment_2(), "rule__EnumEntry__IndexAssignment_2");
|
||||||
|
builder.put(grammarAccess.getEnumEntryAccess().getPropertiesAssignment_3_1(), "rule__EnumEntry__PropertiesAssignment_3_1");
|
||||||
|
builder.put(grammarAccess.getEnumPropertyAccess().getNameAssignment_0_0_0(), "rule__EnumProperty__NameAssignment_0_0_0");
|
||||||
|
builder.put(grammarAccess.getEnumPropertyAccess().getValueAssignment_0_0_2(), "rule__EnumProperty__ValueAssignment_0_0_2");
|
||||||
|
builder.put(grammarAccess.getEnumPropertyAccess().getNameAssignment_0_1_0(), "rule__EnumProperty__NameAssignment_0_1_0");
|
||||||
|
builder.put(grammarAccess.getEnumPropertyAccess().getValueAssignment_0_1_2(), "rule__EnumProperty__ValueAssignment_0_1_2");
|
||||||
|
builder.put(grammarAccess.getEnumInstanceTypeAccess().getEXTERNALAssignment_0(), "rule__EnumInstanceType__EXTERNALAssignment_0");
|
||||||
|
builder.put(grammarAccess.getEnumInstanceTypeAccess().getINTERNALAssignment_1(), "rule__EnumInstanceType__INTERNALAssignment_1");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Inject
|
||||||
|
private NameMappings nameMappings;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
private RDLGrammarAccess grammarAccess;
|
private RDLGrammarAccess grammarAccess;
|
||||||
|
|
||||||
private Map<AbstractElement, String> nameMappings;
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected InternalRDLParser createParser() {
|
protected InternalRDLParser createParser() {
|
||||||
InternalRDLParser result = new InternalRDLParser(null);
|
InternalRDLParser result = new InternalRDLParser(null);
|
||||||
@ -27,181 +226,7 @@ public class RDLParser extends AbstractContentAssistParser {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected String getRuleName(AbstractElement element) {
|
protected String getRuleName(AbstractElement element) {
|
||||||
if (nameMappings == null) {
|
return nameMappings.getRuleName(element);
|
||||||
nameMappings = new HashMap<AbstractElement, String>() {
|
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
{
|
|
||||||
put(grammarAccess.getRootAccess().getAlternatives(), "rule__Root__Alternatives");
|
|
||||||
put(grammarAccess.getPropertyDefinitionAccess().getAlternatives_3(), "rule__PropertyDefinition__Alternatives_3");
|
|
||||||
put(grammarAccess.getPropertyDefinitionAccess().getAlternatives_3_0_4(), "rule__PropertyDefinition__Alternatives_3_0_4");
|
|
||||||
put(grammarAccess.getPropertyDefinitionAccess().getAlternatives_3_1_1(), "rule__PropertyDefinition__Alternatives_3_1_1");
|
|
||||||
put(grammarAccess.getPropertyDefinitionAccess().getAlternatives_3_2_1(), "rule__PropertyDefinition__Alternatives_3_2_1");
|
|
||||||
put(grammarAccess.getPropertyDefaultAccess().getAlternatives_2(), "rule__PropertyDefault__Alternatives_2");
|
|
||||||
put(grammarAccess.getComponentDefinitionAccess().getAlternatives_3(), "rule__ComponentDefinition__Alternatives_3");
|
|
||||||
put(grammarAccess.getRangeAccess().getAlternatives_1(), "rule__Range__Alternatives_1");
|
|
||||||
put(grammarAccess.getPropertyAssignmentAccess().getAlternatives(), "rule__PropertyAssignment__Alternatives");
|
|
||||||
put(grammarAccess.getExplicitPropertyAssignmentAccess().getAlternatives(), "rule__ExplicitPropertyAssignment__Alternatives");
|
|
||||||
put(grammarAccess.getPostPropertyAssignmentAccess().getAlternatives_0(), "rule__PostPropertyAssignment__Alternatives_0");
|
|
||||||
put(grammarAccess.getPostPropertyAssignmentAccess().getAlternatives_0_0_2(), "rule__PostPropertyAssignment__Alternatives_0_0_2");
|
|
||||||
put(grammarAccess.getInstancePropertyRefAccess().getAlternatives_1_1(), "rule__InstancePropertyRef__Alternatives_1_1");
|
|
||||||
put(grammarAccess.getEntityAccess().getAlternatives(), "rule__Entity__Alternatives");
|
|
||||||
put(grammarAccess.getPropertyAssignmentRhsAccess().getAlternatives(), "rule__PropertyAssignmentRhs__Alternatives");
|
|
||||||
put(grammarAccess.getConcatElemAccess().getAlternatives(), "rule__ConcatElem__Alternatives");
|
|
||||||
put(grammarAccess.getPropertyRvalueConstantAccess().getAlternatives(), "rule__PropertyRvalueConstant__Alternatives");
|
|
||||||
put(grammarAccess.getEnumPropertyAccess().getAlternatives_0(), "rule__EnumProperty__Alternatives_0");
|
|
||||||
put(grammarAccess.getPropertyTypeNameAccess().getAlternatives(), "rule__PropertyTypeName__Alternatives");
|
|
||||||
put(grammarAccess.getPropertyComponentAccess().getAlternatives(), "rule__PropertyComponent__Alternatives");
|
|
||||||
put(grammarAccess.getComponentDefinitionTypeAccess().getAlternatives(), "rule__ComponentDefinitionType__Alternatives");
|
|
||||||
put(grammarAccess.getPropertyEnumAccess().getAlternatives(), "rule__PropertyEnum__Alternatives");
|
|
||||||
put(grammarAccess.getPropertyAccess().getAlternatives(), "rule__Property__Alternatives");
|
|
||||||
put(grammarAccess.getRValueConstantAccess().getAlternatives(), "rule__RValueConstant__Alternatives");
|
|
||||||
put(grammarAccess.getPropertyModifierAccess().getAlternatives(), "rule__PropertyModifier__Alternatives");
|
|
||||||
put(grammarAccess.getIncludeAccess().getGroup(), "rule__Include__Group__0");
|
|
||||||
put(grammarAccess.getPropertyDefinitionAccess().getGroup(), "rule__PropertyDefinition__Group__0");
|
|
||||||
put(grammarAccess.getPropertyDefinitionAccess().getGroup_3_0(), "rule__PropertyDefinition__Group_3_0__0");
|
|
||||||
put(grammarAccess.getPropertyDefinitionAccess().getGroup_3_0_4_0(), "rule__PropertyDefinition__Group_3_0_4_0__0");
|
|
||||||
put(grammarAccess.getPropertyDefinitionAccess().getGroup_3_0_4_1(), "rule__PropertyDefinition__Group_3_0_4_1__0");
|
|
||||||
put(grammarAccess.getPropertyDefinitionAccess().getGroup_3_1(), "rule__PropertyDefinition__Group_3_1__0");
|
|
||||||
put(grammarAccess.getPropertyDefinitionAccess().getGroup_3_1_1_0(), "rule__PropertyDefinition__Group_3_1_1_0__0");
|
|
||||||
put(grammarAccess.getPropertyDefinitionAccess().getGroup_3_1_1_1(), "rule__PropertyDefinition__Group_3_1_1_1__0");
|
|
||||||
put(grammarAccess.getPropertyDefinitionAccess().getGroup_3_2(), "rule__PropertyDefinition__Group_3_2__0");
|
|
||||||
put(grammarAccess.getPropertyDefinitionAccess().getGroup_3_2_1_0(), "rule__PropertyDefinition__Group_3_2_1_0__0");
|
|
||||||
put(grammarAccess.getPropertyDefinitionAccess().getGroup_3_2_1_1(), "rule__PropertyDefinition__Group_3_2_1_1__0");
|
|
||||||
put(grammarAccess.getPropertyDefaultAccess().getGroup(), "rule__PropertyDefault__Group__0");
|
|
||||||
put(grammarAccess.getPropertyUsageAccess().getGroup(), "rule__PropertyUsage__Group__0");
|
|
||||||
put(grammarAccess.getPropertyUsageAccess().getGroup_3(), "rule__PropertyUsage__Group_3__0");
|
|
||||||
put(grammarAccess.getComponentDefinitionAccess().getGroup(), "rule__ComponentDefinition__Group__0");
|
|
||||||
put(grammarAccess.getNamedInstantiationAccess().getGroup(), "rule__NamedInstantiation__Group__0");
|
|
||||||
put(grammarAccess.getNamedInstantiationAccess().getGroup_2(), "rule__NamedInstantiation__Group_2__0");
|
|
||||||
put(grammarAccess.getNamedInstantiationAccess().getGroup_5(), "rule__NamedInstantiation__Group_5__0");
|
|
||||||
put(grammarAccess.getImmediateInstantiationAccess().getGroup(), "rule__ImmediateInstantiation__Group__0");
|
|
||||||
put(grammarAccess.getImmediateInstantiationAccess().getGroup_2(), "rule__ImmediateInstantiation__Group_2__0");
|
|
||||||
put(grammarAccess.getComponentInstanceAccess().getGroup(), "rule__ComponentInstance__Group__0");
|
|
||||||
put(grammarAccess.getComponentInstanceAccess().getGroup_2(), "rule__ComponentInstance__Group_2__0");
|
|
||||||
put(grammarAccess.getComponentInstanceAccess().getGroup_3(), "rule__ComponentInstance__Group_3__0");
|
|
||||||
put(grammarAccess.getComponentInstanceAccess().getGroup_4(), "rule__ComponentInstance__Group_4__0");
|
|
||||||
put(grammarAccess.getComponentInstanceAccess().getGroup_5(), "rule__ComponentInstance__Group_5__0");
|
|
||||||
put(grammarAccess.getRangeAccess().getGroup(), "rule__Range__Group__0");
|
|
||||||
put(grammarAccess.getRangeAccess().getGroup_1_0(), "rule__Range__Group_1_0__0");
|
|
||||||
put(grammarAccess.getDefaultProperyAssignmentAccess().getGroup(), "rule__DefaultProperyAssignment__Group__0");
|
|
||||||
put(grammarAccess.getExplicitPropertyAssignmentAccess().getGroup_0(), "rule__ExplicitPropertyAssignment__Group_0__0");
|
|
||||||
put(grammarAccess.getExplicitPropertyAssignmentAccess().getGroup_1(), "rule__ExplicitPropertyAssignment__Group_1__0");
|
|
||||||
put(grammarAccess.getExplicitPropertyAssignmentAccess().getGroup_1_1(), "rule__ExplicitPropertyAssignment__Group_1_1__0");
|
|
||||||
put(grammarAccess.getPostPropertyAssignmentAccess().getGroup(), "rule__PostPropertyAssignment__Group__0");
|
|
||||||
put(grammarAccess.getPostPropertyAssignmentAccess().getGroup_0_0(), "rule__PostPropertyAssignment__Group_0_0__0");
|
|
||||||
put(grammarAccess.getPostPropertyAssignmentAccess().getGroup_1(), "rule__PostPropertyAssignment__Group_1__0");
|
|
||||||
put(grammarAccess.getInstancePropertyRefAccess().getGroup(), "rule__InstancePropertyRef__Group__0");
|
|
||||||
put(grammarAccess.getInstancePropertyRefAccess().getGroup_1(), "rule__InstancePropertyRef__Group_1__0");
|
|
||||||
put(grammarAccess.getInstanceRefAccess().getGroup(), "rule__InstanceRef__Group__0");
|
|
||||||
put(grammarAccess.getInstanceRefAccess().getGroup_1(), "rule__InstanceRef__Group_1__0");
|
|
||||||
put(grammarAccess.getHierInstanceRefAccess().getGroup(), "rule__HierInstanceRef__Group__0");
|
|
||||||
put(grammarAccess.getHierInstanceRefAccess().getGroup_1(), "rule__HierInstanceRef__Group_1__0");
|
|
||||||
put(grammarAccess.getPropertyAssignmentRhsAccess().getGroup_2(), "rule__PropertyAssignmentRhs__Group_2__0");
|
|
||||||
put(grammarAccess.getConcatAccess().getGroup(), "rule__Concat__Group__0");
|
|
||||||
put(grammarAccess.getConcatAccess().getGroup_2(), "rule__Concat__Group_2__0");
|
|
||||||
put(grammarAccess.getEnumDefinitionAccess().getGroup(), "rule__EnumDefinition__Group__0");
|
|
||||||
put(grammarAccess.getEnumBodyAccess().getGroup(), "rule__EnumBody__Group__0");
|
|
||||||
put(grammarAccess.getEnumEntryAccess().getGroup(), "rule__EnumEntry__Group__0");
|
|
||||||
put(grammarAccess.getEnumEntryAccess().getGroup_3(), "rule__EnumEntry__Group_3__0");
|
|
||||||
put(grammarAccess.getEnumPropertyAccess().getGroup(), "rule__EnumProperty__Group__0");
|
|
||||||
put(grammarAccess.getEnumPropertyAccess().getGroup_0_0(), "rule__EnumProperty__Group_0_0__0");
|
|
||||||
put(grammarAccess.getEnumPropertyAccess().getGroup_0_1(), "rule__EnumProperty__Group_0_1__0");
|
|
||||||
put(grammarAccess.getRootAccess().getIncludesAssignment_0(), "rule__Root__IncludesAssignment_0");
|
|
||||||
put(grammarAccess.getRootAccess().getComponentDefinitionsAssignment_1(), "rule__Root__ComponentDefinitionsAssignment_1");
|
|
||||||
put(grammarAccess.getRootAccess().getEnumDefinitionsAssignment_2(), "rule__Root__EnumDefinitionsAssignment_2");
|
|
||||||
put(grammarAccess.getRootAccess().getNamedInstantiationsAssignment_3(), "rule__Root__NamedInstantiationsAssignment_3");
|
|
||||||
put(grammarAccess.getRootAccess().getPropertyAssignmentsAssignment_4(), "rule__Root__PropertyAssignmentsAssignment_4");
|
|
||||||
put(grammarAccess.getRootAccess().getPropertyDefinitionsAssignment_5(), "rule__Root__PropertyDefinitionsAssignment_5");
|
|
||||||
put(grammarAccess.getIncludeAccess().getImportURIAssignment_1(), "rule__Include__ImportURIAssignment_1");
|
|
||||||
put(grammarAccess.getPropertyDefinitionAccess().getNameAssignment_1(), "rule__PropertyDefinition__NameAssignment_1");
|
|
||||||
put(grammarAccess.getPropertyDefinitionAccess().getTypeAssignment_3_0_2(), "rule__PropertyDefinition__TypeAssignment_3_0_2");
|
|
||||||
put(grammarAccess.getPropertyDefinitionAccess().getUsageAssignment_3_0_4_0_0(), "rule__PropertyDefinition__UsageAssignment_3_0_4_0_0");
|
|
||||||
put(grammarAccess.getPropertyDefinitionAccess().getDefaultAssignment_3_0_4_0_1(), "rule__PropertyDefinition__DefaultAssignment_3_0_4_0_1");
|
|
||||||
put(grammarAccess.getPropertyDefinitionAccess().getDefaultAssignment_3_0_4_1_0(), "rule__PropertyDefinition__DefaultAssignment_3_0_4_1_0");
|
|
||||||
put(grammarAccess.getPropertyDefinitionAccess().getUsageAssignment_3_0_4_1_1(), "rule__PropertyDefinition__UsageAssignment_3_0_4_1_1");
|
|
||||||
put(grammarAccess.getPropertyDefinitionAccess().getUsageAssignment_3_1_0(), "rule__PropertyDefinition__UsageAssignment_3_1_0");
|
|
||||||
put(grammarAccess.getPropertyDefinitionAccess().getTypeAssignment_3_1_1_0_2(), "rule__PropertyDefinition__TypeAssignment_3_1_1_0_2");
|
|
||||||
put(grammarAccess.getPropertyDefinitionAccess().getDefaultAssignment_3_1_1_0_4(), "rule__PropertyDefinition__DefaultAssignment_3_1_1_0_4");
|
|
||||||
put(grammarAccess.getPropertyDefinitionAccess().getDefaultAssignment_3_1_1_1_0(), "rule__PropertyDefinition__DefaultAssignment_3_1_1_1_0");
|
|
||||||
put(grammarAccess.getPropertyDefinitionAccess().getTypeAssignment_3_1_1_1_3(), "rule__PropertyDefinition__TypeAssignment_3_1_1_1_3");
|
|
||||||
put(grammarAccess.getPropertyDefinitionAccess().getDefaultAssignment_3_2_0(), "rule__PropertyDefinition__DefaultAssignment_3_2_0");
|
|
||||||
put(grammarAccess.getPropertyDefinitionAccess().getTypeAssignment_3_2_1_0_2(), "rule__PropertyDefinition__TypeAssignment_3_2_1_0_2");
|
|
||||||
put(grammarAccess.getPropertyDefinitionAccess().getUsageAssignment_3_2_1_0_4(), "rule__PropertyDefinition__UsageAssignment_3_2_1_0_4");
|
|
||||||
put(grammarAccess.getPropertyDefinitionAccess().getUsageAssignment_3_2_1_1_0(), "rule__PropertyDefinition__UsageAssignment_3_2_1_1_0");
|
|
||||||
put(grammarAccess.getPropertyDefinitionAccess().getTypeAssignment_3_2_1_1_3(), "rule__PropertyDefinition__TypeAssignment_3_2_1_1_3");
|
|
||||||
put(grammarAccess.getPropertyDefaultAccess().getStringAssignment_2_0(), "rule__PropertyDefault__StringAssignment_2_0");
|
|
||||||
put(grammarAccess.getPropertyDefaultAccess().getValueAssignment_2_1(), "rule__PropertyDefault__ValueAssignment_2_1");
|
|
||||||
put(grammarAccess.getPropertyDefaultAccess().getStringAssignment_2_2(), "rule__PropertyDefault__StringAssignment_2_2");
|
|
||||||
put(grammarAccess.getPropertyDefaultAccess().getStringAssignment_2_3(), "rule__PropertyDefault__StringAssignment_2_3");
|
|
||||||
put(grammarAccess.getPropertyUsageAccess().getComponentsAssignment_2(), "rule__PropertyUsage__ComponentsAssignment_2");
|
|
||||||
put(grammarAccess.getPropertyUsageAccess().getComponentsAssignment_3_1(), "rule__PropertyUsage__ComponentsAssignment_3_1");
|
|
||||||
put(grammarAccess.getComponentDefinitionAccess().getTypeAssignment_0(), "rule__ComponentDefinition__TypeAssignment_0");
|
|
||||||
put(grammarAccess.getComponentDefinitionAccess().getNameAssignment_1(), "rule__ComponentDefinition__NameAssignment_1");
|
|
||||||
put(grammarAccess.getComponentDefinitionAccess().getComponentDefinitionsAssignment_3_0(), "rule__ComponentDefinition__ComponentDefinitionsAssignment_3_0");
|
|
||||||
put(grammarAccess.getComponentDefinitionAccess().getNamedInstantiationsAssignment_3_1(), "rule__ComponentDefinition__NamedInstantiationsAssignment_3_1");
|
|
||||||
put(grammarAccess.getComponentDefinitionAccess().getPropertyAssignmentsAssignment_3_2(), "rule__ComponentDefinition__PropertyAssignmentsAssignment_3_2");
|
|
||||||
put(grammarAccess.getComponentDefinitionAccess().getEnumDefinitionsAssignment_3_3(), "rule__ComponentDefinition__EnumDefinitionsAssignment_3_3");
|
|
||||||
put(grammarAccess.getComponentDefinitionAccess().getImmediateInstantiationAssignment_5(), "rule__ComponentDefinition__ImmediateInstantiationAssignment_5");
|
|
||||||
put(grammarAccess.getNamedInstantiationAccess().getExternalAssignment_0(), "rule__NamedInstantiation__ExternalAssignment_0");
|
|
||||||
put(grammarAccess.getNamedInstantiationAccess().getInternalAssignment_1(), "rule__NamedInstantiation__InternalAssignment_1");
|
|
||||||
put(grammarAccess.getNamedInstantiationAccess().getAliasAssignment_2_1(), "rule__NamedInstantiation__AliasAssignment_2_1");
|
|
||||||
put(grammarAccess.getNamedInstantiationAccess().getComponentAssignment_3(), "rule__NamedInstantiation__ComponentAssignment_3");
|
|
||||||
put(grammarAccess.getNamedInstantiationAccess().getComponentInstancesAssignment_4(), "rule__NamedInstantiation__ComponentInstancesAssignment_4");
|
|
||||||
put(grammarAccess.getNamedInstantiationAccess().getComponentInstancesAssignment_5_1(), "rule__NamedInstantiation__ComponentInstancesAssignment_5_1");
|
|
||||||
put(grammarAccess.getImmediateInstantiationAccess().getExternalAssignment_0(), "rule__ImmediateInstantiation__ExternalAssignment_0");
|
|
||||||
put(grammarAccess.getImmediateInstantiationAccess().getComponentInstancesAssignment_1(), "rule__ImmediateInstantiation__ComponentInstancesAssignment_1");
|
|
||||||
put(grammarAccess.getImmediateInstantiationAccess().getComponentInstancesAssignment_2_1(), "rule__ImmediateInstantiation__ComponentInstancesAssignment_2_1");
|
|
||||||
put(grammarAccess.getComponentInstanceAccess().getNameAssignment_0(), "rule__ComponentInstance__NameAssignment_0");
|
|
||||||
put(grammarAccess.getComponentInstanceAccess().getRangeAssignment_1(), "rule__ComponentInstance__RangeAssignment_1");
|
|
||||||
put(grammarAccess.getComponentInstanceAccess().getResetAssignment_2_1(), "rule__ComponentInstance__ResetAssignment_2_1");
|
|
||||||
put(grammarAccess.getComponentInstanceAccess().getAddressAssignment_3_1(), "rule__ComponentInstance__AddressAssignment_3_1");
|
|
||||||
put(grammarAccess.getComponentInstanceAccess().getAddrIncAssignment_4_1(), "rule__ComponentInstance__AddrIncAssignment_4_1");
|
|
||||||
put(grammarAccess.getComponentInstanceAccess().getAddrModAssignment_5_1(), "rule__ComponentInstance__AddrModAssignment_5_1");
|
|
||||||
put(grammarAccess.getRangeAccess().getStartAssignment_1_0_0(), "rule__Range__StartAssignment_1_0_0");
|
|
||||||
put(grammarAccess.getRangeAccess().getEndAssignment_1_0_2(), "rule__Range__EndAssignment_1_0_2");
|
|
||||||
put(grammarAccess.getRangeAccess().getSizeAssignment_1_1(), "rule__Range__SizeAssignment_1_1");
|
|
||||||
put(grammarAccess.getExplicitPropertyAssignmentAccess().getModifierAssignment_0_0(), "rule__ExplicitPropertyAssignment__ModifierAssignment_0_0");
|
|
||||||
put(grammarAccess.getExplicitPropertyAssignmentAccess().getNameAssignment_0_1(), "rule__ExplicitPropertyAssignment__NameAssignment_0_1");
|
|
||||||
put(grammarAccess.getExplicitPropertyAssignmentAccess().getNameAssignment_1_0(), "rule__ExplicitPropertyAssignment__NameAssignment_1_0");
|
|
||||||
put(grammarAccess.getExplicitPropertyAssignmentAccess().getRhsAssignment_1_1_1(), "rule__ExplicitPropertyAssignment__RhsAssignment_1_1_1");
|
|
||||||
put(grammarAccess.getPostPropertyAssignmentAccess().getInstanceAssignment_0_0_0(), "rule__PostPropertyAssignment__InstanceAssignment_0_0_0");
|
|
||||||
put(grammarAccess.getPostPropertyAssignmentAccess().getPropertyEnumAssignment_0_0_2_0(), "rule__PostPropertyAssignment__PropertyEnumAssignment_0_0_2_0");
|
|
||||||
put(grammarAccess.getPostPropertyAssignmentAccess().getPropertyAssignment_0_0_2_1(), "rule__PostPropertyAssignment__PropertyAssignment_0_0_2_1");
|
|
||||||
put(grammarAccess.getPostPropertyAssignmentAccess().getPropertyAssignment_0_1(), "rule__PostPropertyAssignment__PropertyAssignment_0_1");
|
|
||||||
put(grammarAccess.getPostPropertyAssignmentAccess().getRhsAssignment_1_1(), "rule__PostPropertyAssignment__RhsAssignment_1_1");
|
|
||||||
put(grammarAccess.getInstancePropertyRefAccess().getInstanceAssignment_0(), "rule__InstancePropertyRef__InstanceAssignment_0");
|
|
||||||
put(grammarAccess.getInstancePropertyRefAccess().getPropertyEnumAssignment_1_1_0(), "rule__InstancePropertyRef__PropertyEnumAssignment_1_1_0");
|
|
||||||
put(grammarAccess.getInstancePropertyRefAccess().getPropertyAssignment_1_1_1(), "rule__InstancePropertyRef__PropertyAssignment_1_1_1");
|
|
||||||
put(grammarAccess.getInstanceRefAccess().getInstanceAssignment_0(), "rule__InstanceRef__InstanceAssignment_0");
|
|
||||||
put(grammarAccess.getInstanceRefAccess().getTailAssignment_1_1(), "rule__InstanceRef__TailAssignment_1_1");
|
|
||||||
put(grammarAccess.getHierInstanceRefAccess().getInstanceAssignment_0(), "rule__HierInstanceRef__InstanceAssignment_0");
|
|
||||||
put(grammarAccess.getHierInstanceRefAccess().getTailAssignment_1_1(), "rule__HierInstanceRef__TailAssignment_1_1");
|
|
||||||
put(grammarAccess.getPropertyAssignmentRhsAccess().getValueAssignment_0(), "rule__PropertyAssignmentRhs__ValueAssignment_0");
|
|
||||||
put(grammarAccess.getPropertyAssignmentRhsAccess().getInstPropRefAssignment_1(), "rule__PropertyAssignmentRhs__InstPropRefAssignment_1");
|
|
||||||
put(grammarAccess.getPropertyAssignmentRhsAccess().getEnumRefAssignment_2_0(), "rule__PropertyAssignmentRhs__EnumRefAssignment_2_0");
|
|
||||||
put(grammarAccess.getPropertyAssignmentRhsAccess().getEnumsAssignment_2_2(), "rule__PropertyAssignmentRhs__EnumsAssignment_2_2");
|
|
||||||
put(grammarAccess.getPropertyAssignmentRhsAccess().getElementsAssignment_3(), "rule__PropertyAssignmentRhs__ElementsAssignment_3");
|
|
||||||
put(grammarAccess.getConcatAccess().getElementsAssignment_1(), "rule__Concat__ElementsAssignment_1");
|
|
||||||
put(grammarAccess.getConcatAccess().getElementsAssignment_2_1(), "rule__Concat__ElementsAssignment_2_1");
|
|
||||||
put(grammarAccess.getConcatElemAccess().getInstPropRefAssignment_0(), "rule__ConcatElem__InstPropRefAssignment_0");
|
|
||||||
put(grammarAccess.getConcatElemAccess().getValueAssignment_1(), "rule__ConcatElem__ValueAssignment_1");
|
|
||||||
put(grammarAccess.getPropertyRvalueConstantAccess().getValAssignment_0(), "rule__PropertyRvalueConstant__ValAssignment_0");
|
|
||||||
put(grammarAccess.getPropertyRvalueConstantAccess().getNumAssignment_1(), "rule__PropertyRvalueConstant__NumAssignment_1");
|
|
||||||
put(grammarAccess.getPropertyRvalueConstantAccess().getStrAssignment_2(), "rule__PropertyRvalueConstant__StrAssignment_2");
|
|
||||||
put(grammarAccess.getEnumDefinitionAccess().getNameAssignment_1(), "rule__EnumDefinition__NameAssignment_1");
|
|
||||||
put(grammarAccess.getEnumDefinitionAccess().getBodyAssignment_2(), "rule__EnumDefinition__BodyAssignment_2");
|
|
||||||
put(grammarAccess.getEnumBodyAccess().getEntriesAssignment_2(), "rule__EnumBody__EntriesAssignment_2");
|
|
||||||
put(grammarAccess.getEnumEntryAccess().getNameAssignment_0(), "rule__EnumEntry__NameAssignment_0");
|
|
||||||
put(grammarAccess.getEnumEntryAccess().getIndexAssignment_2(), "rule__EnumEntry__IndexAssignment_2");
|
|
||||||
put(grammarAccess.getEnumEntryAccess().getPropertiesAssignment_3_1(), "rule__EnumEntry__PropertiesAssignment_3_1");
|
|
||||||
put(grammarAccess.getEnumPropertyAccess().getNameAssignment_0_0_0(), "rule__EnumProperty__NameAssignment_0_0_0");
|
|
||||||
put(grammarAccess.getEnumPropertyAccess().getValueAssignment_0_0_2(), "rule__EnumProperty__ValueAssignment_0_0_2");
|
|
||||||
put(grammarAccess.getEnumPropertyAccess().getNameAssignment_0_1_0(), "rule__EnumProperty__NameAssignment_0_1_0");
|
|
||||||
put(grammarAccess.getEnumPropertyAccess().getValueAssignment_0_1_2(), "rule__EnumProperty__ValueAssignment_0_1_2");
|
|
||||||
}
|
|
||||||
};
|
|
||||||
}
|
|
||||||
return nameMappings.get(element);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -216,4 +241,12 @@ public class RDLParser extends AbstractContentAssistParser {
|
|||||||
public void setGrammarAccess(RDLGrammarAccess grammarAccess) {
|
public void setGrammarAccess(RDLGrammarAccess grammarAccess) {
|
||||||
this.grammarAccess = grammarAccess;
|
this.grammarAccess = grammarAccess;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public NameMappings getNameMappings() {
|
||||||
|
return nameMappings;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setNameMappings(NameMappings nameMappings) {
|
||||||
|
this.nameMappings = nameMappings;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -4,13 +4,13 @@
|
|||||||
'->'=131
|
'->'=131
|
||||||
'.'=132
|
'.'=132
|
||||||
':'=130
|
':'=130
|
||||||
';'=117
|
';'=113
|
||||||
'='=119
|
'='=119
|
||||||
'@'=125
|
'@'=125
|
||||||
'UNDEFINED'=97
|
'UNDEFINED'=97
|
||||||
'['=128
|
'['=128
|
||||||
']'=129
|
']'=129
|
||||||
'`include'=113
|
'`include'=114
|
||||||
'accesswidth'=81
|
'accesswidth'=81
|
||||||
'activehigh'=60
|
'activehigh'=60
|
||||||
'activelow'=61
|
'activelow'=61
|
||||||
@ -78,7 +78,7 @@
|
|||||||
'overflow'=44
|
'overflow'=44
|
||||||
'posedge'=108
|
'posedge'=108
|
||||||
'precedence'=85
|
'precedence'=85
|
||||||
'property'=114
|
'property'=115
|
||||||
'r'=102
|
'r'=102
|
||||||
'rclr'=26
|
'rclr'=26
|
||||||
'ref'=19
|
'ref'=19
|
||||||
@ -118,9 +118,9 @@
|
|||||||
'woset'=28
|
'woset'=28
|
||||||
'wr'=101
|
'wr'=101
|
||||||
'xored'=42
|
'xored'=42
|
||||||
'{'=115
|
'{'=116
|
||||||
'|'=122
|
'|'=122
|
||||||
'}'=116
|
'}'=117
|
||||||
RULE_ESCAPE_JSP=10
|
RULE_ESCAPE_JSP=10
|
||||||
RULE_ESCAPE_ORDL=11
|
RULE_ESCAPE_ORDL=11
|
||||||
RULE_ID=5
|
RULE_ID=5
|
||||||
|
@ -2282,11 +2282,10 @@ public class InternalRDLLexer extends Lexer {
|
|||||||
try {
|
try {
|
||||||
int _type = T__113;
|
int _type = T__113;
|
||||||
int _channel = DEFAULT_TOKEN_CHANNEL;
|
int _channel = DEFAULT_TOKEN_CHANNEL;
|
||||||
// InternalRDL.g:112:8: ( '`include' )
|
// InternalRDL.g:112:8: ( ';' )
|
||||||
// InternalRDL.g:112:10: '`include'
|
// InternalRDL.g:112:10: ';'
|
||||||
{
|
{
|
||||||
match("`include");
|
match(';');
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2303,10 +2302,10 @@ public class InternalRDLLexer extends Lexer {
|
|||||||
try {
|
try {
|
||||||
int _type = T__114;
|
int _type = T__114;
|
||||||
int _channel = DEFAULT_TOKEN_CHANNEL;
|
int _channel = DEFAULT_TOKEN_CHANNEL;
|
||||||
// InternalRDL.g:113:8: ( 'property' )
|
// InternalRDL.g:113:8: ( '`include' )
|
||||||
// InternalRDL.g:113:10: 'property'
|
// InternalRDL.g:113:10: '`include'
|
||||||
{
|
{
|
||||||
match("property");
|
match("`include");
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -2324,10 +2323,11 @@ public class InternalRDLLexer extends Lexer {
|
|||||||
try {
|
try {
|
||||||
int _type = T__115;
|
int _type = T__115;
|
||||||
int _channel = DEFAULT_TOKEN_CHANNEL;
|
int _channel = DEFAULT_TOKEN_CHANNEL;
|
||||||
// InternalRDL.g:114:8: ( '{' )
|
// InternalRDL.g:114:8: ( 'property' )
|
||||||
// InternalRDL.g:114:10: '{'
|
// InternalRDL.g:114:10: 'property'
|
||||||
{
|
{
|
||||||
match('{');
|
match("property");
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2344,10 +2344,10 @@ public class InternalRDLLexer extends Lexer {
|
|||||||
try {
|
try {
|
||||||
int _type = T__116;
|
int _type = T__116;
|
||||||
int _channel = DEFAULT_TOKEN_CHANNEL;
|
int _channel = DEFAULT_TOKEN_CHANNEL;
|
||||||
// InternalRDL.g:115:8: ( '}' )
|
// InternalRDL.g:115:8: ( '{' )
|
||||||
// InternalRDL.g:115:10: '}'
|
// InternalRDL.g:115:10: '{'
|
||||||
{
|
{
|
||||||
match('}');
|
match('{');
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2364,10 +2364,10 @@ public class InternalRDLLexer extends Lexer {
|
|||||||
try {
|
try {
|
||||||
int _type = T__117;
|
int _type = T__117;
|
||||||
int _channel = DEFAULT_TOKEN_CHANNEL;
|
int _channel = DEFAULT_TOKEN_CHANNEL;
|
||||||
// InternalRDL.g:116:8: ( ';' )
|
// InternalRDL.g:116:8: ( '}' )
|
||||||
// InternalRDL.g:116:10: ';'
|
// InternalRDL.g:116:10: '}'
|
||||||
{
|
{
|
||||||
match(';');
|
match('}');
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2733,10 +2733,10 @@ public class InternalRDLLexer extends Lexer {
|
|||||||
try {
|
try {
|
||||||
int _type = RULE_ID;
|
int _type = RULE_ID;
|
||||||
int _channel = DEFAULT_TOKEN_CHANNEL;
|
int _channel = DEFAULT_TOKEN_CHANNEL;
|
||||||
// InternalRDL.g:7642:9: ( ( '\\\\' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* )
|
// InternalRDL.g:7882:9: ( ( '\\\\' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* )
|
||||||
// InternalRDL.g:7642:11: ( '\\\\' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*
|
// InternalRDL.g:7882:11: ( '\\\\' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*
|
||||||
{
|
{
|
||||||
// InternalRDL.g:7642:11: ( '\\\\' )?
|
// InternalRDL.g:7882:11: ( '\\\\' )?
|
||||||
int alt1=2;
|
int alt1=2;
|
||||||
int LA1_0 = input.LA(1);
|
int LA1_0 = input.LA(1);
|
||||||
|
|
||||||
@ -2745,7 +2745,7 @@ public class InternalRDLLexer extends Lexer {
|
|||||||
}
|
}
|
||||||
switch (alt1) {
|
switch (alt1) {
|
||||||
case 1 :
|
case 1 :
|
||||||
// InternalRDL.g:7642:11: '\\\\'
|
// InternalRDL.g:7882:11: '\\\\'
|
||||||
{
|
{
|
||||||
match('\\');
|
match('\\');
|
||||||
|
|
||||||
@ -2763,7 +2763,7 @@ public class InternalRDLLexer extends Lexer {
|
|||||||
recover(mse);
|
recover(mse);
|
||||||
throw mse;}
|
throw mse;}
|
||||||
|
|
||||||
// InternalRDL.g:7642:41: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*
|
// InternalRDL.g:7882:41: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*
|
||||||
loop2:
|
loop2:
|
||||||
do {
|
do {
|
||||||
int alt2=2;
|
int alt2=2;
|
||||||
@ -2812,10 +2812,10 @@ public class InternalRDLLexer extends Lexer {
|
|||||||
try {
|
try {
|
||||||
int _type = RULE_WS;
|
int _type = RULE_WS;
|
||||||
int _channel = DEFAULT_TOKEN_CHANNEL;
|
int _channel = DEFAULT_TOKEN_CHANNEL;
|
||||||
// InternalRDL.g:7644:9: ( ( ' ' | '\\t' | '\\r' | '\\n' )+ )
|
// InternalRDL.g:7884:9: ( ( ' ' | '\\t' | '\\r' | '\\n' )+ )
|
||||||
// InternalRDL.g:7644:11: ( ' ' | '\\t' | '\\r' | '\\n' )+
|
// InternalRDL.g:7884:11: ( ' ' | '\\t' | '\\r' | '\\n' )+
|
||||||
{
|
{
|
||||||
// InternalRDL.g:7644:11: ( ' ' | '\\t' | '\\r' | '\\n' )+
|
// InternalRDL.g:7884:11: ( ' ' | '\\t' | '\\r' | '\\n' )+
|
||||||
int cnt3=0;
|
int cnt3=0;
|
||||||
loop3:
|
loop3:
|
||||||
do {
|
do {
|
||||||
@ -2869,12 +2869,12 @@ public class InternalRDLLexer extends Lexer {
|
|||||||
try {
|
try {
|
||||||
int _type = RULE_ML_COMMENT;
|
int _type = RULE_ML_COMMENT;
|
||||||
int _channel = DEFAULT_TOKEN_CHANNEL;
|
int _channel = DEFAULT_TOKEN_CHANNEL;
|
||||||
// InternalRDL.g:7646:17: ( '/*' ( options {greedy=false; } : . )* '*/' )
|
// InternalRDL.g:7886:17: ( '/*' ( options {greedy=false; } : . )* '*/' )
|
||||||
// InternalRDL.g:7646:19: '/*' ( options {greedy=false; } : . )* '*/'
|
// InternalRDL.g:7886:19: '/*' ( options {greedy=false; } : . )* '*/'
|
||||||
{
|
{
|
||||||
match("/*");
|
match("/*");
|
||||||
|
|
||||||
// InternalRDL.g:7646:24: ( options {greedy=false; } : . )*
|
// InternalRDL.g:7886:24: ( options {greedy=false; } : . )*
|
||||||
loop4:
|
loop4:
|
||||||
do {
|
do {
|
||||||
int alt4=2;
|
int alt4=2;
|
||||||
@ -2899,7 +2899,7 @@ public class InternalRDLLexer extends Lexer {
|
|||||||
|
|
||||||
switch (alt4) {
|
switch (alt4) {
|
||||||
case 1 :
|
case 1 :
|
||||||
// InternalRDL.g:7646:52: .
|
// InternalRDL.g:7886:52: .
|
||||||
{
|
{
|
||||||
matchAny();
|
matchAny();
|
||||||
|
|
||||||
@ -2929,12 +2929,12 @@ public class InternalRDLLexer extends Lexer {
|
|||||||
try {
|
try {
|
||||||
int _type = RULE_SL_COMMENT;
|
int _type = RULE_SL_COMMENT;
|
||||||
int _channel = DEFAULT_TOKEN_CHANNEL;
|
int _channel = DEFAULT_TOKEN_CHANNEL;
|
||||||
// InternalRDL.g:7648:17: ( '//' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
// InternalRDL.g:7888:17: ( '//' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||||
// InternalRDL.g:7648:19: '//' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
// InternalRDL.g:7888:19: '//' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||||
{
|
{
|
||||||
match("//");
|
match("//");
|
||||||
|
|
||||||
// InternalRDL.g:7648:24: (~ ( ( '\\n' | '\\r' ) ) )*
|
// InternalRDL.g:7888:24: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||||
loop5:
|
loop5:
|
||||||
do {
|
do {
|
||||||
int alt5=2;
|
int alt5=2;
|
||||||
@ -2947,7 +2947,7 @@ public class InternalRDLLexer extends Lexer {
|
|||||||
|
|
||||||
switch (alt5) {
|
switch (alt5) {
|
||||||
case 1 :
|
case 1 :
|
||||||
// InternalRDL.g:7648:24: ~ ( ( '\\n' | '\\r' ) )
|
// InternalRDL.g:7888:24: ~ ( ( '\\n' | '\\r' ) )
|
||||||
{
|
{
|
||||||
if ( (input.LA(1)>='\u0000' && input.LA(1)<='\t')||(input.LA(1)>='\u000B' && input.LA(1)<='\f')||(input.LA(1)>='\u000E' && input.LA(1)<='\uFFFF') ) {
|
if ( (input.LA(1)>='\u0000' && input.LA(1)<='\t')||(input.LA(1)>='\u000B' && input.LA(1)<='\f')||(input.LA(1)>='\u000E' && input.LA(1)<='\uFFFF') ) {
|
||||||
input.consume();
|
input.consume();
|
||||||
@ -2967,7 +2967,7 @@ public class InternalRDLLexer extends Lexer {
|
|||||||
}
|
}
|
||||||
} while (true);
|
} while (true);
|
||||||
|
|
||||||
// InternalRDL.g:7648:40: ( ( '\\r' )? '\\n' )?
|
// InternalRDL.g:7888:40: ( ( '\\r' )? '\\n' )?
|
||||||
int alt7=2;
|
int alt7=2;
|
||||||
int LA7_0 = input.LA(1);
|
int LA7_0 = input.LA(1);
|
||||||
|
|
||||||
@ -2976,9 +2976,9 @@ public class InternalRDLLexer extends Lexer {
|
|||||||
}
|
}
|
||||||
switch (alt7) {
|
switch (alt7) {
|
||||||
case 1 :
|
case 1 :
|
||||||
// InternalRDL.g:7648:41: ( '\\r' )? '\\n'
|
// InternalRDL.g:7888:41: ( '\\r' )? '\\n'
|
||||||
{
|
{
|
||||||
// InternalRDL.g:7648:41: ( '\\r' )?
|
// InternalRDL.g:7888:41: ( '\\r' )?
|
||||||
int alt6=2;
|
int alt6=2;
|
||||||
int LA6_0 = input.LA(1);
|
int LA6_0 = input.LA(1);
|
||||||
|
|
||||||
@ -2987,7 +2987,7 @@ public class InternalRDLLexer extends Lexer {
|
|||||||
}
|
}
|
||||||
switch (alt6) {
|
switch (alt6) {
|
||||||
case 1 :
|
case 1 :
|
||||||
// InternalRDL.g:7648:41: '\\r'
|
// InternalRDL.g:7888:41: '\\r'
|
||||||
{
|
{
|
||||||
match('\r');
|
match('\r');
|
||||||
|
|
||||||
@ -3019,12 +3019,12 @@ public class InternalRDLLexer extends Lexer {
|
|||||||
try {
|
try {
|
||||||
int _type = RULE_ESCAPE_JSP;
|
int _type = RULE_ESCAPE_JSP;
|
||||||
int _channel = DEFAULT_TOKEN_CHANNEL;
|
int _channel = DEFAULT_TOKEN_CHANNEL;
|
||||||
// InternalRDL.g:7650:17: ( '<%' ( options {greedy=false; } : . )* '%>' )
|
// InternalRDL.g:7890:17: ( '<%' ( options {greedy=false; } : . )* '%>' )
|
||||||
// InternalRDL.g:7650:19: '<%' ( options {greedy=false; } : . )* '%>'
|
// InternalRDL.g:7890:19: '<%' ( options {greedy=false; } : . )* '%>'
|
||||||
{
|
{
|
||||||
match("<%");
|
match("<%");
|
||||||
|
|
||||||
// InternalRDL.g:7650:24: ( options {greedy=false; } : . )*
|
// InternalRDL.g:7890:24: ( options {greedy=false; } : . )*
|
||||||
loop8:
|
loop8:
|
||||||
do {
|
do {
|
||||||
int alt8=2;
|
int alt8=2;
|
||||||
@ -3049,7 +3049,7 @@ public class InternalRDLLexer extends Lexer {
|
|||||||
|
|
||||||
switch (alt8) {
|
switch (alt8) {
|
||||||
case 1 :
|
case 1 :
|
||||||
// InternalRDL.g:7650:52: .
|
// InternalRDL.g:7890:52: .
|
||||||
{
|
{
|
||||||
matchAny();
|
matchAny();
|
||||||
|
|
||||||
@ -3079,11 +3079,11 @@ public class InternalRDLLexer extends Lexer {
|
|||||||
try {
|
try {
|
||||||
int _type = RULE_ESCAPE_ORDL;
|
int _type = RULE_ESCAPE_ORDL;
|
||||||
int _channel = DEFAULT_TOKEN_CHANNEL;
|
int _channel = DEFAULT_TOKEN_CHANNEL;
|
||||||
// InternalRDL.g:7652:18: ( '(' ( options {greedy=false; } : . )* ')' )
|
// InternalRDL.g:7892:18: ( '(' ( options {greedy=false; } : . )* ')' )
|
||||||
// InternalRDL.g:7652:20: '(' ( options {greedy=false; } : . )* ')'
|
// InternalRDL.g:7892:20: '(' ( options {greedy=false; } : . )* ')'
|
||||||
{
|
{
|
||||||
match('(');
|
match('(');
|
||||||
// InternalRDL.g:7652:24: ( options {greedy=false; } : . )*
|
// InternalRDL.g:7892:24: ( options {greedy=false; } : . )*
|
||||||
loop9:
|
loop9:
|
||||||
do {
|
do {
|
||||||
int alt9=2;
|
int alt9=2;
|
||||||
@ -3099,7 +3099,7 @@ public class InternalRDLLexer extends Lexer {
|
|||||||
|
|
||||||
switch (alt9) {
|
switch (alt9) {
|
||||||
case 1 :
|
case 1 :
|
||||||
// InternalRDL.g:7652:52: .
|
// InternalRDL.g:7892:52: .
|
||||||
{
|
{
|
||||||
matchAny();
|
matchAny();
|
||||||
|
|
||||||
@ -3128,17 +3128,17 @@ public class InternalRDLLexer extends Lexer {
|
|||||||
try {
|
try {
|
||||||
int _type = RULE_NUM;
|
int _type = RULE_NUM;
|
||||||
int _channel = DEFAULT_TOKEN_CHANNEL;
|
int _channel = DEFAULT_TOKEN_CHANNEL;
|
||||||
// InternalRDL.g:7654:10: ( ( ( '0' .. '9' )+ '\\'b' ( '0' | '1' | '_' )+ | ( '0' .. '9' )+ '\\'o' ( '0' .. '7' | '_' )+ | ( '0' .. '9' )+ '\\'h' ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' | '_' )+ | ( '0' .. '9' )+ '\\'d' ( '0' .. '9' | '_' )+ | '0x' ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' )+ | ( '0' .. '9' )+ ) )
|
// InternalRDL.g:7894:10: ( ( ( '0' .. '9' )+ '\\'b' ( '0' | '1' | '_' )+ | ( '0' .. '9' )+ '\\'o' ( '0' .. '7' | '_' )+ | ( '0' .. '9' )+ '\\'h' ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' | '_' )+ | ( '0' .. '9' )+ '\\'d' ( '0' .. '9' | '_' )+ | '0x' ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' )+ | ( '0' .. '9' )+ ) )
|
||||||
// InternalRDL.g:7654:12: ( ( '0' .. '9' )+ '\\'b' ( '0' | '1' | '_' )+ | ( '0' .. '9' )+ '\\'o' ( '0' .. '7' | '_' )+ | ( '0' .. '9' )+ '\\'h' ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' | '_' )+ | ( '0' .. '9' )+ '\\'d' ( '0' .. '9' | '_' )+ | '0x' ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' )+ | ( '0' .. '9' )+ )
|
// InternalRDL.g:7894:12: ( ( '0' .. '9' )+ '\\'b' ( '0' | '1' | '_' )+ | ( '0' .. '9' )+ '\\'o' ( '0' .. '7' | '_' )+ | ( '0' .. '9' )+ '\\'h' ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' | '_' )+ | ( '0' .. '9' )+ '\\'d' ( '0' .. '9' | '_' )+ | '0x' ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' )+ | ( '0' .. '9' )+ )
|
||||||
{
|
{
|
||||||
// InternalRDL.g:7654:12: ( ( '0' .. '9' )+ '\\'b' ( '0' | '1' | '_' )+ | ( '0' .. '9' )+ '\\'o' ( '0' .. '7' | '_' )+ | ( '0' .. '9' )+ '\\'h' ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' | '_' )+ | ( '0' .. '9' )+ '\\'d' ( '0' .. '9' | '_' )+ | '0x' ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' )+ | ( '0' .. '9' )+ )
|
// InternalRDL.g:7894:12: ( ( '0' .. '9' )+ '\\'b' ( '0' | '1' | '_' )+ | ( '0' .. '9' )+ '\\'o' ( '0' .. '7' | '_' )+ | ( '0' .. '9' )+ '\\'h' ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' | '_' )+ | ( '0' .. '9' )+ '\\'d' ( '0' .. '9' | '_' )+ | '0x' ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' )+ | ( '0' .. '9' )+ )
|
||||||
int alt20=6;
|
int alt20=6;
|
||||||
alt20 = dfa20.predict(input);
|
alt20 = dfa20.predict(input);
|
||||||
switch (alt20) {
|
switch (alt20) {
|
||||||
case 1 :
|
case 1 :
|
||||||
// InternalRDL.g:7654:13: ( '0' .. '9' )+ '\\'b' ( '0' | '1' | '_' )+
|
// InternalRDL.g:7894:13: ( '0' .. '9' )+ '\\'b' ( '0' | '1' | '_' )+
|
||||||
{
|
{
|
||||||
// InternalRDL.g:7654:13: ( '0' .. '9' )+
|
// InternalRDL.g:7894:13: ( '0' .. '9' )+
|
||||||
int cnt10=0;
|
int cnt10=0;
|
||||||
loop10:
|
loop10:
|
||||||
do {
|
do {
|
||||||
@ -3152,7 +3152,7 @@ public class InternalRDLLexer extends Lexer {
|
|||||||
|
|
||||||
switch (alt10) {
|
switch (alt10) {
|
||||||
case 1 :
|
case 1 :
|
||||||
// InternalRDL.g:7654:14: '0' .. '9'
|
// InternalRDL.g:7894:14: '0' .. '9'
|
||||||
{
|
{
|
||||||
matchRange('0','9');
|
matchRange('0','9');
|
||||||
|
|
||||||
@ -3170,7 +3170,7 @@ public class InternalRDLLexer extends Lexer {
|
|||||||
|
|
||||||
match("'b");
|
match("'b");
|
||||||
|
|
||||||
// InternalRDL.g:7654:31: ( '0' | '1' | '_' )+
|
// InternalRDL.g:7894:31: ( '0' | '1' | '_' )+
|
||||||
int cnt11=0;
|
int cnt11=0;
|
||||||
loop11:
|
loop11:
|
||||||
do {
|
do {
|
||||||
@ -3212,9 +3212,9 @@ public class InternalRDLLexer extends Lexer {
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 2 :
|
case 2 :
|
||||||
// InternalRDL.g:7654:46: ( '0' .. '9' )+ '\\'o' ( '0' .. '7' | '_' )+
|
// InternalRDL.g:7894:46: ( '0' .. '9' )+ '\\'o' ( '0' .. '7' | '_' )+
|
||||||
{
|
{
|
||||||
// InternalRDL.g:7654:46: ( '0' .. '9' )+
|
// InternalRDL.g:7894:46: ( '0' .. '9' )+
|
||||||
int cnt12=0;
|
int cnt12=0;
|
||||||
loop12:
|
loop12:
|
||||||
do {
|
do {
|
||||||
@ -3228,7 +3228,7 @@ public class InternalRDLLexer extends Lexer {
|
|||||||
|
|
||||||
switch (alt12) {
|
switch (alt12) {
|
||||||
case 1 :
|
case 1 :
|
||||||
// InternalRDL.g:7654:47: '0' .. '9'
|
// InternalRDL.g:7894:47: '0' .. '9'
|
||||||
{
|
{
|
||||||
matchRange('0','9');
|
matchRange('0','9');
|
||||||
|
|
||||||
@ -3246,7 +3246,7 @@ public class InternalRDLLexer extends Lexer {
|
|||||||
|
|
||||||
match("'o");
|
match("'o");
|
||||||
|
|
||||||
// InternalRDL.g:7654:64: ( '0' .. '7' | '_' )+
|
// InternalRDL.g:7894:64: ( '0' .. '7' | '_' )+
|
||||||
int cnt13=0;
|
int cnt13=0;
|
||||||
loop13:
|
loop13:
|
||||||
do {
|
do {
|
||||||
@ -3288,9 +3288,9 @@ public class InternalRDLLexer extends Lexer {
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 3 :
|
case 3 :
|
||||||
// InternalRDL.g:7654:80: ( '0' .. '9' )+ '\\'h' ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' | '_' )+
|
// InternalRDL.g:7894:80: ( '0' .. '9' )+ '\\'h' ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' | '_' )+
|
||||||
{
|
{
|
||||||
// InternalRDL.g:7654:80: ( '0' .. '9' )+
|
// InternalRDL.g:7894:80: ( '0' .. '9' )+
|
||||||
int cnt14=0;
|
int cnt14=0;
|
||||||
loop14:
|
loop14:
|
||||||
do {
|
do {
|
||||||
@ -3304,7 +3304,7 @@ public class InternalRDLLexer extends Lexer {
|
|||||||
|
|
||||||
switch (alt14) {
|
switch (alt14) {
|
||||||
case 1 :
|
case 1 :
|
||||||
// InternalRDL.g:7654:81: '0' .. '9'
|
// InternalRDL.g:7894:81: '0' .. '9'
|
||||||
{
|
{
|
||||||
matchRange('0','9');
|
matchRange('0','9');
|
||||||
|
|
||||||
@ -3322,7 +3322,7 @@ public class InternalRDLLexer extends Lexer {
|
|||||||
|
|
||||||
match("'h");
|
match("'h");
|
||||||
|
|
||||||
// InternalRDL.g:7654:98: ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' | '_' )+
|
// InternalRDL.g:7894:98: ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' | '_' )+
|
||||||
int cnt15=0;
|
int cnt15=0;
|
||||||
loop15:
|
loop15:
|
||||||
do {
|
do {
|
||||||
@ -3364,9 +3364,9 @@ public class InternalRDLLexer extends Lexer {
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 4 :
|
case 4 :
|
||||||
// InternalRDL.g:7654:132: ( '0' .. '9' )+ '\\'d' ( '0' .. '9' | '_' )+
|
// InternalRDL.g:7894:132: ( '0' .. '9' )+ '\\'d' ( '0' .. '9' | '_' )+
|
||||||
{
|
{
|
||||||
// InternalRDL.g:7654:132: ( '0' .. '9' )+
|
// InternalRDL.g:7894:132: ( '0' .. '9' )+
|
||||||
int cnt16=0;
|
int cnt16=0;
|
||||||
loop16:
|
loop16:
|
||||||
do {
|
do {
|
||||||
@ -3380,7 +3380,7 @@ public class InternalRDLLexer extends Lexer {
|
|||||||
|
|
||||||
switch (alt16) {
|
switch (alt16) {
|
||||||
case 1 :
|
case 1 :
|
||||||
// InternalRDL.g:7654:133: '0' .. '9'
|
// InternalRDL.g:7894:133: '0' .. '9'
|
||||||
{
|
{
|
||||||
matchRange('0','9');
|
matchRange('0','9');
|
||||||
|
|
||||||
@ -3398,7 +3398,7 @@ public class InternalRDLLexer extends Lexer {
|
|||||||
|
|
||||||
match("'d");
|
match("'d");
|
||||||
|
|
||||||
// InternalRDL.g:7654:150: ( '0' .. '9' | '_' )+
|
// InternalRDL.g:7894:150: ( '0' .. '9' | '_' )+
|
||||||
int cnt17=0;
|
int cnt17=0;
|
||||||
loop17:
|
loop17:
|
||||||
do {
|
do {
|
||||||
@ -3440,11 +3440,11 @@ public class InternalRDLLexer extends Lexer {
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 5 :
|
case 5 :
|
||||||
// InternalRDL.g:7654:166: '0x' ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' )+
|
// InternalRDL.g:7894:166: '0x' ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' )+
|
||||||
{
|
{
|
||||||
match("0x");
|
match("0x");
|
||||||
|
|
||||||
// InternalRDL.g:7654:171: ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' )+
|
// InternalRDL.g:7894:171: ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' )+
|
||||||
int cnt18=0;
|
int cnt18=0;
|
||||||
loop18:
|
loop18:
|
||||||
do {
|
do {
|
||||||
@ -3486,9 +3486,9 @@ public class InternalRDLLexer extends Lexer {
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 6 :
|
case 6 :
|
||||||
// InternalRDL.g:7654:201: ( '0' .. '9' )+
|
// InternalRDL.g:7894:201: ( '0' .. '9' )+
|
||||||
{
|
{
|
||||||
// InternalRDL.g:7654:201: ( '0' .. '9' )+
|
// InternalRDL.g:7894:201: ( '0' .. '9' )+
|
||||||
int cnt19=0;
|
int cnt19=0;
|
||||||
loop19:
|
loop19:
|
||||||
do {
|
do {
|
||||||
@ -3502,7 +3502,7 @@ public class InternalRDLLexer extends Lexer {
|
|||||||
|
|
||||||
switch (alt19) {
|
switch (alt19) {
|
||||||
case 1 :
|
case 1 :
|
||||||
// InternalRDL.g:7654:202: '0' .. '9'
|
// InternalRDL.g:7894:202: '0' .. '9'
|
||||||
{
|
{
|
||||||
matchRange('0','9');
|
matchRange('0','9');
|
||||||
|
|
||||||
@ -3540,11 +3540,11 @@ public class InternalRDLLexer extends Lexer {
|
|||||||
try {
|
try {
|
||||||
int _type = RULE_STR;
|
int _type = RULE_STR;
|
||||||
int _channel = DEFAULT_TOKEN_CHANNEL;
|
int _channel = DEFAULT_TOKEN_CHANNEL;
|
||||||
// InternalRDL.g:7656:10: ( '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )* '\"' )
|
// InternalRDL.g:7896:10: ( '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )* '\"' )
|
||||||
// InternalRDL.g:7656:12: '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )* '\"'
|
// InternalRDL.g:7896:12: '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )* '\"'
|
||||||
{
|
{
|
||||||
match('\"');
|
match('\"');
|
||||||
// InternalRDL.g:7656:16: ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )*
|
// InternalRDL.g:7896:16: ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )*
|
||||||
loop21:
|
loop21:
|
||||||
do {
|
do {
|
||||||
int alt21=3;
|
int alt21=3;
|
||||||
@ -3560,7 +3560,7 @@ public class InternalRDLLexer extends Lexer {
|
|||||||
|
|
||||||
switch (alt21) {
|
switch (alt21) {
|
||||||
case 1 :
|
case 1 :
|
||||||
// InternalRDL.g:7656:17: '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' )
|
// InternalRDL.g:7896:17: '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' )
|
||||||
{
|
{
|
||||||
match('\\');
|
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') ) {
|
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') ) {
|
||||||
@ -3576,7 +3576,7 @@ public class InternalRDLLexer extends Lexer {
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 2 :
|
case 2 :
|
||||||
// InternalRDL.g:7656:62: ~ ( ( '\\\\' | '\"' ) )
|
// InternalRDL.g:7896:62: ~ ( ( '\\\\' | '\"' ) )
|
||||||
{
|
{
|
||||||
if ( (input.LA(1)>='\u0000' && input.LA(1)<='!')||(input.LA(1)>='#' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFF') ) {
|
if ( (input.LA(1)>='\u0000' && input.LA(1)<='!')||(input.LA(1)>='#' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFF') ) {
|
||||||
input.consume();
|
input.consume();
|
||||||
@ -4593,7 +4593,7 @@ public class InternalRDLLexer extends Lexer {
|
|||||||
this.transition = DFA20_transition;
|
this.transition = DFA20_transition;
|
||||||
}
|
}
|
||||||
public String getDescription() {
|
public String getDescription() {
|
||||||
return "7654:12: ( ( '0' .. '9' )+ '\\'b' ( '0' | '1' | '_' )+ | ( '0' .. '9' )+ '\\'o' ( '0' .. '7' | '_' )+ | ( '0' .. '9' )+ '\\'h' ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' | '_' )+ | ( '0' .. '9' )+ '\\'d' ( '0' .. '9' | '_' )+ | '0x' ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' )+ | ( '0' .. '9' )+ )";
|
return "7894:12: ( ( '0' .. '9' )+ '\\'b' ( '0' | '1' | '_' )+ | ( '0' .. '9' )+ '\\'o' ( '0' .. '7' | '_' )+ | ( '0' .. '9' )+ '\\'h' ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' | '_' )+ | ( '0' .. '9' )+ '\\'d' ( '0' .. '9' | '_' )+ | '0x' ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' )+ | ( '0' .. '9' )+ )";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
static final String DFA22_eotS =
|
static final String DFA22_eotS =
|
||||||
@ -4605,11 +4605,11 @@ public class InternalRDLLexer extends Lexer {
|
|||||||
static final String DFA22_maxS =
|
static final String DFA22_maxS =
|
||||||
"\1\175\1\171\1\165\1\162\1\163\1\172\1\165\1\157\1\172\1\167\1\156\1\166\1\157\1\160\1\170\2\163\1\156\1\171\1\162\1\116\21\uffff\1\57\4\uffff\1\162\1\156\1\172\1\141\1\156\1\164\1\155\1\172\1\170\1\156\1\164\1\147\1\151\1\144\1\154\1\142\1\144\1\171\1\164\1\163\1\166\1\154\1\172\1\uffff\1\145\2\154\1\163\1\156\1\163\2\172\1\uffff\1\172\1\154\1\164\2\145\1\162\2\165\1\157\1\162\1\165\2\164\1\142\1\166\1\142\1\163\1\144\1\162\1\165\1\160\1\157\1\163\1\104\2\uffff\1\151\1\143\1\156\1\147\1\145\1\157\1\143\1\uffff\1\162\1\143\1\165\1\142\1\145\1\uffff\1\164\1\145\1\163\1\154\1\150\1\145\1\144\1\162\1\172\1\147\1\151\1\145\1\156\1\151\1\145\2\172\1\145\1\164\1\144\1\162\1\uffff\1\154\1\163\1\154\1\143\1\162\1\141\1\164\1\154\1\145\1\172\2\uffff\1\145\1\154\1\156\1\141\1\uffff\1\164\2\162\1\144\1\162\1\145\1\156\1\160\1\151\1\143\1\145\1\157\1\142\1\155\1\145\1\164\1\60\1\145\1\60\1\153\4\145\1\143\1\160\1\145\1\105\1\156\1\153\1\141\1\154\1\172\1\144\1\143\1\145\1\172\1\162\1\145\2\172\1\144\1\164\2\145\1\156\1\147\1\155\1\uffff\1\156\1\163\1\164\1\144\1\143\1\166\1\163\2\151\1\154\2\uffff\1\164\1\172\1\163\1\172\1\144\1\145\1\141\2\172\1\165\1\164\1\162\1\164\1\uffff\1\164\1\162\1\141\1\163\2\172\1\162\2\172\1\146\1\144\1\164\1\157\1\146\1\153\1\170\1\144\1\154\1\172\1\162\1\154\1\172\1\154\2\172\1\162\1\163\2\172\2\145\1\144\1\106\1\147\1\171\1\154\1\145\1\172\1\uffff\2\172\1\144\1\uffff\1\141\1\162\2\uffff\1\147\1\151\1\141\2\144\1\145\1\141\1\163\1\155\1\172\1\145\2\172\1\145\1\163\1\154\1\144\1\151\1\172\1\uffff\1\145\1\uffff\2\172\1\154\1\uffff\1\151\2\141\1\150\1\uffff\1\154\1\157\1\145\4\172\1\142\1\153\1\141\1\156\2\uffff\1\156\1\151\1\141\2\uffff\1\154\1\172\1\145\1\143\1\156\1\137\1\172\1\164\2\145\1\uffff\1\156\1\145\1\uffff\1\172\2\uffff\1\146\1\150\2\uffff\1\144\1\162\1\147\1\111\3\172\1\160\3\uffff\1\172\1\164\1\172\1\145\1\143\1\156\1\147\1\151\1\172\1\160\1\163\1\145\1\uffff\1\162\2\uffff\1\154\1\167\1\145\1\164\1\147\1\151\1\uffff\1\164\1\162\1\151\2\uffff\1\151\1\144\1\154\1\164\1\162\1\164\1\155\1\163\4\uffff\1\154\1\172\1\163\2\141\1\144\1\154\1\157\1\uffff\1\162\1\164\1\145\1\162\1\uffff\1\142\2\172\1\141\1\145\1\uffff\1\154\1\157\1\145\1\164\1\145\1\116\1\uffff\1\151\1\uffff\1\151\1\uffff\1\165\1\170\1\uffff\1\145\1\uffff\1\172\1\153\1\172\1\145\1\141\1\uffff\1\172\1\151\1\156\1\172\1\151\1\157\1\151\1\172\1\150\1\156\1\147\1\172\1\145\1\144\1\147\1\164\2\165\1\145\1\172\1\160\1\164\1\145\1\uffff\1\153\1\142\1\154\1\164\1\165\1\167\2\172\1\156\1\145\1\165\2\uffff\1\154\1\156\1\157\1\154\1\156\1\171\1\172\1\105\1\164\1\144\1\154\1\164\1\172\1\uffff\1\171\1\uffff\1\172\1\156\1\uffff\1\156\1\164\1\uffff\1\147\1\167\1\144\1\uffff\2\172\1\156\1\172\1\uffff\1\163\1\164\1\156\1\150\1\145\1\162\1\163\1\uffff\1\141\3\172\1\154\1\172\1\150\1\145\1\172\2\uffff\1\164\2\163\1\172\1\144\1\167\1\144\1\143\1\172\1\uffff\1\104\1\172\1\164\1\163\1\142\1\uffff\1\172\1\uffff\1\172\1\147\1\172\1\150\1\172\1\164\2\uffff\1\141\1\uffff\1\145\1\150\3\172\1\141\1\150\1\162\3\uffff\1\145\1\uffff\2\172\1\uffff\1\172\1\145\1\172\1\uffff\1\151\2\172\1\145\1\uffff\1\172\1\uffff\1\150\1\145\1\165\2\uffff\1\172\1\uffff\1\172\1\uffff\1\150\1\154\1\164\1\172\3\uffff\1\164\1\157\1\145\1\172\3\uffff\1\164\1\uffff\1\141\2\uffff\1\172\1\uffff\2\172\1\163\2\uffff\3\172\1\uffff\1\145\1\154\1\172\1\uffff\1\172\1\156\3\uffff\1\172\3\uffff\1\172\1\144\2\uffff\1\172\2\uffff\1\172\2\uffff";
|
"\1\175\1\171\1\165\1\162\1\163\1\172\1\165\1\157\1\172\1\167\1\156\1\166\1\157\1\160\1\170\2\163\1\156\1\171\1\162\1\116\21\uffff\1\57\4\uffff\1\162\1\156\1\172\1\141\1\156\1\164\1\155\1\172\1\170\1\156\1\164\1\147\1\151\1\144\1\154\1\142\1\144\1\171\1\164\1\163\1\166\1\154\1\172\1\uffff\1\145\2\154\1\163\1\156\1\163\2\172\1\uffff\1\172\1\154\1\164\2\145\1\162\2\165\1\157\1\162\1\165\2\164\1\142\1\166\1\142\1\163\1\144\1\162\1\165\1\160\1\157\1\163\1\104\2\uffff\1\151\1\143\1\156\1\147\1\145\1\157\1\143\1\uffff\1\162\1\143\1\165\1\142\1\145\1\uffff\1\164\1\145\1\163\1\154\1\150\1\145\1\144\1\162\1\172\1\147\1\151\1\145\1\156\1\151\1\145\2\172\1\145\1\164\1\144\1\162\1\uffff\1\154\1\163\1\154\1\143\1\162\1\141\1\164\1\154\1\145\1\172\2\uffff\1\145\1\154\1\156\1\141\1\uffff\1\164\2\162\1\144\1\162\1\145\1\156\1\160\1\151\1\143\1\145\1\157\1\142\1\155\1\145\1\164\1\60\1\145\1\60\1\153\4\145\1\143\1\160\1\145\1\105\1\156\1\153\1\141\1\154\1\172\1\144\1\143\1\145\1\172\1\162\1\145\2\172\1\144\1\164\2\145\1\156\1\147\1\155\1\uffff\1\156\1\163\1\164\1\144\1\143\1\166\1\163\2\151\1\154\2\uffff\1\164\1\172\1\163\1\172\1\144\1\145\1\141\2\172\1\165\1\164\1\162\1\164\1\uffff\1\164\1\162\1\141\1\163\2\172\1\162\2\172\1\146\1\144\1\164\1\157\1\146\1\153\1\170\1\144\1\154\1\172\1\162\1\154\1\172\1\154\2\172\1\162\1\163\2\172\2\145\1\144\1\106\1\147\1\171\1\154\1\145\1\172\1\uffff\2\172\1\144\1\uffff\1\141\1\162\2\uffff\1\147\1\151\1\141\2\144\1\145\1\141\1\163\1\155\1\172\1\145\2\172\1\145\1\163\1\154\1\144\1\151\1\172\1\uffff\1\145\1\uffff\2\172\1\154\1\uffff\1\151\2\141\1\150\1\uffff\1\154\1\157\1\145\4\172\1\142\1\153\1\141\1\156\2\uffff\1\156\1\151\1\141\2\uffff\1\154\1\172\1\145\1\143\1\156\1\137\1\172\1\164\2\145\1\uffff\1\156\1\145\1\uffff\1\172\2\uffff\1\146\1\150\2\uffff\1\144\1\162\1\147\1\111\3\172\1\160\3\uffff\1\172\1\164\1\172\1\145\1\143\1\156\1\147\1\151\1\172\1\160\1\163\1\145\1\uffff\1\162\2\uffff\1\154\1\167\1\145\1\164\1\147\1\151\1\uffff\1\164\1\162\1\151\2\uffff\1\151\1\144\1\154\1\164\1\162\1\164\1\155\1\163\4\uffff\1\154\1\172\1\163\2\141\1\144\1\154\1\157\1\uffff\1\162\1\164\1\145\1\162\1\uffff\1\142\2\172\1\141\1\145\1\uffff\1\154\1\157\1\145\1\164\1\145\1\116\1\uffff\1\151\1\uffff\1\151\1\uffff\1\165\1\170\1\uffff\1\145\1\uffff\1\172\1\153\1\172\1\145\1\141\1\uffff\1\172\1\151\1\156\1\172\1\151\1\157\1\151\1\172\1\150\1\156\1\147\1\172\1\145\1\144\1\147\1\164\2\165\1\145\1\172\1\160\1\164\1\145\1\uffff\1\153\1\142\1\154\1\164\1\165\1\167\2\172\1\156\1\145\1\165\2\uffff\1\154\1\156\1\157\1\154\1\156\1\171\1\172\1\105\1\164\1\144\1\154\1\164\1\172\1\uffff\1\171\1\uffff\1\172\1\156\1\uffff\1\156\1\164\1\uffff\1\147\1\167\1\144\1\uffff\2\172\1\156\1\172\1\uffff\1\163\1\164\1\156\1\150\1\145\1\162\1\163\1\uffff\1\141\3\172\1\154\1\172\1\150\1\145\1\172\2\uffff\1\164\2\163\1\172\1\144\1\167\1\144\1\143\1\172\1\uffff\1\104\1\172\1\164\1\163\1\142\1\uffff\1\172\1\uffff\1\172\1\147\1\172\1\150\1\172\1\164\2\uffff\1\141\1\uffff\1\145\1\150\3\172\1\141\1\150\1\162\3\uffff\1\145\1\uffff\2\172\1\uffff\1\172\1\145\1\172\1\uffff\1\151\2\172\1\145\1\uffff\1\172\1\uffff\1\150\1\145\1\165\2\uffff\1\172\1\uffff\1\172\1\uffff\1\150\1\154\1\164\1\172\3\uffff\1\164\1\157\1\145\1\172\3\uffff\1\164\1\uffff\1\141\2\uffff\1\172\1\uffff\2\172\1\163\2\uffff\3\172\1\uffff\1\145\1\154\1\172\1\uffff\1\172\1\156\3\uffff\1\172\3\uffff\1\172\1\144\2\uffff\1\172\2\uffff\1\172\2\uffff";
|
||||||
static final String DFA22_acceptS =
|
static final String DFA22_acceptS =
|
||||||
"\25\uffff\1\146\1\150\1\151\1\152\1\154\1\157\1\161\1\162\1\163\1\164\1\165\1\166\1\167\1\170\1\171\1\174\1\175\1\uffff\1\u0080\1\u0081\1\u0082\1\u0083\27\uffff\1\133\10\uffff\1\134\30\uffff\1\176\1\177\7\uffff\1\107\5\uffff\1\135\25\uffff\1\131\12\uffff\1\22\1\132\4\uffff\1\110\60\uffff\1\12\12\uffff\1\5\1\10\15\uffff\1\23\46\uffff\1\24\3\uffff\1\55\2\uffff\1\13\1\125\23\uffff\1\16\1\uffff\1\17\3\uffff\1\14\4\uffff\1\66\13\uffff\1\124\1\34\3\uffff\1\65\1\36\12\uffff\1\172\2\uffff\1\54\1\uffff\1\53\1\116\2\uffff\1\127\1\153\10\uffff\1\25\1\30\1\31\14\uffff\1\160\1\uffff\1\35\1\56\6\uffff\1\44\3\uffff\1\7\1\130\10\uffff\1\20\1\21\1\26\1\27\10\uffff\1\37\4\uffff\1\115\5\uffff\1\144\6\uffff\1\1\1\uffff\1\32\1\uffff\1\11\2\uffff\1\52\1\uffff\1\2\5\uffff\1\51\27\uffff\1\121\13\uffff\1\113\1\117\15\uffff\1\142\1\uffff\1\3\2\uffff\1\4\2\uffff\1\15\3\uffff\1\6\4\uffff\1\47\7\uffff\1\155\11\uffff\1\40\1\136\11\uffff\1\141\5\uffff\1\73\1\uffff\1\143\6\uffff\1\103\1\137\1\uffff\1\50\10\uffff\1\100\1\120\1\122\1\uffff\1\101\2\uffff\1\41\3\uffff\1\173\4\uffff\1\147\1\uffff\1\33\3\uffff\1\145\1\46\1\uffff\1\102\1\uffff\1\62\4\uffff\1\140\1\70\1\72\4\uffff\1\67\1\71\1\156\1\uffff\1\43\1\uffff\1\64\1\75\1\uffff\1\126\3\uffff\1\111\1\61\3\uffff\1\104\3\uffff\1\123\2\uffff\1\112\1\105\1\63\1\uffff\1\106\1\114\1\60\2\uffff\1\77\1\57\1\uffff\1\42\1\74\1\uffff\1\45\1\76";
|
"\25\uffff\1\146\1\147\1\151\1\152\1\154\1\157\1\161\1\162\1\163\1\164\1\165\1\166\1\167\1\170\1\171\1\174\1\175\1\uffff\1\u0080\1\u0081\1\u0082\1\u0083\27\uffff\1\133\10\uffff\1\134\30\uffff\1\176\1\177\7\uffff\1\107\5\uffff\1\135\25\uffff\1\131\12\uffff\1\22\1\132\4\uffff\1\110\60\uffff\1\12\12\uffff\1\5\1\10\15\uffff\1\23\46\uffff\1\24\3\uffff\1\55\2\uffff\1\13\1\125\23\uffff\1\16\1\uffff\1\17\3\uffff\1\14\4\uffff\1\66\13\uffff\1\124\1\34\3\uffff\1\65\1\36\12\uffff\1\172\2\uffff\1\54\1\uffff\1\53\1\116\2\uffff\1\127\1\153\10\uffff\1\25\1\30\1\31\14\uffff\1\160\1\uffff\1\35\1\56\6\uffff\1\44\3\uffff\1\7\1\130\10\uffff\1\20\1\21\1\26\1\27\10\uffff\1\37\4\uffff\1\115\5\uffff\1\144\6\uffff\1\1\1\uffff\1\32\1\uffff\1\11\2\uffff\1\52\1\uffff\1\2\5\uffff\1\51\27\uffff\1\121\13\uffff\1\113\1\117\15\uffff\1\142\1\uffff\1\3\2\uffff\1\4\2\uffff\1\15\3\uffff\1\6\4\uffff\1\47\7\uffff\1\155\11\uffff\1\40\1\136\11\uffff\1\141\5\uffff\1\73\1\uffff\1\143\6\uffff\1\103\1\137\1\uffff\1\50\10\uffff\1\100\1\120\1\122\1\uffff\1\101\2\uffff\1\41\3\uffff\1\173\4\uffff\1\150\1\uffff\1\33\3\uffff\1\145\1\46\1\uffff\1\102\1\uffff\1\62\4\uffff\1\140\1\70\1\72\4\uffff\1\67\1\71\1\156\1\uffff\1\43\1\uffff\1\64\1\75\1\uffff\1\126\3\uffff\1\111\1\61\3\uffff\1\104\3\uffff\1\123\2\uffff\1\112\1\105\1\63\1\uffff\1\106\1\114\1\60\2\uffff\1\77\1\57\1\uffff\1\42\1\74\1\uffff\1\45\1\76";
|
||||||
static final String DFA22_specialS =
|
static final String DFA22_specialS =
|
||||||
"\u0284\uffff}>";
|
"\u0284\uffff}>";
|
||||||
static final String[] DFA22_transitionS = {
|
static final String[] DFA22_transitionS = {
|
||||||
"\2\45\2\uffff\1\45\22\uffff\1\45\1\uffff\1\52\2\uffff\1\36\2\uffff\1\50\2\uffff\1\35\1\33\1\42\1\43\1\46\12\51\1\41\1\30\1\47\1\31\2\uffff\1\34\24\44\1\24\5\44\1\37\1\44\1\40\1\uffff\1\44\1\25\1\4\1\3\1\15\1\7\1\16\1\6\1\44\1\11\1\12\2\44\1\17\1\20\1\2\1\13\1\23\1\44\1\5\1\1\1\22\1\21\1\44\1\10\1\14\2\44\1\26\1\32\1\27",
|
"\2\45\2\uffff\1\45\22\uffff\1\45\1\uffff\1\52\2\uffff\1\36\2\uffff\1\50\2\uffff\1\35\1\33\1\42\1\43\1\46\12\51\1\41\1\25\1\47\1\31\2\uffff\1\34\24\44\1\24\5\44\1\37\1\44\1\40\1\uffff\1\44\1\26\1\4\1\3\1\15\1\7\1\16\1\6\1\44\1\11\1\12\2\44\1\17\1\20\1\2\1\13\1\23\1\44\1\5\1\1\1\22\1\21\1\44\1\10\1\14\2\44\1\27\1\32\1\30",
|
||||||
"\1\60\6\uffff\1\56\1\54\12\uffff\1\53\2\uffff\1\55\1\uffff\1\57",
|
"\1\60\6\uffff\1\56\1\54\12\uffff\1\53\2\uffff\1\55\1\uffff\1\57",
|
||||||
"\1\62\3\uffff\1\63\11\uffff\1\64\5\uffff\1\61",
|
"\1\62\3\uffff\1\63\11\uffff\1\64\5\uffff\1\61",
|
||||||
"\1\66\5\uffff\1\65\2\uffff\1\67",
|
"\1\66\5\uffff\1\65\2\uffff\1\67",
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* generated by Xtext 2.12.0
|
* generated by Xtext 2.14.0
|
||||||
*/
|
*/
|
||||||
package com.minres.rdl.ide
|
package com.minres.rdl.ide
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* generated by Xtext 2.12.0
|
* generated by Xtext 2.14.0
|
||||||
*/
|
*/
|
||||||
package com.minres.rdl.ide
|
package com.minres.rdl.ide
|
||||||
|
|
||||||
|
@ -1,13 +0,0 @@
|
|||||||
/**
|
|
||||||
* generated by Xtext 2.12.0
|
|
||||||
*/
|
|
||||||
package com.minres.rdl.ide;
|
|
||||||
|
|
||||||
import com.minres.rdl.ide.AbstractRDLIdeModule;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Use this class to register ide components.
|
|
||||||
*/
|
|
||||||
@SuppressWarnings("all")
|
|
||||||
public class RDLIdeModule extends AbstractRDLIdeModule {
|
|
||||||
}
|
|
@ -1,24 +0,0 @@
|
|||||||
/**
|
|
||||||
* generated by Xtext 2.12.0
|
|
||||||
*/
|
|
||||||
package com.minres.rdl.ide;
|
|
||||||
|
|
||||||
import com.google.inject.Guice;
|
|
||||||
import com.google.inject.Injector;
|
|
||||||
import com.minres.rdl.RDLRuntimeModule;
|
|
||||||
import com.minres.rdl.RDLStandaloneSetup;
|
|
||||||
import com.minres.rdl.ide.RDLIdeModule;
|
|
||||||
import org.eclipse.xtext.util.Modules2;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Initialization support for running Xtext languages as language servers.
|
|
||||||
*/
|
|
||||||
@SuppressWarnings("all")
|
|
||||||
public class RDLIdeSetup extends RDLStandaloneSetup {
|
|
||||||
@Override
|
|
||||||
public Injector createInjector() {
|
|
||||||
RDLRuntimeModule _rDLRuntimeModule = new RDLRuntimeModule();
|
|
||||||
RDLIdeModule _rDLIdeModule = new RDLIdeModule();
|
|
||||||
return Guice.createInjector(Modules2.mixin(_rDLRuntimeModule, _rDLIdeModule));
|
|
||||||
}
|
|
||||||
}
|
|
@ -2,8 +2,8 @@
|
|||||||
<feature
|
<feature
|
||||||
id="com.minres.rdl.platform.feature"
|
id="com.minres.rdl.platform.feature"
|
||||||
label="Xtext Platform Feature"
|
label="Xtext Platform Feature"
|
||||||
version="1.0.0.qualifier"
|
version="1.4.1"
|
||||||
provider-name="MINRES">
|
provider-name="MINRES Technologies GmbH">
|
||||||
|
|
||||||
<description url="http://www.example.com/description">
|
<description url="http://www.example.com/description">
|
||||||
[Enter Feature Description here.]
|
[Enter Feature Description here.]
|
||||||
@ -17,400 +17,21 @@
|
|||||||
[Enter License Description here.]
|
[Enter License Description here.]
|
||||||
</license>
|
</license>
|
||||||
|
|
||||||
<includes
|
|
||||||
id="org.eclipse.xtext.runtime"
|
|
||||||
version="0.0.0"/>
|
|
||||||
|
|
||||||
<includes
|
<includes
|
||||||
id="org.eclipse.rcp"
|
id="org.eclipse.rcp"
|
||||||
version="0.0.0"/>
|
version="0.0.0"/>
|
||||||
|
|
||||||
<requires>
|
<includes
|
||||||
<import plugin="org.eclipse.e4.core.di" version="1.5.1" match="greaterOrEqual"/>
|
id="org.eclipse.xtext.redist"
|
||||||
<import plugin="org.eclipse.core.runtime" version="3.5.0" match="compatible"/>
|
version="0.0.0"/>
|
||||||
<import plugin="org.eclipse.core.resources" version="3.5.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.jdt.core" version="3.5.0" match="compatible"/>
|
<includes
|
||||||
<import plugin="org.eclipse.jdt.launching" version="3.5.0" match="compatible"/>
|
id="org.eclipse.xtext.ui"
|
||||||
<import plugin="org.eclipse.emf.ecore" version="2.12.0" match="compatible"/>
|
version="0.0.0"/>
|
||||||
<import plugin="org.eclipse.emf.codegen" version="2.11.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.emf.ecore.xmi" version="2.12.0" match="compatible"/>
|
<includes
|
||||||
<import plugin="org.eclipse.text" version="3.5.0" match="compatible"/>
|
id="org.eclipse.help"
|
||||||
<import plugin="org.apache.batik.util.gui" version="1.7.0" match="equivalent"/>
|
version="0.0.0"/>
|
||||||
<import plugin="org.eclipse.equinox.common" version="3.5.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.equinox.common" version="3.6.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.equinox.registry" version="3.5.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.debug.core" version="3.9.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.core.variables" version="3.2.800" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.xtend" version="1.1.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.xpand" version="1.1.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.xtend.typesystem.emf" version="1.0.1" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.emf.ecore" version="2.10.2" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.emf.common" version="2.10.1" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.core.runtime" version="3.6.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.equinox.security" version="1.0.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.equinox.common" version="3.4.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.equinox.preferences" version="3.2.200" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.osgi" version="3.4.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.equinox.registry" version="3.4.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.core.expressions" version="3.4.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.ui" version="3.5.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.ui.console" version="3.5.300" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.help" version="3.4.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.jface.text" version="3.5.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.ui.workbench.texteditor" version="3.5.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.ui.ide" version="3.5.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.ui.editors" version="3.5.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.core.runtime" version="3.11.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.core.filesystem" version="1.2.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.emf.codegen.ecore" version="2.10.2" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.jdt.core" version="3.3.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.pde.core" version="3.6.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.ui.ide" version="3.2.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.ui.views" version="3.2.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.jface.text" version="3.7.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.ui.editors" version="3.2.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.debug.ui" version="3.10.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.jdt.core" version="3.2.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.jdt.debug.ui" version="3.2.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.jdt.launching" version="3.2.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.jdt.ui" version="3.2.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.pde.build" version="3.2.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.search" version="3.7.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.team.core" version="3.2.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.ui.forms" version="3.2.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.ant.launching" version="1.0.400" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.ant.ui" version="3.1.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.jdt.junit" version="3.2.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.ui.intro" version="3.2.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.ui.cheatsheets" version="3.2.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.update.configurator" version="3.1.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.ui.views.log" version="1.0.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.ltk.core.refactoring" version="3.2.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.core.variables" version="3.1.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.compare" version="3.2.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.core.filesystem" version="1.0.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.ltk.ui.refactoring" version="3.2.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.core.expressions" version="3.2.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.ui.navigator.resources" version="3.3.100" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.equinox.p2.ui" version="2.0.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.equinox.p2.metadata" version="2.0.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.equinox.p2.engine" version="2.0.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.equinox.p2.core" version="2.0.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.equinox.p2.director" version="2.1.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.equinox.p2.artifact.repository" version="1.0.100" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.equinox.p2.metadata.repository" version="1.0.100" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.equinox.p2.operations" version="2.0.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.equinox.p2.repository" version="2.0.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.equinox.frameworkadmin" version="2.0.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.equinox.frameworkadmin.equinox" version="1.0.100" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.pde.launching" version="3.6.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.ui.console" version="3.5.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.equinox.simpleconfigurator" version="1.0.200" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.equinox.p2.repository.tools" version="2.0.100" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.team.ui" version="3.6.100" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.debug.core" version="3.10.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.ui.trace" version="1.0.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.equinox.bidi" version="0.10.0"/>
|
|
||||||
<import plugin="org.eclipse.equinox.registry" version="3.3.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.emf.codegen.ecore" version="2.12.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.emf.edit.ui" version="2.12.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.emf.ecore.edit" version="2.9.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.equinox.common" version="3.3.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.core.jobs" version="3.3.0" match="compatible"/>
|
|
||||||
<import plugin="org.sat4j.core" version="2.3.5" match="compatible"/>
|
|
||||||
<import plugin="org.sat4j.pb" version="2.3.5" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.swt" version="3.2.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.jface" version="3.2.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.equinox.common" version="3.2.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.core.databinding.observable" version="1.3.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.core.databinding.property" version="1.3.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.core.databinding" version="1.2.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.equinox.registry" version="3.4.0" match="compatible"/>
|
|
||||||
<import plugin="com.google.guava" version="14.0.0"/>
|
|
||||||
<import plugin="com.google.inject" version="3.0.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.e4.ui.model.workbench" version="1.0.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.e4.core.contexts" version="0.9.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.e4.core.di" version="0.9.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.e4.ui.workbench" version="0.9.1" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.e4.core.services" version="0.9.1" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.osgi.services" version="3.2.100" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.e4.ui.workbench.renderers.swt" version="0.9.1" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.e4.ui.widgets" version="0.11.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.e4.ui.css.swt" version="0.9.1" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.e4.ui.css.core" version="0.9.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.swt" version="3.7.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.jface" version="3.7.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.core.runtime" version="3.7.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.e4.ui.di" version="0.10.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.e4.ui.services" version="1.0.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.emf.ecore.xmi" version="2.7.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.apache.ant" version="1.9.4" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.ant.core" version="3.2.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.core.resources" version="3.2.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.ui.externaltools" version="3.2.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.ui" version="3.2.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.ui.console" version="3.1.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.debug.core" version="3.6.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.debug.ui" version="3.6.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.jdt.junit" version="3.5.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.ant.launching" version="1.0.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.core.externaltools" version="1.0.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.emf.edit" version="2.10.1" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.equinox.preferences" version="3.2.200" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.ui" version="3.4.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.core.runtime" version="3.4.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.swt" version="3.6.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.equinox.common" version="3.6.0" match="compatible"/>
|
|
||||||
<import plugin="org.w3c.css.sac" version="1.3.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.equinox.registry" version="3.5.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.equinox.preferences" version="3.3.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.core.runtime" version="3.8.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.ui.editors" version="3.5.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.ui.ide" version="3.5.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.core.runtime" version="3.6.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.help" version="3.2.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.jface" version="3.9.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.swt" version="3.101.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.jface.databinding" version="1.3.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.core.databinding.property" version="1.2.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.core.databinding.observable" version="1.2.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.e4.core.services" version="1.0.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.e4.core.contexts" version="1.0.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.e4.core.di" version="1.1.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.e4.ui.workbench.swt" version="0.9.1" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.e4.ui.di" version="0.9.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.e4.ui.model.workbench" version="0.9.1" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.e4.ui.css.swt.theme" version="0.9.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.e4.ui.bindings" version="0.9.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.e4.ui.workbench3" version="0.12.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.e4.ui.workbench.addons.swt" version="0.10.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.emf.ecore" version="2.7.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.emf.ecore.xmi" version="2.11.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.e4.core.di.extensions" version="0.13.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.e4.ui.workbench.renderers.swt" version="0.10.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.equinox.common" version="3.3.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.tukaani.xz" version="1.3.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.text" version="3.1.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.core.filebuffers" version="3.2.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.ant.core" version="3.1.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.equinox.simpleconfigurator.manipulator" version="2.0.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.debug.core" version="3.5.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.equinox.p2.repository" version="2.0.0"/>
|
|
||||||
<import plugin="org.eclipse.equinox.p2.garbagecollector" version="1.0.100" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.equinox.p2.touchpoint.eclipse" version="2.0.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.emf.common" version="2.12.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.core.commands" version="3.5.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.equinox.common" version="3.8.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.ui" version="3.107.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.equinox.security.ui" version="1.0.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.core.resources" version="3.3.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.core.runtime" version="3.2.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.core.filesystem" version="1.1.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.compare.core" version="3.5.200" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.osgi" version="3.10.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.ui.ide" version="3.6.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.jdt.core" version="3.6.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.debug.ui" version="3.6.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.help" version="3.5.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.core.expressions" version="3.4.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.ui.editors" version="3.6.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.ui" version="3.6.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.compare" version="3.5.101" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.jface.databinding" version="1.3.1" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.core.databinding" version="1.2.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.core.databinding.beans" version="1.2.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.core.databinding.property" version="1.2.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.jdt.launching" version="3.5.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.apache.batik.util" version="1.7.0" match="equivalent"/>
|
|
||||||
<import plugin="org.eclipse.emf.common.ui" version="2.11.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.e4.core.services" version="0.9.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.e4.core.di" version="1.0.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.emf.ecore" version="2.9.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.e4.emf.xpath" version="0.1.100" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.emf.ecore.editor" version="2.10.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.ui.views" version="3.3.100" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.core.expressions" version="3.4.100" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.debug.ui" version="3.5.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.jdt.core" version="3.12.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.jdt.ui" version="3.12.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.jdt.debug.ui" version="3.3.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.jdt.junit.runtime" version="3.4.100" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.compare" version="3.5.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.ltk.core.refactoring" version="3.5.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.core.variables" version="3.2.200" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.ltk.ui.refactoring" version="3.5.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.jdt.junit.core" version="3.6.0" match="compatible"/>
|
|
||||||
<import plugin="com.ibm.icu" version="4.4.2" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.emf.ecore.xmi" version="2.10.2" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.equinox.common" version="3.5.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.core.resources" version="3.4.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.jface.text" version="3.8.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.ui.ide" version="3.3.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.compare.core" version="3.5.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.e4.ui.workbench" version="0.9.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.e4.ui.services" version="0.9.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.swt" version="3.5.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.jface" version="3.5.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.e4.ui.workbench.swt" version="0.9.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.e4.ui.model.workbench" version="0.9.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.osgi.services" version="3.2.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.e4.core.commands" version="0.9.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.core.expressions" version="3.4.200" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.osgi" version="3.6.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.e4.ui.css.swt" version="0.11.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.e4.core.di.extensions" version="0.12.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.equinox.preferences" version="3.5.200" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.osgi" version="3.8.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.core.runtime" version="3.3.0" match="compatible"/>
|
|
||||||
<import plugin="com.jcraft.jsch" version="0.1.50" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.core.net" version="1.0.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.swt" version="3.104.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.core.commands" version="3.4.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.ui" version="3.106.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.ui.workbench" version="3.7.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.jface.text" version="3.2.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.e4.core.services" version="2.0.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.e4.core.contexts" version="1.3.100" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.e4.ui.workbench" version="1.3.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.e4.core.commands" version="0.11.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.e4.ui.model.workbench" version="1.1.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.e4.core.di" version="1.6.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.e4.core.di.extensions" version="0.14.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.osgi.services" version="3.5.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.jdt.core" version="3.8.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.core.runtime" version="3.12.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.emf.mwe2.runtime" version="2.9.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.xtext" version="2.8.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.xtext.common.types" version="2.8.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.swt" version="3.4.1" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.ui" version="3.6.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.ui.forms" version="3.5.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.help" version="3.5.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.core.expressions" version="3.4.200" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.equinox.common" version="3.7.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.swt" version="3.103.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.core.resources" version="3.9.0" match="compatible"/>
|
|
||||||
<import plugin="org.objectweb.asm" version="5.0.1" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.jdt.debug" version="3.7.100" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.core.variables" version="3.2.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.osgi" version="3.8.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.core.resources" version="3.6.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.jdt.ui" version="3.6.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.search" version="3.5.1" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.ltk.ui.refactoring" version="3.4.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.jdt.core.manipulation" version="1.3.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.swt" version="3.0.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.core.filebuffers" version="3.5.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.jdt.debug" version="3.10.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.jdt.launching" version="3.7.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.jdt.ui" version="3.8.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.ui.console" version="3.4.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.jdt.core.manipulation" version="1.3.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.search" version="3.5.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.ui.forms" version="3.4.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.core.jobs" version="3.5.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.junit" version="3.8.2" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.ui.console" version="3.5.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.osgi" version="3.7.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.core.jobs" version="3.2.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.equinox.preferences" version="3.4.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.core.contenttype" version="3.3.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.equinox.app" version="1.0.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.equinox.p2.metadata.repository" version="0.1.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.equinox.p2.artifact.repository" version="0.1.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.ltk.core.refactoring" version="3.7.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.ui.navigator" version="3.3.200" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.team.core" version="3.4.100" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.team.ui" version="3.4.100" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.ui.forms" version="3.3.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.ui" version="3.3.0" match="compatible"/>
|
|
||||||
<import plugin="org.apache.commons.lang" version="2.0.0" match="compatible"/>
|
|
||||||
<import plugin="org.apache.commons.logging" version="1.0.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.core.filesystem" version="1.3.0" match="compatible"/>
|
|
||||||
<import plugin="org.hamcrest.core" version="1.3.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.equinox.preferences" version="3.3.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.ui.ide" version="3.6.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.core.resources" version="3.6.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.jface" version="3.6.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.ui.navigator" version="3.5.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.ui.views.properties.tabbed" version="3.5.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.ui.workbench.texteditor" version="3.6.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.jface" version="3.10.100" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.ui.workbench" version="3.105.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.ui.workbench.texteditor" version="3.6.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.core.expressions" version="3.4.100" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.ui.navigator" version="3.4.1" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.e4.core.di.extensions" version="0.13.200" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.core.runtime" version="3.4.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.core.resources" version="3.4.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.ui" version="3.4.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.ui.editors" version="3.4.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.jface.text" version="3.4.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.ui.ide" version="3.4.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.ui.views" version="3.3.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.emf.edit.ui" version="2.10.2" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.ui.workbench.texteditor" version="3.4.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.ui.forms" version="3.4.1" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.e4.ui.css.core" version="0.10.100" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.e4.ui.css.swt" version="0.11.100" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.apache.commons.jxpath" version="1.2.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.emf.ecore" version="2.6.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.e4.core.di.annotations" version="1.4.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.core.runtime" version="3.1.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.core.externaltools" version="1.0.300" match="compatible"/>
|
|
||||||
<import plugin="org.apache.lucene.core" version="3.5.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.ui.views" version="3.4.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.ui.workbench" version="3.5.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.emf.edit" version="2.12.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.core.jobs" version="3.4.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.search" version="3.10.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.debug.ui" version="3.11.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.jdt.launching" version="3.8.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.jface" version="3.11.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.ui.workbench.texteditor" version="3.10.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.ltk.ui.refactoring" version="3.8.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.ui.navigator.resources" version="3.4.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.jdt.core.manipulation" version="1.7.0" match="compatible"/>
|
|
||||||
<import plugin="org.w3c.dom.smil" version="1.0.0" match="equivalent"/>
|
|
||||||
<import plugin="org.eclipse.core.runtime" version="3.12.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.core.resources" version="3.8.100" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.e4.ui.model.workbench" version="1.2.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.osgi" version="3.4.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.e4.core.commands" version="0.11.100" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.emf.ecore.change" version="2.5.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.core.runtime" version="3.3.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.equinox.preferences" version="3.2.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.equinox.registry" version="3.2.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.xtext.ide" version="2.11.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.ant.core" version="3.1.100" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.osgi" version="3.3.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.equinox.p2.jarprocessor" version="1.0.1" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.equinox.p2.publisher" version="1.1.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.equinox.p2.director.app" version="1.0.200" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.equinox.p2.publisher.eclipse" version="1.0.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.osgi" version="3.2.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.team.core" version="3.6.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.compare" version="3.3.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.ui.navigator" version="3.3.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.jface.text" version="3.3.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.ui.editors" version="3.3.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.ltk.core.refactoring" version="3.6.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.debug.core" version="3.2.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.pde.core" version="3.2.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.jdt.debug" version="3.2.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.help.base" version="4.0.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.equinox.app" version="1.3.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.e4.ui.workbench" version="0.10.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.e4.ui.services" version="0.1.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.e4.ui.css.swt" version="0.9.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.e4.ui.workbench3" version="0.11.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.core.jobs" version="3.5.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.core.filesystem" version="1.3.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.apache.lucene.analysis" version="3.5.0" match="compatible"/>
|
|
||||||
<import plugin="org.eclipse.core.net" version="1.2.200" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.apache.batik.css" version="1.7.0" match="greaterOrEqual"/>
|
|
||||||
<import plugin="org.eclipse.emf.mwe.utils" version="1.3.0" match="greaterOrEqual"/>
|
|
||||||
</requires>
|
|
||||||
|
|
||||||
<plugin
|
<plugin
|
||||||
id="org.eclipse.e4.core.di.extensions"
|
id="org.eclipse.e4.core.di.extensions"
|
||||||
@ -433,13 +54,6 @@
|
|||||||
version="0.0.0"
|
version="0.0.0"
|
||||||
unpack="false"/>
|
unpack="false"/>
|
||||||
|
|
||||||
<plugin
|
|
||||||
id="org.apache.batik.util"
|
|
||||||
download-size="0"
|
|
||||||
install-size="0"
|
|
||||||
version="0.0.0"
|
|
||||||
unpack="false"/>
|
|
||||||
|
|
||||||
<plugin
|
<plugin
|
||||||
id="org.eclipse.equinox.p2.director.app"
|
id="org.eclipse.equinox.p2.director.app"
|
||||||
download-size="0"
|
download-size="0"
|
||||||
@ -516,28 +130,6 @@
|
|||||||
version="0.0.0"
|
version="0.0.0"
|
||||||
unpack="false"/>
|
unpack="false"/>
|
||||||
|
|
||||||
<plugin
|
|
||||||
id="org.eclipse.jdt.compiler.tool"
|
|
||||||
download-size="0"
|
|
||||||
install-size="0"
|
|
||||||
version="0.0.0"
|
|
||||||
fragment="true"
|
|
||||||
unpack="false"/>
|
|
||||||
|
|
||||||
<plugin
|
|
||||||
id="org.eclipse.pde.ui"
|
|
||||||
download-size="0"
|
|
||||||
install-size="0"
|
|
||||||
version="0.0.0"
|
|
||||||
unpack="false"/>
|
|
||||||
|
|
||||||
<plugin
|
|
||||||
id="com.minres.rdl.ide"
|
|
||||||
download-size="0"
|
|
||||||
install-size="0"
|
|
||||||
version="0.0.0"
|
|
||||||
unpack="false"/>
|
|
||||||
|
|
||||||
<plugin
|
<plugin
|
||||||
id="org.eclipse.equinox.p2.repository"
|
id="org.eclipse.equinox.p2.repository"
|
||||||
download-size="0"
|
download-size="0"
|
||||||
@ -657,13 +249,6 @@
|
|||||||
version="0.0.0"
|
version="0.0.0"
|
||||||
unpack="false"/>
|
unpack="false"/>
|
||||||
|
|
||||||
<plugin
|
|
||||||
id="com.minres.rdl.ui"
|
|
||||||
download-size="0"
|
|
||||||
install-size="0"
|
|
||||||
version="0.0.0"
|
|
||||||
unpack="false"/>
|
|
||||||
|
|
||||||
<plugin
|
<plugin
|
||||||
id="org.eclipse.ui.workbench"
|
id="org.eclipse.ui.workbench"
|
||||||
download-size="0"
|
download-size="0"
|
||||||
@ -678,13 +263,6 @@
|
|||||||
version="0.0.0"
|
version="0.0.0"
|
||||||
unpack="false"/>
|
unpack="false"/>
|
||||||
|
|
||||||
<plugin
|
|
||||||
id="org.eclipse.pde.core"
|
|
||||||
download-size="0"
|
|
||||||
install-size="0"
|
|
||||||
version="0.0.0"
|
|
||||||
unpack="false"/>
|
|
||||||
|
|
||||||
<plugin
|
<plugin
|
||||||
id="org.eclipse.emf.codegen"
|
id="org.eclipse.emf.codegen"
|
||||||
download-size="0"
|
download-size="0"
|
||||||
@ -713,13 +291,6 @@
|
|||||||
version="0.0.0"
|
version="0.0.0"
|
||||||
unpack="false"/>
|
unpack="false"/>
|
||||||
|
|
||||||
<plugin
|
|
||||||
id="javax.xml"
|
|
||||||
download-size="0"
|
|
||||||
install-size="0"
|
|
||||||
version="0.0.0"
|
|
||||||
unpack="false"/>
|
|
||||||
|
|
||||||
<plugin
|
<plugin
|
||||||
id="org.eclipse.core.jobs"
|
id="org.eclipse.core.jobs"
|
||||||
download-size="0"
|
download-size="0"
|
||||||
@ -784,13 +355,6 @@
|
|||||||
version="0.0.0"
|
version="0.0.0"
|
||||||
unpack="false"/>
|
unpack="false"/>
|
||||||
|
|
||||||
<plugin
|
|
||||||
id="org.apache.batik.css"
|
|
||||||
download-size="0"
|
|
||||||
install-size="0"
|
|
||||||
version="0.0.0"
|
|
||||||
unpack="false"/>
|
|
||||||
|
|
||||||
<plugin
|
<plugin
|
||||||
id="org.eclipse.emf.common"
|
id="org.eclipse.emf.common"
|
||||||
download-size="0"
|
download-size="0"
|
||||||
@ -812,20 +376,6 @@
|
|||||||
version="0.0.0"
|
version="0.0.0"
|
||||||
unpack="false"/>
|
unpack="false"/>
|
||||||
|
|
||||||
<plugin
|
|
||||||
id="org.eclipse.xtext.ui.ecore"
|
|
||||||
download-size="0"
|
|
||||||
install-size="0"
|
|
||||||
version="0.0.0"
|
|
||||||
unpack="false"/>
|
|
||||||
|
|
||||||
<plugin
|
|
||||||
id="org.eclipse.jdt.junit"
|
|
||||||
download-size="0"
|
|
||||||
install-size="0"
|
|
||||||
version="0.0.0"
|
|
||||||
unpack="false"/>
|
|
||||||
|
|
||||||
<plugin
|
<plugin
|
||||||
id="org.eclipse.xtext"
|
id="org.eclipse.xtext"
|
||||||
download-size="0"
|
download-size="0"
|
||||||
@ -909,19 +459,6 @@
|
|||||||
install-size="0"
|
install-size="0"
|
||||||
version="0.0.0"/>
|
version="0.0.0"/>
|
||||||
|
|
||||||
<plugin
|
|
||||||
id="org.eclipse.jdt.debug"
|
|
||||||
download-size="0"
|
|
||||||
install-size="0"
|
|
||||||
version="0.0.0"/>
|
|
||||||
|
|
||||||
<plugin
|
|
||||||
id="com.minres.rdl.product"
|
|
||||||
download-size="0"
|
|
||||||
install-size="0"
|
|
||||||
version="0.0.0"
|
|
||||||
unpack="false"/>
|
|
||||||
|
|
||||||
<plugin
|
<plugin
|
||||||
id="org.eclipse.emf.mwe2.language"
|
id="org.eclipse.emf.mwe2.language"
|
||||||
download-size="0"
|
download-size="0"
|
||||||
@ -1006,13 +543,6 @@
|
|||||||
version="0.0.0"
|
version="0.0.0"
|
||||||
unpack="false"/>
|
unpack="false"/>
|
||||||
|
|
||||||
<plugin
|
|
||||||
id="org.eclipse.jdt.launching"
|
|
||||||
download-size="0"
|
|
||||||
install-size="0"
|
|
||||||
version="0.0.0"
|
|
||||||
unpack="false"/>
|
|
||||||
|
|
||||||
<plugin
|
<plugin
|
||||||
id="org.eclipse.emf.mwe2.runtime"
|
id="org.eclipse.emf.mwe2.runtime"
|
||||||
download-size="0"
|
download-size="0"
|
||||||
@ -1111,13 +641,6 @@
|
|||||||
version="0.0.0"
|
version="0.0.0"
|
||||||
unpack="false"/>
|
unpack="false"/>
|
||||||
|
|
||||||
<plugin
|
|
||||||
id="org.eclipse.jdt.debug.ui"
|
|
||||||
download-size="0"
|
|
||||||
install-size="0"
|
|
||||||
version="0.0.0"
|
|
||||||
unpack="false"/>
|
|
||||||
|
|
||||||
<plugin
|
<plugin
|
||||||
id="org.eclipse.equinox.p2.operations"
|
id="org.eclipse.equinox.p2.operations"
|
||||||
download-size="0"
|
download-size="0"
|
||||||
@ -1125,13 +648,6 @@
|
|||||||
version="0.0.0"
|
version="0.0.0"
|
||||||
unpack="false"/>
|
unpack="false"/>
|
||||||
|
|
||||||
<plugin
|
|
||||||
id="org.eclipse.jdt.junit.runtime"
|
|
||||||
download-size="0"
|
|
||||||
install-size="0"
|
|
||||||
version="0.0.0"
|
|
||||||
unpack="false"/>
|
|
||||||
|
|
||||||
<plugin
|
<plugin
|
||||||
id="org.eclipse.ant.launching"
|
id="org.eclipse.ant.launching"
|
||||||
download-size="0"
|
download-size="0"
|
||||||
@ -1244,13 +760,6 @@
|
|||||||
version="0.0.0"
|
version="0.0.0"
|
||||||
unpack="false"/>
|
unpack="false"/>
|
||||||
|
|
||||||
<plugin
|
|
||||||
id="javax.servlet"
|
|
||||||
download-size="0"
|
|
||||||
install-size="0"
|
|
||||||
version="0.0.0"
|
|
||||||
unpack="false"/>
|
|
||||||
|
|
||||||
<plugin
|
<plugin
|
||||||
id="org.objectweb.asm"
|
id="org.objectweb.asm"
|
||||||
download-size="0"
|
download-size="0"
|
||||||
@ -1279,13 +788,6 @@
|
|||||||
fragment="true"
|
fragment="true"
|
||||||
unpack="false"/>
|
unpack="false"/>
|
||||||
|
|
||||||
<plugin
|
|
||||||
id="org.eclipse.equinox.util"
|
|
||||||
download-size="0"
|
|
||||||
install-size="0"
|
|
||||||
version="0.0.0"
|
|
||||||
unpack="false"/>
|
|
||||||
|
|
||||||
<plugin
|
<plugin
|
||||||
id="org.eclipse.core.variables"
|
id="org.eclipse.core.variables"
|
||||||
download-size="0"
|
download-size="0"
|
||||||
@ -1313,13 +815,6 @@
|
|||||||
version="0.0.0"
|
version="0.0.0"
|
||||||
unpack="false"/>
|
unpack="false"/>
|
||||||
|
|
||||||
<plugin
|
|
||||||
id="com.minres.rdl"
|
|
||||||
download-size="0"
|
|
||||||
install-size="0"
|
|
||||||
version="0.0.0"
|
|
||||||
unpack="false"/>
|
|
||||||
|
|
||||||
<plugin
|
<plugin
|
||||||
id="org.eclipse.ui.navigator.resources"
|
id="org.eclipse.ui.navigator.resources"
|
||||||
download-size="0"
|
download-size="0"
|
||||||
@ -1348,13 +843,6 @@
|
|||||||
version="0.0.0"
|
version="0.0.0"
|
||||||
unpack="false"/>
|
unpack="false"/>
|
||||||
|
|
||||||
<plugin
|
|
||||||
id="org.eclipse.xtext.ui.codetemplates.ui"
|
|
||||||
download-size="0"
|
|
||||||
install-size="0"
|
|
||||||
version="0.0.0"
|
|
||||||
unpack="false"/>
|
|
||||||
|
|
||||||
<plugin
|
<plugin
|
||||||
id="org.eclipse.e4.ui.di"
|
id="org.eclipse.e4.ui.di"
|
||||||
download-size="0"
|
download-size="0"
|
||||||
@ -1362,13 +850,6 @@
|
|||||||
version="0.0.0"
|
version="0.0.0"
|
||||||
unpack="false"/>
|
unpack="false"/>
|
||||||
|
|
||||||
<plugin
|
|
||||||
id="org.eclipse.xtext.ui"
|
|
||||||
download-size="0"
|
|
||||||
install-size="0"
|
|
||||||
version="0.0.0"
|
|
||||||
unpack="false"/>
|
|
||||||
|
|
||||||
<plugin
|
<plugin
|
||||||
id="org.eclipse.ui.forms"
|
id="org.eclipse.ui.forms"
|
||||||
download-size="0"
|
download-size="0"
|
||||||
@ -1411,13 +892,6 @@
|
|||||||
version="0.0.0"
|
version="0.0.0"
|
||||||
unpack="false"/>
|
unpack="false"/>
|
||||||
|
|
||||||
<plugin
|
|
||||||
id="org.apache.batik.util.gui"
|
|
||||||
download-size="0"
|
|
||||||
install-size="0"
|
|
||||||
version="0.0.0"
|
|
||||||
unpack="false"/>
|
|
||||||
|
|
||||||
<plugin
|
<plugin
|
||||||
id="org.eclipse.e4.emf.xpath"
|
id="org.eclipse.e4.emf.xpath"
|
||||||
download-size="0"
|
download-size="0"
|
||||||
@ -1446,13 +920,6 @@
|
|||||||
version="0.0.0"
|
version="0.0.0"
|
||||||
unpack="false"/>
|
unpack="false"/>
|
||||||
|
|
||||||
<plugin
|
|
||||||
id="org.apache.lucene.analysis"
|
|
||||||
download-size="0"
|
|
||||||
install-size="0"
|
|
||||||
version="0.0.0"
|
|
||||||
unpack="false"/>
|
|
||||||
|
|
||||||
<plugin
|
<plugin
|
||||||
id="org.eclipse.emf.edit.ui"
|
id="org.eclipse.emf.edit.ui"
|
||||||
download-size="0"
|
download-size="0"
|
||||||
@ -1481,13 +948,6 @@
|
|||||||
version="0.0.0"
|
version="0.0.0"
|
||||||
unpack="false"/>
|
unpack="false"/>
|
||||||
|
|
||||||
<plugin
|
|
||||||
id="org.eclipse.jdt.ui"
|
|
||||||
download-size="0"
|
|
||||||
install-size="0"
|
|
||||||
version="0.0.0"
|
|
||||||
unpack="false"/>
|
|
||||||
|
|
||||||
<plugin
|
<plugin
|
||||||
id="org.w3c.dom.svg"
|
id="org.w3c.dom.svg"
|
||||||
download-size="0"
|
download-size="0"
|
||||||
@ -1509,13 +969,6 @@
|
|||||||
version="0.0.0"
|
version="0.0.0"
|
||||||
unpack="false"/>
|
unpack="false"/>
|
||||||
|
|
||||||
<plugin
|
|
||||||
id="org.eclipse.jdt.junit.core"
|
|
||||||
download-size="0"
|
|
||||||
install-size="0"
|
|
||||||
version="0.0.0"
|
|
||||||
unpack="false"/>
|
|
||||||
|
|
||||||
<plugin
|
<plugin
|
||||||
id="org.eclipse.e4.ui.workbench"
|
id="org.eclipse.e4.ui.workbench"
|
||||||
download-size="0"
|
download-size="0"
|
||||||
@ -1600,12 +1053,6 @@
|
|||||||
version="0.0.0"
|
version="0.0.0"
|
||||||
unpack="false"/>
|
unpack="false"/>
|
||||||
|
|
||||||
<plugin
|
|
||||||
id="org.eclipse.pde.build"
|
|
||||||
download-size="0"
|
|
||||||
install-size="0"
|
|
||||||
version="0.0.0"/>
|
|
||||||
|
|
||||||
<plugin
|
<plugin
|
||||||
id="org.eclipse.ant.core"
|
id="org.eclipse.ant.core"
|
||||||
download-size="0"
|
download-size="0"
|
||||||
@ -1627,13 +1074,6 @@
|
|||||||
version="0.0.0"
|
version="0.0.0"
|
||||||
unpack="false"/>
|
unpack="false"/>
|
||||||
|
|
||||||
<plugin
|
|
||||||
id="org.eclipse.xtext.ui.shared"
|
|
||||||
download-size="0"
|
|
||||||
install-size="0"
|
|
||||||
version="0.0.0"
|
|
||||||
unpack="false"/>
|
|
||||||
|
|
||||||
<plugin
|
<plugin
|
||||||
id="org.eclipse.emf.ecore.editor"
|
id="org.eclipse.emf.ecore.editor"
|
||||||
download-size="0"
|
download-size="0"
|
||||||
@ -1690,13 +1130,6 @@
|
|||||||
version="0.0.0"
|
version="0.0.0"
|
||||||
unpack="false"/>
|
unpack="false"/>
|
||||||
|
|
||||||
<plugin
|
|
||||||
id="org.eclipse.jdt.core.manipulation"
|
|
||||||
download-size="0"
|
|
||||||
install-size="0"
|
|
||||||
version="0.0.0"
|
|
||||||
unpack="false"/>
|
|
||||||
|
|
||||||
<plugin
|
<plugin
|
||||||
id="org.eclipse.ui.trace"
|
id="org.eclipse.ui.trace"
|
||||||
download-size="0"
|
download-size="0"
|
||||||
@ -1718,13 +1151,6 @@
|
|||||||
version="0.0.0"
|
version="0.0.0"
|
||||||
unpack="false"/>
|
unpack="false"/>
|
||||||
|
|
||||||
<plugin
|
|
||||||
id="org.eclipse.pde.launching"
|
|
||||||
download-size="0"
|
|
||||||
install-size="0"
|
|
||||||
version="0.0.0"
|
|
||||||
unpack="false"/>
|
|
||||||
|
|
||||||
<plugin
|
<plugin
|
||||||
id="org.apache.commons.lang"
|
id="org.apache.commons.lang"
|
||||||
download-size="0"
|
download-size="0"
|
||||||
@ -1739,13 +1165,6 @@
|
|||||||
version="0.0.0"
|
version="0.0.0"
|
||||||
unpack="false"/>
|
unpack="false"/>
|
||||||
|
|
||||||
<plugin
|
|
||||||
id="org.eclipse.xtext.ui.codetemplates"
|
|
||||||
download-size="0"
|
|
||||||
install-size="0"
|
|
||||||
version="0.0.0"
|
|
||||||
unpack="false"/>
|
|
||||||
|
|
||||||
<plugin
|
<plugin
|
||||||
id="org.eclipse.xtend.lib"
|
id="org.eclipse.xtend.lib"
|
||||||
download-size="0"
|
download-size="0"
|
||||||
@ -1767,14 +1186,6 @@
|
|||||||
version="0.0.0"
|
version="0.0.0"
|
||||||
unpack="false"/>
|
unpack="false"/>
|
||||||
|
|
||||||
<plugin
|
|
||||||
id="org.eclipse.jdt.compiler.apt"
|
|
||||||
download-size="0"
|
|
||||||
install-size="0"
|
|
||||||
version="0.0.0"
|
|
||||||
fragment="true"
|
|
||||||
unpack="false"/>
|
|
||||||
|
|
||||||
<plugin
|
<plugin
|
||||||
id="org.eclipse.osgi.services"
|
id="org.eclipse.osgi.services"
|
||||||
download-size="0"
|
download-size="0"
|
||||||
@ -1817,13 +1228,6 @@
|
|||||||
version="0.0.0"
|
version="0.0.0"
|
||||||
unpack="false"/>
|
unpack="false"/>
|
||||||
|
|
||||||
<plugin
|
|
||||||
id="org.eclipse.jdt.core"
|
|
||||||
download-size="0"
|
|
||||||
install-size="0"
|
|
||||||
version="0.0.0"
|
|
||||||
unpack="false"/>
|
|
||||||
|
|
||||||
<plugin
|
<plugin
|
||||||
id="org.eclipse.ui.editors"
|
id="org.eclipse.ui.editors"
|
||||||
download-size="0"
|
download-size="0"
|
||||||
@ -1838,13 +1242,6 @@
|
|||||||
version="0.0.0"
|
version="0.0.0"
|
||||||
unpack="false"/>
|
unpack="false"/>
|
||||||
|
|
||||||
<plugin
|
|
||||||
id="org.eclipse.equinox.ds"
|
|
||||||
download-size="0"
|
|
||||||
install-size="0"
|
|
||||||
version="0.0.0"
|
|
||||||
unpack="false"/>
|
|
||||||
|
|
||||||
<plugin
|
<plugin
|
||||||
id="org.eclipse.xtext.common.types"
|
id="org.eclipse.xtext.common.types"
|
||||||
download-size="0"
|
download-size="0"
|
||||||
@ -1901,4 +1298,18 @@
|
|||||||
version="0.0.0"
|
version="0.0.0"
|
||||||
unpack="false"/>
|
unpack="false"/>
|
||||||
|
|
||||||
|
<plugin
|
||||||
|
id="org.antlr.runtime"
|
||||||
|
download-size="0"
|
||||||
|
install-size="0"
|
||||||
|
version="0.0.0"
|
||||||
|
unpack="false"/>
|
||||||
|
|
||||||
|
<plugin
|
||||||
|
id="org.eclipse.ui.genericeditor"
|
||||||
|
download-size="0"
|
||||||
|
install-size="0"
|
||||||
|
version="0.0.0"
|
||||||
|
unpack="false"/>
|
||||||
|
|
||||||
</feature>
|
</feature>
|
||||||
|
@ -4,11 +4,29 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>com.minres.rdl</groupId>
|
<groupId>com.minres.rdl</groupId>
|
||||||
<artifactId>com.minres.rdl.parent</artifactId>
|
<artifactId>com.minres.rdl.parent</artifactId>
|
||||||
<version>1.0.0-SNAPSHOT</version>
|
<version>1.4.1</version>
|
||||||
</parent>
|
</parent>
|
||||||
<artifactId>com.minres.rdl.platform.feature</artifactId>
|
<artifactId>com.minres.rdl.platform.feature</artifactId>
|
||||||
<packaging>eclipse-feature</packaging>
|
<packaging>eclipse-feature</packaging>
|
||||||
|
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.eclipse.tycho.extras</groupId>
|
||||||
|
<artifactId>tycho-source-feature-plugin</artifactId>
|
||||||
|
<version>${tycho-version}</version>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>source-feature</id>
|
||||||
|
<phase>none</phase>
|
||||||
|
<!-- <goals>
|
||||||
|
<goal>source-feature</goal>
|
||||||
|
</goals>
|
||||||
|
--> </execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
@ -2,7 +2,8 @@
|
|||||||
<feature
|
<feature
|
||||||
id="com.minres.rdl.product.feature"
|
id="com.minres.rdl.product.feature"
|
||||||
label="RDL Feature "
|
label="RDL Feature "
|
||||||
version="1.0.0.qualifier">
|
version="1.4.1"
|
||||||
|
provider-name="MINRES Technologies GmbH">
|
||||||
|
|
||||||
<requires>
|
<requires>
|
||||||
<import feature="com.minres.rdl.feature" version="1.0.0.qualifier"/>
|
<import feature="com.minres.rdl.feature" version="1.0.0.qualifier"/>
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>com.minres.rdl</groupId>
|
<groupId>com.minres.rdl</groupId>
|
||||||
<artifactId>com.minres.rdl.parent</artifactId>
|
<artifactId>com.minres.rdl.parent</artifactId>
|
||||||
<version>1.0.0-SNAPSHOT</version>
|
<version>1.4.1</version>
|
||||||
</parent>
|
</parent>
|
||||||
<artifactId>com.minres.rdl.product.feature</artifactId>
|
<artifactId>com.minres.rdl.product.feature</artifactId>
|
||||||
<packaging>eclipse-feature</packaging>
|
<packaging>eclipse-feature</packaging>
|
||||||
|
17
com.minres.rdl.parent/com.minres.rdl.product.releng/.project
Normal file
17
com.minres.rdl.parent/com.minres.rdl.product.releng/.project
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<projectDescription>
|
||||||
|
<name>com.minres.rdl.product.releng</name>
|
||||||
|
<comment></comment>
|
||||||
|
<projects>
|
||||||
|
</projects>
|
||||||
|
<buildSpec>
|
||||||
|
<buildCommand>
|
||||||
|
<name>org.eclipse.m2e.core.maven2Builder</name>
|
||||||
|
<arguments>
|
||||||
|
</arguments>
|
||||||
|
</buildCommand>
|
||||||
|
</buildSpec>
|
||||||
|
<natures>
|
||||||
|
<nature>org.eclipse.m2e.core.maven2Nature</nature>
|
||||||
|
</natures>
|
||||||
|
</projectDescription>
|
@ -0,0 +1,4 @@
|
|||||||
|
activeProfiles=
|
||||||
|
eclipse.preferences.version=1
|
||||||
|
resolveWorkspaceProjects=true
|
||||||
|
version=1
|
@ -0,0 +1,52 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<?pde version="3.5"?>
|
||||||
|
|
||||||
|
<product name="RDL Editor" uid="com.minres.rdl.product.product" id="com.minres.rdl.product.product" application="org.eclipse.ui.ide.workbench" version="1.4.0.qualifier" useFeatures="true" includeLaunchers="true">
|
||||||
|
|
||||||
|
<configIni use="default">
|
||||||
|
</configIni>
|
||||||
|
|
||||||
|
<launcherArgs>
|
||||||
|
<vmArgsMac>-XstartOnFirstThread -Dorg.eclipse.swt.internal.carbon.smallFonts
|
||||||
|
</vmArgsMac>
|
||||||
|
</launcherArgs>
|
||||||
|
|
||||||
|
<windowImages/>
|
||||||
|
|
||||||
|
<launcher name="rdl-editor">
|
||||||
|
<win useIco="false">
|
||||||
|
<bmp/>
|
||||||
|
</win>
|
||||||
|
</launcher>
|
||||||
|
|
||||||
|
<vm>
|
||||||
|
</vm>
|
||||||
|
|
||||||
|
<plugins>
|
||||||
|
</plugins>
|
||||||
|
|
||||||
|
<features>
|
||||||
|
<feature id="com.minres.rdl.platform.feature"/>
|
||||||
|
<feature id="com.minres.rdl.product.feature"/>
|
||||||
|
<feature id="com.minres.rdl.feature"/>
|
||||||
|
<feature id="org.eclipse.emf.ecore"/>
|
||||||
|
<feature id="org.eclipse.rcp"/>
|
||||||
|
<feature id="org.eclipse.emf.common"/>
|
||||||
|
<feature id="org.eclipse.xtext.runtime"/>
|
||||||
|
<feature id="org.eclipse.e4.rcp"/>
|
||||||
|
<feature id="org.eclipse.xtext.xbase"/>
|
||||||
|
<feature id="org.eclipse.help"/>
|
||||||
|
<feature id="org.eclipse.xtext.redist"/>
|
||||||
|
<feature id="org.eclipse.xtext.xbase.lib"/>
|
||||||
|
<feature id="org.eclipse.xtext.ui"/>
|
||||||
|
</features>
|
||||||
|
|
||||||
|
<configurations>
|
||||||
|
<plugin id="org.eclipse.core.runtime" autoStart="true" startLevel="0" />
|
||||||
|
<plugin id="org.eclipse.equinox.common" autoStart="true" startLevel="2" />
|
||||||
|
<plugin id="org.eclipse.equinox.ds" autoStart="true" startLevel="2" />
|
||||||
|
<plugin id="org.eclipse.equinox.event" autoStart="true" startLevel="2" />
|
||||||
|
<plugin id="org.eclipse.equinox.simpleconfigurator" autoStart="true" startLevel="1" />
|
||||||
|
</configurations>
|
||||||
|
|
||||||
|
</product>
|
51
com.minres.rdl.parent/com.minres.rdl.product.releng/pom.xml
Normal file
51
com.minres.rdl.parent/com.minres.rdl.product.releng/pom.xml
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
|
<artifactId>com.minres.rdl.product.releng</artifactId>
|
||||||
|
<packaging>eclipse-repository</packaging>
|
||||||
|
<name>RDL Editor</name>
|
||||||
|
|
||||||
|
<parent>
|
||||||
|
<version>1.4.1</version>
|
||||||
|
<groupId>com.minres.rdl</groupId>
|
||||||
|
<artifactId>com.minres.rdl.parent</artifactId>
|
||||||
|
</parent>
|
||||||
|
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.eclipse.tycho</groupId>
|
||||||
|
<artifactId>tycho-p2-director-plugin</artifactId>
|
||||||
|
<version>${tycho-version}</version>
|
||||||
|
<configuration>
|
||||||
|
<formats>
|
||||||
|
<win32>zip</win32>
|
||||||
|
<linux>tar.gz</linux>
|
||||||
|
<macosx>tar.gz</macosx>
|
||||||
|
</formats>
|
||||||
|
<products>
|
||||||
|
<product>
|
||||||
|
<id>com.minres.rdl.product.product</id>
|
||||||
|
<archiveFileName>RDL-Editor-${project.version}</archiveFileName>
|
||||||
|
</product>
|
||||||
|
</products>
|
||||||
|
</configuration>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>materialize-products</id>
|
||||||
|
<goals>
|
||||||
|
<goal>materialize-products</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
<execution>
|
||||||
|
<id>archive-products</id>
|
||||||
|
<goals>
|
||||||
|
<goal>archive-products</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
</project>
|
@ -1,7 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<classpath>
|
<classpath>
|
||||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
|
|
||||||
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
|
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
|
||||||
<classpathentry kind="src" path="src"/>
|
<classpathentry kind="src" path="src"/>
|
||||||
<classpathentry kind="output" path="bin"/>
|
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-11"/>
|
||||||
|
<classpathentry kind="output" path="target/classes"/>
|
||||||
</classpath>
|
</classpath>
|
||||||
|
@ -1,7 +0,0 @@
|
|||||||
eclipse.preferences.version=1
|
|
||||||
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
|
|
||||||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
|
|
||||||
org.eclipse.jdt.core.compiler.compliance=1.8
|
|
||||||
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
|
|
||||||
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
|
|
||||||
org.eclipse.jdt.core.compiler.source=1.8
|
|
@ -2,7 +2,8 @@ Manifest-Version: 1.0
|
|||||||
Bundle-ManifestVersion: 2
|
Bundle-ManifestVersion: 2
|
||||||
Bundle-Name: RDL Editor
|
Bundle-Name: RDL Editor
|
||||||
Bundle-SymbolicName: com.minres.rdl.product;singleton:=true
|
Bundle-SymbolicName: com.minres.rdl.product;singleton:=true
|
||||||
Bundle-Version: 1.0.0.qualifier
|
Bundle-Version: 1.4.1
|
||||||
Bundle-Vendor: MINRES
|
Bundle-Vendor: MINRES Technologies GmbH
|
||||||
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
|
Bundle-RequiredExecutionEnvironment: JavaSE-11
|
||||||
Require-Bundle: org.eclipse.core.runtime;bundle-version="3.12.0"
|
Require-Bundle: org.eclipse.core.runtime;bundle-version="3.12.0"
|
||||||
|
Automatic-Module-Name: com.minres.rdl.product
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
source.. = src/
|
source.. = src/
|
||||||
output.. = bin/
|
|
||||||
bin.includes = META-INF/,\
|
bin.includes = META-INF/,\
|
||||||
.,\
|
.,\
|
||||||
plugin.xml
|
plugin.xml
|
||||||
|
@ -1,119 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<?pde version="3.5"?>
|
|
||||||
|
|
||||||
<product name="RDL" uid="com.minres.rdl.product.product" id="com.minres.rdl.product.product" application="org.eclipse.ui.ide.workbench" version="1.0.0.qualifier" useFeatures="true" includeLaunchers="true">
|
|
||||||
|
|
||||||
|
|
||||||
<configIni use="default">
|
|
||||||
</configIni>
|
|
||||||
|
|
||||||
<launcherArgs>
|
|
||||||
<vmArgsMac>-XstartOnFirstThread -Dorg.eclipse.swt.internal.carbon.smallFonts
|
|
||||||
</vmArgsMac>
|
|
||||||
</launcherArgs>
|
|
||||||
|
|
||||||
<windowImages/>
|
|
||||||
|
|
||||||
<launcher>
|
|
||||||
<solaris/>
|
|
||||||
<win useIco="false">
|
|
||||||
<bmp/>
|
|
||||||
</win>
|
|
||||||
</launcher>
|
|
||||||
|
|
||||||
|
|
||||||
<vm>
|
|
||||||
</vm>
|
|
||||||
|
|
||||||
<plugins>
|
|
||||||
<plugin id="com.ibm.icu"/>
|
|
||||||
<plugin id="com.minres.rdl.product"/>
|
|
||||||
<plugin id="javax.inject"/>
|
|
||||||
<plugin id="javax.xml"/>
|
|
||||||
<plugin id="org.apache.batik.css"/>
|
|
||||||
<plugin id="org.apache.batik.util"/>
|
|
||||||
<plugin id="org.apache.batik.util.gui"/>
|
|
||||||
<plugin id="org.apache.commons.jxpath"/>
|
|
||||||
<plugin id="org.eclipse.core.commands"/>
|
|
||||||
<plugin id="org.eclipse.core.contenttype"/>
|
|
||||||
<plugin id="org.eclipse.core.databinding"/>
|
|
||||||
<plugin id="org.eclipse.core.databinding.observable"/>
|
|
||||||
<plugin id="org.eclipse.core.databinding.property"/>
|
|
||||||
<plugin id="org.eclipse.core.expressions"/>
|
|
||||||
<plugin id="org.eclipse.core.filesystem"/>
|
|
||||||
<plugin id="org.eclipse.core.filesystem.macosx" fragment="true"/>
|
|
||||||
<plugin id="org.eclipse.core.jobs"/>
|
|
||||||
<plugin id="org.eclipse.core.runtime"/>
|
|
||||||
<plugin id="org.eclipse.e4.core.commands"/>
|
|
||||||
<plugin id="org.eclipse.e4.core.contexts"/>
|
|
||||||
<plugin id="org.eclipse.e4.core.di"/>
|
|
||||||
<plugin id="org.eclipse.e4.core.di.annotations"/>
|
|
||||||
<plugin id="org.eclipse.e4.core.di.extensions"/>
|
|
||||||
<plugin id="org.eclipse.e4.core.services"/>
|
|
||||||
<plugin id="org.eclipse.e4.emf.xpath"/>
|
|
||||||
<plugin id="org.eclipse.e4.ui.bindings"/>
|
|
||||||
<plugin id="org.eclipse.e4.ui.css.core"/>
|
|
||||||
<plugin id="org.eclipse.e4.ui.css.swt"/>
|
|
||||||
<plugin id="org.eclipse.e4.ui.css.swt.theme"/>
|
|
||||||
<plugin id="org.eclipse.e4.ui.di"/>
|
|
||||||
<plugin id="org.eclipse.e4.ui.model.workbench"/>
|
|
||||||
<plugin id="org.eclipse.e4.ui.services"/>
|
|
||||||
<plugin id="org.eclipse.e4.ui.widgets"/>
|
|
||||||
<plugin id="org.eclipse.e4.ui.workbench"/>
|
|
||||||
<plugin id="org.eclipse.e4.ui.workbench.addons.swt"/>
|
|
||||||
<plugin id="org.eclipse.e4.ui.workbench.renderers.swt"/>
|
|
||||||
<plugin id="org.eclipse.e4.ui.workbench.renderers.swt.cocoa" fragment="true"/>
|
|
||||||
<plugin id="org.eclipse.e4.ui.workbench.swt"/>
|
|
||||||
<plugin id="org.eclipse.e4.ui.workbench3"/>
|
|
||||||
<plugin id="org.eclipse.emf.common"/>
|
|
||||||
<plugin id="org.eclipse.emf.ecore"/>
|
|
||||||
<plugin id="org.eclipse.emf.ecore.change"/>
|
|
||||||
<plugin id="org.eclipse.emf.ecore.xmi"/>
|
|
||||||
<plugin id="org.eclipse.equinox.app"/>
|
|
||||||
<plugin id="org.eclipse.equinox.bidi"/>
|
|
||||||
<plugin id="org.eclipse.equinox.common"/>
|
|
||||||
<plugin id="org.eclipse.equinox.p2.core"/>
|
|
||||||
<plugin id="org.eclipse.equinox.p2.engine"/>
|
|
||||||
<plugin id="org.eclipse.equinox.p2.metadata"/>
|
|
||||||
<plugin id="org.eclipse.equinox.p2.metadata.repository"/>
|
|
||||||
<plugin id="org.eclipse.equinox.p2.repository"/>
|
|
||||||
<plugin id="org.eclipse.equinox.preferences"/>
|
|
||||||
<plugin id="org.eclipse.equinox.registry"/>
|
|
||||||
<plugin id="org.eclipse.equinox.security"/>
|
|
||||||
<plugin id="org.eclipse.equinox.security.macosx" fragment="true"/>
|
|
||||||
<plugin id="org.eclipse.help"/>
|
|
||||||
<plugin id="org.eclipse.jface"/>
|
|
||||||
<plugin id="org.eclipse.jface.databinding"/>
|
|
||||||
<plugin id="org.eclipse.jface.text"/>
|
|
||||||
<plugin id="org.eclipse.osgi"/>
|
|
||||||
<plugin id="org.eclipse.osgi.compatibility.state" fragment="true"/>
|
|
||||||
<plugin id="org.eclipse.osgi.services"/>
|
|
||||||
<plugin id="org.eclipse.swt"/>
|
|
||||||
<plugin id="org.eclipse.swt.cocoa.macosx.x86_64" fragment="true"/>
|
|
||||||
<plugin id="org.eclipse.text"/>
|
|
||||||
<plugin id="org.eclipse.ui"/>
|
|
||||||
<plugin id="org.eclipse.ui.cocoa" fragment="true"/>
|
|
||||||
<plugin id="org.eclipse.ui.ide"/>
|
|
||||||
<plugin id="org.eclipse.ui.workbench"/>
|
|
||||||
<plugin id="org.tukaani.xz"/>
|
|
||||||
<plugin id="org.w3c.css.sac"/>
|
|
||||||
<plugin id="org.w3c.dom.events"/>
|
|
||||||
<plugin id="org.w3c.dom.smil"/>
|
|
||||||
<plugin id="org.w3c.dom.svg"/>
|
|
||||||
</plugins>
|
|
||||||
|
|
||||||
<features>
|
|
||||||
<feature id="com.minres.rdl.platform.feature" version="1.0.0.qualifier"/>
|
|
||||||
<feature id="com.minres.rdl.product.feature" version="1.0.0.qualifier"/>
|
|
||||||
<feature id="com.minres.rdl.feature" version="1.0.0.qualifier"/>
|
|
||||||
</features>
|
|
||||||
|
|
||||||
<configurations>
|
|
||||||
<plugin id="org.eclipse.core.runtime" autoStart="true" startLevel="0" />
|
|
||||||
<plugin id="org.eclipse.equinox.common" autoStart="true" startLevel="2" />
|
|
||||||
<plugin id="org.eclipse.equinox.ds" autoStart="true" startLevel="2" />
|
|
||||||
<plugin id="org.eclipse.equinox.event" autoStart="true" startLevel="2" />
|
|
||||||
<plugin id="org.eclipse.equinox.simpleconfigurator" autoStart="true" startLevel="1" />
|
|
||||||
</configurations>
|
|
||||||
|
|
||||||
</product>
|
|
@ -6,10 +6,10 @@
|
|||||||
point="org.eclipse.core.runtime.products">
|
point="org.eclipse.core.runtime.products">
|
||||||
<product
|
<product
|
||||||
application="org.eclipse.ui.ide.workbench"
|
application="org.eclipse.ui.ide.workbench"
|
||||||
name="RDL">
|
name="RDL Editor">
|
||||||
<property
|
<property
|
||||||
name="appName"
|
name="appName"
|
||||||
value="RDL">
|
value="RDL Editor">
|
||||||
</property>
|
</property>
|
||||||
</product>
|
</product>
|
||||||
</extension>
|
</extension>
|
||||||
|
@ -4,18 +4,8 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>com.minres.rdl</groupId>
|
<groupId>com.minres.rdl</groupId>
|
||||||
<artifactId>com.minres.rdl.parent</artifactId>
|
<artifactId>com.minres.rdl.parent</artifactId>
|
||||||
<version>1.0.0-SNAPSHOT</version>
|
<version>1.4.1</version>
|
||||||
</parent>
|
</parent>
|
||||||
<artifactId>com.minres.rdl.product</artifactId>
|
<artifactId>com.minres.rdl.product</artifactId>
|
||||||
<packaging>eclipse-application</packaging>
|
<packaging>eclipse-plugin</packaging>
|
||||||
|
|
||||||
<build>
|
|
||||||
<plugins>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.eclipse.xtend</groupId>
|
|
||||||
<artifactId>xtend-maven-plugin</artifactId>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
|
||||||
</build>
|
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
|
@ -3,5 +3,9 @@
|
|||||||
<feature id="com.minres.rdl.feature" version="0.0.0">
|
<feature id="com.minres.rdl.feature" version="0.0.0">
|
||||||
<category name="main"/>
|
<category name="main"/>
|
||||||
</feature>
|
</feature>
|
||||||
|
<feature id="com.minres.rdl.feature.source" version="0.0.0">
|
||||||
|
<category name="main.source"/>
|
||||||
|
</feature>
|
||||||
<category-def name="main" label="RDL"/>
|
<category-def name="main" label="RDL"/>
|
||||||
|
<category-def name="main.source" label="RDL (Sources)"/>
|
||||||
</site>
|
</site>
|
||||||
|
@ -0,0 +1,104 @@
|
|||||||
|
<?xml version="1.0"?>
|
||||||
|
<project name="project">
|
||||||
|
|
||||||
|
<target name="getMajorMinorVersion">
|
||||||
|
<script language="javascript">
|
||||||
|
<![CDATA[
|
||||||
|
|
||||||
|
// getting the value
|
||||||
|
buildnumber = project.getProperty("unqualifiedVersion");
|
||||||
|
index = buildnumber.lastIndexOf(".");
|
||||||
|
counter = buildnumber.substring(0, index);
|
||||||
|
project.setProperty("majorMinorVersion",counter);
|
||||||
|
|
||||||
|
]]>
|
||||||
|
</script>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="test_getMajorMinor" depends="getMajorMinorVersion">
|
||||||
|
<echo message="majorMinorVersion: ${majorMinorVersion}"/>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
site.label The name/title/label of the created composite site
|
||||||
|
unqualifiedVersion The version without any qualifier replacement
|
||||||
|
buildQualifier The build qualifier
|
||||||
|
-->
|
||||||
|
<target name="compute.child.repository.data" depends="getMajorMinorVersion">
|
||||||
|
<property name="full.version" value="${unqualifiedVersion}" />
|
||||||
|
|
||||||
|
<property name="software.download.area" location="${user.home}/p2.repositories" />
|
||||||
|
<property name="updates.dir" value="updates" />
|
||||||
|
|
||||||
|
<property name="site.composite.name" value="${site.label} ${majorMinorVersion}" />
|
||||||
|
<property name="main.site.composite.name" value="${site.label} All Versions" />
|
||||||
|
|
||||||
|
<!--
|
||||||
|
<property name="main.composite.repository.directory" location="${software.download.area}/${updates.dir}" />
|
||||||
|
-->
|
||||||
|
<property name="main.composite.repository.directory" location="${software.download.area}" />
|
||||||
|
|
||||||
|
<property name="composite.repository.directory" value="${main.composite.repository.directory}/${majorMinorVersion}" />
|
||||||
|
<property name="child.repository" value="${full.version}" />
|
||||||
|
<property name="child.repository.directory" value="${composite.repository.directory}/${child.repository}/" />
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="p2.composite.add" depends="compute.child.repository.data">
|
||||||
|
<property name="source.repository" location="${project.build.directory}/repository"/>
|
||||||
|
|
||||||
|
<echo message=" " />
|
||||||
|
|
||||||
|
<echo message="Source repository path: ${source.repository}" />
|
||||||
|
|
||||||
|
<echo message="Copying to ${child.repository.directory}..." />
|
||||||
|
|
||||||
|
<mkdir dir="${child.repository.directory}"/>
|
||||||
|
<copy todir="${child.repository.directory}" overwrite="true">
|
||||||
|
<fileset dir="${source.repository}" />
|
||||||
|
</copy>
|
||||||
|
|
||||||
|
<add.composite.repository.internal
|
||||||
|
composite.repository.location="${composite.repository.directory}"
|
||||||
|
composite.repository.name="${site.composite.name}"
|
||||||
|
composite.repository.child="${child.repository}"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<add.composite.repository.internal
|
||||||
|
composite.repository.location="${main.composite.repository.directory}"
|
||||||
|
composite.repository.name="${main.site.composite.name}"
|
||||||
|
composite.repository.child="${majorMinorVersion}"
|
||||||
|
/>
|
||||||
|
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- = = = = = = = = = = = = = = = = =
|
||||||
|
macrodef: add.composite.repository.internal
|
||||||
|
= = = = = = = = = = = = = = = = = -->
|
||||||
|
<macrodef name="add.composite.repository.internal">
|
||||||
|
<attribute name="composite.repository.location" />
|
||||||
|
<attribute name="composite.repository.name" />
|
||||||
|
<attribute name="composite.repository.child" />
|
||||||
|
<sequential>
|
||||||
|
|
||||||
|
<echo message=" " />
|
||||||
|
<echo message="Composite repository : @{composite.repository.location}" />
|
||||||
|
<echo message="Composite name : @{composite.repository.name}" />
|
||||||
|
<echo message="Adding child repository : @{composite.repository.child}" />
|
||||||
|
|
||||||
|
<p2.composite.repository>
|
||||||
|
<repository compressed="false" location="@{composite.repository.location}" name="@{composite.repository.name}" />
|
||||||
|
<add>
|
||||||
|
<repository location="@{composite.repository.child}" />
|
||||||
|
</add>
|
||||||
|
</p2.composite.repository>
|
||||||
|
|
||||||
|
<echo file="@{composite.repository.location}/p2.index">version=1
|
||||||
|
metadata.repository.factory.order=compositeContent.xml,\!
|
||||||
|
artifact.repository.factory.order=compositeArtifacts.xml,\!
|
||||||
|
</echo>
|
||||||
|
|
||||||
|
</sequential>
|
||||||
|
</macrodef>
|
||||||
|
|
||||||
|
|
||||||
|
</project>
|
@ -4,7 +4,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>com.minres.rdl</groupId>
|
<groupId>com.minres.rdl</groupId>
|
||||||
<artifactId>com.minres.rdl.parent</artifactId>
|
<artifactId>com.minres.rdl.parent</artifactId>
|
||||||
<version>1.0.0-SNAPSHOT</version>
|
<version>1.4.1</version>
|
||||||
</parent>
|
</parent>
|
||||||
<artifactId>com.minres.rdl.repository</artifactId>
|
<artifactId>com.minres.rdl.repository</artifactId>
|
||||||
<packaging>eclipse-repository</packaging>
|
<packaging>eclipse-repository</packaging>
|
||||||
@ -46,6 +46,96 @@
|
|||||||
</pluginManagement>
|
</pluginManagement>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
|
<profiles>
|
||||||
|
<profile>
|
||||||
|
<!-- Activate this profile to perform the release to Bintray -->
|
||||||
|
<id>release-composite</id>
|
||||||
|
<activation>
|
||||||
|
<activeByDefault>false</activeByDefault>
|
||||||
|
</activation>
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.codehaus.mojo</groupId>
|
||||||
|
<artifactId>exec-maven-plugin</artifactId>
|
||||||
|
<version>3.0.0</version>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<phase>package</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>exec</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
<configuration>
|
||||||
|
<executable>bash</executable>
|
||||||
|
<!-- optional -->
|
||||||
|
<workingDirectory>${software.download.area}</workingDirectory>
|
||||||
|
<arguments>
|
||||||
|
<argument>-c</argument>
|
||||||
|
<argument>if [ -d RDL-Editor-GHP ]; then cd RDL-Editor-GHP; git pull; else git clone -v --branch gh-pages https://github.com/Minres/RDL-Editor.git RDL-Editor-GHP; fi</argument>
|
||||||
|
</arguments>
|
||||||
|
<environmentVariables>
|
||||||
|
<LANG>en_US</LANG>
|
||||||
|
</environmentVariables>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.eclipse.tycho.extras</groupId>
|
||||||
|
<artifactId>tycho-eclipserun-plugin</artifactId>
|
||||||
|
<version>${tycho-version}</version>
|
||||||
|
<configuration>
|
||||||
|
<!-- IMPORTANT: DO NOT split the arg line -->
|
||||||
|
<appArgLine>-application org.eclipse.ant.core.antRunner -buildfile packaging-p2-composite.ant p2.composite.add -Dsite.label="RDL-Editor Software Repository" -Dproject.build.directory=${project.build.directory} -DunqualifiedVersion=${unqualifiedVersion} -Dsoftware.download.area="${software.download.area}/RDL-Editor-GHP/repository"</appArgLine>
|
||||||
|
<repositories>
|
||||||
|
<repository>
|
||||||
|
<id>2022-03</id>
|
||||||
|
<layout>p2</layout>
|
||||||
|
<url>http://download.eclipse.org/releases/2022-03/</url>
|
||||||
|
</repository>
|
||||||
|
</repositories>
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<artifactId>org.eclipse.ant.core</artifactId>
|
||||||
|
<type>eclipse-plugin</type>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<artifactId>org.apache.ant</artifactId>
|
||||||
|
<type>eclipse-plugin</type>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<artifactId>org.eclipse.equinox.p2.repository.tools</artifactId>
|
||||||
|
<type>eclipse-plugin</type>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<artifactId>org.eclipse.equinox.p2.core.feature</artifactId>
|
||||||
|
<type>eclipse-feature</type>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<artifactId>org.eclipse.equinox.p2.extras.feature</artifactId>
|
||||||
|
<type>eclipse-feature</type>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<artifactId>org.eclipse.equinox.ds</artifactId>
|
||||||
|
<type>eclipse-plugin</type>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
</configuration>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>add-p2-composite-repository</id>
|
||||||
|
<phase>package</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>eclipse-run</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
</profile>
|
||||||
|
</profiles>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
</project>
|
</project>
|
||||||
|
24
com.minres.rdl.parent/com.minres.rdl.standalone/.classpath
Normal file
24
com.minres.rdl.parent/com.minres.rdl.standalone/.classpath
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<classpath>
|
||||||
|
<classpathentry kind="src" output="target/classes" path="src/main/java">
|
||||||
|
<attributes>
|
||||||
|
<attribute name="optional" value="true"/>
|
||||||
|
<attribute name="maven.pomderived" value="true"/>
|
||||||
|
</attributes>
|
||||||
|
</classpathentry>
|
||||||
|
<classpathentry kind="src" output="target/test-classes" path="src/test/java">
|
||||||
|
<attributes>
|
||||||
|
<attribute name="optional" value="true"/>
|
||||||
|
<attribute name="maven.pomderived" value="true"/>
|
||||||
|
</attributes>
|
||||||
|
</classpathentry>
|
||||||
|
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
|
||||||
|
<attributes>
|
||||||
|
<attribute name="maven.pomderived" value="true"/>
|
||||||
|
</attributes>
|
||||||
|
</classpathentry>
|
||||||
|
<classpathentry exported="true" kind="con" path="GROOVY_SUPPORT"/>
|
||||||
|
<classpathentry exported="true" kind="con" path="GROOVY_DSL_SUPPORT"/>
|
||||||
|
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-11"/>
|
||||||
|
<classpathentry kind="output" path="target/classes"/>
|
||||||
|
</classpath>
|
24
com.minres.rdl.parent/com.minres.rdl.standalone/.project
Normal file
24
com.minres.rdl.parent/com.minres.rdl.standalone/.project
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<projectDescription>
|
||||||
|
<name>com.minres.rdl.standalone</name>
|
||||||
|
<comment></comment>
|
||||||
|
<projects>
|
||||||
|
</projects>
|
||||||
|
<buildSpec>
|
||||||
|
<buildCommand>
|
||||||
|
<name>org.eclipse.jdt.core.javabuilder</name>
|
||||||
|
<arguments>
|
||||||
|
</arguments>
|
||||||
|
</buildCommand>
|
||||||
|
<buildCommand>
|
||||||
|
<name>org.eclipse.m2e.core.maven2Builder</name>
|
||||||
|
<arguments>
|
||||||
|
</arguments>
|
||||||
|
</buildCommand>
|
||||||
|
</buildSpec>
|
||||||
|
<natures>
|
||||||
|
<nature>org.eclipse.jdt.groovy.core.groovyNature</nature>
|
||||||
|
<nature>org.eclipse.jdt.core.javanature</nature>
|
||||||
|
<nature>org.eclipse.m2e.core.maven2Nature</nature>
|
||||||
|
</natures>
|
||||||
|
</projectDescription>
|
@ -0,0 +1,2 @@
|
|||||||
|
eclipse.preferences.version=1
|
||||||
|
encoding/<project>=UTF-8
|
@ -0,0 +1,11 @@
|
|||||||
|
eclipse.preferences.version=1
|
||||||
|
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
|
||||||
|
org.eclipse.jdt.core.compiler.codegen.targetPlatform=11
|
||||||
|
org.eclipse.jdt.core.compiler.compliance=11
|
||||||
|
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
|
||||||
|
org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
|
||||||
|
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
|
||||||
|
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
|
||||||
|
org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning
|
||||||
|
org.eclipse.jdt.core.compiler.release=enabled
|
||||||
|
org.eclipse.jdt.core.compiler.source=11
|
@ -0,0 +1,2 @@
|
|||||||
|
eclipse.preferences.version=1
|
||||||
|
groovy.compiler.level=25
|
@ -0,0 +1,4 @@
|
|||||||
|
activeProfiles=
|
||||||
|
eclipse.preferences.version=1
|
||||||
|
resolveWorkspaceProjects=true
|
||||||
|
version=1
|
@ -0,0 +1,95 @@
|
|||||||
|
import static groovy.io.FileType.FILES
|
||||||
|
|
||||||
|
import java.nio.file.Files
|
||||||
|
import java.nio.file.Paths
|
||||||
|
import java.util.zip.ZipEntry
|
||||||
|
|
||||||
|
def needed_jars = [
|
||||||
|
/org\.eclipse\.xtext/,
|
||||||
|
/org\.eclipse\.emf\.ecore\.xmi/,
|
||||||
|
/org\.eclipse\.emf\.ecore/,
|
||||||
|
/org\.eclipse\.emf\.common/,
|
||||||
|
/org\.antlr\.runtime/,
|
||||||
|
/com\.google\.inject/,
|
||||||
|
/org\.eclipse\.emf\.mwe\.core/,
|
||||||
|
/org\.apache\.commons\.cli/,
|
||||||
|
/org\.eclipse\.emf\.mwe2\.runtime/,
|
||||||
|
/org\.eclipse\.emf\.mwe\.utils/,
|
||||||
|
/org\.eclipse\.xtext\.util/,
|
||||||
|
/com\.google\.guava/,
|
||||||
|
/javax\.inject/,
|
||||||
|
/org\.eclipse\.xtext\.xbase/,
|
||||||
|
/org\.eclipse\.xtext\.common\.types/,
|
||||||
|
/org\.eclipse\.xtend\.lib/,
|
||||||
|
/org\.eclipse\.xtext\.xbase\.lib/,
|
||||||
|
/org\.eclipse\.xtend\.lib\.macro/,
|
||||||
|
/org\.eclipse\.equinox\.common/,
|
||||||
|
/eclipse-trace/,
|
||||||
|
/groovy-eclipse/,
|
||||||
|
/ivy-2\.5\.0\.jar/,
|
||||||
|
/groovy-3\.0\.\d-indy/,
|
||||||
|
/groovy-templates-3\.0\.\d/,
|
||||||
|
/org\.eclipse\.xtext\.xtext\.generator/,
|
||||||
|
/org\.eclipse\.emf\.codegen\.ecore/,
|
||||||
|
/org\.eclipse\.emf\.codegen/,
|
||||||
|
/org\.eclipse\.emf\.mwe2\.launch/,
|
||||||
|
/org\.eclipse\.emf\.mwe2\.language/,
|
||||||
|
/org\.eclipse\.emf\.mwe2\.lib/,
|
||||||
|
/org\.objectweb\.asm/,
|
||||||
|
/org\.apache\.commons\.logging/,
|
||||||
|
/org\.apache\.log4j/,
|
||||||
|
/com\.ibm\.icu/,
|
||||||
|
/org\.json/,
|
||||||
|
/com\.minres\.rdl/
|
||||||
|
]
|
||||||
|
|
||||||
|
// Collect all jars.
|
||||||
|
def jars = []
|
||||||
|
def root = new File(project.getBasedir(), 'target/classes')
|
||||||
|
def libs = new File(project.getBasedir(), 'target/classes/lib')
|
||||||
|
def meta_inf = new File(project.getBasedir(), 'target/classes/META-INF')
|
||||||
|
|
||||||
|
libs.eachFileRecurse (FILES) { file ->
|
||||||
|
if(file.name =~/org\.codehaus\.groovy_/) { // we need to unpack this one sinc it is already jar in jar
|
||||||
|
println("Unpacking ${file}")
|
||||||
|
def zipFile = new java.util.zip.ZipFile(file)
|
||||||
|
zipFile.entries().findAll {ZipEntry entry -> !entry.directory && entry.name =~/\.jar$/}.each {ZipEntry entry ->
|
||||||
|
def outFile = new File(libs, entry.name.split(/\//)[-1])
|
||||||
|
println "Extracting file ${entry.name} to ${outFile.path} with size ${entry.size}bytes (${entry.compressedSize}bytes)"
|
||||||
|
Files.copy(zipFile.getInputStream(entry), outFile.toPath())
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
libs.eachFileRecurse (FILES) { file ->
|
||||||
|
def fileName = file.name.split("/")[-1]
|
||||||
|
if(needed_jars.find{fileName =~ it}) {
|
||||||
|
println "Adding $file to the included jars"
|
||||||
|
jars << root.toURI().relativize(file.toURI()).toString()
|
||||||
|
} else {
|
||||||
|
file.delete()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
def zipFile = new java.util.zip.ZipFile(new File(project.getBasedir(), 'jar-in-jar-loader.zip'))
|
||||||
|
zipFile.entries().each {ZipEntry it ->
|
||||||
|
def path = Paths.get("${root}/", it.name)
|
||||||
|
if(it.directory){
|
||||||
|
Files.createDirectories(path)
|
||||||
|
} else {
|
||||||
|
def parentDir = path.getParent()
|
||||||
|
if (!Files.exists(parentDir)) {
|
||||||
|
Files.createDirectories(parentDir)
|
||||||
|
}
|
||||||
|
Files.deleteIfExists(path)
|
||||||
|
println "Extracting file ${it.name} to ${path} with size ${it.size}bytes (${it.compressedSize}bytes)"
|
||||||
|
Files.copy(zipFile.getInputStream(it), path)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Write the manifest file.
|
||||||
|
Files.createDirectories( Paths.get(meta_inf.absolutePath))
|
||||||
|
def mf = new File(project.getBasedir(), 'target/classes/META-INF/MANIFEST.MF')
|
||||||
|
mf.write ''
|
||||||
|
mf << 'Manifest-Version: 1.0\n'
|
||||||
|
mf << 'Rsrc-Class-Path: ./ ' + jars.join(' ') + '\n'
|
||||||
|
mf << 'Rsrc-Main-Class: com.minres.rdl.generator.Main\n'
|
||||||
|
mf << 'Main-Class: org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader\n'
|
@ -0,0 +1,5 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<site>
|
||||||
|
<bundle id="com.minres.rdl" version="0.0.0"/>
|
||||||
|
<category-def name="main" label="RDL"/>
|
||||||
|
</site>
|
Binary file not shown.
182
com.minres.rdl.parent/com.minres.rdl.standalone/pom.xml
Normal file
182
com.minres.rdl.parent/com.minres.rdl.standalone/pom.xml
Normal file
@ -0,0 +1,182 @@
|
|||||||
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<parent>
|
||||||
|
<artifactId>com.minres.rdl.parent</artifactId>
|
||||||
|
<groupId>com.minres.rdl</groupId>
|
||||||
|
<version>1.4.1</version>
|
||||||
|
</parent>
|
||||||
|
<artifactId>com.minres.rdl.standalone</artifactId>
|
||||||
|
|
||||||
|
<packaging>eclipse-repository</packaging>
|
||||||
|
<build>
|
||||||
|
<pluginManagement>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.eclipse.m2e</groupId>
|
||||||
|
<artifactId>lifecycle-mapping</artifactId>
|
||||||
|
<version>1.0.0</version>
|
||||||
|
<configuration>
|
||||||
|
<lifecycleMappingMetadata>
|
||||||
|
<pluginExecutions>
|
||||||
|
<pluginExecution>
|
||||||
|
<pluginExecutionFilter>
|
||||||
|
<groupId>
|
||||||
|
org.apache.maven.plugins
|
||||||
|
</groupId>
|
||||||
|
<artifactId>
|
||||||
|
maven-clean-plugin
|
||||||
|
</artifactId>
|
||||||
|
<versionRange>
|
||||||
|
[2.5,)
|
||||||
|
</versionRange>
|
||||||
|
<goals>
|
||||||
|
<goal>clean</goal>
|
||||||
|
</goals>
|
||||||
|
</pluginExecutionFilter>
|
||||||
|
<action>
|
||||||
|
<ignore></ignore>
|
||||||
|
</action>
|
||||||
|
</pluginExecution>
|
||||||
|
</pluginExecutions>
|
||||||
|
</lifecycleMappingMetadata>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</pluginManagement>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.eclipse.tycho</groupId>
|
||||||
|
<artifactId>tycho-p2-repository-plugin</artifactId>
|
||||||
|
<version>${tycho-version}</version>
|
||||||
|
<configuration>
|
||||||
|
<includeAllDependencies>true</includeAllDependencies>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-dependency-plugin</artifactId>
|
||||||
|
<version>3.0.1</version>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>unpack</id>
|
||||||
|
<phase>package</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>unpack</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<artifactItems>
|
||||||
|
<artifactItem>
|
||||||
|
<groupId>org.raisercostin</groupId>
|
||||||
|
<artifactId>eclipse-jarinjarloader</artifactId>
|
||||||
|
<version>1.3</version>
|
||||||
|
<type>jar</type>
|
||||||
|
<overWrite>false</overWrite>
|
||||||
|
<outputDirectory>${project.build.directory}/classes</outputDirectory>
|
||||||
|
</artifactItem>
|
||||||
|
<artifactItem>
|
||||||
|
<groupId>com.minres.rdl</groupId>
|
||||||
|
<artifactId>com.minres.rdl</artifactId>
|
||||||
|
<version>${project.version}</version>
|
||||||
|
<type>jar</type>
|
||||||
|
<overWrite>false</overWrite>
|
||||||
|
<outputDirectory>${project.build.directory}/classes</outputDirectory>
|
||||||
|
</artifactItem>
|
||||||
|
</artifactItems>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-resources-plugin</artifactId>
|
||||||
|
<version>3.0.2</version>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>copy-resources</id>
|
||||||
|
<phase>package</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>copy-resources</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<outputDirectory>${project.build.directory}/classes/lib</outputDirectory>
|
||||||
|
<resources>
|
||||||
|
<resource>
|
||||||
|
<directory>${project.build.directory}/repository/plugins</directory>
|
||||||
|
</resource>
|
||||||
|
</resources>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>com.alexecollins.maven.plugin</groupId>
|
||||||
|
<artifactId>script-maven-plugin</artifactId>
|
||||||
|
<version>1.0.0</version>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<phase>package</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>execute</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<language>groovy</language>
|
||||||
|
<scriptFile>assemble.groovy</scriptFile>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.codehaus.groovy</groupId>
|
||||||
|
<artifactId>groovy-bsf</artifactId>
|
||||||
|
<version>2.4.3</version>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-antrun-plugin</artifactId>
|
||||||
|
<version>1.8</version>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<phase>package</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>run</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<target>
|
||||||
|
<jar manifest="${project.build.directory}/classes/META-INF/MANIFEST.MF"
|
||||||
|
destfile="${project.build.directory}/${project.name}-${project.version}.jar">
|
||||||
|
<fileset dir="${project.build.directory}/classes" />
|
||||||
|
</jar>
|
||||||
|
</target>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
|
||||||
|
<repositories>
|
||||||
|
<repository>
|
||||||
|
<id>jcenter-bintray</id>
|
||||||
|
<name>Bintray JCenter Maven Repository</name>
|
||||||
|
<layout>default</layout>
|
||||||
|
<url>https://jcenter.bintray.com/</url>
|
||||||
|
<releases>
|
||||||
|
<enabled>true</enabled>
|
||||||
|
</releases>
|
||||||
|
<snapshots>
|
||||||
|
<enabled>false</enabled>
|
||||||
|
</snapshots>
|
||||||
|
</repository>
|
||||||
|
</repositories>
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.minres.rdl</groupId>
|
||||||
|
<artifactId>com.minres.rdl</artifactId>
|
||||||
|
<version>${project.version}</version>
|
||||||
|
<type>eclipse-plugin</type>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
</project>
|
@ -1,25 +1,43 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
<?pde version="3.8"?><target name="com.minres.rdl.target" sequenceNumber="3">
|
<?pde version="3.8"?>
|
||||||
<locations>
|
<target name="com.minres.coredsl.target" sequenceNumber="1">
|
||||||
<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="true" type="InstallableUnit">
|
<locations>
|
||||||
<unit id="org.eclipse.emf.mwe2.launcher.feature.group" version="0.0.0"/>
|
<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="true" type="InstallableUnit">
|
||||||
<repository location="http://download.eclipse.org/modeling/emft/mwe/updates/releases/2.9.0/"/>
|
<unit id="org.eclipse.jdt.feature.group" version="0.0.0"/>
|
||||||
</location>
|
<unit id="org.eclipse.platform.feature.group" version="0.0.0"/>
|
||||||
<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="true" type="InstallableUnit">
|
<unit id="org.eclipse.pde.feature.group" version="0.0.0"/>
|
||||||
<unit id="org.eclipse.xtext.sdk.feature.group" version="0.0.0"/>
|
<unit id="org.eclipse.draw2d.feature.group" version="0.0.0"/>
|
||||||
<repository location="http://download.eclipse.org/modeling/tmf/xtext/updates/releases/2.12.0/"/>
|
<unit id="org.eclipse.emf.sdk.feature.group" version="0.0.0"/>
|
||||||
</location>
|
<unit id="org.eclipse.equinox.executable.feature.group" version="0.0.0"/>
|
||||||
<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="true" type="InstallableUnit">
|
<repository location="https://download.eclipse.org/releases/2022-03"/>
|
||||||
<unit id="org.eclipse.equinox.sdk.feature.group" version="0.0.0"/>
|
</location>
|
||||||
<unit id="org.eclipse.jdt.feature.group" version="0.0.0"/>
|
<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="true" type="InstallableUnit">
|
||||||
<unit id="org.eclipse.platform.feature.group" version="0.0.0"/>
|
<unit id="org.eclipse.emf.mwe2.launcher.feature.group" version="0.0.0"/>
|
||||||
<unit id="org.eclipse.pde.feature.group" version="0.0.0"/>
|
<repository location="https://download.eclipse.org/modeling/emft/mwe/updates/releases/2.12.2/"/>
|
||||||
<unit id="org.eclipse.draw2d.feature.group" version="0.0.0"/>
|
</location>
|
||||||
<unit id="org.eclipse.emf.sdk.feature.group" version="0.0.0"/>
|
<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="true" type="InstallableUnit">
|
||||||
<unit id="org.eclipse.xpand" version="0.0.0"/>
|
<unit id="org.eclipse.xtext.sdk.feature.group" version="0.0.0"/>
|
||||||
<unit id="org.eclipse.xtend" version="0.0.0"/>
|
<repository location="https://download.eclipse.org/modeling/tmf/xtext/updates/releases/2.26.0/"/>
|
||||||
<unit id="org.eclipse.xtend.typesystem.emf" version="0.0.0"/>
|
</location>
|
||||||
<repository location="http://download.eclipse.org/releases/neon/201606221000/"/>
|
<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="true" type="InstallableUnit">
|
||||||
</location>
|
<unit id="com.google.gson" version="2.8.9.v20220111-1409"/>
|
||||||
</locations>
|
<unit id="com.google.inject" version="5.0.1.v20210324-2015"/>
|
||||||
|
<unit id="javax.inject" version="1.0.0.v20091030"/>
|
||||||
|
<unit id="org.antlr.runtime" version="3.2.0.v201101311130"/>
|
||||||
|
<unit id="org.junit" version="4.13.2.v20211018-1956"/>
|
||||||
|
<unit id="org.apiguardian" version="1.1.2.v20211018-1956"/>
|
||||||
|
<unit id="org.junit.jupiter.api" version="5.8.1.v20211018-1956"/>
|
||||||
|
<unit id="org.junit.jupiter.engine" version="5.8.1.v20211018-1956"/>
|
||||||
|
<unit id="org.junit.platform.commons" version="1.8.1.v20211018-1956"/>
|
||||||
|
<unit id="org.junit.platform.engine" version="1.8.1.v20211018-1956"/>
|
||||||
|
<unit id="org.junit.platform.launcher" version="1.8.1.v20211018-1956"/>
|
||||||
|
<unit id="org.junit.platform.runner" version="1.8.1.v20211018-1956"/>
|
||||||
|
<unit id="org.junit.platform.suite.commons" version="1.8.1.v20211018-1956"/>
|
||||||
|
<unit id="org.opentest4j" version="1.2.0.v20211018-1956"/>
|
||||||
|
<unit id="org.objectweb.asm" version="9.2.0.v20210813-1119"/>
|
||||||
|
<unit id="org.objectweb.asm.tree" version="9.2.0.v20210813-1119"/>
|
||||||
|
<unit id="io.github.classgraph" version="4.8.138.v20211212-1642"/>
|
||||||
|
<repository location="https://download.eclipse.org/tools/orbit/downloads/2022-03"/>
|
||||||
|
</location>
|
||||||
|
</locations>
|
||||||
</target>
|
</target>
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>com.minres.rdl</groupId>
|
<groupId>com.minres.rdl</groupId>
|
||||||
<artifactId>com.minres.rdl.parent</artifactId>
|
<artifactId>com.minres.rdl.parent</artifactId>
|
||||||
<version>1.0.0-SNAPSHOT</version>
|
<version>1.4.1</version>
|
||||||
</parent>
|
</parent>
|
||||||
<artifactId>com.minres.rdl.target</artifactId>
|
<artifactId>com.minres.rdl.target</artifactId>
|
||||||
<packaging>eclipse-target-definition</packaging>
|
<packaging>eclipse-target-definition</packaging>
|
||||||
|
@ -3,7 +3,12 @@
|
|||||||
<classpathentry kind="src" path="src"/>
|
<classpathentry kind="src" path="src"/>
|
||||||
<classpathentry kind="src" path="src-gen"/>
|
<classpathentry kind="src" path="src-gen"/>
|
||||||
<classpathentry kind="src" path="xtend-gen"/>
|
<classpathentry kind="src" path="xtend-gen"/>
|
||||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
|
<classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/4"/>
|
||||||
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
|
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
|
||||||
|
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-11">
|
||||||
|
<attributes>
|
||||||
|
<attribute name="module" value="true"/>
|
||||||
|
</attributes>
|
||||||
|
</classpathentry>
|
||||||
<classpathentry kind="output" path="target/classes"/>
|
<classpathentry kind="output" path="target/classes"/>
|
||||||
</classpath>
|
</classpath>
|
||||||
|
1
com.minres.rdl.parent/com.minres.rdl.tests/.gitignore
vendored
Normal file
1
com.minres.rdl.parent/com.minres.rdl.tests/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
/xtend-gen/
|
@ -1,7 +1,10 @@
|
|||||||
eclipse.preferences.version=1
|
eclipse.preferences.version=1
|
||||||
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
|
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
|
||||||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
|
org.eclipse.jdt.core.compiler.codegen.targetPlatform=11
|
||||||
org.eclipse.jdt.core.compiler.compliance=1.8
|
org.eclipse.jdt.core.compiler.compliance=11
|
||||||
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
|
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
|
||||||
|
org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
|
||||||
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
|
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
|
||||||
org.eclipse.jdt.core.compiler.source=1.8
|
org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning
|
||||||
|
org.eclipse.jdt.core.compiler.release=enabled
|
||||||
|
org.eclipse.jdt.core.compiler.source=11
|
||||||
|
@ -1,21 +1,15 @@
|
|||||||
Manifest-Version: 1.0
|
Manifest-Version: 1.0
|
||||||
|
Automatic-Module-Name: com.minres.rdl.tests
|
||||||
Bundle-ManifestVersion: 2
|
Bundle-ManifestVersion: 2
|
||||||
Bundle-Name: com.minres.rdl.tests
|
Bundle-Name: com.minres.rdl.tests
|
||||||
Bundle-Vendor: My Company
|
Bundle-Vendor: My Company
|
||||||
Bundle-Version: 1.0.0.qualifier
|
Bundle-Version: 1.4.1
|
||||||
Bundle-SymbolicName: com.minres.rdl.tests; singleton:=true
|
Bundle-SymbolicName: com.minres.rdl.tests; singleton:=true
|
||||||
Bundle-ActivationPolicy: lazy
|
Bundle-ActivationPolicy: lazy
|
||||||
Require-Bundle: com.minres.rdl,
|
Require-Bundle: com.minres.rdl,
|
||||||
org.junit;bundle-version="4.12.0",
|
org.junit.jupiter.api;bundle-version="[5.1.0,6.0.0)",
|
||||||
org.eclipse.xtext.testing,
|
org.eclipse.xtext.testing,
|
||||||
org.eclipse.xtext.xbase.testing,
|
org.eclipse.xtext.xbase.testing,
|
||||||
org.eclipse.xtext.xbase.lib
|
org.eclipse.xtext.xbase.lib;bundle-version="2.14.0"
|
||||||
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
|
Bundle-RequiredExecutionEnvironment: JavaSE-11
|
||||||
Export-Package: com.minres.rdl.tests;x-internal=true
|
Export-Package: com.minres.rdl.tests;x-internal=true
|
||||||
Import-Package: org.hamcrest.core,
|
|
||||||
org.junit;version="4.5.0",
|
|
||||||
org.junit.runners.model;version="4.5.0",
|
|
||||||
org.junit.runner;version="4.5.0",
|
|
||||||
org.junit.runners;version="4.5.0",
|
|
||||||
org.junit.runner.manipulation;version="4.5.0",
|
|
||||||
org.junit.runner.notification;version="4.5.0"
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>com.minres.rdl</groupId>
|
<groupId>com.minres.rdl</groupId>
|
||||||
<artifactId>com.minres.rdl.parent</artifactId>
|
<artifactId>com.minres.rdl.parent</artifactId>
|
||||||
<version>1.0.0-SNAPSHOT</version>
|
<version>1.4.1</version>
|
||||||
</parent>
|
</parent>
|
||||||
<artifactId>com.minres.rdl.tests</artifactId>
|
<artifactId>com.minres.rdl.tests</artifactId>
|
||||||
<packaging>eclipse-test-plugin</packaging>
|
<packaging>eclipse-test-plugin</packaging>
|
||||||
@ -18,7 +18,7 @@
|
|||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.eclipse.tycho</groupId>
|
<groupId>org.eclipse.tycho</groupId>
|
||||||
<artifactId>tycho-surefire-plugin</artifactId>
|
<artifactId>tycho-surefire-plugin</artifactId>
|
||||||
<version>${tycho-version}</version>
|
<!-- <version>${tycho-version}</version> -->
|
||||||
<configuration>
|
<configuration>
|
||||||
<failIfNoTests>false</failIfNoTests>
|
<failIfNoTests>false</failIfNoTests>
|
||||||
</configuration>
|
</configuration>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* generated by Xtext 2.12.0
|
* generated by Xtext 2.26.0
|
||||||
*/
|
*/
|
||||||
package com.minres.rdl.tests;
|
package com.minres.rdl.tests;
|
||||||
|
|
||||||
@ -25,7 +25,6 @@ public class RDLInjectorProvider implements IInjectorProvider, IRegistryConfigur
|
|||||||
@Override
|
@Override
|
||||||
public Injector getInjector() {
|
public Injector getInjector() {
|
||||||
if (injector == null) {
|
if (injector == null) {
|
||||||
stateBeforeInjectorCreation = GlobalRegistries.makeCopyOfGlobalState();
|
|
||||||
this.injector = internalCreateInjector();
|
this.injector = internalCreateInjector();
|
||||||
stateAfterInjectorCreation = GlobalRegistries.makeCopyOfGlobalState();
|
stateAfterInjectorCreation = GlobalRegistries.makeCopyOfGlobalState();
|
||||||
}
|
}
|
||||||
@ -56,11 +55,15 @@ public class RDLInjectorProvider implements IInjectorProvider, IRegistryConfigur
|
|||||||
@Override
|
@Override
|
||||||
public void restoreRegistry() {
|
public void restoreRegistry() {
|
||||||
stateBeforeInjectorCreation.restoreGlobalState();
|
stateBeforeInjectorCreation.restoreGlobalState();
|
||||||
|
stateBeforeInjectorCreation = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setupRegistry() {
|
public void setupRegistry() {
|
||||||
|
stateBeforeInjectorCreation = GlobalRegistries.makeCopyOfGlobalState();
|
||||||
|
if (injector == null) {
|
||||||
getInjector();
|
getInjector();
|
||||||
|
}
|
||||||
stateAfterInjectorCreation.restoreGlobalState();
|
stateAfterInjectorCreation.restoreGlobalState();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* generated by Xtext 2.12.0
|
* generated by Xtext 2.14.0
|
||||||
*/
|
*/
|
||||||
package com.minres.rdl.tests
|
package com.minres.rdl.tests
|
||||||
|
|
||||||
@ -21,9 +21,53 @@ class RDLParsingTest {
|
|||||||
@Test
|
@Test
|
||||||
def void loadModel() {
|
def void loadModel() {
|
||||||
val result = parseHelper.parse('''
|
val result = parseHelper.parse('''
|
||||||
Hello Xtext!
|
regfile uart_regs {
|
||||||
|
reg {
|
||||||
|
name="txdata";
|
||||||
|
desc="Transmit data register";
|
||||||
|
field {} data[7:0];
|
||||||
|
field {} full[31:31];
|
||||||
|
} txdata @0x00;
|
||||||
|
reg {
|
||||||
|
name="rxdata";
|
||||||
|
desc="Receive data register";
|
||||||
|
field {} data[7:0];
|
||||||
|
field {} empty[31:31];
|
||||||
|
}rxdata @0x04;
|
||||||
|
reg {
|
||||||
|
name="txctrl";
|
||||||
|
desc="Transmit control register";
|
||||||
|
field {} txen[1];
|
||||||
|
field {} nstop[1];
|
||||||
|
field {} txcnt[18:16];
|
||||||
|
}txctrl @0x08;
|
||||||
|
reg {
|
||||||
|
name="rxctrl";
|
||||||
|
desc="Receive control register";
|
||||||
|
field {} rxen[1];
|
||||||
|
field {} rxcnt[18:16];
|
||||||
|
}rxctrl @0x0C;
|
||||||
|
reg {
|
||||||
|
name="ie";
|
||||||
|
desc="UART interrupt enable";
|
||||||
|
field{} txwm[1];
|
||||||
|
field{} rxwm[1];
|
||||||
|
}ie @0x10;
|
||||||
|
reg {
|
||||||
|
name="ip";
|
||||||
|
desc="UART Interrupt pending";
|
||||||
|
field{} txwm[1];
|
||||||
|
field{} rxwm[1];
|
||||||
|
} ip @0x14;
|
||||||
|
reg {
|
||||||
|
name="div";
|
||||||
|
desc="Baud rate divisor";
|
||||||
|
field{} div[16];
|
||||||
|
} div @0x18;
|
||||||
|
};
|
||||||
''')
|
''')
|
||||||
Assert.assertNotNull(result)
|
Assert.assertNotNull(result)
|
||||||
Assert.assertTrue(result.eResource.errors.isEmpty)
|
val errors = result.eResource.errors
|
||||||
|
Assert.assertTrue('''Unexpected errors: «errors.join(", ")»''', errors.isEmpty)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,38 +0,0 @@
|
|||||||
/**
|
|
||||||
* generated by Xtext 2.12.0
|
|
||||||
*/
|
|
||||||
package com.minres.rdl.tests;
|
|
||||||
|
|
||||||
import com.google.inject.Inject;
|
|
||||||
import com.minres.rdl.rdl.Root;
|
|
||||||
import com.minres.rdl.tests.RDLInjectorProvider;
|
|
||||||
import org.eclipse.xtend2.lib.StringConcatenation;
|
|
||||||
import org.eclipse.xtext.testing.InjectWith;
|
|
||||||
import org.eclipse.xtext.testing.XtextRunner;
|
|
||||||
import org.eclipse.xtext.testing.util.ParseHelper;
|
|
||||||
import org.eclipse.xtext.xbase.lib.Exceptions;
|
|
||||||
import org.junit.Assert;
|
|
||||||
import org.junit.Test;
|
|
||||||
import org.junit.runner.RunWith;
|
|
||||||
|
|
||||||
@RunWith(XtextRunner.class)
|
|
||||||
@InjectWith(RDLInjectorProvider.class)
|
|
||||||
@SuppressWarnings("all")
|
|
||||||
public class RDLParsingTest {
|
|
||||||
@Inject
|
|
||||||
private ParseHelper<Root> parseHelper;
|
|
||||||
|
|
||||||
@Test
|
|
||||||
public void loadModel() {
|
|
||||||
try {
|
|
||||||
StringConcatenation _builder = new StringConcatenation();
|
|
||||||
_builder.append("Hello Xtext!");
|
|
||||||
_builder.newLine();
|
|
||||||
final Root result = this.parseHelper.parse(_builder);
|
|
||||||
Assert.assertNotNull(result);
|
|
||||||
Assert.assertTrue(result.eResource().getErrors().isEmpty());
|
|
||||||
} catch (Throwable _e) {
|
|
||||||
throw Exceptions.sneakyThrow(_e);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -3,7 +3,8 @@
|
|||||||
<classpathentry kind="src" path="src"/>
|
<classpathentry kind="src" path="src"/>
|
||||||
<classpathentry kind="src" path="src-gen"/>
|
<classpathentry kind="src" path="src-gen"/>
|
||||||
<classpathentry kind="src" path="xtend-gen"/>
|
<classpathentry kind="src" path="xtend-gen"/>
|
||||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
|
<classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/4"/>
|
||||||
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
|
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
|
||||||
|
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-11"/>
|
||||||
<classpathentry kind="output" path="target/classes"/>
|
<classpathentry kind="output" path="target/classes"/>
|
||||||
</classpath>
|
</classpath>
|
||||||
|
1
com.minres.rdl.parent/com.minres.rdl.ui.tests/.gitignore
vendored
Normal file
1
com.minres.rdl.parent/com.minres.rdl.ui.tests/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
/xtend-gen/
|
@ -1,7 +1,10 @@
|
|||||||
eclipse.preferences.version=1
|
eclipse.preferences.version=1
|
||||||
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
|
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
|
||||||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
|
org.eclipse.jdt.core.compiler.codegen.targetPlatform=11
|
||||||
org.eclipse.jdt.core.compiler.compliance=1.8
|
org.eclipse.jdt.core.compiler.compliance=11
|
||||||
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
|
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
|
||||||
|
org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
|
||||||
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
|
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
|
||||||
org.eclipse.jdt.core.compiler.source=1.8
|
org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning
|
||||||
|
org.eclipse.jdt.core.compiler.release=enabled
|
||||||
|
org.eclipse.jdt.core.compiler.source=11
|
||||||
|
@ -1,24 +1,18 @@
|
|||||||
Manifest-Version: 1.0
|
Manifest-Version: 1.0
|
||||||
|
Automatic-Module-Name: com.minres.rdl.ui.tests
|
||||||
Bundle-ManifestVersion: 2
|
Bundle-ManifestVersion: 2
|
||||||
Bundle-Name: com.minres.rdl.ui.tests
|
Bundle-Name: com.minres.rdl.ui.tests
|
||||||
Bundle-Vendor: My Company
|
Bundle-Vendor: My Company
|
||||||
Bundle-Version: 1.0.0.qualifier
|
Bundle-Version: 1.4.1
|
||||||
Bundle-SymbolicName: com.minres.rdl.ui.tests; singleton:=true
|
Bundle-SymbolicName: com.minres.rdl.ui.tests; singleton:=true
|
||||||
Bundle-ActivationPolicy: lazy
|
Bundle-ActivationPolicy: lazy
|
||||||
Require-Bundle: com.minres.rdl.ui,
|
Require-Bundle: com.minres.rdl.ui,
|
||||||
org.junit;bundle-version="4.12.0",
|
org.junit.jupiter.api;bundle-version="[5.1.0,6.0.0)",
|
||||||
org.eclipse.xtext.testing,
|
org.eclipse.xtext.testing,
|
||||||
org.eclipse.xtext.xbase.testing,
|
org.eclipse.xtext.xbase.testing,
|
||||||
org.eclipse.xtext.junit4,
|
|
||||||
org.eclipse.xtext.xbase.junit,
|
org.eclipse.xtext.xbase.junit,
|
||||||
org.eclipse.core.runtime,
|
org.eclipse.core.runtime,
|
||||||
|
org.eclipse.xtext.ui.testing,
|
||||||
org.eclipse.ui.workbench;resolution:=optional
|
org.eclipse.ui.workbench;resolution:=optional
|
||||||
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
|
Bundle-RequiredExecutionEnvironment: JavaSE-11
|
||||||
Export-Package: com.minres.rdl.ui.tests;x-internal=true
|
Export-Package: com.minres.rdl.ui.tests;x-internal=true
|
||||||
Import-Package: org.hamcrest.core,
|
|
||||||
org.junit;version="4.5.0",
|
|
||||||
org.junit.runners.model;version="4.5.0",
|
|
||||||
org.junit.runner;version="4.5.0",
|
|
||||||
org.junit.runners;version="4.5.0",
|
|
||||||
org.junit.runner.manipulation;version="4.5.0",
|
|
||||||
org.junit.runner.notification;version="4.5.0"
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>com.minres.rdl</groupId>
|
<groupId>com.minres.rdl</groupId>
|
||||||
<artifactId>com.minres.rdl.parent</artifactId>
|
<artifactId>com.minres.rdl.parent</artifactId>
|
||||||
<version>1.0.0-SNAPSHOT</version>
|
<version>1.4.1</version>
|
||||||
</parent>
|
</parent>
|
||||||
<artifactId>com.minres.rdl.ui.tests</artifactId>
|
<artifactId>com.minres.rdl.ui.tests</artifactId>
|
||||||
<packaging>eclipse-test-plugin</packaging>
|
<packaging>eclipse-test-plugin</packaging>
|
||||||
@ -18,45 +18,12 @@
|
|||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.eclipse.tycho</groupId>
|
<groupId>org.eclipse.tycho</groupId>
|
||||||
<artifactId>tycho-surefire-plugin</artifactId>
|
<artifactId>tycho-surefire-plugin</artifactId>
|
||||||
<version>${tycho-version}</version>
|
|
||||||
<configuration>
|
<configuration>
|
||||||
<failIfNoTests>false</failIfNoTests>
|
<failIfNoTests>false</failIfNoTests>
|
||||||
<useUIHarness>true</useUIHarness>
|
<useUIHarness>true</useUIHarness>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
|
||||||
<groupId>org.eclipse.tycho</groupId>
|
|
||||||
<artifactId>target-platform-configuration</artifactId>
|
|
||||||
<configuration>
|
|
||||||
<dependency-resolution>
|
|
||||||
<extraRequirements>
|
|
||||||
<!-- to get the org.eclipse.osgi.compatibility.state plugin
|
|
||||||
if the target platform is Luna or later.
|
|
||||||
(backward compatible with kepler and previous versions)
|
|
||||||
see https://bugs.eclipse.org/bugs/show_bug.cgi?id=492149 -->
|
|
||||||
<requirement>
|
|
||||||
<type>eclipse-feature</type>
|
|
||||||
<id>org.eclipse.rcp</id>
|
|
||||||
<versionRange>0.0.0</versionRange>
|
|
||||||
</requirement>
|
|
||||||
</extraRequirements>
|
|
||||||
</dependency-resolution>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
<profiles>
|
|
||||||
<profile>
|
|
||||||
<id>testing-on-mac</id>
|
|
||||||
<activation>
|
|
||||||
<os>
|
|
||||||
<family>mac</family>
|
|
||||||
</os>
|
|
||||||
</activation>
|
|
||||||
<properties>
|
|
||||||
<tycho.testArgLine>-XstartOnFirstThread</tycho.testArgLine>
|
|
||||||
</properties>
|
|
||||||
</profile>
|
|
||||||
</profiles>
|
|
||||||
</project>
|
</project>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* generated by Xtext 2.12.0
|
* generated by Xtext 2.26.0
|
||||||
*/
|
*/
|
||||||
package com.minres.rdl.ui.tests;
|
package com.minres.rdl.ui.tests;
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
<classpathentry kind="src" path="src"/>
|
<classpathentry kind="src" path="src"/>
|
||||||
<classpathentry kind="src" path="src-gen"/>
|
<classpathentry kind="src" path="src-gen"/>
|
||||||
<classpathentry kind="src" path="xtend-gen"/>
|
<classpathentry kind="src" path="xtend-gen"/>
|
||||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
|
|
||||||
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
|
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
|
||||||
|
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-11"/>
|
||||||
<classpathentry kind="output" path="target/classes"/>
|
<classpathentry kind="output" path="target/classes"/>
|
||||||
</classpath>
|
</classpath>
|
||||||
|
2
com.minres.rdl.parent/com.minres.rdl.ui/.gitignore
vendored
Normal file
2
com.minres.rdl.parent/com.minres.rdl.ui/.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
/plugin.xml_gen
|
||||||
|
/xtend-gen/
|
@ -1,7 +1,10 @@
|
|||||||
eclipse.preferences.version=1
|
eclipse.preferences.version=1
|
||||||
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
|
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
|
||||||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
|
org.eclipse.jdt.core.compiler.codegen.targetPlatform=11
|
||||||
org.eclipse.jdt.core.compiler.compliance=1.8
|
org.eclipse.jdt.core.compiler.compliance=11
|
||||||
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
|
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
|
||||||
|
org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
|
||||||
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
|
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
|
||||||
org.eclipse.jdt.core.compiler.source=1.8
|
org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning
|
||||||
|
org.eclipse.jdt.core.compiler.release=enabled
|
||||||
|
org.eclipse.jdt.core.compiler.source=11
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
Manifest-Version: 1.0
|
Manifest-Version: 1.0
|
||||||
|
Automatic-Module-Name: com.minres.rdl.ui
|
||||||
Bundle-ManifestVersion: 2
|
Bundle-ManifestVersion: 2
|
||||||
Bundle-Name: com.minres.rdl.ui
|
Bundle-Name: com.minres.rdl.ui
|
||||||
Bundle-Vendor: My Company
|
Bundle-Vendor: MINRES Technologies GmbH
|
||||||
Bundle-Version: 1.0.0.qualifier
|
Bundle-Version: 1.4.1
|
||||||
Bundle-SymbolicName: com.minres.rdl.ui; singleton:=true
|
Bundle-SymbolicName: com.minres.rdl.ui; singleton:=true
|
||||||
Bundle-ActivationPolicy: lazy
|
Bundle-ActivationPolicy: lazy
|
||||||
Require-Bundle: com.minres.rdl,
|
Require-Bundle: com.minres.rdl,
|
||||||
@ -15,11 +16,17 @@ Require-Bundle: com.minres.rdl,
|
|||||||
org.eclipse.ui,
|
org.eclipse.ui,
|
||||||
org.eclipse.compare,
|
org.eclipse.compare,
|
||||||
org.eclipse.xtext.builder,
|
org.eclipse.xtext.builder,
|
||||||
org.eclipse.xtend.lib;resolution:=optional,
|
org.eclipse.xtext.xbase.lib;bundle-version="2.14.0",
|
||||||
org.eclipse.xtext.xbase.lib
|
org.eclipse.xtend.lib;bundle-version="2.14.0";resolution:=optional,
|
||||||
|
org.eclipse.core.runtime,
|
||||||
|
org.eclipse.core.resources,
|
||||||
|
org.eclipse.ui.forms,
|
||||||
|
org.eclipse.jdt.core,
|
||||||
|
org.eclipse.pde.core
|
||||||
Import-Package: org.apache.log4j
|
Import-Package: org.apache.log4j
|
||||||
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
|
Bundle-RequiredExecutionEnvironment: JavaSE-11
|
||||||
Export-Package: com.minres.rdl.ui.internal,
|
Export-Package: com.minres.rdl.ui.internal,
|
||||||
|
com.minres.rdl.ui.contentassist,
|
||||||
com.minres.rdl.ui.quickfix,
|
com.minres.rdl.ui.quickfix,
|
||||||
com.minres.rdl.ui.contentassist
|
com.minres.rdl.ui.wizard
|
||||||
Bundle-Activator: com.minres.rdl.ui.internal.RdlActivator
|
Bundle-Activator: com.minres.rdl.ui.internal.RdlActivator
|
||||||
|
@ -3,5 +3,6 @@ source.. = src/,\
|
|||||||
xtend-gen/
|
xtend-gen/
|
||||||
bin.includes = .,\
|
bin.includes = .,\
|
||||||
META-INF/,\
|
META-INF/,\
|
||||||
plugin.xml
|
plugin.xml,\
|
||||||
|
icons/
|
||||||
bin.excludes = **/*.xtend
|
bin.excludes = **/*.xtend
|
||||||
|
BIN
com.minres.rdl.parent/com.minres.rdl.ui/icons/new_RDL_proj.gif
Normal file
BIN
com.minres.rdl.parent/com.minres.rdl.ui/icons/new_RDL_proj.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.7 KiB |
Binary file not shown.
After Width: | Height: | Size: 493 B |
@ -97,6 +97,12 @@
|
|||||||
name="Templates">
|
name="Templates">
|
||||||
<keywordReference id="com.minres.rdl.ui.keyword_RDL"/>
|
<keywordReference id="com.minres.rdl.ui.keyword_RDL"/>
|
||||||
</page>
|
</page>
|
||||||
|
<page category="com.minres.rdl.RDL"
|
||||||
|
class="com.minres.rdl.ui.RDLExecutableExtensionFactory:com.minres.rdl.ui.preferences.RdlPreferencePage"
|
||||||
|
id="com.minres.rdl.RDL.preferences"
|
||||||
|
name="Output Configuration">
|
||||||
|
<keywordReference id="com.minres.rdl.ui.keyword_RDL"/>
|
||||||
|
</page>
|
||||||
</extension>
|
</extension>
|
||||||
<extension
|
<extension
|
||||||
point="org.eclipse.ui.propertyPages">
|
point="org.eclipse.ui.propertyPages">
|
||||||
@ -204,6 +210,15 @@
|
|||||||
</activeWhen>
|
</activeWhen>
|
||||||
</handler>
|
</handler>
|
||||||
</extension>
|
</extension>
|
||||||
|
<extension point="org.eclipse.core.contenttype.contentTypes">
|
||||||
|
<content-type
|
||||||
|
base-type="org.eclipse.core.runtime.text"
|
||||||
|
file-extensions="rdl"
|
||||||
|
id="com.minres.rdl.RDL.contenttype"
|
||||||
|
name="RDL File"
|
||||||
|
priority="normal">
|
||||||
|
</content-type>
|
||||||
|
</extension>
|
||||||
<!-- adding resource factories -->
|
<!-- adding resource factories -->
|
||||||
<extension
|
<extension
|
||||||
point="org.eclipse.emf.ecore.extension_parser">
|
point="org.eclipse.emf.ecore.extension_parser">
|
||||||
@ -240,10 +255,14 @@
|
|||||||
<super type="org.eclipse.xtext.ui.check.expensive"/>
|
<super type="org.eclipse.xtext.ui.check.expensive"/>
|
||||||
<persistent value="true"/>
|
<persistent value="true"/>
|
||||||
</extension>
|
</extension>
|
||||||
<extension point="org.eclipse.xtext.builder.participant">
|
<extension point="org.eclipse.ui.preferencePages">
|
||||||
<participant
|
<page
|
||||||
class="com.minres.rdl.ui.RDLExecutableExtensionFactory:org.eclipse.xtext.builder.IXtextBuilderParticipant"
|
category="com.minres.rdl.RDL"
|
||||||
fileExtensions="rdl"/>
|
class="com.minres.rdl.ui.RDLExecutableExtensionFactory:org.eclipse.xtext.ui.validation.ValidatorPreferencePage"
|
||||||
|
id="com.minres.rdl.RDL.validator.preferencePage"
|
||||||
|
name="Errors/Warnings">
|
||||||
|
<keywordReference id="com.minres.rdl.ui.keyword_RDL"/>
|
||||||
|
</page>
|
||||||
</extension>
|
</extension>
|
||||||
<extension point="org.eclipse.ui.preferencePages">
|
<extension point="org.eclipse.ui.preferencePages">
|
||||||
<page
|
<page
|
||||||
@ -388,12 +407,18 @@
|
|||||||
class="com.minres.rdl.ui.RDLExecutableExtensionFactory:org.eclipse.xtext.ui.compare.InjectableViewerCreator"
|
class="com.minres.rdl.ui.RDLExecutableExtensionFactory:org.eclipse.xtext.ui.compare.InjectableViewerCreator"
|
||||||
extensions="rdl">
|
extensions="rdl">
|
||||||
</viewer>
|
</viewer>
|
||||||
|
<contentTypeBinding
|
||||||
|
contentTypeId="com.minres.rdl.RDL.contenttype"
|
||||||
|
contentViewerId="com.minres.rdl.RDL.compare.contentViewers" />
|
||||||
</extension>
|
</extension>
|
||||||
<extension point="org.eclipse.compare.contentMergeViewers">
|
<extension point="org.eclipse.compare.contentMergeViewers">
|
||||||
<viewer id="com.minres.rdl.RDL.compare.contentMergeViewers"
|
<viewer id="com.minres.rdl.RDL.compare.contentMergeViewers"
|
||||||
class="com.minres.rdl.ui.RDLExecutableExtensionFactory:org.eclipse.xtext.ui.compare.InjectableViewerCreator"
|
class="com.minres.rdl.ui.RDLExecutableExtensionFactory:org.eclipse.xtext.ui.compare.InjectableViewerCreator"
|
||||||
extensions="rdl" label="RDL Compare">
|
extensions="rdl" label="RDL Compare">
|
||||||
</viewer>
|
</viewer>
|
||||||
|
<contentTypeBinding
|
||||||
|
contentTypeId="com.minres.rdl.RDL.contenttype"
|
||||||
|
contentMergeViewerId="com.minres.rdl.RDL.compare.contentMergeViewers" />
|
||||||
</extension>
|
</extension>
|
||||||
<extension point="org.eclipse.ui.editors.documentProviders">
|
<extension point="org.eclipse.ui.editors.documentProviders">
|
||||||
<provider id="com.minres.rdl.RDL.editors.documentProviders"
|
<provider id="com.minres.rdl.RDL.editors.documentProviders"
|
||||||
@ -407,4 +432,79 @@
|
|||||||
type="text">
|
type="text">
|
||||||
</fileTypes>
|
</fileTypes>
|
||||||
</extension>
|
</extension>
|
||||||
|
<extension
|
||||||
|
point="org.eclipse.ui.newWizards">
|
||||||
|
<category id="com.minres.category" name="MINRES">
|
||||||
|
</category>
|
||||||
|
<wizard
|
||||||
|
category="com.minres.category"
|
||||||
|
class="com.minres.rdl.ui.RDLExecutableExtensionFactory:org.eclipse.xtext.ui.wizard.template.TemplateNewProjectWizard"
|
||||||
|
id="com.minres.rdl.ui.wizard.RDLNewProjectWizard"
|
||||||
|
name="RDL Project"
|
||||||
|
icon="icons/new_RDL_proj.gif"
|
||||||
|
project="true">
|
||||||
|
</wizard>
|
||||||
|
</extension>
|
||||||
|
<extension
|
||||||
|
point="org.eclipse.xtext.ui.projectTemplate">
|
||||||
|
<projectTemplateProvider
|
||||||
|
class="com.minres.rdl.ui.wizard.RDLProjectTemplateProvider"
|
||||||
|
grammarName="com.minres.rdl.RDL">
|
||||||
|
</projectTemplateProvider>
|
||||||
|
</extension>
|
||||||
|
<extension
|
||||||
|
point="org.eclipse.ui.perspectiveExtensions">
|
||||||
|
<perspectiveExtension targetID="org.eclipse.ui.resourcePerspective">
|
||||||
|
<newWizardShortcut id="com.minres.rdl.ui.wizard.RDLNewProjectWizard"/>
|
||||||
|
</perspectiveExtension>
|
||||||
|
</extension>
|
||||||
|
<!-- <extension point="org.eclipse.xtext.builder.participant">
|
||||||
|
<participant
|
||||||
|
class="com.minres.rdl.ui.RDLExecutableExtensionFactory:org.eclipse.xtext.builder.IXtextBuilderParticipant"
|
||||||
|
fileExtensions="rdl"/>
|
||||||
|
</extension>-->
|
||||||
|
<extension
|
||||||
|
point="org.eclipse.ui.handlers">
|
||||||
|
<handler
|
||||||
|
class="com.minres.rdl.ui.RDLExecutableExtensionFactory:com.minres.rdl.ui.builder.GenerationHandler"
|
||||||
|
commandId="com.minres.rdl.ui.handler.GenerationCommand">
|
||||||
|
</handler>
|
||||||
|
|
||||||
|
</extension>
|
||||||
|
<extension
|
||||||
|
point="org.eclipse.ui.commands">
|
||||||
|
<command name="Generate Code from RDL"
|
||||||
|
id="com.minres.rdl.ui.handler.GenerationCommand">
|
||||||
|
</command>
|
||||||
|
</extension>
|
||||||
|
<extension point="org.eclipse.ui.menus">
|
||||||
|
<menuContribution locationURI="popup:org.eclipse.ui.navigator.ProjectExplorer#PopupMenu">
|
||||||
|
<command
|
||||||
|
commandId="com.minres.rdl.ui.handler.GenerationCommand"
|
||||||
|
style="push">
|
||||||
|
<visibleWhen
|
||||||
|
checkEnabled="false">
|
||||||
|
<iterate>
|
||||||
|
<adapt type="org.eclipse.core.resources.IResource">
|
||||||
|
<test property="org.eclipse.core.resources.name"
|
||||||
|
value="*.rdl"/>
|
||||||
|
</adapt>
|
||||||
|
</iterate>
|
||||||
|
</visibleWhen>
|
||||||
|
</command>
|
||||||
|
</menuContribution>
|
||||||
|
</extension>
|
||||||
|
<extension point="org.eclipse.ui.menus">
|
||||||
|
<menuContribution locationURI="popup:#TextEditorContext?after=additions">
|
||||||
|
<command
|
||||||
|
commandId="com.minres.rdl.ui.handler.GenerationCommand"
|
||||||
|
style="push">
|
||||||
|
<visibleWhen checkEnabled="false">
|
||||||
|
<reference
|
||||||
|
definitionId="com.minres.rdl.RDL.Editor.opened">
|
||||||
|
</reference>
|
||||||
|
</visibleWhen>
|
||||||
|
</command>
|
||||||
|
</menuContribution>
|
||||||
|
</extension>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>com.minres.rdl</groupId>
|
<groupId>com.minres.rdl</groupId>
|
||||||
<artifactId>com.minres.rdl.parent</artifactId>
|
<artifactId>com.minres.rdl.parent</artifactId>
|
||||||
<version>1.0.0-SNAPSHOT</version>
|
<version>1.4.1</version>
|
||||||
</parent>
|
</parent>
|
||||||
<artifactId>com.minres.rdl.ui</artifactId>
|
<artifactId>com.minres.rdl.ui</artifactId>
|
||||||
<packaging>eclipse-plugin</packaging>
|
<packaging>eclipse-plugin</packaging>
|
||||||
@ -17,5 +17,4 @@
|
|||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* generated by Xtext 2.12.0
|
* generated by Xtext 2.26.0
|
||||||
*/
|
*/
|
||||||
package com.minres.rdl.ui;
|
package com.minres.rdl.ui;
|
||||||
|
|
||||||
@ -14,6 +14,7 @@ import com.minres.rdl.ui.labeling.RDLDescriptionLabelProvider;
|
|||||||
import com.minres.rdl.ui.labeling.RDLLabelProvider;
|
import com.minres.rdl.ui.labeling.RDLLabelProvider;
|
||||||
import com.minres.rdl.ui.outline.RDLOutlineTreeProvider;
|
import com.minres.rdl.ui.outline.RDLOutlineTreeProvider;
|
||||||
import com.minres.rdl.ui.quickfix.RDLQuickfixProvider;
|
import com.minres.rdl.ui.quickfix.RDLQuickfixProvider;
|
||||||
|
import com.minres.rdl.validation.RDLValidatorConfigurationBlock;
|
||||||
import org.eclipse.compare.IViewerCreator;
|
import org.eclipse.compare.IViewerCreator;
|
||||||
import org.eclipse.core.resources.IWorkspaceRoot;
|
import org.eclipse.core.resources.IWorkspaceRoot;
|
||||||
import org.eclipse.core.resources.ResourcesPlugin;
|
import org.eclipse.core.resources.ResourcesPlugin;
|
||||||
@ -58,6 +59,8 @@ import org.eclipse.xtext.ui.editor.contentassist.IProposalConflictHelper;
|
|||||||
import org.eclipse.xtext.ui.editor.contentassist.PrefixMatcher;
|
import org.eclipse.xtext.ui.editor.contentassist.PrefixMatcher;
|
||||||
import org.eclipse.xtext.ui.editor.contentassist.antlr.AntlrProposalConflictHelper;
|
import org.eclipse.xtext.ui.editor.contentassist.antlr.AntlrProposalConflictHelper;
|
||||||
import org.eclipse.xtext.ui.editor.contentassist.antlr.DelegatingContentAssistContextFactory;
|
import org.eclipse.xtext.ui.editor.contentassist.antlr.DelegatingContentAssistContextFactory;
|
||||||
|
import org.eclipse.xtext.ui.editor.formatting.IContentFormatterFactory;
|
||||||
|
import org.eclipse.xtext.ui.editor.formatting2.ContentFormatterFactory;
|
||||||
import org.eclipse.xtext.ui.editor.outline.IOutlineTreeProvider;
|
import org.eclipse.xtext.ui.editor.outline.IOutlineTreeProvider;
|
||||||
import org.eclipse.xtext.ui.editor.outline.impl.IOutlineTreeStructureProvider;
|
import org.eclipse.xtext.ui.editor.outline.impl.IOutlineTreeStructureProvider;
|
||||||
import org.eclipse.xtext.ui.editor.preferences.IPreferenceStoreInitializer;
|
import org.eclipse.xtext.ui.editor.preferences.IPreferenceStoreInitializer;
|
||||||
@ -76,6 +79,9 @@ import org.eclipse.xtext.ui.refactoring.ui.IRenameSupport;
|
|||||||
import org.eclipse.xtext.ui.refactoring.ui.RefactoringPreferences;
|
import org.eclipse.xtext.ui.refactoring.ui.RefactoringPreferences;
|
||||||
import org.eclipse.xtext.ui.resource.ResourceServiceDescriptionLabelProvider;
|
import org.eclipse.xtext.ui.resource.ResourceServiceDescriptionLabelProvider;
|
||||||
import org.eclipse.xtext.ui.shared.Access;
|
import org.eclipse.xtext.ui.shared.Access;
|
||||||
|
import org.eclipse.xtext.ui.validation.AbstractValidatorConfigurationBlock;
|
||||||
|
import org.eclipse.xtext.ui.wizard.IProjectCreator;
|
||||||
|
import org.eclipse.xtext.ui.wizard.template.DefaultTemplateProjectCreator;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Manual modifications go to {@link RDLUiModule}.
|
* Manual modifications go to {@link RDLUiModule}.
|
||||||
@ -133,6 +139,11 @@ public abstract class AbstractRDLUiModule extends DefaultUiModule {
|
|||||||
binder.bind(InternalRDLLexer.class).toProvider(LexerProvider.create(InternalRDLLexer.class));
|
binder.bind(InternalRDLLexer.class).toProvider(LexerProvider.create(InternalRDLLexer.class));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// contributed by org.eclipse.xtext.xtext.generator.validation.ValidatorFragment2
|
||||||
|
public Class<? extends AbstractValidatorConfigurationBlock> bindAbstractValidatorConfigurationBlock() {
|
||||||
|
return RDLValidatorConfigurationBlock.class;
|
||||||
|
}
|
||||||
|
|
||||||
// contributed by org.eclipse.xtext.xtext.generator.exporting.QualifiedNamesFragment2
|
// contributed by org.eclipse.xtext.xtext.generator.exporting.QualifiedNamesFragment2
|
||||||
public Class<? extends PrefixMatcher> bindPrefixMatcher() {
|
public Class<? extends PrefixMatcher> bindPrefixMatcher() {
|
||||||
return FQNPrefixMatcher.class;
|
return FQNPrefixMatcher.class;
|
||||||
@ -180,6 +191,11 @@ public abstract class AbstractRDLUiModule extends DefaultUiModule {
|
|||||||
.to(BuilderPreferenceAccess.Initializer.class);
|
.to(BuilderPreferenceAccess.Initializer.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// contributed by org.eclipse.xtext.xtext.generator.formatting.Formatter2Fragment2
|
||||||
|
public Class<? extends IContentFormatterFactory> bindIContentFormatterFactory() {
|
||||||
|
return ContentFormatterFactory.class;
|
||||||
|
}
|
||||||
|
|
||||||
// contributed by org.eclipse.xtext.xtext.generator.ui.labeling.LabelProviderFragment2
|
// contributed by org.eclipse.xtext.xtext.generator.ui.labeling.LabelProviderFragment2
|
||||||
public Class<? extends ILabelProvider> bindILabelProvider() {
|
public Class<? extends ILabelProvider> bindILabelProvider() {
|
||||||
return RDLLabelProvider.class;
|
return RDLLabelProvider.class;
|
||||||
@ -210,6 +226,13 @@ public abstract class AbstractRDLUiModule extends DefaultUiModule {
|
|||||||
return RDLProposalProvider.class;
|
return RDLProposalProvider.class;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// contributed by org.eclipse.xtext.xtext.generator.ui.refactoring.RefactorElementNameFragment2
|
||||||
|
public void configureIPreferenceStoreInitializer(Binder binder) {
|
||||||
|
binder.bind(IPreferenceStoreInitializer.class)
|
||||||
|
.annotatedWith(Names.named("RefactoringPreferences"))
|
||||||
|
.to(RefactoringPreferences.Initializer.class);
|
||||||
|
}
|
||||||
|
|
||||||
// contributed by org.eclipse.xtext.xtext.generator.ui.refactoring.RefactorElementNameFragment2
|
// contributed by org.eclipse.xtext.xtext.generator.ui.refactoring.RefactorElementNameFragment2
|
||||||
public Class<? extends IRenameStrategy> bindIRenameStrategy() {
|
public Class<? extends IRenameStrategy> bindIRenameStrategy() {
|
||||||
return DefaultRenameStrategy.class;
|
return DefaultRenameStrategy.class;
|
||||||
@ -220,13 +243,6 @@ public abstract class AbstractRDLUiModule extends DefaultUiModule {
|
|||||||
return DefaultReferenceUpdater.class;
|
return DefaultReferenceUpdater.class;
|
||||||
}
|
}
|
||||||
|
|
||||||
// contributed by org.eclipse.xtext.xtext.generator.ui.refactoring.RefactorElementNameFragment2
|
|
||||||
public void configureIPreferenceStoreInitializer(Binder binder) {
|
|
||||||
binder.bind(IPreferenceStoreInitializer.class)
|
|
||||||
.annotatedWith(Names.named("RefactoringPreferences"))
|
|
||||||
.to(RefactoringPreferences.Initializer.class);
|
|
||||||
}
|
|
||||||
|
|
||||||
// contributed by org.eclipse.xtext.xtext.generator.ui.refactoring.RefactorElementNameFragment2
|
// contributed by org.eclipse.xtext.xtext.generator.ui.refactoring.RefactorElementNameFragment2
|
||||||
public Class<? extends IRenameRefactoringProvider> bindIRenameRefactoringProvider() {
|
public Class<? extends IRenameRefactoringProvider> bindIRenameRefactoringProvider() {
|
||||||
return DefaultRenameRefactoringProvider.class;
|
return DefaultRenameRefactoringProvider.class;
|
||||||
@ -278,6 +294,11 @@ public abstract class AbstractRDLUiModule extends DefaultUiModule {
|
|||||||
binder.bind(String.class).annotatedWith(Names.named(UIBindings.COMPARE_VIEWER_TITLE)).toInstance("RDL Compare");
|
binder.bind(String.class).annotatedWith(Names.named(UIBindings.COMPARE_VIEWER_TITLE)).toInstance("RDL Compare");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// contributed by org.eclipse.xtext.xtext.generator.ui.projectWizard.TemplateProjectWizardFragment
|
||||||
|
public Class<? extends IProjectCreator> bindIProjectCreator() {
|
||||||
|
return DefaultTemplateProjectCreator.class;
|
||||||
|
}
|
||||||
|
|
||||||
// contributed by org.eclipse.xtext.xtext.generator.exporting.SimpleNamesFragment2
|
// contributed by org.eclipse.xtext.xtext.generator.exporting.SimpleNamesFragment2
|
||||||
public Class<? extends IDependentElementsCalculator> bindIDependentElementsCalculator() {
|
public Class<? extends IDependentElementsCalculator> bindIDependentElementsCalculator() {
|
||||||
return DefaultDependentElementsCalculator.class;
|
return DefaultDependentElementsCalculator.class;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* generated by Xtext 2.12.0
|
* generated by Xtext 2.26.0
|
||||||
*/
|
*/
|
||||||
package com.minres.rdl.ui;
|
package com.minres.rdl.ui;
|
||||||
|
|
||||||
@ -7,6 +7,7 @@ import com.google.inject.Injector;
|
|||||||
import com.minres.rdl.ui.internal.RdlActivator;
|
import com.minres.rdl.ui.internal.RdlActivator;
|
||||||
import org.eclipse.xtext.ui.guice.AbstractGuiceAwareExecutableExtensionFactory;
|
import org.eclipse.xtext.ui.guice.AbstractGuiceAwareExecutableExtensionFactory;
|
||||||
import org.osgi.framework.Bundle;
|
import org.osgi.framework.Bundle;
|
||||||
|
import org.osgi.framework.FrameworkUtil;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This class was generated. Customizations should only happen in a newly
|
* This class was generated. Customizations should only happen in a newly
|
||||||
@ -16,12 +17,13 @@ public class RDLExecutableExtensionFactory extends AbstractGuiceAwareExecutableE
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected Bundle getBundle() {
|
protected Bundle getBundle() {
|
||||||
return RdlActivator.getInstance().getBundle();
|
return FrameworkUtil.getBundle(RdlActivator.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected Injector getInjector() {
|
protected Injector getInjector() {
|
||||||
return RdlActivator.getInstance().getInjector(RdlActivator.COM_MINRES_RDL_RDL);
|
RdlActivator activator = RdlActivator.getInstance();
|
||||||
|
return activator != null ? activator.getInjector(RdlActivator.COM_MINRES_RDL_RDL) : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* generated by Xtext 2.12.0
|
* generated by Xtext 2.26.0
|
||||||
*/
|
*/
|
||||||
package com.minres.rdl.ui.contentassist;
|
package com.minres.rdl.ui.contentassist;
|
||||||
|
|
||||||
@ -28,7 +28,7 @@ public abstract class AbstractRDLProposalProvider extends AbstractJavaBasedConte
|
|||||||
public void completeRoot_EnumDefinitions(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
public void completeRoot_EnumDefinitions(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||||
}
|
}
|
||||||
public void completeRoot_NamedInstantiations(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
public void completeRoot_Instantiations(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||||
}
|
}
|
||||||
public void completeRoot_PropertyAssignments(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
public void completeRoot_PropertyAssignments(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||||
@ -75,7 +75,7 @@ public abstract class AbstractRDLProposalProvider extends AbstractJavaBasedConte
|
|||||||
public void completeComponentDefinition_ComponentDefinitions(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
public void completeComponentDefinition_ComponentDefinitions(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||||
}
|
}
|
||||||
public void completeComponentDefinition_NamedInstantiations(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
public void completeComponentDefinition_Instantiations(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||||
}
|
}
|
||||||
public void completeComponentDefinition_PropertyAssignments(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
public void completeComponentDefinition_PropertyAssignments(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||||
@ -84,28 +84,19 @@ public abstract class AbstractRDLProposalProvider extends AbstractJavaBasedConte
|
|||||||
public void completeComponentDefinition_EnumDefinitions(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
public void completeComponentDefinition_EnumDefinitions(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||||
}
|
}
|
||||||
public void completeComponentDefinition_ImmediateInstantiation(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
public void completeInstantiation_InstanceType(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||||
}
|
}
|
||||||
public void completeNamedInstantiation_External(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
public void completeInstantiation_Alias(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||||
// subclasses may override
|
|
||||||
}
|
|
||||||
public void completeNamedInstantiation_Internal(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
|
||||||
// subclasses may override
|
|
||||||
}
|
|
||||||
public void completeNamedInstantiation_Alias(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
|
||||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||||
}
|
}
|
||||||
public void completeNamedInstantiation_Component(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
public void completeInstantiation_ComponentRef(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||||
lookupCrossReference(((CrossReference)assignment.getTerminal()), context, acceptor);
|
lookupCrossReference(((CrossReference)assignment.getTerminal()), context, acceptor);
|
||||||
}
|
}
|
||||||
public void completeNamedInstantiation_ComponentInstances(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
public void completeInstantiation_Component(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||||
}
|
}
|
||||||
public void completeImmediateInstantiation_External(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
public void completeInstantiation_ComponentInstances(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||||
// subclasses may override
|
|
||||||
}
|
|
||||||
public void completeImmediateInstantiation_ComponentInstances(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
|
||||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||||
}
|
}
|
||||||
public void completeComponentInstance_Name(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
public void completeComponentInstance_Name(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||||
@ -126,10 +117,10 @@ public abstract class AbstractRDLProposalProvider extends AbstractJavaBasedConte
|
|||||||
public void completeComponentInstance_AddrMod(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
public void completeComponentInstance_AddrMod(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||||
}
|
}
|
||||||
public void completeRange_Start(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
public void completeRange_Left(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||||
}
|
}
|
||||||
public void completeRange_End(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
public void completeRange_Right(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||||
}
|
}
|
||||||
public void completeRange_Size(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
public void completeRange_Size(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||||
@ -234,6 +225,12 @@ public abstract class AbstractRDLProposalProvider extends AbstractJavaBasedConte
|
|||||||
public void completeEnumProperty_Value(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
public void completeEnumProperty_Value(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||||
}
|
}
|
||||||
|
public void completeEnumInstanceType_EXTERNAL(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||||
|
// subclasses may override
|
||||||
|
}
|
||||||
|
public void completeEnumInstanceType_INTERNAL(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||||
|
// subclasses may override
|
||||||
|
}
|
||||||
|
|
||||||
public void complete_Root(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
public void complete_Root(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||||
// subclasses may override
|
// subclasses may override
|
||||||
@ -262,10 +259,7 @@ public abstract class AbstractRDLProposalProvider extends AbstractJavaBasedConte
|
|||||||
public void complete_ComponentDefinitionType(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
public void complete_ComponentDefinitionType(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||||
// subclasses may override
|
// subclasses may override
|
||||||
}
|
}
|
||||||
public void complete_NamedInstantiation(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
public void complete_Instantiation(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||||
// subclasses may override
|
|
||||||
}
|
|
||||||
public void complete_ImmediateInstantiation(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
|
||||||
// subclasses may override
|
// subclasses may override
|
||||||
}
|
}
|
||||||
public void complete_ComponentInstance(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
public void complete_ComponentInstance(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||||
@ -334,6 +328,9 @@ public abstract class AbstractRDLProposalProvider extends AbstractJavaBasedConte
|
|||||||
public void complete_EnumProperty(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
public void complete_EnumProperty(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||||
// subclasses may override
|
// subclasses may override
|
||||||
}
|
}
|
||||||
|
public void complete_EnumInstanceType(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||||
|
// subclasses may override
|
||||||
|
}
|
||||||
public void complete_ID(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
public void complete_ID(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||||
// subclasses may override
|
// subclasses may override
|
||||||
}
|
}
|
||||||
|
@ -1,12 +1,11 @@
|
|||||||
/*
|
/*
|
||||||
* generated by Xtext 2.12.0
|
* generated by Xtext 2.26.0
|
||||||
*/
|
*/
|
||||||
package com.minres.rdl.ui.internal;
|
package com.minres.rdl.ui.internal;
|
||||||
|
|
||||||
import com.google.common.collect.Maps;
|
import com.google.common.collect.Maps;
|
||||||
import com.google.inject.Guice;
|
import com.google.inject.Guice;
|
||||||
import com.google.inject.Injector;
|
import com.google.inject.Injector;
|
||||||
import com.google.inject.Module;
|
|
||||||
import com.minres.rdl.RDLRuntimeModule;
|
import com.minres.rdl.RDLRuntimeModule;
|
||||||
import com.minres.rdl.ui.RDLUiModule;
|
import com.minres.rdl.ui.RDLUiModule;
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
@ -23,6 +22,7 @@ import org.osgi.framework.BundleContext;
|
|||||||
*/
|
*/
|
||||||
public class RdlActivator extends AbstractUIPlugin {
|
public class RdlActivator extends AbstractUIPlugin {
|
||||||
|
|
||||||
|
public static final String PLUGIN_ID = "com.minres.rdl.ui";
|
||||||
public static final String COM_MINRES_RDL_RDL = "com.minres.rdl.RDL";
|
public static final String COM_MINRES_RDL_RDL = "com.minres.rdl.RDL";
|
||||||
|
|
||||||
private static final Logger logger = Logger.getLogger(RdlActivator.class);
|
private static final Logger logger = Logger.getLogger(RdlActivator.class);
|
||||||
@ -60,10 +60,10 @@ public class RdlActivator extends AbstractUIPlugin {
|
|||||||
|
|
||||||
protected Injector createInjector(String language) {
|
protected Injector createInjector(String language) {
|
||||||
try {
|
try {
|
||||||
Module runtimeModule = getRuntimeModule(language);
|
com.google.inject.Module runtimeModule = getRuntimeModule(language);
|
||||||
Module sharedStateModule = getSharedStateModule();
|
com.google.inject.Module sharedStateModule = getSharedStateModule();
|
||||||
Module uiModule = getUiModule(language);
|
com.google.inject.Module uiModule = getUiModule(language);
|
||||||
Module mergedModule = Modules2.mixin(runtimeModule, sharedStateModule, uiModule);
|
com.google.inject.Module mergedModule = Modules2.mixin(runtimeModule, sharedStateModule, uiModule);
|
||||||
return Guice.createInjector(mergedModule);
|
return Guice.createInjector(mergedModule);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
logger.error("Failed to create injector for " + language);
|
logger.error("Failed to create injector for " + language);
|
||||||
@ -72,22 +72,23 @@ public class RdlActivator extends AbstractUIPlugin {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected Module getRuntimeModule(String grammar) {
|
protected com.google.inject.Module getRuntimeModule(String grammar) {
|
||||||
if (COM_MINRES_RDL_RDL.equals(grammar)) {
|
if (COM_MINRES_RDL_RDL.equals(grammar)) {
|
||||||
return new RDLRuntimeModule();
|
return new RDLRuntimeModule();
|
||||||
}
|
}
|
||||||
throw new IllegalArgumentException(grammar);
|
throw new IllegalArgumentException(grammar);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected Module getUiModule(String grammar) {
|
protected com.google.inject.Module getUiModule(String grammar) {
|
||||||
if (COM_MINRES_RDL_RDL.equals(grammar)) {
|
if (COM_MINRES_RDL_RDL.equals(grammar)) {
|
||||||
return new RDLUiModule(this);
|
return new RDLUiModule(this);
|
||||||
}
|
}
|
||||||
throw new IllegalArgumentException(grammar);
|
throw new IllegalArgumentException(grammar);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected Module getSharedStateModule() {
|
protected com.google.inject.Module getSharedStateModule() {
|
||||||
return new SharedStateModule();
|
return new SharedStateModule();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -0,0 +1,35 @@
|
|||||||
|
/*
|
||||||
|
* generated by Xtext 2.26.0
|
||||||
|
*/
|
||||||
|
package com.minres.rdl.validation;
|
||||||
|
|
||||||
|
import org.eclipse.jface.dialogs.IDialogSettings;
|
||||||
|
import org.eclipse.swt.widgets.Composite;
|
||||||
|
import org.eclipse.xtext.ui.validation.AbstractValidatorConfigurationBlock;
|
||||||
|
|
||||||
|
@SuppressWarnings("restriction")
|
||||||
|
public class RDLValidatorConfigurationBlock extends AbstractValidatorConfigurationBlock {
|
||||||
|
|
||||||
|
protected static final String SETTINGS_SECTION_NAME = "RDL";
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void fillSettingsPage(Composite composite, int nColumns, int defaultIndent) {
|
||||||
|
addComboBox(RDLConfigurableIssueCodesProvider.DEPRECATED_MODEL_PART, "Deprecated Model Part", composite, defaultIndent);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void dispose() {
|
||||||
|
storeSectionExpansionStates(getDialogSettings());
|
||||||
|
super.dispose();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected IDialogSettings getDialogSettings() {
|
||||||
|
IDialogSettings dialogSettings = super.getDialogSettings();
|
||||||
|
IDialogSettings section = dialogSettings.getSection(SETTINGS_SECTION_NAME);
|
||||||
|
if (section == null) {
|
||||||
|
return dialogSettings.addNewSection(SETTINGS_SECTION_NAME);
|
||||||
|
}
|
||||||
|
return section;
|
||||||
|
}
|
||||||
|
}
|
@ -4,8 +4,7 @@ import org.eclipse.emf.ecore.EObject
|
|||||||
import org.eclipse.xtext.ui.editor.hover.html.DefaultEObjectHoverProvider
|
import org.eclipse.xtext.ui.editor.hover.html.DefaultEObjectHoverProvider
|
||||||
import com.minres.rdl.rdl.ComponentDefinition
|
import com.minres.rdl.rdl.ComponentDefinition
|
||||||
import com.minres.rdl.rdl.ComponentInstance
|
import com.minres.rdl.rdl.ComponentInstance
|
||||||
import com.minres.rdl.rdl.ImmediateInstantiation
|
import com.minres.rdl.rdl.Instantiation
|
||||||
import com.minres.rdl.rdl.NamedInstantiation
|
|
||||||
|
|
||||||
class RDLEObjectHoverProvider extends DefaultEObjectHoverProvider {
|
class RDLEObjectHoverProvider extends DefaultEObjectHoverProvider {
|
||||||
override protected String getFirstLine(EObject o) {
|
override protected String getFirstLine(EObject o) {
|
||||||
@ -13,11 +12,8 @@ class RDLEObjectHoverProvider extends DefaultEObjectHoverProvider {
|
|||||||
ComponentDefinition: return 'Component '+o.name+' of type '+o.type.literal
|
ComponentDefinition: return 'Component '+o.name+' of type '+o.type.literal
|
||||||
ComponentInstance: {
|
ComponentInstance: {
|
||||||
val parent = o.eContainer
|
val parent = o.eContainer
|
||||||
if (parent instanceof ImmediateInstantiation) {
|
if (parent instanceof Instantiation) {
|
||||||
val compDef = parent.eContainer as ComponentDefinition
|
return (if(parent.componentRef !== null) parent.componentRef.type else parent.component.type).literal.toFirstUpper+' '+o.name
|
||||||
return compDef.type.literal+' '+o.name
|
|
||||||
} else if (parent instanceof NamedInstantiation) {
|
|
||||||
return parent.component.type.literal+' '+o.name
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,11 +1,17 @@
|
|||||||
/*
|
/*
|
||||||
* generated by Xtext 2.12.0
|
* generated by Xtext 2.14.0
|
||||||
*/
|
*/
|
||||||
package com.minres.rdl.ui
|
package com.minres.rdl.ui
|
||||||
|
|
||||||
|
import com.minres.rdl.ui.hyperlink.RdlHyperlinkHelper
|
||||||
|
import com.minres.rdl.ui.hyperlink.RdlXtextHyperlink
|
||||||
import org.eclipse.xtend.lib.annotations.FinalFieldsConstructor
|
import org.eclipse.xtend.lib.annotations.FinalFieldsConstructor
|
||||||
import org.eclipse.xtext.ui.editor.hover.IEObjectHoverProvider
|
|
||||||
import org.eclipse.xtext.documentation.IEObjectDocumentationProvider
|
import org.eclipse.xtext.documentation.IEObjectDocumentationProvider
|
||||||
|
import org.eclipse.xtext.ui.editor.hover.IEObjectHoverProvider
|
||||||
|
import org.eclipse.xtext.ui.editor.hyperlinking.HyperlinkHelper
|
||||||
|
import org.eclipse.xtext.ui.editor.hyperlinking.XtextHyperlink
|
||||||
|
import org.eclipse.xtext.ui.resource.IResourceSetProvider
|
||||||
|
import org.eclipse.xtext.ui.resource.SimpleResourceSetProvider
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Use this class to register components to be used within the Eclipse IDE.
|
* Use this class to register components to be used within the Eclipse IDE.
|
||||||
@ -21,4 +27,20 @@ class RDLUiModule extends AbstractRDLUiModule {
|
|||||||
typeof(RDLEObjectDocumentationProvider);
|
typeof(RDLEObjectDocumentationProvider);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// override Class<? extends IProjectCreator> bindIProjectCreator() {
|
||||||
|
// return JDTFreeStructuralProjectCreator;
|
||||||
|
// }
|
||||||
|
|
||||||
|
override Class<? extends IResourceSetProvider> bindIResourceSetProvider() {
|
||||||
|
return SimpleResourceSetProvider
|
||||||
|
}
|
||||||
|
|
||||||
|
def Class<? extends HyperlinkHelper> bindHyperlinkHelper() {
|
||||||
|
return RdlHyperlinkHelper
|
||||||
|
}
|
||||||
|
|
||||||
|
def Class<? extends XtextHyperlink> bindHyperlink() {
|
||||||
|
return RdlXtextHyperlink
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -0,0 +1,134 @@
|
|||||||
|
package com.minres.rdl.ui.builder;
|
||||||
|
|
||||||
|
|
||||||
|
import org.eclipse.core.commands.AbstractHandler;
|
||||||
|
import org.eclipse.core.commands.ExecutionEvent;
|
||||||
|
import org.eclipse.core.commands.IHandler;
|
||||||
|
import org.eclipse.core.resources.IFile;
|
||||||
|
import org.eclipse.core.resources.IFolder;
|
||||||
|
import org.eclipse.core.resources.IProject;
|
||||||
|
import org.eclipse.core.runtime.CoreException;
|
||||||
|
import org.eclipse.core.runtime.NullProgressMonitor;
|
||||||
|
import org.eclipse.core.runtime.preferences.IEclipsePreferences;
|
||||||
|
import org.eclipse.core.runtime.preferences.InstanceScope;
|
||||||
|
import org.eclipse.emf.common.util.URI;
|
||||||
|
import org.eclipse.emf.ecore.resource.Resource;
|
||||||
|
import org.eclipse.jface.viewers.ISelection;
|
||||||
|
import org.eclipse.jface.viewers.IStructuredSelection;
|
||||||
|
import org.eclipse.ui.IEditorPart;
|
||||||
|
import org.eclipse.ui.IWorkbenchPart;
|
||||||
|
import org.eclipse.ui.handlers.HandlerUtil;
|
||||||
|
import org.eclipse.xtext.builder.EclipseResourceFileSystemAccess2;
|
||||||
|
import org.eclipse.xtext.generator.IGenerator2;
|
||||||
|
import org.eclipse.xtext.resource.IResourceDescriptions;
|
||||||
|
import org.eclipse.xtext.resource.XtextResource;
|
||||||
|
import org.eclipse.xtext.ui.editor.XtextEditor;
|
||||||
|
import org.eclipse.xtext.ui.resource.IResourceSetProvider;
|
||||||
|
import org.eclipse.xtext.util.CancelIndicator;
|
||||||
|
import org.eclipse.xtext.util.concurrent.IUnitOfWork;
|
||||||
|
|
||||||
|
import com.google.inject.Inject;
|
||||||
|
import com.google.inject.Provider;
|
||||||
|
import com.minres.rdl.generator.RdlGeneratorContext;
|
||||||
|
import com.minres.rdl.preferences.PreferenceConstants;
|
||||||
|
|
||||||
|
public class GenerationHandler extends AbstractHandler implements IHandler {
|
||||||
|
|
||||||
|
@Inject
|
||||||
|
private IGenerator2 generator;
|
||||||
|
|
||||||
|
@Inject
|
||||||
|
private Provider<EclipseResourceFileSystemAccess2> fileAccessProvider;
|
||||||
|
|
||||||
|
@Inject
|
||||||
|
IResourceDescriptions resourceDescriptions;
|
||||||
|
|
||||||
|
@Inject
|
||||||
|
IResourceSetProvider resourceSetProvider;
|
||||||
|
|
||||||
|
IEclipsePreferences preferences = InstanceScope.INSTANCE.getNode(PreferenceConstants.SCOPE_NAME);
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Object execute(ExecutionEvent event) {
|
||||||
|
RdlGeneratorContext context = new RdlGeneratorContext();
|
||||||
|
context.cancelIndicator = CancelIndicator.NullImpl;
|
||||||
|
context.namespace = preferences.get(PreferenceConstants.P_NAMESPACE, "sysc");
|
||||||
|
context.forceOverwrite=preferences.getBoolean(PreferenceConstants.P_OVERWRITE_STUBS, false);
|
||||||
|
String whatToGenerate = preferences.get(PreferenceConstants.P_FILETYPES_TO_GENERATE, "all");
|
||||||
|
if(whatToGenerate=="sc-comp") {
|
||||||
|
context.generateFw=false;
|
||||||
|
} else if(whatToGenerate=="fw") {
|
||||||
|
context.generateSc=false;
|
||||||
|
}
|
||||||
|
context.forceOverwrite=preferences.getBoolean(PreferenceConstants.P_OVERWRITE_STUBS, false);
|
||||||
|
context.fwPathModifier=preferences.get(PreferenceConstants.P_FIRMWARE_PATH, "");
|
||||||
|
context.scPathModifier=preferences.get(PreferenceConstants.P_COMPONENT_PATH, "");
|
||||||
|
|
||||||
|
String outputDir = preferences.get("outlet.DEFAULT_OUTPUT.directory", "src-gen");
|
||||||
|
IEditorPart activeEditor = HandlerUtil.getActiveEditor(event);
|
||||||
|
IWorkbenchPart activePart = HandlerUtil.getActivePart(event);
|
||||||
|
if (activeEditor instanceof XtextEditor && activeEditor == activePart) {
|
||||||
|
IFile file = (IFile) activeEditor.getEditorInput().getAdapter(IFile.class);
|
||||||
|
if (file != null) {
|
||||||
|
final EclipseResourceFileSystemAccess2 fsa = getFsa(outputDir, file, context.fwPathModifier, context.scPathModifier);
|
||||||
|
((XtextEditor)activeEditor).getDocument().readOnly(new IUnitOfWork<Boolean, XtextResource>() {
|
||||||
|
@Override
|
||||||
|
public Boolean exec(XtextResource state) throws Exception {
|
||||||
|
generator.doGenerate(state, fsa, context);
|
||||||
|
return Boolean.TRUE;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
ISelection selection = HandlerUtil.getCurrentSelection(event);
|
||||||
|
if (selection instanceof IStructuredSelection) {
|
||||||
|
IStructuredSelection structuredSelection = (IStructuredSelection) selection;
|
||||||
|
for (Object element : structuredSelection) {
|
||||||
|
if (element instanceof IFile) {
|
||||||
|
IFile file = (IFile) element;
|
||||||
|
final EclipseResourceFileSystemAccess2 fsa = getFsa(outputDir, file, context.fwPathModifier, context.scPathModifier);
|
||||||
|
URI uri = URI.createPlatformResourceURI(file.getFullPath().toString(), true);
|
||||||
|
Resource r = resourceSetProvider.get(file.getProject()).getResource(uri, true);
|
||||||
|
try {
|
||||||
|
generator.doGenerate(r, fsa, context);
|
||||||
|
} finally {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
private EclipseResourceFileSystemAccess2 getFsa(String outputDir, IFile file, String fwPath, String scPath) {
|
||||||
|
IProject project = file.getProject();
|
||||||
|
IFolder srcGenFolder = project.getFolder(outputDir);
|
||||||
|
createIfNotExists(srcGenFolder);
|
||||||
|
if(fwPath.length()>0) createIfNotExists(srcGenFolder.getFolder(fwPath));
|
||||||
|
if(scPath.length()>0) createIfNotExists(srcGenFolder.getFolder(scPath));
|
||||||
|
final EclipseResourceFileSystemAccess2 fsa = fileAccessProvider.get();
|
||||||
|
fsa.setOutputPath("src-gen");
|
||||||
|
String scGenFolderPath = (fwPath.length()>0? srcGenFolder.getFolder(scPath) : srcGenFolder).getProjectRelativePath().toString();
|
||||||
|
fsa.setOutputPath("sc-incl-out", scGenFolderPath);
|
||||||
|
fsa.setOutputPath("sc-src-out", scGenFolderPath);
|
||||||
|
String fwGenFolderPath = (fwPath.length()>0? srcGenFolder.getFolder(fwPath) : srcGenFolder).getProjectRelativePath().toString();
|
||||||
|
fsa.setOutputPath("fw-incl-out", fwGenFolderPath);
|
||||||
|
fsa.setOutputPath("fw-src-out", fwGenFolderPath);
|
||||||
|
fsa.setProject(project);
|
||||||
|
fsa.setMonitor(new NullProgressMonitor());
|
||||||
|
return fsa;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void createIfNotExists(IFolder srcGenFolder) {
|
||||||
|
if (!srcGenFolder.exists()) {
|
||||||
|
try {
|
||||||
|
srcGenFolder.create(true, true, new NullProgressMonitor());
|
||||||
|
} catch (CoreException e) { }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean isEnabled() {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* generated by Xtext 2.12.0
|
* generated by Xtext 2.14.0
|
||||||
*/
|
*/
|
||||||
package com.minres.rdl.ui.contentassist
|
package com.minres.rdl.ui.contentassist
|
||||||
|
|
||||||
|
@ -0,0 +1,53 @@
|
|||||||
|
package com.minres.rdl.ui.hyperlink
|
||||||
|
|
||||||
|
import com.google.inject.Inject
|
||||||
|
import org.eclipse.emf.common.util.URI
|
||||||
|
import org.eclipse.emf.ecore.util.EcoreUtil
|
||||||
|
import org.eclipse.jface.text.Region
|
||||||
|
import org.eclipse.xtext.EcoreUtil2
|
||||||
|
import org.eclipse.xtext.nodemodel.util.NodeModelUtils
|
||||||
|
import org.eclipse.xtext.resource.XtextResource
|
||||||
|
import org.eclipse.xtext.scoping.impl.ImportUriResolver
|
||||||
|
import org.eclipse.xtext.ui.editor.hyperlinking.HyperlinkHelper
|
||||||
|
import org.eclipse.xtext.ui.editor.hyperlinking.IHyperlinkAcceptor
|
||||||
|
import org.eclipse.xtext.util.TextRegion
|
||||||
|
import org.eclipse.jface.text.IRegion
|
||||||
|
|
||||||
|
class RdlHyperlinkHelper extends HyperlinkHelper {
|
||||||
|
|
||||||
|
@Inject ImportUriResolver resolver;
|
||||||
|
|
||||||
|
override createHyperlinksByOffset(XtextResource resource, int offset, IHyperlinkAcceptor acceptor) {
|
||||||
|
val region = new TextRegion(offset, 0)
|
||||||
|
val crossRefNode = getEObjectAtOffsetHelper().getCrossReferenceNode(resource, region);
|
||||||
|
if (crossRefNode === null){
|
||||||
|
val parseResult = resource.getParseResult();
|
||||||
|
if (parseResult !== null) {
|
||||||
|
val leaf = NodeModelUtils.findLeafNodeAtOffset(parseResult.getRootNode(), region.getOffset());
|
||||||
|
//val rule = EcoreUtil2.getContainerOfType(leaf.grammarElement, AbstractRule);
|
||||||
|
val semObj = NodeModelUtils.findActualSemanticObjectFor(leaf);
|
||||||
|
val importURI = resolver.resolve(semObj);
|
||||||
|
if (importURI !== null && EcoreUtil2.isValidUri(semObj, URI.createURI(importURI))) {
|
||||||
|
val referencedResource = EcoreUtil2.getResource(resource, importURI)
|
||||||
|
if(referencedResource !== null && referencedResource.contents.size>0){
|
||||||
|
val top = referencedResource.contents.get(0)
|
||||||
|
val textRegion = leaf.getTextRegion();
|
||||||
|
val uri = EcoreUtil.getURI(top);
|
||||||
|
val result = hyperlinkProvider.get();
|
||||||
|
result.setHyperlinkRegion(new Region(textRegion.getOffset(), textRegion.getLength()) as IRegion);
|
||||||
|
result.setURI(if(uri.isPlatformResource()) uri else resource.getResourceSet().getURIConverter().normalize(uri));
|
||||||
|
result.setHyperlinkText(labelProvider.getText(top));
|
||||||
|
if(result instanceof RdlXtextHyperlink) result.selectTarget=false
|
||||||
|
acceptor.accept(result);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
val crossLinkedEObject = getEObjectAtOffsetHelper().getCrossReferencedElement(crossRefNode);
|
||||||
|
if (crossLinkedEObject !== null && !crossLinkedEObject.eIsProxy()) {
|
||||||
|
createHyperlinksTo(resource, crossRefNode, crossLinkedEObject, acceptor);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,24 @@
|
|||||||
|
package com.minres.rdl.ui.hyperlink
|
||||||
|
|
||||||
|
import com.google.inject.Inject
|
||||||
|
import org.eclipse.xtext.ui.editor.IURIEditorOpener
|
||||||
|
import org.eclipse.xtext.ui.editor.hyperlinking.XtextHyperlink
|
||||||
|
|
||||||
|
class RdlXtextHyperlink extends XtextHyperlink {
|
||||||
|
|
||||||
|
var boolean select = true
|
||||||
|
|
||||||
|
@Inject var IURIEditorOpener uriEditorOpener;
|
||||||
|
|
||||||
|
override void open() {
|
||||||
|
uriEditorOpener.open(getURI(), select);
|
||||||
|
}
|
||||||
|
|
||||||
|
def boolean getSelectTarget(){
|
||||||
|
return select
|
||||||
|
}
|
||||||
|
|
||||||
|
def void setSelectTarget(boolean select){
|
||||||
|
this.select=select
|
||||||
|
}
|
||||||
|
}
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* generated by Xtext 2.12.0
|
* generated by Xtext 2.14.0
|
||||||
*/
|
*/
|
||||||
package com.minres.rdl.ui.labeling
|
package com.minres.rdl.ui.labeling
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* generated by Xtext 2.12.0
|
* generated by Xtext 2.14.0
|
||||||
*/
|
*/
|
||||||
package com.minres.rdl.ui.labeling
|
package com.minres.rdl.ui.labeling
|
||||||
|
|
||||||
@ -8,7 +8,6 @@ import org.eclipse.emf.edit.ui.provider.AdapterFactoryLabelProvider
|
|||||||
import org.eclipse.xtext.ui.label.DefaultEObjectLabelProvider
|
import org.eclipse.xtext.ui.label.DefaultEObjectLabelProvider
|
||||||
import com.minres.rdl.rdl.ComponentDefinition
|
import com.minres.rdl.rdl.ComponentDefinition
|
||||||
import com.minres.rdl.rdl.ExplicitPropertyAssignment
|
import com.minres.rdl.rdl.ExplicitPropertyAssignment
|
||||||
import com.minres.rdl.rdl.ImmediateInstantiation
|
|
||||||
import com.minres.rdl.rdl.ComponentInstance
|
import com.minres.rdl.rdl.ComponentInstance
|
||||||
import com.minres.rdl.rdl.PropertyAssignment
|
import com.minres.rdl.rdl.PropertyAssignment
|
||||||
import com.minres.rdl.rdl.PropertyAssignmentRhs
|
import com.minres.rdl.rdl.PropertyAssignmentRhs
|
||||||
@ -19,7 +18,6 @@ import com.minres.rdl.rdl.RValueConstant
|
|||||||
import com.minres.rdl.rdl.PropertyModifier
|
import com.minres.rdl.rdl.PropertyModifier
|
||||||
import com.minres.rdl.rdl.ComponentDefinitionType
|
import com.minres.rdl.rdl.ComponentDefinitionType
|
||||||
import com.minres.rdl.rdl.EnumDefinition
|
import com.minres.rdl.rdl.EnumDefinition
|
||||||
import com.minres.rdl.rdl.NamedInstantiation
|
|
||||||
import com.minres.rdl.rdl.PostPropertyAssignment
|
import com.minres.rdl.rdl.PostPropertyAssignment
|
||||||
import com.minres.rdl.rdl.InstanceRef
|
import com.minres.rdl.rdl.InstanceRef
|
||||||
import com.minres.rdl.rdl.InstancePropertyRef
|
import com.minres.rdl.rdl.InstancePropertyRef
|
||||||
@ -38,29 +36,17 @@ class RDLLabelProvider extends DefaultEObjectLabelProvider {
|
|||||||
super(delegate);
|
super(delegate);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Labels and icons can be computed like this:
|
|
||||||
|
|
||||||
// def text(Greeting ele) {
|
|
||||||
// 'A greeting to ' + ele.name
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// def image(Greeting ele) {
|
|
||||||
// 'Greeting.gif'
|
|
||||||
// }
|
|
||||||
|
|
||||||
def text(ComponentDefinition e){
|
def text(ComponentDefinition e){
|
||||||
if(e.immediateInstantiation!==null){
|
if(e.name!==null){
|
||||||
if(e.name!==null)
|
|
||||||
text(e.immediateInstantiation)+' ('+e.name+')'
|
|
||||||
else
|
|
||||||
text(e.immediateInstantiation)
|
|
||||||
}else if(e.name!==null){
|
|
||||||
e.type.literal+' '+e.name
|
e.type.literal+' '+e.name
|
||||||
} else{
|
} else{
|
||||||
val pa = e.propertyAssignments.findFirst[PropertyAssignment pa |
|
val pa = e.propertyAssignments.findFirst[PropertyAssignment pa |
|
||||||
pa instanceof ExplicitPropertyAssignment && (pa as ExplicitPropertyAssignment).name==PropertyEnum.NAME
|
pa instanceof ExplicitPropertyAssignment && (pa as ExplicitPropertyAssignment).name==PropertyEnum.NAME
|
||||||
]
|
]
|
||||||
|
if(pa!== null)
|
||||||
e.type.literal+' '+ text((pa as ExplicitPropertyAssignment).rhs)
|
e.type.literal+' '+ text((pa as ExplicitPropertyAssignment).rhs)
|
||||||
|
else
|
||||||
|
e.type.literal
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -91,14 +77,10 @@ class RDLLabelProvider extends DefaultEObjectLabelProvider {
|
|||||||
e.instance.name
|
e.instance.name
|
||||||
}
|
}
|
||||||
|
|
||||||
def text( ImmediateInstantiation e){
|
|
||||||
e.componentInstances.map[text(it)].join(", ")
|
|
||||||
}
|
|
||||||
|
|
||||||
def text( ComponentInstance e){
|
def text( ComponentInstance e){
|
||||||
var res = e.name
|
var res = e.name
|
||||||
if(e.range !== null)
|
if(e.range !== null)
|
||||||
res+='['+(if(e.range.size!==null) e.range.size.toString else e.range.start+':'+e.range.end)+']'
|
res+='['+(if(e.range.size!==null) e.range.size.toString else e.range.left+':'+e.range.right)+']'
|
||||||
if(e.address!==null)
|
if(e.address!==null)
|
||||||
res+=' @'+e.address
|
res+=' @'+e.address
|
||||||
return res
|
return res
|
||||||
@ -140,10 +122,6 @@ class RDLLabelProvider extends DefaultEObjectLabelProvider {
|
|||||||
return string
|
return string
|
||||||
}
|
}
|
||||||
|
|
||||||
def text(NamedInstantiation e){
|
|
||||||
e.componentInstances.map[text(it)].join(", ")+' ('+e.component.name+')'
|
|
||||||
}
|
|
||||||
|
|
||||||
def text(EnumEntry e){
|
def text(EnumEntry e){
|
||||||
if(e.index !== null)
|
if(e.index !== null)
|
||||||
e.name + '=' + e.index.toString
|
e.name + '=' + e.index.toString
|
||||||
@ -198,7 +176,7 @@ class RDLLabelProvider extends DefaultEObjectLabelProvider {
|
|||||||
'P.png'
|
'P.png'
|
||||||
}
|
}
|
||||||
|
|
||||||
def image(NamedInstantiation e){
|
def image(ComponentInstance e){
|
||||||
'I.png'
|
'I.png'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* generated by Xtext 2.12.0
|
* generated by Xtext 2.14.0
|
||||||
*/
|
*/
|
||||||
package com.minres.rdl.ui.outline
|
package com.minres.rdl.ui.outline
|
||||||
|
|
||||||
@ -8,13 +8,13 @@ import org.eclipse.xtext.ui.editor.outline.impl.DefaultOutlineTreeProvider
|
|||||||
import org.eclipse.xtext.ui.editor.outline.impl.DocumentRootNode
|
import org.eclipse.xtext.ui.editor.outline.impl.DocumentRootNode
|
||||||
import com.minres.rdl.rdl.ComponentDefinition
|
import com.minres.rdl.rdl.ComponentDefinition
|
||||||
import org.eclipse.xtext.ui.editor.outline.IOutlineNode
|
import org.eclipse.xtext.ui.editor.outline.IOutlineNode
|
||||||
import com.minres.rdl.rdl.PropertyAssignment
|
|
||||||
import com.minres.rdl.rdl.NamedInstantiation
|
|
||||||
import com.minres.rdl.rdl.ExplicitPropertyAssignment
|
import com.minres.rdl.rdl.ExplicitPropertyAssignment
|
||||||
import com.minres.rdl.rdl.PostPropertyAssignment
|
import com.minres.rdl.rdl.PostPropertyAssignment
|
||||||
import com.minres.rdl.rdl.PropertyAssignmentRhs
|
import com.minres.rdl.rdl.PropertyAssignmentRhs
|
||||||
import com.minres.rdl.rdl.EnumDefinition
|
import com.minres.rdl.rdl.EnumDefinition
|
||||||
import com.minres.rdl.rdl.EnumEntry
|
import com.minres.rdl.rdl.EnumEntry
|
||||||
|
import com.minres.rdl.rdl.Instantiation
|
||||||
|
import com.minres.rdl.rdl.ComponentInstance
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Customization of the default outline structure.
|
* Customization of the default outline structure.
|
||||||
@ -28,14 +28,20 @@ class RDLOutlineTreeProvider extends DefaultOutlineTreeProvider {
|
|||||||
domainModel.propertyDefinitions.forEach[createNode(parentNode, it)]
|
domainModel.propertyDefinitions.forEach[createNode(parentNode, it)]
|
||||||
domainModel.componentDefinitions.forEach[createNode(parentNode, it)]
|
domainModel.componentDefinitions.forEach[createNode(parentNode, it)]
|
||||||
domainModel.propertyAssignments.forEach[createNode(parentNode, it)]
|
domainModel.propertyAssignments.forEach[createNode(parentNode, it)]
|
||||||
domainModel.namedInstantiations.forEach[createNode(parentNode, it)]
|
domainModel.instantiations.forEach[Instantiation instantiation |
|
||||||
|
if(instantiation.component!==null) createNode(parentNode, instantiation.component)
|
||||||
|
instantiation.componentInstances.forEach[createNode(parentNode, it)]
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
protected def _createChildren(IOutlineNode parentNode, ComponentDefinition compDef) {
|
protected def _createChildren(IOutlineNode parentNode, ComponentDefinition compDef) {
|
||||||
compDef.enumDefinitions.forEach[createNode(parentNode, it)]
|
compDef.enumDefinitions.forEach[createNode(parentNode, it)]
|
||||||
compDef.componentDefinitions.forEach[createNode(parentNode, it)]
|
compDef.componentDefinitions.forEach[createNode(parentNode, it)]
|
||||||
compDef.propertyAssignments.forEach[createNode(parentNode, it)]
|
compDef.propertyAssignments.forEach[createNode(parentNode, it)]
|
||||||
compDef.namedInstantiations.forEach[createNode(parentNode, it)]
|
compDef.instantiations.forEach[Instantiation instantiation |
|
||||||
|
if(instantiation.component!==null) createNode(parentNode, instantiation.component)
|
||||||
|
instantiation.componentInstances.forEach[createNode(parentNode, it)]
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
protected def _createChildren(IOutlineNode parentNode, EnumDefinition e) {
|
protected def _createChildren(IOutlineNode parentNode, EnumDefinition e) {
|
||||||
@ -50,14 +56,18 @@ class RDLOutlineTreeProvider extends DefaultOutlineTreeProvider {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected def boolean _isLeaf(NamedInstantiation feature) {
|
protected def boolean _isLeaf(Instantiation feature) {
|
||||||
return true;
|
return feature.component===null && feature.componentInstances.size==0;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected def boolean _isLeaf(PropertyAssignmentRhs feature) {
|
protected def boolean _isLeaf(PropertyAssignmentRhs feature) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected def boolean _isLeaf(ComponentInstance feature) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
protected def boolean _isLeaf(EnumEntry feature) {
|
protected def boolean _isLeaf(EnumEntry feature) {
|
||||||
return feature.properties.size==0;
|
return feature.properties.size==0;
|
||||||
}
|
}
|
||||||
|
@ -0,0 +1,36 @@
|
|||||||
|
package com.minres.rdl.ui.preferences
|
||||||
|
|
||||||
|
import org.eclipse.jface.preference.FieldEditorPreferencePage
|
||||||
|
import org.eclipse.ui.IWorkbenchPreferencePage
|
||||||
|
import org.eclipse.ui.IWorkbench
|
||||||
|
import org.eclipse.jface.preference.BooleanFieldEditor
|
||||||
|
import com.minres.rdl.preferences.PreferenceConstants
|
||||||
|
import org.eclipse.ui.preferences.ScopedPreferenceStore
|
||||||
|
import org.eclipse.core.runtime.preferences.InstanceScope
|
||||||
|
import org.eclipse.jface.preference.ComboFieldEditor
|
||||||
|
import org.eclipse.jface.preference.StringFieldEditor
|
||||||
|
|
||||||
|
class RdlPreferencePage extends FieldEditorPreferencePage implements IWorkbenchPreferencePage {
|
||||||
|
|
||||||
|
new() {
|
||||||
|
super(GRID)
|
||||||
|
val store = new ScopedPreferenceStore(InstanceScope.INSTANCE, PreferenceConstants.SCOPE_NAME);
|
||||||
|
setPreferenceStore(store);
|
||||||
|
setDescription("Code generator configuration options");
|
||||||
|
}
|
||||||
|
|
||||||
|
override createFieldEditors() {
|
||||||
|
addField(new BooleanFieldEditor(PreferenceConstants.P_GENERATE_CSV, "Generate CSV:", getFieldEditorParent()));
|
||||||
|
addField(new ComboFieldEditor(PreferenceConstants.P_ADDRESSUNIT, "Address unit size", #[#["Byte (8bit)","byte"], #["Word (16bit)","word"], #["DWord (32bit)","dword"]], getFieldEditorParent()))
|
||||||
|
addField(new StringFieldEditor(PreferenceConstants.P_NAMESPACE, "Namespace of generated SystemC", 30, getFieldEditorParent()))
|
||||||
|
addField(new BooleanFieldEditor(PreferenceConstants.P_OVERWRITE_STUBS, "Always overwrite component stubs", getFieldEditorParent()));
|
||||||
|
addField(new ComboFieldEditor(PreferenceConstants.P_FILETYPES_TO_GENERATE, "File types to generate", #[#["All","all"], #["FW only","fw"], #["SC components","sc-comp"]], getFieldEditorParent()))
|
||||||
|
addField(new StringFieldEditor(PreferenceConstants.P_COMPONENT_PATH, "relative path for SystemC files", 30, getFieldEditorParent()))
|
||||||
|
addField(new StringFieldEditor(PreferenceConstants.P_FIRMWARE_PATH, "relative path for FW files", 30, getFieldEditorParent()))
|
||||||
|
addField(new StringFieldEditor(PreferenceConstants.P_COPYRIGHT_HEADER, "Copyright header", 40, 5, StringFieldEditor.VALIDATE_ON_KEY_STROKE, getFieldEditorParent()))
|
||||||
|
}
|
||||||
|
|
||||||
|
override init(IWorkbench workbench) {
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* generated by Xtext 2.12.0
|
* generated by Xtext 2.14.0
|
||||||
*/
|
*/
|
||||||
package com.minres.rdl.ui.quickfix
|
package com.minres.rdl.ui.quickfix
|
||||||
|
|
||||||
|
@ -0,0 +1,20 @@
|
|||||||
|
package com.minres.rdl.ui.wizard;
|
||||||
|
|
||||||
|
import org.eclipse.osgi.util.NLS;
|
||||||
|
|
||||||
|
public class Messages extends NLS {
|
||||||
|
private static final String BUNDLE_NAME = "com.minres.rdl.ui.wizard.messages"; //$NON-NLS-1$
|
||||||
|
|
||||||
|
public static String HelloWorldProject_Label;
|
||||||
|
public static String HelloWorldProject_Description;
|
||||||
|
public static String RdlProject_Label;
|
||||||
|
public static String RdlProject_Description;
|
||||||
|
|
||||||
|
static {
|
||||||
|
// initialize resource bundle
|
||||||
|
NLS.initializeMessages(BUNDLE_NAME, Messages.class);
|
||||||
|
}
|
||||||
|
|
||||||
|
private Messages() {
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,81 @@
|
|||||||
|
/*
|
||||||
|
* generated by Xtext 2.14.0
|
||||||
|
*/
|
||||||
|
package com.minres.rdl.ui.wizard
|
||||||
|
|
||||||
|
import org.eclipse.xtext.ui.XtextProjectHelper
|
||||||
|
import org.eclipse.xtext.ui.util.PluginProjectFactory
|
||||||
|
import org.eclipse.xtext.ui.wizard.template.IProjectGenerator
|
||||||
|
import org.eclipse.xtext.ui.wizard.template.IProjectTemplateProvider
|
||||||
|
import org.eclipse.xtext.ui.wizard.template.ProjectTemplate
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a list with all project templates to be shown in the template new project wizard.
|
||||||
|
*
|
||||||
|
* Each template is able to generate one or more projects. Each project can be configured such that any number of files are included.
|
||||||
|
*/
|
||||||
|
class RDLProjectTemplateProvider implements IProjectTemplateProvider {
|
||||||
|
override getProjectTemplates() {
|
||||||
|
#[new RdlProject]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@ProjectTemplate(
|
||||||
|
label="RDL template",
|
||||||
|
icon="project_template.png",
|
||||||
|
description="<p><b>RDL</b></p><p>This is a simple project for RDL.</p>")
|
||||||
|
final class RdlProject {
|
||||||
|
// val advanced = check("Advanced:", false)
|
||||||
|
// val advancedGroup = group("Properties")
|
||||||
|
// val name = combo("Name:", #["Xtext", "World", "Foo", "Bar"], "The name to say 'Hello' to", advancedGroup)
|
||||||
|
// val path = text("Package:", "mydsl", "The package path to place the files in", advancedGroup)
|
||||||
|
//
|
||||||
|
// override protected updateVariables() {
|
||||||
|
// name.enabled = advanced.value
|
||||||
|
// path.enabled = advanced.value
|
||||||
|
// if (!advanced.value) {
|
||||||
|
// name.value = "Xtext"
|
||||||
|
// path.value = "rdl"
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// override protected validate() {
|
||||||
|
// if (path.value.matches('[a-z][a-z0-9_]*(/[a-z][a-z0-9_]*)*'))
|
||||||
|
// null
|
||||||
|
// else
|
||||||
|
// new Status(ERROR, "Wizard", "'" + path + "' is not a valid package name")
|
||||||
|
// }
|
||||||
|
|
||||||
|
override generateProjects(IProjectGenerator generator) {
|
||||||
|
generator.generate(new PluginProjectFactory => [
|
||||||
|
projectName = projectInfo.projectName
|
||||||
|
location = projectInfo.locationPath
|
||||||
|
projectNatures += XtextProjectHelper.NATURE_ID //#[JavaCore.NATURE_ID, "org.eclipse.pde.PluginNature", XtextProjectHelper.NATURE_ID]
|
||||||
|
builderIds += XtextProjectHelper.BUILDER_ID //JavaCore.BUILDER_ID
|
||||||
|
folders += "src"
|
||||||
|
addFile('''src/Model.rdl''', '''
|
||||||
|
enum ERRSLICE0_MISSIONERR_ENABLE_ERR25_enum{
|
||||||
|
DISABLE = 1'd0;
|
||||||
|
ENABLE = 1'd1;
|
||||||
|
};
|
||||||
|
addrmap {
|
||||||
|
name = "foo registers";
|
||||||
|
desc = "this is a bunch of foo regs bla bla bla";
|
||||||
|
|
||||||
|
regfile bar_regs {
|
||||||
|
name = "bar registers";
|
||||||
|
desc = "this is a bunch of bar regs bla bla bla";
|
||||||
|
|
||||||
|
reg {
|
||||||
|
field { name="field 1"; sw=rw; hw=rw; we; } fld1[9:0] = 10'd0;
|
||||||
|
field { name="field 2"; sw=rw; hw=r; } fld2[15:15];
|
||||||
|
field {encode=ERRSLICE0_MISSIONERR_ENABLE_ERR25_enum; sw=rw; hw=r; reset=1'h1;} ERR25[25:25];
|
||||||
|
} a_reg[2];
|
||||||
|
|
||||||
|
} bar;
|
||||||
|
|
||||||
|
} foo;
|
||||||
|
''')
|
||||||
|
])
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,4 @@
|
|||||||
|
HelloWorldProject_Label=Hello World
|
||||||
|
HelloWorldProject_Description=<p><b>Hello World</b></p> <p>This is a parameterized hello world for RDL. You can set a parameter to modify the content in the generated file and a parameter to set the package the file is created in.</p>
|
||||||
|
RdlProject_Label=RDL template
|
||||||
|
RdlProject_Description=<p><b>RDL</b></p><p>This is a simple project for RDL.</p>
|
@ -1,12 +0,0 @@
|
|||||||
package com.minres.rdl.ui;
|
|
||||||
|
|
||||||
import org.eclipse.emf.ecore.EObject;
|
|
||||||
import org.eclipse.xtext.documentation.IEObjectDocumentationProvider;
|
|
||||||
|
|
||||||
@SuppressWarnings("all")
|
|
||||||
public class RDLEObjectDocumentationProvider implements IEObjectDocumentationProvider {
|
|
||||||
@Override
|
|
||||||
public String getDocumentation(final EObject o) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,46 +0,0 @@
|
|||||||
package com.minres.rdl.ui;
|
|
||||||
|
|
||||||
import com.minres.rdl.rdl.ComponentDefinition;
|
|
||||||
import com.minres.rdl.rdl.ComponentInstance;
|
|
||||||
import com.minres.rdl.rdl.ImmediateInstantiation;
|
|
||||||
import com.minres.rdl.rdl.NamedInstantiation;
|
|
||||||
import org.eclipse.emf.ecore.EObject;
|
|
||||||
import org.eclipse.xtext.ui.editor.hover.html.DefaultEObjectHoverProvider;
|
|
||||||
|
|
||||||
@SuppressWarnings("all")
|
|
||||||
public class RDLEObjectHoverProvider extends DefaultEObjectHoverProvider {
|
|
||||||
@Override
|
|
||||||
protected String getFirstLine(final EObject o) {
|
|
||||||
boolean _matched = false;
|
|
||||||
if (o instanceof ComponentDefinition) {
|
|
||||||
_matched=true;
|
|
||||||
String _name = ((ComponentDefinition)o).getName();
|
|
||||||
String _plus = ("Component " + _name);
|
|
||||||
String _plus_1 = (_plus + " of type ");
|
|
||||||
String _literal = ((ComponentDefinition)o).getType().getLiteral();
|
|
||||||
return (_plus_1 + _literal);
|
|
||||||
}
|
|
||||||
if (!_matched) {
|
|
||||||
if (o instanceof ComponentInstance) {
|
|
||||||
_matched=true;
|
|
||||||
final EObject parent = ((ComponentInstance)o).eContainer();
|
|
||||||
if ((parent instanceof ImmediateInstantiation)) {
|
|
||||||
EObject _eContainer = ((ImmediateInstantiation)parent).eContainer();
|
|
||||||
final ComponentDefinition compDef = ((ComponentDefinition) _eContainer);
|
|
||||||
String _literal = compDef.getType().getLiteral();
|
|
||||||
String _plus = (_literal + " ");
|
|
||||||
String _name = ((ComponentInstance)o).getName();
|
|
||||||
return (_plus + _name);
|
|
||||||
} else {
|
|
||||||
if ((parent instanceof NamedInstantiation)) {
|
|
||||||
String _literal_1 = ((NamedInstantiation)parent).getComponent().getType().getLiteral();
|
|
||||||
String _plus_1 = (_literal_1 + " ");
|
|
||||||
String _name_1 = ((ComponentInstance)o).getName();
|
|
||||||
return (_plus_1 + _name_1);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return super.getFirstLine(o);
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,31 +0,0 @@
|
|||||||
/**
|
|
||||||
* generated by Xtext 2.12.0
|
|
||||||
*/
|
|
||||||
package com.minres.rdl.ui;
|
|
||||||
|
|
||||||
import com.minres.rdl.ui.AbstractRDLUiModule;
|
|
||||||
import com.minres.rdl.ui.RDLEObjectDocumentationProvider;
|
|
||||||
import com.minres.rdl.ui.RDLEObjectHoverProvider;
|
|
||||||
import org.eclipse.ui.plugin.AbstractUIPlugin;
|
|
||||||
import org.eclipse.xtend.lib.annotations.FinalFieldsConstructor;
|
|
||||||
import org.eclipse.xtext.documentation.IEObjectDocumentationProvider;
|
|
||||||
import org.eclipse.xtext.ui.editor.hover.IEObjectHoverProvider;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Use this class to register components to be used within the Eclipse IDE.
|
|
||||||
*/
|
|
||||||
@FinalFieldsConstructor
|
|
||||||
@SuppressWarnings("all")
|
|
||||||
public class RDLUiModule extends AbstractRDLUiModule {
|
|
||||||
public Class<? extends IEObjectHoverProvider> bindIEObjectHoverProvider() {
|
|
||||||
return RDLEObjectHoverProvider.class;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Class<? extends IEObjectDocumentationProvider> bindIEObjectDocumentationProviderr() {
|
|
||||||
return RDLEObjectDocumentationProvider.class;
|
|
||||||
}
|
|
||||||
|
|
||||||
public RDLUiModule(final AbstractUIPlugin arg0) {
|
|
||||||
super(arg0);
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,14 +0,0 @@
|
|||||||
/**
|
|
||||||
* generated by Xtext 2.12.0
|
|
||||||
*/
|
|
||||||
package com.minres.rdl.ui.contentassist;
|
|
||||||
|
|
||||||
import com.minres.rdl.ui.contentassist.AbstractRDLProposalProvider;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* See https://www.eclipse.org/Xtext/documentation/304_ide_concepts.html#content-assist
|
|
||||||
* on how to customize the content assistant.
|
|
||||||
*/
|
|
||||||
@SuppressWarnings("all")
|
|
||||||
public class RDLProposalProvider extends AbstractRDLProposalProvider {
|
|
||||||
}
|
|
@ -1,15 +0,0 @@
|
|||||||
/**
|
|
||||||
* generated by Xtext 2.12.0
|
|
||||||
*/
|
|
||||||
package com.minres.rdl.ui.labeling;
|
|
||||||
|
|
||||||
import org.eclipse.xtext.ui.label.DefaultDescriptionLabelProvider;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Provides labels for IEObjectDescriptions and IResourceDescriptions.
|
|
||||||
*
|
|
||||||
* See https://www.eclipse.org/Xtext/documentation/304_ide_concepts.html#label-provider
|
|
||||||
*/
|
|
||||||
@SuppressWarnings("all")
|
|
||||||
public class RDLDescriptionLabelProvider extends DefaultDescriptionLabelProvider {
|
|
||||||
}
|
|
@ -1,415 +0,0 @@
|
|||||||
/**
|
|
||||||
* generated by Xtext 2.12.0
|
|
||||||
*/
|
|
||||||
package com.minres.rdl.ui.labeling;
|
|
||||||
|
|
||||||
import com.google.common.base.Objects;
|
|
||||||
import com.google.inject.Inject;
|
|
||||||
import com.minres.rdl.IntegerWithRadix;
|
|
||||||
import com.minres.rdl.rdl.ComponentDefinition;
|
|
||||||
import com.minres.rdl.rdl.ComponentDefinitionType;
|
|
||||||
import com.minres.rdl.rdl.ComponentInstance;
|
|
||||||
import com.minres.rdl.rdl.EnumDefinition;
|
|
||||||
import com.minres.rdl.rdl.EnumEntry;
|
|
||||||
import com.minres.rdl.rdl.EnumProperty;
|
|
||||||
import com.minres.rdl.rdl.ExplicitPropertyAssignment;
|
|
||||||
import com.minres.rdl.rdl.ImmediateInstantiation;
|
|
||||||
import com.minres.rdl.rdl.InstancePropertyRef;
|
|
||||||
import com.minres.rdl.rdl.InstanceRef;
|
|
||||||
import com.minres.rdl.rdl.NamedInstantiation;
|
|
||||||
import com.minres.rdl.rdl.PostPropertyAssignment;
|
|
||||||
import com.minres.rdl.rdl.PropertyAssignment;
|
|
||||||
import com.minres.rdl.rdl.PropertyAssignmentRhs;
|
|
||||||
import com.minres.rdl.rdl.PropertyDefinition;
|
|
||||||
import com.minres.rdl.rdl.PropertyEnum;
|
|
||||||
import com.minres.rdl.rdl.PropertyModifier;
|
|
||||||
import com.minres.rdl.rdl.RValue;
|
|
||||||
import com.minres.rdl.rdl.RValueConstant;
|
|
||||||
import com.minres.rdl.rdl.Range;
|
|
||||||
import org.eclipse.emf.edit.ui.provider.AdapterFactoryLabelProvider;
|
|
||||||
import org.eclipse.xtext.ui.label.DefaultEObjectLabelProvider;
|
|
||||||
import org.eclipse.xtext.xbase.lib.Functions.Function1;
|
|
||||||
import org.eclipse.xtext.xbase.lib.IterableExtensions;
|
|
||||||
import org.eclipse.xtext.xbase.lib.ListExtensions;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Provides labels for EObjects.
|
|
||||||
*
|
|
||||||
* See https://www.eclipse.org/Xtext/documentation/304_ide_concepts.html#label-provider
|
|
||||||
*/
|
|
||||||
@SuppressWarnings("all")
|
|
||||||
public class RDLLabelProvider extends DefaultEObjectLabelProvider {
|
|
||||||
@Inject
|
|
||||||
public RDLLabelProvider(final AdapterFactoryLabelProvider delegate) {
|
|
||||||
super(delegate);
|
|
||||||
}
|
|
||||||
|
|
||||||
public String text(final ComponentDefinition e) {
|
|
||||||
String _xifexpression = null;
|
|
||||||
ImmediateInstantiation _immediateInstantiation = e.getImmediateInstantiation();
|
|
||||||
boolean _tripleNotEquals = (_immediateInstantiation != null);
|
|
||||||
if (_tripleNotEquals) {
|
|
||||||
String _xifexpression_1 = null;
|
|
||||||
String _name = e.getName();
|
|
||||||
boolean _tripleNotEquals_1 = (_name != null);
|
|
||||||
if (_tripleNotEquals_1) {
|
|
||||||
String _text = this.text(e.getImmediateInstantiation());
|
|
||||||
String _plus = (_text + " (");
|
|
||||||
String _name_1 = e.getName();
|
|
||||||
String _plus_1 = (_plus + _name_1);
|
|
||||||
_xifexpression_1 = (_plus_1 + ")");
|
|
||||||
} else {
|
|
||||||
_xifexpression_1 = this.text(e.getImmediateInstantiation());
|
|
||||||
}
|
|
||||||
_xifexpression = _xifexpression_1;
|
|
||||||
} else {
|
|
||||||
String _xifexpression_2 = null;
|
|
||||||
String _name_2 = e.getName();
|
|
||||||
boolean _tripleNotEquals_2 = (_name_2 != null);
|
|
||||||
if (_tripleNotEquals_2) {
|
|
||||||
String _literal = e.getType().getLiteral();
|
|
||||||
String _plus_2 = (_literal + " ");
|
|
||||||
String _name_3 = e.getName();
|
|
||||||
_xifexpression_2 = (_plus_2 + _name_3);
|
|
||||||
} else {
|
|
||||||
String _xblockexpression = null;
|
|
||||||
{
|
|
||||||
final Function1<PropertyAssignment, Boolean> _function = (PropertyAssignment pa) -> {
|
|
||||||
return Boolean.valueOf(((pa instanceof ExplicitPropertyAssignment) && Objects.equal(((ExplicitPropertyAssignment) pa).getName(), PropertyEnum.NAME)));
|
|
||||||
};
|
|
||||||
final PropertyAssignment pa = IterableExtensions.<PropertyAssignment>findFirst(e.getPropertyAssignments(), _function);
|
|
||||||
String _literal_1 = e.getType().getLiteral();
|
|
||||||
String _plus_3 = (_literal_1 + " ");
|
|
||||||
Object _text_1 = this.text(((ExplicitPropertyAssignment) pa).getRhs());
|
|
||||||
_xblockexpression = (_plus_3 + _text_1);
|
|
||||||
}
|
|
||||||
_xifexpression_2 = _xblockexpression;
|
|
||||||
}
|
|
||||||
_xifexpression = _xifexpression_2;
|
|
||||||
}
|
|
||||||
return _xifexpression;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String text(final ExplicitPropertyAssignment e) {
|
|
||||||
String res = "";
|
|
||||||
PropertyModifier _modifier = e.getModifier();
|
|
||||||
boolean _notEquals = (!Objects.equal(_modifier, PropertyModifier.UNDEFINED));
|
|
||||||
if (_notEquals) {
|
|
||||||
String _res = res;
|
|
||||||
String _literal = e.getModifier().getLiteral();
|
|
||||||
String _plus = (_literal + " ");
|
|
||||||
res = (_res + _plus);
|
|
||||||
}
|
|
||||||
String _res_1 = res;
|
|
||||||
PropertyEnum _name = e.getName();
|
|
||||||
res = (_res_1 + _name);
|
|
||||||
PropertyAssignmentRhs _rhs = e.getRhs();
|
|
||||||
boolean _tripleNotEquals = (_rhs != null);
|
|
||||||
if (_tripleNotEquals) {
|
|
||||||
String _res_2 = res;
|
|
||||||
Object _text = this.text(e.getRhs());
|
|
||||||
String _plus_1 = (" = " + _text);
|
|
||||||
res = (_res_2 + _plus_1);
|
|
||||||
}
|
|
||||||
return res;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String text(final PostPropertyAssignment e) {
|
|
||||||
String res = "";
|
|
||||||
String _res = res;
|
|
||||||
String _text = this.text(e.getInstance());
|
|
||||||
res = (_res + _text);
|
|
||||||
PropertyDefinition _property = e.getProperty();
|
|
||||||
boolean _tripleNotEquals = (_property != null);
|
|
||||||
if (_tripleNotEquals) {
|
|
||||||
String _res_1 = res;
|
|
||||||
String _name = e.getProperty().getName();
|
|
||||||
String _plus = ("->" + _name);
|
|
||||||
res = (_res_1 + _plus);
|
|
||||||
} else {
|
|
||||||
PropertyEnum _propertyEnum = e.getPropertyEnum();
|
|
||||||
boolean _notEquals = (!Objects.equal(_propertyEnum, PropertyEnum.UNSPECIFIED));
|
|
||||||
if (_notEquals) {
|
|
||||||
String _res_2 = res;
|
|
||||||
String _literal = e.getPropertyEnum().getLiteral();
|
|
||||||
String _plus_1 = ("->" + _literal);
|
|
||||||
res = (_res_2 + _plus_1);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return res;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String text(final InstanceRef e) {
|
|
||||||
String _xifexpression = null;
|
|
||||||
InstanceRef _tail = e.getTail();
|
|
||||||
boolean _tripleNotEquals = (_tail != null);
|
|
||||||
if (_tripleNotEquals) {
|
|
||||||
String _name = e.getInstance().getName();
|
|
||||||
String _plus = (_name + ".");
|
|
||||||
String _text = this.text(e.getTail());
|
|
||||||
_xifexpression = (_plus + _text);
|
|
||||||
} else {
|
|
||||||
_xifexpression = e.getInstance().getName();
|
|
||||||
}
|
|
||||||
return _xifexpression;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String text(final ImmediateInstantiation e) {
|
|
||||||
final Function1<ComponentInstance, String> _function = (ComponentInstance it) -> {
|
|
||||||
return this.text(it);
|
|
||||||
};
|
|
||||||
return IterableExtensions.join(ListExtensions.<ComponentInstance, String>map(e.getComponentInstances(), _function), ", ");
|
|
||||||
}
|
|
||||||
|
|
||||||
public String text(final ComponentInstance e) {
|
|
||||||
String res = e.getName();
|
|
||||||
Range _range = e.getRange();
|
|
||||||
boolean _tripleNotEquals = (_range != null);
|
|
||||||
if (_tripleNotEquals) {
|
|
||||||
String _res = res;
|
|
||||||
String _xifexpression = null;
|
|
||||||
Object _size = e.getRange().getSize();
|
|
||||||
boolean _tripleNotEquals_1 = (_size != null);
|
|
||||||
if (_tripleNotEquals_1) {
|
|
||||||
_xifexpression = e.getRange().getSize().toString();
|
|
||||||
} else {
|
|
||||||
Object _start = e.getRange().getStart();
|
|
||||||
String _plus = (_start + ":");
|
|
||||||
Object _end = e.getRange().getEnd();
|
|
||||||
_xifexpression = (_plus + _end);
|
|
||||||
}
|
|
||||||
String _plus_1 = ("[" + _xifexpression);
|
|
||||||
String _plus_2 = (_plus_1 + "]");
|
|
||||||
res = (_res + _plus_2);
|
|
||||||
}
|
|
||||||
Object _address = e.getAddress();
|
|
||||||
boolean _tripleNotEquals_2 = (_address != null);
|
|
||||||
if (_tripleNotEquals_2) {
|
|
||||||
String _res_1 = res;
|
|
||||||
Object _address_1 = e.getAddress();
|
|
||||||
String _plus_3 = (" @" + _address_1);
|
|
||||||
res = (_res_1 + _plus_3);
|
|
||||||
}
|
|
||||||
return res;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Object text(final PropertyAssignmentRhs e) {
|
|
||||||
Object _xifexpression = null;
|
|
||||||
RValue _value = e.getValue();
|
|
||||||
boolean _tripleNotEquals = (_value != null);
|
|
||||||
if (_tripleNotEquals) {
|
|
||||||
_xifexpression = this.text(e.getValue());
|
|
||||||
} else {
|
|
||||||
Object _xifexpression_1 = null;
|
|
||||||
InstancePropertyRef _instPropRef = e.getInstPropRef();
|
|
||||||
boolean _tripleNotEquals_1 = (_instPropRef != null);
|
|
||||||
if (_tripleNotEquals_1) {
|
|
||||||
_xifexpression_1 = this.text(e.getInstPropRef());
|
|
||||||
} else {
|
|
||||||
Object _xifexpression_2 = null;
|
|
||||||
EnumDefinition _enumRef = e.getEnumRef();
|
|
||||||
boolean _tripleNotEquals_2 = (_enumRef != null);
|
|
||||||
if (_tripleNotEquals_2) {
|
|
||||||
_xifexpression_2 = this.text(e.getEnumRef());
|
|
||||||
}
|
|
||||||
_xifexpression_1 = _xifexpression_2;
|
|
||||||
}
|
|
||||||
_xifexpression = _xifexpression_1;
|
|
||||||
}
|
|
||||||
return _xifexpression;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String text(final InstancePropertyRef ref) {
|
|
||||||
String _text = this.text(ref.getInstance());
|
|
||||||
String _xifexpression = null;
|
|
||||||
PropertyDefinition _property = ref.getProperty();
|
|
||||||
boolean _tripleNotEquals = (_property != null);
|
|
||||||
if (_tripleNotEquals) {
|
|
||||||
String _name = ref.getProperty().getName();
|
|
||||||
_xifexpression = ("->" + _name);
|
|
||||||
} else {
|
|
||||||
String _xifexpression_1 = null;
|
|
||||||
PropertyEnum _propertyEnum = ref.getPropertyEnum();
|
|
||||||
boolean _notEquals = (!Objects.equal(_propertyEnum, PropertyEnum.UNSPECIFIED));
|
|
||||||
if (_notEquals) {
|
|
||||||
String _literal = ref.getPropertyEnum().getLiteral();
|
|
||||||
_xifexpression_1 = ("->" + _literal);
|
|
||||||
} else {
|
|
||||||
_xifexpression_1 = "";
|
|
||||||
}
|
|
||||||
_xifexpression = _xifexpression_1;
|
|
||||||
}
|
|
||||||
return (_text + _xifexpression);
|
|
||||||
}
|
|
||||||
|
|
||||||
public String text(final RValue e) {
|
|
||||||
String _xifexpression = null;
|
|
||||||
String _str = e.getStr();
|
|
||||||
boolean _tripleNotEquals = (_str != null);
|
|
||||||
if (_tripleNotEquals) {
|
|
||||||
_xifexpression = this.elipse(e.getStr());
|
|
||||||
} else {
|
|
||||||
RValueConstant _val = e.getVal();
|
|
||||||
boolean _notEquals = (!Objects.equal(_val, RValueConstant.UNDEFINED));
|
|
||||||
if (_notEquals) {
|
|
||||||
return e.getVal().getLiteral();
|
|
||||||
} else {
|
|
||||||
Object _num = e.getNum();
|
|
||||||
boolean _tripleNotEquals_1 = (_num != null);
|
|
||||||
if (_tripleNotEquals_1) {
|
|
||||||
Object _num_1 = e.getNum();
|
|
||||||
final IntegerWithRadix num = ((IntegerWithRadix) _num_1);
|
|
||||||
return num.toString();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return _xifexpression;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String elipse(final String string) {
|
|
||||||
final int pos = string.indexOf("\n");
|
|
||||||
if ((pos > 0)) {
|
|
||||||
String _substring = string.substring(0, (pos - 1));
|
|
||||||
return (_substring + "...");
|
|
||||||
} else {
|
|
||||||
int _length = string.length();
|
|
||||||
boolean _greaterThan = (_length > 30);
|
|
||||||
if (_greaterThan) {
|
|
||||||
String _substring_1 = string.substring(0, 30);
|
|
||||||
return (_substring_1 + "...");
|
|
||||||
} else {
|
|
||||||
return string;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public String text(final NamedInstantiation e) {
|
|
||||||
final Function1<ComponentInstance, String> _function = (ComponentInstance it) -> {
|
|
||||||
return this.text(it);
|
|
||||||
};
|
|
||||||
String _join = IterableExtensions.join(ListExtensions.<ComponentInstance, String>map(e.getComponentInstances(), _function), ", ");
|
|
||||||
String _plus = (_join + " (");
|
|
||||||
String _name = e.getComponent().getName();
|
|
||||||
String _plus_1 = (_plus + _name);
|
|
||||||
return (_plus_1 + ")");
|
|
||||||
}
|
|
||||||
|
|
||||||
public String text(final EnumEntry e) {
|
|
||||||
String _xifexpression = null;
|
|
||||||
Object _index = e.getIndex();
|
|
||||||
boolean _tripleNotEquals = (_index != null);
|
|
||||||
if (_tripleNotEquals) {
|
|
||||||
String _name = e.getName();
|
|
||||||
String _plus = (_name + "=");
|
|
||||||
String _string = e.getIndex().toString();
|
|
||||||
_xifexpression = (_plus + _string);
|
|
||||||
} else {
|
|
||||||
String _name_1 = e.getName();
|
|
||||||
String _plus_1 = (_name_1 + "=");
|
|
||||||
final Function1<EnumProperty, String> _function = (EnumProperty it) -> {
|
|
||||||
return this.text(it);
|
|
||||||
};
|
|
||||||
String _join = IterableExtensions.join(ListExtensions.<EnumProperty, String>map(e.getProperties(), _function), ",");
|
|
||||||
_xifexpression = (_plus_1 + _join);
|
|
||||||
}
|
|
||||||
return _xifexpression;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String text(final EnumProperty e) {
|
|
||||||
String _name = e.getName();
|
|
||||||
String _plus = (_name + "=");
|
|
||||||
String _elipse = this.elipse(e.getValue());
|
|
||||||
return (_plus + _elipse);
|
|
||||||
}
|
|
||||||
|
|
||||||
public String image(final ComponentDefinition e) {
|
|
||||||
ComponentDefinitionType _type = e.getType();
|
|
||||||
if (_type != null) {
|
|
||||||
switch (_type) {
|
|
||||||
case ADDRMAP:
|
|
||||||
return "A.png";
|
|
||||||
case FIELD:
|
|
||||||
return "F.png";
|
|
||||||
case REG:
|
|
||||||
return "R.png";
|
|
||||||
case REGFILE:
|
|
||||||
return "R.png";
|
|
||||||
case SIGNAL:
|
|
||||||
return "S.png";
|
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String image(final PropertyAssignmentRhs e) {
|
|
||||||
String _xifexpression = null;
|
|
||||||
RValue _value = e.getValue();
|
|
||||||
boolean _tripleNotEquals = (_value != null);
|
|
||||||
if (_tripleNotEquals) {
|
|
||||||
_xifexpression = "V.png";
|
|
||||||
} else {
|
|
||||||
String _xifexpression_1 = null;
|
|
||||||
InstancePropertyRef _instPropRef = e.getInstPropRef();
|
|
||||||
boolean _tripleNotEquals_1 = (_instPropRef != null);
|
|
||||||
if (_tripleNotEquals_1) {
|
|
||||||
_xifexpression_1 = this.image(e.getInstPropRef());
|
|
||||||
} else {
|
|
||||||
String _xifexpression_2 = null;
|
|
||||||
EnumDefinition _enumRef = e.getEnumRef();
|
|
||||||
boolean _tripleNotEquals_2 = (_enumRef != null);
|
|
||||||
if (_tripleNotEquals_2) {
|
|
||||||
_xifexpression_2 = "E.png";
|
|
||||||
}
|
|
||||||
_xifexpression_1 = _xifexpression_2;
|
|
||||||
}
|
|
||||||
_xifexpression = _xifexpression_1;
|
|
||||||
}
|
|
||||||
return _xifexpression;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String image(final InstancePropertyRef ref) {
|
|
||||||
String _xifexpression = null;
|
|
||||||
PropertyDefinition _property = ref.getProperty();
|
|
||||||
boolean _tripleNotEquals = (_property != null);
|
|
||||||
if (_tripleNotEquals) {
|
|
||||||
_xifexpression = "P.png";
|
|
||||||
} else {
|
|
||||||
String _xifexpression_1 = null;
|
|
||||||
PropertyEnum _propertyEnum = ref.getPropertyEnum();
|
|
||||||
boolean _notEquals = (!Objects.equal(_propertyEnum, PropertyEnum.UNSPECIFIED));
|
|
||||||
if (_notEquals) {
|
|
||||||
_xifexpression_1 = "E.png";
|
|
||||||
} else {
|
|
||||||
_xifexpression_1 = "I.png";
|
|
||||||
}
|
|
||||||
_xifexpression = _xifexpression_1;
|
|
||||||
}
|
|
||||||
return _xifexpression;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String image(final EnumDefinition e) {
|
|
||||||
return "E.png";
|
|
||||||
}
|
|
||||||
|
|
||||||
public String image(final ExplicitPropertyAssignment e) {
|
|
||||||
return "P.png";
|
|
||||||
}
|
|
||||||
|
|
||||||
public String image(final PostPropertyAssignment e) {
|
|
||||||
return "P.png";
|
|
||||||
}
|
|
||||||
|
|
||||||
public String image(final NamedInstantiation e) {
|
|
||||||
return "I.png";
|
|
||||||
}
|
|
||||||
|
|
||||||
public String image(final EnumEntry v) {
|
|
||||||
return "V.png";
|
|
||||||
}
|
|
||||||
|
|
||||||
public String image(final EnumProperty e) {
|
|
||||||
return "P.png";
|
|
||||||
}
|
|
||||||
}
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user