|
|
|
@ -25,18 +25,18 @@
@@ -25,18 +25,18 @@
|
|
|
|
|
// IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
|
|
|
|
|
// OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
|
|
|
|
|
|
using ICSharpCode.Core; |
|
|
|
|
using ICSharpCode.SharpDevelop; |
|
|
|
|
using ICSharpCode.SharpDevelop.Gui; |
|
|
|
|
using System; |
|
|
|
|
using System.IO; |
|
|
|
|
using ICSharpCode.Core; |
|
|
|
|
using ICSharpCode.SharpDevelop; |
|
|
|
|
using ICSharpCode.SharpDevelop.Workbench; |
|
|
|
|
|
|
|
|
|
namespace AlternateEditor |
|
|
|
|
{ |
|
|
|
|
public class AlternateEditorDisplayBinding : IDisplayBinding |
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
public bool CanCreateContentForFile(string fileName) |
|
|
|
|
public bool CanCreateContentForFile(FileName fileName) |
|
|
|
|
{ |
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
@ -46,12 +46,12 @@ namespace AlternateEditor
@@ -46,12 +46,12 @@ namespace AlternateEditor
|
|
|
|
|
return new Editor(file); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public bool IsPreferredBindingForFile(string fileName) |
|
|
|
|
public bool IsPreferredBindingForFile(FileName fileName) |
|
|
|
|
{ |
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public double AutoDetectFileContent(string fileName, Stream fileContent, string detectedMimeType) |
|
|
|
|
public double AutoDetectFileContent(FileName fileName, Stream fileContent, string detectedMimeType) |
|
|
|
|
{ |
|
|
|
|
return 0; |
|
|
|
|
} |
|
|
|
|