
<!DOCTYPE ACTIONS SYSTEM "actions.dtd"><!--
   Actions use bean shell commands to get things done. In the code below,
   the DockableWindowManager is passed the name of the plugin as set in 
   the static NAME field in the AntelopePlugin.
-->
<ACTIONS>
   <!-- show the Antelope panel -->
   <ACTION NAME="antelope.show">
      <CODE>
         view.getDockableWindowManager().showDockableWindow(ise.antelope.plugin.AntelopePlugin.NAME);
      </CODE>
   </ACTION>

   <!-- hide the Antelope panel -->
   <ACTION NAME="antelope.hide">
      <CODE>
         view.getDockableWindowManager().hideDockableWindow(ise.antelope.plugin.AntelopePlugin.NAME);
      </CODE>
   </ACTION>

   <!-- toggle the visibility of the Antelope panel -->
   <ACTION NAME="antelope.toggle">
      <CODE>
         view.getDockableWindowManager().toggleDockableWindow(ise.antelope.plugin.AntelopePlugin.NAME);
      </CODE>
      <IS_SELECTED>
         return view.getDockableWindowManager().isDockableWindowVisible(ise.antelope.plugin.AntelopePlugin.NAME);
      </IS_SELECTED>
   </ACTION>
   
   <ACTION NAME="antelope.default">
      <CODE>
         ise.antelope.plugin.AntelopePlugin plugin = jEdit.getPlugin("ise.antelope.plugin.AntelopePlugin");
         final View myview = view;
         SwingUtilities.invokeLater(new Runnable(){
            public void run() {
               plugin.executeDefaultTarget(myview);
            }
         });
      </CODE>
   </ACTION>

   <ACTION NAME="antelope.lastran">
      <CODE>
         ise.antelope.plugin.AntelopePlugin plugin = jEdit.getPlugin("ise.antelope.plugin.AntelopePlugin");
         final View myview = view;
         SwingUtilities.invokeLater(new Runnable(){
            public void run() {
               plugin.executeLastRanTargets(myview);
            }
         });
      </CODE>
   </ACTION>
  
</ACTIONS>

