Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » How to include a java-preprocessor?
How to include a java-preprocessor? [message #899243] Tue, 31 July 2012 08:26 Go to next message
Phil Yrulf is currently offline Phil YrulfFriend
Messages: 3
Registered: July 2012
Junior Member
Hey Developers

I am working on this task for several months since all googling around seem not to help me any further i hope to get help here.

The Situation:
I am developing a plugin for the Eclipse that will provide the platform with a preprocessor.
This proprocessor will perform some bytecode-enhancing operations
(1. Reading in fresh compiled classfiles,
2. manipulating the corresponding bytecode,
3. write the manipulated code back to the same location as its origin).

The Problem:
What i need now is a way to get informed that a classfile was compiled.
The information i need would be :
1. Location of the new classfile
2. A way to read the data of this classfile (if possible by using an eclipse-internal mechanism)
3. Location of the corresponding .java-file


Thanks a lot for any reply and best regards from switzerland
Re: How to include a java-preprocessor? [message #899246 is a reply to message #899243] Tue, 31 July 2012 08:28 Go to previous message
Phil Yrulf is currently offline Phil YrulfFriend
Messages: 3
Registered: July 2012
Junior Member
And this is the Situation i got at the moment:

Well i tryed to do all this by using this Extension-Point
<org.eclipse.jdt.core.compilationParticipant>
The problem with this approach is, that it just does not feel to be the right way to do it. this because of it seems like ...:

1. Im only getting informed what java files were processed and cant just ask for the corresponding classfiles. To figure them out is possible but complicated (specially by classfiles of innerclasses and in cases when project is attached to another )

2. I cant access the classfiles by using the eclipse-model and have to find other ways arround it (iostreams etc). It seems like eclipse is getting confused and is slowing down the whole operation by factor 4. Maybe because of a mechanism that is notifying that the content of a classfile changed or something similar ... we dont know yet

My Question now is:
Is my approach really the way you would suggest to go?
Am i doing something wrong?

Tanks

[Updated on: Tue, 31 July 2012 08:29]

Report message to a moderator

Previous Topic:Import Java project into Eclipse using Java
Next Topic:Installing a plugin
Goto Forum:
  


Current Time: Tue Apr 23 09:17:59 GMT 2024

Powered by FUDForum. Page generated in 0.03569 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top