sk.uniba.euromath.editor.textEditor
Class TextEditor

java.lang.Object
  extended by sk.uniba.euromath.editor.xmlEditor.XMLEditor
      extended by sk.uniba.euromath.editor.textEditor.TextEditor
All Implemented Interfaces:
EventListener, IAdaptable, FocusListener, org.eclipse.swt.internal.SWTEventListener, IEditor, IDOMSelectionChangedListener, IDOMSelectionProvider, IClipboardProvider

public class TextEditor
extends XMLEditor
implements IAdaptable, IClipboardProvider

Author:
Tomáš Studva, Martin Kollar Sep 27, 2005

Field Summary
protected  CaretManager caretManager
          Manager that cares about Caret
 
Constructor Summary
TextEditor()
          Constructor
 
Method Summary
protected  void configureGraphicalViewer()
          Configures viewer for work.
protected  IActionContributor createActionContributor()
          Creates action contributor.
protected  org.eclipse.gef.EditDomain createEditDomain()
          Overrides XMLEditor#createEditDomain() just to set TextStructureTool as default and active tool instead of XMLStructureTool
protected  TextEditPartFactory createEditPartFactory()
          Creates XMLEditPartFactory.
 Object getAdapter(Class adapter)
           
 Clipboard getClipboard()
          Returns system clipboard reference.
 void reinit(Source transformedDoc, sk.baka.ikslibs.modify.IChangeCollector changes)
           Reinitialize the editor when a partial change of the transformed document occurs.
 
Methods inherited from class sk.uniba.euromath.editor.xmlEditor.XMLEditor
addFocusListener, addSelectionChangedListener, createAndInitKeyHandler, createGraphicalViewer, createRootEditPart, createTopEditPart, dispose, fireSelectionChangeEvent, focusGained, focusLost, getActionContributor, getClientComposite, getCommandStack, getDOMSelection, getEditDomain, getEditorSite, getEditPartFactory, getFocusListeners, getGraphicalViewer, getHostingComposite, getIEditorSite, getRenderer, getSelectionListeners, getVisualInfo, getVisualizedIds, getXMLAccess, hookGraphicalViewer, init, initializeGraphicalViewer, isRootEditor, performPaintUpdate, removeFocusListener, removeSelectionChangedListener, selectionChanged, setActionContributor, setEditPartFactory, setFocus, setGraphicalViewer, setKeyHandler, setSelection, sortIds, startSelectionListening, stopSelectionListening
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

caretManager

protected CaretManager caretManager
Manager that cares about Caret

Constructor Detail

TextEditor

public TextEditor()
Constructor

Method Detail

createEditDomain

protected org.eclipse.gef.EditDomain createEditDomain()
Overrides XMLEditor#createEditDomain() just to set TextStructureTool as default and active tool instead of XMLStructureTool

Overrides:
createEditDomain in class XMLEditor
Returns:
new EditDomain

createEditPartFactory

protected TextEditPartFactory createEditPartFactory()
Description copied from class: XMLEditor
Creates XMLEditPartFactory.

Overrides:
createEditPartFactory in class XMLEditor
Returns:
created XMLEditPartFactory

createActionContributor

protected IActionContributor createActionContributor()
Description copied from class: XMLEditor
Creates action contributor.

Overrides:
createActionContributor in class XMLEditor
Returns:
created IActionContributor

configureGraphicalViewer

protected void configureGraphicalViewer()
Description copied from class: XMLEditor
Configures viewer for work. After this configuration viewer is prepared to display contents.

Overrides:
configureGraphicalViewer in class XMLEditor

reinit

public void reinit(Source transformedDoc,
                   sk.baka.ikslibs.modify.IChangeCollector changes)
Description copied from interface: IEditor

Reinitialize the editor when a partial change of the transformed document occurs. The reinitialization of renderer is already finished - editor should query for new figures for each changed element.

Specified by:
reinit in interface IEditor
Overrides:
reinit in class XMLEditor
Parameters:
transformedDoc - source with all changes already applied.
changes - defines changed elements. Has appropriate type for transformedDoc parameter, i.e. DOMChangeCollector for DOMSource etc.

getClipboard

public Clipboard getClipboard()
Description copied from interface: IClipboardProvider
Returns system clipboard reference.

Specified by:
getClipboard in interface IClipboardProvider
Returns:
clipboard

getAdapter

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


Copyright © 2003-2006 null. All Rights Reserved.