com.cosylab.vdct.plugins
Class ApplicationRunnerPlugin

java.lang.Object
  extended by com.cosylab.vdct.plugins.ApplicationRunnerPlugin
All Implemented Interfaces:
MenuPlugin, Plugin

public class ApplicationRunnerPlugin
extends java.lang.Object
implements MenuPlugin

Application runner plugin, runs external applications from the VDCT.
A menu Tools->Applications is added.
Applications are configured via plugins configuration file.
Add the following lines to the ${user.home}/.vdctplugins.xml or /etc/vdct/.vdctplugins.xml (system config) file:

 <plugin class="com.cosylab.vdct.plugins.ApplicationRunnerPlugin" autostart="true">
   <param name="Calculator" value="calc" />
   <param name="Minesweeper" value="winmine" />
   <param name="Notepad" value="notepad" />
 </plugin>
 

Author:
Matej Sekoranja

Field Summary
protected  javax.swing.JMenu menu
           
protected  com.cosylab.vdct.plugins.ApplicationRunnerPlugin.MenuItemHandler menuitemHandler
           
 
Constructor Summary
ApplicationRunnerPlugin()
           
 
Method Summary
 void destroy()
          Insert the method's description here.
 java.lang.String getAuthor()
          Insert the method's description here.
 java.lang.String getDescription()
          Insert the method's description here.
 javax.swing.JMenu getMenu()
          Returns menu to be added to the VisualDCT tools menu Plugin should return always the same object.
 java.lang.String getName()
          Insert the method's description here.
 java.lang.String getVersion()
          Insert the method's description here.
 void init(java.util.Properties properties, PluginContext context)
          Insert the method's description here.
 void start()
          Insert the method's description here.
 void stop()
          Insert the method's description here.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

menuitemHandler

protected com.cosylab.vdct.plugins.ApplicationRunnerPlugin.MenuItemHandler menuitemHandler

menu

protected javax.swing.JMenu menu
Constructor Detail

ApplicationRunnerPlugin

public ApplicationRunnerPlugin()
Method Detail

destroy

public void destroy()
Insert the method's description here. Creation date: (8.12.2001 13:29:26)

Specified by:
destroy in interface Plugin
Parameters:
-

getAuthor

public java.lang.String getAuthor()
Insert the method's description here. Creation date: (8.12.2001 13:29:26)

Specified by:
getAuthor in interface Plugin
Returns:
java.lang.String

getDescription

public java.lang.String getDescription()
Insert the method's description here. Creation date: (8.12.2001 13:29:26)

Specified by:
getDescription in interface Plugin
Returns:
java.lang.String

getName

public java.lang.String getName()
Insert the method's description here. Creation date: (8.12.2001 13:29:26)

Specified by:
getName in interface Plugin
Parameters:
-
Returns:

getVersion

public java.lang.String getVersion()
Insert the method's description here. Creation date: (8.12.2001 13:29:26)

Specified by:
getVersion in interface Plugin
Returns:
java.lang.String

init

public void init(java.util.Properties properties,
                 PluginContext context)
Insert the method's description here. Creation date: (8.12.2001 13:29:26)

Specified by:
init in interface Plugin
Parameters:
-

start

public void start()
Insert the method's description here. Creation date: (8.12.2001 13:29:26)

Specified by:
start in interface Plugin
Parameters:
-

stop

public void stop()
Insert the method's description here. Creation date: (8.12.2001 13:29:26)

Specified by:
stop in interface Plugin
Parameters:
-

getMenu

public javax.swing.JMenu getMenu()
Description copied from interface: MenuPlugin
Returns menu to be added to the VisualDCT tools menu Plugin should return always the same object. PluginMenuManager will take care or enabled/disabled status Creation date: (8.12.2001 12:45:31)

Specified by:
getMenu in interface MenuPlugin
Returns:
javax.swing.JMenu
See Also:
MenuPlugin.getMenu()