com.pvx.ooadide.views.nomads
Class LibView

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 com.pvx.ooadide.views.nomads.LibView
All Implemented Interfaces:
PvxView, 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.IWorkbenchPart3, org.eclipse.ui.part.IWorkbenchPartOrientation
Direct Known Subclasses:
IOListView

public class LibView
extends org.eclipse.ui.part.ViewPart
implements PvxView

This sample class demonstrates how to plug-in a new workbench view. The view shows data obtained from the model. The sample creates a dummy model on the fly, but a real implementation would connect to the model available either in this or another plug-in (e.g. the workspace). The view is connected to the model using a content provider.

The view uses a label provider to define how model objects should be presented in the view. Each view can present the same model objects using different labels and icons, if needed. Alternatively, a single label provider can be shared between views in order to ensure that objects of the same type are presented in the same way everywhere.


Nested Class Summary
 class LibView.ViewContentProvider
           
 class LibView.ViewLabelProvider
           
 
Field Summary
static java.lang.String CHARSET
           
static java.lang.String ID
           
static java.lang.String LIBLOG_NAME
           
static java.lang.String NOMADS_systemDefaults
           
static java.lang.String sep
           
static java.lang.String WINDEFINE_PROGRAM
           
static java.lang.String WINTEST_PROGRAM
           
 
Fields inherited from interface org.eclipse.ui.IWorkbenchPart
PROP_TITLE
 
Constructor Summary
LibView()
          The constructor.
 
Method Summary
 void createPartControl(org.eclipse.swt.widgets.Composite parent)
          This is a callback that will allow us to create the viewer and initialize it.
 void dispose()
           
 void openWinDefineView()
           
 void refresh()
           
 void scanLog(java.io.File libLog, java.util.Vector msgs, java.lang.String libPath)
           
 void setFocus()
          Passing the focus request to the viewer's control.
 
Methods inherited from class org.eclipse.ui.part.ViewPart
getViewSite, init, init, saveState, setInitializationData
 
Methods inherited from class org.eclipse.ui.part.WorkbenchPart
addPartPropertyListener, addPropertyListener, getAdapter, getContentDescription, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, getTitleToolTip, removePartPropertyListener, removePropertyListener, setPartProperty, showBusy
 
Methods inherited from class java.lang.Object
equals, 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
 

Field Detail

WINDEFINE_PROGRAM

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

WINTEST_PROGRAM

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

LIBLOG_NAME

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

CHARSET

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

sep

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

ID

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

NOMADS_systemDefaults

public static final java.lang.String NOMADS_systemDefaults
See Also:
Constant Field Values
Constructor Detail

LibView

public LibView()
The constructor.

Method Detail

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

dispose

public void dispose()
Specified by:
dispose in interface org.eclipse.ui.IWorkbenchPart
Overrides:
dispose in class org.eclipse.ui.part.WorkbenchPart

openWinDefineView

public void openWinDefineView()

scanLog

public void scanLog(java.io.File libLog,
                    java.util.Vector msgs,
                    java.lang.String libPath)

refresh

public void refresh()
Specified by:
refresh in interface PvxView