SoftWrap state is stored in EditSessions, but it is set and toggled via Editor.

This commit is contained in:
Corey Johnson & Nathan Sobo
2012-06-20 09:28:11 -07:00
parent d1c1f3cfce
commit af9aec7cbc
4 changed files with 19 additions and 16 deletions

View File

@@ -14,12 +14,11 @@ class Project
tabText: null
autoIndent: null
softTabs: null
softWrapColumn: null
softWrap: null
constructor: (path) ->
@setPath(path)
@editSessions = []
@setTabText(' ')
@setAutoIndent(true)
@setSoftTabs(true)
@@ -73,8 +72,8 @@ class Project
getSoftTabs: -> @softTabs
setSoftTabs: (@softTabs) ->
getSoftWrapColumn: -> @softWrapColumn
setSoftWrapColumn: (@softWrapColumn) ->
getSoftWrap: -> @softWrap
setSoftWrap: (@softWrap) ->
open: (filePath) ->
if filePath?
@@ -88,7 +87,7 @@ class Project
tabText: @getTabText()
autoIndent: @getAutoIndent()
softTabs: @getSoftTabs()
softWrapColumn: @getSoftWrapColumn()
softWrap: @getSoftWrap()
@editSessions.push editSession
editSession