Changeset 1160
- Timestamp:
- 12/01/11 00:22:23 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/org.modelica.mdt.ui/src/org/modelica/mdt/ui/text/ModelicaPartitionScanner.java
r491 r1160 29 29 * - Modelica code 30 30 */ 31 @SuppressWarnings("unchecked")32 31 public class ModelicaPartitionScanner extends RuleBasedPartitionScanner implements IModelicaPartitions { 33 32 … … 90 89 */ 91 90 public ModelicaPartitionScanner() { 92 super();93 94 91 IToken modelicaString = new Token(MODELICA_STRING); 95 92 IToken modelicaMultiLineComment= new Token(MODELICA_MULTI_LINE_COMMENT); 96 93 IToken modelicaSingleLineComment= new Token(MODELICA_SINGLE_LINE_COMMENT); 97 94 98 List rules= new ArrayList();95 List<IPredicateRule> rules= new ArrayList<IPredicateRule>(); 99 96 100 97 // Add rule for single line comments. … … 110 107 rules.add(new MultiLineRule("/*", "*/", modelicaMultiLineComment, (char)0, true)); 111 108 112 IPredicateRule[] result = new IPredicateRule[rules.size()];113 rules.toArray(result); 109 IPredicateRule[] result = rules.toArray(new IPredicateRule[0]); 110 114 111 setPredicateRules(result); 115 112 }
Note: See TracChangeset
for help on using the changeset viewer.