Ejemplo n.º 1
0
        protected override object OnGetContent(Type type)
        {
//			if (type == typeof(IEditableTextBuffer)) {
//				// Intercept the IPositionable interface, since we need to
//				// switch to the text editor when jumping to a line
//				if (content.GetContent (type) != null)
//					return this;
//				else
//					return null;
//			}
//
            return(base.OnGetContent(type) ?? (content != null  ? content.GetContent(type) : null));
        }
Ejemplo n.º 2
0
 protected override object OnGetContent(Type type)
 {
     return(type.IsInstanceOfType(this) ? this : content?.GetContent(type));
 }