com.aptana.ide.editor.html
Class HTMLEditor

java.lang.Object
  extended by org.eclipse.core.commands.common.EventManager
      extended by org.eclipse.ui.part.WorkbenchPart
          extended by org.eclipse.ui.part.EditorPart
              extended by com.aptana.ide.editor.html.HTMLEditor
All Implemented Interfaces:
ISaveEventListener, IUnifiedEditor, org.eclipse.core.runtime.IAdaptable, org.eclipse.core.runtime.IExecutableExtension, 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, org.eclipse.ui.texteditor.ITextEditor, org.eclipse.ui.texteditor.ITextEditorExtension

public class HTMLEditor
extends org.eclipse.ui.part.EditorPart
implements org.eclipse.ui.texteditor.ITextEditor, org.eclipse.ui.texteditor.ITextEditorExtension, IUnifiedEditor

Author:
Robin Debreuil

Field Summary
protected  org.eclipse.ui.part.EditorPart editor
          editor
static java.lang.String HORIZONTAL_MODE
          HORIZONTAL_MODE
protected  java.io.File prevTempFile
          prevTempFile
static java.lang.String SOURCE_MODE
          SOURCE_MODE
protected  HTMLSourceEditor sourceEditor
          sourceEditor
static java.lang.String TAB_MODE
          TAB_MODE
static java.lang.String VERTICAL_MODE
          VERTICAL_MODE
 
Fields inherited from interface org.eclipse.ui.IEditorPart
PROP_DIRTY, PROP_INPUT
 
Fields inherited from interface org.eclipse.ui.IWorkbenchPart
PROP_TITLE
 
Constructor Summary
HTMLEditor()
          HTMLEditor
 
Method Summary
 void addFileServiceChangeListener(IFileServiceChangeListener listener)
          Adds a file service change listener to this editor
 void addRulerContextMenuListener(org.eclipse.jface.action.IMenuListener listener)
           
 void addSaveAsListener(ISaveAsEvent listener)
          see com.aptana.ide.core.ui.editors.ISaveEventListener#addSaveAsListener(com.aptana.ide.core.ui.editors.ISaveAsEvent)
 void addSaveListener(ISaveEvent listener)
          see com.aptana.ide.editors.unified.IUnifiedEditor#addSaveListener(com.aptana.ide.core.ui.editors.ISaveEvent)
 void close(boolean save)
          close
 void createPartControl(org.eclipse.swt.widgets.Composite parent)
           
protected  HTMLSourceEditor createSourceEditor()
          createHTMLSourceEditor
 void dispose()
           
 void doRevertToSaved()
           
 void doSave(org.eclipse.core.runtime.IProgressMonitor monitor)
           
 void doSaveAs()
           
