2015-03-04 20:51:29 +03:00
|
|
|
TextBuffer = require 'text-buffer'
|
|
|
|
{Point, Range} = TextBuffer
|
2015-02-11 18:47:36 +03:00
|
|
|
{File, Directory} = require 'pathwatcher'
|
2014-10-22 02:33:04 +04:00
|
|
|
{Emitter, Disposable, CompositeDisposable} = require 'event-kit'
|
2015-10-05 20:51:01 +03:00
|
|
|
Grim = require 'grim'
|
2013-10-15 21:22:11 +04:00
|
|
|
|
2013-09-17 21:30:43 +04:00
|
|
|
module.exports =
|
2013-09-18 23:13:56 +04:00
|
|
|
BufferedNodeProcess: require '../src/buffered-node-process'
|
2013-09-19 22:33:24 +04:00
|
|
|
BufferedProcess: require '../src/buffered-process'
|
2014-09-22 22:07:41 +04:00
|
|
|
GitRepository: require '../src/git-repository'
|
2015-10-26 17:17:48 +03:00
|
|
|
GitRepositoryAsync: require '../src/git-repository-async'
|
2014-11-24 21:44:13 +03:00
|
|
|
Notification: require '../src/notification'
|
2015-03-04 20:51:29 +03:00
|
|
|
TextBuffer: TextBuffer
|
2013-09-19 00:09:58 +04:00
|
|
|
Point: Point
|
|
|
|
Range: Range
|
2015-02-11 18:47:36 +03:00
|
|
|
File: File
|
|
|
|
Directory: Directory
|
2014-10-22 02:33:04 +04:00
|
|
|
Emitter: Emitter
|
|
|
|
Disposable: Disposable
|
|
|
|
CompositeDisposable: CompositeDisposable
|
2013-09-18 23:52:19 +04:00
|
|
|
|
|
|
|
# The following classes can't be used from a Task handler and should therefore
|
|
|
|
# only be exported when not running as a child node process
|
|
|
|
unless process.env.ATOM_SHELL_INTERNAL_RUN_AS_NODE
|
|
|
|
module.exports.Task = require '../src/task'
|
2015-10-05 20:51:01 +03:00
|
|
|
|
|
|
|
TextEditor = (params) ->
|
|
|
|
atom.workspace.buildTextEditor(params)
|
|
|
|
|
|
|
|
TextEditor.prototype = require('../src/text-editor').prototype
|
|
|
|
|
|
|
|
Object.defineProperty module.exports, 'TextEditor',
|
|
|
|
enumerable: true
|
|
|
|
get: ->
|
|
|
|
Grim.deprecate """
|
|
|
|
The `TextEditor` constructor is no longer public.
|
|
|
|
|
|
|
|
To construct a text editor, use `atom.workspace.buildTextEditor()`.
|
2015-11-20 04:57:47 +03:00
|
|
|
To check if an object is a text editor, use `atom.workspace.isTextEditor(object)`.
|
2015-10-05 20:51:01 +03:00
|
|
|
"""
|
|
|
|
TextEditor
|