Changeset 9 in default for trunk/de.ugoe.cs.swe.bnftools.ebnf.ui/src
- Timestamp:
- 10/22/10 08:58:43 (14 years ago)
- Location:
- trunk/de.ugoe.cs.swe.bnftools.ebnf.ui/src/de/ugoe/cs/swe/bnftools
- Files:
-
- 4 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/de.ugoe.cs.swe.bnftools.ebnf.ui/src/de/ugoe/cs/swe/bnftools/ui/formatter/FormatterProcessor.java
r8 r9 103 103 compositeChange.add(fileChange); 104 104 105 String newText = "foobar"; 105 FormatterConfig config = new FormatterConfig(); 106 EbnfFormatterVisitor visitor = new EbnfFormatterVisitor(rootNode.getElement(), config); 107 visitor.accept(); 106 108 107 ReplaceEdit replaceEdit = new ReplaceEdit(0, document.getLength(), newText);109 ReplaceEdit replaceEdit = new ReplaceEdit(0, document.getLength(), visitor.getBuf().toString()); 108 110 multiEdit.addChild(replaceEdit); 109 111
Note: See TracChangeset
for help on using the changeset viewer.