sk.uniba.euromath.plugin.views.inputBox
Class InputBoxView

java.lang.Object
  extended by org.eclipse.core.commands.common.EventManager
      extended by org.eclipse.ui.part.WorkbenchPart
          extended by org.eclipse.ui.part.ViewPart
              extended by sk.uniba.euromath.plugin.views.inputBox.InputBoxView
All Implemented Interfaces:
IAdaptable, IExecutableExtension, IInputProvider, IPartListener, IPersistable, IViewPart, IWorkbenchPart, IWorkbenchPart2, IWorkbenchPartOrientation, IFocusListener

public class InputBoxView
extends ViewPart
implements IInputProvider, IPartListener, IFocusListener

Box to fast input of text.

Author:
Tomáš Studva 20.7.2005

Field Summary
static String ID
           
 
Fields inherited from interface org.eclipse.ui.IWorkbenchPart
PROP_TITLE
 
Constructor Summary
InputBoxView()
           
 
Method Summary
 void createPartControl(Composite parent)
           
 void focusGained(IEditor editor)
          Sent when IEditor gets focus.
 void focusLost(IEditor editor)
          Sent when IEditor loses focus.
protected  EditorSite getActiveEditorSite()
           
 Object getAdapter(Class adapter)
           
 Object getInput()
           
 InsertTextAction getInsertTextAction()
           
protected  Text getTextWidget()
           
 void init(IViewSite site)
           
protected  boolean isEnabled()
           
 void partActivated(IWorkbenchPart part)
           
 void partBroughtToTop(IWorkbenchPart part)
           
 void partClosed(IWorkbenchPart part)
           
 void partDeactivated(IWorkbenchPart part)
           
 void partOpened(IWorkbenchPart part)
           
protected  void setActiveEditorSite(EditorSite activeEditorSite)
           
 void setFocus()
           
protected  void setInsertTextAction(InsertTextAction insertTextAction)
           
protected  void setTextWidget(Text textWidget)
           
 
Methods inherited from class org.eclipse.ui.part.ViewPart
checkSite, getViewSite, init, saveState, setContentDescription, setInitializationData, setPartName
 
Methods inherited from class org.eclipse.ui.part.WorkbenchPart
addPropertyListener, dispose, firePropertyChange, 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
 

Field Detail

ID

public static String ID
Constructor Detail

InputBoxView

public InputBoxView()
Method Detail

init

public void init(IViewSite site)
          throws PartInitException
Specified by:
init in interface IViewPart
Overrides:
init in class ViewPart
Throws:
PartInitException

createPartControl

public void createPartControl(Composite parent)
Specified by:
createPartControl in interface IWorkbenchPart
Specified by:
createPartControl in class WorkbenchPart

setFocus

public void setFocus()
Specified by:
setFocus in interface IWorkbenchPart
Specified by:
setFocus in class WorkbenchPart

getAdapter

public Object getAdapter(Class adapter)
Specified by:
getAdapter in interface IAdaptable
Overrides:
getAdapter in class WorkbenchPart

getInput

public Object getInput()
Specified by:
getInput in interface IInputProvider

partActivated

public void partActivated(IWorkbenchPart part)
Specified by:
partActivated in interface IPartListener

partBroughtToTop

public void partBroughtToTop(IWorkbenchPart part)
Specified by:
partBroughtToTop in interface IPartListener

partClosed

public void partClosed(IWorkbenchPart part)
Specified by:
partClosed in interface IPartListener

partDeactivated

public void partDeactivated(IWorkbenchPart part)
Specified by:
partDeactivated in interface IPartListener

partOpened

public void partOpened(IWorkbenchPart part)
Specified by:
partOpened in interface IPartListener

focusGained

public void focusGained(IEditor editor)
Description copied from interface: IFocusListener
Sent when IEditor gets focus.

Specified by:
focusGained in interface IFocusListener
Parameters:
editor - which has acquired focus

focusLost

public void focusLost(IEditor editor)
Description copied from interface: IFocusListener
Sent when IEditor loses focus.

Specified by:
focusLost in interface IFocusListener
Parameters:
editor - which has lost focus

getInsertTextAction

public InsertTextAction getInsertTextAction()
Returns:
Returns the insertTextAction.

getActiveEditorSite

protected EditorSite getActiveEditorSite()
Returns:
Returns the activeEditorSite.

setActiveEditorSite

protected void setActiveEditorSite(EditorSite activeEditorSite)
Parameters:
activeEditorSite - The activeEditorSite to set.

getTextWidget

protected Text getTextWidget()
Returns:
Returns the textWidget.

setTextWidget

protected void setTextWidget(Text textWidget)
Parameters:
textWidget - The textWidget to set.

isEnabled

protected boolean isEnabled()
Returns:
Returns the enabled.

setInsertTextAction

protected void setInsertTextAction(InsertTextAction insertTextAction)
Parameters:
insertTextAction - The insertTextAction to set.


Copyright © 2003-2006 null. All Rights Reserved.