Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

No Format
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plugins SYSTEM "http://java.freehep.org/schemas/plugin/1.0/plugin.dtd">
<plugins>
   <plugin>
      <information>
          <name>org.lcsim</name>
	  <category>hep.linearcollider</category>
          <author>LCSIM Team</author>
          <version>0.9</version>
          <description kind="short">org.lcsim plugin for JAS3</description>
          <description>org.lcsim plugin for JAS3.</description>
          <load-at-start/>
      </information>
      <resources>
          <j2se minVersion="1.5"/>
          <file href="http://jas.freehep.org/jas3/plugins/lcsim/0.9/lcsim.jar" location="lcsim.jar"/>
          <file href="http://jas.freehep.org/jas3/plugins/lcsim/0.9/freehep-physics.jar" location="freehep-physics.jar"/>
          <file href="http://jas.freehep.org/jas3/plugins/lcsim/0.9/sio.jar" location="sio.jar"/>
          <file href="http://jas.freehep.org/jas3/plugins/lcsim/0.9/GeomConverter.jar" location="GeomConverter.jar"/>
          <file href="http://jas.freehep.org/jas3/plugins/lcsim/0.9/commons-math.jar" location="commons-math.jar"/>
      </resources>
      <plugin-desc class="org.lcsim.plugin.LCSimPlugin"/>
    </plugin>
</plugins>

The load-at-start tag under information means that JAS will automatically instantiate this plugin when the application starts.

The class to be loaded is listed under plugin-desc as org.lcsim.plugin.LCSimPlugin.

Any initialization should be performed in the init() method. The postInit() method is used for any initialization that involves other plugins that may not have been loaded when init() was called.

Menus

Example of adding a File -> New -> Example Plugin menu item.

...