protected  void drawGradient(org.eclipse.ui.IEditorPart innerEditor, org.eclipse.ui.part.MultiEditor.Gradient g)
          drawGradient
 void firePropertyChange2(int propertyId)
          firePropertyChange2
 org.eclipse.jface.action.IAction getAction(java.lang.String actionId)
           
 java.lang.Object getAdapter(java.lang.Class adapter)
           
 IUnifiedEditorContributor getBaseContributor()
          Gets the contributor for this editor
 int getCaretOffset()
          getCaretOffset
 org.eclipse.jface.text.source.SourceViewerConfiguration getConfiguration()
          getConfiguration
 java.lang.String getContentDescription()
           
 IContextAwareness getContextAwareness()
          getContextAwareness
 java.lang.String getDefaultFileExtension()
          Gets the default file extension associated with this editor
 org.eclipse.ui.texteditor.IDocumentProvider getDocumentProvider()
          getDocumentProvider
 org.eclipse.ui.IEditorPart getEditor()
          getEditor
 org.eclipse.ui.IEditorInput getEditorInput()
          getEditorInput
 org.eclipse.ui.IEditorSite getEditorSite()
           
 EditorFileContext getFileContext()
          getFileContext
 org.eclipse.jface.text.IRegion getHighlightRange()
           
 UnifiedOutlinePage getOutlinePage()
          getOutlinePage
 PairMatch getPairMatch(int offset)
          getPairMatch
 java.lang.String getParentDirectoryHint()
          The directory we'd like to save this file into if possible
 java.lang.String getPartName()
           
 org.eclipse.jface.preference.IPreferenceStore getPreferenceStore()
          Gets the local preference store
 org.eclipse.jface.viewers.ISelectionProvider getSelectionProvider()
           
 org.eclipse.ui.IWorkbenchPartSite getSite()
          getSite
 HTMLSourceEditor getSourceEditor()
          getSourceEditor
 java.lang.String getTitle()
           
 org.eclipse.swt.graphics.Image getTitleImage()
           
 java.lang.String getTitleToolTip()
           
 org.eclipse.jface.text.source.ISourceViewer getViewer()
          getViewer
 void init(org.eclipse.ui.IEditorSite site, org.eclipse.ui.IEditorInput input)
           
 boolean isDirty()
           
 boolean isEditable()
           
 boolean isEditorInputReadOnly()
           
 boolean isSaveAsAllowed()
           
 boolean isSaveOnCloseNeeded()
           
 void removeActionActivationCode(java.lang.String actionId)
           
 void removeFileServiceChangeListener(IFileServiceChangeListener listener)
          Removes a file service change listener from this editor
 void removeRulerContextMenuListener(org.eclipse.jface.action.IMenuListener listener)
           
 void removeSaveAsListener(ISaveAsEvent listener)
          see com.aptana.ide.core.ui.editors.ISaveEventListener#removeSaveAsListener(com.aptana.ide.core.ui.editors.ISaveAsEvent)
 void removeSaveListener(ISaveEvent listener)
          see com.aptana.ide.core.ui.editors.ISaveEventListener#removeSaveListener(com.aptana.ide.core.ui.editors.ISaveEvent)
 void resetHighlightRange()
           
 void selectAndReveal(int offset, int length)
          selectAndReveal
 void setAction(java.lang.String actionID, org.eclipse.jface.action.IAction action)
           
 void setActionActivationCode(java.lang.String actionId, char activationCharacter, int activationKeyCode, int activationStateMask)
           
 void setFocus()
           
 void setHighlightRange(int offset, int length, boolean moveCursor)
           
 void setInitializationData(org.eclipse.core.runtime.IConfigurationElement config, java.lang.String propertyName, java.lang.Object data)
           
 void setOffset(int offset)
          change to the source editor, and move caret to the specified offset.
 void setParentDirectoryHint(java.lang.String hint)
          The directory we'd like to save this file into if possible
 void setStatusField(org.eclipse.ui.texteditor.IStatusField field, java.lang.String category)
           
 void showBusy(boolean busy)
           
 void showHighlightRangeOnly(boolean showHighlightRangeOnly)
           
 boolean showsHighlightRangeOnly()
           
 void showWhitespace(boolean state)
          showWhitespace
 void updateEdit()
          updateEdit
 void updatePreview()
          Update preview
 void updateSource()
          updateSource
 
Methods inherited from class org.eclipse.ui.part.EditorPart
checkSite, setContentDescription, setInput, setInputWithNotify, setPartName
 
Methods inherited from class org.eclipse.ui.part.WorkbenchPart
addPartPropertyListener, addPropertyListener, firePartPropertyChanged, firePropertyChange, getConfigurationElement, getDefaultImage, getOrientation, getPartProperties, getPartProperty, removePartPropertyListener, removePropertyListener, setPartProperty, setSite, setTitle, setTitleImage, setTitleToolTip
 
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, removePropertyListener
 

Field Detail

editor

protected org.eclipse.ui.part.EditorPart editor
editor


sourceEditor

protected HTMLSourceEditor sourceEditor
sourceEditor


prevTempFile

protected java.io.File prevTempFile
prevTempFile


TAB_MODE

public static final java.lang.String TAB_MODE
TAB_MODE

See Also:
Constant Field Values

HORIZONTAL_MODE

public static final java.lang.String HORIZONTAL_MODE
HORIZONTAL_MODE

See Also:
Constant Field Values

VERTICAL_MODE

public static final java.lang.String VERTICAL_MODE
VERTICAL_MODE

See Also:
Constant Field Values

SOURCE_MODE

public static final java.lang.String SOURCE_MODE
SOURCE_MODE

See Also:
Constant Field Values
Constructor Detail

HTMLEditor

public HTMLEditor()
HTMLEditor

Method Detail

addRulerContextMenuListener

public void addRulerContextMenuListener(org.eclipse.jface.action.IMenuListener listener)
Specified by:
addRulerContextMenuListener in interface org.eclipse.ui.texteditor.ITextEditorExtension
See Also:
ITextEditorExtension.addRulerContextMenuListener(org.eclipse.jface.action.IMenuListener)

