Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
12c (12.1.3)

E41664-01

Package oracle.ide.externaltools

Contains interfaces and classes that allow external tools in the IDE to be invoked, manipulated and extended by extensions.

See: Description

Package oracle.ide.externaltools Description

Contains interfaces and classes that allow external tools in the IDE to be invoked, manipulated and extended by extensions.

Obtaining an ExternalToolManager Instance

Obtain an instance of the ExternalToolManager class using the utility method ExternalToolManager.getExternalToolManager().

External Tool Types

External tool types provide an extension mechanism whereby extensions can register customized types of external tool and plug into the existing external tools user interface in the IDE.

Each type of external tool is represented by an implementation of the ExternalToolType interface. You can register a new external tool type using the ExternalToolManager.registerType(ExternalToolType) method.

When a type is registered with the manager, the type will be available to the user when creating new external tools via the Define External Tool wizard.

Creating Program Tools Programmatically

You can programmatically create external tools which invoke external programs using ExternalToolFactory.createProgramTool(). Configure the properties of the tool by obtaining a ExternalToolBaseProperties or ExternalProgramToolProperties object for the tool, and finally, add the tool to the manager using ExternalToolManager.addExternalTool(ExternalTool).

Scanning for Default Tools

The external tools dialog can prompt the user to create tools by default. This functionality is provided by ExternalToolScanners. A default implementation shipped with the IDE scans for popular Windows applications and installs external tools to invoke them.

The default tool scanning behavior is extensible. Just implement ExternalToolScanner and register your scanner in extension.xml:

   <extension ...>
     <hooks>
       <externaltools xmlns="http://xmlns.oracle.com/ide/extension">
         <scanners>
           <scanner-class>org.foo.MyScannerClass</scanner-class>
         </scanners>
       </externaltools>
     </hooks>
   </extension>
 
Since:
10.1.3
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
12c (12.1.3)

E41664-01

Copyright © 1997, 2014, Oracle. All rights reserved.