Skip to content

Commit d6a2ec3

Browse files
committed
add language server support
1 parent 5629e47 commit d6a2ec3

35 files changed

Lines changed: 928 additions & 21 deletions

File tree

plugins/de.fraunhofer.ipa.componentInterface.xtext.ide/META-INF/MANIFEST.MF

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Require-Bundle: de.fraunhofer.ipa.componentInterface.xtext,
99
de.fraunhofer.ipa.componentInterface,
1010
org.eclipse.xtext.ide,
1111
org.eclipse.xtext.xbase.ide,
12-
org.antlr.runtime
12+
org.antlr.runtime;bundle-version="[3.2.0,3.2.1)"
1313
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
1414
Export-Package: de.fraunhofer.ipa.componentInterface.ide.contentassist.antlr,
1515
de.fraunhofer.ipa.componentInterface.ide.contentassist.antlr.internal

plugins/de.fraunhofer.ipa.componentInterface.xtext.ide/pom.xml

Lines changed: 125 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,131 @@
2727
</execution>
2828
</executions>
2929
</plugin>
30+
<plugin>
31+
<groupId>org.apache.maven.plugins</groupId>
32+
<artifactId>maven-dependency-plugin</artifactId>
33+
<version>3.0.1</version>
34+
<executions>
35+
<execution>
36+
<id>copy-dependencies</id>
37+
<phase>generate-sources</phase>
38+
<goals>
39+
<goal>copy-dependencies</goal>
40+
</goals>
41+
<configuration>
42+
<outputDirectory>${project.build.directory}/libs</outputDirectory>
43+
<overWriteReleases>false</overWriteReleases>
44+
<overWriteSnapshots>false</overWriteSnapshots>
45+
<overWriteIfNewer>true</overWriteIfNewer>
46+
<excludeTransitive>true</excludeTransitive>
47+
<stripVersion>true</stripVersion>
48+
<excludeArtifactIds>
49+
com.ibm.icu,
50+
org.apache.ant,
51+
org.apache.commons.lang,
52+
org.apache.commons.logging,
53+
org.eclipse.core.commands,
54+
org.eclipse.core.contenttype,
55+
org.eclipse.core.expressions,
56+
org.eclipse.core.filesystem,
57+
org.eclipse.core.jobs,
58+
org.eclipse.core.resources,
59+
org.eclipse.core.runtime,
60+
org.eclipse.core.variables,
61+
org.eclipse.debug.core,
62+
org.eclipse.emf.codegen.ecore,
63+
org.eclipse.emf.codegen,
64+
org.eclipse.emf.mwe.core,
65+
org.eclipse.emf.mwe.utils,
66+
org.eclipse.emf.mwe2.lib,
67+
org.eclipse.emf.mwe2.runtime,
68+
org.eclipse.equinox.app,
69+
org.eclipse.equinox.preferences,
70+
org.eclipse.equinox.registry,
71+
org.eclipse.jdt.core,
72+
org.eclipse.jdt.debug,
73+
org.eclipse.jdt.launching,
74+
org.eclipse.text,
75+
org.eclipse.xtend.typesystem.emf,
76+
org.eclipse.xtend,
77+
</excludeArtifactIds>
78+
</configuration>
79+
</execution>
80+
</executions>
81+
</plugin>
82+
<plugin>
83+
<groupId>com.googlecode.addjars-maven-plugin</groupId>
84+
<artifactId>addjars-maven-plugin</artifactId>
85+
<version>1.0.5</version>
86+
<executions>
87+
<execution>
88+
<phase>package</phase>
89+
<goals>
90+
<goal>add-jars</goal>
91+
</goals>
92+
<configuration>
93+
<resources>
94+
<resource>
95+
<directory>${project.build.directory}/libs</directory>
96+
</resource>
97+
</resources>
98+
</configuration>
99+
</execution>
100+
</executions>
101+
</plugin>
102+
<plugin>
103+
<groupId>org.apache.maven.plugins</groupId>
104+
<artifactId>maven-shade-plugin</artifactId>
105+
<version>3.0.0</version>
106+
<configuration>
107+
<transformers>
108+
<transformer
109+
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
110+
<mainClass>org.eclipse.xtext.ide.server.ServerLauncher</mainClass>
111+
</transformer>
112+
<transformer
113+
implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
114+
<resource>plugin.properties</resource>
115+
</transformer>
116+
</transformers>
117+
<filters>
118+
<filter>
119+
<artifact>*:*</artifact>
120+
<excludes>
121+
<exclude>META-INF/INDEX.LIST</exclude>
122+
<exclude>META-INF/*.SF</exclude>
123+
<exclude>META-INF/*.DSA</exclude>
124+
<exclude>META-INF/*.RSA</exclude>
125+
<exclude>.options</exclude>
126+
<exclude>.api_description</exclude>
127+
<exclude>*.profile</exclude>
128+
<exclude>*.html</exclude>
129+
<exclude>about.*</exclude>
130+
<exclude>about_files/*</exclude>
131+
<exclude>plugin.xml</exclude>
132+
<exclude>modeling32.png</exclude>
133+
<exclude>systembundle.properties</exclude>
134+
<exclude>profile.list</exclude>
135+
<exclude>**/*._trace</exclude>
136+
<exclude>**/*.g</exclude>
137+
<exclude>**/*.mwe2</exclude>
138+
<exclude>**/*.xtext</exclude>
139+
</excludes>
140+
</filter>
141+
</filters>
142+
<shadedArtifactAttached>true</shadedArtifactAttached>
143+
<shadedClassifierName>ls</shadedClassifierName>
144+
<minimizeJar>false</minimizeJar>
145+
</configuration>
146+
<executions>
147+
<execution>
148+
<phase>package</phase>
149+
<goals>
150+
<goal>shade</goal>
151+
</goals>
152+
</execution>
153+
</executions>
154+
</plugin>
30155
</plugins>
31156
</build>
32157
</project>

plugins/de.fraunhofer.ipa.componentInterface.xtext.ui/META-INF/MANIFEST.MF

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ Require-Bundle: de.fraunhofer.ipa.componentInterface.xtext,
1515
org.eclipse.ui,
1616
org.eclipse.compare,
1717
org.eclipse.xtext.builder,
18-
org.eclipse.xtend.lib,
19-
org.eclipse.xtext.xbase.lib,
18+
org.eclipse.xtend.lib;bundle-version="2.14.0",
19+
org.eclipse.xtext.xbase.lib;bundle-version="2.14.0",
2020
org.eclipse.ui.editors
2121
Import-Package: org.apache.log4j,
2222
org.eclipse.xtext.generator

plugins/de.fraunhofer.ipa.componentInterface.xtext/META-INF/MANIFEST.MF

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ Require-Bundle: de.fraunhofer.ipa.componentInterface,
99
org.eclipse.xtext,
1010
org.eclipse.xtext.xbase,
1111
org.eclipse.equinox.common,
12-
org.eclipse.xtext.xbase.lib,
13-
org.antlr.runtime,
12+
org.eclipse.xtext.xbase.lib;bundle-version="2.14.0",
13+
org.antlr.runtime;bundle-version="[3.2.0,3.2.1)",
1414
org.eclipse.xtext.util,
15-
org.eclipse.xtend.lib
15+
org.eclipse.xtend.lib;bundle-version="2.14.0"
1616
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
1717
Export-Package: de.fraunhofer.ipa.componentInterface,
1818
de.fraunhofer.ipa.componentInterface.parser.antlr.internal,
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<classpath>
3+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5">
4+
<attributes>
5+
<attribute name="maven.pomderived" value="true"/>
6+
</attributes>
7+
</classpathentry>
8+
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
9+
<attributes>
10+
<attribute name="maven.pomderived" value="true"/>
11+
</attributes>
12+
</classpathentry>
13+
<classpathentry kind="output" path="target/classes"/>
14+
</classpath>
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>de.fraunhofer.ipa.ros.externalDependencies</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>org.eclipse.jdt.core.javabuilder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
13+
<buildCommand>
14+
<name>org.eclipse.m2e.core.maven2Builder</name>
15+
<arguments>
16+
</arguments>
17+
</buildCommand>
18+
</buildSpec>
19+
<natures>
20+
<nature>org.eclipse.jdt.core.javanature</nature>
21+
<nature>org.eclipse.m2e.core.maven2Nature</nature>
22+
</natures>
23+
</projectDescription>
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
eclipse.preferences.version=1
2+
encoding/<project>=UTF-8
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
eclipse.preferences.version=1
2+
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
3+
org.eclipse.jdt.core.compiler.compliance=1.5
4+
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
5+
org.eclipse.jdt.core.compiler.release=disabled
6+
org.eclipse.jdt.core.compiler.source=1.5
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
activeProfiles=
2+
eclipse.preferences.version=1
3+
resolveWorkspaceProjects=true
4+
version=1
Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001 XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
5+
<modelVersion>4.0.0</modelVersion>
6+
7+
<groupId>de.fraunhofer.ipa.ros.externalDependencies</groupId>
8+
<artifactId>de.fraunhofer.ipa.ros.externalDependencies</artifactId>
9+
<version>1.0.0-SNAPSHOT</version>
10+
<packaging>pom</packaging>
11+
12+
<properties>
13+
<sprottyVersion>0.7.0-SNAPSHOT</sprottyVersion>
14+
<elkVersion>0.5.0</elkVersion>
15+
</properties>
16+
17+
<repositories>
18+
<repository>
19+
<id>sonatype-oss</id>
20+
<name>sonatype-oss</name>
21+
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
22+
</repository>
23+
</repositories>
24+
25+
<build>
26+
<plugins>
27+
<plugin>
28+
<groupId>org.reficio</groupId>
29+
<artifactId>p2-maven-plugin</artifactId>
30+
<version>1.3.0</version>
31+
<executions>
32+
<execution>
33+
<id>default-cli</id>
34+
<configuration>
35+
<featureDefinitions>
36+
<feature>
37+
<id>de.fraunhofer.ipa.ros.externalDependencies</id>
38+
<version>${project.version}</version>
39+
<label>ROS Model Maven dependencies</label>
40+
<providerName>${project.groupId}</providerName>
41+
<description>${project.description}</description>
42+
<artifacts>
43+
<!-- specify your dependencies here -->
44+
<!-- groupId:artifactId:version -->
45+
<artifact>
46+
<id>org.ow2.asm:asm:7.0</id>
47+
<transitive>false</transitive>
48+
</artifact>
49+
<artifact>
50+
<id>org.ow2.asm:asm-commons:7.0</id>
51+
<transitive>false</transitive>
52+
</artifact>
53+
<artifact>
54+
<id>org.ow2.asm:asm-tree:7.0</id>
55+
<transitive>false</transitive>
56+
</artifact>
57+
<artifact>
58+
<id>org.eclipse.sprotty:org.eclipse.sprotty:${sprottyVersion}</id>
59+
<transitive>false</transitive>
60+
</artifact>
61+
<artifact>
62+
<id>org.eclipse.sprotty:org.eclipse.sprotty.server:${sprottyVersion}</id>
63+
<transitive>false</transitive>
64+
</artifact>
65+
<artifact>
66+
<id>org.eclipse.sprotty:org.eclipse.sprotty.xtext:${sprottyVersion}</id>
67+
<transitive>false</transitive>
68+
</artifact>
69+
<artifact>
70+
<id>org.eclipse.sprotty:org.eclipse.sprotty.layout:${sprottyVersion}</id>
71+
<transitive>false</transitive>
72+
</artifact>
73+
<artifact>
74+
<id>org.eclipse.elk:org.eclipse.elk.alg.layered:${elkVersion}</id>
75+
<transitive>false</transitive>
76+
</artifact>
77+
<artifact>
78+
<id>org.eclipse.elk:org.eclipse.elk.alg.common:${elkVersion}</id>
79+
<transitive>false</transitive>
80+
</artifact>
81+
<artifact>
82+
<id>org.eclipse.elk:org.eclipse.elk.core:${elkVersion}</id>
83+
<transitive>false</transitive>
84+
</artifact>
85+
<artifact>
86+
<id>org.eclipse.elk:org.eclipse.elk.graph:${elkVersion}</id>
87+
<transitive>false</transitive>
88+
</artifact>
89+
<artifact>
90+
<id>com.google.code.gson:gson:2.8.5</id>
91+
<transitive>false</transitive>
92+
</artifact>
93+
</artifacts>
94+
</feature>
95+
</featureDefinitions>
96+
</configuration>
97+
</execution>
98+
</executions>
99+
</plugin>
100+
101+
<plugin>
102+
<groupId>org.mortbay.jetty</groupId>
103+
<artifactId>jetty-maven-plugin</artifactId>
104+
<version>8.1.5.v20120716</version>
105+
<configuration>
106+
<scanIntervalSeconds>10</scanIntervalSeconds>
107+
<webAppSourceDirectory>${project.build.directory}/repository/</webAppSourceDirectory>
108+
<webApp>
109+
<contextPath>/site</contextPath>
110+
</webApp>
111+
</configuration>
112+
</plugin>
113+
114+
</plugins>
115+
</build>
116+
117+
</project>

0 commit comments

Comments
 (0)