Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'main/src/addins/MonoDevelop.HexEditor/MonoDevelop.HexEditor/HexEditorView.cs')
-rw-r--r--main/src/addins/MonoDevelop.HexEditor/MonoDevelop.HexEditor/HexEditorView.cs12
1 files changed, 7 insertions, 5 deletions
diff --git a/main/src/addins/MonoDevelop.HexEditor/MonoDevelop.HexEditor/HexEditorView.cs b/main/src/addins/MonoDevelop.HexEditor/MonoDevelop.HexEditor/HexEditorView.cs
index b4f8bc4820..44fc7fac18 100644
--- a/main/src/addins/MonoDevelop.HexEditor/MonoDevelop.HexEditor/HexEditorView.cs
+++ b/main/src/addins/MonoDevelop.HexEditor/MonoDevelop.HexEditor/HexEditorView.cs
@@ -32,6 +32,7 @@ using Mono.MHex.Data;
using MonoDevelop.Ide.Gui.Content;
using Xwt;
using MonoDevelop.Ide.Fonts;
+using MonoDevelop.Ide.Editor;
namespace MonoDevelop.HexEditor
{
@@ -50,7 +51,7 @@ namespace MonoDevelop.HexEditor
{
hexEditor.HexEditorStyle = new MonoDevelopHexEditorStyle (hexEditor);
SetOptions ();
- MonoDevelop.SourceEditor.DefaultSourceEditorOptions.Instance.Changed += delegate {
+ DefaultSourceEditorOptions.Instance.Changed += delegate {
SetOptions ();
};
hexEditor.HexEditorData.Replaced += delegate {
@@ -67,15 +68,16 @@ namespace MonoDevelop.HexEditor
hexEditor.Repaint ();
}
- public override void Save (string fileName)
+ public override void Save (FileSaveInformation fileSaveInformation)
{
- File.WriteAllBytes (fileName, hexEditor.HexEditorData.Bytes);
- ContentName = fileName;
+ File.WriteAllBytes (fileSaveInformation.FileName, hexEditor.HexEditorData.Bytes);
+ ContentName = fileSaveInformation.FileName;
this.IsDirty = false;
}
- public override void Load (string fileName)
+ public override void Load (FileOpenInformation fileOpenInformation)
{
+ var fileName = fileOpenInformation.FileName;
using (Stream stream = File.OpenRead (fileName)) {
hexEditor.HexEditorData.Buffer = ArrayBuffer.Load (stream);
}