Changeset 17 in default for trunk/de.ugoe.cs.swe.bnftools.ebnf.ui/src/de/ugoe/cs/swe/bnftools/ui
- Timestamp:
- 10/22/10 16:48:56 (14 years ago)
- Location:
- trunk/de.ugoe.cs.swe.bnftools.ebnf.ui/src/de/ugoe/cs/swe/bnftools/ui
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/de.ugoe.cs.swe.bnftools.ebnf.ui/src/de/ugoe/cs/swe/bnftools/ui/actions/GenerateCompositeBNFAction.java
r5 r17 93 93 String coreName = null; 94 94 // get the core grammar 95 EList<Import> imports = ((EtsiBnfImpl) xtextResource.getParseResult().getRootNode().getElement()).getImport s();95 EList<Import> imports = ((EtsiBnfImpl) xtextResource.getParseResult().getRootNode().getElement()).getImportSection().getImports(); 96 96 for(int j=0; j< imports.size(); j++) { 97 97 if(imports.get(j).getGrammarType().equals("core")) … … 113 113 packageGrammars = new LinkedList<XtextResource>(); 114 114 deltas = new LinkedList<URI>(); 115 EList<Import> packages = ((EtsiBnfImpl) xtextResource.getParseResult().getRootNode().getElement()).getImport s();115 EList<Import> packages = ((EtsiBnfImpl) xtextResource.getParseResult().getRootNode().getElement()).getImportSection().getImports(); 116 116 for(int j=0; j<packages.size(); j++) { 117 117 if(packages.get(j).getGrammarType().equals("package")) { -
trunk/de.ugoe.cs.swe.bnftools.ebnf.ui/src/de/ugoe/cs/swe/bnftools/ui/actions/PackageConsistencyCheckerAction.java
r5 r17 65 65 Resource coreRes = null; 66 66 Resource updatedRes = null; 67 EList<Import> imports = ((EtsiBnfImpl) xtextResource.getParseResult().getRootNode().getElement()).getImport s();67 EList<Import> imports = ((EtsiBnfImpl) xtextResource.getParseResult().getRootNode().getElement()).getImportSection().getImports(); 68 68 69 69 for(int j=0; j<imports.size(); j++) { -
trunk/de.ugoe.cs.swe.bnftools.ebnf.ui/src/de/ugoe/cs/swe/bnftools/ui/formatter/EbnfFormatterVisitor.java
r13 r17 32 32 private FormatterConfig config; 33 33 34 private boolean lastWasSectionHeading=false; 35 34 36 public EbnfFormatterVisitor(EObject rootNode, FormatterConfig config) { 35 37 super(rootNode); … … 164 166 165 167 protected void visitBefore(Rule node) { 168 if (lastWasSectionHeading) 169 buf.append("\n"); 170 171 lastWasSectionHeading=false; 172 166 173 if (node.getRulenumber() > 0) 167 174 buf.append(node.getRulenumber() + ". "); … … 188 195 189 196 protected void visitBefore(SectionHeading node) { 190 if (! buf.substring(buf.length()-2).equals("\n\n"))197 if (!lastWasSectionHeading && !buf.substring(buf.length()-2).equals("\n\n")) 191 198 buf.append("\n"); 192 199 200 lastWasSectionHeading=true; 201 // if (!lastWasSectionHeading || !buf.substring(buf.length()-2).equals("\n\n")) 202 // if (!buf.substring(buf.length()-2).equals("\n\n")) 203 // buf.append("\n"); 204 193 205 buf.append(node.getSectionHeader()); 194 206 } 195 207 196 208 protected void visitAfter(SectionHeading node) { 197 buf.append("\n");209 // buf.append("\n"); 198 210 } 199 211 -
trunk/de.ugoe.cs.swe.bnftools.ebnf.ui/src/de/ugoe/cs/swe/bnftools/ui/refactoring/rename/RenameRefactoringHandler.java
r5 r17 72 72 "Error while applying refactoring to workbench/wizard: " 73 73 + e.getMessage()); 74 e.printStackTrace();74 //e.printStackTrace(); 75 75 } 76 76 return null;
Note: See TracChangeset
for help on using the changeset viewer.