public override VSTE.IEditorOptions GetOptions(VSUTIL.IPropertyOwner scope) { if (scope is null) { throw new ArgumentNullException(nameof(scope)); } return(scope.Properties.GetOrCreateSingletonProperty(typeof(VSTE.IEditorOptions), () => new HexEditorOptions(this, HexGlobalOptions, scope))); }
public HexEditorOptions(HexEditorOptionsFactoryServiceImpl service, HexEditorOptions parent, VSUTIL.IPropertyOwner scope) { this.service = service; this.parent = parent; dict = new Dictionary <string, object>(StringComparer.Ordinal); weakChildren = new List <WeakReference>(); this.scope = scope; UpdateOptions(null); }
/// <summary> /// Returns true if <paramref name="scope"/> is a <see cref="WpfHexView"/> /// </summary> /// <param name="scope">Scope</param> /// <returns></returns> public override bool IsApplicableToScope(VSUTIL.IPropertyOwner scope) => scope is WpfHexView;
/// <summary> /// Creates or returns existing options /// </summary> /// <param name="scope">Owner</param> /// <returns></returns> public abstract VSTE.IEditorOptions GetOptions(VSUTIL.IPropertyOwner scope);