[Bluej-discuss] Extension API clarification: Compile Event
Michael Kölling
M.Kolling at kent.ac.uk
Mon Dec 17 09:31:46 GMT 2007
In addition to Josh's point: The fact that separate compile events are
generated during standard compilation is the current implementation
behaviour, but we make no guarantees that it will remain so.
The implementation has changed in the past, and may change in the
future, so you should not assume that it is always only one. The
framework is free to produce a single event with a list, or multiple
events, and your extension should be able to process both.
Regarding the COMPILE_FAILED_EVENT: I believe that this is correct
(but maybe Ian can comment - he knows this better than I do).
Michael
On 14 Dec 2007, at 20:34, Josh Rountree wrote:
> 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
>
>
> _______________________________________________
> mailing list bluej-discuss at bluej.org
> To unsubscribe or change your preferences, go to
> http://lists.bluej.org/mailman/listinfo/bluej-discuss
More information about the bluej-discuss
mailing list