-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add the skelethon for the ros2 package DSL
- Loading branch information
Showing
71 changed files
with
91,686 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<classpath> | ||
<classpathentry kind="src" path="src"/> | ||
<classpathentry kind="src" path="src-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-11"/> | ||
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/> | ||
<classpathentry kind="output" path="bin"/> | ||
</classpath> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<projectDescription> | ||
<name>de.fraunhofer.ipa.ros2.xtext.ide</name> | ||
<comment></comment> | ||
<projects> | ||
</projects> | ||
<buildSpec> | ||
<buildCommand> | ||
<name>org.eclipse.xtext.ui.shared.xtextBuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
<buildCommand> | ||
<name>org.eclipse.jdt.core.javabuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
<buildCommand> | ||
<name>org.eclipse.pde.ManifestBuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
<buildCommand> | ||
<name>org.eclipse.pde.SchemaBuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
</buildSpec> | ||
<natures> | ||
<nature>org.eclipse.xtext.ui.shared.xtextNature</nature> | ||
<nature>org.eclipse.jdt.core.javanature</nature> | ||
<nature>org.eclipse.pde.PluginNature</nature> | ||
</natures> | ||
</projectDescription> |
2 changes: 2 additions & 0 deletions
2
plugins/de.fraunhofer.ipa.ros2.xtext.ide/.settings/org.eclipse.core.resources.prefs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
eclipse.preferences.version=1 | ||
encoding/<project>=UTF-8 |
10 changes: 10 additions & 0 deletions
10
plugins/de.fraunhofer.ipa.ros2.xtext.ide/.settings/org.eclipse.jdt.core.prefs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
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.reportPreviewFeatures=warning | ||
org.eclipse.jdt.core.compiler.release=enabled | ||
org.eclipse.jdt.core.compiler.source=11 |
19 changes: 19 additions & 0 deletions
19
plugins/de.fraunhofer.ipa.ros2.xtext.ide/META-INF/MANIFEST.MF
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
Manifest-Version: 1.0 | ||
Automatic-Module-Name: de.fraunhofer.ipa.ros2.xtext.ide | ||
Bundle-ManifestVersion: 2 | ||
Bundle-Name: de.fraunhofer.ipa.ros2.xtext.ide | ||
Bundle-Vendor: My Company | ||
Bundle-Version: 1.0.0.qualifier | ||
Bundle-SymbolicName: de.fraunhofer.ipa.ros2.xtext.ide; singleton:=true | ||
Bundle-ActivationPolicy: lazy | ||
Require-Bundle: de.fraunhofer.ipa.ros2.xtext, | ||
de.fraunhofer.ipa.ros, | ||
org.eclipse.xtext.ide, | ||
org.eclipse.xtext.xbase.ide, | ||
org.antlr.runtime;bundle-version="[3.2.0,3.2.1)", | ||
de.fraunhofer.ipa.ros.xtext;bundle-version="2.0.0", | ||
de.fraunhofer.ipa.ros.xtext.ui;bundle-version="2.0.0" | ||
Bundle-RequiredExecutionEnvironment: JavaSE-11 | ||
Export-Package: de.fraunhofer.ipa.ros2.ide.contentassist.antlr.internal, | ||
de.fraunhofer.ipa.ros2.ide.contentassist.antlr, | ||
de.fraunhofer.ipa.ros2.ide.contentassist.antlr.lexer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
source.. = src/,\ | ||
src-gen/,\ | ||
xtend-gen/ | ||
bin.includes = .,\ | ||
META-INF/ | ||
bin.excludes = **/*.xtend |
1 change: 1 addition & 0 deletions
1
plugins/de.fraunhofer.ipa.ros2.xtext.ide/src-gen/META-INF/services/org.eclipse.xtext.ISetup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
de.fraunhofer.ipa.ros2.ide.Ros2IdeSetup |
67 changes: 67 additions & 0 deletions
67
...aunhofer.ipa.ros2.xtext.ide/src-gen/de/fraunhofer/ipa/ros2/ide/AbstractRos2IdeModule.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
/* | ||
* generated by Xtext 2.25.0 | ||
*/ | ||
package de.fraunhofer.ipa.ros2.ide; | ||
|
||
import com.google.inject.Binder; | ||
import com.google.inject.name.Names; | ||
import de.fraunhofer.ipa.ros2.ide.contentassist.antlr.Ros2Parser; | ||
import de.fraunhofer.ipa.ros2.ide.contentassist.antlr.lexer.InternalRos2Lexer; | ||
import org.eclipse.xtext.ide.DefaultIdeModule; | ||
import org.eclipse.xtext.ide.LexerIdeBindings; | ||
import org.eclipse.xtext.ide.editor.contentassist.CompletionPrefixProvider; | ||
import org.eclipse.xtext.ide.editor.contentassist.FQNPrefixMatcher; | ||
import org.eclipse.xtext.ide.editor.contentassist.IPrefixMatcher; | ||
import org.eclipse.xtext.ide.editor.contentassist.IProposalConflictHelper; | ||
import org.eclipse.xtext.ide.editor.contentassist.IndentationAwareCompletionPrefixProvider; | ||
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.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 Ros2IdeModule}. | ||
*/ | ||
@SuppressWarnings("all") | ||
public abstract class AbstractRos2IdeModule extends DefaultIdeModule { | ||
|
||
// contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 | ||
public void configureContentAssistLexer(Binder binder) { | ||
binder.bind(Lexer.class) | ||
.annotatedWith(Names.named(LexerIdeBindings.CONTENT_ASSIST)) | ||
.to(InternalRos2Lexer.class); | ||
} | ||
|
||
// contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 | ||
public Class<? extends IContentAssistParser> bindIContentAssistParser() { | ||
return Ros2Parser.class; | ||
} | ||
|
||
// contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 | ||
public Class<? extends IProposalConflictHelper> bindIProposalConflictHelper() { | ||
return AntlrProposalConflictHelper.class; | ||
} | ||
|
||
// contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 | ||
public Class<? extends CompletionPrefixProvider> bindCompletionPrefixProvider() { | ||
return IndentationAwareCompletionPrefixProvider.class; | ||
} | ||
|
||
// contributed by org.eclipse.xtext.xtext.generator.exporting.QualifiedNamesFragment2 | ||
public Class<? extends IPrefixMatcher> bindIPrefixMatcher() { | ||
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; | ||
} | ||
|
||
} |
33 changes: 33 additions & 0 deletions
33
...rc-gen/de/fraunhofer/ipa/ros2/ide/contentassist/antlr/PartialRos2ContentAssistParser.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* | ||
* generated by Xtext 2.25.0 | ||
*/ | ||
package de.fraunhofer.ipa.ros2.ide.contentassist.antlr; | ||
|
||
import java.util.Collection; | ||
import java.util.Collections; | ||
import org.eclipse.xtext.AbstractRule; | ||
import org.eclipse.xtext.ide.editor.contentassist.antlr.FollowElement; | ||
import org.eclipse.xtext.ide.editor.contentassist.antlr.internal.AbstractInternalContentAssistParser; | ||
import org.eclipse.xtext.util.PolymorphicDispatcher; | ||
|
||
public class PartialRos2ContentAssistParser extends Ros2Parser { | ||
|
||
private AbstractRule rule; | ||
|
||
@Override | ||
public void initializeFor(AbstractRule rule) { | ||
this.rule = rule; | ||
} | ||
|
||
@Override | ||
protected Collection<FollowElement> getFollowElements(AbstractInternalContentAssistParser parser) { | ||
if (rule == null || rule.eIsProxy()) | ||
return Collections.emptyList(); | ||
String methodName = "entryRule" + rule.getName(); | ||
PolymorphicDispatcher<Collection<FollowElement>> dispatcher = | ||
new PolymorphicDispatcher<Collection<FollowElement>>(methodName, 0, 0, Collections.singletonList(parser)); | ||
dispatcher.invoke(); | ||
return parser.getFollowElements(); | ||
} | ||
|
||
} |
Oops, something went wrong.