-
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.
update the workflow of the ros derived grammars to properly support t…
…he version 2.30
- Loading branch information
Showing
32 changed files
with
218 additions
and
312 deletions.
There are no files selected for viewing
11 changes: 0 additions & 11 deletions
11
...hofer.ipa.rossystem.xtext.ide/src/de/fraunhofer/ipa/rossystem/ide/RosSystemIdeModule.java
This file was deleted.
Oops, something went wrong.
11 changes: 11 additions & 0 deletions
11
...ofer.ipa.rossystem.xtext.ide/src/de/fraunhofer/ipa/rossystem/ide/RosSystemIdeModule.xtend
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,11 @@ | ||
/* | ||
* generated by Xtext 2.30.0 | ||
*/ | ||
package de.fraunhofer.ipa.rossystem.ide | ||
|
||
|
||
/** | ||
* Use this class to register ide components. | ||
*/ | ||
class RosSystemIdeModule extends AbstractRosSystemIdeModule { | ||
} |
22 changes: 0 additions & 22 deletions
22
...nhofer.ipa.rossystem.xtext.ide/src/de/fraunhofer/ipa/rossystem/ide/RosSystemIdeSetup.java
This file was deleted.
Oops, something went wrong.
20 changes: 20 additions & 0 deletions
20
...hofer.ipa.rossystem.xtext.ide/src/de/fraunhofer/ipa/rossystem/ide/RosSystemIdeSetup.xtend
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,20 @@ | ||
/* | ||
* generated by Xtext 2.30.0 | ||
*/ | ||
package de.fraunhofer.ipa.rossystem.ide | ||
|
||
import com.google.inject.Guice | ||
import de.fraunhofer.ipa.rossystem.RosSystemRuntimeModule | ||
import de.fraunhofer.ipa.rossystem.RosSystemStandaloneSetup | ||
import org.eclipse.xtext.util.Modules2 | ||
|
||
/** | ||
* Initialization support for running Xtext languages as language servers. | ||
*/ | ||
class RosSystemIdeSetup extends RosSystemStandaloneSetup { | ||
|
||
override createInjector() { | ||
Guice.createInjector(Modules2.mixin(new RosSystemRuntimeModule, new RosSystemIdeModule)) | ||
} | ||
|
||
} |
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
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
8 changes: 4 additions & 4 deletions
8
...outline/RosSystemOutlineTreeProvider.java → ...utline/RosSystemOutlineTreeProvider.xtend
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 |
---|---|---|
@@ -1,15 +1,15 @@ | ||
/* | ||
* generated by Xtext 2.25.0 | ||
* generated by Xtext 2.30.0 | ||
*/ | ||
package de.fraunhofer.ipa.rossystem.ui.outline; | ||
package de.fraunhofer.ipa.rossystem.ui.outline | ||
|
||
import org.eclipse.xtext.ui.editor.outline.impl.DefaultOutlineTreeProvider; | ||
import org.eclipse.xtext.ui.editor.outline.impl.DefaultOutlineTreeProvider | ||
|
||
/** | ||
* Customization of the default outline structure. | ||
* | ||
* See https://www.eclipse.org/Xtext/documentation/310_eclipse_support.html#outline | ||
*/ | ||
public class RosSystemOutlineTreeProvider extends DefaultOutlineTreeProvider { | ||
class RosSystemOutlineTreeProvider extends DefaultOutlineTreeProvider { | ||
|
||
} |
35 changes: 0 additions & 35 deletions
35
.../src-gen/de/fraunhofer/ipa/rossystem/validation/RosSystemValidatorConfigurationBlock.java
This file was deleted.
Oops, something went wrong.
16 changes: 0 additions & 16 deletions
16
...aunhofer.ipa.rossystem.xtext.ui/src/de/fraunhofer/ipa/rossystem/ui/RosSystemUiModule.java
This file was deleted.
Oops, something went wrong.
13 changes: 13 additions & 0 deletions
13
...unhofer.ipa.rossystem.xtext.ui/src/de/fraunhofer/ipa/rossystem/ui/RosSystemUiModule.xtend
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,13 @@ | ||
/* | ||
* generated by Xtext 2.30.0 | ||
*/ | ||
package de.fraunhofer.ipa.rossystem.ui | ||
|
||
import org.eclipse.xtend.lib.annotations.FinalFieldsConstructor | ||
|
||
/** | ||
* Use this class to register components to be used within the Eclipse IDE. | ||
*/ | ||
@FinalFieldsConstructor | ||
class RosSystemUiModule extends AbstractRosSystemUiModule { | ||
} |
12 changes: 0 additions & 12 deletions
12
....xtext.ui/src/de/fraunhofer/ipa/rossystem/ui/contentassist/RosSystemProposalProvider.java
This file was deleted.
Oops, something went wrong.
12 changes: 12 additions & 0 deletions
12
...xtext.ui/src/de/fraunhofer/ipa/rossystem/ui/contentassist/RosSystemProposalProvider.xtend
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,12 @@ | ||
/* | ||
* generated by Xtext 2.30.0 | ||
*/ | ||
package de.fraunhofer.ipa.rossystem.ui.contentassist | ||
|
||
|
||
/** | ||
* See https://www.eclipse.org/Xtext/documentation/310_eclipse_support.html#content-assist | ||
* on how to customize the content assistant. | ||
*/ | ||
class RosSystemProposalProvider extends AbstractRosSystemProposalProvider { | ||
} |
25 changes: 0 additions & 25 deletions
25
...ext.ui/src/de/fraunhofer/ipa/rossystem/ui/labeling/RosSystemDescriptionLabelProvider.java
This file was deleted.
Oops, something went wrong.
24 changes: 24 additions & 0 deletions
24
...xt.ui/src/de/fraunhofer/ipa/rossystem/ui/labeling/RosSystemDescriptionLabelProvider.xtend
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,24 @@ | ||
/* | ||
* generated by Xtext 2.30.0 | ||
*/ | ||
package de.fraunhofer.ipa.rossystem.ui.labeling | ||
|
||
import org.eclipse.xtext.ui.label.DefaultDescriptionLabelProvider | ||
|
||
/** | ||
* Provides labels for IEObjectDescriptions and IResourceDescriptions. | ||
* | ||
* See https://www.eclipse.org/Xtext/documentation/310_eclipse_support.html#label-provider | ||
*/ | ||
class RosSystemDescriptionLabelProvider extends DefaultDescriptionLabelProvider { | ||
|
||
// Labels and icons can be computed like this: | ||
|
||
// override text(IEObjectDescription ele) { | ||
// ele.name.toString | ||
// } | ||
// | ||
// override image(IEObjectDescription ele) { | ||
// ele.EClass.name + '.gif' | ||
// } | ||
} |
31 changes: 0 additions & 31 deletions
31
...ossystem.xtext.ui/src/de/fraunhofer/ipa/rossystem/ui/labeling/RosSystemLabelProvider.java
This file was deleted.
Oops, something went wrong.
31 changes: 31 additions & 0 deletions
31
...ssystem.xtext.ui/src/de/fraunhofer/ipa/rossystem/ui/labeling/RosSystemLabelProvider.xtend
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,31 @@ | ||
/* | ||
* generated by Xtext 2.30.0 | ||
*/ | ||
package de.fraunhofer.ipa.rossystem.ui.labeling | ||
|
||
import com.google.inject.Inject | ||
import org.eclipse.emf.edit.ui.provider.AdapterFactoryLabelProvider | ||
import org.eclipse.xtext.ui.label.DefaultEObjectLabelProvider | ||
|
||
/** | ||
* Provides labels for EObjects. | ||
* | ||
* See https://www.eclipse.org/Xtext/documentation/310_eclipse_support.html#label-provider | ||
*/ | ||
class RosSystemLabelProvider extends DefaultEObjectLabelProvider { | ||
|
||
@Inject | ||
new(AdapterFactoryLabelProvider 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' | ||
// } | ||
} |
26 changes: 0 additions & 26 deletions
26
...ystem.xtext.ui/src/de/fraunhofer/ipa/rossystem/ui/quickfix/RosSystemQuickfixProvider.java
This file was deleted.
Oops, something went wrong.
24 changes: 24 additions & 0 deletions
24
...stem.xtext.ui/src/de/fraunhofer/ipa/rossystem/ui/quickfix/RosSystemQuickfixProvider.xtend
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,24 @@ | ||
/* | ||
* generated by Xtext 2.30.0 | ||
*/ | ||
package de.fraunhofer.ipa.rossystem.ui.quickfix | ||
|
||
import de.fraunhofer.ipa.ros.ui.quickfix.BasicsQuickfixProvider | ||
|
||
/** | ||
* Custom quickfixes. | ||
* | ||
* See https://www.eclipse.org/Xtext/documentation/310_eclipse_support.html#quick-fixes | ||
*/ | ||
class RosSystemQuickfixProvider extends BasicsQuickfixProvider { | ||
|
||
// @Fix(RosSystemValidator.INVALID_NAME) | ||
// def capitalizeName(Issue issue, IssueResolutionAcceptor acceptor) { | ||
// acceptor.accept(issue, 'Capitalize name', 'Capitalize the name.', 'upcase.png') [ | ||
// context | | ||
// val xtextDocument = context.xtextDocument | ||
// val firstLetter = xtextDocument.get(issue.offset, 1) | ||
// xtextDocument.replace(issue.offset, 1, firstLetter.toUpperCase) | ||
// ] | ||
// } | ||
} |
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
Oops, something went wrong.