com.ibm.jdg2e.swt_swing.embed.converter.views
Class EmbeddedSwingConverterView

java.lang.Object
  extended byorg.eclipse.core.commands.common.EventManager
      extended byorg.eclipse.ui.part.WorkbenchPart
          extended byorg.eclipse.ui.part.ViewPart
              extended bycom.ibm.jdg2e.swt_swing.embed.converter.views.EmbeddedSwingConverterView
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener, 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.part.IWorkbenchPartOrientation

public class EmbeddedSwingConverterView
extends org.eclipse.ui.part.ViewPart
implements java.awt.event.ActionListener

An example of incorporating Swing components in an SWT composite as the user interface for a view part.


Field Summary
 
Fields inherited from interface org.eclipse.ui.IWorkbenchPart
PROP_TITLE
 
Constructor Summary
EmbeddedSwingConverterView()
          The constructor.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          Responds to AWT events.
 void createPartControl(org.eclipse.swt.widgets.Composite parent)
          Creates the user interface for a view that can host a mix of SWT and Swing components.
 void setFocus()
           
 
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

EmbeddedSwingConverterView

public EmbeddedSwingConverterView()
The constructor.

Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Responds to AWT events. (non-Javadoc)

Specified by:
actionPerformed in interface java.awt.event.ActionListener
See Also:
ActionListener.actionPerformed(java.awt.event.ActionEvent)

createPartControl

public void createPartControl(org.eclipse.swt.widgets.Composite parent)
Creates the user interface for a view that can host a mix of SWT and Swing components.

Specified by:
createPartControl in interface org.eclipse.ui.IWorkbenchPart

setFocus

public void setFocus()
Specified by:
setFocus in interface org.eclipse.ui.IWorkbenchPart