net.sf.tm.plugin.ui
Class WebContextView

java.lang.Object
  extended byorg.eclipse.ui.part.WorkbenchPart
      extended byorg.eclipse.ui.part.ViewPart
          extended bynet.sf.tm.plugin.ui.WebContextView
All Implemented Interfaces:
IAdaptable, IExecutableExtension, IUpdatable, IViewPart, IWorkbenchPart

public class WebContextView
extends ViewPart
implements IUpdatable

Main view of the plugin. Displays a Tree with all configured servers.

Version:
$Id: WebContextView.java,v 1.8 2004/03/28 16:22:09 apataki Exp $
Author:
Andreas Pataki

Field Summary
 
Fields inherited from interface org.eclipse.ui.IWorkbenchPart
PROP_TITLE
 
Constructor Summary
WebContextView()
           
 
Method Summary
 void createPartControl(Composite parent)
          This is a callback that will allow us to create the viewer and initialize it.
 void dispose()
           
 Object getSelected()
           
 void setFocus()
          Passing the focus request to the viewer's control.
 void update()
          Mehod for updating the view.
 void updateContextNode(TreeNode contextNode)
          Updates the status of a single context.
 
Methods inherited from class org.eclipse.ui.part.ViewPart
getViewSite, init, init, saveState
 
Methods inherited from class org.eclipse.ui.part.WorkbenchPart
addPropertyListener, firePropertyChange, getAdapter, getConfigurationElement, getDefaultImage, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener, setInitializationData, setSite, setTitle, setTitleImage, setTitleToolTip
 
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, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 

Constructor Detail

WebContextView

public WebContextView()
Method Detail

createPartControl

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

Specified by:
createPartControl in interface IWorkbenchPart

dispose

public void dispose()
Specified by:
dispose in interface IWorkbenchPart
See Also:
IWorkbenchPart.dispose()

update

public void update()
Mehod for updating the view. It should be allways called when tree data has changed. On call the tree will get refreshed and the action status will get updated.

Specified by:
update in interface IUpdatable

updateContextNode

public void updateContextNode(TreeNode contextNode)
Updates the status of a single context.

Parameters:
contextNode - Context element

setFocus

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

Specified by:
setFocus in interface IWorkbenchPart

getSelected

public Object getSelected()


Copyright © 2003-2004 Andreas Pataki. All Rights Reserved.