[Bluej-discuss] Extension API clarification: Compile Event
John Dalbey
jdalbey at calpoly.edu
Fri Dec 14 19:27:44 GMT 2007
Dear BlueJ Developers,
I have created a simple BlueJ extension that listens for CompileEvents.
The API seems a little vague to me about a couple of things. I hope
someone can clarify for me:
First the getFiles() method:
getFiles()
Returns an array of zero, one or more files related to this event.
In my simple experiments there is never more than one file returned by
getFiles(). Even when there are several uncompiled classes in the
project and I click "Compile", there is a separate compile event
generated for each file, so only one file in the list is returned for
each event.
In what situation would getFiles() return more than one file?
Second,
COMPILE_FAILED_EVENT
Event generated when a compilation finishes unsuccessfully.
I assume that there are exactly two ways to generate this event,
either a compilation warning or error. I assume that whenever an error
occurs, so does a failed event, and similarly, whenever a warning
occurs, so does a failed event. I assume that if a failed event is not
generated, then there must be a "done event" generated.
Are these assumptions correct?
Thanks in advance,
--john
More information about the bluej-discuss
mailing list