[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[List Home]
|
[aspectj-dev] [ajdt AST manipulation]
|
- From: Alex Vasc <altvex@xxxxxxxxx>
- Date: Wed, 25 May 2005 07:48:53 -0300
- Delivered-to: aspectj-dev@eclipse.org
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=R3QIXYvmyWFNN9FqZWB1JwV8Vf+LV0tmgWcgtQMWuVA1UlFYQLgMoTopZ3TYWRETRqB7uyrItyhd4rVodIgzYDcDYkVMzE+L/2hpuRnVChPuSRLPUL3tDy3oGoTzmPUVuT93cSNeXigQwfCOEKKa8muCVOakRXJxJc7/zYwpuAk=
Hello everyone,
I´m seeking for a way to manipulate the AST elements of the AJDT. How
can I do this? Is there any API for this purpose, because I didn´t
find?
And the most important, how can I do to get the AST from an open .aj
file within the Eclipse? I know how to get the AST DOM from an open
.java file in JDT. I suppose that it would be possible for the ajdt.
I used something as:
IWorkbenchPage iWorkbenchPage = window.getActivePage();
IEditorPart iEditorPart = iWorkbenchPage.getActiveEditor();
IEditorInput editorInput = iEditorPart.getEditorInput();
IWorkingCopyManager copyManager = JavaUI.getWorkingCopyManager();
ICompilationUnit iCU = copyManager.getWorkingCopy(editorInput);
//Finally, I got the CompilationUnit from the ICU
Best regards,
Alex