Exemplo n.º 1
0
 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)));
 }
Exemplo n.º 2
0
 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);
 }
Exemplo n.º 3
0
 /// <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;
Exemplo n.º 4
0
 /// <summary>
 /// Creates or returns existing options
 /// </summary>
 /// <param name="scope">Owner</param>
 /// <returns></returns>
 public abstract VSTE.IEditorOptions GetOptions(VSUTIL.IPropertyOwner scope);