com.aptana.ide.editors.unified
Interface IUnifiedEditor

All Superinterfaces:
ISaveEventListener
All Known Implementing Classes:
CSSEditor, GenericTextEditor, HTMLEditor, HTMLSourceEditor, JSEditor, MultiPageCSSEditor, UnifiedEditor, XMLEditor

public interface IUnifiedEditor
extends ISaveEventListener

Author:
Paul Colton

Method Summary
 void addFileServiceChangeListener(IFileServiceChangeListener listener)
          Adds a file service change listener to this editor
 void close(boolean save)
          close
 IUnifiedEditorContributor getBaseContributor()
          Gets the contributor for this editor
 org.eclipse.jface.text.source.SourceViewerConfiguration getConfiguration()
          getConfiguration
 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
 EditorFileContext getFileContext()
          getFileContext
 UnifiedOutlinePage getOutlinePage()
          getOutlinePage
 PairMatch getPairMatch(int offset)
          getPairMatch
 java.lang.String getParentDirectoryHint()
          The directory we'd like to save this file into if possible
 org.eclipse.ui.IWorkbenchPartSite getSite()
          getSite
 org.eclipse.jface.text.source.ISourceViewer getViewer()
          getViewer
 void removeFileServiceChangeListener(IFileServiceChangeListener listener)
          Removes a file service change listener from this editor
 void selectAndReveal(int offset, int length)
          selectAndReveal
 void setParentDirectoryHint(java.lang.String hint)
          The directory we'd like to save this file into if possible
 void showWhitespace(boolean state)
          showWhitespace
 
Methods inherited from interface com.aptana.ide.core.ui.editors.ISaveEventListener
addSaveAsListener, addSaveListener, removeSaveAsListener, removeSaveListener
 

Method Detail

getFileContext

EditorFileContext getFileContext()
getFileContext

Returns:
EditorFileContext

getViewer

org.eclipse.jface.text.source.ISourceViewer getViewer()
getViewer

Returns:
ISourceViewer

getConfiguration

org.eclipse.jface.text.source.SourceViewerConfiguration getConfiguration()
getConfiguration

Returns:
ISourceViewer

getBaseContributor

IUnifiedEditorContributor getBaseContributor()
Gets the contributor for this editor

Returns:
- base contributor

getDefaultFileExtension

java.lang.String getDefaultFileExtension()
Gets the default file extension associated with this editor

Returns:
- file extension string

getContextAwareness

IContextAwareness getContextAwareness()
getContextAwareness

Returns:
IContextAwareness

getDocumentProvider

org.eclipse.ui.texteditor.IDocumentProvider getDocumentProvider()
getDocumentProvider

Returns:
IDocumentProvider

close

void close(boolean save)
close

Parameters:
save -

getSite

org.eclipse.ui.IWorkbenchPartSite getSite()
getSite

Returns:
IWorkbenchPartSite

getEditorInput

org.eclipse.ui.IEditorInput getEditorInput()
getEditorInput

Returns:
IEditorInput

getEditor

org.eclipse.ui.IEditorPart getEditor()
getEditor

Returns:
IEditorPart

selectAndReveal

void selectAndReveal(int offset,
                     int length)
selectAndReveal

Parameters:
offset -
length -

showWhitespace

void showWhitespace(boolean state)
showWhitespace

Parameters:
state -

getOutlinePage

UnifiedOutlinePage getOutlinePage()
getOutlinePage

Returns:
UnifiedOutlinePage

getPairMatch

PairMatch getPairMatch(int offset)
getPairMatch

Parameters:
offset -
Returns:
PairMatch

getParentDirectoryHint

java.lang.String getParentDirectoryHint()
The directory we'd like to save this file into if possible

Returns:
String

setParentDirectoryHint

void setParentDirectoryHint(java.lang.String hint)
The directory we'd like to save this file into if possible

Parameters:
hint -

addFileServiceChangeListener

void addFileServiceChangeListener(IFileServiceChangeListener listener)
Adds a file service change listener to this editor

Parameters:
listener -

removeFileServiceChangeListener

void removeFileServiceChangeListener(IFileServiceChangeListener listener)
Removes a file service change listener from this editor

Parameters:
listener -