close

public void close(boolean save)
Description copied from interface: IUnifiedEditor
close

Specified by:
close in interface IUnifiedEditor
Specified by:
close in interface org.eclipse.ui.texteditor.ITextEditor
See Also:
IUnifiedEditor.close(boolean)

createSourceEditor

protected HTMLSourceEditor createSourceEditor()
createHTMLSourceEditor

Returns:
HTMLSourceEditor

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
See Also:
IWorkbenchPart.createPartControl(org.eclipse.swt.widgets.Composite)

dispose

public void dispose()
Specified by:
dispose in interface org.eclipse.ui.IWorkbenchPart
Overrides:
dispose in class org.eclipse.ui.part.WorkbenchPart
See Also:
IWorkbenchPart.dispose()

doRevertToSaved

public void doRevertToSaved()
Specified by:
doRevertToSaved in interface org.eclipse.ui.texteditor.ITextEditor
See Also:
ITextEditor.doRevertToSaved()

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
See Also:
ISaveablePart.doSave(org.eclipse.core.runtime.IProgressMonitor)

doSaveAs

public void doSaveAs()
Specified by:
doSaveAs in interface org.eclipse.ui.ISaveablePart
Specified by:
doSaveAs in class org.eclipse.ui.part.EditorPart
See Also:
ISaveablePart.doSaveAs()

drawGradient

protected void drawGradient(org.eclipse.ui.IEditorPart innerEditor,
                            org.eclipse.ui.part.MultiEditor.Gradient g)
drawGradient

Parameters:
innerEditor -
g -

firePropertyChange2

public void firePropertyChange2(int propertyId)
firePropertyChange2

Parameters:
propertyId -

getAction

public org.eclipse.jface.action.IAction getAction(java.lang.String actionId)
Specified by:
getAction in interface org.eclipse.ui.texteditor.ITextEditor
See Also:
ITextEditor.getAction(java.lang.String)

getAdapter

public java.lang.Object getAdapter(java.lang.Class adapter)
Specified by:
getAdapter in interface org.eclipse.core.runtime.IAdaptable
Overrides:
getAdapter in class org.eclipse.ui.part.WorkbenchPart
See Also:
IAdaptable.getAdapter(java.lang.Class)

getContentDescription

public java.lang.String getContentDescription()
Specified by:
getContentDescription in interface org.eclipse.ui.IWorkbenchPart2
Overrides:
getContentDescription in class org.eclipse.ui.part.WorkbenchPart
See Also:
IWorkbenchPart2.getContentDescription()

getDocumentProvider

public org.eclipse.ui.texteditor.IDocumentProvider getDocumentProvider()
Description copied from interface: IUnifiedEditor
getDocumentProvider

Specified by:
getDocumentProvider in interface IUnifiedEditor
Specified by:
getDocumentProvider in interface org.eclipse.ui.texteditor.ITextEditor
Returns:
IDocumentProvider
See Also:
IUnifiedEditor.getDocumentProvider()

getEditorInput

public org.eclipse.ui.IEditorInput getEditorInput()
Description copied from interface: IUnifiedEditor
getEditorInput

Specified by:
getEditorInput in interface IUnifiedEditor
Specified by:
getEditorInput in interface org.eclipse.ui.IEditorPart
Overrides:
getEditorInput in class org.eclipse.ui.part.EditorPart
Returns:
IEditorInput
See Also:
IEditorPart.getEditorInput()

getEditorSite

public org.eclipse.ui.IEditorSite getEditorSite()
Specified by:
getEditorSite in interface org.eclipse.ui.IEditorPart
Overrides:
getEditorSite in class org.eclipse.ui.part.EditorPart
See Also:
IEditorPart.getEditorSite()

getHighlightRange

public org.eclipse.jface.text.IRegion getHighlightRange()
Specified by:
getHighlightRange in interface org.eclipse.ui.texteditor.ITextEditor
See Also:
ITextEditor.getHighlightRange()

getSourceEditor

public HTMLSourceEditor getSourceEditor()
getSourceEditor

Returns:
HTMLSourceEditor

getPartName

public java.lang.String getPartName()
Specified by:
getPartName in interface org.eclipse.ui.IWorkbenchPart2
Overrides:
getPartName in class org.eclipse.ui.part.WorkbenchPart
See Also:
IWorkbenchPart2.getPartName()

