C# Class Microsoft.VisualStudio.R.Package.Editors.LanguageSettingsStorage

Base class of VS settings. Provides implementation of IWritableEditorSettingsStorage for application-agnostic editor code. This class also provides tracking of tab/indent settings via VS text manager (IVsTextManager) and language preferences (LANGPREFERENCES).
Inheritance: IVsTextManagerEvents4, IWritableEditorSettingsStorage, IDisposable
Mostrar archivo Open project: Microsoft/RTVS

Public Methods

Method Description
BeginBatchChange ( ) : void
Dispose ( ) : void
EndBatchChange ( ) : void
GetBoolean ( string name, bool defaultValue ) : bool
GetInteger ( string name, int defaultValue ) : int
GetString ( string name, string defaultValue ) : string
LoadFromStorage ( ) : void
OnRegisterMarkerType ( int markerType ) : void
OnRegisterView ( IVsTextView view ) : void
OnUnregisterView ( IVsTextView view ) : void
OnUserPreferencesChanged4 ( VIEWPREFERENCES3 viewPrefs, LANGPREFERENCES3 langPrefs, FONTCOLORPREFERENCES2 colorPrefs ) : int
ResetSettings ( ) : void

Called when VS resets default settings through "Tools|Import/Export Settings"

SetBoolean ( string name, bool value ) : void
SetInteger ( string name, int value ) : void
SetString ( string name, string value ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void
LanguageSettingsStorage ( System.Guid languageServiceId ) : System

Private Methods

Method Description
FireSettingsChanged ( ) : void
HookTextManagerEvents ( ) : void
SetLangPrefs ( LANGPREFERENCES3 newPreferences ) : void

Method Details

BeginBatchChange() public method

public BeginBatchChange ( ) : void
return void

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

EndBatchChange() public method

public EndBatchChange ( ) : void
return void

GetBoolean() public method

public GetBoolean ( string name, bool defaultValue ) : bool
name string
defaultValue bool
return bool

GetInteger() public method

public GetInteger ( string name, int defaultValue ) : int
name string
defaultValue int
return int

GetString() public method

public GetString ( string name, string defaultValue ) : string
name string
defaultValue string
return string

LanguageSettingsStorage() protected method

protected LanguageSettingsStorage ( System.Guid languageServiceId ) : System
languageServiceId System.Guid
return System

LoadFromStorage() public abstract method

public abstract LoadFromStorage ( ) : void
return void

OnRegisterMarkerType() public method

public OnRegisterMarkerType ( int markerType ) : void
markerType int
return void

OnRegisterView() public method

public OnRegisterView ( IVsTextView view ) : void
view IVsTextView
return void

OnUnregisterView() public method

public OnUnregisterView ( IVsTextView view ) : void
view IVsTextView
return void

OnUserPreferencesChanged4() public method

public OnUserPreferencesChanged4 ( VIEWPREFERENCES3 viewPrefs, LANGPREFERENCES3 langPrefs, FONTCOLORPREFERENCES2 colorPrefs ) : int
viewPrefs VIEWPREFERENCES3
langPrefs LANGPREFERENCES3
colorPrefs FONTCOLORPREFERENCES2
return int

ResetSettings() public method

Called when VS resets default settings through "Tools|Import/Export Settings"
public ResetSettings ( ) : void
return void

SetBoolean() public method

public SetBoolean ( string name, bool value ) : void
name string
value bool
return void

SetInteger() public method

public SetInteger ( string name, int value ) : void
name string
value int
return void

SetString() public method

public SetString ( string name, string value ) : void
name string
value string
return void