Macros support.

Macro functionality is done through Annotations. When clicking on
expand macro annotation macro expands into the source code, annotation
to collapse is added to expanded region. When clicking on collapse
macro annotation macro is erased with expandee.

When triggering save command performSave function of
ScalaSourceFileEditor is called. Before actual save every macro is
erased with its expandee, so that source file doesn't contain any
macro applications.

Through createLineNumberRulerColumn function line number
column for custom line numbering is integrated. It internally stores regions, where
macros are and change line numbers where neccesary.

Macros can be turned off by clicking on the Enable macro icon,
M1+M2+M(Ctrl-Shift-M) shortcut or through preference page.
@sschaef 
You've meant smth like this?

    val documentProvier = textEditor.getDocumentProvider().asInstanceOf[TextFileDocumentProvider]
    val fileInfoMap = ReflectAccess(documentProvier) apply { dp =>
      dp.fFileInfoMap.asInstanceOf[java.util.Map[Any, Any]]
    }

    fileInfoMap.map(_.get(editorInput).asInstanceOf[TextFileDocumentProvider.FileInfo].fTextFileBuffer)