getSelectionProvider

public org.eclipse.jface.viewers.ISelectionProvider getSelectionProvider()
Specified by:
getSelectionProvider in interface org.eclipse.ui.texteditor.ITextEditor
See Also:
ITextEditor.getSelectionProvider()

getSite

public org.eclipse.ui.IWorkbenchPartSite getSite()
Description copied from interface: IUnifiedEditor
getSite

Specified by:
getSite in interface IUnifiedEditor
Specified by:
getSite in interface org.eclipse.ui.IWorkbenchPart
Overrides:
getSite in class org.eclipse.ui.part.WorkbenchPart
Returns:
IWorkbenchPartSite
See Also:
IWorkbenchPart.getSite()

getTitle

public java.lang.String getTitle()
Specified by:
getTitle in interface org.eclipse.ui.IWorkbenchPart
Overrides:
getTitle in class org.eclipse.ui.part.WorkbenchPart
See Also:
IWorkbenchPart.getTitle()

getTitleImage

public org.eclipse.swt.graphics.Image getTitleImage()
Specified by:
getTitleImage in interface org.eclipse.ui.IWorkbenchPart
Overrides:
getTitleImage in class org.eclipse.ui.part.WorkbenchPart
See Also:
IWorkbenchPart.getTitleImage()

getTitleToolTip

public java.lang.String getTitleToolTip()
Specified by:
getTitleToolTip in interface org.eclipse.ui.IWorkbenchPart
Overrides:
getTitleToolTip in class org.eclipse.ui.part.EditorPart
See Also:
IWorkbenchPart.getTitleToolTip()

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
See Also:
IEditorPart.init(org.eclipse.ui.IEditorSite, org.eclipse.ui.IEditorInput)

isDirty

public boolean isDirty()
Specified by:
isDirty in interface org.eclipse.ui.ISaveablePart
Specified by:
isDirty in class org.eclipse.ui.part.EditorPart
See Also:
ISaveablePart.isDirty()

isEditable

public boolean isEditable()
Specified by:
isEditable in interface org.eclipse.ui.texteditor.ITextEditor
See Also:
ITextEditor.isEditable()

isEditorInputReadOnly

public boolean isEditorInputReadOnly()
Specified by:
isEditorInputReadOnly in interface org.eclipse.ui.texteditor.ITextEditorExtension
See Also:
ITextEditorExtension.isEditorInputReadOnly()

isSaveAsAllowed

public boolean isSaveAsAllowed()
Specified by:
isSaveAsAllowed in interface org.eclipse.ui.ISaveablePart
Specified by:
isSaveAsAllowed in class org.eclipse.ui.part.EditorPart
See Also:
ISaveablePart.isSaveAsAllowed()

isSaveOnCloseNeeded

public boolean isSaveOnCloseNeeded()
Specified by:
isSaveOnCloseNeeded in interface org.eclipse.ui.ISaveablePart
Overrides:
isSaveOnCloseNeeded in class org.eclipse.ui.part.EditorPart
See Also:
ISaveablePart.isSaveOnCloseNeeded()

removeActionActivationCode

public void removeActionActivationCode(java.lang.String actionId)
Specified by:
removeActionActivationCode in interface org.eclipse.ui.texteditor.ITextEditor
See Also:
ITextEditor.removeActionActivationCode(java.lang.String)

removeRulerContextMenuListener

public void removeRulerContextMenuListener(org.eclipse.jface.action.IMenuListener listener)
Specified by:
removeRulerContextMenuListener in interface org.eclipse.ui.texteditor.ITextEditorExtension
See Also:
ITextEditorExtension.removeRulerContextMenuListener(org.eclipse.jface.action.IMenuListener)

resetHighlightRange

public void resetHighlightRange()
Specified by:
resetHighlightRange in interface org.eclipse.ui.texteditor.ITextEditor
See Also:
ITextEditor.resetHighlightRange()

selectAndReveal

public void selectAndReveal(int offset,
                            int length)
Description copied from interface: IUnifiedEditor
selectAndReveal

Specified by:
selectAndReveal in interface IUnifiedEditor
Specified by:
selectAndReveal in interface org.eclipse.ui.texteditor.ITextEditor
See Also:
IUnifiedEditor.selectAndReveal(int, int)

setAction

