Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 407468

Summary: Support default server side preferences for editor
Product: [ECD] Orion Reporter: Bogdan Gheorghe <gheorghe>
Component: EditorAssignee: Bogdan Gheorghe <gheorghe>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: 3.0 M2   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Bogdan Gheorghe CLA 2013-05-07 17:31:12 EDT
There should be a way to specify editor preferences from the server side.
Comment 1 Bogdan Gheorghe CLA 2013-05-07 17:39:58 EDT
Users can add editor preferences to the defaults.pref file on the server. For example, to enable autoSave with a 1250ms timeout and no UI visible in the prefs page (ie. always keep it on), the defaults.pref file would look like this:

{
	"/plugins":{
		"plugins/authenticationPlugin.html": true,
		"plugins/fileClientPlugin.html":true,
		"plugins/jslintPlugin.html":true,
		"git/plugins/gitPlugin.html":true,
		"profile/userservicePlugin.html":true,
		"plugins/webEditingPlugin.html":true,
		"plugins/pageLinksPlugin.html":true,
		"plugins/preferencesPlugin.html":true,
		"plugins/taskPlugin.html": true,
		"plugins/csslintPlugin.html": true,
		"plugins/site/sitePlugin.html": true,
		"plugins/esprima/esprimaJsContentAssistPlugin.html":true,
		"plugins/npmPlugin.html": true,
		"shell/plugins/shellPagePlugin.html":true
	},
	"/editor/settings": {
		"editorSettings": {
		"autoSaveEnabled":true, 
		"autoSaveTimeout":1250,
		"autoSaveVisible":false
		}
	}
}