edu.webfoot.vnc.editor
Class VNCEditor
java.lang.Object
org.eclipse.core.commands.common.EventManager
org.eclipse.ui.part.WorkbenchPart
org.eclipse.ui.part.EditorPart
edu.webfoot.vnc.editor.VNCEditor
- All Implemented Interfaces:
- java.util.EventListener, org.eclipse.core.runtime.IAdaptable, org.eclipse.core.runtime.IExecutableExtension, org.eclipse.swt.events.FocusListener, org.eclipse.swt.events.KeyListener, org.eclipse.swt.events.MouseListener, org.eclipse.swt.internal.SWTEventListener, org.eclipse.ui.IEditorPart, org.eclipse.ui.ISaveablePart, org.eclipse.ui.IWorkbenchPart, org.eclipse.ui.IWorkbenchPart2, org.eclipse.ui.IWorkbenchPart3, org.eclipse.ui.part.IWorkbenchPartOrientation
public class VNCEditor
- extends org.eclipse.ui.part.EditorPart
- implements org.eclipse.swt.events.KeyListener, org.eclipse.swt.events.MouseListener, org.eclipse.swt.events.FocusListener
This editor is used to display the desktop of a remote system.
It uses ScrollingCanvas and ImageCanvas for the graphics.
AutoRefresh takes care of re-sampling the data and redrawing.
Keyboard and Mouse events are listened for and sent on the remote system.
- Author:
- Ken Breeman (kbreeman@wpi.edu), Eric Griffel (sniffels@wpi.edu)
Fields inherited from interface org.eclipse.ui.IEditorPart |
PROP_DIRTY, PROP_INPUT |
Fields inherited from interface org.eclipse.ui.IWorkbenchPart |
PROP_TITLE |
Methods inherited from class org.eclipse.ui.part.EditorPart |
getEditorInput, getEditorSite, getTitleToolTip, isSaveOnCloseNeeded, setInitializationData |
Methods inherited from class org.eclipse.ui.part.WorkbenchPart |
addPartPropertyListener, addPropertyListener, getAdapter, getContentDescription, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, removePartPropertyListener, removePropertyListener, setPartProperty, showBusy |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.ui.IWorkbenchPart |
addPropertyListener, getSite, getTitle, getTitleImage, removePropertyListener |
Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
getAdapter |
newViewerId
public static java.lang.String newViewerId
VNCEditor
public VNCEditor()
dispose
public void dispose()
- Specified by:
dispose
in interface org.eclipse.ui.IWorkbenchPart
- Overrides:
dispose
in class org.eclipse.ui.part.WorkbenchPart
doSave
public void doSave(org.eclipse.core.runtime.IProgressMonitor monitor)
- Specified by:
doSave
in interface org.eclipse.ui.ISaveablePart
- Specified by:
doSave
in class org.eclipse.ui.part.EditorPart
doSaveAs
public void doSaveAs()
- Specified by:
doSaveAs
in interface org.eclipse.ui.ISaveablePart
- Specified by:
doSaveAs
in class org.eclipse.ui.part.EditorPart
init
public void init(org.eclipse.ui.IEditorSite site,
org.eclipse.ui.IEditorInput input)
throws org.eclipse.ui.PartInitException
- Specified by:
init
in interface org.eclipse.ui.IEditorPart
- Specified by:
init
in class org.eclipse.ui.part.EditorPart
- Throws:
org.eclipse.ui.PartInitException
isDirty
public boolean isDirty()
- Specified by:
isDirty
in interface org.eclipse.ui.ISaveablePart
- Specified by:
isDirty
in class org.eclipse.ui.part.EditorPart
isSaveAsAllowed
public boolean isSaveAsAllowed()
- Specified by:
isSaveAsAllowed
in interface org.eclipse.ui.ISaveablePart
- Specified by:
isSaveAsAllowed
in class org.eclipse.ui.part.EditorPart
createPartControl
public void createPartControl(org.eclipse.swt.widgets.Composite parent)
- Specified by:
createPartControl
in interface org.eclipse.ui.IWorkbenchPart
- Specified by:
createPartControl
in class org.eclipse.ui.part.WorkbenchPart
setFocus
public void setFocus()
- Specified by:
setFocus
in interface org.eclipse.ui.IWorkbenchPart
- Specified by:
setFocus
in class org.eclipse.ui.part.WorkbenchPart
setTitle
public void setTitle(java.lang.String title)
- Overrides:
setTitle
in class org.eclipse.ui.part.WorkbenchPart
getRefresher
public AutoRefresh getRefresher()
setRefresher
public void setRefresher(AutoRefresh ar)
keyPressed
public void keyPressed(org.eclipse.swt.events.KeyEvent arg0)
- Specified by:
keyPressed
in interface org.eclipse.swt.events.KeyListener
keyReleased
public void keyReleased(org.eclipse.swt.events.KeyEvent arg0)
- Specified by:
keyReleased
in interface org.eclipse.swt.events.KeyListener
mouseDoubleClick
public void mouseDoubleClick(org.eclipse.swt.events.MouseEvent arg0)
- Specified by:
mouseDoubleClick
in interface org.eclipse.swt.events.MouseListener
mouseDown
public void mouseDown(org.eclipse.swt.events.MouseEvent arg0)
- Specified by:
mouseDown
in interface org.eclipse.swt.events.MouseListener
mouseUp
public void mouseUp(org.eclipse.swt.events.MouseEvent arg0)
- Specified by:
mouseUp
in interface org.eclipse.swt.events.MouseListener
focusGained
public void focusGained(org.eclipse.swt.events.FocusEvent arg0)
- Specified by:
focusGained
in interface org.eclipse.swt.events.FocusListener
focusLost
public void focusLost(org.eclipse.swt.events.FocusEvent arg0)
- Specified by:
focusLost
in interface org.eclipse.swt.events.FocusListener
hasFocus
public boolean hasFocus()
setImageCanvas
public void setImageCanvas(ImageCanvas ic)
getImageCanvas
public ImageCanvas getImageCanvas()
setScrollCanvas
public void setScrollCanvas(ScrollingCanvas sc)
getScrollCanvas
public ScrollingCanvas getScrollCanvas()
getClient
public VNCViewer getClient()