org.eclipse.mylar.internal.tasks.ui.editors
Class SpellingDialog

java.lang.Object
  extended by org.eclipse.jface.window.Window
      extended by org.eclipse.jface.dialogs.Dialog
          extended by org.eclipse.mylar.internal.tasks.ui.editors.SpellingDialog
All Implemented Interfaces:
org.eclipse.jface.window.IShellProvider

public class SpellingDialog
extends org.eclipse.jface.dialogs.Dialog

TODO this is used only for spell checking which is not yet implemented, therefore this is not properly tested

Author:
Shawn Minto

Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.jface.window.Window
org.eclipse.jface.window.Window.IExceptionHandler
 
Field Summary
private  org.eclipse.jface.text.IDocument document
           
private  org.eclipse.jface.text.contentassist.ICompletionProposal[] proposals
           
private  org.eclipse.swt.widgets.List suggestions
           
private  java.lang.String title
           
private  org.eclipse.swt.widgets.Text wordToFix
           
 
Fields inherited from class org.eclipse.jface.dialogs.Dialog
blockedHandler, buttonBar, DIALOG_DEFAULT_BOUNDS, DIALOG_PERSISTLOCATION, DIALOG_PERSISTSIZE, dialogArea, DLG_IMG_ERROR, DLG_IMG_HELP, DLG_IMG_INFO, DLG_IMG_MESSAGE_ERROR, DLG_IMG_MESSAGE_INFO, DLG_IMG_MESSAGE_WARNING, DLG_IMG_QUESTION, DLG_IMG_WARNING, ELLIPSIS
 
Fields inherited from class org.eclipse.jface.window.Window
CANCEL, OK
 
Constructor Summary
protected SpellingDialog(org.eclipse.swt.widgets.Shell parentShell, java.lang.String title, org.eclipse.jface.text.IDocument document)
           
 
Method Summary
protected  void configureShell(org.eclipse.swt.widgets.Shell newShell)
           
protected  org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite parent)
           
protected  void handleShellCloseEvent()
           
 void open(java.lang.String word, org.eclipse.jface.text.contentassist.ICompletionProposal[] proposals)
           
 
Methods inherited from class org.eclipse.jface.dialogs.Dialog
applyDialogFont, buttonPressed, cancelPressed, close, convertHeightInCharsToPixels, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, convertWidthInCharsToPixels, create, createButton, createButtonBar, createButtonsForButtonBar, createContents, dialogFontIsDefault, getBlockedHandler, getButton, getButtonBar, getCancelButton, getDialogArea, getDialogBoundsSettings, getDialogBoundsStrategy, getImage, getInitialLocation, getInitialSize, getOKButton, initializeBounds, initializeDialogUnits, okPressed, setBlockedHandler, setButtonLayoutData, setButtonLayoutFormData, shortenText
 
Methods inherited from class org.eclipse.jface.window.Window
canHandleShellCloseEvent, constrainShellSize, createShell, getConstrainedShellBounds, getContents, getDefaultImage, getDefaultImages, getDefaultOrientation, getLayout, getParentShell, getReturnCode, getShell, getShellListener, getShellStyle, getWindowManager, handleFontChange, open, setBlockOnOpen, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setParentShell, setReturnCode, setShellStyle, setWindowManager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

title

private java.lang.String title

wordToFix

private org.eclipse.swt.widgets.Text wordToFix

suggestions

private org.eclipse.swt.widgets.List suggestions

document

private org.eclipse.jface.text.IDocument document

proposals

private org.eclipse.jface.text.contentassist.ICompletionProposal[] proposals
Constructor Detail

SpellingDialog

protected SpellingDialog(org.eclipse.swt.widgets.Shell parentShell,
                         java.lang.String title,
                         org.eclipse.jface.text.IDocument document)
Method Detail

createDialogArea

protected org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite parent)
Overrides:
createDialogArea in class org.eclipse.jface.dialogs.Dialog

configureShell

protected void configureShell(org.eclipse.swt.widgets.Shell newShell)
Overrides:
configureShell in class org.eclipse.jface.window.Window

open

public void open(java.lang.String word,
                 org.eclipse.jface.text.contentassist.ICompletionProposal[] proposals)

handleShellCloseEvent

protected void handleShellCloseEvent()
Overrides:
handleShellCloseEvent in class org.eclipse.jface.window.Window