Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jdt-core-dev] new instrumentation project

Please have a look at org.eclipse.jdt.core.CompilationParticipant


Thanks, Philippe. from the doc it seems that this class was intended mainly for tools which generate new source files based on the existing ones. This is not necessarily what I intend to do. Let me explain.

The instrumentation simply inserts some commands into the code, at specific places. But to know where to insert a command, first the source has to be parsed. The JDT packages have (at least a) parser and a compiler, which build some AST-s from the sources. I'd like to use these.

thanks,
   Zsolt


 

http://help.eclipse.org/stable/index.jsp?topic=/org.eclipse.jdt.doc.isv/reference/api/org/eclipse/jdt/core/compiler/CompilationParticipant.html





From: "Zsolt G. Kiss" <zsolt.gkiss@xxxxxxxxx>
To: jdt-core-dev@xxxxxxxxxxx
Date: 01/08/2009 11:02 AM
Subject: [jdt-core-dev] new instrumentation project
Sent by: jdt-core-dev-bounces@xxxxxxxxxxx





Hello,

I work on a testing project in an IT company where one of our goals is to instrument Java code in an Eclipse environment. We want to do this incrementally, and the jdt core compiler/ builder seems to be the right place where to place some code. My first question is what would be a good strategy for integration? To do a branch, for example, somewhere in the code tree and to make some extension point? (then have our separate plugin) It is quite clear that we have to use and "edit" code in the internal core packages as well.

What do you propose?

--
thanks,
  Zsolt
_______________________________________________
jdt-core-dev mailing list
jdt-core-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/jdt-core-dev




Sauf indication contraire ci-dessus:/ Unless stated otherwise above:
Compagnie IBM France
Siège Social : Tour Descartes, 2, avenue Gambetta, La Défense 5, 92400 Courbevoie
RCS Nanterre 552 118 465
Forme Sociale : S.A.S.
Capital Social : 609.751.783,30 €
SIREN/SIRET : 552 118 465 02430


_______________________________________________
jdt-core-dev mailing list
jdt-core-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/jdt-core-dev




--
Üdv,  
   Zsolt

----------------------------------------------------------------------
"Gyakran elhangzik, hogy meg kell menteni a Földet - pedig nem a Föld van veszélyben, hanem mi."

Back to the top