SHIVA.START_RC ( vs. r1.1)
Diffs

 <<O>>  Difference Topic START_RC (r1.1 - 06 Jan 2006 - Main.HengYuan)
Line: 1 to 1
Added:
>
>
META TOPICPARENT StartConfigure
STARTUP_RC points to an XML list of plugins to be loaded. It should be noted that how SHIVA looks is mainly specified using plugins. It is written in CookXml.

shiva.PluginManager is responsible loading this file. It provides a tag library for CookXml. The tag library can be dynamically changed at run time by plugins, so additional tags may be supported.

By default, PluginManager supports the following tags:

  1. <plugins> is the XML document root.
  2. <load plugin="pluginClassName"> for loading a plugin class that does not the additional configuration parameter. For example:
    <load plugin="trogdor.about.About"/>
    
  3. <load plugin="pluginClassName" config="parameter"> for loading a plugin class that requires the additional configuration parameter. Usually this parameter specifies an configuration resource file location. For example:
    <load plugin="shiva.plugins.ColorMapLoader" config="shiva/resources/colormap.xml"/>
    

Tags Introduced by Plugins

<java3d>

shiva.plugins.Java3DLoader introduces this tag such that plugins enclosed are loaded only if Java3D is installed on the client machine.
   <java3d>
      <load plugin="shiva.plugins.surface.SurfacePlugin" />
      <load plugin="shiva.plugins.duffsurface.DFSReader"/>
      <load plugin="shiva.plugins.curveeditor.CurveReader"/>
      <load plugin="shiva.plugins.atlas3d.Atlas3DReader"/>
   </java3d>

<release>

shiva.plugins.VersionLoader introduces this tag so that plugins enclosed are loaded only if the release name of the jar package matches the title specified. title attribute must be specified. default attribute is used to specify the release configuration to use if the jar package release is not specified.

For example:

   <release title="shiva">
      <workspace name="viewWorkSpace" src="shiva/resources/view_workspace.xml" default="true"/>
   </release>
   <release title="shiva_test" default="true">
      <workspace name="viewWorkSpace" src="shiva/resources/view_workspace_test.xml" default="true"/>
      <workspace name="curveRegWorkSpace" src="shiva/resources/curvereg_workspace.xml"/>
      <workspace name="pointRegWorkSpace" src="shiva/resources/pointreg_workspace.xml"/>
   </release>

<workspace>

shiva.workspace.WorkSpaceLoader introduces this tag to the PluginManager for workspace configuration. In general, it is geared toward classes that inherit shiva.workspace.XmlWorkSpace, but other workspaces can also be configured as the default workspace. src attribute specifies the resource file used for the workspaces that inherits XmlWorkSpace to configure its menu and toolbar, etc. default attribute is used to set the default workspace.

For example:

   <workspace name="viewWorkSpace" src="shiva/resources/view_workspace_test.xml" default="true"/>
   <workspace name="curveRegWorkSpace" src="shiva/resources/curvereg_workspace.xml"/>
   <workspace name="pointRegWorkSpace" src="shiva/resources/pointreg_workspace.xml"/>

Topic: START_RC . { View | Diffs | r1.1 | More }

Revision -
Revision r1.1 - 06 Jan 2006 - 23:24 - Main.HengYuan