Changeset 43 for trunk/t3d/src
- Timestamp:
- 12/07/11 00:34:32 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/t3d/src/org/etsi/t3d/T3D.java
r32 r43 257 257 //TODO: core functionality, encapsulate, split, and extract 258 258 for (int i = 0; i < ttcn3Resources.size(); i++) { 259 analyzer = analyzerFactory.getTTCN3Analyzer(ttcn3Resources 260 .get(i)); 261 System.out.println("Preparing documentation for " 262 + analyzer.getFilename()); 263 //TODO: review logging interface 264 //loggingInterface.setCurrentTTCN3File(analyzer.getFilename()); 265 T3D.getLoggingInterface().setLogSourceName(analyzer.getFilename()); 266 if (isGenerateMainXML() || isGenerateHTML()) { 267 T3DVisitor visitor = new T3DVisitor(xmlPrinter); 268 visitor.setFilename(analyzer.getFilename()); 269 ImportVisitor importVisitor = new ImportVisitor(importPrinter); 270 importVisitor.setFilename(analyzer.getFilename()); 271 // xmlPrinter.setCurrentTTCN3File(analyzer.getFilename()); 272 // visitor.setFilename(analyzer.getFilename()); 273 visitor.acceptDFS((LocationAST) analyzer.getParser().getAST()); 274 importVisitor.acceptDFS((LocationAST) analyzer.getParser().getAST()); 275 } 276 if (isGenerateDependenciesXML()) { 277 DependencyVisitor dependencyVisitor = new DependencyVisitor(depPrinter); 278 depPrinter.setCurrentTTCN3File(analyzer.getFilename()); 279 dependencyVisitor.acceptDFS((LocationAST) analyzer.getParser().getAST()); 259 if (MiscTools.regExpMatch(activeProfile.getIgnoredResourceRegExp() , ttcn3Resources.get(i))){ 260 System.out.println("Preparing documentation for " + ttcn3Resources.get(i) + " (Skipped) "); //TODO: may need to use analyzer.getFilename for consistency 261 } else { 262 analyzer = analyzerFactory.getTTCN3Analyzer(ttcn3Resources 263 .get(i)); 264 System.out.println("Preparing documentation for " 265 + analyzer.getFilename()); 266 //TODO: review logging interface 267 //loggingInterface.setCurrentTTCN3File(analyzer.getFilename()); 268 T3D.getLoggingInterface().setLogSourceName(analyzer.getFilename()); 269 if (isGenerateMainXML() || isGenerateHTML()) { 270 T3DVisitor visitor = new T3DVisitor(xmlPrinter); 271 visitor.setFilename(analyzer.getFilename()); 272 ImportVisitor importVisitor = new ImportVisitor(importPrinter); 273 importVisitor.setFilename(analyzer.getFilename()); 274 // xmlPrinter.setCurrentTTCN3File(analyzer.getFilename()); 275 // visitor.setFilename(analyzer.getFilename()); 276 visitor.acceptDFS((LocationAST) analyzer.getParser().getAST()); 277 importVisitor.acceptDFS((LocationAST) analyzer.getParser().getAST()); 278 } 279 if (isGenerateDependenciesXML()) { 280 DependencyVisitor dependencyVisitor = new DependencyVisitor(depPrinter); 281 depPrinter.setCurrentTTCN3File(analyzer.getFilename()); 282 dependencyVisitor.acceptDFS((LocationAST) analyzer.getParser().getAST()); 283 } 280 284 } 281 285
Note: See TracChangeset
for help on using the changeset viewer.