Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Interactive Console for External tools..
Interactive Console for External tools.. [message #156312] Thu, 13 November 2003 15:02 Go to next message
Eclipse UserFriend
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 #156322 is a reply to message #156312] Thu, 13 November 2003 15:18 Go to previous messageGo to next message
Darin Swanson is currently offline Darin SwansonFriend
Messages: 2386
Registered: July 2009
Senior Member
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

"Edison" <cedi@sonata-software.com> wrote in message
news:bp06en$7tu$1@eclipse.org...
> 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 Go to previous messageGo to next message
Eclipse UserFriend
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

> "
Re: Interactive Console for External tools.. [message #156868 is a reply to message #156669] Fri, 14 November 2003 15:12 Go to previous message
Darin Swanson is currently offline Darin SwansonFriend
Messages: 2386
Registered: July 2009
Senior Member
"Edison" <cedi@sonata-software.com> wrote in message
news:bp27bo$9rd$1@eclipse.org...
> 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'"

We had a bug in our schema file that has been fixed in the 3.0 stream.

>
> I also a have a doubt : 'registering the processType' means
> 'processType="my_compiler">' in the plugin.xml file. Is that correct?
>

So name of the executable you are launching is "my_compiler"? This must
match the exact name (lowercase) of the executable you are invoking.

HTH
Darins
Previous Topic:Intercept Save-Action
Next Topic:Re: From Motif to GTK version
Goto Forum:
  


Current Time: Sat Jul 27 19:31:29 GMT 2024

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

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

Back to the top