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:
com.buglabs.menu.IMenuNode, java.lang.Comparable

public class MenuAdapter
extends com.buglabs.menu.AbstractMenuNode

A menu node that tries to update BUG upon selection.


Constructor Summary
MenuAdapter(org.osgi.framework.BundleContext context, org.osgi.service.obr.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
compareTo, equals, getBusyName, getChildren, getComparator, getErrorName, getFirstParentOfType, getName, getNextSibling, getParent, getPath, getPreviousSibling, hasChildren, isBusy, isError, setName, setParent, sortChildren, 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,
                   org.osgi.service.obr.RepositoryAdmin repoAdmin)
Method Detail

execute

public void execute()
             throws java.lang.Exception
Description copied from interface: com.buglabs.menu.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 com.buglabs.menu.IMenuNode
Overrides:
execute in class com.buglabs.menu.AbstractMenuNode
Throws:
java.lang.Exception