Jump to: navigation, search

Difference between revisions of "FAQ How do I add my own external tools?"

 
 
Line 17: Line 17:
 
Essentially, an external tool is  a launch-configuration type that belongs to  
 
Essentially, an external tool is  a launch-configuration type that belongs to  
 
the special external-tools category:
 
the special external-tools category:
<pre>
+
 
 
   &lt;launchConfigurationType
 
   &lt;launchConfigurationType
 
       name=&quot;My Tool&quot;
 
       name=&quot;My Tool&quot;
Line 25: Line 25:
 
       id=&quot;com.xyz.MyLaunchType&quot;&gt;
 
       id=&quot;com.xyz.MyLaunchType&quot;&gt;
 
   &lt;/launchConfigurationType&gt;
 
   &lt;/launchConfigurationType&gt;
</pre>
 
  
  
 
== See Also: ==
 
== See Also: ==
  
[[FAQ_What_is_a_launch_configuration%3F]]
+
[[FAQ What is a launch configuration?]]
  
 
<hr><font size=-2>This FAQ was originally published in [http://www.eclipsefaq.org Official Eclipse 3.0 FAQs]. Copyright 2004, Pearson Education, Inc. All rights reserved. This text is made available here under the terms of the [http://www.eclipse.org/legal/epl-v10.html Eclipse Public License v1.0].</font>
 
<hr><font size=-2>This FAQ was originally published in [http://www.eclipsefaq.org Official Eclipse 3.0 FAQs]. Copyright 2004, Pearson Education, Inc. All rights reserved. This text is made available here under the terms of the [http://www.eclipse.org/legal/epl-v10.html Eclipse Public License v1.0].</font>

Latest revision as of 08:59, 3 February 2007


External tools are applications or scripts that typically act as extensions to your development environment. For example, they may be used to execute scripts to package and deploy your application or to run an external compiler on your source files. External tools allow an end user to achieve a basic level of integration for a non-Eclipse-aware tool without writing a plug-in. External tools are created and configured via Run > External Tools > External Tools or from the drop-down menu on the Run button with the toolbox overlay.

If you want to write your own category of external tool, such as support for a different scripting language, you need to write a plug-in. The process for defining external tools is almost identical to writing your own launch configuration. Essentially, an external tool is a launch-configuration type that belongs to the special external-tools category:

  <launchConfigurationType
     name="My Tool"
     delegate="com.xyz.MyLaunchDelegate"
     category="org.eclipse.ui.externaltools"
     modes="run"
     id="com.xyz.MyLaunchType">
  </launchConfigurationType>


See Also:

FAQ What is a launch configuration?


This FAQ was originally published in Official Eclipse 3.0 FAQs. Copyright 2004, Pearson Education, Inc. All rights reserved. This text is made available here under the terms of the Eclipse Public License v1.0.