pulsar/exports/atom.coffee

42 lines
1.4 KiB
CoffeeScript
Raw Normal View History

TextBuffer = require 'text-buffer'
{Point, Range} = TextBuffer
{File, Directory} = require 'pathwatcher'
2014-10-22 02:33:04 +04:00
{Emitter, Disposable, CompositeDisposable} = require 'event-kit'
Grim = require 'grim'
2013-10-15 21:22:11 +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'
GitRepositoryAsync: require '../src/git-repository-async'
2014-11-24 21:44:13 +03:00
Notification: require '../src/notification'
TextBuffer: TextBuffer
2013-09-19 00:09:58 +04:00
Point: Point
Range: Range
File: File
Directory: Directory
2014-10-22 02:33:04 +04:00
Emitter: Emitter
Disposable: Disposable
CompositeDisposable: CompositeDisposable
# 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'
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)`.
"""
TextEditor