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 W
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:
   <extension
         point="org.eclipse.debug.ui.consoleLineTrackers">
      <consoleLineTracker
            class="infoneeds.ConsoleWatcher"
            id="InfoNeedsConsoleLineTracker1"
            processType="java">
      </consoleLineTracker>
   </extension>

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

Report message to a moderator

Previous Topic:Getting Invalid Registry Object while uninstalling plugins programatically
Next Topic:Cannot launch Eclipse Application
Goto Forum:
  


Current Time: Fri Oct 31 15:56:14 GMT 2014

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

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