|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.eclipse.core.commands.common.EventManager
org.eclipse.ui.part.WorkbenchPart
org.eclipse.ui.part.ViewPart
com.ibm.jdg2e.view.basic.BasicViewPart
A basic example of the creation of a ViewPart.
This example uses a TableViewer to create the user
interface and uses a IRoadTrip object as the input
to the view. This comes from the SimpleModel plug-in.
Actions are created and added to the view's drop down menu and toolbar. These same actions are also added to the context menu for the viewer used in the view.
| Field Summary |
| Fields inherited from interface org.eclipse.ui.IWorkbenchPart |
PROP_TITLE |
| Constructor Summary | |
BasicViewPart()
The constructor. |
|
| Method Summary | |
void |
createPartControl(org.eclipse.swt.widgets.Composite parent)
This method is called for each ViewPart to allow the customized
user interface content to be created. |
void |
selectionChanged(org.eclipse.jface.viewers.SelectionChangedEvent event)
Force delete action to only be available when something is selected in the viewer. |
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 |
| Constructor Detail |
public BasicViewPart()
| Method Detail |
public void createPartControl(org.eclipse.swt.widgets.Composite parent)
ViewPart to allow the customized
user interface content to be created.
In this example a simple TableViewer structure is created and used
to display the IRoadTrip model.
createPartControl in interface org.eclipse.ui.IWorkbenchPartIWorkbenchPart.createPartControl(org.eclipse.swt.widgets.Composite)public void selectionChanged(org.eclipse.jface.viewers.SelectionChangedEvent event)
selectionChanged in interface org.eclipse.jface.viewers.ISelectionChangedListenerISelectionChangedListener.selectionChanged(org.eclipse.jface.viewers.SelectionChangedEvent)public void setFocus()
setFocus in interface org.eclipse.ui.IWorkbenchPart
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||