[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.tools.jdt] Re: Create a fork of org.eclipse.jdt.core with new features
|
Hello,
first of all my plugin is based on the CVS project (org.eclipse.jdt.core
v_A06). I didn't use the jsr 308.
My changes are:
- A new parser create changing the grammar file and adding the new kind
of syntax. I used jikespg 1.2 because LPG doesn't work with the JDT
grammar file...
- I added two new ast annotations in the package
org.eclipse.jdt.internal.compiler.ast that extend the NormalAnnotation
class.
- I added the consumeBlockAnnotation and consumeExpressionAnnotation to
create the new AST nodes.
- Two new ast annotations in the package org.eclipse.jdt.core.dom
- Using an aspect I added to org.eclipse.jdt.core.dom.AstConverter the
possibility to convert an annotation to a Block or an Expression
annotation from the classes of the package
org.eclipse.jdt.internal.compiler.ast to the same of the package
org.eclipse.jdt.core.dom.
- I added to org.eclipse.jdt.core.dom.ASTMatcher the matchers methods
with an aspect.
- I added org.eclipse.jdt.core.dom.ASTVisitor the visit and endvisit
methods with an aspect.
- I also used an aspect around the generateCode method of all classes in
package org.eclipse.jdt.internal.compiler.ast because I don't want JDT
to compile the code. I have my own compiler. I only need the possibility
to manage the AST to create an IDE for @Java. This is probably stupid
because there should be another way to not compile the code with
JDT...but I don't know where and so I added this aspect (that is faster
than search where JDT calls methods generateCode :-P).
And that's all. If you want I can provide the code that I used but
actually my problem is that I can't use my plugin with JDT and if I
modify the IDs in the plugin.xml file the plugin doesn't work,,,,
Thank you for any kind of informations,
Mario Pastorelli
Olivier Thomann wrote:
> Mario Pastorelli a écrit :
>> Hello,
>> I extended the JDT parser of the package org.eclipse.jdt.core to accept
>> new kinds
>> of annotations (blocks and expressions annotations). Actually my plugin
> Hi,
>
> Could you please describe what you have changed ? Are you referring to
> the jsr 308 ?
>
> Thanks.
> --
> Olivier