[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-dev] [how to create an .aj file]

Hello everybody,
  Do you know how can I create an empty .aj file? In JDT, I used a
code like this:

--------------------
public ICompilationUnit generateEmptyClass(String newClassName, 
	IPackageFragment iPackageFragment) throws JavaModelException, 
	BadLocationException {

	ICompilationUnit iCU = iPackageFragment.createCompilationUnit(
		newClassName + ".java", "", true, null);
		
	return iCU;
}	
----------------------

  Afterwards, I would like to open the new file in the Editor by the
source code. Any thoughts?
  
  Best regards,

-- 
Alexandre Vasconcelos
www.cin.ufpe.br/~atv