eclipse plugin: The parsed tag's keys should be required

This commit is contained in:
Timotei Dolean 2011-07-26 15:39:12 +00:00
parent 221f18af08
commit af7f958661

View file

@ -17,7 +17,6 @@ import java.util.List;
import org.wesnoth.Logger;
import org.wesnoth.utils.StringUtils;
import org.wesnoth.wml.WMLTag;
/**
* This is a simple Lua parser that returns the found interesting tokens
@ -73,7 +72,7 @@ public class SimpleLuaParser
token.indexOf( '.' ) + 1 );
currentTag.getExpressions( ).add(
WmlFactory2.eINSTANCE.createWMLKey( attributeName, "string" ) );
WmlFactory2.eINSTANCE.createWMLKey( attributeName, "string", '1', false ) );
}
List<String> childTokens = StringUtils.getGroups( ATTRIBUTE_CHILD_REGEX, line );
@ -83,7 +82,7 @@ public class SimpleLuaParser
token.lastIndexOf( '"' ) );
currentTag.getExpressions( ).add(
WmlFactory2.eINSTANCE.createWMLKey( childName, "string" ) );
WmlFactory2.eINSTANCE.createWMLKey( childName, "string", '1', false ) );
}
}
}