java.lang.Object | +--org.eclipse.ui.part.WorkbenchPart | +--org.eclipse.ui.part.ViewPart | +--com.ibm.lab.soln.swt.SWTView
Displays a variety of SWT controls using an Eclipse view as the container.
Field Summary |
Fields inherited from interface org.eclipse.ui.IWorkbenchPart |
PROP_TITLE |
Constructor Summary | |
SWTView()
|
Method Summary | |
void |
createButtons(org.eclipse.swt.widgets.Composite parent)
Creates the buttons that display the Message and File dialogs and their selection listeners. |
void |
createList(org.eclipse.swt.widgets.Composite parent)
Creates the List widget and selection listener. |
void |
createPartControl(org.eclipse.swt.widgets.Composite parent)
Create the contents of the view. |
void |
createProgressBar(org.eclipse.swt.widgets.Composite parent)
Basic demonstration of UI and non-UI thread synchronization. |
void |
createStyledText(org.eclipse.swt.widgets.Composite parent)
Creates a rich text widget, sets its font, and defines event listeners. |
void |
dispose()
Disposes of the font. |
protected void |
open(org.eclipse.swt.widgets.Composite parent)
Populate the widgets into the view container. |
void |
setFocus()
|
void |
widgetDefaultSelected(org.eclipse.swt.events.SelectionEvent e)
|
void |
widgetSelected(org.eclipse.swt.events.SelectionEvent e)
Listener for Button b1. |
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 |
public SWTView()
Method Detail |
public void createButtons(org.eclipse.swt.widgets.Composite parent)
public void createList(org.eclipse.swt.widgets.Composite parent)
public void createPartControl(org.eclipse.swt.widgets.Composite parent)
createPartControl
in interface org.eclipse.ui.IWorkbenchPart
createPartControl
in class org.eclipse.ui.part.WorkbenchPart
WorkbenchPart.createPartControl(Composite)
public void createProgressBar(org.eclipse.swt.widgets.Composite parent)
Display.syncExec(Runnable)
,
Display.asyncExec(Runnable)
public void createStyledText(org.eclipse.swt.widgets.Composite parent)
public void dispose()
dispose
in interface org.eclipse.ui.IWorkbenchPart
dispose
in class org.eclipse.ui.part.WorkbenchPart
createStyledText(Composite)
,
IWorkbenchPart.dispose()
protected void open(org.eclipse.swt.widgets.Composite parent)
public void setFocus()
setFocus
in interface org.eclipse.ui.IWorkbenchPart
setFocus
in class org.eclipse.ui.part.WorkbenchPart
WorkbenchPart.setFocus()
public void widgetDefaultSelected(org.eclipse.swt.events.SelectionEvent e)
widgetDefaultSelected
in interface org.eclipse.swt.events.SelectionListener
SelectionListener.widgetDefaultSelected(SelectionEvent)
public void widgetSelected(org.eclipse.swt.events.SelectionEvent e)
widgetSelected
in interface org.eclipse.swt.events.SelectionListener
createButtons(Composite)
,
SelectionListener.widgetSelected(SelectionEvent)