protected void OnShowHexEditor () { HexEditorView view = new HexEditorView (); ProjectFile file = CurrentNode.DataItem as ProjectFile; if (file != null) view.Load (file.FilePath); IdeApp.Workbench.OpenDocument (view, true); }
public override MonoDevelop.Ide.Gui.IViewContent CreateContentForMimeType (string mimeType, System.IO.Stream content) { HexEditorView result = new HexEditorView (); /* result.Document.MimeType = mimeType; if (content != null) { using (StreamReader reader = new StreamReader (content)) { result.Document.Text = reader.ReadToEnd (); } }*/ return result; }
public override MonoDevelop.Ide.Gui.IViewContent CreateContentForMimeType(string mimeType, System.IO.Stream content) { HexEditorView result = new HexEditorView(); /* result.Document.MimeType = mimeType; * if (content != null) { * using (StreamReader reader = new StreamReader (content)) { * result.Document.Text = reader.ReadToEnd (); * } * }*/ return(result); }
protected async void OnShowHexEditor() { HexEditorView view = new HexEditorView(); ProjectFile file = CurrentNode.DataItem as ProjectFile; if (file != null) { await view.Load(file.FilePath); } await IdeApp.Workbench.OpenDocument(view, true); }