[Bluej-discuss] Extension API clarification: Compile Event
Josh Rountree
mage at carolina.rr.com
Fri Dec 14 20:34:53 GMT 2007
If you click on "Rebuild Package" from the tools menu, and you have more
than one class, you'll get more than '1' returned from getFiles(). And, if
you get a warning, you get the warning, plus a compile succeeded because
it's just a warning, not a failure.
-----Original Message-----
From: bluej-discuss-bounces at bluej.org
[mailto:bluej-discuss-bounces at bluej.org] On Behalf Of John Dalbey
Sent: Friday, December 14, 2007 2:28 PM
To: bluej-discuss at bluej.org
Subject: [Bluej-discuss] Extension API clarification: Compile Event
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
_______________________________________________
mailing list bluej-discuss at bluej.org
To unsubscribe or change your preferences, go to
http://lists.bluej.org/mailman/listinfo/bluej-discuss
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.503 / Virus Database: 269.17.1/1183 - Release Date: 12/13/2007
9:15 AM
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.503 / Virus Database: 269.17.1/1183 - Release Date: 12/13/2007
9:15 AM
More information about the bluej-discuss
mailing list