org.apache.qpid.management.ui.views
Class NavigationView

java.lang.Object
  extended by org.eclipse.core.commands.common.EventManager
      extended by org.eclipse.ui.part.WorkbenchPart
          extended by org.eclipse.ui.part.ViewPart
              extended by org.apache.qpid.management.ui.views.NavigationView
All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable, org.eclipse.core.runtime.IExecutableExtension, org.eclipse.ui.IPersistable, org.eclipse.ui.IViewPart, org.eclipse.ui.IWorkbenchPart, org.eclipse.ui.IWorkbenchPart2, org.eclipse.ui.part.IWorkbenchPartOrientation

public class NavigationView
extends org.eclipse.ui.part.ViewPart

Navigation View for navigating the managed servers and managed beans on those servers

Author:
Bhupendra Bhardwaj

Field Summary
static java.lang.String ID
           
static java.lang.String INI_FILENAME
           
 
Fields inherited from interface org.eclipse.ui.IWorkbenchPart
PROP_TITLE
 
Constructor Summary
NavigationView()
           
 
Method Summary
 void addManagedBean(ManagedBean mbean)
          Adds the mbean to the navigation tree
 void addNewServer(java.lang.String transportProtocol, java.lang.String host, java.lang.String port, java.lang.String domain)
          Adds a new server node in the navigation view if server connection is successful.
 void createPartControl(org.eclipse.swt.widgets.Composite parent)
          This is a callback that will allow us to create the viewer and initialize it.
 void disconnect()
          Closes the Qpid server connection
 void reconnect()
          Connects the selected server node
 void refresh()
           
 void removeServer()
          Closes the Qpid server connection if not already closed and removes the server node from the navigation view and also from the ini file stored in the system.
 void setFocus()
          Passing the focus request to the viewer's control.
 
Methods inherited from class org.eclipse.ui.part.ViewPart
checkSite, getViewSite, init, init, saveState, setContentDescription, setInitializationData, setPartName
 
Methods inherited from class org.eclipse.ui.part.WorkbenchPart
addPropertyListener, dispose, firePropertyChange, getAdapter, getConfigurationElement, getContentDescription, getDefaultImage, getOrientation, getPartName, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener, setSite, setTitle, setTitleImage, setTitleToolTip, showBusy
 
Methods inherited from class org.eclipse.core.commands.common.EventManager
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.ui.IWorkbenchPart
addPropertyListener, dispose, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 

Field Detail

ID

public static final java.lang.String ID
See Also:
Constant Field Values

INI_FILENAME

public static final java.lang.String INI_FILENAME
Constructor Detail

NavigationView

public NavigationView()
Method Detail

addNewServer

public void addNewServer(java.lang.String transportProtocol,
                         java.lang.String host,
                         java.lang.String port,
                         java.lang.String domain)
                  throws java.lang.Exception
Adds a new server node in the navigation view if server connection is successful.

Parameters:
transportProtocol -
host -
port -
domain -
Throws:
java.lang.Exception

disconnect

public void disconnect()
                throws java.lang.Exception
Closes the Qpid server connection

Throws:
java.lang.Exception

reconnect

public void reconnect()
               throws java.lang.Exception
Connects the selected server node

Throws:
java.lang.Exception

removeServer

public void removeServer()
                  throws java.lang.Exception
Closes the Qpid server connection if not already closed and removes the server node from the navigation view and also from the ini file stored in the system.

Throws:
java.lang.Exception

createPartControl

public void createPartControl(org.eclipse.swt.widgets.Composite parent)
This is a callback that will allow us to create the viewer and initialize it.

Specified by:
createPartControl in interface org.eclipse.ui.IWorkbenchPart
Specified by:
createPartControl in class org.eclipse.ui.part.WorkbenchPart

setFocus

public void setFocus()
Passing the focus request to the viewer's control.

Specified by:
setFocus in interface org.eclipse.ui.IWorkbenchPart
Specified by:
setFocus in class org.eclipse.ui.part.WorkbenchPart

refresh

public void refresh()

addManagedBean

public void addManagedBean(ManagedBean mbean)
                    throws java.lang.Exception
Adds the mbean to the navigation tree

Parameters:
mbean -
Throws:
java.lang.Exception


Copyright © 2007. All Rights Reserved.