Interactive Console for External tools.. [message #156312] |
Thu, 13 November 2003 15:02 |
Eclipse User |
|
|
|
Originally posted by: cedi.sonata-software.com
Hi,
I'm new to Eclipse and the group. So please bear with my longish
mail and some naive questions
We have our own tool to compile a programming language
of our own.
I have added this tool in the Run->External Tools...
When I execute the tool I get the output of the on the Console view
I would like to make each line in the output on the console a hyperlink.
While browsing the Tool archive I found some relevant material which I have
presented below -
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.
- here ends mail from the archive
I tried using this in my plugin.xml but the output is still not a hyperlink
I have 2 questions -
1. How can I tell eclipse to use my implementation of IConsoleLineTrackers
and IConsoleHyperlink
(because even though my plugin appears in the plugin-registry, the
console output is not hyperlinks)
2. How can I register IConsoleLineTrackers using ant as mentioned in the
above mail copy.
3. I would also like to know if there is a general procedures/guidelines
avaliable anywhere
which can be used when creating a plugin for eclipse which acts as a
development
tool for a new language.
I use Eclipse 2.1.2
Any help will be appreciated
Thanks in advance
Edi
|
|
|
|
Re: Interactive Console for External tools.. [message #156669 is a reply to message #156322] |
Fri, 14 November 2003 09:30 |
Eclipse User |
|
|
|
Originally posted by: cedi.sonata-software.com
Thanks for the response
My plugin.xml is given below -
<?xml version="1.0" encoding="UTF-8"?>
<plugin
id="org.eclipse.trial3.LineTracker"
name="org.eclipse.trial3.LineTracker"
version="1.0.0">
<runtime>
<library name="LineTracker.jar"/>
</runtime>
<requires>
<import plugin="org.eclipse.ui"/>
<import plugin="org.eclipse.swt"/>
<import plugin="org.eclipse.debug.ui"/>
</requires>
<extension
point="org.eclipse.debug.ui.consoleLineTrackers">
<consoleLineTracker
id="org.eclipse.trial3.LineTracker"
class="org.eclipse.trial3.LineTracker"
processType="my_compiler">
</consoleLineTracker>
</extension>
</plugin>
The plugin.xml shows the following warning at the <consoleLineTracker line
-
" Element 'consoleLineTracker' is not legal as a child of element 'null'"
I also a have a doubt : 'registering the processType' means
'processType="my_compiler">' in the plugin.xml file. Is that correct?
Also In my plugin I have 2 classes
1. LineTracker.java - which implements IConsoleLineTracker
2. ErrorMesgHLink.java - which implements IConsoleHyperLink
Do I have to code a class which extends AbstractUIPlugin for my problem?
Also please tell me if u know of any procedure/guideline for creating a
plugin to add a IDE capbilities for a new language.
Thanks
Edi
Darin Swanson wrote:
> If you have correctly specified your plugin.xml, Eclipse will add you
> consoleLineTracker.
> What does your plugin.xml look like?
> Have you correctly registered for the processType of an external tool? This
> would be the lowercase name of the program you are executing.
> HTH
> Darins
> "
|
|
|
|
Powered by
FUDForum. Page generated in 0.03377 seconds