public void setAction(java.lang.String actionID,
                      org.eclipse.jface.action.IAction action)
Specified by:
setAction in interface org.eclipse.ui.texteditor.ITextEditor
See Also:
ITextEditor.setAction(java.lang.String, org.eclipse.jface.action.IAction)

setActionActivationCode

public void setActionActivationCode(java.lang.String actionId,
                                    char activationCharacter,
                                    int activationKeyCode,
                                    int activationStateMask)
Specified by:
setActionActivationCode in interface org.eclipse.ui.texteditor.ITextEditor
See Also:
ITextEditor.setActionActivationCode(java.lang.String, char, int, int)

setFocus

public void setFocus()
Specified by:
setFocus in interface org.eclipse.ui.IWorkbenchPart
Specified by:
setFocus in class org.eclipse.ui.part.WorkbenchPart
See Also:
IWorkbenchPart.setFocus()

setHighlightRange

public void setHighlightRange(int offset,
                              int length,
                              boolean moveCursor)
Specified by:
setHighlightRange in interface org.eclipse.ui.texteditor.ITextEditor
See Also:
ITextEditor.setHighlightRange(int, int, boolean)

setInitializationData

public void setInitializationData(org.eclipse.core.runtime.IConfigurationElement config,
                                  java.lang.String propertyName,
                                  java.lang.Object data)
Specified by:
setInitializationData in interface org.eclipse.core.runtime.IExecutableExtension
Overrides:
setInitializationData in class org.eclipse.ui.part.EditorPart
See Also:
IExecutableExtension.setInitializationData(org.eclipse.core.runtime.IConfigurationElement, java.lang.String, java.lang.Object)

setOffset

public void setOffset(int offset)
change to the source editor, and move caret to the specified offset.

Parameters:
offset -

setStatusField

public void setStatusField(org.eclipse.ui.texteditor.IStatusField field,
                           java.lang.String category)
Specified by:
setStatusField in interface org.eclipse.ui.texteditor.ITextEditorExtension
See Also:
ITextEditorExtension.setStatusField(org.eclipse.ui.texteditor.IStatusField, java.lang.String)

showBusy

public void showBusy(boolean busy)
Overrides:
showBusy in class org.eclipse.ui.part.WorkbenchPart
See Also:
WorkbenchPart.showBusy(boolean)

showHighlightRangeOnly

public void showHighlightRangeOnly(boolean showHighlightRangeOnly)
Specified by:
showHighlightRangeOnly in interface org.eclipse.ui.texteditor.ITextEditor
See Also:
ITextEditor.showHighlightRangeOnly(boolean)

showsHighlightRangeOnly

public boolean showsHighlightRangeOnly()
Specified by:
showsHighlightRangeOnly in interface org.eclipse.ui.texteditor.ITextEditor
See Also:
ITextEditor.showsHighlightRangeOnly()

updateSource

public void updateSource()
updateSource


updateEdit

public void updateEdit()
updateEdit


updatePreview

public void updatePreview()
Update preview


getFileContext

public EditorFileContext getFileContext()
Description copied from interface: IUnifiedEditor
getFileContext

Specified by:
getFileContext in interface IUnifiedEditor
Returns:
EditorFileContext
See Also:
IUnifiedEditor.getFileContext()

getViewer

public org.eclipse.jface.text.source.ISourceViewer getViewer()
Description copied from interface: IUnifiedEditor
getViewer

Specified by:
getViewer in interface IUnifiedEditor
Returns:
ISourceViewer
See Also:
IUnifiedEditor.getViewer()

getConfiguration

public org.eclipse.jface.text.source.SourceViewerConfiguration getConfiguration()
Description copied from interface: IUnifiedEditor
getConfiguration

Specified by:
getConfiguration in interface IUnifiedEditor
Returns:
ISourceViewer
See Also:
IUnifiedEditor.getConfiguration()

getContextAwareness

public IContextAwareness getContextAwareness()
Description copied from interface: IUnifiedEditor
getContextAwareness

Specified by:
getContextAwareness in interface IUnifiedEditor
Returns:
IContextAwareness
See Also:
IUnifiedEditor.getContextAwareness()

getCaretOffset

public int getCaretOffset()
getCaretOffset

Returns:
int

getEditor

public org.eclipse.ui.IEditorPart getEditor()
Description copied from interface: IUnifiedEditor
getEditor

