org.eclipse.ercp.eworkbench
Class DefaultView

java.lang.Object
  extended by org.eclipse.ui.part.WorkbenchPart
      extended by org.eclipse.ui.part.ViewPart
          extended by org.eclipse.ercp.eworkbench.DefaultView
All Implemented Interfaces:
java.util.EventListener, IAdaptable, IExecutableExtension, IOpenListener, SelectionListener, org.eclipse.swt.internal.SWTEventListener, IPersistable, IViewPart, IWorkbenchPart, IWorkbenchPart2, IWorkbenchPartOrientation

public class DefaultView
extends ViewPart
implements IOpenListener, SelectionListener


Field Summary
static java.lang.String ID_VIEW
           
static java.lang.String ID_VIEW_2
           
 
Fields inherited from interface org.eclipse.ui.IWorkbenchPart
PROP_TITLE
 
Constructor Summary
DefaultView()
           
 
Method Summary
 void createPartControl(Composite parent)
          Creates the SWT controls for this workbench part.
 void open(OpenEvent event)
          Notifies that open request was made
 void setFocus()
          Asks this part to take focus within the workbench.
 void widgetDefaultSelected(SelectionEvent arg0)
          Sent when default selection occurs in the control.
 void widgetSelected(SelectionEvent e)
          Sent when selection occurs in the 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 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_VIEW

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

ID_VIEW_2

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

DefaultView

public DefaultView()
Method Detail

createPartControl

public void createPartControl(Composite parent)
Description copied from interface: IWorkbenchPart
Creates the SWT controls for this workbench part.

Clients should not call this method (the workbench calls this method when it needs to, which may be never).

For implementors this is a multi-step process:

  1. Create one or more controls within the parent.
  2. Set the parent layout as needed.
  3. Register any global actions with the IActionService.
  4. Register any popup menus with the IActionService.
  5. Register a selection provider with the ISelectionService (optional).

Specified by:
createPartControl in interface IWorkbenchPart
Specified by:
createPartControl in class WorkbenchPart
Parameters:
parent - the parent control

setFocus

public void setFocus()
Description copied from interface: IWorkbenchPart
Asks this part to take focus within the workbench.

Clients should not call this method (the workbench calls this method at appropriate times). To have the workbench activate a part, use IWorkbenchPage.activate(IWorkbenchPart) instead.

Specified by:
setFocus in interface IWorkbenchPart
Specified by:
setFocus in class WorkbenchPart

open

public void open(OpenEvent event)
Notifies that open request was made

Specified by:
open in interface IOpenListener
Parameters:
event - event object describing the selection

widgetSelected

public void widgetSelected(SelectionEvent e)
Description copied from interface: SelectionListener
Sent when selection occurs in the control.

For example, selection occurs in a List when the user selects an item or items with the keyboard or mouse. On some platforms, the event occurs when a mouse button or key is pressed. On others, it happens when the mouse or key is released. The exact key or mouse gesture that causes this event is platform specific.

Specified by:
widgetSelected in interface SelectionListener
Parameters:
e - an event containing information about the selection

widgetDefaultSelected

public void widgetDefaultSelected(SelectionEvent arg0)
Description copied from interface: SelectionListener
Sent when default selection occurs in the control.

For example, on some platforms default selection occurs in a List when the user double-clicks an item or types return in a Text. On some platforms, the event occurs when a mouse button or key is pressed. On others, it happens when the mouse or key is released. The exact key or mouse gesture that causes this event to is platform specific.

Specified by:
widgetDefaultSelected in interface SelectionListener
Parameters:
arg0 - an event containing information about the default selection