mirror of
https://github.com/sigmasternchen/xtext-core
synced 2025-03-15 16:28:56 +00:00
[#1312] fixed broken stub code
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
This commit is contained in:
parent
921e41bf7a
commit
d29aa413ac
4 changed files with 6 additions and 6 deletions
|
@ -207,11 +207,11 @@ class LabelProviderFragment2 extends AbstractStubGeneratingFragment {
|
|||
|
||||
// Labels and icons can be computed like this:
|
||||
|
||||
// String text(IEObjectDescription ele) {
|
||||
// public String text(IEObjectDescription ele) {
|
||||
// return ele.getName().toString();
|
||||
// }
|
||||
//
|
||||
// String image(IEObjectDescription ele) {
|
||||
// public String image(IEObjectDescription ele) {
|
||||
// return ele.getEClass().getName() + ".gif";
|
||||
// }
|
||||
}
|
||||
|
|
|
@ -194,7 +194,7 @@ class ValidatorFragment2 extends AbstractInheritingFragment {
|
|||
*/
|
||||
public class «grammar.validatorClass.simpleName» extends «grammar.abstractValidatorClass» {
|
||||
|
||||
// public static final INVALID_NAME = 'invalidName'
|
||||
// public static final String INVALID_NAME = "invalidName";
|
||||
//
|
||||
// @Check
|
||||
// public void checkGreetingStartsWithCapital(Greeting greeting) {
|
||||
|
|
|
@ -384,7 +384,7 @@ public class LabelProviderFragment2 extends AbstractStubGeneratingFragment {
|
|||
_builder.newLine();
|
||||
_builder.append("\t");
|
||||
_builder.newLine();
|
||||
_builder.append("//\tString text(IEObjectDescription ele) {");
|
||||
_builder.append("//\tpublic String text(IEObjectDescription ele) {");
|
||||
_builder.newLine();
|
||||
_builder.append("//\t\treturn ele.getName().toString();");
|
||||
_builder.newLine();
|
||||
|
@ -392,7 +392,7 @@ public class LabelProviderFragment2 extends AbstractStubGeneratingFragment {
|
|||
_builder.newLine();
|
||||
_builder.append("//\t ");
|
||||
_builder.newLine();
|
||||
_builder.append("//\tString image(IEObjectDescription ele) {");
|
||||
_builder.append("//\tpublic String image(IEObjectDescription ele) {");
|
||||
_builder.newLine();
|
||||
_builder.append("//\t\treturn ele.getEClass().getName() + \".gif\";");
|
||||
_builder.newLine();
|
||||
|
|
|
@ -306,7 +306,7 @@ public class ValidatorFragment2 extends AbstractInheritingFragment {
|
|||
_builder.newLineIfNotEmpty();
|
||||
_builder.append("\t");
|
||||
_builder.newLine();
|
||||
_builder.append("//\tpublic static final INVALID_NAME = \'invalidName\'");
|
||||
_builder.append("//\tpublic static final String INVALID_NAME = \"invalidName\";");
|
||||
_builder.newLine();
|
||||
_builder.append("//");
|
||||
_builder.newLine();
|
||||
|
|
Loading…
Reference in a new issue