1
// SharpDevelop samples
2
// Copyright (c) 2006, AlphaSierraPapa
3
// All rights reserved.
5
// Redistribution and use in source and binary forms, with or without modification, are
6
// permitted provided that the following conditions are met:
8
// - Redistributions of source code must retain the above copyright notice, this list
9
// of conditions and the following disclaimer.
11
// - Redistributions in binary form must reproduce the above copyright notice, this list
12
// of conditions and the following disclaimer in the documentation and/or other materials
13
// provided with the distribution.
15
// - Neither the name of the SharpDevelop team nor the names of its contributors may be used to
16
// endorse or promote products derived from this software without specific prior written
19
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS &AS IS& AND ANY EXPRESS
20
// OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
21
// AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
22
// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
25
// IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
26
// OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29
using ICSharpCode.Core;
30
using ICSharpCode.SharpDevelop;
31
using ICSharpCode.SharpDevelop.Gui;
36
/// Description of PreviewDisplayBinding.
38
public class PreviewDisplayBinding : ISecondaryDisplayBinding
40
public bool ReattachWhenParserServiceIsReady {
46
public bool CanAttachTo(IViewContent content) {
50
public IViewContent[] CreateSecondaryViewContent(IViewContent viewContent) {
51
return new IViewContent[] { new PreviewViewContent(viewContent) };