<invoke-target-type>

(Optional) Defines the type of target.

Parent elements:

<invoke-target>

Child elements:

None.

Description:

The <invoke_target_type> element defines the type of the target. The supported types are:

  • application: The target is an application and is started only when required.
  • viewer: The target reference always spawns a new window and window re-parenting is required.

Content:

A PCDATA value the target type You can use the following types:

application:
The target is an application and is started only when required.
viewer:
The target reference always spawns a new window and window re-parenting is required.

Attributes:

None.

Example:

<invoke-target id="com.mycompany.pdf.viewer">
   <invoke-target-type>viewer</invoke-target-type>
   <filter>
      <action>bb.action.VIEW</action>
      <action>bb.action.EDIT</action>
      <mime-type>application/pdf</mime-type>
      <mime-type>application/x-pdf</mime-type>
   </filter>
</invoke-target>

<invoke-target id="com.mycompany.pdf.app">
   <invoke-target-type>application</invoke-target-type>
   <filter>
      <action>bb.action.EDIT</action>
      <mime-type>application/pdf</mime-type>
      <mime-type>application/x-pdf</mime-type>
      <property var="uris" value="file://,pdf://"/>
      <property var="exts" value="pdf"/>
   </filter>
   <filter>
      <action>bb.action.VIEW</action>
      <mime-type>application/pdf</mime-type>
      <mime-type>application/x-pdf</mime-type>
   </filter>
 </invoke-target>
            
comments powered by Disqus