Nathan Sobo
7e59be6461
Use atom.views.getView in WorkspaceView to preserve previous behavior
...
The status-bar package specs were calling atom.views.getView with the
workspace model *prior* to instantiating the SpacePen view. A weird
case, but might as well leave it working so the deprecation shim is
perfect.
2014-11-30 18:43:50 -07:00
Nathan Sobo
81422d71cb
📝 Publicize and document WorkspaceElement
2014-11-30 18:33:22 -07:00
Nathan Sobo
fa242dca7a
📝 Update ViewFactory API docs
2014-11-30 18:21:31 -07:00
Nathan Sobo
2ac15bad90
Return views created via atom.views.createView from atom.views.getView
...
The .getView method is deprecated, but this is required to maintain the
spirit of the old behavior for now.
2014-11-30 18:06:06 -07:00
Nathan Sobo
1e6e724be7
Deprecate atom.views.getView and store view registry on WorkspaceElement
...
This separates the role of the ViewFactory from the ViewRegistry.
The ViewFactory creates *new* views. The ViewRegistry maintains a
persistent 1:1 mapping from models to views, and is owned by the
workspace rather than being a global service. If someone wants to
*create* a view, they use atom.views.createView. If someone wants to
get the workspace’s view element for a given model, they call .getView
on the workspace.
2014-11-30 17:12:35 -07:00
Nathan Sobo
05e7e9fc1d
Rename ViewRegistry to ViewFactory
...
The new ViewRegistry will be focused only on storing model::view
associations, leaving the global factory to focus on creating them.
2014-11-30 15:49:49 -07:00
Nathan Sobo
80c354aad4
💄
2014-11-30 15:44:26 -07:00
Nathan Sobo
aa5c09cf0b
Log a deprecation warning when models still implement .getViewClass
2014-11-30 15:43:33 -07:00
Nathan Sobo
d79ca646a8
Allow params to be passed to ViewRegistry::createView
...
Now we call initialize on the created view instead of setModel, which
emphasizes the fact that it’s only called once and allows arbitrary
properties to be passed through during creation.
2014-11-30 15:42:14 -07:00
Nathan Sobo
d8137cfcad
Remove view registry references from the workspace model layer
...
Removed various ::getView methods from the model. Using the atom.views
global in the views for now, but going to switch them over to using a
locally assigned view registry instead in a subsequent commit.
2014-11-30 14:47:51 -07:00
Max Brunsfeld
12683571e3
⬆️ language-coffee-script@0.38.1
2014-11-29 10:34:31 -08:00
Max Brunsfeld
c0991447ff
⬆️ language-css@0.23.1
2014-11-29 10:33:16 -08:00
Max Brunsfeld
f9fcb9f2e2
⬆️ language-gfm@0.54.1
2014-11-29 10:31:59 -08:00
Max Brunsfeld
1daab1b956
⬆️ language-go@0.19.1
2014-11-29 10:29:33 -08:00
Max Brunsfeld
fc7f922de0
⬆️ language-html@0.26.1
2014-11-29 10:27:39 -08:00
Max Brunsfeld
5f1f2cd9be
⬆️ language-hyperlink@0.12.2
2014-11-29 10:25:01 -08:00
Max Brunsfeld
dca0576496
⬆️ language-javascript@0.45.1
2014-11-29 10:21:37 -08:00
Max Brunsfeld
aa7d8fb382
⬆️ language-less@0.18.1
2014-11-29 10:20:05 -08:00
Max Brunsfeld
08f20adc35
⬆️ language-mustache@0.10.1
2014-11-29 09:55:43 -08:00
Max Brunsfeld
c5f1165f61
⬆️ language-python@0.24.1
2014-11-29 09:53:01 -08:00
Max Brunsfeld
58499aeec7
⬆️ language-ruby@0.42.0
2014-11-29 09:49:07 -08:00
Max Brunsfeld
83c73fc94a
⬆️ language-sass@0.26.1
2014-11-29 09:46:16 -08:00
Max Brunsfeld
b28a1aa5c7
⬆️ language-shellscript@0.10.1
2014-11-28 16:51:24 -08:00
Max Brunsfeld
bcb72394f9
⬆️ language-toml@0.14.1
2014-11-28 16:48:58 -08:00
Max Brunsfeld
efe7baf140
⬆️ language-yaml@0.20.1
2014-11-28 16:40:11 -08:00
Max Brunsfeld
4b07103fcf
⬆️ pathwatcher@2.3.5
2014-11-28 16:38:54 -08:00
Max Brunsfeld
9d60fd2322
Deprecate changeFocus option to Workspace::open
...
Its documentation was already removed, and it was already
deprecated in ::openSync.
2014-11-28 11:42:01 -08:00
Max Brunsfeld
71228a5f45
Merge pull request #4340 from atom/mb-add-panel-getters
...
Add panel getter methods to workspace
2014-11-28 10:05:35 -08:00
Max Brunsfeld
6b3ba8e332
Add panel getter methods to workspace
...
This will make it easier to test packages that use panels
without using the DOM
2014-11-28 09:56:02 -08:00
Nathan Sobo
de619a731b
Merge pull request #4315 from atom/remove-deprecations
...
Remove deprecations from core
2014-11-27 12:16:35 -07:00
Nathan Sobo
d2283b0567
⬆️ text-buffer
2014-11-27 11:59:07 -07:00
Nathan Sobo
2a00acfdaf
Remove call to begin/commitTransaction in text-editor-spec
2014-11-27 11:58:38 -07:00
Nathan Sobo
b2025ebad0
Don’t openPath on window startup for spec windows
...
It causes specs to fail because the window loses focus somehow when
this gets run.
2014-11-27 11:13:46 -07:00
Nathan Sobo
0b44cee8db
Separate IPC messages that don’t belong in the command palette
...
Path opening and update signaling were both using the command-sending
IPC mechanism, but neither is actually a command. This commit adds a
second “message” channel with custom handling on the render process
side for these messages, rather than attempting to route them through
commands.
2014-11-27 10:30:50 -07:00
Nathan Sobo
5fed6199ec
💄 grammar
2014-11-27 09:23:35 -07:00
Nathan Sobo
ddc04f2278
Fix spec name
2014-11-27 09:11:21 -07:00
Nathan Sobo
f64a813fc6
Remove deprecated Project::setPath call
2014-11-27 09:09:33 -07:00
Nathan Sobo
68bc3f6ead
Add assertions and suppress deprecation warnings in theme-manager-spec
...
The new expected behavior is now tested. The deprecated behavior is
also tested until we remove it later.
2014-11-27 09:03:40 -07:00
Nathan Sobo
ffbcddf063
Always focus pane element when pane model is activated
...
Signed-off-by: Max Brunsfeld <maxbrunsfeld@gmail.com >
2014-11-26 18:25:55 -07:00
Nathan Sobo
b341749d54
Add TextEditorElement::setUpdatedSynchronously
...
To allow testing of async editor rendering in packages. This is helpful
for overlay decorations which behave differently when rendering is
async.
Signed-off-by: Max Brunsfeld <maxbrunsfeld@gmail.com >
2014-11-26 18:13:12 -07:00
Max Brunsfeld
d2ab75382a
Merge pull request #4328 from atom/mb-fix-panel-attach-callbacks
...
In panel-element, call space pen attach hooks after attached
2014-11-26 16:20:29 -08:00
Max Brunsfeld
b125565776
Call space pen attach hooks after attached
2014-11-26 15:09:20 -08:00
Ben Ogle
9cec02420c
Suppress deprecations while testing legacy code path
2014-11-26 14:55:40 -08:00
Ben Ogle
6f82281b8f
Use Project::getPaths() and Project::setPaths()
2014-11-26 14:55:40 -08:00
Ben Ogle
ffda2386c3
Suppress deprecations for package loading.
2014-11-26 14:55:40 -08:00
Ben Ogle
aefc647155
Use normalizeLineEndings: false hash
2014-11-26 14:55:39 -08:00
Ben Ogle
83455a7f3a
Remove specs for deprecated methods that are tested elsewhere
2014-11-26 14:55:39 -08:00
Ben Ogle
d8f64c15b8
Use project.getDirectories()
2014-11-26 14:55:39 -08:00
Ben Ogle
c927e95c2c
Suppress deprecations on pane-view
...
It’s going away anyway…
2014-11-26 14:55:39 -08:00
Ben Ogle
5b12646a44
Suppress deprecations on deprecated code path
2014-11-26 14:55:39 -08:00