From: <cry...@us...> - 2002-08-07 03:28:33
|
Update of /cvsroot/cdchamber/CDChamber/aspect/debug In directory usw-pr-cvs1:/tmp/cvs-serv28461/debug Added Files: AspectCDCMainFrameControllerTest.java file.lst Log Message: refactoring aspect's usage structure --- NEW FILE: AspectCDCMainFrameControllerTest.java --- import java.io.*; import org.cdchamber.gui.*; import org.cdchamber.util.DirPath; public aspect AspectCDCMainFrameControllerTest { pointcut entry(): cflowbelow(call(void testSaveAllCDRomAction())) && call(void actionPerformed(..)); void printFiles() { File dataDir = new File( DirPath.DataDir); File[] newFiles = dataDir.listFiles(new XmlFilenameFilter() ); for ( int i = 0; i < newFiles.length; i++ ) { System.out.println(newFiles[i].getName() + " " + newFiles[i].lastModified() ); } // end of for () } before():entry() { System.out.println("before actionPerformed"); printFiles(); } after():entry() { System.out.println("after actionPerformed"); printFiles(); } } class XmlFilenameFilter implements FilenameFilter { public boolean accept(File dir, String name) { if ( name.toLowerCase().endsWith(".xml")) return true; return false; } } --- NEW FILE: file.lst --- AspectCDCMainFrameControllerTest.java ../../test/src/org/cdchamber/gui/CDCMainFrameControllerTest.java |