* @param line String
* @return String
*/
private final String jxrFilter( String line )
{
JavaFile jf = null;
try
{
//if the current file isn't set then just return
if ( this.getCurrentFilename() == null )
{
return line;
}
jf = fileManager.getFile( this.getCurrentFilename() );
}
catch ( IOException e )
{
e.printStackTrace();
return line;
}
Vector v = new Vector();
//get the imported packages
ImportType[] imports = jf.getImportTypes();
for ( int j = 0; j < imports.length; ++j )
{
v.addElement( imports[j].getPackage() );
}
//add the current package.
v.addElement( jf.getPackageType().getName() );
String[] packages = new String[v.size()];
v.copyInto( packages );
StringEntry[] words = SimpleWordTokenizer.tokenize( line );