Simple Launch Variables

Identifier: org.eclipse.debug.core.simpleLaunchVariables

Since: 3.0

Description: This extension point provides a mechanism for defining simple launch configuration variables. A simple launch variable is a key/value pair (of strings) that can be used as an attribute value in a launch configuration which supports variable expansion.

Configuration Markup:

   <!ELEMENT extension (variable*)>

   <!ATTLIST extension
     point CDATA #REQUIRED
     id    CDATA #IMPLIED
     name  CDATA #IMPLIED
   >

   <!ELEMENT variable EMPTY>

   <!ATTLIST variable
     name             CDATA #REQUIRED
     initialValue     CDATA #IMPLIED
     initializerClass CDATA #IMPLIED
     description      CDATA #IMPLIED
   >

Examples: The following is an example of a launch configuration variable extension point with an initial value:

 <extension point="org.eclipse.debug.core.simpleLaunchVariables">
  <variable
   name="FOO_HOME"
   initialValue="/usr/local/foo">
  </variable>
 </extension>

In the example above, the specified variable is created with the initial value "/usr/local/foo". The following is an example of a launch configuration variable extension point with an initializer class:

 <extension point="org.eclipse.debug.core.simpleLaunchVariables">
  <variable
   name="FOO_HOME"
   initializerClass="com.example.FooLocator">
  </variable>
 </extension>

In the example above, the variable FOO_HOME is created and the class "com.example.FooLocator" will be used to initialize the value the first time it's requested.

API Information: Value of the attribute initializerClass must be a fully qualified name of a Java class that implements the interface org.eclipse.debug.core.variables.IVariableInitializer.

Copyright (c) 2000, 2003 IBM Corporation and others. All Rights Reserved.