[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools] Re: external tool, click on errors with line numbers?

Rob,

You will need to extend the org.eclipse.debug.ui.consoleLineTrackers
extension point in your own plugin.

The org.eclipse.ui.externaltools plugin provides two examples: the
javacLineTracker and the taskLineTracker.
You will ant to register your consoleLineTracker for the name of your
external program (see ProgramLaunchDelegate if interested).
So for example:
<consoleLineTracker

id = "robs.cool.nant.errorLineTracker"

class = "org.rob.nant.ErrorLineTracker"

processType = "NAnt">

</consoleLineTracker>

This assumes that the name of the external tool you run is called NAnt.

HTH
Darins

"Rob Nikander" <nikaREMOVEnder@xxxxxxxxxxxx> wrote in message
news:b7rl1m$io9$1@xxxxxxxxxxxxxxxx
> Hi all,
> I am running an external tool (NAnt) to build some C# files.  All the
errors
> show up in the console view, and I'd like to click on those to go to the
> source file and line.  Is there a way?  Maybe give eclipse a regular
> expression for getting the line and file out of the error messages?  Or,
if
> I should write a plugin, can someone point me in the right directoin as
far
> as what extension point(s) I should be looking at.
>
> Thanks,
> Rob
>
>