[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.newcomer] Re: Plugin Fragment & External Jars

Walter Harley wrote:
"George Karabotsos" <g_karab@xxxxxxxxxxxxxxx> wrote in message news:epaffs$u09$1@xxxxxxxxxxxxxxxxxxxx
Hi guys,

I am making a fragment that extents the CompilationParticipant of the jdt.

I have two jars that my code is dependent upon. However, I can't seem to be able to package them together with my plugin when I am building its jar. I am aware I can only use the code from other plugins but changing those jars into plugins does not seem to be an option ATM.


Out of interest, what will you be using CompilationParticipant for?

I ask because it's a fairly specialized and somewhat dangerous interface; for most needs, the right answer is to create a Builder. CompilationParticipant injects you right into the middle of the Java compilation, so that you can create new Java types and have them be compiled in the same compilation. Its primary use case is in Java annotation processing.


Well I am active in the software verification research area and that was the first place (easy as well) to hook up an extended static checker (ESC/Java2) to do static verification on the different java files. I am still experimenting since I am still fairly new to Eclipse but its a start. Thanks for pointing out the builder part, I 'll have a look, it sounds like it maybe a better fit for our purposes.

On another related topic - I am not sure why but I can't seem to be able to update my fragment. The first time I install it, it works fine - I then had to delete it. All attempts to install it afterward do not seem to work. When I export it I see it being updated on the plugins directory but when I check the list of plugins from the about screen I do not see it listed. Anyhow, there are lots and lots to learn :)

George