com.buglabs.bug.update
Class MenuAdapter

java.lang.Object
  extended by com.buglabs.menu.AbstractMenuNode
      extended by com.buglabs.bug.update.MenuAdapter
All Implemented Interfaces:
IMenuNode

public class MenuAdapter
extends AbstractMenuNode

A menu node that tries to update BUG upon selection.

Author:
kgilmer

Constructor Summary
MenuAdapter(org.osgi.framework.BundleContext context, RepositoryAdmin repoAdmin)
           
 
Method Summary
 void execute()
          If menu node is a leaf, the user has selected this node for execution.
 
Methods inherited from class com.buglabs.menu.AbstractMenuNode
equals, getChildren, getFirstParentOfType, getName, getNextSibling, getParent, getPreviousSibling, hasChildren, setName, setParent, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MenuAdapter

public MenuAdapter(org.osgi.framework.BundleContext context,
                   RepositoryAdmin repoAdmin)
Method Detail

execute

public void execute()
             throws java.lang.Exception
Description copied from interface: IMenuNode
If menu node is a leaf, the user has selected this node for execution. Specific logic should be implemented here.

Specified by:
execute in interface IMenuNode
Overrides:
execute in class AbstractMenuNode
Throws:
java.lang.Exception