diff --git a/.gitignore b/.gitignore
index 5d9d573cc3..6c257bad2c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -15,7 +15,7 @@ bin/
/src/Tools/UpdateAssemblyInfo/bin
/src/Setup/SharpDevelop.Setup.wixproj.user
/src/Main/ICSharpCode.SharpDevelop.Sda/ICSharpCode.SharpDevelop.Sda.dll.config
-/src/Main/StartUp/Project/SharpDevelop.exe.config
+/src/Main/SharpDevelop/SharpDevelop.exe.config
/src/Main/GlobalAssemblyInfo.cs
/src/AddIns/Misc/UsageDataCollector/UsageDataCollector.AddIn/AnalyticsMonitor.AppProperties.cs
diff --git a/SharpDevelop.Tests.sln b/SharpDevelop.Tests.sln
index 039b795075..e819e8007e 100644
--- a/SharpDevelop.Tests.sln
+++ b/SharpDevelop.Tests.sln
@@ -20,13 +20,11 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ICSharpCode.Core.Presentati
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ICSharpCode.Core.WinForms", "src\Main\ICSharpCode.Core.WinForms\ICSharpCode.Core.WinForms.csproj", "{857CA1A3-FC88-4BE0-AB6A-D1EE772AB288}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ICSharpCode.SharpDevelop.Sda", "src\Main\ICSharpCode.SharpDevelop.Sda\ICSharpCode.SharpDevelop.Sda.csproj", "{80318B5F-A25D-45AB-8A95-EF31D2370A4C}"
-EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ICSharpCode.SharpDevelop", "src\Main\Base\Project\ICSharpCode.SharpDevelop.csproj", "{2748AD25-9C63-4E12-877B-4DCE96FBED54}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ICSharpCode.SharpDevelop.Widgets", "src\Main\ICSharpCode.SharpDevelop.Widgets\Project\ICSharpCode.SharpDevelop.Widgets.csproj", "{8035765F-D51F-4A0C-A746-2FD100E19419}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "StartUp", "src\Main\StartUp\Project\StartUp.csproj", "{1152B71B-3C05-4598-B20D-823B5D40559E}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SharpDevelop", "src\Main\SharpDevelop\SharpDevelop.csproj", "{1152B71B-3C05-4598-B20D-823B5D40559E}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Libraries", "Libraries", "{2A232EF1-EB95-41C6-B63A-C106E0C95D3C}"
ProjectSection(SolutionItems) = postProject
@@ -38,6 +36,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ICSharpCode.AvalonEdit.Test
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "NRefactory", "NRefactory", "{E5A0F4D8-37FD-4A30-BEB0-4409DC4E0865}"
ProjectSection(SolutionItems) = postProject
+ TODOnewNR.txt = TODOnewNR.txt
EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ICSharpCode.NRefactory", "src\Libraries\NRefactory\ICSharpCode.NRefactory\ICSharpCode.NRefactory.csproj", "{3B2A5653-EC97-4001-BB9B-D90F1AF2C371}"
@@ -80,6 +79,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CppBinding", "src\AddIns\Ba
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CSharpBinding.Tests", "src\AddIns\BackendBindings\CSharpBinding\Tests\CSharpBinding.Tests.csproj", "{52006F3F-3156-45DE-89D8-C4813694FBA4}"
EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "XamlBinding", "src\AddIns\BackendBindings\XamlBinding\XamlBinding\XamlBinding.csproj", "{7C96B65D-28A5-4F28-A35B-8D83CE831EE8}"
+EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Misc", "Misc", "{F3662720-9EA2-4591-BBC6-97361DCE50A9}"
ProjectSection(SolutionItems) = postProject
EndProjectSection
@@ -106,6 +107,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UsageDataCollector", "src\A
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UsageDataCollector.AddIn", "src\AddIns\Misc\UsageDataCollector\UsageDataCollector.AddIn\UsageDataCollector.AddIn.csproj", "{0008FCE9-9EB4-4E2E-979B-553278E5BBA6}"
EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SearchAndReplace.Tests", "src\AddIns\Misc\SearchAndReplace\Test\SearchAndReplace.Tests.csproj", "{A569DCC1-C608-45FD-B770-4F79335EF154}"
+EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Display Bindings", "Display Bindings", "{11BF9245-88A3-4A0A-9A8A-EC9D98036B0F}"
ProjectSection(SolutionItems) = postProject
EndProjectSection
@@ -114,6 +117,10 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AvalonEdit.AddIn", "src\Add
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HexEditor", "src\AddIns\DisplayBindings\HexEditor\Project\HexEditor.csproj", "{E618A9CD-A39F-4925-A538-E8A3FEF24E54}"
EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "XmlEditor", "src\AddIns\DisplayBindings\XmlEditor\Project\XmlEditor.csproj", "{DCA2703D-250A-463E-A68A-07ED105AE6BD}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "XmlEditor.Tests", "src\AddIns\DisplayBindings\XmlEditor\Test\XmlEditor.Tests.csproj", "{FC0FE702-A87D-4D70-A9B6-1ECCD611125F}"
+EndProject
Project("{00000000-0000-0000-0000-000000000000}") = "Tools", "src\Tools\Tools.build", "{3DF4060F-5EE0-41CF-8096-F27355FD5511}"
EndProject
Global
@@ -138,10 +145,6 @@ Global
{857CA1A3-FC88-4BE0-AB6A-D1EE772AB288}.Debug|Any CPU.Build.0 = Debug|Any CPU
{857CA1A3-FC88-4BE0-AB6A-D1EE772AB288}.Release|Any CPU.ActiveCfg = Release|Any CPU
{857CA1A3-FC88-4BE0-AB6A-D1EE772AB288}.Release|Any CPU.Build.0 = Release|Any CPU
- {80318B5F-A25D-45AB-8A95-EF31D2370A4C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {80318B5F-A25D-45AB-8A95-EF31D2370A4C}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {80318B5F-A25D-45AB-8A95-EF31D2370A4C}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {80318B5F-A25D-45AB-8A95-EF31D2370A4C}.Release|Any CPU.Build.0 = Release|Any CPU
{2748AD25-9C63-4E12-877B-4DCE96FBED54}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{2748AD25-9C63-4E12-877B-4DCE96FBED54}.Debug|Any CPU.Build.0 = Debug|Any CPU
{2748AD25-9C63-4E12-877B-4DCE96FBED54}.Release|Any CPU.ActiveCfg = Release|Any CPU
@@ -150,10 +153,6 @@ Global
{8035765F-D51F-4A0C-A746-2FD100E19419}.Debug|Any CPU.Build.0 = Debug|Any CPU
{8035765F-D51F-4A0C-A746-2FD100E19419}.Release|Any CPU.ActiveCfg = Release|Any CPU
{8035765F-D51F-4A0C-A746-2FD100E19419}.Release|Any CPU.Build.0 = Release|Any CPU
- {1152B71B-3C05-4598-B20D-823B5D40559E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {1152B71B-3C05-4598-B20D-823B5D40559E}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {1152B71B-3C05-4598-B20D-823B5D40559E}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {1152B71B-3C05-4598-B20D-823B5D40559E}.Release|Any CPU.Build.0 = Release|Any CPU
{2FF700C2-A38A-48BD-A637-8CAFD4FE6237}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{2FF700C2-A38A-48BD-A637-8CAFD4FE6237}.Debug|Any CPU.Build.0 = Debug|Any CPU
{2FF700C2-A38A-48BD-A637-8CAFD4FE6237}.Release|Any CPU.ActiveCfg = Release|Any CPU
@@ -386,6 +385,66 @@ Global
{52006F3F-3156-45DE-89D8-C4813694FBA4}.Release|Win32.ActiveCfg = Release|Any CPU
{52006F3F-3156-45DE-89D8-C4813694FBA4}.Release|x86.Build.0 = Release|Any CPU
{52006F3F-3156-45DE-89D8-C4813694FBA4}.Release|x86.ActiveCfg = Release|Any CPU
+ {DCA2703D-250A-463E-A68A-07ED105AE6BD}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {DCA2703D-250A-463E-A68A-07ED105AE6BD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {DCA2703D-250A-463E-A68A-07ED105AE6BD}.Debug|Win32.Build.0 = Debug|Any CPU
+ {DCA2703D-250A-463E-A68A-07ED105AE6BD}.Debug|Win32.ActiveCfg = Debug|Any CPU
+ {DCA2703D-250A-463E-A68A-07ED105AE6BD}.Debug|x86.Build.0 = Debug|Any CPU
+ {DCA2703D-250A-463E-A68A-07ED105AE6BD}.Debug|x86.ActiveCfg = Debug|Any CPU
+ {DCA2703D-250A-463E-A68A-07ED105AE6BD}.Release|Any CPU.Build.0 = Release|Any CPU
+ {DCA2703D-250A-463E-A68A-07ED105AE6BD}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {DCA2703D-250A-463E-A68A-07ED105AE6BD}.Release|Win32.Build.0 = Release|Any CPU
+ {DCA2703D-250A-463E-A68A-07ED105AE6BD}.Release|Win32.ActiveCfg = Release|Any CPU
+ {DCA2703D-250A-463E-A68A-07ED105AE6BD}.Release|x86.Build.0 = Release|Any CPU
+ {DCA2703D-250A-463E-A68A-07ED105AE6BD}.Release|x86.ActiveCfg = Release|Any CPU
+ {7C96B65D-28A5-4F28-A35B-8D83CE831EE8}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {7C96B65D-28A5-4F28-A35B-8D83CE831EE8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {7C96B65D-28A5-4F28-A35B-8D83CE831EE8}.Debug|Win32.Build.0 = Debug|Any CPU
+ {7C96B65D-28A5-4F28-A35B-8D83CE831EE8}.Debug|Win32.ActiveCfg = Debug|Any CPU
+ {7C96B65D-28A5-4F28-A35B-8D83CE831EE8}.Debug|x86.Build.0 = Debug|Any CPU
+ {7C96B65D-28A5-4F28-A35B-8D83CE831EE8}.Debug|x86.ActiveCfg = Debug|Any CPU
+ {7C96B65D-28A5-4F28-A35B-8D83CE831EE8}.Release|Any CPU.Build.0 = Release|Any CPU
+ {7C96B65D-28A5-4F28-A35B-8D83CE831EE8}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {7C96B65D-28A5-4F28-A35B-8D83CE831EE8}.Release|Win32.Build.0 = Release|Any CPU
+ {7C96B65D-28A5-4F28-A35B-8D83CE831EE8}.Release|Win32.ActiveCfg = Release|Any CPU
+ {7C96B65D-28A5-4F28-A35B-8D83CE831EE8}.Release|x86.Build.0 = Release|Any CPU
+ {7C96B65D-28A5-4F28-A35B-8D83CE831EE8}.Release|x86.ActiveCfg = Release|Any CPU
+ {FC0FE702-A87D-4D70-A9B6-1ECCD611125F}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {FC0FE702-A87D-4D70-A9B6-1ECCD611125F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {FC0FE702-A87D-4D70-A9B6-1ECCD611125F}.Debug|Win32.Build.0 = Debug|Any CPU
+ {FC0FE702-A87D-4D70-A9B6-1ECCD611125F}.Debug|Win32.ActiveCfg = Debug|Any CPU
+ {FC0FE702-A87D-4D70-A9B6-1ECCD611125F}.Debug|x86.Build.0 = Debug|Any CPU
+ {FC0FE702-A87D-4D70-A9B6-1ECCD611125F}.Debug|x86.ActiveCfg = Debug|Any CPU
+ {FC0FE702-A87D-4D70-A9B6-1ECCD611125F}.Release|Any CPU.Build.0 = Release|Any CPU
+ {FC0FE702-A87D-4D70-A9B6-1ECCD611125F}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {FC0FE702-A87D-4D70-A9B6-1ECCD611125F}.Release|Win32.Build.0 = Release|Any CPU
+ {FC0FE702-A87D-4D70-A9B6-1ECCD611125F}.Release|Win32.ActiveCfg = Release|Any CPU
+ {FC0FE702-A87D-4D70-A9B6-1ECCD611125F}.Release|x86.Build.0 = Release|Any CPU
+ {FC0FE702-A87D-4D70-A9B6-1ECCD611125F}.Release|x86.ActiveCfg = Release|Any CPU
+ {A569DCC1-C608-45FD-B770-4F79335EF154}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {A569DCC1-C608-45FD-B770-4F79335EF154}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {A569DCC1-C608-45FD-B770-4F79335EF154}.Debug|Win32.Build.0 = Debug|Any CPU
+ {A569DCC1-C608-45FD-B770-4F79335EF154}.Debug|Win32.ActiveCfg = Debug|Any CPU
+ {A569DCC1-C608-45FD-B770-4F79335EF154}.Debug|x86.Build.0 = Debug|Any CPU
+ {A569DCC1-C608-45FD-B770-4F79335EF154}.Debug|x86.ActiveCfg = Debug|Any CPU
+ {A569DCC1-C608-45FD-B770-4F79335EF154}.Release|Any CPU.Build.0 = Release|Any CPU
+ {A569DCC1-C608-45FD-B770-4F79335EF154}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {A569DCC1-C608-45FD-B770-4F79335EF154}.Release|Win32.Build.0 = Release|Any CPU
+ {A569DCC1-C608-45FD-B770-4F79335EF154}.Release|Win32.ActiveCfg = Release|Any CPU
+ {A569DCC1-C608-45FD-B770-4F79335EF154}.Release|x86.Build.0 = Release|Any CPU
+ {A569DCC1-C608-45FD-B770-4F79335EF154}.Release|x86.ActiveCfg = Release|Any CPU
+ {1152B71B-3C05-4598-B20D-823B5D40559E}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {1152B71B-3C05-4598-B20D-823B5D40559E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {1152B71B-3C05-4598-B20D-823B5D40559E}.Debug|Win32.Build.0 = Debug|Any CPU
+ {1152B71B-3C05-4598-B20D-823B5D40559E}.Debug|Win32.ActiveCfg = Debug|Any CPU
+ {1152B71B-3C05-4598-B20D-823B5D40559E}.Debug|x86.Build.0 = Debug|Any CPU
+ {1152B71B-3C05-4598-B20D-823B5D40559E}.Debug|x86.ActiveCfg = Debug|Any CPU
+ {1152B71B-3C05-4598-B20D-823B5D40559E}.Release|Any CPU.Build.0 = Release|Any CPU
+ {1152B71B-3C05-4598-B20D-823B5D40559E}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {1152B71B-3C05-4598-B20D-823B5D40559E}.Release|Win32.Build.0 = Release|Any CPU
+ {1152B71B-3C05-4598-B20D-823B5D40559E}.Release|Win32.ActiveCfg = Release|Any CPU
+ {1152B71B-3C05-4598-B20D-823B5D40559E}.Release|x86.Build.0 = Release|Any CPU
+ {1152B71B-3C05-4598-B20D-823B5D40559E}.Release|x86.ActiveCfg = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
@@ -398,7 +457,6 @@ Global
{35CEF10F-2D4C-45F2-9DD1-161E0FEC583C} = {256F5C28-532C-44C0-8AB8-D8EC5E492E01}
{7E4A7172-7FF5-48D0-B719-7CD959DD1AC9} = {256F5C28-532C-44C0-8AB8-D8EC5E492E01}
{857CA1A3-FC88-4BE0-AB6A-D1EE772AB288} = {256F5C28-532C-44C0-8AB8-D8EC5E492E01}
- {80318B5F-A25D-45AB-8A95-EF31D2370A4C} = {256F5C28-532C-44C0-8AB8-D8EC5E492E01}
{2748AD25-9C63-4E12-877B-4DCE96FBED54} = {256F5C28-532C-44C0-8AB8-D8EC5E492E01}
{8035765F-D51F-4A0C-A746-2FD100E19419} = {256F5C28-532C-44C0-8AB8-D8EC5E492E01}
{1152B71B-3C05-4598-B20D-823B5D40559E} = {256F5C28-532C-44C0-8AB8-D8EC5E492E01}
@@ -423,6 +481,7 @@ Global
{E954F3CB-A446-492F-A664-2B376EBC86E8} = {E0646C25-36F2-4524-969F-FA621353AB94}
{70966F84-74C9-4067-A379-0C674A929233} = {E0646C25-36F2-4524-969F-FA621353AB94}
{52006F3F-3156-45DE-89D8-C4813694FBA4} = {E0646C25-36F2-4524-969F-FA621353AB94}
+ {7C96B65D-28A5-4F28-A35B-8D83CE831EE8} = {E0646C25-36F2-4524-969F-FA621353AB94}
{80F76D10-0B44-4D55-B4BD-DAEB5464090C} = {F3662720-9EA2-4591-BBC6-97361DCE50A9}
{9196DD8A-B4D4-4780-8742-C5762E547FC2} = {F3662720-9EA2-4591-BBC6-97361DCE50A9}
{7D5C266F-D6FF-4D14-B315-0C0FC6C4EF51} = {F3662720-9EA2-4591-BBC6-97361DCE50A9}
@@ -431,9 +490,12 @@ Global
{D022A6CE-7438-41E8-AC64-F2DE18EC54C6} = {F3662720-9EA2-4591-BBC6-97361DCE50A9}
{64A3E5E6-90BF-47F6-94DF-68C94B62C817} = {F3662720-9EA2-4591-BBC6-97361DCE50A9}
{DEFC8584-BEC3-4921-BD0F-40482E450B7B} = {F3662720-9EA2-4591-BBC6-97361DCE50A9}
+ {A569DCC1-C608-45FD-B770-4F79335EF154} = {F3662720-9EA2-4591-BBC6-97361DCE50A9}
{6B1CFE35-DA17-4DEB-9C6E-227E5E251DA0} = {DEFC8584-BEC3-4921-BD0F-40482E450B7B}
{0008FCE9-9EB4-4E2E-979B-553278E5BBA6} = {DEFC8584-BEC3-4921-BD0F-40482E450B7B}
{0162E499-42D0-409B-AA25-EED21F75336B} = {11BF9245-88A3-4A0A-9A8A-EC9D98036B0F}
{E618A9CD-A39F-4925-A538-E8A3FEF24E54} = {11BF9245-88A3-4A0A-9A8A-EC9D98036B0F}
+ {DCA2703D-250A-463E-A68A-07ED105AE6BD} = {11BF9245-88A3-4A0A-9A8A-EC9D98036B0F}
+ {FC0FE702-A87D-4D70-A9B6-1ECCD611125F} = {11BF9245-88A3-4A0A-9A8A-EC9D98036B0F}
EndGlobalSection
EndGlobal
diff --git a/SharpDevelop.sln b/SharpDevelop.sln
index fdfca873fa..b1b629d9f3 100644
--- a/SharpDevelop.sln
+++ b/SharpDevelop.sln
@@ -16,13 +16,11 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ICSharpCode.Core.Presentati
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ICSharpCode.Core.WinForms", "src\Main\ICSharpCode.Core.WinForms\ICSharpCode.Core.WinForms.csproj", "{857CA1A3-FC88-4BE0-AB6A-D1EE772AB288}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ICSharpCode.SharpDevelop.Sda", "src\Main\ICSharpCode.SharpDevelop.Sda\ICSharpCode.SharpDevelop.Sda.csproj", "{80318B5F-A25D-45AB-8A95-EF31D2370A4C}"
-EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ICSharpCode.SharpDevelop", "src\Main\Base\Project\ICSharpCode.SharpDevelop.csproj", "{2748AD25-9C63-4E12-877B-4DCE96FBED54}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ICSharpCode.SharpDevelop.Widgets", "src\Main\ICSharpCode.SharpDevelop.Widgets\Project\ICSharpCode.SharpDevelop.Widgets.csproj", "{8035765F-D51F-4A0C-A746-2FD100E19419}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "StartUp", "src\Main\StartUp\Project\StartUp.csproj", "{1152B71B-3C05-4598-B20D-823B5D40559E}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SharpDevelop", "src\Main\SharpDevelop\SharpDevelop.csproj", "{1152B71B-3C05-4598-B20D-823B5D40559E}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Libraries", "Libraries", "{2A232EF1-EB95-41C6-B63A-C106E0C95D3C}"
ProjectSection(SolutionItems) = postProject
@@ -133,10 +131,6 @@ Global
{857CA1A3-FC88-4BE0-AB6A-D1EE772AB288}.Debug|Any CPU.Build.0 = Debug|Any CPU
{857CA1A3-FC88-4BE0-AB6A-D1EE772AB288}.Release|Any CPU.ActiveCfg = Release|Any CPU
{857CA1A3-FC88-4BE0-AB6A-D1EE772AB288}.Release|Any CPU.Build.0 = Release|Any CPU
- {80318B5F-A25D-45AB-8A95-EF31D2370A4C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {80318B5F-A25D-45AB-8A95-EF31D2370A4C}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {80318B5F-A25D-45AB-8A95-EF31D2370A4C}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {80318B5F-A25D-45AB-8A95-EF31D2370A4C}.Release|Any CPU.Build.0 = Release|Any CPU
{2748AD25-9C63-4E12-877B-4DCE96FBED54}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{2748AD25-9C63-4E12-877B-4DCE96FBED54}.Debug|Any CPU.Build.0 = Debug|Any CPU
{2748AD25-9C63-4E12-877B-4DCE96FBED54}.Release|Any CPU.ActiveCfg = Release|Any CPU
@@ -145,10 +139,6 @@ Global
{8035765F-D51F-4A0C-A746-2FD100E19419}.Debug|Any CPU.Build.0 = Debug|Any CPU
{8035765F-D51F-4A0C-A746-2FD100E19419}.Release|Any CPU.ActiveCfg = Release|Any CPU
{8035765F-D51F-4A0C-A746-2FD100E19419}.Release|Any CPU.Build.0 = Release|Any CPU
- {1152B71B-3C05-4598-B20D-823B5D40559E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {1152B71B-3C05-4598-B20D-823B5D40559E}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {1152B71B-3C05-4598-B20D-823B5D40559E}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {1152B71B-3C05-4598-B20D-823B5D40559E}.Release|Any CPU.Build.0 = Release|Any CPU
{2FF700C2-A38A-48BD-A637-8CAFD4FE6237}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{2FF700C2-A38A-48BD-A637-8CAFD4FE6237}.Debug|Any CPU.Build.0 = Debug|Any CPU
{2FF700C2-A38A-48BD-A637-8CAFD4FE6237}.Release|Any CPU.ActiveCfg = Release|Any CPU
@@ -417,6 +407,18 @@ Global
{7C96B65D-28A5-4F28-A35B-8D83CE831EE8}.Release|Win32.ActiveCfg = Release|Any CPU
{7C96B65D-28A5-4F28-A35B-8D83CE831EE8}.Release|x86.Build.0 = Release|Any CPU
{7C96B65D-28A5-4F28-A35B-8D83CE831EE8}.Release|x86.ActiveCfg = Release|Any CPU
+ {1152B71B-3C05-4598-B20D-823B5D40559E}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {1152B71B-3C05-4598-B20D-823B5D40559E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {1152B71B-3C05-4598-B20D-823B5D40559E}.Debug|Win32.Build.0 = Debug|Any CPU
+ {1152B71B-3C05-4598-B20D-823B5D40559E}.Debug|Win32.ActiveCfg = Debug|Any CPU
+ {1152B71B-3C05-4598-B20D-823B5D40559E}.Debug|x86.Build.0 = Debug|Any CPU
+ {1152B71B-3C05-4598-B20D-823B5D40559E}.Debug|x86.ActiveCfg = Debug|Any CPU
+ {1152B71B-3C05-4598-B20D-823B5D40559E}.Release|Any CPU.Build.0 = Release|Any CPU
+ {1152B71B-3C05-4598-B20D-823B5D40559E}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {1152B71B-3C05-4598-B20D-823B5D40559E}.Release|Win32.Build.0 = Release|Any CPU
+ {1152B71B-3C05-4598-B20D-823B5D40559E}.Release|Win32.ActiveCfg = Release|Any CPU
+ {1152B71B-3C05-4598-B20D-823B5D40559E}.Release|x86.Build.0 = Release|Any CPU
+ {1152B71B-3C05-4598-B20D-823B5D40559E}.Release|x86.ActiveCfg = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
@@ -427,7 +429,6 @@ Global
{35CEF10F-2D4C-45F2-9DD1-161E0FEC583C} = {256F5C28-532C-44C0-8AB8-D8EC5E492E01}
{7E4A7172-7FF5-48D0-B719-7CD959DD1AC9} = {256F5C28-532C-44C0-8AB8-D8EC5E492E01}
{857CA1A3-FC88-4BE0-AB6A-D1EE772AB288} = {256F5C28-532C-44C0-8AB8-D8EC5E492E01}
- {80318B5F-A25D-45AB-8A95-EF31D2370A4C} = {256F5C28-532C-44C0-8AB8-D8EC5E492E01}
{2748AD25-9C63-4E12-877B-4DCE96FBED54} = {256F5C28-532C-44C0-8AB8-D8EC5E492E01}
{8035765F-D51F-4A0C-A746-2FD100E19419} = {256F5C28-532C-44C0-8AB8-D8EC5E492E01}
{1152B71B-3C05-4598-B20D-823B5D40559E} = {256F5C28-532C-44C0-8AB8-D8EC5E492E01}
diff --git a/src/AddIns/BackendBindings/XamlBinding/XamlBinding.Tests/MockTextEditor.cs b/src/AddIns/BackendBindings/XamlBinding/XamlBinding.Tests/MockTextEditor.cs
index 2f59a61e1f..ef51604d6f 100644
--- a/src/AddIns/BackendBindings/XamlBinding/XamlBinding.Tests/MockTextEditor.cs
+++ b/src/AddIns/BackendBindings/XamlBinding/XamlBinding.Tests/MockTextEditor.cs
@@ -7,7 +7,6 @@ using ICSharpCode.AvalonEdit;
using ICSharpCode.AvalonEdit.Highlighting;
using ICSharpCode.Core;
using ICSharpCode.SharpDevelop;
-using ICSharpCode.SharpDevelop.Dom;
using ICSharpCode.SharpDevelop.Editor;
using ICSharpCode.SharpDevelop.Editor.AvalonEdit;
using ICSharpCode.SharpDevelop.Editor.CodeCompletion;
diff --git a/src/AddIns/BackendBindings/XamlBinding/XamlBinding.Tests/XamlBinding.Tests.csproj b/src/AddIns/BackendBindings/XamlBinding/XamlBinding.Tests/XamlBinding.Tests.csproj
index 14e1eb860d..5bc61cc326 100644
--- a/src/AddIns/BackendBindings/XamlBinding/XamlBinding.Tests/XamlBinding.Tests.csproj
+++ b/src/AddIns/BackendBindings/XamlBinding/XamlBinding.Tests/XamlBinding.Tests.csproj
@@ -7,13 +7,14 @@
Library
ICSharpCode.XamlBinding.Tests
ICSharpCode.XamlBinding.Tests
- v4.0
+ v4.5
Properties
..\..\..\..\..\bin\UnitTests\
False
False
4
false
+
true
@@ -92,10 +93,6 @@
{6C55B776-26D4-4DB3-A6AB-87E783B2F3D1}
ICSharpCode.AvalonEdit
-
- {3A9AE6AA-BC07-4A2F-972C-581E3AE2F195}
- NRefactory
-
{2748AD25-9C63-4E12-877B-4DCE96FBED54}
ICSharpCode.SharpDevelop
@@ -108,10 +105,6 @@
{7E4A7172-7FF5-48D0-B719-7CD959DD1AC9}
ICSharpCode.Core.Presentation
-
- {924EE450-603D-49C1-A8E5-4AFAA31CE6F3}
- ICSharpCode.SharpDevelop.Dom
-
{DCA2703D-250A-463E-A68A-07ED105AE6BD}
XmlEditor
diff --git a/src/AddIns/DisplayBindings/XmlEditor/Test/Editor/DefaultXmlEditorOptionsTestFixture.cs b/src/AddIns/DisplayBindings/XmlEditor/Test/Editor/DefaultXmlEditorOptionsTestFixture.cs
index 53bfa6be58..02b1b01583 100644
--- a/src/AddIns/DisplayBindings/XmlEditor/Test/Editor/DefaultXmlEditorOptionsTestFixture.cs
+++ b/src/AddIns/DisplayBindings/XmlEditor/Test/Editor/DefaultXmlEditorOptionsTestFixture.cs
@@ -2,8 +2,10 @@
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
using System;
+using System.ComponentModel;
using System.IO;
using System.Xml;
+
using ICSharpCode.Core;
using ICSharpCode.XmlEditor;
using NUnit.Framework;
@@ -104,7 +106,7 @@ namespace XmlEditor.Tests.Editor
{
options.PropertyChanged += OptionsPropertyChanged;
properties.Set(XmlEditorOptions.ShowAttributesWhenFoldedPropertyName, true);
- Assert.AreEqual(XmlEditorOptions.ShowAttributesWhenFoldedPropertyName, propertyChangedEventArgs.Key);
+ Assert.AreEqual(XmlEditorOptions.ShowAttributesWhenFoldedPropertyName, propertyChangedEventArgs.PropertyName);
}
void OptionsPropertyChanged(object source, PropertyChangedEventArgs e)
diff --git a/src/AddIns/DisplayBindings/XmlEditor/Test/Editor/ElementEndAddedAfterGreaterThanCharTypedTestFixture.cs b/src/AddIns/DisplayBindings/XmlEditor/Test/Editor/ElementEndAddedAfterGreaterThanCharTypedTestFixture.cs
index a0c1197cd4..087e187ec0 100644
--- a/src/AddIns/DisplayBindings/XmlEditor/Test/Editor/ElementEndAddedAfterGreaterThanCharTypedTestFixture.cs
+++ b/src/AddIns/DisplayBindings/XmlEditor/Test/Editor/ElementEndAddedAfterGreaterThanCharTypedTestFixture.cs
@@ -2,9 +2,9 @@
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
using System;
-
using ICSharpCode.AvalonEdit.Document;
using ICSharpCode.NRefactory;
+using ICSharpCode.NRefactory.Editor;
using ICSharpCode.SharpDevelop.Editor.AvalonEdit;
using ICSharpCode.XmlEditor;
using NUnit.Framework;
@@ -18,7 +18,7 @@ namespace XmlEditor.Tests.Editor
XmlFormattingStrategy formattingStrategy;
MockTextEditor textEditor;
MockTextEditorOptions options;
- AvalonEditDocumentAdapter document;
+ IDocument document;
TextDocument textDocument;
[SetUp]
@@ -31,7 +31,7 @@ namespace XmlEditor.Tests.Editor
textEditor.Options = options;
textDocument = new TextDocument();
- document = new AvalonEditDocumentAdapter(textDocument, null);
+ document = textDocument;
textEditor.SetDocument(document);
document.Text =
diff --git a/src/AddIns/DisplayBindings/XmlEditor/Test/Editor/IndentChildElementEndTagAfterNewLineTypedTestFixture.cs b/src/AddIns/DisplayBindings/XmlEditor/Test/Editor/IndentChildElementEndTagAfterNewLineTypedTestFixture.cs
index ed03ffc9f4..56ef571728 100644
--- a/src/AddIns/DisplayBindings/XmlEditor/Test/Editor/IndentChildElementEndTagAfterNewLineTypedTestFixture.cs
+++ b/src/AddIns/DisplayBindings/XmlEditor/Test/Editor/IndentChildElementEndTagAfterNewLineTypedTestFixture.cs
@@ -2,12 +2,13 @@
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
using System;
-
using ICSharpCode.AvalonEdit.Document;
using ICSharpCode.NRefactory;
+using ICSharpCode.NRefactory.Editor;
using ICSharpCode.SharpDevelop.Editor.AvalonEdit;
using ICSharpCode.XmlEditor;
using NUnit.Framework;
+using Rhino.Mocks;
using XmlEditor.Tests.Utils;
namespace XmlEditor.Tests.Editor
@@ -18,8 +19,8 @@ namespace XmlEditor.Tests.Editor
XmlFormattingStrategy formattingStrategy;
MockTextEditor textEditor;
MockTextEditorOptions options;
- MockDocumentLine docLine;
- AvalonEditDocumentAdapter document;
+ IDocumentLine docLine;
+ IDocument document;
TextDocument textDocument;
[SetUp]
@@ -32,7 +33,7 @@ namespace XmlEditor.Tests.Editor
textEditor.Options = options;
textDocument = new TextDocument();
- document = new AvalonEditDocumentAdapter(textDocument, null);
+ document = textDocument;
textEditor.SetDocument(document);
document.Text =
@@ -41,8 +42,8 @@ namespace XmlEditor.Tests.Editor
"\r\n" +
"\r\n";
- docLine = new MockDocumentLine();
- docLine.LineNumber = 3;
+ docLine = MockRepository.GenerateStub();
+ docLine.Stub(l => l.LineNumber).Return(3);
formattingStrategy.IndentLine(textEditor, docLine);
}
@@ -77,8 +78,8 @@ namespace XmlEditor.Tests.Editor
{
int line = 3;
int column = 2;
- Location expectedLocation = new Location(column, line);
- Assert.AreEqual(expectedLocation, textEditor.Caret.Position);
+ var expectedLocation = new TextLocation(line, column);
+ Assert.AreEqual(expectedLocation, textEditor.Caret.Location);
}
}
}
diff --git a/src/AddIns/DisplayBindings/XmlEditor/Test/Editor/IndentLinesTests.cs b/src/AddIns/DisplayBindings/XmlEditor/Test/Editor/IndentLinesTests.cs
index 71f30c7ba4..83b959cc04 100644
--- a/src/AddIns/DisplayBindings/XmlEditor/Test/Editor/IndentLinesTests.cs
+++ b/src/AddIns/DisplayBindings/XmlEditor/Test/Editor/IndentLinesTests.cs
@@ -2,9 +2,9 @@
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
using System;
-
using ICSharpCode.AvalonEdit.Document;
using ICSharpCode.NRefactory;
+using ICSharpCode.NRefactory.Editor;
using ICSharpCode.SharpDevelop.Editor.AvalonEdit;
using ICSharpCode.XmlEditor;
using NUnit.Framework;
@@ -18,7 +18,7 @@ namespace XmlEditor.Tests.Editor
XmlFormattingStrategy formattingStrategy;
MockTextEditor textEditor;
MockTextEditorOptions options;
- AvalonEditDocumentAdapter document;
+ IDocument document;
TextDocument textDocument;
[SetUp]
@@ -31,7 +31,7 @@ namespace XmlEditor.Tests.Editor
textEditor.Options = options;
textDocument = new TextDocument();
- document = new AvalonEditDocumentAdapter(textDocument, null);
+ document = textDocument;
textEditor.SetDocument(document);
}
diff --git a/src/AddIns/DisplayBindings/XmlEditor/Test/Editor/NoElementEndAddedAfterGreaterThanCharTypedTests.cs b/src/AddIns/DisplayBindings/XmlEditor/Test/Editor/NoElementEndAddedAfterGreaterThanCharTypedTests.cs
index 717ed9342b..0602610826 100644
--- a/src/AddIns/DisplayBindings/XmlEditor/Test/Editor/NoElementEndAddedAfterGreaterThanCharTypedTests.cs
+++ b/src/AddIns/DisplayBindings/XmlEditor/Test/Editor/NoElementEndAddedAfterGreaterThanCharTypedTests.cs
@@ -2,9 +2,9 @@
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
using System;
-
using ICSharpCode.AvalonEdit.Document;
using ICSharpCode.NRefactory;
+using ICSharpCode.NRefactory.Editor;
using ICSharpCode.SharpDevelop.Editor.AvalonEdit;
using ICSharpCode.XmlEditor;
using NUnit.Framework;
@@ -18,7 +18,7 @@ namespace XmlEditor.Tests.Editor
XmlFormattingStrategy formattingStrategy;
MockTextEditor textEditor;
MockTextEditorOptions options;
- AvalonEditDocumentAdapter document;
+ IDocument document;
TextDocument textDocument;
[SetUp]
@@ -31,7 +31,7 @@ namespace XmlEditor.Tests.Editor
textEditor.Options = options;
textDocument = new TextDocument();
- document = new AvalonEditDocumentAdapter(textDocument, null);
+ document = textDocument;
textEditor.SetDocument(document);
}
diff --git a/src/AddIns/DisplayBindings/XmlEditor/Test/Editor/SurroundTextWithCommentBlockTestFixture.cs b/src/AddIns/DisplayBindings/XmlEditor/Test/Editor/SurroundTextWithCommentBlockTestFixture.cs
index 892bd157c6..50616bf430 100644
--- a/src/AddIns/DisplayBindings/XmlEditor/Test/Editor/SurroundTextWithCommentBlockTestFixture.cs
+++ b/src/AddIns/DisplayBindings/XmlEditor/Test/Editor/SurroundTextWithCommentBlockTestFixture.cs
@@ -3,6 +3,7 @@
using ICSharpCode.AvalonEdit.Document;
using ICSharpCode.NRefactory;
+using ICSharpCode.NRefactory.Editor;
using ICSharpCode.SharpDevelop.Editor.AvalonEdit;
using ICSharpCode.XmlEditor;
using NUnit.Framework;
@@ -16,7 +17,7 @@ namespace XmlEditor.Tests.Editor
XmlFormattingStrategy formattingStrategy;
MockTextEditor textEditor;
MockTextEditorOptions options;
- AvalonEditDocumentAdapter document;
+ IDocument document;
TextDocument textDocument;
[SetUp]
@@ -29,7 +30,7 @@ namespace XmlEditor.Tests.Editor
textEditor.Options = options;
textDocument = new TextDocument();
- document = new AvalonEditDocumentAdapter(textDocument, null);
+ document = textDocument;
textEditor.SetDocument(document);
textDocument.Text =
diff --git a/src/AddIns/DisplayBindings/XmlEditor/Test/Folding/AttributeTextInFoldIsXmlEncodedTestFixture.cs b/src/AddIns/DisplayBindings/XmlEditor/Test/Folding/AttributeTextInFoldIsXmlEncodedTestFixture.cs
index 2d96e33113..62c7d6fb28 100644
--- a/src/AddIns/DisplayBindings/XmlEditor/Test/Folding/AttributeTextInFoldIsXmlEncodedTestFixture.cs
+++ b/src/AddIns/DisplayBindings/XmlEditor/Test/Folding/AttributeTextInFoldIsXmlEncodedTestFixture.cs
@@ -3,7 +3,6 @@
using System;
using System.Collections.Generic;
-using ICSharpCode.SharpDevelop.Dom;
using ICSharpCode.XmlEditor;
using NUnit.Framework;
using XmlEditor.Tests.Utils;
diff --git a/src/AddIns/DisplayBindings/XmlEditor/Test/Folding/EmptyCommentDoesNotCreateFoldTestFixture.cs b/src/AddIns/DisplayBindings/XmlEditor/Test/Folding/EmptyCommentDoesNotCreateFoldTestFixture.cs
index ebe2ff529f..ad6902f666 100644
--- a/src/AddIns/DisplayBindings/XmlEditor/Test/Folding/EmptyCommentDoesNotCreateFoldTestFixture.cs
+++ b/src/AddIns/DisplayBindings/XmlEditor/Test/Folding/EmptyCommentDoesNotCreateFoldTestFixture.cs
@@ -3,7 +3,7 @@
using System;
using System.Collections.Generic;
-using ICSharpCode.SharpDevelop.Dom;
+using ICSharpCode.NRefactory.TypeSystem;
using ICSharpCode.XmlEditor;
using NUnit.Framework;
using XmlEditor.Tests.Utils;
diff --git a/src/AddIns/DisplayBindings/XmlEditor/Test/Folding/MultiLineCommentFoldTestFixture.cs b/src/AddIns/DisplayBindings/XmlEditor/Test/Folding/MultiLineCommentFoldTestFixture.cs
index 49b0134c0e..9eb0497476 100644
--- a/src/AddIns/DisplayBindings/XmlEditor/Test/Folding/MultiLineCommentFoldTestFixture.cs
+++ b/src/AddIns/DisplayBindings/XmlEditor/Test/Folding/MultiLineCommentFoldTestFixture.cs
@@ -2,7 +2,7 @@
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
using System;
-using ICSharpCode.SharpDevelop.Dom;
+using ICSharpCode.NRefactory.TypeSystem;
using NUnit.Framework;
using XmlEditor.Tests.Utils;
diff --git a/src/AddIns/DisplayBindings/XmlEditor/Test/Folding/QualifiedElementFoldTestFixture.cs b/src/AddIns/DisplayBindings/XmlEditor/Test/Folding/QualifiedElementFoldTestFixture.cs
index 1e411e7a8a..72bd8656e9 100644
--- a/src/AddIns/DisplayBindings/XmlEditor/Test/Folding/QualifiedElementFoldTestFixture.cs
+++ b/src/AddIns/DisplayBindings/XmlEditor/Test/Folding/QualifiedElementFoldTestFixture.cs
@@ -2,7 +2,7 @@
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
using System;
-using ICSharpCode.SharpDevelop.Dom;
+using ICSharpCode.NRefactory.TypeSystem;
using NUnit.Framework;
using XmlEditor.Tests.Utils;
diff --git a/src/AddIns/DisplayBindings/XmlEditor/Test/Folding/QualifiedElementWithNoDefinedNamespaceFoldTestFixture.cs b/src/AddIns/DisplayBindings/XmlEditor/Test/Folding/QualifiedElementWithNoDefinedNamespaceFoldTestFixture.cs
index 54234a3f26..8bf424b926 100644
--- a/src/AddIns/DisplayBindings/XmlEditor/Test/Folding/QualifiedElementWithNoDefinedNamespaceFoldTestFixture.cs
+++ b/src/AddIns/DisplayBindings/XmlEditor/Test/Folding/QualifiedElementWithNoDefinedNamespaceFoldTestFixture.cs
@@ -2,7 +2,7 @@
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
using System;
-using ICSharpCode.SharpDevelop.Dom;
+using ICSharpCode.NRefactory.TypeSystem;
using NUnit.Framework;
using XmlEditor.Tests.Utils;
diff --git a/src/AddIns/DisplayBindings/XmlEditor/Test/Folding/ShowElementAttributesInFoldTestFixture.cs b/src/AddIns/DisplayBindings/XmlEditor/Test/Folding/ShowElementAttributesInFoldTestFixture.cs
index 7c4ddf44e8..3b5fa85ce6 100644
--- a/src/AddIns/DisplayBindings/XmlEditor/Test/Folding/ShowElementAttributesInFoldTestFixture.cs
+++ b/src/AddIns/DisplayBindings/XmlEditor/Test/Folding/ShowElementAttributesInFoldTestFixture.cs
@@ -2,7 +2,7 @@
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
using System;
-using ICSharpCode.SharpDevelop.Dom;
+using ICSharpCode.NRefactory.TypeSystem;
using NUnit.Framework;
using XmlEditor.Tests.Utils;
diff --git a/src/AddIns/DisplayBindings/XmlEditor/Test/Folding/SingleEmptyElementFoldTestFixture.cs b/src/AddIns/DisplayBindings/XmlEditor/Test/Folding/SingleEmptyElementFoldTestFixture.cs
index 99052a7091..558b2f91f5 100644
--- a/src/AddIns/DisplayBindings/XmlEditor/Test/Folding/SingleEmptyElementFoldTestFixture.cs
+++ b/src/AddIns/DisplayBindings/XmlEditor/Test/Folding/SingleEmptyElementFoldTestFixture.cs
@@ -2,7 +2,7 @@
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
using System;
-using ICSharpCode.SharpDevelop.Dom;
+using ICSharpCode.NRefactory.TypeSystem;
using NUnit.Framework;
using XmlEditor.Tests.Utils;
diff --git a/src/AddIns/DisplayBindings/XmlEditor/Test/Folding/SingleLineElementDoesNotCreateFoldTestFixture.cs b/src/AddIns/DisplayBindings/XmlEditor/Test/Folding/SingleLineElementDoesNotCreateFoldTestFixture.cs
index b556e8aa2e..11c122a692 100644
--- a/src/AddIns/DisplayBindings/XmlEditor/Test/Folding/SingleLineElementDoesNotCreateFoldTestFixture.cs
+++ b/src/AddIns/DisplayBindings/XmlEditor/Test/Folding/SingleLineElementDoesNotCreateFoldTestFixture.cs
@@ -2,7 +2,7 @@
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
using System;
-using ICSharpCode.SharpDevelop.Dom;
+using ICSharpCode.NRefactory.TypeSystem;
using NUnit.Framework;
using XmlEditor.Tests.Utils;
diff --git a/src/AddIns/DisplayBindings/XmlEditor/Test/Folding/SingleRootElementFoldTestFixture.cs b/src/AddIns/DisplayBindings/XmlEditor/Test/Folding/SingleRootElementFoldTestFixture.cs
index 4408433bdc..9fedf2cc14 100644
--- a/src/AddIns/DisplayBindings/XmlEditor/Test/Folding/SingleRootElementFoldTestFixture.cs
+++ b/src/AddIns/DisplayBindings/XmlEditor/Test/Folding/SingleRootElementFoldTestFixture.cs
@@ -3,7 +3,7 @@
using System;
using System.Collections.Generic;
-using ICSharpCode.SharpDevelop.Dom;
+using ICSharpCode.NRefactory.TypeSystem;
using ICSharpCode.XmlEditor;
using NUnit.Framework;
using XmlEditor.Tests.Utils;
diff --git a/src/AddIns/DisplayBindings/XmlEditor/Test/Folding/TwoElementFoldsTestFixture.cs b/src/AddIns/DisplayBindings/XmlEditor/Test/Folding/TwoElementFoldsTestFixture.cs
index 1aa56ec322..38b9fa9c50 100644
--- a/src/AddIns/DisplayBindings/XmlEditor/Test/Folding/TwoElementFoldsTestFixture.cs
+++ b/src/AddIns/DisplayBindings/XmlEditor/Test/Folding/TwoElementFoldsTestFixture.cs
@@ -2,7 +2,7 @@
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
using System;
-using ICSharpCode.SharpDevelop.Dom;
+using ICSharpCode.NRefactory.TypeSystem;
using NUnit.Framework;
using XmlEditor.Tests.Utils;
diff --git a/src/AddIns/DisplayBindings/XmlEditor/Test/Folding/XmlFoldingManagerTests.cs b/src/AddIns/DisplayBindings/XmlEditor/Test/Folding/XmlFoldingManagerTests.cs
index 52f42d5d1c..5babec212f 100644
--- a/src/AddIns/DisplayBindings/XmlEditor/Test/Folding/XmlFoldingManagerTests.cs
+++ b/src/AddIns/DisplayBindings/XmlEditor/Test/Folding/XmlFoldingManagerTests.cs
@@ -4,8 +4,9 @@
using System;
using System.Collections.Generic;
using ICSharpCode.AvalonEdit.Folding;
+using ICSharpCode.NRefactory.Editor;
+using ICSharpCode.NRefactory.TypeSystem;
using ICSharpCode.SharpDevelop;
-using ICSharpCode.SharpDevelop.Dom;
using ICSharpCode.XmlEditor;
using NUnit.Framework;
using XmlEditor.Tests.Utils;
@@ -55,7 +56,7 @@ namespace XmlEditor.Tests.Folding
MockDocument expectedSnapshot = new MockDocument();
fakeTextEditor.MockDocument.SetSnapshot(expectedSnapshot);
- ITextBuffer snapshot = xmlFoldingManager.CreateTextEditorSnapshot();
+ ITextSource snapshot = xmlFoldingManager.CreateTextEditorSnapshot();
Assert.AreEqual(expectedSnapshot, snapshot);
}
@@ -81,7 +82,7 @@ namespace XmlEditor.Tests.Folding
MockDocument expectedSnapshot = new MockDocument();
fakeTextEditor.MockDocument.SetSnapshot(expectedSnapshot);
- ITextBuffer snapshot = xmlFoldingManager.CreateTextEditorSnapshot();
+ ITextSource snapshot = xmlFoldingManager.CreateTextEditorSnapshot();
IList folds = xmlFoldingManager.GetFolds(snapshot);
@@ -94,26 +95,6 @@ namespace XmlEditor.Tests.Folding
return new FoldingRegion("a", region);
}
- [Test]
- public void UpdateFolds_FakeFoldingManagerUsed_FoldsPassedToFakeFoldingManager()
- {
- CreateXmlFoldingManager();
- List folds = NewFoldingHelper.CreateFoldListWithOneFold();
- xmlFoldingManager.UpdateFolds(folds);
-
- NewFoldingHelper.AssertAreEqual(folds, fakeFoldingManager.NewFoldsPassedToUpdateFoldings);
- }
-
- [Test]
- public void UpdateFolds_FakeFoldingManagerUsed_FirstErrorOffsetPassedToFakeFoldingManagerIsMinusOne()
- {
- CreateXmlFoldingManager();
- List folds = NewFoldingHelper.CreateFoldListWithOneFold();
- xmlFoldingManager.UpdateFolds(folds);
-
- Assert.AreEqual(-1, fakeFoldingManager.FirstErrorOffset);
- }
-
[Test]
public void UpdateFolds_NoParameterPassedToMethod_FakeXmlFoldParserFoldsUsedToUpdateFakeFoldingManager()
{
diff --git a/src/AddIns/DisplayBindings/XmlEditor/Test/Tree/TreeControlViewStateTestFixture.cs b/src/AddIns/DisplayBindings/XmlEditor/Test/Tree/TreeControlViewStateTestFixture.cs
index 994300feb8..fff0281c45 100644
--- a/src/AddIns/DisplayBindings/XmlEditor/Test/Tree/TreeControlViewStateTestFixture.cs
+++ b/src/AddIns/DisplayBindings/XmlEditor/Test/Tree/TreeControlViewStateTestFixture.cs
@@ -44,14 +44,14 @@ namespace XmlEditor.Tests.Tree
[Test]
public void ViewStateSaved()
{
- string savedViewState = (string)savedProperties.Get("XmlTreeViewControl.ViewState");
+ string savedViewState = savedProperties.Get("XmlTreeViewControl.ViewState", string.Empty);
Assert.AreEqual(expectedSavedViewState, savedViewState);
}
[Test]
public void ViewStateLoaded()
{
- Assert.AreEqual(String.Empty, restoredProperties.Get("XmlTreeViewControl.ViewState"));
+ Assert.AreEqual(String.Empty, restoredProperties.Get("XmlTreeViewControl.ViewState", string.Empty));
}
}
}
diff --git a/src/AddIns/DisplayBindings/XmlEditor/Test/Utils/FakeXmlFoldParser.cs b/src/AddIns/DisplayBindings/XmlEditor/Test/Utils/FakeXmlFoldParser.cs
index e78ee785de..169b11fb8b 100644
--- a/src/AddIns/DisplayBindings/XmlEditor/Test/Utils/FakeXmlFoldParser.cs
+++ b/src/AddIns/DisplayBindings/XmlEditor/Test/Utils/FakeXmlFoldParser.cs
@@ -4,8 +4,8 @@
using System;
using System.Collections.Generic;
using ICSharpCode.AvalonEdit.Folding;
+using ICSharpCode.NRefactory.Editor;
using ICSharpCode.SharpDevelop;
-using ICSharpCode.SharpDevelop.Dom;
using ICSharpCode.SharpDevelop.Editor;
using ICSharpCode.XmlEditor;
@@ -14,9 +14,9 @@ namespace XmlEditor.Tests.Utils
public class FakeXmlFoldParser : IXmlFoldParser
{
public List Folds = new List();
- public ITextBuffer TextBufferPassedToGetFolds;
+ public ITextSource TextBufferPassedToGetFolds;
- public IList GetFolds(ITextBuffer textBuffer)
+ public IList GetFolds(ITextSource textBuffer)
{
TextBufferPassedToGetFolds = textBuffer;
return Folds;
diff --git a/src/AddIns/DisplayBindings/XmlEditor/Test/Utils/MockCaret.cs b/src/AddIns/DisplayBindings/XmlEditor/Test/Utils/MockCaret.cs
deleted file mode 100644
index a75b951b61..0000000000
--- a/src/AddIns/DisplayBindings/XmlEditor/Test/Utils/MockCaret.cs
+++ /dev/null
@@ -1,53 +0,0 @@
-// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
-// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
-
-using System;
-using ICSharpCode.NRefactory;
-using ICSharpCode.SharpDevelop.Editor;
-
-namespace XmlEditor.Tests.Utils
-{
- public class MockCaret : ITextEditorCaret
- {
- int offset = -1;
-
- public MockCaret()
- {
- Position = Location.Empty;
- }
-
- public event EventHandler PositionChanged;
-
- protected virtual void OnPositionChanged(EventArgs e)
- {
- if (PositionChanged != null) {
- PositionChanged(this, e);
- }
- }
-
- public int Offset {
- get { return offset; }
- set { offset = value; }
- }
-
- public int Line {
- get {
- throw new NotImplementedException();
- }
- set {
- throw new NotImplementedException();
- }
- }
-
- public int Column {
- get {
- throw new NotImplementedException();
- }
- set {
- throw new NotImplementedException();
- }
- }
-
- public Location Position { get; set; }
- }
-}
diff --git a/src/AddIns/DisplayBindings/XmlEditor/Test/Utils/MockDocument.cs b/src/AddIns/DisplayBindings/XmlEditor/Test/Utils/MockDocument.cs
index 3763fbbfd5..5a9ffb06c6 100644
--- a/src/AddIns/DisplayBindings/XmlEditor/Test/Utils/MockDocument.cs
+++ b/src/AddIns/DisplayBindings/XmlEditor/Test/Utils/MockDocument.cs
@@ -4,7 +4,9 @@
using System;
using System.Collections.Generic;
using System.IO;
+
using ICSharpCode.NRefactory;
+using ICSharpCode.NRefactory.Editor;
using ICSharpCode.SharpDevelop;
using ICSharpCode.SharpDevelop.Editor;
@@ -14,7 +16,7 @@ namespace XmlEditor.Tests.Utils
{
string text = String.Empty;
TextSection textSectionUsedWithGetTextMethod;
- ITextBuffer snapshot;
+ ITextSource snapshot;
public List PositionToOffsetReturnValues = new List();
@@ -22,27 +24,18 @@ namespace XmlEditor.Tests.Utils
{
}
- public event EventHandler TextChanged;
-
- protected virtual void OnTextChanged(EventArgs e)
- {
- if (TextChanged != null) {
- TextChanged(this, e);
- }
- }
-
public string Text {
get { return text; }
set { text = value; }
}
- public int TotalNumberOfLines {
+ public int LineCount {
get {
throw new NotImplementedException();
}
}
- public ITextBufferVersion Version {
+ public ITextSourceVersion Version {
get {
throw new NotImplementedException();
}
@@ -62,14 +55,19 @@ namespace XmlEditor.Tests.Utils
throw new NotImplementedException();
}
- public int PositionToOffset(int line, int column)
+ public int GetOffset(int line, int column)
{
int offset = PositionToOffsetReturnValues[0];
PositionToOffsetReturnValues.RemoveAt(0);
return offset;
}
- public Location OffsetToPosition(int offset)
+ public int GetOffset(TextLocation location)
+ {
+ return GetOffset(location.Line, location.Column);
+ }
+
+ public TextLocation GetLocation(int offset)
{
throw new NotImplementedException();
}
@@ -114,17 +112,17 @@ namespace XmlEditor.Tests.Utils
throw new NotImplementedException();
}
- public void SetSnapshot(ITextBuffer snapshot)
+ public void SetSnapshot(ITextSource snapshot)
{
this.snapshot = snapshot;
}
- public ITextBuffer CreateSnapshot()
+ public ITextSource CreateSnapshot()
{
return snapshot;
}
- public ITextBuffer CreateSnapshot(int offset, int length)
+ public ITextSource CreateSnapshot(int offset, int length)
{
throw new NotImplementedException();
}
@@ -155,18 +153,18 @@ namespace XmlEditor.Tests.Utils
throw new NotImplementedException();
}
- public event EventHandler Changing {
+ public event EventHandler TextChanging {
add { throw new NotImplementedException(); }
remove { throw new NotImplementedException(); }
}
- public event EventHandler Changed;
+ public event EventHandler TextChanged;
public void RaiseChangedEvent()
{
TextChangeEventArgs e = new TextChangeEventArgs(0, "", "a");
- if (Changed != null) {
- Changed(this, e);
+ if (TextChanged != null) {
+ TextChanged(this, e);
}
}
@@ -174,5 +172,52 @@ namespace XmlEditor.Tests.Utils
{
throw new NotImplementedException();
}
+
+ public event EventHandler ChangeCompleted;
+
+ public IDocument CreateDocumentSnapshot()
+ {
+ throw new NotImplementedException();
+ }
+
+ public IDocumentLine GetLineByNumber(int lineNumber)
+ {
+ throw new NotImplementedException();
+ }
+
+ public IDocumentLine GetLineByOffset(int offset)
+ {
+ throw new NotImplementedException();
+ }
+
+ public string GetText(ISegment segment)
+ {
+ throw new NotImplementedException();
+ }
+
+ public int IndexOf(char c, int startIndex, int count)
+ {
+ throw new NotImplementedException();
+ }
+
+ public int IndexOfAny(char[] anyOf, int startIndex, int count)
+ {
+ throw new NotImplementedException();
+ }
+
+ public int IndexOf(string searchText, int startIndex, int count, StringComparison comparisonType)
+ {
+ throw new NotImplementedException();
+ }
+
+ public int LastIndexOf(char c, int startIndex, int count)
+ {
+ throw new NotImplementedException();
+ }
+
+ public int LastIndexOf(string searchText, int startIndex, int count, StringComparison comparisonType)
+ {
+ throw new NotImplementedException();
+ }
}
}
diff --git a/src/AddIns/DisplayBindings/XmlEditor/Test/Utils/MockDocumentLine.cs b/src/AddIns/DisplayBindings/XmlEditor/Test/Utils/MockDocumentLine.cs
deleted file mode 100644
index 29a5b69f99..0000000000
--- a/src/AddIns/DisplayBindings/XmlEditor/Test/Utils/MockDocumentLine.cs
+++ /dev/null
@@ -1,53 +0,0 @@
-// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
-// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
-
-using System;
-using ICSharpCode.SharpDevelop.Editor;
-
-namespace XmlEditor.Tests.Utils
-{
- public class MockDocumentLine : IDocumentLine
- {
- public MockDocumentLine()
- {
- }
-
- public int Offset {
- get {
- throw new NotImplementedException();
- }
- }
-
- public int Length {
- get {
- throw new NotImplementedException();
- }
- }
-
- public int EndOffset {
- get {
- throw new NotImplementedException();
- }
- }
-
- public int TotalLength {
- get {
- throw new NotImplementedException();
- }
- }
-
- public int DelimiterLength {
- get {
- throw new NotImplementedException();
- }
- }
-
- public int LineNumber { get; set; }
-
- public string Text {
- get {
- throw new NotImplementedException();
- }
- }
- }
-}
diff --git a/src/AddIns/DisplayBindings/XmlEditor/Test/Utils/MockParserService.cs b/src/AddIns/DisplayBindings/XmlEditor/Test/Utils/MockParserService.cs
deleted file mode 100644
index 39ff905ade..0000000000
--- a/src/AddIns/DisplayBindings/XmlEditor/Test/Utils/MockParserService.cs
+++ /dev/null
@@ -1,40 +0,0 @@
-// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
-// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
-
-using System;
-using System.Collections.Generic;
-using ICSharpCode.SharpDevelop.Dom;
-using ICSharpCode.XmlEditor;
-
-namespace XmlEditor.Tests.Utils
-{
- public class MockParserService : IParserService
- {
- IProjectContent projectContentPassedToGetExistingParseInfoMethod;
- Dictionary parseInfoDictionary = new Dictionary();
-
- public MockParserService()
- {
- }
-
- public ParseInformation GetExistingParseInformation(IProjectContent content, string fileName)
- {
- projectContentPassedToGetExistingParseInfoMethod = content;
-
- ParseInformation parseInfo;
- if (parseInfoDictionary.TryGetValue(fileName, out parseInfo)) {
- return parseInfo;
- }
- return null;
- }
-
- public void SetExistingParseInformation(string fileName, ParseInformation parseInfo)
- {
- parseInfoDictionary.Add(fileName, parseInfo);
- }
-
- public IProjectContent ProjectContentPassedToGetExistingParseInforMethod {
- get { return projectContentPassedToGetExistingParseInfoMethod; }
- }
- }
-}
diff --git a/src/AddIns/DisplayBindings/XmlEditor/Test/Utils/MockTextBuffer.cs b/src/AddIns/DisplayBindings/XmlEditor/Test/Utils/MockTextBuffer.cs
deleted file mode 100644
index 9e05b04725..0000000000
--- a/src/AddIns/DisplayBindings/XmlEditor/Test/Utils/MockTextBuffer.cs
+++ /dev/null
@@ -1,74 +0,0 @@
-// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
-// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
-
-using System;
-using System.IO;
-using ICSharpCode.SharpDevelop;
-
-namespace XmlEditor.Tests.Utils
-{
- public class MockTextBuffer : ITextBuffer
- {
- string text = String.Empty;
-
- public MockTextBuffer(string text)
- {
- this.text = text;
- }
-
- public event EventHandler TextChanged;
-
- protected virtual void OnTextChanged(EventArgs e)
- {
- if (TextChanged != null) {
- TextChanged(this, e);
- }
- }
-
- public ITextBufferVersion Version {
- get {
- throw new NotImplementedException();
- }
- }
-
- public int TextLength {
- get {
- throw new NotImplementedException();
- }
- }
-
- public string Text {
- get { return text; }
- }
-
- public ITextBuffer CreateSnapshot()
- {
- throw new NotImplementedException();
- }
-
- public ITextBuffer CreateSnapshot(int offset, int length)
- {
- throw new NotImplementedException();
- }
-
- public TextReader CreateReader()
- {
- return new StringReader(text);
- }
-
- public TextReader CreateReader(int offset, int length)
- {
- return new StringReader(text);
- }
-
- public char GetCharAt(int offset)
- {
- throw new NotImplementedException();
- }
-
- public string GetText(int offset, int length)
- {
- throw new NotImplementedException();
- }
- }
-}
diff --git a/src/AddIns/DisplayBindings/XmlEditor/Test/Utils/MockTextEditor.cs b/src/AddIns/DisplayBindings/XmlEditor/Test/Utils/MockTextEditor.cs
index 8774503ce1..d650e982dc 100644
--- a/src/AddIns/DisplayBindings/XmlEditor/Test/Utils/MockTextEditor.cs
+++ b/src/AddIns/DisplayBindings/XmlEditor/Test/Utils/MockTextEditor.cs
@@ -5,9 +5,11 @@ using System;
using System.Collections.Generic;
using System.Windows.Input;
using ICSharpCode.Core;
+using ICSharpCode.NRefactory.Editor;
using ICSharpCode.SharpDevelop;
using ICSharpCode.SharpDevelop.Editor;
using ICSharpCode.SharpDevelop.Editor.CodeCompletion;
+using Rhino.Mocks;
namespace XmlEditor.Tests.Utils
{
@@ -15,7 +17,7 @@ namespace XmlEditor.Tests.Utils
{
MockCompletionListWindow completionWindowDisplayed;
ICompletionItemList completionItemsDisplayed;
- MockCaret caret = new MockCaret();
+ ITextEditorCaret caret = MockRepository.GenerateStub();
IDocument document = new MockDocument();
ITextEditorOptions options = new MockTextEditorOptions();
FileName fileName;
@@ -178,5 +180,11 @@ namespace XmlEditor.Tests.Utils
{
throw new NotImplementedException();
}
+
+ public IList ContextActionProviders {
+ get {
+ throw new NotImplementedException();
+ }
+ }
}
}
diff --git a/src/AddIns/DisplayBindings/XmlEditor/Test/Utils/MockTextEditorProviderViewContent.cs b/src/AddIns/DisplayBindings/XmlEditor/Test/Utils/MockTextEditorProviderViewContent.cs
index b850975091..21c447cc10 100644
--- a/src/AddIns/DisplayBindings/XmlEditor/Test/Utils/MockTextEditorProviderViewContent.cs
+++ b/src/AddIns/DisplayBindings/XmlEditor/Test/Utils/MockTextEditorProviderViewContent.cs
@@ -2,6 +2,7 @@
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
using System;
+using ICSharpCode.NRefactory.Editor;
using ICSharpCode.SharpDevelop;
using ICSharpCode.SharpDevelop.Editor;
diff --git a/src/AddIns/DisplayBindings/XmlEditor/Test/Utils/MockWorkbench.cs b/src/AddIns/DisplayBindings/XmlEditor/Test/Utils/MockWorkbench.cs
index 4e3edcd4c7..351380c42a 100644
--- a/src/AddIns/DisplayBindings/XmlEditor/Test/Utils/MockWorkbench.cs
+++ b/src/AddIns/DisplayBindings/XmlEditor/Test/Utils/MockWorkbench.cs
@@ -42,7 +42,7 @@ namespace XmlEditor.Tests.Utils
}
}
- public event ViewContentEventHandler ViewOpened;
+ public event EventHandler ViewOpened;
protected virtual void OnViewOpened(ViewContentEventArgs e)
{
@@ -51,7 +51,7 @@ namespace XmlEditor.Tests.Utils
}
}
- public event ViewContentEventHandler ViewClosed;
+ public event EventHandler ViewClosed;
protected virtual void OnViewClosed(ViewContentEventArgs e)
{
diff --git a/src/AddIns/DisplayBindings/XmlEditor/Test/Utils/MockXmlViewContent.cs b/src/AddIns/DisplayBindings/XmlEditor/Test/Utils/MockXmlViewContent.cs
index 783d7c1e24..b4dba04e7e 100644
--- a/src/AddIns/DisplayBindings/XmlEditor/Test/Utils/MockXmlViewContent.cs
+++ b/src/AddIns/DisplayBindings/XmlEditor/Test/Utils/MockXmlViewContent.cs
@@ -2,6 +2,8 @@
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
using System;
+using ICSharpCode.AvalonEdit.Document;
+using ICSharpCode.NRefactory.Editor;
using ICSharpCode.SharpDevelop;
using ICSharpCode.SharpDevelop.Editor;
using ICSharpCode.SharpDevelop.Editor.AvalonEdit;
@@ -12,13 +14,13 @@ namespace XmlEditor.Tests.Utils
public class MockXmlViewContent : AbstractViewContent, IFileDocumentProvider
{
OpenedFile file;
- AvalonEditDocumentAdapter document;
+ IDocument document;
public MockXmlViewContent(OpenedFile file)
{
this.file = file;
this.Files.Add(file);
- this.document = new AvalonEditDocumentAdapter();
+ this.document = new TextDocument();
}
public override object Control {
diff --git a/src/AddIns/DisplayBindings/XmlEditor/Test/Utils/Tests/MockCaretTests.cs b/src/AddIns/DisplayBindings/XmlEditor/Test/Utils/Tests/MockCaretTests.cs
deleted file mode 100644
index b04c7a93de..0000000000
--- a/src/AddIns/DisplayBindings/XmlEditor/Test/Utils/Tests/MockCaretTests.cs
+++ /dev/null
@@ -1,49 +0,0 @@
-// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
-// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
-
-using System;
-using ICSharpCode.NRefactory;
-using NUnit.Framework;
-using XmlEditor.Tests.Utils;
-
-namespace XmlEditor.Tests.Utils.Tests
-{
- [TestFixture]
- public class MockCaretTests
- {
- MockCaret caret;
-
- [SetUp]
- public void Init()
- {
- caret = new MockCaret();
- }
-
- [Test]
- public void CanSetAndGetCaretOffset()
- {
- caret.Offset = 3;
- Assert.AreEqual(3, caret.Offset);
- }
-
- [Test]
- public void InitialCaretOffsetIsMinusOne()
- {
- Assert.AreEqual(-1, caret.Offset);
- }
-
- [Test]
- public void CanGetAndSetCaretPosition()
- {
- Location location = new Location(3, 2);
- caret.Position = location;
- Assert.AreEqual(location, caret.Position);
- }
-
- [Test]
- public void DefaultCaretPostionIsEmpty()
- {
- Assert.AreEqual(Location.Empty, caret.Position);
- }
- }
-}
diff --git a/src/AddIns/DisplayBindings/XmlEditor/Test/Utils/Tests/MockDocumentLineTests.cs b/src/AddIns/DisplayBindings/XmlEditor/Test/Utils/Tests/MockDocumentLineTests.cs
deleted file mode 100644
index 16088887ab..0000000000
--- a/src/AddIns/DisplayBindings/XmlEditor/Test/Utils/Tests/MockDocumentLineTests.cs
+++ /dev/null
@@ -1,28 +0,0 @@
-// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
-// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
-
-using System;
-using NUnit.Framework;
-using XmlEditor.Tests.Utils;
-
-namespace XmlEditor.Tests.Utils.Tests
-{
- [TestFixture]
- public class MockDocumentLineTests
- {
- MockDocumentLine documentLine;
-
- [SetUp]
- public void Init()
- {
- documentLine = new MockDocumentLine();
- }
-
- [Test]
- public void CanSetAndGetLineNumberProperty()
- {
- documentLine.LineNumber = 2;
- Assert.AreEqual(2, documentLine.LineNumber);
- }
- }
-}
diff --git a/src/AddIns/DisplayBindings/XmlEditor/Test/Utils/Tests/MockParserServiceTests.cs b/src/AddIns/DisplayBindings/XmlEditor/Test/Utils/Tests/MockParserServiceTests.cs
deleted file mode 100644
index 0dc831ade2..0000000000
--- a/src/AddIns/DisplayBindings/XmlEditor/Test/Utils/Tests/MockParserServiceTests.cs
+++ /dev/null
@@ -1,49 +0,0 @@
-// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
-// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
-
-using System;
-using ICSharpCode.SharpDevelop.Dom;
-using ICSharpCode.XmlEditor;
-using NUnit.Framework;
-
-namespace XmlEditor.Tests.Utils.Tests
-{
- [TestFixture]
- public class MockParserServiceTests
- {
- MockParserService parserService;
- ParseInformation existingParseInfo;
-
- [SetUp]
- public void Init()
- {
-
- DefaultProjectContent projectContent = new DefaultProjectContent();
- DefaultCompilationUnit unit = new DefaultCompilationUnit(projectContent);
- existingParseInfo = new ParseInformation(unit);
-
- parserService = new MockParserService();
- parserService.SetExistingParseInformation(@"d:\projects\test.xml", existingParseInfo);
- }
-
- [Test]
- public void CanGetProjectContentPassedToGetExistingParseInfoMethod()
- {
- DefaultProjectContent projectContent = new DefaultProjectContent();
- parserService.GetExistingParseInformation(projectContent, "file.xml");
- Assert.AreSame(projectContent, parserService.ProjectContentPassedToGetExistingParseInforMethod);
- }
-
- [Test]
- public void GetExistingParseInfoReturnsParseInfoObjectForKnownFileName()
- {
- Assert.AreSame(existingParseInfo, parserService.GetExistingParseInformation(null, @"d:\projects\test.xml"));
- }
-
- [Test]
- public void GetExistingParseInfoReturnsNullForKnownFileName()
- {
- Assert.IsNull(parserService.GetExistingParseInformation(null, @"d:\projects\unknown.xml"));
- }
- }
-}
diff --git a/src/AddIns/DisplayBindings/XmlEditor/Test/Utils/Tests/MockTextBufferTests.cs b/src/AddIns/DisplayBindings/XmlEditor/Test/Utils/Tests/MockTextBufferTests.cs
index 23fd2d4556..35f2f69751 100644
--- a/src/AddIns/DisplayBindings/XmlEditor/Test/Utils/Tests/MockTextBufferTests.cs
+++ b/src/AddIns/DisplayBindings/XmlEditor/Test/Utils/Tests/MockTextBufferTests.cs
@@ -5,7 +5,7 @@ using System;
using System.IO;
using System.Text;
using System.Xml;
-
+using ICSharpCode.NRefactory.Editor;
using NUnit.Framework;
using XmlEditor.Tests.Utils;
@@ -18,7 +18,7 @@ namespace XmlEditor.Tests.Utils.Tests
public void CanGetTextFromTextBufferTextProperty()
{
string expectedText = "abc";
- MockTextBuffer textBuffer = new MockTextBuffer(expectedText);
+ ITextSource textBuffer = new StringTextSource(expectedText);
Assert.AreEqual(expectedText, textBuffer.Text);
}
@@ -26,7 +26,7 @@ namespace XmlEditor.Tests.Utils.Tests
public void CanGetTextFromReaderReturnedFromTextBufferCreateReader()
{
string expectedText = "abc";
- MockTextBuffer textBuffer = new MockTextBuffer("abc");
+ ITextSource textBuffer = new StringTextSource("abc");
StringBuilder text = new StringBuilder();
using (TextReader reader = textBuffer.CreateReader()) {
diff --git a/src/AddIns/DisplayBindings/XmlEditor/Test/Utils/XmlFoldParserHelper.cs b/src/AddIns/DisplayBindings/XmlEditor/Test/Utils/XmlFoldParserHelper.cs
index af0c4afbcd..b857a638a5 100644
--- a/src/AddIns/DisplayBindings/XmlEditor/Test/Utils/XmlFoldParserHelper.cs
+++ b/src/AddIns/DisplayBindings/XmlEditor/Test/Utils/XmlFoldParserHelper.cs
@@ -4,7 +4,8 @@
using System;
using System.Collections.Generic;
using ICSharpCode.Core;
-using ICSharpCode.SharpDevelop.Dom;
+using ICSharpCode.NRefactory.Editor;
+using ICSharpCode.NRefactory.TypeSystem;
using ICSharpCode.XmlEditor;
namespace XmlEditor.Tests.Utils
@@ -21,14 +22,14 @@ namespace XmlEditor.Tests.Utils
return Parser;
}
- public MockTextBuffer CreateTextBuffer(string xml)
+ public ITextSource CreateTextBuffer(string xml)
{
- return new MockTextBuffer(xml);
+ return new StringTextSource(xml);
}
public IList GetFolds(string xml)
{
- MockTextBuffer textBuffer = new MockTextBuffer(xml);
+ ITextSource textBuffer = new StringTextSource(xml);
Folds = Parser.GetFolds(textBuffer);
return Folds;
}
diff --git a/src/AddIns/DisplayBindings/XmlEditor/Test/XPath/NamespacePropertiesLoaded.cs b/src/AddIns/DisplayBindings/XmlEditor/Test/XPath/NamespacePropertiesLoaded.cs
index 61f9d88083..d231e16bf7 100644
--- a/src/AddIns/DisplayBindings/XmlEditor/Test/XPath/NamespacePropertiesLoaded.cs
+++ b/src/AddIns/DisplayBindings/XmlEditor/Test/XPath/NamespacePropertiesLoaded.cs
@@ -30,7 +30,7 @@ namespace XmlEditor.Tests.XPath
foreach (XmlNamespace xmlNamespace in expectedNamespaces) {
namespaces.Add(xmlNamespace.ToString());
}
- p.Set("Namespaces", namespaces.ToArray());
+ p.SetList("Namespaces", namespaces);
queryControl.SetMemento(p);
actualNamespaces = queryControl.GetNamespaces();
}
diff --git a/src/AddIns/DisplayBindings/XmlEditor/Test/XPath/NamespacePropertiesSaved.cs b/src/AddIns/DisplayBindings/XmlEditor/Test/XPath/NamespacePropertiesSaved.cs
index 07d7ff9854..d62e4c56f0 100644
--- a/src/AddIns/DisplayBindings/XmlEditor/Test/XPath/NamespacePropertiesSaved.cs
+++ b/src/AddIns/DisplayBindings/XmlEditor/Test/XPath/NamespacePropertiesSaved.cs
@@ -1,6 +1,7 @@
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
+using System.Linq;
using ICSharpCode.Core;
using ICSharpCode.XmlEditor;
using NUnit.Framework;
@@ -35,7 +36,7 @@ namespace XmlEditor.Tests.XPath
queryControl.NamespacesDataGridView.Rows.Add(new object[] {null, null});
Properties p = queryControl.CreateMemento();
- actualNamespaces = p.Get("Namespaces", new string[0]);
+ actualNamespaces = p.GetList("Namespaces").ToArray();
}
}
diff --git a/src/AddIns/DisplayBindings/XmlEditor/Test/XPath/RemoveXPathHighlightingCommandTestFixture.cs b/src/AddIns/DisplayBindings/XmlEditor/Test/XPath/RemoveXPathHighlightingCommandTestFixture.cs
index 2ebac3e873..65f6761074 100644
--- a/src/AddIns/DisplayBindings/XmlEditor/Test/XPath/RemoveXPathHighlightingCommandTestFixture.cs
+++ b/src/AddIns/DisplayBindings/XmlEditor/Test/XPath/RemoveXPathHighlightingCommandTestFixture.cs
@@ -5,7 +5,7 @@ using System;
using System.Collections.Generic;
using System.ComponentModel.Design;
using System.Xml.XPath;
-
+using ICSharpCode.NRefactory.Editor;
using ICSharpCode.SharpDevelop.Editor;
using ICSharpCode.SharpDevelop.Editor.AvalonEdit;
using ICSharpCode.SharpDevelop.Gui;
@@ -33,7 +33,7 @@ namespace XmlEditor.Tests.XPath
container.AddService(typeof(ITextMarkerService), markerService);
// Add xpath marker to document.
- AvalonEditDocumentAdapter doc = new AvalonEditDocumentAdapter(new ICSharpCode.AvalonEdit.Document.TextDocument(), container);
+ IDocument doc = new ICSharpCode.AvalonEdit.Document.TextDocument() { ServiceProvider = container };
doc.Text = "";
XPathNodeTextMarker xpathNodeMarker = new XPathNodeTextMarker(doc);
XPathNodeMatch nodeMatch = new XPathNodeMatch("Test", "", 0, 1, XPathNodeType.Element);
diff --git a/src/AddIns/DisplayBindings/XmlEditor/Test/XPath/SingleXPathQueryElementMarkedTestFixture.cs b/src/AddIns/DisplayBindings/XmlEditor/Test/XPath/SingleXPathQueryElementMarkedTestFixture.cs
index 868d80916f..e6cb9de1fd 100644
--- a/src/AddIns/DisplayBindings/XmlEditor/Test/XPath/SingleXPathQueryElementMarkedTestFixture.cs
+++ b/src/AddIns/DisplayBindings/XmlEditor/Test/XPath/SingleXPathQueryElementMarkedTestFixture.cs
@@ -5,6 +5,7 @@ using System;
using System.Collections.Generic;
using System.ComponentModel.Design;
+using ICSharpCode.NRefactory.Editor;
using ICSharpCode.SharpDevelop.Editor;
using ICSharpCode.SharpDevelop.Editor.AvalonEdit;
using ICSharpCode.SharpDevelop.Tests.Utils;
diff --git a/src/AddIns/DisplayBindings/XmlEditor/Test/XPath/XPathNodeTextMarkerTests.cs b/src/AddIns/DisplayBindings/XmlEditor/Test/XPath/XPathNodeTextMarkerTests.cs
index 7320936cb3..b3b83f6842 100644
--- a/src/AddIns/DisplayBindings/XmlEditor/Test/XPath/XPathNodeTextMarkerTests.cs
+++ b/src/AddIns/DisplayBindings/XmlEditor/Test/XPath/XPathNodeTextMarkerTests.cs
@@ -4,7 +4,7 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.Design;
-
+using ICSharpCode.NRefactory.Editor;
using ICSharpCode.SharpDevelop.Editor;
using ICSharpCode.SharpDevelop.Editor.AvalonEdit;
using ICSharpCode.SharpDevelop.Tests.Utils;
@@ -30,7 +30,7 @@ namespace XmlEditor.Tests.XPath
ServiceContainer container = new ServiceContainer();
container.AddService(typeof(MockTextMarkerService), new MockTextMarkerService());
- AvalonEditDocumentAdapter doc = new AvalonEditDocumentAdapter(new ICSharpCode.AvalonEdit.Document.TextDocument(), container);
+ IDocument doc = new ICSharpCode.AvalonEdit.Document.TextDocument() { ServiceProvider = container };
doc.Text = xml;
XPathNodeTextMarker xpathNodeMarker = new XPathNodeTextMarker(doc);
xpathNodeMarker.AddMarkers(nodes);
@@ -60,7 +60,7 @@ namespace XmlEditor.Tests.XPath
ServiceContainer container = new ServiceContainer();
container.AddService(typeof(MockTextMarkerService), new MockTextMarkerService());
- AvalonEditDocumentAdapter doc = new AvalonEditDocumentAdapter(new ICSharpCode.AvalonEdit.Document.TextDocument(), container);
+ IDocument doc = new ICSharpCode.AvalonEdit.Document.TextDocument() { ServiceProvider = container };
doc.Text = xml;
XPathNodeTextMarker xpathNodeMarker = new XPathNodeTextMarker(doc);
xpathNodeMarker.AddMarkers(nodes);
diff --git a/src/AddIns/DisplayBindings/XmlEditor/Test/XPath/XPathQueryHistoryTestFixture.cs b/src/AddIns/DisplayBindings/XmlEditor/Test/XPath/XPathQueryHistoryTestFixture.cs
index 80a01f15cd..4e231dda05 100644
--- a/src/AddIns/DisplayBindings/XmlEditor/Test/XPath/XPathQueryHistoryTestFixture.cs
+++ b/src/AddIns/DisplayBindings/XmlEditor/Test/XPath/XPathQueryHistoryTestFixture.cs
@@ -1,6 +1,7 @@
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
+using System.Linq;
using ICSharpCode.Core;
using ICSharpCode.XmlEditor;
using NUnit.Framework;
@@ -31,7 +32,7 @@ namespace XmlEditor.Tests.XPath
Properties p = new Properties();
p.Set("XPathQuery.LastQuery", "//w:Wix");
expectedXPathsAfterLoad = new string[] {"//w:Fragment", "//w:Dialog"};
- p.Set("XPathQuery.History", expectedXPathsAfterLoad);
+ p.SetList("XPathQuery.History", expectedXPathsAfterLoad);
queryControl.SetMemento(p);
comboBoxTextAfterLoad = queryControl.XPathComboBox.Text;
@@ -45,7 +46,7 @@ namespace XmlEditor.Tests.XPath
p = queryControl.CreateMemento();
xpathQueryAfterSave = p.Get("XPathQuery.LastQuery", String.Empty);
- xpathsAfterSave = p.Get("XPathQuery.History", new string[0]);
+ xpathsAfterSave = p.GetList("XPathQuery.History").ToArray();
}
}
diff --git a/src/AddIns/DisplayBindings/XmlEditor/Test/XmlEditor.Tests.csproj b/src/AddIns/DisplayBindings/XmlEditor/Test/XmlEditor.Tests.csproj
index 7aed7b41dd..28191b035c 100644
--- a/src/AddIns/DisplayBindings/XmlEditor/Test/XmlEditor.Tests.csproj
+++ b/src/AddIns/DisplayBindings/XmlEditor/Test/XmlEditor.Tests.csproj
@@ -20,8 +20,9 @@
False
False
True
- v4.0
+ v4.5
true
+
false
@@ -43,6 +44,9 @@
3.0
+
+ ..\..\..\..\Libraries\RhinoMocks\Rhino.Mocks.dll
+
3.5
@@ -249,14 +253,10 @@
-
-
-
-
@@ -267,11 +267,8 @@
-
-
-
@@ -349,9 +346,9 @@
{6C55B776-26D4-4DB3-A6AB-87E783B2F3D1}
ICSharpCode.AvalonEdit
-
- {3A9AE6AA-BC07-4A2F-972C-581E3AE2F195}
- NRefactory
+
+ {3B2A5653-EC97-4001-BB9B-D90F1AF2C371}
+ ICSharpCode.NRefactory
{4980B743-B32F-4aba-AABD-45E2CAD3568D}
@@ -362,10 +359,6 @@
{857CA1A3-FC88-4BE0-AB6A-D1EE772AB288}
ICSharpCode.Core.WinForms
-
- {924EE450-603D-49C1-A8E5-4AFAA31CE6F3}
- ICSharpCode.SharpDevelop.Dom
-
{DCA2703D-250A-463E-A68A-07ED105AE6BD}
XmlEditor
diff --git a/src/AddIns/DisplayBindings/XmlEditor/Test/XmlEditor.Tests.csproj.user b/src/AddIns/DisplayBindings/XmlEditor/Test/XmlEditor.Tests.csproj.user
index 7ff3943f7c..3ea973d02f 100644
--- a/src/AddIns/DisplayBindings/XmlEditor/Test/XmlEditor.Tests.csproj.user
+++ b/src/AddIns/DisplayBindings/XmlEditor/Test/XmlEditor.Tests.csproj.user
@@ -1 +1,2 @@
-
\ No newline at end of file
+
+
\ No newline at end of file
diff --git a/src/AddIns/DisplayBindings/XmlEditor/Test/app.config b/src/AddIns/DisplayBindings/XmlEditor/Test/app.config
index f1f39768e4..c21256eaec 100644
--- a/src/AddIns/DisplayBindings/XmlEditor/Test/app.config
+++ b/src/AddIns/DisplayBindings/XmlEditor/Test/app.config
@@ -1,9 +1,11 @@
-
+
-
+
+
+
diff --git a/src/AddIns/Misc/SearchAndReplace/Test/SearchAndReplace.Tests.csproj b/src/AddIns/Misc/SearchAndReplace/Test/SearchAndReplace.Tests.csproj
index b16c96652a..1bcf01940f 100644
--- a/src/AddIns/Misc/SearchAndReplace/Test/SearchAndReplace.Tests.csproj
+++ b/src/AddIns/Misc/SearchAndReplace/Test/SearchAndReplace.Tests.csproj
@@ -12,7 +12,8 @@
False
4
false
- v4.0
+ v4.5
+
true
@@ -59,11 +60,6 @@
{3B2A5653-EC97-4001-BB9B-D90F1AF2C371}
ICSharpCode.NRefactory
- True
-
-
- {3A9AE6AA-BC07-4A2F-972C-581E3AE2F195}
- NRefactory
{2748AD25-9C63-4E12-877B-4DCE96FBED54}
diff --git a/src/Main/Base/Project/Configuration/AssemblyInfo.cs b/src/Main/Base/Project/Configuration/AssemblyInfo.cs
index ccfeb85796..cd09aa9cef 100644
--- a/src/Main/Base/Project/Configuration/AssemblyInfo.cs
+++ b/src/Main/Base/Project/Configuration/AssemblyInfo.cs
@@ -10,16 +10,9 @@ using System.Windows;
[assembly: CLSCompliant(false)]
[assembly: StringFreezing()]
-// Use hard-binding for ICSharpCode.SharpDevelop:
-[assembly: Dependency("ICSharpCode.Core", LoadHint.Always)]
-[assembly: Dependency("ICSharpCode.Core.WinForms", LoadHint.Always)]
-[assembly: Dependency("ICSharpCode.Core.Presentation", LoadHint.Always)]
-[assembly: Dependency("ICSharpCode.AvalonEdit", LoadHint.Always)]
-[assembly: Dependency("ICSharpCode.NRefactory", LoadHint.Always)]
-
[assembly: ThemeInfo(
- ResourceDictionaryLocation.SourceAssembly, //where theme specific resource dictionaries are located
- ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
+ ResourceDictionaryLocation.SourceAssembly, //where theme specific resource dictionaries are located
+ ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
)]
[assembly: AssemblyTitle("SharpDevelopBase")]
@@ -27,3 +20,5 @@ using System.Windows;
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
+
+[assembly: InternalsVisibleTo("SharpDevelop,PublicKey=002400000480000094000000060200000024000052534131000400000100010063d5db5957250f41969c79e88cbd8806165ca7d96d468a9d60f11704a8b0698684b5acc16fc82e6cede459e1d6ed7384b044c47a67d68bae1e08182473168e2ad92c6fabe32b9217ea59d05bb9a101318aeec9f767991d2ae8d987b60c591b6020d2816c395db7f3045a1c77c2b074c508c2b4f25dcd969688da94ebc83f5f9b")]
diff --git a/src/Main/Base/Project/ICSharpCode.SharpDevelop.addin b/src/Main/Base/Project/ICSharpCode.SharpDevelop.addin
index e476749b65..84f5abcbf3 100755
--- a/src/Main/Base/Project/ICSharpCode.SharpDevelop.addin
+++ b/src/Main/Base/Project/ICSharpCode.SharpDevelop.addin
@@ -49,6 +49,7 @@
+
@@ -1065,7 +1066,7 @@
+ class = "ICSharpCode.SharpDevelop.Gui.Workbench.ChooseLayoutCommand" />
diff --git a/src/Main/Base/Project/ICSharpCode.SharpDevelop.csproj b/src/Main/Base/Project/ICSharpCode.SharpDevelop.csproj
index 5886060035..89d041dc09 100644
--- a/src/Main/Base/Project/ICSharpCode.SharpDevelop.csproj
+++ b/src/Main/Base/Project/ICSharpCode.SharpDevelop.csproj
@@ -175,10 +175,6 @@
-
- App.xaml
- Code
-
ColorPickerButton.xaml
@@ -301,12 +297,6 @@
-
-
-
-
-
-
@@ -435,7 +425,6 @@
-
@@ -457,9 +446,6 @@
UserControl
-
- Component
-
UserControl
@@ -545,14 +531,11 @@
-
-
-
UserControl
@@ -825,11 +808,6 @@
-
- {2FF700C2-A38A-48BD-A637-8CAFD4FE6237}
- AvalonDock
- False
-
{6C55B776-26D4-4DB3-A6AB-87E783B2F3D1}
ICSharpCode.AvalonEdit
@@ -878,7 +856,6 @@
ICSharpCode.SharpDevelop.Widgets
False
-
GotoDialog.cs
@@ -888,7 +865,6 @@
-
diff --git a/src/Main/Base/Project/Src/Gui/IWorkbench.cs b/src/Main/Base/Project/Src/Gui/IWorkbench.cs
index 3e44abe380..ae8a189cfe 100644
--- a/src/Main/Base/Project/Src/Gui/IWorkbench.cs
+++ b/src/Main/Base/Project/Src/Gui/IWorkbench.cs
@@ -31,11 +31,6 @@ namespace ICSharpCode.SharpDevelop.Gui
///
Window MainWindow { get; }
- ///
- /// Gets the status bar.
- ///
- IStatusBarService StatusBar { get; }
-
///
/// Gets/Sets whether the window is displayed in full-screen mode.
///
@@ -179,11 +174,29 @@ namespace ICSharpCode.SharpDevelop.Gui
/// WorkbenchSingleton.Workbench.ViewOpened += ...;
/// };
///
- event ViewContentEventHandler ViewOpened;
+ event EventHandler ViewOpened;
///
/// Is called, when a workbench view was closed
///
- event ViewContentEventHandler ViewClosed;
+ event EventHandler ViewClosed;
+ }
+
+ public class ViewContentEventArgs : EventArgs
+ {
+ IViewContent content;
+
+ public IViewContent Content {
+ get {
+ return content;
+ }
+ }
+
+ public ViewContentEventArgs(IViewContent content)
+ {
+ if (content == null)
+ throw new ArgumentNullException("content");
+ this.content = content;
+ }
}
}
diff --git a/src/Main/Base/Project/Src/Gui/IWorkbenchLayout.cs b/src/Main/Base/Project/Src/Gui/IWorkbenchLayout.cs
index 90fcb97962..e2388b3c52 100644
--- a/src/Main/Base/Project/Src/Gui/IWorkbenchLayout.cs
+++ b/src/Main/Base/Project/Src/Gui/IWorkbenchLayout.cs
@@ -80,8 +80,9 @@ namespace ICSharpCode.SharpDevelop.Gui
///
IWorkbenchWindow ShowView(IViewContent content, bool switchToOpenedView);
-
void LoadConfiguration();
void StoreConfiguration();
+
+ void SwitchLayout(string layoutName);
}
}
diff --git a/src/Main/Base/Project/Src/Gui/Workbench/ViewContentEventHandler.cs b/src/Main/Base/Project/Src/Gui/Workbench/ViewContentEventHandler.cs
deleted file mode 100644
index 68ed62372c..0000000000
--- a/src/Main/Base/Project/Src/Gui/Workbench/ViewContentEventHandler.cs
+++ /dev/null
@@ -1,27 +0,0 @@
-// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
-// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
-
-using System;
-
-namespace ICSharpCode.SharpDevelop.Gui
-{
- public delegate void ViewContentEventHandler(object sender, ViewContentEventArgs e);
-
- public class ViewContentEventArgs : EventArgs
- {
- IViewContent content;
-
- public IViewContent Content {
- get {
- return content;
- }
- }
-
- public ViewContentEventArgs(IViewContent content)
- {
- if (content == null)
- throw new ArgumentNullException("content");
- this.content = content;
- }
- }
-}
diff --git a/src/Main/Base/Project/Src/Gui/WorkbenchSingleton.cs b/src/Main/Base/Project/Src/Gui/WorkbenchSingleton.cs
index 95efe4d240..fc2a24c6ef 100644
--- a/src/Main/Base/Project/Src/Gui/WorkbenchSingleton.cs
+++ b/src/Main/Base/Project/Src/Gui/WorkbenchSingleton.cs
@@ -57,7 +57,7 @@ namespace ICSharpCode.SharpDevelop.Gui
[Obsolete("Use SD.StatusBar instead")]
public static IStatusBarService StatusBar {
get {
- return workbench != null ? workbench.StatusBar : null;
+ return SD.StatusBar;
}
}
@@ -68,7 +68,6 @@ namespace ICSharpCode.SharpDevelop.Gui
LanguageService.ValidateLanguage();
DisplayBindingService.InitializeService();
- LayoutConfiguration.LoadLayoutConfiguration();
FileService.InitializeService();
ParserService.InitializeParserService();
TaskService.Initialize();
diff --git a/src/Main/Base/Project/Src/Services/Debugger/DebuggerService.cs b/src/Main/Base/Project/Src/Services/Debugger/DebuggerService.cs
index 4b5546ad89..0ef0552ec1 100644
--- a/src/Main/Base/Project/Src/Services/Debugger/DebuggerService.cs
+++ b/src/Main/Base/Project/Src/Services/Debugger/DebuggerService.cs
@@ -24,7 +24,6 @@ namespace ICSharpCode.SharpDevelop.Debugging
{
static IDebugger currentDebugger;
static DebuggerDescriptor[] debuggers;
- static string oldLayoutConfiguration = "Default";
static DebuggerService()
{
@@ -112,8 +111,7 @@ namespace ICSharpCode.SharpDevelop.Debugging
static void OnDebugStarting(object sender, EventArgs e)
{
- WorkbenchSingleton.Workbench.WorkbenchLayout.StoreConfiguration();
- LayoutConfiguration.CurrentLayoutName = "Debug";
+ WorkbenchSingleton.Workbench.WorkbenchLayout.SwitchLayout("Debug");
debugFeature = AnalyticsMonitorService.TrackFeature("Debugger");
@@ -137,8 +135,7 @@ namespace ICSharpCode.SharpDevelop.Debugging
debugFeature.EndTracking();
RemoveCurrentLineMarker();
- WorkbenchSingleton.Workbench.WorkbenchLayout.StoreConfiguration();
- LayoutConfiguration.CurrentLayoutName = oldLayoutConfiguration;
+ WorkbenchSingleton.Workbench.WorkbenchLayout.SwitchLayout("Default");
if (DebugStopped != null)
DebugStopped(null, e);
}
diff --git a/src/Main/Base/Project/Src/Services/SD.cs b/src/Main/Base/Project/Src/Services/SD.cs
index 7cd6e6e13f..bdbc82a131 100644
--- a/src/Main/Base/Project/Src/Services/SD.cs
+++ b/src/Main/Base/Project/Src/Services/SD.cs
@@ -53,7 +53,7 @@ namespace ICSharpCode.SharpDevelop
/// Gets the status bar.
///
public static IStatusBarService StatusBar {
- get { return Workbench.StatusBar; }
+ get { return GetRequiredService(); }
}
public static ILoggingService LoggingService {
@@ -63,9 +63,5 @@ namespace ICSharpCode.SharpDevelop
public static IMessageService MessageService {
get { return GetRequiredService(); }
}
-
- public static IAnalyticsMonitor AnalyticsMonitor {
- get { return GetRequiredService(); }
- }
}
}
diff --git a/src/Main/Base/Project/Src/Services/StatusBar/StatusBarService.cs b/src/Main/Base/Project/Src/Services/StatusBar/StatusBarService.cs
index 37ff00af0b..eb18f13094 100644
--- a/src/Main/Base/Project/Src/Services/StatusBar/StatusBarService.cs
+++ b/src/Main/Base/Project/Src/Services/StatusBar/StatusBarService.cs
@@ -47,99 +47,4 @@ namespace ICSharpCode.SharpDevelop.Gui
///
void AddProgress(ProgressCollector progress);
}
-
- sealed class SdStatusBarService : IStatusBarService
- {
- readonly SdStatusBar statusBar;
-
- public SdStatusBarService(SdStatusBar statusBar)
- {
- if (statusBar == null)
- throw new ArgumentNullException("statusBar");
- this.statusBar = statusBar;
- }
-
- public bool Visible {
- get {
- return statusBar.Visibility == Visibility.Visible;
- }
- set {
- statusBar.Visibility = value ? Visibility.Visible : Visibility.Collapsed;
- }
- }
-
- public void SetCaretPosition(int x, int y, int charOffset)
- {
- statusBar.CursorStatusBarPanel.Content = StringParser.Parse(
- "${res:StatusBarService.CursorStatusBarPanelText}",
- new StringTagPair("Line", String.Format("{0,-10}", y)),
- new StringTagPair("Column", String.Format("{0,-5}", x)),
- new StringTagPair("Character", String.Format("{0,-5}", charOffset))
- );
- }
-
- public void SetInsertMode(bool insertMode)
- {
- statusBar.ModeStatusBarPanel.Content = insertMode ? StringParser.Parse("${res:StatusBarService.CaretModes.Insert}") : StringParser.Parse("${res:StatusBarService.CaretModes.Overwrite}");
- }
-
- public void SetMessage(string message, bool highlighted, IImage icon)
- {
- statusBar.SetMessage(StringParser.Parse(message), highlighted);
- }
-
- #region Progress Monitor
- Stack waitingProgresses = new Stack();
- ProgressCollector currentProgress;
-
- public IProgressMonitor CreateProgressMonitor(CancellationToken cancellationToken = default(CancellationToken))
- {
- ProgressCollector progress = new ProgressCollector(WorkbenchSingleton.Workbench.SynchronizingObject, cancellationToken);
- AddProgress(progress);
- return progress.ProgressMonitor;
- }
-
- public void AddProgress(ProgressCollector progress)
- {
- if (progress == null)
- throw new ArgumentNullException("progress");
- WorkbenchSingleton.AssertMainThread();
- if (currentProgress != null) {
- currentProgress.ProgressMonitorDisposed -= progress_ProgressMonitorDisposed;
- currentProgress.PropertyChanged -= progress_PropertyChanged;
- }
- waitingProgresses.Push(currentProgress); // push even if currentProgress==null
- SetActiveProgress(progress);
- }
-
- void SetActiveProgress(ProgressCollector progress)
- {
- WorkbenchSingleton.AssertMainThread();
- currentProgress = progress;
- if (progress == null) {
- statusBar.HideProgress();
- return;
- }
-
- progress.ProgressMonitorDisposed += progress_ProgressMonitorDisposed;
- if (progress.ProgressMonitorIsDisposed) {
- progress_ProgressMonitorDisposed(progress, null);
- return;
- }
- progress.PropertyChanged += progress_PropertyChanged;
- }
-
- void progress_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
- {
- Debug.Assert(sender == currentProgress);
- statusBar.DisplayProgress(currentProgress.TaskName, currentProgress.Progress, currentProgress.Status);
- }
-
- void progress_ProgressMonitorDisposed(object sender, EventArgs e)
- {
- Debug.Assert(sender == currentProgress);
- SetActiveProgress(waitingProgresses.Pop()); // stack is never empty: we push null as first element
- }
- #endregion
- }
}
diff --git a/src/Main/Base/Test/ConsoleApp/ConsoleApp.csproj b/src/Main/Base/Test/ConsoleApp/ConsoleApp.csproj
index 37bac1cd75..088ff9e4b6 100644
--- a/src/Main/Base/Test/ConsoleApp/ConsoleApp.csproj
+++ b/src/Main/Base/Test/ConsoleApp/ConsoleApp.csproj
@@ -1,4 +1,5 @@
-
+
+
Debug
AnyCPU
@@ -7,15 +8,19 @@
ConsoleApp
ConsoleApp
Exe
-
4
-
False
False
OnSuccessfulBuild
+
+ v4.5
+ True
+ ..\..\..\ICSharpCode.SharpDevelop.snk
+ False
+ File
True
@@ -37,16 +42,27 @@
+
+ 3.5
+
+
+ 3.5
+
+
+ 3.5
+
-
+
+
+
\ No newline at end of file
diff --git a/src/Main/Base/Test/ConsoleApp/ConsoleApp.sln b/src/Main/Base/Test/ConsoleApp/ConsoleApp.sln
index 5e93fd6bdf..cf4076de56 100644
--- a/src/Main/Base/Test/ConsoleApp/ConsoleApp.sln
+++ b/src/Main/Base/Test/ConsoleApp/ConsoleApp.sln
@@ -1,5 +1,7 @@
-Microsoft Visual Studio Solution File, Format Version 9.00
-# SharpDevelop 2.0.0.838
+
+Microsoft Visual Studio Solution File, Format Version 11.00
+# Visual Studio 2010
+# SharpDevelop 4.2.0.8695-Beta 2
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApp", "ConsoleApp.csproj", "{2829F840-FF43-4EF6-A23D-C244C765092C}"
EndProject
Global
diff --git a/src/Main/Base/Test/ConsoleApp/app.config b/src/Main/Base/Test/ConsoleApp/app.config
new file mode 100644
index 0000000000..9008dd2558
--- /dev/null
+++ b/src/Main/Base/Test/ConsoleApp/app.config
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/Main/Base/Test/ConsoleApp/bin/ConsoleApp.exe b/src/Main/Base/Test/ConsoleApp/bin/ConsoleApp.exe
index e4278ee017..9c65eeb2f8 100755
Binary files a/src/Main/Base/Test/ConsoleApp/bin/ConsoleApp.exe and b/src/Main/Base/Test/ConsoleApp/bin/ConsoleApp.exe differ
diff --git a/src/Main/Base/Test/ICSharpCode.SharpDevelop.Tests.csproj b/src/Main/Base/Test/ICSharpCode.SharpDevelop.Tests.csproj
index fb99bb7575..9700b3c89a 100644
--- a/src/Main/Base/Test/ICSharpCode.SharpDevelop.Tests.csproj
+++ b/src/Main/Base/Test/ICSharpCode.SharpDevelop.Tests.csproj
@@ -26,6 +26,9 @@
false
v4.5
true
+ True
+ ..\..\ICSharpCode.SharpDevelop.snk
+ False
Auto
@@ -169,6 +172,10 @@
{AD6FAA08-D6F5-4DBA-AF85-F4DA9F40C3B5}
ICSharpCode.Core.Tests
+
+ {1152B71B-3C05-4598-B20D-823B5D40559E}
+ SharpDevelop
+
{2748AD25-9C63-4E12-877B-4DCE96FBED54}
ICSharpCode.SharpDevelop
diff --git a/src/Main/Base/Test/Utils/MockTextMarkerService.cs b/src/Main/Base/Test/Utils/MockTextMarkerService.cs
index 3435020c28..94b175696c 100644
--- a/src/Main/Base/Test/Utils/MockTextMarkerService.cs
+++ b/src/Main/Base/Test/Utils/MockTextMarkerService.cs
@@ -1,60 +1,67 @@
-#warning
-//// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
-//// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
-//
-//using System;
-//using System.Collections.Generic;
-//using System.ComponentModel.Design;
-//
-//using ICSharpCode.SharpDevelop.Editor;
-//using ICSharpCode.SharpDevelop.Editor.AvalonEdit;
-//
-//namespace ICSharpCode.SharpDevelop.Tests.Utils
-//{
-// ///
-// /// Description of MockTextEditor.
-// ///
-// public class MockTextMarkerService : ITextMarkerService
-// {
-// public static IDocument CreateDocumentWithMockService()
-// {
-// ServiceContainer container = new ServiceContainer();
-// container.AddService(typeof(ITextMarkerService), new MockTextMarkerService());
-//
-// return new AvalonEditDocumentAdapter(new ICSharpCode.AvalonEdit.Document.TextDocument(), container);
-// }
-//
-// List markers;
-//
-// public MockTextMarkerService()
-// {
-// this.markers = new List();
-// }
-//
-// public System.Collections.Generic.IEnumerable TextMarkers {
-// get {
-// return this.markers;
-// }
-// }
-//
-// public ITextMarker Create(int startOffset, int length)
-// {
-// ITextMarker m = new MockTextMarker(this.markers, startOffset, startOffset + length, length);
-// this.markers.Add(m);
-// return m;
-// }
-//
-// public void Remove(ITextMarker marker)
-// {
-// marker.Delete();
-// }
-//
-// public void RemoveAll(Predicate predicate)
-// {
-// foreach (ITextMarker m in markers.ToArray()) {
-// if (predicate(m))
-// m.Delete();
-// }
-// }
-// }
-//}
+// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
+// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
+
+using System;
+using System.Collections.Generic;
+using System.ComponentModel.Design;
+using System.Linq;
+using ICSharpCode.AvalonEdit.Document;
+using ICSharpCode.NRefactory.Editor;
+using ICSharpCode.SharpDevelop.Editor;
+using ICSharpCode.SharpDevelop.Editor.AvalonEdit;
+
+namespace ICSharpCode.SharpDevelop.Tests.Utils
+{
+ ///
+ /// Description of MockTextEditor.
+ ///
+ public class MockTextMarkerService : ITextMarkerService
+ {
+ public static IDocument CreateDocumentWithMockService()
+ {
+ var document = new TextDocument();
+ var container = (IServiceContainer)document.ServiceProvider.GetService(typeof(IServiceContainer));
+ container.AddService(typeof(ITextMarkerService), new MockTextMarkerService());
+
+ return document;
+ }
+
+ List markers;
+
+ public MockTextMarkerService()
+ {
+ this.markers = new List();
+ }
+
+ public System.Collections.Generic.IEnumerable TextMarkers {
+ get {
+ return this.markers;
+ }
+ }
+
+ public ITextMarker Create(int startOffset, int length)
+ {
+ ITextMarker m = new MockTextMarker(this.markers, startOffset, startOffset + length, length);
+ this.markers.Add(m);
+ return m;
+ }
+
+ public void Remove(ITextMarker marker)
+ {
+ marker.Delete();
+ }
+
+ public void RemoveAll(Predicate predicate)
+ {
+ foreach (ITextMarker m in markers.ToArray()) {
+ if (predicate(m))
+ m.Delete();
+ }
+ }
+
+ public IEnumerable GetMarkersAtOffset(int offset)
+ {
+ return markers.Where(m => m.StartOffset <= offset && offset <= m.EndOffset);
+ }
+ }
+}
diff --git a/src/Main/Core/Project/ICSharpCode.Core.csproj b/src/Main/Core/Project/ICSharpCode.Core.csproj
index 67f1089546..a4d5378a82 100644
--- a/src/Main/Core/Project/ICSharpCode.Core.csproj
+++ b/src/Main/Core/Project/ICSharpCode.Core.csproj
@@ -74,6 +74,7 @@
+
diff --git a/src/Main/Core/Project/Src/AddInTree/AddIn/DefaultDoozers/ServiceDoozer.cs b/src/Main/Core/Project/Src/AddInTree/AddIn/DefaultDoozers/ServiceDoozer.cs
new file mode 100644
index 0000000000..80664110a4
--- /dev/null
+++ b/src/Main/Core/Project/Src/AddInTree/AddIn/DefaultDoozers/ServiceDoozer.cs
@@ -0,0 +1,45 @@
+// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
+// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
+
+using System;
+using System.ComponentModel.Design;
+
+namespace ICSharpCode.Core
+{
+ ///
+ /// Registers a service in a service container.
+ ///
+ ///
+ /// The service interface type.
+ ///
+ ///
+ /// The implementing service class name.
+ ///
+ /// Only in /SharpDevelop/Services
+ ///
+ /// null. The service is registered, but not returned.
+ ///
+ public class ServiceDoozer : IDoozer
+ {
+ public bool HandleConditions {
+ get { return false; }
+ }
+
+ public object BuildItem(BuildItemArgs args)
+ {
+ var container = (IServiceContainer)args.Caller;
+ if (container == null)
+ throw new InvalidOperationException("Expected the owner to be a service container");
+ Type interfaceType = args.AddIn.FindType(args.Codon.Id);
+ if (interfaceType != null) {
+ string className = args.Codon.Properties["class"];
+ // Use ServiceCreatorCallback to lazily create the service
+ container.AddService(
+ interfaceType, delegate {
+ return args.AddIn.CreateObject(className);
+ });
+ }
+ return null;
+ }
+ }
+}
diff --git a/src/Main/Core/Project/Src/AddInTree/AddInTree.cs b/src/Main/Core/Project/Src/AddInTree/AddInTree.cs
index c52965d792..f65bb5dcf2 100644
--- a/src/Main/Core/Project/Src/AddInTree/AddInTree.cs
+++ b/src/Main/Core/Project/Src/AddInTree/AddInTree.cs
@@ -30,6 +30,7 @@ namespace ICSharpCode.Core
doozers.TryAdd("MenuItem", new MenuItemDoozer());
doozers.TryAdd("ToolbarItem", new ToolbarItemDoozer());
doozers.TryAdd("Include", new IncludeDoozer());
+ doozers.TryAdd("Service", new ServiceDoozer());
conditionEvaluators.TryAdd("Compare", new CompareConditionEvaluator());
conditionEvaluators.TryAdd("Ownerstate", new OwnerStateConditionEvaluator());
diff --git a/src/Main/Core/Project/Src/Services/ServiceManager.cs b/src/Main/Core/Project/Src/Services/ServiceManager.cs
index eb7ff3dd79..045de60521 100644
--- a/src/Main/Core/Project/Src/Services/ServiceManager.cs
+++ b/src/Main/Core/Project/Src/Services/ServiceManager.cs
@@ -62,14 +62,14 @@ namespace ICSharpCode.Core.Services
///
/// Gets the logging service.
///
- public virtual ILoggingService LoggingService {
+ public ILoggingService LoggingService {
get { return (ILoggingService)GetRequiredService(typeof(ILoggingService)); }
}
///
/// Gets the message service.
///
- public virtual IMessageService MessageService {
+ public IMessageService MessageService {
get { return (IMessageService)GetRequiredService(typeof(IMessageService)); }
}
}
@@ -79,14 +79,6 @@ namespace ICSharpCode.Core.Services
readonly ILoggingService loggingService = new TextWriterLoggingService(new DebugTextWriter());
readonly IMessageService messageService = new TextWriterMessageService(Console.Out);
- public override ILoggingService LoggingService {
- get { return loggingService; }
- }
-
- public override IMessageService MessageService {
- get { return messageService; }
- }
-
public override object GetService(Type serviceType)
{
if (serviceType == typeof(ILoggingService))
diff --git a/src/Main/ICSharpCode.SharpDevelop.Dom/Project/Configuration/AssemblyInfo.cs b/src/Main/ICSharpCode.SharpDevelop.Dom/Project/Configuration/AssemblyInfo.cs
deleted file mode 100644
index 96709c90a6..0000000000
--- a/src/Main/ICSharpCode.SharpDevelop.Dom/Project/Configuration/AssemblyInfo.cs
+++ /dev/null
@@ -1,18 +0,0 @@
-// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
-// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
-
-using System;
-using System.Reflection;
-using System.Runtime.CompilerServices;
-using System.Security.Permissions;
-
-[assembly: CLSCompliant(true)]
-[assembly: StringFreezing()]
-
-[assembly: Dependency("System.Core", LoadHint.Always)]
-
-[assembly: AssemblyTitle("ICSharpCode.SharpDevelop.Dom")]
-[assembly: AssemblyDescription("Code-completion library")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
diff --git a/src/Main/ICSharpCode.SharpDevelop.Dom/Project/ICSharpCode.SharpDevelop.Dom.csproj b/src/Main/ICSharpCode.SharpDevelop.Dom/Project/ICSharpCode.SharpDevelop.Dom.csproj
deleted file mode 100644
index 32d42c30ff..0000000000
--- a/src/Main/ICSharpCode.SharpDevelop.Dom/Project/ICSharpCode.SharpDevelop.Dom.csproj
+++ /dev/null
@@ -1,216 +0,0 @@
-
-
-
- Library
- ICSharpCode.SharpDevelop.Dom
- ICSharpCode.SharpDevelop.Dom
- Debug
- AnyCPU
- {924EE450-603D-49C1-A8E5-4AFAA31CE6F3}
- True
- ..\..\ICSharpCode.SharpDevelop.snk
- False
- File
- ..\..\..\..\bin\
- False
- False
- False
- Auto
- 132644864
- AnyCPU
- 4096
- 4
- false
- v4.0
- False
- -Microsoft.Design#CA1002;-Microsoft.Design#CA1063;-Microsoft.Performance#CA1800;-Microsoft.Security#CA2104
-
-
-
-
- obj\Debug\
- False
- DEBUG;TRACE
- true
- Full
- True
-
-
- obj\Release\
- True
- TRACE
- False
- None
- False
-
-
-
- ..\..\..\Libraries\log4net\log4net.dll
-
-
-
- 3.5
-
-
-
-
-
- Src\ProjectContent\FileUtility.Minimal.cs
-
-
-
- Configuration\GlobalAssemblyInfo.cs
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {D68133BD-1E63-496E-9EDE-4FBDBF77B486}
- Mono.Cecil
-
-
- {3A9AE6AA-BC07-4A2F-972C-581E3AE2F195}
- NRefactory
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/Main/ICSharpCode.SharpDevelop.Dom/Project/Src/Ambience.cs b/src/Main/ICSharpCode.SharpDevelop.Dom/Project/Src/Ambience.cs
deleted file mode 100644
index 3065d42298..0000000000
--- a/src/Main/ICSharpCode.SharpDevelop.Dom/Project/Src/Ambience.cs
+++ /dev/null
@@ -1,242 +0,0 @@
-// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
-// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
-
-using System;
-
-namespace ICSharpCode.SharpDevelop.Dom
-{
- [Flags]
- public enum ConversionFlags
- {
- ///
- /// Convert only the name.
- ///
- None = 0,
- ///
- /// Show the parameter list
- ///
- ShowParameterList = 1,
- ///
- /// Show names for parameters
- ///
- ShowParameterNames = 2,
- ///
- /// Show the accessibility (private, public, etc.)
- ///
- ShowAccessibility = 4,
- ///
- /// Show the definition key word (class, struct, Sub, Function, etc.)
- ///
- ShowDefinitionKeyWord = 8,
- ///
- /// Show the fully qualified name for the member
- ///
- UseFullyQualifiedMemberNames = 0x10,
- ///
- /// Show modifiers (virtual, override, etc.)
- ///
- ShowModifiers = 0x20,
- ///
- /// Show the inheritance declaration
- ///
- ShowInheritanceList = 0x40,
-
- IncludeHtmlMarkup = 0x80,
- ///
- /// Show the return type
- ///
- ShowReturnType = 0x100,
- ///
- /// Use fully qualified names for return type and parameters.
- ///
- UseFullyQualifiedTypeNames = 0x200,
- ///
- /// Include opening brace (or equivalent) for methods or classes;
- /// or semicolon (or equivalent) for field, events.
- /// For properties, a block indicating if there is a getter/setter is included.
- ///
- IncludeBody = 0x400,
- ///
- /// Show the list of type parameters on method and class declarations.
- /// Type arguments for parameter/return types are always shown.
- ///
- ShowTypeParameterList = 0x800,
-
- StandardConversionFlags = ShowParameterNames |
- ShowAccessibility |
- ShowParameterList |
- ShowReturnType |
- ShowModifiers |
- ShowTypeParameterList |
- ShowDefinitionKeyWord,
-
- All = 0xfff,
- }
-
- public interface IAmbience
- {
- ConversionFlags ConversionFlags {
- get;
- set;
- }
-
- string Convert(IClass c);
- string ConvertEnd(IClass c);
-
- string Convert(IEntity e);
-
- string Convert(IField field);
- string Convert(IProperty property);
- string Convert(IEvent e);
-
- string Convert(IMethod m);
- string ConvertEnd(IMethod m);
-
- string Convert(IParameter param);
- string Convert(IReturnType returnType);
-
- string ConvertAccessibility(ModifierEnum accessibility);
-
- string WrapAttribute(string attribute);
- string WrapComment(string comment);
-
- string GetIntrinsicTypeName(string dotNetTypeName);
- }
-
- public abstract class AbstractAmbience : IAmbience
- {
- #if DEBUG
- int ownerThread = System.Threading.Thread.CurrentThread.ManagedThreadId;
- #endif
-
- [System.Diagnostics.Conditional("DEBUG")]
- protected void CheckThread()
- {
- #if DEBUG
- if (ownerThread != System.Threading.Thread.CurrentThread.ManagedThreadId)
- throw new InvalidOperationException("Ambience may only be used by the thread that created it");
- #endif
- }
-
- ConversionFlags conversionFlags = ConversionFlags.StandardConversionFlags;
-
- public ConversionFlags ConversionFlags {
- get {
- return conversionFlags;
- }
- set {
- CheckThread();
- conversionFlags = value;
- }
- }
-
- public bool ShowReturnType {
- get {
- return (conversionFlags & ConversionFlags.ShowReturnType) == ConversionFlags.ShowReturnType;
- }
- }
-
- public bool ShowAccessibility {
- get {
- return (conversionFlags & ConversionFlags.ShowAccessibility) == ConversionFlags.ShowAccessibility;
- }
- }
-
- public bool ShowParameterNames {
- get {
- return (conversionFlags & ConversionFlags.ShowParameterNames) == ConversionFlags.ShowParameterNames;
- }
- }
-
- public bool UseFullyQualifiedTypeNames {
- get {
- return (conversionFlags & ConversionFlags.UseFullyQualifiedTypeNames) == ConversionFlags.UseFullyQualifiedTypeNames;
- }
- }
-
- public bool ShowDefinitionKeyWord {
- get {
- return (conversionFlags & ConversionFlags.ShowDefinitionKeyWord) == ConversionFlags.ShowDefinitionKeyWord;
- }
- }
-
- public bool ShowParameterList {
- get {
- return (conversionFlags & ConversionFlags.ShowParameterList) == ConversionFlags.ShowParameterList;
- }
- }
-
- public bool ShowModifiers {
- get {
- return (conversionFlags & ConversionFlags.ShowModifiers) == ConversionFlags.ShowModifiers;
- }
- }
-
- public bool ShowInheritanceList {
- get {
- return (conversionFlags & ConversionFlags.ShowInheritanceList) == ConversionFlags.ShowInheritanceList;
- }
- }
-
- public bool IncludeHtmlMarkup {
- get {
- return (conversionFlags & ConversionFlags.IncludeHtmlMarkup) == ConversionFlags.IncludeHtmlMarkup;
- }
- }
-
- public bool UseFullyQualifiedMemberNames {
- get {
- return (conversionFlags & ConversionFlags.UseFullyQualifiedMemberNames) == ConversionFlags.UseFullyQualifiedMemberNames;
- }
- }
-
- public bool IncludeBody {
- get {
- return (conversionFlags & ConversionFlags.IncludeBody) == ConversionFlags.IncludeBody;
- }
- }
-
- public bool ShowTypeParameterList {
- get {
- return (conversionFlags & ConversionFlags.ShowTypeParameterList) == ConversionFlags.ShowTypeParameterList;
- }
- }
-
- public abstract string Convert(IClass c);
- public abstract string ConvertEnd(IClass c);
- public abstract string Convert(IField c);
- public abstract string Convert(IProperty property);
- public abstract string Convert(IEvent e);
- public abstract string Convert(IMethod m);
- public abstract string ConvertEnd(IMethod m);
- public abstract string Convert(IParameter param);
- public abstract string Convert(IReturnType returnType);
-
- public virtual string Convert(IEntity entity)
- {
- if (entity == null)
- throw new ArgumentNullException("entity");
- IClass c = entity as IClass;
- if (c != null)
- return Convert(c);
- IMethod m = entity as IMethod;
- if (m != null)
- return Convert(m);
- IField f = entity as IField;
- if (f != null)
- return Convert(f);
- IProperty p = entity as IProperty;
- if (p != null)
- return Convert(p);
- IEvent e = entity as IEvent;
- if (e != null)
- return Convert(e);
- return entity.ToString();
- }
-
- public abstract string WrapAttribute(string attribute);
- public abstract string WrapComment(string comment);
- public abstract string GetIntrinsicTypeName(string dotNetTypeName);
- public abstract string ConvertAccessibility(ModifierEnum accessibility);
- }
-}
diff --git a/src/Main/ICSharpCode.SharpDevelop.Dom/Project/Src/BusyManager.cs b/src/Main/ICSharpCode.SharpDevelop.Dom/Project/Src/BusyManager.cs
deleted file mode 100644
index e7b8f5b0e5..0000000000
--- a/src/Main/ICSharpCode.SharpDevelop.Dom/Project/Src/BusyManager.cs
+++ /dev/null
@@ -1,52 +0,0 @@
-// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
-// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
-
-using System;
-using System.Collections.Generic;
-
-namespace ICSharpCode.SharpDevelop.Dom
-{
- ///
- /// This class is used to prevent stack overflows by representing a 'busy' flag
- /// that prevents reentrance when another call is running.
- /// However, using a simple 'bool busy' is not thread-safe, so we use a
- /// thread-static BusyManager.
- ///
- sealed class BusyManager
- {
- public struct BusyLock : IDisposable
- {
- public static readonly BusyLock Failed = new BusyLock(null);
-
- readonly BusyManager manager;
-
- public BusyLock(BusyManager manager)
- {
- this.manager = manager;
- }
-
- public bool Success {
- get { return manager != null; }
- }
-
- public void Dispose()
- {
- if (manager != null) {
- manager.activeObjects.RemoveAt(manager.activeObjects.Count - 1);
- }
- }
- }
-
- readonly List