Specified by:
getEditor in interface IUnifiedEditor
Returns:
IEditorPart
See Also:
IUnifiedEditor.getEditor()

showWhitespace

public void showWhitespace(boolean state)
Description copied from interface: IUnifiedEditor
showWhitespace

Specified by:
showWhitespace in interface IUnifiedEditor
See Also:
IUnifiedEditor.showWhitespace(boolean)

addSaveAsListener

public void addSaveAsListener(ISaveAsEvent listener)
see com.aptana.ide.core.ui.editors.ISaveEventListener#addSaveAsListener(com.aptana.ide.core.ui.editors.ISaveAsEvent)

Specified by:
addSaveAsListener in interface ISaveEventListener
Parameters:
listener -

removeSaveAsListener

public void removeSaveAsListener(ISaveAsEvent listener)
see com.aptana.ide.core.ui.editors.ISaveEventListener#removeSaveAsListener(com.aptana.ide.core.ui.editors.ISaveAsEvent)

Specified by:
removeSaveAsListener in interface ISaveEventListener
Parameters:
listener -

getOutlinePage

public UnifiedOutlinePage getOutlinePage()
Description copied from interface: IUnifiedEditor
getOutlinePage

Specified by:
getOutlinePage in interface IUnifiedEditor
Returns:
UnifiedOutlinePage
See Also:
IUnifiedEditor.getOutlinePage()

getPairMatch

public PairMatch getPairMatch(int offset)
getPairMatch

Specified by:
getPairMatch in interface IUnifiedEditor
Parameters:
offset -
Returns:
PairMatch

getParentDirectoryHint

public java.lang.String getParentDirectoryHint()
Description copied from interface: IUnifiedEditor
The directory we'd like to save this file into if possible

Specified by:
getParentDirectoryHint in interface IUnifiedEditor
Returns:
String
See Also:
IUnifiedEditor.getParentDirectoryHint()

setParentDirectoryHint

public void setParentDirectoryHint(java.lang.String hint)
Description copied from interface: IUnifiedEditor
The directory we'd like to save this file into if possible

Specified by:
setParentDirectoryHint in interface IUnifiedEditor
See Also:
IUnifiedEditor.setParentDirectoryHint(java.lang.String)

addSaveListener

public void addSaveListener(ISaveEvent listener)
see com.aptana.ide.editors.unified.IUnifiedEditor#addSaveListener(com.aptana.ide.core.ui.editors.ISaveEvent)

Specified by:
addSaveListener in interface ISaveEventListener
Parameters:
listener -

removeSaveListener

public void removeSaveListener(ISaveEvent listener)
see com.aptana.ide.core.ui.editors.ISaveEventListener#removeSaveListener(com.aptana.ide.core.ui.editors.ISaveEvent)

Specified by:
removeSaveListener in interface ISaveEventListener
Parameters:
listener -

getBaseContributor

public IUnifiedEditorContributor getBaseContributor()
Description copied from interface: IUnifiedEditor
Gets the contributor for this editor

Specified by:
getBaseContributor in interface IUnifiedEditor
Returns:
- base contributor
See Also:
IUnifiedEditor.getBaseContributor()

getDefaultFileExtension

public java.lang.String getDefaultFileExtension()
Description copied from interface: IUnifiedEditor
Gets the default file extension associated with this editor

Specified by:
getDefaultFileExtension in interface IUnifiedEditor
Returns:
- file extension string
See Also:
IUnifiedEditor.getDefaultFileExtension()

addFileServiceChangeListener

public void addFileServiceChangeListener(IFileServiceChangeListener listener)
Description copied from interface: IUnifiedEditor
Adds a file service change listener to this editor

Specified by:
addFileServiceChangeListener in interface IUnifiedEditor
See Also:
IUnifiedEditor.addFileServiceChangeListener(com.aptana.ide.editors.unified.IFileServiceChangeListener)

removeFileServiceChangeListener

public void removeFileServiceChangeListener(IFileServiceChangeListener listener)
Description copied from interface: IUnifiedEditor
Removes a file service change listener from this editor

Specified by:
removeFileServiceChangeListener in interface IUnifiedEditor
See Also:
IUnifiedEditor.removeFileServiceChangeListener(com.aptana.ide.editors.unified.IFileServiceChangeListener)

getPreferenceStore

public org.eclipse.jface.preference.IPreferenceStore getPreferenceStore()
Gets the local preference store

Returns: