This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 80372

Summary: *Code Model - APT* provide driver "file->APT"
Product: cnd Reporter: Vladimir Voskresensky <vv159170>
Component: Code ModelAssignee: Vladimir Voskresensky <vv159170>
Status: CLOSED FIXED    
Severity: blocker    
Priority: P1    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on: 80373, 80374    
Bug Blocks: 79918    

Description Vladimir Voskresensky 2006-07-16 20:42:46 UTC
Need to have driver which returns APT for interested file.
APT could be get from cache or created on request.
Comment 1 Vladimir Voskresensky 2006-07-16 21:11:46 UTC
implemented thread safe driver: creating token stream and generating apt from
stream under one sync method:

cvs log:
Removing APTCreatorImpl.java;
/cvs/cnd/modelimpl/src/org/netbeans/modules/cnd/modelimpl/apt/impl/support/Attic/APTCreatorImpl.java,v
 <--  APTCreatorImpl.java
new revision: delete; previous revision: 1.1.2.5
done
Checking in APTDriverImpl.java;
/cvs/cnd/modelimpl/src/org/netbeans/modules/cnd/modelimpl/apt/impl/support/Attic/APTDriverImpl.java,v
 <--  APTDriverImpl.java
new revision: 1.1.2.4; previous revision: 1.1.2.3
done
Comment 2 Vladimir Voskresensky 2006-07-16 21:28:53 UTC
 - update after renaming TokenStreamBuilder to APTTokenStreamBuilder

cvs log:
Checking in APTDriverImpl.java;
/cvs/cnd/modelimpl/src/org/netbeans/modules/cnd/modelimpl/apt/impl/support/Attic/APTDriverImpl.java,v
 <--  APTDriverImpl.java
new revision: 1.1.2.5; previous revision: 1.1.2.4
done
Comment 3 Vladimir Voskresensky 2006-07-17 17:56:56 UTC
findAPT() now throws FileNotFoundException

cvs log:
Checking in impl/support/APTDriverImpl.java;
/cvs/cnd/modelimpl/src/org/netbeans/modules/cnd/modelimpl/apt/impl/support/Attic/APTDriverImpl.java,v
 <--  APTDriverImpl.java
new revision: 1.1.2.6; previous revision: 1.1.2.5
done
Checking in support/APTDriver.java;
/cvs/cnd/modelimpl/src/org/netbeans/modules/cnd/modelimpl/apt/support/Attic/APTDriver.java,v
 <--  APTDriver.java
new revision: 1.1.2.5; previous revision: 1.1.2.4
done
Comment 4 Vladimir Voskresensky 2006-08-12 11:17:07 UTC
APT integrated in cnd-nb50-dev branch.
To use it pass -J-Dcnd.use.apt=true param