Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Catching program exceptions and compile errors
icon3.gif  Catching program exceptions and compile errors [message #1149913] Tue, 22 October 2013 11:54
Felix W is currently offline Felix WFriend
Messages: 1
Registered: October 2013
Junior Member
Hello everyone!

We are developing an Eclipse plugin that reacts on compile-time errors and
runtime exceptions. Currently, we are only able to catch runtime exceptions,
and we do not now how to get hold of the compile errors.

Ideally, we would connect to something like an event bus and only react
on exceptions and compile errors (i.e. the stuff that shows up in the error window).
As no one in our team has any Eclipse experience, we are a little stuck here.

Currently we only catch exceptions and only via a workaround. We do that
by providing a class implementing the IConsoleLineTracker and monitoring
every "java" process spawned by Eclipse with it. That forces us to write a parser
to seperate exceptions from normal output.

Now, is there any more elegant way?
How are we supposed to catch the compile errors? They are not caught by our class,
as no "java" process is spawned.

Anything, really anything will help! Very Happy

We are connecting to the console like this:

[Updated on: Tue, 22 October 2013 15:03]

Report message to a moderator

Previous Topic:Programmatically Import Project to Workspace (with copy)
Next Topic:Legal wordings for custom IDE splash screens
Goto Forum:

Current Time: Tue Mar 20 10:09:35 GMT 2018

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

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