Skip to main content



      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 07:54
Eclipse UserFriend
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 11:03] by Moderator

Previous Topic:How create folder under eclipse/configuration directory during software install
Next Topic:Cannot launch Eclipse Application
Goto Forum:
  


Current Time: Sun Jul 06 11:17:04 EDT 2025

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

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

Back to the top