|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--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.
| Fields inherited from interface org.eclipse.ui.IWorkbenchPart |
PROP_TITLE |
| Constructor Summary | |
BasicViewPart()
The constructor. |
|
| Method Summary | |
(package private) void |
contributeToActionBars()
Adds actions to the action bars for the ViewPart. |
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. |
(package private) void |
fillContextMenu(org.eclipse.jface.action.IMenuManager manager)
Add the actions that should be available to the context menu. |
(package private) void |
fillLocalPullDown(org.eclipse.jface.action.IMenuManager manager)
Adds actions to the pulldown menu structure for the ViewPart. |
(package private) void |
fillLocalToolBar(org.eclipse.jface.action.IToolBarManager manager)
Adds actions to the toolbar for the ViewPart. |
(package private) void |
makeActions()
Create any required Action instances. |
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 |
getViewSite, init, init, saveState, setContentDescription, setInitializationData, setPartName |
| Methods inherited from class org.eclipse.ui.part.WorkbenchPart |
addPropertyListener, dispose, firePropertyChange, getAdapter, getConfigurationElement, getContentDescription, getDefaultImage, getPartName, getSite, getTitle, getTitleImage, getTitleToolTip, internalSetContentDescription, internalSetPartName, removePropertyListener, setDefaultTitle, setSite, setTitle, setTitleImage, setTitleToolTip, showBusy |
| Methods inherited from class java.lang.Object |
|
| 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 class org.eclipse.ui.part.WorkbenchPartvoid fillContextMenu(org.eclipse.jface.action.IMenuManager manager)
selectionChanged method.manager - - the menu structure where the actions will be added.void contributeToActionBars()
ViewPart.void fillLocalPullDown(org.eclipse.jface.action.IMenuManager manager)
ViewPart.
A placeholder for external contributions is added as well ("additions").manager - void fillLocalToolBar(org.eclipse.jface.action.IToolBarManager manager)
ViewPart.
A placeholder for external contributions is added as well ("additions").manager - void makeActions()
Action instances.public void setFocus()
setFocus in class org.eclipse.ui.part.WorkbenchPartpublic void selectionChanged(org.eclipse.jface.viewers.SelectionChangedEvent event)
selectionChanged in interface org.eclipse.jface.viewers.ISelectionChangedListenerISelectionChangedListener.selectionChanged(org.eclipse.jface.viewers.SelectionChangedEvent)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||