diff --git a/samples/LineCounter/Article/LineCounterSDAddIn/LineCounter.sdaddin b/samples/LineCounter/Article/LineCounterSDAddIn/LineCounter.sdaddin new file mode 100644 index 0000000000..3eabb6da92 Binary files /dev/null and b/samples/LineCounter/Article/LineCounterSDAddIn/LineCounter.sdaddin differ diff --git a/samples/LineCounter/Article/LineCounterSharpDevelopAddIn/addinmanager.png b/samples/LineCounter/Article/LineCounterSDAddIn/addinmanager.png similarity index 100% rename from samples/LineCounter/Article/LineCounterSharpDevelopAddIn/addinmanager.png rename to samples/LineCounter/Article/LineCounterSDAddIn/addinmanager.png diff --git a/samples/LineCounter/Article/LineCounterSharpDevelopAddIn/projectbrowser.png b/samples/LineCounter/Article/LineCounterSDAddIn/projectbrowser.png similarity index 100% rename from samples/LineCounter/Article/LineCounterSharpDevelopAddIn/projectbrowser.png rename to samples/LineCounter/Article/LineCounterSDAddIn/projectbrowser.png diff --git a/samples/LineCounter/Article/LineCounterSharpDevelopAddIn/properties.png b/samples/LineCounter/Article/LineCounterSDAddIn/properties.png similarity index 100% rename from samples/LineCounter/Article/LineCounterSharpDevelopAddIn/properties.png rename to samples/LineCounter/Article/LineCounterSDAddIn/properties.png diff --git a/samples/LineCounter/Article/LineCounterSharpDevelopAddIn/screenshot.png b/samples/LineCounter/Article/LineCounterSDAddIn/screenshot.png similarity index 100% rename from samples/LineCounter/Article/LineCounterSharpDevelopAddIn/screenshot.png rename to samples/LineCounter/Article/LineCounterSDAddIn/screenshot.png diff --git a/samples/LineCounter/Article/LineCounterSharpDevelopAddIn/screenshot2.png b/samples/LineCounter/Article/LineCounterSDAddIn/screenshot2.png similarity index 100% rename from samples/LineCounter/Article/LineCounterSharpDevelopAddIn/screenshot2.png rename to samples/LineCounter/Article/LineCounterSDAddIn/screenshot2.png diff --git a/samples/LineCounter/Article/LineCounterSharpDevelopAddIn/templatetype.png b/samples/LineCounter/Article/LineCounterSDAddIn/templatetype.png similarity index 100% rename from samples/LineCounter/Article/LineCounterSharpDevelopAddIn/templatetype.png rename to samples/LineCounter/Article/LineCounterSDAddIn/templatetype.png diff --git a/samples/LineCounter/Article/LineCounterSharpDevelopAddIn.html b/samples/LineCounter/Article/LineCounterSharpDevelopAddIn.html index e01d449a0c..ab9d87648c 100644 --- a/samples/LineCounter/Article/LineCounterSharpDevelopAddIn.html +++ b/samples/LineCounter/Article/LineCounterSharpDevelopAddIn.html @@ -13,21 +13,25 @@
-
-
+
<AddIn name = "LineCounter" author = "Daniel Grunwald" - url = "http://www.codeproject.com/useritems/LineCounterSharpDevelopAddIn.asp" + url = "http://www.codeproject.com/useritems/LineCounterSDAddIn.asp" description = "Advanced line counter AddIn"> <Manifest> @@ -92,7 +97,7 @@ Here is how the content of LineCounter.addin should look like after these steps: </AddIn>Our menu item uses the "class" attribute. When the menu item is clicked, SharpDevelop will create an instance of this class and call its Run() -method. This class is defined the file Command.cs. The example code from the +method. This class is defined in the file Command.cs. The example code from the template accesses the currently opened text editor and reverses the letters in the currently selected text. We are not interested in accessing the text editor, so we can delete the content of the Run() method and start writing our own.
public override void Run() { WorkbenchSingleton.Workbench.ShowView(new LineCounterViewContent()); @@ -274,7 +280,7 @@ m_projIconMappings.Add("{00000001-0000-0000-0000-000000000000}", 5);-We +We will use two instances of this class to control the two image lists imgProjectTypes and imgFileTypes.Although the extension process is very different in SharpDevelop and Visual Studio; the API is quite similar - after all, both are modelling MSBuild - solutions and after a similar feature set. I hope this shows you that porting + solutions and a similar feature set. I hope this shows you that porting AddIns from Visual Studio to SharpDevelop isn't very hard and we would like to see more SharpDevelop AddIns in the future.
@@ -282,7 +288,7 @@ m_projIconMappings.Add("{00000001-0000-0000-0000-000000000000}", 5); Here an image showing the AddIn counting itself:-
+
![]()
Possible improvements @@ -337,7 +343,7 @@ can add SharpDevelop icons to an existing image list.
} }
- Now only the change to LineCounterBrowser to actually use this code is - missing. + Now the LineCounterBrowser code has to be changed to use the code we just wrote.
We will need a member variable storing the list of existing counting algorithms:List<CountingAlgorithmDescriptor> countingAlgorithms; @@ -555,7 +560,7 @@ the zip file to "LineCounter.sdaddin". That really was everything you had to do where you can install the AddIn with just one click. AddIns installed this way will be extracted to %Application Data%\.ICSharpCode\SharpDevelop2\AddIns.
-
+
More AddIn-writing help
@@ -589,7 +594,7 @@ will be extracted to %Application Data%\.ICSharpCode\SharpDevelop2\AddIns.
Summary- This article shows you how to start writing SharpDevelop AddIns. It is a + This article shows you how to start writing SharpDevelop AddIns. It is a complete walkthrough from creating a new project to creating the installation package.
@@ -601,9 +606,7 @@ will be extracted to %Application Data%\.ICSharpCode\SharpDevelop2\AddIns.
18th July, 2006: Article published (based on SharpDevelop 2.0.0.1591). -
-
-
-
-
+ + +