|
|
|
@ -8,6 +8,7 @@ using System.Runtime.Serialization.Formatters.Binary;
@@ -8,6 +8,7 @@ using System.Runtime.Serialization.Formatters.Binary;
|
|
|
|
|
using System.Windows.Forms; |
|
|
|
|
|
|
|
|
|
using ICSharpCode.Core; |
|
|
|
|
using ICSharpCode.SharpDevelop; |
|
|
|
|
using ICSharpCode.SharpDevelop.Gui; |
|
|
|
|
|
|
|
|
|
namespace ResourceEditor |
|
|
|
@ -16,7 +17,7 @@ namespace ResourceEditor
@@ -16,7 +17,7 @@ namespace ResourceEditor
|
|
|
|
|
{ |
|
|
|
|
public override void Run() |
|
|
|
|
{ |
|
|
|
|
ResourceEditorControl editor = ((ResourceEditWrapper)WorkbenchSingleton.Workbench.ActiveViewContent).ResourceEditor; |
|
|
|
|
ResourceEditorControl editor = ((ResourceEditWrapper)SD.Workbench.ActiveViewContent).ResourceEditor; |
|
|
|
|
|
|
|
|
|
if(editor.ResourceList.WriteProtected) { |
|
|
|
|
return; |
|
|
|
@ -28,7 +29,7 @@ namespace ResourceEditor
@@ -28,7 +29,7 @@ namespace ResourceEditor
|
|
|
|
|
fdiag.Multiselect = true; |
|
|
|
|
fdiag.CheckFileExists = true; |
|
|
|
|
|
|
|
|
|
if (fdiag.ShowDialog(ICSharpCode.SharpDevelop.Gui.WorkbenchSingleton.MainWin32Window) == DialogResult.OK) { |
|
|
|
|
if (fdiag.ShowDialog(SD.Workbench.MainWin32Window) == DialogResult.OK) { |
|
|
|
|
foreach (string filename in fdiag.FileNames) { |
|
|
|
|
string oresname = Path.ChangeExtension(Path.GetFileName(filename), null); |
|
|
|
|
if (oresname == "") oresname = "new"; |
|
|
|
|