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

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--extras/AspNetEdit/AspNetEdit.Editor.ComponentModel/DesignContainer.cs400
-rw-r--r--extras/AspNetEdit/AspNetEdit.Editor.ComponentModel/DesignerHost.cs444
-rw-r--r--extras/AspNetEdit/AspNetEdit.Editor.ComponentModel/Document.cs481
-rw-r--r--extras/AspNetEdit/AspNetEdit.Editor.ComponentModel/DocumentDirective.cs142
-rw-r--r--extras/AspNetEdit/AspNetEdit.Editor.ComponentModel/EventBindingService.cs208
-rw-r--r--extras/AspNetEdit/AspNetEdit.Editor.ComponentModel/ExtenderListService.cs69
-rw-r--r--extras/AspNetEdit/AspNetEdit.Editor.ComponentModel/MenuCommandService.cs128
-rw-r--r--extras/AspNetEdit/AspNetEdit.Editor.ComponentModel/NameCreationService.cs90
-rw-r--r--extras/AspNetEdit/AspNetEdit.Editor.ComponentModel/RootDesigner.cs118
-rw-r--r--extras/AspNetEdit/AspNetEdit.Editor.ComponentModel/SelectionService.cs148
-rw-r--r--extras/AspNetEdit/AspNetEdit.Editor.ComponentModel/TextToolboxItem.cs95
-rw-r--r--extras/AspNetEdit/AspNetEdit.Editor.ComponentModel/ToolboxService.cs425
-rw-r--r--extras/AspNetEdit/AspNetEdit.Editor.ComponentModel/Transaction.cs65
-rw-r--r--extras/AspNetEdit/AspNetEdit.Editor.ComponentModel/TypeDescriptorFilterService.cs91
-rw-r--r--extras/AspNetEdit/AspNetEdit.Editor.ComponentModel/TypeResolutionService.cs121
-rw-r--r--extras/AspNetEdit/AspNetEdit.Editor.ComponentModel/WebFormPage.cs445
-rw-r--r--extras/AspNetEdit/AspNetEdit.Editor.ComponentModel/WebFormReferenceManager.cs183
-rw-r--r--extras/AspNetEdit/AspNetEdit.Editor.Persistence/ControlPersister.cs414
-rw-r--r--extras/AspNetEdit/AspNetEdit.Editor.Persistence/DesignTimeParser.cs185
-rw-r--r--extras/AspNetEdit/AspNetEdit.Editor.Persistence/HtmlParsingObject.cs63
-rw-r--r--extras/AspNetEdit/AspNetEdit.Editor.Persistence/ParsingObject.cs139
-rw-r--r--extras/AspNetEdit/AspNetEdit.Editor.Persistence/RootParsingObject.cs82
-rw-r--r--extras/AspNetEdit/AspNetEdit.Editor.Persistence/ServerControlParsingObject.cs268
-rw-r--r--extras/AspNetEdit/AspNetEdit.Editor.UI/PropertyGrid.cs190
-rw-r--r--extras/AspNetEdit/AspNetEdit.Editor.UI/RootDesignerView.cs548
-rw-r--r--extras/AspNetEdit/AspNetEdit.Editor/EditorHost.cs215
-rw-r--r--extras/AspNetEdit/AspNetEdit.Integration/AspNetEditDisplayBinding.cs70
-rw-r--r--extras/AspNetEdit/AspNetEdit.Integration/AspNetEditViewContent.cs425
-rw-r--r--extras/AspNetEdit/AspNetEdit.Integration/EditorProcess.cs189
-rw-r--r--extras/AspNetEdit/AspNetEdit.Integration/GeckoWebBrowser.cs251
-rw-r--r--extras/AspNetEdit/AspNetEdit.Integration/MonoDevelopProxy.cs167
-rw-r--r--extras/AspNetEdit/AspNetEdit.JSCall/CommandManager.cs163
-rw-r--r--extras/AspNetEdit/AspNetEdit.JSCall/InvalidJSArgumentException.cs47
-rw-r--r--extras/AspNetEdit/AspNetEdit.addin.xml29
-rw-r--r--extras/AspNetEdit/AspNetEdit.csproj195
-rw-r--r--extras/AspNetEdit/AspNetEdit.make149
-rw-r--r--extras/AspNetEdit/AspNetEdit.mdp115
-rw-r--r--extras/AspNetEdit/AspNetEdit.sln38
-rw-r--r--extras/AspNetEdit/AssemblyInfo.cs9
-rw-r--r--extras/AspNetEdit/ChangeLog661
-rw-r--r--extras/AspNetEdit/Makefile72
-rw-r--r--extras/AspNetEdit/Makefile.include31
-rw-r--r--extras/AspNetEdit/chrome/README42
-rw-r--r--extras/AspNetEdit/chrome/content/aspdesigner/JSCall.js45
-rw-r--r--extras/AspNetEdit/chrome/content/aspdesigner/aspdesigner.xul30
-rw-r--r--extras/AspNetEdit/chrome/content/aspdesigner/clipboard.js124
-rw-r--r--extras/AspNetEdit/chrome/content/aspdesigner/constants.js76
-rwxr-xr-xextras/AspNetEdit/chrome/content/aspdesigner/contents.rdf16
-rw-r--r--extras/AspNetEdit/chrome/content/aspdesigner/editor.js1322
-rw-r--r--extras/AspNetEdit/chrome/content/aspdesigner/editorContent.css96
-rw-r--r--extras/AspNetEdit/chrome/content/aspdesigner/xpcom.js360
-rw-r--r--extras/AspNetEdit/chrome/install.rdf49
-rwxr-xr-xextras/AspNetEdit/chrome/locale/en-US/aspdesigner/contents.rdf18
-rwxr-xr-xextras/AspNetEdit/configure100
-rw-r--r--extras/AspNetEdit/rules.make40
-rw-r--r--extras/BooBinding/BooAmbience.boo429
-rw-r--r--extras/BooBinding/BooBinding.addin.xml96
-rw-r--r--extras/BooBinding/BooBinding.booproj160
-rw-r--r--extras/BooBinding/BooBinding.make160
-rw-r--r--extras/BooBinding/BooBinding.sln47
-rw-r--r--extras/BooBinding/BooBindingCompilerServices.boo183
-rw-r--r--extras/BooBinding/BooCompiler.boo26
-rw-r--r--extras/BooBinding/BooLanguageBinding.boo110
-rw-r--r--extras/BooBinding/BooShell/BooShell.boo198
-rw-r--r--extras/BooBinding/BooShell/BooShell.booproj66
-rw-r--r--extras/BooBinding/BooShell/ChangeLog48
-rw-r--r--extras/BooBinding/BooShell/Makefile97
-rw-r--r--extras/BooBinding/BooShellPadContent.boo51
-rw-r--r--extras/BooBinding/COPYING340
-rw-r--r--extras/BooBinding/ChangeLog1099
-rw-r--r--extras/BooBinding/FormattingStrategy/BooFormattingStrategy.boo23
-rw-r--r--extras/BooBinding/Gui/BooShellModel.boo164
-rw-r--r--extras/BooBinding/Gui/BooTextEditorExtension.boo87
-rw-r--r--extras/BooBinding/Gui/IShellModel.boo61
-rw-r--r--extras/BooBinding/Gui/OptionPanels/CodeCompilationPanel.boo162
-rw-r--r--extras/BooBinding/Gui/OptionPanels/GeneralBooShellPanel.boo29
-rw-r--r--extras/BooBinding/Gui/OptionPanels/GeneralShellPanel.boo123
-rw-r--r--extras/BooBinding/Gui/ShellTextView.boo524
-rw-r--r--extras/BooBinding/Makefile72
-rw-r--r--extras/BooBinding/Makefile.include116
-rw-r--r--extras/BooBinding/Parser/BooParser.boo185
-rw-r--r--extras/BooBinding/Parser/ExpressionFinder.boo225
-rw-r--r--extras/BooBinding/Parser/ExpressionTypeVisitor.boo269
-rw-r--r--extras/BooBinding/Parser/Resolver.boo478
-rw-r--r--extras/BooBinding/Parser/ReturnType.boo202
-rw-r--r--extras/BooBinding/Parser/Tree.boo81
-rw-r--r--extras/BooBinding/Parser/TypeMembers.boo102
-rw-r--r--extras/BooBinding/Parser/VariableLookupVisitor.boo103
-rw-r--r--extras/BooBinding/Parser/Visitor.boo304
-rw-r--r--extras/BooBinding/Project/BooCompilerParameters.boo53
-rw-r--r--extras/BooBinding/Project/ChangeLog4
-rw-r--r--extras/BooBinding/Properties/BooShellProperties.boo10
-rw-r--r--extras/BooBinding/Properties/ShellProperties.boo59
-rwxr-xr-xextras/BooBinding/configure159
-rw-r--r--extras/BooBinding/icons/Boo.File.EmptyFilebin1640 -> 0 bytes
-rw-r--r--extras/BooBinding/icons/Boo.File.Formbin1696 -> 0 bytes
-rw-r--r--extras/BooBinding/icons/Boo.FileIconbin687 -> 0 bytes
-rw-r--r--extras/BooBinding/icons/BooBinding.Basebin2075 -> 0 bytes
-rw-r--r--extras/BooBinding/icons/boo-icon-32.pngbin1197 -> 0 bytes
-rw-r--r--extras/BooBinding/monodevelop-boo.pc.in6
-rw-r--r--extras/BooBinding/po/ChangeLog40
-rw-r--r--extras/BooBinding/po/Makefile67
-rw-r--r--extras/BooBinding/po/ca.po186
-rw-r--r--extras/BooBinding/po/cs.po176
-rw-r--r--extras/BooBinding/po/da.po184
-rw-r--r--extras/BooBinding/po/de.po173
-rw-r--r--extras/BooBinding/po/es.po179
-rw-r--r--extras/BooBinding/po/fr.po180
-rw-r--r--extras/BooBinding/po/gl.po179
-rwxr-xr-xextras/BooBinding/po/hu.po172
-rw-r--r--extras/BooBinding/po/id.po185
-rw-r--r--extras/BooBinding/po/it.po188
-rw-r--r--extras/BooBinding/po/ja.po177
-rw-r--r--extras/BooBinding/po/messages.po170
-rw-r--r--extras/BooBinding/po/nl.po167
-rw-r--r--extras/BooBinding/po/pl.po180
-rw-r--r--extras/BooBinding/po/po.mdproj37
-rw-r--r--extras/BooBinding/po/pt.po179
-rw-r--r--extras/BooBinding/po/pt_BR.po189
-rw-r--r--extras/BooBinding/po/ru.po183
-rw-r--r--extras/BooBinding/po/sl_SI.po185
-rw-r--r--extras/BooBinding/po/sv.po175
-rw-r--r--extras/BooBinding/po/tr.po177
-rw-r--r--extras/BooBinding/po/zh_CN.po189
-rw-r--r--extras/BooBinding/po/zh_TW.po178
-rw-r--r--extras/BooBinding/rules.make42
-rw-r--r--extras/BooBinding/templates/BooGtkSharpProject.xpt.xml50
-rw-r--r--extras/BooBinding/templates/BooGtkSharpWindow.xft.xml29
-rw-r--r--extras/BooBinding/templates/BooLibraryProject.xpt.xml33
-rw-r--r--extras/BooBinding/templates/EmptyBooFile.xft.xml20
-rw-r--r--extras/BooBinding/templates/EmptyBooProject.xpt.xml19
-rw-r--r--extras/GeckoWebBrowser/AssemblyInfo.cs9
-rw-r--r--extras/GeckoWebBrowser/ChangeLog174
-rw-r--r--extras/GeckoWebBrowser/GeckoWebBrowser.cs251
-rw-r--r--extras/GeckoWebBrowser/GeckoWebBrowser.csproj82
-rw-r--r--extras/GeckoWebBrowser/GeckoWebBrowser.make115
-rw-r--r--extras/GeckoWebBrowser/GeckoWebBrowser.sln38
-rw-r--r--extras/GeckoWebBrowser/GeckoWebBrowserLoader.cs47
-rw-r--r--extras/GeckoWebBrowser/Makefile72
-rw-r--r--extras/GeckoWebBrowser/Makefile.include33
-rw-r--r--extras/GeckoWebBrowser/MonoDevelop.WebBrowsers.GeckoWebBrowser.addin.xml18
-rwxr-xr-xextras/GeckoWebBrowser/configure109
-rw-r--r--extras/GeckoWebBrowser/gtk-gui/generated.cs29
-rw-r--r--extras/GeckoWebBrowser/gtk-gui/gui.stetic6
-rw-r--r--extras/GeckoWebBrowser/monodevelop-geckowebbrowser.pc.in6
-rw-r--r--extras/GeckoWebBrowser/rules.make40
-rw-r--r--extras/GtkSharpLibs/ChangeLog26
-rw-r--r--extras/GtkSharpLibs/md-gtk-sharp-2.10/Makefile107
-rw-r--r--extras/GtkSharpLibs/md-gtk-sharp-2.10/README5
-rw-r--r--extras/GtkSharpLibs/md-gtk-sharp-2.10/md-gtk-sharp.addin.xml.xsl101
-rw-r--r--extras/GtkSharpLibs/md-gtk-sharp-2.4/Makefile72
-rw-r--r--extras/GtkSharpLibs/md-gtk-sharp-2.4/README5
-rw-r--r--extras/GtkSharpLibs/md-gtk-sharp-2.4/md-gtk-sharp.addin.xml.xsl101
-rw-r--r--extras/GtkSharpLibs/md-gtk-sharp-2.6/Makefile71
-rw-r--r--extras/GtkSharpLibs/md-gtk-sharp-2.6/README5
-rw-r--r--extras/GtkSharpLibs/md-gtk-sharp-2.6/md-gtk-sharp.addin.xml.xsl101
-rw-r--r--extras/GtkSharpLibs/md-gtk-sharp-2.8/Makefile71
-rw-r--r--extras/GtkSharpLibs/md-gtk-sharp-2.8/README5
-rw-r--r--extras/GtkSharpLibs/md-gtk-sharp-2.8/md-gtk-sharp.addin.xml.xsl101
-rw-r--r--extras/GtkSourceViewEditor/MonoDevelop.SourceEditor.addin.xml85
-rw-r--r--extras/JavaBinding/AssemblyInfo.cs9
-rw-r--r--extras/JavaBinding/COPYING340
-rw-r--r--extras/JavaBinding/ChangeLog796
-rw-r--r--extras/JavaBinding/FormatingStrategy/JavaFormattingStrategy.cs250
-rw-r--r--extras/JavaBinding/Gui/GlobalOptionsPanel.cs58
-rw-r--r--extras/JavaBinding/Gui/ProjectConfigurationPropertyPanel.cs133
-rw-r--r--extras/JavaBinding/IKVMCompilerManager.cs296
-rw-r--r--extras/JavaBinding/JavaBinding.addin.xml95
-rw-r--r--extras/JavaBinding/JavaBinding.csproj158
-rw-r--r--extras/JavaBinding/JavaBinding.make148
-rw-r--r--extras/JavaBinding/JavaBinding.sln44
-rw-r--r--extras/JavaBinding/JavaCompiler.cs10
-rw-r--r--extras/JavaBinding/JavaLanguageBinding.cs147
-rw-r--r--extras/JavaBinding/Makefile72
-rw-r--r--extras/JavaBinding/Makefile.include35
-rw-r--r--extras/JavaBinding/Parser/ExpressionFinder.cs380
-rw-r--r--extras/JavaBinding/Parser/JavaVisitor.cs252
-rw-r--r--extras/JavaBinding/Parser/Parser.cs124
-rw-r--r--extras/JavaBinding/Parser/Resolver.cs858
-rw-r--r--extras/JavaBinding/Parser/SharpDevelopTree/AttributeSection.cs25
-rw-r--r--extras/JavaBinding/Parser/SharpDevelopTree/Class.cs57
-rw-r--r--extras/JavaBinding/Parser/SharpDevelopTree/CompilationUnit.cs26
-rw-r--r--extras/JavaBinding/Parser/SharpDevelopTree/Constructor.cs18
-rw-r--r--extras/JavaBinding/Parser/SharpDevelopTree/Event.cs24
-rw-r--r--extras/JavaBinding/Parser/SharpDevelopTree/Field.cs23
-rw-r--r--extras/JavaBinding/Parser/SharpDevelopTree/Indexer.cs24
-rw-r--r--extras/JavaBinding/Parser/SharpDevelopTree/Method.cs19
-rw-r--r--extras/JavaBinding/Parser/SharpDevelopTree/Parameter.cs15
-rw-r--r--extras/JavaBinding/Parser/SharpDevelopTree/Property.cs24
-rw-r--r--extras/JavaBinding/Parser/SharpDevelopTree/ReturnType.cs32
-rw-r--r--extras/JavaBinding/Parser/TypeVisitor.cs306
-rw-r--r--extras/JavaBinding/Project/ChangeLog4
-rw-r--r--extras/JavaBinding/Project/JavaCompilerParameters.cs141
-rw-r--r--extras/JavaBinding/README7
-rw-r--r--extras/JavaBinding/TODO7
-rwxr-xr-xextras/JavaBinding/configure102
-rw-r--r--extras/JavaBinding/gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs464
-rw-r--r--extras/JavaBinding/gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs219
-rw-r--r--extras/JavaBinding/gtk-gui/generated.cs82
-rw-r--r--extras/JavaBinding/gtk-gui/gui.stetic836
-rw-r--r--extras/JavaBinding/icons/Java.FileIconbin730 -> 0 bytes
-rw-r--r--extras/JavaBinding/icons/java-16.pngbin731 -> 0 bytes
-rw-r--r--extras/JavaBinding/icons/java-22.pngbin1043 -> 0 bytes
-rw-r--r--extras/JavaBinding/icons/java-icon-32.pngbin329 -> 0 bytes
-rw-r--r--extras/JavaBinding/md1format.xml12
-rw-r--r--extras/JavaBinding/monodevelop-java.pc.in8
-rw-r--r--extras/JavaBinding/monodevelop-java.spec.in65
-rw-r--r--extras/JavaBinding/po/ChangeLog40
-rw-r--r--extras/JavaBinding/po/Makefile67
-rw-r--r--extras/JavaBinding/po/ca.po289
-rw-r--r--extras/JavaBinding/po/cs.po282
-rw-r--r--extras/JavaBinding/po/da.po290
-rw-r--r--extras/JavaBinding/po/de.po277
-rw-r--r--extras/JavaBinding/po/es.po282
-rw-r--r--extras/JavaBinding/po/fr.po283
-rw-r--r--extras/JavaBinding/po/gl.po283
-rwxr-xr-xextras/JavaBinding/po/hu.po274
-rw-r--r--extras/JavaBinding/po/id.po280
-rw-r--r--extras/JavaBinding/po/it.po293
-rw-r--r--extras/JavaBinding/po/ja.po279
-rw-r--r--extras/JavaBinding/po/messages.po276
-rw-r--r--extras/JavaBinding/po/nl.po273
-rw-r--r--extras/JavaBinding/po/pl.po283
-rw-r--r--extras/JavaBinding/po/po.mdproj45
-rw-r--r--extras/JavaBinding/po/pt.po285
-rw-r--r--extras/JavaBinding/po/pt_BR.po283
-rw-r--r--extras/JavaBinding/po/ru.po287
-rw-r--r--extras/JavaBinding/po/sl_SI.po288
-rw-r--r--extras/JavaBinding/po/sv.po298
-rw-r--r--extras/JavaBinding/po/tr.po281
-rw-r--r--extras/JavaBinding/po/zh_CN.po280
-rw-r--r--extras/JavaBinding/po/zh_TW.po280
-rw-r--r--extras/JavaBinding/rules.make40
-rw-r--r--extras/JavaBinding/templates/EmptyJavaFile.xft.xml20
-rw-r--r--extras/JavaBinding/templates/EmptyJavaProject.xpt.xml19
-rw-r--r--extras/JavaBinding/templates/IkvmConsoleApplicationProject.xpt.xml47
-rw-r--r--extras/JavaBinding/templates/IkvmGladeApplicationProject.xpt.xml62
-rw-r--r--extras/JavaBinding/templates/IkvmGnomeApplicationProject.xpt.xml62
-rw-r--r--extras/JavaBinding/templates/IkvmGtkApplicationProject.xpt.xml60
-rw-r--r--extras/JavaBinding/templates/IkvmLibraryProject.xpt.xml44
-rw-r--r--extras/JavaBinding/templates/JavaApplet.xft.xml70
-rw-r--r--extras/JavaBinding/templates/JavaApplication.xft.xml146
-rw-r--r--extras/JavaBinding/templates/JavaApplicationProject.xpt.xml160
-rw-r--r--extras/JavaBinding/templates/JavaConsoleApplicationProject.xpt.xml45
-rw-r--r--extras/JavaBinding/templates/JavaDialog.xft.xml68
-rw-r--r--extras/JavaBinding/templates/JavaFrame.xft.xml67
-rw-r--r--extras/JavaBinding/templates/JavaOKDialog.xft.xml122
-rw-r--r--extras/JavaBinding/templates/JavaPanel.xft.xml53
-rw-r--r--extras/MonoDevelop.AddinAuthoring/AddinTextStylePolicy.xml8
-rw-r--r--extras/MonoDevelop.AddinAuthoring/AddinXmlPolicy.xml31
-rw-r--r--extras/MonoDevelop.AddinAuthoring/AssemblyInfo.cs9
-rw-r--r--extras/MonoDevelop.AddinAuthoring/ChangeLog439
-rw-r--r--extras/MonoDevelop.AddinAuthoring/Makefile72
-rw-r--r--extras/MonoDevelop.AddinAuthoring/Makefile.include33
-rw-r--r--extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.CodeCompletion/AddinParser.cs112
-rw-r--r--extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.CodeCompletion/BaseXmlEditorExtension.cs213
-rw-r--r--extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.CodeCompletion/CodeCompletionExtension.cs724
-rw-r--r--extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.Gui/AddinView.cs60
-rw-r--r--extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.Gui/ExtensionNodeView.cs74
-rw-r--r--extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.Gui/ExtensionPointView.cs114
-rw-r--r--extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.Gui/ExtensionView.cs80
-rw-r--r--extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.NodeBuilders/AddinCategoryGroup.cs44
-rw-r--r--extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.NodeBuilders/AddinCategoryNodeBuilder.cs92
-rw-r--r--extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.NodeBuilders/AddinFolderNodeBuilder.cs124
-rw-r--r--extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.NodeBuilders/AddinGroup.cs42
-rw-r--r--extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.NodeBuilders/AddinHeaderNodeBuilder.cs41
-rw-r--r--extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.NodeBuilders/AddinNodeBuilder.cs90
-rw-r--r--extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.NodeBuilders/AddinReferenceNodeBuilder.cs86
-rw-r--r--extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.NodeBuilders/ExtensionModelTypeNodeBuilder.cs72
-rw-r--r--extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.NodeBuilders/ExtensionNodeBuilder.cs175
-rw-r--r--extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.NodeBuilders/ExtensionNodeNodeBuilder.cs316
-rw-r--r--extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.NodeBuilders/ExtensionPointNodeBuilder.cs191
-rw-r--r--extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.NodeBuilders/ExtensionPointsNodeBuilder.cs84
-rw-r--r--extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.NodeBuilders/ExtensionsNodeBuilder.cs85
-rw-r--r--extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.NodeBuilders/ProjectFolderNodeBuilderExtension.cs153
-rw-r--r--extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.NodeBuilders/ProjectNodeBuilder.cs244
-rw-r--r--extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.NodeBuilders/ReferenceNodeBuilder.cs59
-rw-r--r--extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.NodeBuilders/ReferencesFolderNodeBuilder.cs102
-rw-r--r--extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.NodeBuilders/RegistryNodeBuilder.cs92
-rw-r--r--extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.NodeBuilders/SolutionNodeBuilder.cs97
-rw-r--r--extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.addin.xml206
-rw-r--r--extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.csproj300
-rw-r--r--extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.make210
-rw-r--r--extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.sln54
-rw-r--r--extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/AddinAuthoringService.cs333
-rw-r--r--extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/AddinData.cs423
-rw-r--r--extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/AddinDescriptionDisplayBinding.cs77
-rw-r--r--extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/AddinDescriptionView.cs129
-rw-r--r--extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/AddinDescriptionWidget.cs134
-rw-r--r--extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/AddinFeatureWidget.cs269
-rw-r--r--extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/AddinFileDescriptionTemplate.cs85
-rw-r--r--extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/AddinFileSystem.cs268
-rw-r--r--extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/AddinOptionPanelWidget.cs81
-rw-r--r--extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/AddinProjectExtension.cs178
-rw-r--r--extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/AddinProjectReference.cs96
-rw-r--r--extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/CellRendererExtension.cs145
-rw-r--r--extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/Commands.cs26
-rw-r--r--extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/DomAssemblyReflector.cs478
-rw-r--r--extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/ExtensionBaseView.cs130
-rw-r--r--extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/ExtensionDomain.cs45
-rw-r--r--extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/ExtensionEditorView.cs50
-rw-r--r--extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/ExtensionEditorWidget.cs484
-rw-r--r--extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/ExtensionModelBrowser.cs61
-rw-r--r--extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/ExtensionModelBrowserWidget.cs192
-rw-r--r--extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/ExtensionNodeInfo.cs137
-rw-r--r--extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/ExtensionNodeTree.cs198
-rw-r--r--extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/ExtensionPointsEditorView.cs50
-rw-r--r--extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/ExtensionPointsEditorWidget.cs161
-rw-r--r--extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/ExtensionSelectorDialog.cs380
-rw-r--r--extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/NewExtensionPointDialog.cs124
-rw-r--r--extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/NewRegistryDialog.cs58
-rw-r--r--extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/NodeEditorDialog.cs30
-rw-r--r--extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/NodeEditorWidget.cs216
-rw-r--r--extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/NodeSetEditorDialog.cs42
-rw-r--r--extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/NodeSetEditorWidget.cs223
-rw-r--r--extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/NodeTypeEditorDialog.cs89
-rw-r--r--extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/RegistryEventArgs.cs36
-rw-r--r--extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/RegistryExtensionNode.cs97
-rw-r--r--extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/RegistrySelector.cs76
-rw-r--r--extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/SelectNodeSetDialog.cs81
-rw-r--r--extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/SelectRepositoryDialog.cs98
-rw-r--r--extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/SolutionAddinData.cs190
-rw-r--r--extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/StartupHandler.cs63
-rw-r--r--extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/TypeCellEditor.cs97
-rw-r--r--extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/TypeSelector.cs207
-rw-r--r--extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/Util.cs85
-rw-r--r--extras/MonoDevelop.AddinAuthoring/addin-reference.pngbin632 -> 0 bytes
-rwxr-xr-xextras/MonoDevelop.AddinAuthoring/configure109
-rw-r--r--extras/MonoDevelop.AddinAuthoring/extension-node-set.pngbin326 -> 0 bytes
-rw-r--r--extras/MonoDevelop.AddinAuthoring/extension-node-type.pngbin322 -> 0 bytes
-rw-r--r--extras/MonoDevelop.AddinAuthoring/extension-point.pngbin402 -> 0 bytes
-rw-r--r--extras/MonoDevelop.AddinAuthoring/extension.pngbin372 -> 0 bytes
-rw-r--r--extras/MonoDevelop.AddinAuthoring/flare.pngbin459 -> 0 bytes
-rw-r--r--extras/MonoDevelop.AddinAuthoring/gtk-gui/MonoDevelop.AddinAuthoring.AddinDescriptionWidget.cs402
-rw-r--r--extras/MonoDevelop.AddinAuthoring/gtk-gui/MonoDevelop.AddinAuthoring.AddinFeatureWidget.cs245
-rw-r--r--extras/MonoDevelop.AddinAuthoring/gtk-gui/MonoDevelop.AddinAuthoring.AddinOptionPanelWidget.cs59
-rw-r--r--extras/MonoDevelop.AddinAuthoring/gtk-gui/MonoDevelop.AddinAuthoring.ExtensionEditorWidget.cs181
-rw-r--r--extras/MonoDevelop.AddinAuthoring/gtk-gui/MonoDevelop.AddinAuthoring.ExtensionPointsEditorWidget.cs134
-rw-r--r--extras/MonoDevelop.AddinAuthoring/gtk-gui/MonoDevelop.AddinAuthoring.ExtensionSelectorDialog.cs97
-rw-r--r--extras/MonoDevelop.AddinAuthoring/gtk-gui/MonoDevelop.AddinAuthoring.NewExtensionPointDialog.cs337
-rw-r--r--extras/MonoDevelop.AddinAuthoring/gtk-gui/MonoDevelop.AddinAuthoring.NewRegistryDialog.cs142
-rw-r--r--extras/MonoDevelop.AddinAuthoring/gtk-gui/MonoDevelop.AddinAuthoring.NodeSetEditorDialog.cs59
-rw-r--r--extras/MonoDevelop.AddinAuthoring/gtk-gui/MonoDevelop.AddinAuthoring.NodeSetEditorWidget.cs134
-rw-r--r--extras/MonoDevelop.AddinAuthoring/gtk-gui/MonoDevelop.AddinAuthoring.NodeTypeEditorDialog.cs177
-rw-r--r--extras/MonoDevelop.AddinAuthoring/gtk-gui/MonoDevelop.AddinAuthoring.RegistrySelector.cs62
-rw-r--r--extras/MonoDevelop.AddinAuthoring/gtk-gui/MonoDevelop.AddinAuthoring.SelectNodeSetDialog.cs108
-rw-r--r--extras/MonoDevelop.AddinAuthoring/gtk-gui/MonoDevelop.AddinAuthoring.SelectRepositoryDialog.cs142
-rw-r--r--extras/MonoDevelop.AddinAuthoring/gtk-gui/MonoDevelop.AddinAuthoring.TypeSelector.cs49
-rw-r--r--extras/MonoDevelop.AddinAuthoring/gtk-gui/generated.cs115
-rw-r--r--extras/MonoDevelop.AddinAuthoring/gtk-gui/gui.stetic3407
-rw-r--r--extras/MonoDevelop.AddinAuthoring/monodevelop.addinauthoring.pc.in6
-rw-r--r--extras/MonoDevelop.AddinAuthoring/rules.make40
-rw-r--r--extras/MonoDevelop.AddinAuthoring/templates/AddinProject.xpt.xml37
-rw-r--r--extras/MonoDevelop.AddinAuthoring/templates/ExtensibleApplicationProject.xpt.xml50
-rw-r--r--extras/MonoDevelop.AddinAuthoring/templates/ExtensibleLibraryProject.xpt.xml37
-rw-r--r--extras/MonoDevelop.CodeAnalysis/AUTHORS1
-rw-r--r--extras/MonoDevelop.CodeAnalysis/COPYING21
-rw-r--r--extras/MonoDevelop.CodeAnalysis/ChangeLog90
-rw-r--r--extras/MonoDevelop.CodeAnalysis/Makefile.am27
-rw-r--r--extras/MonoDevelop.CodeAnalysis/Makefile.include4
-rw-r--r--extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Gendarme/AssemblyInfo.cs9
-rw-r--r--extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Gendarme/ChangeLog112
-rw-r--r--extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Gendarme/GendarmeAnalyzer.cs27
-rw-r--r--extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Gendarme/GendarmeRule.cs42
-rw-r--r--extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Gendarme/GendarmeRuleCache.cs49
-rw-r--r--extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Gendarme/GendarmeRuleLoader.cs52
-rw-r--r--extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Gendarme/GendarmeRunner.cs52
-rw-r--r--extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Gendarme/GendarmeViolation.cs86
-rw-r--r--extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Gendarme/Makefile.am48
-rw-r--r--extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Gendarme/MonoDevelop.CodeAnalysis.Gendarme.addin.xml18
-rw-r--r--extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Gendarme/MonoDevelop.CodeAnalysis.Gendarme.csproj123
-rw-r--r--extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Gendarme/Utilities.cs15
-rw-r--r--extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Gendarme/gtk-gui/generated.cs29
-rw-r--r--extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Gendarme/gtk-gui/gui.stetic12
-rw-r--r--extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Smokey/AssemblyInfo.cs9
-rw-r--r--extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Smokey/ChangeLog75
-rw-r--r--extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Smokey/Makefile.am45
-rw-r--r--extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Smokey/MonoDevelop.CodeAnalysis.Smokey.addin.xml18
-rw-r--r--extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Smokey/MonoDevelop.CodeAnalysis.Smokey.csproj118
-rw-r--r--extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Smokey/SmokeyAnalyzer.cs27
-rw-r--r--extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Smokey/SmokeyParser.cs104
-rw-r--r--extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Smokey/SmokeyRule.cs31
-rw-r--r--extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Smokey/SmokeyRuleCache.cs33
-rw-r--r--extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Smokey/SmokeyRuleLoader.cs60
-rw-r--r--extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Smokey/SmokeyRunner.cs61
-rw-r--r--extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Smokey/SmokeyViolation.cs54
-rw-r--r--extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Smokey/gtk-gui/generated.cs29
-rw-r--r--extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Smokey/gtk-gui/gui.stetic12
-rw-r--r--extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.sln51
-rw-r--r--extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/AddinCatalog.cs63
-rw-r--r--extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/Argument.cs12
-rw-r--r--extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/ChangeLog147
-rw-r--r--extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/CodeAnalysis/AssemblyAnalyzerAttribute.cs24
-rw-r--r--extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/CodeAnalysis/Category.cs28
-rw-r--r--extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/CodeAnalysis/CodeAnalysisException.cs15
-rw-r--r--extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/CodeAnalysis/CodeLocation.cs34
-rw-r--r--extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/CodeAnalysis/Confidence.cs11
-rw-r--r--extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/CodeAnalysis/DictionaryBasedRuleLoader.cs78
-rw-r--r--extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/CodeAnalysis/IAnalyzer.cs10
-rw-r--r--extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/CodeAnalysis/IRule.cs11
-rw-r--r--extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/CodeAnalysis/IRuleLoader.cs12
-rw-r--r--extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/CodeAnalysis/IRunner.cs12
-rw-r--r--extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/CodeAnalysis/IViolation.cs16
-rw-r--r--extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/CodeAnalysis/MainAnalyzer.cs214
-rw-r--r--extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/CodeAnalysis/Severity.cs11
-rw-r--r--extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/Commands/AnalyzeHandler.cs37
-rw-r--r--extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/Commands/ChangeLog5
-rw-r--r--extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/Commands/CodeAnalysisCommands.cs8
-rw-r--r--extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/Extensions/RuleLoaderExtension.cs11
-rw-r--r--extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/Gui/ProjectOptionsPanel.cs0
-rw-r--r--extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/Gui/ProjectOptionsPanelWidget.cs14
-rw-r--r--extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/Gui/ResultsReporter.cs98
-rw-r--r--extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/Gui/ViolationView.cs0
-rw-r--r--extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/Gui/ViolationWidget.cs15
-rw-r--r--extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/Makefile.am61
-rw-r--r--extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.addin.xml32
-rw-r--r--extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.csproj119
-rw-r--r--extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/Project/CodeAnalysisData.cs0
-rw-r--r--extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/gtk-gui/MonoDevelop.CodeAnalysis.ProjectOptionsPanelWidget.cs19
-rw-r--r--extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/gtk-gui/MonoDevelop.CodeAnalysis.ViolationWidget.cs19
-rw-r--r--extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/gtk-gui/generated.cs82
-rw-r--r--extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/gtk-gui/gui.stetic27
-rw-r--r--extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/gtk-gui/objects.xml6
-rw-r--r--extras/MonoDevelop.CodeAnalysis/NEWS0
-rw-r--r--extras/MonoDevelop.CodeAnalysis/README0
-rwxr-xr-xextras/MonoDevelop.CodeAnalysis/autogen.sh83
-rw-r--r--extras/MonoDevelop.CodeAnalysis/configure.ac104
-rwxr-xr-xextras/MonoDevelop.CodeAnalysis/dlls/Gendarme.Framework.dllbin76800 -> 0 bytes
-rw-r--r--extras/MonoDevelop.CodeAnalysis/dlls/Gendarme.Framework.license.txt21
-rwxr-xr-xextras/MonoDevelop.CodeAnalysis/dlls/Gendarme.Rules.BadPractice.dllbin33280 -> 0 bytes
-rwxr-xr-xextras/MonoDevelop.CodeAnalysis/dlls/Gendarme.Rules.Concurrency.dllbin32256 -> 0 bytes
-rwxr-xr-xextras/MonoDevelop.CodeAnalysis/dlls/Gendarme.Rules.Correctness.dllbin61952 -> 0 bytes
-rwxr-xr-xextras/MonoDevelop.CodeAnalysis/dlls/Gendarme.Rules.Design.dllbin52224 -> 0 bytes
-rwxr-xr-xextras/MonoDevelop.CodeAnalysis/dlls/Gendarme.Rules.Exceptions.dllbin29696 -> 0 bytes
-rwxr-xr-xextras/MonoDevelop.CodeAnalysis/dlls/Gendarme.Rules.Interoperability.dllbin24576 -> 0 bytes
-rwxr-xr-xextras/MonoDevelop.CodeAnalysis/dlls/Gendarme.Rules.Maintainability.dllbin34816 -> 0 bytes
-rwxr-xr-xextras/MonoDevelop.CodeAnalysis/dlls/Gendarme.Rules.Naming.dllbin35328 -> 0 bytes
-rwxr-xr-xextras/MonoDevelop.CodeAnalysis/dlls/Gendarme.Rules.Performance.dllbin56832 -> 0 bytes
-rwxr-xr-xextras/MonoDevelop.CodeAnalysis/dlls/Gendarme.Rules.Portability.dllbin28672 -> 0 bytes
-rwxr-xr-xextras/MonoDevelop.CodeAnalysis/dlls/Gendarme.Rules.Security.dllbin10240 -> 0 bytes
-rwxr-xr-xextras/MonoDevelop.CodeAnalysis/dlls/Gendarme.Rules.Serialization.dllbin18944 -> 0 bytes
-rwxr-xr-xextras/MonoDevelop.CodeAnalysis/dlls/Gendarme.Rules.Smells.dllbin30208 -> 0 bytes
-rwxr-xr-xextras/MonoDevelop.CodeAnalysis/dlls/Gendarme.Rules.Ui.dllbin8192 -> 0 bytes
-rwxr-xr-xextras/MonoDevelop.CodeAnalysis/dlls/Mono.Cecil.dllbin384000 -> 0 bytes
-rw-r--r--extras/MonoDevelop.CodeAnalysis/dlls/smokey.exebin727040 -> 0 bytes
-rw-r--r--extras/MonoDevelop.CodeAnalysis/monodevelop-codeanalysis.pc.in8
-rw-r--r--extras/MonoDevelop.MeeGo/ChangeLog116
-rw-r--r--extras/MonoDevelop.MeeGo/Makefile41
-rw-r--r--extras/MonoDevelop.MeeGo/MeeGoDevicePicker.cs136
-rw-r--r--extras/MonoDevelop.MeeGo/MeeGoExecutionCommand.cs61
-rw-r--r--extras/MonoDevelop.MeeGo/MeeGoExecutionHandler.cs250
-rw-r--r--extras/MonoDevelop.MeeGo/MeeGoExecutionModeSet.cs60
-rw-r--r--extras/MonoDevelop.MeeGo/MeeGoProject.cs117
-rw-r--r--extras/MonoDevelop.MeeGo/MeeGoProjectBinding.cs56
-rw-r--r--extras/MonoDevelop.MeeGo/MeeGoProjectConfiguration.cs52
-rw-r--r--extras/MonoDevelop.MeeGo/MeeGoSoftDebuggerEngine.cs64
-rw-r--r--extras/MonoDevelop.MeeGo/MeeGoSoftDebuggerSession.cs108
-rw-r--r--extras/MonoDevelop.MeeGo/MeeGoUtility.cs112
-rw-r--r--extras/MonoDevelop.MeeGo/MonoDevelop.MeeGo.addin.xml55
-rw-r--r--extras/MonoDevelop.MeeGo/MonoDevelop.MeeGo.csproj123
-rw-r--r--extras/MonoDevelop.MeeGo/MonoDevelop.MeeGo.sln32
-rw-r--r--extras/MonoDevelop.MeeGo/README.txt85
-rw-r--r--extras/MonoDevelop.MeeGo/SshOperation.cs107
-rw-r--r--extras/MonoDevelop.MeeGo/Templates/MeeGoGtkProject.xpt.xml109
-rwxr-xr-xextras/MonoDevelop.MeeGo/configure71
-rw-r--r--extras/MonoDevelop.Profiling/AUTHORS1
-rw-r--r--extras/MonoDevelop.Profiling/COPYING23
-rw-r--r--extras/MonoDevelop.Profiling/ChangeLog74
-rw-r--r--extras/MonoDevelop.Profiling/Makefile.am28
-rw-r--r--extras/MonoDevelop.Profiling/Makefile.include4
-rw-r--r--extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/AssemblyInfo.cs9
-rw-r--r--extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/ChangeLog129
-rw-r--r--extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/Gui/BacktracesNodeBuilder.cs84
-rw-r--r--extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/Gui/BacktracesView.cs178
-rw-r--r--extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/Gui/FakeNodes.cs68
-rw-r--r--extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/Gui/HeapBuddyProfilingSnapshotNodeBuilder.cs127
-rw-r--r--extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/Gui/HistoryNodeBuilder.cs84
-rw-r--r--extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/Gui/HistoryView.cs180
-rw-r--r--extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/Gui/TypesNodeBuilder.cs84
-rw-r--r--extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/Gui/TypesView.cs179
-rw-r--r--extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/HeapBuddyProfiler.cs181
-rw-r--r--extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/HeapBuddyProfilingSnapshot.cs115
-rw-r--r--extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/Makefile.am51
-rw-r--r--extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/MonoDevelop.Profiling.HeapBuddy.addin.xml57
-rw-r--r--extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/MonoDevelop.Profiling.HeapBuddy.mdp68
-rw-r--r--extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/Snapshot/Backtrace.cs88
-rw-r--r--extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/Snapshot/Frame.cs38
-rw-r--r--extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/Snapshot/Gc.cs87
-rw-r--r--extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/Snapshot/ObjectStats.cs156
-rw-r--r--extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/Snapshot/OutfileReader.cs1179
-rw-r--r--extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/Snapshot/Resize.cs79
-rw-r--r--extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/Snapshot/Type.cs50
-rw-r--r--extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/Snapshot/Util.cs44
-rw-r--r--extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/gtk-gui/ChangeLog11
-rwxr-xr-xextras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/gtk-gui/generated.cs29
-rwxr-xr-xextras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/gtk-gui/gui.stetic12
-rw-r--r--extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapShot/AssemblyInfo.cs9
-rw-r--r--extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapShot/ChangeLog128
-rw-r--r--extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapShot/Gui/HeapShotProfilingSnapshotNodeBuilder.cs126
-rw-r--r--extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapShot/Gui/HeapShotProfilingSnapshotView.cs105
-rw-r--r--extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapShot/Gui/ReferenceTreeViewer.cs564
-rw-r--r--extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapShot/HeapShotProfiler.cs164
-rw-r--r--extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapShot/HeapShotProfilingSnapshot.cs70
-rw-r--r--extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapShot/Makefile.am45
-rw-r--r--extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapShot/MonoDevelop.Profiling.HeapShot.addin.xml43
-rw-r--r--extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapShot/MonoDevelop.Profiling.HeapShot.mdp62
-rw-r--r--extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapShot/Snapshot/FieldInfo.cs39
-rw-r--r--extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapShot/Snapshot/ObjectInfo.cs44
-rw-r--r--extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapShot/Snapshot/ObjectMapReader.cs605
-rw-r--r--extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapShot/Snapshot/ObjectReference.cs40
-rw-r--r--extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapShot/Snapshot/ReferenceNode.cs245
-rw-r--r--extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapShot/Snapshot/TypeInfo.cs43
-rw-r--r--extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapShot/gtk-gui/MonoDevelop.Profiling.HeapShot.ReferenceTreeViewer.cs107
-rwxr-xr-xextras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapShot/gtk-gui/generated.cs82
-rwxr-xr-xextras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapShot/gtk-gui/gui.stetic113
-rw-r--r--extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapShot/gtk-gui/objects.xml2
-rw-r--r--extras/MonoDevelop.Profiling/MonoDevelop.Profiling.mds28
-rw-r--r--extras/MonoDevelop.Profiling/MonoDevelop.Profiling/AbstractProfiler.cs263
-rw-r--r--extras/MonoDevelop.Profiling/MonoDevelop.Profiling/AbstractProfilerSnapshot.cs84
-rw-r--r--extras/MonoDevelop.Profiling/MonoDevelop.Profiling/AssemblyInfo.cs9
-rw-r--r--extras/MonoDevelop.Profiling/MonoDevelop.Profiling/ChangeLog202
-rw-r--r--extras/MonoDevelop.Profiling/MonoDevelop.Profiling/Codons/ProfilerCodon.cs38
-rw-r--r--extras/MonoDevelop.Profiling/MonoDevelop.Profiling/Commands/AbstractProfilerList.cs66
-rw-r--r--extras/MonoDevelop.Profiling/MonoDevelop.Profiling/Commands/PadCommands.cs101
-rw-r--r--extras/MonoDevelop.Profiling/MonoDevelop.Profiling/Commands/ProjectCommands.cs89
-rw-r--r--extras/MonoDevelop.Profiling/MonoDevelop.Profiling/Commands/ToolCommands.cs91
-rw-r--r--extras/MonoDevelop.Profiling/MonoDevelop.Profiling/Dialogs/SelectExecutableDialog.cs100
-rw-r--r--extras/MonoDevelop.Profiling/MonoDevelop.Profiling/Dialogs/SelectProcessDialog.cs143
-rw-r--r--extras/MonoDevelop.Profiling/MonoDevelop.Profiling/DummyProcessAsyncOperation.cs91
-rw-r--r--extras/MonoDevelop.Profiling/MonoDevelop.Profiling/IProfiler.cs66
-rw-r--r--extras/MonoDevelop.Profiling/MonoDevelop.Profiling/IProfilingSnapshot.cs40
-rw-r--r--extras/MonoDevelop.Profiling/MonoDevelop.Profiling/Makefile.am67
-rw-r--r--extras/MonoDevelop.Profiling/MonoDevelop.Profiling/MonoDevelop.Profiling.addin.xml134
-rw-r--r--extras/MonoDevelop.Profiling/MonoDevelop.Profiling/MonoDevelop.Profiling.mdp101
-rw-r--r--extras/MonoDevelop.Profiling/MonoDevelop.Profiling/MonoProfilerExecutionHandler.cs71
-rw-r--r--extras/MonoDevelop.Profiling/MonoDevelop.Profiling/Pads/ChangeLog15
-rw-r--r--extras/MonoDevelop.Profiling/MonoDevelop.Profiling/Pads/ProfilingPad.cs86
-rw-r--r--extras/MonoDevelop.Profiling/MonoDevelop.Profiling/Pads/ProfilingSnapshotCollectionNodeBuilder.cs92
-rw-r--r--extras/MonoDevelop.Profiling/MonoDevelop.Profiling/ProcessProfilerExecutionHandler.cs72
-rwxr-xr-xextras/MonoDevelop.Profiling/MonoDevelop.Profiling/ProfilerEventArgs.cs47
-rw-r--r--extras/MonoDevelop.Profiling/MonoDevelop.Profiling/ProfilerState.cs37
-rwxr-xr-xextras/MonoDevelop.Profiling/MonoDevelop.Profiling/ProfilerStateEventArgs.cs47
-rw-r--r--extras/MonoDevelop.Profiling/MonoDevelop.Profiling/ProfilingContext.cs64
-rw-r--r--extras/MonoDevelop.Profiling/MonoDevelop.Profiling/ProfilingOperations.cs122
-rw-r--r--extras/MonoDevelop.Profiling/MonoDevelop.Profiling/ProfilingService.cs282
-rw-r--r--extras/MonoDevelop.Profiling/MonoDevelop.Profiling/ProfilingSnapshotCollection.cs163
-rw-r--r--extras/MonoDevelop.Profiling/MonoDevelop.Profiling/ProfilingSnapshotEventArgs.cs47
-rw-r--r--extras/MonoDevelop.Profiling/MonoDevelop.Profiling/gtk-gui/MonoDevelop.Profiling.SelectExecutableDialog.cs168
-rw-r--r--extras/MonoDevelop.Profiling/MonoDevelop.Profiling/gtk-gui/MonoDevelop.Profiling.SelectProcessDialog.cs102
-rwxr-xr-xextras/MonoDevelop.Profiling/MonoDevelop.Profiling/gtk-gui/generated.cs29
-rwxr-xr-xextras/MonoDevelop.Profiling/MonoDevelop.Profiling/gtk-gui/gui.stetic348
-rw-r--r--extras/MonoDevelop.Profiling/MonoDevelop.Profiling/gtk-gui/objects.xml1
-rwxr-xr-xextras/MonoDevelop.Profiling/MonoDevelop.Profiling/icons/Icons.16x16.Profiling.Filter.pngbin522 -> 0 bytes
-rw-r--r--extras/MonoDevelop.Profiling/MonoDevelop.Profiling/icons/Icons.16x16.Profiling.GC.pngbin882 -> 0 bytes
-rw-r--r--extras/MonoDevelop.Profiling/MonoDevelop.Profiling/icons/Icons.16x16.Profiling.History.pngbin604 -> 0 bytes
-rwxr-xr-xextras/MonoDevelop.Profiling/MonoDevelop.Profiling/icons/Icons.16x16.Profiling.Snapshot.pngbin499 -> 0 bytes
-rw-r--r--extras/MonoDevelop.Profiling/MonoDevelop.Profiling/icons/Icons.16x16.Profiling.Summary.pngbin863 -> 0 bytes
-rw-r--r--extras/MonoDevelop.Profiling/NEWS0
-rw-r--r--extras/MonoDevelop.Profiling/README11
-rwxr-xr-xextras/MonoDevelop.Profiling/autogen.sh79
-rw-r--r--extras/MonoDevelop.Profiling/configure.in96
-rw-r--r--extras/MonoDevelop.Profiling/monodevelop-profiling.pc.in8
-rw-r--r--extras/MonoDevelop.Profiling/po/Makefile.am0
-rw-r--r--extras/NemerleBinding/ChangeLog303
-rw-r--r--extras/NemerleBinding/EmptyNemerleFile.xft.xml23
-rw-r--r--extras/NemerleBinding/FormattingStrategy/NemerleFormattingStrategy.cs41
-rw-r--r--extras/NemerleBinding/Gui/CodeGenerationPanel.cs71
-rw-r--r--extras/NemerleBinding/Makefile.am73
-rw-r--r--extras/NemerleBinding/Nemerle.glade359
-rw-r--r--extras/NemerleBinding/NemerleAmbience.cs577
-rw-r--r--extras/NemerleBinding/NemerleBinding.addin.xml73
-rw-r--r--extras/NemerleBinding/NemerleBinding.mdp68
-rw-r--r--extras/NemerleBinding/NemerleBindingCompilerServices.cs207
-rw-r--r--extras/NemerleBinding/NemerleEmptyProject.xpt.xml18
-rw-r--r--extras/NemerleBinding/NemerleGnomeSharpProject.xpt.xml96
-rw-r--r--extras/NemerleBinding/NemerleGtkSharpProject.xpt.xml92
-rw-r--r--extras/NemerleBinding/NemerleGtkSharpWindow.xft.xml33
-rw-r--r--extras/NemerleBinding/NemerleLanguageBinding.cs81
-rw-r--r--extras/NemerleBinding/Parser/CodeGeneration.cs88
-rw-r--r--extras/NemerleBinding/Parser/ExpressionFinder.cs825
-rw-r--r--extras/NemerleBinding/Parser/Parser.cs522
-rw-r--r--extras/NemerleBinding/Parser/SharpDevelopTree/Class.cs267
-rw-r--r--extras/NemerleBinding/Parser/SharpDevelopTree/Constructor.cs97
-rw-r--r--extras/NemerleBinding/Parser/SharpDevelopTree/Event.cs85
-rw-r--r--extras/NemerleBinding/Parser/SharpDevelopTree/Field.cs95
-rw-r--r--extras/NemerleBinding/Parser/SharpDevelopTree/Indexer.cs129
-rw-r--r--extras/NemerleBinding/Parser/SharpDevelopTree/Local.cs35
-rw-r--r--extras/NemerleBinding/Parser/SharpDevelopTree/Method.cs318
-rw-r--r--extras/NemerleBinding/Parser/SharpDevelopTree/Modifier.cs53
-rw-r--r--extras/NemerleBinding/Parser/SharpDevelopTree/Parameter.cs59
-rw-r--r--extras/NemerleBinding/Parser/SharpDevelopTree/Property.cs103
-rw-r--r--extras/NemerleBinding/Parser/SharpDevelopTree/ReturnType.cs129
-rw-r--r--extras/NemerleBinding/Project/NemerleParameters.cs67
-rw-r--r--extras/NemerleBinding/icons/Nemerle.File.EmptyFilebin1756 -> 0 bytes
-rw-r--r--extras/NemerleBinding/icons/Nemerle.File.Formbin1819 -> 0 bytes
-rw-r--r--extras/NemerleBinding/icons/Nemerle.FileIconbin873 -> 0 bytes
-rw-r--r--extras/NemerleBinding/icons/Nemerle.Project.EmptyProjectbin1641 -> 0 bytes
-rw-r--r--extras/NemerleBinding/icons/Nemerle.Project.Formbin1625 -> 0 bytes
-rw-r--r--extras/NemerleBinding/icons/Nemerle.ProjectIconbin805 -> 0 bytes
-rw-r--r--extras/OpenOfficeSamples/COPYING504
-rw-r--r--extras/OpenOfficeSamples/ChangeLog4
-rw-r--r--extras/OpenOfficeSamples/OpenOfficeSamples.addin.xml38
-rw-r--r--extras/OpenOfficeSamples/OpenOfficeSpreadsheetDocHelper.xft.xml303
-rw-r--r--extras/OpenOfficeSamples/OpenOfficeSpreadsheetSample.xpt.xml1469
-rw-r--r--extras/OpenOfficeSamples/OpenOfficeSpreadsheetTableSample.xpt.xml263
-rw-r--r--extras/OpenOfficeSamples/OpenOfficeSpreadsheetViewSample.xpt.xml186
-rw-r--r--extras/OpenOfficeSamples/README26
-rw-r--r--extras/PyBinding/ChangeLog130
-rw-r--r--extras/PyBinding/Makefile71
-rw-r--r--extras/PyBinding/Makefile.include110
-rw-r--r--extras/PyBinding/PyBinding.sln38
-rw-r--r--extras/PyBinding/PyBinding/AssemblyInfo.cs9
-rw-r--r--extras/PyBinding/PyBinding/ChangeLog512
-rw-r--r--extras/PyBinding/PyBinding/Makefile193
-rw-r--r--extras/PyBinding/PyBinding/PyBinding.Compiler/IPythonCompiler.cs37
-rw-r--r--extras/PyBinding/PyBinding/PyBinding.Compiler/Python25Compiler.cs132
-rw-r--r--extras/PyBinding/PyBinding/PyBinding.Gui.Navigation/AttributeNodeBuilder.cs80
-rw-r--r--extras/PyBinding/PyBinding/PyBinding.Gui.Navigation/ClassNodeBuilder.cs97
-rw-r--r--extras/PyBinding/PyBinding/PyBinding.Gui.Navigation/FunctionNodeBuilder.cs83
-rw-r--r--extras/PyBinding/PyBinding/PyBinding.Gui.Navigation/PackageNodeBuilder.cs100
-rw-r--r--extras/PyBinding/PyBinding/PyBinding.Gui.Navigation/PackagesNodeBuilder.cs102
-rw-r--r--extras/PyBinding/PyBinding/PyBinding.Gui.Navigation/ProjectNodeBuilderExtension.cs61
-rw-r--r--extras/PyBinding/PyBinding/PyBinding.Gui/CompilationUnitDataProvider.cs98
-rw-r--r--extras/PyBinding/PyBinding/PyBinding.Gui/DataProvider.cs118
-rw-r--r--extras/PyBinding/PyBinding/PyBinding.Gui/PythonEditorCompletion.cs378
-rw-r--r--extras/PyBinding/PyBinding/PyBinding.Gui/PythonEditorIndentation.cs99
-rw-r--r--extras/PyBinding/PyBinding/PyBinding.Gui/PythonEditorOutline.cs36
-rw-r--r--extras/PyBinding/PyBinding/PyBinding.Gui/PythonOptionsPanel.cs83
-rw-r--r--extras/PyBinding/PyBinding/PyBinding.Gui/PythonOptionsWidget.cs178
-rw-r--r--extras/PyBinding/PyBinding/PyBinding.Parser.Dom/PythonArgument.cs36
-rw-r--r--extras/PyBinding/PyBinding/PyBinding.Parser.Dom/PythonAttribute.cs36
-rw-r--r--extras/PyBinding/PyBinding/PyBinding.Parser.Dom/PythonClass.cs46
-rw-r--r--extras/PyBinding/PyBinding/PyBinding.Parser.Dom/PythonComment.cs40
-rw-r--r--extras/PyBinding/PyBinding/PyBinding.Parser.Dom/PythonCompilationUnit.cs165
-rw-r--r--extras/PyBinding/PyBinding/PyBinding.Parser.Dom/PythonFunction.cs46
-rw-r--r--extras/PyBinding/PyBinding/PyBinding.Parser.Dom/PythonImport.cs35
-rw-r--r--extras/PyBinding/PyBinding/PyBinding.Parser.Dom/PythonLocal.cs32
-rw-r--r--extras/PyBinding/PyBinding/PyBinding.Parser.Dom/PythonModule.cs72
-rw-r--r--extras/PyBinding/PyBinding/PyBinding.Parser.Dom/PythonNode.cs54
-rw-r--r--extras/PyBinding/PyBinding/PyBinding.Parser.Dom/PythonParsedDocument.cs387
-rw-r--r--extras/PyBinding/PyBinding/PyBinding.Parser/ParserDatabase.cs314
-rw-r--r--extras/PyBinding/PyBinding/PyBinding.Parser/ParserItem.cs140
-rw-r--r--extras/PyBinding/PyBinding/PyBinding.Parser/ParserManager.cs57
-rw-r--r--extras/PyBinding/PyBinding/PyBinding.Parser/PythonExpressionFinder.cs170
-rw-r--r--extras/PyBinding/PyBinding/PyBinding.Parser/PythonParsedDocument.cs324
-rw-r--r--extras/PyBinding/PyBinding/PyBinding.Parser/PythonParser.cs73
-rw-r--r--extras/PyBinding/PyBinding/PyBinding.Parser/PythonParserInternal.cs210
-rw-r--r--extras/PyBinding/PyBinding/PyBinding.Parser/PythonResolver.cs160
-rw-r--r--extras/PyBinding/PyBinding/PyBinding.Runtime/AbstractPythonRuntime.cs92
-rw-r--r--extras/PyBinding/PyBinding/PyBinding.Runtime/IPythonRuntime.cs79
-rw-r--r--extras/PyBinding/PyBinding/PyBinding.Runtime/IronPythonRuntime.cs96
-rw-r--r--extras/PyBinding/PyBinding/PyBinding.Runtime/Python25Runtime.cs127
-rw-r--r--extras/PyBinding/PyBinding/PyBinding.Runtime/Python26Runtime.cs128
-rw-r--r--extras/PyBinding/PyBinding/PyBinding.Runtime/Python27Runtime.cs129
-rw-r--r--extras/PyBinding/PyBinding/PyBinding.addin.xml123
-rw-r--r--extras/PyBinding/PyBinding/PyBinding.csproj240
-rw-r--r--extras/PyBinding/PyBinding/PyBinding/IronPythonExecutionHandler.cs51
-rw-r--r--extras/PyBinding/PyBinding/PyBinding/PythonConfiguration.cs108
-rw-r--r--extras/PyBinding/PyBinding/PyBinding/PythonExecutionCommand.cs49
-rw-r--r--extras/PyBinding/PyBinding/PyBinding/PythonExecutionHandler.cs68
-rw-r--r--extras/PyBinding/PyBinding/PyBinding/PythonHelper.cs155
-rw-r--r--extras/PyBinding/PyBinding/PyBinding/PythonLanguageBinding.cs77
-rw-r--r--extras/PyBinding/PyBinding/PyBinding/PythonProject.cs180
-rw-r--r--extras/PyBinding/PyBinding/PyBinding/PythonProjectBinding.cs65
-rw-r--r--extras/PyBinding/PyBinding/PyBinding/PythonSite.cs291
-rw-r--r--extras/PyBinding/PyBinding/Resources/BasicScriptPySourceFile.xft.xml56
-rw-r--r--extras/PyBinding/PyBinding/Resources/EmptyDjangoProject.xpt.xml140
-rw-r--r--extras/PyBinding/PyBinding/Resources/EmptyPyProject.xpt.xml33
-rw-r--r--extras/PyBinding/PyBinding/Resources/EmptyPySourceFile.xft.xml21
-rw-r--r--extras/PyBinding/PyBinding/Resources/PyClutterProject.xpt.xml51
-rw-r--r--extras/PyBinding/PyBinding/Resources/PyGtkProject.xpt.xml40
-rw-r--r--extras/PyBinding/PyBinding/Resources/PythonStylePolicy.xml8
-rw-r--r--extras/PyBinding/PyBinding/Resources/Schema.sql11
-rwxr-xr-xextras/PyBinding/PyBinding/Resources/completion.py334
-rw-r--r--extras/PyBinding/PyBinding/Resources/py-icon-32.pngbin1674 -> 0 bytes
-rw-r--r--extras/PyBinding/PyBinding/Resources/text-x-pysrc.16x16.pngbin793 -> 0 bytes
-rw-r--r--extras/PyBinding/PyBinding/gtk-gui/PyBinding.Gui.PythonOptionsWidget.cs240
-rw-r--r--extras/PyBinding/PyBinding/gtk-gui/generated.cs82
-rw-r--r--extras/PyBinding/PyBinding/gtk-gui/gui.stetic350
-rw-r--r--extras/PyBinding/PyBinding/gtk-gui/objects.xml2
-rw-r--r--extras/PyBinding/PyBinding/monodevelop-pybinding.pc.in6
-rw-r--r--extras/PyBinding/README7
-rw-r--r--extras/PyBinding/TODO50
-rwxr-xr-xextras/PyBinding/configure161
-rw-r--r--extras/PyBinding/monodevelop-python.spec.in75
-rw-r--r--extras/PyBinding/rules.make42
-rw-r--r--extras/PythonBinding/AssemblyInfo.cs14
-rw-r--r--extras/PythonBinding/ChangeLog19
-rw-r--r--extras/PythonBinding/Gui/CompilerParametersPanel.cs81
-rw-r--r--extras/PythonBinding/Makefile45
-rw-r--r--extras/PythonBinding/Project/CompilationTarget.cs11
-rw-r--r--extras/PythonBinding/Project/PythonCompilerParameters.cs103
-rw-r--r--extras/PythonBinding/Project/PythonProject.cs41
-rw-r--r--extras/PythonBinding/PythonBinding.addin.xml45
-rw-r--r--extras/PythonBinding/PythonCompilerManager.cs67
-rw-r--r--extras/PythonBinding/PythonExecutionManager.cs52
-rw-r--r--extras/PythonBinding/PythonLanguageBinding.cs129
-rw-r--r--extras/PythonBinding/README7
-rw-r--r--extras/PythonBinding/TODO3
-rw-r--r--extras/PythonBinding/templates/PythonConsoleProject.xpt.xml33
-rw-r--r--extras/PythonBinding/templates/PythonGtkProject.xpt.xml48
-rw-r--r--extras/ValaBinding/AUTHORS2
-rw-r--r--extras/ValaBinding/AssemblyInfo.cs9
-rw-r--r--extras/ValaBinding/COPYING19
-rw-r--r--extras/ValaBinding/ChangeLog628
-rw-r--r--extras/ValaBinding/Compiler/ICompiler.cs63
-rw-r--r--extras/ValaBinding/Compiler/ValaCompiler.cs644
-rw-r--r--extras/ValaBinding/Gui/AddLibraryDialog.cs79
-rw-r--r--extras/ValaBinding/Gui/AddPathDialog.cs74
-rw-r--r--extras/ValaBinding/Gui/CodeGenerationPanel.cs292
-rw-r--r--extras/ValaBinding/Gui/CompilationUnitDataProvider.cs98
-rw-r--r--extras/ValaBinding/Gui/DataProvider.cs118
-rw-r--r--extras/ValaBinding/Gui/EditPackagesDialog.cs498
-rw-r--r--extras/ValaBinding/Gui/GeneralOptionsPanel.cs128
-rw-r--r--extras/ValaBinding/Gui/OutputOptionsPanel.cs114
-rw-r--r--extras/ValaBinding/Gui/PackageDetails.cs90
-rw-r--r--extras/ValaBinding/Gui/ParameterDataProvider.cs286
-rw-r--r--extras/ValaBinding/Gui/ValaTextEditorExtension.cs424
-rw-r--r--extras/ValaBinding/Makefile.am106
-rw-r--r--extras/ValaBinding/Makefile.am.intree86
-rw-r--r--extras/ValaBinding/MonoDevelop.ValaBinding.dll.config4
-rw-r--r--extras/ValaBinding/NEWS0
-rw-r--r--extras/ValaBinding/Navigation/ClassPadEventArgs.cs53
-rw-r--r--extras/ValaBinding/Navigation/LanguageItemCommandHandler.cs62
-rw-r--r--extras/ValaBinding/Navigation/LanguageItemEventArgs.cs54
-rw-r--r--extras/ValaBinding/Navigation/LanguageItemNodeBuilder.cs113
-rw-r--r--extras/ValaBinding/Navigation/ProjectNodeBuilderExtension.cs141
-rw-r--r--extras/ValaBinding/Parser/Afrodite.cs1176
-rw-r--r--extras/ValaBinding/Parser/ProjectInformation.cs416
-rw-r--r--extras/ValaBinding/Parser/ProjectInformationManager.cs78
-rw-r--r--extras/ValaBinding/Parser/ValaDocumentParser.cs117
-rw-r--r--extras/ValaBinding/Parser/ValaParsedDocument.cs46
-rw-r--r--extras/ValaBinding/Project/MakefileHandler.cs77
-rw-r--r--extras/ValaBinding/Project/ProjectPackage.cs294
-rw-r--r--extras/ValaBinding/Project/ProjectPackageCollection.cs127
-rw-r--r--extras/ValaBinding/Project/ProjectPackageEventArgs.cs58
-rw-r--r--extras/ValaBinding/Project/ValaCompilationParameters.cs111
-rw-r--r--extras/ValaBinding/Project/ValaProject.cs547
-rw-r--r--extras/ValaBinding/Project/ValaProjectBinding.cs74
-rw-r--r--extras/ValaBinding/Project/ValaProjectConfiguration.cs166
-rw-r--r--extras/ValaBinding/Project/ValaProjectServiceExtension.cs77
-rw-r--r--extras/ValaBinding/ProjectPad/ProjectNodeExtension.cs59
-rw-r--r--extras/ValaBinding/ProjectPad/ProjectPackageNodeBuilder.cs108
-rw-r--r--extras/ValaBinding/ProjectPad/ProjectPackagesFolderNodeBuilder.cs204
-rw-r--r--extras/ValaBinding/ProjectPad/ProjectReferencesExtension.cs57
-rw-r--r--extras/ValaBinding/README8
-rw-r--r--extras/ValaBinding/ValaBinding.addin.xml156
-rw-r--r--extras/ValaBinding/ValaBinding.csproj237
-rw-r--r--extras/ValaBinding/ValaBinding.sln39
-rw-r--r--extras/ValaBinding/ValaLanguageBinding.cs75
-rwxr-xr-xextras/ValaBinding/autogen.sh81
-rw-r--r--extras/ValaBinding/configure.in111
-rw-r--r--extras/ValaBinding/gtk-gui/MonoDevelop.ValaBinding.AddLibraryDialog.cs72
-rw-r--r--extras/ValaBinding/gtk-gui/MonoDevelop.ValaBinding.AddPathDialog.cs73
-rw-r--r--extras/ValaBinding/gtk-gui/MonoDevelop.ValaBinding.CodeGenerationPanel.cs588
-rw-r--r--extras/ValaBinding/gtk-gui/MonoDevelop.ValaBinding.EditPackagesDialog.cs268
-rw-r--r--extras/ValaBinding/gtk-gui/MonoDevelop.ValaBinding.GeneralOptionsPanel.cs52
-rw-r--r--extras/ValaBinding/gtk-gui/MonoDevelop.ValaBinding.OutputOptionsPanel.cs193
-rw-r--r--extras/ValaBinding/gtk-gui/MonoDevelop.ValaBinding.PackageDetails.cs193
-rw-r--r--extras/ValaBinding/gtk-gui/generated.cs116
-rw-r--r--extras/ValaBinding/gtk-gui/gui.stetic1791
-rw-r--r--extras/ValaBinding/gtk-gui/objects.xml2
-rw-r--r--extras/ValaBinding/icons/Icons.16x16.PrivateUnionbin544 -> 0 bytes
-rw-r--r--extras/ValaBinding/icons/Icons.16x16.ProjectReferencebin374 -> 0 bytes
-rw-r--r--extras/ValaBinding/icons/Icons.16x16.ProtectedUnionbin500 -> 0 bytes
-rw-r--r--extras/ValaBinding/icons/Icons.16x16.Unionbin338 -> 0 bytes
-rw-r--r--extras/ValaBinding/icons/text-x-vala.16x16.pngbin664 -> 0 bytes
-rw-r--r--extras/ValaBinding/icons/text-x-vala.24x24.pngbin940 -> 0 bytes
-rw-r--r--extras/ValaBinding/icons/text-x-vala.32x32.pngbin1378 -> 0 bytes
-rw-r--r--extras/ValaBinding/icons/text-x-vala.48x48.pngbin1947 -> 0 bytes
-rw-r--r--extras/ValaBinding/icons/vala-icon-32.pngbin747 -> 0 bytes
-rw-r--r--extras/ValaBinding/icons/vala-icon-base.xcfbin7014 -> 0 bytes
-rw-r--r--extras/ValaBinding/monodevelop-vala.spec.in67
-rw-r--r--extras/ValaBinding/templates/ConsoleValaProject.xpt.xml40
-rw-r--r--extras/ValaBinding/templates/EmptyValaProject.xpt.xml28
-rw-r--r--extras/ValaBinding/templates/EmptyValaSourceFile.xft.xml22
-rw-r--r--extras/ValaBinding/templates/Makefile.am.template23
-rw-r--r--extras/ValaBinding/templates/Makefile.template26
-rw-r--r--extras/ValaBinding/templates/SharedLibraryValaProject.xpt.xml33
-rw-r--r--extras/ValaBinding/templates/ValaTestFixture.xpt.xml48
-rw-r--r--extras/WebKitWebBrowser/AssemblyInfo.cs9
-rw-r--r--extras/WebKitWebBrowser/Makefile72
-rw-r--r--extras/WebKitWebBrowser/Makefile.include110
-rw-r--r--extras/WebKitWebBrowser/MonoDevelop.WebBrowsers.WebKitWebBrowser.addin.xml18
-rw-r--r--extras/WebKitWebBrowser/WebKitWebBrowser.cs171
-rw-r--r--extras/WebKitWebBrowser/WebKitWebBrowser.csproj60
-rw-r--r--extras/WebKitWebBrowser/WebKitWebBrowser.make112
-rw-r--r--extras/WebKitWebBrowser/WebKitWebBrowserLoader.cs47
-rwxr-xr-xextras/WebKitWebBrowser/configure159
-rw-r--r--extras/WebKitWebBrowser/monodevelop-webkitwebbrowser.pc.in6
-rw-r--r--extras/WebKitWebBrowser/rules.make42
791 files changed, 0 insertions, 100368 deletions
diff --git a/extras/AspNetEdit/AspNetEdit.Editor.ComponentModel/DesignContainer.cs b/extras/AspNetEdit/AspNetEdit.Editor.ComponentModel/DesignContainer.cs
deleted file mode 100644
index 29ed452792..0000000000
--- a/extras/AspNetEdit/AspNetEdit.Editor.ComponentModel/DesignContainer.cs
+++ /dev/null
@@ -1,400 +0,0 @@
- /*
- * DesignContainer.cs - Tracks ASP.NET controls in the DesignerHost
- *
- * Authors:
- * Michael Hutchinson <m.j.hutchinson@gmail.com>
- *
- * Copyright (C) 2005 Michael Hutchinson
- *
- * This sourcecode is licenced under The MIT License:
- *
- * Permission is hereby granted, free of charge, to any person obtaining
- * a copy of this software and associated documentation files (the
- * "Software"), to deal in the Software without restriction, including
- * without limitation the rights to use, copy, modify, merge, publish,
- * distribute, sublicense, and/or sell copies of the Software, and to permit
- * persons to whom the Software is furnished to do so, subject to the
- * following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
- * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
- * NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
- * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
- * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
- * USE OR OTHER DEALINGS IN THE SOFTWARE.
- */
-
-
-using System;
-using System.ComponentModel;
-using System.ComponentModel.Design;
-using System.ComponentModel.Design.Serialization;
-using System.Collections;
-using System.Web.UI;
-
-namespace AspNetEdit.Editor.ComponentModel
-{
-
- internal class DesignContainer : IContainer, IComponentChangeService
- {
- public DesignContainer (DesignerHost host)
- {
- this.host = host;
- this.designers = new Hashtable ();
- this.components = new ArrayList ();
- }
-
- #region IContainer Members
-
- private DesignerHost host;
- private Hashtable designers;
- private ArrayList components;
-
- public void Add (IComponent component)
- {
- Add (component, null);
- }
-
- public void Add (IComponent component, string name)
- {
- IDesigner designer = null;
-
- //input checks
- if (component == null)
- throw new ArgumentException ("Cannot add null component to container", "component");
- if (!(component is Control))
- throw new ArgumentException ("This Container only accepts System.Web.UI.Control-derived components", "component");
- if (component.Site != null && component.Site.Container != this)
- component.Site.Container.Remove (component);
-
- //Check the name and create one if necessary
- INameCreationService nameService = host.GetService (typeof (INameCreationService)) as INameCreationService;
- if (nameService == null)
- throw new Exception ("The container must have access to a INameCreationService implementation");
-
- if (name == null || !nameService.IsValidName (name)) {
- name = nameService.CreateName (this, component.GetType ());
- System.Diagnostics.Trace.WriteLine("Generated name for component: "+name);
- }
-
- //check we don't already have component with same name
- if (GetComponent (name) != null)
- throw new ArgumentException ("There is already a component with this name in the container", "name");
-
- //we're definately adding it now, so broadcast
- OnComponentAdding (component);
-
- //get a site and set ID property
- //this way (not PropertyDescriptor.SetValue) won't fire change events
- ((Control) component).ID = name;
- component.Site = new DesignSite (component, this);
-
- //Get designer. If first component, designer must be an IRootDesigner
- if (components.Count == 0)
- {
- host.SetRootComponent (component);
- designer = new RootDesigner (component);
- }
-
- //FIXME: Give Mono some base designers to find! We should never encounter this!
- //else
- // designer = TypeDescriptor.CreateDesigner (component, typeof(System.ComponentModel.Design.IDesigner));
-
-
- if (designer == null) {
- //component.Site = null;
- //throw new Exception ("Designer could not be obtained for this component.");
- }
- else
- {
- //track and initialise it
- designers.Add (component, designer);
- designer.Initialize (component);
- }
-
- //add references to referenceManager, unless root component
- if (components.Count != 1)
- host.WebFormReferenceManager.AddReference (component.GetType ());
-
- //Finally put in container
- components.Add (component);
-
- //and broadcast completion
- OnComponentAdded (component);
- }
-
- internal IDesigner GetDesigner (IComponent component)
- {
- if (GetComponent (component.Site.Name) == null)
- return null;
- //throw new ArgumentException ("That component is not in the container", "component");
- return designers[component] as IDesigner;
- }
-
- public IComponent GetComponent (string name)
- {
- foreach (IComponent component in components)
- if (component.Site.Name == name)
- return component;
- return null;
- }
-
-
- protected System.Object GetService (System.Type service)
- {
- return host.GetService (service);
- }
-
- public void Remove (System.ComponentModel.IComponent component)
- {
- //safety checks
- if (component == null)
- throw new ArgumentNullException ("component");
- if (component.Site == null || component.Site.Container != this)
- throw new ArgumentException ("Component is not sited in this container");
-
- //broadcast start of removal process
- OnComponentRemoving (component);
-
- //clean up component and designer
- components.Remove (component);
- IDesigner designer = GetDesigner (component);
- if (designer != null)
- {
- designers.Remove (component);
- designer.Dispose ();
- }
- component.Site = null;
-
- //if someone tries to kill root component, must destroy all children too
- if (component == host.RootComponent)
- {
- //clean everything up
- foreach (System.Web.UI.Control control in Components)
- host.DestroyComponent (control);
- host.SetRootComponent (null);
- host.Reset ();
- }
-
- //TODO: remove references from referenceManager
-
- //clean up selection service
- ISelectionService sel = (ISelectionService) this.GetService (typeof (ISelectionService));
- if (sel != null && sel.GetComponentSelected (component))
- sel.SetSelectedComponents (new IComponent[] {});
-
- //broadcast completion of removal process
- OnComponentRemoved (component);
- }
-
- public ComponentCollection Components {
- get { return new ComponentCollection ((IComponent[]) components.ToArray(typeof (IComponent))); }
- }
-
- #endregion
-
- #region IComponentChangeService Members
-
- public event ComponentEventHandler ComponentAdded;
-
- public event ComponentEventHandler ComponentAdding;
-
- public event ComponentChangedEventHandler ComponentChanged;
-
- public event ComponentChangingEventHandler ComponentChanging;
-
- public event ComponentEventHandler ComponentRemoved;
-
- public event ComponentEventHandler ComponentRemoving;
-
- public event ComponentRenameEventHandler ComponentRename;
-
- public void OnComponentChanged(object component, MemberDescriptor member, object oldValue, object newValue)
- {
- if (oldValue == newValue)
- return;
-
- //the names of components in this container are actually the same as their IDs
- //so if a change to the ID occurs, we hook in and change it back if not valid
- if(component is Control && ((Control) component).Site.Container == this && member.Name == "ID") {
- //check name is valid
- bool goodVal = true;
- if (newValue == null || !(newValue is String))
- goodVal = false;
- else
- foreach (IComponent Comp in this.Components)
- if (Comp != component && Comp.Site != null && Comp.Site.Name == ((string) newValue))
- goodVal = false;
-
- if (goodVal)
- //success, raise change event
- OnComponentRename (component, (string) oldValue, (string) newValue);
- else
- //bad value, change back
- ((PropertyDescriptor) member).SetValue (component, oldValue);
- }
-
- if (ComponentChanged != null)
- ComponentChanged (this, new ComponentChangedEventArgs (component, member, oldValue, newValue));
-
- }
-
- public void OnComponentChanging (object component, MemberDescriptor member)
- {
- if (ComponentChanging != null)
- ComponentChanging (this, new ComponentChangingEventArgs (component, member));
- }
-
- protected void OnComponentAdded(IComponent component)
- {
- if (ComponentAdded != null)
- ComponentAdded (this, new ComponentEventArgs(component));
- }
-
- protected void OnComponentAdding(IComponent component)
- {
- if (ComponentAdding != null)
- ComponentAdding (this, new ComponentEventArgs(component));
- }
-
- protected void OnComponentRemoved(IComponent component)
- {
- if (ComponentRemoved != null)
- ComponentRemoved (this, new ComponentEventArgs(component));
- }
-
- protected void OnComponentRemoving (IComponent component)
- {
- if (ComponentRemoving != null)
- ComponentRemoving (this, new ComponentEventArgs(component));
- }
-
- protected void OnComponentRename(object component, string oldName, string newName)
- {
- host.RootDocument.RenameControl (oldName, newName);
-
- if (ComponentRename != null)
- ComponentRename (this, new ComponentRenameEventArgs (component, oldName, newName));
- }
-
- #endregion
-
- //the ISite implementation we use to site the components in this container
- //IDictionaryService is site-specific, so why not implement in site
- private class DesignSite : ISite, IDictionaryService
- {
- private DesignContainer container;
- private IComponent component;
-
- public DesignSite (IComponent component, DesignContainer container)
- {
- this.container = container;
- this.component = component;
- }
-
- #region ISite Members
-
- public IComponent Component {
- get { return component; }
- }
-
- public IContainer Container {
- get { return container; }
- }
-
- public bool DesignMode {
- get { return true; }
- }
-
- public string Name {
- get { return ((Control) component).ID; }
- set { ((Control) component).ID = value; }
- }
-
- #endregion
-
- #region IServiceProvider Members
-
- public object GetService (Type serviceType) {
- if (serviceType == typeof (IDictionaryService)) {
- if (dict == null)
- dict = new Hashtable ();
- return this;
- }
- return container.GetService (serviceType);
- }
-
- #endregion
-
- #region IDictionaryService members
-
- private Hashtable dict = null;
-
- public void SetValue (object key, object value)
- {
- //TODO: more efficient, but is behaviour as expected?
- //if ((value == null) && (dict.ContainsKey (key)))
- // dict.Remove (key);
- //else
- dict[key] = value;
- }
-
- public object GetValue (object key)
- {
- return dict[key];
- }
-
- public object GetKey (object value)
- {
- foreach (DictionaryEntry entry in dict)
- if (entry.Value == value)
- return entry.Key;
- return null;
- }
-
-
- #endregion
- }
-
- #region IDisposable Members
-
- private bool disposed = false;
-
- public void Dispose ()
- {
- this.Dispose (true);
- }
-
- public void Dispose (bool disposing)
- {
- if (disposed)
- return;
- disposed = true;
-
- if (disposing)
- {
- foreach (IComponent comp in components)
- comp.Dispose ();
- components.Clear ();
-
- foreach (IDesigner des in designers)
- des.Dispose ();
- designers.Clear ();
-
- this.components = null;
- this.designers = null;
- }
- }
-
- ~DesignContainer ()
- {
- this.Dispose (false);
- }
-
- #endregion
-}
-}
diff --git a/extras/AspNetEdit/AspNetEdit.Editor.ComponentModel/DesignerHost.cs b/extras/AspNetEdit/AspNetEdit.Editor.ComponentModel/DesignerHost.cs
deleted file mode 100644
index c456a9fa99..0000000000
--- a/extras/AspNetEdit/AspNetEdit.Editor.ComponentModel/DesignerHost.cs
+++ /dev/null
@@ -1,444 +0,0 @@
- /*
- * DesignerHost.cs - IDesignerHost implementation. Designer transactions
- * and service host. One level up from DesignContainer, tracks RootComponent.
- *
- * Authors:
- * Michael Hutchinson <m.j.hutchinson@gmail.com>
- *
- * Copyright (C) 2005 Michael Hutchinson
- *
- * This sourcecode is licenced under The MIT License:
- *
- * Permission is hereby granted, free of charge, to any person obtaining
- * a copy of this software and associated documentation files (the
- * "Software"), to deal in the Software without restriction, including
- * without limitation the rights to use, copy, modify, merge, publish,
- * distribute, sublicense, and/or sell copies of the Software, and to permit
- * persons to whom the Software is furnished to do so, subject to the
- * following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
- * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
- * NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
- * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
- * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
- * USE OR OTHER DEALINGS IN THE SOFTWARE.
- */
-
-using System;
-using System.ComponentModel;
-using System.ComponentModel.Design;
-using System.Reflection;
-using System.Collections;
-using System.Drawing.Design;
-using System.IO;
-using System.Web.UI;
-using System.Web.UI.Design;
-using AspNetEdit.Editor.Persistence;
-
-namespace AspNetEdit.Editor.ComponentModel
-{
- public class DesignerHost : IDesignerHost, IDisposable
- {
- private ServiceContainer parentServices;
- private WebFormReferenceManager referenceManager;
-
- public DesignerHost (ServiceContainer parentServices)
- {
- this.parentServices = parentServices;
- container = new DesignContainer (this);
- referenceManager = new WebFormReferenceManager (this);
-
- //register services
- parentServices.AddService (typeof (IDesignerHost), this);
- parentServices.AddService (typeof (IComponentChangeService), container);
- parentServices.AddService (typeof (IWebFormReferenceManager), referenceManager);
- }
-
- public WebFormReferenceManager WebFormReferenceManager
- {
- get { return referenceManager; }
- }
-
- #region Component management
-
- private DesignContainer container;
- private IComponent rootComponent = null;
- private Document rootDocument;
-
- public IContainer Container
- {
- get { return container; }
- }
-
- public IComponent CreateComponent (Type componentClass, string name)
- {
- //add to document, unless loading
- bool addToDoc = (this.RootDocument != null);
- return CreateComponent (componentClass, name, addToDoc);
- }
-
- internal IComponent CreateComponent (Type componentClass, string name, bool addToDoc)
- {
- System.Diagnostics.Trace.WriteLine("Attempting to create component "+name);
- //check arguments
- if (componentClass == null)
- throw new ArgumentNullException ("componentClass");
- if (!componentClass.IsSubclassOf (typeof (System.Web.UI.Control)) && componentClass != typeof (System.Web.UI.Control))
- throw new ArgumentException ("componentClass must be a subclass of System.Web.UI.Control, but is a " + componentClass.ToString (), "componentClass");
-
- if (componentClass.IsSubclassOf (typeof (System.Web.UI.Page)))
- throw new InvalidOperationException ("You cannot directly add a page to the host. Use NewFile() instead");
-
- //create the object
- IComponent component = (IComponent) Activator.CreateInstance (componentClass);
-
- //and add to container
- container.Add (component, name);
-
- if (addToDoc) {
- ((Control)RootComponent).Controls.Add ((Control) component);
- RootDocument.AddControl ((Control)component);
-
- //select it
- ISelectionService sel = this.GetService (typeof (ISelectionService)) as ISelectionService;
- if (sel != null)
- sel.SetSelectedComponents (new IComponent[] {component});
- }
-
- System.Diagnostics.Trace.WriteLine("Created component "+name);
- return component;
- }
-
- public IComponent CreateComponent (Type componentClass)
- {
- return CreateComponent (componentClass, null);
- }
-
- public void DestroyComponent (IComponent component)
- {
- //deselect it if selected
- ISelectionService sel = this.GetService (typeof (ISelectionService)) as ISelectionService;
- bool found = false;
- if (sel != null)
- foreach (IComponent c in sel.GetSelectedComponents ())
- if (c == component) {
- found = true;
- break;
- }
- //can't modify selection in loop
- if (found) sel.SetSelectedComponents (null);
-
- if (component != RootComponent) {
- //remove from component and document
- ((Control) RootComponent).Controls.Remove ((Control) component);
- RootDocument.RemoveControl ((Control)component);
- }
-
- //remove from container if still sited
- if (component.Site != null)
- container.Remove (component);
-
- component.Dispose ();
- }
-
- public IDesigner GetDesigner (IComponent component)
- {
- if (component == null)
- throw new ArgumentNullException ("component");
- else
- return container.GetDesigner (component);
- }
-
- public Type GetType (string typeName)
- {
- //use ITypeResolutionService if we have it, else Type.GetType();
- object typeResSvc = GetService (typeof (ITypeResolutionService));
- if (typeResSvc != null)
- return (typeResSvc as ITypeResolutionService).GetType (typeName);
- else
- return Type.GetType (typeName);
- }
-
- public IComponent RootComponent {
- get { return rootComponent; }
- }
-
- public Document RootDocument
- {
- get { return rootDocument; }
- }
-
- internal void SetRootComponent (IComponent rootComponent)
- {
- this.rootComponent = rootComponent;
- if (rootComponent == null) {
- rootDocument = null;
- return;
- }
-
- if (!(rootComponent is Control))
- throw new InvalidOperationException ("The root component must be a Control");
- }
-
- public string RootComponentClassName {
- get { return RootComponent.GetType ().Name; }
- }
-
- #endregion
-
- #region Transaction stuff
-
- private Stack transactionStack = new Stack ();
-
- public DesignerTransaction CreateTransaction (string description)
- {
- OnTransactionOpening ();
- Transaction trans = new Transaction (this, description);
- transactionStack.Push (trans);
- OnTransactionOpened ();
-
- return trans;
- }
-
- public DesignerTransaction CreateTransaction ()
- {
- return CreateTransaction (null);
- }
-
- public bool InTransaction
- {
- get { return (transactionStack.Count > 0); }
- }
-
- public string TransactionDescription
- {
- get {
- if (transactionStack.Count == 0)
- return null;
- else
- return (transactionStack.Peek () as DesignerTransaction).Description;
- }
- }
-
- public event DesignerTransactionCloseEventHandler TransactionClosed;
- public event DesignerTransactionCloseEventHandler TransactionClosing;
- public event EventHandler TransactionOpened;
- public event EventHandler TransactionOpening;
-
- internal void OnTransactionClosed (bool commit, DesignerTransaction trans)
- {
- DesignerTransaction t = (DesignerTransaction) transactionStack.Pop();
- if (t != trans)
- throw new Exception ("Transactions cannot be closed out of order");
-
- if (TransactionClosed != null)
- TransactionClosed (this, new DesignerTransactionCloseEventArgs(commit));
- }
-
- internal void OnTransactionClosing (bool commit)
- {
- if (TransactionClosing != null)
- TransactionClosing (this, new DesignerTransactionCloseEventArgs(commit));
- }
-
- protected void OnTransactionOpening()
- {
- if (TransactionOpening != null)
- TransactionOpening (this, EventArgs.Empty);
- }
-
- protected void OnTransactionOpened ()
- {
- if (TransactionOpened != null)
- TransactionOpened (this, EventArgs.Empty);
- }
-
- #endregion
-
- #region Loading etc
-
- private bool loading = false;
- private bool activated = false;
-
- public event EventHandler Activated;
- public event EventHandler Deactivated;
- public event EventHandler LoadComplete;
-
- public void Activate ()
- {
- if (activated)
- throw new InvalidOperationException ("The host is already activated");
-
- //select the root component
- ISelectionService sel = GetService (typeof (ISelectionService)) as ISelectionService;
- if (sel == null)
- throw new Exception ("Could not obtain ISelectionService.");
- if (this.RootComponent == null)
- throw new InvalidOperationException ("The document must be loaded before the host can be activated");
- sel.SetSelectedComponents (new object[] {this.RootComponent});
-
- activated = true;
- OnActivated ();
- }
-
- public bool Loading {
- get { return loading; }
- }
-
- protected void OnLoadComplete ()
- {
- if (LoadComplete != null)
- LoadComplete (this, EventArgs.Empty);
- }
-
- protected void OnActivated ()
- {
- if (Activated != null)
- Activated (this, EventArgs.Empty);
- }
-
- protected void OnDeactivated ()
- {
- if (Deactivated != null)
- Deactivated (this, EventArgs.Empty);
- }
-
- #endregion
-
- #region Wrapping parent ServiceContainer
-
- public void AddService (Type serviceType, ServiceCreatorCallback callback, bool promote)
- {
- parentServices.AddService (serviceType, callback, promote);
- }
-
- public void AddService (Type serviceType, object serviceInstance, bool promote)
- {
- parentServices.AddService (serviceType, serviceInstance, promote);
- }
-
- public void AddService (Type serviceType, ServiceCreatorCallback callback)
- {
- parentServices.AddService (serviceType, callback);
- }
-
- public void AddService (Type serviceType, object serviceInstance)
- {
- parentServices.AddService (serviceType, serviceInstance);
- }
-
- public void RemoveService (Type serviceType, bool promote)
- {
- parentServices.RemoveService (serviceType, promote);
- }
-
- public void RemoveService (Type serviceType)
- {
- parentServices.RemoveService (serviceType);
- }
-
- public object GetService (Type serviceType)
- {
- object service = parentServices.GetService (serviceType);
- if (service != null)
- return service;
- else
- return null;
- }
-
- #endregion
-
- #region IDisposable Members
-
- private bool disposed = false;
-
- public void Dispose ()
- {
- if (!this.disposed) {
- //clean up the services we've registered
- parentServices.RemoveService (typeof (IComponentChangeService));
- parentServices.RemoveService (typeof (IDesignerHost));
-
- //and the container
- container.Dispose ();
-
- disposed = true;
- }
- }
-
- #endregion
-
-
- public void NewFile ()
- {
- if (activated || RootComponent != null)
- throw new InvalidOperationException ("You must reset the host before loading another file.");
- loading = true;
-
- this.Container.Add (new WebFormPage ());
- this.rootDocument = new Document ((Control)rootComponent, this, "New Document");
-
- loading = false;
- OnLoadComplete ();
- }
-
- public void Load (Stream file, string fileName)
- {
- using (TextReader reader = new StreamReader (file))
- {
- Load (reader.ReadToEnd (), fileName);
- }
- }
-
- public void Load (string document, string fileName)
- {
- if (activated || RootComponent != null)
- throw new InvalidOperationException ("You must reset the host before loading another file.");
- loading = true;
-
- this.Container.Add (new WebFormPage());
- this.rootDocument = new Document ((Control)rootComponent, this, document, fileName);
-
- loading = false;
- OnLoadComplete ();
- }
-
- public void Reset ()
- {
- //container automatically destroys all children when this happens
- if (rootComponent != null)
- DestroyComponent (rootComponent);
-
- if (activated) {
- OnDeactivated ();
- this.activated = false;
- }
- }
-
- public void SaveDocumentToFile (Stream file)
- {
- StreamWriter writer = new StreamWriter (file);
-
- writer.Write(RootDocument.PersistDocument ());
- writer.Flush ();
- }
-
- public string PersistDocument ()
- {
- return RootDocument.PersistDocument ();
- }
-
- /*TODO: Some .NET 2.0 System.Web.UI.Design.WebFormsRootDesigner methods
- public abstract void RemoveControlFromDocument(Control control);
- public virtual void SetControlID(Control control, string id);
- public abstract string AddControlToDocument(Control newControl, Control referenceControl, ControlLocation location);
- public virtual string GenerateEmptyDesignTimeHtml(Control control);
- public virtual string GenerateErrorDesignTimeHtml(Control control, Exception e, string errorMessage);
- */
- }
-}
diff --git a/extras/AspNetEdit/AspNetEdit.Editor.ComponentModel/Document.cs b/extras/AspNetEdit/AspNetEdit.Editor.ComponentModel/Document.cs
deleted file mode 100644
index 11cda93139..0000000000
--- a/extras/AspNetEdit/AspNetEdit.Editor.ComponentModel/Document.cs
+++ /dev/null
@@ -1,481 +0,0 @@
-/*
-* Document.cs - Represents the DesignerHost's document
-*
-* Authors:
-* Michael Hutchinson <m.j.hutchinson@gmail.com>
-*
-* Copyright (C) 2005 Michael Hutchinson
-*
-* This sourcecode is licenced under The MIT License:
-*
-* Permission is hereby granted, free of charge, to any person obtaining
-* a copy of this software and associated documentation files (the
-* "Software"), to deal in the Software without restriction, including
-* without limitation the rights to use, copy, modify, merge, publish,
-* distribute, sublicense, and/or sell copies of the Software, and to permit
-* persons to whom the Software is furnished to do so, subject to the
-* following conditions:
-*
-* The above copyright notice and this permission notice shall be included in
-* all copies or substantial portions of the Software.
-*
-* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
-* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
-* NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
-* DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
-* OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
-* USE OR OTHER DEALINGS IN THE SOFTWARE.
-*/
-
-using System;
-using System.Text;
-using System.Web.UI;
-using System.Web.UI.WebControls;
-using System.IO;
-using System.ComponentModel.Design;
-using System.Collections;
-using AspNetEdit.Editor.Persistence;
-using System.ComponentModel;
-using AspNetEdit.Editor.ComponentModel;
-using System.Globalization;
-using AspNetEdit.Editor.UI;
-using System.Reflection;
-
-namespace AspNetEdit.Editor.ComponentModel
-{
- public class Document
- {
- public static readonly string newDocument = "<html>\n<head>\n\t<title>{0}</title>\n</head>\n<body>\n<form runat=\"server\">\n\n</form></body>\n</html>";
- public static readonly string ControlSubstituteStructure = "<aspcontrol id=\"{0}\" width=\"{1}\" height=\"{2}\" -md-can-drop=\"{3}\" -md-can-resize=\"{4}\">{5}</aspcontrol>";
- public static readonly string DirectivePlaceholderStructure = "<directiveplaceholder id=\"{0}\" />";
-
- string document;
- Hashtable directives;
- private int directivePlaceholderKey = 0;
-
- private Control parent;
- private DesignerHost host;
- private RootDesignerView view;
- private DesignTimeParser aspParser;
-
- ///<summary>Creates a new document</summary>
- public Document (Control parent, DesignerHost host, string documentName)
- {
- initDocument (parent, host);
- this.document = String.Format (newDocument, documentName);
- GetView ();
- }
-
- ///<summary>Creates a document from an existing file</summary>
- public Document (Control parent, DesignerHost host, string document, string fileName)
- {
- initDocument (parent, host);
-
- Control[] controls;
- aspParser.ProcessFragment (document, out controls, out this.document);
- GetView ();
- }
-
- private void initDocument (Control parent, DesignerHost host)
- {
- System.Diagnostics.Trace.WriteLine ("Creating document...");
- if (!(parent is WebFormPage))
- throw new NotImplementedException ("Only WebFormsPages can have a document for now");
- this.parent = parent;
- this.host = host;
-
- if (!host.Loading)
- throw new InvalidOperationException ("The document cannot be initialised or loaded unless the host is loading");
-
- CaseInsensitiveHashCodeProvider provider = new CaseInsensitiveHashCodeProvider(CultureInfo.InvariantCulture);
- CaseInsensitiveComparer comparer = new CaseInsensitiveComparer(CultureInfo.InvariantCulture);
- directives = new Hashtable (provider, comparer);
-
- this.aspParser = new DesignTimeParser (host, this);
- }
-
- private void GetView ()
- {
- IRootDesigner rd = (IRootDesigner) host.GetDesigner (host.RootComponent);
- this.view = (RootDesignerView) rd.GetView (ViewTechnology.Passthrough);
-
- view.BeginLoad ();
- System.Diagnostics.Trace.WriteLine ("Document created.");
- }
-
- #region Some Gecko communication stuff
-
- //we don't want to have the document lying around forever, but we
- //want the RootDesignerview to be able to get it when Gecko XUL loads
- public string GetLoadedDocument ()
- {
- if (document == null)
- throw new Exception ("The document has already been retrieved");
- //TODO: substitute all components
- string doc = document;
- document = null;
- return doc;
- }
-
- ///<summary>Serialises the entire document to ASP.NET code</summary>
- public string PersistDocument ()
- {
- StringBuilder builder = new StringBuilder(this.Serialize (view.GetDocument ()));
-
- //insert all remaining directives
- for (int i = 0; i <= directivePlaceholderKey; i++)
- {
- builder.Insert (0, RemoveDirective(i));
- }
-
- return builder.ToString ();
- }
-
- public void DoCommand (string editorCommand)
- {
- view.DoCommand (editorCommand);
- }
-
- #endregion
-
- #region Serialisation stuff
-
- ///<summary>Converts a designer document fragment to ASP.NET code</summary>
- public string Serialize (string designerDocumentFragment)
- {
- if (host == null)
- throw new Exception("The document cannot be persisted without a host");
-
- string serializedDoc = string.Empty;
- StringWriter writer = new StringWriter ();
-
- //keep method argument meaningfully named, but keep code readable!
- string frag = designerDocumentFragment;
- int length = frag.Length;
-
- int pos = 0;
- SMode mode = SMode.Free;
-
- while (pos < length)
- {
- char c = frag [pos];
-
- switch (mode)
- {
- //it's freely copying to output, but watching for a directive or control placeholder
- case SMode.Free:
- if (c == '<')
- {
- if ((pos + 10 < length) && frag.Substring (pos + 1, 10) == "aspcontrol") {
- mode = SMode.ControlId;
- pos += 10;
- break;
- }
- else if ((pos + 20 < length) && frag.Substring (pos + 1, 20) == "directiveplaceholder") {
- mode = SMode.DirectiveId;
- pos += 20;
- break;
- }
- }
-
- writer.Write (c);
- break;
-
- //it's found a directive placeholder and is scanning for the ID
- case SMode.DirectiveId:
- if (c == 'i' && (pos + 4 < length) && frag.Substring (pos, 4) == "id=\"") {
- int idEnd = frag.IndexOf ('"', pos + 4 + 1);
- if (idEnd == -1) throw new Exception ("Identifier was unterminated");
- int id = Int32.Parse (frag.Substring (pos + 4, (idEnd - pos - 4)));
-
- //TODO: more intelligent removal/copying of directives in case of fragments
- //works fine with whole document.
- string directive = RemoveDirective (id);
- writer.Write (directive);
-
- mode = SMode.DirectiveEnd;
- pos = idEnd;
- }
- break;
-
- //it's found a control placeholder and is scanning for the ID
- case SMode.ControlId:
- if (c == 'i' && (pos + 4 < length) && frag.Substring (pos, 4) == "id=\"") {
- int idEnd = frag.IndexOf("\"", pos + 4);
- if (idEnd == -1) throw new Exception ("Identifier was unterminated");
- string id = frag.Substring (pos + 4, (idEnd - pos - 4));
-
- DesignContainer dc = (DesignContainer) host.Container;
- Control control = dc.GetComponent (id) as Control;
- if (control == null) throw new Exception ("Could not retrieve control "+id);
- ControlPersister.PersistControl (writer, control);
-
- mode = SMode.ControlEnd;
- pos = idEnd;
- }
- break;
-
- //it's found the control's ID and is looking for the end
- case SMode.ControlEnd:
- if (c == '<' && (pos + 13 < length) && frag.Substring (pos, 13) == "</aspcontrol>") {
- pos += 12;
- mode = SMode.Free;
- }
- break;
-
- //it's found the placeholder's ID and is looking for the end
- case SMode.DirectiveEnd:
- if (c == '/' && (pos + 2 < length) && frag.Substring (pos, 2) == "/>") {
- pos += 1;
- mode = SMode.Free;
- }
- break;
- }
-
- pos++;
- }
-
- serializedDoc = writer.ToString ();
- writer.Close ();
-
- return serializedDoc;
- }
-
- public void InitialiseControls (IEnumerable controls)
- {
- foreach (Control c in controls)
- InitialiseControl(c);
- }
-
- public static void InitialiseControl (Control control)
- {
- OnInitMethodInfo.Invoke (control, new object[] {EventArgs.Empty});
- }
-
- //modes for the Serializing parser
- private enum SMode {
- Free,
- ControlId,
- DirectiveId,
- ControlEnd,
- DirectiveEnd
- }
-
- //we need this to invoke protected member before rendering
- private static MethodInfo onPreRenderMethodInfo;
-
- private static MethodInfo OnPreRenderMethodInfo {
- get {
- if (onPreRenderMethodInfo == null)
- onPreRenderMethodInfo =
- typeof (Control).GetMethod ("OnPreRender", BindingFlags.NonPublic|BindingFlags.Instance);
-
- return onPreRenderMethodInfo;
- }
- }
-
- ///<summary>Renders the designer html for an ASP.NET Control</summary>
- public static string RenderDesignerControl (Control control)
- {
- string height = "auto";
- string width = "auto";
- string canResize = "true";
- string canDrop = "false";
- string id = control.UniqueID;
-
- WebControl wc = control as WebControl;
- if (wc != null) {
- height = wc.Height.ToString ();
- width = wc.Width.ToString ();
- }
- else
- {
- canResize = "false";
- }
-
- //TODO: is there a better way to make tiny controls appear a decent size?
- if (height == "" || height == "auto") height = "20px";
- if (width == "" || width == "auto") width = "20px";
-
- //render the control
- //TODO: use designer, when they're written
-
- OnPreRenderMethodInfo.Invoke (control, new object[] {EventArgs.Empty});
- System.IO.StringWriter strWriter = new System.IO.StringWriter ();
- System.Web.UI.HtmlTextWriter writer = new System.Web.UI.HtmlTextWriter (strWriter);
- control.RenderControl (writer);
- writer.Close ();
- strWriter.Flush ();
- string content = strWriter.ToString ();
- strWriter.Close ();
-
- return string.Format (ControlSubstituteStructure, id, width, height, canDrop, canResize, content);
- }
-
- #endregion
-
- //we need this to invoke protected member before rendering
- private static MethodInfo onInitMethodInfo;
-
- private static MethodInfo OnInitMethodInfo {
- get {
- if (onInitMethodInfo == null)
- onInitMethodInfo =
- typeof (Control).GetMethod ("OnInit", BindingFlags.NonPublic|BindingFlags.Instance);
-
- return onInitMethodInfo;
- }
- }
-
- #region add/remove/update controls
-
- bool suppressAddControl = false;
-
- public void AddControl (Control control)
- {
- if (suppressAddControl) return;
-
- System.Console.WriteLine("AddControl method called");
- OnInitMethodInfo.Invoke (control, new object[] {EventArgs.Empty});
- view.AddControl (control);
- }
-
- public void RemoveControl (Control control)
- {
- view.RemoveControl (control);
- }
-
- public void RenameControl (string oldName, string newName)
- {
- view.RenameControl (oldName, newName);
- }
-
- public void InsertFragment (string fragment)
- {
- Control[] controls;
- string doc;
- aspParser.ProcessFragment (fragment, out controls, out doc);
- view.InsertFragment (doc);
-
- //FIXME: when controls are inserted en masse using InsertFragment, the designer surface
- //doesn't seem to display then properly till they've been updated
- foreach (Control c in controls)
- view.UpdateRender (c);
- }
-
- #endregion
-
- private string ConstructErrorDocument (string errorTitle, string errorDetails)
- {
- return "<html><body fgcolor='red'><h1>"
- + errorTitle
- + "</h1><p>"
- + errorDetails
- + "</p></body></html>";
- }
-
- #region Add/fetch general directives
-
- /// <summary>
- /// Adds a directive port tracking.
- /// </summary>
- /// <returns>A placeholder identifier that can be used in the document</returns>
- public string AddDirective (string name, IDictionary values)
- {
- if ((0 == String.Compare (name, "Page", true, CultureInfo.InvariantCulture) && directives["Page"] != null)
- || (0 == String.Compare (name, "Control", true, CultureInfo.InvariantCulture) && directives["Control"] != null))
- throw new Exception ("Only one Page or Control directive is allowed in a document");
-
- DocumentDirective directive = new DocumentDirective (name, values, directivePlaceholderKey);
- directivePlaceholderKey++;
-
- if (directives[name] == null)
- directives[name] = new ArrayList ();
-
- ((ArrayList)directives[name]).Add(directive);
-
- return String.Format(DirectivePlaceholderStructure, directive.Key.ToString ());
- }
-
- public string RemoveDirective (int placeholderId)
- {
- DocumentDirective directive = null;
- foreach (DictionaryEntry de in directives)
- {
- if (de.Value is DocumentDirective) {
- if (((DocumentDirective)de.Value).Key == placeholderId) {
- directive = (DocumentDirective)de.Value;
- directives.Remove(de.Key);
- }
- }
- else
- foreach (DocumentDirective d in (ArrayList)de.Value)
- if (d.Key == placeholderId) {
- directive = d;
- ((ArrayList)de.Value).Remove (d);
- break;
- }
- if (directive != null)
- break;
- }
-
- if (directive == null)
- return string.Empty;
- return directive.ToString();
- }
-
- /// <summary>
- /// Gets all of the directives of a given type
- /// </summary>
- public DocumentDirective[] GetDirectives (string directiveType)
- {
- ArrayList localDirectiveList = new ArrayList ();
- foreach (DictionaryEntry de in directives)
- {
- if (de.Value is DocumentDirective)
- {
- if (0 == string.Compare (((DocumentDirective)de.Value).Name, directiveType, true, CultureInfo.InvariantCulture))
- localDirectiveList.Add (de.Value);
- }
- else
- foreach (DocumentDirective d in (ArrayList)de.Value)
- if (0 == string.Compare (directiveType, d.Name, true, CultureInfo.InvariantCulture))
- localDirectiveList.Add (d);
- }
-
- return (DocumentDirective[]) localDirectiveList.ToArray (typeof (DocumentDirective));
- }
-
- /// <summary>
- /// Gets the first directive of a given type
- /// </summary>
- /// <param name="create">Whether the directive should be created if one does not already exist</param>
- public DocumentDirective GetFirstDirective (string directiveType, bool create)
- {
- foreach (DictionaryEntry de in directives)
- {
- if (de.Value is DocumentDirective)
- {
- if (0 == string.Compare (((DocumentDirective)de.Value).Name, directiveType, true, CultureInfo.InvariantCulture))
- return (DocumentDirective) de.Value ;
- }
- else
- foreach (DocumentDirective d in (ArrayList)de.Value)
- if (0 == string.Compare (d.Name, directiveType, true, CultureInfo.InvariantCulture))
- return d;
- }
-
- //should directive be created if it can't be found?
- if (create) {
- AddDirective (directiveType, null);
- return GetFirstDirective (directiveType, false);
- }
-
- return null;
- }
-
-
- #endregion
- }
-}
diff --git a/extras/AspNetEdit/AspNetEdit.Editor.ComponentModel/DocumentDirective.cs b/extras/AspNetEdit/AspNetEdit.Editor.ComponentModel/DocumentDirective.cs
deleted file mode 100644
index ce547a1d18..0000000000
--- a/extras/AspNetEdit/AspNetEdit.Editor.ComponentModel/DocumentDirective.cs
+++ /dev/null
@@ -1,142 +0,0 @@
-/*
-* Directive.cs - base class for tracking ASP.NET directives and their properties
-*
-* Authors:
-* Michael Hutchinson <m.j.hutchinson@gmail.com>
-*
-* Copyright (C) 2005 Michael Hutchinson
-*
-* This sourcecode is licenced under The MIT License:
-*
-* Permission is hereby granted, free of charge, to any person obtaining
-* a copy of this software and associated documentation files (the
-* "Software"), to deal in the Software without restriction, including
-* without limitation the rights to use, copy, modify, merge, publish,
-* distribute, sublicense, and/or sell copies of the Software, and to permit
-* persons to whom the Software is furnished to do so, subject to the
-* following conditions:
-*
-* The above copyright notice and this permission notice shall be included in
-* all copies or substantial portions of the Software.
-*
-* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
-* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
-* NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
-* DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
-* OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
-* USE OR OTHER DEALINGS IN THE SOFTWARE.
-*/
-/*
-* DocumentDirective.cs - Represents an ASP.NET directive in the Document.
-*
-* Authors:
-* Michael Hutchinson <m.j.hutchinson@gmail.com>
-*
-* Copyright (C) 2005 Michael Hutchinson
-*
-* This sourcecode is licenced under The MIT License:
-*
-* Permission is hereby granted, free of charge, to any person obtaining
-* a copy of this software and associated documentation files (the
-* "Software"), to deal in the Software without restriction, including
-* without limitation the rights to use, copy, modify, merge, publish,
-* distribute, sublicense, and/or sell copies of the Software, and to permit
-* persons to whom the Software is furnished to do so, subject to the
-* following conditions:
-*
-* The above copyright notice and this permission notice shall be included in
-* all copies or substantial portions of the Software.
-*
-* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
-* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
-* NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
-* DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
-* OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
-* USE OR OTHER DEALINGS IN THE SOFTWARE.
-*/
-
-using System;
-using System.Text;
-using System.Collections;
-using System.Globalization;
-
-namespace AspNetEdit.Editor.ComponentModel
-{
- public class DocumentDirective
- {
- private Hashtable properties;
- private string name;
- private int key;
-
- public DocumentDirective (string name, IDictionary properties, int key)
- {
- this.name = name;
- this.key = key;
-
- CaseInsensitiveHashCodeProvider provider = new CaseInsensitiveHashCodeProvider(CultureInfo.InvariantCulture);
- CaseInsensitiveComparer comparer = new CaseInsensitiveComparer(CultureInfo.InvariantCulture);
- this.properties = new Hashtable (provider, comparer);
-
- if (properties != null)
- foreach (DictionaryEntry de in properties) {
- CheckValidPropertyName (name, (string) de.Key);
- CheckValidPropertyValue (name, (string)de.Key, (string)de.Value);
- this.properties.Add (de.Key, de.Value);
- }
- }
-
- public string Name {
- get { return name; }
- }
-
- /// <summary>
- /// Used to reference the placeholder in the design document
- /// </summary>
- public int Key {
- get { return key; }
- }
-
- public string this[string name]
- {
- get {
- if (properties.ContainsKey(name))
- return (string) properties[name];
- else
- return string.Empty;
- }
- set {
- if (!properties.ContainsKey(name))
- CheckValidPropertyName (this.name, name);
-
- CheckValidPropertyValue (this.name, name, value);
- properties[name] = (value == string.Empty)? null : value;
- }
-
- }
-
- private static void CheckValidPropertyName (string directiveName, string propertyName)
- {
- //TODO:Check valid names. For now, anything loaded will be okay already.
- //throw new InvalidOperationException(propertyName + " is not a property of directive " + directiveName);
- }
-
- private static void CheckValidPropertyValue (string directiveName, string propertyName, string value)
- {
- //TODO:Check valid values
- //throw new NotImplementedException();
- }
-
- public override string ToString()
- {
- StringBuilder sb = new StringBuilder ();
- sb.Append ("<%@ ");
- sb.Append (Name);
- foreach (DictionaryEntry de in properties)
- sb.AppendFormat (" {0}=\"{1}\"", (string) de.Key, (string) de.Value);
- sb.Append (" %>");
- return sb.ToString ();
- }
- }
-}
diff --git a/extras/AspNetEdit/AspNetEdit.Editor.ComponentModel/EventBindingService.cs b/extras/AspNetEdit/AspNetEdit.Editor.ComponentModel/EventBindingService.cs
deleted file mode 100644
index 0cbfe9b3fb..0000000000
--- a/extras/AspNetEdit/AspNetEdit.Editor.ComponentModel/EventBindingService.cs
+++ /dev/null
@@ -1,208 +0,0 @@
- /*
- * EventBindingService.cs - handles binding of Control events to CodeBehind methods
- *
- * Authors:
- * Michael Hutchinson <m.j.hutchinson@gmail.com>
- *
- * Copyright (C) 2005 Michael Hutchinson
- *
- * This sourcecode is licenced under The MIT License:
- *
- * Permission is hereby granted, free of charge, to any person obtaining
- * a copy of this software and associated documentation files (the
- * "Software"), to deal in the Software without restriction, including
- * without limitation the rights to use, copy, modify, merge, publish,
- * distribute, sublicense, and/or sell copies of the Software, and to permit
- * persons to whom the Software is furnished to do so, subject to the
- * following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
- * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
- * NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
- * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
- * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
- * USE OR OTHER DEALINGS IN THE SOFTWARE.
- */
-
-using System;
-using System.CodeDom;
-using System.ComponentModel.Design;
-using System.ComponentModel;
-using System.Collections;
-using System.Reflection;
-using System.Globalization;
-
-namespace AspNetEdit.Editor.ComponentModel
-{
- public class EventBindingService : IEventBindingService
- {
- AspNetEdit.Integration.MonoDevelopProxy proxy;
-
- public EventBindingService (AspNetEdit.Integration.MonoDevelopProxy proxy)
- {
- this.proxy = proxy;
- }
-
- #region IEventBindingService Members
-
- public string CreateUniqueMethodName (IComponent component, EventDescriptor e)
- {
- if (component.Site == null || component.Site.Name == null)
- throw new ArgumentException ("IComponent must be sited and named");
-
- //TODO: check component.Site.Name is valid as start of method name
- string trialPrefix = component.Site.Name + "_" + e.Name;
-
- return proxy.GenerateIdentifierUniqueInCodeBehind (trialPrefix);
- }
-
- public System.Collections.ICollection GetCompatibleMethods (System.ComponentModel.EventDescriptor e)
- {
- MethodInfo mi = e.EventType.GetMethod ("Invoke");
- CodeMemberMethod methodSignature = MonoDevelop.DesignerSupport.BindingService.ReflectionToCodeDomMethod (mi);
-
- return proxy.GetCompatibleMethodsInCodeBehind (methodSignature);
- }
-
- public System.ComponentModel.EventDescriptor GetEvent (System.ComponentModel.PropertyDescriptor property)
- {
- EventPropertyDescriptor epd = property as EventPropertyDescriptor;
- if (epd == null)
- return null;
-
- return epd.InternalEventDescriptor;
- }
-
- public System.ComponentModel.PropertyDescriptorCollection GetEventProperties (System.ComponentModel.EventDescriptorCollection events)
- {
- ArrayList props = new ArrayList ();
-
- foreach (EventDescriptor e in events)
- props.Add (GetEventProperty (e));
-
- return new PropertyDescriptorCollection ((PropertyDescriptor[]) props.ToArray (typeof (PropertyDescriptor)));
- }
-
- public System.ComponentModel.PropertyDescriptor GetEventProperty (System.ComponentModel.EventDescriptor e)
- {
- if (e == null) throw new ArgumentNullException ("e");
- return new EventPropertyDescriptor (e);
- }
-
- public bool ShowCode (System.ComponentModel.IComponent component, System.ComponentModel.EventDescriptor e)
- {
- PropertyDescriptor pd = GetEventProperty (e);
- string name = (string) pd.GetValue (component);
-
- if (name == null) {
- name = CreateUniqueMethodName (component, e);
- pd.SetValue (component, name);
- }
-
- MethodInfo mi = e.EventType.GetMethod ("Invoke");
- CodeMemberMethod methodSignature = MonoDevelop.DesignerSupport.BindingService.ReflectionToCodeDomMethod (mi);
- methodSignature.Name = name;
- methodSignature.Attributes = MemberAttributes.Family;
-
- return proxy.ShowMethod (methodSignature);
- }
-
- public bool ShowCode (int lineNumber)
- {
- return proxy.ShowLine (lineNumber);
- }
-
- public bool ShowCode ()
- {
- return ShowCode (0);
- }
-
- #endregion
- }
-
- internal class EventPropertyDescriptor : PropertyDescriptor
- {
- private EventDescriptor eDesc;
- private TypeConverter tc;
-
- public EventPropertyDescriptor (EventDescriptor eDesc)
- : base (eDesc)
- {
- this.eDesc = eDesc;
- }
-
- public override bool CanResetValue (object component)
- {
- return true;
- }
-
- public override Type ComponentType
- {
- get { return eDesc.ComponentType; }
- }
-
- public override object GetValue(object component)
- {
- IDictionaryService dict = GetDictionaryService (component);
- return dict.GetValue (base.Name) as string;
- }
-
- public override bool IsReadOnly
- {
- get { return false; }
- }
-
- public override Type PropertyType
- {
- get { return eDesc.EventType; }
- }
-
- public override void ResetValue (object component)
- {
- SetValue (component, null);
- }
-
- public override void SetValue (object component, object value)
- {
- IDictionaryService dict = GetDictionaryService (component);
- dict.SetValue (base.Name, value);
- }
-
- public override bool ShouldSerializeValue (object component)
- {
- if (GetValue (component) == null) return false;
- return true;
- }
-
- internal static IDictionaryService GetDictionaryService (object component)
- {
- if (component == null)
- throw new ArgumentNullException ("component");
- IComponent comp = component as IComponent;
- if (comp == null || comp.Site == null)
- throw new ArgumentException ("component must be a sited IComponent", "component");
-
- IDictionaryService dict = comp.Site.GetService (typeof (IDictionaryService)) as IDictionaryService;
- if (dict == null)
- throw new InvalidOperationException ("could not obtain IDictionaryService implementation");
-
- return dict;
- }
-
- public override TypeConverter Converter {
- get {
- if (tc == null)
- tc = TypeDescriptor.GetConverter (string.Empty);
- return tc;
- }
- }
-
- internal EventDescriptor InternalEventDescriptor {
- get { return eDesc; }
- }
- }
-}
diff --git a/extras/AspNetEdit/AspNetEdit.Editor.ComponentModel/ExtenderListService.cs b/extras/AspNetEdit/AspNetEdit.Editor.ComponentModel/ExtenderListService.cs
deleted file mode 100644
index 9489c0daee..0000000000
--- a/extras/AspNetEdit/AspNetEdit.Editor.ComponentModel/ExtenderListService.cs
+++ /dev/null
@@ -1,69 +0,0 @@
- /*
- * ExtenderListService.cs - maintains list of property extenders
- *
- * Authors:
- * Michael Hutchinson <m.j.hutchinson@gmail.com>
- *
- * Copyright (C) 2005 Michael Hutchinson
- *
- * This sourcecode is licenced under The MIT License:
- *
- * Permission is hereby granted, free of charge, to any person obtaining
- * a copy of this software and associated documentation files (the
- * "Software"), to deal in the Software without restriction, including
- * without limitation the rights to use, copy, modify, merge, publish,
- * distribute, sublicense, and/or sell copies of the Software, and to permit
- * persons to whom the Software is furnished to do so, subject to the
- * following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
- * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
- * NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
- * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
- * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
- * USE OR OTHER DEALINGS IN THE SOFTWARE.
- */
-
-using System;
-using System.ComponentModel;
-using System.ComponentModel.Design;
-using System.Collections;
-
-namespace AspNetEdit.Editor.ComponentModel
-{
- public class ExtenderListService : IExtenderProviderService, IExtenderListService
- {
- private ArrayList extenders = new ArrayList ();
-
- public ExtenderListService ()
- {
- }
-
- #region IExtenderProviderService Members
-
- public void AddExtenderProvider (IExtenderProvider provider)
- {
- extenders.Add (provider);
- }
-
- public void RemoveExtenderProvider (IExtenderProvider provider)
- {
- extenders.Remove (provider);
- }
-
- #endregion
-
- #region IExtenderListService Members
-
- public IExtenderProvider[] GetExtenderProviders ()
- {
- return extenders.ToArray (typeof (IExtenderProvider)) as IExtenderProvider[];
- }
-
- #endregion
- }
-}
diff --git a/extras/AspNetEdit/AspNetEdit.Editor.ComponentModel/MenuCommandService.cs b/extras/AspNetEdit/AspNetEdit.Editor.ComponentModel/MenuCommandService.cs
deleted file mode 100644
index c3acccf47d..0000000000
--- a/extras/AspNetEdit/AspNetEdit.Editor.ComponentModel/MenuCommandService.cs
+++ /dev/null
@@ -1,128 +0,0 @@
- /*
- * MenuCommandService.cs - Provides access to commands, and tracks designer verbs
- *
- * Authors:
- * Michael Hutchinson <m.j.hutchinson@gmail.com>
- *
- * Copyright (C) 2005 Michael Hutchinson
- *
- * This sourcecode is licenced under The MIT License:
- *
- * Permission is hereby granted, free of charge, to any person obtaining
- * a copy of this software and associated documentation files (the
- * "Software"), to deal in the Software without restriction, including
- * without limitation the rights to use, copy, modify, merge, publish,
- * distribute, sublicense, and/or sell copies of the Software, and to permit
- * persons to whom the Software is furnished to do so, subject to the
- * following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
- * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
- * NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
- * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
- * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
- * USE OR OTHER DEALINGS IN THE SOFTWARE.
- */
-
-using System;
-using System.ComponentModel.Design;
-using Gtk;
-using System.Collections;
-
-namespace AspNetEdit.Editor.ComponentModel
-{
- public class MenuCommandService : IMenuCommandService
- {
- private DesignerVerbCollection verbs;
- private ArrayList commands;
- private Menu contextMenu;
- private MenuBar menuBar;
- private int x = 0, y = 0;
-
- public MenuCommandService()
- {
- commands = new ArrayList ();
- this.contextMenu = new Menu ();
- this.menuBar = new MenuBar ();
- }
-
- #region IMenuCommandService Members
-
- public void AddCommand (MenuCommand command)
- {
- if (commands.Contains (command))
- throw new InvalidOperationException ("A command with that CommandID already exists in the menu");
-
- commands.Add (command);
- //menuBar
- }
-
- public void AddVerb (DesignerVerb verb)
- {
- if (verbs.Contains (verb))
- throw new InvalidOperationException ("The MenuCommandService already contains that Designer Verb");
- verbs.Add (verb);
- }
-
- public MenuCommand FindCommand (CommandID commandID)
- {
- foreach (MenuCommand command in commands)
- if (command.CommandID == commandID)
- return command;
- return null;
- }
-
- public bool GlobalInvoke (CommandID commandID)
- {
- MenuCommand command = FindCommand (commandID);
- if (command == null)
- return false;
-
- command.Invoke ();
- return true;
- }
-
- public void RemoveCommand (MenuCommand command)
- {
- if (commands.Contains (command))
- commands.Remove (command);
- }
-
- public void RemoveVerb (DesignerVerb verb)
- {
- if (verbs.Contains (verb))
- verbs.Remove (verb);
- }
-
- public void ShowContextMenu (CommandID menuID, int x, int y)
- {
- // Launch out menu as a GTK popup
- // Due to weird callback semantics, have to cache x and y values
- // Delegate doesn't accept the data pointer...?!
- this.x = x;
- this.y = y;
- contextMenu.Popup(null, null, new MenuPositionFunc (positionFunc), 2, Gtk.Global.CurrentEventTime);
- }
-
- private void positionFunc (Gtk.Menu menu, out int x, out int y, out bool pushIn)
- {
- x = this.x;
- y = this.y;
- pushIn = false;
- }
-
- public DesignerVerbCollection Verbs {
- get { return verbs; }
- }
-
- public MenuBar MenuBar {
- get { return menuBar; }
- }
-
- #endregion
-}
-}
diff --git a/extras/AspNetEdit/AspNetEdit.Editor.ComponentModel/NameCreationService.cs b/extras/AspNetEdit/AspNetEdit.Editor.ComponentModel/NameCreationService.cs
deleted file mode 100644
index 7a5bdf34aa..0000000000
--- a/extras/AspNetEdit/AspNetEdit.Editor.ComponentModel/NameCreationService.cs
+++ /dev/null
@@ -1,90 +0,0 @@
- /*
- * NameCreationService.cs - Creates names for components, and checks name validity
- *
- * Authors:
- * Michael Hutchinson <m.j.hutchinson@gmail.com>
- *
- * Copyright (C) 2005 Michael Hutchinson
- *
- * This sourcecode is licenced under The MIT License:
- *
- * Permission is hereby granted, free of charge, to any person obtaining
- * a copy of this software and associated documentation files (the
- * "Software"), to deal in the Software without restriction, including
- * without limitation the rights to use, copy, modify, merge, publish,
- * distribute, sublicense, and/or sell copies of the Software, and to permit
- * persons to whom the Software is furnished to do so, subject to the
- * following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
- * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
- * NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
- * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
- * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
- * USE OR OTHER DEALINGS IN THE SOFTWARE.
- */
-using System;
-using System.ComponentModel.Design.Serialization;
-using System.ComponentModel;
-
-namespace AspNetEdit.Editor.ComponentModel
-{
- public class NameCreationService : INameCreationService
- {
- public NameCreationService ()
- {
- }
-
- #region INameCreationService Members
-
- public string CreateName (System.ComponentModel.IContainer container, Type dataType)
- {
- int suffixNumber = 1;
-
- //check existing components with name of same form
- // and make suffixNumber bigger than the greatest of them
- foreach (IComponent comp in container.Components) {
- if (comp.Site.Name.ToLowerInvariant().StartsWith (dataType.Name.ToLowerInvariant())) {
- string str = comp.Site.Name.Substring(dataType.Name.Length);
- int val;
- if (int.TryParse(str, out val) && val >= suffixNumber)
- suffixNumber = val + 1;
- }
- }
-
- return dataType.Name + suffixNumber.ToString ();
- }
-
- //TODO: make legal name checking less severe, more correct. Project language dependency.
- public bool IsValidName (string name)
- {
- if (name.Length < 1)
- return false;
-
- char[] nameChar = name.ToCharArray ();
-
- if (!char.IsLetter (nameChar[0]))
- return false;
-
- for (int i = 1; i < nameChar.Length; i++)
- {
- if (!char.IsLetterOrDigit (nameChar[i]) && !(nameChar[i] == '_'))
- return false;
- }
-
- return true;
- }
-
- public void ValidateName (string name)
- {
- if (!IsValidName (name))
- throw new Exception ("The name is not valid.");
- }
-
- #endregion
-}
-}
diff --git a/extras/AspNetEdit/AspNetEdit.Editor.ComponentModel/RootDesigner.cs b/extras/AspNetEdit/AspNetEdit.Editor.ComponentModel/RootDesigner.cs
deleted file mode 100644
index 40d822f392..0000000000
--- a/extras/AspNetEdit/AspNetEdit.Editor.ComponentModel/RootDesigner.cs
+++ /dev/null
@@ -1,118 +0,0 @@
- /*
- * RootDesigner.cs - a root designer for ASP.NET WebForms pages
- *
- * Authors:
- * Michael Hutchinson <m.j.hutchinson@gmail.com>
- *
- * Copyright (C) 2005 Michael Hutchinson
- *
- * This sourcecode is licenced under The MIT License:
- *
- * Permission is hereby granted, free of charge, to any person obtaining
- * a copy of this software and associated documentation files (the
- * "Software"), to deal in the Software without restriction, including
- * without limitation the rights to use, copy, modify, merge, publish,
- * distribute, sublicense, and/or sell copies of the Software, and to permit
- * persons to whom the Software is furnished to do so, subject to the
- * following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
- * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
- * NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
- * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
- * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
- * USE OR OTHER DEALINGS IN THE SOFTWARE.
- */
-
-using System;
-using System.ComponentModel;
-using System.ComponentModel.Design;
-using System.Web.UI;
-using System.Drawing.Design;
-using AspNetEdit.Editor.UI;
-
-namespace AspNetEdit.Editor.ComponentModel
-{
- internal class RootDesigner : IRootDesigner, IToolboxUser
- {
- private IComponent component;
- private RootDesignerView view;
-
- public RootDesigner (IComponent component)
- {
- System.Diagnostics.Trace.WriteLine ("Creating RootDesigner");
- view = RootDesignerView.GetInstance (component.Site.GetService (typeof (IDesignerHost)) as IDesignerHost);
- }
-
- #region IRootDesigner Members
-
- public object GetView (ViewTechnology technology) {
- if (technology == ViewTechnology.Passthrough)
- return view;
- else return null;
- }
-
- public ViewTechnology[] SupportedTechnologies {
- get {
- ViewTechnology[] tech = { ViewTechnology.Passthrough };
- return tech;
- }
- }
-
- #endregion
-
- #region IDesigner Members
-
- public IComponent Component {
- get { return component; }
- }
-
- public void DoDefaultAction ()
- {
- throw new NotImplementedException ();
- }
-
- public void Initialize (IComponent component)
- {
- if ( !(component is WebFormPage))
- throw new ArgumentException ("component is not a page", "component");
-
- this.component = component;
- }
-
- public DesignerVerbCollection Verbs {
- get { return new DesignerVerbCollection (); }
- }
-
- #endregion
-
- #region IDisposable Members
-
- public void Dispose ()
- {
- view.Destroy ();
- view.Dispose ();
- }
-
- #endregion
-
- #region IToolboxUser Members
-
- public bool GetToolSupported (ToolboxItem tool)
- {
- //TODO: Fix toolbox selection
- return true;
- }
-
- public void ToolPicked (ToolboxItem tool)
- {
- throw new NotImplementedException ();
- }
-
- #endregion
- }
-}
diff --git a/extras/AspNetEdit/AspNetEdit.Editor.ComponentModel/SelectionService.cs b/extras/AspNetEdit/AspNetEdit.Editor.ComponentModel/SelectionService.cs
deleted file mode 100644
index bc57c48895..0000000000
--- a/extras/AspNetEdit/AspNetEdit.Editor.ComponentModel/SelectionService.cs
+++ /dev/null
@@ -1,148 +0,0 @@
- /*
- * SelectionService.cs -tracks selected components
- *
- * Authors:
- * Michael Hutchinson <m.j.hutchinson@gmail.com>
- *
- * Copyright (C) 2005 Michael Hutchinson
- *
- * This sourcecode is licenced under The MIT License:
- *
- * Permission is hereby granted, free of charge, to any person obtaining
- * a copy of this software and associated documentation files (the
- * "Software"), to deal in the Software without restriction, including
- * without limitation the rights to use, copy, modify, merge, publish,
- * distribute, sublicense, and/or sell copies of the Software, and to permit
- * persons to whom the Software is furnished to do so, subject to the
- * following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
- * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
- * NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
- * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
- * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
- * USE OR OTHER DEALINGS IN THE SOFTWARE.
- */
-
-using System;
-using System.ComponentModel.Design;
-using System.Collections;
-using System.ComponentModel;
-
-namespace AspNetEdit.Editor.ComponentModel
-{
- public class SelectionService : ISelectionService
- {
- private ArrayList selections = new ArrayList ();
- private object primary;
-
- public bool GetComponentSelected (object component)
- {
- return selections.Contains (component);
- }
-
- public ICollection GetSelectedComponents ()
- {
- return (ArrayList.ReadOnly (selections) as ICollection);
- }
-
- public object PrimarySelection
- {
- get { return primary; }
- }
-
- public int SelectionCount
- {
- get { return selections.Count; }
- }
-
- //This is effectively .NET 2.0's SelectionTypes.Auto
- //It duplicates VS.NET's selection behaviour
- public void SetSelectedComponents (System.Collections.ICollection components)
- {
- OnSelectionChanging ();
-
- //use control and shift modifier to change selection
- //TODO: find a better way of checking key modifier status: this is BAD
- int x, y;
- bool modified = false;
- Gdk.Window someWindow = Gdk.Window.AtPointer (out x, out y);
- if (someWindow != null) {
- Gdk.ModifierType mt;
- someWindow.GetPointer (out x, out y, out mt);
- modified = ((mt & Gdk.ModifierType.ShiftMask) == Gdk.ModifierType.ShiftMask) || ((mt & Gdk.ModifierType.ControlMask) == Gdk.ModifierType.ControlMask);
- }
-
- if (components == null || components.Count == 0)
- {
- selections.Clear ();
- primary = null;
- }
- else {
- foreach (object comp in components) {
- if (! (comp is IComponent))
- throw new ArgumentException ("All elements in collection must be components");
-
- //what do we do with the component?
- if (!selections.Contains (comp))
- {
- //a simple replacement
- if (!modified) {
- selections.Clear ();
- selections.Add (comp);
- }
- //add to selection and make primary
- else
- selections.Add (comp);
-
- primary = comp;
- }
- else
- {
- //only deselect or change selection if other components
- //i.e. can't toggle selection status if is only component
- if (selections.Count > 1)
- //change primary selection
- if (!modified)
- primary = comp;
- //remove and replace primary selection
- else {
- selections.Remove (comp);
- if (selections.Count > 0)
- primary = selections[selections.Count - 1];
- }
- }
- }
- }
-
- //fire event to let everyone know, especially PropertyGrid
- OnSelectionChanged();
- }
-
- public void SetSelectedComponents(System.Collections.ICollection components, SelectionTypes selectionType)
- {
- //TODO: Use .NET 2.0 SelectionTypes Primary, Add, Replace, Remove, Toggle
- if ((selectionType & SelectionTypes.Valid) == SelectionTypes.Valid)
- SetSelectedComponents(components);
- }
-
- public event EventHandler SelectionChanged;
- public event EventHandler SelectionChanging;
-
- protected void OnSelectionChanged()
- {
- if (SelectionChanged != null)
- SelectionChanged(this, EventArgs.Empty);
- }
-
- protected void OnSelectionChanging()
- {
- if (SelectionChanging != null)
- SelectionChanging(this, EventArgs.Empty);
- }
- }
-}
diff --git a/extras/AspNetEdit/AspNetEdit.Editor.ComponentModel/TextToolboxItem.cs b/extras/AspNetEdit/AspNetEdit.Editor.ComponentModel/TextToolboxItem.cs
deleted file mode 100644
index 013d57df0e..0000000000
--- a/extras/AspNetEdit/AspNetEdit.Editor.ComponentModel/TextToolboxItem.cs
+++ /dev/null
@@ -1,95 +0,0 @@
- /*
- * TextToolboxItem.cs - a ToolboxItem for storing text fragments
- *
- * Authors:
- * Michael Hutchinson <m.j.hutchinson@gmail.com>
- *
- * Copyright (C) 2005 Michael Hutchinson
- *
- * This sourcecode is licenced under The MIT License:
- *
- * Permission is hereby granted, free of charge, to any person obtaining
- * a copy of this software and associated documentation files (the
- * "Software"), to deal in the Software without restriction, including
- * without limitation the rights to use, copy, modify, merge, publish,
- * distribute, sublicense, and/or sell copies of the Software, and to permit
- * persons to whom the Software is furnished to do so, subject to the
- * following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
- * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
- * NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
- * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
- * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
- * USE OR OTHER DEALINGS IN THE SOFTWARE.
- */
-using System;
-using System.Collections;
-using System.ComponentModel;
-using System.ComponentModel.Design;
-using System.Drawing;
-using System.Reflection;
-using System.Runtime.Serialization;
-using System.Drawing.Design;
-
-namespace AspNetEdit.Editor.ComponentModel
-{
- public class TextToolboxItem : ToolboxItem
- {
- private string text;
-
- public TextToolboxItem (string text)
- : this (text, text)
- {
- }
-
- public TextToolboxItem (string text, string displayName)
- : base ()
- {
- base.DisplayName = displayName;
- this.text = text;
- }
-
- public string Text {
- get { return text; }
- }
-
- protected override IComponent[] CreateComponentsCore (IDesignerHost host)
- {
- DesignerHost desHost = host as DesignerHost;
- if (desHost == null)
- throw new ArgumentException ("host", "Must be a AspNetEdit.Editor.ComponentModel.DesignerHost");
-
- OnComponentsCreating(new ToolboxComponentsCreatingEventArgs (host));
-
- desHost.RootDocument.InsertFragment (text);
-
- OnComponentsCreated(new ToolboxComponentsCreatedEventArgs (new IComponent[]{}));
- return new IComponent[]{};
- }
-
- protected override void Deserialize (SerializationInfo info, StreamingContext context)
- {
- text = (string) info.GetValue ("AssemblyName", typeof (AssemblyName));
- base.Filter = (ICollection)info.GetValue ("Filter", typeof (ICollection));
- base.DisplayName = info.GetString ("DisplayName");
- if (info.GetBoolean ("Locked")) base.Lock ();
- }
-
- public override void Initialize (Type type)
- {
- }
-
- protected override void Serialize (SerializationInfo info, StreamingContext context)
- {
- info.AddValue ("Text", text);
- info.AddValue ("Filter", base.Filter);
- info.AddValue ("DisplayName", base.DisplayName);
- info.AddValue ("Locked", base.Locked);
- }
- }
- } \ No newline at end of file
diff --git a/extras/AspNetEdit/AspNetEdit.Editor.ComponentModel/ToolboxService.cs b/extras/AspNetEdit/AspNetEdit.Editor.ComponentModel/ToolboxService.cs
deleted file mode 100644
index ca5b2244be..0000000000
--- a/extras/AspNetEdit/AspNetEdit.Editor.ComponentModel/ToolboxService.cs
+++ /dev/null
@@ -1,425 +0,0 @@
- /*
- * ToolboxService.cs - used to add/remove/find/select toolbox items
- *
- * Authors:
- * Michael Hutchinson <m.j.hutchinson@gmail.com>
- *
- * Copyright (C) 2005 Michael Hutchinson
- *
- * This sourcecode is licenced under The MIT License:
- *
- * Permission is hereby granted, free of charge, to any person obtaining
- * a copy of this software and associated documentation files (the
- * "Software"), to deal in the Software without restriction, including
- * without limitation the rights to use, copy, modify, merge, publish,
- * distribute, sublicense, and/or sell copies of the Software, and to permit
- * persons to whom the Software is furnished to do so, subject to the
- * following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
- * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
- * NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
- * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
- * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
- * USE OR OTHER DEALINGS IN THE SOFTWARE.
- */
-
-using System;
-using System.Drawing.Design;
-using System.Collections;
-using System.IO;
-using System.Xml;
-using System.Reflection;
-using System.ComponentModel;
-using System.Runtime.Serialization.Formatters.Binary;
-
-namespace AspNetEdit.Editor.ComponentModel
-{
-
- public class ToolboxService : IToolboxService
- {
- Hashtable categories = new Hashtable ();
- private string selectedCategory;
- private ToolboxItem selectedItem = null;
-
- public event EventHandler ToolboxChanged;
-
- protected void OnToolboxChanged ()
- {
- ToolboxChanged (this, new EventArgs ());
- }
-
- #region IToolboxService Members
-
- public void AddCreator (ToolboxItemCreatorCallback creator, string format, System.ComponentModel.Design.IDesignerHost host)
- {
- throw new NotImplementedException ();
- }
-
- public void AddCreator (ToolboxItemCreatorCallback creator, string format)
- {
- throw new NotImplementedException ();
- }
-
- public void AddLinkedToolboxItem (ToolboxItem toolboxItem, string category, System.ComponentModel.Design.IDesignerHost host)
- {
- throw new NotImplementedException ();
- }
-
- public void AddLinkedToolboxItem (ToolboxItem toolboxItem, System.ComponentModel.Design.IDesignerHost host)
- {
- throw new NotImplementedException ();
- }
-
- public void AddToolboxItem (ToolboxItem toolboxItem)
- {
- AddToolboxItem (toolboxItem, "General");
- }
-
- public void AddToolboxItem (ToolboxItem toolboxItem, string category)
- {
- if (!categories.ContainsKey (category))
- categories[category] = new ArrayList ();
-
- System.Diagnostics.Trace.WriteLine ("Adding ToolboxItem: " + toolboxItem.DisplayName + ", " + category);
- ((ArrayList) categories[category]).Add (toolboxItem);
- }
-
- public CategoryNameCollection CategoryNames
- {
- get {
- string[] cats = new string[categories.Keys.Count];
- categories.Keys.CopyTo (cats, 0);
- return new CategoryNameCollection (cats);
- }
- }
-
- public ToolboxItem DeserializeToolboxItem(object serializedObject, System.ComponentModel.Design.IDesignerHost host)
- {
- throw new NotImplementedException ();
- }
-
- public ToolboxItem DeserializeToolboxItem (object serializedObject)
- {
- if ( !(serializedObject is byte[])) return null;
-
- MemoryStream ms = new MemoryStream( (byte[]) serializedObject);
- object obj = BF.Deserialize (ms);
- ms.Close ();
-
- if (! (obj is ToolboxItem)) return null;
-
- return (ToolboxItem) obj;
- }
-
- public ToolboxItem GetSelectedToolboxItem (System.ComponentModel.Design.IDesignerHost host)
- {
- IToolboxUser toolboxUser = (IToolboxUser) host.GetDesigner (host.RootComponent);
- if (toolboxUser.GetToolSupported (selectedItem))
- return selectedItem;
- else
- return null;
- }
-
- public ToolboxItem GetSelectedToolboxItem ()
- {
- return selectedItem;
- }
-
- public ToolboxItemCollection GetToolboxItems (string category, System.ComponentModel.Design.IDesignerHost host)
- {
- if (!categories.ContainsKey (category))
- return null;
-
- ArrayList tools = new ArrayList ();
-
- foreach(ToolboxItem tool in ((ArrayList) categories[category]))
- if (((IToolboxUser) host.GetDesigner (host.RootComponent)).GetToolSupported (tool))
- tools.Add (tool);
-
- return new ToolboxItemCollection ((ToolboxItem[]) tools.ToArray (typeof (ToolboxItem)));
- }
-
- public ToolboxItemCollection GetToolboxItems (string category)
- {
- if (!categories.ContainsKey (category))
- return null;
-
- ArrayList tools = (ArrayList) categories[category];
-
- return new ToolboxItemCollection ((ToolboxItem[]) tools.ToArray (typeof (ToolboxItem)));
- }
-
- public ToolboxItemCollection GetToolboxItems (System.ComponentModel.Design.IDesignerHost host)
- {
- ArrayList tools = new ArrayList();
- IToolboxUser toolboxUser = (IToolboxUser) host.GetDesigner (host.RootComponent);
-
- foreach (ArrayList arr in categories.Values)
- foreach (ToolboxItem tool in arr)
- if (toolboxUser.GetToolSupported (tool))
- tools.Add (tool);
-
- return new ToolboxItemCollection ((ToolboxItem[]) tools.ToArray (typeof (ToolboxItem)));
- }
-
- public ToolboxItemCollection GetToolboxItems ()
- {
- ArrayList tools = new ArrayList ();
-
- foreach (ArrayList arr in categories.Values)
- tools.AddRange (arr);
-
- return new ToolboxItemCollection ((ToolboxItem[]) tools.ToArray (typeof (ToolboxItem)));
- }
-
- public bool IsSupported (object serializedObject, System.ComponentModel.Design.IDesignerHost host)
- {
- throw new NotImplementedException ();
- }
-
- public bool IsSupported (object serializedObject, System.Collections.ICollection filterAttributes)
- {
- throw new NotImplementedException ();
- }
-
- public bool IsToolboxItem (object serializedObject, System.ComponentModel.Design.IDesignerHost host)
- {
- throw new NotImplementedException ();
- }
-
- public bool IsToolboxItem (object serializedObject)
- {
- throw new NotImplementedException ();
- }
-
- public void Refresh ()
- {
- throw new NotImplementedException ();
- }
-
- public void RemoveCreator (string format, System.ComponentModel.Design.IDesignerHost host)
- {
- throw new NotImplementedException ();
- }
-
- public void RemoveCreator (string format)
- {
- throw new NotImplementedException ();
- }
-
- public void RemoveToolboxItem (ToolboxItem toolboxItem, string category)
- {
- throw new NotImplementedException ();
- }
-
- public void RemoveToolboxItem (ToolboxItem toolboxItem)
- {
- throw new NotImplementedException ();
- }
-
- public string SelectedCategory {
- get {return selectedCategory;}
- set {
- if (categories.ContainsKey (value))
- selectedCategory = value;
- }
- }
-
- public void SelectedToolboxItemUsed ()
- {
- //throw new NotImplementedException ();
- }
-
- public object SerializeToolboxItem (ToolboxItem toolboxItem)
- {
- MemoryStream ms = new MemoryStream ();
-
- BF.Serialize (ms, toolboxItem);
- byte[] retval = ms.ToArray ();
-
- ms.Close ();
- return retval;
- }
-
- public bool SetCursor ()
- {
- throw new NotImplementedException ();
- }
-
- public void SetSelectedToolboxItem (ToolboxItem toolboxItem)
- {
- this.selectedItem = toolboxItem;
- }
-
- #endregion
-
- #region Save/load routines
-
- public void Persist (Stream stream)
- {
- StreamWriter strw = new StreamWriter (stream);
-
- XmlTextWriter xw = new XmlTextWriter (strw);
- xw.WriteStartDocument (true);
-
- xw.WriteStartElement ("Toolbox");
-
- foreach(string key in categories.Keys) {
- xw.WriteStartElement ("ToolboxCategory");
- xw.WriteAttributeString ("name", key);
-
- foreach (ToolboxItem item in ((ArrayList)categories[key])) {
- xw.WriteStartElement ("ToolboxItem");
- xw.WriteAttributeString ("DisplayName", item.DisplayName);
- //xw.WriteAttributeString ("AssemblyName", item.AssemblyName.ToString());
- xw.WriteAttributeString ("TypeName", item.TypeName);
- byte[] serItem = (byte[]) SerializeToolboxItem(item);
- xw.WriteString (ToBinHexString(serItem));
- xw.WriteEndElement ();
- }
- xw.WriteEndElement ();
- }
-
- xw.WriteEndElement ();
- xw.Close ();
- strw.Close ();
- }
-
- //temporary method until we get a UI and some form of persistence)
- public void PopulateFromAssembly (Assembly assembly)
- {
- Type[] types = assembly.GetTypes ();
-
- foreach (Type t in types)
- {
- if (t.IsAbstract || t.IsNotPublic) continue;
-
- if (t.GetConstructor (new Type[] {}) == null) continue;
-
- AttributeCollection atts = TypeDescriptor.GetAttributes (t);
-
- bool containsAtt = false;
- foreach (Attribute a in atts)
- if (a.GetType() == typeof (ToolboxItemAttribute))
- containsAtt = true;
- if (!containsAtt) continue;
-
- ToolboxItemAttribute tba = (ToolboxItemAttribute) atts[typeof(ToolboxItemAttribute)];
- if (tba.Equals (ToolboxItemAttribute.None)) continue;
- //FIXME: fix WebControlToolboxItem
- Type toolboxItemType = typeof (ToolboxItem);//(tba.ToolboxItemType == null) ? typeof (ToolboxItem) : tba.ToolboxItemType;
-
- string category = "General";
-
- if (t.IsSubclassOf (typeof (System.Web.UI.WebControls.BaseValidator)))
- category = "Validation";
- else if (t.Namespace == "System.Web.UI.HtmlControls" && t.IsSubclassOf (typeof (System.Web.UI.HtmlControls.HtmlControl)))
- category = "Html Elements";
- else if (t.IsSubclassOf (typeof (System.Web.UI.WebControls.BaseDataList)))
- category = "Data Controls";
- else if (t.IsSubclassOf (typeof (System.Web.UI.WebControls.WebControl)))
- category = "Web Controls";
-
- AddToolboxItem ((ToolboxItem) Activator.CreateInstance (toolboxItemType, new object[] {t}), category);
- }
- OnToolboxChanged ();
- }
-
- #endregion
-
-
- private BinaryFormatter bf = null;
-
- private BinaryFormatter BF {
- get {
- if (bf == null)
- bf = new BinaryFormatter ();
-
- return bf;
- }
- }
-
- #region Borrowed from System.Xml.XmlConvert. If only the methods were public as documented...
- // Authors: Dwivedi, Ajay kumar (Adwiv@Yahoo.com), Gonzalo Paniagua Javier (gonzalo@ximian.com)
- // Alan Tam Siu Lung (Tam@SiuLung.com), Atsushi Enomoto (ginga@kit.hi-ho.ne.jp)
- // License: MIT X11 (same as file)
- // Copyright: (C) 2002 Ximian, Inc (http://www.ximian.com
-
-
- // LAMESPEC: It has been documented as public, but is marked as internal.
- private string ToBinHexString (byte [] buffer)
- {
- StringWriter w = new StringWriter ();
- WriteBinHex (buffer, 0, buffer.Length, w);
- return w.ToString ();
- }
-
- internal static void WriteBinHex (byte [] buffer, int index, int count, TextWriter w)
- {
- if (buffer == null)
- throw new ArgumentNullException ("buffer");
- if (index < 0)
- throw new ArgumentOutOfRangeException ("index", index, "index must be non negative integer.");
- if (count < 0)
- throw new ArgumentOutOfRangeException ("count", count, "count must be non negative integer.");
- if (buffer.Length < index + count)
- throw new ArgumentOutOfRangeException ("index and count must be smaller than the length of the buffer.");
-
- // Copied from XmlTextWriter.WriteBinHex ()
- int end = index + count;
- for (int i = index; i < end; i++) {
- int val = buffer [i];
- int high = val >> 4;
- int low = val & 15;
- if (high > 9)
- w.Write ((char) (high + 55));
- else
- w.Write ((char) (high + 0x30));
- if (low > 9)
- w.Write ((char) (low + 55));
- else
- w.Write ((char) (low + 0x30));
- }
- }
-
- // It is documented as public method, but in fact it is not.
- private byte [] FromBinHexString (string s)
- {
- char [] chars = s.ToCharArray ();
- byte [] bytes = new byte [chars.Length / 2 + chars.Length % 2];
- FromBinHexString (chars, 0, chars.Length, bytes);
- return bytes;
- }
-
- private int FromBinHexString (char [] chars, int offset, int charLength, byte [] buffer)
- {
- int bufIndex = offset;
- for (int i = 0; i < charLength - 1; i += 2) {
- buffer [bufIndex] = (chars [i] > '9' ?
- (byte) (chars [i] - 'A' + 10) :
- (byte) (chars [i] - '0'));
- buffer [bufIndex] <<= 4;
- buffer [bufIndex] += chars [i + 1] > '9' ?
- (byte) (chars [i + 1] - 'A' + 10) :
- (byte) (chars [i + 1] - '0');
- bufIndex++;
- }
- if (charLength %2 != 0)
- buffer [bufIndex++] = (byte)
- ((chars [charLength - 1] > '9' ?
- (byte) (chars [charLength - 1] - 'A' + 10) :
- (byte) (chars [charLength - 1] - '0'))
- << 4);
-
- return bufIndex - offset;
- }
-
- #endregion
-
- }
-}
diff --git a/extras/AspNetEdit/AspNetEdit.Editor.ComponentModel/Transaction.cs b/extras/AspNetEdit/AspNetEdit.Editor.ComponentModel/Transaction.cs
deleted file mode 100644
index 882245f21c..0000000000
--- a/extras/AspNetEdit/AspNetEdit.Editor.ComponentModel/Transaction.cs
+++ /dev/null
@@ -1,65 +0,0 @@
- /*
- * DesignerTransaction.cs - Skeleton transactions for designer support.
- * Does not yet track changes.
- *
- * Authors:
- * Michael Hutchinson <m.j.hutchinson@gmail.com>
- *
- * Copyright (C) 2005 Michael Hutchinson
- *
- * This sourcecode is licenced under The MIT License:
- *
- * Permission is hereby granted, free of charge, to any person obtaining
- * a copy of this software and associated documentation files (the
- * "Software"), to deal in the Software without restriction, including
- * without limitation the rights to use, copy, modify, merge, publish,
- * distribute, sublicense, and/or sell copies of the Software, and to permit
- * persons to whom the Software is furnished to do so, subject to the
- * following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
- * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
- * NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
- * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
- * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
- * USE OR OTHER DEALINGS IN THE SOFTWARE.
- */
-
-using System;
-using System.ComponentModel.Design;
-
-namespace AspNetEdit.Editor.ComponentModel
-{
- internal class Transaction : DesignerTransaction
- {
- private DesignerHost host;
-
- public Transaction (DesignerHost host, string description)
- : base (description)
- {
- this.host = host;
- }
-
- protected override void OnCancel ()
- {
- if (host == null)
- return;
- host.OnTransactionClosing ( false);
- host.OnTransactionClosed (false, this);
- host = null;
- }
-
- protected override void OnCommit ()
- {
- if (host == null)
- return;
- host.OnTransactionClosing (true);
- host.OnTransactionClosed (true, this);
- host = null;
- }
- }
-}
diff --git a/extras/AspNetEdit/AspNetEdit.Editor.ComponentModel/TypeDescriptorFilterService.cs b/extras/AspNetEdit/AspNetEdit.Editor.ComponentModel/TypeDescriptorFilterService.cs
deleted file mode 100644
index 604e218d65..0000000000
--- a/extras/AspNetEdit/AspNetEdit.Editor.ComponentModel/TypeDescriptorFilterService.cs
+++ /dev/null
@@ -1,91 +0,0 @@
- /*
- * TypeDescriptorFilterService.cs - performs property/event/attribute filtering
- *
- * Authors:
- * Michael Hutchinson <m.j.hutchinson@gmail.com>
- *
- * Copyright (C) 2005 Michael Hutchinson
- *
- * This sourcecode is licenced under The MIT License:
- *
- * Permission is hereby granted, free of charge, to any person obtaining
- * a copy of this software and associated documentation files (the
- * "Software"), to deal in the Software without restriction, including
- * without limitation the rights to use, copy, modify, merge, publish,
- * distribute, sublicense, and/or sell copies of the Software, and to permit
- * persons to whom the Software is furnished to do so, subject to the
- * following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
- * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
- * NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
- * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
- * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
- * USE OR OTHER DEALINGS IN THE SOFTWARE.
- */
-
-using System;
-using System.ComponentModel.Design;
-using System.Web.UI.Design;
-using System.ComponentModel;
-
-namespace AspNetEdit.Editor.ComponentModel
-{
- public class TypeDescriptorFilterService : ITypeDescriptorFilterService
- {
- public bool FilterAttributes (IComponent component, System.Collections.IDictionary attributes)
- {
- //get the IDesignerFilter interface
- IDesignerHost host = component.Site.GetService (typeof (IDesignerHost)) as IDesignerHost;
- if (host == null)
- return true;
- IDesignerFilter designer = host.GetDesigner (component) as IDesignerFilter;
- if (designer == null)
- return true;
-
- //Invoke the filtering methods
- designer.PreFilterAttributes (attributes);
- designer.PostFilterAttributes (attributes);
-
- return true;
- }
-
- public bool FilterEvents (IComponent component, System.Collections.IDictionary events)
- {
- //get the IDesignerFilter interface
- IDesignerHost host = component.Site.GetService (typeof (IDesignerHost)) as IDesignerHost;
- if (host == null)
- return false;
- IDesignerFilter designer = host.GetDesigner (component) as IDesignerFilter;
- if (designer == null)
- return false;
-
- //Invoke the filtering methods
- designer.PreFilterEvents (events);
- designer.PostFilterEvents (events);
-
- return true;
- }
-
- public bool FilterProperties (IComponent component, System.Collections.IDictionary properties)
- {
- //get the IDesignerFilter interface
- IDesignerHost host = component.Site.GetService (typeof (IDesignerHost)) as IDesignerHost;
- if (host == null)
- return false;
- IDesignerFilter designer = host.GetDesigner (component) as IDesignerFilter;
- if (designer == null)
- return false;
-
- //Invoke the filtering methods
- designer.PreFilterProperties (properties);
- designer.PostFilterProperties (properties);
-
- return true;
- }
- }
-}
diff --git a/extras/AspNetEdit/AspNetEdit.Editor.ComponentModel/TypeResolutionService.cs b/extras/AspNetEdit/AspNetEdit.Editor.ComponentModel/TypeResolutionService.cs
deleted file mode 100644
index 98a1c4187e..0000000000
--- a/extras/AspNetEdit/AspNetEdit.Editor.ComponentModel/TypeResolutionService.cs
+++ /dev/null
@@ -1,121 +0,0 @@
-/*
-* TypeResolutionService.cs - resolves types in referenced assemblies
-*
-* Authors:
-* Michael Hutchinson <m.j.hutchinson@gmail.com>
-*
-* Copyright (C) 2005 Michael Hutchinson
-*
-* This sourcecode is licenced under The MIT License:
-*
-* Permission is hereby granted, free of charge, to any person obtaining
-* a copy of this software and associated documentation files (the
-* "Software"), to deal in the Software without restriction, including
-* without limitation the rights to use, copy, modify, merge, publish,
-* distribute, sublicense, and/or sell copies of the Software, and to permit
-* persons to whom the Software is furnished to do so, subject to the
-* following conditions:
-*
-* The above copyright notice and this permission notice shall be included in
-* all copies or substantial portions of the Software.
-*
-* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
-* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
-* NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
-* DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
-* OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
-* USE OR OTHER DEALINGS IN THE SOFTWARE.
-*/
-
-using System;
-using System.ComponentModel.Design;
-using System.Reflection;
-using System.Collections;
-
-namespace AspNetEdit.Editor.ComponentModel
-{
- public class TypeResolutionService : ITypeResolutionService
- {
- Hashtable referencedAssemblies;
-
- #region ITypeResolutionService Members
-
- public TypeResolutionService ()
- {
- referencedAssemblies = new Hashtable ();
- ReferenceAssembly (typeof (System.Web.UI.WebControls.WebControl).Assembly.GetName ());
- }
-
- public Assembly GetAssembly (AssemblyName name, bool throwOnError)
- {
- Assembly assembly = GetAssembly (name);
-
- if (assembly == null)
- throw new Exception ("The assembly could not be found");
-
- return assembly;
- }
-
- public Assembly GetAssembly(AssemblyName name)
- {
- Assembly assembly = referencedAssemblies[name] as Assembly;
- if (assembly == null)
- {
- assembly = Assembly.Load (name);
- }
-
- return assembly;
- }
-
- //TODO: should this do more?
- public string GetPathOfAssembly(AssemblyName name)
- {
- return name.CodeBase;
- }
-
- public Type GetType (string name, bool throwOnError, bool ignoreCase)
- {
- //try to get assembly-qualified types
- Type t = Type.GetType (name, false, ignoreCase);
- if (t != null) return t;
-
- //look in referenced assemblies
- foreach (Assembly a in referencedAssemblies.Values)
- {
- t = a.GetType (name, false, ignoreCase);
- if (t != null) break;
- }
-
- if (throwOnError && (t == null))
- throw new Exception ("The type " + name + "was not found in the referenced assemblies.");
- return t;
- }
-
- public Type GetType (string name, bool throwOnError)
- {
- return GetType (name, throwOnError, false);
- }
-
- public Type GetType (string name)
- {
- return GetType (name, false);
- }
-
- //TODO: Actually add reference: need project support
- public void ReferenceAssembly (AssemblyName name)
- {
- if (name == null)
- throw new ArgumentNullException ("name");
- if (referencedAssemblies.ContainsKey (name))
- return;
-
- Assembly assembly = Assembly.Load (name);
- if (assembly == null)
- throw new InvalidOperationException ("The assembly could not be loaded");
- referencedAssemblies.Add (name, assembly);
- }
-
- #endregion
- }
-}
diff --git a/extras/AspNetEdit/AspNetEdit.Editor.ComponentModel/WebFormPage.cs b/extras/AspNetEdit/AspNetEdit.Editor.ComponentModel/WebFormPage.cs
deleted file mode 100644
index 6752961aef..0000000000
--- a/extras/AspNetEdit/AspNetEdit.Editor.ComponentModel/WebFormPage.cs
+++ /dev/null
@@ -1,445 +0,0 @@
- /*
- * WebFormsPage.cs - Represents an ASP.NET Page in the designer
- *
- * Authors:
- * Michael Hutchinson <m.j.hutchinson@gmail.com>
- *
- * Copyright (C) 2005 Michael Hutchinson
- *
- * This sourcecode is licenced under The MIT License:
- *
- * Permission is hereby granted, free of charge, to any person obtaining
- * a copy of this software and associated documentation files (the
- * "Software"), to deal in the Software without restriction, including
- * without limitation the rights to use, copy, modify, merge, publish,
- * distribute, sublicense, and/or sell copies of the Software, and to permit
- * persons to whom the Software is furnished to do so, subject to the
- * following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
- * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
- * NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
- * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
- * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
- * USE OR OTHER DEALINGS IN THE SOFTWARE.
- */
-
-using System;
-using System.ComponentModel;
-using System.Globalization;
-using System.Text;
-using System.Web;
-using System.IO;
-using System.Web.Compilation;
-using System.Collections;
-using System.Web.UI;
-using System.ComponentModel.Design;
-using AspNetEdit.Editor.Persistence;
-
-namespace AspNetEdit.Editor.ComponentModel
-{
- internal class WebFormPage : System.Web.UI.Page
- {
- //private HttpRequest httpRequest;
-
- public WebFormPage ()
- {
- pdc = TypeDescriptor.GetProperties (this);
-
- //fake the request for some controls which need it
- /*
- HttpRequest request = new HttpRequest (string.Empty, "file:///", string.Empty);
- System.IO.StringWriter strw = new System.IO.StringWriter ();
- HttpResponse response = new HttpResponse (strw);
- HttpContext context = new HttpContext (request, response);
- this.ProcessRequest (context);
- */
- }
-
- //FIXME: enforce this...
- public override void VerifyRenderingInServerForm (Control control)
- {
- }
-
- #region Property browser -> page directive linkage
-
- private PropertyDescriptorCollection pdc = null;
- private DocumentDirective pageDirective;
- private DocumentDirective PageDirective
- {
- get {
- if (pageDirective == null) {
- DesignerHost host = this.Site.GetService (typeof (IDesignerHost)) as DesignerHost;
- if (host == null)
- throw new Exception ("Could not obtain DesignerHost service");
- pageDirective = host.RootDocument.GetFirstDirective ("Page", true);
- }
-
- return pageDirective;
- }
- }
-
- private object GetConvertedProperty (string name)
- {
- PropertyDescriptor pd = pdc.Find (name, true);
- string currentVal = PageDirective[name];
- if (currentVal == null || currentVal == string.Empty)
- return ((DefaultValueAttribute)pd.Attributes[typeof (DefaultValueAttribute)]).Value;
- return pd.Converter.ConvertFromInvariantString (currentVal);
- }
-
- private void SetProperty (string name, object value)
- {
- PropertyDescriptor pd = pdc.Find (name, true);
- if (value == ((DefaultValueAttribute)pd.Attributes[typeof(DefaultValueAttribute)]).Value)
- PageDirective[name] = null;
- PageDirective[name] = pd.Converter.ConvertToInvariantString (value);
- }
-
- #endregion
-
- #region Property browser attributes for @Page attributes
-
- [DefaultValue (false)]
- [Category("Behaviour")]
- //TODO: Add for .NET 2.0
- //[DisplayNameAttribute("AspCompat")
- [Description ("Whether the page can be executed on a single-threaded apartment thread")]
- [Bindable(false)]
- [Browsable(true)]
- public bool AspCompat
- {
- get { return (bool) GetConvertedProperty ("AspCompat"); }
- set { SetProperty ("AspCompat", value); }
- }
-
- [DefaultValue(true)]
- [Category("Compilation")]
- [Description("Whether the page events are automatically wired up")]
- [Bindable(false)]
- [Browsable(true)]
- public bool AutoEventWireup
- {
- get { return (bool)GetConvertedProperty("AutoEventWireup"); }
- set { SetProperty("AutoEventWireup", value); }
- }
-
- [DefaultValue(true)]
- [Category("Behaviour")]
- [Description("Whether HTTP response buffering is enabled")]
- [Bindable(false)]
- [Browsable(true)]
- public new bool Buffer
- {
- get { return (bool)GetConvertedProperty("Buffer"); }
- set { SetProperty("Buffer", value); }
- }
-
- [DefaultValue("")]
- [Category("Compilation")]
- [ReadOnly(true)]
- [Description("The class name for the page when it is compiled")]
- [Bindable(false)]
- [Browsable(true)]
- public string ClassName
- {
- get { return (string)GetConvertedProperty("ClassName"); }
- set { SetProperty("ClassName", value); }
- }
-
- [DefaultValue("")]
- [Category("Behaviour")]
- [Description("The user agent which controls should target when rendering")]
- [Bindable(false)]
- [Browsable(true)]
- public new string ClientTarget
- {
- get { return (string)GetConvertedProperty("ClientTarget"); }
- set { SetProperty("ClientTarget", value); }
- }
-
- [DefaultValue("")]
- [ReadOnly(true)]
- [Category("Designer")]
- [Description("The codebehind file associated with the page")]
- [Bindable(false)]
- [Browsable(true)]
- public string CodeBehind
- {
- get { return (string)GetConvertedProperty("CodeBehind"); }
- set { SetProperty("CodeBehind", value); }
- }
-
- [DefaultValue(0)]
- [Category("Globalization")]
- [Description("The code page used for the response")]
- [Bindable(false)]
- [Browsable(true)]
- public new int CodePage
- {
- get { return (int)GetConvertedProperty("CodePage"); }
- set { SetProperty("CodePage", value); }
- }
-
- [DefaultValue("")]
- [Category("Compilation")]
- [Description("Command-line options used when compiling the page")]
- [Bindable(false)]
- [Browsable(true)]
- public string CompilerOptions
- {
- get { return (string)GetConvertedProperty("CompilerOptions"); }
- set { SetProperty("CompilerOptions", value); }
- }
-
- [DefaultValue("text/html")]
- [Category("Behaviour")]
- [Description("The MIME type of the HTTP response content")]
- [Bindable(false)]
- [Browsable(true)]
- public new string ContentType
- {
- get { return (string)GetConvertedProperty("ContentType"); }
- set { SetProperty("ContentType", value); }
- }
-
- [DefaultValue(null)]
- [Category("Globalization")]
- [Description("The culture setting for the page")]
- [Bindable(false)]
- [Browsable(true)]
- public new CultureInfo Culture
- {
- get { return (CultureInfo)GetConvertedProperty("Culture"); }
- set { SetProperty("Culture", value); }
- }
-
- [DefaultValue(false)]
- [Category("Compilation")]
- [Description("Whether the page should be compiled with debugging symbols")]
- [Bindable(false)]
- [Browsable(true)]
- public bool Debug
- {
- get { return (bool)GetConvertedProperty("Debug"); }
- set { SetProperty("Debug", value); }
- }
-
- [DefaultValue("")]
- [Category("Designer")]
- [Description("A description of the page")]
- [Bindable(false)]
- [Browsable(true)]
- public string Description
- {
- get { return (string)GetConvertedProperty("Description"); }
- set { SetProperty("Description", value); }
- }
-
- [DefaultValue("true")]
- [Category("Behaviour")]
- [Description("Whether SessionState is enabled (true), read-only (ReadOnly) or disabled (false)")]
- [Bindable(false)]
- [Browsable(true)]
- public string EnableSessionState
- {
- get { return (string)GetConvertedProperty("EnableSessionState"); }
- set { SetProperty("EnableSessionState", value); }
- }
-
- [DefaultValue(true)]
- [Category("Behaviour")]
- [Description("Whether view state is enabled")]
- [Bindable(false)]
- [Browsable(true)]
- public new bool EnableViewState
- {
- get { return (bool)GetConvertedProperty("EnableViewState"); }
- set { SetProperty("EnableViewState", value); }
- }
-
- [DefaultValue(false)]
- [Category("Behaviour")]
- [Description("Whether a machine authentication check should be run on the view state")]
- [Bindable(false)]
- [Browsable(true)]
- public bool ViewStateMac
- {
- get { return (bool)GetConvertedProperty("ViewStateMac"); }
- set { SetProperty("ViewStateMac", value); }
- }
-
- [DefaultValue("")]
- [Category("Behaviour")]
- [Description("The URL to redirect to in the event of an unhandled page exception")]
- [Bindable(false)]
- [Browsable(true)]
- public new string ErrorPage
- {
- get { return (string)GetConvertedProperty("ErrorPage"); }
- set { SetProperty("ErrorPage", value); }
- }
-
- [DefaultValue(false)]
- [Category("Compilation")]
- [Description("Whether the page should be compiled with Option Explicit for VB 2005")]
- [Bindable(false)]
- [Browsable(true)]
- public bool Explicit
- {
- get { return (bool)GetConvertedProperty("Explicit"); }
- set { SetProperty("Explicit", value); }
- }
-
- [DefaultValue("")]
- [Category("Compilation")]
- [Description("The code-behind class from which the page inherits")]
- [Bindable(false)]
- [Browsable(true)]
- public string Inherits
- {
- get { return (string)GetConvertedProperty("Inherits"); }
- set { SetProperty("Inherits", value); }
- }
-
- [DefaultValue("")]
- [ReadOnly(true)]
- [Category("Compilation")]
- [Description("The language used for compiling inline rendering and block code")]
- [Bindable(false)]
- [Browsable(true)]
- public string Language
- {
- get { return (string)GetConvertedProperty("Language"); }
- set { SetProperty("Language", value); }
- }
-
- [DefaultValue(0)]
- [Category("Globalization")]
- [Description("The locale identifier of the page. Defaults to the web server's locale")]
- [Bindable(false)]
- [Browsable(true)]
- public new int LCID
- {
- get { return (int)GetConvertedProperty("LCID"); }
- set { SetProperty("LCID", value); }
- }
-
- [DefaultValue(null)]
- [Category("Globalization")]
- [Description("The encoding of the HTTP response content")]
- [Bindable(false)]
- [Browsable(true)]
- public new Encoding ResponseEncoding
- {
- get { return (Encoding)GetConvertedProperty("ResponseEncoding"); }
- set { SetProperty("ResponseEncoding", value); }
- }
-
- [DefaultValue("")]
- [ReadOnly(true)]
- [Category("Compilation")]
- [Description("The optional code-behind source file to compile when the page is requested")]
- [Bindable(false)]
- [Browsable(true)]
- public string Src
- {
- get { return (string)GetConvertedProperty("Src"); }
- set { SetProperty("Src", value); }
- }
-
- [DefaultValue(false)]
- [Category("Behaviour")]
- [Description("Whether to maintain scroll position and focus during refreshes. IE5.5 or later only.")]
- [Bindable(false)]
- [Browsable(true)]
- public new bool SmartNavigation
- {
- get { return (bool)GetConvertedProperty("SmartNavigation"); }
- set { SetProperty("SmartNavigation", value); }
- }
-
- [DefaultValue(false)]
- [Category("Compilation")]
- [Description("Whether the page should be compiled with Option Strict for VB 2005")]
- [Bindable(false)]
- [Browsable(true)]
- public bool Strict
- {
- get { return (bool)GetConvertedProperty("Strict"); }
- set { SetProperty("Strict", value); }
- }
-
- [DefaultValue(false)]
- [Category("Behaviour")]
- [Description("Whether tracing is enabled")]
- [Bindable(false)]
- [Browsable(true)]
- public new bool Trace
- {
- get { return (bool)GetConvertedProperty("Trace"); }
- set { SetProperty("Trace", value); }
- }
-
- [DefaultValue(TraceMode.Default)]
- [Category("Behaviour")]
- [Description("The sorting mode for tracing message")]
- [Bindable(false)]
- [Browsable(true)]
- public TraceMode TraceMode
- {
- get { return (TraceMode)GetConvertedProperty("TraceMode"); }
- set { SetProperty("TraceMode", value); }
- }
-
- [DefaultValue("Disabled")]
- [Category("Behaviour")]
- [Description("How transactions are supported. Disabled, NotSupported, Supported, Required, or RequiresNew")]
- [Bindable(false)]
- [Browsable(true)]
- public string Transaction
- {
- get { return (string)GetConvertedProperty("Transaction"); }
- set { SetProperty("Transaction", value); }
- }
-
- [DefaultValue(null)]
- [Category("Globalization")]
- [Description("The UI culture to use")]
- [Bindable(false)]
- [Browsable(true)]
- public new CultureInfo UICulture
- {
- get { return (CultureInfo)GetConvertedProperty("UICulture"); }
- set { SetProperty("UICulture", value); }
- }
-
- [DefaultValue(true)]
- [Category("Behaviour")]
- [Description("Whether to use request validation to increase security")]
- [Bindable(false)]
- [Browsable(true)]
- public bool ValidateRequest
- {
- get { return (bool)GetConvertedProperty("ValidateRequest"); }
- set { SetProperty("ValidateRequest", value); }
- }
-
- [DefaultValue(4)]
- [Category("Compilation")]
- [Description("The compiler warning level at which to abort compilation")]
- [Bindable(false)]
- [Browsable(true)]
- public int WarningLevel
- {
- get { return (int)GetConvertedProperty("WarningLevel"); }
- set { SetProperty("WarningLevel", value); }
- }
-
- #endregion
- }
-}
diff --git a/extras/AspNetEdit/AspNetEdit.Editor.ComponentModel/WebFormReferenceManager.cs b/extras/AspNetEdit/AspNetEdit.Editor.ComponentModel/WebFormReferenceManager.cs
deleted file mode 100644
index df9c14fe64..0000000000
--- a/extras/AspNetEdit/AspNetEdit.Editor.ComponentModel/WebFormReferenceManager.cs
+++ /dev/null
@@ -1,183 +0,0 @@
- /*
- * WebFormReferenceManager.cs - tracks references in a WebForm page
- *
- * Authors:
- * Michael Hutchinson <m.j.hutchinson@gmail.com>
- *
- * Copyright (C) 2005 Michael Hutchinson
- *
- * This sourcecode is licenced under The MIT License:
- *
- * Permission is hereby granted, free of charge, to any person obtaining
- * a copy of this software and associated documentation files (the
- * "Software"), to deal in the Software without restriction, including
- * without limitation the rights to use, copy, modify, merge, publish,
- * distribute, sublicense, and/or sell copies of the Software, and to permit
- * persons to whom the Software is furnished to do so, subject to the
- * following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
- * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
- * NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
- * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
- * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
- * USE OR OTHER DEALINGS IN THE SOFTWARE.
- */
-
-using System;
-using System.Collections;
-using System.Web.UI.Design;
-using System.ComponentModel.Design;
-using System.Reflection;
-using System.Web.UI;
-using System.Globalization;
-
-namespace AspNetEdit.Editor.ComponentModel
-{
- public class WebFormReferenceManager : IWebFormReferenceManager
- {
- private DesignerHost host;
- private ITypeResolutionService typeRes;
- private int prefixIndex = 1;
-
- //TODO: Some way to reset this when host is reset
- public WebFormReferenceManager (DesignerHost host)
- {
- if (host == null)
- throw new ArgumentNullException ("host");
- this.host = host;
- this.typeRes = host.GetService (typeof (ITypeResolutionService)) as ITypeResolutionService;
- if (typeRes == null)
- throw new Exception ("Could not obtain ITypesResolutionService from host");
- }
-
-
- #region IWebFormReferenceManager Members
-
- public Type GetObjectType(string tagPrefix, string typeName)
- {
- if (0 == string.Compare (tagPrefix, "asp", true, CultureInfo.InvariantCulture))
- return typeof (System.Web.UI.WebControls.WebControl).Assembly.GetType ("System.Web.UI.WebControls."+typeName, true, true);
-
- //look it up in reference directives
- DocumentDirective[] directives = host.RootDocument.GetDirectives("Register");
- foreach (DocumentDirective dd in directives)
- if (0 == string.Compare (tagPrefix, dd["Tagprefix"], true, CultureInfo.InvariantCulture)) {
-
- if (dd["Assembly"] == string.Empty || dd["Assembly"] == null)
- //TODO: Usercontrols
- throw new NotImplementedException ();
- return typeRes.GetType (dd["Namespace"] + "." + typeName, true, true);
- }
-
- throw new Exception ("The tag prefix \"" + tagPrefix + "\" has not been registered");
- }
-
- public string GetRegisterDirectives ()
- {
- DocumentDirective[] directives = host.RootDocument.GetDirectives("Register");
- string retVal = string.Empty;
- foreach (DocumentDirective dd in directives)
- retVal += dd.ToString();
- return retVal;
- }
-
- public string GetTagPrefix (Type objectType)
- {
- if (objectType.Namespace.StartsWith ("System.Web.UI"))
- return "asp";
-
- DocumentDirective[] directives = host.RootDocument.GetDirectives ("Reference");
- foreach (DocumentDirective dd in directives)
- if (0 == string.Compare (dd["Namespace"], objectType.Namespace, true, CultureInfo.InvariantCulture))
- return dd["Tagprefix"];
-
- throw new Exception ("A tag prefix has not been registered for " + objectType.ToString ());
- }
-
- #endregion
-
- #region Add/Remove references
-
- public void AddReference (Type type)
- {
- if (type.Assembly == typeof(System.Web.UI.WebControls.WebControl).Assembly)
- return;
- if (type.Assembly == typeof(WebFormReferenceManager).Assembly)
- return;
-
- string prefix = null;
-
- //check if there's a prefix for this namespace in the assembly
- TagPrefixAttribute[] atts = (TagPrefixAttribute[]) type.Assembly.GetCustomAttributes (typeof (TagPrefixAttribute), true);
- foreach (TagPrefixAttribute tpa in atts)
- if (0 == string.Compare (tpa.NamespaceName, type.Namespace, false, CultureInfo.InvariantCulture))
- prefix = tpa.TagPrefix;
-
- //generate default prefix
- if (prefix == null) {
- prefix = "cc" + prefixIndex.ToString ();
- prefixIndex++;
- }
-
- AddReference (type, prefix);
- return;
-
- }
-
- public void AddReference (Type type, string prefix)
- {
- if (type.Assembly == typeof(System.Web.UI.WebControls.WebControl).Assembly)
- return;
-
- //check namespace is not already registered
- bool prefixExists = false;
- bool namespaceExists = false;
- DocumentDirective[] directives = host.RootDocument.GetDirectives("Register");
- foreach (DocumentDirective dd in directives) {
- if (0 == string.Compare (dd["Namespace"], type.Namespace, false, CultureInfo.InvariantCulture))
- namespaceExists = true;
- if (0 == string.Compare (dd["Tagprefix"], prefix, true, CultureInfo.InvariantCulture))
- prefixExists = true;
- }
- if (namespaceExists)
- throw new Exception ("That namespace is already registered with another prefix");
- if (prefixExists) {
- //duplicate prefix; generate a new one.
- //FIXME: possibility of stack overflow with too many default prefixes in existing document
- AddReference (type);
- return;
- }
-
- //build and register the assembly
- Hashtable atts = new Hashtable ();
- atts["Namespace"] = type.Namespace;
- atts["Tagprefix"] = prefix;
- atts["Assembly"] = type.Assembly.GetName ().Name;
-
- host.RootDocument.AddDirective ("Register", atts);
- }
-
- #endregion
-
-
- //ASPNET2 WebFormReferenceManager members
- /*
- public string RegisterTagPrefix (Type objectType)
- {
- }
-
- public string GetUserControlPath (string tagPrefix, string tagName)
- {
- }
-
- public Type GetType(string tagPrefix, string tagName)
- {
- }
- */
- }
-}
diff --git a/extras/AspNetEdit/AspNetEdit.Editor.Persistence/ControlPersister.cs b/extras/AspNetEdit/AspNetEdit.Editor.Persistence/ControlPersister.cs
deleted file mode 100644
index 0acf75cb27..0000000000
--- a/extras/AspNetEdit/AspNetEdit.Editor.Persistence/ControlPersister.cs
+++ /dev/null
@@ -1,414 +0,0 @@
-// AspNetEdit.Editor.Persistence.ControlPersister
-// based on Mono's System.Web.UI.Design.ControlPersister
-//
-// Authors:
-// Gert Driesen (drieseng@users.sourceforge.net)
-// Michael Hutchinson <m.j.hutchinson@gmail.com>
-//
-// (C) 2004 Novell
-// (c) 2205 Michael Hutchinson
-
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-using System;
-using System.IO;
-using System.Text;
-using System.Collections;
-using System.ComponentModel;
-using System.ComponentModel.Design;
-using System.Web.UI;
-using System.Web.UI.Design;
-
-namespace AspNetEdit.Editor.Persistence
-{
- public sealed class ControlPersister
- {
- private ControlPersister ()
- {
- }
-
- #region Public members. They call private methods with some checking and restrictions.
-
- public static string PersistControl (Control control)
- {
- if (control.Site == null)
- return string.Empty;
-
- IDesignerHost host = control.Site.GetService (typeof(IDesignerHost)) as IDesignerHost;
-
- return PersistControl (control, host);
- }
-
- public static void PersistControl (TextWriter sw, Control control)
- {
- if (control.Site == null)
- return;
-
- IDesignerHost host = control.Site.GetService (typeof(IDesignerHost)) as IDesignerHost;
-
- PersistControl (sw, control, host);
- }
-
- public static string PersistControl (Control control, IDesignerHost host)
- {
- TextWriter writer = new StringWriter ();
-
- PersistControl (writer, control, host);
-
- writer.Flush ();
- return writer.ToString ();
- }
-
- public static void PersistControl(TextWriter sw, Control control, IDesignerHost host)
- {
- //check input
- if (host == null)
- throw new ArgumentNullException ("host");
- if (control == null)
- throw new ArgumentNullException ("control");
- if (sw == null)
- throw new ArgumentNullException ("sw");
-
- //We use an HtmlTextWriter for output
- HtmlTextWriter writer;
- if (sw is HtmlTextWriter)
- writer = (HtmlTextWriter) sw;
- else
- writer = new HtmlTextWriter (sw);
-
- PersistObject(writer, control, host, true);
- }
-
- public static string PersistInnerProperties (object component, IDesignerHost host)
- {
- TextWriter sw = new StringWriter ();
-
- PersistInnerProperties (sw, component, host);
-
- sw.Flush();
- return sw.ToString();
- }
-
- public static void PersistInnerProperties (TextWriter sw, object component, IDesignerHost host)
- {
- //check input
- if (host == null)
- throw new ArgumentNullException ("host");
- if (component == null)
- throw new ArgumentNullException ("component");
-
- if (!(component is System.Web.UI.Control))
- throw new InvalidOperationException ("Only components that derive from System.Web.UI.Control can be serialised");
-
- //privte method needs an HtmlTextWriter
- HtmlTextWriter writer;
- if (sw is HtmlTextWriter)
- writer = (HtmlTextWriter) sw;
- else
- writer = new HtmlTextWriter (sw);
-
- //write and flush
- PersistInnerProperties (writer, component, host);
- writer.Flush();
- }
-
- #endregion
-
- private static void PersistObject (HtmlTextWriter writer, object control, IDesignerHost host, bool runAtServer)
- {
- //look up tag prefix from host
- IWebFormReferenceManager refMan = host.GetService (typeof (IWebFormReferenceManager)) as IWebFormReferenceManager;
- if (refMan == null)
- throw new Exception("Could not obtain IWebFormReferenceManager service");
- string prefix = refMan.GetTagPrefix (control.GetType ());
-
- //write tag to HtmlTextWriter
- writer.WriteBeginTag (prefix + ":" + control.GetType().Name);
-
- //go through all the properties and add attributes if necessary
- PropertyDescriptorCollection properties = TypeDescriptor.GetProperties (control);
- foreach (PropertyDescriptor prop in properties)
- ProcessAttribute (prop, control, writer, string.Empty);
-
- if (runAtServer)
- writer.WriteAttribute ("runat", "server");
-
- //do the same for events
- IComponent comp = control as IComponent;
- if (comp != null && comp.Site != null) {
- IEventBindingService evtBind = (IEventBindingService) comp.Site.GetService (typeof (IEventBindingService));
- if (evtBind != null)
- foreach (EventDescriptor e in TypeDescriptor.GetEvents (comp))
- ProcessEvent (e, comp, writer, evtBind);
- }
-
-
- //ControlDesigner designer = (ControlDesigner) host.GetDesigner(control);
- //TODO: we don't yet support designer.GetPersistInnerHtml() 'cause we don't have the designers...
- if (HasInnerProperties(control)) {
- writer.Write (HtmlTextWriter.TagRightChar);
- writer.Indent++;
- PersistInnerProperties (writer, control, host);
- writer.Indent--;
- writer.WriteEndTag (prefix + ":" + control.GetType ().Name);
- }
- else
- writer.Write (HtmlTextWriter.SelfClosingTagEnd);
-
- writer.WriteLine ();
- writer.Flush ();
- }
-
- private static void ProcessEvent (EventDescriptor e, IComponent comp, HtmlTextWriter writer, IEventBindingService evtBind)
- {
- PropertyDescriptor prop = evtBind.GetEventProperty (e);
- string value = null;
-
- //FIXME: there are several NotImplementedExceptions in Mono's ASP.NET 2.0
- //this is a hack so it doesn't break when encountering them
- try {
- value = prop.GetValue (comp) as string;
- } catch (Exception ex) {
- if ((ex is NotImplementedException) || (ex.InnerException is NotImplementedException))
- return;
- else
- throw;
- }
-
- if (prop.SerializationVisibility != DesignerSerializationVisibility.Visible
- || value == null
- || prop.DesignTimeOnly
- || prop.IsReadOnly
- || !prop.ShouldSerializeValue (comp))
- return;
-
- writer.WriteAttribute ("On" + prop.Name, value);
- }
-
- /// <summary>
- /// Writes an attribute to an HtmlTextWriter if it needs serializing
- /// </summary>
- /// <returns>True if it does any writing</returns>
- private static bool ProcessAttribute (PropertyDescriptor prop, object o, HtmlTextWriter writer, string prefix)
- {
- //FIXME: there are several NotImplementedExceptions in Mono's ASP.NET 2.0
- //this is a hack so it doesn't break when encountering them
- try {
- prop.GetValue (o);
- } catch (Exception ex) {
- if ((ex is NotImplementedException) || (ex.InnerException is NotImplementedException))
- return false;
- else
- throw;
- }
-
- //FIXME: Mono has started to return prop.ShouldSerializeValue = false for ID
- //workaround, because I'm not sure if this is expected behaviour, and it would still be
- //broken for some people's runtime
- if (prop.DisplayName == "ID") {
- writer.WriteAttribute ("id", prop.GetValue (o) as string);
- return true;
- }
-
- //check whether we're serialising it
- if (prop.SerializationVisibility == DesignerSerializationVisibility.Hidden
- || prop.DesignTimeOnly
- || prop.IsReadOnly
- || !prop.ShouldSerializeValue (o)
- || prop.Converter == null
- || !prop.Converter.CanConvertTo (typeof(string)))
- return false;
-
- bool foundAttrib = false;
-
- //is this an attribute? If it's content, we deal with it later.
- PersistenceModeAttribute modeAttrib = prop.Attributes[typeof (PersistenceModeAttribute)] as PersistenceModeAttribute;
- if (modeAttrib == null || modeAttrib.Mode == PersistenceMode.Attribute)
- {
- if (prop.SerializationVisibility == DesignerSerializationVisibility.Visible) {
- if (prefix == string.Empty)
- writer.WriteAttribute (prop.Name, prop.Converter.ConvertToString (prop.GetValue (o)));
- else
- writer.WriteAttribute (prefix + "-" + prop.Name, prop.Converter.ConvertToString (prop.GetValue(o)));
- foundAttrib = true;
- }
- //recursively handle subproperties
- else if (prop.SerializationVisibility == DesignerSerializationVisibility.Content) {
- object val = prop.GetValue (o);
- foreach (PropertyDescriptor p in prop.GetChildProperties (val))
- if (ProcessAttribute (p, val, writer, prop.Name))
- foundAttrib = true;
- }
- }
- return foundAttrib;
- }
-
- private static void PersistInnerProperties (HtmlTextWriter writer, object component, IDesignerHost host)
- {
- //Do we have child controls as inner content of control?
- PersistChildrenAttribute persAtt = TypeDescriptor.GetAttributes (component)[typeof (PersistChildrenAttribute)] as PersistChildrenAttribute;
- if (persAtt != null && persAtt.Persist && (component is Control))
- {
- if (((Control)component).Controls.Count > 0)
- {
- writer.Indent++;
- foreach (Control child in ((Control) component).Controls) {
- PersistControl (writer, child, host);
- }
- writer.Indent--;
- }
- }
- //We don't, so we're going to have to go though the properties
- else
- {
- PropertyDescriptorCollection properties = TypeDescriptor.GetProperties (component);
- bool contentStarted = false;
- foreach (PropertyDescriptor prop in properties)
- {
- //check whether we're serialising it
- if (prop.SerializationVisibility == DesignerSerializationVisibility.Hidden
- || prop.DesignTimeOnly
- //|| !prop.ShouldSerializeValue (component) //confused by collections...
- || prop.Converter == null)
- continue;
-
- PersistenceModeAttribute modeAttrib = prop.Attributes[typeof(PersistenceModeAttribute)] as PersistenceModeAttribute;
- if (modeAttrib == null || modeAttrib.Mode == PersistenceMode.Attribute)
- continue;
-
- //handle the different modes
- switch (modeAttrib.Mode)
- {
- case PersistenceMode.EncodedInnerDefaultProperty:
- if (contentStarted)
- throw new Exception("The Control has inner properties in addition to a default inner property");
- if (prop.Converter.CanConvertTo (typeof (string))){
- writer.Write(System.Web.HttpUtility.HtmlEncode (prop.Converter.ConvertToString (prop.GetValue (component))));
- return;
- }
- break;
- case PersistenceMode.InnerDefaultProperty:
- if (contentStarted)
- throw new Exception("The Control has inner properties in addition to a default inner property");
- PersistInnerProperty(prop, prop.GetValue (component), writer, host, true);
- return;
- case PersistenceMode.InnerProperty:
- PersistInnerProperty (prop, prop.GetValue (component), writer, host, false);
- contentStarted = true;
- break;
- }
- }
- writer.WriteLine();
- }
- }
-
- //once we've determined we need to persist a property, this does the actual work
- private static void PersistInnerProperty (PropertyDescriptor prop, object value, HtmlTextWriter writer, IDesignerHost host, bool isDefault)
- {
- //newline and indent
- writer.WriteLine();
-
- //trivial case
- if (value == null) {
- if (!isDefault) {
- writer.WriteBeginTag (prop.Name);
- writer.Write (HtmlTextWriter.SelfClosingTagEnd);
- }
- return;
- }
-
-
- //A collection? Persist individual objects.
- if (value is ICollection) {
- if (((ICollection) value).Count > 0) {
- //if default property needs no surrounding tags
- if(!isDefault) {
- writer.WriteFullBeginTag (prop.Name);
- writer.Indent++;
- }
-
- foreach (object o in (ICollection)value)
- PersistObject (writer, o, host, false);
-
- if(!isDefault) {
- writer.Indent--;
- writer.WriteEndTag (prop.Name);
- }
- }
- }
- //default but not collection: just write content
- else if (isDefault) {
- if (prop.Converter.CanConvertTo (typeof (string))){
- writer.Write (prop.Converter.ConvertToString (value));
- return;
- }
- }
- //else: a tag of property name, with sub-properties as attribs
- else {
- //only want to render tag if it has any attributes
- writer.WriteBeginTag (prop.Name);
-
- foreach (PropertyDescriptor p in TypeDescriptor.GetProperties(value))
- ProcessAttribute (p, value, writer, string.Empty);
-
- writer.Write (HtmlTextWriter.SelfClosingTagEnd);
- }
- }
-
- //simply checks if there are any inner properties to render so we can use self-closing tags
- private static bool HasInnerProperties (object component)
- {
- if (component == null)
- throw new ArgumentNullException ("component");
-
-
- //Do we have child controls as inner content of control?
- PersistChildrenAttribute persAtt = TypeDescriptor.GetAttributes (component)[typeof(PersistChildrenAttribute)] as PersistChildrenAttribute;
- if (persAtt != null && persAtt.Persist && (component is Control))
- {
- return true;
- }
- //We don't, so we're going to have to go though the properties
- else
- {
- PropertyDescriptorCollection properties = TypeDescriptor.GetProperties (component);
- foreach (PropertyDescriptor prop in properties)
- {
- //check whether we're serialising it
- if (prop.SerializationVisibility == DesignerSerializationVisibility.Hidden
- || prop.DesignTimeOnly
- //|| !prop.ShouldSerializeValue(component) //confused by collections....
- || prop.Converter == null)
- continue;
-
- PersistenceModeAttribute modeAttrib = prop.Attributes[typeof (PersistenceModeAttribute)] as PersistenceModeAttribute;
- if (modeAttrib == null || modeAttrib.Mode == PersistenceMode.Attribute)
- continue;
-
- return true;
- }
- }
-
- return false;
- }
- }
-}
diff --git a/extras/AspNetEdit/AspNetEdit.Editor.Persistence/DesignTimeParser.cs b/extras/AspNetEdit/AspNetEdit.Editor.Persistence/DesignTimeParser.cs
deleted file mode 100644
index b6c0d7f0c4..0000000000
--- a/extras/AspNetEdit/AspNetEdit.Editor.Persistence/DesignTimeParser.cs
+++ /dev/null
@@ -1,185 +0,0 @@
-/*
-* DesignTimeParser.cs - Parses an ASP.NET page at design-time
-*
-* Authors:
-* Michael Hutchinson <m.j.hutchinson@gmail.com>
-*
-* Copyright (C) 2005 Michael Hutchinson
-*
-* This sourcecode is licenced under The MIT License:
-*
-* Permission is hereby granted, free of charge, to any person obtaining
-* a copy of this software and associated documentation files (the
-* "Software"), to deal in the Software without restriction, including
-* without limitation the rights to use, copy, modify, merge, publish,
-* distribute, sublicense, and/or sell copies of the Software, and to permit
-* persons to whom the Software is furnished to do so, subject to the
-* following conditions:
-*
-* The above copyright notice and this permission notice shall be included in
-* all copies or substantial portions of the Software.
-*
-* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
-* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
-* NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
-* DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
-* OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
-* USE OR OTHER DEALINGS IN THE SOFTWARE.
-*/
-
-using System;
-using System.Text;
-using System.ComponentModel.Design;
-using System.IO;
-using System.Collections;
-using System.Web.UI.Design;
-using System.Web.UI;
-using System.ComponentModel;
-using AspNetEdit.Editor.ComponentModel;
-
-using MonoDevelop.AspNet.Parser.Internal;
-using MonoDevelop.AspNet.Parser.Dom;
-
-namespace AspNetEdit.Editor.Persistence
-{
- public class DesignTimeParser
- {
- DesignerHost host;
- IWebFormReferenceManager refMan;
-
- RootParsingObject rootParsingObject = null;
- ParsingObject openObject = null;
- Document document = null;
-
- public DesignTimeParser (DesignerHost host, Document document)
- {
- this.host = host;
- this.document = document;
- refMan = host.GetService(typeof(IWebFormReferenceManager)) as IWebFormReferenceManager;
- if (refMan == null)
- throw new Exception ("Could not get IWebFormReferenceManager from host");
- }
-
- /// <summary>
- /// Parses a document fragment. Processes all controls and directives and adds them to host.
- /// </summary>
- /// <param name="fragment">The document fragment to parse</param>
- /// <returns>The document with all controls, directives and script blocks replaced by placeholders</returns>
- public void ProcessFragment (string fragment, out Control[] controls, out string substText)
- {
-
- AspParser parser = InitialiseParser (fragment);
-
- rootParsingObject = new RootParsingObject(host);
- openObject = rootParsingObject;
-
- parser.Parse ();
-
- if (openObject != rootParsingObject) {
- throw new Exception ("The tag " + openObject.TagID + " was left unclosed");
- }
-
- rootParsingObject.GetParsedContent (out controls, out substText);
- }
-
- private AspParser InitialiseParser (string parseText)
- {
- AspParser parser = null;
- using (StringReader reader = new StringReader (parseText)) {
- parser = new AspParser (null, reader);
- }
-
- parser.Error += new ParseErrorHandler (ParseError);
- parser.TagParsed += new TagParsedHandler (TagParsed);
- parser.TextParsed += new TextParsedHandler (TextParsed);
-
- return parser;
- }
-
- void ParseError (ILocation location, string message)
- {
- throw new ParseException (location, message);
- }
-
- void TagParsed (ILocation location, TagType tagtype, string tagid, TagAttributes attributes)
- {
- switch (tagtype)
- {
- case TagType.Close:
- if (openObject == null)
- throw new ParseException (location, "There are more closing tags than opening tags");
-
- if (0 != string.Compare (openObject.TagID, tagid))
- throw new ParseException (location, "Closing tag " + tagid + " does not match opening tag " + openObject.TagID);
- openObject = openObject.CloseObject (location.PlainText);
- break;
- case TagType.CodeRender:
- throw new NotImplementedException ("Code render expressions have not yet been implemented: " + location.PlainText);
- //break;
- case TagType.CodeRenderExpression:
- throw new NotImplementedException ("Code render expressions have not yet been implemented: " + location.PlainText);
- //break;
- case TagType.DataBinding:
- throw new NotImplementedException("Data binding expressions have not yet been implemented: " + location.PlainText);
- //break;
- case TagType.Directive:
- ProcessDirective (tagid, attributes);
- break;
- case TagType.Include:
- throw new NotImplementedException ("Server-side includes have not yet been implemented: " + location.PlainText);
- //break;
- case TagType.ServerComment:
- throw new NotImplementedException ("Server comments have not yet been implemented: " + location.PlainText);
- //break;
- case TagType.Tag:
- //TODO: don't do this for XHTML
- if ((string.Compare (tagid, "br", true) == 0)
- || (string.Compare (tagid, "hr", true) == 0))
- goto case TagType.SelfClosing;
-
- openObject = openObject.CreateChildParsingObject(location, tagid, attributes);
- break;
- case TagType.SelfClosing:
- if (openObject == null)
- throw new Exception ("Root tag cannot be self-closing");
-
- openObject = openObject.CreateChildParsingObject(location, tagid, attributes);
- openObject = openObject.CloseObject(string.Empty);
- break;
- case TagType.Text:
- throw new NotImplementedException("Text tagtypes have not yet been implemented: " + location.PlainText);
- //break;
- }
- }
-
-
- /*TODO: if only we could get the controlbuilder to build the control like in .NET 2's builder.BuildObject ()
- ControlBuilder builder = ControlBuilder.CreateBuilderFromType (null, b, tagType, str[1], (string) attributes["ID"], attributes.GetDictionary (null), currentLocation.BeginLine, currentLocation.Filename);
-
- if (builder == null)
- throw new ParseException (currentLocation, "Could not create builder for type " + tagType);
- builder.SetServiceProvider (host);
- Control c = builder.BuildObject ();
- */
-
- void ProcessDirective (string tagid, TagAttributes attributes)
- {
- string placeholder = document.AddDirective (tagid, attributes.GetDictionary (null));
- openObject.AddText (placeholder);
- }
-
- void TextParsed (ILocation location, string text)
- {
- openObject.AddText (text);
- }
- }
-
-
-
-
-
-
-
-
-}
diff --git a/extras/AspNetEdit/AspNetEdit.Editor.Persistence/HtmlParsingObject.cs b/extras/AspNetEdit/AspNetEdit.Editor.Persistence/HtmlParsingObject.cs
deleted file mode 100644
index 1a8f9b04ee..0000000000
--- a/extras/AspNetEdit/AspNetEdit.Editor.Persistence/HtmlParsingObject.cs
+++ /dev/null
@@ -1,63 +0,0 @@
-/*
-* HtmlParsingObject.cs - A ParsingObject for html tags
-*
-* Authors:
-* Michael Hutchinson <m.j.hutchinson@gmail.com>
-*
-* Copyright (C) 2005 Michael Hutchinson
-*
-* This sourcecode is licenced under The MIT License:
-*
-* Permission is hereby granted, free of charge, to any person obtaining
-* a copy of this software and associated documentation files (the
-* "Software"), to deal in the Software without restriction, including
-* without limitation the rights to use, copy, modify, merge, publish,
-* distribute, sublicense, and/or sell copies of the Software, and to permit
-* persons to whom the Software is furnished to do so, subject to the
-* following conditions:
-*
-* The above copyright notice and this permission notice shall be included in
-* all copies or substantial portions of the Software.
-*
-* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
-* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
-* NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
-* DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
-* OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
-* USE OR OTHER DEALINGS IN THE SOFTWARE.
-*/
-
-using System;
-using System.Text;
-
-namespace AspNetEdit.Editor.Persistence
-{
- internal class HtmlParsingObject : ParsingObject
- {
- public HtmlParsingObject (string tagText, string tagid, ParsingObject parent)
- : base (tagid, parent)
- {
- AddText (tagText);
- }
-
- public override ParsingObject CloseObject (string closingTagText)
- {
- AddText (closingTagText);
- return base.CloseObject (closingTagText);
- }
-}
-
- internal class ServerFormParsingObject : HtmlParsingObject
- {
- public ServerFormParsingObject (string tagText, string tagid, ParsingObject parent)
- : base (tagText, tagid, parent)
- {
- }
-
- public override bool InServerForm
- {
- get { return true; }
- }
- }
-}
diff --git a/extras/AspNetEdit/AspNetEdit.Editor.Persistence/ParsingObject.cs b/extras/AspNetEdit/AspNetEdit.Editor.Persistence/ParsingObject.cs
deleted file mode 100644
index d2ebd1d3c7..0000000000
--- a/extras/AspNetEdit/AspNetEdit.Editor.Persistence/ParsingObject.cs
+++ /dev/null
@@ -1,139 +0,0 @@
-/*
-* ParsingObject.cs - Similar to ControlBuilder. Builds document and controls for a parsed tag
-*
-* Authors:
-* Michael Hutchinson <m.j.hutchinson@gmail.com>
-*
-* Copyright (C) 2005 Michael Hutchinson
-*
-* This sourcecode is licenced under The MIT License:
-*
-* Permission is hereby granted, free of charge, to any person obtaining
-* a copy of this software and associated documentation files (the
-* "Software"), to deal in the Software without restriction, including
-* without limitation the rights to use, copy, modify, merge, publish,
-* distribute, sublicense, and/or sell copies of the Software, and to permit
-* persons to whom the Software is furnished to do so, subject to the
-* following conditions:
-*
-* The above copyright notice and this permission notice shall be included in
-* all copies or substantial portions of the Software.
-*
-* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
-* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
-* NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
-* DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
-* OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
-* USE OR OTHER DEALINGS IN THE SOFTWARE.
-*/
-
-using System;
-using System.Text;
-using System.Web.UI.Design;
-using System.Collections;
-using System.ComponentModel.Design;
-
-using MonoDevelop.AspNet.Parser.Internal;
-using MonoDevelop.AspNet.Parser.Dom;
-
-namespace AspNetEdit.Editor.Persistence
-{
- internal abstract class ParsingObject
- {
- private ParsingObject parent;
- private string tagid;
- private bool closed = false;
-
- protected ParsingObject (string tagid, ParsingObject parent)
- {
- if (parent == null && ! (this is RootParsingObject) )
- throw new ArgumentNullException ("parent", "All ParsingObjects except RootParsingObjects must have parents");
- this.tagid = tagid;
- this.parent = parent;
-
- }
-
- protected virtual IWebFormReferenceManager WebFormReferenceManager
- {
- get { return parent.WebFormReferenceManager; }
- }
-
- protected virtual IDesignerHost DesignerHost
- {
- get { return parent.DesignerHost; }
- }
-
- /// <summary>
- /// Adds control to collection. Default implementation passes it up the tree towards RootParsingObject.
- /// </summary>
- protected virtual void AddControl (object control)
- {
- CheckOpen();
- parent.AddControl (control);
- }
-
- public string TagID
- {
- get { return tagid; }
- }
-
- public virtual bool InServerForm
- {
- get { return (parent == null) ? false : parent.InServerForm; }
- }
-
- /// <summary>
- /// Adds text into document. Default implementation passes it up the tree.
- /// </summary>
- public virtual void AddText (string text)
- {
- CheckOpen ();
- parent.AddText (text);
- }
-
- public virtual bool AllowWhitespace ()
- {
- return true;
- }
-
- protected void CheckOpen ()
- {
- if (closed)
- throw new Exception ("The ParsingObject has been closed and no changes can be made to it");
- }
-
- /// <returns>The parent ParsingObject</returns>
- public virtual ParsingObject CloseObject (string closingTagText)
- {
- return parent;
- }
-
- /// <summary>
- /// Creates a ParsingObject as a child of this one, and returns it.
- /// </summary>
- public virtual ParsingObject CreateChildParsingObject (ILocation location, string tagid, TagAttributes attributes)
- {
- string[] str = tagid.Split(':');
-
- //html tags
- //TODO: check for valid tags?
- if (str.Length == 1)
- {
- if (attributes.IsRunAtServer () && (0 == string.Compare ("form", tagid)))
- return new ServerFormParsingObject (location.PlainText, tagid, this);
- return new HtmlParsingObject (location.PlainText, tagid, this);
- }
-
- //fall through to server tags
- if (str.Length != 2)
- throw new ParseException (location, "Server tag name is not of form prefix:name");
-
- Type tagType = WebFormReferenceManager.GetObjectType(str[0], str[1]);
- if (tagType == null)
- throw new ParseException(location, "The tag " + tagid + "has not been registered");
-
- return new ServerObjectParsingObject (tagType, attributes.GetDictionary(null), tagid, this);
- }
- }
-}
diff --git a/extras/AspNetEdit/AspNetEdit.Editor.Persistence/RootParsingObject.cs b/extras/AspNetEdit/AspNetEdit.Editor.Persistence/RootParsingObject.cs
deleted file mode 100644
index e726d3a75b..0000000000
--- a/extras/AspNetEdit/AspNetEdit.Editor.Persistence/RootParsingObject.cs
+++ /dev/null
@@ -1,82 +0,0 @@
-/*
-* RootParsingObject.cs - a root-level ParsingObject
-*
-* Authors:
-* Michael Hutchinson <m.j.hutchinson@gmail.com>
-*
-* Copyright (C) 2005 Michael Hutchinson
-*
-* This sourcecode is licenced under The MIT License:
-*
-* Permission is hereby granted, free of charge, to any person obtaining
-* a copy of this software and associated documentation files (the
-* "Software"), to deal in the Software without restriction, including
-* without limitation the rights to use, copy, modify, merge, publish,
-* distribute, sublicense, and/or sell copies of the Software, and to permit
-* persons to whom the Software is furnished to do so, subject to the
-* following conditions:
-*
-* The above copyright notice and this permission notice shall be included in
-* all copies or substantial portions of the Software.
-*
-* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
-* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
-* NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
-* DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
-* OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
-* USE OR OTHER DEALINGS IN THE SOFTWARE.
-*/
-
-using System;
-using System.Text;
-using System.Web.UI.Design;
-using System.Web.UI;
-using System.Collections;
-using System.ComponentModel.Design;
-
-namespace AspNetEdit.Editor.Persistence
-{
- internal class RootParsingObject : HtmlParsingObject
- {
- private StringBuilder stringBuilder = new StringBuilder ();
- private ArrayList controls = new ArrayList ();
- private IWebFormReferenceManager refMan;
- private IDesignerHost host;
-
- public RootParsingObject (IDesignerHost host)
- : base ("", "", null)
- {
- this.host = host;
- refMan = host.GetService(typeof(IWebFormReferenceManager)) as IWebFormReferenceManager;
- if (refMan == null)
- throw new Exception ("Could not get IWebFormReferenceManager from host");
- }
-
- public override void AddText (string text)
- {
- stringBuilder.Append (text);
- }
-
- protected override void AddControl (object control)
- {
- controls.Add (control);
- }
-
- public void GetParsedContent (out Control[] controls, out string documentText)
- {
- controls = (Control[]) this.controls.ToArray (typeof(System.Web.UI.Control));
- documentText = stringBuilder.ToString ();
- }
-
- protected override IWebFormReferenceManager WebFormReferenceManager
- {
- get { return refMan; }
- }
-
- protected override IDesignerHost DesignerHost
- {
- get { return host; }
- }
- }
-}
diff --git a/extras/AspNetEdit/AspNetEdit.Editor.Persistence/ServerControlParsingObject.cs b/extras/AspNetEdit/AspNetEdit.Editor.Persistence/ServerControlParsingObject.cs
deleted file mode 100644
index d21fd9b485..0000000000
--- a/extras/AspNetEdit/AspNetEdit.Editor.Persistence/ServerControlParsingObject.cs
+++ /dev/null
@@ -1,268 +0,0 @@
-/*
-* ServerControlParsingObject.cs - A ParsingObject for server controls
-*
-* Authors:
-* Michael Hutchinson <m.j.hutchinson@gmail.com>
-*
-* Copyright (C) 2005 Michael Hutchinson
-*
-* This sourcecode is licenced under The MIT License:
-*
-* Permission is hereby granted, free of charge, to any person obtaining
-* a copy of this software and associated documentation files (the
-* "Software"), to deal in the Software without restriction, including
-* without limitation the rights to use, copy, modify, merge, publish,
-* distribute, sublicense, and/or sell copies of the Software, and to permit
-* persons to whom the Software is furnished to do so, subject to the
-* following conditions:
-*
-* The above copyright notice and this permission notice shall be included in
-* all copies or substantial portions of the Software.
-*
-* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
-* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
-* NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
-* DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
-* OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
-* USE OR OTHER DEALINGS IN THE SOFTWARE.
-*/
-
-using System;
-using System.Collections;
-using System.Text;
-using System.ComponentModel;
-using System.Web.UI;
-using System.Web.UI.Design;
-using System.ComponentModel.Design;
-using System.Globalization;
-
-using AspNetEdit.Editor.ComponentModel;
-using MonoDevelop.AspNet.Parser.Internal;
-using MonoDevelop.AspNet.Parser.Dom;
-
-namespace AspNetEdit.Editor.Persistence
-{
- internal class ServerObjectParsingObject : ParsingObject
- {
- private object obj;
- ParseChildrenAttribute parseAtt;
- PropertyDescriptorCollection pdc;
- private ParseChildrenMode mode;
- private string innerText = String.Empty;
-
- public ServerObjectParsingObject(Type type, Hashtable attributes, string tagid, ParsingObject parent)
- : base (tagid, parent)
- {
- //create the object
- if (type.GetInterface ("System.ComponentModel.IComponent") != null)
- //note: this automatically adds to parent's container, as some controls
- //need to be sited e.g. if they use site dictionaries
- //TODO: should this action be passed up the tree so controls can intercept?
- obj = ((AspNetEdit.Editor.ComponentModel.DesignerHost) base.DesignerHost).CreateComponent (type, attributes["ID"] as string, false);
- else
- obj = Activator.CreateInstance (type);
-
- //and populate it from the attributes
- pdc = TypeDescriptor.GetProperties (obj);
- foreach (DictionaryEntry de in attributes) {
- if (0 == string.Compare((string)de.Key, "runat"))
- continue;
- if (0 == string.Compare((string)de.Key, "ID"))
- continue;
- //use the dash subproperty syntax
- string[] str = ((string)de.Key).Split ('-');
- PropertyDescriptor pd = pdc.Find (str[0], true);
-
- //if property not found, try events
- if (str.Length == 1 && pd == null && CultureInfo.InvariantCulture.CompareInfo.IsPrefix (str[0].ToLower(), "on")) {
- IEventBindingService iebs = (IEventBindingService) DesignerHost.GetService (typeof (IEventBindingService));
- if (iebs == null)
- throw new Exception ("Could not obtain IEventBindingService from host");
-
- EventDescriptorCollection edc = TypeDescriptor.GetEvents (obj);
- EventDescriptor e = edc.Find (str[0].Remove(0,2), true);
- if (e != null)
- pd = iebs.GetEventProperty(e);
- else
- throw new Exception ("Could not find event " + str[0].Remove(0,2));
- }
-
- object loopObj = obj;
-
- for (int i = 0; i < str.Length; i++ )
- {
- if (pd == null)
- throw new Exception ("Could not find property " + (string)de.Key);
-
- if (i == str.Length - 1) {
- pd.SetValue (obj, pd.Converter.ConvertFromString ((string) de.Value));
- break;
- }
-
- loopObj = pd.GetValue (loopObj);
- pd = TypeDescriptor.GetProperties (loopObj).Find (str[0], true);
-
- }
- }
-
- parseAtt = TypeDescriptor.GetAttributes (obj)[typeof(ParseChildrenAttribute )] as ParseChildrenAttribute;
- //FIXME: fix this in MCS classlib
- if (parseAtt.DefaultProperty.Length == 0)
- parseAtt = null;
-
- //work out how we're trying to parse the children
- if (parseAtt != null) {
- if (parseAtt.DefaultProperty != null) {
- PropertyDescriptor pd = pdc[parseAtt.DefaultProperty];
- if (pd == null)
- throw new Exception ("Default property does not exist");
- if (pd.PropertyType.GetInterface("System.Collections.IList") == (typeof(IList)))
- mode = ParseChildrenMode.DefaultCollectionProperty;
- else
- mode = ParseChildrenMode.DefaultProperty;
- }
- else if (parseAtt.ChildrenAsProperties)
- mode = ParseChildrenMode.Properties;
- else
- mode = ParseChildrenMode.Controls;
- }
- else {
- //FIXME: these are actually persistence hints, but ParseChildrenAttribute doesn't always exist.
- //FIXME: logic would be dodgy with bad input
- parseAtt = ParseChildrenAttribute.Default;
- mode = ParseChildrenMode.Controls;
- foreach (PropertyDescriptor pd in pdc) {
- PersistenceModeAttribute modeAttrib = pd.Attributes[typeof(PersistenceModeAttribute)] as PersistenceModeAttribute;
- if (modeAttrib == null) return;
-
- switch (modeAttrib.Mode) {
- case PersistenceMode.Attribute:
- continue;
- case PersistenceMode.EncodedInnerDefaultProperty:
- parseAtt.DefaultProperty = pd.Name;
- mode = ParseChildrenMode.DefaultEncodedProperty;
- break;
- case PersistenceMode.InnerDefaultProperty:
- parseAtt.DefaultProperty = pd.Name;
- if (pd.PropertyType.GetInterface("System.Collections.IList") == (typeof(IList)))
- mode = ParseChildrenMode.DefaultCollectionProperty;
- else
- mode = ParseChildrenMode.DefaultProperty;
- break;
- case PersistenceMode.InnerProperty:
- mode = ParseChildrenMode.Properties;
- break;
- }
- }
- }
-
- }
-
- public override void AddText (string text)
- {
- switch (mode) {
- case ParseChildrenMode.Controls:
- this.AddControl (new LiteralControl (text));
- return;
- case ParseChildrenMode.DefaultCollectionProperty:
- case ParseChildrenMode.Properties:
- if (IsWhiteSpace(text))
- return;
- else
- throw new Exception ("Unexpected text found in child properties");
- case ParseChildrenMode.DefaultProperty:
- innerText += text;
- return;
- case ParseChildrenMode.DefaultEncodedProperty:
- innerText += System.Web.HttpUtility.HtmlDecode (text);
- return;
- }
- }
-
- private bool IsWhiteSpace(string s)
- {
- bool onlyWhitespace = true;
- foreach (char c in s)
- if (!Char.IsWhiteSpace (c)) {
- onlyWhitespace = false;
- break;
- }
- return onlyWhitespace;
- }
-
- public override ParsingObject CloseObject (string closingTagText)
- {
- //we do this here in case we have tags inside
- if (mode == ParseChildrenMode.DefaultProperty && !string.IsNullOrEmpty(innerText)) {
- PropertyDescriptor pd = pdc[parseAtt.DefaultProperty];
- pd.SetValue(obj, pd.Converter.ConvertFromString(innerText));
- }
- //FIME: what if it isn't?
- if (obj is Control) {
- Control c = (Control) obj;
- Document.InitialiseControl (c);
- base.AddText (Document.RenderDesignerControl (c)); // add initial rendered text representation
- }
- base.AddControl (obj);
- return base.CloseObject (closingTagText);
- }
-
- public override ParsingObject CreateChildParsingObject (ILocation location, string tagid, TagAttributes attributes)
- {
- switch (mode) {
- case ParseChildrenMode.DefaultProperty:
- //oops, we didn't need to tokenise this.
- innerText += location.PlainText;
- //how do we get end tag?
- throw new NotImplementedException ("Inner default properties that look like tags have not been implemented yet.");
- case ParseChildrenMode.DefaultEncodedProperty:
- innerText += System.Web.HttpUtility.HtmlDecode (location.PlainText);
- //how do we get end tag?
- throw new NotImplementedException ("Inner default properties that look like tags have not been implemented yet.");
- case ParseChildrenMode.Controls:
- //html tags
- if (tagid.IndexOf(':') == -1)
- return new HtmlParsingObject (location.PlainText, tagid, this);
- goto case ParseChildrenMode.DefaultCollectionProperty;
- case ParseChildrenMode.DefaultCollectionProperty:
- string[] str = tagid.Split(':');
- if (str.Length != 2)
- throw new ParseException (location, "Server tag name is not of form prefix:name");
-
- Type tagType = WebFormReferenceManager.GetObjectType(str[0], str[1]);
- if (tagType == null)
- throw new ParseException(location, "The tag " + tagid + "has not been registered");
-
- return new ServerObjectParsingObject (tagType, attributes.GetDictionary(null), tagid, this);
- case ParseChildrenMode.Properties:
- throw new NotImplementedException ("Multiple child properties have not yet been implemented.");
- }
- throw new ParseException (location, "Unexpected state encountered: ");
- }
-
- protected override void AddControl(object control)
- {
- switch (mode) {
- case ParseChildrenMode.DefaultProperty:
- case ParseChildrenMode.Properties:
- throw new Exception ("Cannot add a control to default property");
- case ParseChildrenMode.DefaultCollectionProperty:
- PropertyDescriptor pd = pdc[parseAtt.DefaultProperty];
- ((IList)pd.GetValue(obj)).Add(control);
- return;
- case ParseChildrenMode.Controls:
- throw new NotImplementedException("Child controls have not yet been implemented.");
- }
- }
- }
-
- public enum ParseChildrenMode
- {
- DefaultProperty,
- DefaultEncodedProperty,
- DefaultCollectionProperty,
- Properties,
- Controls
- }
-}
diff --git a/extras/AspNetEdit/AspNetEdit.Editor.UI/PropertyGrid.cs b/extras/AspNetEdit/AspNetEdit.Editor.UI/PropertyGrid.cs
deleted file mode 100644
index 13fe8ab6e0..0000000000
--- a/extras/AspNetEdit/AspNetEdit.Editor.UI/PropertyGrid.cs
+++ /dev/null
@@ -1,190 +0,0 @@
- /*
- * PropertyGrid.cs - PropertyGrid wrapper. Hooks into ISelectionService.
- *
- * Authors:
- * Michael Hutchinson <m.j.hutchinson@gmail.com>
- *
- * Copyright (C) 2005 Michael Hutchinson
- *
- * This sourcecode is licenced under The MIT License:
- *
- * Permission is hereby granted, free of charge, to any person obtaining
- * a copy of this software and associated documentation files (the
- * "Software"), to deal in the Software without restriction, including
- * without limitation the rights to use, copy, modify, merge, publish,
- * distribute, sublicense, and/or sell copies of the Software, and to permit
- * persons to whom the Software is furnished to do so, subject to the
- * following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
- * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
- * NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
- * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
- * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
- * USE OR OTHER DEALINGS IN THE SOFTWARE.
- */
-
-using System;
-using System.ComponentModel.Design;
-using Gtk;
-using System.ComponentModel;
-using System.Collections;
-using MonoDevelop.Components.PropertyGrid;
-
-namespace AspNetEdit.Editor.UI
-{
- public class PropertyGrid : Gtk.VBox
- {
- private ServiceContainer parentServices = null;
- private ISelectionService selectionService = null;
- private IExtenderListService extenderListService = null;
- private IComponentChangeService changeService = null;
- private ITypeDescriptorFilterService typeDescriptorFilterService = null;
- private MonoDevelop.Components.PropertyGrid.PropertyGrid grid;
- private ListStore components;
- private ComboBox combo;
-
- private bool suppressChange = false;
-
- public PropertyGrid (ServiceContainer parentServices)
- {
- this.parentServices = parentServices;
-
- grid = new MonoDevelop.Components.PropertyGrid.PropertyGrid ();
- this.PackEnd (grid, true, true, 0);
-
-
- components = new ListStore (typeof (string), typeof (IComponent));
- combo = new ComboBox (components);
-
- CellRenderer rdr = new CellRendererText ();
- combo.PackStart (rdr, true);
- combo.AddAttribute (rdr, "text", 0);
-
- this.PackStart (combo, false, false, 3);
-
- //for selecting nothing, i.e. deselect all
- components.AppendValues (new object[] { "", null} );
-
- combo.Changed += new EventHandler (combo_Changed);
-
- InitialiseServices();
- }
-
- void combo_Changed (object sender, EventArgs e)
- {
- if (suppressChange) return;
- TreeIter t;
- combo.GetActiveIter(out t);
- IComponent comp = (IComponent) components.GetValue(t, 1);
-
- //Tell everybody about the new selection. We'll hear about this too.
- selectionService.SetSelectedComponents ((comp == null)? null : new IComponent[] { comp });
- }
-
- // We need these services to be present, but we cache references for efficiency
- // Whenever new designer host loaded etc, must reinitialise the services
- public void InitialiseServices ()
- {
- //unregister old event handlers
- if (selectionService != null)
- selectionService.SelectionChanged -= new EventHandler(selectionService_SelectionChanged);
-
- //update references
- extenderListService = parentServices.GetService (typeof (IExtenderListService)) as IExtenderListService;
- selectionService = parentServices.GetService (typeof (ISelectionService)) as ISelectionService;
- changeService = parentServices.GetService (typeof (IComponentChangeService)) as IComponentChangeService;
- typeDescriptorFilterService = parentServices.GetService (typeof (ITypeDescriptorFilterService)) as ITypeDescriptorFilterService;
-
- //register event handlers
- if (selectionService != null)
- selectionService.SelectionChanged += new EventHandler (selectionService_SelectionChanged);
- if (changeService != null) {
- changeService.ComponentAdded += new ComponentEventHandler (changeService_ComponentAdded);
- changeService.ComponentRemoved += new ComponentEventHandler (changeService_ComponentRemoved);
- changeService.ComponentRename += new ComponentRenameEventHandler (changeService_ComponentRename);
- changeService.ComponentChanged += new ComponentChangedEventHandler (changeService_updateValues);
- /*TODO: should we also monitor these?
- changeService.ComponentAdding
- changeService.ComponentChanging
- changeService.ComponentRemoving
- */
- }
-
- //get existing components for combo list
- IDesignerHost host = parentServices.GetService (typeof (IDesignerHost)) as IDesignerHost;
- if (host != null)
- foreach (IComponent comp in host.Container.Components)
- changeService_ComponentAdded(host.Container, new ComponentEventArgs (comp));
- }
-
- void changeService_updateValues (object sender, ComponentChangedEventArgs e)
- {
- grid.Refresh ();
- }
-
-
- void changeService_ComponentRename (object sender, ComponentRenameEventArgs e)
- {
- //We just need to rename the right component in the combobox list
- TreeIter t;
- components.GetIterFirst (out t);
-
- do {
- if ((IComponent)components.GetValue (t, 1) == e.Component && (string) components.GetValue(t, 0) == e.OldName) {
- components.SetValue (t, 0, e.NewName);
- return;
- }
- } while (components.IterNext (ref t));
- }
-
- void changeService_ComponentRemoved (object sender, ComponentEventArgs e)
- {
- //remove component from combobox list
- //need a variable external to foreach so we can pass by ref
- TreeIter iter;
- components.GetIterFirst (out iter);
-
- do
- {
- if ((IComponent) components.GetValue (iter, 1) == e.Component)
- {
- components.Remove (ref iter);
- break;
- }
- }
- while (components.IterNext (ref iter));
- }
-
- void changeService_ComponentAdded (object sender, ComponentEventArgs e)
- {
- //simply add to the combobox list
- components.AppendValues (new object[] { e.Component.Site.Name, e.Component} );
- }
-
- private void selectionService_SelectionChanged (object sender, EventArgs e)
- {
- //stop combo change event from changing selection again!
- suppressChange = true;
- grid.CurrentObject = selectionService.PrimarySelection;
-
- TreeIter iter;
- components.GetIterFirst (out iter);
-
- do
- {
- if ((IComponent) components.GetValue (iter, 1) == selectionService.PrimarySelection)
- {
- combo.SetActiveIter (iter);
- break;
- }
- }
- while (components.IterNext (ref iter));
- suppressChange = false;
- }
- }
-}
diff --git a/extras/AspNetEdit/AspNetEdit.Editor.UI/RootDesignerView.cs b/extras/AspNetEdit/AspNetEdit.Editor.UI/RootDesignerView.cs
deleted file mode 100644
index ad1c9da4d3..0000000000
--- a/extras/AspNetEdit/AspNetEdit.Editor.UI/RootDesignerView.cs
+++ /dev/null
@@ -1,548 +0,0 @@
- /*
- * RootDesignerView.cs - The Gecko# design surface returned by the WebForms Root Designer.
- *
- * Authors:
- * Michael Hutchinson <m.j.hutchinson@gmail.com>
- *
- * Copyright (C) 2005 Michael Hutchinson
- *
- * This sourcecode is licenced under The MIT License:
- *
- * Permission is hereby granted, free of charge, to any person obtaining
- * a copy of this software and associated documentation files (the
- * "Software"), to deal in the Software without restriction, including
- * without limitation the rights to use, copy, modify, merge, publish,
- * distribute, sublicense, and/or sell copies of the Software, and to permit
- * persons to whom the Software is furnished to do so, subject to the
- * following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
- * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
- * NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
- * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
- * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
- * USE OR OTHER DEALINGS IN THE SOFTWARE.
- */
-
-using System;
-using AspNetEdit.JSCall;
-using System.ComponentModel.Design;
-using System.ComponentModel;
-using System.Text;
-using AspNetEdit.Editor.ComponentModel;
-using System.Web.UI;
-using System.Collections;
-using Gtk;
-
-namespace AspNetEdit.Editor.UI
-{
- public class RootDesignerView : AspNetEdit.Integration.GeckoWebBrowser
- {
- private const string geckoChrome = "chrome://aspdesigner/content/";
- private CommandManager comm;
- private DesignerHost host;
- private IComponentChangeService changeService;
- private ISelectionService selectionService;
- private IMenuCommandService menuService;
- protected bool active = false;
- private string outDocument = null;
-
-
- //there's weird bug where a second Gecko instance *can't* be created
- //so until it's fixed we reuse share one instance
- //TODO: make it so we can have more than one shown at the same time
- public static RootDesignerView instance = null;
-
- public static RootDesignerView GetInstance (IDesignerHost host)
- {
- if (instance == null)
- instance = new RootDesignerView (host);
- instance.active = false;
- return instance;
- }
-
- private RootDesignerView (IDesignerHost host)
- : base()
- {
- //it's through this that we communicate with JavaScript
- comm = new CommandManager (this);
-
- //we use the host to get services and designers
- this.host = host as DesignerHost;
- if (this.host == null)
- throw new ArgumentNullException ("host");
-
- //We use this to monitor component changes and update as necessary
- changeService = host.GetService (typeof (IComponentChangeService)) as IComponentChangeService;
- if (changeService == null)
- throw new Exception ("Could not obtain IComponentChangeService from host");
-
- //We use this to monitor and set selections
- selectionService = host.GetService (typeof (ISelectionService)) as ISelectionService;
- if (selectionService == null)
- throw new Exception ("Could not obtain ISelectionService from host");
-
- //This is used to add undo/redo, cut/paste etc commands to menu
- //Also to launch right-click menu
- menuService = host.GetService (typeof (IMenuCommandService)) as IMenuCommandService;
- //if (menuService == null)
- // return;
-
- //Now we've got all services, register our events
- changeService.ComponentChanged += new ComponentChangedEventHandler (changeService_ComponentChanged);
- selectionService.SelectionChanged += new EventHandler (selectionService_SelectionChanged);
-
- //Register incoming calls from JavaScript
- comm.RegisterJSHandler ("Click", new ClrCall (JSClick));
- comm.RegisterJSHandler ("Activate", new ClrCall (JSActivate));
- comm.RegisterJSHandler ("ThrowException", new ClrCall (JSException));
- comm.RegisterJSHandler ("DebugStatement", new ClrCall (JSDebugStatement));
- comm.RegisterJSHandler ("ResizeControl", new ClrCall (JSResize));
- comm.RegisterJSHandler ("DocumentReturn", new ClrCall (JSDocumentReturn));
- comm.RegisterJSHandler ("RemoveControl", new ClrCall (JSRemoveControl));
- comm.RegisterJSHandler ("DeserializeAndAdd", new ClrCall (JSDeserializeAndAdd));
- comm.RegisterJSHandler ("Serialize", new ClrCall (JSSerialize));
- System.Diagnostics.Trace.WriteLine ("RootDesignerView created");
- }
-
- internal void BeginLoad ()
- {
- System.Diagnostics.Trace.WriteLine ("Loading XUL...");
- base.LoadUrl (geckoChrome);
- }
-
- public override void Destroy ()
- {
- System.Diagnostics.Trace.WriteLine ("RootDesignerView internally destroyed.");
- active = false;
- base.Destroy ();
- }
-
- #region Change service handlers
-
- void selectionService_SelectionChanged (object sender, EventArgs e)
- {
- if (!active) return;
-
- //deselect all
- comm.JSCall (GeckoFunctions.SelectControl, null, string.Empty);
- if (selectionService.SelectionCount == 0) return;
-
- ICollection selections = selectionService.GetSelectedComponents ();
-
- foreach (IComponent comp in selections) {
- if (comp is WebFormPage) continue;
- Control control = comp as Control;
- if (control == null)
- throw new InvalidOperationException ("One of the selected components is not a System.Web.UI.Control.");
- //select the control
- comm.JSCall (GeckoFunctions.SelectControl, null, control.UniqueID);
- }
- }
-
- void changeService_ComponentChanged (object sender, ComponentChangedEventArgs e)
- {
- if (!active) return;
- UpdateRender (e.Component as Control);
- }
-
- public void UpdateRender (Control control)
- {
- if (control == null)
- throw new InvalidOperationException ("The updated component is not a System.UI.WebControl");
-
- string ctext = Document.RenderDesignerControl (control);
- comm.JSCall (GeckoFunctions.UpdateControl, null, control.UniqueID, ctext);
- }
-
- #endregion
-
- #region document modification accessors for AspNetEdit.Editor.ComponentModel.Document
-
- internal void InsertFragment (string fragment)
- {
- System.Diagnostics.Trace.WriteLine ("Inserting document fragment: " + fragment);
- comm.JSCall (GeckoFunctions.InsertFragment, null, host.RootDocument.Serialize (fragment));
- }
-
- internal void AddControl (Control control)
- {
- if (!active) return;
-
- string ctext = Document.RenderDesignerControl (control);
- comm.JSCall (GeckoFunctions.AddControl, null, control.UniqueID, ctext);
- }
-
- internal void RemoveControl (Control control)
- {
- if (!active) return;
-
- comm.JSCall (GeckoFunctions.RemoveControl, null, control.UniqueID);
- }
-
- internal void RenameControl (string oldName, string newName)
- {
- throw new NotImplementedException ("Renaming controls not supported yet");
- }
-
- internal new string GetDocument ()
- {
- comm.JSCall (GeckoFunctions.GetPage, "DocumentReturn", null);
-
- int counter = 0;
- do {
- //only allow JS 20 seconds to return value
- if (counter > 200) throw new Exception ("Mozilla did not return value during 20 seconds");
-
- System.Threading.Thread.Sleep (100);
- counter++;
- }
- while (outDocument == null);
- System.Diagnostics.Trace.WriteLine ("Retrieved document from Gecko in ~" + (100*counter).ToString () + "ms.");
- System.Diagnostics.Trace.WriteLine ("Document: " + outDocument);
-
- string d = outDocument;
- outDocument = null;
- return d;
- }
-
- internal void DoCommand (string editorCommand)
- {
- System.Diagnostics.Trace.WriteLine ( "Executing command \"" + editorCommand +"\"");
- comm.JSCall (GeckoFunctions.DoCommand, null, editorCommand);
- }
-
- #endregion
-
- #region Inbound Gecko functions
-
-
- ///<summary>
- /// Name: DocumentReturn
- /// Callback function for when host initiates document save
- /// Arguments:
- /// string document: the document text, with placeholder'd controls
- /// Returns: none
- ///</summary>
- private string JSDocumentReturn (string[] args)
- {
- if (args.Length != 1)
- throw new InvalidJSArgumentException ("DocumentReturn", -1);
- outDocument = args [0];
- return string.Empty;
- }
-
- //this is because of the Gecko# not wanting to give up its DomDocument until it's been shown.
- ///<summary>
- /// Name: Activate
- /// Called when the XUL document is all loaded and ready to recieve ASP.NET document
- /// Arguments: none
- /// Returns: none
- ///</summary>
- private string JSActivate (string[] args)
- {
- if (active) {
- System.Diagnostics.Trace.WriteLine ("HELP! XUL reports having been initialised again! Suppressing, but need to be fixed.");
- return string.Empty;
- }
-
- System.Diagnostics.Trace.WriteLine ("XUL loaded.");
- //load document with filled-in design-time HTML
- string doc = host.RootDocument.GetLoadedDocument ();
- comm.JSCall (GeckoFunctions.LoadPage, null, doc);
- active = true;
- return string.Empty;
- }
-
- ///<summary>
- /// Name: Click
- /// Called when the document is clicked
- /// Arguments:
- /// enum ClickType: The button used to click (Single|Double|Right)
- /// string Component: The unique ID if a Control, else empty
- /// Returns: none
- ///</summary>
- private string JSClick (string[] args)
- {
- if (args.Length != 2)
- throw new InvalidJSArgumentException ("Click", -1);
-
- //look up our component
- IComponent[] components = null;
- if (args[1].Length != 0)
- components = new IComponent[] {((DesignContainer) host.Container).GetComponent (args[1])};
-
- //decide which action to perfom and use services to perfom it
- switch (args[0]) {
- case "Single":
- selectionService.SetSelectedComponents (components);
- break;
- case "Double":
- //TODO: what happen when we double-click on the page?
- if (args[1].Length == 0) break;
-
- IDesigner designer = host.GetDesigner (components[0]);
-
- if (designer != null)
- designer.DoDefaultAction ();
- break;
- case "Right":
- //TODO: show context menu menuService.ShowContextMenu
- break;
- default:
- throw new InvalidJSArgumentException("Click", 0);
- }
-
- return string.Empty;
- }
-
- ///<summary>
- /// Name: ThrowException
- /// Throws managed exceptions on behalf of Javascript
- /// Arguments:
- /// string location: some description of where the error occurred
- /// string message: the exception's message
- /// Returns: none
- ///</summary>
- private string JSException (string[] args)
- {
- if (args.Length != 2)
- throw new InvalidJSArgumentException ("ThrowException", -1);
-
- throw new Exception (string.Format ("Error in javascript at {0}:\n{1}", args[0], args[1]));
- }
-
- ///<summary>
- /// Name: DebugStatement
- /// Writes to the console on behalf of Javascript
- /// Arguments:
- /// string message: the debug message
- /// Returns: none
- ///</summary>
- private string JSDebugStatement (string[] args)
- {
- if (args.Length != 1)
- throw new InvalidJSArgumentException ("ThrowException", -1);
-
- System.Diagnostics.Trace.WriteLine ("Javascript: " + args[0]);
- return string.Empty;
- }
-
- ///<summary>
- /// Name: ResizeControl
- /// Writes to the console on behalf of Javascript
- /// Arguments:
- /// string id: the control's ID
- /// string width: the control's width
- /// string height: the control's height
- /// Returns: none
- ///</summary>
- private string JSResize (string[] args)
- {
- if (args.Length != 3)
- throw new InvalidJSArgumentException ("ResizeControl", -1);
-
- //look up our component
- IComponent component = ((DesignContainer) host.Container).GetComponent (args[0]);
- System.Web.UI.WebControls.WebControl wc = component as System.Web.UI.WebControls.WebControl;
- if (wc == null)
- throw new InvalidJSArgumentException ("ResizeControl", 0);
-
- PropertyDescriptorCollection pdc = TypeDescriptor.GetProperties (wc);
- PropertyDescriptor pdc_h = pdc.Find("Height", false);
- PropertyDescriptor pdc_w = pdc.Find("Width", false);
-
- //set the values
- pdc_w.SetValue (wc, pdc_w.Converter.ConvertFromInvariantString(args[1]));
- pdc_h.SetValue (wc, pdc_h.Converter.ConvertFromInvariantString(args[2]));
-
- System.Diagnostics.Trace.WriteLine (
- String.Format ("Javascript requesting size change to w:{0} h:{1} for control {2}.", args[1], args[2], args[0]));
-
- return string.Empty;
- }
-
- ///<summary>
- /// Name: RemoveControl
- /// Removes a control from the host when its Gecko representation is removed
- /// Arguments:
- /// string id: the control's ID
- /// Returns: none
- ///</summary>
- private string JSRemoveControl (string[] args)
- {
- if (args.Length != 1)
- throw new InvalidJSArgumentException ("RemoveControl", -1);
-
- //look up our component
- DesignContainer container = (DesignContainer) host.Container;
- IComponent component = container.GetComponent (args[0]);
- if (component == null)
- throw new InvalidJSArgumentException ("RemoveControl", 0);
-
- //and remove it
- System.Diagnostics.Trace.WriteLine ("Removing control: " + args[0]);
- container.Remove (component);
- component.Dispose ();
-
- return string.Empty;
- }
-
- ///<summary>
- /// Name: Serialize
- /// Serialises a fragment of a Gecko document into ASP.NET code
- /// Arguments:
- /// string designerDocumentFragment: the Gecko document fragment
- /// Returns: the serialised document
- ///</summary>
- private string JSSerialize (string[] args)
- {
- if (args.Length != 1)
- throw new InvalidJSArgumentException ("Serialize", -1);
-
- return host.RootDocument.Serialize (args [0]);
- }
-
- ///<summary>
- /// Name: DeserializeAndAdd
- /// Handles any ASP.NET code that gets pasted into the designer.
- /// Arguments:
- /// string designerDocumentFragment: the ASP.NET document fragment
- /// Returns: none
- ///</summary>
- private string JSDeserializeAndAdd (string[] args)
- {
- if (args.Length != 1)
- throw new InvalidJSArgumentException ("DeserializeAndAdd", -1);
-
- host.RootDocument.InsertFragment (args [0]);
- return string.Empty;
- }
-
- #endregion
-
- #region Outbound Gecko functions
-
- private class GeckoFunctions
- {
- ///<summary>
- /// Add a control to the document
- /// Args:
- /// string id: the unique ID of the control.
- /// string content: The HTML content of the control
- /// Returns: none
- ///</summary>
- public static readonly string AddControl = "JSCall_AddControl";
-
- ///<summary>
- /// Updates the design-time HTML of a control to the document
- /// Args:
- /// string id: the unique ID of the control.
- /// string content: The HTML content of the control
- /// Returns: none
- ///</summary>
- public static readonly string UpdateControl = "JSCall_UpdateControl";
-
- ///<summary>
- /// Removes a control from the document
- /// Args:
- /// string id: the unique ID of the control.
- /// Returns: none
- ///</summary>
- public static readonly string RemoveControl = "JSCall_RemoveControl";
-
- ///<summary>
- /// Selects a control
- /// Args:
- /// string id: the unique ID of the control, or empty to clear selection.
- /// Returns: none
- ///</summary>
- public static readonly string SelectControl = "JSCall_SelectControl";
-
- ///<summary>
- /// Replaces the currently loaded document
- /// Args:
- /// string document: the document text, with placeholder'd controls.
- /// Returns: none
- ///</summary>
- public static readonly string LoadPage = "JSCall_LoadPage";
-
- ///<summary>
- /// Replaces the currently loaded document
- /// Args: none
- /// Returns: none
- ///</summary>
- public static readonly string GetPage = "JSCall_GetPage";
-
- ///<summary>
- /// Passes a simple command to Gecko
- /// Args:
- /// string command: Use the enum EditorCommand
- /// Returns: none
- ///</summary>
- public static readonly string DoCommand = "JSCall_DoCommand";
-
- ///<summary>
- /// Inserts a document fragment. Host should have deserialised it.
- /// Args:
- /// string fragment: The document fragment
- /// Returns: none
- ///</summary>
- public static readonly string InsertFragment = "JSCall_InsertFragment";
- }
-
-
-
- #endregion
- }
-
- //TODO: GetCommandState to check whether we can perform these commands
-
- //commands for DoCommand
- //simply triggers functionality in Mozilla editor
- public class EditorCommand
- {
- //clipboard
- public static readonly string Cut = "cmd_cut";
- public static readonly string Copy = "cmd_copy";
- public static readonly string Paste = "cmd_paste";
- public static readonly string Delete = "cmd_delete";
-
- //transactions
- public static readonly string Undo = "cmd_undo";
- public static readonly string Redo = "cmd_redo";
-
- //styles
- public static readonly string Bold = "cmd_bold";
- public static readonly string Italic = "cmd_italic";
- public static readonly string Underline = "cmd_underline";
- public static readonly string TeleType = "cmd_tt";
- public static readonly string Strikethrough = "cmd_strikethru";
- public static readonly string Superscript = "cmd_superscript";
- public static readonly string Subscript = "cmd_subscript";
- public static readonly string Indent = "cmd_indent";
- public static readonly string Outdent = "cmd_outdent";
- public static readonly string IncreaseFont = "cmd_increaseFont";
- public static readonly string DecreaseFont = "cmd_decreaseFont";
-
- //semantic
- public static readonly string Emphasis = "cmd_em";
- public static readonly string Strong = "cmd_strong";
- public static readonly string Citation = "cmd_cite";
- public static readonly string Abbreviation = "cmd_abbr";
- public static readonly string Acronym = "cmd_acronym";
- public static readonly string Code = "cmd_code";
-
- //lists
- public static readonly string OrderedList = "cmd_ol";
- public static readonly string UnorderedList = "cmd_ul";
-
- //public static readonly string NoBreak = "cmd_nobreak";
- //public static readonly string Underline = "cmd_dt";
- //public static readonly string Underline = "cmd_dd";
- }
-}
diff --git a/extras/AspNetEdit/AspNetEdit.Editor/EditorHost.cs b/extras/AspNetEdit/AspNetEdit.Editor/EditorHost.cs
deleted file mode 100644
index e2c08981c1..0000000000
--- a/extras/AspNetEdit/AspNetEdit.Editor/EditorHost.cs
+++ /dev/null
@@ -1,215 +0,0 @@
-//
-// EditorHost.cs: Host for AspNetEdit designer.
-//
-// Authors:
-// Michael Hutchinson <m.j.hutchinson@gmail.com>
-//
-// Copyright (C) 2006 Michael Hutchinson
-//
-//
-// This source code is licenced under The MIT License:
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-using System;
-using System.ComponentModel;
-using System.ComponentModel.Design;
-using System.Drawing.Design;
-using System.ComponentModel.Design.Serialization;
-
-using MonoDevelop.Ide;
-using MonoDevelop.Ide.Gui;
-using MonoDevelop.DesignerSupport.Toolbox;
-
-using AspNetEdit.Editor.ComponentModel;
-using AspNetEdit.Editor.UI;
-using AspNetEdit.Integration;
-
-namespace AspNetEdit.Editor
-{
-
- public class EditorHost : GuiSyncObject, IDisposable
- {
- DesignerHost host;
- ServiceContainer services;
- RootDesignerView designerView;
- MonoDevelopProxy proxy;
-
- public EditorHost (MonoDevelopProxy proxy)
- {
- this.proxy = proxy;
-
- //set up the services
- services = new ServiceContainer ();
- services.AddService (typeof (INameCreationService), new NameCreationService ());
- services.AddService (typeof (ISelectionService), new SelectionService ());
- services.AddService (typeof (ITypeResolutionService), new TypeResolutionService ());
- services.AddService (typeof (IEventBindingService), new AspNetEdit.Editor.ComponentModel.EventBindingService (proxy));
- ExtenderListService extListServ = new ExtenderListService ();
- services.AddService (typeof (IExtenderListService), extListServ);
- services.AddService (typeof (IExtenderProviderService), extListServ);
- services.AddService (typeof (ITypeDescriptorFilterService), new TypeDescriptorFilterService ());
- //services.AddService (typeof (IToolboxService), toolboxService);
-
- System.Diagnostics.Trace.WriteLine ("Creating DesignerHost");
- host = new DesignerHost (services);
- System.Diagnostics.Trace.WriteLine ("Created DesignerHost");
- }
-
- public void Initialise ()
- {
- Initialise (null, null);
- }
-
- public void Initialise (string document, string fileName)
- {
- DispatchService.AssertGuiThread ();
-
- System.Diagnostics.Trace.WriteLine ("Loading document into DesignerHost");
- if (document != null)
- host.Load (document, fileName);
- else
- host.NewFile ();
- System.Diagnostics.Trace.WriteLine ("Loaded document into DesignerHost");
-
- host.Activate ();
- System.Diagnostics.Trace.WriteLine ("DesignerHost activated; getting designer view");
-
- IRootDesigner rootDesigner = (IRootDesigner) host.GetDesigner (host.RootComponent);
- designerView = (RootDesignerView) rootDesigner.GetView (ViewTechnology.Passthrough);
- designerView.Realized += delegate { System.Diagnostics.Trace.WriteLine ("Designer view realized"); };
- }
-
- public Gtk.Widget DesignerView {
- get {
- if (designerView == null)
- throw new InvalidOperationException ("DesignerView has not been initialised. Have you sucessfully called EditorHost.Initialise?");
- return designerView;
- }
- }
-
- public ServiceContainer Services {
- get { return services; }
- }
-
- public DesignerHost DesignerHost {
- get { return host; }
- }
-
- public void UseToolboxNode (ItemToolboxNode node)
- {
- //invoke in GUI thread as it catches and displays exceptions nicely
- Gtk.Application.Invoke ( delegate { handleToolboxNode (node); });
- }
-
- private void handleToolboxNode (ItemToolboxNode node)
- {
- ToolboxItemToolboxNode tiNode = node as ToolboxItemToolboxNode;
-
- if (tiNode != null) {
- //load the type into this process and get the ToolboxItem
- tiNode.Type.Load ();
- System.Drawing.Design.ToolboxItem ti = tiNode.GetToolboxItem ();
-
- //web controls have sample HTML that need to be deserialised, in a ToolboxDataAttribute
- //TODO: Fix WebControlToolboxItem and (mono classlib's use of it) so we don't have to mess around with type lookups and attributes here
- if (ti.AssemblyName != null && ti.TypeName != null) {
- //look up and register the type
- ITypeResolutionService typeRes = (ITypeResolutionService) host.GetService(typeof(ITypeResolutionService));
- typeRes.ReferenceAssembly (ti.AssemblyName);
- Type controlType = typeRes.GetType (ti.TypeName, true);
-
- //read the WebControlToolboxItem data from the attribute
- AttributeCollection atts = TypeDescriptor.GetAttributes (controlType);
-
- System.Web.UI.ToolboxDataAttribute tda = (System.Web.UI.ToolboxDataAttribute) atts[typeof(System.Web.UI.ToolboxDataAttribute)];
-
- //if it's present
- if (tda != null && tda.Data.Length > 0) {
- //look up the tag's prefix and insert it into the data
- System.Web.UI.Design.IWebFormReferenceManager webRef = host.GetService (typeof (System.Web.UI.Design.IWebFormReferenceManager)) as System.Web.UI.Design.IWebFormReferenceManager;
- if (webRef == null)
- throw new Exception("Host does not provide an IWebFormReferenceManager");
- string aspText = String.Format (tda.Data, webRef.GetTagPrefix (controlType));
- System.Diagnostics.Trace.WriteLine ("Toolbox processing ASP.NET item data: " + aspText);
-
- //and add it to the document
- host.RootDocument.InsertFragment (aspText);
- return;
- }
- }
-
- //No ToolboxDataAttribute? Get the ToolboxItem to create the components itself
- ti.CreateComponents (host);
- }
- }
-
- public void LoadDocument (string document, string fileName)
- {
- System.Diagnostics.Trace.WriteLine ("Copying document to editor.");
-
- //invoke in GUI thread as it catches and displays exceptions nicely
- Gtk.Application.Invoke ( delegate {
- host.Reset ();
- host.Load (document, fileName);
- host.Activate ();
- });
- }
-
- public string GetDocument ()
- {
- DispatchService.AssertGuiThread ();
- string doc = "";
-
- System.Diagnostics.Trace.WriteLine ("Persisting document.");
- doc = host.PersistDocument ();
-
- return doc;
- }
-
- #region IDisposable
-
- bool disposed = false;
- public virtual void Dispose ()
- {
- System.Diagnostics.Trace.WriteLine ("Disposing editor host.");
-
- if (disposed)
- return;
- disposed = true;
-
- if (designerView == null) {
- System.Diagnostics.Trace.WriteLine ("DesignerView is already null when disposing; was it created correctly?");
- } else {
- designerView.Dispose ();
- }
-
- GC.SuppressFinalize (this);
- }
-
- ~EditorHost ()
- {
- Dispose ();
- }
-
- #endregion IDisposable
- }
-}
diff --git a/extras/AspNetEdit/AspNetEdit.Integration/AspNetEditDisplayBinding.cs b/extras/AspNetEdit/AspNetEdit.Integration/AspNetEditDisplayBinding.cs
deleted file mode 100644
index a63362fb50..0000000000
--- a/extras/AspNetEdit/AspNetEdit.Integration/AspNetEditDisplayBinding.cs
+++ /dev/null
@@ -1,70 +0,0 @@
-//
-// AspNetEditDisplayBinding.cs: A secondary display binding for AspNetEdit.
-//
-// Authors:
-// Michael Hutchinson <m.j.hutchinson@gmail.com>
-//
-// Copyright (C) 2006 Michael Hutchinson
-//
-//
-// This source code is licenced under The MIT License:
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-using System;
-using System.IO;
-
-using MonoDevelop.Ide.Gui;
-using MonoDevelop.Ide.Codons;
-using MonoDevelop.Projects;
-
-using MonoDevelop.AspNet;
-
-namespace AspNetEdit.Integration
-{
-
- public class AspNetEditDisplayBinding : IAttachableDisplayBinding
- {
- public string Name {
- get {
- return "ASP.NET";
- }
- }
-
- public bool CanAttachTo (IViewContent content)
- {
- if (content.GetContent (typeof(MonoDevelop.Ide.Gui.Content.IEditableTextBuffer)) == null)
- return false;
-
- switch (AspNetAppProject.DetermineWebSubtype (content.IsUntitled? content.UntitledName : content.ContentName)) {
- case WebSubtype.WebForm:
- return true;
- default:
- return false;
- }
- }
-
- public IAttachableViewContent CreateViewContent (IViewContent viewContent)
- {
- return new AspNetEditViewContent (viewContent);
- }
- }
-}
diff --git a/extras/AspNetEdit/AspNetEdit.Integration/AspNetEditViewContent.cs b/extras/AspNetEdit/AspNetEdit.Integration/AspNetEditViewContent.cs
deleted file mode 100644
index f68d57c2ab..0000000000
--- a/extras/AspNetEdit/AspNetEdit.Integration/AspNetEditViewContent.cs
+++ /dev/null
@@ -1,425 +0,0 @@
-//
-// AspNetEditViewContent.cs: The SecondaryViewContent that lets AspNetEdit
-// be used as a designer in MD.
-//
-// Authors:
-// Michael Hutchinson <m.j.hutchinson@gmail.com>
-//
-// Copyright (C) 2006 Michael Hutchinson
-//
-//
-// This source code is licenced under The MIT License:
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-using System;
-using System.IO;
-using System.ComponentModel;
-using Gtk;
-
-using Mono.Addins;
-using MonoDevelop.Ide.Gui;
-using MonoDevelop.Ide.Gui.Content;
-using MonoDevelop.Core;
-using MonoDevelop.Ide;
-using MonoDevelop.Core.Execution;
-using MonoDevelop.DesignerSupport.Toolbox;
-using MonoDevelop.DesignerSupport;
-using MonoDevelop.Components.PropertyGrid;
-using AspNetEdit.Editor;
-
-namespace AspNetEdit.Integration
-{
-
- public class AspNetEditViewContent : AbstractAttachableViewContent, IToolboxConsumer //, IEditableTextBuffer
- {
- IViewContent viewContent;
- EditorProcess editorProcess;
-
- Gtk.Socket designerSocket;
- Gtk.Socket propGridSocket;
-
- Frame propertyFrame;
- DesignerFrame designerFrame;
-
- MonoDevelopProxy proxy;
-
- bool activated = false;
- bool suppressSerialisation = false;
- static string extensionError = null;
-
- internal AspNetEditViewContent (IViewContent viewContent)
- {
- this.viewContent = viewContent;
-
- designerFrame = new DesignerFrame (this);
- designerFrame.CanFocus = true;
- designerFrame.Shadow = ShadowType.None;
- designerFrame.BorderWidth = 0;
-
- propertyFrame = new Frame ();
- propertyFrame.CanFocus = true;
- propertyFrame.Shadow = ShadowType.None;
- propertyFrame.BorderWidth = 0;
-
- viewContent.WorkbenchWindow.Closing += workbenchWindowClosingHandler;
- viewContent.DirtyChanged += vcDirtyChanged;
- viewContent.BeforeSave += vcBeforeSave;
-
- designerFrame.Show ();
- }
-
- void workbenchWindowClosingHandler (object sender, WorkbenchWindowEventArgs args)
- {
- if (activated)
- suppressSerialisation = true;
- }
-
- void vcDirtyChanged (object sender, System.EventArgs e)
- {
- if (activated && !viewContent.IsDirty)
- viewContent.IsDirty = true;
- }
-
- void vcBeforeSave (object sender, System.EventArgs e)
- {
- if (activated)
- saveDocumentToTextView ();
- }
-
- public override Gtk.Widget Control {
- get { return designerFrame; }
- }
-
- public override string TabPageLabel {
- get { return "Designer"; }
- }
-
- bool disposed = false;
-
- public override void Dispose ()
- {
- if (disposed)
- return;
-
- disposed = true;
-
- base.WorkbenchWindow.Closing -= workbenchWindowClosingHandler;
- viewContent.DirtyChanged -= vcDirtyChanged;
- viewContent.BeforeSave -= vcBeforeSave;
-
- DestroyEditorAndSockets ();
- designerFrame.Destroy ();
- base.Dispose ();
- }
-
- public override void Selected ()
- {
- //check that the Mozilla extension is installed correctly, and if not, display an error
- if (extensionError != null) {
- return;
- } else if (!CheckExtension (ref extensionError)) {
- LoggingService.LogError (extensionError);
- Label errorlabel = new Label (extensionError);
- errorlabel.Wrap = true;
-
- HBox box = new HBox (false, 10);
- Image errorImage = new Image (Gtk.Stock.DialogError, Gtk.IconSize.Dialog);
-
- box.PackStart (new Label (), true, true, 0);
- box.PackStart (errorImage, false, false, 10);
- box.PackStart (errorlabel, true, false, 10);
- box.PackStart (new Label (), true, true, 0);
-
- designerFrame.Add (box);
- designerFrame.ShowAll ();
- return;
- } else {
- extensionError = null;
- }
-
- if (editorProcess != null)
- throw new Exception ("Editor should be null when document is selected");
-
- designerSocket = new Gtk.Socket ();
- designerSocket.Show ();
- designerFrame.Add (designerSocket);
-
- propGridSocket = new Gtk.Socket ();
- propGridSocket.Show ();
- propertyFrame.Add (propGridSocket);
-
- editorProcess = (EditorProcess) Runtime.ProcessService.CreateExternalProcessObject (typeof (EditorProcess), false);
-
- if (designerSocket.IsRealized)
- editorProcess.AttachDesigner (designerSocket.Id);
- if (propGridSocket.IsRealized)
- editorProcess.AttachPropertyGrid (propGridSocket.Id);
-
- designerSocket.Realized += delegate { editorProcess.AttachDesigner (designerSocket.Id); };
- propGridSocket.Realized += delegate { editorProcess.AttachPropertyGrid (propGridSocket.Id); };
-
- //designerSocket.FocusOutEvent += delegate {
- // MonoDevelop.DesignerSupport.DesignerSupport.Service.PropertyPad.BlankPad (); };
-
- //hook up proxy for event binding
- string codeBehind = null;
- if (viewContent.Project != null) {
- string mimeType = DesktopService.GetMimeTypeForUri (viewContent.ContentName);
-
- var cu = MonoDevelop.Projects.Dom.Parser.ProjectDomService.Parse (viewContent.Project, viewContent.ContentName)
- as MonoDevelop.AspNet.Parser.AspNetParsedDocument;
-
- if (cu != null && cu.PageInfo != null && !string.IsNullOrEmpty (cu.PageInfo.InheritedClass))
- codeBehind = cu.PageInfo.InheritedClass;
- }
- proxy = new MonoDevelopProxy (viewContent.Project, codeBehind);
-
- ITextBuffer textBuf = (ITextBuffer) viewContent.GetContent (typeof(ITextBuffer));
- editorProcess.Initialise (proxy, textBuf.Text, viewContent.ContentName);
-
- activated = true;
-
- //FIXME: track 'dirtiness' properly
- viewContent.IsDirty = true;
- }
-
- public override void Deselected ()
- {
- activated = false;
-
- //don't need to save if window is closing
- if (!suppressSerialisation)
- saveDocumentToTextView ();
-
- DestroyEditorAndSockets ();
- }
-
- void saveDocumentToTextView ()
- {
- if (editorProcess != null && !editorProcess.ExceptionOccurred) {
- IEditableTextBuffer textBuf = (IEditableTextBuffer) viewContent.GetContent (typeof(IEditableTextBuffer));
-
- string doc = null;
- try {
- doc = editorProcess.Editor.GetDocument ();
- } catch (Exception e) {
- MonoDevelop.Ide.MessageService.ShowException (e,
- AddinManager.CurrentLocalizer.GetString (
- "The document could not be retrieved from the designer"));
- }
-
- if (doc != null)
- textBuf.Text = doc;
- }
- }
-
- void DestroyEditorAndSockets ()
- {
- if (proxy != null) {
- proxy.Dispose ();
- proxy = null;
- }
-
- if (editorProcess != null) {
- editorProcess.Dispose ();
- editorProcess = null;
- }
-
- if (propGridSocket != null) {
- propertyFrame.Remove (propGridSocket);
- propGridSocket.Dispose ();
- propGridSocket = null;
- }
-
- if (designerSocket != null) {
- designerFrame.Remove (designerSocket);
- designerSocket.Dispose ();
- designerSocket = null;
- }
- }
-
- #region IToolboxConsumer
-
- public void ConsumeItem (ItemToolboxNode node)
- {
- if (node is ToolboxItemToolboxNode)
- editorProcess.Editor.UseToolboxNode (node);
- }
-
- //used to filter toolbox items
- private static ToolboxItemFilterAttribute[] atts = new ToolboxItemFilterAttribute[] {
- new System.ComponentModel.ToolboxItemFilterAttribute ("System.Web.UI", ToolboxItemFilterType.Allow)
- };
-
- public ToolboxItemFilterAttribute[] ToolboxFilterAttributes {
- get { return atts; }
- }
-
- public System.Collections.Generic.IList<ItemToolboxNode> GetDynamicItems ()
- {
- return null;
- }
-
- //Used if ToolboxItemFilterAttribute demands ToolboxItemFilterType.Custom
- //If not expecting it, should just return false
- public bool CustomFilterSupports (ItemToolboxNode item)
- {
- return false;
- }
-
- public void DragItem (ItemToolboxNode item, Widget source, Gdk.DragContext ctx)
- {
- }
-
- public TargetEntry[] DragTargets {
- get { return null; }
- }
-
- string IToolboxConsumer.DefaultItemDomain {
- get { return null; }
- }
-
- #endregion IToolboxConsumer
-
- class DesignerFrame: Frame, ICustomPropertyPadProvider
- {
- AspNetEditViewContent view;
-
- public DesignerFrame (AspNetEditViewContent view)
- {
- this.view = view;
- }
-
- Gtk.Widget ICustomPropertyPadProvider.GetCustomPropertyWidget ()
- {
- return view.propertyFrame;
- }
-
- void ICustomPropertyPadProvider.DisposeCustomPropertyWidget ()
- {
- }
- }
-
- bool MozillaInstalled (ref string error)
- {
- string mozPath = System.Environment.GetEnvironmentVariable ("MOZILLA_FIVE_HOME");
- if (mozPath == null) {
- error = "MOZILLA_FIVE_HOME is not set.";
- return false;
- }
-
- string ffBrowserManifest = Path.Combine (Path.Combine (mozPath, "chrome"), "toolkit.manifest");
- if (!File.Exists (ffBrowserManifest)) {
- error = AddinManager.CurrentLocalizer.GetString (
- "MOZILLA_FIVE_HOME does not appear to be pointing to a valid Mozilla runtime: \"{0}\".", mozPath);
- return false;
- }
- return true;
- }
-
- bool ExtensionInstalled (ref string error)
- {
- string mozPath = System.Environment.GetEnvironmentVariable ("MOZILLA_FIVE_HOME");
- string manifestLocation = Path.Combine (Path.Combine (mozPath, "chrome"), "aspdesigner.manifest");
- if (!System.IO.File.Exists (manifestLocation)) {
- error = AddinManager.CurrentLocalizer.GetString (
- "The ASP.NET designer's Mozilla extension is not installed.");
- return false;
- } else {
- try {
- using (StreamReader reader = new StreamReader (manifestLocation)) {
- string line = reader.ReadLine ().Trim ();
- int startIndex = "content aspdesigner jar:".Length;
- int length = line.Length - "aspdesigner.jar!/content/aspdesigner/".Length - startIndex;
- string path = line.Substring (startIndex, length - 1);
- if (Path.GetFullPath (path) == Path.GetDirectoryName (System.Reflection.Assembly.GetExecutingAssembly ().Location))
- return true;
- }
- } catch (System.UnauthorizedAccessException) {}
- }
-
- error = AddinManager.CurrentLocalizer.GetString (
- "A Mozilla extension is installed for the ASP.NET designer, \n" +
- "but it is either incorrectly installed or is not the correct version. \n" +
- "It is only possible to have one version installed.");
- return false;
- }
-
- bool InstallExtension (string extensionStatus)
- {
- if (!MessageService.Confirm (
- AddinManager.CurrentLocalizer.GetString ("Mozilla extension installation"),
- extensionStatus + "\n" + AddinManager.CurrentLocalizer.GetString ("Would you like to install it?"),
- new AlertButton (AddinManager.CurrentLocalizer.GetString ("Install extension"))))
- return false;
-
- string sourcePath = Path.GetTempFileName ();
- using (TextWriter writer = new StreamWriter (sourcePath)) {
- string jarfile = Path.Combine (Path.GetDirectoryName (System.Reflection.Assembly.GetExecutingAssembly ().Location), "aspdesigner.jar");
- writer.WriteLine ("content aspdesigner jar:{0}!/content/aspdesigner/", jarfile);
- writer.WriteLine ("locale aspdesigner en-US jar:{0}!/locale/en-US/aspdesigner/", jarfile);
- }
-
- string mozPath = System.Environment.GetEnvironmentVariable ("MOZILLA_FIVE_HOME");
- string manifestLocation = Path.Combine (Path.Combine (mozPath, "chrome"), "aspdesigner.manifest");
-
- //string installCommand = String.Format ("\"sh -c \\\"cp '{0}' '{1}'; chmod a+r '{1}'\\\"\"", sourcePath, manifestLocation);
- string installCommand = String.Format ("\"install '{0}' '{1}'\"", sourcePath, manifestLocation);
- LoggingService.LogInfo ("Attempting to run root command: '{0}'", installCommand);
- ProcessWrapper process = null;
- try {
- try {
- process = Runtime.ProcessService.StartProcess ("xdg-su", "-c " + installCommand, null, null);
- } catch (System.ComponentModel.Win32Exception) {
- process = Runtime.ProcessService.StartProcess ("gnomesu", "-c " + installCommand, null, null);
- }
- //FIXME: this will hang the GTK thread until we the command completes
- process.WaitForOutput ();
- File.Delete (sourcePath);
- return (process != null && process.ExitCode == 0);
- } catch (Exception ex) {
- LoggingService.LogError ("Error installing ASP.NET designer Mozilla extension.", ex);
- }
- MessageService.ShowError (
- AddinManager.CurrentLocalizer.GetString ("Could not execute command as root. \n"+
- "Please manually run the command \n{0}\nbefore continuing.", installCommand));
- File.Delete (sourcePath);
- return true;
- }
-
- bool CheckExtension (ref string error)
- {
- try {
- if (!MozillaInstalled (ref error))
- return false;
- if (!ExtensionInstalled (ref error))
- if (!InstallExtension (error))
- return false;
- if (ExtensionInstalled (ref error))
- return true;
- } catch (Exception ex) {
- error = AddinManager.CurrentLocalizer.GetString ("Unhandled error:\n{0}", ex.ToString ());
- }
- return false;
- }
- }
-}
diff --git a/extras/AspNetEdit/AspNetEdit.Integration/EditorProcess.cs b/extras/AspNetEdit/AspNetEdit.Integration/EditorProcess.cs
deleted file mode 100644
index fc6bee3881..0000000000
--- a/extras/AspNetEdit/AspNetEdit.Integration/EditorProcess.cs
+++ /dev/null
@@ -1,189 +0,0 @@
-//
-// EditorProcess.cs: Hosts AspNetEdit in a remote process for MonoDevelop.
-//
-// Authors:
-// Michael Hutchinson <m.j.hutchinson@gmail.com>
-//
-// Copyright (C) 2006 Michael Hutchinson
-//
-//
-// This source code is licenced under The MIT License:
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-using System;
-using Gtk;
-using System.ComponentModel;
-using System.ComponentModel.Design;
-using System.Drawing.Design;
-using System.ComponentModel.Design.Serialization;
-using System.IO;
-
-using MonoDevelop.Core.Execution;
-using MonoDevelop.Core;
-using MonoDevelop.DesignerSupport.Toolbox;
-
-using AspNetEdit.Editor.UI;
-using AspNetEdit.Editor.ComponentModel;
-using AspNetEdit.Integration;
-
-namespace AspNetEdit.Editor
-{
- [AddinDependency ("MonoDevelop.AspNet")]
- public class EditorProcess : MonoDevelop.DesignerSupport.RemoteDesignerProcess
- {
- EditorHost host;
- ServiceContainer services;
- Frame geckoFrame;
- PropertyGrid propertyGrid;
-
- public EditorProcess ()
- {
- #if TRACE
- System.Diagnostics.TextWriterTraceListener listener = new System.Diagnostics.TextWriterTraceListener (System.Console.Out);
- System.Diagnostics.Trace.Listeners.Add (listener);
- #endif
- }
-
- public void Initialise (MonoDevelopProxy proxy, string document, string fileName)
- {
- StartGuiThread ();
- Gtk.Application.Invoke ( delegate { LoadGui (proxy, document, fileName); });
- }
-
- public EditorHost Editor {
- get { return host; }
- }
-
- protected override void HandleError (Exception e)
- {
- //remove the grid in case it was the source of the exception, as GTK# expose exceptions can fire repeatedly
- //also user should not be able to edit things when showing exceptions
- if (propertyGrid != null) {
- Gtk.Container parent = propertyGrid.Parent as Gtk.Container;
- if (parent != null)
- parent.Remove (propertyGrid);
-
- propertyGrid.Destroy ();
- propertyGrid = null;
- }
-
- //show the error message
- base.HandleError (e);
- }
-
- void LoadGui (MonoDevelopProxy proxy, string document, string fileName)
- {
- System.Diagnostics.Trace.WriteLine ("Creating AspNetEdit EditorHost");
- host = new EditorHost (proxy);
- host.Initialise (document, fileName);
- System.Diagnostics.Trace.WriteLine ("Created AspNetEdit EditorHost");
-
- System.Diagnostics.Trace.WriteLine ("Building AspNetEdit GUI");
- Gtk.VBox outerBox = new Gtk.VBox ();
-
- geckoFrame = new Frame ();
- geckoFrame.Shadow = ShadowType.In;
- geckoFrame.Add (host.DesignerView);
- outerBox.PackEnd (geckoFrame, true, true, 0);
-
- Toolbar tb = BuildToolbar ();
- outerBox.PackStart (tb, false, false, 0);
-
- outerBox.ShowAll ();
- base.DesignerWidget = outerBox;
-
- //grid picks up some services from the designer host
- propertyGrid = new PropertyGrid (host.Services);
- propertyGrid.ShowAll ();
- base.PropertyGridWidget = propertyGrid;
- System.Diagnostics.Trace.WriteLine ("Built AspNetEdit GUI");
- }
-
- Toolbar BuildToolbar ()
- {
- Toolbar buttons = new Toolbar ();
-
- // * Clipboard
-
- ToolButton undoButton = new ToolButton (Stock.Undo);
- buttons.Add (undoButton);
- undoButton.Clicked += delegate { host.DesignerHost.RootDocument.DoCommand (EditorCommand.Undo); };
-
- ToolButton redoButton = new ToolButton (Stock.Redo);
- buttons.Add (redoButton);
- redoButton.Clicked += delegate { host.DesignerHost.RootDocument.DoCommand (EditorCommand.Redo); };
-
- ToolButton cutButton = new ToolButton (Stock.Cut);
- buttons.Add (cutButton);
- cutButton.Clicked += delegate { host.DesignerHost.RootDocument.DoCommand (EditorCommand.Cut); };
-
- ToolButton copyButton = new ToolButton (Stock.Copy);
- buttons.Add (copyButton);
- copyButton.Clicked += delegate { host.DesignerHost.RootDocument.DoCommand (EditorCommand.Copy); };
-
- ToolButton pasteButton = new ToolButton (Stock.Paste);
- buttons.Add (pasteButton);
- pasteButton.Clicked += delegate { host.DesignerHost.RootDocument.DoCommand (EditorCommand.Paste); };
-
-
- // * Text style
-
- buttons.Add (new SeparatorToolItem());
-
- ToolButton boldButton = new ToolButton (Stock.Bold);
- buttons.Add (boldButton);
- boldButton.Clicked += delegate { host.DesignerHost.RootDocument.DoCommand (EditorCommand.Bold); };
-
- ToolButton italicButton = new ToolButton (Stock.Italic);
- buttons.Add (italicButton);
- italicButton.Clicked += delegate { host.DesignerHost.RootDocument.DoCommand (EditorCommand.Italic); };
-
- ToolButton underlineButton = new ToolButton (Stock.Underline);
- buttons.Add (underlineButton);
- underlineButton.Clicked += delegate { host.DesignerHost.RootDocument.DoCommand (EditorCommand.Underline); };
-
- ToolButton indentButton = new ToolButton (Stock.Indent);
- buttons.Add (indentButton);
- indentButton.Clicked += delegate { host.DesignerHost.RootDocument.DoCommand (EditorCommand.Indent); };
-
- ToolButton unindentButton = new ToolButton (Stock.Unindent);
- buttons.Add (unindentButton);
- unindentButton.Clicked += delegate { host.DesignerHost.RootDocument.DoCommand (EditorCommand.Outdent); };
-
- return buttons;
- }
-
- bool disposed = false;
- public override void Dispose ()
- {
- System.Diagnostics.Trace.WriteLine ("Disposing AspNetEdit editor process");
-
- if (disposed)
- return;
- disposed = true;
-
- host.Dispose ();
- base.Dispose ();
- System.Diagnostics.Trace.WriteLine ("AspNetEdit editor process disposed");
- }
- }
-}
diff --git a/extras/AspNetEdit/AspNetEdit.Integration/GeckoWebBrowser.cs b/extras/AspNetEdit/AspNetEdit.Integration/GeckoWebBrowser.cs
deleted file mode 100644
index f8eda8be6a..0000000000
--- a/extras/AspNetEdit/AspNetEdit.Integration/GeckoWebBrowser.cs
+++ /dev/null
@@ -1,251 +0,0 @@
-//
-// GeckoWebBrowser.cs
-//
-// Author:
-// Michael Hutchinson <mhutchinson@novell.com>
-//
-// Copyright (C) 2007 Novell, Inc (http://www.novell.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-using System;
-using System.IO;
-using Gecko;
-
-using MonoDevelop.Ide.WebBrowser;
-
-namespace AspNetEdit.Integration
-{
-
- public class GeckoWebBrowser : WebControl, IWebBrowser
- {
- string delayedUrl;
- string oldTempFile;
- bool reShown = false;
-
- bool suppressLinkClickedBecauseCausedByLoadUrlCall = false;
-
- public GeckoWebBrowser ()
- {
- WebControl.SetProfilePath ("/tmp", "MonoDevelop");
-
- //FIXME: On{Event} doesn't fire
- this.ExposeEvent += exposeHandler;
- this.OpenUri += delegate (object o, OpenUriArgs args) {
- args.RetVal = OnLocationChanging (args.AURI);
- };
- this.LocChange += delegate (object sender, EventArgs e) {
- OnLocationChanged ();
- };
- this.Progress += delegate (object sender, ProgressArgs e) {
- OnLoadingProgressChanged (e.Curprogress / e.Maxprogress);
- };
- this.ECMAStatus += delegate {
- OnJSStatusChanged ();
- };
- this.LinkStatusChanged += delegate {
- OnLinkStatusChanged ();
- };
- this.TitleChange += delegate {
- OnTitleChanged ();
- };
- }
-
- //FIXME: OnExposeEvent doesn't fire, but ExposeEvent does
- void exposeHandler (object sender, Gtk.ExposeEventArgs e)
- {
- if (delayedUrl != null) {
- realLoadUrl (delayedUrl);
- delayedUrl = null;
- }
-
- //FIXME: suppress a strange bug with control not getting drawn first time it's shown, or when docking changed.
- //For some reason this event only fires when control 'appears' or is re-docked, which corresponds 1:1 to the bug.
- if (!reShown) {
- Hide ();
- Show ();
- //Normally we would expect this event to fire with every redraw event, so put in a limiter
- //in case this is fixed in future.
- reShown = true;
- GLib.Timeout.Add (1000, delegate { reShown = false; return false; } );
- }
- }
-
- string IWebBrowser.Title {
- get { return base.Title; }
- }
-
- string IWebBrowser.JSStatus {
- get { return base.JsStatus; }
- }
-
- string IWebBrowser.LinkStatus {
- get { return base.LinkMessage; }
- }
-
- string IWebBrowser.Location {
- get { return base.Location; }
- }
-
- bool IWebBrowser.CanGoBack {
- get { return base.CanGoBack (); }
- }
-
- bool IWebBrowser.CanGoForward {
- get { return base.CanGoForward (); }
- }
-
- void IWebBrowser.GoForward ()
- {
- base.GoForward ();
- }
-
- void IWebBrowser.GoBack ()
- {
- base.GoBack ();
- }
-
- void IWebBrowser.LoadUrl (string url)
- {
- realLoadUrl (url);
- }
-
- void IWebBrowser.LoadHtml (string html)
- {
- string tempFile = System.IO.Path.GetTempFileName ();
-
- StreamWriter writer = null;
- try {
- writer = File.CreateText (tempFile);
- writer.Write (html);
- } catch (Exception ex) {
- MonoDevelop.Core.LoggingService.LogError ("Could not write temporary HTML file '{0}' for Gecko web control\n{1}", tempFile, ex.ToString ());
- } finally {
- if (writer != null)
- writer.Close ();
- }
-
- realLoadUrl ("tempfile://" + tempFile);
- }
-
- void realLoadUrl (string url)
- {
- if (url == null)
- throw new ArgumentNullException ("url");
-
- if (!this.IsRealized) {
- delayedUrl = url;
- return;
- }
-
- if (url == delayedUrl) {
- delayedUrl = null;
- }
-
- if (oldTempFile != null) {
- try {
- File.Delete (oldTempFile);
- } catch (Exception ex) {
- MonoDevelop.Core.LoggingService.LogError ("Could not delete temp file '{0}'\n{1]", oldTempFile, ex.ToString ());
- }
- oldTempFile = null;
- }
-
- suppressLinkClickedBecauseCausedByLoadUrlCall = true;
-
- if (url.StartsWith ("tempfile://")) {
- oldTempFile = url.Substring (11);
- base.LoadUrl (oldTempFile);
- } else {
- base.LoadUrl (url);
- }
- }
-
- void IWebBrowser.Reload ()
- {
- base.Reload ((int) ReloadFlags.Reloadnormal);
- }
-
- void IWebBrowser.StopLoad ()
- {
- base.StopLoad ();
- }
-
- public event PageLoadedHandler PageLoaded;
- public event LocationChangingHandler LocationChanging;
- public event LocationChangingHandler LinkClicked;
- public event LocationChangedHandler LocationChanged;
- public event TitleChangedHandler TitleChanged;
- public event StatusMessageChangedHandler JSStatusChanged;
- public event StatusMessageChangedHandler LinkStatusChanged;
- public event LoadingProgressChangedHandler LoadingProgressChanged;
-
- protected bool OnLocationChanging (string aURI)
- {
- LocationChangingEventArgs args = new LocationChangingEventArgs (aURI, false);
- args.SuppressChange = false;
- if (LocationChanging != null)
- LocationChanging (this, args);
- OnLinkClicked (args);
- return args.SuppressChange;
- }
-
- protected virtual void OnLinkClicked (LocationChangingEventArgs args)
- {
- if (suppressLinkClickedBecauseCausedByLoadUrlCall) {
- suppressLinkClickedBecauseCausedByLoadUrlCall = false;
- return;
- }
- if (LinkClicked != null)
- LinkClicked (this, args);
- }
-
- protected virtual void OnLocationChanged ()
- {
- if (LocationChanged != null)
- LocationChanged (this, new LocationChangedEventArgs (null));
- }
-
- protected virtual void OnLoadingProgressChanged (float progress)
- {
- if (LoadingProgressChanged != null)
- LoadingProgressChanged (this, new LoadingProgressChangedEventArgs (progress));
- }
-
- protected virtual void OnJSStatusChanged ()
- {
- if (JSStatusChanged != null)
- JSStatusChanged (this, new StatusMessageChangedEventArgs (base.JsStatus));
- }
-
- protected virtual void OnLinkStatusChanged ()
- {
- if (LinkStatusChanged != null)
- LinkStatusChanged (this, new StatusMessageChangedEventArgs (base.LinkMessage));
- }
-
- protected virtual void OnTitleChanged ()
- {
- if (TitleChanged != null)
- TitleChanged (this, new TitleChangedEventArgs (base.Title));
- }
- }
-}
diff --git a/extras/AspNetEdit/AspNetEdit.Integration/MonoDevelopProxy.cs b/extras/AspNetEdit/AspNetEdit.Integration/MonoDevelopProxy.cs
deleted file mode 100644
index af8498607a..0000000000
--- a/extras/AspNetEdit/AspNetEdit.Integration/MonoDevelopProxy.cs
+++ /dev/null
@@ -1,167 +0,0 @@
-//
-// MonoDevelopProxy.cs: Proxies methods that run in the MD process so
-// that they are remotely accessible to the AspNetEdit process.
-//
-// Authors:
-// Michael Hutchinson <m.j.hutchinson@gmail.com>
-//
-// Copyright (C) 2006 Michael Hutchinson
-//
-//
-// This source code is licenced under The MIT License:
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-using System;
-using System.CodeDom;
-using System.Collections.Generic;
-
-using MonoDevelop.Ide;
-using MonoDevelop.Projects;
-using MonoDevelop.Projects.Dom;
-using MonoDevelop.Projects.Dom.Parser;
-using MonoDevelop.DesignerSupport;
-
-namespace AspNetEdit.Integration
-{
-
- public class MonoDevelopProxy : MarshalByRefObject, IDisposable
- {
- Project project;
- string className;
-
- public MonoDevelopProxy (Project project, string className)
- {
- this.className = string.IsNullOrEmpty (className)? null : className;
- this.project = project;
- }
-
- //keep this object available through remoting
- public override object InitializeLifetimeService ()
- {
- return null;
- }
-
- bool disposed = false;
- public void Dispose ()
- {
- if (disposed)
- return;
- disposed = true;
-
- //The proxy uses InitializeLifetimeService to make sure it stays connected
- //So need to make sure we don't keep it around forever
- System.Runtime.Remoting.RemotingServices.Disconnect (this);
- }
-
- //TODO: make this work with inline code
- #region event binding
-
- IType GetNonDesignerClass ()
- {
- ProjectDom ctx;
- IType cls = GetFullClass (out ctx);
- IType nonDesigner = MonoDevelop.DesignerSupport.CodeBehind.GetNonDesignerClass (cls);
- return nonDesigner ?? cls;
- }
-
- IType GetFullClass (out ProjectDom ctx)
- {
- if (project == null || className == null) {
- ctx = null;
- return null;
- }
- ctx = MonoDevelop.Projects.Dom.Parser.ProjectDomService.GetProjectDom (project);
- return ctx.GetType (className, false, false);
- }
-
- public bool IdentifierExistsInCodeBehind (string trialIdentifier)
- {
- ProjectDom ctx;
- IType fullClass = GetFullClass (out ctx);
- if (fullClass == null)
- return false;
-
- return BindingService.IdentifierExistsInClass (ctx, fullClass, trialIdentifier);
- }
-
- public string GenerateIdentifierUniqueInCodeBehind (string trialIdentifier)
- {
- ProjectDom ctx;
- IType fullClass = GetFullClass (out ctx);
- if (fullClass == null)
- return trialIdentifier;
-
- return BindingService.GenerateIdentifierUniqueInClass (ctx, fullClass, trialIdentifier);
- }
-
-
- public string[] GetCompatibleMethodsInCodeBehind (CodeMemberMethod method)
- {
- ProjectDom ctx;
- IType fullClass = GetFullClass (out ctx);
- if (fullClass == null)
- return new string[0];
-
- IMethod MDMeth = BindingService.CodeDomToMDDomMethod (method);
- if (MDMeth == null)
- return null;
-
- List<IMethod> compatMeth = new List<IMethod> (BindingService.GetCompatibleMethodsInClass (ctx, fullClass, MDMeth));
- string[] names = new string[compatMeth.Count];
- for (int i = 0; i < names.Length; i++)
- names[i] = compatMeth[i].Name;
- return names;
- }
-
- public bool ShowMethod (CodeMemberMethod method)
- {
- ProjectDom ctx;
- IType fullCls = GetFullClass (out ctx);
- if (fullCls == null)
- return false;
-
- IType codeBehindClass = MonoDevelop.DesignerSupport.CodeBehind.GetNonDesignerClass (fullCls) ?? fullCls;
-
- Gtk.Application.Invoke ( delegate {
- BindingService.CreateAndShowMember (project, fullCls, codeBehindClass, method);
- });
-
- return true;
- }
-
- public bool ShowLine (int lineNumber)
- {
- IType codeBehindClass = GetNonDesignerClass ();
- if (codeBehindClass == null)
- return false;
-
- Gtk.Application.Invoke ( delegate {
- IdeApp.Workbench.OpenDocument (codeBehindClass.CompilationUnit.FileName, lineNumber, 1, true);
- });
-
- return true;
- }
-
- #endregion event binding
- }
-
-}
diff --git a/extras/AspNetEdit/AspNetEdit.JSCall/CommandManager.cs b/extras/AspNetEdit/AspNetEdit.JSCall/CommandManager.cs
deleted file mode 100644
index c81e340b92..0000000000
--- a/extras/AspNetEdit/AspNetEdit.JSCall/CommandManager.cs
+++ /dev/null
@@ -1,163 +0,0 @@
- /*
- * CommandManager.cs - The C# side of the JSCall Gecko#/C# glue layer
- *
- * Authors:
- * Michael Hutchinson <m.j.hutchinson@gmail.com>
- *
- * Copyright (C) 2005-2007 Michael Hutchinson
- *
- * This sourcecode is licenced under The MIT License:
- *
- * Permission is hereby granted, free of charge, to any person obtaining
- * a copy of this software and associated documentation files (the
- * "Software"), to deal in the Software without restriction, including
- * without limitation the rights to use, copy, modify, merge, publish,
- * distribute, sublicense, and/or sell copies of the Software, and to permit
- * persons to whom the Software is furnished to do so, subject to the
- * following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
- * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
- * NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
- * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
- * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
- * USE OR OTHER DEALINGS IN THE SOFTWARE.
- */
-
-using System;
-using System.Collections;
-using Gecko;
-using System.Text;
-
-namespace AspNetEdit.JSCall
-{
- public class CommandManager
- {
- private const char delimiter = (char)234;
-
- private Hashtable functions = new Hashtable ();
- private WebControl webControl;
-
- public CommandManager (WebControl control)
- {
- if (control == null)
- throw new ArgumentNullException ("The Command Manager must be bound to a WebControl instance.", "control");
-
- webControl = control;
- webControl.TitleChange += new EventHandler (webControl_ECMAStatus);
- }
-
- private void webControl_ECMAStatus (object sender, EventArgs e)
- {
- if (!webControl.Title.StartsWith ("JSCall"))
- return;
-
- string[] call = webControl.Title.Split (delimiter);
- if (call.Length < 2)
- throw new Exception ("Too few parameters in call from JavaScript.");
-
- string function = call[1];
- string returnTo = call[2];
-
- string[] args = (string[]) System.Array.CreateInstance (typeof(String), (call.Length - 3));
- System.Array.Copy (call, 3, args, 0, (call.Length - 3));
-
- if (!functions.Contains (function))
- throw new Exception ("Unknown function name called from JavaScript.");
-
- ClrCall clrCall = (ClrCall) functions[function];
-
-
- if (returnTo.Length == 0)
- {
- clrCall (args);
- }
- else
- {
- string[] result = { clrCall (args) };
- JSCall(returnTo, null, result);
- }
- }
-
- public void JSEval (string script)
- {
- if ((script == null) || (script.Length < 1))
- throw new ArgumentNullException ("A null or empty script cannot be executed.", "script");
-
- webControl.LoadUrl ("javascript:" + script);
- }
-
- public void JSCall (string function, string returnTo, params string[] args)
- {
- if ((function==null) || (function.Length < 1))
- throw new ArgumentException ("A function name must be specified.", "function");
-
- StringBuilder sb = new StringBuilder ();
- sb.Append ("javascript: ");
-
- //wrap the call in a function to handle the return value
- if (returnTo != null)
- sb.AppendFormat ("JSCallPlaceClrCall(\"{0}\", \"\", new Array( ", returnTo);
-
- //call the function
- sb.AppendFormat ("{0} (", function);
-
- //add the arguments
- if (args != null) {
- for (int i = 0; i < args.Length - 1; i++)
- sb.AppendFormat ("\"{0}\", ", escapeJSString (args[i]));
- sb.AppendFormat ("\"{0}\"", escapeJSString (args[args.Length-1]));
- }
-
- //close the function call
- sb.Append (")");
-
- //end return wrapper
- if (returnTo != null)
- sb.Append (") )");
- sb.Append(";");
-
- System.Diagnostics.Trace.WriteLine(sb.ToString ());
-
- webControl.LoadUrl (sb.ToString ());
- }
-
- private string escapeJSString (string s)
- {
- return s.Replace ("\\", "\\\\")
- .Replace ("\"", "\\\"")
- .Replace ("\n", "\\n");
- }
-
- public void RegisterJSHandler (string name, ClrCall handler)
- {
- if (!functions.Contains (name))
- {
- functions.Add (name, handler);
- }
- else
- {
- throw new Exception ("A handler with this name already exists.");
- }
-
- }
-
- public void UnregisterJSHandler (string name)
- {
- if (functions.Contains (name))
- {
- functions.Remove (name);
- }
- else
- {
- throw new IndexOutOfRangeException ("A function with this name has not been registered.");
- }
- }
- }
-
- public delegate string ClrCall (string[] args);
-}
diff --git a/extras/AspNetEdit/AspNetEdit.JSCall/InvalidJSArgumentException.cs b/extras/AspNetEdit/AspNetEdit.JSCall/InvalidJSArgumentException.cs
deleted file mode 100644
index ea81595d0d..0000000000
--- a/extras/AspNetEdit/AspNetEdit.JSCall/InvalidJSArgumentException.cs
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * InvalidJSArgumentException.cs - The exception to be thrown when an argument from a call from JavaScript is invalid
- *
- * Authors:
- * Michael Hutchinson <m.j.hutchinson@gmail.com>
- *
- * Copyright (C) 2005 Michael Hutchinson
- *
- * This sourcecode is licenced under The MIT License:
- *
- * Permission is hereby granted, free of charge, to any person obtaining
- * a copy of this software and associated documentation files (the
- * "Software"), to deal in the Software without restriction, including
- * without limitation the rights to use, copy, modify, merge, publish,
- * distribute, sublicense, and/or sell copies of the Software, and to permit
- * persons to whom the Software is furnished to do so, subject to the
- * following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
- * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
- * NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
- * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
- * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
- * USE OR OTHER DEALINGS IN THE SOFTWARE.
- */
-
-using System;
-
-namespace AspNetEdit.JSCall
-{
- public class InvalidJSArgumentException : Exception
- {
- public InvalidJSArgumentException (string function, int argument, Exception e)
- :base ("Invalid argument " + argument.ToString () + " in JavaScript call to \"" + function + "\".", e)
- {
- }
-
- public InvalidJSArgumentException (string function, int argument)
- :base ("Invalid argument " + argument.ToString () + " in JavaScript call to \"" + function + "\".")
- {
- }
- }
-}
diff --git a/extras/AspNetEdit/AspNetEdit.addin.xml b/extras/AspNetEdit/AspNetEdit.addin.xml
deleted file mode 100644
index 693a69c05a..0000000000
--- a/extras/AspNetEdit/AspNetEdit.addin.xml
+++ /dev/null
@@ -1,29 +0,0 @@
-<Addin id = "AspNetEdit"
- namespace = "MonoDevelop"
- name = "ASP.NET Visual Designer"
- author = "Michael Hutchinson"
- copyright = "MIT X11"
- url = "http://www.monodevelop.com/"
- description = "Visual Designer for ASP.NET Web Forms."
- category = "Web Development"
- version = "4.2.3">
-
- <Runtime>
- <Import assembly = "AspNetEdit.dll"/>
- <Import file = "aspdesigner.jar"/>
- </Runtime>
-
- <Dependencies>
- <Addin id="Core" version="4.2.3"/>
- <Addin id="Ide" version="4.2.3"/>
- <Addin id="Deployment" version="4.2.3" />
- <Addin id="AspNet" version="4.2.3" />
- <Addin id="DesignerSupport" version="4.2.3" />
- </Dependencies>
-
- <Extension path = "/MonoDevelop/Ide/DisplayBindings">
- <DisplayBinding id = "AspNetEditDisplayBinding"
- supportedformats = "Source Code"
- class = "AspNetEdit.Integration.AspNetEditDisplayBinding"/>
- </Extension>
-</Addin>
diff --git a/extras/AspNetEdit/AspNetEdit.csproj b/extras/AspNetEdit/AspNetEdit.csproj
deleted file mode 100644
index 1a24550a2f..0000000000
--- a/extras/AspNetEdit/AspNetEdit.csproj
+++ /dev/null
@@ -1,195 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <ProductVersion>9.0.21022</ProductVersion>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{F9A9BFBB-57DC-4143-9276-15D82083B56F}</ProjectGuid>
- <OutputType>Library</OutputType>
- <AssemblyName>AspNetEdit</AssemblyName>
- <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
- <RootNamespace>AspNetEdit</RootNamespace>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- <DebugSymbols>true</DebugSymbols>
- <DebugType>full</DebugType>
- <Optimize>true</Optimize>
- <OutputPath>bin\Debug</OutputPath>
- <DefineConstants>DEBUG;TRACE</DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- <CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
- <Execution>
- <Execution clr-version="Net_2_0" />
- </Execution>
- <AssemblyOriginatorKeyFile>.</AssemblyOriginatorKeyFile>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- <DebugType>none</DebugType>
- <Optimize>true</Optimize>
- <OutputPath>bin\Release</OutputPath>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- <CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
- <Execution>
- <Execution clr-version="Net_2_0" />
- </Execution>
- </PropertyGroup>
- <ItemGroup>
- <Reference Include="System.Web" />
- <Reference Include="System.Drawing.Design" />
- <Reference Include="System.Design" />
- <Reference Include="System" />
- <Reference Include="System.Xml" />
- <Reference Include="System.Drawing" />
- <Reference Include="MonoDevelop.Core, Version=1.9.2.0, Culture=neutral">
- <Package>monodevelop</Package>
- </Reference>
- <Reference Include="MonoDevelop.Ide, Version=1.9.2.0, Culture=neutral">
- <Package>monodevelop</Package>
- </Reference>
- <Reference Include="gecko-sharp, Version=2.0.0.0, Culture=neutral, PublicKeyToken=ccf7d78a55e9f021" />
- <Reference Include="MonoDevelop.DesignerSupport, Version=1.9.2.0, Culture=neutral">
- <Package>monodevelop-core-addins</Package>
- </Reference>
- <Reference Include="Mono.Addins, Version=0.4.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756">
- <SpecificVersion>False</SpecificVersion>
- </Reference>
- <Reference Include="Mono.Cecil, Version=0.6.8.8607, Culture=neutral">
- <Package>monodevelop</Package>
- </Reference>
- <Reference Include="MonoDevelop.AspNet, Version=1.9.2.0, Culture=neutral">
- <Package>monodevelop-core-addins</Package>
- </Reference>
- <Reference Include="NRefactory, Version=0.0.0.0, Culture=neutral">
- <Package>monodevelop</Package>
- </Reference>
- <Reference Include="MonoDevelop.VersionControl, Version=1.9.2.0, Culture=neutral">
- <Package>monodevelop-core-addins</Package>
- </Reference>
- <Reference Include="MonoDevelop.NUnit, Version=1.9.2.0, Culture=neutral">
- <Package>monodevelop-core-addins</Package>
- </Reference>
- <Reference Include="MonoDevelop.Gettext, Version=1.9.2.0, Culture=neutral">
- <Package>monodevelop-core-addins</Package>
- </Reference>
- <Reference Include="MonoDevelop.Deployment, Version=1.9.2.0, Culture=neutral">
- <Package>monodevelop-core-addins</Package>
- </Reference>
- <Reference Include="MonoDevelop.Deployment.Linux, Version=1.9.2.0, Culture=neutral">
- <Package>monodevelop-core-addins</Package>
- </Reference>
- <Reference Include="MonoDevelop.GtkCore, Version=1.9.2.0, Culture=neutral">
- <Package>monodevelop-core-addins</Package>
- </Reference>
- <Reference Include="MonoDevelop.VBNetBinding, Version=1.9.2.0, Culture=neutral">
- <Package>monodevelop-core-addins</Package>
- </Reference>
- <Reference Include="MonoDevelop.CBinding, Version=1.9.2.0, Culture=neutral">
- <Package>monodevelop-core-addins</Package>
- </Reference>
- <Reference Include="MonoDevelop.CSharpBinding, Version=1.9.2.0, Culture=neutral">
- <Package>monodevelop-core-addins</Package>
- </Reference>
- <Reference Include="MonoDevelop.Autotools, Version=1.9.2.0, Culture=neutral">
- <Package>monodevelop-core-addins</Package>
- </Reference>
- <Reference Include="pango-sharp, Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
- <Reference Include="atk-sharp, Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
- <Reference Include="gdk-sharp, Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
- <Reference Include="gtk-sharp, Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
- <Reference Include="Mono.TextEditor, Version=1.0.0.0, Culture=neutral">
- <Package>monodevelop</Package>
- </Reference>
- <Reference Include="MonoDevelop.XmlEditor, Version=1.9.2.0, Culture=neutral">
- <Package>monodevelop-core-addins</Package>
- </Reference>
- <Reference Include="MonoDevelop.SourceEditor2, Version=2.1.0.0, Culture=neutral">
- <Package>monodevelop-core-addins</Package>
- </Reference>
- <Reference Include="MonoDevelop.Debugger, Version=2.1.0.0, Culture=neutral">
- <Package>monodevelop-core-addins</Package>
- </Reference>
- <Reference Include="MonoDevelop.Refactoring, Version=2.2.0.0, Culture=neutral">
- <Package>monodevelop-core-addins</Package>
- </Reference>
- <Reference Include="MonoDevelop.Debugger.Soft, Version=2.2.0.0, Culture=neutral">
- <Package>monodevelop-core-addins</Package>
- </Reference>
- <Reference Include="Mono.Debugger.Soft, Version=0.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756">
- <Package>monodevelop-core-addins</Package>
- </Reference>
- <Reference Include="Mono.Debugging, Version=0.0.0.0, Culture=neutral, PublicKeyToken=5e9ce85b0923c84f">
- <Package>monodevelop</Package>
- </Reference>
- <Reference Include="Mono.Debugging.Soft, Version=0.0.0.0, Culture=neutral, PublicKeyToken=5e9ce85b0923c84f">
- <Package>monodevelop-core-addins</Package>
- </Reference>
- </ItemGroup>
- <ItemGroup>
- <Compile Include="AssemblyInfo.cs" />
- <Compile Include="AspNetEdit.Integration\AspNetEditDisplayBinding.cs" />
- <Compile Include="AspNetEdit.Editor.Persistence\ControlPersister.cs" />
- <Compile Include="AspNetEdit.Editor.Persistence\DesignTimeParser.cs" />
- <Compile Include="AspNetEdit.Editor.Persistence\HtmlParsingObject.cs" />
- <Compile Include="AspNetEdit.Editor.Persistence\ParsingObject.cs" />
- <Compile Include="AspNetEdit.Editor.Persistence\RootParsingObject.cs" />
- <Compile Include="AspNetEdit.Editor.Persistence\ServerControlParsingObject.cs" />
- <Compile Include="AspNetEdit.Editor.ComponentModel\DesignContainer.cs" />
- <Compile Include="AspNetEdit.Editor.ComponentModel\DesignerHost.cs" />
- <Compile Include="AspNetEdit.Editor.ComponentModel\Document.cs" />
- <Compile Include="AspNetEdit.Editor.ComponentModel\DocumentDirective.cs" />
- <Compile Include="AspNetEdit.Editor.ComponentModel\ExtenderListService.cs" />
- <Compile Include="AspNetEdit.Editor.ComponentModel\MenuCommandService.cs" />
- <Compile Include="AspNetEdit.Editor.ComponentModel\NameCreationService.cs" />
- <Compile Include="AspNetEdit.Editor.ComponentModel\RootDesigner.cs" />
- <Compile Include="AspNetEdit.Editor.ComponentModel\SelectionService.cs" />
- <Compile Include="AspNetEdit.Editor.ComponentModel\TextToolboxItem.cs" />
- <Compile Include="AspNetEdit.Editor.ComponentModel\ToolboxService.cs" />
- <Compile Include="AspNetEdit.Editor.ComponentModel\Transaction.cs" />
- <Compile Include="AspNetEdit.Editor.ComponentModel\TypeDescriptorFilterService.cs" />
- <Compile Include="AspNetEdit.Editor.ComponentModel\TypeResolutionService.cs" />
- <Compile Include="AspNetEdit.Editor.ComponentModel\WebFormPage.cs" />
- <Compile Include="AspNetEdit.Editor.ComponentModel\WebFormReferenceManager.cs" />
- <Compile Include="AspNetEdit.Editor.UI\PropertyGrid.cs" />
- <Compile Include="AspNetEdit.Editor.UI\RootDesignerView.cs" />
- <Compile Include="AspNetEdit.Integration\AspNetEditViewContent.cs" />
- <Compile Include="AspNetEdit.Editor\EditorHost.cs" />
- <Compile Include="AspNetEdit.Integration\EditorProcess.cs" />
- <Compile Include="AspNetEdit.Integration\MonoDevelopProxy.cs" />
- <Compile Include="AspNetEdit.Editor.ComponentModel\EventBindingService.cs" />
- <Compile Include="AspNetEdit.JSCall\CommandManager.cs" />
- <Compile Include="AspNetEdit.JSCall\InvalidJSArgumentException.cs" />
- <Compile Include="AspNetEdit.Integration\GeckoWebBrowser.cs" />
- </ItemGroup>
- <ItemGroup>
- <EmbeddedResource Include="AspNetEdit.addin.xml">
- <LogicalName>AspNetEdit.addin.xml</LogicalName>
- </EmbeddedResource>
- </ItemGroup>
- <ItemGroup>
- <None Include="chrome\install.rdf" />
- <None Include="chrome\README" />
- <None Include="chrome\content\aspdesigner\aspdesigner.xul" />
- <None Include="chrome\content\aspdesigner\clipboard.js" />
- <None Include="chrome\content\aspdesigner\constants.js" />
- <None Include="chrome\content\aspdesigner\contents.rdf" />
- <None Include="chrome\content\aspdesigner\editor.js" />
- <None Include="chrome\content\aspdesigner\editorContent.css" />
- <None Include="chrome\content\aspdesigner\JSCall.js" />
- <None Include="chrome\content\aspdesigner\xpcom.js" />
- <None Include="chrome\locale\en-US\aspdesigner\contents.rdf" />
- <None Include="ChangeLog" />
- <None Include="AspNetEdit.make" />
- <None Include="configure" />
- </ItemGroup>
- <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
- <ProjectExtensions>
- <MonoDevelop>
- <Properties>
- <Deployment.LinuxDeployData generatePcFile="false" />
- </Properties>
- </MonoDevelop>
- </ProjectExtensions>
-</Project>
diff --git a/extras/AspNetEdit/AspNetEdit.make b/extras/AspNetEdit/AspNetEdit.make
deleted file mode 100644
index 67cf191550..0000000000
--- a/extras/AspNetEdit/AspNetEdit.make
+++ /dev/null
@@ -1,149 +0,0 @@
-srcdir=.
-top_srcdir=.
-
-include $(top_srcdir)/Makefile.include
-include $(top_srcdir)/config.make
-
-ifeq ($(CONFIG),DEBUG)
-ASSEMBLY_COMPILER_COMMAND = dmcs
-ASSEMBLY_COMPILER_FLAGS = -noconfig -codepage:utf8 -warn:4 -optimize+ -debug -define:DEBUG\;TRACE
-ASSEMBLY = build/AspNetEdit.dll
-ASSEMBLY_MDB = $(ASSEMBLY).mdb
-COMPILE_TARGET = library
-PROJECT_REFERENCES =
-BUILD_DIR = build
-
-
-endif
-
-ifeq ($(CONFIG),RELEASE)
-ASSEMBLY_COMPILER_COMMAND = dmcs
-ASSEMBLY_COMPILER_FLAGS = -noconfig -codepage:utf8 -warn:4 -optimize+
-ASSEMBLY = build/AspNetEdit.dll
-ASSEMBLY_MDB =
-COMPILE_TARGET = library
-PROJECT_REFERENCES =
-BUILD_DIR = build
-
-
-endif
-
-extension_name = aspdesigner
-extension_jar = $(shell pwd)/$(BUILD_DIR)/$(extension_name).jar
-
-FILES = \
- AspNetEdit.Editor.ComponentModel/DesignContainer.cs \
- AspNetEdit.Editor.ComponentModel/DesignerHost.cs \
- AspNetEdit.Editor.ComponentModel/Document.cs \
- AspNetEdit.Editor.ComponentModel/DocumentDirective.cs \
- AspNetEdit.Editor.ComponentModel/EventBindingService.cs \
- AspNetEdit.Editor.ComponentModel/ExtenderListService.cs \
- AspNetEdit.Editor.ComponentModel/MenuCommandService.cs \
- AspNetEdit.Editor.ComponentModel/NameCreationService.cs \
- AspNetEdit.Editor.ComponentModel/RootDesigner.cs \
- AspNetEdit.Editor.ComponentModel/SelectionService.cs \
- AspNetEdit.Editor.ComponentModel/TextToolboxItem.cs \
- AspNetEdit.Editor.ComponentModel/ToolboxService.cs \
- AspNetEdit.Editor.ComponentModel/Transaction.cs \
- AspNetEdit.Editor.ComponentModel/TypeDescriptorFilterService.cs \
- AspNetEdit.Editor.ComponentModel/TypeResolutionService.cs \
- AspNetEdit.Editor.ComponentModel/WebFormPage.cs \
- AspNetEdit.Editor.ComponentModel/WebFormReferenceManager.cs \
- AspNetEdit.Editor.Persistence/ControlPersister.cs \
- AspNetEdit.Editor.Persistence/DesignTimeParser.cs \
- AspNetEdit.Editor.Persistence/HtmlParsingObject.cs \
- AspNetEdit.Editor.Persistence/ParsingObject.cs \
- AspNetEdit.Editor.Persistence/RootParsingObject.cs \
- AspNetEdit.Editor.Persistence/ServerControlParsingObject.cs \
- AspNetEdit.Editor.UI/PropertyGrid.cs \
- AspNetEdit.Editor.UI/RootDesignerView.cs \
- AspNetEdit.Editor/EditorHost.cs \
- AspNetEdit.Integration/AspNetEditDisplayBinding.cs \
- AspNetEdit.Integration/AspNetEditViewContent.cs \
- AspNetEdit.Integration/EditorProcess.cs \
- AspNetEdit.Integration/GeckoWebBrowser.cs \
- AspNetEdit.Integration/MonoDevelopProxy.cs \
- AspNetEdit.JSCall/CommandManager.cs \
- AspNetEdit.JSCall/InvalidJSArgumentException.cs \
- AssemblyInfo.cs
-
-DATA_FILES =
-
-RESOURCES = AspNetEdit.addin.xml
-
-EXTRAS = \
- chrome/install.rdf \
- chrome/README \
- chrome/content/aspdesigner/aspdesigner.xul \
- chrome/content/aspdesigner/clipboard.js \
- chrome/content/aspdesigner/constants.js \
- chrome/content/aspdesigner/contents.rdf \
- chrome/content/aspdesigner/editor.js \
- chrome/content/aspdesigner/editorContent.css \
- chrome/content/aspdesigner/JSCall.js \
- chrome/content/aspdesigner/xpcom.js \
- chrome/locale/en-US/aspdesigner/contents.rdf \
- ChangeLog
-
-REFERENCES = \
- -pkg:gecko-sharp-2.0 \
- -pkg:gtk-sharp-2.0 \
- -pkg:mono-addins \
- -pkg:monodevelop \
- -pkg:monodevelop-core-addins \
- System \
- System.Design \
- System.Drawing \
- System.Drawing.Design \
- System.Web \
- System.Xml
-
-DLL_REFERENCES =
-
-CLEANFILES += $(extension_jar)
-
-INSTALL_DIR = $(prefix)/lib/monodevelop/AddIns/AspNetEdit
-
-## actually all in $(srcdir)/chrome, but we handle this later
-## need to handle paths this way to get gorrect paths in the zip
-jar_files = \
- content/aspdesigner/contents.rdf \
- content/aspdesigner/aspdesigner.xul \
- content/aspdesigner/editorContent.css \
- content/aspdesigner/editor.js \
- content/aspdesigner/clipboard.js \
- content/aspdesigner/constants.js \
- content/aspdesigner/xpcom.js \
- content/aspdesigner/JSCall.js \
- locale/en-US/aspdesigner/contents.rdf
-
-
-#Targets
-
-all-local: $(ASSEMBLY) $(extension_jar) $(top_srcdir)/config.make
-
-LOCAL_PKGCONFIG=PKG_CONFIG_PATH=../../local-config:$$PKG_CONFIG_PATH
-
-$(ASSEMBLY) $(ASSEMBLY_MDB): $(build_sources) $(build_resources) $(build_datafiles) $(DLL_REFERENCES) $(PROJECT_REFERENCES) $(build_xamlg_list)
- make pre-all-local-hook prefix=$(prefix)
- mkdir -p $(dir $(ASSEMBLY))
- make $(CONFIG)_BeforeBuild
- $(LOCAL_PKGCONFIG) $(ASSEMBLY_COMPILER_COMMAND) $(ASSEMBLY_COMPILER_FLAGS) -out:$(ASSEMBLY) -target:$(COMPILE_TARGET) $(build_sources_embed) $(build_resources_embed) $(build_references_ref)
- make $(CONFIG)_AfterBuild
- make post-all-local-hook prefix=$(prefix)
-
-
-$(extension_jar): $(foreach f, $(jar_files), $(srcdir)/chrome/$f)
- cd $(srcdir)/chrome; zip -q9 $@ $(jar_files)
-
-install-local: $(ASSEMBLY) $(ASSEMBLY_MDB) $(extension_jar)
- make pre-install-local-hook prefix=$(prefix)
- mkdir -p $(INSTALL_DIR)
- cp $(ASSEMBLY) $(ASSEMBLY_MDB) $(extension_jar) $(INSTALL_DIR)
- make post-install-local-hook prefix=$(prefix)
-
-uninstall-local: $(ASSEMBLY) $(ASSEMBLY_MDB) $(extension_jar)
- make pre-uninstall-local-hook prefix=$(prefix)
- rm -f $(INSTALL_DIR)/$(notdir $(ASSEMBLY))
- test -z '$(ASSEMBLY_MDB)' || rm -f $(INSTALL_DIR)/$(notdir $(ASSEMBLY_MDB))
- make post-uninstall-local-hook prefix=$(prefix)
diff --git a/extras/AspNetEdit/AspNetEdit.mdp b/extras/AspNetEdit/AspNetEdit.mdp
deleted file mode 100644
index 604558df27..0000000000
--- a/extras/AspNetEdit/AspNetEdit.mdp
+++ /dev/null
@@ -1,115 +0,0 @@
-<Project name="AspNetEdit" fileversion="2.0" language="C#" clr-version="Net_2_0" targetFramework="2.0" ctype="DotNetProject">
- <Configurations active="Debug">
- <Configuration name="Debug" ctype="DotNetProjectConfiguration">
- <Output directory="bin/Debug" assemblyKeyFile="." assembly="AspNetEdit" />
- <Build debugmode="True" target="Library" />
- <Execution runwithwarnings="True" consolepause="True" runtime="MsNet" clr-version="Net_2_0" />
- <CodeGeneration compiler="Mcs" warninglevel="4" optimize="True" unsafecodeallowed="False" generateoverflowchecks="True" definesymbols="DEBUG;TRACE" generatexmldocumentation="False" ctype="CSharpCompilerParameters" />
- </Configuration>
- <Configuration name="Release" ctype="DotNetProjectConfiguration">
- <Output directory="bin/Release" assembly="AspNetEdit" />
- <Build debugmode="False" target="Library" />
- <Execution runwithwarnings="True" consolepause="True" runtime="MsNet" clr-version="Net_2_0" />
- <CodeGeneration compiler="Mcs" warninglevel="4" optimize="True" unsafecodeallowed="False" generateoverflowchecks="True" generatexmldocumentation="False" ctype="CSharpCompilerParameters" />
- </Configuration>
- </Configurations>
- <Contents>
- <File name="AssemblyInfo.cs" subtype="Code" buildaction="Compile" />
- <File name="AspNetEdit.Integration/AspNetEditDisplayBinding.cs" subtype="Code" buildaction="Compile" />
- <File name="AspNetEdit.addin.xml" subtype="Code" buildaction="EmbedAsResource" />
- <File name="AspNetEdit.Editor.Persistence/ControlPersister.cs" subtype="Code" buildaction="Compile" />
- <File name="AspNetEdit.Editor.Persistence/DesignTimeParser.cs" subtype="Code" buildaction="Compile" />
- <File name="AspNetEdit.Editor.Persistence/HtmlParsingObject.cs" subtype="Code" buildaction="Compile" />
- <File name="AspNetEdit.Editor.Persistence/ParsingObject.cs" subtype="Code" buildaction="Compile" />
- <File name="AspNetEdit.Editor.Persistence/RootParsingObject.cs" subtype="Code" buildaction="Compile" />
- <File name="AspNetEdit.Editor.Persistence/ServerControlParsingObject.cs" subtype="Code" buildaction="Compile" />
- <File name="AspNetEdit.Editor.ComponentModel/DesignContainer.cs" subtype="Code" buildaction="Compile" />
- <File name="AspNetEdit.Editor.ComponentModel/DesignerHost.cs" subtype="Code" buildaction="Compile" />
- <File name="AspNetEdit.Editor.ComponentModel/Document.cs" subtype="Code" buildaction="Compile" />
- <File name="AspNetEdit.Editor.ComponentModel/DocumentDirective.cs" subtype="Code" buildaction="Compile" />
- <File name="AspNetEdit.Editor.ComponentModel/ExtenderListService.cs" subtype="Code" buildaction="Compile" />
- <File name="AspNetEdit.Editor.ComponentModel/MenuCommandService.cs" subtype="Code" buildaction="Compile" />
- <File name="AspNetEdit.Editor.ComponentModel/NameCreationService.cs" subtype="Code" buildaction="Compile" />
- <File name="AspNetEdit.Editor.ComponentModel/RootDesigner.cs" subtype="Code" buildaction="Compile" />
- <File name="AspNetEdit.Editor.ComponentModel/SelectionService.cs" subtype="Code" buildaction="Compile" />
- <File name="AspNetEdit.Editor.ComponentModel/TextToolboxItem.cs" subtype="Code" buildaction="Compile" />
- <File name="AspNetEdit.Editor.ComponentModel/ToolboxService.cs" subtype="Code" buildaction="Compile" />
- <File name="AspNetEdit.Editor.ComponentModel/Transaction.cs" subtype="Code" buildaction="Compile" />
- <File name="AspNetEdit.Editor.ComponentModel/TypeDescriptorFilterService.cs" subtype="Code" buildaction="Compile" />
- <File name="AspNetEdit.Editor.ComponentModel/TypeResolutionService.cs" subtype="Code" buildaction="Compile" />
- <File name="AspNetEdit.Editor.ComponentModel/WebFormPage.cs" subtype="Code" buildaction="Compile" />
- <File name="AspNetEdit.Editor.ComponentModel/WebFormReferenceManager.cs" subtype="Code" buildaction="Compile" />
- <File name="AspNetEdit.Editor.UI/PropertyGrid.cs" subtype="Code" buildaction="Compile" />
- <File name="AspNetEdit.Editor.UI/RootDesignerView.cs" subtype="Code" buildaction="Compile" />
- <File name="chrome/install.rdf" subtype="Code" buildaction="Nothing" />
- <File name="chrome/README" subtype="Code" buildaction="Nothing" />
- <File name="chrome/content/aspdesigner/aspdesigner.xul" subtype="Code" buildaction="Nothing" />
- <File name="chrome/content/aspdesigner/clipboard.js" subtype="Code" buildaction="Nothing" />
- <File name="chrome/content/aspdesigner/constants.js" subtype="Code" buildaction="Nothing" />
- <File name="chrome/content/aspdesigner/contents.rdf" subtype="Code" buildaction="Nothing" />
- <File name="chrome/content/aspdesigner/editor.js" subtype="Code" buildaction="Nothing" />
- <File name="chrome/content/aspdesigner/editorContent.css" subtype="Code" buildaction="Nothing" />
- <File name="chrome/content/aspdesigner/JSCall.js" subtype="Code" buildaction="Nothing" />
- <File name="chrome/content/aspdesigner/xpcom.js" subtype="Code" buildaction="Nothing" />
- <File name="chrome/locale/en-US/aspdesigner/contents.rdf" subtype="Code" buildaction="Nothing" />
- <File name="AspNetEdit.Integration/AspNetEditViewContent.cs" subtype="Code" buildaction="Compile" />
- <File name="ChangeLog" subtype="Code" buildaction="Nothing" />
- <File name="AspNetEdit.Editor/EditorHost.cs" subtype="Code" buildaction="Compile" />
- <File name="AspNetEdit.Integration/EditorProcess.cs" subtype="Code" buildaction="Compile" />
- <File name="AspNetEdit.Integration/MonoDevelopProxy.cs" subtype="Code" buildaction="Compile" />
- <File name="AspNetEdit.Editor.ComponentModel/EventBindingService.cs" subtype="Code" buildaction="Compile" />
- <File name="AspNetEdit.JSCall/CommandManager.cs" subtype="Code" buildaction="Compile" />
- <File name="AspNetEdit.JSCall/InvalidJSArgumentException.cs" subtype="Code" buildaction="Compile" />
- <File name="AspNetEdit.Integration/GeckoWebBrowser.cs" subtype="Code" buildaction="Compile" />
- <File name="AspNetEdit.make" subtype="Code" buildaction="Nothing" />
- <File name="configure" subtype="Code" buildaction="Nothing" />
- </Contents>
- <References>
- <ProjectReference type="Gac" localcopy="False" refto="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
- <ProjectReference type="Gac" localcopy="False" refto="System.Drawing.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
- <ProjectReference type="Gac" localcopy="False" refto="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
- <ProjectReference type="Gac" localcopy="False" refto="System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
- <ProjectReference type="Gac" localcopy="False" refto="System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
- <ProjectReference type="Gac" localcopy="True" refto="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
- <ProjectReference type="Gac" localcopy="True" refto="MonoDevelop.Components, Version=0.17.0.0, Culture=neutral" />
- <ProjectReference type="Gac" localcopy="True" refto="MonoDevelop.Core, Version=0.17.0.0, Culture=neutral" />
- <ProjectReference type="Gac" localcopy="True" refto="MonoDevelop.Core.Gui, Version=0.17.0.0, Culture=neutral" />
- <ProjectReference type="Gac" localcopy="True" refto="MonoDevelop.Ide, Version=0.17.0.0, Culture=neutral" />
- <ProjectReference type="Gac" localcopy="True" refto="MonoDevelop.Projects, Version=0.0.0.0, Culture=neutral" />
- <ProjectReference type="Gac" localcopy="True" refto="gecko-sharp, Version=2.0.0.0, Culture=neutral, PublicKeyToken=ccf7d78a55e9f021" />
- <ProjectReference type="Gac" localcopy="True" refto="MonoDevelop.DesignerSupport, Version=0.0.0.0, Culture=neutral" />
- <ProjectReference type="Gac" localcopy="True" specificVersion="False" refto="Mono.Addins, Version=0.3.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756" />
- <ProjectReference type="Gac" localcopy="True" refto="Mono.Cecil, Version=0.6.8.8607, Culture=neutral" />
- <ProjectReference type="Gac" localcopy="True" refto="MonoDevelop.AspNet, Version=0.0.0.0, Culture=neutral" />
- <ProjectReference type="Gac" localcopy="True" refto="NRefactory, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null" />
- <ProjectReference type="Gac" localcopy="True" refto="MonoDevelop.VersionControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null" />
- <ProjectReference type="Gac" localcopy="True" refto="MonoDevelop.NUnit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null" />
- <ProjectReference type="Gac" localcopy="True" refto="MonoDevelop.Gettext, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" />
- <ProjectReference type="Gac" localcopy="True" refto="MonoDevelop.Deployment, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" />
- <ProjectReference type="Gac" localcopy="True" refto="MonoDevelop.Deployment.Linux, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" />
- <ProjectReference type="Gac" localcopy="True" refto="MonoDevelop.GtkCore, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null" />
- <ProjectReference type="Gac" localcopy="True" refto="MonoDevelop.VBNetBinding, Version=1.0.1.1649, Culture=neutral, PublicKeyToken=null" />
- <ProjectReference type="Gac" localcopy="True" refto="MonoDevelop.CBinding, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null" />
- <ProjectReference type="Gac" localcopy="True" refto="MonoDevelop.CSharpBinding, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null" />
- <ProjectReference type="Gac" localcopy="True" refto="MonoDevelop.Autotools, Version=0.1.0.0, Culture=neutral, PublicKeyToken=null" />
- <ProjectReference type="Gac" localcopy="True" refto="pango-sharp, Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
- <ProjectReference type="Gac" localcopy="True" refto="atk-sharp, Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
- <ProjectReference type="Gac" localcopy="True" refto="gdk-sharp, Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
- <ProjectReference type="Gac" localcopy="True" refto="gtk-sharp, Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
- <ProjectReference type="Gac" localcopy="True" refto="Mono.TextEditor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" />
- <ProjectReference type="Gac" localcopy="True" refto="MonoDevelop.XmlEditor, Version=0.6.0.0, Culture=neutral, PublicKeyToken=null" />
- <ProjectReference type="Gac" localcopy="True" refto="Mono.Debugging, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null" />
- <ProjectReference type="Gac" localcopy="True" refto="MonoDevelop.Projects.Gui, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null" />
- </References>
- <Deployment.LinuxDeployData generatePcFile="False" />
- <MonoDevelop.Autotools.MakefileInfo IntegrationEnabled="True" RelativeMakefileName="AspNetEdit.make" SyncReferences="True" RelativeConfigureInPath="../../">
- <BuildFilesVar Sync="True" Name="FILES" />
- <DeployFilesVar />
- <ResourcesVar Sync="True" Name="RESOURCES" />
- <OthersVar />
- <GacRefVar Sync="True" Name="REFERENCES" />
- <AsmRefVar Sync="True" Name="REFERENCES" />
- <ProjectRefVar Sync="True" Name="REFERENCES" />
- </MonoDevelop.Autotools.MakefileInfo>
- <DeploymentInformation strategy="File" />
-</Project> \ No newline at end of file
diff --git a/extras/AspNetEdit/AspNetEdit.sln b/extras/AspNetEdit/AspNetEdit.sln
deleted file mode 100644
index a4990971dc..0000000000
--- a/extras/AspNetEdit/AspNetEdit.sln
+++ /dev/null
@@ -1,38 +0,0 @@
-
-Microsoft Visual Studio Solution File, Format Version 11.00
-# Visual Studio 2010
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AspNetEdit", "AspNetEdit.csproj", "{F9A9BFBB-57DC-4143-9276-15D82083B56F}"
-EndProject
-Global
- GlobalSection(SolutionConfigurationPlatforms) = preSolution
- Debug|Any CPU = Debug|Any CPU
- Release|Any CPU = Release|Any CPU
- EndGlobalSection
- GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {F9A9BFBB-57DC-4143-9276-15D82083B56F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {F9A9BFBB-57DC-4143-9276-15D82083B56F}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {F9A9BFBB-57DC-4143-9276-15D82083B56F}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {F9A9BFBB-57DC-4143-9276-15D82083B56F}.Release|Any CPU.Build.0 = Release|Any CPU
- EndGlobalSection
- GlobalSection(MonoDevelopProperties) = preSolution
- StartupItem = AspNetEdit.csproj
- Policies = $0
- $0.DotNetNamingPolicy = $1
- $1.DirectoryNamespaceAssociation = Flat
- $1.ResourceNamePolicy = FileName
- $0.StandardHeader = $2
- $2.Text = @\n${FileName}\n \nAuthor:\n ${AuthorName} <${AuthorEmail}>\n\nCopyright (c) ${Year} ${CopyrightHolder}\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the "Software"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.
- $2.IncludeInNewFiles = True
- $0.TextStylePolicy = $3
- $3.FileWidth = 120
- $3.TabWidth = 4
- $3.inheritsSet = Mono
- $3.inheritsScope = text/plain
- $0.VersionControlPolicy = $4
- $4.inheritsSet = Mono
- $0.ChangeLogPolicy = $5
- $5.UpdateMode = None
- $5.VcsIntegration = None
- $5.inheritsSet = Mono
- EndGlobalSection
-EndGlobal
diff --git a/extras/AspNetEdit/AssemblyInfo.cs b/extras/AspNetEdit/AssemblyInfo.cs
deleted file mode 100644
index 0233cb389d..0000000000
--- a/extras/AspNetEdit/AssemblyInfo.cs
+++ /dev/null
@@ -1,9 +0,0 @@
-// Autogenerated from AspNetEdit.addin.xml
-
-using System.Reflection;
-
-[assembly: AssemblyProduct ("MonoDevelop")]
-[assembly: AssemblyTitle ("ASP.NET Visual Designer")]
-[assembly: AssemblyDescription ("Visual Designer for ASP.NET Web Forms.")]
-[assembly: AssemblyVersion ("2.6")]
-[assembly: AssemblyCopyright ("MIT X11")]
diff --git a/extras/AspNetEdit/ChangeLog b/extras/AspNetEdit/ChangeLog
deleted file mode 100644
index c755338f7a..0000000000
--- a/extras/AspNetEdit/ChangeLog
+++ /dev/null
@@ -1,661 +0,0 @@
-2010-07-12 Michael Hutchinson <mhutchinson@novell.com>
-
- * AspNetEdit.Integration/AspNetEditViewContent.cs: Track
- ProjectDomService/Parser API.
-
-2010-06-14 Lluis Sanchez Gual <lluis@novell.com>
-
- * configure: Bump MD version.
-
-2010-05-20 Lluis Sanchez Gual <lluis@novell.com>
-
- * configure: Bump MD version.
-
-2010-03-22 Lluis Sanchez Gual <lluis@novell.com>
-
- * configure:
- * AssemblyInfo.cs:
- * AspNetEdit.addin.xml: Bumped MD version.
-
-2010-03-17 Lluis Sanchez Gual <lluis@novell.com>
-
- * AspNetEdit.csproj: Flush.
-
-2010-03-17 Lluis Sanchez Gual <lluis@novell.com>
-
- * AspNetEdit.addin.xml:
- * AspNetEdit.Editor/EditorHost.cs:
- * AspNetEdit.Integration/GeckoWebBrowser.cs:
- * AspNetEdit.Integration/MonoDevelopProxy.cs:
- * AspNetEdit.Integration/AspNetEditViewContent.cs: Merged
- MD.Projects into MD.Core, and MD.Projects.Gui, MD.Core.Gui
- and MD.Components into MD.Ide.
-
-2010-03-01 Lluis Sanchez Gual <lluis@novell.com>
-
- * AspNetEdit.sln: The invariant policy can't be used anymore
- as base policy set.
-
-2009-10-30 Lluis Sanchez Gual <lluis@novell.com>
-
- * configure:
- * AssemblyInfo.cs:
- * AspNetEdit.addin.xml: Bump MD version.
-
-2009-10-07 Lluis Sanchez Gual <lluis@novell.com>
-
- * configure:
- * AssemblyInfo.cs:
- * AspNetEdit.addin.xml: Bump MD version.
-
-2009-08-26 Lluis Sanchez Gual <lluis@novell.com>
-
- * configure: We now depend on gtk# 2.12.8, Mono 2.4, and
- Mono.Addins 0.4.
-
-2009-07-28 Michael Hutchinson <mhutchinson@novell.com>
-
- * AspNetEdit.Editor.UI/PropertyGrid.cs:
- * AspNetEdit.Integration/AspNetEditViewContent.cs: Track
- PropertyGrid namespace move.
-
-2009-06-23 Michael Hutchinson <mhutchinson@novell.com>
-
- * AspNetEdit.Integration/AspNetEditViewContent.cs: Fix build.
-
-2009-06-23 Lluis Sanchez Gual <lluis@novell.com>
-
- * AspNetEdit.Integration/AspNetEditViewContent.cs: Use the new
- DesktopService instead of PlatformService.
-
-2009-05-19 Lluis Sanchez Gual <lluis@novell.com>
-
- * AspNetEdit.csproj: Flush.
-
-2009-04-15 Lluis Sanchez Gual <lluis@novell.com>
-
- * configure:
- * AssemblyInfo.cs:
- * AspNetEdit.addin.xml: Bump MD version.
-
-2009-02-26 Lluis Sanchez Gual <lluis@novell.com>
-
- * AspNetEdit.sln: Flush.
-
-2009-02-26 Lluis Sanchez Gual <lluis@novell.com>
-
- * AspNetEdit.csproj: Flush.
-
-2009-02-25 Michael Hutchinson <mhutchinson@novell.com>
-
- * AspNetEdit.sln: Set policies. Remove unused name attribute.
-
-2009-02-10 Michael Hutchinson <mhutchinson@novell.com>
-
- * AspNetEdit.Integration/MonoDevelopProxy.cs: Track API.
-
-2009/02/06 Lluis Sanchez Gual <lluis@novell.com>
-
- * AspNetEdit.sln:
- * AspNetEdit.mds:
- * AspNetEdit.csproj: Migrated to MSBuild file format.
-
-2009/02/03 Lluis Sanchez Gual <lluis@novell.com>
-
- * configure:
- * AssemblyInfo.cs:
- * AspNetEdit.addin.xml: Bump MD version.
-
-2009-01-26 Michael Hutchinson <mhutchinson@novell.com>
-
- * AspNetEdit.mdp: Flush project format changes.
-
-2009-01-16 Michael Hutchinson <mhutchinson@novell.com>
-
- * AspNetEdit.Integration/AspNetEditDisplayBinding.cs: Track API.
-
-2008-12-09 Lluis Sanchez Gual <lluis@novell.com>
-
- * AspNetEdit.mdp: Don't require a specific version of Mono.Addins.
-
-2008-12-02 Michael Hutchinson <mhutchinson@novell.com>
-
- * AssemblyInfo.cs: Add AssemblyInfo.cs files that are autogenerated from
- the addin manifests.
-
-2008-11-05 Lluis Sanchez Gual <lluis@novell.com>
-
- * configure:
- * AspNetEdit.addin.xml: Bump MD version.
-
-2008-10-23 Michael Hutchinson <mhutchinson@novell.com>
-
- * AspNetEdit.Integration/MonoDevelopProxy.cs: Track API.
-
-2008-09-26 Michael Hutchinson <mhutchinson@novell.com>
-
- * AspNetEdit.Integration/AspNetEditViewContent.cs: Track API.
-
-2008-09-17 Lluis Sanchez Gual <lluis@novell.com>
-
- * AspNetEdit.mdp: Updated projects.
-
-2008-09-12 Lluis Sanchez Gual <lluis@novell.com>
-
- * AspNetEdit.Integration/AspNetEditViewContent.cs: Track api
- changes.Track api changes.
- * AspNetEdit.Integration/MonoDevelopProxy.cs: Track api changes.
-
-2008-08-18 Lluis Sanchez Gual <lluis@novell.com>
-
- * AspNetEdit.mdp: Fix reference to Mono.TextEditor. The incorrect
- add-in version number causes problems in the makefile
- synchronization.
-
-2008-07-29 Michael Hutchinson <mhutchinson@novell.com>
-
- * AspNetEdit.Integration/AspNetEditViewContent.cs:
- * AspNetEdit.Integration/MonoDevelopProxy.cs: Port to new DOM.
-
-2008-06-25 Michael Hutchinson <mhutchinson@novell.com>
-
- * AspNetEdit.Editor.ComponentModel/WebFormReferenceManager.cs: Use
- case-insensitive type name lookups.
- * AspNetEdit.Integration/AspNetEditViewContent.cs: Fix build with M.A.
- 0.3.
- * AspNetEdit.Integration/MonoDevelopProxy.cs: Dynamically look up the
- IClass when needed, as it's a fragile handle. Improve robustness of
- identifier checking and locating the generated members in
- non-designer parts.
-
-2008-06-10 Michael Hutchinson <mhutchinson@novell.com>
-
-
-
-2008-06-04 Lluis Sanchez Gual <lluis@novell.com>
-
- * configure, AspNetEdit.addin.xml: Bump MD version.
-
-2008-05-23 Michael Hutchinson <mhutchinson@novell.com>
-
- * configure: Bump version.
- * AspNetEdit.make: Fix dist. Fix build on non-bash sh.
-
-2008-05-21 Lluis Sanchez Gual <lluis@novell.com>
-
- * AspNetEdit.mdp, AspNetEdit.Integration/MonoDevelopProxy.cs: Track api
- changes.
-
-2008-05-20 Michael Hutchinson <mhutchinson@novell.com>
-
- * AspNetEdit.Integration/EditorProcess.cs: Add addin dependency to
- remote process object.
-
-2008-05-19 Michael Hutchinson <mhutchinson@novell.com>
-
- * AspNetEdit.mdp, AspNetEdit.Integration/ToolboxProvider.cs,
- AspNetEdit.make, AspNetEdit.addin.xml: Remove unneeded toolbox
- provider.
- * AspNetEdit.Integration/AspNetEditViewContent.cs,
- AspNetEdit.Integration/MonoDevelopProxy.cs: Track message service
- API changes. Thanks to John Garrison.
-
-2008-02-26 Michael Hutchinson <mhutchinson@novell.com>
-
- * AspNetEdit.Integration/AspNetEditDisplayBinding.cs:
- * AspNetEdit.Editor.Persistence/ServerControlParsingObject.cs:
- * AspNetEdit.Editor.Persistence/DesignTimeParser.cs:
- * AspNetEdit.Editor.Persistence/ParsingObject.cs:
- Track namespace changes in MonoDevelop.Aspnet.
-
-2008-01-31 Michael Hutchinson <mhutchinson@novell.com>
-
- * AspNetEdit.mdp:
- * configure:
- * AspNetEdit.make: Get AspNetEdit building again.
-
- * AspNetEdit.Editor.UI/RootDesignerView.cs:
- * AspNetEdit.Integration/GeckoWebBrowser.cs: Copy simple code so that
- we don't have to depend on another unstable addin.
-
- * AspNetEdit.addin.xml:
- * AspNetEdit.Integration/AspNetEditViewContent.cs: Check that the
- Mozilla extension is installed,and if not, install it.
-
- * chrome/Makefile.am:
- * chrome/aspdesigner.manifest.in: Unneeded, removed.
-
-2008-01-25 Lluis Sanchez Gual <lluis@novell.com>
-
- * AspNetEdit.addin.xml: Update MD version.
-
-2008-01-25 Lluis Sanchez Gual <lluis@novell.com>
-
- * AspNetEdit.mdp: Updated.
- * AspNetEdit.addin.xml: Changed add-in category.
-
-2007-12-17 Lluis Sanchez Gual <lluis@novell.com>
-
- * configure: Updated versions to 0.18.
-
-2007-12-12 Lluis Sanchez Gual <lluis@novell.com>
-
- * AspNetEdit.addin.xml: Bump add-in versions.
-
-2007-12-05 Lluis Sanchez Gual <lluis@novell.com>
-
- * configure: Use bash to run the config scripts.
-
-2007-12-04 Lluis Sanchez Gual <lluis@novell.com>
-
- * AspNetEdit.mdp, AspNetEdit.make: Updated project files.
-
-2007-12-04 Lluis Sanchez Gual <lluis@novell.com>
-
- * AspNetEdit.mdp, configure, AspNetEdit.mds, Makefile.include, rules.make,
- Makefile.am, AspNetEdit.make, Makefile: Directory reorganization.
-
-2007-11-30 Michael Hutchinson <mhutchinson@novell.com>
-
- * AspNetEdit.mdp, AspNetEdit.Editor.UI/RootDesignerView.cs, Makefile.am:
- Depend on GeckoWebBrowser now that the MozillaControl has beeen removed
- from core.
-
-2007-11-05 Michael Hutchinson <mhutchinson@novell.com>
-
- * AspNetEdit.Integration/AspNetEditViewContent.cs,
- AspNetEdit.Integration/MonoDevelopProxy.cs: Fix build.
-
-2007-11-02 Lluis Sanchez Gual <lluis@novell.com>
-
- * AspNetEdit.Integration/MonoDevelopProxy.cs: Use RootCombine instead of
- CurrentOpenCombine when possible.
-
-2007-10-29 Lluis Sanchez Gual <lluis@novell.com>
-
- * AspNetEdit.addin.xml: Bump MD version.
-
-2007-10-23 Lluis Sanchez Gual <lluis@novell.com>
-
- * AspNetEdit.mdp: Project file names updated by change in MD path functions.
-
-2007-10-01 Raja R Harinath <rharinath@novell.com>
-
- * Makefile.am ($(ASSEMBLY)): Use $(build_resources) not $(RES).
-
-2007-09-21 Lluis Sanchez Gual <lluis@novell.com>
-
- * AspNetEdit.addin.xml: Bump MD version.
-
-2007-09-19 Michael Hutchinson <mhutchinson@novell.com>
-
- * AspNetEdit.Integration/AspNetEditViewContent.cs: Track API changes.
-
-2007-09-13 Michael Hutchinson <mhutchinson@novell.com>
-
- Move (now trivial) JSCall# library into MD SVN rather than
- distributing binary.
-
- * AspNetEdit.mdp, Makefile.am, chrome/Makefile.am: Updated.
- * AspNetEdit.JSCall/InvalidJSArgumentException.cs,
- AspNetEdit.JSCall/CommandManager.cs,
- chrome/content/aspdesigner/JSCall.js: Added.
- * libs/jscall.dll, libs/JSCall.js: Removed.
-
-2007-09-05 Michael Hutchinson <mhutchinson@novell.com>
-
- * AspNetEdit.addin.xml: Add missing dependency.
-
-2007-09-01 Michael Hutchinson <m.j.hutchinson@gmail.com>
-
- * AspNetEdit.Editor/EditorHost.cs: Fix ambiguous reference with
- System.ComponentModel.Design.EventBindingService, which is now
- implemented in Mono SVN class library.
-
-2007-08-09 Lluis Sanchez Gual <lluis@novell.com>
-
- * AspNetEdit.mdp, Makefile.am, AspNetEdit.addin.xml: Reorganized the
- extension point hierarchy. Embedded all add-in manifests as resources.
-
-2007-08-06 Michael Hutchinson <m.j.hutchinson@gmail.com>
-
- * Makefile.am: Add libs/JSCall.js to EXTRA_DIST.
-
-2007-08-02 Lluis Sanchez Gual <lluis@novell.com>
-
- * AspNetEdit.Editor/EditorHost.cs: Converted DispatchService to a static
- class.
-
-2007-07-05 Lluis Sanchez Gual <lluis@novell.com>
-
- * AspNetEdit.mdp, Makefile.am, data, data/WebControlsToolbox.xml:
- Removed unused files.
- * AspNetEdit.Integration/ToolboxProvider.cs,
- AspNetEdit.Integration/AspNetEditViewContent.cs: Track changes in
- the api.
-
-2007-06-08 Michael Hutchinson <m.j.hutchinson@gmail.com>
-
- * AspNetEdit.Integration/EditorProcess.cs,
- AspNetEdit.Integration/AspNetEditViewContent.cs: An attempt to
- handle errors more gracefully, and some attempts to handle
- document 'dirtiness' (not quite working).
-
-2007-05-13 Michael Hutchinson <m.j.hutchinson@gmail.com>
-
- * libs/jscall.dll, libs/JSCall.js: Having removed the unmanaged
- dependencies from JSCall#, we can now bundle it. Yay!
-
- * chrome/content/aspdesigner/editor.js,
- AspNetEdit.Editor.UI/RootDesignerView.cs: Track JSCall# API changes.
-
- * Makefile.am: Add libs/jscall.dll to build.
-
- * chrome/Makefile.am: Take account of new JSCALL_SCRIPT location.
-
-2007-05-11 Lluis Sanchez Gual <lluis@novell.com>
-
- * AspNetEdit.mdp: Copy the .addins.xml file to the output dir.
-
-2007-05-07 Michael Hutchinson <m.j.hutchinson@gmail.com>
-
- * AspNetEdit.Editor.Persistence/ControlPersister.cs: Special-case the
- ID attribute, as a workaround for possible issue on some Mono
- versions. Need to follow this up.
-
-2007-05-04 Lluis Sanchez Gual <lluis@novell.com>
-
- * AspNetEdit.addin.xml: Migration to Mono.Addins.
-
-2007-04-24 Lluis Sanchez Gual <lluis@novell.com>
-
- * AspNetEdit.mdp, Makefile.am: Fix build.
-
-2007-03-07 Michael Hutchinson <m.j.hutchinson@gmail.com>
-
- * AspNetEdit.Editor.Persistence/ServerControlParsingObject.cs:
- Use lowercase comparison for event prefix.
-
- * AspNetEdit.Integration/MonoDevelopProxy.cs: Ensure GUI thread safety
- for event binding.
-
-2007-03-07 Michael Hutchinson <m.j.hutchinson@gmail.com>
-
- * chrome/Makefile.am: The install tasks should depend on the files
- they're installing.
-
-2007-03-06 Michael Hutchinson <m.j.hutchinson@gmail.com>
-
- * AspNetEdit.Integration/AspNetEditViewContent.cs,
- AspNetEdit.Integration/MonoDevelopProxy.cs:
- Ensure that remoted MonoDevelopProxy object is kept available by
- overriding InitializeLifetimeService, and make sure to disconnect
- it afterwards.
-
-2007-03-06 Lluis Sanchez Gual <lluis@novell.com>
-
- * AspNetEdit.mdp: Don't local-copy references.
- * AspNetEdit.Integration/AspNetEditViewContent.cs: Implement
- ICustomPropertyPadProvider in the frame that contains the editor,
- and return the remote property grid when requested.
-
-2007-02-24 Michael Hutchinson <m.j.hutchinson@gmail.com>
-
- * AspNetEdit.Editor.UI/RootDesignerView.cs: New UpdateRender method.
- Change behaviour of JSDeserializeAndAdd. It's a one-way function now;
- JS can give just offload pasted ASP.NET code to host and forget about
- it. The C# host will take it from there.
-
- * AspNetEdit.Editor/EditorHost.cs:
- Bump some code into GUI thread so it can handle exceptions. It's less
- fragile than remoting.
- Use ToolboxDataAttribute attributes when handling toolbox items. Relies
- on improvements to Document.InsertFragment.
-
- * AspNetEdit.Editor.ComponentModel/Document.cs,
- * AspNetEdit.Editor.ComponentModel/DesignerHost.cs,
- * AspNetEdit.Editor.Persistence/ServerControlParsingObject.cs:
- Change the places in which controls are created, initialised
- and added to document.
- Document.InsertFragment now handles ASP.NET code.
-
- * AspNetEdit.Editor.Persistence/ServerControlParsingObject.cs:
- Don't allow a tag's innerText to overwrite value from property if it's
- empty.
-
- * AspNetEdit.Editor.Persistence/DesignTimeParser.cs:
- Rename ParseDocument to ProcessFragment.
-
- * AspNetEdit.Editor.Persistence/RootParsingObject.cs:
- Rename BuildObject to GetParsedContent and change signature.
-
- * AspNetEdit.Editor.ComponentModel/NameCreationService.cs:
- Make name generation case insensitive, becuase ASP.NET is.
-
- * AspNetEdit.Integration/EditorProcess.cs: Add a trace statement.
-
- * AspNetEdit.Integration/AspNetEditViewContent.cs: Remove extra "using"
-
- * chrome/content/aspdesigner/editor.js: Remove debugging alert.
-
- * Makefile.am.
- * AspNetEdit.mdp: Updated. Enable some autotools integration.
-
-2007-02-24 Michael Hutchinson <m.j.hutchinson@gmail.com>
-
- * Makefile.am: Eliminate unnecessary copy during build.
-
- * chrome/content/aspdesigner/xpcom.js,
- * chrome/content/aspdesigner/editor.js: Fixed some JS warnings.
- Fixed aspdesigner initialisation bug with Mozilla/Gecko >= 1.8, such
- as Firefox >= 1.5.
-
- * AspNetEdit.Editor.ComponentModel/NameCreationService.cs: Use
- Int.TryParse now instead of catching exceptions.
-
-2007-02-16 Lluis Sanchez Gual <lluis@novell.com>
-
- * AspNetEdit.addin.xml: Change add-in versions to 0.13.
-
-2007-02-15 Lluis Sanchez Gual <lluis@novell.com>
-
- * AspNetEdit.mdp: Updated MD project.
-
-2007-01-29 Lluis Sanchez Gual <lluis@novell.com>
-
- * AspNetEdit.Integration/AspNetEditDisplayBinding.cs,
- AspNetEdit.Integration/AspNetEditViewContent.cs: Use the new
- GetContent method instead of casting the view to the required
- interface.
-
-2007-01-18 Michael Hutchinson <m.j.hutchinson@gmail.com>
-
- * AspNetEdit.mdp
- * Makefile.am:
- * AspNetEdit.Editor.Persistence/*: Remove duplicated files by
- referencing tokeniser in AspNetAddIn.Parser.Internal. Eventually I'll
- fully unify the two parsers.
-
- * AspNetEditDisplayBinding.cs: Handle unsaved filenames.
-
-2006-11-26 Michael Hutchinson <m.j.hutchinson@gmail.com>
-
- * AspNetEdit.Integration/EditorProcess.cs:
- * AspNetEdit.Editor/EditorHost.cs: Exceptions coming through the
- EditorHost constructor aren't being passed up to EditorProcess LoadGui
- method. Not sure why, and no time to follow it up right now, but
- implemented a workaround.
-
- * AspNetEdit.Editor/EditorHost.cs: When disposing, don't
- assume that designerView was created successfully.
-
- * AspNetEdit.Integration/MonoDevelopProxy.cs: Added a way to
- access the MessageService from the out-of-process designer.
-
-
-2006-11-14 Michael Hutchinson <m.j.hutchinson@gmail.com>
-
- * data/WebControlsToolbox.xml: Default toolbox file of ASP.NET 2.0
- controls, including simple icons.
- * AspNetEdit.Integration/ToolboxProvider.cs: A new
- IToolboxDefaultProvider that loads the default controls.
-
- * AspNetEdit.mdp:
- * Makefile.am:
- * AspNetEdit.addin.xml: added files to build and AddIn
-
-2006-10-21 Michael Hutchinson <m.j.hutchinson@gmail.com>
-
- * AspNetEdit.Editor/EditorHost.cs: Invoke the assembly loading
- capability of ToolboxItemToolboxNode. Part 1 of getting custom
- controls to load.
-
-2006-10-11 Michael Hutchinson <m.j.hutchinson@gmail.com>
-
- * AspNetEdit.Editor.Persistence/ControlPersister.cs: More general
- workaround for NotImplementedExceptions in properties and events.
-
-2006-10-07 Michael Hutchinson <m.j.hutchinson@gmail.com>
-
- * AspNetEdit.Editor.Persistence/ControlPersister.cs: Hack around a
- NotImplementedException in Mono's ASP.NET 2.0. Temporary solution!
-
-2006-08-23 Michael Hutchinson <m.j.hutchinson@gmail.com>
-
- * chrome/Makefile.am: Remove JSCall.js from EXTRA_DIST.
-
-2006-08-18 Michael Hutchinson <m.j.hutchinson@gmail.com>
-
- * chrome/Makefile.am: Fixed chrome deploymnent on Mozilla 1.7.
- * chrome/README: Update to track chrome deployment changes.
-
-2006-08-17 Michael Hutchinson <m.j.hutchinson@gmail.com>
-
- * Makefile.am:
- * chrome/Makefile.am:
- * chrome/aspdesigner.manifest.in: Make crome installation work on
- FF1.5. It is most likely now broken for Mozilla < 1.8 and FF < 1.5.
-
- * Extras/AspNetEdit/chrome/chrome.manifest:
- * Extras/AspNetEdit/chrome/ChangeLog: Remove old files.
-
- * Extras/AspNetEdit/chrome/README: Update to reflect new chrome
- deployment mechanism.
-
-2006-08-05 Michael Hutchinson <m.j.hutchinson@gmail.com>
-
- * AspNetEdit.mdp:
- * Makefile.am:
- Track new files.
-
- * AspNetEdit.Editor.UI/RootDesignerView.cs:
- Give JS more time to return a document.
-
- * AspNetEdit.Integration/EditorProcess.cs:
- New object for the remoted process. This simplifies GUI thread
- handling.
-
- * AspNetEdit.Integration/AspNetEditViewContent.cs:
- Use EditorProcess instead of EditorHost.
- Create designer when doc is shown, and destroy when hidden, because
- the designer process is a heavyweight object.
- Track IToolboxConsumer interface change.
-
- * AspNetEdit.Integration/MonoDevelopProxy.cs:
- Provides remoted designer with access to methods in MD process,
- mainly for event binding.
-
- * AspNetEdit.Editor/EditorHost.cs:
- Split away from EditorProcess, and use GuiSyncObject to simplify
- threading.
- Expose lots of methods and objects.
- Add an IEventBindingService utilising MonoDevelopProxy.
-
- * AspNetEdit.Editor.ComponentModel/DesignContainer.cs:
- Prevent unnecessary generation of extra component names.
-
- * AspNetEdit.Editor.ComponentModel/Document.cs:
- * AspNetEdit.Editor.ComponentModel/DesignerHost.cs:
- Make it easier to load a document from a string rather than a stream.
-
- * AspNetEdit.Editor.ComponentModel/EventBindingService.cs:
- Use MonoDevelopProxy to make this actually work.
-
-2006-07-29 Michael Hutchinson <m.j.hutchinson@gmail.com>
-
- * AspNetEdit.Integration/*:
- * AspNetEdit.Editor/*:
- * Makefile.am:
- * AspNetEdit.mdp:
- * AspNetEdit.addin.xml:
- Import MD AspNetEdit AddIn.
-
- * AspNetEdit.Editor.UI/RootDesignerView.cs:
- Use MonoDevelop.Components.HtmlControl.MozillaControl, because it
- contains a workaround for Gecko# redraw issues with MD's docking
- library.
-
- * AspNetEdit.Editor.UI/PropertyGrid.cs:
- Track property grid widget, becuase it has moved to
- MonoDevelop.DesignerSupport.
-
- * AspNetEdit.Editor.ComponentModel/DesignContainer.cs:
- * AspNetEdit.Editor.ComponentModel/DesignerHost.cs:
- Add more debug traces.
-
-2006-07-15 Michael Hutchinson <m.j.hutchinson@gmail.com>
-
- * chrome/locale/*:
- * chrome/chrome/*:
- * chrome/Makefile.am: Restructure jar to make it work with Mozilla. Fix
- nasty bug that broke Mozilla installations. Note that this extension
- is still unlikely to work with anything newer than Mozilla 1.6.
-
-2006-06-24 Michael Hutchinson <m.j.hutchinson@gmail.com>
-
- * chrome/locale/en-US/contents.rdf
- * chrome/install.rdf
- * chrome/chrome.manifest
- * chrome/Makefile.am: Make chrome installable on Firefox, and build an
- XPI extension. Unfortunately gtkmozembed doesn't appear to load
- extensions, so we still have to install into the browser's chrome.
-
-2006-05-12 Michael Hutchinson <m.j.hutchinson@gmail.com>
-
- * AspNetEdit.Editor.ComponentModel/TypeResolutionService.cs: Don't
- error out too easily when looking up types. Also, resolve assembly-
- qualified type names.
-
-2006-04-26 Michael Hutchinson <m.j.hutchinson@gmail.com>
-
- * AspNetEdit.Editor.ComponentModel/ToolboxService.cs: Convert the
- ToolboxItem arrays properly or they become null when empty, and
- ToolboxItemCollection gets unhappy.
-
-2006-01-16 Michael Hutchinson <m.j.hutchinson@gmail.com>
-
- * AspNetEdit.Editor.ComponentModel/MenuCommandService.cs:
- * AspNetEdit.Editor.ComponentModel/WebFormPage.cs:
- * AspNetEdit.Editor.ComponentModel/Document.cs: Reduce trivial warnings.
-
- * AspNetEdit.Editor.Persistence/DesignTimeParser.cs: Reduce trivial
- warnings.
-
- * AspNetEdit.Editor.UI/RootDesignerView.cs: make exception more
- informative.
-
- * chrome/Makefile.am: find installed-chrome.txt in correct location.
-
-2005-11-28 Michael Hutchinson <m.j.hutchinson@gmail.com>
-
- * AspNetEdit.Editor.ComponentModel/Document.cs:
- * AspNetEdit.Editor.ComponentModel/DesignerHost.cs:
- Avoid duplicating controls in container when loading and unloading.
-
- * AspNetEdit.Editor.Persistence/ServerControlParsingObject.cs: Add
- child collection objects to parent control.
-
-2005-10-05 Michael Hutchinson <m.j.hutchinson@gmail.com>
-
- * chrome/Makefile.am: Added .js files from Blago's reorganisation to the
- chrome deployment.
diff --git a/extras/AspNetEdit/Makefile b/extras/AspNetEdit/Makefile
deleted file mode 100644
index 7cf839226c..0000000000
--- a/extras/AspNetEdit/Makefile
+++ /dev/null
@@ -1,72 +0,0 @@
-
-EXTRA_DIST = AspNetEdit.make rules.make configure Makefile.include
-
-all: all-recursive
-
-top_srcdir=.
-include $(top_srcdir)/config.make
-include $(top_srcdir)/rules.make
-
-#include $(top_srcdir)/custom-hooks.make
-
-#Warning: This is an automatically generated file, do not edit!
-ifeq ($(CONFIG),DEBUG)
- SUBDIRS = .
-endif
-ifeq ($(CONFIG),RELEASE)
- SUBDIRS = .
-endif
-
-# Include project specific makefile
-include AspNetEdit.make
-
-CONFIG_MAKE=$(top_srcdir)/config.make
-
-%-recursive: $(CONFIG_MAKE)
- @set . $$MAKEFLAGS; final_exit=:; \
- case $$2 in --unix) shift ;; esac; \
- case $$2 in *=*) dk="exit 1" ;; *k*) dk=: ;; *) dk="exit 1" ;; esac; \
- make pre-$*-hook prefix=$(prefix) ; \
- for dir in $(SUBDIRS); do \
- case $$dir in \
- .) make $*-local || { final_exit="exit 1"; $$dk; };;\
- *) (cd $$dir && make $*) || { final_exit="exit 1"; $$dk; };;\
- esac \
- done; \
- make post-$*-hook prefix=$(prefix) ; \
- $$final_exit
-
-$(CONFIG_MAKE):
- echo "You must run configure first"
- exit 1
-
-clean: clean-recursive
-install: install-recursive
-uninstall: uninstall-recursive
-
-dist: $(CONFIG_MAKE)
- rm -rf $(PACKAGE)-$(VERSION)
- mkdir $(PACKAGE)-$(VERSION)
- make pre-dist-hook distdir=$$distdir
- for dir in $(SUBDIRS); do \
- pkgdir=`pwd`/$(PACKAGE)-$(VERSION); \
- mkdir $$pkgdir/$$dir || true; \
- case $$dir in \
- .) make dist-local distdir=$$pkgdir || exit 1;; \
- *) (cd $$dir; make dist-local distdir=$$pkgdir/$$dir) || exit 1;; \
- esac \
- done
- (make dist-local distdir=$(PACKAGE)-$(VERSION))
- make post-dist-hook distsir=$$distdir
- tar czvf $(PACKAGE)-$(VERSION).tar.gz $(PACKAGE)-$(VERSION)
- rm -rf $(PACKAGE)-$(VERSION)
- @echo "=========================================="
- @echo "$(PACKAGE)-$(VERSION) has been packaged > $(PACKAGE)-$(VERSION).tar.gz"
- @echo "=========================================="
-
-distcheck: dist
- (mkdir test; cd test; \
- tar xzvf ../$(PACKAGE)-$(VERSION).tar.gz; cd $(PACKAGE)-$(VERSION); \
- ./configure --prefix=$$(cd `pwd`/..; pwd); \
- make && make install && make dist);
- rm -rf test
diff --git a/extras/AspNetEdit/Makefile.include b/extras/AspNetEdit/Makefile.include
deleted file mode 100644
index 33685c8eac..0000000000
--- a/extras/AspNetEdit/Makefile.include
+++ /dev/null
@@ -1,31 +0,0 @@
-build_sources = $(FILES) $(GENERATED_FILES)
-build_sources_embed = $(build_sources:%='$(srcdir)/%')
-
-comma__=,
-build_resx_list = $(foreach res, $(RESOURCES), $(if $(filter %.resx, $(firstword $(subst $(comma__), ,$(res)))),$(res),))
-build_others_list = $(foreach res, $(RESOURCES), $(if $(filter %.resx, $(firstword $(subst $(comma__), ,$(res)))), ,$(res)))
-build_xamlg_list = $(filter %.xaml.g.cs, $(FILES))
-
-build_resx_files = $(foreach res, $(build_resx_list), $(firstword $(subst $(comma__), ,$(res))))
-build_resx_resources = $(build_resx_files:.resx=.resources)
-build_resx_resources_hack = $(subst .resx,.resources, $(build_resx_list))
-build_resx_resources_embed = $(build_resx_resources_hack:%='-resource:%')
-
-build_others_files = $(foreach res, $(build_others_list), $(firstword $(subst $(comma__), ,$(res))))
-build_others_resources = $(build_others_files)
-build_others_resources_embed = $(build_others_list:%='-resource:$(srcdir)/%')
-
-build_resources = $(build_resx_resources) $(build_others_resources)
-build_resources_embed = $(build_resx_resources_embed) $(build_others_resources_embed)
-
-build_references_ref = $(foreach ref, $(REFERENCES), $(if $(filter -pkg:%, $(ref)), $(ref), $(if $(filter -r:%, $(ref)), $(ref), -r:$(ref))))
-build_references_ref += $(foreach ref, $(DLL_REFERENCES), -r:$(ref))
-build_references_ref += $(foreach ref, $(PROJECT_REFERENCES), -r:$(ref))
-
-EXTRA_DIST += $(build_sources) $(build_resx_files) $(build_others_files) $(ASSEMBLY_WRAPPER_IN) $(EXTRAS) $(DATA_FILES)
-CLEANFILES = $(ASSEMBLY) $(ASSEMBLY).mdb $(BINARIES) $(build_resx_resources)
-DISTCLEANFILES = $(GENERATED_FILES) $(pc_files) $(BUILD_DIR)/*
-
-pkglib_SCRIPTS = $(ASSEMBLY)
-bin_SCRIPTS = $(BINARIES)
-
diff --git a/extras/AspNetEdit/chrome/README b/extras/AspNetEdit/chrome/README
deleted file mode 100644
index 27b1bd2f05..0000000000
--- a/extras/AspNetEdit/chrome/README
+++ /dev/null
@@ -1,42 +0,0 @@
-INSTALLATION
-============
-The addin has been packaged into a single file, aspdesigner.jar. This must be
-registered as Mozilla chrome in order to get the privileges it requires.
-
-On Firefox 1.5 or Mozilla 1.8 or greater, an aspdesigner.manifest file should
-be placed in $MOZILLA_HOME/chrome/. this should contain lines similar to the
-following:
- content aspdesigner jar:$ABSOLUTE_PATH_TO_JAR/aspdesigner.jar!/content/aspdesigner/
- locale aspdesigner en-US jar:$ABSOLUTE_PATH_TO_JAR/aspdesigner.jar!/locale/en-US/aspdesigner/
-where $ABSOLUTE_PATH_TO_JAR is the absolute path of the aspdesigner.jar file.
-
-On Mozilla 1.7 or FF 1.0, .manifest files are not used. Instead, the file
-$MOZILLA_HOME/chrome/installed-chrome.txt file must be edited, and the
-following lines added:
- content,install,url,jar:resource:/chrome/aspdesigner.jar!/content/aspdesigner/
- locale,install,url,jar:resource:/chrome/aspdesigner.jar/locale/en-US/aspdesigner/
-In addition, the aspdesigner.jar file must be placed in $MOZILLA_HOME/chrome/
-
-Once the chrome has been installed, the extention will be available through the
-URL chrome://aspdesigner/content/
-
-
-NOTES
-=====
-* The addin has a severe bug when used with Firefox 1.5. For some reason it
- becomes re-initialised, and this causes the ASP.NET controls to become
- unselectable. Other editing is still possible.
-
-* The installation instructions for installed-chrome.txt have not been tested.
-
-
-EDITOR COMMANDS
-===============
-This document describes the editor commands:
-http://lxr.mozilla.org/seamonkey/source/editor/docs/Editor_Embedding_Guide.html
-
-Currently commands with parameters are NOT supported. This is going to change soon.
-
-INTERFACE
-===============
-
diff --git a/extras/AspNetEdit/chrome/content/aspdesigner/JSCall.js b/extras/AspNetEdit/chrome/content/aspdesigner/JSCall.js
deleted file mode 100644
index 3ca3238e29..0000000000
--- a/extras/AspNetEdit/chrome/content/aspdesigner/JSCall.js
+++ /dev/null
@@ -1,45 +0,0 @@
- /*
- * JSCall.js - The JS side of the JSCall Gecko#/C# glue layer
- *
- * Authors:
- * Michael Hutchinson <m.j.hutchinson@gmail.com>
- *
- * Copyright (C) 2005-2007 Michael Hutchinson
- *
- * This sourcecode is licenced under The MIT License:
- *
- * Permission is hereby granted, free of charge, to any person obtaining
- * a copy of this software and associated documentation files (the
- * "Software"), to deal in the Software without restriction, including
- * without limitation the rights to use, copy, modify, merge, publish,
- * distribute, sublicense, and/or sell copies of the Software, and to permit
- * persons to whom the Software is furnished to do so, subject to the
- * following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
- * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
- * NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
- * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
- * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
- * USE OR OTHER DEALINGS IN THE SOFTWARE.
- */
-
-
-function JSCallPlaceClrCall(fn, returnTo, args) {
- var delimiter = unescape ("%ea");
-
- var str = "JSCall" + delimiter + fn + delimiter + returnTo + delimiter;
-
- if (args && args.length > 0)
- {
- str += args.join(delimiter);
- }
-
- var oldTitle = document.title;
- document.title = str;
- document.title = oldTitle;
-}
diff --git a/extras/AspNetEdit/chrome/content/aspdesigner/aspdesigner.xul b/extras/AspNetEdit/chrome/content/aspdesigner/aspdesigner.xul
deleted file mode 100644
index 3d3f6d29c4..0000000000
--- a/extras/AspNetEdit/chrome/content/aspdesigner/aspdesigner.xul
+++ /dev/null
@@ -1,30 +0,0 @@
-<?xml version="1.0" ?>
-<?xml-stylesheet href="chrome://aspdesigner/skin/" type="text/css"?>
-
-<!DOCTYPE window>
-<window style = "height: 100%; width: 100%;"
- xmlns = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
- xmlns:html = "http://www.w3.org/1999/xhtml"
- onload = "aspNetEditor_initialize();">
-
-<script type="application/x-javascript" src="chrome://aspdesigner/content/xpcom.js"/>
-<script type="application/x-javascript" src="chrome://aspdesigner/content/constants.js"/>
-<script type="application/x-javascript" src="chrome://aspdesigner/content/clipboard.js"/>
-<script type="application/x-javascript" src="chrome://aspdesigner/content/editor.js"/>
-<script type="application/x-javascript" src="chrome://aspdesigner/content/JSCall.js"/>
-
-<hbox flex="4">
- <vbox flex="15">
- <editor editortype="html" type="content-primary" id="aspeditor"
- context="editorContentContext" flex="1"/>
- </vbox>
-</hbox>
-
-<commandset id="clipboard"
- commandupdater="true"
- events="clipboard"
- oncommandupdate="handleClipboardUpdate ();"/>
-</window>
-
-
-
diff --git a/extras/AspNetEdit/chrome/content/aspdesigner/clipboard.js b/extras/AspNetEdit/chrome/content/aspdesigner/clipboard.js
deleted file mode 100644
index 8b99970df3..0000000000
--- a/extras/AspNetEdit/chrome/content/aspdesigner/clipboard.js
+++ /dev/null
@@ -1,124 +0,0 @@
- /*
- * clipboard.js - methods for manipulating the clipboard
- *
- * Authors:
- * Blagovest Dachev <blago@dachev.com>
- *
- * Copyright (C) 2005 Blagovest Dachev
- *
- * This sourcecode is licenced under The MIT License:
- *
- * Permission is hereby granted, free of charge, to any person obtaining
- * a copy of this software and associated documentation files (the
- * "Software"), to deal in the Software without restriction, including
- * without limitation the rights to use, copy, modify, merge, publish,
- * distribute, sublicense, and/or sell copies of the Software, and to permit
- * persons to whom the Software is furnished to do so, subject to the
- * following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
- * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
- * NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
- * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
- * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
- * USE OR OTHER DEALINGS IN THE SOFTWARE.
- */
-
-
-function clipboard(){
-
- /* ********************************************************************
- / PRIVATE VARIABLES AND FUNCTIONS
- / only priveleged methdos may view/edit/invoke
- **********************************************************************/
-
-
-
- /* ********************************************************************
- / PRIVILEGED METHODS
- / may be invoked and may access private items
- / may not be changed; may be replaced with public flavors
- **********************************************************************/
-
-
- /* ********************************************************************
- / PUBLIC PROPERTIES
- / anyone may read/write
- **********************************************************************/
-}
-
-/* ****************************************************************************
-/ PUBLIC METHODS
-/ anyone may read/write
-******************************************************************************/
-clipboard.prototype.setClipboard = function(aNewContent)
-{
- try {
- var str = Components.classes ['@mozilla.org/supports-string;1'].
- createInstance (Components.interfaces.nsISupportsString);
- str.data = aNewContent;
-
- var trans = Components.classes ['@mozilla.org/widget/transferable;1'].
- createInstance (Components.interfaces.nsITransferable);
- trans.addDataFlavor (TEXT_HTML);
- trans.addDataFlavor (TEXT_UNICODE);
- trans.setTransferData (TEXT_HTML, str, aNewContent.length * 2);
- // TODO: extract only actual text and get rid of all html
- trans.setTransferData (TEXT_UNICODE, str, aNewContent.length * 2);
-
- var clipid = Components.interfaces.nsIClipboard;
- var clip = Components.classes ['@mozilla.org/widget/clipboard;1'].
- getService (clipid);
- clip.setData (trans, null, clipid.kGlobalClipboard);
- } catch (e) {dump (e)}
-}
-
-clipboard.prototype.getClipboard = function()
-{
- try {
- var clip = Components.classes ['@mozilla.org/widget/clipboard;1'].
- getService (Components.interfaces.nsIClipboard);
- if (!clip)
- return false;
-
- var trans = Components.classes ['@mozilla.org/widget/transferable;1'].
- createInstance (Components.interfaces.nsITransferable);
- if (!trans)
- return false;
-
- trans.addDataFlavor (TEXT_HTML);
- trans.addDataFlavor (TEXT_UNICODE);
-
- clip.getData (trans, clip.kGlobalClipboard);
-
- var dataObj = new Object();
- var bestFlavor = new Object();
- var len = new Object();
- trans.getAnyTransferData (bestFlavor, dataObj, len);
- if (bestFlavor.value == TEXT_HTML ||
- bestFlavor.value == TEXT_UNICODE) {
- if ( dataObj )
- dataObj = dataObj.value.
- QueryInterface (Components.interfaces.nsISupportsString);
- if ( dataObj ) {
- var id = dataObj.data.substring (0, len.value / 2);
- }
- }
- return id;
- } catch (e) {dump (e)}
-}
-
-/* ****************************************************************************
-/ PROTOTYOPE PROERTIES
-/ anyone may read/write (but may be overridden)
-******************************************************************************/
-
-
-/* ****************************************************************************
-/ STATIC PROPERTIES
-/ anyone may read/write
-******************************************************************************/
diff --git a/extras/AspNetEdit/chrome/content/aspdesigner/constants.js b/extras/AspNetEdit/chrome/content/aspdesigner/constants.js
deleted file mode 100644
index ddd76f4924..0000000000
--- a/extras/AspNetEdit/chrome/content/aspdesigner/constants.js
+++ /dev/null
@@ -1,76 +0,0 @@
- /*
- * constants.js - Global application constants
- *
- * Authors:
- * Blagovest Dachev <blago@dachev.com>
- *
- * Copyright (C) 2005 Blagovest Dachev
- *
- * This sourcecode is licenced under The MIT License:
- *
- * Permission is hereby granted, free of charge, to any person obtaining
- * a copy of this software and associated documentation files (the
- * "Software"), to deal in the Software without restriction, including
- * without limitation the rights to use, copy, modify, merge, publish,
- * distribute, sublicense, and/or sell copies of the Software, and to permit
- * persons to whom the Software is furnished to do so, subject to the
- * following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
- * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
- * NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
- * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
- * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
- * USE OR OTHER DEALINGS IN THE SOFTWARE.
- */
-
-
-const DEBUG = true;
-const ID = 'id';
-const WIDTH = 'width';
-const HEIGHT = 'height';
-const MIN_WIDTH = 'min-width';
-const MIN_HEIGHT = 'min-height';
-const DISPLAY = 'display';
-const BORDER = 'border';
-const VERTICAL_ALIGN = 'vertical-align';
-const POSITION = 'position';
-const Z_INDEX = 'z-index';
-const BORDER_CAN_DROP_COLOR = '#ee0000';
-const BORDER_CAN_DROP_THICK = '2';
-const BORDER_CAN_DROP_INVERT = false;
-const DIRECTIVE_PLACE_HOLDER_EXP = /(<directiveplaceholder.[^(><.)]+\/>)/g;
-const SCRIPT_PLACE_HOLDER_EXP = /(<scriptblockplaceholder.[^(><.)]+\/>)/g;
-const STRIP_SCRIPT_PLACE_HOLDER_EXP = /<!(?:--(<scriptblockplaceholder[\s\S]*?)--\s*)?>\s*/g;
-const CONTROL_TAG_NAME = 'aspcontrol';
-const TABLE = 'table';
-const EMPTY_CONTROL_EXP = /(<aspcontrol.[^(><.)]+><\/aspcontrol>)/g;
-const CONTROL_ID_EXP = /(<aspcontrol[\s\S]*?id=")([\D]*?)([\d]*?)(")/g;
-const BEGIN_CONTROL_TAG_EXP = /(<aspcontrol.[^(><.)]+>)/g;
-const END_CONTROL_TAG_EXP = /<\/aspcontrol>/g;
-const STRIP_CONTROL_EXP = /(<span class="ballast".*?><span.*?><div>.*?[\s\S]*?.*?<\/div><\/span><\/span>)/g;
-const APPEND_TO_CONTROL_END = '</span></span>';
-const APPEND_TO_CONTROL_BEGIN = "<span class=\"ballast\" style=\"display: block; position: relative\"><span style=\"position: absolute; display: block; z-index: -1;\">";
-const EMPTY_CONTROL_MSG = '<span style=\"color: #bb0000;\">This control has no HTML<br/>representation associated.</span>';
-const SINGLE_CLICK = 'single';
-const DOUBLE_CLICK = 'double';
-const RIGHT_CLICK = 'right';
-const OBJECT_RESIZER = Components.interfaces.nsIHTMLObjectResizer;
-const INLINE_TABLE_EDITOR = Components.interfaces.nsIHTMLInlineTableEditor;
-const TABLE_EDITOR = Components.interfaces.nsITableEditor;
-const EDITOR = Components.interfaces.nsIEditor;
-const SELECTION_PRIVATE = Components.interfaces.nsISelectionPrivate;
-const STYLE_SHEETS = Components.interfaces.nsIEditorStyleSheets;
-const EDITOR_CONTENT_STYLE = 'chrome://aspdesigner/content/editorContent.css';
-const OBJECT = 'object';
-const CUT = 'cmd_cut';
-const COPY = 'cmd_copy';
-const PASTE = 'cmd_paste';
-const UNDO = 'cmd_undo';
-const REDO = 'cmd_redo';
-const TEXT_HTML = 'text/html';
-const TEXT_UNICODE = 'text/unicode'; \ No newline at end of file
diff --git a/extras/AspNetEdit/chrome/content/aspdesigner/contents.rdf b/extras/AspNetEdit/chrome/content/aspdesigner/contents.rdf
deleted file mode 100755
index 7d9dcc6498..0000000000
--- a/extras/AspNetEdit/chrome/content/aspdesigner/contents.rdf
+++ /dev/null
@@ -1,16 +0,0 @@
-<?xml version="1.0"?>
-
-<RDF:RDF xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
- xmlns:chrome="http://www.mozilla.org/rdf/chrome#">
-
- <RDF:Seq about="urn:mozilla:package:root">
- <RDF:li resource="urn:mozilla:package:aspdesigner"/>
- </RDF:Seq>
-
- <RDF:Description about="urn:mozilla:package:aspdesigner"
- chrome:displayName="Visual ASP.NET Designer for MonoDevelop"
- chrome:author="Blagovest Dachev"
- chrome:name="aspdesigner">
- </RDF:Description>
-
-</RDF:RDF> \ No newline at end of file
diff --git a/extras/AspNetEdit/chrome/content/aspdesigner/editor.js b/extras/AspNetEdit/chrome/content/aspdesigner/editor.js
deleted file mode 100644
index 83f9abf856..0000000000
--- a/extras/AspNetEdit/chrome/content/aspdesigner/editor.js
+++ /dev/null
@@ -1,1322 +0,0 @@
- /*
- * editor.js - The asp editor object
- *
- * Authors:
- * Blagovest Dachev <blago@dachev.com>
- *
- * Copyright (C) 2005 Blagovest Dachev
- *
- * This sourcecode is licenced under The MIT License:
- *
- * Permission is hereby granted, free of charge, to any person obtaining
- * a copy of this software and associated documentation files (the
- * "Software"), to deal in the Software without restriction, including
- * without limitation the rights to use, copy, modify, merge, publish,
- * distribute, sublicense, and/or sell copies of the Software, and to permit
- * persons to whom the Software is furnished to do so, subject to the
- * following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
- * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
- * NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
- * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
- * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
- * USE OR OTHER DEALINGS IN THE SOFTWARE.
- */
-
-var editor = null;
-var host = null;
-var gDirectivePlaceholder = '';
-var clip = null;
-
-
-
-//* ___________________________________________________________________________
-// This class is responsible for communication with the host system and
-// implements part of the AspNetDesigner interface
-//_____________________________________________________________________________
-
-function aspNetHost()
-{
-
-}
-aspNetHost.prototype =
-{
- mSerializedContent : '',
- mDeserializedContent : '',
-
- initialize: function()
- {
- //tell the host we're ready for business
- JSCallPlaceClrCall ('Activate', '', '');
- },
-
- click: function(aType, aControlId)
- {
- var clickType;
-
- if(aType == SINGLE_CLICK) {
- clickType = 'Single';
- }
- else if(aType == DOUBLE_CLICK) {
- clickType = 'Double';
- }
- else if(aType == RIGHT_CLICK) {
- clickType = 'Right';
- }
-
- if(!aControlId) {
- dump (clickType +
- ' click over no control; deselecting all controls');
- }
- else {
- dump (clickType + " click over aspcontrol \"" +
- aControlId + "\"");
- }
-
- JSCallPlaceClrCall ('Click', '', new Array(clickType, aControlId));
- dump ('Outbound call to Click() ' + aControlId);
- },
-
- resizeControl: function(aControlId, aWidth, aHeight)
- {
- dump ('Outbound call to ResizeControl() id=' + aControlId +
- ', new size ' + aWidth + 'x' + aHeight);
- JSCallPlaceClrCall ('ResizeControl', '',
- new Array(aControlId, aWidth, aHeight));
- },
-
- removeControl: function (aControlId)
- {
- dump ('Outbound call to removeControl() id=' + aControlId);
- JSCallPlaceClrCall ('RemoveControl', '', new Array(aControlId));
- },
-
- serialize: function (aClipboardContent, aReturn)
- {
- // On first invocation we call the host. It then returns to
- // SerializeReturn which in turn invokes this method again
- // and sets the member var with the new clipboard content
- // ("else" block). First-invocation execution picks up after
- // the host call, and we are able to return the new content
- // (mSerializedContent) to the caller.
- if (!aReturn) {
- dump ('Outbound call to Serialize() content=' +
- aClipboardContent);
- JSCallPlaceClrCall ('Serialize', 'SerializeReturn',
- new Array(aClipboardContent));
- return this.mSerializedContent;
- }
- else {
- this.mSerializedContent = aClipboardContent;
- }
- },
-
- deserializeAndAdd: function (aClipboardContent, aReturn)
- {
- // On first invocation we call the host. It then returns to
- // SerializeReturn which in turn invokes this method again
- // and sets the member var with the new clipboard content
- // ("else" block). First-invocation execution picks up after
- // the host call, and we are able to return the new content
- // (mDeserializedContent) to the caller.
- if (!aReturn) {
- dump ('Outbound call to DeserializeAndAdd() content=' +
- aClipboardContent);
- JSCallPlaceClrCall ('DeserializeAndAdd',
- 'DeserializeAndAddReturn',
- new Array(aClipboardContent));
- return this.mDeserializedContent;
- }
- else {
- this.mDeserializedContent = aClipboardContent;
- }
- },
-
- throwException: function (location, msg)
- {
- JSCallPlaceClrCall ('ThrowException', '', new Array(location, msg));
- }
-}
-
-
-/* Directly hooking up the editor's methods as JSCall handler functions
- * means that their access to 'this' is broken so we use these
- * surrogate functions instead
- */
-
-function JSCall_SelectControl (aControlId) { aAdd = true;
- aPrimary = true;
- return editor.selectControl (aControlId, aAdd, aPrimary);
-}
-
-function JSCall_UpdateControl (aControlId, aNewDesignTimeHtml) {
- return editor.updateControl (aControlId, aNewDesignTimeHtml);
-}
-
-function JSCall_RemoveControl (aControlId) {
- return editor.removeControl (aControlId);
-}
-
-function JSCall_RenameControl (arg1, arg2) {
- return editor.renameControl (arg1, arg2);
-}
-
-function JSCall_AddControl (aControlId, aControlHtml) { return editor.addControl (aControlHtml, aControlId);
-}
-
-function JSCall_GetPage () {
- return editor.getPage ();
-}
-
-function JSCall_LoadPage (pageHtml) {
- return editor.loadPage (pageHtml);
-}
-
-function JSCall_DoCommand (command) {
- editor.doCommand (command);
- return "";
-}
-
-function JSCall_IsCommandEnabled (command) {
- return editor.isCommandEnabled (command);
-}
-
-function JSCall_InsertFragment (fragment) {
- return editor.insertFragment (fragment);
-}
-
-function JSCall_SerializeReturn (arg) {
- host.serialize (arg, true);
-}
-
-function JSCall_DeserializeAndAddReturn (arg) {
- host.deserializeAndAdd (arg, true);
-}
-
-//* ___________________________________________________________________________
-// A rather strange data structure to store current controls in the page.
-// Insertion is O(1), removal is O(n), memory usage is O(2n), but query by
-// index and id are both O(1). We have to keep track of controls on the
-// Mozilla side, so it's easier to handle special cases like undo() that
-// restores a deleted control
-// TODO: store deleted controls' html (maybe more) in a deleted controls array.
-// This will help reinstating controls on the host side.
-// TODO: keep a counter of the undo redo operation that involve control
-// deletion and insertion and peg it to the editor's counter
-// !!! Do we really need it?
-//_____________________________________________________________________________
-var controlTable = {
- hash : new Array (),
- array : new Array (),
- length : 0,
-
- add: function(aControlId, aControlRef)
- {
- if(this.hash [aControlId]) {
- dump ('Panic: atempt to add an already existing control with id=' +
- aControlId +
- '. Remove first.');
- }
- else {
- this.hash [aControlId] = aControlRef;
- this.array.push (aControlRef);
- this.length++;
- }
- },
-
- remove: function(aControlId)
- {
- if(this.hash [aControlId]) {
- var i = 0;
- while(this.array [i] != this.hash[aControlId]) {
- i++;
- }
- this.array.splice (i, 1);
- this.hash [aControlId] = null;
- this.length--;
- }
- else {
- dump ('Panic: atempt to remove control with unexisting id=' +
- aControlId);
- }
- },
-
- update: function(aControlId, aControlRef)
- {
- this.remove (aControlId);
- this.add (aControlId, aControlRef);
- },
-
- getById: function(aControlId)
- {
- return this.hash [aControlId];
- },
-
- getByIndex: function(aIndex)
- {
- return this.array [aIndex];
- },
-
- getCount: function()
- {
- return this.length;
- }
-}
-
-//* ___________________________________________________________________________
-// The editor class and initialization
-//_____________________________________________________________________________
-function aspNetEditor_initialize()
-{
- //host XUL doc's onload event fires twice for some reason
- if (editor != null)
- return;
-
- dump ("Initialising...");
- editor = new aspNetEditor ();
- dump ("\tCreated editor, initialising...");
- editor.initialize ();
- dump ("\tEditor initialised, creating host...");
- host = new aspNetHost ();
- dump ("\tHost created, initialising...");
- host.initialize ();
- dump ("\tHost initialised, creating clipboard...");
- clip = new clipboard ();
- dump ("\tClipboard created.");
- dump ("Initialised.");
-}
-
-function aspNetEditor()
-{
-
-}
-
-aspNetEditor.prototype =
-{
- mNsIHtmlEditor : null,
- mNsIEditor : null,
- mNsIHtmlObjectResizer : null,
- mNsIHTMLInlineTableEditor : null,
- mNsIEditorStyleSheets : null,
- mNsICommandManager : null,
-
- mEditorElement : null,
- mEditorWindow : null,
- mDropInElement : null,
- mControlTable : null,
- mLastDeletedControls : null,
- mLastSelectedControls : null,
- mCancelClick : false,
- mInResize : false,
- mInCommandExec : false,
- mInUpdate : false,
- mInDrag : false,
-
- mLastClipboardUpdateCommand : '',
-
- initialize: function()
- {
- this.mEditorElement = document.getElementById ('aspeditor');
- this.mEditorElement.makeEditable ('html', false);
-
- this.mEditorWindow = this.mEditorElement.contentWindow;
- this.mNsIHtmlEditor =
- this.mEditorElement.getHTMLEditor(this.mEditorWindow);
- this.mNsICommandManager =
- this.mEditorElement.commandManager;
- this.mNsIEditor =
- this.mNsIHtmlEditor.QueryInterface(EDITOR);
- this.mNsIHTMLInlineTableEditor =
- this.mNsIHtmlEditor.QueryInterface(INLINE_TABLE_EDITOR);
- this.mNsIHtmlObjectResizer =
- this.mNsIHtmlEditor.QueryInterface(OBJECT_RESIZER);
-
- var selectionPrivate =
- this.base.selection.QueryInterface (SELECTION_PRIVATE);
- selectionPrivate.addSelectionListener (gNsISelectionListenerImplementation);
- this.mNsIHtmlEditor.addObjectResizeEventListener (gNsIHTMLObjectResizeListenerImplementation);
- this.mNsIHtmlEditor.addEditActionListener (gNsIEditActionListenerImplementation);
- this.mNsICommandManager.addCommandObserver (gNsIObserverImplementation, 'cmd_bold');
- this.mNsICommandManager.addCommandObserver (gNsIObserverImplementation, 'cmd_italics');
- this.mNsICommandManager.addCommandObserver (gNsIObserverImplementation, 'cmd_underline');
- this.mNsICommandManager.addCommandObserver (gNsIObserverImplementation, 'cmd_indent');
- this.mNsICommandManager.addCommandObserver (gNsIObserverImplementation, 'cmd_outdent');
- // ?????????????????????????????????????????????????????????????????????????
- // Bug in Mozilla's InsertHTMLWithContext?
- //this.mNsIHtmlEditor.addInsertionListener (gNsIContentFilterImplementation);
-
- this.mLastDeletedControls = new Array();
- this.mLastSelectedControls = new Array();
- this.mControlTable = controlTable;
- },
-
- get inResize() { return this.mInResize },
- set inResize(aBool) { this.mInResize = aBool },
-
- get inUpdate() { return this.mInUpdate },
- set inUpdate(aBool) { this.mInUpdate = aBool },
-
- get dragState() { return this.mInDrag; },
- set dragState(aBool) { this.mInDrag = aBool },
-
- get inCommandExec() { return this.mInCommandExec },
- set inCommandExec(aBool) { this.mInCommandExec = aBool },
-
- get cancelClick() { return this.mCancelClick },
- set cancelClick(aBool) { this.mCancelClick = aBool },
-
- get controlCount() { return this.mControlTable.getCount (); },
- get editorWindow() { return this.mEditorWindow },
-
- get base()
- {
- var editor;
- try {
- editor = this.mEditorElement.getEditor (this.mEditorWindow);
-
- editor instanceof Components.interfaces.nsIPlaintextEditor;
- editor instanceof Components.interfaces.nsIHTMLEditor;
- } catch (e) {
- dump("Could not obtain nsIHTMLEditor: " + e);
- }
-
- return editor;
- },
-
- beginBatch: function()
- {
- //this.mNsIHtmlEditor.transactionManager.beginBatch ();
- },
-
- endBatch: function()
- {
- //this.mNsIHtmlEditor.transactionManager.endBatch ();
- },
-
- removeFromControlTable: function(aControlId)
- {
- this.mControlTable.remove (aControlId);
- },
-
- insertInControlTable: function(aControlId, aControlRef)
- {
- this.mControlTable.add (aControlId, aControlRef);
- },
-
- getControlFromTableById: function(aControlId)
- {
- return this.mControlTable.getById (aControlId);
- },
-
- getControlFromTableByIndex: function(aIndex)
- {
- return this.mControlTable.getByIndex (aIndex);
- },
-
- updateControlInTable: function(aControlId, aControlref)
- {
- this.mControlTable.update (aControlId, aControlref);
- },
-
- getControlTable: function()
- {
- return this.mControlTable;
- },
-
- addLastDeletedControl: function(aControl)
- {
- this.mLastDeletedControls.push (aControl);
- },
-
- removeLastDeletedControl: function()
- {
- return this.mLastDeletedControls.pop ();
- },
-
- nextSiblingIsControl: function()
- {
- var next = null;
- var focusNode = this.base.selection.focusNode;
- var focusOffset = this.base.selection.focusOffset;
- // Are we at the end offset of a text node?
- if(this.atEndOfTextNode ()) {
- next = focusNode.nextSibling;
- if(next && this.nodeIsControl (next))
- return next;
- }
- // If not at the end offset of a text node, focus offset is our
- // current element; use it to get next
- else {
- next = focusNode.childNodes [focusOffset];
- if(next && this.nodeIsControl (next))
- return next;
- }
- return false;
- },
-
- previousSiblingIsControl: function()
- {
- var prev = null;
- var focusNode = this.base.selection.focusNode;
- var focusOffset = this.base.selection.focusOffset;
- // Are we at the beginning offset of a text node?
- if(this.atBeginningOfTextNode ()) {
- prev = focusNode.previousSibling;
- if(prev && this.nodeIsControl (prev))
- return prev;
- }
- // If not at the beginning offset of a text node, focus offset
- // minus 1 is our current element; use it to get next
- else {
- prev = focusNode.childNodes [focusOffset - 1];
- if(prev && this.nodeIsControl (prev))
- return prev;
- }
- return false;
- },
-
- atBeginningOfTextNode: function()
- {
- if(this.base.selection.focusNode) {
- var focusNode =
- this.base.selection.focusNode;
- var focusOffset =
- this.base.selection.focusOffset;
- // If we are at offset zero of a text node
- if(focusNode.nodeType == 3 && focusOffset == 0) {
- return true;
- }
- return false;
- }
- return false;
- },
-
- atEndOfTextNode: function()
- {
- if(this.base.selection.focusNode) {
- var focusNode =
- this.base.selection.focusNode;
- var focusOffset
- = this.base.selection.focusOffset;
- // Are we in a text node?
- if (focusNode.nodeType == 3) {
- var focusNodeLength = focusNode.nodeValue.length;
- // If we are at the end offset of a text node
- if(focusNodeLength == focusOffset)
- return true;
- else
- return false;
- }
- return false;
- }
- return false;
- },
-
- nodeIsControl: function(aNode)
- {
- var name = aNode.nodeName;
- name = name.toLowerCase ();
- if(name == CONTROL_TAG_NAME)
- return true;
- return false;
- },
-
- collapseBeforeInsertion: function(aPoint)
- {
- switch(aPoint) {
- case "start":
- this.base.selection.collapseToStart ();
- break;
- case "end":
- this.base.selection.collapseToEnd ();
- break;
- }
- },
-
- transformBeforeInput: function(aHTML, aPageload)
- {
- // Give controls a default value
- var emptyControl =
- aHTML.match(EMPTY_CONTROL_EXP);
- var controlBegin = "$&" + APPEND_TO_CONTROL_BEGIN;
- controlBegin = (emptyControl) ?
- controlBegin + EMPTY_CONTROL_MSG :
- controlBegin;
-
- // Add the aux control spans and divs
- var htmlOut = aHTML.replace (BEGIN_CONTROL_TAG_EXP, controlBegin);
- htmlOut = htmlOut.replace (END_CONTROL_TAG_EXP,
- APPEND_TO_CONTROL_END + "$&");
-
- // Put comments around any script placeholders that we may have
- // in the HTML
- if (aPageload)
- htmlOut = htmlOut.replace (SCRIPT_PLACE_HOLDER_EXP,
- '<!--' + "$&" + '-->');
-
- // Save any directive placeholders that we may have in the HTML
- if (aPageload) {
- gDirectivePlaceholder =
- htmlOut.match (DIRECTIVE_PLACE_HOLDER_EXP);
- if (!gDirectivePlaceholder)
- return htmlOut;
- htmlOut =
- htmlOut.replace (DIRECTIVE_PLACE_HOLDER_EXP, '');
- }
- return (htmlOut);
- },
-
- transformBeforeOutput: function(aHTML, aPageSave)
- {
- //alert (aHTML);
- // Strip any aux spans and divs from the controls
- var htmlOut = aHTML.replace(STRIP_CONTROL_EXP, '');
-
- if (aPageSave) {
- // Add back any directive placeholders
- if(gDirectivePlaceholder) {
- htmlOut = gDirectivePlaceholder + htmlOut;
- }
-
- // Strip the comments from all script placeholders
- htmlOut = htmlOut.replace (STRIP_SCRIPT_PLACE_HOLDER_EXP,
- "$1");
- }
-
- //alert (htmlOut);
- return (htmlOut);
- },
-
- // Loading/Saving/ControlState
- loadPage: function(aHtml)
- {
- if(aHtml) {
- try {
- this.base.selectAll ();
- this.base.deleteSelection (1);
- var html = this.transformBeforeInput(aHtml, true);
- dump ("Loading page: " + html);
- this.mNsIHtmlEditor.rebuildDocumentFromSource (html);
-
- // Show caret
- if (this.base.document.forms.length > 0) {
- var firstForm =
- this.base.document.forms [0];
- this.base.selection.collapse (firstForm,
- 0);
- }
- else {
- var rootElement =
- this.mNsIHtmlEditor.rootElement;
- this.base.selection.collapse (rootElement,
- 0);
- }
-
- // All of our event listeners are added to the
- // document here
- this.base.document.addEventListener ('mousedown',
- selectFromClick,
- true);
- this.base.document.addEventListener ('click',
- detectSingleClick,
- true);
- this.base.document.addEventListener ('dblclick',
- detectDoubleClick,
- true);
- this.base.document.addEventListener ('contextmenu',
- handleContextMenu,
- true);
- this.base.document.addEventListener ('draggesture',
- handleDragStart,
- true);
- this.base.document.addEventListener ('dragdrop',
- handleDrop,
- true);
- this.base.document.addEventListener ('keypress',
- handleKeyPress,
- true);
-
- // Load editing stylesheet
- var baseEditor = this.base;
- baseEditor.QueryInterface(STYLE_SHEETS);
- baseEditor.addOverrideStyleSheet(EDITOR_CONTENT_STYLE);
- } catch (e) {host.throwException ('loadPage()', e);}
- }
- },
-
- getPage: function()
- {
- var htmlOut = this.serializePage ();
- htmlOut = this.transformBeforeOutput(htmlOut, true);
- dump (htmlOut);
- return htmlOut;
- },
-
- addControl: function(aControlHtml, aControlId)
- {
- if(aControlHtml && aControlId) {
- dump ('Will add control:' + aControlId);
- this.hideResizers ();
- var insertionPoint =
- {insertIn: null, destinationOffset: 0};
- this.findInsertionPoint (insertionPoint);
- var controlHTML =
- this.transformBeforeInput (aControlHtml, false);
-
- this.base.insertHTMLWithContext (controlHTML, '',
- '', 'text/html', null,
- insertionPoint.insertIn,
- insertionPoint.destinationOffset, false);
-
- var newControl =
- this.base.document.getElementById (aControlId);
- this.setSelectNone (newControl);
- this.selectControl (aControlId);
- dump ('Did add control:' + controlHTML);
- }
- },
-
- removeControl: function(aControlId)
- {
- var control =
- this.base.document.getElementById (aControlId);
- if(control) {
- dump ('Will remove control:' + aControlId);
- this.base.selectElement (control);
- this.base.deleteSelection (0);
- dump ('Did remove control:' + aControlId);
- }
- },
-
- updateControl: function(aControlId, aNewDesignTimeHtml)
- {
- if(aControlId && aNewDesignTimeHtml &&
- this.base.document.getElementById (aControlId)) {
- this.inUpdate = true;
- dump ('Will update control:' + aControlId);
- this.hideResizers ();
- var newDesignTimeHtml =
- this.transformBeforeInput (aNewDesignTimeHtml, false);
- try {
- var oldControl =
- this.base.document.getElementById (aControlId);
- this.collapseBeforeInsertion ("start");
- this.base.selectElement (oldControl);
- this.base.insertHTML (newDesignTimeHtml);
- dump ('Updated control ' + aControlId +
- '; newDesignTimeHtml is ' +
- newDesignTimeHtml);
- } catch (e) { }
- this.inUpdate = false;
- this.endBatch ();
- this.updateControlInTable(aControlId,
- this.base.document.getElementById (aControlId));
- dump ('Did update control:' + aControlId);
- }
- },
-
- renameControl: function(aOldControlId, aNewControlId)
- {
- var control =
- this.base.document.getElementById (aOldControlId);
- if (!aOldControlId || !aNewControlId) {
- host.throwException ('renameControl () ',
- 'Too few or no arguments');
- return;
- }
- else if (!control) {
- host.throwException ('renameControl () ',
- 'Invalid control name');
- return;
- }
- else
- control.setAttribute (ID, aNewControlId);
- },
-
- // Control selection
- selectControl: function(aControlId, aAdd, aPrimary)
- {
- // TODO: talk to Michael about selecting controls. Why do we
- // need to have multiple controls selected and what is primary?
- if (aControlId == '') {
- if(this.base.resizedObject && this.nodeIsControl (this.base.resizedObject)){
- this.hideResizers ();
- }
- dump ("Deselecting all controls");
- return;
- }
-
- dump ("Selecting control " + aControlId);
- this.clearSelection ();
- var controlRef =
- this.base.document.getElementById (aControlId);
- this.base.selectElement (controlRef);
- this.showResizers (controlRef);
- },
-
- // Misc
- // TODO: Handle commands on controls independently
- doCommand: function (aCommand)
- {
- if(aCommand != CUT)
- this.inCommandExec = true;
- if (this.mNsICommandManager.isCommandSupported (aCommand, this.mEditorWindow)) {
- switch (aCommand) {
- case 'cmd_bold':
- this.mNsICommandManager.doCommand (aCommand,
- null,
- this.mEditorWindow);
- break;
- case 'cmd_italics':
- this.mNsICommandManager.doCommand (aCommand,
- null,
- this.mEditorWindow);
- break;
- case 'cmd_underline':
- this.mNsICommandManager.doCommand (aCommand,
- null,
- this.mEditorWindow);
- break;
- case 'cmd_indent':
- this.mNsICommandManager.doCommand (aCommand,
- null,
- this.mEditorWindow);
- break;
- case 'cmd_outdent':
- this.mNsICommandManager.doCommand (aCommand,
- null,
- this.mEditorWindow);
- break;
- case 'cmd_cut':
- this.mNsICommandManager.doCommand (aCommand,
- null,
- this.mEditorWindow);
- this.mLastClipboardUpdateCommand = CUT;
- break;
- case 'cmd_copy':
- this.mNsICommandManager.doCommand (aCommand,
- null,
- this.mEditorWindow);
- this.mLastClipboardUpdateCommand = COPY;
- break;
- case 'cmd_paste':
- var focusNode = this.base.selection.focusNode;
- var control =
- this.base.getElementOrParentByTagName (CONTROL_TAG_NAME,
- focusNode);
- if(control) {
- var controlId = control.getAttribute (ID);
- this.selectControl (controlId);
- }
- this.collapseBeforeInsertion ("end");
-
- // We shouldn't paste directlly since there
- // might be ASP controls in the clipboard.
- // Get the design-time HTML with proper, new
- // control ID's from the host, then paste it
- // and restore the original clipboard content.
- var content = clip.getClipboard ();
- var newContent = host.deserializeAndAdd (content);
- //clip.setClipboard (newContent);
- //this.mNsICommandManager.doCommand (PASTE,
- //null,
- //this.mEditorWindow);
- //clip.setClipboard (content);
-
- break;
- default:
- this.mNsICommandManager.doCommand (aCommand,
- null,
- this.mEditorWindow);
- break;
- }
- }
- else
- host.throwException ('doCommand (' + aCommand + ')',
- 'Command not supported');
- dump ("Executed command: " + aCommand);
- this.inCommandExec = false;
- },
-
- isCommandEnabled: function (aCommand)
- {
- var commandManager = this.mNsICommandManager;
- if (commandManager.isCommandSupported (aCommand, this.mEditorWindow))
- if (commandManager.isCommandEnabled (aCommand, this.mEditorWindow))
- return true;
- else
- return false;
- else
- host.throwException ('doCommand (' + aCommand + ')',
- 'Command not supported');
-
- },
-
- insertFragment: function (aHtml)
- {
- if(aHtml) {
- this.hideResizers ();
- var insertionPoint =
- {insertIn: null, destinationOffset: 0};
- this.findInsertionPoint (insertionPoint);
- var HTML = this.transformBeforeInput (aHtml, false);
-
- this.base.insertHTMLWithContext (HTML, '', '',
- 'text/html', null, insertionPoint.insertIn,
- insertionPoint.destinationOffset, false);
- }
- },
-
- getChildControls: function (aNode, aRetArray)
- {
- var i = 0;
- while(aNode.childNodes [i]) {
- if(this.nodeIsControl (aNode.childNodes [i]))
- aRetArray.arr.push (aNode.childNodes [i]);
- this.getChildControls (aNode.childNodes [i], aRetArray);
- i++;
- }
- },
-
- isControlChildOf: function (aNode, aControl)
- {
- var i = 0;
- var ret = false;
- while(aNode.childNodes [i]) {
- if(aNode.childNodes [i] == aControl) {
- ret = true;
- break;
- }
- else {
- ret = this.isControlChildOf (aNode.childNodes [i],
- aControl);
- if(ret)
- break;
- }
- i++;
- }
- return ret;
- },
-
- findInsertionPoint: function(aInsertionPoint)
- {
- aInsertionPoint.insertIn = null;
- aInsertionPoint.destinationOffset = 0;
- var selectedElement = this.base.getSelectedElement ('');
- var focusNode = this.base.selection.focusNode;
- var parentControl =
- this.base.getElementOrParentByTagName (CONTROL_TAG_NAME,
- focusNode);
-
- // If we have a single-element selection and the element
- // happens to be a control
- if (selectedElement &&
- this.nodeIsControl (selectedElement)) {
- aInsertionPoint.insertIn = selectedElement.parentNode;
- while(selectedElement != aInsertionPoint.insertIn.childNodes [aInsertionPoint.destinationOffset])
- aInsertionPoint.destinationOffset++;
- aInsertionPoint.destinationOffset++;
- }
-
- else if(focusNode) {
- // If selection is somewhere inside a control
- if(parentControl){
- aInsertionPoint.insertIn = parentControl.parentNode;
- while(parentControl != aInsertionPoint.insertIn.childNodes [aInsertionPoint.destinationOffset])
- aInsertionPoint.destinationOffset++;
- aInsertionPoint.destinationOffset++;
- }
- }
- },
-
- clearSelection: function()
- {
- this.collapseBeforeInsertion ("end");
- },
-
- getSelectAll: function(aElement)
- {
- var style = aElement.style;
- if(style.getPropertyValue ('MozUserSelect') == 'all' ||
- style.getPropertyValue ('-moz-user-select') == 'all')
- return true;
- return false;
- },
-
- getSelectNone: function(aElement)
- {
- var style = aElement.style;
- if(style.getPropertyValue ('MozUserSelect') == 'none' ||
- style.getPropertyValue ('-moz-user-select') == 'none')
- return true;
- return false;
- },
-
- setSelectAll: function(aElement)
- {
- aElement.style.setProperty ('MozUserSelect', 'all', '');
- aElement.style.setProperty ('-moz-user-select', 'all', '');
- },
-
- setSelectNone: function(aElement)
- {
- aElement.style.setProperty ('MozUserSelect', 'none', '');
- aElement.style.setProperty ('-moz-user-select', 'none', '');
- },
-
- serializePage: function()
- {
- var xml =
- this.base.outputToString (this.base.contentsMIMEType,
- 256);
- return xml;
- },
-
- hideTableUI: function()
- {
- this.mNsIHTMLInlineTableEditor.hideInlineTableEditingUI ();
- },
-
- showResizers: function(aElement)
- {
- this.mNsIHtmlEditor.hideResizers ();
- if(this.nodeIsControl (aElement) &&
- aElement.getAttribute ('-md-can-resize') == 'true') {
- this.mNsIHtmlEditor.showResizers (aElement);
- }
- },
-
- hideResizers: function()
- {
- this.mNsIHtmlEditor.hideResizers ();
- },
-
- getSelectedControl: function()
- {
- if(this.mNsIHtmlEditor) {
- var selectedElement =
- this.base.getSelectedElement ('');
- if(selectedElement && this.nodeIsControl (selectedElement))
- return selectedElement;
- else
- return null;
- }
- },
-
- getElementOrParentByAttribute: function(aNode, aAttribute, aValue) {
- // Change the entire function to the (probably) more efficient
- // XULElement.getElementsByAttribute ( attrib , value )
- // It will return all the children with the specified
- // attribute
- if(aNode.nodeType == 1)
- var attrbiute = aNode.getAttribute (aAttribute);
- if(attrbiute == aValue)
- return aNode;
-
- aNode = aNode.parentNode;
- while(aNode) {
- if(aNode.nodeType == 1)
- attrbiute = aNode.getAttribute (aAttribute);
- if(attrbiute == aValue)
- return aNode;
- aNode = aNode.parent;
- }
- return null;
- },
-
- clone: function (aObj)
- {
- var clone = {};
- for (var i in aObj) {
- if(typeof aObj [i] == OBJECT)
- clone [i] = this.clone (aObj [i]);
- else
- clone [i] = aObj [i];
- }
- return clone;
- },
-
- cancelTableOverrideStyle: function (aTables)
- {
- var table;
- while((table = aTables.nextNode ()) != null) {
- table.setAttribute ('cancelUI', 'true');
- }
- }
-};
-
-//* ___________________________________________________________________________
-// Event handlers
-//_____________________________________________________________________________
-function selectFromClick(aEvent)
-{
- control = editor.base.getElementOrParentByTagName (CONTROL_TAG_NAME,
- aEvent.target);
-
- if(control) {
- if(editor.getSelectAll (control)) {
- editor.dragState = false;
- editor.setSelectNone (control);
- }
-
- if(editor.base.resizedObject) {
- editor.hideResizers ();
- editor.hideTableUI ();
- }
- var controlId = control.getAttribute (ID);
- editor.selectControl (controlId);
- }
-}
-
-function handleDragStart(aEvent) {
- // If we are resizing, do nothing - false call
- if(editor.inResize)
- return;
-
- // Controls are "-moz-user-select: none" by default. Here we switch to
- // "-moz-user-select: all" in preparation for insertFromDrop(). We
- // revert back to -moz-user-select: none later in DidInsertNode(),
- // which is the real end of a Drag&Drop operation
- editor.hideResizers ();
- var selectedControl = editor.getSelectedControl ();
- var controls =
- editor.base.document.getElementsByTagName (CONTROL_TAG_NAME);
- if(controls.length > 0) {
- var i = 0;
- while(controls [i]) {
- if(selectedControl != controls [i])
- editor.setSelectAll (controls [i]);
- i++;
- }
- }
-
- editor.dragState = true;
- dump ('Begin drag.');
-}
-
-function handleDrop(aEvent) {
- try {
- //var tmp = aEvent.
- //var evt = document.createEvent('UIEvents');
- //evt.initMouseEvent("dragdrop", true, true, editor.editorWindow,
- //1, 10, 50, 10, 50, false, false, false, false, 0, editor.base.rootElement);
- aEvent.stopPropagation ();
- aEvent.preventDefault ();
- editor.base.insertFromDrop (aEvent);
- editor.base.setShouldTxnSetSelection (false);
- } catch (e) {alert (e)}
-}
-
-function handleSingleClick(aButton, aTarget) {
- if(!editor.cancelClick) {
- control =
- editor.base.getElementOrParentByTagName (CONTROL_TAG_NAME,
- aTarget);
- var controlId =
- (control) ? control.getAttribute (ID) : '';
-
- switch (aButton) {
- case 0:
- host.click (SINGLE_CLICK, controlId);
- break;
- case 2:
- host.click (RIGHT_CLICK, controlId);
- break;
- }
- }
-}
-
-function detectSingleClick(aEvent)
-{
- editor.cancelClick = false;
- var button = aEvent.button;
- var target = aEvent.target;
- setTimeout (function() { handleSingleClick(button, target); }, 100);
-}
-
-function detectDoubleClick(aEvent)
-{
- editor.cancelClick = true;
- control = editor.base.getElementOrParentByTagName (CONTROL_TAG_NAME,
- aEvent.target);
- var controlId =
- (control) ? control.getAttribute (ID) : '';
-
-
- host.click (DOUBLE_CLICK, controlId);
- //alert (editor.getPage ());
-}
-
-function handleContextMenu(aEvent)
-{
- aEvent.stopPropagation ();
- aEvent.preventDefault ();
-}
-
-// We have to detect cut, copy and paste, for they may involve controls
-// If we copy a control and then past it, the host must be notified so
-// it can create a new instance and assign the pasted control a new id
-// TODO: Make those key really work
-function handleKeyPress(aEvent) {
- // Handle cut
- if(aEvent.ctrlKey && aEvent.charCode == 120) {
- editor.doCommand (CUT);
- aEvent.stopPropagation ();
- aEvent.preventDefault ();
- }
- // Handle copy
- else if(aEvent.ctrlKey && aEvent.charCode == 99) {
- editor.doCommand (COPY);
- aEvent.stopPropagation ();
- aEvent.preventDefault ();
- }
- // Handle paste
- else if(aEvent.ctrlKey && aEvent.charCode == 118) {
- editor.doCommand (PASTE);
- aEvent.stopPropagation ();
- aEvent.preventDefault ();
- }
- // Handle delete
- else if(aEvent.keyCode == aEvent.DOM_VK_DELETE) {
- var control = editor.getSelectedControl ();
- var resizedObject = editor.base.resizedObject;
-
- // Special case: if we have resizers shown, but no single control
- // is selected we should reselect the control with resizers so it
- // gets deleted entirely. We get here when selecting ajasent
- // controls with the arrow keys
- //if(resizedObject && !control && editor.nextSiblingIsControl ()) {
- //editor.selectControl(editor.nextSiblingIsControl ());
- //editor.hideResizers ();
- //editor.setSelectAll (editor.getResizedObject ());
- //}
-
- // If we have a single element selected and it happens to be a
- // control
- if(control) {
- editor.hideResizers ();
- editor.setSelectAll (control);
- }
-
- // If selection is collapsed, caret is shown, and it's at the
- // of a text node
- else if (editor.atEndOfTextNode ()) {
- // If next sibling is a control, we should select it so
- // it gets entirely deleted
- if(editor.nextSiblingIsControl ()) {
- var focusNode =
- editor.base.selection.focusNode;
- control = focusNode.nextSibling;
- var controlId = control.getAttribute (ID);
- editor.selectControl (controlId);
- editor.hideResizers ();
- }
- }
- }
- // Backspace
- else if (aEvent.keyCode == aEvent.DOM_VK_BACK_SPACE) {
- var control = editor.getSelectedControl ();
- var resizedObject = editor.base.resizedObject;
-
- // Special case: if we have resizers shown, but no single control
- // is selected we should reselect the control with resizers so it
- // gets deleted entirely. We get here when selecting ajasent
- // controls with the arrow keys
- if(resizedObject && !control) {
- editor.selectControl(resizedObject.getAttribute(ID));
- editor.hideResizers ();
- editor.setSelectAll (resizedObject);
- }
-
- // If we have a single element selected and it happens to be a
- // control
- else if(control) {
- editor.hideResizers ();
- editor.setSelectAll (control);
- }
-
- // If selection is collapsed, caret is shown, and it's at the
- // beginning of a text node
- else if (editor.atBeginningOfTextNode ()) {
- // If previous sibling is a control, we should select
- // it so it gets entirely deleted
- if(editor.previousSiblingIsControl ()) {
- var focusNode =
- editor.base.selection.focusNode;
- var control = focusNode.previousSibling;
- var controlId = control.getAttribute (ID);
- editor.selectControl (controlId);
- editor.hideResizers ();
- }
- }
- }
- // Arrow up
- else if(aEvent.keyCode == aEvent.DOM_VK_UP) {
-
- }
- // Arrow down
- else if(aEvent.keyCode == aEvent.DOM_VK_DOWN) {
-
- }
- // Arrow left
- else if(aEvent.keyCode == aEvent.DOM_VK_LEFT) {
- var control = editor.previousSiblingIsControl ();
- var controlId = '';
- // If previous sibling is control and we don't have a single
- // control selected (in which case we only need to collapse and
- // show caret)
- if(control && !editor.getSelectedControl ()) {
- controlId = control.getAttribute (ID);
- editor.selectControl (controlId);
- // Hack. We should change the way selection works
- host.click (SINGLE_CLICK, controlId);
- aEvent.stopPropagation ();
- aEvent.preventDefault ();
- }
- }
- // Arrow right
- else if(aEvent.keyCode == aEvent.DOM_VK_RIGHT) {
- var control = editor.nextSiblingIsControl ();
- var controlId = '';
- // If next sibling is control and we don't have a single control
- // selected (in which case we only need to collapse and show
- // caret)
- if(control && !editor.getSelectedControl ()) {
- controlId = control.getAttribute (ID);
- editor.selectControl (controlId);
- // Hack. We should change the way selection works
- host.click (SINGLE_CLICK, controlId);
- aEvent.stopPropagation ();
- aEvent.preventDefault ();
- }
- }
-}
-
-function handleClipboardUpdate() {
- var content = clip.getClipboard ();
- content = editor.transformBeforeOutput (content, false);
-
- alert (clip.getClipboard ());
- var newContent = host.serialize (content);
- clip.setClipboard (newContent);
- alert (clip.getClipboard ());
-}
-
-// Define a NodeFilter function to accept only <table> elements
-function tableFilter(aNode) {
- if (aNode.tagName.toLowerCase () == TABLE)
- return NodeFilter.FILTER_ACCEPT;
- else
- return NodeFilter.FILTER_SKIP;
-}
-
-function dump(aTxtAppend) {
- if(DEBUG) {
- JSCallPlaceClrCall ('DebugStatement', '', new Array(aTxtAppend));
- }
-}
diff --git a/extras/AspNetEdit/chrome/content/aspdesigner/editorContent.css b/extras/AspNetEdit/chrome/content/aspdesigner/editorContent.css
deleted file mode 100644
index c4aea2ec70..0000000000
--- a/extras/AspNetEdit/chrome/content/aspdesigner/editorContent.css
+++ /dev/null
@@ -1,96 +0,0 @@
- /*
- * editorContent.css - Some style~="border"s rules for elements in edit mode
- * Original Code:
- * Daniel Glazman <glazman@netscape.com>
- *
- * Authors:
- * Blagovest Dachev <blago@dachev.com>
- *
- * This sourcecode is licenced under The MIT License:
- *
- * Permission is hereby granted, free of charge, to any person obtaining
- * a copy of this software and associated documentation files (the
- * "Software"), to deal in the Software without restriction, including
- * without limitation the rights to use, copy, modify, merge, publish,
- * distribute, sublicense, and/or sell copies of the Software, and to permit
- * persons to whom the Software is furnished to do so, subject to the
- * following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
- * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
- * NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
- * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
- * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
- * USE OR OTHER DEALINGS IN THE SOFTWARE.
- */
-
-a[name] {
- min-height : 17px; margin-left: 2px; margin-top: 2px;
- padding-left : 20px;
- background-image : url(chrome://editor/content/images/tag-anchor.gif);
- background-repeat : no-repeat;
- background-position : top left;
-}
-
-/* Force border display for empty cells
- and tables with 0 border
-*/
-table {
- empty-cells : show;
-}
-
-/* give a red dotted border to tables and cells with no border
- otherwise they are invisible
-*/
- table[empty-cells]:not([cancelUI]),
- table[border="0"]:not([cancelUI]),
- /* next two selectors on line below for the case where tbody is omitted */
- table[border="0"]:not([cancelUI]) > tr > td, table[border="0"]:not([cancelUI]) > tr > th,
- table[border="0"]:not([cancelUI]) > thead > tr > td, table[border="0"]:not([cancelUI]) > tbody > tr > td, table[border="0"]:not([cancelUI]) > tfoot > tr > td,
- table[border="0"]:not([cancelUI]) > thead > tr > th, table[border="0"]:not([cancelUI]) > tbody > tr > th, table[border="0"]:not([cancelUI]) > tfoot > tr > th,
- table:not([border]):not([cancelUI]),
- /* next two selectors on line below for the case where tbody is omitted */
- table:not([border]):not([cancelUI]) > tr > td, table:not([border]):not([cancelUI]) > tr > th,
- table:not([border]):not([cancelUI]) > thead > tr > td, table:not([border]):not([cancelUI]) > tbody > tr > td, table:not([border]):not([cancelUI]) > tfoot > tr > td,
- table:not([border]):not([cancelUI]) > thead > tr > th, table:not([border]):not([cancelUI]) > tbody > tr > th, table:not([border]):not([cancelUI]) > tfoot > tr > th
- {
- border : 1px dotted #d59408;
-}
-
-/* give a green dashed border to forms otherwise they are invisible
-*/
-form {
- border : 2px dashed #9c9d83;
- min-height : 20px;
-}
-/* give a green dotted border to labels otherwise they are invisible
-*/
-label {
- border : 1px dotted green;
-}
-
-img {
- -moz-force-broken-image-icon: 1;
-}
-/* Some <aspcontrol> properties that will persist
-*/
-aspcontrol {
- border : 1px solid #7f9db9;
- display : -moz-inline-box;
- vertical-align : text-bottom;
- z-index : 1;
- position : relative;
- /*-moz-binding : url("chrome://aspdesigner/content/editor.xml#aspcontrol");*/
-}
-
-span.onionOne {
- display: block; position: relative;
-}
-
-span.onionTwo {
- position: absolute; display: block; z-index: -1;
-} \ No newline at end of file
diff --git a/extras/AspNetEdit/chrome/content/aspdesigner/xpcom.js b/extras/AspNetEdit/chrome/content/aspdesigner/xpcom.js
deleted file mode 100644
index 51fcca9a02..0000000000
--- a/extras/AspNetEdit/chrome/content/aspdesigner/xpcom.js
+++ /dev/null
@@ -1,360 +0,0 @@
- /*
- * xpcom.js - Implementations of some XPCOM interfaces
- *
- * Authors:
- * Blagovest Dachev <blago@dachev.com>
- *
- * Copyright (C) 2005 Blagovest Dachev
- *
- * This sourcecode is licenced under The MIT License:
- *
- * Permission is hereby granted, free of charge, to any person obtaining
- * a copy of this software and associated documentation files (the
- * "Software"), to deal in the Software without restriction, including
- * without limitation the rights to use, copy, modify, merge, publish,
- * distribute, sublicense, and/or sell copies of the Software, and to permit
- * persons to whom the Software is furnished to do so, subject to the
- * following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
- * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
- * NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
- * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
- * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
- * USE OR OTHER DEALINGS IN THE SOFTWARE.
- */
-
-
-
-
-//* ___________________________________________________________________________
-// Implementations of some XPCOM interfaces, to observe various editor events
-// and actions. Do not remove any of the methods entirely or Mozilla will choke
-//_____________________________________________________________________________
-// nsIObserver implementation
-var gNsIObserverImplementation = {
- // Tel the host command status has changed.
- observe: function (aSubject, aTopic, aData)
- {
- switch (aTopic) {
- case 'cmd_bold':
- break;
- case 'cmd_italics':
- break;
- case 'cmd_underline':
- break;
- case 'cmd_indent':
- break;
- case 'cmd_outdent':
- break;
- }
- }
-}
-
-// nsISelectionListener implementation
-// TODO: Redo this one, accounting for recursive calls
-var gNsISelectionListenerImplementation = {
- notifySelectionChanged: function(doc, sel, reason)
- {
- // Make sure we can't focus a control
- //TODO: make it account for md-can-drop="true" controls, which
- // should be able to recieve focus
- if(sel.isCollapsed && editor && editor.base) {
- var focusNode = sel.focusNode;
- var parentControl =
- editor.base.getElementOrParentByTagName (CONTROL_TAG_NAME,
- focusNode);
- if(parentControl) {
- editor.base.setCaretAfterElement (parentControl);
- }
- }
- }
-}
-
-// nsIEditActionListener implementation
-var gNsIEditActionListenerImplementation = {
- DidCreateNode: function(tag, node, parent, position, result)
- {
- //alert('did create node');
- },
-
- // TODO: Check if deleted node contains a control, not only if it is one
- DidDeleteNode: function(child, result)
- {
- if(!editor.inResize && !editor.dragState &&
- !editor.inUpdate && !editor.inCommandExec) {
- var control = editor.removeLastDeletedControl ();
- if(control) {
- var deletionStr = 'deleteControl(s):';
- deletionStr += ' id=' + control + ',';
- editor.removeFromControlTable (control);
- host.removeControl (control);
- dump (deletionStr +
- ' Message source: DidDeleteNode()');
- dump ('There is/are '
- + editor.controlCount
- + ' controls left in the page');
- }
- }
- },
-
- // For each element in to-be-deleted array, remove control from the control
- // table, let the host know we have deleted a control by calling the
- // respective method, and remove from to-be-deleted array.
- DidDeleteSelection: function(selection)
- {
- if(!editor.inResize && !editor.dragState &&
- !editor.inUpdate && !editor.inCommandExec) {
- var control = editor.removeLastDeletedControl ();
- if(control) {
- var deletionStr = 'Did delete control(s):';
- while(control) {
- deletionStr += ' id=' + control + ',';
- editor.removeFromControlTable (control);
- host.removeControl (control);
- control = editor.removeLastDeletedControl ();
- }
- dump (deletionStr +
- ' Message source: DidDeleteSelection()');
- dump ('There is/are ' +
- editor.controlCount +
- ' controls left in the page');
- }
- }
- },
-
- DidDeleteText: function(textNode, offset, length, result)
- {
-
- },
-
- // Make sure to check node contents for controls too. The node could be
- // a table (or any other element) with a control inside.
- DidInsertNode: function(node, parent, position, result)
- {
- var dumpStr = 'Did insert node ' + node.nodeName;
- dumpStr += (node.nodeType == 1) ?
- ', id=' + node.getAttribute(ID) :
- '';
- dump (dumpStr);
-
- // Check to see if we have inserted a new controls. We need to
- // add'em to the control table. Also update reference to all
- // existing controls
- var controls =
- editor.base.document.getElementsByTagName (CONTROL_TAG_NAME);
- if(controls.length > 0) {
- var i = 0;
- var width, height;
- while(controls [i]) {
- if(editor.getControlTable ().getById (controls [i].getAttribute (ID))) {
- editor.getControlTable ().update (controls [i].getAttribute (ID),
- controls [i]);
- dump ('Did update control(id=' +
- controls [i].getAttribute (ID) +
- ') reference in table');
- }
- else {
- editor.insertInControlTable (controls [i].getAttribute (ID),
- controls [i]);
-
- dump ('New control (id=' +
- controls [i].getAttribute (ID) +
- ') inserted');
- dump ('There is/are ' +
- editor.controlCount +
- ' controls in the page');
- }
- editor.setSelectNone (controls [i]);
- width = controls [i].getAttribute(WIDTH);
- height = controls [i].getAttribute(HEIGHT);
- controls [i].style.setProperty (MIN_WIDTH,
- width, '');
- controls [i].style.setProperty (MIN_HEIGHT,
- height, '');
-
- // Create a NodeIterator to find <table>
- // tags
- var tables =
- editor.base.document.createTreeWalker(controls [i],
- NodeFilter.SHOW_ELEMENT,
- tableFilter,
- false);
-
- // Use the iterator to loop through all
- // tables
- editor.cancelTableOverrideStyle (tables);
-
- i++;
- }
- }
-
- if(editor.dragState) {
- dump ('End drag');
- }
-
- if(editor.nodeIsControl (node) &&
- (node.nodeType == 1 || node.nodeType == 3)) {
- //editor.selectControl (node.getAttribute (ID));
- }
- if(editor.dragState)
- editor.dragState = false;
- },
-
- DidInsertText: function(textNode, offset, string, result)
- {
-
- },
-
- DidJoinNodes: function(leftNode, rightNode, parent, result)
- {
- //alert('did join nodes');
- },
-
- DidSplitNode: function(existingRightNode, offset, newLeftNode, result)
- {
- //alert('did split node');
- },
-
- WillCreateNode: function(tag, parent, position)
- {
- //alert ('Will create node');
- },
-
- WillDeleteNode: function(child)
- {
- dump ('will delete node-----------------------');
- if(!editor.inResize && !editor.dragState &&
- !editor.inUpdate && !editor.inCommandExec) {
- var deletionStr = 'Will delete control(s):';
- var i = 0;
-
- // is the node itself control?
- if(editor.nodeIsControl (child)) {
- deletionStr += ' id=' +
- child.getAttribute (ID) + ',';
- editor.addLastDeletedControl (child.getAttribute (ID));
- }
-
- // does the node contain any controls?
- var control = editor.getControlFromTableByIndex (i);
- while(control) {
- if(editor.isControlChildOf (child, control)) {
- deletionStr += ' id=' +
- control.getAttribute (ID) + ',';
- editor.addLastDeletedControl (control.getAttribute (ID));
- }
- i++;
- control = editor.getControlFromTableByIndex (i);
- }
- if(deletionStr != 'Will delete control(s):')
- dump (deletionStr +
- ' Message source: WillDeleteNode()');
- }
- },
-
- // Check if the selection to be deleted contains controls and prepare
- //for deletion. Load all to-be-deleted controls in an array, so we can
- // access them after actual deletion in order to notify the host.
- WillDeleteSelection: function(selection)
- {
- dump ('will delete selection----------context:' +
- 'inResize=' + editor.inResize + ', ' +
- 'dragState=' + editor.dragState + ', ' +
- 'inUpdate=' + editor.inUpdate + ', ' +
- 'inCommandExec=' + editor.inCommandExec);
- if(!editor.inResize && !editor.dragState &&
- !editor.inUpdate && !editor.inCommandExec) {
- var i = 0;
- var control = editor.getControlFromTableByIndex (i);
- var deletionStr = 'Will delete control(s):';
- if(control) {
- while(control) {
- if(selection.containsNode (control, true)) {
- deletionStr += ' id=' +
- control.getAttribute (ID) + ',';
- editor.addLastDeletedControl (control.getAttribute (ID));
- }
- i++;
- control = editor.getControlFromTableByIndex (i);
- }
- if(deletionStr != 'Will delete control(s):')
- dump (deletionStr +
- ' Message source: WillDeleteSelection()');
- }
- }
- },
-
- WillDeleteText: function(textNode, offset, length)
- {
-
- },
-
- WillInsertNode: function(node, parent, position)
- {
-
- },
-
- WillInsertText: function(textNode, offset, string)
- {
-
- },
-
- WillJoinNodes: function(leftNode, rightNode, parent)
- {
- //alert ('Will join node');
- },
-
- WillSplitNode: function(existingRightNode, offset)
- {
- //alert ('Will split node');
- }
-}
-
-// nsIHTMLObjectResizeListener implementation
-var gNsIHTMLObjectResizeListenerImplementation = {
- onEndResizing: function(element, oldWidth, oldHeight, newWidth, newHeight)
- {
- if(editor.nodeIsControl (element)) {
- var id = element.getAttribute (ID);
- host.resizeControl (id, newWidth, newHeight);
- }
- editor.inResize = false;
- dump ('End resize.');
- },
-
- onStartResizing: function(element)
- {
- if(editor.nodeIsControl (element)) {
- editor.beginBatch ();
- }
- editor.inResize = true;
- dump ('Begin resize.');
- }
-}
-
-// nsIContentFilter implementation
-// In future we should use this one to manage all insertion coming from
-// paste, drag&drop, insertHTML(), and page load. Currently not working.
-// Mozilla throws an INVALID_POINTER exception
-var gNsIContentFilterImplementation = {
- notifyOfInsertion: function(mimeType,
- contentSourceURL,
- sourceDocument,
- willDeleteSelection,
- docFragment,
- contentStartNode,
- contentStartOffset,
- contentEndNode,
- contentEndOffset,
- insertionPointNode,
- insertionPointOffset,
- continueWithInsertion)
- {
-
- }
-}
diff --git a/extras/AspNetEdit/chrome/install.rdf b/extras/AspNetEdit/chrome/install.rdf
deleted file mode 100644
index de603896b5..0000000000
--- a/extras/AspNetEdit/chrome/install.rdf
+++ /dev/null
@@ -1,49 +0,0 @@
-<?xml version="1.0"?>
-
-<RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
- xmlns:em="http://www.mozilla.org/2004/em-rdf#">
-
- <Description about="urn:mozilla:install-manifest"> <em:id>{d7d824a2-030d-11db-9804-b622a1ef5492}</em:id>
- <em:name>ASP.NET Visual Designer Extension</em:name>
- <em:version>0.1</em:version> <em:description>
- Required for the AspNetEdit Visual ASP.NET Forms Designer,
- which is used in the Mono Project's MonoDevelop IDE.
- </em:description>
- <em:creator>Michael Hutchinson, Blagovest Dachev</em:creator>
- <em:homepageURL>http://mono-project.com/AspNetEdit</em:homepageURL>
- <em:file>
- <Description about="urn:mozilla:extension:file:aspdesigner.jar">
- <em:package>content/</em:package>
- <em:locale>locale/en-US/</em:locale> </Description>
- </em:file>
-
- <!-- Firefox -->
- <em:targetApplication>
- <Description>
- <em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id>
- <em:minVersion>1.0</em:minVersion>
- <em:maxVersion>1.5.*</em:maxVersion>
- </Description>
- </em:targetApplication>
-
- <!-- Mozilla Suite -->
- <em:targetApplication>
- <Description>
- <em:id>{86c18b42-e466-45a9-ae7a-9b95ba6f5640}</em:id>
- <em:minVersion>1.7</em:minVersion>
- <em:maxVersion>1.8</em:maxVersion>
- </Description>
- </em:targetApplication>
-
- <!-- SeaMonkey -->
- <em:targetApplication>
- <Description>
- <em:id>{92650c4d-4b8e-4d2a-b7eb-24ecf4f6b63a}</em:id>
- <em:minVersion>1.0</em:minVersion>
- <em:maxVersion>1.0</em:maxVersion>
- </Description>
- </em:targetApplication>
-
- </Description>
-
-</RDF>
diff --git a/extras/AspNetEdit/chrome/locale/en-US/aspdesigner/contents.rdf b/extras/AspNetEdit/chrome/locale/en-US/aspdesigner/contents.rdf
deleted file mode 100755
index fa2e878541..0000000000
--- a/extras/AspNetEdit/chrome/locale/en-US/aspdesigner/contents.rdf
+++ /dev/null
@@ -1,18 +0,0 @@
-<?xml version="1.0"?>
-
-<RDF:RDF xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
- xmlns:chrome="http://www.mozilla.org/rdf/chrome#">
-
- <RDF:Seq about="urn:mozilla:locale:root">
- <RDF:li resource="urn:mozilla:locale:en-US"/>
- </RDF:Seq>
-
- <RDF:Description about="urn:mozilla:locale:en-US">
- <chrome:packages>
- <RDF:Seq about="urn:mozilla:locale:en-US:packages">
- <RDF:li resource="urn:mozilla:locale:en-US:aspdesigner"/>
- </RDF:Seq>
- </chrome:packages>
- </RDF:Description>
-
-</RDF:RDF> \ No newline at end of file
diff --git a/extras/AspNetEdit/configure b/extras/AspNetEdit/configure
deleted file mode 100755
index 0ed96cd71a..0000000000
--- a/extras/AspNetEdit/configure
+++ /dev/null
@@ -1,100 +0,0 @@
-#!/usr/bin/env bash
-VERSION=4.2.3
-PACKAGE=aspnetedit
-prefix=/usr/local
-config=DEBUG
-configurations=" RELEASE DEBUG"
-required_packages=" mono-addins;0.3 monodevelop-core-addins;2.7 gecko-sharp-2.0;0.10 gtk-sharp-2.0;2.12.8 monodevelop;2.7"
-
-usage ()
-{
- echo "Usage : configure [--prefix=PREFIX] [--config=CONFIG]"
- echo
- echo "Configurations available :"
- for c in $configurations; do
- if [ "$c" = "$config" ]; then
- echo " $c (Default)"
- else
- echo " $c"
- fi
- done
-}
-
-validate_config ()
-{
- test -z "$1" && return 0
- for c in $configurations; do
- if [ "$c" = "$1" ]; then
- return 1
- fi
- done
- return 0
-}
-
-check_required_packages ()
-{
- echo "Looking for required packages" | tee config.log
- for pkg in $required_packages; do
- name=`echo $pkg | cut -d\; -f1`
- version=`echo $pkg | cut -d\; -f2`
-
- echo -n "Checking for package '$name'.." | tee -a config.log
- pkg-config --atleast-version=$version $name
- if [ $? -ne 0 ]; then
- echo " ERROR: Package named '$name' >= $version not found." | tee -a config.log
- echo "Try adjusting your PKG_CONFIG_PATH environment variable." | tee -a config.log
- return 1
- fi
- echo " found." | tee -a config.log
- done
- return 0
-}
-
-while test x$1 != x; do
- case $1 in
- --prefix=*)
- prefix=`echo $1 | sed 's/--prefix=//'`
- ;;
- --prefix)
- echo --prefix needs an argument: --prefix=directory >&2
-
- ;;
- --config=*)
- conf=`echo $1 | sed 's/--config=//'`
- validate_config "$conf"
- if [ $? -eq 1 ]; then
- config=$conf
- else
- echo "Invalid config name - $conf"
- usage
- exit 1
- fi
- ;;
- --help)
- usage
- exit
- ;;
- *)
- echo Unknown argument $1 >&2
- usage
- exit 1
- ;;
- esac
- shift
-done
-
-check_required_packages
-[ $? -eq 1 ] && exit 1
-
-echo "prefix=$prefix" > config.make
-echo "RUNTIME=mono" >> config.make
-echo "ASSEMBLY_VERSION=$VERSION.0.0" >> config.make
-echo "VERSION=$VERSION" >> config.make
-echo "PACKAGE=$PACKAGE" >> config.make
-echo "CONFIG=$config" >> config.make
-
-echo
-echo "$PACKAGE has been configured with "
-echo " prefix = $prefix"
-echo " config = $config"
-echo
diff --git a/extras/AspNetEdit/rules.make b/extras/AspNetEdit/rules.make
deleted file mode 100644
index 5f906b2402..0000000000
--- a/extras/AspNetEdit/rules.make
+++ /dev/null
@@ -1,40 +0,0 @@
-clean-local:
- make pre-clean-local-hook
- make $(CONFIG)_BeforeClean
- -rm -f $(CLEANFILES)
- make $(CONFIG)_AfterClean
- make post-clean-local-hook
-
-install-local:
-uninstall-local:
-
-dist-local:
- make pre-dist-local-hook distdir=$$distdir
- list='$(EXTRA_DIST)'; \
- for f in Makefile $$list; do \
- d=`dirname "$$f"`; \
- test -d "$(distdir)/$$d" || \
- mkdir -p "$(distdir)/$$d"; \
- cp -p "$$f" "$(distdir)/$$d" || exit 1; \
- done
- make post-dist-local-hook distdir=$$distdir
-
-dist-local-recursive:
- for dir in $(SUBDIRS); do \
- mkdir -p $(distdir)/$$dir || true; \
- case $$dir in \
- .) make dist-local distdir=$(distdir) || exit 1;; \
- *) (cd $$dir; make dist-local distdir=$(distdir)/$$dir) || exit 1; \
- esac \
- done
-
-#hooks: Available hooks - all, clean, install, uninstall and dist
-# and their *-local variants
-pre-%-hook: ; @:
-post-%-hook: ; @:
-
-#targets for custom commands
-%_BeforeBuild: ; @:
-%_AfterBuild: ; @:
-%_BeforeClean: ; @:
-%_AfterClean: ; @:
diff --git a/extras/BooBinding/BooAmbience.boo b/extras/BooBinding/BooAmbience.boo
deleted file mode 100644
index 7899f1f2d9..0000000000
--- a/extras/BooBinding/BooAmbience.boo
+++ /dev/null
@@ -1,429 +0,0 @@
-#region license
-// Copyright (c) 2004, Daniel Grunwald (daniel@danielgrunwald.de)
-// All rights reserved.
-//
-// BooBinding is free software; you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation; either version 2 of the License, or
-// (at your option) any later version.
-//
-// BooBinding is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with BooBinding; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-#endregion
-/*
-namespace BooBinding
-
-import System
-import System.Collections
-import System.Text
-import MonoDevelop.Projects.Parser
-import MonoDevelop.Core
-import MonoDevelop.Core.Properties
-import MonoDevelop.Projects.Ambience
-
-class BooAmbience(Ambience):
- [Getter(TypeConversionTable)]
- static _typeConversionTable = {
- 'System.Void' : 'void',
- 'System.Object' : 'object',
- 'System.Boolean' : 'bool',
- 'System.Byte' : 'byte',
- 'System.SByte' : 'sbyte',
- //'System.Char' : 'char',
- //'System.Enum' : 'enum',
- 'System.Int16' : 'short',
- 'System.Int32' : 'int',
- 'System.Int64' : 'long',
- 'System.UInt16' : 'ushort',
- 'System.UInt32' : 'uint',
- 'System.UInt64' : 'ulong',
- 'System.Single' : 'single',
- 'System.Double' : 'double',
- 'System.Decimal' : 'decimal',
- 'System.String' : 'string',
- 'System.DateTime' : 'date',
- 'System.TimeSpan' : 'timespan',
- 'System.Type' : 'type',
- 'System.Array' : 'array',
- 'System.Text.RegularExpressions.Regex' : 'regex'
- }
-
- static _reverseTypeConversionTable as Hashtable
-
- static ReverseTypeConversionTable:
- get:
- if _reverseTypeConversionTable == null:
- _reverseTypeConversionTable = Hashtable()
- for e as DictionaryEntry in _typeConversionTable:
- _reverseTypeConversionTable.Add(e.Value, e.Key)
- return _reverseTypeConversionTable
-
-
- private def ModifierIsSet(modifier as ModifierEnum, query as ModifierEnum) as bool:
- return (modifier & query) == query
-
- override def Convert(modifier as ModifierEnum, conversionFlags as ConversionFlags) as string:
- if ShowAccessibility(conversionFlags):
- if ModifierIsSet(modifier, ModifierEnum.Public):
- return 'public '
- elif ModifierIsSet(modifier, ModifierEnum.Private):
- return 'private '
- elif ModifierIsSet(modifier, ModifierEnum.ProtectedAndInternal):
- return 'protected internal '
- elif ModifierIsSet(modifier, ModifierEnum.ProtectedOrInternal):
- return 'internal protected '
- elif ModifierIsSet(modifier, ModifierEnum.Internal):
- return 'internal '
- elif ModifierIsSet(modifier, ModifierEnum.Protected):
- return 'protected '
- return ''
-
- private def GetModifier(decoration as IDecoration, conversionFlags as ConversionFlags) as string:
- ret as string = ''
- if IncludeHTMLMarkup(conversionFlags) or IncludePangoMarkup(conversionFlags):
- ret += '<i>'
-
- if decoration.IsStatic:
- ret += 'static '
- elif decoration.IsFinal:
- ret += 'final '
- elif decoration.IsVirtual:
- ret += 'virtual '
- elif decoration.IsOverride:
- ret += 'override '
- elif decoration.IsNew:
- ret += 'new '
-
- if IncludeHTMLMarkup(conversionFlags) or IncludePangoMarkup(conversionFlags):
- ret += '</i>'
-
- return ret
-
- override def Convert(c as IClass, conversionFlags as ConversionFlags, resolver as ITypeNameResolver) as string:
- builder as StringBuilder = StringBuilder()
- builder.Append(Convert(c.Modifiers, conversionFlags))
-
- cType = c.ClassType
-
- if ShowClassModifiers(conversionFlags):
- if c.IsSealed:
- if cType == ClassType.Delegate or cType == ClassType.Enum:
- pass
- else:
- //builder.Append('final ')
- AppendPangoHtmlTag (builder, 'final ', 'i', conversionFlags)
- elif c.IsAbstract and cType != ClassType.Interface:
- //builder.Append('abstract ')
- AppendPangoHtmlTag (builder, 'abstract ', 'i', conversionFlags)
-
- if ShowClassModifiers(conversionFlags):
- if cType == ClassType.Delegate:
- builder.Append('callable ')
- elif cType == ClassType.Class:
- builder.Append('class ')
- elif cType == ClassType.Struct:
- builder.Append('struct ')
- elif cType == ClassType.Interface:
- builder.Append('interface ')
- elif cType == ClassType.Enum:
- builder.Append('enum ')
-
- if cType == ClassType.Delegate and c.Methods.Count > 0:
- for m as IMethod in c.Methods:
- if m.Name == 'Invoke':
- builder.Append(Convert(m.ReturnType, conversionFlags))
- builder.Append(' ')
-
- if UseFullyQualifiedMemberNames(conversionFlags):
- AppendPangoHtmlTag (builder, c.FullyQualifiedName, 'b', conversionFlags)
- else:
- AppendPangoHtmlTag (builder, c.Name, 'b', conversionFlags)
-
- if c.ClassType == ClassType.Delegate:
- builder.Append(' (')
- if IncludeHTMLMarkup(conversionFlags):
- builder.Append('<br>')
-
- for m as IMethod in c.Methods:
- if m.Name == 'Invoke':
- for i in range(m.Parameters.Count):
- if IncludeHTMLMarkup(conversionFlags):
- builder.Append('&nbsp;&nbsp;&nbsp;')
-
- builder.Append(Convert(m.Parameters[i], conversionFlags))
- if i + 1 < m.Parameters.Count:
- builder.Append(', ')
-
- if IncludeHTMLMarkup:
- builder.Append('<br>')
-
- builder.Append(Char.Parse(')'))
- elif ShowInheritanceList(conversionFlags):
- if c.BaseTypes.Count > 0:
- builder.Append('(')
- for i in range(c.BaseTypes.Count):
- builder.Append(c.BaseTypes[i])
- if i + 1 < c.BaseTypes.Count:
- builder.Append(', ')
- builder.Append(')')
-
- if IncludeBodies(conversionFlags):
- builder.Append(':\n')
-
- return builder.ToString()
-
- override def ConvertEnd(c as IClass, conversionFlags as ConversionFlags) as string:
- return ''
-
- override def Convert(field as IField, conversionFlags as ConversionFlags, resolver as ITypeNameResolver) as string:
- builder as StringBuilder = StringBuilder()
- builder.Append(Convert(field.Modifiers, conversionFlags))
-
- if ShowMemberModifiers(conversionFlags):
- if field.IsStatic and field.IsLiteral:
- AppendPangoHtmlTag (builder, 'const ', 'i', conversionFlags)
- elif field.IsStatic:
- AppendPangoHtmlTag (builder, 'static ', 'i', conversionFlags)
-
- if field.IsReadonly:
- AppendPangoHtmlTag (builder, 'readonly ', 'i', conversionFlags)
-
- if UseFullyQualifiedMemberNames(conversionFlags):
- AppendPangoHtmlTag (builder, field.FullyQualifiedName, 'b', conversionFlags)
- else:
- AppendPangoHtmlTag (builder, field.Name, 'b', conversionFlags)
-
- if field.ReturnType != null:
- AppendPangoHtmlTag (builder, ' as ' + Convert (field.ReturnType, conversionFlags), 'b', conversionFlags)
-
- return builder.ToString()
-
- override def Convert(property as IProperty, conversionFlags as ConversionFlags, resolver as ITypeNameResolver) as string:
- builder as StringBuilder = StringBuilder()
- builder.Append(Convert(property.Modifiers, conversionFlags))
- if ShowMemberModifiers(conversionFlags):
- builder.Append(GetModifier(property, conversionFlags))
-
- if UseFullyQualifiedMemberNames(conversionFlags):
- AppendPangoHtmlTag (builder, property.FullyQualifiedName, 'b', conversionFlags)
- else:
- AppendPangoHtmlTag (builder, property.Name, 'b', conversionFlags)
-
- if property.Parameters.Count > 0:
- builder.Append('(')
- if IncludeHTMLMarkup(conversionFlags):
- builder.Append('<br>')
-
- for i in range(property.Parameters.Count):
- if IncludeHTMLMarkup(conversionFlags):
- builder.Append('&nbsp;&nbsp;&nbsp;')
-
- builder.Append(Convert(property.Parameters[i], conversionFlags))
- if i + 1 < property.Parameters.Count:
- builder.Append(', ')
-
- if IncludeHTMLMarkup(conversionFlags):
- builder.Append('<br>')
-
- builder.Append(')')
-
- if property.ReturnType != null:
- builder.Append(' as ')
- builder.Append(Convert(property.ReturnType, conversionFlags))
-
- if IncludeBodies(conversionFlags):
- builder.Append(': ')
- if property.CanGet:
- builder.Append('get ')
-
- if property.CanSet:
- builder.Append('set ')
-
- return builder.ToString()
-
- override def Convert(e as IEvent, conversionFlags as ConversionFlags, resolver as ITypeNameResolver) as string:
- builder as StringBuilder = StringBuilder()
- builder.Append(Convert(e.Modifiers, conversionFlags))
- if ShowMemberModifiers(conversionFlags):
- builder.Append(GetModifier(e, conversionFlags))
-
- if UseFullyQualifiedMemberNames(conversionFlags):
- AppendPangoHtmlTag (builder, e.FullyQualifiedName, 'b', conversionFlags)
- else:
- AppendPangoHtmlTag (builder, e.Name, 'b', conversionFlags)
-
- if e.ReturnType != null:
- builder.Append(' as ')
- builder.Append(Convert(e.ReturnType, conversionFlags))
-
- return builder.ToString()
-
- override def Convert(m as IIndexer, conversionFlags as ConversionFlags, resolver as ITypeNameResolver) as string:
- builder as StringBuilder = StringBuilder()
- builder.Append(Convert(m.Modifiers, conversionFlags))
-
- if ShowMemberModifiers(conversionFlags) and m.IsStatic:
- AppendPangoHtmlTag (builder, 'static ', 'i', conversionFlags)
-
- if m.ReturnType != null:
- builder.Append(Convert(m.ReturnType, conversionFlags))
- builder.Append(' ')
-
- if UseFullyQualifiedMemberNames(conversionFlags):
- AppendPangoHtmlTag (builder, m.FullyQualifiedName, 'b', conversionFlags)
- else:
- AppendPangoHtmlTag (builder, m.Name, 'b', conversionFlags)
-
- builder.Append('Indexer(')
- if IncludeHTMLMarkup:
- builder.Append('<br>')
-
- for i in range(m.Parameters.Count):
- if IncludeHTMLMarkup(conversionFlags):
- builder.Append('&nbsp;&nbsp;&nbsp;')
-
- builder.Append(Convert(m.Parameters[i], conversionFlags))
- if i + 1 < m.Parameters.Count:
- builder.Append(', ')
-
- if IncludeHTMLMarkup(conversionFlags):
- builder.Append('<br>')
-
- builder.Append(')')
-
- return builder.ToString()
-
- override def Convert(m as IMethod, conversionFlags as ConversionFlags, resolver as ITypeNameResolver) as string:
- builder as StringBuilder = StringBuilder()
- builder.Append(Convert(m.Modifiers, conversionFlags))
- if ShowMemberModifiers(conversionFlags):
- builder.Append(GetModifier(m, conversionFlags))
-
- //builder.Append('def ') if ShowReturnType
-
- if m.IsConstructor:
- AppendPangoHtmlTag (builder, 'constructor', 'b', conversionFlags)
- else:
- if UseFullyQualifiedMemberNames(conversionFlags):
- AppendPangoHtmlTag (builder, m.FullyQualifiedName, 'b', conversionFlags)
- else:
- AppendPangoHtmlTag (builder, m.Name, 'b', conversionFlags)
-
- builder.Append('(')
- if IncludeHTMLMarkup(conversionFlags):
- builder.Append('<br>')
-
- for i in range(m.Parameters.Count):
- if IncludeHTMLMarkup(conversionFlags):
- builder.Append('&nbsp;&nbsp;&nbsp;')
-
- builder.Append(Convert(m.Parameters[i], conversionFlags))
- if i + 1 < m.Parameters.Count:
- builder.Append(', ')
-
- if IncludeHTMLMarkup(conversionFlags):
- builder.Append('<br>')
-
- builder.Append(')')
-
- //if m.ReturnType != null and ShowReturnType and not m.IsConstructor:
- if m.ReturnType != null and not m.IsConstructor:
- builder.Append(' as ')
- builder.Append(Convert(m.ReturnType, conversionFlags))
-
- if IncludeBodies(conversionFlags):
- if m.DeclaringType != null:
- if m.DeclaringType.ClassType != ClassType.Interface:
- builder.Append(': ')
- else:
- builder.Append(': ')
-
-
- return builder.ToString()
-
- override def ConvertEnd(m as IMethod, conversionFlags as ConversionFlags) as string:
- return ''
-
- override def Convert(returnType as IReturnType, conversionFlags as ConversionFlags, resolver as ITypeNameResolver) as string:
- if returnType == null:
- return ''
-
- builder as StringBuilder = StringBuilder()
-
- for i in range(returnType.ArrayCount):
- builder.Append('(')
-
- if returnType.FullyQualifiedName != null and _typeConversionTable[returnType.FullyQualifiedName] != null:
- builder.Append(_typeConversionTable[returnType.FullyQualifiedName])
- else:
- if UseFullyQualifiedNames(conversionFlags):
- builder.Append(returnType.FullyQualifiedName)
- else:
- builder.Append(returnType.Name)
-
-
- //if linkSet:
- // builder.Append('</a>')
-
- if returnType.PointerNestingLevel > 0:
- // Sometimes there are negative pointer nesting levels
- // (especially in exception constructors in the BCL
- for i in range(returnType.PointerNestingLevel):
- builder.Append('*')
-
- for i in range(returnType.ArrayCount):
- if returnType.ArrayDimensions[i] > 1:
- builder.Append(',')
- builder.Append(returnType.ArrayDimensions[i])
- builder.Append(')')
-
- return builder.ToString()
-
- override def Convert(param as IParameter, conversionFlags as ConversionFlags, resolver as ITypeNameResolver) as string:
- builder as StringBuilder = StringBuilder()
-
- if param.IsRef:
- AppendPangoHtmlTag (builder, 'ref ', 'i', conversionFlags)
- elif param.IsOut:
- AppendPangoHtmlTag (builder, 'out ', 'i', conversionFlags)
- elif param.IsParams:
- AppendPangoHtmlTag (builder, 'params ', 'i', conversionFlags)
-
- if ShowParameterNames(conversionFlags):
- builder.Append(param.Name)
- builder.Append(' as ')
- builder.Append(Convert(param.ReturnType, conversionFlags))
-
- return builder.ToString()
-
- override def Convert(localVariable as LocalVariable, conversionFlags as ConversionFlags, resolver as ITypeNameResolver) as string:
- builder as StringBuilder = StringBuilder()
-
- builder.Append(localVariable.Name)
- builder.Append(' as ')
- builder.Append(Convert(localVariable.ReturnType, conversionFlags))
-
- return builder.ToString()
-
- private def AppendPangoHtmlTag (sb as StringBuilder, text as string, tag as string, conversionFlags as ConversionFlags):
- sb.Append ('<').Append (tag).Append ('>') if IncludeHTMLMarkup(conversionFlags) or IncludePangoMarkup(conversionFlags)
- sb.Append (text)
- sb.Append ('</').Append (tag).Append ('>') if IncludeHTMLMarkup(conversionFlags) or IncludePangoMarkup(conversionFlags)
-
- override def WrapAttribute(attribute as string) as string:
- return '[' + attribute + ']'
-
- override def WrapComment(comment as string) as string:
- return '// ' + comment
-
- override def GetIntrinsicTypeName(dotNetTypeName as string) as string:
- if _typeConversionTable[dotNetTypeName] != null:
- return _typeConversionTable[dotNetTypeName]
- return dotNetTypeName
-*/ \ No newline at end of file
diff --git a/extras/BooBinding/BooBinding.addin.xml b/extras/BooBinding/BooBinding.addin.xml
deleted file mode 100644
index 462efcf45b..0000000000
--- a/extras/BooBinding/BooBinding.addin.xml
+++ /dev/null
@@ -1,96 +0,0 @@
-<Addin id = "BooBinding"
- namespace = "MonoDevelop"
- name = "Boo Language Binding"
- author = "Peter Johanson"
- copyright = "GPL"
- url = "http://boo.codehaus.org"
- description = "Boo Language Binding"
- category = "Language bindings"
- version = "4.2.3">
-
- <Runtime>
- <Import assembly = "BooBinding.dll"/>
- <Import assembly = "BooShell.dll"/>
- </Runtime>
-
- <Localizer type="Gettext" catalog="monodevelop-boo"/>
-
- <Dependencies>
- <Addin id="Core" version="4.2.3"/>
- <Addin id="Ide" version="4.2.3"/>
- <Assembly name="Boo.Lang.Compiler, Version=1.0.0.0" package="Boo" />
- </Dependencies>
-
- <Extension path = "/MonoDevelop/ProjectModel/MSBuildItemTypes">
- <DotNetProject language="Boo" extension="booproj" guid="{B3672514-7503-4B01-B4B4-B44E87061EA2}"/>
- </Extension>
-
- <Extension path = "/MonoDevelop/Ide/FileFilters">
- <FileFilter id = "Boo"
- insertbefore = "AllFiles"
- _label = "Boo Files"
- extensions = "*.boo"/>
- </Extension>
-
- <Extension path = "/MonoDevelop/Ide/FileTemplates">
- <FileTemplate id = "EmptyBooFile" resource = "EmptyBooFile.xft.xml"/>
- <FileTemplate id = "BooGtkSharpWindow" resource = "BooGtkSharpWindow.xft.xml"/>
- </Extension>
-
- <Extension path = "/MonoDevelop/Ide/ProjectTemplates">
- <ProjectTemplate id = "EmptyBooProject" resource = "EmptyBooProject.xpt.xml"/>
- <ProjectTemplate id = "BooGtkSharpProject" resource = "BooGtkSharpProject.xpt.xml"/>
- <ProjectTemplate id = "BooLibraryProject" resource = "BooLibraryProject.xpt.xml"/>
- </Extension>
-
- <Extension path = "/MonoDevelop/ProjectModel/SerializableClasses">
- <DataType class = "BooBinding.BooCompilerParameters" />
- </Extension>
-
- <Extension path = "/MonoDevelop/ProjectModel/Gui/ItemOptionPanels/Build">
- <Condition id="ActiveLanguage" value = "Boo">
- <Section id = "BooCodeGenerationPanel"
- _label = "Code Generation"
- class = "BooBinding.Gui.OptionPanels.CodeGenerationPanel"/>
- </Condition>
- </Extension>
-
- <Extension path = "/MonoDevelop/Core/MimeTypes">
- <MimeType id="text/x-boo" _description="Boo source code" icon="md-boo-file" isText="true">
- <File pattern="*.boo" />
- </MimeType>
- </Extension>
-
- <Extension path = "/MonoDevelop/ProjectModel/LanguageBindings">
- <LanguageBinding id = "Boo"
- supportedextensions = ".boo"
- class = "BooBinding.BooLanguageBinding" />
- </Extension>
-<!--
- <Extension path = "/MonoDevelop/Ide/TextEditorExtensions">
- <Class class = "BooBinding.Gui.BooTextEditorExtension" />
- </Extension>
--->
-<!-- <Extension path = "/MonoDevelop/ProjectModel/Ambiences">
- <Class id = "Boo"
- class = "BooBinding.BooAmbience"/>
- </Extension>
--->
- <Extension path = "/MonoDevelop/Ide/Pads">
- <Pad id = "BooBinding.Pads.BooShellPadContent" _label="Boo Shell" icon="boo-icon" class = "BooBinding.Pads.BooShellPadContent" defaultPlacement = "Bottom"/>
- </Extension>
-
- <Extension path = "/MonoDevelop/Ide/WorkbenchContexts/Edit">
- <ContextPad id = "BooBinding.Pads.BooShellPadContent" />
- </Extension>
-
- <Extension path = "/MonoDevelop/Ide/GlobalOptionsDialog/Other">
- <Section id = "GeneralBooShellPanel" _label = "Boo Shell" icon = "boo-icon" class = "BooBinding.Gui.OptionPanels.GeneralBooShellPanel"/>
- </Extension>
-
- <Extension path = "/MonoDevelop/Core/StockIcons">
- <StockIcon stockid = "md-boo-file" file = "icons/Boo.FileIcon" />
- <StockIcon stockid = "boo-icon" file = "icons/BooBinding.Base" />
- </Extension>
-
-</Addin>
diff --git a/extras/BooBinding/BooBinding.booproj b/extras/BooBinding/BooBinding.booproj
deleted file mode 100644
index 5276ccea44..0000000000
--- a/extras/BooBinding/BooBinding.booproj
+++ /dev/null
@@ -1,160 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5">
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <ProductVersion>9.0.21022</ProductVersion>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{70CCB542-ED79-4759-B6F3-8B9B3A21194E}</ProjectGuid>
- <OutputType>Library</OutputType>
- <UsePartialTypes>false</UsePartialTypes>
- <AssemblyName>BooBinding</AssemblyName>
- <TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
- <RootNamespace>BooBinding</RootNamespace>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- <DebugSymbols>true</DebugSymbols>
- <DebugType>full</DebugType>
- <OutputPath>build</OutputPath>
- <ErrorReport>prompt</ErrorReport>
- <ducky>false</ducky>
- <culture />
- <genwarnings>false</genwarnings>
- <Execution>
- <Execution clr-version="Net_2_0" />
- </Execution>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- <DebugType>none</DebugType>
- <OutputPath>..\..\build\AddIns\BackendBindings\</OutputPath>
- <ErrorReport>prompt</ErrorReport>
- <ducky>false</ducky>
- <culture />
- <genwarnings>false</genwarnings>
- <Execution>
- <Execution clr-version="Net_2_0" />
- </Execution>
- </PropertyGroup>
- <ItemGroup>
- <Reference Include="System.Xml" />
- <Reference Include="System.Runtime.Remoting" />
- <Reference Include="System.Drawing" />
- <Reference Include="Mono.Addins, Version=0.4.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756">
- <SpecificVersion>False</SpecificVersion>
- </Reference>
- <Reference Include="MonoDevelop.Core, Version=1.9.2.0, Culture=neutral">
- <SpecificVersion>False</SpecificVersion>
- <Package>monodevelop</Package>
- </Reference>
- <Reference Include="MonoDevelop.Ide, Version=1.9.2.0, Culture=neutral">
- <SpecificVersion>False</SpecificVersion>
- <Package>monodevelop</Package>
- </Reference>
- <Reference Include="gtk-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f">
- <SpecificVersion>False</SpecificVersion>
- </Reference>
- <Reference Include="gdk-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f">
- <SpecificVersion>False</SpecificVersion>
- </Reference>
- <Reference Include="pango-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f">
- <SpecificVersion>False</SpecificVersion>
- </Reference>
- <Reference Include="atk-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f">
- <SpecificVersion>False</SpecificVersion>
- </Reference>
- <Reference Include="NRefactory, Version=0.0.0.0, Culture=neutral">
- <SpecificVersion>False</SpecificVersion>
- <Package>monodevelop</Package>
- </Reference>
- <Reference Include="Mono.Cecil, Version=0.6.8.8607, Culture=neutral">
- <Package>monodevelop</Package>
- </Reference>
- <Reference Include="Boo.Lang, Version=2.0.0.0, Culture=neutral, PublicKeyToken=32c39770e9a21a67" />
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="BooShell\BooShell.booproj">
- <Project>{87E0A9FD-8DFD-4A3D-93D7-C86F6322CCF4}</Project>
- <Name>BooShell</Name>
- <Private>False</Private>
- </ProjectReference>
- </ItemGroup>
- <ItemGroup>
- <EmbeddedResource Include="templates\BooGtkSharpProject.xpt.xml">
- <LogicalName>BooGtkSharpProject.xpt.xml</LogicalName>
- </EmbeddedResource>
- <EmbeddedResource Include="templates\BooLibraryProject.xpt.xml">
- <LogicalName>BooLibraryProject.xpt.xml</LogicalName>
- </EmbeddedResource>
- <EmbeddedResource Include="templates\BooGtkSharpWindow.xft.xml">
- <LogicalName>BooGtkSharpWindow.xft.xml</LogicalName>
- </EmbeddedResource>
- <EmbeddedResource Include="templates\EmptyBooFile.xft.xml">
- <LogicalName>EmptyBooFile.xft.xml</LogicalName>
- </EmbeddedResource>
- <EmbeddedResource Include="templates\EmptyBooProject.xpt.xml">
- <LogicalName>EmptyBooProject.xpt.xml</LogicalName>
- </EmbeddedResource>
- <EmbeddedResource Include="icons\Boo.File.EmptyFile">
- <LogicalName>Boo.File.EmptyFile</LogicalName>
- </EmbeddedResource>
- <EmbeddedResource Include="icons\Boo.File.Form">
- <LogicalName>Boo.File.Form</LogicalName>
- </EmbeddedResource>
- <EmbeddedResource Include="BooBinding.addin.xml">
- <LogicalName>BooBinding.addin.xml</LogicalName>
- </EmbeddedResource>
- <EmbeddedResource Include="icons\boo-icon-32.png">
- <LogicalName>boo-icon-32.png</LogicalName>
- </EmbeddedResource>
- </ItemGroup>
- <ItemGroup>
- <Compile Include="Gui\ShellTextView.boo" />
- <Compile Include="Gui\IShellModel.boo" />
- <Compile Include="Gui\BooShellModel.boo" />
- <Compile Include="Gui\OptionPanels\CodeCompilationPanel.boo" />
- <Compile Include="Gui\OptionPanels\GeneralShellPanel.boo" />
- <Compile Include="Gui\OptionPanels\GeneralBooShellPanel.boo" />
- <Compile Include="Project\BooCompilerParameters.boo" />
- <Compile Include="Properties\ShellProperties.boo" />
- <Compile Include="Properties\BooShellProperties.boo" />
- <Compile Include="BooBindingCompilerServices.boo" />
- <Compile Include="BooAmbience.boo" />
- <Compile Include="BooShellPadContent.boo" />
- <Compile Include="BooCompiler.boo" />
- <Compile Include="BooLanguageBinding.boo" />
- <Compile Include="Parser\BooParser.boo" />
- <Compile Include="Parser\Resolver.boo" />
- <Compile Include="Parser\TypeMembers.boo" />
- <Compile Include="Parser\ExpressionFinder.boo" />
- <Compile Include="Parser\ReturnType.boo" />
- <Compile Include="Parser\VariableLookupVisitor.boo" />
- <Compile Include="Parser\ExpressionTypeVisitor.boo" />
- <Compile Include="Parser\Tree.boo" />
- <Compile Include="Parser\Visitor.boo" />
- <Compile Include="Gui\BooTextEditorExtension.boo" />
- </ItemGroup>
- <ProjectExtensions>
- <MonoDevelop>
- <Properties>
- <MonoDevelop.Autotools.MakefileInfo IntegrationEnabled="true" RelativeMakefileName="BooBinding.make" RelativeConfigureInPath="../../">
- <BuildFilesVar Sync="true" Name="FILES" />
- <DeployFilesVar Sync="true" Name="DATA_FILES" />
- <ResourcesVar Sync="true" Name="RESOURCES" />
- <OthersVar />
- <GacRefVar Name="REFERENCES" />
- <AsmRefVar Name="REFERENCES" />
- <ProjectRefVar Name="REFERENCES" />
- <MessageRegex Error="(^\s*(?&lt;file&gt;.*)\((?&lt;line&gt;\d*){1}(,(?&lt;column&gt;\d*[\+]*))?\)(:|)\s+)*(?=BCE)(?&lt;number&gt;.*?):\s(?&lt;message&gt;.*)" Warning="(^\s*(?&lt;file&gt;.*)\((?&lt;line&gt;\d*){1}(,(?&lt;column&gt;\d*[\+]*))?\)(:|)\s+)*(?=BCW)(?&lt;number&gt;.*?):\sWARNING:\s(?&lt;message&gt;.*)" Name="Custom" />
- </MonoDevelop.Autotools.MakefileInfo>
- </Properties>
- </MonoDevelop>
- </ProjectExtensions>
- <ItemGroup>
- <Content Include="icons\BooBinding.Base">
- <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
- </Content>
- <Content Include="icons\Boo.FileIcon">
- <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
- </Content>
- </ItemGroup>
-</Project> \ No newline at end of file
diff --git a/extras/BooBinding/BooBinding.make b/extras/BooBinding/BooBinding.make
deleted file mode 100644
index e63818b635..0000000000
--- a/extras/BooBinding/BooBinding.make
+++ /dev/null
@@ -1,160 +0,0 @@
-
-
-# Warning: This is an automatically generated file, do not edit!
-
-srcdir=.
-top_srcdir=.
-
-include $(top_srcdir)/Makefile.include
-include $(top_srcdir)/config.make
-
-ifeq ($(CONFIG),DEBUG)
-ASSEMBLY_COMPILER_COMMAND = booc
-ASSEMBLY_COMPILER_FLAGS = -debug
-ASSEMBLY = build/BooBinding.dll
-ASSEMBLY_MDB = $(ASSEMBLY).mdb
-COMPILE_TARGET = library
-PROJECT_REFERENCES = \
- build/BooShell.dll
-BUILD_DIR = build
-
-
-endif
-
-ifeq ($(CONFIG),RELEASE)
-ASSEMBLY_COMPILER_COMMAND = booc
-ASSEMBLY_COMPILER_FLAGS = -debug-
-ASSEMBLY = build/BooBinding.dll
-ASSEMBLY_MDB =
-COMPILE_TARGET = library
-PROJECT_REFERENCES = \
- build/BooShell.dll
-BUILD_DIR = build
-
-
-endif
-
-INSTALL_DIR = $(DESTDIR)$(prefix)/lib/monodevelop/AddIns/BooBinding
-
-LINUX_PKGCONFIG = \
- $(BOOBINDING_PC)
-
-
-
-BOOBINDING_PC = $(BUILD_DIR)/monodevelop-boo.pc
-
-
-FILES = \
- BooAmbience.boo \
- BooBindingCompilerServices.boo \
- BooCompiler.boo \
- BooLanguageBinding.boo \
- BooShellPadContent.boo \
- Gui/BooShellModel.boo \
- Gui/BooTextEditorExtension.boo \
- Gui/IShellModel.boo \
- Gui/OptionPanels/CodeCompilationPanel.boo \
- Gui/OptionPanels/GeneralBooShellPanel.boo \
- Gui/OptionPanels/GeneralShellPanel.boo \
- Gui/ShellTextView.boo \
- Parser/BooParser.boo \
- Parser/ExpressionFinder.boo \
- Parser/ExpressionTypeVisitor.boo \
- Parser/Resolver.boo \
- Parser/ReturnType.boo \
- Parser/Tree.boo \
- Parser/TypeMembers.boo \
- Parser/VariableLookupVisitor.boo \
- Parser/Visitor.boo \
- Project/BooCompilerParameters.boo \
- Properties/BooShellProperties.boo \
- Properties/ShellProperties.boo
-
-DATA_FILES = \
- icons/Boo.FileIcon \
- icons/BooBinding.Base
-
-RESOURCES = \
- BooBinding.addin.xml \
- icons/Boo.File.EmptyFile \
- icons/Boo.File.Form \
- icons/boo-icon-32.png \
- templates/BooGtkSharpProject.xpt.xml \
- templates/BooGtkSharpWindow.xft.xml \
- templates/BooLibraryProject.xpt.xml \
- templates/EmptyBooFile.xft.xml \
- templates/EmptyBooProject.xpt.xml
-
-EXTRAS = \
- monodevelop-boo.pc.in
-
-REFERENCES = \
- build/BooShell.dll \
- -pkg:boo \
- -pkg:gtk-sharp-2.0 \
- -pkg:mono-addins \
- -pkg:monodevelop \
- -pkg:monodevelop-core-addins \
- System.Drawing \
- System.Runtime.Remoting \
- System.Xml
-
-DLL_REFERENCES =
-
-DATA_FILE_BUILD = $(addprefix $(BUILD_DIR)/, $(DATA_FILES))
-DATA_FILE_INSTALL = $(addprefix $(INSTALL_DIR)/, $(DATA_FILES))
-
-CLEANFILES += $(LINUX_PKGCONFIG) $(DATA_FILE_BUILD)
-
-#Targets
-all-local: $(ASSEMBLY) $(LINUX_PKGCONFIG) $(top_srcdir)/config.make $(DATA_FILE_BUILD)
-
-$(BOOBINDING_PC): monodevelop-boo.pc
- mkdir -p $(BUILD_DIR)
- cp '$<' '$@'
-
-
-
-monodevelop-boo.pc: monodevelop-boo.pc.in $(top_srcdir)/config.make
- sed -e "s,@prefix@,$(prefix)," -e "s,@PACKAGE@,$(PACKAGE)," < monodevelop-boo.pc.in > monodevelop-boo.pc
-
-
-$(build_xamlg_list): %.xaml.g.cs: %.xaml
- xamlg '$<'
-
-$(build_resx_resources) : %.resources: %.resx
- resgen2 '$<' '$@'
-
-LOCAL_PKGCONFIG=PKG_CONFIG_PATH=../../local-config:$$PKG_CONFIG_PATH
-
-$(ASSEMBLY) $(ASSEMBLY_MDB): $(build_sources) $(build_resources) $(build_datafiles) $(DLL_REFERENCES) $(PROJECT_REFERENCES) $(build_xamlg_list)
- make pre-all-local-hook prefix=$(prefix)
- mkdir -p $(dir $(ASSEMBLY))
- make $(CONFIG)_BeforeBuild
- $(LOCAL_PKGCONFIG) $(ASSEMBLY_COMPILER_COMMAND) $(ASSEMBLY_COMPILER_FLAGS) -out:$(ASSEMBLY) -target:$(COMPILE_TARGET) $(build_sources_embed) $(build_resources_embed) $(build_references_ref)
- make $(CONFIG)_AfterBuild
- make post-all-local-hook prefix=$(prefix)
-
-$(DATA_FILE_BUILD): $(srcdir)$(subst $(BUILD_DIR),, $@)
- mkdir -p $(dir $@)
- cp $(srcdir)/$(subst $(BUILD_DIR),,$@) $@
-
-$(DATA_FILE_INSTALL): $(srcdir)$(subst $(INSTALL_DIR),, $@)
- mkdir -p $(dir $@)
- cp $(srcdir)/$(subst $(INSTALL_DIR),,$@) $@
-
-install-local: $(ASSEMBLY) $(ASSEMBLY_MDB) $(BOOBINDING_PC) $(DATA_FILE_INSTALL)
- make pre-install-local-hook prefix=$(prefix)
- mkdir -p $(INSTALL_DIR)
- cp $(ASSEMBLY) $(ASSEMBLY_MDB) $(INSTALL_DIR)
- mkdir -p $(DESTDIR)$(prefix)/lib/pkgconfig
- test -z '$(BOOBINDING_PC)' || cp $(BOOBINDING_PC) $(DESTDIR)$(prefix)/lib/pkgconfig
- make post-install-local-hook prefix=$(prefix)
-
-uninstall-local: $(ASSEMBLY) $(ASSEMBLY_MDB) $(BOOBINDING_PC)
- make pre-uninstall-local-hook prefix=$(prefix)
- rm -f $(INSTALL_DIR)/$(notdir $(ASSEMBLY))
- rm -f $(DATA_FILE_INSTALL)
- test -z '$(ASSEMBLY_MDB)' || rm -f $(INSTALL_DIR)/$(notdir $(ASSEMBLY_MDB))
- test -z '$(BOOBINDING_PC)' || rm -f $(INSTALL_DIR)/$(notdir $(BOOBINDING_PC))
- make post-uninstall-local-hook prefix=$(prefix)
diff --git a/extras/BooBinding/BooBinding.sln b/extras/BooBinding/BooBinding.sln
deleted file mode 100644
index 6c282e08b6..0000000000
--- a/extras/BooBinding/BooBinding.sln
+++ /dev/null
@@ -1,47 +0,0 @@
-
-Microsoft Visual Studio Solution File, Format Version 10.00
-# Visual Studio 2008
-Project("{B3672514-7503-4B01-B4B4-B44E87061EA2}") = "BooBinding", "BooBinding.booproj", "{70CCB542-ED79-4759-B6F3-8B9B3A21194E}"
-EndProject
-Project("{B3672514-7503-4B01-B4B4-B44E87061EA2}") = "BooShell", "BooShell\BooShell.booproj", "{87E0A9FD-8DFD-4A3D-93D7-C86F6322CCF4}"
-EndProject
-Project("{9344bdbb-3e7f-41fc-a0dd-8665d75ee146}") = "po", "po\po.mdproj", "{E1321D51-614A-49D9-974B-2AEB9B27210D}"
-EndProject
-Global
- GlobalSection(SolutionConfigurationPlatforms) = preSolution
- Debug|Any CPU = Debug|Any CPU
- Release|Any CPU = Release|Any CPU
- EndGlobalSection
- GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {70CCB542-ED79-4759-B6F3-8B9B3A21194E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {70CCB542-ED79-4759-B6F3-8B9B3A21194E}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {70CCB542-ED79-4759-B6F3-8B9B3A21194E}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {70CCB542-ED79-4759-B6F3-8B9B3A21194E}.Release|Any CPU.Build.0 = Release|Any CPU
- {87E0A9FD-8DFD-4A3D-93D7-C86F6322CCF4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {87E0A9FD-8DFD-4A3D-93D7-C86F6322CCF4}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {87E0A9FD-8DFD-4A3D-93D7-C86F6322CCF4}.Release|Any CPU.ActiveCfg = Debug|Any CPU
- {87E0A9FD-8DFD-4A3D-93D7-C86F6322CCF4}.Release|Any CPU.Build.0 = Debug|Any CPU
- {E1321D51-614A-49D9-974B-2AEB9B27210D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {E1321D51-614A-49D9-974B-2AEB9B27210D}.Release|Any CPU.ActiveCfg = Release|Any CPU
- EndGlobalSection
- GlobalSection(MonoDevelopProperties) = preSolution
- StartupItem = BooBinding.booproj
- Policies = $0
- $0.DotNetNamingPolicy = $1
- $1.DirectoryNamespaceAssociation = Flat
- $1.ResourceNamePolicy = FileName
- $0.StandardHeader = $2
- $2.inheritsSet = MITX11License
- $0.TextStylePolicy = $3
- $3.FileWidth = 120
- $3.TabWidth = 4
- $3.inheritsSet = Mono
- $3.inheritsScope = text/plain
- $0.VersionControlPolicy = $4
- $4.inheritsSet = Mono
- $0.ChangeLogPolicy = $5
- $5.UpdateMode = None
- $5.VcsIntegration = None
- $5.inheritsSet = Mono
- EndGlobalSection
-EndGlobal
diff --git a/extras/BooBinding/BooBindingCompilerServices.boo b/extras/BooBinding/BooBindingCompilerServices.boo
deleted file mode 100644
index 1a627a4b76..0000000000
--- a/extras/BooBinding/BooBindingCompilerServices.boo
+++ /dev/null
@@ -1,183 +0,0 @@
-#region license
-// Copyright (c) 2005, Peter Johanson (latexer@gentoo.org)
-// All rights reserved.
-//
-// BooBinding is free software; you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation; either version 2 of the License, or
-// (at your option) any later version.
-//
-// BooBinding is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with BooBinding; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-#endregion
-
-namespace BooBinding
-
-import System
-import System.IO
-import System.CodeDom.Compiler
-import System.Text
-
-import MonoDevelop.Core
-import MonoDevelop.Core.ProgressMonitoring
-import MonoDevelop.Projects
-
-[extension] #FIXME: workaround BOO-1167
-def GetAllReferences (this as ProjectItemCollection) as ProjectReference*:
- for item in this:
- yield item if item isa ProjectReference
-
-[extension] #FIXME: workaround BOO-1167
-def GetAllFiles (this as ProjectItemCollection) as ProjectFile*:
- for item in this:
- yield item if item isa ProjectFile
-
-public class BooBindingCompilerServices:
-
- public def CanCompile (fileName as string):
- return Path.GetExtension (fileName).ToUpper () == ".BOO"
-
- def Compile (projectItems as ProjectItemCollection, configuration as DotNetProjectConfiguration, configurationSelector as ConfigurationSelector, monitor as IProgressMonitor) as BuildResult:
- compilerparameters = cast (BooCompilerParameters, configuration.CompilationParameters)
- if compilerparameters is null:
- compilerparameters = BooCompilerParameters ()
- #we get the compiler target to be used
- compilerTarget as string = "exe"
-
- if configuration.CompileTarget == CompileTarget.Exe:
- compilerTarget = "exe"
- elif configuration.CompileTarget == CompileTarget.Library:
- compilerTarget = "library"
- elif configuration.CompileTarget == CompileTarget.WinExe:
- compilerTarget = "winexe"
-
- parameters as StringBuilder = StringBuilder (
- "-o:${configuration.CompiledOutputName} -t:${compilerTarget}")
-
- #we decide if we want to use ducks
- if compilerparameters.Ducky:
- parameters.Append (" -ducky ")
-
- #we decide if we are going to define the debug var
- if configuration.DebugMode:
- parameters.Append (" -debug+ ")
- else:
- parameters.Append (" -debug- ")
-
- if configuration.EnvironmentVariables.Keys.Count > 0:
- parameters.Append (" -define: ")
-
- #we loop through the defines and add them to the list
- for currentDefine in configuration.EnvironmentVariables.Keys:
- defineValue = ""
- if configuration.EnvironmentVariables.TryGetValue (currentDefine, defineValue):
- if not defineValue == String.Empty:
- parameters.Append ("${currentDefine}=${defineValue},")
- else:
- parameters.Append ("${currentDefine},")
-
- #we need to remove the last comma added in the loop
- if configuration.EnvironmentVariables.Keys.Count > 0:
- parameters.Remove (parameters.ToString ().LastIndexOf (","),1)
-
- #we add the different references
- for lib as ProjectReference in projectItems.GetAllReferences ():
- for fileName as string in lib.GetReferencedFileNames (configurationSelector):
- parameters.Append (" -reference:${fileName} ")
-
- for finfo as ProjectFile in projectItems.GetAllFiles ():
- if finfo.Subtype != Subtype.Directory:
- if finfo.BuildAction == BuildAction.Compile:
- parameters.Append (" ${finfo.FilePath} ")
- elif finfo.BuildAction == BuildAction.EmbeddedResource:
- parameters.Append (" -embedres:${finfo.FilePath},${finfo.ResourceId}")
-
- # if the assembly is signed we point to the file
- if configuration.SignAssembly:
- parameters.Append (" -keyfile: ${configuration.AssemblyKeyFile} ")
-
- # we check if the project is going to be using a strong signature and let the
- # compiler know where to find it
-
- tf = TempFileCollection ()
- compilationOutput = DoCompilation (monitor, parameters.ToString (), configuration.OutputDirectory )
- return ParseOutput (tf, compilationOutput)
-
-
- private def DoCompilation (monitor as IProgressMonitor, parameters as string, outputDir as string):
- try:
-
- swError = StringWriter ()
- chainedError as LogTextWriter = LogTextWriter ()
- chainedError.ChainWriter (monitor.Log)
- chainedError.ChainWriter (swError);
-
- swLog = StringWriter ()
- chainedLogs as LogTextWriter = LogTextWriter ()
- chainedLogs.ChainWriter (swLog);
-
- operationMonitor = AggregatedOperationMonitor (monitor)
- monitor.Log.WriteLine (GettextCatalog.GetString ("Starting Boo compilation"))
- monitor.Log.WriteLine ("booc ${parameters}")
-
- #we create a new process that will be used to execute the command line of the compiler
- wrapper = MonoDevelop.Core.Runtime.ProcessService.StartProcess ("booc",parameters ,
- Path.GetDirectoryName (outputDir),chainedError , chainedLogs, null)
-
- #we take care of cancelation
- operationMonitor.AddOperation (wrapper);
- wrapper.WaitForOutput ();
- exitCode = wrapper.ExitCode
-
- if monitor.IsCancelRequested:
- monitor.Log.WriteLine (GettextCatalog.GetString ("Build cancelled"))
- monitor.ReportError (GettextCatalog.GetString ("Build cancelled"), null)
- if exitCode == 0:
- exitCode = -1
-
- error = swLog.ToString ()
- return error
- ensure:
- #we get rid of this guys
- wrapper.Dispose ()
- swError.Close ()
- chainedError.Close ()
- operationMonitor.Dispose ()
- monitor.EndTask ()
- swLog.Close ()
-
- def ParseOutput (tf as TempFileCollection , errors as string):
- cr = CompilerResults (tf)
- # we read the errors line by line to get them in the monodevelop list
- reader = StringReader (errors);
- nextError as string
-
- while (nextError = reader. ReadLine()) != null:
- error = ParseErrorLine(nextError)
- if not error is null:
- cr.Errors.Insert (0,error)
-
- reader.Close ();
- return BuildResult (cr, null)
-
- private def ParseErrorLine(errorLine as string) as System.CodeDom.Compiler.CompilerError:
- error = System.CodeDom.Compiler.CompilerError()
- #errors are of the form "file(row, column):ErrorNum:Type:message"
- data = @/(?<file>.*\.boo)\s*\((?<row>\d+),\s?(?<column>\d+)\):\s*(?<message>.*)/.Matches (errorLine)
- if data.Count > 0:
- error.ErrorText = data[0].Groups["message"].Value
- error.FileName = data[0].Groups["file"].Value
- error.Line = int.Parse (data[0].Groups["row"].Value)
- error.Column = int.Parse (data[0].Groups["column"].Value)
- if error.ErrorText.Contains ("WARNING"):
- error.IsWarning = true
- return error
- else:
- return null
- \ No newline at end of file
diff --git a/extras/BooBinding/BooCompiler.boo b/extras/BooBinding/BooCompiler.boo
deleted file mode 100644
index fd1260407e..0000000000
--- a/extras/BooBinding/BooCompiler.boo
+++ /dev/null
@@ -1,26 +0,0 @@
-#region license
-// Copyright (c) 2005, Peter Johanson (latexer@gentoo.org)
-// All rights reserved.
-//
-// BooBinding is free software; you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation; either version 2 of the License, or
-// (at your option) any later version.
-//
-// BooBinding is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with BooBinding; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-#endregion
-
-namespace BooBinding
-
-import System
-
-public enum BooCompiler:
- Booc
- Boo
diff --git a/extras/BooBinding/BooLanguageBinding.boo b/extras/BooBinding/BooLanguageBinding.boo
deleted file mode 100644
index d72ff0bfde..0000000000
--- a/extras/BooBinding/BooLanguageBinding.boo
+++ /dev/null
@@ -1,110 +0,0 @@
-#region license
-// Copyright (c) 2005, Peter Johanson (latexer@gentoo.org)
-// All rights reserved.
-//
-// BooBinding is free software; you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation; either version 2 of the License, or
-// (at your option) any later version.
-//
-// BooBinding is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with BooBinding; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-#endregion
-
-namespace BooBinding
-
-import System
-import System.IO
-import System.Diagnostics
-import System.Xml
-import System.CodeDom
-import System.CodeDom.Compiler;
-import Boo.Lang.CodeDom;
-
-import MonoDevelop.Projects
-import MonoDevelop.Projects.Dom.Parser
-import MonoDevelop.Projects.CodeGeneration
-import MonoDevelop.Core
-
-public class BooLanguageBinding(IDotNetLanguageBinding):
- internal static LanguageName = "Boo"
- compilerServices = BooBindingCompilerServices ()
- provider = BooEnhancedCodeProvider ()
-// parser = BooBinding.Parser.BooParser ()
-
- public Language as string:
- get:
- return LanguageName
-
- public ProjectStockIcon as string:
- get:
- return "md-project"
-
- public def CanCompile(fileName as string) as bool:
- Debug.Assert(compilerServices is not null)
- return compilerServices.CanCompile(fileName)
-
- public def Compile (projectItems as ProjectItemCollection , configuration as DotNetProjectConfiguration , configurationSelector as ConfigurationSelector, monitor as IProgressMonitor ) as BuildResult:
- Debug.Assert(compilerServices is not null)
- return compilerServices.Compile (projectItems, configuration, configurationSelector, monitor)
-
- public def CreateCompilationParameters (projectOptions as XmlElement) as ConfigurationParameters:
- parameters = BooCompilerParameters ()
- return parameters
-
- public def CreateProjectParameters (projectOptions as XmlElement) as ProjectParameters:
- return null
-
- public SingleLineCommentTag as string:
- get:
- return "//"
-
- public BlockCommentStartTag as string:
- get:
- return null
-
- public BlockCommentEndTag as string:
- get:
- return null
-
- def IsSourceCodeFile (fileName as string):
- return Path.GetExtension(fileName).ToLower() == ".boo"
-
- public def GetCodeDomProvider () as CodeDomProvider:
- return provider
-
- public def GetSupportedClrVersions () as (ClrVersion):
- return array(ClrVersion, (ClrVersion.Net_2_0,))
-
- public def GetFileName (baseName as string) as string:
- return baseName + ".boo"
-
- public Parser as IParser:
- get:
- return null
-
- public Refactorer as IRefactorer:
- get:
- return null
-
-public class BooEnhancedCodeProvider (BooCodeProvider):
- public override def CreateGenerator() as ICodeGenerator:
- return BooEnhancedCodeGenerator ()
-
-public class BooEnhancedCodeGenerator (BooCodeGenerator):
- public override def GenerateCompileUnit (cu as CodeCompileUnit):
- // Boo doesn't support more than one namespace in a file.
- // If the compile unit has a default namespace declaration with
- // only imports on it, merge it with the main namespace
- if cu.Namespaces.Count == 2 and cu.Namespaces [0].Name == "":
- for im in cu.Namespaces[0].Imports:
- cu.Namespaces[1].Imports.Add (im)
- cu.Namespaces.RemoveAt (0)
- super.GenerateCompileUnit (cu)
-
diff --git a/extras/BooBinding/BooShell/BooShell.boo b/extras/BooBinding/BooShell/BooShell.boo
deleted file mode 100644
index cc25dddbc2..0000000000
--- a/extras/BooBinding/BooShell/BooShell.boo
+++ /dev/null
@@ -1,198 +0,0 @@
-#region license
-// Copyright (c) 2005, Peter Johanson (latexer@gentoo.org)
-// All rights reserved.
-//
-// BooBinding is free software; you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation; either version 2 of the License, or
-// (at your option) any later version.
-//
-// BooBinding is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with BooBinding; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-#endregion
-
-namespace BooBinding.BooShell
-
-import System
-import System.Collections
-import System.Threading
-import System.Text.RegularExpressions
-import Boo.Lang.Interpreter
-
-import Gtk
-
-import MonoDevelop.Core.Execution;
-
-class BooShell (RemoteProcessObject):
- private _interpreter = InteractiveInterpreter(RememberLastValue: true, Print: print)
-
- private _commandQueue = Queue()
- private _outputQueue = Queue()
-
- private _thread as System.Threading.Thread
-
- private _processing as string = "true"
-
- override def InitializeLifetimeService ():
- return null
-
- def Reset() as bool:
- EnqueueCommand (ShellCommand (ShellCommandType.Reset, null))
- return true
-
- def LoadAssembly (assemblyPath as string) as bool:
- EnqueueCommand (ShellCommand (ShellCommandType.Load, assemblyPath))
- return true
-
- References as IList:
- get:
- list = []
- Monitor.Enter (_interpreter)
- for assembly as System.Reflection.Assembly in _interpreter.References:
- try:
- loc = assembly.Location
- list.Add (loc)
- except x:
- continue
- Monitor.Exit (_interpreter)
- return list
-
- def GetOutput() as (string):
- ret as (string)
- try:
- Monitor.Enter (_outputQueue)
-
- if _processing == "true":
- Monitor.Wait (_outputQueue)
-
- if _outputQueue.Count > 0:
- ret = array (string, _outputQueue.Count)
- _outputQueue.CopyTo (ret, 0)
- _outputQueue.Clear()
- ensure:
- Monitor.Pulse (_outputQueue)
- Monitor.Exit (_outputQueue)
-
- return ret
-
- def QueueInput (line as string):
- EnqueueCommand (ShellCommand (ShellCommandType.Eval, line))
-
- def ThreadRun():
- Application.Init()
- GLib.Idle.Add(ProcessCommands)
- try:
- Application.Run()
- except e as System.Threading.ThreadAbortException:
- return
-
- private def ProcessCommands() as bool:
- com as ShellCommand
- try:
- Monitor.Enter (_commandQueue)
- if _commandQueue.Count == 0:
- Monitor.Exit (_commandQueue)
- System.Threading.Thread.Sleep (100)
- return true
-
- com = _commandQueue.Dequeue()
-
- Monitor.Enter(_interpreter)
- if com.Type == ShellCommandType.Eval:
- if com.Data is not null:
- try:
- _interpreter.LoopEval(com.Data)
- except e:
- // Sanitize stack trace to not show method calls
- // from the boo interpreter
- exception = e.InnerException
- message = exception.ToString ()
- reg = Regex ('((.*\\n)*).*Input\\dModule.*', RegexOptions.Multiline)
- match = reg.Match (exception.StackTrace)
- if match is not null:
- if match.Groups.Count >= 3:
- // the [0:-1] is to trim the extra \n hiding on the end of the match
- message = String.Format ("{0}: {1}\n{2}", exception.GetType (),
- exception.Message,
- match.Groups[1].Value[0:-1])
- self.print (message)
-
- elif com.Type == ShellCommandType.Reset:
- _interpreter.Reset()
- elif com.Type == ShellCommandType.Load:
- if com.Data is not null:
- _interpreter.load(com.Data)
-
- Monitor.Exit(_interpreter)
-
- com.Type = ShellCommandType.NoOp
-
- if _commandQueue.Count == 0:
- Monitor.Enter (_outputQueue)
- _processing = "false"
- Monitor.Pulse (_outputQueue)
- Monitor.Exit (_outputQueue)
- except e as ThreadAbortException:
- System.Threading.Thread.ResetAbort ()
- return false
- ensure:
- Monitor.Exit (_commandQueue)
-
- return true
-
- def Run():
- kickOffGuiThread()
-
-
- private def kickOffGuiThread():
- _start as ThreadStart = ThreadRun
- _thread = System.Threading.Thread (_start)
- _thread.IsBackground = true
- _thread.Start ()
-
- private def print(obj):
- Monitor.Enter (_outputQueue)
- _outputQueue.Enqueue(obj.ToString ())
- Monitor.Exit (_outputQueue)
-
- private def EnqueueCommand (command as ShellCommand):
- if not _thread.IsAlive:
- kickOffGuiThread()
-
- try:
- Monitor.Enter (_commandQueue)
-
- _commandQueue.Enqueue (command)
-
- Monitor.Enter (_outputQueue)
- _processing = "true"
- Monitor.Pulse (_outputQueue)
- Monitor.Exit (_outputQueue)
- ensure:
- Monitor.Pulse (_commandQueue)
- Monitor.Exit (_commandQueue)
-
- def Dispose ():
- if _thread.IsAlive:
- _thread.Abort ()
- super ()
-
-public enum ShellCommandType:
- NoOp
- Reset
- Load
- Eval
-
-public struct ShellCommand:
- Type as ShellCommandType
- Data as string
-
- def constructor (type, data):
- self.Type = type
- self.Data = data
diff --git a/extras/BooBinding/BooShell/BooShell.booproj b/extras/BooBinding/BooShell/BooShell.booproj
deleted file mode 100644
index eac4c00af7..0000000000
--- a/extras/BooBinding/BooShell/BooShell.booproj
+++ /dev/null
@@ -1,66 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5">
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <ProductVersion>9.0.21022</ProductVersion>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{87E0A9FD-8DFD-4A3D-93D7-C86F6322CCF4}</ProjectGuid>
- <OutputType>Library</OutputType>
- <UsePartialTypes>false</UsePartialTypes>
- <AssemblyName>BooShell</AssemblyName>
- <TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
- <RootNamespace>BooShell</RootNamespace>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- <DebugSymbols>true</DebugSymbols>
- <DebugType>full</DebugType>
- <OutputPath>..\build</OutputPath>
- <ErrorReport>prompt</ErrorReport>
- <ducky>false</ducky>
- <culture />
- <genwarnings>false</genwarnings>
- <Execution>
- <Execution clr-version="Net_2_0" />
- </Execution>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- <DebugType>none</DebugType>
- <OutputPath>..\..\..\build\AddIns\BackendBindings\</OutputPath>
- <ErrorReport>prompt</ErrorReport>
- <ducky>false</ducky>
- <culture />
- <genwarnings>false</genwarnings>
- <Execution>
- <Execution clr-version="Net_2_0" />
- </Execution>
- </PropertyGroup>
- <ItemGroup>
- <Reference Include="MonoDevelop.Core, Version=1.9.2.0, Culture=neutral">
- <Package>monodevelop</Package>
- </Reference>
- <Reference Include="MonoDevelop.Core.Gui, Version=1.9.2.0, Culture=neutral">
- <Package>monodevelop</Package>
- </Reference>
- <Reference Include="glib-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
- <Reference Include="gtk-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
- </ItemGroup>
- <ItemGroup>
- <Compile Include="BooShell.boo" />
- </ItemGroup>
- <ProjectExtensions>
- <MonoDevelop>
- <Properties>
- <MonoDevelop.Autotools.MakefileInfo RelativeMakefileName="./Makefile.am" BuildTargetName="" CleanTargetName="" SyncReferences="true" IsAutotoolsProject="true" RelativeConfigureInPath="../../../">
- <BuildFilesVar Sync="true" Name="FILES" />
- <DeployFilesVar />
- <ResourcesVar Sync="true" Name="RES" />
- <OthersVar />
- <GacRefVar Sync="true" Name="REFS" Prefix="-r:" />
- <AsmRefVar Sync="true" Name="REFS" Prefix="-r:" />
- <ProjectRefVar Sync="true" Name="REFS" Prefix="-r:" />
- </MonoDevelop.Autotools.MakefileInfo>
- </Properties>
- </MonoDevelop>
- </ProjectExtensions>
-</Project> \ No newline at end of file
diff --git a/extras/BooBinding/BooShell/ChangeLog b/extras/BooBinding/BooShell/ChangeLog
deleted file mode 100644
index 644877c28c..0000000000
--- a/extras/BooBinding/BooShell/ChangeLog
+++ /dev/null
@@ -1,48 +0,0 @@
-2010-03-17 Lluis Sanchez Gual <lluis@novell.com>
-
- * BooShell.boo: Merged MD.Projects into MD.Core, and
- MD.Projects.Gui, MD.Core.Gui and MD.Components into MD.Ide.
-
-2009-12-01 Lluis Sanchez Gual <lluis@novell.com>
-
- * BooShell.booproj: Update.
-
-2009-08-26 Lluis Sanchez Gual <lluis@novell.com>
-
- * BooShell.booproj: We now depend on gtk# 2.12.8, Mono 2.4,
- and Mono.Addins 0.4.
-
-2009-02-23 Lluis Sanchez Gual <lluis@novell.com>
-
- * BooShell.booproj: Updated references.
-
-2009/02/06 Lluis Sanchez Gual <lluis@novell.com>
-
- * BooShell.mds:
- * BooShell.mdp:
- * BooShell.booproj: Migrated to MSBuild file format.
-
-2009-01-26 Michael Hutchinson <mhutchinson@novell.com>
-
- * BooShell.mdp: Flush project format changes.
-
-2008-09-17 Lluis Sanchez Gual <lluis@novell.com>
-
- * BooShell.mdp: Updated projects.
-
-2008-01-17 Lluis Sanchez Gual <lluis@novell.com>
-
- * Makefile: Try to get monodevelop.pc from the local build dir.
-
-2007-12-04 Lluis Sanchez Gual <lluis@novell.com>
-
- * Makefile: Added missing file.
-
-2007-12-04 Lluis Sanchez Gual <lluis@novell.com>
-
- * BooShell.mdp, Makefile.am: Directory reorganization.
-
-2007-11-13 Lluis Sanchez Gual <lluis@novell.com>
-
- * BooShell.boo: The main thread must be a background thread.
-
diff --git a/extras/BooBinding/BooShell/Makefile b/extras/BooBinding/BooShell/Makefile
deleted file mode 100644
index 7c429e0d7d..0000000000
--- a/extras/BooBinding/BooShell/Makefile
+++ /dev/null
@@ -1,97 +0,0 @@
-
-EXTRA_DIST = Makefile
-
-# Warning: This is an automatically generated file, do not edit!
-
-srcdir=.
-top_srcdir=..
-
-include $(top_srcdir)/Makefile.include
-include $(top_srcdir)/config.make
-
-#include $(srcdir)/custom-hooks.make
-
-ifeq ($(CONFIG),DEBUG)
-ASSEMBLY_COMPILER_COMMAND = booc
-ASSEMBLY_COMPILER_FLAGS = -debug
-ASSEMBLY = ../build/BooShell.dll
-ASSEMBLY_MDB = $(ASSEMBLY).mdb
-COMPILE_TARGET = library
-PROJECT_REFERENCES =
-BUILD_DIR = ../build
-
-
-endif
-
-ifeq ($(CONFIG),RELEASE)
-ASSEMBLY_COMPILER_COMMAND = booc
-ASSEMBLY_COMPILER_FLAGS = -debug
-ASSEMBLY = ../build/BooShell.dll
-ASSEMBLY_MDB = $(ASSEMBLY).mdb
-COMPILE_TARGET = library
-PROJECT_REFERENCES =
-BUILD_DIR = ../build
-
-
-endif
-
-INSTALL_DIR = $(DESTDIR)$(prefix)/lib/monodevelop/AddIns/BooBinding
-
-FILES = \
- BooShell.boo
-
-DATA_FILES =
-
-RESOURCES =
-
-EXTRAS =
-
-REFERENCES = \
- -pkg:monodevelop \
- -pkg:glib-sharp-2.0 \
- -pkg:gtk-sharp-2.0
-
-DLL_REFERENCES =
-
-CLEANFILES += $(LINUX_PKGCONFIG)
-
-#Targets
-all: $(ASSEMBLY) $(LINUX_PKGCONFIG) $(top_srcdir)/config.make
-
-
-$(build_xamlg_list): %.xaml.g.cs: %.xaml
- xamlg '$<'
-
-$(build_resx_resources) : %.resources: %.resx
- resgen2 '$<' '$@'
-
-
-LOCAL_PKGCONFIG=PKG_CONFIG_PATH=../../../local-config:$$PKG_CONFIG_PATH
-
-$(ASSEMBLY) $(ASSEMBLY_MDB): $(build_sources) $(build_resources) $(build_datafiles) $(DLL_REFERENCES) $(PROJECT_REFERENCES) $(build_xamlg_list)
- make pre-all-local-hook prefix=$(prefix)
- mkdir -p $(dir $(ASSEMBLY))
- make $(CONFIG)_BeforeBuild
- $(LOCAL_PKGCONFIG) $(ASSEMBLY_COMPILER_COMMAND) $(ASSEMBLY_COMPILER_FLAGS) -out:$(ASSEMBLY) -target:$(COMPILE_TARGET) $(build_sources_embed) $(build_resources_embed) $(build_references_ref)
- make $(CONFIG)_AfterBuild
- make post-all-local-hook prefix=$(prefix)
-
-
-install-local: $(ASSEMBLY) $(ASSEMBLY_MDB)
- make pre-install-local-hook prefix=$(prefix)
- mkdir -p $(INSTALL_DIR)
- cp $(ASSEMBLY) $(ASSEMBLY_MDB) $(INSTALL_DIR)
- mkdir -p $(DESTDIR)$(prefix)/lib/pkgconfig
- make post-install-local-hook prefix=$(prefix)
-
-uninstall-local: $(ASSEMBLY) $(ASSEMBLY_MDB)
- make pre-uninstall-local-hook prefix=$(prefix)
- rm -f $(INSTALL_DIR)/$(notdir $(ASSEMBLY))
- test -z '$(ASSEMBLY_MDB)' || rm -f $(INSTALL_DIR)/$(notdir $(ASSEMBLY_MDB))
- make post-uninstall-local-hook prefix=$(prefix)
-
-install: install-local
-uninstall: uninstall-local
-clean: clean-local
-
-include $(top_srcdir)/rules.make
diff --git a/extras/BooBinding/BooShellPadContent.boo b/extras/BooBinding/BooShellPadContent.boo
deleted file mode 100644
index 562f41affc..0000000000
--- a/extras/BooBinding/BooShellPadContent.boo
+++ /dev/null
@@ -1,51 +0,0 @@
-#region license
-// Copyright (c) 2005, Peter Johanson (latexer@gentoo.org)
-// All rights reserved.
-//
-// BooBinding is free software; you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation; either version 2 of the License, or
-// (at your option) any later version.
-//
-// BooBinding is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with BooBinding; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-#endregion
-
-
-namespace BooBinding.Pads
-
-import System
-
-import MonoDevelop.Core
-import MonoDevelop.Ide.Gui
-import BooBinding.Gui
-
-
-public class BooShellPadContent (AbstractPadContent):
- private static _scroller as Gtk.ScrolledWindow
- private static _shellView as ShellTextView
-
- override Control:
- get:
- if _scroller is null:
- CreateBooShell()
- return _scroller
-
- def CreateBooShell():
- _scroller = Gtk.ScrolledWindow()
- _model = BooShellModel ()
- _shellView = ShellTextView (_model)
- _scroller.Add(_shellView)
- _scroller.ShowAll()
-
- override def Dispose():
- if _shellView != null:
- _shellView.Dispose()
- if _scroller != null:
- _scroller.Dispose()
diff --git a/extras/BooBinding/COPYING b/extras/BooBinding/COPYING
deleted file mode 100644
index 623b6258a1..0000000000
--- a/extras/BooBinding/COPYING
+++ /dev/null
@@ -1,340 +0,0 @@
- GNU GENERAL PUBLIC LICENSE
- Version 2, June 1991
-
- Copyright (C) 1989, 1991 Free Software Foundation, Inc.
- 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
- Everyone is permitted to copy and distribute verbatim copies
- of this license document, but changing it is not allowed.
-
- Preamble
-
- The licenses for most software are designed to take away your
-freedom to share and change it. By contrast, the GNU General Public
-License is intended to guarantee your freedom to share and change free
-software--to make sure the software is free for all its users. This
-General Public License applies to most of the Free Software
-Foundation's software and to any other program whose authors commit to
-using it. (Some other Free Software Foundation software is covered by
-the GNU Library General Public License instead.) You can apply it to
-your programs, too.
-
- When we speak of free software, we are referring to freedom, not
-price. Our General Public Licenses are designed to make sure that you
-have the freedom to distribute copies of free software (and charge for
-this service if you wish), that you receive source code or can get it
-if you want it, that you can change the software or use pieces of it
-in new free programs; and that you know you can do these things.
-
- To protect your rights, we need to make restrictions that forbid
-anyone to deny you these rights or to ask you to surrender the rights.
-These restrictions translate to certain responsibilities for you if you
-distribute copies of the software, or if you modify it.
-
- For example, if you distribute copies of such a program, whether
-gratis or for a fee, you must give the recipients all the rights that
-you have. You must make sure that they, too, receive or can get the
-source code. And you must show them these terms so they know their
-rights.
-
- We protect your rights with two steps: (1) copyright the software, and
-(2) offer you this license which gives you legal permission to copy,
-distribute and/or modify the software.
-
- Also, for each author's protection and ours, we want to make certain
-that everyone understands that there is no warranty for this free
-software. If the software is modified by someone else and passed on, we
-want its recipients to know that what they have is not the original, so
-that any problems introduced by others will not reflect on the original
-authors' reputations.
-
- Finally, any free program is threatened constantly by software
-patents. We wish to avoid the danger that redistributors of a free
-program will individually obtain patent licenses, in effect making the
-program proprietary. To prevent this, we have made it clear that any
-patent must be licensed for everyone's free use or not licensed at all.
-
- The precise terms and conditions for copying, distribution and
-modification follow.
-
- GNU GENERAL PUBLIC LICENSE
- TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
-
- 0. This License applies to any program or other work which contains
-a notice placed by the copyright holder saying it may be distributed
-under the terms of this General Public License. The "Program", below,
-refers to any such program or work, and a "work based on the Program"
-means either the Program or any derivative work under copyright law:
-that is to say, a work containing the Program or a portion of it,
-either verbatim or with modifications and/or translated into another
-language. (Hereinafter, translation is included without limitation in
-the term "modification".) Each licensee is addressed as "you".
-
-Activities other than copying, distribution and modification are not
-covered by this License; they are outside its scope. The act of
-running the Program is not restricted, and the output from the Program
-is covered only if its contents constitute a work based on the
-Program (independent of having been made by running the Program).
-Whether that is true depends on what the Program does.
-
- 1. You may copy and distribute verbatim copies of the Program's
-source code as you receive it, in any medium, provided that you
-conspicuously and appropriately publish on each copy an appropriate
-copyright notice and disclaimer of warranty; keep intact all the
-notices that refer to this License and to the absence of any warranty;
-and give any other recipients of the Program a copy of this License
-along with the Program.
-
-You may charge a fee for the physical act of transferring a copy, and
-you may at your option offer warranty protection in exchange for a fee.
-
- 2. You may modify your copy or copies of the Program or any portion
-of it, thus forming a work based on the Program, and copy and
-distribute such modifications or work under the terms of Section 1
-above, provided that you also meet all of these conditions:
-
- a) You must cause the modified files to carry prominent notices
- stating that you changed the files and the date of any change.
-
- b) You must cause any work that you distribute or publish, that in
- whole or in part contains or is derived from the Program or any
- part thereof, to be licensed as a whole at no charge to all third
- parties under the terms of this License.
-
- c) If the modified program normally reads commands interactively
- when run, you must cause it, when started running for such
- interactive use in the most ordinary way, to print or display an
- announcement including an appropriate copyright notice and a
- notice that there is no warranty (or else, saying that you provide
- a warranty) and that users may redistribute the program under
- these conditions, and telling the user how to view a copy of this
- License. (Exception: if the Program itself is interactive but
- does not normally print such an announcement, your work based on
- the Program is not required to print an announcement.)
-
-These requirements apply to the modified work as a whole. If
-identifiable sections of that work are not derived from the Program,
-and can be reasonably considered independent and separate works in
-themselves, then this License, and its terms, do not apply to those
-sections when you distribute them as separate works. But when you
-distribute the same sections as part of a whole which is a work based
-on the Program, the distribution of the whole must be on the terms of
-this License, whose permissions for other licensees extend to the
-entire whole, and thus to each and every part regardless of who wrote it.
-
-Thus, it is not the intent of this section to claim rights or contest
-your rights to work written entirely by you; rather, the intent is to
-exercise the right to control the distribution of derivative or
-collective works based on the Program.
-
-In addition, mere aggregation of another work not based on the Program
-with the Program (or with a work based on the Program) on a volume of
-a storage or distribution medium does not bring the other work under
-the scope of this License.
-
- 3. You may copy and distribute the Program (or a work based on it,
-under Section 2) in object code or executable form under the terms of
-Sections 1 and 2 above provided that you also do one of the following:
-
- a) Accompany it with the complete corresponding machine-readable
- source code, which must be distributed under the terms of Sections
- 1 and 2 above on a medium customarily used for software interchange; or,
-
- b) Accompany it with a written offer, valid for at least three
- years, to give any third party, for a charge no more than your
- cost of physically performing source distribution, a complete
- machine-readable copy of the corresponding source code, to be
- distributed under the terms of Sections 1 and 2 above on a medium
- customarily used for software interchange; or,
-
- c) Accompany it with the information you received as to the offer
- to distribute corresponding source code. (This alternative is
- allowed only for noncommercial distribution and only if you
- received the program in object code or executable form with such
- an offer, in accord with Subsection b above.)
-
-The source code for a work means the preferred form of the work for
-making modifications to it. For an executable work, complete source
-code means all the source code for all modules it contains, plus any
-associated interface definition files, plus the scripts used to
-control compilation and installation of the executable. However, as a
-special exception, the source code distributed need not include
-anything that is normally distributed (in either source or binary
-form) with the major components (compiler, kernel, and so on) of the
-operating system on which the executable runs, unless that component
-itself accompanies the executable.
-
-If distribution of executable or object code is made by offering
-access to copy from a designated place, then offering equivalent
-access to copy the source code from the same place counts as
-distribution of the source code, even though third parties are not
-compelled to copy the source along with the object code.
-
- 4. You may not copy, modify, sublicense, or distribute the Program
-except as expressly provided under this License. Any attempt
-otherwise to copy, modify, sublicense or distribute the Program is
-void, and will automatically terminate your rights under this License.
-However, parties who have received copies, or rights, from you under
-this License will not have their licenses terminated so long as such
-parties remain in full compliance.
-
- 5. You are not required to accept this License, since you have not
-signed it. However, nothing else grants you permission to modify or
-distribute the Program or its derivative works. These actions are
-prohibited by law if you do not accept this License. Therefore, by
-modifying or distributing the Program (or any work based on the
-Program), you indicate your acceptance of this License to do so, and
-all its terms and conditions for copying, distributing or modifying
-the Program or works based on it.
-
- 6. Each time you redistribute the Program (or any work based on the
-Program), the recipient automatically receives a license from the
-original licensor to copy, distribute or modify the Program subject to
-these terms and conditions. You may not impose any further
-restrictions on the recipients' exercise of the rights granted herein.
-You are not responsible for enforcing compliance by third parties to
-this License.
-
- 7. If, as a consequence of a court judgment or allegation of patent
-infringement or for any other reason (not limited to patent issues),
-conditions are imposed on you (whether by court order, agreement or
-otherwise) that contradict the conditions of this License, they do not
-excuse you from the conditions of this License. If you cannot
-distribute so as to satisfy simultaneously your obligations under this
-License and any other pertinent obligations, then as a consequence you
-may not distribute the Program at all. For example, if a patent
-license would not permit royalty-free redistribution of the Program by
-all those who receive copies directly or indirectly through you, then
-the only way you could satisfy both it and this License would be to
-refrain entirely from distribution of the Program.
-
-If any portion of this section is held invalid or unenforceable under
-any particular circumstance, the balance of the section is intended to
-apply and the section as a whole is intended to apply in other
-circumstances.
-
-It is not the purpose of this section to induce you to infringe any
-patents or other property right claims or to contest validity of any
-such claims; this section has the sole purpose of protecting the
-integrity of the free software distribution system, which is
-implemented by public license practices. Many people have made
-generous contributions to the wide range of software distributed
-through that system in reliance on consistent application of that
-system; it is up to the author/donor to decide if he or she is willing
-to distribute software through any other system and a licensee cannot
-impose that choice.
-
-This section is intended to make thoroughly clear what is believed to
-be a consequence of the rest of this License.
-
- 8. If the distribution and/or use of the Program is restricted in
-certain countries either by patents or by copyrighted interfaces, the
-original copyright holder who places the Program under this License
-may add an explicit geographical distribution limitation excluding
-those countries, so that distribution is permitted only in or among
-countries not thus excluded. In such case, this License incorporates
-the limitation as if written in the body of this License.
-
- 9. The Free Software Foundation may publish revised and/or new versions
-of the General Public License from time to time. Such new versions will
-be similar in spirit to the present version, but may differ in detail to
-address new problems or concerns.
-
-Each version is given a distinguishing version number. If the Program
-specifies a version number of this License which applies to it and "any
-later version", you have the option of following the terms and conditions
-either of that version or of any later version published by the Free
-Software Foundation. If the Program does not specify a version number of
-this License, you may choose any version ever published by the Free Software
-Foundation.
-
- 10. If you wish to incorporate parts of the Program into other free
-programs whose distribution conditions are different, write to the author
-to ask for permission. For software which is copyrighted by the Free
-Software Foundation, write to the Free Software Foundation; we sometimes
-make exceptions for this. Our decision will be guided by the two goals
-of preserving the free status of all derivatives of our free software and
-of promoting the sharing and reuse of software generally.
-
- NO WARRANTY
-
- 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
-FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
-OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
-PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
-OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
-TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
-PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
-REPAIR OR CORRECTION.
-
- 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
-WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
-REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
-INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
-OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
-TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
-YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
-PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
-POSSIBILITY OF SUCH DAMAGES.
-
- END OF TERMS AND CONDITIONS
-
- How to Apply These Terms to Your New Programs
-
- If you develop a new program, and you want it to be of the greatest
-possible use to the public, the best way to achieve this is to make it
-free software which everyone can redistribute and change under these terms.
-
- To do so, attach the following notices to the program. It is safest
-to attach them to the start of each source file to most effectively
-convey the exclusion of warranty; and each file should have at least
-the "copyright" line and a pointer to where the full notice is found.
-
- <one line to give the program's name and a brief idea of what it does.>
- Copyright (C) <year> <name of author>
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-
-
-Also add information on how to contact you by electronic and paper mail.
-
-If the program is interactive, make it output a short notice like this
-when it starts in an interactive mode:
-
- Gnomovision version 69, Copyright (C) year name of author
- Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
- This is free software, and you are welcome to redistribute it
- under certain conditions; type `show c' for details.
-
-The hypothetical commands `show w' and `show c' should show the appropriate
-parts of the General Public License. Of course, the commands you use may
-be called something other than `show w' and `show c'; they could even be
-mouse-clicks or menu items--whatever suits your program.
-
-You should also get your employer (if you work as a programmer) or your
-school, if any, to sign a "copyright disclaimer" for the program, if
-necessary. Here is a sample; alter the names:
-
- Yoyodyne, Inc., hereby disclaims all copyright interest in the program
- `Gnomovision' (which makes passes at compilers) written by James Hacker.
-
- <signature of Ty Coon>, 1 April 1989
- Ty Coon, President of Vice
-
-This General Public License does not permit incorporating your program into
-proprietary programs. If your program is a subroutine library, you may
-consider it more useful to permit linking proprietary applications with the
-library. If this is what you want to do, use the GNU Library General
-Public License instead of this License.
diff --git a/extras/BooBinding/ChangeLog b/extras/BooBinding/ChangeLog
deleted file mode 100644
index a0889f9584..0000000000
--- a/extras/BooBinding/ChangeLog
+++ /dev/null
@@ -1,1099 +0,0 @@
-2010-06-14 Lluis Sanchez Gual <lluis@novell.com>
-
- * configure: Bump MD version.
-
-2010-06-14 Lluis Sanchez Gual <lluis@novell.com>
-
- * Gui/ShellTextView.boo: Track api changes.
-
-2010-05-20 Lluis Sanchez Gual <lluis@novell.com>
-
- * configure: Bump MD version.
-
-2010-04-28 Lluis Sanchez Gual <lluis@novell.com>
-
- * configure:
- * BooBinding.make:
- * BooBinding.booproj:
- * Gui/ShellTextView.boo:
- * Properties/ShellProperties.boo: Get rid of GtkSourceView
- dependency.
-
-2010-03-22 Lluis Sanchez Gual <lluis@novell.com>
-
- * configure:
- * BooBinding.addin.xml: Bumped MD version.
-
-2010-03-17 Lluis Sanchez Gual <lluis@novell.com>
-
- * BooBinding.booproj:
- * BooBinding.addin.xml:
- * Gui/BooShellModel.boo:
- * Gui/ShellTextView.boo:
- * BooShellPadContent.boo:
- * BooLanguageBinding.boo:
- * Properties/ShellProperties.boo:
- * Properties/BooShellProperties.boo:
- * Project/BooCompilerParameters.boo:
- * Gui/OptionPanels/GeneralShellPanel.boo:
- * Gui/OptionPanels/GeneralBooShellPanel.boo:
- * Gui/OptionPanels/CodeCompilationPanel.boo: Merged
- MD.Projects into MD.Core, and MD.Projects.Gui, MD.Core.Gui
- and MD.Components into MD.Ide.
-
-2010-03-01 Lluis Sanchez Gual <lluis@novell.com>
-
- * BooBinding.sln: The invariant policy can't be used anymore
- as base policy set.
-
-2010-02-18 Lluis Sanchez Gual <lluis@novell.com>
-
- * Makefile:
- * configure:
- * rules.make:
- * Makefile.include: Regenerated.
-
- * BooBinding.sln:
- * BooBinding.make:
- * BooBinding.booproj:
- * BooBinding.addin.xml: Moved stock icons to external files.
-
- * BooLanguageBinding.boo:
- * BooBindingCompilerServices.boo: Fix warnings.
-
-2009-12-01 Lluis Sanchez Gual <lluis@novell.com>
-
- * BooBinding.sln:
- * BooBinding.booproj: Update.
-
- * BooBinding.addin.xml: Move the boo options panel to the
- build section.
-
-2009-12-01 Lluis Sanchez Gual <lluis@novell.com>
-
- * Gui/ShellTextView.boo:
- * BooLanguageBinding.boo:
- * BooBindingCompilerServices.boo: Introduced the
- ConfigurationSelector class to all methods that previously
- took a configuration name as string. This eliminates the
- ambiguity between solution configuration names and project
- configuration names.
-
-2009-10-30 Lluis Sanchez Gual <lluis@novell.com>
-
- * configure:
- * BooBinding.addin.xml: Bump MD version.
-
-2009-10-07 Lluis Sanchez Gual <lluis@novell.com>
-
- * configure:
- * BooBinding.addin.xml: Bump MD version.
-
-2009-09-28 Lluis Sanchez Gual <lluis@novell.com>
-
- * Gui/ShellTextView.boo: Use the new DotNetAssemblyProject
- class instead of DotNetProject, which is now abstract.
-
-2009-08-26 Lluis Sanchez Gual <lluis@novell.com>
-
- * configure:
- * BooBinding.booproj: We now depend on gtk# 2.12.8, Mono 2.4,
- and Mono.Addins 0.4.
-
-2009-08-25 Lluis Sanchez Gual <lluis@novell.com>
-
- * BooBinding.sln:
- * BooBinding.booproj: Don't require specific versions.
-
-2009-06-23 Lluis Sanchez Gual <lluis@novell.com>
-
- * Gui/ShellTextView.boo: Track api changes.
-
-2009-06-22 Lluis Sanchez Gual <lluis@novell.com>
-
- * BooBinding.addin.xml: Remove invalid icon.
-
- * BooBindingCompilerServices.boo: Fix bug 324223 - BOO: When
- rebuilding external classes, they are not always reloaded
- correctly. Patch by Manuel de la Pena.
-
- * BooLanguageBinding.boo: Use standard icon for boo projects,
- since boo-project-icon doesn't exist.
-
-2009-06-17 Lluis Sanchez Gual <lluis@novell.com>
-
- * BooBinding.sln:
- * BooBinding.addin.xml:
- * BooLanguageBinding.boo: Remove obsolete extension.
-
-2009-05-04 Lluis Sanchez Gual <lluis@novell.com>
-
- * BooLanguageBinding.boo: Track api changes.
-
-2009-04-20 Michael Hutchinson <mhutchinson@novell.com>
-
- * BooLanguageBinding.boo: Track comment tag API.
-
-2009-04-15 Lluis Sanchez Gual <lluis@novell.com>
-
- * configure:
- * BooBinding.addin.xml: Bump MD version.
-
-2009-03-20 Michael Hutchinson <mhutchinson@novell.com>
-
- * templates/BooGtkSharpProject.xpt.xml: Don't require specific
- GTK# versions.
-
-2009-02-26 Michael Hutchinson <mhutchinson@novell.com>
-
- * BooBinding.sln: Fix translation projects' GUIDs.
-
-2009-02-25 Michael Hutchinson <mhutchinson@novell.com>
-
- * BooBinding.sln: Set policies. Remove unused name attribute.
-
-2009-02-25 Lluis Sanchez Gual <lluis@novell.com>
-
- * BooLanguageBinding.boo: Track api changes.
-
-2009-02-23 Lluis Sanchez Gual <lluis@novell.com>
-
- * BooBinding.booproj: Updated references.
-
-2009-02-18 Cedric Vivier <cedricv@neonux.com>
-
- * BooBindingCompilerServices.boo: Fix build with boo >= 0.8.2.
- Workaround for BOO-1167 (wrt to ProjectItemCollection constraints).
-
-2009-02-11 Lluis Sanchez Gual <lluis@novell.com>
-
- * BooLanguageBinding.boo:
- * BooBindingCompilerServices.boo: Track API changes. Use the
- new ProjectItem collection.
-
-2009/02/06 Lluis Sanchez Gual <lluis@novell.com>
-
- * BooBinding.sln: Flush.
-
-2009/02/06 Lluis Sanchez Gual <lluis@novell.com>
-
- * BooBinding.mds:
- * BooBinding.sln:
- * BooBinding.mdp:
- * BooBinding.booproj: Migrated to MSBuild file format.
-
-2009/02/03 Lluis Sanchez Gual <lluis@novell.com>
-
- * configure:
- * BooBinding.addin.xml: Bump MD version.
-
-2009-01-26 Michael Hutchinson <mhutchinson@novell.com>
-
- * BooBinding.mdp: Flush project format changes.
-
-2008-12-09 Lluis Sanchez Gual <lluis@novell.com>
-
- * BooBinding.mdp: Don't require a specific version of Mono.Addins.
-
-2008-11-19 Lluis Sanchez Gual <lluis@novell.com>
-
- * BooBinding.addin.xml: Remove boo ambience. It's not yet implemented.
-
-2008-11-05 Lluis Sanchez Gual <lluis@novell.com>
-
- * configure:
- * BooBinding.addin.xml: Bump MD version.
-
-2008-11-04 Michael Hutchinson <mhutchinson@novell.com>
-
- * Gui/OptionPanels/CodeCompilationPanel.boo: Show widgets, or the
- panel's invisible. Don't allow user to modify output type if
- project's library based, so the user can't mess up ASP.NET and
- Moonlight projects.
-
-2008-10-10 Michael Hutchinson <mhutchinson@novell.com>
-
- * BooBinding.addin.xml: Disable text editor extension since class is
- commented out.
-
-2008-10-02 Michael Hutchinson <mhutchinson@novell.com>
-
- * Gui/BooShellModel.boo: Track removal of service APIs.
-
-2008-10-01 Michael Hutchinson <mhutchinson@novell.com>
-
- * BooBindingCompilerServices.boo: Track API.
-
-2008-09-17 Lluis Sanchez Gual <lluis@novell.com>
-
- * BooBinding.mdp: Updated projects.
-
-2008-09-12 Mike Krüger <mkrueger@novell.com>
-
- * BooAmbience.boo, Gui/ShellTextView.boo,
- Gui/BooTextEditorExtension.boo, BooLanguageBinding.boo,
- Parser/ExpressionTypeVisitor.boo, Parser/Resolver.boo,
- Parser/ReturnType.boo, Parser/ExpressionFinder.boo,
- Parser/BooParser.boo, Parser/TypeMembers.boo, Parser/Tree.boo,
- Parser/VariableLookupVisitor.boo, Parser/Visitor.boo: Updated boo
- binding.
-
-2008-08-22 Michael Hutchinson <mhutchinson@novell.com>
-
- * Gui/OptionPanels/GeneralBooShellPanel.boo,
- Gui/OptionPanels/GeneralShellPanel.boo: Rename "Properties"
- property to "ShellProperties", as it conflicts with new property on
- GLib.Object in GTK# 2.12.
-
-2008-07-21 Lluis Sanchez Gual <lluis@novell.com>
-
- * Project/BooCompilerParameters.boo: Moved serialization engine to
- MonoDevelop.Core. Use new syntax for specifying attribute scope.
-
-2008-06-04 Lluis Sanchez Gual <lluis@novell.com>
-
- * configure, BooBinding.addin.xml: Bump MD version.
-
-2008-05-28 Michael Hutchinson <mhutchinson@novell.com>
-
- * po/Makefile: Remove bash-isms.
-
-2008-05-22 Lluis Sanchez Gual <lluis@novell.com>
-
- * BooBinding.addin.xml: Merged the extension points for project and
- solution option panels into a single extension point. A single
- extension point will now be used for all kinds of items. Extension
- conditions can be used to make panels visible only for some
- specific item types.
-
-2008-05-22 Lluis Sanchez Gual <lluis@novell.com>
-
- * BooBindingCompilerServices.boo, BooLanguageBinding.boo: Replaced
- ICompilerResult/DefaultCompilerResult/CompilerResults by a new
- BuildResult class, which has owner information at error level, so
- it is possible to know which project generated an error when
- building a solution. Updated Task and TaskService to use the new
- owner information.
-
-2008-05-21 Lluis Sanchez Gual <lluis@novell.com>
-
- * Gui/ShellTextView.boo, Gui/OptionPanels/CodeCompilationPanel.boo,
- BooBinding.addin.xml, BooBindingCompilerServices.boo,
- Parser/Resolver.boo, Parser/ReturnType.boo, Parser/BooParser.boo,
- BooLanguageBinding.boo, BooBinding.mds: New project model changes.
- * BooBinding.mdp: Added new error regex.
-
-2008-05-08 Michael Hutchinson <mhutchinson@novell.com>
-
- * BooBinding.addin.xml: Set "isText" attribute on the mimetype
- definitions.
-
-2008-04-11 Lluis Sanchez Gual <lluis@novell.com>
-
- * BooBinding.addin.xml: Use the new mime type extension to register new
- file types.
-
-2008-03-10 Lluis Sanchez Gual <lluis@novell.com>
-
- * Gui/OptionPanels/GeneralShellPanel.boo, BooBinding.mdp,
- BooBinding.addin.xml: Added icon to options panel. Removed unused
- file.
-
-2008-03-07 Michael Hutchinson <mhutchinson@novell.com>
-
- * Gui/OptionPanels/GeneralShellPanel.boo :
- * BooBinding.addin.xml: Track optional panel API changes.
-
-2008-02-24 Enver ALTIN <ealtin@gmail.com>
-
- * po/tr.po: Updated Turkish translation.
-
-2008-02-20 Lluis Sanchez Gual <lluis@novell.com>
-
- * Gui/BooTextEditorExtension.boo: Fix for bug #361267 - Boo Code Completion
- appends instead of replaces what you've typed.
-
-2008-02-14 Michael Hutchinson <mhutchinson@novell.com>
-
- * Gui/BooShellModel.boo: Fix path to BooShell.dll.
-
-2008-02-11 Lluis Sanchez Gual <lluis@novell.com>
-
-
-
-2008-02-05 Lluis Sanchez Gual <lluis@novell.com>
-
- * BooLanguageBinding.boo: Added trick to support imports defined outside of
- a namespace declaration. Fixes bug #358368.
-
-2008-02-05 Lluis Sanchez Gual <lluis@novell.com>
-
-
-
-2008-02-05 Lluis Sanchez Gual <lluis@novell.com>
-
- * COPYING, Makefile: Added COPYING file with GPL2 license.
-
-2008-01-28 Michael Hutchinson <mhutchinson@novell.com>
-
- * po/nl.po: Updated translation by André Offringa.
- * po/es.po: Updated translation by Andrés G. Aragoneses.
- * po/de.po: Updated translation by anonymous GHOP student.
-
-2008-01-25 Lluis Sanchez Gual <lluis@novell.com>
-
- * configure, BooBinding.addin.xml: Update MD version.
-
-2008-01-24 David Makovský (Yakeen) <yakeen@sannyas-on.net>
-
- * cs.po: Updated translation.
-
-2008-01-23 Atsushi Enomoto <atsushi@ximian.com>
-
- * po/ja.po : made it 100% up-to-date.
-
-2008-01-22 Michael Hutchinson <mhutchinson@novell.com>
-
- * po/messages.po: Add to svn so that translators don't have to build MD.
- * po/hu.po: Added new translation.
- * po/po.mdse:
- * po/Makefile: Updated. Fix update-po target and add statistics target.
-
-2008-01-22 Lluis Sanchez Gual <lluis@novell.com>
-
- * po/gl.po, po/cs.po, po/pt_BR.po, po/fr.po, po/es.po, po/sl_SI.po,
- po/nl.po, po/pl.po, po/it.po, po/pt.po, po/ca.po, po/da.po, po/tr.po,
- po/ru.po, po/po.mdse, po/de.po, po/sv.po, po/ja.po, po/zh_TW.po,
- po/id.po, po/zh_CN.po: Updated translations.
-
-2008-01-15 Michael Hutchinson <mhutchinson@novell.com>
-
- * templates/BooGtkSharpProject.xpt.xml, templates/BooLibraryProject.xpt.xml,
- templates/BooGtkSharpWindow.xft.xml, templates/EmptyBooFile.xft.xml,
- templates/EmptyBooProject.xpt.xml: Make template categories
- translatable.
-
-2008-01-11 Michael Hutchinson <mhutchinson@novell.com>
-
- * Gui/ShellTextView.boo: Use PropertyService.ConfigPath instead of
- hardcoding config location.
- * templates/BooLibraryProject.xpt.xml: Use CodeDOM to generate class file.
- Fixes "Bug 350626 - Boo templates syntactically incorrect".
-
-2008-01-02 Michael Hutchinson <mhutchinson@novell.com>
-
- * templates/BooGtkSharpWindow.xft.xml: Use ${EscapedIdentifier} instead of
- ${Name} so that classes/files can be named as language keywords.
-
-2007-12-29 David Makovský (Yakeen) <yakeen@sannyas-on.net>
-
- * po/cs.po: updated translation
-
-2007-12-17 Lluis Sanchez Gual <lluis@novell.com>
-
- * Gui/ShellTextView.boo: Track api changes.
- * BooBinding.make, BooBinding.mdp, configure: Add missing dependencies.
-
-2007-12-17 Lluis Sanchez Gual <lluis@novell.com>
-
- * configure: Updated add-in versions.
-
-2007-12-13 Lluis Sanchez Gual <lluis@novell.com>
-
- * BooBinding.make, BooBinding.mdp: Synch the makefile with the mdp.
-
-2007-12-12 Lluis Sanchez Gual <lluis@novell.com>
-
- * BooBinding.addin.xml: Bump add-in versions.
-
-2007-12-05 Lluis Sanchez Gual <lluis@novell.com>
-
- * configure, BooBinding.make, BooBinding.mdp: Remove cecil dependency. Not
- needed.
-
-2007-12-05 Lluis Sanchez Gual <lluis@novell.com>
-
- * configure: Use bash to run the config scripts.
-
-2007-12-04 Lluis Sanchez Gual <lluis@novell.com>
-
- * po/Makefile: Fix installation of .mo files.
-
-2007-12-04 Lluis Sanchez Gual <lluis@novell.com>
-
- * configure, BooBinding.make, BooBinding.addin.xml, BooBinding.mdp,
- BooBinding.mds, Makefile.include, rules.make, Makefile.am,
- monodevelop-boo.pc.in, Makefile, po, po/gl.po, po/cs.po, po/pt_BR.po,
- po/fr.po, po/es.po, po/sl_SI.po, po/pl.po, po/it.po, po/pt.po, po/ca.po,
- po/da.po, po/tr.po, po/ru.po, po/sv.po, po/de.po, po/po.mdse, po/ja.po,
- po/zh_TW.po, po/Makefile, po/zh_CN.po: Directory reorganization.
-
-2007-11-13 Lluis Sanchez Gual <lluis@novell.com>
-
- * Gui/BooShellModel.boo: Cleanly return from the main thread if an exception
- is thrown.
-
-2007-11-09 Michael Hutchinson <mhutchinson@novell.com>
-
- * Parser/BooParser.boo: Track LoggingService API changes.
-
-2007-10-29 Lluis Sanchez Gual <lluis@novell.com>
-
- * BooBinding.addin.xml: Bump MD version.
-
-2007-10-29 Lluis Sanchez Gual <lluis@novell.com>
-
- * BooShell/BooShell.boo: Don't try to abort the shell thread if it is
- already stopped.
- * BooShell/BooShell.mdp: Update.
-
-2007-10-29 Lluis Sanchez Gual <lluis@novell.com>
-
- * BooBinding.addin.xml: Track changes in the Icon extension node.
-
-2007-10-25 Lluis Sanchez Gual <lluis@novell.com>
-
- * templates/BooGtkSharpWindow.xft.xml, templates/EmptyBooFile.xft.xml: Use
- tango file icons. Removed obsolete icons.
-
-2007-10-24 Lluis Sanchez Gual <lluis@novell.com>
-
- * BooBinding.mdp, BooBinding.mds, templates/BooGtkSharpProject.xpt.xml,
- templates/BooLibraryProject.xpt.xml, templates/EmptyBooProject.xpt.xml,
- Makefile.am, icons/Boo.Project.Form, icons/Boo.Project.EmptyProject,
- icons/boo-icon-32.png, icons/Boo.ProjectIcon: Updated project icons. Use
- the base project icon with an overlay to show the type.
-
-2007-10-04 Lluis Sanchez Gual <lluis@novell.com>
-
- * Gui/BooTextEditorExtension.boo: When completing 'as', don't try to resolve
- empty expressions. Fixes bug #324224.
-
-2007-10-03 Lluis Sanchez Gual <lluis@novell.com>
-
- * Parser/Resolver.boo, Parser/Visitor.boo: Track API changes.
-
-2007-09-21 Lluis Sanchez Gual <lluis@novell.com>
-
- * BooBinding.addin.xml: Bump MD version.
-
-2007-09-20 Lluis Sanchez Gual <lluis@novell.com>
-
- * BooBinding.addin.xml: Added an Other section in the MD property dialog and
- moved some options there to avoid too many branches.
-
-2007-09-14 Lluis Sanchez Gual <lluis@novell.com>
-
- * BooAmbience.boo: Track api changes.
- * BooBinding.mdp, BooShell/BooShell.mdp: Updated.
-
-2007-09-07 Lluis Sanchez Gual <lluis@novell.com>
-
- * Gui/BooTextEditorExtension.boo: Track api changes.
- * BooShell/BooShell.boo: Don't propagate abort exception to the gtk thread.
-
-2007-09-04 Michael Hutchinson <MHutchinson@novell.com>
-
- * BooShell/BooShell.boo: Catch ThreadAbortException when killing
- remote process.
-
-2007-09-03 Michael Hutchinson <MHutchinson@novell.com>
-
- * Properties/ShellProperties.boo: better workaround for Boo compiler
- bug.
-
-2007-09-01 Michael Hutchinson <m.j.hutchinson@gmail.com>
-
- * Gui/ShellTextView.boo, Properties/ShellProperties.boo,
- Gui/OptionPanels/CodeCompilationPanel.boo: Track Properties API
- changes. May have unavoidably introduced some instability in working
- around Boo compiler bug http://jira.codehaus.org/browse/BOO-856
- (incorrect resolution of overloaded generic methods).
-
- * Parser/ExpressionTypeVisitor.boo: Track Boo AST library API change.
-
-2007-08-31 Michael Hutchinson <m.j.hutchinson@gmail.com>
-
- * Gui/ShellTextView.boo, Properties/ShellProperties.boo: Track API
- changes.
-
-2007-08-09 Lluis Sanchez Gual <lluis@novell.com>
-
- * BooBinding.addin.xml, BooBinding.mdp, BooShell/Makefile.am, Makefile.am:
- Reorganized the extension point hierarchy. Embedded all add-in manifests
- as resources.
-
-2007-07-19 Lluis Sanchez Gual <lluis@novell.com>
-
- * BooBinding.addin.xml, BooShellPadContent.boo: Updated pad icons.
-
-2007-07-13 Lluis Sanchez Gual <lluis@novell.com>
-
- * Gui/ShellTextView.boo: Track api changes.
-
-2007-05-31 Lluis Sanchez Gual <lluis@novell.com>
-
- * templates/BooLibraryProject.xpt.xml: Get template icon from
- resources.
-
-2007-05-28 Lluis Sanchez Gual <lluis@novell.com>
-
- * BooBinding.mdp, Makefile.am: Make sure the correct Mono.Cecil dll is
- referenced.
-
-2007-05-17 Lluis Sanchez Gual <lluis@novell.com>
-
- * BooShellPadContent.boo: Added null check.
-
-2007-05-14 Lluis Sanchez Gual <lluis@novell.com>
-
- * BooBinding.mdp, BooShell/BooShell.mdp, BooShell/Makefile.am,
- Makefile.am: Added missing references.
-
-2007-05-11 Lluis Sanchez Gual <lluis@novell.com>
-
- * BooBinding.mdp: Copy the .addins.xml file to the output dir.
-
-2007-05-11 Lluis Sanchez Gual <lluis@novell.com>
-
- * BooBinding.mdp, BooShell/BooShell.mdp, BooShell/Makefile.am,
- Makefile.am: Fix the build, again.
-
-2007-05-10 Lluis Sanchez Gual <lluis@novell.com>
-
- * BooBinding.mdp, BooShell/BooShell.mdp, BooShell/Makefile.am,
- Makefile.am: Fix build.
-
-2007-05-09 Lluis Sanchez Gual <lluis@novell.com>
-
- * BooBinding.mdp, BooShell/BooShell.mdp, BooShell/Makefile.am,
- Makefile.am: Reference shared assemblies from the correct location.
- * BooShellPadContent.boo: Fix the build.
-
-2007-05-04 Lluis Sanchez Gual <lluis@novell.com>
-
- * Gui/OptionPanels/GeneralBooShellPanel.boo,
- Gui/OptionPanels/GeneralShellPanel.boo,
- Gui/OptionPanels/CodeCompilationPanel.boo, BooBinding.addin.xml,
- BooBinding.mdp, BooShellPadContent.boo, BooShell/BooShell.mdp,
- BooShell/Makefile.am, Makefile.am: Migration to Mono.Addins.
-
-2007-04-19 Lluis Sanchez Gual <lluis@novell.com>
-
- * BooBinding.mdp, BooShell/BooShell.mdp: Don't copy referenced
- assemblies.
-
-2007-02-27 Lluis Sanchez Gual <lluis@novell.com>
-
- * FormattingStrategy/BooFormattingStrategy.boo: Track api changes.
-
-2007-02-16 Lluis Sanchez Gual <lluis@novell.com>
-
- * BooBinding.addin.xml: Change add-in versions to 0.13.
- * BooShell/Makefile.am: Flush.
-
-2007-02-15 Lluis Sanchez Gual <lluis@novell.com>
-
- * BooBinding.mdp, BooShell/BooShell.mdp, BooShell/Makefile.am,
- Makefile.am: Synchronized the MD project and the Makefile
- * BooBinding.mds: Updated.
-
-2007-02-12 Lluis Sanchez Gual <lluis@novell.com>
-
- * Gui/BooTextEditorExtension.boo: Handle code completion only for boo
- files.
-
-2007-02-09 Peter Johanson <latexer@gentoo.org>
-
- * BooBinding.addin.xml:
- * Gui/BooTextEditorExtension.boo:
- * Makefile.am:
-
- Add new BooTextEditorExtension to start supporting minimal completion
- again.
-
- * Parser/BooParser.boo:
- * Parser/Resolver.boo:
-
- Beginnings of an implementation of IsAsResolve, needs finishing at
- some point.
-
-2007-01-29 Lluis Sanchez Gual <lluis@novell.com>
-
- * Gui/ShellTextView.boo: Temporarily disabled code completion in the
- shell. Some changes are needed to use the new api.
- * Parser/TypeMembers.boo, Parser/Visitor.boo: Track api changes.
-
-2007-01-02 Mart Roosmaa <roosmaa@gmail.com>
-
- * Parser/Resolver.boo: Adopt to changes made in rev 62253.
-
-2006-12-14 Lluis Sanchez Gual <lluis@novell.com>
-
- * Parser/Resolver.boo, Parser/ReturnType.boo, Parser/BooParser.boo,
- Parser/TypeMembers.boo, Parser/Tree.boo, Parser/Visitor.boo:
- Renamed Abstract* classes to Default*. Removed some unnecessary
- Default* subclasses.
-
-2006-11-11 David Makovský (Yakeen) <yakeen@sannyas-on.net>
-
- * Gui/OptionPanels/CodeCompilationPanel.boo: fix for bug 79199
-
-2006-09-21 Lluis Sanchez Gual <lluis@novell.com>
-
- * Gui/ShellTextView.boo: Track API changes.
-
-2006-09-19 Jacob Ilsø Christensen <jacobilsoe@gmail.com>
-
- * .: Added svn:ignore for BooBinding.pidb
- * BooShell: Added svn:ignore for BooShell.pidb
-
-2006-09-12 Jacob Ilsø Christensen <jacobilsoe@gmail.com>
-
- * BooAmbience.boo: Track changes in Ambience.
-
-2006-08-10 Lluis Sanchez Gual <lluis@novell.com>
-
- * Gui/ShellTextView.boo: Provide the ambience to use for code
- completion.
-
-2006-07-11 Philip Turnbull <philip.turnbull@gmail.com>
-
- * BooBinding/BooAmbience.cs:
- Track API changes in Ambience.
-
-2006-07-03 Lluis Sanchez Gual <lluis@novell.com>
-
- * Parser/BooParser.boo:
- * BooBindingCompilerServices.boo: Track changes in ProjectReference.
-
-2006-07-05 Matej Urbas <matej.urbas@gmail.com>
-
- * Parser/Visitor.boo: Updated to use ReturnType as BaseTypes in IClass
- instances.
-
-2006-07-03 Lluis Sanchez Gual <lluis@novell.com>
-
- * BooBinding.addin.xml: Updated versions.
-
-2006-06-15 Lluis Sanchez Gual <lluis@novell.com>
-
- * BooBinding.addin.xml: Use the DataType element instead fof Class
- to declare serializable types.
-
-2006-05-22 Lluis Sanchez Gual <lluis@novell.com>
-
- * Makefile.am:
- * BooBinding.mdp: Removed SharpRefactory reference.
-
-2006-05-04 Lluis Sanchez Gual <lluis@novell.com>
-
- * BooBinding.addin.xml: Updated versions.
-
- * BooShell/BooShell.mdp:
- * BooBinding.mdp: Updated.
-
-2006-04-21 Lluis Sanchez Gual <lluis@novell.com>
-
- * BooLanguageBinding.cs: Implement GetSupportedClrVersions.
-
-2006-04-07 David Makovský (Yakeen) <yakeen@sannyas-on.net>
-
- * BooBinding.addin.xml: renamed attribute in FileFilter Extension
-
-2006-04-03 Lluis Sanchez Gual <lluis@novell.com>
-
- * BooBinding.addin.xml: Add boo assembly dependency.
-
-2006-03-30 Lluis Sanchez Gual <lluis@novell.com>
-
- * BooBinding.addin.xml: Updated references.
-
-2006-03-24 Jacob Ilsø Christensen <jacobilsoe@gmail.com>
-
- * BooShell/: Added Makefile and Makefile.in to svn:ignore.
-
-2006-03-24 Lluis Sanchez Gual <lluis@novell.com>
-
- * BooShell/BooShell.mdp:
- * BooBinding.mdp:
- * BooBinding.mds: Updated.
- * Makefile.am: Use an unified format. Patch by Matze Braun.
- * BooBinding.addin.xml: Updated add-in versions.
-
-2006-02-24 Lluis Sanchez Gual <lluis@novell.com>
-
- * BooBinding/BooShell/BooShell.mdp:
- * BooBinding/BooBinding.mdp: Updated references.
-
-2005-02-07 Peter Johanson <latexer@gentoo.org>
-
- * BooBinding.addin.xml: Update imports to get BooShell.dll to be
- bundled as well.
-
-2006-01-30 Lluis Sanchez Gual <lluis@novell.com>
-
- * Parser/BooParser.boo:
- * Parser/Resolver.boo: Track changes in parser api.
-
-2006-01-11 Lluis Sanchez Gual <lluis@novell.com>
-
- * Parser/ExpressionFinder.boo:
- * Parser/BooParser.boo: Track api changes.
-
-2006-01-10 Lluis Sanchez Gual <lluis@novell.com>
-
- * BooBinding.mdp: Updated references.
- * Parser/BooParser.boo: Track api changes.
-
-2005-12-19 Peter Johanson <latexer@gentoo.org>
-
- * Parser/Resolver.boo: Add overload for doing a deep search for a
- type.
- * Parser/ExpressionTypeVisitor.boo: Do deep searches for members, as
- we may have a member of a type not found in explicitly referenced
- assemblies.
-
-2005-12-13 Lluis Sanchez Gual <lluis@novell.com>
-
- * Parser/BooParser.boo: Track changes in the api.
- * BooLanguageBinding.boo: Implemented the new methods in
- IDotNetLanguageBinding.
- * templates/*: Set the correct category, language and project type.
-
-2005-11-25 Rodrigo B. de Oliveira <rodrigobamboo@gmail.com>
-
- * Gui/ShellTextView.boo: 'in' operator now requires a proper array argument
- * Parser/ExpressionTypeVisitor.boo: AsExpression -> TryCastExpression,
- TernaryExpression -> ConditionalExpression
-
-2005-11-16 Peter Johanson <latexer@gentoo.org>
-
- * Parser/Resolver.boo: Remove some unneeded code, and properly resolve
- 'self' and 'super' when inside a static context.
-
-2005-11-16 Rodrigo B. de Oliveira <rodrigobamboo@gmail.com>
-
- * Gui/ShellTextView.boo: fix EndIter error that caused prompt not to
- be displayed
-
-2005-11-04 Lluis Sanchez Gual <lluis@novell.com>
-
- * Gui/ShellTextView.boo: Fix gtksourceview warning.
-
-2005-11-01 Peter Johanson <latexer@gentoo.org>
-
- * BooShell/BooShell.boo: Actually handle exceptions thrown during
- excecution of user input, and toss back a sanitized string of the
- exception.
-
-2005-10-30 Peter Johanson <latexer@gentoo.org>
-
- * FormattingStrategy/*:
- * BooBinding.addin.xml:
- * Makefile.am: Initial smart formatting support. Still *very* basic.
-
-2005-10-11 Lluis Sanchez Gual <lluis@novell.com>
-
- * BooBinding.addin.xml: Fixed addin header information.
- Use "id" attribuet instead of "name" to identify addins.
-
-2005-10-06 Lluis Sanchez Gual <lluis@novell.com>
-
- * BooBinding.addin.xml:
- * BooLanguageBinding.cs: Register serializable types in the addin
- configuration file.
-
-2005-10-04 Lluis Sanchez Gual <lluis@novell.com>
-
- * BooBinding.addin.xml: Added addin dependencies.
-
-2005-09-23 Peter Johanson <latexer@gentoo.org>
-
- * Gui/BooShellModel.boo: Wrap all access to remote process object in
- try/except to handle nasty remoting exception. Not really a fix.
-
-2005-08-29 Peter Johanson <latexer@gentoo.org>
-
- * Parser/Visitor.boo: Fix line number off-by-one error.
-
-2005-08-23 Peter Johanson <latexer@gentoo.org>
-
- * BooBindingCompilerServices.boo: Add support for compiling in
- embedded resources from projects.
-
-2005-08-21 Peter Johanson <latexer@gentoo.org>
-
- * tempaltes/*: Fix icon references to use new resource naming
- convention.
-
-2005-08-21 Peter Johanson <latexer@gentoo.org>
-
- * Makefile.am: Use new -embedres option in boo.
- * BooShell/BooShell.boo: Fix foreach over a CollectionBase.
- * Gui/OptionPanels/CodeCompilationPanel.boo: Fix required for boo's
- new method invocation changes.
-
-2005-08-20 Peter Johanson <latexer@gentoo.org>
-
- * templates/BooGtkSharpProject.xpt.xml: Fix gtk-sharp references to
- match new assembly versions.
-
-2005-08-12 Lluis Sanchez Gual <lluis@novell.com>
-
- * templates/*:
- * BooBinding.addin.xml: Properly reference resource icons and
- templates.
- * Makefile.am: Embed icon and templates as resources.
-
-2005-08-15 Peter Johanson <latexer@gentoo.org>
-
- * Gui/ShellTextvView: Fix file sharing violation that killed multiple
- MD instances when the boo shell was enabled.
-
-2005-08-10 Peter Johanson <latexer@gentoo.org>
-
- * Gui/ShellTextView.boo: Fix small problem with
- blank lines being accept, and causing errors in the interpreter.
-
-2005-08-10 Peter Johanson <latexer@gentoo.org>
-
- * Parser/ExpressionTypeVisitor.boo:
- * Parser/Resolver.boo:
- * Parser/ReturnType.boo:
- * Parser/ExpressionFinder.boo:
- * Parser/BooParser.boo:
- * Parser/VariableLookupVisitor.boo:
- * Parser/Visitor.boo: Add better error reporting via logging by type.
-
-2005-08-09 Lluis Sanchez Gual <lluis@novell.com>
-
- * Parser/ReturnType.boo:
- * Parser/ExpressionTypeVisitor.boo:
- * Parser/Resolver.boo:
- * Parser/BooParser.boo:
- * Gui/ShellTextView.boo: Use the new IParserContext API.
-
-2005-07-20 Lluis Sanchez Gual <lluis@novell.com>
-
- * Gui/OptionPanels/GeneralShellPanel.boo:
- * Gui/OptionPanels/GeneralBooShellPanel.boo:
- * Gui/OptionPanels/CodeCompilationPanel.boo:
- Removed unused namespace import.
-
-2005-07-20 Peter Johanson <latexer@gentoo.org>
-
- * Gui/IShellModel.boo:
- * Gui/ShellTextView.boo:
- * Gui/BooShellModel.boo:
- * Gui/OptionPanels/CodeCompilationPanel.boo:
- * Properties/ShellProperties.boo:
- * Parser/Resolver.boo:
- * Parser/BooParser.boo:
- * BooShellPadContent.boo:
- * BooShell/BooShell.boo: Lots of cleanup, and add initial support for
- code completion in the shell.
- * Makefile.am: Revert makefile change that snuck in.
-
-2005-07-19 Peter Johanson <latexer@gentoo.org>
-
- * templates/BooGtkSharpWindow.xft.xml: Fix small typo.
-
-2005-07-19 Peter Johanson <latexer@gentoo.org>
-
- * BooAmbience: Changes to consolidate code, and actually markup the
- items if IncludePangoMarkup is set.
-
-2005-07-18 Peter Johanson <latexer@gentoo.org>
-
- * BooBinding.addin.xml: Put the boo shell on the bottom by default.
-
-2005-07-18 Peter Johanson <latexer@gentoo.org>
-
- * Parser/Resolver.boo:
- * BooLanguageBinding.boo: Remove some extraneous ';' characters, and
- use the new 'char()' literal instead of the previous hack for getting
- a char.
-
-2005-07-13 Lluis Sanchez Gual <lluis@novell.com>
-
- * BooShellPadContent.boo: Make sure all shell controls are visible.
-
-2005-07-11 Lluis Sanchez Gual <lluis@novell.com>
-
- * Project/BooCompilerParameters.boo: Implement ICloneable.
- * BooLanguageBinding.boo: CreateCompilationParameters now returns an
- ICloneable.
-
-2005-06-04 Peter Johanson <latexer@gentoo.org>
-
- * Gui/OptionPanels/CodeCompilationPanel.boo:
- * Project/BooCompilerParameters.boo: Remove compiler selection items,
- as they are unneeded now that we use Boo's API for compilation
-
-2005-06-02 Peter Johanson <latexer@gentoo.org>
-
- * Parser/BooParser.boo: Re-apply change to include
- ProcessMethodBodies step in the visitor. Problems this change caused
- have been resolved elsewhere.
- * Parser/Visitor.boo: Use the region of the property if the region for
- the getter/setter is null (happens with [Getter()], etc AST
- attributes).
-
-2005-05-31 Peter Johanson <latexer@gentoo.org>
-
- * BooBindingCompilerServices.boo: Make sure we
- only generate the assembly in the file, not
- loaded into memory.
-
-2005-05-30 Peter Johanson <latexer@gentoo.org>
-
- * Parser/TypeMembers.boo: Cleanup, and add handling
- of get/set for properties properly.
- * Parser/Visitor.boo: Handling of get/set for properties,
- move to using FullName where appropriate for class members,
- and set enum return types to null.
-
-2005-05-30 Peter Johanson <latexer@gentoo.org>
-
- * Parser/Visitor.boo: Only abort parsing on parser
- errors. We may have type binding errors that should be
- ignored, since we do the resolving of those ourselves.
- * Parser/TypeMembers.boo: Constructors should have a fully
- qualified name of 'ctor', not '#ctor'.
- * Parser/Resolver.boo: Fix problem with 'super' not always
- finding the super class.
-
-2005-05-29 Peter Johanson <latexer@gentoo.org>
-
- * BooBindingCompilerServices.boo: Redo most of the
- compiler stuff to use the Boo API instead of calling
- out to booc in a seperate process. Is faster, and removes
- the gross regexes previously used to parse errors.
-
-2005-05-27 Peter Johanson <latexer@gentoo.org>
-
- * Parser/*: Various cleanups of print statements,
- as well as various fixes to improve resolution of
- fields and local variables.
-
-2005-05-24 Peter Johanson <latexer@gentoo.org>
-
- * Parser/BooParser.boo: One small fix to return
- a new CompilationUnit instead of null in case
- of a failed parse attempt.
-
-2005-05-24 Peter Johanson <latexer@gentoo.org>
-
- * Parser/Visitor.boo: Cull out compiler
- generated fields, and note if errors occured
- before this visitor and return immediate if so.
- * Parser/BooParser.boo: Keep a cache of successful
- parser results, and return those for any files that
- error out due to syntax errors, etc.
-
-2005-05-22 Peter Johanson <latexer@gentoo.org>
-
- * Parser/Resolver.boo: More cleanups,
- and make static/non-static member showing work
- properly.
-
-2005-05-22 Peter Johanson <latexer@gentoo.org>
-
- * Parser/BooParser.boo:
- * Parser/Resolver.boo: Various small cleanups
- * Parser/Visitor.boo: Some small cleanups, and parse
- events now as well.
-
-2005-05-21 Peter Johanson <latexer@gentoo.org>
-
- * BooShellPadContent.cs: Make the pad placement
- easier to find when first viewing the shell.
-
-2005-05-21 Peter Johanson <latexer@gentoo.org>
-
- * Parser/BooParser.boo: Move filename assignment to
- after parsing is complete. Makes the class browser (mostly)
- work now.
-
-2005-05-19 Peter Johanson <latexer@gentoo.org>
-
- * BooBinding.mp{p,s}:
- * BooShell/BooShell.mp{p,s}:
- Add project files for compiling the BooBinding using MD.
-
-2005-05-10 Peter Johanson <latexer@gentoo.org>
-
- * Gui/ShellTextView.boo: Use a normal StreamWriter
- instead of the Boo.IO stuff, since Boo.IO has moved
- in current Boo SVN to Boo.Lang.IO
-
-2005-05-04 Peter Johanson <latexer@gentoo.org>
-
- * BooShell/BooShell.boo: Make sure we
- dispose of the worker thread.
-
-2005-05-04 Peter Johanson <latexer@gentoo.org>
-
- * Gui/BooShellModel.boo: Don't join the aborted
- thread. This isn't needed, and hangs mono-1.1.7 and
- newer.
-
-2005-05-03 Peter Johanson <latexer@gentoo.org>
-
- * BooShell/BooShell.boo: Make sure we don't get
- disposed prematurely.
-
-2005-05-02 Peter Johanson <latexer@gentoo.org>
-
- * Remoting/*:
- * Gui/BooShellModel.boo:
- * BooShell/BooShell.boo:
- * Makefile.am: Switch over to using the new
- RemoteProcessObject API. Removes the need for
- all of BooShell.Remoting, and simplifies things
- elsewhere.
-
-2005-05-02 Peter Johanson <latexer@gentoo.org>
-
- * Gui/BooShellModel.boo: Fix from lluis to make
- MD not crash when right clicking the shell with
- no projects open.
-
-2005-05-02 Peter Johanson <latexer@gentoo.org>
-
- * BooShell/BooShell.boo: Convert to using Monitor instead
- of just lock(), prevents the 100% utilization by mono
- as reported by several folks.
- * Gui/BooShellModel.boo: Some Monitor fixes, and a small
- fix to make pasted input with multiple lines get processed
- properly.
-
-2005-04-28 Rafael Monoman Teixeira <rafaelteixeirabr@hotmail.com>
-
- * Makefile.am: added missing dependency for target $(ASSEMBLY)
-
-2005-04-25 Peter Johanson <latexer@gentoo.org>
-
- * BooShellServer/BooShellServer.boo:
- Small fix to make sure the shell server
- doesn't exit unexpectedly.
-
-2005-04-25 Peter Johanson <latexer@gentoo.org>
-
- * Properties/GeneralShellProperties.boo:
- * Gui/*: Lots of changes to handle new shell
- handling, as well as adding the ability to
- load the assemblies generated by the currently
- open solution/combine.
- * Remoting/*: Library for doing remoting
- using unix sockets
- * BooShell/BooShell.boo: New shell object
- created out of process from MD for projection
- * BooShellServer/BooShellServer.boo: Remoting
- server for serving up the BooShell objects
-
-2005-04-25 Peter Johanson <latexer@gentoo.org>
-
- * Initial import of the Boo addin.
-
diff --git a/extras/BooBinding/FormattingStrategy/BooFormattingStrategy.boo b/extras/BooBinding/FormattingStrategy/BooFormattingStrategy.boo
deleted file mode 100644
index 76103b01fd..0000000000
--- a/extras/BooBinding/FormattingStrategy/BooFormattingStrategy.boo
+++ /dev/null
@@ -1,23 +0,0 @@
-namespace BooBinding.FormattingStrategy
-
-import System
-import MonoDevelop.Ide.Gui
-import MonoDevelop.SourceEditor.FormattingStrategy
-
-
-class BooFormattingStrategy (DefaultFormattingStrategy):
- protected override def SmartIndentLine (d as TextEditor, line as int, indentString as string):
- if line > 0:
- prev_text = d.GetLineText (line - 1)
- prev_text_trim = prev_text.Trim ()
- curr_text = d.GetLineText (line)
- curr_text_trim = curr_text.Trim ()
-
- if prev_text_trim.EndsWith (":"):
- indent = GetIndentation (d, line -1) + indentString
- d.ReplaceLine (line, indent + curr_text_trim)
- return indent.Length
-
- // XXX: Add support for ending blocks with multiple blank lines
-
- return AutoIndentLine (d, line, indentString)
diff --git a/extras/BooBinding/Gui/BooShellModel.boo b/extras/BooBinding/Gui/BooShellModel.boo
deleted file mode 100644
index 56ccbd5778..0000000000
--- a/extras/BooBinding/Gui/BooShellModel.boo
+++ /dev/null
@@ -1,164 +0,0 @@
-#region license
-// Copyright (c) 2005, Peter Johanson (latexer@gentoo.org)
-// All rights reserved.
-//
-// BooBinding is free software; you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation; either version 2 of the License, or
-// (at your option) any later version.
-//
-// BooBinding is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with BooBinding; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-#endregion
-
-namespace BooBinding.Gui
-
-import System
-import System.Collections
-import System.IO
-import System.Threading
-
-import BooBinding.Properties
-import BooBinding.BooShell
-
-class BooShellModel(IShellModel):
- private _props = BooShellProperties()
-
- private _commandQueue = Queue()
- private _outputQueue = Queue()
-
- private _outputHandler as callable
-
- private _thread as System.Threading.Thread
-
- private _booShell as BooShell
-
- MimeType as string:
- get:
- return "text/x-boo"
-
- LanguageName as string:
- get:
- return "Boo"
-
- MimeTypeExtension as string:
- get:
- return "boo"
-
- Properties as ShellProperties:
- get:
- return _props
-
- References as IList:
- get:
- refs as IList
- try:
- refs = _booShell.References
- except:
- pass
- return refs
-
- def constructor():
- getRemoteShellObject()
- try:
- _booShell.Run ()
- except:
- pass
-
- private def getRemoteShellObject ():
- path as string = Path.Combine (Path.GetDirectoryName (typeof(BooShellModel).Assembly.Location), "BooShell.dll")
- _booShell = MonoDevelop.Core.Runtime.ProcessService.CreateExternalProcessObject (path, "BooBinding.BooShell.BooShell", false)
- if _booShell is null:
- raise Exception ("Unable to instantiate remote BooShell object")
-
- def Reset () as bool:
- try:
- _booShell.Reset()
- except:
- return false
- return true
-
- def LoadAssembly (assemblyPath as string) as bool:
- try:
- _booShell.LoadAssembly (assemblyPath)
- except:
- return false
- return true
-
- def GetOutput () as (string):
- ret as (string)
- lock _outputQueue:
- if _outputQueue.Count > 0:
- ret = array (string, _outputQueue.Count)
- _outputQueue.CopyTo (ret, 0)
- _outputQueue.Clear ()
-
- return ret
-
-
- def QueueInput (line as string):
- try:
- Monitor.Enter (_commandQueue)
- _commandQueue.Enqueue (line)
- Monitor.Pulse (_commandQueue)
- ensure:
- Monitor.Exit (_commandQueue)
-
- def ThreadRun ():
- while true:
- com as string
- try:
- Monitor.Enter (_commandQueue)
- if _commandQueue.Count == 0:
- Monitor.Wait (_commandQueue)
-
- com = _commandQueue.Dequeue ()
-
-
- if com is not null:
- try:
- _booShell.QueueInput (com)
- lines = _booShell.GetOutput ()
- except:
- pass
- if lines is not null:
- EnqueueOutput (lines)
- com = null
- lock _outputQueue:
- if _outputHandler is not null:
- _outputHandler ()
-
- except:
- return
- ensure:
- Monitor.Exit (_commandQueue)
-
-
- def Run ():
- _thread = System.Threading.Thread (ThreadRun)
- _thread.Start ()
-
- def RegisterOutputHandler (handler as callable):
- _outputHandler = handler
-
- def EnqueueOutput (lines as (string)):
- lock _outputQueue:
- for line in lines:
- _outputQueue.Enqueue (line)
-
- def Dispose ():
- _thread.Abort ()
- try:
- _booShell.Dispose ()
- except:
- pass
-
- def print (obj):
- lock _outputQueue:
- _outputQueue.Enqueue (obj)
diff --git a/extras/BooBinding/Gui/BooTextEditorExtension.boo b/extras/BooBinding/Gui/BooTextEditorExtension.boo
deleted file mode 100644
index cd73574f48..0000000000
--- a/extras/BooBinding/Gui/BooTextEditorExtension.boo
+++ /dev/null
@@ -1,87 +0,0 @@
-#region license
-// Copyright (c) 2007, Peter Johanson (latexer@gentoo.org)
-// All rights reserved.
-//
-// BooBinding is free software; you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation; either version 2 of the License, or
-// (at your option) any later version.
-//
-// BooBinding is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with BooBinding; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-#endregion
-/*
-namespace BooBinding.Gui
-
-import System
-
-import MonoDevelop.Projects.Dom.Parser
-import MonoDevelop.Ide.Gui.Content
-import MonoDevelop.Ide.Gui
-import MonoDevelop.Projects.Gui.Completion
-
-import BooBinding.Parser
-
-public class BooTextEditorExtension (CompletionTextEditorExtension):
-
- override def ExtendsEditor (doc as Document, editor as IEditableTextBuffer) as bool:
- return System.IO.Path.GetExtension (doc.Title) == ".boo";
-
- override def HandleCodeCompletion (ctx as CodeCompletionContext, typed_char as System.Char) as ICompletionDataProvider:
- return null if not typed_char in (char('.'), char(' '))
-
- expr_finder = ExpressionFinder ()
-
- caret_line = ctx.TriggerLine + 1;
- caret_col = ctx.TriggerLineOffset + 1;
-
- i = ctx.TriggerOffset
- if find_previous_token ("=", i):
- p_ctx = GetParserContext ()
- expr = expr_finder.FindExpression (Editor.GetText (0, i), i -2).Expression
- data_provider = CodeCompletionDataProvider (p_ctx, GetAmbience ())
-
- resolver = Resolver (p_ctx)
-
- return data_provider
-
- expr = expr_finder.FindExpression (Editor.GetText (0, ctx.TriggerOffset), ctx.TriggerOffset - 2).Expression;
- return null if not expr
-
- p_ctx = GetParserContext ()
- completion_prov = CodeCompletionDataProvider (p_ctx, GetAmbience ())
-
- if typed_char == char(' '):
- if expr in ("is", "as"):
- expr = expr_finder.FindExpression (Editor.GetText (0, ctx.TriggerOffset), ctx.TriggerOffset - 5).Expression
- if expr.Length > 0:
- res = Resolver (p_ctx)
- completion_prov.AddResolveResults (res.IsAsResolve (expr, caret_line, caret_col, FileName, Editor.Text, false))
- elif expr == "import" or expr.EndsWith (" import") or expr.EndsWith ("\timport") or expr.EndsWith ("\nimport") or expr.EndsWith ("\rimport"):
- namespaces = p_ctx.GetNamespaceList ("", true, true)
- completion_prov.AddResolveResults (ResolveResult(namespaces))
- else:
- resolve_result = p_ctx.Resolve (expr, caret_line, caret_col, FileName, Editor.Text)
- completion_prov.AddResolveResults (resolve_result, false)
-
- return null if completion_prov.IsEmpty
-
- return completion_prov
-
- private def find_previous_token (token as string, ref i as int):
- s = Editor.GetText (i-1, i)
- while s.Length > 0 and s[0] in (char(' '), char('\t')):
- i--
- s = Editor.GetText (i-1, i)
-
- return false if s.Length == 0
-
- i -= token.Length
- return Editor.GetText (i, i + token.Length) == token
-*/
diff --git a/extras/BooBinding/Gui/IShellModel.boo b/extras/BooBinding/Gui/IShellModel.boo
deleted file mode 100644
index fc3ee87bd9..0000000000
--- a/extras/BooBinding/Gui/IShellModel.boo
+++ /dev/null
@@ -1,61 +0,0 @@
-#region license
-// Copyright (c) 2005, Peter Johanson (latexer@gentoo.org)
-// All rights reserved.
-//
-// BooBinding is free software; you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation; either version 2 of the License, or
-// (at your option) any later version.
-//
-// BooBinding is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with BooBinding; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-#endregion
-
-namespace BooBinding.Gui
-
-import System
-import System.Collections
-import BooBinding.Properties
-
-interface IShellModel:
- def Reset() as bool:
- pass
-
- def LoadAssembly (assemblyPath as string) as bool:
- pass
-
- def RegisterOutputHandler (handler as callable):
- pass
-
- def Run():
- pass
-
- def GetOutput() as (string):
- pass
-
- def QueueInput (line as string):
- pass
-
- def Dispose():
- pass
-
- Properties as ShellProperties:
- get
-
- LanguageName as string:
- get
-
- MimeType as string:
- get
-
- MimeTypeExtension as string:
- get
-
- References as IList:
- get
diff --git a/extras/BooBinding/Gui/OptionPanels/CodeCompilationPanel.boo b/extras/BooBinding/Gui/OptionPanels/CodeCompilationPanel.boo
deleted file mode 100644
index f83e83a34b..0000000000
--- a/extras/BooBinding/Gui/OptionPanels/CodeCompilationPanel.boo
+++ /dev/null
@@ -1,162 +0,0 @@
-#region license
-// Copyright (c) 2005, Peter Johanson (latexer@gentoo.org)
-// All rights reserved.
-//
-// BooBinding is free software; you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation; either version 2 of the License, or
-// (at your option) any later version.
-//
-// BooBinding is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with BooBinding; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-#endregion
-
-namespace BooBinding.Gui.OptionPanels
-
-import BooBinding
-
-import System
-import Gtk
-
-import MonoDevelop.Projects
-import MonoDevelop.Ide.Gui.Dialogs
-import MonoDevelop.Core
-
-public class CodeGenerationPanel(MultiConfigItemOptionsPanel):
- private codeGenerationLabel as Gtk.Label = Gtk.Label ()
- private labelWarnings as Gtk.Label = Gtk.Label ()
- private labelOutputDir as Gtk.Label = Gtk.Label ()
- private outputLabel as Gtk.Label = Gtk.Label ()
- private labelCompiler as Gtk.Label = Gtk.Label ()
- private labelCulture as Gtk.Label = Gtk.Label ()
-
- private labelCompileTarget as Gtk.Label = Gtk.Label ()
- private compileTargetCombo as Gtk.ComboBox = Gtk.ComboBox ()
-
- private checkDebug = CheckButton (GettextCatalog.GetString ("Enable debug"))
- private checkDucky = CheckButton (GettextCatalog.GetString ("Enable ducky mode"))
-
- private outputAssembly = Entry ()
- private outputDirectory = Entry()
- // Waiting on easy method for setting entry text before using
- //private outputDirectory as FolderEntry = FolderEntry ("Output Directory")
- private compilerPath = Entry ()
- private culture = Entry ()
-
- compilerParameters as BooCompilerParameters = null
- configuration as DotNetProjectConfiguration = null
- project as DotNetProject = null;
- vbox as VBox
-
- public def constructor():
-
- InitializeComponent ()
- vbox = VBox ()
- hboxTmp = HBox ()
- hboxTmp.PackStart (codeGenerationLabel, false, false, 0)
- vbox.PackStart (hboxTmp, false, false, 12)
-
- hboxTmp = HBox()
- tableOutputOptions = Table (4, 2, false)
- tableOutputOptions.Attach (outputLabel, 0, 1, 0, 1, AttachOptions.Shrink, AttachOptions.Shrink, 0, 0)
- tableOutputOptions.Attach (outputAssembly, 1, 2, 0, 1, AttachOptions.Fill | AttachOptions.Expand, AttachOptions.Fill, 0, 3)
- tableOutputOptions.Attach (labelOutputDir, 0, 1, 1, 2, AttachOptions.Shrink, AttachOptions.Shrink, 0, 0)
- tableOutputOptions.Attach (outputDirectory, 1, 2, 1, 2, AttachOptions.Fill | AttachOptions.Expand , AttachOptions.Fill, 0, 3)
- tableOutputOptions.Attach (labelCompileTarget, 0, 1, 2, 3, AttachOptions.Shrink, AttachOptions.Shrink, 0, 0)
- tableOutputOptions.Attach (compileTargetCombo, 1, 2, 2, 3, AttachOptions.Fill | AttachOptions.Expand, AttachOptions.Fill, 0, 3)
- tableOutputOptions.Attach (labelCulture, 0, 1, 3, 4, AttachOptions.Shrink, AttachOptions.Shrink, 0, 0)
- tableOutputOptions.Attach (culture, 1, 2, 3, 4, AttachOptions.Fill | AttachOptions.Expand, AttachOptions.Fill, 0, 3)
- hboxTmp.PackStart (tableOutputOptions, true, true, 6)
- vbox.PackStart (hboxTmp, false, false, 0)
-
- hboxTmp = HBox ()
- hboxTmp.PackStart (labelWarnings, false, false, 0)
- vbox.PackStart (hboxTmp, false, false, 12)
- hboxTmp = HBox()
- hboxTmp.PackStart (checkDebug, false, false, 6)
- vbox.PackStart (hboxTmp, false, false, 0)
- hboxTmp = HBox()
- hboxTmp.PackStart (checkDucky, false, false, 6)
- vbox.PackStart (hboxTmp, false, false, 0)
-
- vbox.ShowAll ()
-
- private def InitializeComponent() as void:
- codeGenerationLabel.Markup = String.Format ("<b>{0}</b>", GettextCatalog.GetString ("Code Generation"))
- labelOutputDir.Markup = String.Format ("{0} :", GettextCatalog.GetString ("Output Path"))
- labelOutputDir.Layout.Alignment = Pango.Alignment.Right
- outputAssembly = Entry ()
-
- outputLabel.Markup = String.Format ("{0} :", GettextCatalog.GetString ("Output Assembly"))
- outputLabel.Layout.Alignment = Pango.Alignment.Right
- labelWarnings.Markup = String.Format ("<b>{0}</b>", GettextCatalog.GetString ("Warnings and Compiler Options"))
-
- labelCompiler.Markup = String.Format ("<b>{0}</b>", GettextCatalog.GetString ("Compiler"))
- labelCulture.Markup = String.Format ("{0} :", GettextCatalog.GetString ("Culture"))
- labelCulture.Layout.Alignment = Pango.Alignment.Right
- labelCompileTarget.Markup = String.Format ("{0} :", GettextCatalog.GetString ("Output Assembly"))
-
-
- store = ListStore (string)
-
- stringArray = array(System.String, 1)
- stringArray[0] = GettextCatalog.GetString ("Executable")
- store.AppendValues (stringArray)
-
- stringArray = array(System.String, 1)
- stringArray[0] = GettextCatalog.GetString ("Library")
- store.AppendValues (stringArray)
-
- stringArray = array(System.String, 1)
- stringArray[0] = GettextCatalog.GetString ("Executable with GUI")
- store.AppendValues (stringArray)
-
- compileTargetCombo.Model = store
- cr = CellRendererText()
- compileTargetCombo.PackStart(cr, true)
- compileTargetCombo.AddAttribute(cr, "text", 0)
-
-
- public override def LoadConfigData() as void:
- //FIXME: BOO COMPILER CAN'T RESOLVE OVERLOADS OF GENERIC METHODS
- //configuration = (cast(MonoDevelop.Core.Properties,CustomizationObject)).Get [of DotNetProjectConfiguration] ("Config")
- configuration = cast(DotNetProjectConfiguration,CurrentConfiguration)
- project = cast(DotNetProject,ConfiguredProject)
- if configuration == null:
- raise InvalidOperationException ("Invalid program state as a result of Boo compiler bug http://jira.codehaus.org/browse/BOO-856")
- //END FIXME
-
- compilerParameters = cast (BooCompilerParameters, configuration.CompilationParameters)
-
- checkDebug.Active = configuration.DebugMode
- checkDucky.Active = compilerParameters.Ducky
- outputAssembly.Text = configuration.OutputAssembly
- //outputDirectory.DefaultPath = configuration.OutputDirectory
- outputDirectory.Text = configuration.OutputDirectory
-
- culture.Text = compilerParameters.Culture
- compileTargetCombo.Active = cast (int, configuration.CompileTarget)
- if project.IsLibraryBasedProjectType:
- compileTargetCombo.Sensitive = false
-
- public override def CreatePanelWidget() as Gtk.Widget:
- return vbox
-
- public override def ApplyChanges():
- if (compilerParameters is null):
- return
-
- project.CompileTarget = cast (CompileTarget, compileTargetCombo.Active)
- configuration.DebugMode = checkDebug.Active
- configuration.OutputAssembly = outputAssembly.Text
- configuration.OutputDirectory = outputDirectory.Text
- //configuration.OutputDirectory = outputDirectory.Path
-
- compilerParameters.Ducky = checkDucky.Active
- compilerParameters.Culture = culture.Text
diff --git a/extras/BooBinding/Gui/OptionPanels/GeneralBooShellPanel.boo b/extras/BooBinding/Gui/OptionPanels/GeneralBooShellPanel.boo
deleted file mode 100644
index df1417bece..0000000000
--- a/extras/BooBinding/Gui/OptionPanels/GeneralBooShellPanel.boo
+++ /dev/null
@@ -1,29 +0,0 @@
-#region license
-// Copyright (c) 2005, Peter Johanson (latexer@gentoo.org)
-// All rights reserved.
-//
-// BooBinding is free software; you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation; either version 2 of the License, or
-// (at your option) any later version.
-//
-// BooBinding is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with BooBinding; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-#endregion
-
-namespace BooBinding.Gui.OptionPanels
-
-import System
-import BooBinding.Properties
-
-public class GeneralBooShellPanel(GeneralShellPanel):
-
- public ShellProperties as ShellProperties:
- get:
- return BooShellProperties()
diff --git a/extras/BooBinding/Gui/OptionPanels/GeneralShellPanel.boo b/extras/BooBinding/Gui/OptionPanels/GeneralShellPanel.boo
deleted file mode 100644
index b96a59d1c5..0000000000
--- a/extras/BooBinding/Gui/OptionPanels/GeneralShellPanel.boo
+++ /dev/null
@@ -1,123 +0,0 @@
-#region license
-// Copyright (c) 2005, Peter Johanson (latexer@gentoo.org)
-// All rights reserved.
-//
-// BooBinding is free software; you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation; either version 2 of the License, or
-// (at your option) any later version.
-//
-// BooBinding is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with BooBinding; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-#endregion
-
-namespace BooBinding.Gui.OptionPanels
-
-import System
-import Gtk
-
-import MonoDevelop.Core
-
-import BooBinding.Properties
-
-public class GeneralShellPanel(MonoDevelop.Ide.Gui.Dialogs.OptionsPanel):
- private generalOptionsLabel = Gtk.Label ()
- private autoIndentCheckButton = Gtk.CheckButton ()
- private resetClearsScrollbackCheckButton = Gtk.CheckButton ()
- private resetClearsHistoryCheckButton = Gtk.CheckButton ()
- private loadAssemblyCheckButton = Gtk.CheckButton ()
-
- private fontOptionsLabel = Gtk.Label ()
- private fontButton = FontButton ()
- private defaultMonoRadio as RadioButton
- private customFontRadio as RadioButton
-
- protected virtual ShellProperties as ShellProperties:
- get:
- pass
-
- private def InitializeComponent() as void:
- generalOptionsLabel.Markup = String.Format ("<b>{0}</b>", GettextCatalog.GetString ("General Options"))
-
- autoIndentCheckButton.Label = GettextCatalog.GetString ("Automatically indent new lines in code blocks")
- resetClearsScrollbackCheckButton.Label = GettextCatalog.GetString ("Shell reset clears scollback")
- resetClearsHistoryCheckButton.Label = GettextCatalog.GetString ("Shell reset clears command history")
- loadAssemblyCheckButton.Label = GettextCatalog.GetString ("Load project assemblies after building them (Causes shell reset)")
- fontOptionsLabel.Markup = String.Format ("<b>{0}</b>", GettextCatalog.GetString ("Font"))
- defaultMonoRadio = RadioButton (GettextCatalog.GetString ("Use default monospace font"))
- customFontRadio = RadioButton (defaultMonoRadio, GettextCatalog.GetString ("Use custom font:"))
-
- defaultMonoRadio.Toggled += ItemToggled
- customFontRadio.Toggled += ItemToggled
-
-
- public override def CreatePanelWidget( ) as Widget:
- InitializeComponent ()
- vbox = VBox ()
- hboxTmp = HBox()
- hboxTmp.PackStart (generalOptionsLabel, false, false, 0)
- vbox.PackStart (hboxTmp, false, false, 12)
- hboxTmp = HBox()
- hboxTmp.PackStart (autoIndentCheckButton, false, false, 6)
- vbox.PackStart (hboxTmp, false, false, 0)
- hboxTmp = HBox()
- hboxTmp.PackStart (resetClearsScrollbackCheckButton, false, false, 6)
- vbox.PackStart (hboxTmp, false, false, 0)
- hboxTmp = HBox()
- hboxTmp.PackStart (resetClearsHistoryCheckButton, false, false, 6)
- vbox.PackStart (hboxTmp, false, false, 0)
- hboxTmp = HBox()
- hboxTmp.PackStart (loadAssemblyCheckButton, false, false, 6)
- vbox.PackStart (hboxTmp, false, false, 0)
- hboxTmp = HBox()
- hboxTmp.PackStart (fontOptionsLabel, false, false, 0)
- vbox.PackStart (hboxTmp, false, false, 12)
- hboxTmp = HBox()
- hboxTmp.PackStart(defaultMonoRadio, false, false, 6)
- vbox.PackStart (hboxTmp, false, false, 0)
- hboxTmp = HBox()
- hboxTmp.PackStart (customFontRadio, false, false, 6)
- hboxTmp.PackStart (fontButton, false, false, 0)
- vbox.PackStart (hboxTmp, false, false, 0)
-
- s = ShellProperties.FontName
-
- if s == "__default_monospace":
- defaultMonoRadio.Active = true
- else:
- fontButton.FontName = s
- customFontRadio.Active = true
-
- fontButton.Sensitive = customFontRadio.Active
- autoIndentCheckButton.Active = ShellProperties.AutoIndentBlocks
- resetClearsScrollbackCheckButton.Active = ShellProperties.ResetClearsScrollback
- resetClearsHistoryCheckButton.Active = ShellProperties.ResetClearsHistory
- loadAssemblyCheckButton.Active = ShellProperties.LoadAssemblyAfterBuild
- vbox.ShowAll ()
- return vbox
-
-
- public override def ApplyChanges () as void:
- if customFontRadio.Active:
- ShellProperties.FontName = fontButton.FontName
- elif defaultMonoRadio.Active:
- ShellProperties.FontName = "__default_monospace"
-
- if ShellProperties.AutoIndentBlocks != autoIndentCheckButton.Active:
- ShellProperties.AutoIndentBlocks = autoIndentCheckButton.Active
-
- if ShellProperties.ResetClearsScrollback != resetClearsScrollbackCheckButton.Active:
- ShellProperties.ResetClearsScrollback = resetClearsScrollbackCheckButton.Active
- if ShellProperties.ResetClearsHistory != resetClearsHistoryCheckButton.Active:
- ShellProperties.ResetClearsHistory = resetClearsHistoryCheckButton.Active
- if ShellProperties.LoadAssemblyAfterBuild != loadAssemblyCheckButton.Active:
- ShellProperties.LoadAssemblyAfterBuild = loadAssemblyCheckButton.Active
-
- private def ItemToggled (o, args as EventArgs):
- fontButton.Sensitive = customFontRadio.Active
diff --git a/extras/BooBinding/Gui/ShellTextView.boo b/extras/BooBinding/Gui/ShellTextView.boo
deleted file mode 100644
index 53ceab8ff5..0000000000
--- a/extras/BooBinding/Gui/ShellTextView.boo
+++ /dev/null
@@ -1,524 +0,0 @@
-#region license
-// Copyright (c) 2005, Peter Johanson (latexer@gentoo.org)
-// All rights reserved.
-//
-// BooBinding is free software; you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation; either version 2 of the License, or
-// (at your option) any later version.
-//
-// BooBinding is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with BooBinding; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-#endregion
-
-namespace BooBinding.Gui
-
-import System
-import System.Collections
-import System.IO
-
-import Gtk
-import Gdk
-
-import MonoDevelop.Components
-import MonoDevelop.Ide.CodeCompletion
-import MonoDevelop.Core
-import MonoDevelop.Projects
-import MonoDevelop.Ide
-import MonoDevelop.Projects.Dom.Parser
-
-/*
- * TODO
- *
- * 1) Don't record lines with errors in the _scriptLines buffer
- */
-
-class ShellTextView (TextView, ICompletionWidget):
- private static _promptRegular = ">>> "
- private static _promptMultiline = "... "
-
- [Getter(Model)]
- model as IShellModel
-
- private _scriptLines = ""
-
- private _commandHistoryPast as Stack = Stack()
- private _commandHistoryFuture as Stack = Stack()
-
- private _inBlock as bool = false
- private _blockText = ""
-
- private _reset_clears_history as bool
- private _reset_clears_scrollback as bool
- private _auto_indent as bool
- private _load_assembly_after_build as bool
-
- private _proj as Project
-
- private _assembliesLoaded as bool
-
- private _fakeProject as DotNetProject
- private _fakeSolution as Solution
- private _fakeFileName as string
- private _fileInfo as FileStream
- private _parserContext as ProjectDom;
-
- def constructor(model as IShellModel):
-
- self.model = model
- self.WrapMode = Gtk.WrapMode.Word
- self.ModifyFont(Model.Properties.Font)
-
- # FIXME: Put the project file somewhere other than /tmp
- shellProjectFile = System.IO.Path.Combine (MonoDevelop.Core.PropertyService.Locations.Cache, "${Model.LanguageName}-shell-project.mdp")
-
- // 'touch' the file so the MD parsing foo sees it as existing.
- _fakeFileName = System.IO.Path.Combine (MonoDevelop.Core.PropertyService.Locations.Cache, "shell-dummy-file.${Model.MimeTypeExtension}")
- if not System.IO.File.Exists (_fakeFileName):
- _fileInfo = System.IO.File.Create (_fakeFileName)
- _fileInfo.Close ()
- _fakeProject = DotNetAssemblyProject(Model.LanguageName, Name: "___ShellProject", FileName: shellProjectFile)
- _fakeSolution = Solution()
- _fakeSolution.RootFolder.AddItem(_fakeProject)
- ProjectDomService.Load (_fakeSolution)
-
- _parserContext = ProjectDomService.GetProjectDom (_fakeProject)
-
- Model.Properties.InternalProperties.PropertyChanged += OnPropertyChanged
- Model.RegisterOutputHandler (HandleOutput)
-
- _auto_indent = Model.Properties.AutoIndentBlocks
- _reset_clears_scrollback = Model.Properties.ResetClearsScrollback
- _reset_clears_history = Model.Properties.ResetClearsHistory
- _load_assembly_after_build = Model.Properties.LoadAssemblyAfterBuild
-
-
- // The 'Freezer' tag is used to keep everything except
- // the input line from being editable
- tag = TextTag ("Freezer")
- tag.Editable = false
- Buffer.TagTable.Add (tag)
- prompt (false)
-
- IdeApp.ProjectOperations.EndBuild += ProjectCompiled
- IdeApp.ProjectOperations.CurrentProjectChanged += ProjectChanged
-
- // Run our model. Needs to happen for models which may spawn threads,
- // processes, etc
- Model.Run()
-
- def ProjectChanged (sender, e as ProjectEventArgs):
- _proj = e.Project
-
- def ProjectCompiled (sender, args as BuildEventArgs):
- if _load_assembly_after_build and args.Success:
- Model.Reset()
- resetGui()
- loadProjectAssemblies ()
-
- def loadProjectAssemblies():
- for assembly in getProjectAssemblies ():
- if (System.IO.File.Exists(assembly)):
- Model.Reset()
- Model.LoadAssembly (assembly)
- _assembliesLoaded = true
-
-
- def getProjectAssemblies():
- _assemblies = []
- if (_proj is not null):
- assembly = _proj.GetOutputFileName(ConfigurationSelector.Default)
- if not assembly.IsNull:
- _assemblies.Add(assembly)
- else:
- projects = IdeApp.Workspace.GetAllProjects()
- for entry as Project in projects:
- if entry is null:
- continue
- assembly = entry.GetOutputFileName(ConfigurationSelector.Default)
- if not assembly.IsNull:
- _assemblies.Add(assembly)
-
- return _assemblies
-
- def HandleOutput():
- GLib.Idle.Add (outputIdleProcessor)
-
- def outputIdleProcessor() as bool:
- output = Model.GetOutput()
- if output is not null:
- for line as string in output:
- processOutput (line )
-
- prompt (true)
- for assembly in Model.References:
- _fakeProject.AddReference(assembly)
-
- GLib.Idle.Add () do:
- ProjectDomService.Parse (_fakeProject, _fakeFileName, _scriptLines)
- return false
-
- override def Dispose():
- Model.Dispose()
-
- #region Overrides of the standard methods for event handling
- override def OnPopulatePopup (menu as Gtk.Menu):
- _copyScriptInput = ImageMenuItem (GettextCatalog.GetString ("Copy Script"))
- _copyScriptInput.Activated += { Gtk.Clipboard.Get (Gdk.Atom.Intern ("PRIMARY", true)).Text = _scriptLines }
- _copyScriptInput.Image = Gtk.Image (Stock.Copy, Gtk.IconSize.Menu)
-
- _saveScriptToFile = ImageMenuItem (GettextCatalog.GetString ("Save Script As ..."))
- _saveScriptToFile.Image = Gtk.Image (Stock.SaveAs, Gtk.IconSize.Menu)
- _saveScriptToFile.Activated += OnSaveScript
-
- _loadAssemblies = ImageMenuItem (GettextCatalog.GetString ("Load Project Assemblies (forces shell reset)"))
- _loadAssemblies.Image = Gtk.Image (Stock.Add, Gtk.IconSize.Menu)
- _loadAssemblies.Activated += def():
- if Model.Reset ():
- resetGui ()
- loadProjectAssemblies ()
-
- _reset = ImageMenuItem (GettextCatalog.GetString ("Reset Shell"))
- _reset.Image = Gtk.Image (Stock.Clear, Gtk.IconSize.Menu)
- _reset.Activated += def():
- if Model.Reset():
- resetGui()
- _assembliesLoaded = false
-
- if _scriptLines.Length <= 0:
- _copyScriptInput.Sensitive = false
- _saveScriptToFile.Sensitive = false
- _reset.Sensitive = false
-
- if (_assembliesLoaded == false) and (len (getProjectAssemblies ()) > 0):
- _loadAssemblies.Sensitive = true
- else:
- _loadAssemblies.Sensitive = false
-
- _sep = Gtk.SeparatorMenuItem()
- menu.Prepend(_sep)
- menu.Prepend(_copyScriptInput)
- menu.Prepend(_saveScriptToFile)
- menu.Prepend(_loadAssemblies)
- menu.Prepend(_reset)
-
- _sep.Show()
- _copyScriptInput.Show()
- _saveScriptToFile.Show()
- _loadAssemblies.Show()
- _reset.Show()
-
- override def OnKeyPressEvent (ev as Gdk.EventKey):
- ka as KeyActions
- processkeyresult as bool
- // TODO: cast ((char), ev.Key) (seems not to work)
- processkeyresult = CompletionWindowManager.PreProcessKeyEvent (ev.Key, char('\0'), ev.State, ka)
- CompletionWindowManager.PostProcessKeyEvent (ka)
- if processkeyresult:
- return true
-
- // Short circuit to avoid getting moved back to the input line
- // when paging up and down in the shell output
- if ev.Key in (Gdk.Key.Page_Up, Gdk.Key.Page_Down):
- return super (ev)
-
- // Needed so people can copy and paste, but always end up
- // typing in the prompt.
- if Cursor.Compare (InputLineBegin) < 0:
- Buffer.MoveMark (Buffer.SelectionBound, InputLineEnd)
- Buffer.MoveMark (Buffer.InsertMark, InputLineEnd)
-
- if (ev.State == Gdk.ModifierType.ControlMask) and ev.Key == Gdk.Key.space:
- TriggerCodeCompletion ()
-
- if ev.Key == Gdk.Key.Return:
- if _inBlock:
- if InputLine == "":
- processInput (_blockText)
- _blockText = ""
- _inBlock = false
- else:
- _blockText += "\n${InputLine}"
- if _auto_indent:
- _whiteSpace = /^(\s+).*/.Replace(InputLine, "$1")
- if InputLine.Trim()[-1:] == ":":
- _whiteSpace += "\t"
- prompt (true, true)
- if _auto_indent:
- InputLine += "${_whiteSpace}"
- else:
- // Special case for start of new code block
- if InputLine.Trim()[-1:] == ":":
- _inBlock = true
- _blockText = InputLine
- prompt (true, true)
- if _auto_indent:
- InputLine += "\t"
- return true
-
- // Bookkeeping
- if InputLine != "":
- // Everything but the last item (which was input),
- //in the future stack needs to get put back into the
- // past stack
- while _commandHistoryFuture.Count > 1:
- _commandHistoryPast.Push(cast(string,_commandHistoryFuture.Pop()))
- // Clear the pesky junk input line
- _commandHistoryFuture.Clear()
-
- // Record our input line
- _commandHistoryPast.Push(InputLine)
- if _scriptLines == "":
- _scriptLines += "${InputLine}"
- else:
- _scriptLines += "\n${InputLine}"
-
- processInput (InputLine)
- return true
-
- // The next two cases handle command history
- elif ev.Key == Gdk.Key.Up:
- if (not _inBlock) and _commandHistoryPast.Count > 0:
- if _commandHistoryFuture.Count == 0:
- _commandHistoryFuture.Push(InputLine)
- else:
- if _commandHistoryPast.Count == 1:
- return true
- _commandHistoryFuture.Push(cast(string,_commandHistoryPast.Pop()))
- InputLine = cast (string, _commandHistoryPast.Peek())
- return true
-
- elif ev.Key == Gdk.Key.Down:
- if (not _inBlock) and _commandHistoryFuture.Count > 0:
- if _commandHistoryFuture.Count == 1:
- InputLine = cast(string, _commandHistoryFuture.Pop())
- else:
- _commandHistoryPast.Push (cast(string,_commandHistoryFuture.Pop()))
- InputLine = cast (string, _commandHistoryPast.Peek())
- return true
-
- elif ev.Key == Gdk.Key.Left:
- // Keep our cursor inside the prompt area
- if Cursor.Compare (InputLineBegin) <= 0:
- return true
-
- elif ev.Key == Gdk.Key.Home:
- Buffer.MoveMark (Buffer.InsertMark, InputLineBegin)
- // Move the selection mark too, if shift isn't held
- if (ev.State & Gdk.ModifierType.ShiftMask) == ev.State:
- Buffer.MoveMark (Buffer.SelectionBound, InputLineBegin)
- return true
-
- elif ev.Key == Gdk.Key.period:
- ret = super.OnKeyPressEvent(ev)
-// prepareCompletionDetails (Buffer.GetIterAtMark (Buffer.InsertMark))
-// CompletionListWindow.ShowWindow(char('.'), CodeCompletionDataProvider (_parserContext, _ambience, _fakeFileName, true), self)
- return ret
-
- // Short circuit to avoid getting moved back to the input line
- // when paging up and down in the shell output
- elif ev.Key in (Gdk.Key.Page_Up, Gdk.Key.Page_Down):
- return super (ev)
-
- return super (ev)
-
- protected override def OnFocusOutEvent (e as EventFocus):
- CompletionWindowManager.HideWindow ()
- return super.OnFocusOutEvent(e)
-
- #endregion
-
- private def TriggerCodeCompletion():
- iter = Cursor
- triggerChar = char('\0')
- triggerIter = TextIter.Zero
- if (iter.Char != null and iter.Char.Length > 0):
- if iter.Char[0] in (char(' '), char('\t'), char('.'), char('('), char('[')):
- triggerIter = iter
- triggerChar = iter.Char[0]
-
- while iter.LineOffset > 0 and triggerIter.Equals (TextIter.Zero):
- if (iter.Char == null or iter.Char.Length == 0):
- iter.BackwardChar ()
- continue
-
- if iter.Char[0] in (char(' '), char('\t'), char('.'), char('('), char('[')):
- triggerIter = iter
- triggerChar = iter.Char[0]
- break
-
- iter.BackwardChar ()
-
- if (triggerIter.Equals (TextIter.Zero)):
- return
-
- triggerIter.ForwardChar ()
-
-// prepareCompletionDetails (triggerIter)
-// CompletionListWindow.ShowWindow (triggerChar, CodeCompletionDataProvider (_parserContext, _ambience, _fakeFileName, true), self)
-
- // Mark to find the beginning of our next input line
- private _endOfLastProcessing as TextMark
-
- #region Public getters for useful values
- public InputLineBegin as TextIter:
- get:
- endIter = Buffer.GetIterAtMark (_endOfLastProcessing)
- return endIter
-
- public InputLineEnd as TextIter:
- get:
- return Buffer.EndIter
-
- private Cursor as TextIter:
- get:
- return Buffer.GetIterAtMark (Buffer.InsertMark)
- #endregion
-
- // The current input line
- public InputLine as string:
- get:
- return Buffer.GetText (InputLineBegin, InputLineEnd, false)
- set:
- start = InputLineBegin
- end = InputLineEnd
- Buffer.Delete (start, end)
- start = InputLineBegin
- Buffer.Insert (start, value)
-
- #region local private methods
- private def processInput (line as string):
- Model.QueueInput (line)
-
- private def processOutput (line as string):
- end = Buffer.EndIter
- Buffer.Insert (end , "\n${line}")
-
- private def prompt (newLine as bool):
- prompt (newLine, false)
-
- private def prompt (newLine as bool, multiline as bool):
- if newLine:
- Buffer.Insert (Buffer.EndIter , "\n")
- if multiline:
- Buffer.Insert (Buffer.EndIter , "${_promptMultiline}")
- else:
- Buffer.Insert (Buffer.EndIter , "${_promptRegular}")
-
- Buffer.PlaceCursor (Buffer.EndIter)
- ScrollMarkOnscreen(Buffer.InsertMark)
-
-
- // Record the end of where we processed, used to calculate start
- // of next input line
- _endOfLastProcessing = Buffer.CreateMark (null, Buffer.EndIter, true)
-
- // Freeze all the text except our input line
- Buffer.ApplyTag(Buffer.TagTable.Lookup("Freezer"), Buffer.StartIter, InputLineBegin)
-
- private def resetGui():
- if _reset_clears_scrollback:
- Buffer.Text = ""
- if _reset_clears_history:
- _commandHistoryFuture.Clear()
- _commandHistoryPast.Clear()
-
- _scriptLines = ""
- prompt(not _reset_clears_scrollback)
-
- // FIXME: Make my FileChooser use suck less
- private def OnSaveScript():
- _sel = SelectFileDialog("Save Script ...", FileChooserAction.Save)
- if _sel.Run():
- _path = _sel.SelectedFile
- using writer = StreamWriter (_path):
- writer.Write (_scriptLines)
-
- def OnPropertyChanged (obj as object, e as PropertyChangedEventArgs):
- if e.Key == "Font":
- self.ModifyFont(Model.Properties.Font)
- elif e.Key == "AutoIndentBlocks":
- _auto_indent = Model.Properties.AutoIndentBlocks
- elif e.Key == "ResetClearsScrollback":
- _reset_clears_scrollback = Model.Properties.ResetClearsScrollback
- elif e.Key == "ResetClearsHistory":
- _reset_clears_history = Model.Properties.ResetClearsHistory
- elif e.Key == "LoadAssemblyAfterBuild":
- _load_assembly_after_build = Model.Properties.LoadAssemblyAfterBuild
-
- return
-
- #endregion
-
- #region ICompletionWidget
-
- public event CompletionContextChanged as EventHandler;
-
- def ICompletionWidget.CreateCodeCompletionContext (triggerOffset as int) as CodeCompletionContext:
- triggerIter = Buffer.GetIterAtOffset (triggerOffset);
- rect = GetIterLocation (Buffer.GetIterAtMark (Buffer.InsertMark))
-
- wx as int
- wy as int
- BufferToWindowCoords (Gtk.TextWindowType.Widget, rect.X, rect.Y + rect.Height, wx, wy)
-
- tx as int
- ty as int
- GdkWindow.GetOrigin (tx, ty)
-
- ctx = CodeCompletionContext ();
- ctx.TriggerOffset = triggerIter.Offset;
- ctx.TriggerLine = triggerIter.Line;
- ctx.TriggerLineOffset = triggerIter.LineOffset;
- ctx.TriggerXCoord = tx + wx;
- ctx.TriggerYCoord = ty + wy;
- ctx.TriggerTextHeight = rect.Height;
- return ctx;
-
-
- ICompletionWidget.SelectedLength:
- get:
- select1 as TextIter
- select2 as TextIter
- if Buffer.GetSelectionBounds (select1, select2):
- return Buffer.GetText (select1, select2, true).Length
- else:
- return 0
-
- ICompletionWidget.TextLength:
- get:
- return Buffer.EndIter.Offset
-
- def ICompletionWidget.GetChar (offset as int) as System.Char:
- return Buffer.GetIterAtLine (offset).Char[0]
-
- def ICompletionWidget.GetText (startOffset as int, endOffset as int) as string:
- return Buffer.GetText(Buffer.GetIterAtOffset (startOffset), Buffer.GetIterAtOffset(endOffset), true)
-
- def ICompletionWidget.GetCompletionText (ctx as CodeCompletionContext) as string:
- return Buffer.GetText (Buffer.GetIterAtOffset (ctx.TriggerOffset), Buffer.GetIterAtMark (Buffer.InsertMark), false);
-
- def ICompletionWidget.SetCompletionText (ctx as CodeCompletionContext, partial_word as string, complete_word as string):
- offsetIter = Buffer.GetIterAtOffset(ctx.TriggerOffset)
- endIter = Buffer.GetIterAtOffset (offsetIter.Offset + partial_word.Length)
- Buffer.MoveMark (Buffer.InsertMark, offsetIter)
- Buffer.Delete (offsetIter, endIter)
- Buffer.InsertAtCursor (complete_word)
-
- def ICompletionWidget.Replace (offset as int, count as int, text as string):
- offsetIter = Buffer.GetIterAtOffset(offset)
- endIter = Buffer.GetIterAtOffset (offsetIter.Offset + count)
- Buffer.MoveMark (Buffer.InsertMark, offsetIter)
- Buffer.Delete (offsetIter, endIter)
- Buffer.InsertAtCursor (text)
-
- ICompletionWidget.GtkStyle:
- get:
- return self.Style.Copy();
- #endregion
diff --git a/extras/BooBinding/Makefile b/extras/BooBinding/Makefile
deleted file mode 100644
index 5d33855081..0000000000
--- a/extras/BooBinding/Makefile
+++ /dev/null
@@ -1,72 +0,0 @@
-
-EXTRA_DIST = BooBinding.make rules.make configure Makefile.include COPYING
-
-all: all-recursive
-
-top_srcdir=.
-include $(top_srcdir)/config.make
-include $(top_srcdir)/Makefile.include
-include $(top_srcdir)/rules.make
-
-#include $(top_srcdir)/custom-hooks.make
-
-#Warning: This is an automatically generated file, do not edit!
-ifeq ($(CONFIG),DEBUG)
- SUBDIRS = BooShell . po
-endif
-ifeq ($(CONFIG),RELEASE)
- SUBDIRS = BooShell . po
-endif
-
-include BooBinding.make
-
-CONFIG_MAKE=$(top_srcdir)/config.make
-
-%-recursive: $(CONFIG_MAKE)
- @set . $$MAKEFLAGS; final_exit=:; \
- case $$2 in --unix) shift ;; esac; \
- case $$2 in *=*) dk="exit 1" ;; *k*) dk=: ;; *) dk="exit 1" ;; esac; \
- make pre-$*-hook prefix=$(prefix) ; \
- for dir in $(call quote_each,$(SUBDIRS)); do \
- case "$$dir" in \
- .) make $*-local || { final_exit="exit 1"; $$dk; };;\
- *) (cd "$$dir" && make $*) || { final_exit="exit 1"; $$dk; };;\
- esac \
- done; \
- make post-$*-hook prefix=$(prefix) ; \
- $$final_exit
-
-$(CONFIG_MAKE):
- echo "You must run configure first"
- exit 1
-
-clean: clean-recursive
-install: install-recursive
-uninstall: uninstall-recursive
-
-dist: $(CONFIG_MAKE)
- rm -rf $(PACKAGE)-$(VERSION)
- mkdir $(PACKAGE)-$(VERSION)
- make pre-dist-hook distdir=$$distdir
- for dir in $(call quote_each,$(SUBDIRS)); do \
- pkgdir=`pwd`/$(PACKAGE)-$(VERSION); \
- mkdir "$$pkgdir/$$dir" || true; \
- case $$dir in \
- .) make dist-local "distdir=$$pkgdir" || exit 1;; \
- *) (cd "$$dir"; make dist-local "distdir=$$pkgdir/$$dir") || exit 1;; \
- esac \
- done
- (make dist-local distdir=$(PACKAGE)-$(VERSION))
- make post-dist-hook "distsir=$$distdir"
- tar czvf $(PACKAGE)-$(VERSION).tar.gz $(PACKAGE)-$(VERSION)
- rm -rf $(PACKAGE)-$(VERSION)
- @echo "=========================================="
- @echo "$(PACKAGE)-$(VERSION) has been packaged > $(PACKAGE)-$(VERSION).tar.gz"
- @echo "=========================================="
-
-distcheck: dist
- (mkdir test; cd test; \
- tar xzvf ../$(PACKAGE)-$(VERSION).tar.gz; cd $(PACKAGE)-$(VERSION); \
- ./configure --prefix=$$(cd `pwd`/..; pwd); \
- make && make install && make dist);
- rm -rf test
diff --git a/extras/BooBinding/Makefile.include b/extras/BooBinding/Makefile.include
deleted file mode 100644
index 6c743df72d..0000000000
--- a/extras/BooBinding/Makefile.include
+++ /dev/null
@@ -1,116 +0,0 @@
-VALID_CULTURES = ar bg ca zh-CHS cs da de el en es fi fr he hu is it ja ko nl no pl pt ro ru hr sk sq sv th tr id uk be sl et lv lt fa vi hy eu mk af ka fo hi sw gu ta te kn mr gl kok ar-SA bg-BG ca-ES zh-TW cs-CZ da-DK de-DE el-GR en-US fi-FI fr-FR he-IL hu-HU is-IS it-IT ja-JP ko-KR nl-NL nb-NO pl-PL pt-BR ro-RO ru-RU hr-HR sk-SK sq-AL sv-SE th-TH tr-TR id-ID uk-UA be-BY sl-SI et-EE lv-LV lt-LT fa-IR vi-VN hy-AM eu-ES mk-MK af-ZA ka-GE fo-FO hi-IN sw-KE gu-IN ta-IN te-IN kn-IN mr-IN gl-ES kok-IN ar-IQ zh-CN de-CH en-GB es-MX fr-BE it-CH nl-BE nn-NO pt-PT sv-FI ar-EG zh-HK de-AT en-AU es-ES fr-CA ar-LY zh-SG de-LU en-CA es-GT fr-CH ar-DZ zh-MO en-NZ es-CR fr-LU ar-MA en-IE es-PA ar-TN en-ZA es-DO ar-OM es-VE ar-YE es-CO ar-SY es-PE ar-JO es-AR ar-LB en-ZW es-EC ar-KW en-PH es-CL ar-AE es-UY ar-BH es-PY ar-QA es-BO es-SV es-HN es-NI es-PR zh-CHT
-
-s2q=$(subst \ ,?,$1)
-q2s=$(subst ?,\ ,$1)
-# use this when result will be quoted
-unesc2=$(subst ?, ,$1)
-
-build_sources = $(FILES) $(GENERATED_FILES)
-build_sources_esc= $(call s2q,$(build_sources))
-# use unesc2, as build_sources_embed is quoted
-build_sources_embed= $(call unesc2,$(build_sources_esc:%='$(srcdir)/%'))
-
-comma__=,
-get_resource_name = $(firstword $(subst $(comma__), ,$1))
-get_culture = $(lastword $(subst ., ,$(basename $1)))
-is_cultured_resource = $(and $(word 3,$(subst ., ,$1)), $(filter $(VALID_CULTURES),$(lastword $(subst ., ,$(basename $1)))))
-
-RESOURCES_ESC=$(call s2q,$(RESOURCES))
-
-build_resx_list = $(foreach res, $(RESOURCES_ESC), $(if $(filter %.resx, $(call get_resource_name,$(res))),$(res),))
-build_non_culture_resx_list = $(foreach res, $(build_resx_list),$(if $(call is_cultured_resource,$(call get_resource_name,$(res))),,$(res)))
-build_non_culture_others_list = $(foreach res, $(filter-out $(build_resx_list),$(RESOURCES_ESC)),$(if $(call is_cultured_resource,$(call get_resource_name,$(res))),,$(res)))
-build_others_list = $(build_non_culture_others_list)
-build_xamlg_list = $(filter %.xaml.g.cs, $(FILES))
-
-# resgen all .resx resources
-build_resx_files = $(foreach res, $(build_resx_list), $(call get_resource_name,$(res)))
-build_resx_resources_esc = $(build_resx_files:.resx=.resources)
-build_resx_resources = $(call q2s,$(build_resx_resources_esc))
-
-# embed resources for the main assembly
-build_resx_resources_hack = $(subst .resx,.resources, $(build_non_culture_resx_list))
-# use unesc2, as build_resx_resources_embed is quoted
-build_resx_resources_embed = $(call unesc2,$(build_resx_resources_hack:%='-embedres:%'))
-build_others_files = $(call q2s,$(foreach res, $(build_others_list),$(call get_resource_name,$(res))))
-build_others_resources = $(build_others_files)
-# use unesc2, as build_others_resources_embed is quoted
-build_others_resources_embed = $(call unesc2,$(build_others_list:%='-embedres:$(srcdir)/%'))
-
-build_resources = $(build_resx_resources) $(build_others_resources)
-build_resources_embed = $(build_resx_resources_embed) $(build_others_resources_embed)
-
-# -usesourcepath is available only for resgen2
-emit_resgen_target_1=$(call q2s,$1) : $(call q2s,$(subst .resources,.resx,$1)); cd '$$(shell dirname '$$<')' && MONO_IOMAP=drive $$(RESGEN) '$$(shell basename '$$<')' '$$(shell basename '$$@')'
-emit_resgen_target_2=$(call q2s,$1) : $(call q2s,$(subst .resources,.resx,$1)); MONO_IOMAP=drive $$(RESGEN) -usesourcepath '$$<' '$$@'
-
-emit_resgen_target=$(if $(filter resgen2,$(RESGEN)),$(emit_resgen_target_2),$(emit_resgen_target_1))
-emit_resgen_targets=$(foreach res,$(build_resx_resources_esc),$(eval $(call emit_resgen_target,$(res))))
-
-build_references_ref = $(call q2s,$(foreach ref, $(call s2q,$(REFERENCES)), $(if $(filter -pkg:%, $(ref)), $(ref), $(if $(filter -r:%, $(ref)), $(ref), -r:$(ref)))))
-build_references_ref += $(call q2s,$(foreach ref, $(call s2q,$(DLL_REFERENCES)), -r:$(ref)))
-build_references_ref += $(call q2s,$(foreach ref, $(call s2q,$(PROJECT_REFERENCES)), -r:$(ref)))
-
-s2q2s=$(call unesc2,$(call s2q,$1))
-cp_actual=test -z $1 || cp $1 $2
-cp=$(call cp_actual,'$(call s2q2s,$1)','$(call s2q2s,$2)')
-
-rm_actual=test -z '$1' || rm -f '$2'
-rm=$(call rm_actual,$(call s2q2s,$1),$(call s2q2s,$2)/$(shell basename '$(call s2q2s,$1)'))
-
-EXTRA_DIST += $(build_sources) $(build_resx_files) $(build_others_files) $(ASSEMBLY_WRAPPER_IN) $(EXTRAS) $(DATA_FILES) $(build_culture_res_files)
-CLEANFILES += $(ASSEMBLY) $(ASSEMBLY).mdb $(BINARIES) $(build_resx_resources) $(build_satellite_assembly_list)
-DISTCLEANFILES = $(GENERATED_FILES) $(pc_files) $(BUILD_DIR)/*
-
-pkglib_SCRIPTS = $(ASSEMBLY)
-bin_SCRIPTS = $(BINARIES)
-
-
-
-# macros
-
-# $(call emit-deploy-target,deploy-variable-name)
-define emit-deploy-target
-$($1): $($1_SOURCE)
- mkdir -p '$$(shell dirname '$$@')'
- cp '$$<' '$$@'
-endef
-
-# $(call emit-deploy-wrapper,wrapper-variable-name,wrapper-sourcefile,x)
-# assumes that for a wrapper foo.pc its source template is foo.pc.in
-# if $3 is non-empty then wrapper is marked exec
-define emit-deploy-wrapper
-$($1): $2 $(top_srcdir)/config.make
- mkdir -p '$$(shell dirname '$$@')'
- cp '$$<' '$$@'
- $(if $3,chmod +x '$$@')
-
-$2: $2.in $(top_srcdir)/config.make
- sed -e "s,@prefix@,$(prefix)," -e "s,@PACKAGE@,$(PACKAGE)," -e "s,@expanded_libdir@,$(libdir)," -e "s,@expanded_bindir@,$(bindir)," -e "s,@expanded_datadir@,$(datadir)," < $2.in > $2
-endef
-
-# generating satellite assemblies
-
-culture_resources = $(foreach res, $(RESOURCES_ESC), $(if $(call is_cultured_resource,$(call get_resource_name, $(res))),$(res)))
-cultures = $(sort $(foreach res, $(culture_resources), $(call get_culture,$(call get_resource_name,$(res)))))
-culture_resource_dependencies = $(call q2s,$(BUILD_DIR)/$1/$(SATELLITE_ASSEMBLY_NAME): $(subst .resx,.resources,$2))
-culture_resource_commandlines = $(call unesc2,cmd_line_satellite_$1 += '/embed:$(subst .resx,.resources,$2)')
-build_satellite_assembly_list = $(call q2s,$(cultures:%=$(BUILD_DIR)/%/$(SATELLITE_ASSEMBLY_NAME)))
-build_culture_res_files = $(call q2s,$(foreach res, $(culture_resources),$(call get_resource_name,$(res))))
-install_satellite_assembly_list = $(subst $(BUILD_DIR),$(DESTDIR)$(libdir)/$(PACKAGE),$(build_satellite_assembly_list))
-
-$(eval $(foreach res, $(culture_resources), $(eval $(call culture_resource_dependencies,$(call get_culture,$(call get_resource_name,$(res))),$(call get_resource_name,$(res))))))
-$(eval $(foreach res, $(culture_resources), $(eval $(call culture_resource_commandlines,$(call get_culture,$(call get_resource_name,$(res))),$(res)))))
-
-$(build_satellite_assembly_list): $(BUILD_DIR)/%/$(SATELLITE_ASSEMBLY_NAME):
- mkdir -p '$(@D)'
- $(AL) -out:'$@' -culture:$* -t:lib $(cmd_line_satellite_$*)
-
-$(install_satellite_assembly_list):
- mkdir -p '$(@D)'
- cp $(subst $(DESTDIR)$(libdir)/$(PACKAGE), $(BUILD_DIR), $@) $@
-
-install-satellite-assemblies: $(install_satellite_assembly_list)
-
-uninstall-satellite-assemblies:
- rm -rf $(install_satellite_assembly_list) \ No newline at end of file
diff --git a/extras/BooBinding/Parser/BooParser.boo b/extras/BooBinding/Parser/BooParser.boo
deleted file mode 100644
index f520e35188..0000000000
--- a/extras/BooBinding/Parser/BooParser.boo
+++ /dev/null
@@ -1,185 +0,0 @@
-#region license
-// Copyright (c) 2004-2005, Daniel Grunwald (daniel@danielgrunwald.de)
-// Copyright (c) 2005, Peter Johanson (latexer@gentoo.org)
-// All rights reserved.
-//
-// The BooBinding.Parser code is originally that of Daniel Grunwald
-// (daniel@danielgrunwald.de) from the SharpDevelop BooBinding. The code has
-// been imported here, and modified, including, but not limited to, changes
-// to function with MonoDevelop, additions, refactorings, etc.
-//
-// BooBinding is free software; you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation; either version 2 of the License, or
-// (at your option) any later version.
-//
-// BooBinding is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with BooBinding; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-#endregion
-/*
-namespace BooBinding.Parser
-
-import System
-import System.Collections
-import System.Diagnostics
-import System.IO
-import MonoDevelop.Core
-import MonoDevelop.Projects
-import MonoDevelop.Projects.Dom
-import MonoDevelop.Projects.Dom.Parser
-import MonoDevelop.Ide.Gui
-import Boo.Lang.Compiler
-import Boo.Lang.Compiler.IO
-import Boo.Lang.Compiler.Pipelines
-import Boo.Lang.Compiler.Steps
-
-class BooParser(IParser):
- private _lexerTags as (string)
-
- private cuCache = Hashtable()
-
- LexerTags as (string):
- get:
- return _lexerTags
- set:
- _lexerTags = value
-
- def CreateExpressionFinder(fileName as string) as IExpressionFinder:
- return BooBinding.Parser.ExpressionFinder()
-
- def Parse(fileName as string) as ICompilationUnitBase:
- content as string
- using r = StreamReader(fileName):
- content = r.ReadToEnd()
- return Parse(fileName, content)
-
- def Parse(fileName as string, fileContent as string) as ICompilationUnitBase:
- Log ("Parse ${fileName} with content")
-
- cr = char('\r')
- ln = char('\n')
- linecount = 1
- for c as Char in fileContent:
- linecount += 1 if c == ln
- lineLength = array(int, linecount)
- length = 0
- i = 0
- for c as Char in fileContent:
- if c == ln:
- lineLength[i] = length
- i += 1
- length = 0
- elif c != cr:
- length += 1
- lineLength[i] = length
-
- compiler = BooCompiler()
- compiler.Parameters.Input.Add(StringInput(fileName, fileContent))
- project as Project
- for entry as Project in IdeApp.Workspace.GetAllProjects():
- if entry.IsFileInProject(fileName):
- project = entry
-
- if project is not null and cast(DotNetProject,project).References is not null:
- for projectRef as ProjectReference in cast(DotNetProject,project).References:
- for asmName as string in projectRef.GetReferencedFileNames (ProjectService.DefaultConfiguration):
- compiler.Parameters.References.Add(System.Reflection.Assembly.LoadFile(asmName))
-
- return Parse(fileName, lineLength, compiler)
-
- private def Parse(fileName as string, lineLength as (int), compiler as BooCompiler):
- compiler.Parameters.OutputWriter = StringWriter()
- compiler.Parameters.TraceSwitch.Level = TraceLevel.Warning
-
- compilePipe = Compile()
- parsingStep as Boo.Lang.Parser.BooParsingStep = compilePipe[0]
- parsingStep.TabSize = 1
- //num = compilePipe.Find(typeof(ProcessMethodBodiesWithDuckTyping))
- // Include ProcessMethodBodies step now, as it solves issue
- // with [Propert(foo)] with an untyped 'foo'
- num = compilePipe.Find(typeof(StricterErrorChecking))
- visitor = Visitor(LineLength:lineLength)
- compilePipe[num] = visitor
- // Remove unneccessary compiler steps
- while compilePipe.Count > num + 1:
- compilePipe.RemoveAt(compilePipe.Count - 1)
- num = compilePipe.Find(typeof(TransformCallableDefinitions))
- compilePipe.RemoveAt(num)
-
- //for i in range(compilePipe.Count):
- // print compilePipe[i].ToString()
-
- compilePipe.BreakOnErrors = false
- compiler.Parameters.Pipeline = compilePipe
-
- try:
- compiler.Run()
- // somehow the SD parser thread goes into an endless loop if this flag is not set
- visitor.Cu.ErrorsDuringCompile = true //context.Errors.Count > 0
- except e:
- Error (e.ToString ())
-
- for c as IClass in visitor.Cu.Classes:
- if c.Region is not null:
- c.Region.FileName = fileName
-
- // The following returns the "last known good" parse results
- // for a given file. Keeps our parse info from disappearing
- // when there is a parsing error in a file.
- if visitor.HadErrors:
- if cuCache[fileName] is null:
- return DefaultCompilationUnit()
-
- return cuCache[fileName] as ICompilationUnitBase
-
- cuCache[fileName] = visitor.Cu
- return visitor.Cu
-
- def CtrlSpace(parserContext as IParserContext, caretLine as int, caretColumn as int, fileName as string) as LanguageItemCollection:
- Log ("Ctrl-Space (${caretLine}/${caretColumn})")
- try:
- return Resolver(parserContext).CtrlSpace(caretLine, caretColumn, fileName)
- except e:
- //ShowException(e)
- return null
-
- def IsAsResolve (parserContext as IParserContext, expression as string , caretLineNumber as int , caretColumn as int , fileName as string , fileContent as string, include_ifaces as bool) as LanguageItemCollection:
- return Resolver (parserContext).IsAsResolve (expression, caretLineNumber, caretColumn, fileName, fileContent, include_ifaces)
-
- def Resolve(parserContext as IParserContext, expression as string, caretLineNumber as int, caretColumn as int, fileName as string, fileContent as string) as ResolveResult:
- Log ("Resolve ${expression} (${caretLineNumber}/${caretColumn})")
- try:
- return Resolver(parserContext).Resolve(expression, caretLineNumber, caretColumn, fileName, fileContent)
- except e:
- Error (e.ToString ())
- return null
-
- def MonodocResolver(parserContext as IParserContext, expression as string, caretLineNumber as int, caretColumn as int, fileName as string, fileContent as string) as string:
- Log ("MonodocResolver ${expression} (${caretLineNumber}/${caretColumn})")
- try:
- return Resolver(parserContext).MonodocResolver(expression, caretLineNumber, caretColumn, fileName, fileContent)
- except e:
- //ShowException(e)
- return null
-
- def ResolveIdentifier (parserContext as IParserContext, id as string , caretLineNumber as int , caretColumn as int , fileName as string , fileContent as string ) as ILanguageItem:
- return null
-
- private def Log (message):
- Log (self.GetType(), message)
-
- private def Error (message):
- Error (self.GetType(), message)
-
- static def Log (type, message):
- MonoDevelop.Core.LoggingService.LogDebug (type.ToString () + message)
-
- static def Error (type, message):
- MonoDevelop.Core.LoggingService.LogError (type.ToString () + message)
-*/ \ No newline at end of file
diff --git a/extras/BooBinding/Parser/ExpressionFinder.boo b/extras/BooBinding/Parser/ExpressionFinder.boo
deleted file mode 100644
index 01c3c1690d..0000000000
--- a/extras/BooBinding/Parser/ExpressionFinder.boo
+++ /dev/null
@@ -1,225 +0,0 @@
-#region license
-// Copyright (c) 2004-2005, Daniel Grunwald (daniel@danielgrunwald.de)
-// Copyright (c) 2005, Peter Johanson (latexer@gentoo.org)
-// All rights reserved.
-//
-// The BooBinding.Parser code is originally that of Daniel Grunwald
-// (daniel@danielgrunwald.de) from the SharpDevelop BooBinding. The code has
-// been imported here, and modified, including, but not limited to, changes
-// to function with MonoDevelop, additions, refactorings, etc.
-//
-// BooBinding is free software; you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation; either version 2 of the License, or
-// (at your option) any later version.
-//
-// BooBinding is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with BooBinding; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-#endregion
-/*
-namespace BooBinding.Parser
-
-import System
-import System.Text
-import MonoDevelop.Projects.Dom
-import MonoDevelop.Projects.Dom.Parser
-
-class ExpressionFinder(IExpressionFinder):
- // The expression finder can find an expression in a text
- // inText is the full source code, offset the cursor position
-
- // example: "_var = 'bla'\n_var^\nprint _var"
- // where ^ is the cursor position
- // in that simple case the expression finder should return 'n_var'.
-
- // but also complex expressions like
- // 'filename.Substring(filename.IndexOf("var="))'
- // should be returned if the cursor is after the last ).
-
- // implementation note: the text after offset is irrelevant, so
- // every operation on the string aborts after reaching offset
-
- static _closingBrackets = '}])'
- static _openingBrackets = '{[('
-
- def FindExpression(inText as string, offset as int) as ExpressionResult:
- return ExpressionResult (null) if inText == null
- Log ("Trying quickfind for ${offset}")
- // OK, first try a kind of "quick find"
- i = offset + 1
- forbidden = '"\'/#)]}'
- finish = '([{=+*<,:'
- start = -1
- while i > 0:
- i -= 1
- c = inText[i]
- if finish.IndexOf(c) >= 0:
- start = i + 1
- break
- if forbidden.IndexOf(c) >= 0:
- Log ("Quickfind failed: got ${c}")
- break
- if Char.IsWhiteSpace(c):
- if i > 6 and inText.Substring(i - 6, 6) == "import":
- i -= 7 // include 'import' in the expression
- start = i + 1
- break
- if start >= 0:
- if CheckString(inText, start, '/#"\'', '\r\n'):
- return ExpressionResult (GetExpression(inText, start, offset + 1))
-
- inText = SimplifyCode(inText, offset)
- if inText == null:
- Log ('SimplifyCode returned null (cursor is in comment/string???)')
- return ExpressionResult (null)
- // inText now has no comments or string literals, but the same meaning in
- // terms of the type system
- // Now go back until a finish-character or a whitespace character
- bracketStack = StringBuilder() // use Stack<char> instead in .NET 2.0
- i = inText.Length
- while i > 0:
- i -= 1
- c = inText[i]
- if bracketStack.Length == 0 and (finish.IndexOf(c) >= 0 or Char.IsWhiteSpace(c)):
- return ExpressionResult (GetExpression(inText, i + 1, inText.Length))
- if _closingBrackets.IndexOf(c) >= 0:
- bracketStack.Append(c)
- bracket = _openingBrackets.IndexOf(c)
- if bracket >= 0:
- while Pop(bracketStack) > bracket:
- pass
-
- return ExpressionResult (null)
-
- def FindFullExpression(inText as string, offset as int) as ExpressionResult:
- return ExpressionResult (null)
-
- def RemoveLastPart(expression as string) as string:
- return expression
-
- private def CheckString(text as string, offset as int, forbidden as string, finish as string):
- i = offset
- while i > 0:
- i -= 1
- c = text[i]
- return false if forbidden.IndexOf(c) >= 0
- return true if finish.IndexOf(c) >= 0
- return true
-
- private def Pop(bracketStack as StringBuilder):
- return -1 if bracketStack.Length == 0
- c = bracketStack[bracketStack.Length - 1]
- bracketStack.Length -= 1
- return _closingBrackets.IndexOf(c)
-
- private def GetExpression(inText as string, start as int, end as int):
- b = StringBuilder()
- wasSpace = true
- i = start
- while i < end:
- c = inText[i]
- if Char.IsWhiteSpace(c):
- b.Append(' ') unless wasSpace
- wasSpace = true
- else:
- wasSpace = false
- b.Append(c)
- i += 1
- Log ("Expression is '${b}'")
- return b.ToString().Trim()
-
- // this method makes boo source code "simpler" by removing all comments
- // and replacing all types of strings through string.Empty.
-
- // TODO: We could need some unit tests for this.
-
- static _elseIndex = 10
- */
-// static _stateTable = ( // " ' \ \n $ { } # / * else
-// /* 0: in Code */ ( 1 , 7 , 0 , 0 , 0 , 0 , 0 , 13 , 12 , 0 , 0 ),
-// /* 1: after " */ ( 2 , 6 , 10 , 0 , 8 , 6 , 6 , 6 , 6 , 6 , 6 ),
-// /* 2: after "" */ ( 3 , 7 , 0 , 0 , 0 , 0 , 0 , 13 , 12 , 0 , 0 ),
-// /* 3: in """ */ ( 4 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 ),
-// /* 4: in """, " */ ( 5 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 ),
-// /* 5: in """, "" */ ( 0 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 ),
-// /* 6: in "-string */ ( 0 , 6 , 10 , 0 , 8 , 6 , 6 , 6 , 6 , 6 , 6 ),
-// /* 7: in '-string */ ( 7 , 0 , 11 , 0 , 7 , 7 , 7 , 7 , 7 , 7 , 7 ),
-// /* 8: after $ in " */ ( 0 , 6 , 10 , 0 , 8 , 9 , 6 , 6 , 6 , 6 , 6 ),
-// /* 9: in "{ */ ( 9 , 9 , 9 , 9 , 9 , 9 , 6 , 9 , 9 , 9 , 9 ),
-// /* 10: after \ in " */ ( 6 , 6 , 6 , 0 , 6 , 6 , 6 , 6 , 6 , 6 , 6 ),
-// /* 11: after \ in ' */ ( 7 , 7 , 7 , 0 , 7 , 7 , 7 , 7 , 7 , 7 , 7 ),
-// /* 12: after / */ ( 1 , 7 , 0 , 0 , 0 , 0 , 0 , 0 , 13 ,-14 , 0 ),
-// /* 13: line comment */ ( 13 , 13 , 13 , 0 , 13 , 13 , 13 , 13 , 13 , 13 , 13 ),
-// /* 14: block comment*/ ( 14 , 14 , 14 , 14 , 14 , 14 , 14 , 14 , 14 , 15 , 14 ),
-// /* 15: after * in bc*/ ( 14 , 14 , 14 , 14 , 14 , 14 , 14 , 14 ,-15 , 15 , 14 )
-// )
-/*
- def SimplifyCode(inText as string, offset as int):
- result = StringBuilder()
- inStringResult = StringBuilder(' ')
- state = 0
- commentblocks = 0
- inputTable = array(int, 128)
- for i in range(128):
- inputTable[i] = _elseIndex
- inputTable[ 34] = 0 // "
- inputTable[ 39] = 1 // '
- inputTable[ 92] = 2 // \
- inputTable[ 10] = 3 // \n
- inputTable[ 13] = 3 // \r
- inputTable[ 36] = 4 // $
- inputTable[123] = 5 // {
- inputTable[125] = 6 // }
- inputTable[ 35] = 7 // #
- inputTable[ 47] = 8 // /
- inputTable[ 42] = 9 // *
- for i in range(offset + 1):
- c as Char = inText[i]
- // TODO: Direct char->int conversion
- charNum as int = Encoding.ASCII.GetBytes((c,))[0]
- if charNum > 127:
- input = _elseIndex
- else:
- input = inputTable[charNum]
- action = _stateTable[state][input]
- if action == -14:
- // enter block comment
- commentblocks += 1
- state = 14
- elif action == -15:
- // leave block comment
- commentblocks -= 1
- if commentblocks == 0:
- state = 0
- else:
- state = 14
- elif action == 9:
- if state == 9:
- inStringResult.Append(c)
- else:
- inStringResult.Length = 1
- state = action
- elif action == 0 or action == 12:
- if state == 2 or (state >= 6 and state <= 11):
- result.Append("string.Empty")
- if state == 0 or state == 2 or state == 12:
- result.Append(c)
- state = action
- else:
- state = action
- if state == 0 or state == 2 or state == 12:
- return result.ToString()
- elif state == 9:
- return inStringResult.ToString()
- else:
- return null
-
- private def Log (message):
- BooParser.Log (self.GetType(), message)
-*/ \ No newline at end of file
diff --git a/extras/BooBinding/Parser/ExpressionTypeVisitor.boo b/extras/BooBinding/Parser/ExpressionTypeVisitor.boo
deleted file mode 100644
index d275c866b0..0000000000
--- a/extras/BooBinding/Parser/ExpressionTypeVisitor.boo
+++ /dev/null
@@ -1,269 +0,0 @@
-#region license
-// Copyright (c) 2004-2005, Daniel Grunwald (daniel@danielgrunwald.de)
-// Copyright (c) 2005, Peter Johanson (latexer@gentoo.org)
-// All rights reserved.
-//
-// The BooBinding.Parser code is originally that of Daniel Grunwald
-// (daniel@danielgrunwald.de) from the SharpDevelop BooBinding. The code has
-// been imported here, and modified, including, but not limited to, changes
-// to function with MonoDevelop, additions, refactorings, etc.
-//
-// BooBinding is free software; you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation; either version 2 of the License, or
-// (at your option) any later version.
-//
-// BooBinding is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with BooBinding; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-#endregion
-/*
-namespace BooBinding.Parser
-
-import System
-import System.Collections
-import MonoDevelop.Projects.Dom
-import MonoDevelop.Projects.Dom.Parser
-import Boo.Lang.Compiler.Ast
-
-class ExpressionTypeVisitor(DepthFirstVisitor):
- protected override def OnError(node as Node, error as Exception):
- Error (error.ToString ())
- super(node, error)
-
- private def Log (message):
- BooParser.Log (self.GetType (), message)
-
- private def Error (message):
- BooParser.Error (self.GetType (), message)
-
- [Property(ReturnType)]
- _returnType as IReturnType
-
- [Property(ReturnClass)]
- _returnClass as IClass
-
- [Property(Resolver)]
- _resolver as Resolver
-
- private def CreateReturnType(fullClassName as string):
- _returnClass = null
- if fullClassName == null:
- _returnType = null
- else:
- _returnType = BooBinding.Parser.ReturnType(fullClassName)
-
- private def CreateReturnType(reference as TypeReference):
- _returnClass = null
- if reference == null:
- _returnType = null
- else:
- _returnType = BooBinding.Parser.ReturnType(reference)
-
- private def CreateReturnType(c as IClass):
- _returnClass = c
- if c == null:
- _returnType = null
- else:
- _returnType = BooBinding.Parser.ReturnType(c)
-
- private def SetReturnType(r as IReturnType):
- _returnClass = null
- _returnType = r
-
- private def Debug(node):
- if node == null:
- Log ("-- null --")
- else:
- Log ("${node.ToString()} - ${node.GetType().FullName}")
-
- override def OnBlockExpression(node as BlockExpression):
- Debug(node)
- CreateReturnType("System.Delegate")
-
- override def OnMethodInvocationExpression(node as MethodInvocationExpression):
- Debug(node)
- Debug(node.Target)
- if node.Target isa MemberReferenceExpression:
- // call a method on another object
- mre as MemberReferenceExpression = node.Target
- Visit(mre.Target)
- if _returnClass == null and _returnType != null:
- _returnClass = _resolver.SearchType(_returnType.FullyQualifiedName, true)
- return if ProcessMethod(node, mre.Name, _returnClass)
- // try if the MemberReferenceExpression is a fully qualified class name (constructor call)
- ProcessMemberReferenceExpression(mre.Name)
- CreateReturnType(_returnClass)
- elif node.Target isa ReferenceExpression:
- re as ReferenceExpression = node.Target
- // try if it is a method on the current object
- return if ProcessMethod(node, re.Name, _resolver.CallingClass)
- // try if it is a builtin method
- return if ProcessMethod(node, re.Name, _resolver.BuiltinClass)
- // try if it is a class name -> constructor
- CreateReturnType(_resolver.SearchType(re.Name, true))
- else:
- SetReturnType(null)
-
- private def ProcessMethod(node as MethodInvocationExpression, name as string, c as IClass) as bool:
- return false if c == null
- possibleOverloads = FindMethods(c, name, node.Arguments.Count)
- Log ("found ${possibleOverloads.Count} overloads (multiple overloads not supported yet)")
- if possibleOverloads.Count >= 1:
- SetReturnType(cast(IMethod, possibleOverloads[0]).ReturnType)
- return true
-
- return false
-
- private def FindMethods(c as IClass, name as string, arguments as int):
- possibleOverloads = ArrayList()
- //for cl as IClass in c.ClassInheritanceTree:
- for cl as IClass in _resolver.ParserContext.GetClassInheritanceTree(c):
- for m as IMethod in cl.Methods:
- if m.Parameters.Count == arguments and name == m.Name:
- possibleOverloads.Add(m)
- return possibleOverloads
-
- override def OnSlicingExpression(node as SlicingExpression):
- Debug(node)
- Visit(node.Target)
- slice as Slice = node.Indices[0]
- if (slice.End != null):
- // Boo slice, returns a part of the source -> same type as source
- return
- if _returnType != null and _returnType.ArrayDimensions != null and _returnType.ArrayDimensions.Length > 0:
- SetReturnType(BooBinding.Parser.ReturnType(_returnType.FullyQualifiedName, _returnType.ArrayDimensions[0 : _returnType.ArrayDimensions.Length - 1], 0))
- return
- if _returnClass == null and _returnType != null:
- _returnClass = _resolver.SearchType(_returnType.FullyQualifiedName)
- if _returnClass != null:
- indexers = FindIndexer(_returnClass, 1)
- if indexers.Count > 0:
- SetReturnType(cast(IIndexer, indexers[0]).ReturnType)
- return
- SetReturnType(null)
-
- private def FindIndexer(c as IClass, arguments as int):
- possibleOverloads = ArrayList()
- //for cl as IClass in c.ClassInheritanceTree:
- for cl as IClass in _resolver.ParserContext.GetClassInheritanceTree(c):
- for m as IIndexer in cl.Indexer:
- if m.Parameters.Count == arguments:
- possibleOverloads.Add(m)
- return possibleOverloads
-
- override def OnBinaryExpression(node as BinaryExpression):
- Debug(node)
- CombineTypes(node.Left, node.Right)
-
- override def OnConditionalExpression(node as ConditionalExpression):
- Debug(node)
- CombineTypes(node.TrueValue, node.FalseValue)
-
- private def CombineTypes(a as Expression, b as Expression):
- Visit(a)
-
- override def OnReferenceExpression(node as ReferenceExpression):
- // Resolve reference (to a variable, field, parameter or type)
- rt = _resolver.GetTypeFromLocal(node.Name)
- if rt != null:
- SetReturnType(rt)
- return
-
- return if ProcessMember(node.Name, _resolver.CallingClass)
- if _resolver.IsNamespace(node.Name):
- SetReturnType(NamespaceReturnType(node.Name))
- else:
- CreateReturnType(_resolver.SearchType(node.Name))
-
- override def OnMemberReferenceExpression(node as MemberReferenceExpression):
- Debug(node)
- Visit(node.Target)
- ProcessMemberReferenceExpression(node.Name)
-
- private def ProcessMemberReferenceExpression(name as string):
- """Gets the return type of the MemberReferenceExpression with the specified name
- on the current return type."""
- if _returnType isa NamespaceReturnType:
- name = _returnType.FullyQualifiedName + '.' + name
- if _resolver.IsNamespace(name):
- SetReturnType(NamespaceReturnType(name))
- else:
- CreateReturnType(_resolver.SearchType(name))
- return
- if _returnClass == null and _returnType != null:
- _returnClass = _resolver.SearchType(_returnType.FullyQualifiedName)
- return if ProcessMember(name, _returnClass)
- SetReturnType(null)
-
- private def ProcessMember(name as string, parentClass as IClass):
- return false if parentClass == null
- for cl as IClass in _resolver.ParserContext.GetClassInheritanceTree(parentClass):
- for c as IClass in cl.InnerClasses:
- if c.Name == name:
- CreateReturnType(c)
- return true
- for f as IField in cl.Fields:
- if f.Name == name:
- SetReturnType(f.ReturnType)
- return true
- for p as IProperty in cl.Properties:
- if p.Name == name:
- SetReturnType(p.ReturnType)
- return true
- for m as IMethod in cl.Methods:
- if m.Name == name:
- CreateReturnType("System.Delegate")
- return true
- return false
-
- override def OnTimeSpanLiteralExpression(node as TimeSpanLiteralExpression):
- CreateReturnType("System.TimeSpan")
-
- override def OnIntegerLiteralExpression(node as IntegerLiteralExpression):
- CreateReturnType("System.Int32")
-
- override def OnDoubleLiteralExpression(node as DoubleLiteralExpression):
- CreateReturnType("System.Double")
-
- override def OnNullLiteralExpression(node as NullLiteralExpression):
- CreateReturnType("System.Object")
-
- override def OnStringLiteralExpression(node as StringLiteralExpression):
- CreateReturnType("System.String")
-
- override def OnSelfLiteralExpression(node as SelfLiteralExpression):
- CreateReturnType(_resolver.CallingClass)
-
- override def OnSuperLiteralExpression(node as SuperLiteralExpression):
- CreateReturnType(_resolver.ParentClass)
-
- override def OnBoolLiteralExpression(node as BoolLiteralExpression):
- CreateReturnType("System.Boolean")
-
- override def OnRELiteralExpression(node as RELiteralExpression):
- CreateReturnType("System.Text.RegularExpressions.Regex")
-
- override def OnHashLiteralExpression(node as HashLiteralExpression):
- CreateReturnType("System.Collections.Hashtable")
-
- override def OnListLiteralExpression(node as ListLiteralExpression):
- CreateReturnType("System.Collections.ArrayList")
-
- override def OnArrayLiteralExpression(node as ArrayLiteralExpression):
- CreateReturnType("System.Array")
-
- override def OnTryCastExpression(node as TryCastExpression):
- CreateReturnType(node.Type)
-
- override def OnCastExpression(node as CastExpression):
- CreateReturnType(node.Type)
-
- override def OnTypeofExpression(node as TypeofExpression):
- CreateReturnType("System.Type")
-*/ \ No newline at end of file
diff --git a/extras/BooBinding/Parser/Resolver.boo b/extras/BooBinding/Parser/Resolver.boo
deleted file mode 100644
index 0a008c743e..0000000000
--- a/extras/BooBinding/Parser/Resolver.boo
+++ /dev/null
@@ -1,478 +0,0 @@
-#region license
-// Copyright (c) 2004-2005, Daniel Grunwald (daniel@danielgrunwald.de)
-// Copyright (c) 2005, Peter Johanson (latexer@gentoo.org)
-// All rights reserved.
-//
-// The BooBinding.Parser code is originally that of Daniel Grunwald
-// (daniel@danielgrunwald.de) from the SharpDevelop BooBinding. The code has
-// been imported here, and modified, including, but not limited to, changes
-// to function with MonoDevelop, additions, refactorings, etc.
-//
-// BooBinding is free software; you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation; either version 2 of the License, or
-// (at your option) any later version.
-//
-// BooBinding is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with BooBinding; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-#endregion
-/*
-namespace BooBinding.Parser
-
-import BooBinding
-import System
-import System.Collections
-import System.Diagnostics
-import System.IO
-import MonoDevelop.Core
-import MonoDevelop.Projects.Dom
-import MonoDevelop.Projects.Dom.Parser
-import MonoDevelop.Projects
-import MonoDevelop.Ide.Gui
-import Boo.Lang.Compiler
-import Boo.Lang.Compiler.Ast as AST
-import Boo.Lang.Compiler.IO
-import Boo.Lang.Compiler.Steps
-
-class Resolver:
- [Getter(ParserContext)]
- _parserContext as IParserContext
-
- _caretLine as int
- _caretColumn as int
-
- [Getter(CallingClass)]
- _callingClass as IClass
- _compilationUnit as ICompilationUnit
-
- [Property(ShowStatic)]
- _showStatic as bool
-
- _parentClass as IClass
- ParentClass as IClass:
- get:
- curClass = GetInnermostClass(_compilationUnit) as IClass
- return BaseClass(curClass)
-
- _resolvedMember = false
- _currentMember as IMember
-
- CurrentMember as IMember:
- get:
- if not _resolvedMember:
- _resolvedMember = true
- _currentMember = ResolveCurrentMember()
- return _currentMember
-
-
- def constructor ():
- pass
-
- def constructor (parserContext as IParserContext):
- _parserContext = parserContext
-
- #region Helper methods
- private def ResolveCurrentMember() as IMember:
- Log ("Getting current method... caretLine = ${_caretLine}, caretColumn = ${_caretColumn}")
- return null if _callingClass == null
- best as IMember = null
- line = 0
- for m as IMember in _callingClass.Methods:
- if m.Region != null:
- if m.Region.BeginLine <= _caretLine and m.Region.BeginLine > line:
- line = m.Region.BeginLine
- best = m
- for m as IMember in _callingClass.Properties:
- if m.Region != null:
- if m.Region.BeginLine <= _caretLine and m.Region.BeginLine > line:
- line = m.Region.BeginLine
- best = m
- if _callingClass.Region == null:
- for m as IMember in _callingClass.Methods:
- if m.Region == null:
- if best == null or best.Region.EndLine < _caretLine:
- return m
- return best
-
- _localTypes as Hashtable = {}
-
- def GetTypeFromLocal(name as string) as IReturnType:
- // gets the type of a local variable or method parameter
- return _localTypes[name] if _localTypes.ContainsKey(name)
- _localTypes[name] = null // prevent stack overflow by caching null first
- rt = InnerGetTypeFromLocal(name)
- _localTypes[name] = rt
- return rt
-
- def InnerGetTypeFromLocal(name as string) as IReturnType:
- member = self.CurrentMember
- if member isa BooDefaultMethod:
- method as BooDefaultMethod = member
- for para as IParameter in method.Parameters:
- return para.ReturnType if para.Name == name
- if method.Node != null and method.Node.Body != null:
- varLookup = VariableLookupVisitor(Resolver: self, LookFor: name)
- Log ("Visiting method body of '${method.Name}'")
- varLookup.Visit(method.Node.Body)
- Log ("Finished visiting method body!")
- return varLookup.ReturnType
- elif member isa Property:
- property as Property = member
-
- return property.ReturnType if name == "value"
- for para as IParameter in property.Parameters:
- return para.ReturnType if para.Name == name
- if property.Node != null:
- varLookup = VariableLookupVisitor(Resolver: self, LookFor: name)
- // TODO: visit only the correct body
- Log ("Visiting property body...")
- varLookup.Visit(property.Node.Getter) unless property.Node.Getter == null
- varLookup.Visit(property.Node.Setter) unless property.Node.Setter == null
- Log ("Finished visiting property body!")
-
- Log ("ReturnType: ${varLookup.ReturnType}")
- return varLookup.ReturnType
- return null
-
- def SearchType(name as string) as IClass:
- return SearchType (name, false)
-
- def SearchType (name as string, deep_search as bool) as IClass:
- expandedName = BooAmbience.ReverseTypeConversionTable[name]
- Log ("Expanded name |${expandedName}|") if expandedName != null
- return _parserContext.GetClass(expandedName) if expandedName != null
- //return _parserContext.SearchType(name, _callingClass, _caretLine, _caretColumn)
- klass as IClass = _parserContext.SearchType(name, _callingClass, _compilationUnit)
- if klass == null:
- klass = _parserContext.GetClass (name, true, false)
-
- return klass
-
-
- builtinClass as IClass
-
- BuiltinClass as IClass:
- get:
- builtinClass = _parserContext.GetClass("Boo.Lang.Builtins") if builtinClass == null
- return builtinClass
-
- def IsNamespace(name as string) as bool:
- return _parserContext.NamespaceExists(name)
-
- #endregion
-
- #region CtrlSpace-Completion
- def CtrlSpace(caretLine as int, caretColumn as int, fileName as string) as LanguageItemCollection:
- _caretLine = caretLine
- _caretColumn = caretColumn
- result = LanguageItemCollection ()
- for pt as string in BooAmbience.TypeConversionTable.Values:
- result.Add (Namespace (pt))
-
- result.Add(Namespace ("System")) // system namespace can be used everywhere
-
- builtinClass = self.BuiltinClass
- if builtinClass != null:
- for method as IMethod in builtinClass.Methods:
- result.Add(method)
-
- parseInfo = _parserContext.GetParseInformation(fileName)
- cu = parseInfo.MostRecentCompilationUnit as DefaultCompilationUnit
- _compilationUnit = cu
- if cu != null:
- curClass = GetInnermostClass(cu) as IClass
- _callingClass = curClass
- if curClass != null:
- result = AddCurrentClassMembers(result, curClass)
- result.AddRange(_parserContext.GetNamespaceContents(curClass.Namespace, true, true))
- for u as IUsing in cu.Usings:
- if u != null and (u.Region == null or u.Region.IsInside(caretLine, caretColumn)):
- for name as string in u.Usings:
- result.AddRange(_parserContext.GetNamespaceContents(name, true, true))
- for alias as string in u.Aliases:
- result.Add(Namespace (alias))
- member = self.CurrentMember
- if member != null:
- varList as Hashtable = null
- if member isa BooDefaultMethod:
- method as BooDefaultMethod = member
- for para as IParameter in method.Parameters:
- result.Add(Field(para.ReturnType, para.Name, ModifierEnum.Private, null))
- if method.Node != null:
- varLookup = VariableListLookupVisitor(Resolver: self)
- varLookup.Visit(cast(BooDefaultMethod, member).Node.Body)
- varList = varLookup.Results
- elif member isa Property:
- property as Property = member
- if property.Node != null:
- varLookup = VariableListLookupVisitor(Resolver: self)
- // TODO: visit only the correct body
- varLookup.Visit(property.Node.Getter) unless property.Node.Getter == null
- varLookup.Visit(property.Node.Setter) unless property.Node.Setter == null
- varList = varLookup.Results
- if varList != null:
- for e as DictionaryEntry in varList:
- result.Add(Field(e.Value, e.Key, ModifierEnum.Private, null))
- result.AddRange(_parserContext.GetNamespaceContents("", true, true))
- return result
-
- def AddCurrentClassMembers(result as LanguageItemCollection, curClass as IClass) as LanguageItemCollection:
- if self.CurrentMember != null and self.CurrentMember.IsStatic == false:
- //result = ListMembers(result, curClass, curClass, false)
- result = ListMembers(result, curClass)
- // Add static members, but only from this class (not from base classes)
- for method as IMethod in curClass.Methods:
- result.Add(method) if (method.Modifiers & ModifierEnum.Static) == ModifierEnum.Static
- for field as IField in curClass.Fields:
- result.Add(field) if (field.Modifiers & ModifierEnum.Static) == ModifierEnum.Static
- for property as IProperty in curClass.Properties:
- result.Add(property) if (property.Modifiers & ModifierEnum.Static) == ModifierEnum.Static
- for e as DefaultEvent in curClass.Events:
- result.Add(e) if (e.Modifiers & ModifierEnum.Static) == ModifierEnum.Static
- return result
- #endregion
-
- #region IsAsResolve
-
- # XXX: Finish implementing!
- def IsAsResolve(expression as string, caretLine as int, caretColumn as int, fileName as string, fileContent as string, include_ifaces as bool) as LanguageItemCollection:
- _caretLine = caretLine
- _caretColumn = caretColumn
- result = LanguageItemCollection ()
-
- parse_info = _parserContext.GetParseInformation (fileName)
- cu = parse_info.MostRecentCompilationUnit as DefaultCompilationUnit
- _compilationUnit = cu
- return null if not _compilationUnit
-
- expr = Boo.Lang.Parser.BooParser.ParseExpression("expression", expression)
- return null if not expr
-
- visitor = ExpressionTypeVisitor(Resolver : self)
- visitor.Visit(expr)
-
- def MonodocResolver(expression as string, caretLine as int, caretColumn as int, fileName as string, fileContent as string) as string:
- return null
-
- #region Resolve CC
- def Initialize(parserService as IParserContext, caretLine as int, caretColumn as int, fileName as string):
- _parserContext = parserService
- _caretLine = caretLine
- _caretColumn = caretColumn
-
- parseInfo = _parserContext.GetParseInformation(fileName)
- cu = parseInfo.MostRecentCompilationUnit as DefaultCompilationUnit
- _compilationUnit = cu
- if _compilationUnit == null:
- Log ("BooResolver: No parse information!")
- return false
- _callingClass = GetInnermostClass(cu)
- if _callingClass == null:
- _callingClass = cu.Classes[cu.Classes.Count - 1] if cu.Classes.Count > 0
- if _callingClass != null and _callingClass.Region != null:
- return false if _callingClass.Region.BeginLine > caretLine
-
- return true
-
- def Resolve(expression as string, caretLine as int, caretColumn as int, fileName as string, fileContent as string) as ResolveResult:
- Log ("Resolving |${expression}|")
- if expression == null or expression == '':
- return null
-
- if expression.StartsWith("import "):
- expression = expression.Substring(7).Trim()
- if _parserContext.NamespaceExists(expression):
- return ResolveResult(_parserContext.GetNamespaceList(expression, true, true))
- return null
- elif expression == "import":
- return ResolveResult (_parserContext.GetNamespaceList(String.Empty, true, true))
-
- if not Initialize(_parserContext, caretLine, caretColumn, fileName):
- return null
- callingClass = _callingClass
- returnClass as IClass = null
- _showStatic = false
- if expression == "self":
- returnClass = callingClass
- _showStatic = self.CurrentMember != null and self.CurrentMember.IsStatic
- elif expression == "super":
- returnClass = BaseClass(callingClass)
- _showStatic = self.CurrentMember != null and self.CurrentMember.IsStatic
- //returnClass = self.ParentClass
- else:
- // try looking if the expression is the name of a class
- expressionClass = self.SearchType(expression)
- if expressionClass != null:
- return ResolveResult(expressionClass, ListMembers(LanguageItemCollection(), expressionClass, true))
-
- // try if it is the name of a namespace
- if _parserContext.NamespaceExists(expression):
- return ResolveResult(array(string, 0), _parserContext.GetNamespaceContents(expression, true, true))
-
- expr = Boo.Lang.Parser.BooParser.ParseExpression("expression", expression)
- return null if expr isa AST.IntegerLiteralExpression
- Log ("Using an expression type visitor!")
- visitor = ExpressionTypeVisitor(Resolver : self)
- visitor.Visit(expr)
- retType = visitor.ReturnType
- Log ("result: ${retType}")
- if visitor.ReturnClass != null:
- returnClass = visitor.ReturnClass
- elif retType != null:
- if retType.ArrayDimensions != null and retType.ArrayDimensions.Length > 0:
- returnClass = self.SearchType("System.Array")
- else:
- returnClass = self.SearchType(retType.FullyQualifiedName)
-
- return null if returnClass == null
- return ResolveResult(returnClass, ListMembers(LanguageItemCollection(), returnClass, _showStatic))
- #endregion
-
- #region Code converted from CSharpBinding/Parser/Resolver.cs
- def MustBeShowen(c as IClass, member as IDecoration) as bool:
- if (((not _showStatic) and ((member.Modifiers & ModifierEnum.Static) == ModifierEnum.Static)) or
- (_showStatic and not ((member.Modifiers & ModifierEnum.Static) == ModifierEnum.Static))):
- return false
-
- Log ("Testing Accessibility")
- return IsAccessible(c, member)
-
- def IsAccessible(c as IClass, member as IDecoration) as bool:
- Log ("member.Modifiers = " + member.Modifiers)
- if ((member.Modifiers & ModifierEnum.Internal) == ModifierEnum.Internal):
- return true
-
- if ((member.Modifiers & ModifierEnum.Public) == ModifierEnum.Public):
- Log ("IsAccessible")
- return true
-
- if (member.Modifiers & ModifierEnum.Protected) == ModifierEnum.Protected:
- if _callingClass is not null and IsClassInInheritanceTree(c, _callingClass):
- return true
- else:
- return false
-
- return false if _callingClass is null
- return c.FullyQualifiedName == _callingClass.FullyQualifiedName
-
- /// <remarks>
- /// Returns true, if class possibleBaseClass is in the inheritance tree from c
- /// </remarks>
- def IsClassInInheritanceTree(possibleBaseClass as IClass , c as IClass) as bool:
- if (possibleBaseClass == null or c == null):
- return false
-
- if (possibleBaseClass.FullyQualifiedName == c.FullyQualifiedName):
- return true
-
- for baseType as IReturnType in c.BaseTypes:
- bc = _parserContext.GetClass (baseType.FullyQualifiedName, true, true)
- if (IsClassInInheritanceTree(possibleBaseClass, bc)):
- return true
-
- return false
-
- def BaseClass(curClass as IClass) as IClass:
- for baseType as IReturnType in curClass.BaseTypes:
- baseClass = _parserContext.GetClass (baseType.FullyQualifiedName, true, true)
- if ((baseClass != null) and (baseClass.ClassType != ClassType.Interface)):
- return baseClass
- return null
-
- def ListMembers(members as LanguageItemCollection, curType as IClass) as LanguageItemCollection:
- return ListMembers (members, curType, false)
-
- def ListMembers(members as LanguageItemCollection, curType as IClass, showStatic as bool) as LanguageItemCollection:
- _showStatic = showStatic
- Log ("LIST MEMBERS!!!")
- Log ("_showStatic = " + _showStatic)
- Log (curType.InnerClasses.Count + " classes")
- Log (curType.Properties.Count + " properties")
- Log (curType.Methods.Count + " methods")
- Log (curType.Events.Count + " events")
- Log (curType.Fields.Count + " fields")
- if _showStatic:
- for c as IClass in curType.InnerClasses:
- if IsAccessible(curType, c):
- members.Add(c)
- Log ("Member added")
-
- for p as IProperty in curType.Properties:
- if (MustBeShowen(curType, p)):
- members.Add(p)
- Log ("Member added")
-
- Log ("ADDING METHODS!!!")
- for m as IMethod in curType.Methods:
- Log ("Method : " + m)
- if (MustBeShowen(curType, m)):
- members.Add(m)
- Log ("Member added")
-
- for e as IEvent in curType.Events:
- if (MustBeShowen(curType, e)):
- members.Add(e)
- Log ("Member added")
-
- for f as IField in curType.Fields:
- if (MustBeShowen(curType, f)):
- members.Add(f)
- Log ("Member added")
- else:
- //// enum fields must be shown here if present
- if (curType.ClassType == ClassType.Enum):
- members.Add(f) if (IsAccessible(curType,f))
- Log ("Member ${f.FullyQualifiedName} added")
-
- Log ("ClassType = " + curType.ClassType)
- if (curType.ClassType == ClassType.Interface and not _showStatic):
- for baseType as IReturnType in curType.BaseTypes:
- baseClass = _parserContext.GetClass (baseType.FullyQualifiedName, true, true)
- if (baseClass != null and baseClass.ClassType == ClassType.Interface):
- ListMembers(members, baseClass)
- else:
- baseClass = BaseClass(curType)
- if (baseClass != null):
- Log ("Base Class = " + baseClass.FullyQualifiedName)
- ListMembers(members, baseClass, _showStatic)
-
- Log ("listing finished")
- return members
-
- def GetResolvedClass (cls as IClass) as IClass:
- // Returns an IClass in which all type names have been properly resolved
- return _parserContext.GetClass (cls.FullyQualifiedName)
-
- def GetInnermostClass(cu as ICompilationUnit) as IClass:
- if (cu != null):
- for c as IClass in cu.Classes:
- if (c != null and c.Region != null and c.Region.IsInside(_caretLine, _caretColumn)):
- return GetInnermostClass(c)
- return null
-
- def GetInnermostClass(curClass as IClass) as IClass:
- if (curClass == null):
- return null
-
- if (curClass.InnerClasses == null):
- return GetResolvedClass (curClass)
-
- for c as IClass in curClass.InnerClasses:
- if (c != null and c.Region != null and c.Region.IsInside(_caretLine, _caretColumn)):
- return GetInnermostClass(c)
-
- return GetResolvedClass (curClass)
-
- private def Log (message):
- BooParser.Log (self.GetType(), message)
-
- private def Error (message):
- BooParser.Error (self.GetType(), message)
-
-*/ \ No newline at end of file
diff --git a/extras/BooBinding/Parser/ReturnType.boo b/extras/BooBinding/Parser/ReturnType.boo
deleted file mode 100644
index aa6fade3bd..0000000000
--- a/extras/BooBinding/Parser/ReturnType.boo
+++ /dev/null
@@ -1,202 +0,0 @@
-#region license
-// Copyright (c) 2004-2005, Daniel Grunwald (daniel@danielgrunwald.de)
-// Copyright (c) 2005, Peter Johanson (latexer@gentoo.org)
-// All rights reserved.
-//
-// The BooBinding.Parser code is originally that of Daniel Grunwald
-// (daniel@danielgrunwald.de) from the SharpDevelop BooBinding. The code has
-// been imported here, and modified, including, but not limited to, changes
-// to function with MonoDevelop, additions, refactorings, etc.
-//
-// BooBinding is free software; you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation; either version 2 of the License, or
-// (at your option) any later version.
-//
-// BooBinding is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with BooBinding; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-#endregion
-/*
-namespace BooBinding.Parser
-
-import System
-import System.Collections
-import System.Diagnostics
-import MonoDevelop.Projects.Dom
-import MonoDevelop.Core
-import Boo.Lang.Compiler.Ast as AST
-import MonoDevelop.Ide.Gui;
-
-/////////////////////////////////////
-/// Return Type ///
-/////////////////////////////////////
-class ReturnType(DomReturnType):
- def constructor(fullyQualifiedName as string):
- self(fullyQualifiedName, array(int, 0), 0)
-
- def constructor(fullyQualifiedName as string, arrayDimensions as (int), pointerNestingLevel as int):
- self.FullyQualifiedName = fullyQualifiedName
- self.arrayDimensions = arrayDimensions
- self.pointerNestingLevel = pointerNestingLevel
-
- def constructor(t as AST.TypeReference):
- super.pointerNestingLevel = 0
- if t isa AST.SimpleTypeReference:
- super.arrayDimensions = array(int, 0)
- name = cast(AST.SimpleTypeReference, t).Name
- expandedName = BooBinding.BooAmbience.ReverseTypeConversionTable[name]
- name = expandedName if expandedName != null
- super.FullyQualifiedName = name
- elif t isa AST.ArrayTypeReference:
- ar as AST.ArrayTypeReference = t
- depth = 1
- while ar.ElementType isa AST.ArrayTypeReference:
- depth += 1
- ar = ar.ElementType
- dimensions = array(int, depth)
- for i as int in range(depth):
- dimensions[i] = 1
- self.arrayDimensions = dimensions
- if ar.ElementType isa AST.SimpleTypeReference:
- super.FullyQualifiedName = cast(AST.SimpleTypeReference, ar.ElementType).Name
- else:
- Error ("Got unknown TypeReference in Array: ${t}")
- super.FullyQualifiedName = "<Error>"
- else:
- super.arrayDimensions = array(int, 0)
- super.FullyQualifiedName = "<Error>"
- Error ("Got unknown TypeReference ${t}")
-
- static def CreateReturnType(node as AST.Node) as IReturnType:
- if node isa AST.Field:
- t = (node as AST.Field).Type
- elif node isa AST.Property:
- t = (node as AST.Property).Type
- elif node isa AST.Method:
- t = (node as AST.Method).ReturnType
- else:
- raise "Unknown node ${node.GetType().FullName}"
- str = t as AST.SimpleTypeReference
- if (str != null and str.Name != "unknown") or t isa AST.ArrayTypeReference:
- return ReturnType(t)
- else:
- if node isa AST.Field:
- return InferredReturnType((node as AST.Field).Initializer, node.LexicalInfo)
- elif node isa AST.Property:
- prop as AST.Property = node
- return InferredReturnType(GetReturnExpression(prop.Getter), node.LexicalInfo)
- elif node isa AST.Method:
- return InferredReturnType(GetReturnExpression(node), node.LexicalInfo)
-
- private static def GetReturnExpression(method as AST.Method):
- return null if method == null
- return null if method.Body == null
- visitor = FindReturnExpressionVisitor()
- method.Body.Accept(visitor)
- return visitor.Expression
-
- private class FindReturnExpressionVisitor(AST.DepthFirstVisitor):
- [Getter(Expression)]
- _expression as AST.Expression
-
- override def OnReturnStatement(node as AST.ReturnStatement):
- if _expression isa AST.NullLiteralExpression or not (node.Expression isa AST.NullLiteralExpression):
- _expression = node.Expression
-
- def constructor(t as AST.TypeDefinition):
- self(t.FullName)
-
- def constructor(c as IClass):
- self(c.FullyQualifiedName)
-
- def Clone() as ReturnType:
- return ReturnType(FullyQualifiedName, arrayDimensions, pointerNestingLevel)
-
- override def ToString():
- return "[${GetType().Name} Name=${FullyQualifiedName}]"
-
- private def Error (message):
- BooParser.Error (self.GetType (), message)
-
-/////////////////////////////////////
-/// Namespace Return Type ///
-/////////////////////////////////////
-class NamespaceReturnType(DomReturnType):
- def constructor(fullyQualifiedName as string):
- self.FullyQualifiedName = fullyQualifiedName
- self.arrayDimensions = array(int, 0)
- self.pointerNestingLevel = 0
-
- override def ToString():
- return "[${GetType().Name} Name=${FullyQualifiedName}]"
-
-/////////////////////////////////////
-/// Inferred Return Type ///
-/////////////////////////////////////
-class InferredReturnType(DomReturnType):
- _expression as AST.Expression
-
- _filename as string
- _caretLine as int
- _caretColumn as int
-
- def constructor(expression as AST.Expression, info as AST.LexicalInfo):
- _expression = expression
- if info == null or expression == null:
- _resolved = true // don't resolve but return error
- else:
- _filename = info.FileName
- _caretLine = info.Line
- _caretColumn = info.Column
-
- _baseType as IReturnType
- _resolved as bool = false
-
- override FullyQualifiedName as string:
- get:
- r = self.BaseType
- if r == null:
- return "<Error>"
- else:
- return r.FullyQualifiedName
- set:
- raise NotSupportedException()
-
- override PointerNestingLevel as int:
- get:
- r = self.BaseType
- if r == null:
- return 0
- else:
- return r.PointerNestingLevel
-
- override ArrayDimensions as (int):
- get:
- r = self.BaseType
- if r == null:
- return array(int, 0)
- else:
- return r.ArrayDimensions
-
- BaseType as IReturnType:
- get:
- if not _resolved:
- _resolved = true
- _baseType = Resolve()
- return _baseType
-
- def Resolve() as IReturnType:
- resolver = Resolver()
- if resolver.Initialize(IdeApp.Workspace.ParserDatabase.GetFileParserContext (_filename), _caretLine, _caretColumn, _filename):
- visitor = ExpressionTypeVisitor(Resolver : resolver)
- visitor.Visit(_expression)
- return visitor.ReturnType
- else:
- return null
-*/ \ No newline at end of file
diff --git a/extras/BooBinding/Parser/Tree.boo b/extras/BooBinding/Parser/Tree.boo
deleted file mode 100644
index 71dda8039c..0000000000
--- a/extras/BooBinding/Parser/Tree.boo
+++ /dev/null
@@ -1,81 +0,0 @@
-#region license
-// Copyright (c) 2004-2005, Daniel Grunwald (daniel@danielgrunwald.de)
-// Copyright (c) 2005, Peter Johanson (latexer@gentoo.org)
-// All rights reserved.
-//
-// The BooBinding.Parser code is originally that of Daniel Grunwald
-// (daniel@danielgrunwald.de) from the SharpDevelop BooBinding. The code has
-// been imported here, and modified, including, but not limited to, changes
-// to function with MonoDevelop, additions, refactorings, etc.
-//
-// BooBinding is free software; you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation; either version 2 of the License, or
-// (at your option) any later version.
-//
-// BooBinding is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with BooBinding; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-#endregion
-/*
-namespace BooBinding.Parser
-
-import System
-import System.CodeDom
-import System.Collections
-import System.Diagnostics
-import MonoDevelop.Projects.Dom
-import Boo.Lang.Compiler.Ast as AST
-
-/////////////////////////////////////
-/// Class ///
-/////////////////////////////////////
-class Class(DefaultClass):
-
- def constructor(cu as DefaultCompilationUnit, t as ClassType, m as ModifierEnum, region as IRegion):
- super (cu)
- classType = t
- self.region = region
- modifiers = m
-
- def UpdateModifier():
- if classType == ClassType.Enum:
- for f as Field in Fields:
- f.AddModifier(ModifierEnum.Public)
-
- return
-
- for f as Field in Fields:
- if f.Modifiers == ModifierEnum.None:
- f.AddModifier(ModifierEnum.Protected)
-
- if classType != ClassType.Interface:
- return
-
- for c as Class in InnerClasses:
- c.modifiers = c.modifiers | ModifierEnum.Public
-
- for m as IMethod in Methods:
- if m isa BooDefaultMethod:
- cast(BooDefaultMethod, m).AddModifier(ModifierEnum.Public)
- else:
- Debug.Assert(false, 'Unexpected type in method of interface. Can not set modifier to public!')
-
- for e as DefaultEvent in Events:
- e.AddModifier(ModifierEnum.Public)
-
- for f as Field in Fields:
- f.AddModifier(ModifierEnum.Public)
-
- for i as Indexer in Indexer:
- i.AddModifier(ModifierEnum.Public)
-
- for p as Property in Properties:
- p.AddModifier(ModifierEnum.Public)
-
-*/
diff --git a/extras/BooBinding/Parser/TypeMembers.boo b/extras/BooBinding/Parser/TypeMembers.boo
deleted file mode 100644
index 7598c1b73c..0000000000
--- a/extras/BooBinding/Parser/TypeMembers.boo
+++ /dev/null
@@ -1,102 +0,0 @@
-#region license
-// Copyright (c) 2004-2005, Daniel Grunwald (daniel@danielgrunwald.de)
-// Copyright (c) 2005, Peter Johanson (latexer@gentoo.org)
-// All rights reserved.
-//
-// The BooBinding.Parser code is originally that of Daniel Grunwald
-// (daniel@danielgrunwald.de) from the SharpDevelop BooBinding. The code has
-// been imported here, and modified, including, but not limited to, changes
-// to function with MonoDevelop, additions, refactorings, etc.
-//
-// BooBinding is free software; you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation; either version 2 of the License, or
-// (at your option) any later version.
-//
-// BooBinding is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with BooBinding; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-#endregion
-/*
-namespace BooBinding.Parser
-
-import System
-import MonoDevelop.Projects.Dom
-import Boo.Lang.Compiler.Ast as AST
-
-class Constructor(BooDefaultMethod):
- def constructor(m as ModifierEnum, region as IRegion, bodyRegion as IRegion):
- Name = 'ctor'
- self.region = region
- self.bodyRegion = bodyRegion
- modifiers = m
-
-class Destructor(BooDefaultMethod):
- def constructor(className as string, m as ModifierEnum, region as IRegion, bodyRegion as IRegion):
- Name = '~' + className
- self.region = region
- self.bodyRegion = bodyRegion
- modifiers = m
-
-class BooDefaultMethod(DefaultMethod):
- [Property(Node)]
- _node as AST.Method
-
- def AddModifier(m as ModifierEnum):
- modifiers = modifiers | m
-
-class Field(DefaultField):
- def AddModifier(m as ModifierEnum):
- modifiers = modifiers | m
-
- def constructor(rtype as IReturnType, name as string, m as ModifierEnum, region as IRegion):
- self.returnType = rtype
- self.Name = name
- self.region = region
- modifiers = m
-
- def SetModifiers(m as ModifierEnum):
- modifiers = m
-
-class Indexer(DefaultIndexer):
- def AddModifier(m as ModifierEnum):
- modifiers = modifiers | m
-
- def constructor(rtype as IReturnType, parameters as ParameterCollection, m as ModifierEnum, region as IRegion, bodyRegion as IRegion):
- returnType = rtype
- self.parameters = parameters
- self.region = region
- self.bodyRegion = bodyRegion
- modifiers = m
-
-class Method(BooDefaultMethod):
- def constructor(name as string, rtype as IReturnType, m as ModifierEnum, region as IRegion, bodyRegion as IRegion):
- Name = name
- self.returnType = rtype
- self.region = region
- self.bodyRegion = bodyRegion
- modifiers = m
-
-class Property(DefaultProperty):
- [Property(Node)]
- _node as AST.Property
-
- def AddModifier(m as ModifierEnum):
- modifiers = modifiers | m
-
- def constructor(name as string, rtype as IReturnType, getter as IMethod, setter as IMethod, getRegion as IRegion, setRegion as IRegion, m as ModifierEnum, region as IRegion, bodyRegion as IRegion):
- self.Name = name
- self.returnType = rtype
- self.getterMethod = getter
- self.setterMethod = setter
- self.getterRegion = getRegion
- self.setterRegion = setRegion
- self.region = region
- self.bodyRegion = bodyRegion
- modifiers = m
-*/ \ No newline at end of file
diff --git a/extras/BooBinding/Parser/VariableLookupVisitor.boo b/extras/BooBinding/Parser/VariableLookupVisitor.boo
deleted file mode 100644
index 17327a25a2..0000000000
--- a/extras/BooBinding/Parser/VariableLookupVisitor.boo
+++ /dev/null
@@ -1,103 +0,0 @@
-#region license
-// Copyright (c) 2004-2005, Daniel Grunwald (daniel@danielgrunwald.de)
-// Copyright (c) 2005, Peter Johanson (latexer@gentoo.org)
-// All rights reserved.
-//
-// The BooBinding.Parser code is originally that of Daniel Grunwald
-// (daniel@danielgrunwald.de) from the SharpDevelop BooBinding. The code has
-// been imported here, and modified, including, but not limited to, changes
-// to function with MonoDevelop, additions, refactorings, etc.
-//
-// BooBinding is free software; you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation; either version 2 of the License, or
-// (at your option) any later version.
-//
-// BooBinding is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with BooBinding; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-#endregion
-/*
-namespace BooBinding.Parser
-
-import System
-import System.Collections
-import MonoDevelop.Projects.Dom
-import Boo.Lang.Compiler.Ast
-
-class VariableLookupVisitor(DepthFirstVisitor):
- [Property(Resolver)]
- _resolver as Resolver
-
- [Property(LookFor)]
- _lookFor as string
-
- [Getter(ReturnType)]
- _returnType as IReturnType
-
- private def Finish(expr as Expression):
- return if expr == null
- return if _returnType != null
- visitor = ExpressionTypeVisitor(Resolver: _resolver)
- visitor.Visit(expr)
- _returnType = visitor.ReturnType
-
- private def Finish(reference as TypeReference):
- return if _returnType != null
- return if reference == null
- _returnType = BooBinding.Parser.ReturnType(reference)
-
- override def OnDeclaration(node as Declaration):
- return if node.Name != _lookFor
- Finish(node.Type)
-
- override def OnDeclarationStatement(node as DeclarationStatement):
- return if node.Declaration.Name != _lookFor
- Visit(node.Declaration)
- Finish(node.Initializer)
-
- override def OnBinaryExpression(node as BinaryExpression):
- BooParser.Log (self.GetType (), "Binary expression: '${node}'")
- if node.Operator == BinaryOperatorType.Assign and node.Left isa ReferenceExpression:
- reference as ReferenceExpression = node.Left
- if reference.Name == _lookFor:
- Finish(node.Right) unless reference isa MemberReferenceExpression
- super(node)
-
-class VariableListLookupVisitor(DepthFirstVisitor):
- [Property(Resolver)]
- _resolver as Resolver
-
- [Getter(Results)]
- _results as Hashtable = {}
-
- private def Add(name as string, expr as Expression):
- return if name == null or expr == null
- return if _results.ContainsKey(name)
- visitor = ExpressionTypeVisitor(Resolver: _resolver)
- visitor.Visit(expr)
- _results.Add(name, visitor.ReturnType)
-
- private def Add(name as string, reference as TypeReference):
- return if reference == null or name == null
- return if _results.ContainsKey(name)
- _results.Add(name, BooBinding.Parser.ReturnType(reference))
-
- override def OnDeclaration(node as Declaration):
- Add(node.Name, node.Type)
-
- override def OnDeclarationStatement(node as DeclarationStatement):
- Visit(node.Declaration)
- Add(node.Declaration.Name, node.Initializer)
-
- override def OnBinaryExpression(node as BinaryExpression):
- if node.Operator == BinaryOperatorType.Assign and node.Left isa ReferenceExpression:
- reference as ReferenceExpression = node.Left
- Add(reference.Name, node.Right) unless reference isa MemberReferenceExpression
- super(node)
-*/ \ No newline at end of file
diff --git a/extras/BooBinding/Parser/Visitor.boo b/extras/BooBinding/Parser/Visitor.boo
deleted file mode 100644
index ae6a408f9b..0000000000
--- a/extras/BooBinding/Parser/Visitor.boo
+++ /dev/null
@@ -1,304 +0,0 @@
-#region license
-// Copyright (c) 2004-2005, Daniel Grunwald (daniel@danielgrunwald.de)
-// Copyright (c) 2005, Peter Johanson (latexer@gentoo.org)
-// All rights reserved.
-//
-// The BooBinding.Parser code is originally that of Daniel Grunwald
-// (daniel@danielgrunwald.de) from the SharpDevelop BooBinding. The code has
-// been imported here, and modified, including, but not limited to, changes
-// to function with MonoDevelop, additions, refactorings, etc.
-//
-// BooBinding is free software; you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation; either version 2 of the License, or
-// (at your option) any later version.
-//
-// BooBinding is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with BooBinding; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-#endregion
-/*
-namespace BooBinding.Parser
-
-import System
-import System.Collections
-import MonoDevelop.Core
-import MonoDevelop.Projects.Dom
-import Boo.Lang.Compiler
-import Boo.Lang.Compiler.Ast as AST
-import Boo.Lang.Compiler.IO
-import Boo.Lang.Compiler.Steps
-
-class Visitor(AbstractVisitorCompilerStep):
- [Getter(Cu)]
- _cu as DefaultCompilationUnit = DefaultCompilationUnit()
-
- _currentClass as Stack = Stack()
- _firstModule = true
-
- [Getter(HadErrors)]
- _hadErrors = false
-
- _parseErrorCodes = ("BCE0043", "BCE0044")
-
- override def Run():
- // If we've had an parser errors, we should ignore this
- // parese attempt. Set _hadErrors and return immediately.
- if Errors is not null and Errors.Count > 0:
- for error in Errors:
- if error.Code in _parseErrorCodes:
- _hadErrors = true
- return
-
- try:
- Visit(CompileUnit)
- except e:
- Error (e.ToString ())
-
- private def GetModifier(m as AST.TypeMember) as ModifierEnum:
- r = ModifierEnum.None
- r = r | ModifierEnum.Public if m.IsPublic
- r = r | ModifierEnum.Protected if m.IsProtected
- r = r | ModifierEnum.Private if m.IsPrivate
- r = r | ModifierEnum.Internal if m.IsInternal
-
- r = r | ModifierEnum.Static if m.IsStatic
- r = r | ModifierEnum.Virtual if m.IsModifierSet(AST.TypeMemberModifiers.Virtual)
- r = r | ModifierEnum.Abstract if m.IsModifierSet(AST.TypeMemberModifiers.Abstract)
- r = r | ModifierEnum.Override if m.IsModifierSet(AST.TypeMemberModifiers.Override)
-
- r = r | ModifierEnum.Final if m.IsFinal
- return r
-
- [Property(LineLength)]
- _lineLength as (int)
-
- private def GetLineEnd(line as int) as int:
- return 0 if _lineLength == null or line < 1 or line > _lineLength.Length
- return _lineLength[line - 1] + 1
-
- private def GetRegion(m as AST.Node):
- l = m.LexicalInfo
- return null if (l.Line < 0)
- return DefaultRegion(l.Line, 0 , l.Line, GetLineEnd(l.Line))
-
- private def GetClientRegion(m as AST.Node) as DefaultRegion:
- l = m.LexicalInfo
- return null if l.Line < 0
- l2 as AST.SourceLocation = null
- if m isa AST.Method:
- l2 = cast(AST.Method, m).Body.EndSourceLocation
- elif m isa AST.Property:
- p as AST.Property = m
- if p.Getter != null and p.Getter.Body != null:
- l2 = cast(AST.Property, m).Getter.Body.EndSourceLocation
- if p.Setter != null and p.Setter.Body != null:
- l3 = cast(AST.Property, m).Setter.Body.EndSourceLocation
- l2 = l3 if l3.Line > l2.Line
- elif p.Setter != null and p.Setter.Body != null:
- l2 = cast(AST.Property, m).Setter.Body.EndSourceLocation
- else:
- l2 = m.EndSourceLocation
- return null if l2 == null or l2.Line < 0 or l.Line == l2.Line
- // TODO: use l.Column / l2.Column when the tab-bug has been fixed
- return DefaultRegion(l.Line, GetLineEnd(l.Line), l2.Line, GetLineEnd(l2.Line))
-
- override def OnImport(p as AST.Import):
- u = DefaultUsing()
- if p.Alias == null:
- u.Usings.Add(p.Namespace)
- else:
- u.Aliases[p.Alias.Name] = ReturnType(p.Namespace)
- _cu.Usings.Add(u)
-
- override def OnCallableDefinition(node as AST.CallableDefinition):
- Log ("OnCallableDefinition: ${node.FullName}")
- region = GetRegion(node)
- modifier = GetModifier(node)
- c = Class(_cu, ClassType.Delegate, modifier, region)
- // TODO: Check how a return type with type System.Delegate dan be created
- c.BaseTypes.Add(ReturnType('System.Delegate'))
- c.FullyQualifiedName = node.FullName
- if _currentClass.Count > 0:
- cast(Class, _currentClass.Peek()).InnerClasses.Add(c)
- else:
- _cu.Classes.Add(c)
- invokeMethod = Method('Invoke', ReturnType(node.ReturnType), modifier, region, region)
- invokeMethod.Parameters = GetParameters(node.Parameters)
- c.Methods.Add(invokeMethod)
-
- override def EnterClassDefinition(node as AST.ClassDefinition):
- EnterTypeDefinition(node, ClassType.Class)
- return super(node)
-
- override def EnterInterfaceDefinition(node as AST.InterfaceDefinition):
- EnterTypeDefinition(node, ClassType.Interface)
- return super(node)
-
- override def EnterEnumDefinition(node as AST.EnumDefinition):
- EnterTypeDefinition(node, ClassType.Enum)
- return super(node)
-
-
- private def EnterTypeDefinition(node as AST.TypeDefinition, classType as ClassType):
- try:
- Log ("Enter ${node.GetType().Name} (${node.FullName})")
- region = GetClientRegion(node)
- modifier = GetModifier(node)
- c = Class(_cu, classType, modifier, region)
- c.FullyQualifiedName = node.FullName
- c.Documentation = node.Documentation
- if _currentClass.Count > 0:
- cast(Class, _currentClass.Peek()).InnerClasses.Add(c) unless c.Name.StartsWith ("___")
- else:
- _cu.Classes.Add(c) unless c.Name.StartsWith ("___")
- if node.BaseTypes != null:
- for r as AST.SimpleTypeReference in node.BaseTypes:
- // TODO: Check how a return type with type System.Delegate dan be created
- c.BaseTypes.Add(ReturnType(r.Name))
- _currentClass.Push(c)
- except ex:
- Error (ex.ToString ())
- raise
-
- override def LeaveClassDefinition(node as AST.ClassDefinition):
- LeaveTypeDefinition(node)
- super(node)
-
- override def LeaveInterfaceDefinition(node as AST.InterfaceDefinition):
- LeaveTypeDefinition(node)
- super(node)
-
- override def LeaveEnumDefinition(node as AST.EnumDefinition):
- LeaveTypeDefinition(node)
- super(node)
-
-
-
- private def LeaveTypeDefinition(node as AST.TypeDefinition):
- c as Class = _currentClass.Pop()
- Log ("Leave ${node.GetType().Name} ${node.FullName} (Class = ${c.FullyQualifiedName})")
- c.UpdateModifier()
-
- override def OnMethod(node as AST.Method):
- try:
- if node.Name.StartsWith("___"):
- return
-
- method = GetMethod(node)
- cast(Class, _currentClass.Peek()).Methods.Add(method)
- except ex:
- Error (ex.ToString ())
- raise
-
- private def GetMethod(node as AST.Method):
- method = Method(node.Name, ReturnType.CreateReturnType(node), GetModifier(node), GetRegion(node), GetClientRegion(node))
- method.Parameters = GetParameters(node.Parameters)
- method.Node = node
- method.Documentation = node.Documentation
- return method
-
- private def GetParameters(params as AST.ParameterDeclarationCollection):
- parameters = ParameterCollection()
- return parameters if params == null
- for par as AST.ParameterDeclaration in params:
- parameters.Add(DefaultParameter(null, par.Name, ReturnType(par.Type)))
- return parameters
-
- override def OnConstructor(node as AST.Constructor):
- return if node.Body.Statements.Count == 0
- ctor = Constructor(GetModifier(node), GetRegion(node), GetClientRegion(node))
- ctor.Parameters = GetParameters(node.Parameters)
- ctor.Node = node
- ctor.Documentation = node.Documentation
- cast(Class, _currentClass.Peek()).Methods.Add(ctor)
-
- override def OnEnumMember(node as AST.EnumMember):
- try:
- c as Class = _currentClass.Peek()
- field = Field(null, node.Name, GetModifier(node), GetRegion(node))
- field.Documentation = node.Documentation
- field.SetModifiers(ModifierEnum.Const | ModifierEnum.SpecialName)
- c.Fields.Add(field)
- except x:
- Error (x.ToString ())
- raise
-
- override def OnField(node as AST.Field):
- try:
- Log ("Field ${node.Name}")
- if node.Name.StartsWith("___"):
- return
-
- c as Class = _currentClass.Peek()
- field = Field(ReturnType.CreateReturnType(node), node.Name, GetModifier(node), GetRegion(node))
- field.Documentation = node.Documentation
- c.Fields.Add(field)
- except ex:
- Error (ex.ToString ())
- raise
-
- override def OnProperty(node as AST.Property):
- try:
- getter as Method
- setter as Method
- getRegion as IRegion
- setRegion as IRegion
- if node.Getter is not null:
- getter = GetMethod(node.Getter)
- getRegion = GetRegion(node.Getter)
- getRegion = GetRegion(node) if getRegion is null
- if node.Setter is not null:
- setter = GetMethod(node.Setter)
- setRegion = GetRegion(node.Setter)
- setRegion = GetRegion(node) if setRegion is null
-
- property = Property(node.Name, ReturnType.CreateReturnType(node), getter, setter, getRegion, setRegion, GetModifier(node), GetRegion(node), GetClientRegion(node))
- property.Documentation = node.Documentation
- property.Node = node
- cast(Class, _currentClass.Peek()).Properties.Add(property)
- except ex:
- Error (ex.ToString ())
- raise
-
- override def OnEvent (node as AST.Event):
- try:
- ev = DefaultEvent (node.FullName, ReturnType(node.Type), GetModifier(node), GetRegion(node), GetClientRegion(node))
- ev.Documentation = node.Documentation
- cast(Class, _currentClass.Peek()).Events.Add(ev)
- except ex:
- Error (ex.ToString ())
- raise
-
- private def Log (message):
- BooParser.Log (self.GetType(), message)
-
- private def Error (message):
- BooParser.Error (self.GetType(), message)
- */
- /*
- // TODO: Detect indexer method and add it as Indexer
- override def Visit(indexerDeclaration as AST.IndexerDeclaration, data as object) as object:
- region as DefaultRegion = GetRegion(indexerDeclaration.StartLocation, indexerDeclaration.EndLocation)
- bodyRegion as DefaultRegion = GetRegion(indexerDeclaration.BodyStart, indexerDeclaration.BodyEnd)
- parameters as ParameterCollection = ParameterCollection()
- i as Indexer = Indexer(ReturnType(indexerDeclaration.TypeReference), parameters, indexerDeclaration.Modifier, region, bodyRegion)
- if indexerDeclaration.Parameters != null:
- for par as AST.ParameterDeclarationExpression in indexerDeclaration.Parameters:
- parType as ReturnType = ReturnType(par.TypeReference)
- p as Parameter = Parameter(par.ParameterName, parType)
- parameters.Add(p)
-
-
- c as Class = _currentClass.Peek()
- c.Indexer.Add(i)
- return null
- */
-
-
-
diff --git a/extras/BooBinding/Project/BooCompilerParameters.boo b/extras/BooBinding/Project/BooCompilerParameters.boo
deleted file mode 100644
index e369151832..0000000000
--- a/extras/BooBinding/Project/BooCompilerParameters.boo
+++ /dev/null
@@ -1,53 +0,0 @@
-#region license
-// Copyright (c) 2005, Peter Johanson (latexer@gentoo.org)
-// All rights reserved.
-//
-// BooBinding is free software; you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation; either version 2 of the License, or
-// (at your option) any later version.
-//
-// BooBinding is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with BooBinding; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-#endregion
-
-namespace BooBinding
-
-import System
-
-import MonoDevelop.Projects
-import MonoDevelop.Core.Serialization
-
-public class BooCompilerParameters(ConfigurationParameters):
- [ItemProperty("genwarnings")]
- genwarnings = false
-
- [ItemProperty("ducky")]
- ducky = false
-
- [ItemProperty("culture")]
- culture = ""
-
- public GenWarnings as bool:
- get:
- return genwarnings
- set:
- genwarnings = value
-
- public Ducky as bool:
- get:
- return ducky
- set:
- ducky = value
-
- public Culture as string:
- get:
- return culture
- set:
- culture = value
diff --git a/extras/BooBinding/Project/ChangeLog b/extras/BooBinding/Project/ChangeLog
deleted file mode 100644
index b0363ec1a6..0000000000
--- a/extras/BooBinding/Project/ChangeLog
+++ /dev/null
@@ -1,4 +0,0 @@
-2009-02-25 Lluis Sanchez Gual <lluis@novell.com>
-
- * BooCompilerParameters.boo: Track api changes.
-
diff --git a/extras/BooBinding/Properties/BooShellProperties.boo b/extras/BooBinding/Properties/BooShellProperties.boo
deleted file mode 100644
index 625cc42633..0000000000
--- a/extras/BooBinding/Properties/BooShellProperties.boo
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-namespace BooBinding.Properties
-
-import System
-
-class BooShellProperties (ShellProperties):
- override PropertyName as string:
- get:
- return "BooBinding.BooShell.ShellProps"
diff --git a/extras/BooBinding/Properties/ShellProperties.boo b/extras/BooBinding/Properties/ShellProperties.boo
deleted file mode 100644
index 491f53c9f9..0000000000
--- a/extras/BooBinding/Properties/ShellProperties.boo
+++ /dev/null
@@ -1,59 +0,0 @@
-
-
-namespace BooBinding.Properties
-
-import System
-import Pango
-import MonoDevelop.Core
-
-class ShellProperties:
- //FIXME: BOO COMPILER CAN'T RESOLVE OVERLOADS OF GENERIC METHODS
- //private properties = PropertyService.Get [of Properties] (PropertyName)
- private properties = PropertyService.Get [of Properties] (PropertyName, Properties())
- //END FIXME
-
- public abstract PropertyName as string:
- get:
- pass
-
- public InternalProperties as Properties:
- get:
- return properties
-
- FontName as string:
- get:
- return properties.Get [of string] ("Font", "__default_monospace")
- set:
- properties.Set ("Font", value)
-
- Font as FontDescription:
- get:
- if FontName == "__default_monospace":
- return FontDescription.FromString (MonoDevelop.Ide.DesktopService.DefaultMonospaceFont)
- else:
- return FontDescription.FromString (FontName)
-
-
- AutoIndentBlocks as bool:
- get:
- return properties.Get [of bool] ("AutoIndentBlocks", true)
- set:
- properties.Set ("AutoIndentBlocks", value)
-
- ResetClearsScrollback as bool:
- get:
- return properties.Get [of bool] ("ResetClearsScrollback", true)
- set:
- properties.Set ("ResetClearsScrollback", value)
-
- ResetClearsHistory as bool:
- get:
- return properties.Get [of bool] ("ResetClearsHistory", true)
- set:
- properties.Set ("ResetClearsHistory", value)
-
- LoadAssemblyAfterBuild as bool:
- get:
- return properties.Get [of bool] ("LoadAssemblyAfterBuild", true)
- set:
- properties.Set ("LoadAssemblyAfterBuild", value)
diff --git a/extras/BooBinding/configure b/extras/BooBinding/configure
deleted file mode 100755
index f87bf55930..0000000000
--- a/extras/BooBinding/configure
+++ /dev/null
@@ -1,159 +0,0 @@
-#!/bin/bash
-VERSION=4.2.3
-PACKAGE=monodevelop-boo
-prefix=/usr/local
-config=DEBUG
-configurations=" RELEASE DEBUG"
-common_packages="gtk-sharp-2.0;2.12.8 monodevelop;4.2.3 mono-addins;0.3 glib-sharp-2.0;2.12.8 monodevelop-core-addins;2.7 boo;0.7.9.2659"
-
-
-usage ()
-{
- echo "Usage : configure [OPTION]... [--config=CONFIG]"
- echo
- echo "Options:"
- echo " --prefix=PREFIX install architecture-independent files in PREFIX"
- echo " [/usr/local]"
- echo " --bindir=DIR user executables [PREFIX/bin]"
- echo " --datadir=DIR read-only architecture-independent data [PREFIX/share]"
- echo " --libdir=DIR object code libraries [PREFIX/lib]"
- echo
- echo "Configurations available :"
- for c in $configurations; do
- if [ "$c" = "$config" ]; then
- echo " $c (Default)"
- else
- echo " $c"
- fi
- done
-}
-
-validate_config ()
-{
- test -z "$1" && return 0
- for c in $configurations; do
- if [ "$c" = "$1" ]; then
- return 1
- fi
- done
- return 0
-}
-
-check_package ()
-{
- name=`echo $1 | cut -d\; -f1`
- version=`echo $1 | cut -d\; -f2`
-
- echo -n "Checking for package '$name'.." | tee -a config.log
- pkg-config --atleast-version=$version $name
- if [ $? -ne 0 ]; then
- echo " ERROR: Package named '$name' >= $version not found." | tee -a config.log
- echo "Try adjusting your PKG_CONFIG_PATH environment variable." | tee -a config.log
- return 1
- fi
- echo " found." | tee -a config.log
-}
-
-check_required_packages ()
-{
- echo "Looking for required packages" | tee config.log
- var=required_packages_$config
- for pkg in $common_packages ${!var}; do
- check_package $pkg
- retval=$?
- [ $retval -ne 0 ] && return $retval
- done
- return 0
-}
-
-while test x$1 != x; do
- case $1 in
- --prefix=*)
- prefix=`echo $1 | sed 's/--prefix=//'`
- ;;
- --prefix)
- shift
- prefix=$1
- ;;
- --libdir=*)
- libdir=`echo $1 | sed 's/--libdir=//'`
- ;;
- --libdir)
- shift
- libdir=$1
- ;;
- --bindir=*)
- bindir=`echo $1 | sed 's/--bindir=//'`
- ;;
- --bindir)
- shift
- bindir=$1
- ;;
- --datadir=*)
- datadir=`echo $1 | sed 's/--datadir=//'`
- ;;
- --datadir)
- shift
- datadir=$1
- ;;
- --config=*)
- conf=`echo $1 | sed 's/--config=//'`
- validate_config "$conf"
- if [ $? -eq 1 ]; then
- config=$conf
- else
- echo "Invalid config name - $conf"
- usage
- exit 1
- fi
- ;;
- --help)
- usage
- exit
- ;;
- *)
- echo Unknown argument $1 >&2
- usage
- exit 1
- ;;
- esac
- shift
-done
-
-check_required_packages
-[ $? -eq 1 ] && exit 1
-
-if [ -z "$libdir" ]; then
- libdir=$prefix/lib
-fi
-if [ -z "$bindir" ]; then
- bindir=$prefix/bin
-fi
-if [ -z "$datadir" ]; then
- datadir=$prefix/share
-fi
-
-echo "prefix=$prefix" > config.make
-echo "libdir=$libdir" >> config.make
-echo "bindir=$bindir" >> config.make
-echo "datadir=$datadir" >> config.make
-echo "RUNTIME=mono" >> config.make
-echo "ASSEMBLY_VERSION=$VERSION.0.0" >> config.make
-echo "VERSION=$VERSION" >> config.make
-echo "PACKAGE=$PACKAGE" >> config.make
-echo "CONFIG=$config" >> config.make
-
-echo
-echo "$PACKAGE has been configured with "
-echo " prefix = $prefix"
-if [ "$libdir" != "$prefix/lib" ]; then
- echo " libdir = $libdir"
-fi
-if [ "$bindir" != "$prefix/bin" ]; then
- echo " bindir = $bindir"
-fi
-if [ "$datadir" != "$prefix/share" ]; then
- echo " datadir = $datadir"
-fi
-echo " config = $config"
-echo
diff --git a/extras/BooBinding/icons/Boo.File.EmptyFile b/extras/BooBinding/icons/Boo.File.EmptyFile
deleted file mode 100644
index 78b29c1fba..0000000000
--- a/extras/BooBinding/icons/Boo.File.EmptyFile
+++ /dev/null
Binary files differ
diff --git a/extras/BooBinding/icons/Boo.File.Form b/extras/BooBinding/icons/Boo.File.Form
deleted file mode 100644
index 98403c1e0e..0000000000
--- a/extras/BooBinding/icons/Boo.File.Form
+++ /dev/null
Binary files differ
diff --git a/extras/BooBinding/icons/Boo.FileIcon b/extras/BooBinding/icons/Boo.FileIcon
deleted file mode 100644
index 33d41083f9..0000000000
--- a/extras/BooBinding/icons/Boo.FileIcon
+++ /dev/null
Binary files differ
diff --git a/extras/BooBinding/icons/BooBinding.Base b/extras/BooBinding/icons/BooBinding.Base
deleted file mode 100644
index 0d73f46334..0000000000
--- a/extras/BooBinding/icons/BooBinding.Base
+++ /dev/null
Binary files differ
diff --git a/extras/BooBinding/icons/boo-icon-32.png b/extras/BooBinding/icons/boo-icon-32.png
deleted file mode 100644
index ee6cd69509..0000000000
--- a/extras/BooBinding/icons/boo-icon-32.png
+++ /dev/null
Binary files differ
diff --git a/extras/BooBinding/monodevelop-boo.pc.in b/extras/BooBinding/monodevelop-boo.pc.in
deleted file mode 100644
index 551e375023..0000000000
--- a/extras/BooBinding/monodevelop-boo.pc.in
+++ /dev/null
@@ -1,6 +0,0 @@
-Name: BooBinding
-Description: BooBinding
-Version: 0.1
-
-Requires:
-Libs: -r:@prefix@/lib/@PACKAGE@/BooBinding.dll
diff --git a/extras/BooBinding/po/ChangeLog b/extras/BooBinding/po/ChangeLog
deleted file mode 100644
index 6f2a5aac4b..0000000000
--- a/extras/BooBinding/po/ChangeLog
+++ /dev/null
@@ -1,40 +0,0 @@
-2009-03-19 Michael Hutchinson <mhutchinson@novell.com>
-
- * fr.po: Updated translation from Vincent Daron.
-
-2009-03-04 Michael Hutchinson <mhutchinson@novell.com>
-
- * da.po:
- * tr.po:
- * ca.po:
- * hu.po:
- * pt.po:
- * ja.po:
- * id.po:
- * sv.po:
- * ru.po:
- * de.po:
- * fr.po:
- * es.po:
- * gl.po:
- * cs.po:
- * it.po:
- * pl.po:
- * nl.po:
- * zh_TW.po:
- * zh_CN.po:
- * sl_SI.po:
- * pt_BR.po:
- * messages.po: Updated for string freeze.
-
- * po.mdproj: Updated.
-
-2009-02-26 Michael Hutchinson <mhutchinson@novell.com>
-
- * po.mdproj: Fix translation projects' GUIDs.
-
-2009/02/06 Lluis Sanchez Gual <lluis@novell.com>
-
- * po.mdse:
- * po.mdproj: Migrated to MSBuild file format.
-
diff --git a/extras/BooBinding/po/Makefile b/extras/BooBinding/po/Makefile
deleted file mode 100644
index c080b294a1..0000000000
--- a/extras/BooBinding/po/Makefile
+++ /dev/null
@@ -1,67 +0,0 @@
-
-# Warning: This is an automatically generated file, do not edit!
-
-srcdir=.
-top_srcdir=../
-
-include $(top_srcdir)/Makefile.include
-include $(top_srcdir)/config.make
-
-MDTOOL = $(LOCAL_PKGCONFIG) mono `$(LOCAL_PKGCONFIG) pkg-config --variable=libdir monodevelop`/bin/mdtool.exe
-BUILD_DIR = ../build/locale
-INSTALL_DIR = $(DESTDIR)$(prefix)/lib/monodevelop/AddIns/BooBinding/locale
-
-FILES = \
- ca.po\
- cs.po\
- da.po\
- de.po\
- es.po\
- fr.po\
- gl.po\
- hu.po\
- id.po\
- it.po\
- ja.po\
- nl.po\
- pl.po\
- pt.po\
- pt_BR.po\
- ru.po\
- sl_SI.po\
- sv.po\
- tr.po\
- zh_CN.po\
- zh_TW.po
-
-GMO_FILES = $(patsubst %.po,$(BUILD_DIR)/%/LC_MESSAGES/$(PACKAGE).mo,$(FILES))
-MO_FILES = $(foreach po,$(FILES), $(INSTALL_DIR)/$(basename $(po))/LC_MESSAGES/$(PACKAGE).mo)
-
-all: $(GMO_FILES)
-
-update-po:
- cd $(top_srcdir) && $(MDTOOL) gettext-update
-
-statistics:
- @for LANGFILE in $(FILES); do \
- echo "$$LANGFILE:"; \
- msgfmt -o /dev/null --verbose "$$LANGFILE"; \
- done
-
-$(GMO_FILES): $(BUILD_DIR)/%/LC_MESSAGES/$(PACKAGE).mo: %.po
- mkdir -p $(dir $@)
- msgfmt '$<' -o '$@'
-
-$(MO_FILES): $(INSTALL_DIR)/%/LC_MESSAGES/$(PACKAGE).mo : $(BUILD_DIR)/%/LC_MESSAGES/$(PACKAGE).mo
- mkdir -p $(dir $@)
- cp '$<' '$@'
-
-install-local: $(MO_FILES)
-
-CLEANFILES = $(GMO_FILES)
-EXTRA_DIST = Makefile $(FILES)
-install: install-local
-uninstall: uninstall-local
-clean: clean-local
-
-include $(top_srcdir)/rules.make
diff --git a/extras/BooBinding/po/ca.po b/extras/BooBinding/po/ca.po
deleted file mode 100644
index 892ae2a593..0000000000
--- a/extras/BooBinding/po/ca.po
+++ /dev/null
@@ -1,186 +0,0 @@
-# Translation of monodevelop.po into Catalan
-# Copyright (C) 2006 The Mono Project
-# This file is distributed under the same license as the MonoDevelop package.
-# Jonathan Hernández Velasco <jbilbo@gmail.com>, 2006.
-# Jordi Mas i Hernàndez, <jmas@softcatala.org>, 2006, 2007
-#
-# Traduïm namespace per "espai de nom" (veure TERMCAT) i assembly per "assemblat"
-#
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: MonoDevelop rev62170\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2009-03-04 18:11:19-0500\n"
-"PO-Revision-Date: 2007-12-03 23:15:57+0100\n"
-"Last-Translator: Jonathan Hernández Velasco <jbilbo@gmail.com>\n"
-"Language-Team: Catalan <ca@dodds.net>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=2; plural=(n != 1);\n"
-"X-Generator: MonoDevelop.Gettext \n"
-
-#: ../templates/BooGtkSharpProject.xpt.xml:7
-msgid "Gtk# Project"
-msgstr "Projecte Gtk#"
-
-#: ../templates/BooGtkSharpProject.xpt.xml:8
-#: ../templates/BooLibraryProject.xpt.xml:8
-#: ../templates/EmptyBooProject.xpt.xml:8
-msgid "Boo"
-msgstr ""
-
-#: ../templates/BooGtkSharpProject.xpt.xml:11
-#, fuzzy
-msgid "Creates a Boo/Gtk# project"
-msgstr "Crea un projecte Gtk#."
-
-#: ../templates/BooLibraryProject.xpt.xml:7
-msgid "Boo Library"
-msgstr "Biblioteca Boo"
-
-#: ../templates/BooLibraryProject.xpt.xml:11
-#, fuzzy
-msgid "Creates a Boo library"
-msgstr "Crea una biblioteca de classes C# buida"
-
-#: ../templates/BooGtkSharpWindow.xft.xml:7
-msgid "Gtk# Window"
-msgstr "Finestra Gtk#"
-
-#: ../templates/BooGtkSharpWindow.xft.xml:9
-#: ../templates/EmptyBooFile.xft.xml:6
-#, fuzzy
-msgid "General"
-msgstr "Generació de codi"
-
-#: ../templates/BooGtkSharpWindow.xft.xml:11
-msgid "Creates a top-level Gtk# window"
-msgstr "Crea una finestra Gtk# principal"
-
-#: ../templates/EmptyBooFile.xft.xml:4
-msgid "Empty File"
-msgstr "Fitxer buit"
-
-#: ../templates/EmptyBooFile.xft.xml:8
-#, fuzzy
-msgid "Creates an empty Boo file."
-msgstr "Crea un fitxer C# buit."
-
-#: ../templates/EmptyBooProject.xpt.xml:7
-msgid "Empty Project"
-msgstr "Projecte buit"
-
-#: ../templates/EmptyBooProject.xpt.xml:11
-#, fuzzy
-msgid "Creates an empty Boo solution."
-msgstr "Crea una solució VB.NET buida."
-
-#: ../BooBinding.addin.xml:33
-msgid "Boo Files"
-msgstr "Fitxers de Boo"
-
-#: ../BooBinding.addin.xml:55 ../Gui/OptionPanels/CodeCompilationPanel.boo:91
-msgid "Code Generation"
-msgstr "Generació de codi"
-
-#: ../BooBinding.addin.xml:69
-msgid "Boo source code"
-msgstr ""
-
-#: ../BooBinding.addin.xml:90 ../BooBinding.addin.xml:98
-msgid "Boo Shell"
-msgstr "Shell de Boo"
-
-#: ../Gui/ShellTextView.boo:188
-msgid "Copy Script"
-msgstr ""
-
-#: ../Gui/ShellTextView.boo:192
-msgid "Save Script As ..."
-msgstr ""
-
-#: ../Gui/ShellTextView.boo:196
-msgid "Load Project Assemblies (forces shell reset)"
-msgstr ""
-
-#: ../Gui/ShellTextView.boo:203
-#, fuzzy
-msgid "Reset Shell"
-msgstr "Shell de Boo"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:42
-msgid "Enable debug"
-msgstr ""
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:43
-msgid "Enable ducky mode"
-msgstr ""
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:92
-msgid "Output Path"
-msgstr ""
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:96
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:103
-msgid "Output Assembly"
-msgstr ""
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:98
-msgid "Warnings and Compiler Options"
-msgstr ""
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:100
-msgid "Compiler"
-msgstr ""
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:101
-msgid "Culture"
-msgstr ""
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:109
-msgid "Executable"
-msgstr ""
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:113
-#, fuzzy
-msgid "Library"
-msgstr "Biblioteca"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:117
-msgid "Executable with GUI"
-msgstr ""
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:50
-#, fuzzy
-msgid "General Options"
-msgstr "Generació de codi"
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:52
-msgid "Automatically indent new lines in code blocks"
-msgstr ""
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:53
-msgid "Shell reset clears scollback"
-msgstr ""
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:54
-msgid "Shell reset clears command history"
-msgstr ""
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:55
-msgid "Load project assemblies after building them (Causes shell reset)"
-msgstr ""
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:56
-msgid "Font"
-msgstr ""
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:57
-msgid "Use default monospace font"
-msgstr ""
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:58
-msgid "Use custom font:"
-msgstr ""
diff --git a/extras/BooBinding/po/cs.po b/extras/BooBinding/po/cs.po
deleted file mode 100644
index 326f55fcc4..0000000000
--- a/extras/BooBinding/po/cs.po
+++ /dev/null
@@ -1,176 +0,0 @@
-# Czech translation of MonoDevelop.
-# Copyright (C) 2005 THE MonoDevelop'S COPYRIGHT HOLDER
-# This file is distributed under the same license as the MonoDevelop package.
-# David Makovský (Yakeen) <yakeen@sannyas-on.net>, 2005.
-#
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: MonoDevelop Boo Addin\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2009-03-04 18:11:19-0500\n"
-"PO-Revision-Date: 2008-01-24 00:09+0100\n"
-"Last-Translator: David Makovský (Yakeen) <yakeen@sannyas-on.net>\n"
-"Language-Team: Czech <cs@li.org>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n"
-"X-Poedit-Language: Czech\n"
-"X-Poedit-Country: CZECH REPUBLIC\n"
-
-#: ../templates/BooGtkSharpProject.xpt.xml:7
-msgid "Gtk# Project"
-msgstr "Gtk# projekt"
-
-#: ../templates/BooGtkSharpProject.xpt.xml:8
-#: ../templates/BooLibraryProject.xpt.xml:8
-#: ../templates/EmptyBooProject.xpt.xml:8
-msgid "Boo"
-msgstr "Boo"
-
-#: ../templates/BooGtkSharpProject.xpt.xml:11
-msgid "Creates a Boo/Gtk# project"
-msgstr "Vytvoří Boo/Gtk# projekt."
-
-#: ../templates/BooLibraryProject.xpt.xml:7
-msgid "Boo Library"
-msgstr "Boo knihovna"
-
-#: ../templates/BooLibraryProject.xpt.xml:11
-msgid "Creates a Boo library"
-msgstr "Vytvoří Boo knihovnu tříd"
-
-#: ../templates/BooGtkSharpWindow.xft.xml:7
-msgid "Gtk# Window"
-msgstr "Okno Gtk#"
-
-#: ../templates/BooGtkSharpWindow.xft.xml:9
-#: ../templates/EmptyBooFile.xft.xml:6
-msgid "General"
-msgstr "Obecný"
-
-#: ../templates/BooGtkSharpWindow.xft.xml:11
-msgid "Creates a top-level Gtk# window"
-msgstr "Vytvoří hlavní okno Gtk#"
-
-#: ../templates/EmptyBooFile.xft.xml:4
-msgid "Empty File"
-msgstr "Prázdný soubor"
-
-#: ../templates/EmptyBooFile.xft.xml:8
-msgid "Creates an empty Boo file."
-msgstr "Vytvoří prázdný Boo soubor."
-
-#: ../templates/EmptyBooProject.xpt.xml:7
-msgid "Empty Project"
-msgstr "Prázdný projekt"
-
-#: ../templates/EmptyBooProject.xpt.xml:11
-msgid "Creates an empty Boo solution."
-msgstr "Vytvoří prázdnou Boo sestavu."
-
-#: ../BooBinding.addin.xml:33
-msgid "Boo Files"
-msgstr "Soubory Boo (*.boo)"
-
-#: ../BooBinding.addin.xml:55 ../Gui/OptionPanels/CodeCompilationPanel.boo:91
-msgid "Code Generation"
-msgstr "Vytváření kódu"
-
-#: ../BooBinding.addin.xml:69
-msgid "Boo source code"
-msgstr ""
-
-#: ../BooBinding.addin.xml:90 ../BooBinding.addin.xml:98
-msgid "Boo Shell"
-msgstr "Konzole Boo"
-
-#: ../Gui/ShellTextView.boo:188
-msgid "Copy Script"
-msgstr "Kopírovat skript"
-
-#: ../Gui/ShellTextView.boo:192
-msgid "Save Script As ..."
-msgstr "Uložit skript jako..."
-
-#: ../Gui/ShellTextView.boo:196
-msgid "Load Project Assemblies (forces shell reset)"
-msgstr "Načíst assembly projektu (vynutí si reset konzole)"
-
-#: ../Gui/ShellTextView.boo:203
-msgid "Reset Shell"
-msgstr "Reset konzole"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:42
-msgid "Enable debug"
-msgstr "Zapnout ladění"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:43
-msgid "Enable ducky mode"
-msgstr "Zapnout ducky mód"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:92
-msgid "Output Path"
-msgstr "Cesta výstupu"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:96
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:103
-msgid "Output Assembly"
-msgstr "Výstup kompilace"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:98
-msgid "Warnings and Compiler Options"
-msgstr "Varování a volby kopilátoru"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:100
-msgid "Compiler"
-msgstr "Kompilátor"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:101
-msgid "Culture"
-msgstr "Kultura"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:109
-msgid "Executable"
-msgstr "Program"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:113
-msgid "Library"
-msgstr "Knihovna"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:117
-msgid "Executable with GUI"
-msgstr "Program s GUI"
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:50
-msgid "General Options"
-msgstr "Obecná nastavení"
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:52
-msgid "Automatically indent new lines in code blocks"
-msgstr "Automaticky odsazovat nové řádky do bloků"
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:53
-msgid "Shell reset clears scollback"
-msgstr "Reset konzole smaže paměť rolování"
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:54
-msgid "Shell reset clears command history"
-msgstr "Reset konzole smaže historii příkazů"
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:55
-msgid "Load project assemblies after building them (Causes shell reset)"
-msgstr "Načíst assembly projektu po jejich sestavení (vynutí si reset konzole)"
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:56
-msgid "Font"
-msgstr "Písmo"
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:57
-msgid "Use default monospace font"
-msgstr "Použít implicitní písmo monospace "
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:58
-msgid "Use custom font:"
-msgstr "Použít vlastní písmo:"
diff --git a/extras/BooBinding/po/da.po b/extras/BooBinding/po/da.po
deleted file mode 100644
index 39d116ef92..0000000000
--- a/extras/BooBinding/po/da.po
+++ /dev/null
@@ -1,184 +0,0 @@
-# Danish translation of MonoDevelop.
-# Copyright (C) 2004, 2005 Martin Willemoes Hansen
-# This file is distributed under the same license as the MonoDevelop package.
-# Martin Willemoes Hansen <mwh@sysrq.dk>, 2004 - 2005
-#
-# Husk at tilføje dig i credit-listen (besked id "translator-credits")
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: MonoDevelop\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2009-03-04 18:11:19-0500\n"
-"PO-Revision-Date: 2005-05-20 17:07+0200\n"
-"Last-Translator: Martin Willemoes Hansen <mwh@sysrq.dk>\n"
-"Language-Team: Martin Willemoes Hansen <mwh@sysrq.dk>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=2; plural=n != 1;\n"
-
-#: ../templates/BooGtkSharpProject.xpt.xml:7
-msgid "Gtk# Project"
-msgstr "Gtk#-projekt"
-
-#: ../templates/BooGtkSharpProject.xpt.xml:8
-#: ../templates/BooLibraryProject.xpt.xml:8
-#: ../templates/EmptyBooProject.xpt.xml:8
-msgid "Boo"
-msgstr ""
-
-#: ../templates/BooGtkSharpProject.xpt.xml:11
-#, fuzzy
-msgid "Creates a Boo/Gtk# project"
-msgstr "Opretter et nyt Gtk#-projekt."
-
-#: ../templates/BooLibraryProject.xpt.xml:7
-#, fuzzy
-msgid "Boo Library"
-msgstr "Bibliotek"
-
-#: ../templates/BooLibraryProject.xpt.xml:11
-#, fuzzy
-msgid "Creates a Boo library"
-msgstr "Opretter et tomt C#-klassebibliotek"
-
-#: ../templates/BooGtkSharpWindow.xft.xml:7
-msgid "Gtk# Window"
-msgstr "Gtk#-vindue"
-
-#: ../templates/BooGtkSharpWindow.xft.xml:9
-#: ../templates/EmptyBooFile.xft.xml:6
-#, fuzzy
-msgid "General"
-msgstr "Kodegenerering"
-
-#: ../templates/BooGtkSharpWindow.xft.xml:11
-msgid "Creates a top-level Gtk# window"
-msgstr "Opretter et top-niveau Gtk#-vindue"
-
-#: ../templates/EmptyBooFile.xft.xml:4
-msgid "Empty File"
-msgstr "Tom fil"
-
-#: ../templates/EmptyBooFile.xft.xml:8
-#, fuzzy
-msgid "Creates an empty Boo file."
-msgstr "Opretter en ny tom C#-fil."
-
-#: ../templates/EmptyBooProject.xpt.xml:7
-msgid "Empty Project"
-msgstr "Tomt projekt"
-
-#: ../templates/EmptyBooProject.xpt.xml:11
-#, fuzzy
-msgid "Creates an empty Boo solution."
-msgstr "Opretter en ny tom VB.NET-løsning."
-
-#: ../BooBinding.addin.xml:33
-#, fuzzy
-msgid "Boo Files"
-msgstr "Filer"
-
-#: ../BooBinding.addin.xml:55 ../Gui/OptionPanels/CodeCompilationPanel.boo:91
-msgid "Code Generation"
-msgstr "Kodegenerering"
-
-#: ../BooBinding.addin.xml:69
-msgid "Boo source code"
-msgstr ""
-
-#: ../BooBinding.addin.xml:90 ../BooBinding.addin.xml:98
-msgid "Boo Shell"
-msgstr ""
-
-#: ../Gui/ShellTextView.boo:188
-msgid "Copy Script"
-msgstr ""
-
-#: ../Gui/ShellTextView.boo:192
-msgid "Save Script As ..."
-msgstr ""
-
-#: ../Gui/ShellTextView.boo:196
-msgid "Load Project Assemblies (forces shell reset)"
-msgstr ""
-
-#: ../Gui/ShellTextView.boo:203
-msgid "Reset Shell"
-msgstr ""
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:42
-msgid "Enable debug"
-msgstr ""
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:43
-msgid "Enable ducky mode"
-msgstr ""
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:92
-msgid "Output Path"
-msgstr ""
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:96
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:103
-msgid "Output Assembly"
-msgstr ""
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:98
-msgid "Warnings and Compiler Options"
-msgstr ""
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:100
-msgid "Compiler"
-msgstr ""
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:101
-msgid "Culture"
-msgstr ""
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:109
-msgid "Executable"
-msgstr ""
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:113
-#, fuzzy
-msgid "Library"
-msgstr "Bibliotek"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:117
-msgid "Executable with GUI"
-msgstr ""
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:50
-#, fuzzy
-msgid "General Options"
-msgstr "Kodegenerering"
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:52
-msgid "Automatically indent new lines in code blocks"
-msgstr ""
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:53
-msgid "Shell reset clears scollback"
-msgstr ""
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:54
-msgid "Shell reset clears command history"
-msgstr ""
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:55
-msgid "Load project assemblies after building them (Causes shell reset)"
-msgstr ""
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:56
-msgid "Font"
-msgstr ""
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:57
-msgid "Use default monospace font"
-msgstr ""
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:58
-msgid "Use custom font:"
-msgstr ""
diff --git a/extras/BooBinding/po/de.po b/extras/BooBinding/po/de.po
deleted file mode 100644
index ce1286af4e..0000000000
--- a/extras/BooBinding/po/de.po
+++ /dev/null
@@ -1,173 +0,0 @@
-# benste <Benedict.Stein@gmail.com>, 2007.
-#
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: Monodevelop\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2009-03-04 18:11:19-0500\n"
-"PO-Revision-Date: 2008-01-28 20:05+0100\n"
-"Last-Translator: \n"
-"Language-Team: \n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"X-Poedit-Bookmarks: -1,1681,-1,-1,-1,-1,-1,-1,-1,-1\n"
-
-#: ../templates/BooGtkSharpProject.xpt.xml:7
-msgid "Gtk# Project"
-msgstr "Gtk# Projekt"
-
-#: ../templates/BooGtkSharpProject.xpt.xml:8
-#: ../templates/BooLibraryProject.xpt.xml:8
-#: ../templates/EmptyBooProject.xpt.xml:8
-msgid "Boo"
-msgstr "Boo"
-
-#: ../templates/BooGtkSharpProject.xpt.xml:11
-msgid "Creates a Boo/Gtk# project"
-msgstr "Erzeugt ein Boo/Gtk# Projekt"
-
-#: ../templates/BooLibraryProject.xpt.xml:7
-msgid "Boo Library"
-msgstr "Boo-Bibliothek"
-
-#: ../templates/BooLibraryProject.xpt.xml:11
-msgid "Creates a Boo library"
-msgstr "Erzeugt eine Boo-Bibliothek"
-
-#: ../templates/BooGtkSharpWindow.xft.xml:7
-msgid "Gtk# Window"
-msgstr "Gtk# Fenster"
-
-#: ../templates/BooGtkSharpWindow.xft.xml:9
-#: ../templates/EmptyBooFile.xft.xml:6
-msgid "General"
-msgstr "Allgemein"
-
-#: ../templates/BooGtkSharpWindow.xft.xml:11
-msgid "Creates a top-level Gtk# window"
-msgstr "Erzeugt ein Top-Level Gtk#-Fenster"
-
-#: ../templates/EmptyBooFile.xft.xml:4
-msgid "Empty File"
-msgstr "Leere Datei"
-
-#: ../templates/EmptyBooFile.xft.xml:8
-msgid "Creates an empty Boo file."
-msgstr "Erzeugt eine leere Boo-Datei."
-
-#: ../templates/EmptyBooProject.xpt.xml:7
-msgid "Empty Project"
-msgstr "Leeres Projekt"
-
-#: ../templates/EmptyBooProject.xpt.xml:11
-msgid "Creates an empty Boo solution."
-msgstr "Erzeugt eine leere Boo-Solution."
-
-#: ../BooBinding.addin.xml:33
-msgid "Boo Files"
-msgstr "Boo-Dateien"
-
-#: ../BooBinding.addin.xml:55 ../Gui/OptionPanels/CodeCompilationPanel.boo:91
-msgid "Code Generation"
-msgstr "Quelltext-Erzeugung"
-
-#: ../BooBinding.addin.xml:69
-msgid "Boo source code"
-msgstr ""
-
-#: ../BooBinding.addin.xml:90 ../BooBinding.addin.xml:98
-msgid "Boo Shell"
-msgstr "Boo-Konsole"
-
-#: ../Gui/ShellTextView.boo:188
-msgid "Copy Script"
-msgstr "Skript kopieren"
-
-#: ../Gui/ShellTextView.boo:192
-msgid "Save Script As ..."
-msgstr "Skript speichern unter ..."
-
-#: ../Gui/ShellTextView.boo:196
-msgid "Load Project Assemblies (forces shell reset)"
-msgstr "Projekt-Assemblies laden (erfordert Zurücksetzen der Konsole)"
-
-#: ../Gui/ShellTextView.boo:203
-msgid "Reset Shell"
-msgstr "Konsole zurücksetzen"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:42
-msgid "Enable debug"
-msgstr "Debugging aktivieren"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:43
-msgid "Enable ducky mode"
-msgstr "Ducky Modus aktivieren"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:92
-msgid "Output Path"
-msgstr "Ausgabepfad"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:96
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:103
-msgid "Output Assembly"
-msgstr "Ausgabe-Assembly"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:98
-msgid "Warnings and Compiler Options"
-msgstr "Warnungen und Compiler-Optionen"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:100
-msgid "Compiler"
-msgstr "Compiler"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:101
-msgid "Culture"
-msgstr "Kultur"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:109
-msgid "Executable"
-msgstr "Ausführbare Datei"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:113
-msgid "Library"
-msgstr "Bibliothek"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:117
-msgid "Executable with GUI"
-msgstr "Ausführbare Datei mit GUI"
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:50
-msgid "General Options"
-msgstr "Allgemeine Optionen"
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:52
-msgid "Automatically indent new lines in code blocks"
-msgstr "Neue Zeilen in Codeblocks automatisch einrücken"
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:53
-msgid "Shell reset clears scollback"
-msgstr "Zurücksetzen der Konsole löscht Geschichte"
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:54
-msgid "Shell reset clears command history"
-msgstr "Zurücksetzen der Konsole löscht Kommandogeschichte"
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:55
-msgid "Load project assemblies after building them (Causes shell reset)"
-msgstr ""
-"Projekt-Assemblies nach ihrer Erzeugung laden (bewirkt Zurücksetzen der "
-"Konsole)"
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:56
-msgid "Font"
-msgstr "Schriftart"
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:57
-msgid "Use default monospace font"
-msgstr "Standard Monospace-Schriftart benutzen"
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:58
-msgid "Use custom font:"
-msgstr "Eigene Schriftart benutzen:"
diff --git a/extras/BooBinding/po/es.po b/extras/BooBinding/po/es.po
deleted file mode 100644
index 505d042652..0000000000
--- a/extras/BooBinding/po/es.po
+++ /dev/null
@@ -1,179 +0,0 @@
-# Translation of monodevelop.po into Spanish
-# Copyright (C) 2005 The Mono Project
-# This file is distributed under the same license as the MonoDevelop package.
-# Andrés G. Aragoneses <knocte@gmail.com>, 2005-2008
-# Alejandro Serrano <trupill@yahoo.es>, 2006
-# Jonathan Hernández Velasco <jbilbo@ya.com>, 2004-2005
-# Antonio Ognio <gnrfan@gnrfan.org>, 2004
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: MonoDevelop rev2237\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2009-03-04 18:11:19-0500\n"
-"PO-Revision-Date: 2005-03-01 16:34+0100\n"
-"Last-Translator: Andrés G. Aragoneses <knocte@gmail.com>\n"
-"Language-Team: Spanish <es@li.org>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=2; plural=(n != 1);\n"
-
-#: ../templates/BooGtkSharpProject.xpt.xml:7
-msgid "Gtk# Project"
-msgstr "Proyecto Gtk#"
-
-#: ../templates/BooGtkSharpProject.xpt.xml:8
-#: ../templates/BooLibraryProject.xpt.xml:8
-#: ../templates/EmptyBooProject.xpt.xml:8
-msgid "Boo"
-msgstr "Boo"
-
-#: ../templates/BooGtkSharpProject.xpt.xml:11
-msgid "Creates a Boo/Gtk# project"
-msgstr "Crear un proyecto Boo/Gtk#"
-
-#: ../templates/BooLibraryProject.xpt.xml:7
-msgid "Boo Library"
-msgstr "Librería Boo"
-
-#: ../templates/BooLibraryProject.xpt.xml:11
-msgid "Creates a Boo library"
-msgstr "Crea una librería en lenguaje Boo"
-
-#: ../templates/BooGtkSharpWindow.xft.xml:7
-msgid "Gtk# Window"
-msgstr "Ventana Gtk#"
-
-#: ../templates/BooGtkSharpWindow.xft.xml:9
-#: ../templates/EmptyBooFile.xft.xml:6
-msgid "General"
-msgstr "General"
-
-#: ../templates/BooGtkSharpWindow.xft.xml:11
-msgid "Creates a top-level Gtk# window"
-msgstr "Crea una ventana Gtk# principal"
-
-#: ../templates/EmptyBooFile.xft.xml:4
-msgid "Empty File"
-msgstr "Archivo vacío"
-
-#: ../templates/EmptyBooFile.xft.xml:8
-msgid "Creates an empty Boo file."
-msgstr "Crea un archivo Boo vacío."
-
-#: ../templates/EmptyBooProject.xpt.xml:7
-msgid "Empty Project"
-msgstr "Proyecto vacío"
-
-#: ../templates/EmptyBooProject.xpt.xml:11
-msgid "Creates an empty Boo solution."
-msgstr "Crea una solución Boo vacía."
-
-#: ../BooBinding.addin.xml:33
-msgid "Boo Files"
-msgstr "Archivos en Boo"
-
-#: ../BooBinding.addin.xml:55 ../Gui/OptionPanels/CodeCompilationPanel.boo:91
-msgid "Code Generation"
-msgstr "Generación de código"
-
-#: ../BooBinding.addin.xml:69
-msgid "Boo source code"
-msgstr ""
-
-#: ../BooBinding.addin.xml:90 ../BooBinding.addin.xml:98
-msgid "Boo Shell"
-msgstr "Shell de Boo"
-
-#: ../Gui/ShellTextView.boo:188
-msgid "Copy Script"
-msgstr "Script de copiado"
-
-#: ../Gui/ShellTextView.boo:192
-msgid "Save Script As ..."
-msgstr "Guardar script como..."
-
-#: ../Gui/ShellTextView.boo:196
-msgid "Load Project Assemblies (forces shell reset)"
-msgstr ""
-"Cargar ensamblados de proyecto (provoca un reinicio de la línea de comandos)"
-
-#: ../Gui/ShellTextView.boo:203
-msgid "Reset Shell"
-msgstr "Reiniciar línea de comandos"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:42
-msgid "Enable debug"
-msgstr "Activar depuración"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:43
-msgid "Enable ducky mode"
-msgstr "Activar modo ducky"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:92
-msgid "Output Path"
-msgstr "Ruta de salida"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:96
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:103
-msgid "Output Assembly"
-msgstr "Ensamblado de salida"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:98
-msgid "Warnings and Compiler Options"
-msgstr "Opciones de advertencia y compilación"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:100
-msgid "Compiler"
-msgstr "Compilador"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:101
-msgid "Culture"
-msgstr "Cultura"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:109
-msgid "Executable"
-msgstr "Ejecutable"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:113
-msgid "Library"
-msgstr "Librería"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:117
-msgid "Executable with GUI"
-msgstr "Ejecutable con GUI"
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:50
-msgid "General Options"
-msgstr "Opciones generales"
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:52
-msgid "Automatically indent new lines in code blocks"
-msgstr "Indentar automaticamente líneas nuevas en bloques de código"
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:53
-msgid "Shell reset clears scollback"
-msgstr "Reinicio de la línea de comandos limpia el desplazamiento previo"
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:54
-msgid "Shell reset clears command history"
-msgstr "Reinicio de la línea de comandos limpia el histórico de comandos"
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:55
-msgid "Load project assemblies after building them (Causes shell reset)"
-msgstr ""
-"Cargar ensamblados de proyecto después de construirlos (provoca un reinicio "
-"de la línea de comandos) "
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:56
-msgid "Font"
-msgstr "Tipografía"
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:57
-msgid "Use default monospace font"
-msgstr "Usar tipografía monoespaciada predeterminada"
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:58
-msgid "Use custom font:"
-msgstr "Usar tipografía personalizada:"
diff --git a/extras/BooBinding/po/fr.po b/extras/BooBinding/po/fr.po
deleted file mode 100644
index fff33208ce..0000000000
--- a/extras/BooBinding/po/fr.po
+++ /dev/null
@@ -1,180 +0,0 @@
-# MonoDevelop fr_FR translation
-# Copyright (C) Vincent Daron <vdaron@ask.be>,
-# Nicolas Favre-Felix <n.favrefelix@gmail.com> 2006.
-# This file is distributed under the same license as Monodevelop
-#
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: fr_FR\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2009-03-04 18:11:19-0500\n"
-"PO-Revision-Date: 2009-03-06 22:35:25+0100\n"
-"Last-Translator: Vincent DARON <vdaron@ask.be>\n"
-"Language-Team: \n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"X-Generator: MonoDevelop Gettext addin\n"
-
-#: ../templates/BooGtkSharpProject.xpt.xml:7
-msgid "Gtk# Project"
-msgstr "Projet Gtk#"
-
-#: ../templates/BooGtkSharpProject.xpt.xml:8
-#: ../templates/BooLibraryProject.xpt.xml:8
-#: ../templates/EmptyBooProject.xpt.xml:8
-msgid "Boo"
-msgstr "Boo"
-
-#: ../templates/BooGtkSharpProject.xpt.xml:11
-msgid "Creates a Boo/Gtk# project"
-msgstr "Crée un projet Boo/Gtk#"
-
-#: ../templates/BooLibraryProject.xpt.xml:7
-msgid "Boo Library"
-msgstr "Bibliothèque Boo"
-
-#: ../templates/BooLibraryProject.xpt.xml:11
-msgid "Creates a Boo library"
-msgstr "Crée une blibliothèque Boo"
-
-#: ../templates/BooGtkSharpWindow.xft.xml:7
-msgid "Gtk# Window"
-msgstr "Fenêtre Gtk#"
-
-#: ../templates/BooGtkSharpWindow.xft.xml:9
-#: ../templates/EmptyBooFile.xft.xml:6
-msgid "General"
-msgstr "Général"
-
-#: ../templates/BooGtkSharpWindow.xft.xml:11
-msgid "Creates a top-level Gtk# window"
-msgstr "Crée une fenetre Gtk#"
-
-#: ../templates/EmptyBooFile.xft.xml:4
-msgid "Empty File"
-msgstr "Fichier vide"
-
-#: ../templates/EmptyBooFile.xft.xml:8
-msgid "Creates an empty Boo file."
-msgstr "Crée un fichier Boo vide."
-
-#: ../templates/EmptyBooProject.xpt.xml:7
-msgid "Empty Project"
-msgstr "Projet vide"
-
-#: ../templates/EmptyBooProject.xpt.xml:11
-msgid "Creates an empty Boo solution."
-msgstr "Crée une solution Boo vide."
-
-#: ../BooBinding.addin.xml:33
-msgid "Boo Files"
-msgstr "Fichiers Boo"
-
-#: ../BooBinding.addin.xml:55
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:91
-msgid "Code Generation"
-msgstr "Génération de code"
-
-#: ../BooBinding.addin.xml:69
-msgid "Boo source code"
-msgstr "Source code Boo"
-
-#: ../BooBinding.addin.xml:90
-#: ../BooBinding.addin.xml:98
-msgid "Boo Shell"
-msgstr "Shell Boo"
-
-#: ../Gui/ShellTextView.boo:188
-msgid "Copy Script"
-msgstr "Copie du Script"
-
-#: ../Gui/ShellTextView.boo:192
-msgid "Save Script As ..."
-msgstr "Sauver le Script Sous ..."
-
-#: ../Gui/ShellTextView.boo:196
-msgid "Load Project Assemblies (forces shell reset)"
-msgstr ""
-"Charger les Assemblages du Projet (Force une réinitialisation du shell)"
-
-#: ../Gui/ShellTextView.boo:203
-msgid "Reset Shell"
-msgstr "Réinitialiser le Shell"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:42
-msgid "Enable debug"
-msgstr "Activer le débogage"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:43
-msgid "Enable ducky mode"
-msgstr "Activer le mode ducky"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:92
-msgid "Output Path"
-msgstr "Chemin de Sortie"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:96
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:103
-msgid "Output Assembly"
-msgstr "Assemblage de Sortie"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:98
-msgid "Warnings and Compiler Options"
-msgstr "Avertissements et Options du Compilateur"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:100
-msgid "Compiler"
-msgstr "Compilateur"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:101
-msgid "Culture"
-msgstr "Culture"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:109
-msgid "Executable"
-msgstr "Exécutable"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:113
-msgid "Library"
-msgstr "Bibliothèque"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:117
-msgid "Executable with GUI"
-msgstr "Exécutable avec GUI"
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:50
-msgid "General Options"
-msgstr "Options Générales"
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:52
-msgid "Automatically indent new lines in code blocks"
-msgstr "Indenter automatiquement les nouvelles lignes dans les blocs de code"
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:53
-msgid "Shell reset clears scollback"
-msgstr "La réinitialisation du shell vide le défilement"
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:54
-msgid "Shell reset clears command history"
-msgstr "La réinitialisation du shell vide l'historique de commande"
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:55
-msgid "Load project assemblies after building them (Causes shell reset)"
-msgstr ""
-"Charger les assemblages du projet apres les avoir compilés (Force une "
-"réinitialisation du shell)"
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:56
-msgid "Font"
-msgstr "Police"
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:57
-msgid "Use default monospace font"
-msgstr "Utiliser la police monospace par défaut"
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:58
-msgid "Use custom font:"
-msgstr "Utiliser une police personalisée:"
-
diff --git a/extras/BooBinding/po/gl.po b/extras/BooBinding/po/gl.po
deleted file mode 100644
index cca6f4abd3..0000000000
--- a/extras/BooBinding/po/gl.po
+++ /dev/null
@@ -1,179 +0,0 @@
-# translation of gl.po to Galego
-# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
-# This file is distributed under the same license as the PACKAGE package.
-#
-# Ignacio Casal Quinteiro <icq@cvs.gnome.org>, 2007.
-# Ignacio Casal Quinteiro <nacho.resa@gmail.com>, 2007.
-msgid ""
-msgstr ""
-"Project-Id-Version: gl\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2009-03-04 18:11:19-0500\n"
-"PO-Revision-Date: 2007-09-25 15:10+0200\n"
-"Last-Translator: Ignacio Casal Quinteiro <icq@cvs.gnome.org>\n"
-"Language-Team: Galego <proxecto@trasno.net>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=2; plural=(n != 1);\n"
-"X-Generator: KBabel 1.11.4\n"
-
-#: ../templates/BooGtkSharpProject.xpt.xml:7
-msgid "Gtk# Project"
-msgstr "Proxecto Gtk#"
-
-#: ../templates/BooGtkSharpProject.xpt.xml:8
-#: ../templates/BooLibraryProject.xpt.xml:8
-#: ../templates/EmptyBooProject.xpt.xml:8
-msgid "Boo"
-msgstr ""
-
-#: ../templates/BooGtkSharpProject.xpt.xml:11
-msgid "Creates a Boo/Gtk# project"
-msgstr "Crear un proxecto Boo/Gtk#"
-
-#: ../templates/BooLibraryProject.xpt.xml:7
-msgid "Boo Library"
-msgstr "Biblioteca Boo"
-
-#: ../templates/BooLibraryProject.xpt.xml:11
-msgid "Creates a Boo library"
-msgstr "Crea unha biblioteca Boo"
-
-#: ../templates/BooGtkSharpWindow.xft.xml:7
-msgid "Gtk# Window"
-msgstr "Ventá Gtk#"
-
-#: ../templates/BooGtkSharpWindow.xft.xml:9
-#: ../templates/EmptyBooFile.xft.xml:6
-#, fuzzy
-msgid "General"
-msgstr "Xeración de código"
-
-#: ../templates/BooGtkSharpWindow.xft.xml:11
-msgid "Creates a top-level Gtk# window"
-msgstr "Crea unha ventá Gtk# principal"
-
-#: ../templates/EmptyBooFile.xft.xml:4
-msgid "Empty File"
-msgstr "Ficheiro baleiro"
-
-#: ../templates/EmptyBooFile.xft.xml:8
-msgid "Creates an empty Boo file."
-msgstr "Crea un ficheiro Boo baleiro."
-
-#: ../templates/EmptyBooProject.xpt.xml:7
-msgid "Empty Project"
-msgstr "Proxecto baleiro"
-
-#: ../templates/EmptyBooProject.xpt.xml:11
-msgid "Creates an empty Boo solution."
-msgstr "Crea unha solución Boo baleira."
-
-#: ../BooBinding.addin.xml:33
-msgid "Boo Files"
-msgstr "Ficheiros Boo"
-
-#: ../BooBinding.addin.xml:55 ../Gui/OptionPanels/CodeCompilationPanel.boo:91
-msgid "Code Generation"
-msgstr "Xeración de código"
-
-#: ../BooBinding.addin.xml:69
-msgid "Boo source code"
-msgstr ""
-
-#: ../BooBinding.addin.xml:90 ../BooBinding.addin.xml:98
-msgid "Boo Shell"
-msgstr "Shell de Boo"
-
-#: ../Gui/ShellTextView.boo:188
-msgid "Copy Script"
-msgstr ""
-
-#: ../Gui/ShellTextView.boo:192
-msgid "Save Script As ..."
-msgstr ""
-
-#: ../Gui/ShellTextView.boo:196
-msgid "Load Project Assemblies (forces shell reset)"
-msgstr ""
-
-#: ../Gui/ShellTextView.boo:203
-#, fuzzy
-msgid "Reset Shell"
-msgstr "Shell de Boo"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:42
-msgid "Enable debug"
-msgstr ""
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:43
-msgid "Enable ducky mode"
-msgstr ""
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:92
-msgid "Output Path"
-msgstr ""
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:96
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:103
-msgid "Output Assembly"
-msgstr ""
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:98
-msgid "Warnings and Compiler Options"
-msgstr ""
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:100
-msgid "Compiler"
-msgstr ""
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:101
-msgid "Culture"
-msgstr ""
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:109
-msgid "Executable"
-msgstr ""
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:113
-#, fuzzy
-msgid "Library"
-msgstr "Biblioteca Boo"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:117
-msgid "Executable with GUI"
-msgstr ""
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:50
-#, fuzzy
-msgid "General Options"
-msgstr "Xeración de código"
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:52
-msgid "Automatically indent new lines in code blocks"
-msgstr ""
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:53
-msgid "Shell reset clears scollback"
-msgstr ""
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:54
-msgid "Shell reset clears command history"
-msgstr ""
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:55
-msgid "Load project assemblies after building them (Causes shell reset)"
-msgstr ""
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:56
-msgid "Font"
-msgstr ""
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:57
-msgid "Use default monospace font"
-msgstr ""
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:58
-msgid "Use custom font:"
-msgstr ""
diff --git a/extras/BooBinding/po/hu.po b/extras/BooBinding/po/hu.po
deleted file mode 100755
index afde57e466..0000000000
--- a/extras/BooBinding/po/hu.po
+++ /dev/null
@@ -1,172 +0,0 @@
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: MonoDevelop Hungarian translation 1.0\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2009-03-04 18:11:19-0500\n"
-"PO-Revision-Date: 2008-02-03 23:25+0100\n"
-"Last-Translator: Gergely Kiss <mail.gery@gmail.com>\n"
-"Language-Team: \n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-
-#: ../templates/BooGtkSharpProject.xpt.xml:7
-msgid "Gtk# Project"
-msgstr "GTK# projekt"
-
-#: ../templates/BooGtkSharpProject.xpt.xml:8
-#: ../templates/BooLibraryProject.xpt.xml:8
-#: ../templates/EmptyBooProject.xpt.xml:8
-msgid "Boo"
-msgstr "Boo"
-
-#: ../templates/BooGtkSharpProject.xpt.xml:11
-msgid "Creates a Boo/Gtk# project"
-msgstr "Létrehoz egy Boo/GTK# projektet"
-
-#: ../templates/BooLibraryProject.xpt.xml:7
-msgid "Boo Library"
-msgstr "Boo függvénykönyvtár"
-
-#: ../templates/BooLibraryProject.xpt.xml:11
-msgid "Creates a Boo library"
-msgstr "Létrehoz egy Boo függvénykönyvtárat"
-
-#: ../templates/BooGtkSharpWindow.xft.xml:7
-msgid "Gtk# Window"
-msgstr "GTK# ablak"
-
-#: ../templates/BooGtkSharpWindow.xft.xml:9
-#: ../templates/EmptyBooFile.xft.xml:6
-msgid "General"
-msgstr "Általános"
-
-#: ../templates/BooGtkSharpWindow.xft.xml:11
-msgid "Creates a top-level Gtk# window"
-msgstr "Létrehoz egy felsőszintű GTK# ablakot"
-
-#: ../templates/EmptyBooFile.xft.xml:4
-msgid "Empty File"
-msgstr "Üres fájl"
-
-#: ../templates/EmptyBooFile.xft.xml:8
-msgid "Creates an empty Boo file."
-msgstr "Létrehoz egy üres Boo fájlt"
-
-#: ../templates/EmptyBooProject.xpt.xml:7
-msgid "Empty Project"
-msgstr "Üres projekt"
-
-#: ../templates/EmptyBooProject.xpt.xml:11
-msgid "Creates an empty Boo solution."
-msgstr "Létrehoz egy üres Boo megoldást"
-
-#: ../BooBinding.addin.xml:33
-msgid "Boo Files"
-msgstr "Boo fájlok"
-
-#: ../BooBinding.addin.xml:55 ../Gui/OptionPanels/CodeCompilationPanel.boo:91
-msgid "Code Generation"
-msgstr "Kódgenerálás"
-
-#: ../BooBinding.addin.xml:69
-msgid "Boo source code"
-msgstr ""
-
-#: ../BooBinding.addin.xml:90 ../BooBinding.addin.xml:98
-msgid "Boo Shell"
-msgstr "Boo shell"
-
-#: ../Gui/ShellTextView.boo:188
-msgid "Copy Script"
-msgstr "Szkript másolása"
-
-#: ../Gui/ShellTextView.boo:192
-msgid "Save Script As ..."
-msgstr "Szkript mentése másként..."
-
-#: ../Gui/ShellTextView.boo:196
-msgid "Load Project Assemblies (forces shell reset)"
-msgstr "Projekthez tartozó assemblyk betöltése (a shell újra lesz indítva)"
-
-#: ../Gui/ShellTextView.boo:203
-msgid "Reset Shell"
-msgstr "Shell újraindítása"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:42
-msgid "Enable debug"
-msgstr "Hibakeresés bekapcsolása"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:43
-msgid "Enable ducky mode"
-msgstr "Ducky üzemmód bekapcsolása"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:92
-msgid "Output Path"
-msgstr "Kimeneti útvonal"
-
-# Nem vagyok biztos benne, hogy ez a helyes fordítás, szövegkörnyezettől függ.
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:96
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:103
-msgid "Output Assembly"
-msgstr "Assembly fájl"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:98
-msgid "Warnings and Compiler Options"
-msgstr "Figyelemztetések és a fordító beállításai"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:100
-msgid "Compiler"
-msgstr "Fordító"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:101
-msgid "Culture"
-msgstr "Kultúra"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:109
-msgid "Executable"
-msgstr "Futtatható fájl"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:113
-msgid "Library"
-msgstr "Függvénykönyvtár"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:117
-msgid "Executable with GUI"
-msgstr "Futtatható fájl GUI-val"
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:50
-msgid "General Options"
-msgstr "Általános beállítások"
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:52
-msgid "Automatically indent new lines in code blocks"
-msgstr "A kódblokkok új sorainak automatikus behúzása"
-
-# Elírás van az eredeti sztringben, ha jól veszem észre.
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:53
-msgid "Shell reset clears scollback"
-msgstr "Előzmények törlése a shell újraindításakor"
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:54
-msgid "Shell reset clears command history"
-msgstr "Parancsok előzményeinek törlése a shell újraindításakor"
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:55
-msgid "Load project assemblies after building them (Causes shell reset)"
-msgstr ""
-"Assembly kódok betöltése a fordítást követően (a shell újraindítását váltja "
-"ki)"
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:56
-msgid "Font"
-msgstr "Betűtípus"
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:57
-msgid "Use default monospace font"
-msgstr "Alapértelmezett monospace betűtípus használata"
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:58
-msgid "Use custom font:"
-msgstr "Saját betűtípus használata:"
diff --git a/extras/BooBinding/po/id.po b/extras/BooBinding/po/id.po
deleted file mode 100644
index 1abfbb9cc2..0000000000
--- a/extras/BooBinding/po/id.po
+++ /dev/null
@@ -1,185 +0,0 @@
-# Indonesian MonoDevelop translation.
-# Copyright (C) 2007 Fajrin Azis
-# This file is distributed under the same license as the PACKAGE package.
-# Fajrin Azis <fajrin_azis_kudo@yahoo.co.id>, 2007.
-#
-#, fuzzy
-msgid ""
-msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2009-03-04 18:11:19-0500\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: Fajrin Azis <fajrin_azis_kudo@yahoo.co.id>\n"
-"Language-Team: Indonesian <id@li.org>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
-
-#: ../templates/BooGtkSharpProject.xpt.xml:7
-msgid "Gtk# Project"
-msgstr "Proyek Gtk#"
-
-#: ../templates/BooGtkSharpProject.xpt.xml:8
-#: ../templates/BooLibraryProject.xpt.xml:8
-#: ../templates/EmptyBooProject.xpt.xml:8
-msgid "Boo"
-msgstr ""
-
-#: ../templates/BooGtkSharpProject.xpt.xml:11
-msgid "Creates a Boo/Gtk# project"
-msgstr "Buat proyek Boo/Gtk#"
-
-#: ../templates/BooLibraryProject.xpt.xml:7
-msgid "Boo Library"
-msgstr "Boo Library"
-
-#: ../templates/BooLibraryProject.xpt.xml:11
-msgid "Creates a Boo library"
-msgstr "Buat Boo Library"
-
-#: ../templates/BooGtkSharpWindow.xft.xml:7
-msgid "Gtk# Window"
-msgstr "Jendela Gtk#"
-
-#: ../templates/BooGtkSharpWindow.xft.xml:9
-#: ../templates/EmptyBooFile.xft.xml:6
-msgid "General"
-msgstr "General"
-
-#: ../templates/BooGtkSharpWindow.xft.xml:11
-msgid "Creates a top-level Gtk# window"
-msgstr "Buat jendela Gtk# level-atas"
-
-#: ../templates/EmptyBooFile.xft.xml:4
-msgid "Empty File"
-msgstr "File Kosong"
-
-#: ../templates/EmptyBooFile.xft.xml:8
-msgid "Creates an empty Boo file."
-msgstr "Buat file Boo kosong."
-
-#: ../templates/EmptyBooProject.xpt.xml:7
-msgid "Empty Project"
-msgstr "Proyek Kosong"
-
-#: ../templates/EmptyBooProject.xpt.xml:11
-msgid "Creates an empty Boo solution."
-msgstr "Buat solusi Boo kosong."
-
-#: ../BooBinding.addin.xml:33
-msgid "Boo Files"
-msgstr "Boo Files"
-
-#: ../BooBinding.addin.xml:55 ../Gui/OptionPanels/CodeCompilationPanel.boo:91
-msgid "Code Generation"
-msgstr "Generasi Code"
-
-#: ../BooBinding.addin.xml:69
-msgid "Boo source code"
-msgstr ""
-
-#: ../BooBinding.addin.xml:90 ../BooBinding.addin.xml:98
-msgid "Boo Shell"
-msgstr "Boo Shell"
-
-#: ../Gui/ShellTextView.boo:188
-#, fuzzy
-msgid "Copy Script"
-msgstr "Hak cipta:"
-
-#: ../Gui/ShellTextView.boo:192
-#, fuzzy
-msgid "Save Script As ..."
-msgstr "Simpan _Sebagai..."
-
-#: ../Gui/ShellTextView.boo:196
-msgid "Load Project Assemblies (forces shell reset)"
-msgstr ""
-
-#: ../Gui/ShellTextView.boo:203
-#, fuzzy
-msgid "Reset Shell"
-msgstr "Batalkan Seluruh Seleksi"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:42
-#, fuzzy
-msgid "Enable debug"
-msgstr "Enabled"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:43
-msgid "Enable ducky mode"
-msgstr ""
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:92
-#, fuzzy
-msgid "Output Path"
-msgstr "Jalur Output:"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:96
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:103
-#, fuzzy
-msgid "Output Assembly"
-msgstr ".Net Assembly"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:98
-#, fuzzy
-msgid "Warnings and Compiler Options"
-msgstr "Opsi Extra Compiler"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:100
-msgid "Compiler"
-msgstr "Compiler"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:101
-msgid "Culture"
-msgstr ""
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:109
-msgid "Executable"
-msgstr "Executable"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:113
-msgid "Library"
-msgstr "Library"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:117
-msgid "Executable with GUI"
-msgstr "Dapat dieksekusi dengan GUI"
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:50
-#, fuzzy
-msgid "General Options"
-msgstr "<b>Opsi General</b>"
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:52
-msgid "Automatically indent new lines in code blocks"
-msgstr ""
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:53
-msgid "Shell reset clears scollback"
-msgstr ""
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:54
-msgid "Shell reset clears command history"
-msgstr ""
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:55
-msgid "Load project assemblies after building them (Causes shell reset)"
-msgstr ""
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:56
-#, fuzzy
-msgid "Font"
-msgstr "Bulan"
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:57
-#, fuzzy
-msgid "Use default monospace font"
-msgstr "Gunakan huruh _monospace yang biasanya"
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:58
-#, fuzzy
-msgid "Use custom font:"
-msgstr "_Gunakan huruf custom:"
diff --git a/extras/BooBinding/po/it.po b/extras/BooBinding/po/it.po
deleted file mode 100644
index a3c10c3e9e..0000000000
--- a/extras/BooBinding/po/it.po
+++ /dev/null
@@ -1,188 +0,0 @@
-# ITALIAN translation of MonoDevelop.
-# Copyright (C) 2005 THE MonoDevelop's COPYRIGHT HOLDER.
-# This file is distributed under the same license as the MonoDevelop package.
-# Alberto Paro <alberto@paro.homeunix.org>, 2005
-# Milo Casagrande <milo_casagrande@yahoo.it>, 2006-2007
-#
-# Piccolo glossario:
-# item -> elemento (me lo dimentico sempre :)
-# pattern -> criterio
-# match -> corrispondenza
-# target -> obiettivo
-# dock -> invariato (da wikipedia it.wikipedia.org/wiki/Dock, benché qui sia riferito la Mac)
-# to deploy -> produrre, mettere in produzione
-# to build -> generare, opzione di generazione
-#
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: monodevelop\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2009-03-04 18:11:19-0500\n"
-"PO-Revision-Date: 2007-09-24 23:50+0200\n"
-"Last-Translator: Milo Casagrande <milo_casagrande@yahoo.it>\n"
-"Language-Team: Italian <tp@lists.linux.it>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-forms: nplurals=2; plural=(n != 1);\n"
-
-#: ../templates/BooGtkSharpProject.xpt.xml:7
-msgid "Gtk# Project"
-msgstr "Progetto GTK#"
-
-#: ../templates/BooGtkSharpProject.xpt.xml:8
-#: ../templates/BooLibraryProject.xpt.xml:8
-#: ../templates/EmptyBooProject.xpt.xml:8
-msgid "Boo"
-msgstr ""
-
-#: ../templates/BooGtkSharpProject.xpt.xml:11
-msgid "Creates a Boo/Gtk# project"
-msgstr "Crea un progetto Boo/GTK#"
-
-#: ../templates/BooLibraryProject.xpt.xml:7
-msgid "Boo Library"
-msgstr "Libreria Boo"
-
-#: ../templates/BooLibraryProject.xpt.xml:11
-msgid "Creates a Boo library"
-msgstr "Crea una libreria Boo"
-
-#: ../templates/BooGtkSharpWindow.xft.xml:7
-msgid "Gtk# Window"
-msgstr "Finestra GTK#"
-
-#: ../templates/BooGtkSharpWindow.xft.xml:9
-#: ../templates/EmptyBooFile.xft.xml:6
-#, fuzzy
-msgid "General"
-msgstr "Generazione codice"
-
-#: ../templates/BooGtkSharpWindow.xft.xml:11
-msgid "Creates a top-level Gtk# window"
-msgstr "Crea una finestra GTK#"
-
-#: ../templates/EmptyBooFile.xft.xml:4
-msgid "Empty File"
-msgstr "File vuoto"
-
-#: ../templates/EmptyBooFile.xft.xml:8
-msgid "Creates an empty Boo file."
-msgstr "Crea un file Boo vuoto."
-
-#: ../templates/EmptyBooProject.xpt.xml:7
-msgid "Empty Project"
-msgstr "Progetto vuoto"
-
-#: ../templates/EmptyBooProject.xpt.xml:11
-msgid "Creates an empty Boo solution."
-msgstr "Crea una soluzione Boo vuota"
-
-#: ../BooBinding.addin.xml:33
-msgid "Boo Files"
-msgstr "File boo"
-
-#: ../BooBinding.addin.xml:55 ../Gui/OptionPanels/CodeCompilationPanel.boo:91
-msgid "Code Generation"
-msgstr "Generazione codice"
-
-#: ../BooBinding.addin.xml:69
-msgid "Boo source code"
-msgstr ""
-
-#: ../BooBinding.addin.xml:90 ../BooBinding.addin.xml:98
-msgid "Boo Shell"
-msgstr "Shell boo"
-
-#: ../Gui/ShellTextView.boo:188
-msgid "Copy Script"
-msgstr ""
-
-#: ../Gui/ShellTextView.boo:192
-msgid "Save Script As ..."
-msgstr ""
-
-#: ../Gui/ShellTextView.boo:196
-msgid "Load Project Assemblies (forces shell reset)"
-msgstr ""
-
-#: ../Gui/ShellTextView.boo:203
-#, fuzzy
-msgid "Reset Shell"
-msgstr "Shell boo"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:42
-msgid "Enable debug"
-msgstr ""
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:43
-msgid "Enable ducky mode"
-msgstr ""
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:92
-msgid "Output Path"
-msgstr ""
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:96
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:103
-msgid "Output Assembly"
-msgstr ""
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:98
-msgid "Warnings and Compiler Options"
-msgstr ""
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:100
-msgid "Compiler"
-msgstr ""
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:101
-msgid "Culture"
-msgstr ""
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:109
-msgid "Executable"
-msgstr ""
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:113
-#, fuzzy
-msgid "Library"
-msgstr "Libreria Boo"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:117
-msgid "Executable with GUI"
-msgstr ""
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:50
-#, fuzzy
-msgid "General Options"
-msgstr "Generazione codice"
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:52
-msgid "Automatically indent new lines in code blocks"
-msgstr ""
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:53
-msgid "Shell reset clears scollback"
-msgstr ""
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:54
-msgid "Shell reset clears command history"
-msgstr ""
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:55
-msgid "Load project assemblies after building them (Causes shell reset)"
-msgstr ""
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:56
-msgid "Font"
-msgstr ""
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:57
-msgid "Use default monospace font"
-msgstr ""
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:58
-msgid "Use custom font:"
-msgstr ""
diff --git a/extras/BooBinding/po/ja.po b/extras/BooBinding/po/ja.po
deleted file mode 100644
index 59dff8fa6b..0000000000
--- a/extras/BooBinding/po/ja.po
+++ /dev/null
@@ -1,177 +0,0 @@
-# MonoDevelop ja_JP translation
-# Copyright (C) 2004 Atsushi Enomoto
-# This file is distributed under the same license as the PACKAGE package.
-# Atsushi Enomoto <atsushi@ximian.com>, 2004.
-# Akira Nakagawa <matyapiro31@gmail.com>, 2015.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: MonoDevelop 0.3\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2009-03-04 18:11:19-0500\n"
-"PO-Revision-Date: 2015-01-10 21:14+0900\n"
-"Last-Translator: Akira Nakagawa <matyapiro31@gmail.com>\n"
-"Language-Team: 日本語 <>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=2; plural=n != 1;\n"
-"X-Generator: Poedit 1.5.7\n"
-
-#: ../templates/BooGtkSharpProject.xpt.xml:7
-msgid "Gtk# Project"
-msgstr "Gtk#プロジェクト"
-
-#: ../templates/BooGtkSharpProject.xpt.xml:8
-#: ../templates/BooLibraryProject.xpt.xml:8
-#: ../templates/EmptyBooProject.xpt.xml:8
-msgid "Boo"
-msgstr "Boo"
-
-#: ../templates/BooGtkSharpProject.xpt.xml:11
-msgid "Creates a Boo/Gtk# project"
-msgstr "Boo/Gtk#プロジェクトを作成します"
-
-#: ../templates/BooLibraryProject.xpt.xml:7
-msgid "Boo Library"
-msgstr "Booライブラリ"
-
-#: ../templates/BooLibraryProject.xpt.xml:11
-msgid "Creates a Boo library"
-msgstr "空のBooライブラリを作成します"
-
-#: ../templates/BooGtkSharpWindow.xft.xml:7
-msgid "Gtk# Window"
-msgstr "Gtk#ウィンドウ"
-
-#: ../templates/BooGtkSharpWindow.xft.xml:9
-#: ../templates/EmptyBooFile.xft.xml:6
-msgid "General"
-msgstr "全般"
-
-#: ../templates/BooGtkSharpWindow.xft.xml:11
-msgid "Creates a top-level Gtk# window"
-msgstr "トップレベルGtk#ウィンドウを作成します"
-
-#: ../templates/EmptyBooFile.xft.xml:4
-msgid "Empty File"
-msgstr "空のファイル"
-
-#: ../templates/EmptyBooFile.xft.xml:8
-msgid "Creates an empty Boo file."
-msgstr "空のBooファイルを作成します"
-
-#: ../templates/EmptyBooProject.xpt.xml:7
-msgid "Empty Project"
-msgstr "空のプロジェクト"
-
-#: ../templates/EmptyBooProject.xpt.xml:11
-msgid "Creates an empty Boo solution."
-msgstr "空のBooソリューションを作成します"
-
-#: ../BooBinding.addin.xml:33
-msgid "Boo Files"
-msgstr "Booファイル"
-
-#: ../BooBinding.addin.xml:55 ../Gui/OptionPanels/CodeCompilationPanel.boo:91
-msgid "Code Generation"
-msgstr "コード生成方法"
-
-#: ../BooBinding.addin.xml:69
-msgid "Boo source code"
-msgstr "Boo ソースコード"
-
-#: ../BooBinding.addin.xml:90 ../BooBinding.addin.xml:98
-msgid "Boo Shell"
-msgstr "Booシェル"
-
-#: ../Gui/ShellTextView.boo:188
-msgid "Copy Script"
-msgstr "スクリプトをコピー"
-
-#: ../Gui/ShellTextView.boo:192
-msgid "Save Script As ..."
-msgstr "スクリプトに名前をつけて保存..."
-
-#: ../Gui/ShellTextView.boo:196
-msgid "Load Project Assemblies (forces shell reset)"
-msgstr "プロジェクトアセンブリを読み込み(シェルのリセットを強制実行)"
-
-#: ../Gui/ShellTextView.boo:203
-msgid "Reset Shell"
-msgstr "シェルをリセット"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:42
-msgid "Enable debug"
-msgstr "デバッグを有効にする"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:43
-msgid "Enable ducky mode"
-msgstr "duckyモードを有効にする"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:92
-msgid "Output Path"
-msgstr "出力パス"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:96
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:103
-msgid "Output Assembly"
-msgstr "出力アセンブリ"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:98
-msgid "Warnings and Compiler Options"
-msgstr "警告とコンパイラのオプション"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:100
-msgid "Compiler"
-msgstr "コンパイラ"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:101
-msgid "Culture"
-msgstr "カルチャ"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:109
-msgid "Executable"
-msgstr "実行可能ファイル"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:113
-msgid "Library"
-msgstr "ライブラリ"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:117
-msgid "Executable with GUI"
-msgstr "GUI実行可能ファイル"
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:50
-msgid "General Options"
-msgstr "全般的なオプション"
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:52
-msgid "Automatically indent new lines in code blocks"
-msgstr "コードブロックで自動的に改行でインデントする"
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:53
-msgid "Shell reset clears scollback"
-msgstr "シェルのリセットでスクロールバックをクリアする"
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:54
-msgid "Shell reset clears command history"
-msgstr "シェルのリセットでコマンド ヒストリをクリアする"
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:55
-msgid "Load project assemblies after building them (Causes shell reset)"
-msgstr ""
-"プロジェクトアセンブリをビルドした後で読み込む(シェルのリセットが発生しま"
-"す)"
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:56
-msgid "Font"
-msgstr "フォント"
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:57
-msgid "Use default monospace font"
-msgstr "既定の等幅フォントを使用"
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:58
-msgid "Use custom font:"
-msgstr "カスタムフォントを使用:"
diff --git a/extras/BooBinding/po/messages.po b/extras/BooBinding/po/messages.po
deleted file mode 100644
index cdaa04ab1e..0000000000
--- a/extras/BooBinding/po/messages.po
+++ /dev/null
@@ -1,170 +0,0 @@
-msgid ""
-msgstr ""
-"Project-Id-Version: \n"
-"POT-Creation-Date: 2009-03-04 18:11:19-0500\n"
-"PO-Revision-Date: 2009-03-04 18:11:19-0500\n"
-"Last-Translator: Michael Hutchinson <mhutchinson@novell.com>\n"
-"Language-Team: \n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=utf-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"X-Generator: MonoDevelop Gettext addin\n"
-
-#: ../templates/BooGtkSharpProject.xpt.xml:7
-msgid "Gtk# Project"
-msgstr ""
-
-#: ../templates/BooGtkSharpProject.xpt.xml:8
-#: ../templates/BooLibraryProject.xpt.xml:8
-#: ../templates/EmptyBooProject.xpt.xml:8
-msgid "Boo"
-msgstr ""
-
-#: ../templates/BooGtkSharpProject.xpt.xml:11
-msgid "Creates a Boo/Gtk# project"
-msgstr ""
-
-#: ../templates/BooLibraryProject.xpt.xml:7
-msgid "Boo Library"
-msgstr ""
-
-#: ../templates/BooLibraryProject.xpt.xml:11
-msgid "Creates a Boo library"
-msgstr ""
-
-#: ../templates/BooGtkSharpWindow.xft.xml:7
-msgid "Gtk# Window"
-msgstr ""
-
-#: ../templates/BooGtkSharpWindow.xft.xml:9
-#: ../templates/EmptyBooFile.xft.xml:6
-msgid "General"
-msgstr ""
-
-#: ../templates/BooGtkSharpWindow.xft.xml:11
-msgid "Creates a top-level Gtk# window"
-msgstr ""
-
-#: ../templates/EmptyBooFile.xft.xml:4
-msgid "Empty File"
-msgstr ""
-
-#: ../templates/EmptyBooFile.xft.xml:8
-msgid "Creates an empty Boo file."
-msgstr ""
-
-#: ../templates/EmptyBooProject.xpt.xml:7
-msgid "Empty Project"
-msgstr ""
-
-#: ../templates/EmptyBooProject.xpt.xml:11
-msgid "Creates an empty Boo solution."
-msgstr ""
-
-#: ../BooBinding.addin.xml:33
-msgid "Boo Files"
-msgstr ""
-
-#: ../BooBinding.addin.xml:55
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:91
-msgid "Code Generation"
-msgstr ""
-
-#: ../BooBinding.addin.xml:69
-msgid "Boo source code"
-msgstr ""
-
-#: ../BooBinding.addin.xml:90
-#: ../BooBinding.addin.xml:98
-msgid "Boo Shell"
-msgstr ""
-
-#: ../Gui/ShellTextView.boo:188
-msgid "Copy Script"
-msgstr ""
-
-#: ../Gui/ShellTextView.boo:192
-msgid "Save Script As ..."
-msgstr ""
-
-#: ../Gui/ShellTextView.boo:196
-msgid "Load Project Assemblies (forces shell reset)"
-msgstr ""
-
-#: ../Gui/ShellTextView.boo:203
-msgid "Reset Shell"
-msgstr ""
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:42
-msgid "Enable debug"
-msgstr ""
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:43
-msgid "Enable ducky mode"
-msgstr ""
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:92
-msgid "Output Path"
-msgstr ""
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:96
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:103
-msgid "Output Assembly"
-msgstr ""
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:98
-msgid "Warnings and Compiler Options"
-msgstr ""
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:100
-msgid "Compiler"
-msgstr ""
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:101
-msgid "Culture"
-msgstr ""
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:109
-msgid "Executable"
-msgstr ""
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:113
-msgid "Library"
-msgstr ""
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:117
-msgid "Executable with GUI"
-msgstr ""
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:50
-msgid "General Options"
-msgstr ""
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:52
-msgid "Automatically indent new lines in code blocks"
-msgstr ""
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:53
-msgid "Shell reset clears scollback"
-msgstr ""
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:54
-msgid "Shell reset clears command history"
-msgstr ""
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:55
-msgid "Load project assemblies after building them (Causes shell reset)"
-msgstr ""
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:56
-msgid "Font"
-msgstr ""
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:57
-msgid "Use default monospace font"
-msgstr ""
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:58
-msgid "Use custom font:"
-msgstr ""
-
diff --git a/extras/BooBinding/po/nl.po b/extras/BooBinding/po/nl.po
deleted file mode 100644
index fed25b3676..0000000000
--- a/extras/BooBinding/po/nl.po
+++ /dev/null
@@ -1,167 +0,0 @@
-msgid ""
-msgstr ""
-"Project-Id-Version: \n"
-"POT-Creation-Date: 2009-03-04 18:11:19-0500\n"
-"PO-Revision-Date: 2008-01-22 18:51:37+0100\n"
-"Last-Translator: \n"
-"Language-Team: \n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"X-Generator: MonoDevelop.Gettext \n"
-
-#: ../templates/BooGtkSharpProject.xpt.xml:7
-msgid "Gtk# Project"
-msgstr "Gtk#-project"
-
-#: ../templates/BooGtkSharpProject.xpt.xml:8
-#: ../templates/BooLibraryProject.xpt.xml:8
-#: ../templates/EmptyBooProject.xpt.xml:8
-msgid "Boo"
-msgstr "Boo"
-
-#: ../templates/BooGtkSharpProject.xpt.xml:11
-msgid "Creates a Boo/Gtk# project"
-msgstr "Maakt een nieuw Boo/Gtk#-project aan"
-
-#: ../templates/BooLibraryProject.xpt.xml:7
-msgid "Boo Library"
-msgstr "Boo-bibliotheek"
-
-#: ../templates/BooLibraryProject.xpt.xml:11
-msgid "Creates a Boo library"
-msgstr "Maakt een nieuwe boo-bibliotheek aan"
-
-#: ../templates/BooGtkSharpWindow.xft.xml:7
-msgid "Gtk# Window"
-msgstr "Gtk#-venster"
-
-#: ../templates/BooGtkSharpWindow.xft.xml:9
-#: ../templates/EmptyBooFile.xft.xml:6
-msgid "General"
-msgstr "Algemeen"
-
-#: ../templates/BooGtkSharpWindow.xft.xml:11
-msgid "Creates a top-level Gtk# window"
-msgstr "Maakt een Gtk#-venster op bovenste niveau aan"
-
-#: ../templates/EmptyBooFile.xft.xml:4
-msgid "Empty File"
-msgstr "Leeg bestand"
-
-#: ../templates/EmptyBooFile.xft.xml:8
-msgid "Creates an empty Boo file."
-msgstr "Maakt een leeg Boo-bestand aan."
-
-#: ../templates/EmptyBooProject.xpt.xml:7
-msgid "Empty Project"
-msgstr "Leeg project"
-
-#: ../templates/EmptyBooProject.xpt.xml:11
-msgid "Creates an empty Boo solution."
-msgstr "Maakt een lege Boo-oplossing."
-
-#: ../BooBinding.addin.xml:33
-msgid "Boo Files"
-msgstr "Boo-bestanden"
-
-#: ../BooBinding.addin.xml:55 ../Gui/OptionPanels/CodeCompilationPanel.boo:91
-msgid "Code Generation"
-msgstr "Broncodegenerate"
-
-#: ../BooBinding.addin.xml:69
-msgid "Boo source code"
-msgstr ""
-
-#: ../BooBinding.addin.xml:90 ../BooBinding.addin.xml:98
-msgid "Boo Shell"
-msgstr "Boo shell"
-
-#: ../Gui/ShellTextView.boo:188
-msgid "Copy Script"
-msgstr "Kopieer"
-
-#: ../Gui/ShellTextView.boo:192
-msgid "Save Script As ..."
-msgstr "Script opslaan als ..."
-
-#: ../Gui/ShellTextView.boo:196
-msgid "Load Project Assemblies (forces shell reset)"
-msgstr "Project assemblies inladen (forceert een shell-reset)"
-
-#: ../Gui/ShellTextView.boo:203
-msgid "Reset Shell"
-msgstr "Reset shell"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:42
-msgid "Enable debug"
-msgstr "Debug inschakelen"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:43
-msgid "Enable ducky mode"
-msgstr "Duck mode inschakelen"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:92
-msgid "Output Path"
-msgstr "Uitvoerpad"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:96
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:103
-msgid "Output Assembly"
-msgstr "Uitvoer-assembly"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:98
-msgid "Warnings and Compiler Options"
-msgstr "Waarschuwings- en compileropties"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:100
-msgid "Compiler"
-msgstr "Compiler"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:101
-msgid "Culture"
-msgstr "Cultuur"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:109
-msgid "Executable"
-msgstr "Uitvoerbaar bestand"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:113
-msgid "Library"
-msgstr "Bibliotheek"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:117
-msgid "Executable with GUI"
-msgstr "Uitvoerbaar bestand met GUI"
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:50
-msgid "General Options"
-msgstr "Algemene opties"
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:52
-msgid "Automatically indent new lines in code blocks"
-msgstr "Nieuwe bestanden automatisch inspringen in broncodeblokken"
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:53
-msgid "Shell reset clears scollback"
-msgstr "Shell reset wist terugscrollen"
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:54
-msgid "Shell reset clears command history"
-msgstr "Shell reset wist commandogeschiedenis"
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:55
-msgid "Load project assemblies after building them (Causes shell reset)"
-msgstr "Projectassemblies inladen na het bouwen (veroorzaakt een shell reset)"
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:56
-msgid "Font"
-msgstr "Lettertype"
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:57
-msgid "Use default monospace font"
-msgstr "Gebruik het standaard monospace lettertype"
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:58
-msgid "Use custom font:"
-msgstr "Gebruikt alternatief lettertype:"
diff --git a/extras/BooBinding/po/pl.po b/extras/BooBinding/po/pl.po
deleted file mode 100644
index 81dc6c3526..0000000000
--- a/extras/BooBinding/po/pl.po
+++ /dev/null
@@ -1,180 +0,0 @@
-# Polish translation of MonoDevelop.
-# Copyright (C) 2005 Marek Sieradzki <mootant@op.pl>
-# This file is distributed under the same license as the MonoDevelop package.
-# Marek Sieradzki <mootant@op.pl>, 2005.
-#
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: MonoDevelop 0.6\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2009-03-04 18:11:19-0500\n"
-"PO-Revision-Date: 2007-02-18 14:50+0100\n"
-"Last-Translator: Marek Sieradzki <marek.sieradzki@gmail.com>\n"
-"Language-Team: Polish <gnomepl@pandora.info.bielsko.pl>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=2; plural=n != 1;\n"
-
-#: ../templates/BooGtkSharpProject.xpt.xml:7
-msgid "Gtk# Project"
-msgstr "Projekt Gtk#"
-
-#: ../templates/BooGtkSharpProject.xpt.xml:8
-#: ../templates/BooLibraryProject.xpt.xml:8
-#: ../templates/EmptyBooProject.xpt.xml:8
-msgid "Boo"
-msgstr ""
-
-#: ../templates/BooGtkSharpProject.xpt.xml:11
-msgid "Creates a Boo/Gtk# project"
-msgstr "Tworzy projekt Gtk# w Boo"
-
-#: ../templates/BooLibraryProject.xpt.xml:7
-msgid "Boo Library"
-msgstr "Biblioteka Boo"
-
-#: ../templates/BooLibraryProject.xpt.xml:11
-msgid "Creates a Boo library"
-msgstr "Tworzy bibliotekę w Boo"
-
-#: ../templates/BooGtkSharpWindow.xft.xml:7
-msgid "Gtk# Window"
-msgstr "Okno Gtk#"
-
-#: ../templates/BooGtkSharpWindow.xft.xml:9
-#: ../templates/EmptyBooFile.xft.xml:6
-#, fuzzy
-msgid "General"
-msgstr "Generowanie kodu"
-
-#: ../templates/BooGtkSharpWindow.xft.xml:11
-msgid "Creates a top-level Gtk# window"
-msgstr "Tworzy okno Gtk#"
-
-#: ../templates/EmptyBooFile.xft.xml:4
-msgid "Empty File"
-msgstr "Pusty plik"
-
-#: ../templates/EmptyBooFile.xft.xml:8
-#, fuzzy
-msgid "Creates an empty Boo file."
-msgstr "Tworzy pusty plik C#."
-
-#: ../templates/EmptyBooProject.xpt.xml:7
-msgid "Empty Project"
-msgstr "Pusty projekt"
-
-#: ../templates/EmptyBooProject.xpt.xml:11
-#, fuzzy
-msgid "Creates an empty Boo solution."
-msgstr "Tworzy puste rozwiązanie VB.NET."
-
-#: ../BooBinding.addin.xml:33
-msgid "Boo Files"
-msgstr "Pliki Boo"
-
-#: ../BooBinding.addin.xml:55 ../Gui/OptionPanels/CodeCompilationPanel.boo:91
-msgid "Code Generation"
-msgstr "Generowanie kodu"
-
-#: ../BooBinding.addin.xml:69
-msgid "Boo source code"
-msgstr ""
-
-#: ../BooBinding.addin.xml:90 ../BooBinding.addin.xml:98
-msgid "Boo Shell"
-msgstr "Shell Boo"
-
-#: ../Gui/ShellTextView.boo:188
-msgid "Copy Script"
-msgstr ""
-
-#: ../Gui/ShellTextView.boo:192
-msgid "Save Script As ..."
-msgstr ""
-
-#: ../Gui/ShellTextView.boo:196
-msgid "Load Project Assemblies (forces shell reset)"
-msgstr ""
-
-#: ../Gui/ShellTextView.boo:203
-#, fuzzy
-msgid "Reset Shell"
-msgstr "Shell Boo"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:42
-msgid "Enable debug"
-msgstr ""
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:43
-msgid "Enable ducky mode"
-msgstr ""
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:92
-msgid "Output Path"
-msgstr ""
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:96
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:103
-msgid "Output Assembly"
-msgstr ""
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:98
-msgid "Warnings and Compiler Options"
-msgstr ""
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:100
-msgid "Compiler"
-msgstr ""
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:101
-msgid "Culture"
-msgstr ""
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:109
-msgid "Executable"
-msgstr ""
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:113
-#, fuzzy
-msgid "Library"
-msgstr "Biblioteka Boo"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:117
-msgid "Executable with GUI"
-msgstr ""
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:50
-#, fuzzy
-msgid "General Options"
-msgstr "Generowanie kodu"
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:52
-msgid "Automatically indent new lines in code blocks"
-msgstr ""
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:53
-msgid "Shell reset clears scollback"
-msgstr ""
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:54
-msgid "Shell reset clears command history"
-msgstr ""
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:55
-msgid "Load project assemblies after building them (Causes shell reset)"
-msgstr ""
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:56
-msgid "Font"
-msgstr ""
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:57
-msgid "Use default monospace font"
-msgstr ""
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:58
-msgid "Use custom font:"
-msgstr ""
diff --git a/extras/BooBinding/po/po.mdproj b/extras/BooBinding/po/po.mdproj
deleted file mode 100644
index aa94394de7..0000000000
--- a/extras/BooBinding/po/po.mdproj
+++ /dev/null
@@ -1,37 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5">
- <PropertyGroup>
- <ItemType>TranslationProject</ItemType>
- <relPath>locale</relPath>
- <translations>
- <translations>
- <Translation isoCode="ca" />
- <Translation isoCode="cs" />
- <Translation isoCode="da" />
- <Translation isoCode="de" />
- <Translation isoCode="es" />
- <Translation isoCode="fr" />
- <Translation isoCode="gl" />
- <Translation isoCode="hu" />
- <Translation isoCode="id" />
- <Translation isoCode="it" />
- <Translation isoCode="ja" />
- <Translation isoCode="nl" />
- <Translation isoCode="pl" />
- <Translation isoCode="pt" />
- <Translation isoCode="pt_BR" />
- <Translation isoCode="ru" />
- <Translation isoCode="sl_SI" />
- <Translation isoCode="sv" />
- <Translation isoCode="tr" />
- <Translation isoCode="zh_CN" />
- <Translation isoCode="zh_TW" />
- </translations>
- </translations>
- <packageName>monodevelop-boo</packageName>
- <outputType>RelativeToOutput</outputType>
- <ProjectGuid>{E1321D51-614A-49D9-974B-2AEB9B27210D}</ProjectGuid>
- <ProductVersion>9.0.21022</ProductVersion>
- <SchemaVersion>2.0</SchemaVersion>
- </PropertyGroup>
-</Project> \ No newline at end of file
diff --git a/extras/BooBinding/po/pt.po b/extras/BooBinding/po/pt.po
deleted file mode 100644
index 4f6aa249e4..0000000000
--- a/extras/BooBinding/po/pt.po
+++ /dev/null
@@ -1,179 +0,0 @@
-# MonoDevelop Portuguese (Portugal) / Português (Portugal) translation
-# Copyright (C) 2007
-#
-# This file is distributed under the same license as the MonoDevelop package.
-#
-# Vitor Hugo Barros <vitor.h.barros@gmail>, 2007
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: MonoDevelop 0.14\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2009-03-04 18:11:19-0500\n"
-"PO-Revision-Date: 2006-04-06 16:24-0300\n"
-"Last-Translator: Vitor Hugo Barros <vitor.h.barros@gmail>\n"
-"Language-Team: \n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=2; plural=n != 1;\n"
-
-#: ../templates/BooGtkSharpProject.xpt.xml:7
-msgid "Gtk# Project"
-msgstr "Projecto Gtk#"
-
-#: ../templates/BooGtkSharpProject.xpt.xml:8
-#: ../templates/BooLibraryProject.xpt.xml:8
-#: ../templates/EmptyBooProject.xpt.xml:8
-msgid "Boo"
-msgstr ""
-
-#: ../templates/BooGtkSharpProject.xpt.xml:11
-msgid "Creates a Boo/Gtk# project"
-msgstr "Criar um projecto Boo/Gtk#"
-
-#: ../templates/BooLibraryProject.xpt.xml:7
-msgid "Boo Library"
-msgstr "Biblioteca Boo"
-
-#: ../templates/BooLibraryProject.xpt.xml:11
-msgid "Creates a Boo library"
-msgstr "Cria uma biblioteca Boo"
-
-#: ../templates/BooGtkSharpWindow.xft.xml:7
-msgid "Gtk# Window"
-msgstr "Janela Gtk#"
-
-#: ../templates/BooGtkSharpWindow.xft.xml:9
-#: ../templates/EmptyBooFile.xft.xml:6
-#, fuzzy
-msgid "General"
-msgstr "Geração de código"
-
-#: ../templates/BooGtkSharpWindow.xft.xml:11
-msgid "Creates a top-level Gtk# window"
-msgstr "Cria uma janela Gtk# principal"
-
-#: ../templates/EmptyBooFile.xft.xml:4
-msgid "Empty File"
-msgstr "Ficheiro vazio"
-
-#: ../templates/EmptyBooFile.xft.xml:8
-msgid "Creates an empty Boo file."
-msgstr "Cria um ficheiro Boo vazio."
-
-#: ../templates/EmptyBooProject.xpt.xml:7
-msgid "Empty Project"
-msgstr "Projecto vazio"
-
-#: ../templates/EmptyBooProject.xpt.xml:11
-msgid "Creates an empty Boo solution."
-msgstr "Cria uma solução Boo vazia."
-
-#: ../BooBinding.addin.xml:33
-msgid "Boo Files"
-msgstr "Ficheiros Boo"
-
-#: ../BooBinding.addin.xml:55 ../Gui/OptionPanels/CodeCompilationPanel.boo:91
-msgid "Code Generation"
-msgstr "Geração de código"
-
-#: ../BooBinding.addin.xml:69
-msgid "Boo source code"
-msgstr ""
-
-#: ../BooBinding.addin.xml:90 ../BooBinding.addin.xml:98
-msgid "Boo Shell"
-msgstr "Shell de Boo"
-
-#: ../Gui/ShellTextView.boo:188
-msgid "Copy Script"
-msgstr ""
-
-#: ../Gui/ShellTextView.boo:192
-msgid "Save Script As ..."
-msgstr ""
-
-#: ../Gui/ShellTextView.boo:196
-msgid "Load Project Assemblies (forces shell reset)"
-msgstr ""
-
-#: ../Gui/ShellTextView.boo:203
-#, fuzzy
-msgid "Reset Shell"
-msgstr "Shell de Boo"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:42
-msgid "Enable debug"
-msgstr ""
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:43
-msgid "Enable ducky mode"
-msgstr ""
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:92
-msgid "Output Path"
-msgstr ""
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:96
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:103
-msgid "Output Assembly"
-msgstr ""
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:98
-msgid "Warnings and Compiler Options"
-msgstr ""
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:100
-msgid "Compiler"
-msgstr ""
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:101
-msgid "Culture"
-msgstr ""
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:109
-msgid "Executable"
-msgstr ""
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:113
-#, fuzzy
-msgid "Library"
-msgstr "Biblioteca Boo"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:117
-msgid "Executable with GUI"
-msgstr ""
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:50
-#, fuzzy
-msgid "General Options"
-msgstr "Geração de código"
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:52
-msgid "Automatically indent new lines in code blocks"
-msgstr ""
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:53
-msgid "Shell reset clears scollback"
-msgstr ""
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:54
-msgid "Shell reset clears command history"
-msgstr ""
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:55
-msgid "Load project assemblies after building them (Causes shell reset)"
-msgstr ""
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:56
-msgid "Font"
-msgstr ""
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:57
-msgid "Use default monospace font"
-msgstr ""
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:58
-msgid "Use custom font:"
-msgstr ""
diff --git a/extras/BooBinding/po/pt_BR.po b/extras/BooBinding/po/pt_BR.po
deleted file mode 100644
index 03d9df653a..0000000000
--- a/extras/BooBinding/po/pt_BR.po
+++ /dev/null
@@ -1,189 +0,0 @@
-# MonoDevelop Portuguese (Brazilian) translation
-# Copyright (C) 2004, Andre Filipe de Assuncao e Brito <decko@noisemakers.org>
-# Copyright (C) 2004, Maurício de Lemos Rodrigues Collares Neto <mauricioc@gmail.com>
-# Copyright (C) 2006, Rafael "Monoman" Teixeira <rafaelteixeirabr@hotmail.com>
-# Copyright (C) 2007, Renato Felipe Atilio <renatoat@gmail.com>
-#
-# This file is distributed under the same license as the MonoDevelop package.
-#
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: MonoDevelop 0.10\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2009-03-04 18:11:19-0500\n"
-"PO-Revision-Date: 2007-12-14 21:15-0300\n"
-"Last-Translator: Renato Felipe Atilio <renatoat@gmail.com>\n"
-"Language-Team: pt_BR <gnome-l10n-br@listas.cipsga.org.br>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=2; plural=n != 1;\n"
-
-#: ../templates/BooGtkSharpProject.xpt.xml:7
-msgid "Gtk# Project"
-msgstr "Projeto GTK#"
-
-#: ../templates/BooGtkSharpProject.xpt.xml:8
-#: ../templates/BooLibraryProject.xpt.xml:8
-#: ../templates/EmptyBooProject.xpt.xml:8
-msgid "Boo"
-msgstr ""
-
-#: ../templates/BooGtkSharpProject.xpt.xml:11
-msgid "Creates a Boo/Gtk# project"
-msgstr "Cria um projeto Boo/Gtk#"
-
-#: ../templates/BooLibraryProject.xpt.xml:7
-msgid "Boo Library"
-msgstr "Biblioteca Boo"
-
-#: ../templates/BooLibraryProject.xpt.xml:11
-msgid "Creates a Boo library"
-msgstr "Cria uma biblioteca Boo"
-
-#: ../templates/BooGtkSharpWindow.xft.xml:7
-msgid "Gtk# Window"
-msgstr "Janela GTK#"
-
-#: ../templates/BooGtkSharpWindow.xft.xml:9
-#: ../templates/EmptyBooFile.xft.xml:6
-msgid "General"
-msgstr "Geral"
-
-#: ../templates/BooGtkSharpWindow.xft.xml:11
-msgid "Creates a top-level Gtk# window"
-msgstr "Cria uma janela principal GTK#"
-
-#: ../templates/EmptyBooFile.xft.xml:4
-msgid "Empty File"
-msgstr "Arquivo Vazio"
-
-#: ../templates/EmptyBooFile.xft.xml:8
-msgid "Creates an empty Boo file."
-msgstr "Cria um arquivo Boo vazio."
-
-#: ../templates/EmptyBooProject.xpt.xml:7
-msgid "Empty Project"
-msgstr "Projeto Vazio"
-
-#: ../templates/EmptyBooProject.xpt.xml:11
-msgid "Creates an empty Boo solution."
-msgstr "Cria uma solução Boo vazia."
-
-#: ../BooBinding.addin.xml:33
-msgid "Boo Files"
-msgstr "Arquivos Boo"
-
-#: ../BooBinding.addin.xml:55 ../Gui/OptionPanels/CodeCompilationPanel.boo:91
-msgid "Code Generation"
-msgstr "Geração de Código"
-
-#: ../BooBinding.addin.xml:69
-msgid "Boo source code"
-msgstr ""
-
-#: ../BooBinding.addin.xml:90 ../BooBinding.addin.xml:98
-msgid "Boo Shell"
-msgstr "Console Boo"
-
-#: ../Gui/ShellTextView.boo:188
-#, fuzzy
-msgid "Copy Script"
-msgstr "Copyright:"
-
-#: ../Gui/ShellTextView.boo:192
-#, fuzzy
-msgid "Save Script As ..."
-msgstr "Salv_ar Como..."
-
-#: ../Gui/ShellTextView.boo:196
-msgid "Load Project Assemblies (forces shell reset)"
-msgstr ""
-
-#: ../Gui/ShellTextView.boo:203
-#, fuzzy
-msgid "Reset Shell"
-msgstr "Deselecionar tudo"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:42
-#, fuzzy
-msgid "Enable debug"
-msgstr "Habilitado"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:43
-msgid "Enable ducky mode"
-msgstr ""
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:92
-#, fuzzy
-msgid "Output Path"
-msgstr "Caminho da Saída:"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:96
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:103
-#, fuzzy
-msgid "Output Assembly"
-msgstr "Montagem .Net"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:98
-#, fuzzy
-msgid "Warnings and Compiler Options"
-msgstr "Opções Extras de Compilador"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:100
-msgid "Compiler"
-msgstr "Compilador"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:101
-msgid "Culture"
-msgstr ""
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:109
-msgid "Executable"
-msgstr "Executável"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:113
-msgid "Library"
-msgstr "Biblioteca"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:117
-msgid "Executable with GUI"
-msgstr "Executável com GUI"
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:50
-#, fuzzy
-msgid "General Options"
-msgstr "<b>Opções gerais</b>"
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:52
-#, fuzzy
-msgid "Automatically indent new lines in code blocks"
-msgstr "_Incluir arquivos encontrados automaticamente"
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:53
-msgid "Shell reset clears scollback"
-msgstr ""
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:54
-msgid "Shell reset clears command history"
-msgstr ""
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:55
-msgid "Load project assemblies after building them (Causes shell reset)"
-msgstr ""
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:56
-#, fuzzy
-msgid "Font"
-msgstr "Meses"
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:57
-#, fuzzy
-msgid "Use default monospace font"
-msgstr "Usar fonte _mono-espaçada padrão"
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:58
-#, fuzzy
-msgid "Use custom font:"
-msgstr "_Usar fonte customizada:"
diff --git a/extras/BooBinding/po/ru.po b/extras/BooBinding/po/ru.po
deleted file mode 100644
index 6914657fe0..0000000000
--- a/extras/BooBinding/po/ru.po
+++ /dev/null
@@ -1,183 +0,0 @@
-# Russian translation of MonoDevelop.
-# Copyright (C) 2006 Maxim Krentovskiy <mkrentovskiy@gmail.com>
-# Copyright (C) 2007 Semyon Soldatov <simplexe@csharp.net.ru>
-# This file is distributed under the same license as the MonoDevelop package.
-# Maxim Krentovskiy <mkrentovskiy@gmail.com>, 2006
-# Semyon Soldatov <simplexe@csharp.net.ru>, 2007
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: MonoDevelop 0.13\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2009-03-04 18:11:19-0500\n"
-"PO-Revision-Date: 2007-10-29 10:54+0300\n"
-"Last-Translator: Daniel Abramov <ex@vingrad.ru>\n"
-"Language-Team: Russian <ru@li.org>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%"
-"10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)\n"
-"X-Poedit-Language: Russian\n"
-"X-Poedit-Country: RUSSIAN FEDERATION\n"
-"X-Poedit-SourceCharset: utf-8\n"
-
-#: ../templates/BooGtkSharpProject.xpt.xml:7
-msgid "Gtk# Project"
-msgstr "Проект Gtk#"
-
-#: ../templates/BooGtkSharpProject.xpt.xml:8
-#: ../templates/BooLibraryProject.xpt.xml:8
-#: ../templates/EmptyBooProject.xpt.xml:8
-msgid "Boo"
-msgstr ""
-
-#: ../templates/BooGtkSharpProject.xpt.xml:11
-msgid "Creates a Boo/Gtk# project"
-msgstr "Создать проект Boo/Gtk#"
-
-#: ../templates/BooLibraryProject.xpt.xml:7
-msgid "Boo Library"
-msgstr "Библиотека Boo"
-
-#: ../templates/BooLibraryProject.xpt.xml:11
-msgid "Creates a Boo library"
-msgstr "Создать библиотеку на языке Boo"
-
-#: ../templates/BooGtkSharpWindow.xft.xml:7
-msgid "Gtk# Window"
-msgstr "Окно Gtk#"
-
-#: ../templates/BooGtkSharpWindow.xft.xml:9
-#: ../templates/EmptyBooFile.xft.xml:6
-#, fuzzy
-msgid "General"
-msgstr "Генерация кода"
-
-#: ../templates/BooGtkSharpWindow.xft.xml:11
-msgid "Creates a top-level Gtk# window"
-msgstr "Создать главное окно Gtk#"
-
-#: ../templates/EmptyBooFile.xft.xml:4
-msgid "Empty File"
-msgstr "Файл"
-
-#: ../templates/EmptyBooFile.xft.xml:8
-msgid "Creates an empty Boo file."
-msgstr "Создать файл на языке Boo."
-
-#: ../templates/EmptyBooProject.xpt.xml:7
-msgid "Empty Project"
-msgstr "Проект"
-
-#: ../templates/EmptyBooProject.xpt.xml:11
-msgid "Creates an empty Boo solution."
-msgstr "Создать решение на языке Boo."
-
-#: ../BooBinding.addin.xml:33
-msgid "Boo Files"
-msgstr "Файлы Boo"
-
-#: ../BooBinding.addin.xml:55 ../Gui/OptionPanels/CodeCompilationPanel.boo:91
-msgid "Code Generation"
-msgstr "Генерация кода"
-
-#: ../BooBinding.addin.xml:69
-msgid "Boo source code"
-msgstr ""
-
-#: ../BooBinding.addin.xml:90 ../BooBinding.addin.xml:98
-msgid "Boo Shell"
-msgstr "Оболочка Boo"
-
-#: ../Gui/ShellTextView.boo:188
-msgid "Copy Script"
-msgstr ""
-
-#: ../Gui/ShellTextView.boo:192
-msgid "Save Script As ..."
-msgstr ""
-
-#: ../Gui/ShellTextView.boo:196
-msgid "Load Project Assemblies (forces shell reset)"
-msgstr ""
-
-#: ../Gui/ShellTextView.boo:203
-#, fuzzy
-msgid "Reset Shell"
-msgstr "Оболочка Boo"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:42
-msgid "Enable debug"
-msgstr ""
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:43
-msgid "Enable ducky mode"
-msgstr ""
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:92
-msgid "Output Path"
-msgstr ""
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:96
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:103
-msgid "Output Assembly"
-msgstr ""
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:98
-msgid "Warnings and Compiler Options"
-msgstr ""
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:100
-msgid "Compiler"
-msgstr ""
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:101
-msgid "Culture"
-msgstr ""
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:109
-msgid "Executable"
-msgstr ""
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:113
-#, fuzzy
-msgid "Library"
-msgstr "Библиотека Boo"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:117
-msgid "Executable with GUI"
-msgstr ""
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:50
-#, fuzzy
-msgid "General Options"
-msgstr "Генерация кода"
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:52
-msgid "Automatically indent new lines in code blocks"
-msgstr ""
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:53
-msgid "Shell reset clears scollback"
-msgstr ""
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:54
-msgid "Shell reset clears command history"
-msgstr ""
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:55
-msgid "Load project assemblies after building them (Causes shell reset)"
-msgstr ""
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:56
-msgid "Font"
-msgstr ""
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:57
-msgid "Use default monospace font"
-msgstr ""
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:58
-msgid "Use custom font:"
-msgstr ""
diff --git a/extras/BooBinding/po/sl_SI.po b/extras/BooBinding/po/sl_SI.po
deleted file mode 100644
index 029d0e585d..0000000000
--- a/extras/BooBinding/po/sl_SI.po
+++ /dev/null
@@ -1,185 +0,0 @@
-# translation of sl_SI.po to Slovene
-# Slovenian translation of MonoDevelop
-# Copyright (C) 2006 Matej Urbas
-# This file is distributed under the same license as the MonoDevelop package.
-#
-# Matej Urbas <matej.urbas@gmail.com>, 2006.
-msgid ""
-msgstr ""
-"Project-Id-Version: sl_SI\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2009-03-04 18:11:19-0500\n"
-"PO-Revision-Date: 2006-11-18 01:38+0100\n"
-"Last-Translator: Matej Urbas <matej.urbas@gmail.com>\n"
-"Language-Team: Slovene\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=4; plural=n==1 ? 0 : n==2 ? 1 : (n>4 || n < 1) ? 3 : "
-"2;\n"
-"X-Generator: KBabel 1.11.4\n"
-
-#: ../templates/BooGtkSharpProject.xpt.xml:7
-msgid "Gtk# Project"
-msgstr "Gtk# projekt"
-
-#: ../templates/BooGtkSharpProject.xpt.xml:8
-#: ../templates/BooLibraryProject.xpt.xml:8
-#: ../templates/EmptyBooProject.xpt.xml:8
-msgid "Boo"
-msgstr ""
-
-#: ../templates/BooGtkSharpProject.xpt.xml:11
-#, fuzzy
-msgid "Creates a Boo/Gtk# project"
-msgstr "Ustvari nov Gtk# projekt"
-
-#: ../templates/BooLibraryProject.xpt.xml:7
-#, fuzzy
-msgid "Boo Library"
-msgstr "Knjižnica (dll)"
-
-#: ../templates/BooLibraryProject.xpt.xml:11
-#, fuzzy
-msgid "Creates a Boo library"
-msgstr "Ustvari prazno C# razredno knjižnico"
-
-#: ../templates/BooGtkSharpWindow.xft.xml:7
-msgid "Gtk# Window"
-msgstr "Gtk# okno"
-
-#: ../templates/BooGtkSharpWindow.xft.xml:9
-#: ../templates/EmptyBooFile.xft.xml:6
-#, fuzzy
-msgid "General"
-msgstr "Generator koda"
-
-#: ../templates/BooGtkSharpWindow.xft.xml:11
-msgid "Creates a top-level Gtk# window"
-msgstr "Ustvari novo Gtk# okno"
-
-#: ../templates/EmptyBooFile.xft.xml:4
-msgid "Empty File"
-msgstr "Prazna datoteka"
-
-#: ../templates/EmptyBooFile.xft.xml:8
-#, fuzzy
-msgid "Creates an empty Boo file."
-msgstr "Ustvari prazno C# datoteko"
-
-#: ../templates/EmptyBooProject.xpt.xml:7
-msgid "Empty Project"
-msgstr "Prazen projekt"
-
-#: ../templates/EmptyBooProject.xpt.xml:11
-#, fuzzy
-msgid "Creates an empty Boo solution."
-msgstr "Ustvari prazno VB.NET rešitev"
-
-#: ../BooBinding.addin.xml:33
-msgid "Boo Files"
-msgstr "Boo datoteke"
-
-#: ../BooBinding.addin.xml:55 ../Gui/OptionPanels/CodeCompilationPanel.boo:91
-msgid "Code Generation"
-msgstr "Generator koda"
-
-#: ../BooBinding.addin.xml:69
-msgid "Boo source code"
-msgstr ""
-
-#: ../BooBinding.addin.xml:90 ../BooBinding.addin.xml:98
-msgid "Boo Shell"
-msgstr "Boo shell"
-
-#: ../Gui/ShellTextView.boo:188
-msgid "Copy Script"
-msgstr ""
-
-#: ../Gui/ShellTextView.boo:192
-msgid "Save Script As ..."
-msgstr ""
-
-#: ../Gui/ShellTextView.boo:196
-msgid "Load Project Assemblies (forces shell reset)"
-msgstr ""
-
-#: ../Gui/ShellTextView.boo:203
-#, fuzzy
-msgid "Reset Shell"
-msgstr "Boo shell"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:42
-msgid "Enable debug"
-msgstr ""
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:43
-msgid "Enable ducky mode"
-msgstr ""
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:92
-msgid "Output Path"
-msgstr ""
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:96
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:103
-msgid "Output Assembly"
-msgstr ""
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:98
-msgid "Warnings and Compiler Options"
-msgstr ""
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:100
-msgid "Compiler"
-msgstr ""
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:101
-msgid "Culture"
-msgstr ""
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:109
-msgid "Executable"
-msgstr ""
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:113
-#, fuzzy
-msgid "Library"
-msgstr "Knjižnica (dll)"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:117
-msgid "Executable with GUI"
-msgstr ""
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:50
-#, fuzzy
-msgid "General Options"
-msgstr "Generator koda"
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:52
-msgid "Automatically indent new lines in code blocks"
-msgstr ""
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:53
-msgid "Shell reset clears scollback"
-msgstr ""
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:54
-msgid "Shell reset clears command history"
-msgstr ""
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:55
-msgid "Load project assemblies after building them (Causes shell reset)"
-msgstr ""
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:56
-msgid "Font"
-msgstr ""
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:57
-msgid "Use default monospace font"
-msgstr ""
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:58
-msgid "Use custom font:"
-msgstr ""
diff --git a/extras/BooBinding/po/sv.po b/extras/BooBinding/po/sv.po
deleted file mode 100644
index c0b5d4fc25..0000000000
--- a/extras/BooBinding/po/sv.po
+++ /dev/null
@@ -1,175 +0,0 @@
-# Swedish translation for MonoDevelop.
-# Copyright (C) 2007 Free Software Foundation, Inc.
-# This file is distributed under the same license as the monodevelop package.
-# Daniel Nylander <po@danielnylander.se>, 2007.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: monodevelop\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2009-03-04 18:11:19-0500\n"
-"PO-Revision-Date: 2007-10-01 22:12+0100\n"
-"Last-Translator: Daniel Nylander <po@danielnylander.se>\n"
-"Language-Team: Swedish <tp-sv@listor.tp-sv.se>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=2; plural=n != 1;\n"
-
-#: ../templates/BooGtkSharpProject.xpt.xml:7
-msgid "Gtk# Project"
-msgstr "Gtk#-projekt"
-
-#: ../templates/BooGtkSharpProject.xpt.xml:8
-#: ../templates/BooLibraryProject.xpt.xml:8
-#: ../templates/EmptyBooProject.xpt.xml:8
-msgid "Boo"
-msgstr ""
-
-#: ../templates/BooGtkSharpProject.xpt.xml:11
-msgid "Creates a Boo/Gtk# project"
-msgstr ""
-
-#: ../templates/BooLibraryProject.xpt.xml:7
-msgid "Boo Library"
-msgstr ""
-
-#: ../templates/BooLibraryProject.xpt.xml:11
-msgid "Creates a Boo library"
-msgstr ""
-
-#: ../templates/BooGtkSharpWindow.xft.xml:7
-msgid "Gtk# Window"
-msgstr "Gtk#-fönster"
-
-#: ../templates/BooGtkSharpWindow.xft.xml:9
-#: ../templates/EmptyBooFile.xft.xml:6
-#, fuzzy
-msgid "General"
-msgstr "Kodgenerering"
-
-#: ../templates/BooGtkSharpWindow.xft.xml:11
-msgid "Creates a top-level Gtk# window"
-msgstr ""
-
-#: ../templates/EmptyBooFile.xft.xml:4
-msgid "Empty File"
-msgstr "Tom fil"
-
-#: ../templates/EmptyBooFile.xft.xml:8
-msgid "Creates an empty Boo file."
-msgstr ""
-
-#: ../templates/EmptyBooProject.xpt.xml:7
-msgid "Empty Project"
-msgstr "Tomt projekt"
-
-#: ../templates/EmptyBooProject.xpt.xml:11
-msgid "Creates an empty Boo solution."
-msgstr ""
-
-#: ../BooBinding.addin.xml:33
-msgid "Boo Files"
-msgstr ""
-
-#: ../BooBinding.addin.xml:55 ../Gui/OptionPanels/CodeCompilationPanel.boo:91
-msgid "Code Generation"
-msgstr "Kodgenerering"
-
-#: ../BooBinding.addin.xml:69
-msgid "Boo source code"
-msgstr ""
-
-#: ../BooBinding.addin.xml:90 ../BooBinding.addin.xml:98
-msgid "Boo Shell"
-msgstr ""
-
-#: ../Gui/ShellTextView.boo:188
-msgid "Copy Script"
-msgstr ""
-
-#: ../Gui/ShellTextView.boo:192
-msgid "Save Script As ..."
-msgstr ""
-
-#: ../Gui/ShellTextView.boo:196
-msgid "Load Project Assemblies (forces shell reset)"
-msgstr ""
-
-#: ../Gui/ShellTextView.boo:203
-msgid "Reset Shell"
-msgstr ""
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:42
-msgid "Enable debug"
-msgstr ""
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:43
-msgid "Enable ducky mode"
-msgstr ""
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:92
-msgid "Output Path"
-msgstr ""
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:96
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:103
-msgid "Output Assembly"
-msgstr ""
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:98
-msgid "Warnings and Compiler Options"
-msgstr ""
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:100
-msgid "Compiler"
-msgstr ""
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:101
-msgid "Culture"
-msgstr ""
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:109
-msgid "Executable"
-msgstr ""
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:113
-msgid "Library"
-msgstr ""
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:117
-msgid "Executable with GUI"
-msgstr ""
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:50
-#, fuzzy
-msgid "General Options"
-msgstr "Kodgenerering"
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:52
-msgid "Automatically indent new lines in code blocks"
-msgstr ""
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:53
-msgid "Shell reset clears scollback"
-msgstr ""
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:54
-msgid "Shell reset clears command history"
-msgstr ""
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:55
-msgid "Load project assemblies after building them (Causes shell reset)"
-msgstr ""
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:56
-msgid "Font"
-msgstr ""
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:57
-msgid "Use default monospace font"
-msgstr ""
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:58
-msgid "Use custom font:"
-msgstr ""
diff --git a/extras/BooBinding/po/tr.po b/extras/BooBinding/po/tr.po
deleted file mode 100644
index be7e9b7136..0000000000
--- a/extras/BooBinding/po/tr.po
+++ /dev/null
@@ -1,177 +0,0 @@
-# Turkish translation of MonoDevelop
-# Copyright (C) 2004 Novell, Inc.
-# This file is distributed under the same license as the MonoDevelop package.
-# Enver ALTIN <skyblue@skyblue.gen.tr>, 2004,
-# Enver ALTIN <ealtin@gmail.com>, 2008.
-# , fuzzy
-#
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: MonoDevelop 1.0\n"
-"Report-Msgid-Bugs-To: ealtin@gmail.com\n"
-"POT-Creation-Date: 2009-03-04 18:11:19-0500\n"
-"PO-Revision-Date: 2008-02-24 00:27+0200\n"
-"Last-Translator: Enver ALTIN <ealtin@gmail.com>\n"
-"Language-Team: Turkish <gnome-turk@gnome.org>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-
-#: ../templates/BooGtkSharpProject.xpt.xml:7
-msgid "Gtk# Project"
-msgstr "Gtk# projesi"
-
-#: ../templates/BooGtkSharpProject.xpt.xml:8
-#: ../templates/BooLibraryProject.xpt.xml:8
-#: ../templates/EmptyBooProject.xpt.xml:8
-msgid "Boo"
-msgstr "Boo"
-
-#: ../templates/BooGtkSharpProject.xpt.xml:11
-msgid "Creates a Boo/Gtk# project"
-msgstr "Bir Boo/Gtk# projesi oluşturur."
-
-#: ../templates/BooLibraryProject.xpt.xml:7
-msgid "Boo Library"
-msgstr "Boo Kütüphanesi"
-
-#: ../templates/BooLibraryProject.xpt.xml:11
-msgid "Creates a Boo library"
-msgstr "Boş bir Boo kütüphanesi oluşturur"
-
-#: ../templates/BooGtkSharpWindow.xft.xml:7
-msgid "Gtk# Window"
-msgstr "Gtk# Penceresi"
-
-#: ../templates/BooGtkSharpWindow.xft.xml:9
-#: ../templates/EmptyBooFile.xft.xml:6
-msgid "General"
-msgstr "Genel"
-
-#: ../templates/BooGtkSharpWindow.xft.xml:11
-msgid "Creates a top-level Gtk# window"
-msgstr "Üst-düzey bir Gtk# penceresi oluşturur."
-
-#: ../templates/EmptyBooFile.xft.xml:4
-msgid "Empty File"
-msgstr "Boş Dosya"
-
-#: ../templates/EmptyBooFile.xft.xml:8
-msgid "Creates an empty Boo file."
-msgstr "Boş bir Boo dosyası oluşturur."
-
-#: ../templates/EmptyBooProject.xpt.xml:7
-msgid "Empty Project"
-msgstr "Boş Proje"
-
-#: ../templates/EmptyBooProject.xpt.xml:11
-msgid "Creates an empty Boo solution."
-msgstr "Boş bir Boo çözümü oluşturur"
-
-#: ../BooBinding.addin.xml:33
-msgid "Boo Files"
-msgstr "Boo Dosyaları"
-
-#: ../BooBinding.addin.xml:55 ../Gui/OptionPanels/CodeCompilationPanel.boo:91
-msgid "Code Generation"
-msgstr "Kod oluşturma"
-
-#: ../BooBinding.addin.xml:69
-msgid "Boo source code"
-msgstr ""
-
-#: ../BooBinding.addin.xml:90 ../BooBinding.addin.xml:98
-msgid "Boo Shell"
-msgstr "Boo Kabuğu"
-
-#: ../Gui/ShellTextView.boo:188
-msgid "Copy Script"
-msgstr "Betiği Kopyala"
-
-#: ../Gui/ShellTextView.boo:192
-msgid "Save Script As ..."
-msgstr "Betiği Farklı Kaydet ..."
-
-#: ../Gui/ShellTextView.boo:196
-msgid "Load Project Assemblies (forces shell reset)"
-msgstr "Proje Çevirmelerini Yükle (kabuğu sıfırlamaya zorlar)"
-
-#: ../Gui/ShellTextView.boo:203
-msgid "Reset Shell"
-msgstr "Kabuğu Sıfırla"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:42
-msgid "Enable debug"
-msgstr "Hata Ayıklamayı Etkinleştir"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:43
-msgid "Enable ducky mode"
-msgstr "Zerafet kipini aç"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:92
-msgid "Output Path"
-msgstr "Çıktı Yolu"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:96
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:103
-msgid "Output Assembly"
-msgstr "Çıktı Çevirmesi"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:98
-msgid "Warnings and Compiler Options"
-msgstr "Uyarılar ve Derleyici Seçenekleri"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:100
-msgid "Compiler"
-msgstr "Derleyici"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:101
-msgid "Culture"
-msgstr "Kültür"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:109
-msgid "Executable"
-msgstr "Uygulama"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:113
-msgid "Library"
-msgstr "Kütüphane"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:117
-msgid "Executable with GUI"
-msgstr "GUI içeren uygulama"
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:50
-msgid "General Options"
-msgstr "Genel Tercihler"
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:52
-msgid "Automatically indent new lines in code blocks"
-msgstr "Kod bloklarında yeni satırları otomatik girintile"
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:53
-msgid "Shell reset clears scollback"
-msgstr "Kabuk sıfırlaması geri kaydırmayı temizler"
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:54
-msgid "Shell reset clears command history"
-msgstr "Kabuk sıfırlaması komut geçmişini temizler"
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:55
-msgid "Load project assemblies after building them (Causes shell reset)"
-msgstr ""
-"Proje çevirmelerini inşa ettikten sonra yükle (kabuğun sıfırlanmasına sebep "
-"olur)"
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:56
-msgid "Font"
-msgstr "Yazıtipi"
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:57
-msgid "Use default monospace font"
-msgstr "Öntanımlı sabit genişlikli yazıtipi kullan"
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:58
-msgid "Use custom font:"
-msgstr "Özel yazıtipi kullan:"
diff --git a/extras/BooBinding/po/zh_CN.po b/extras/BooBinding/po/zh_CN.po
deleted file mode 100644
index b06c08b612..0000000000
--- a/extras/BooBinding/po/zh_CN.po
+++ /dev/null
@@ -1,189 +0,0 @@
-# MonoDevelop zh_CN translation
-# Copyright(C) 2006 Yu Lindong
-# This file is distributed under the same license as the PACKAGE package.
-# Yu Lindong <shinjidev@163.com>, 2006.
-# Funda Wang <fundawang@linux.net.cn>, 2006.
-#
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: MonoDevelop 0.10\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2009-03-04 18:11:19-0500\n"
-"PO-Revision-Date: 2007-12-26 21:22+0800\n"
-"Last-Translator: Simon Keung <simon_keung@hotmail.com>\n"
-"Language-Team: Yu Lindong <shinjidev@163.com>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=1; plural=0;\n"
-
-#: ../templates/BooGtkSharpProject.xpt.xml:7
-msgid "Gtk# Project"
-msgstr "Gtk# 工程"
-
-#: ../templates/BooGtkSharpProject.xpt.xml:8
-#: ../templates/BooLibraryProject.xpt.xml:8
-#: ../templates/EmptyBooProject.xpt.xml:8
-msgid "Boo"
-msgstr ""
-
-#: ../templates/BooGtkSharpProject.xpt.xml:11
-#, fuzzy
-msgid "Creates a Boo/Gtk# project"
-msgstr "创建一个 Gtk# 工程。"
-
-#: ../templates/BooLibraryProject.xpt.xml:7
-msgid "Boo Library"
-msgstr "Boo 库"
-
-#: ../templates/BooLibraryProject.xpt.xml:11
-msgid "Creates a Boo library"
-msgstr "创建一个 Boo 类库"
-
-#: ../templates/BooGtkSharpWindow.xft.xml:7
-msgid "Gtk# Window"
-msgstr "Gtk# 窗口"
-
-#: ../templates/BooGtkSharpWindow.xft.xml:9
-#: ../templates/EmptyBooFile.xft.xml:6
-msgid "General"
-msgstr "常规"
-
-#: ../templates/BooGtkSharpWindow.xft.xml:11
-msgid "Creates a top-level Gtk# window"
-msgstr "创建一个顶级 Gtk# 窗口"
-
-#: ../templates/EmptyBooFile.xft.xml:4
-msgid "Empty File"
-msgstr "空文件"
-
-#: ../templates/EmptyBooFile.xft.xml:8
-msgid "Creates an empty Boo file."
-msgstr "创建一个空 Boo 文件."
-
-#: ../templates/EmptyBooProject.xpt.xml:7
-msgid "Empty Project"
-msgstr "空工程"
-
-#: ../templates/EmptyBooProject.xpt.xml:11
-msgid "Creates an empty Boo solution."
-msgstr "创建一个空的 Boo 解决方案."
-
-#: ../BooBinding.addin.xml:33
-msgid "Boo Files"
-msgstr "Boo 文件"
-
-#: ../BooBinding.addin.xml:55 ../Gui/OptionPanels/CodeCompilationPanel.boo:91
-msgid "Code Generation"
-msgstr "代码生成"
-
-#: ../BooBinding.addin.xml:69
-msgid "Boo source code"
-msgstr ""
-
-#: ../BooBinding.addin.xml:90 ../BooBinding.addin.xml:98
-msgid "Boo Shell"
-msgstr "Boo Shell"
-
-#: ../Gui/ShellTextView.boo:188
-#, fuzzy
-msgid "Copy Script"
-msgstr "版权:"
-
-#: ../Gui/ShellTextView.boo:192
-#, fuzzy
-msgid "Save Script As ..."
-msgstr "另存为(_A)..."
-
-#: ../Gui/ShellTextView.boo:196
-msgid "Load Project Assemblies (forces shell reset)"
-msgstr ""
-
-#: ../Gui/ShellTextView.boo:203
-#, fuzzy
-msgid "Reset Shell"
-msgstr "全部不选"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:42
-#, fuzzy
-msgid "Enable debug"
-msgstr "启用"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:43
-msgid "Enable ducky mode"
-msgstr ""
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:92
-#, fuzzy
-msgid "Output Path"
-msgstr "输出路径(_P):"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:96
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:103
-#, fuzzy
-msgid "Output Assembly"
-msgstr ".NET 程序集"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:98
-#, fuzzy
-msgid "Warnings and Compiler Options"
-msgstr "编译器命令:"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:100
-msgid "Compiler"
-msgstr "编译器"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:101
-msgid "Culture"
-msgstr ""
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:109
-msgid "Executable"
-msgstr "可执行文件"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:113
-msgid "Library"
-msgstr "库"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:117
-#, fuzzy
-msgid "Executable with GUI"
-msgstr "可执行文件"
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:50
-#, fuzzy
-msgid "General Options"
-msgstr "<b>常规选项</b>"
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:52
-#, fuzzy
-msgid "Automatically indent new lines in code blocks"
-msgstr "自动包含找到的文件(_I)"
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:53
-msgid "Shell reset clears scollback"
-msgstr ""
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:54
-msgid "Shell reset clears command history"
-msgstr ""
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:55
-msgid "Load project assemblies after building them (Causes shell reset)"
-msgstr ""
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:56
-#, fuzzy
-msgid "Font"
-msgstr "个月"
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:57
-#, fuzzy
-msgid "Use default monospace font"
-msgstr "使用默认的等宽字体(_M)"
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:58
-#, fuzzy
-msgid "Use custom font:"
-msgstr "使用自定义字体(_U):"
diff --git a/extras/BooBinding/po/zh_TW.po b/extras/BooBinding/po/zh_TW.po
deleted file mode 100644
index e5d772fe8b..0000000000
--- a/extras/BooBinding/po/zh_TW.po
+++ /dev/null
@@ -1,178 +0,0 @@
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: MonoDevelop 0.9\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2009-03-04 18:11:19-0500\n"
-"PO-Revision-Date: 2006-04-02 10:09+0800\n"
-"Last-Translator: ellery <elleryq@gmail.com>\n"
-"Language-Team: Atsushi Enomoto <atsushi@ximian.com>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-
-#: ../templates/BooGtkSharpProject.xpt.xml:7
-msgid "Gtk# Project"
-msgstr "Gtk#專案"
-
-#: ../templates/BooGtkSharpProject.xpt.xml:8
-#: ../templates/BooLibraryProject.xpt.xml:8
-#: ../templates/EmptyBooProject.xpt.xml:8
-msgid "Boo"
-msgstr ""
-
-#: ../templates/BooGtkSharpProject.xpt.xml:11
-#, fuzzy
-msgid "Creates a Boo/Gtk# project"
-msgstr "建立 Gtk# 專案"
-
-#: ../templates/BooLibraryProject.xpt.xml:7
-#, fuzzy
-msgid "Boo Library"
-msgstr "函式庫"
-
-#: ../templates/BooLibraryProject.xpt.xml:11
-#, fuzzy
-msgid "Creates a Boo library"
-msgstr "建立空白 C# 類別函式庫"
-
-#: ../templates/BooGtkSharpWindow.xft.xml:7
-msgid "Gtk# Window"
-msgstr "Gtk#視窗"
-
-#: ../templates/BooGtkSharpWindow.xft.xml:9
-#: ../templates/EmptyBooFile.xft.xml:6
-#, fuzzy
-msgid "General"
-msgstr "代碼生成"
-
-#: ../templates/BooGtkSharpWindow.xft.xml:11
-msgid "Creates a top-level Gtk# window"
-msgstr "建立 top-level Gtk# 視窗"
-
-#: ../templates/EmptyBooFile.xft.xml:4
-msgid "Empty File"
-msgstr "空白檔案"
-
-#: ../templates/EmptyBooFile.xft.xml:8
-#, fuzzy
-msgid "Creates an empty Boo file."
-msgstr "建立空白 C# 檔案"
-
-#: ../templates/EmptyBooProject.xpt.xml:7
-msgid "Empty Project"
-msgstr "空白專案"
-
-#: ../templates/EmptyBooProject.xpt.xml:11
-#, fuzzy
-msgid "Creates an empty Boo solution."
-msgstr "建立空白 VB.Net 方案"
-
-#: ../BooBinding.addin.xml:33
-#, fuzzy
-msgid "Boo Files"
-msgstr "檔案"
-
-#: ../BooBinding.addin.xml:55 ../Gui/OptionPanels/CodeCompilationPanel.boo:91
-msgid "Code Generation"
-msgstr "代碼生成"
-
-#: ../BooBinding.addin.xml:69
-msgid "Boo source code"
-msgstr ""
-
-#: ../BooBinding.addin.xml:90 ../BooBinding.addin.xml:98
-msgid "Boo Shell"
-msgstr "Boo Shell"
-
-#: ../Gui/ShellTextView.boo:188
-msgid "Copy Script"
-msgstr ""
-
-#: ../Gui/ShellTextView.boo:192
-msgid "Save Script As ..."
-msgstr ""
-
-#: ../Gui/ShellTextView.boo:196
-msgid "Load Project Assemblies (forces shell reset)"
-msgstr ""
-
-#: ../Gui/ShellTextView.boo:203
-#, fuzzy
-msgid "Reset Shell"
-msgstr "Boo Shell"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:42
-msgid "Enable debug"
-msgstr ""
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:43
-msgid "Enable ducky mode"
-msgstr ""
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:92
-msgid "Output Path"
-msgstr ""
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:96
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:103
-msgid "Output Assembly"
-msgstr ""
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:98
-msgid "Warnings and Compiler Options"
-msgstr ""
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:100
-msgid "Compiler"
-msgstr ""
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:101
-msgid "Culture"
-msgstr ""
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:109
-msgid "Executable"
-msgstr ""
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:113
-#, fuzzy
-msgid "Library"
-msgstr "函式庫"
-
-#: ../Gui/OptionPanels/CodeCompilationPanel.boo:117
-msgid "Executable with GUI"
-msgstr ""
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:50
-#, fuzzy
-msgid "General Options"
-msgstr "代碼生成"
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:52
-msgid "Automatically indent new lines in code blocks"
-msgstr ""
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:53
-msgid "Shell reset clears scollback"
-msgstr ""
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:54
-msgid "Shell reset clears command history"
-msgstr ""
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:55
-msgid "Load project assemblies after building them (Causes shell reset)"
-msgstr ""
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:56
-msgid "Font"
-msgstr ""
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:57
-msgid "Use default monospace font"
-msgstr ""
-
-#: ../Gui/OptionPanels/GeneralShellPanel.boo:58
-msgid "Use custom font:"
-msgstr ""
diff --git a/extras/BooBinding/rules.make b/extras/BooBinding/rules.make
deleted file mode 100644
index a4f37a1fd1..0000000000
--- a/extras/BooBinding/rules.make
+++ /dev/null
@@ -1,42 +0,0 @@
-clean-local:
- make pre-clean-local-hook
- make $(CONFIG)_BeforeClean
- -rm -f $(call quote_each,$(CLEANFILES))
- make $(CONFIG)_AfterClean
- make post-clean-local-hook
-
-install-local:
-uninstall-local:
-
-q2quote = '$(subst ?, ,$1)'
-quote_each = $(foreach f,$(call s2q,$1),$(call q2quote,$f))
-
-dist-local:
- make pre-dist-local-hook "distdir=$$distdir"
- for f in Makefile $(call quote_each,$(EXTRA_DIST)); do \
- d=`dirname "$$f"`; \
- test -d "$(distdir)/$$d" || \
- mkdir -p "$(distdir)/$$d"; \
- cp -p "$$f" "$(distdir)/$$d" || exit 1; \
- done
- make post-dist-local-hook "distdir=$$distdir"
-
-dist-local-recursive:
- for dir in $(call quote_each,$(SUBDIRS)); do \
- mkdir -p "$(distdir)/$$dir" || true; \
- case "$$dir" in \
- .) make dist-local "distdir=$(distdir)" || exit 1;; \
- *) (cd "$$dir"; make dist-local "distdir=$(distdir)/$$dir") || exit 1; \
- esac \
- done
-
-#hooks: Available hooks - all, clean, install, uninstall and dist
-# and their *-local variants
-pre-%-hook: ; @:
-post-%-hook: ; @:
-
-#targets for custom commands
-%_BeforeBuild: ; @:
-%_AfterBuild: ; @:
-%_BeforeClean: ; @:
-%_AfterClean: ; @:
diff --git a/extras/BooBinding/templates/BooGtkSharpProject.xpt.xml b/extras/BooBinding/templates/BooGtkSharpProject.xpt.xml
deleted file mode 100644
index 689c734261..0000000000
--- a/extras/BooBinding/templates/BooGtkSharpProject.xpt.xml
+++ /dev/null
@@ -1,50 +0,0 @@
-<?xml version="1.0"?>
-<Template originator = "Peter Johanson"
- created = "10/13/2004"
- lastModified = "10/13/2004">
-
- <!-- Template Header -->
- <TemplateConfiguration>
- <_Name>Gtk# Project</_Name>
- <_Category>Boo</_Category>
- <Icon>md-project-gui|res:boo-icon-32.png</Icon>
- <LanguageName>Boo</LanguageName>
- <_Description>Creates a Boo/Gtk# project</_Description>
- </TemplateConfiguration>
-
- <Actions>
- <Open filename = "Main.boo"/>
- </Actions>
-
- <Combine name = "${ProjectName}" directory = ".">
- <Options>
- <StartupProject>${ProjectName}</StartupProject>
- </Options>
-
- <Project name = "${ProjectName}" directory = ".">
- <References>
- <Reference type="Gac" SpecificVersion="false" refto="gtk-sharp, Version=2.4.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
- <Reference type="Gac" SpecificVersion="false" refto="glib-sharp, Version=2.0.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
- </References>
- <Files>
- <File name="Main.boo"><![CDATA[// project created on ${Date} at ${Time}
-import Gtk
-
-Application.Init()
-w = MyWindow("Window")
-w.ShowAll()
-Application.Run()]]></File>
- <File name="MyWindow.boo"><![CDATA[import System
-import Gtk
-
-class MyWindow(Window):
- def constructor(title as string):
- super(title)
- SetDefaultSize(400, 300)
- DeleteEvent += { Application.Quit() }]]></File>
- </Files>
-
- </Project>
- </Combine>
-</Template>
-
diff --git a/extras/BooBinding/templates/BooGtkSharpWindow.xft.xml b/extras/BooBinding/templates/BooGtkSharpWindow.xft.xml
deleted file mode 100644
index c316657564..0000000000
--- a/extras/BooBinding/templates/BooGtkSharpWindow.xft.xml
+++ /dev/null
@@ -1,29 +0,0 @@
-<?xml version="1.0"?>
-<Template Originator = "Peter Johanson"
- Language = "Boo"
- Created = "04/04/2005"
- LastModified = "07/19/2005">
-
- <TemplateConfiguration>
- <_Name>Gtk# Window</_Name>
- <Icon>md-gui-file</Icon>
- <_Category>General</_Category>
- <LanguageName>Boo</LanguageName>
- <_Description>Creates a top-level Gtk# window</_Description>
- </TemplateConfiguration>
-
- <TemplateFiles>
- <File DefaultExtension=".boo" DefaultName="CreatedWindow">
-<![CDATA[// created on ${Date} at ${Time}
-import System
-import Gtk
-
-class ${EscapedIdentifier}(Window):
- def constructor():
- super("${EscapedIdentifier}")
-]]></File>
- </TemplateFiles>
-
- <FileOptions/>
-
-</Template>
diff --git a/extras/BooBinding/templates/BooLibraryProject.xpt.xml b/extras/BooBinding/templates/BooLibraryProject.xpt.xml
deleted file mode 100644
index 48107c825b..0000000000
--- a/extras/BooBinding/templates/BooLibraryProject.xpt.xml
+++ /dev/null
@@ -1,33 +0,0 @@
-<?xml version="1.0"?>
-<Template originator = "Peter Johanson"
- created = "10/13/2004"
- lastModified = "10/13/2004">
-
- <!-- Template Header -->
- <TemplateConfiguration>
- <_Name>Boo Library</_Name>
- <_Category>Boo</_Category>
- <Icon>md-project-library|res:boo-icon-32.png</Icon>
- <LanguageName>Boo</LanguageName>
- <_Description>Creates a Boo library</_Description>
- </TemplateConfiguration>
-
- <Actions>
- <Open filename = "MyClass.boo"/>
- </Actions>
-
- <Combine name = "${ProjectName}" directory = ".">
- <Options>
- <StartupProject>${ProjectName}</StartupProject>
- </Options>
-
- <Project name = "${ProjectName}" directory = ".">
- <Options Target = "Library" />
- <Files>
- <FileTemplateReference TemplateID="EmptyClass" name="MyClass.boo" />
- </Files>
-
- </Project>
- </Combine>
-</Template>
-
diff --git a/extras/BooBinding/templates/EmptyBooFile.xft.xml b/extras/BooBinding/templates/EmptyBooFile.xft.xml
deleted file mode 100644
index b19086f881..0000000000
--- a/extras/BooBinding/templates/EmptyBooFile.xft.xml
+++ /dev/null
@@ -1,20 +0,0 @@
-<?xml version="1.0"?>
-<Template Originator="Peter Johanson" Language="Boo" Created="04/03/2005" LastModified="04/03/2005">
-
- <TemplateConfiguration>
- <_Name>Empty File</_Name>
- <Icon>md-text-file-icon</Icon>
- <_Category>General</_Category>
- <LanguageName>Boo</LanguageName>
- <_Description>Creates an empty Boo file.</_Description>
- </TemplateConfiguration>
-
- <TemplateFiles>
- <File DefaultExtension=".boo" DefaultName="EmptyBoofile">
- <![CDATA[// created on ${Date} at ${Time}]]>
- </File>
- </TemplateFiles>
-
- <FileOptions/>
-
-</Template>
diff --git a/extras/BooBinding/templates/EmptyBooProject.xpt.xml b/extras/BooBinding/templates/EmptyBooProject.xpt.xml
deleted file mode 100644
index be91b72714..0000000000
--- a/extras/BooBinding/templates/EmptyBooProject.xpt.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-<?xml version="1.0"?>
-<Template originator = "Peter Johanson"
- created = "04/03/2005"
- lastModified = "04/03/2005">
-
- <!-- Template Header -->
- <TemplateConfiguration>
- <_Name>Empty Project</_Name>
- <_Category>Boo</_Category>
- <Icon>md-project|res:boo-icon-32.png</Icon>
- <LanguageName>Boo</LanguageName>
- <_Description>Creates an empty Boo solution.</_Description>
- </TemplateConfiguration>
-
- <!-- Template Content -->
- <Combine name = "${ProjectName}" directory = ".">
- <Project name = "${ProjectName}" directory = "."/>
- </Combine>
-</Template>
diff --git a/extras/GeckoWebBrowser/AssemblyInfo.cs b/extras/GeckoWebBrowser/AssemblyInfo.cs
deleted file mode 100644
index 043e9d5e0b..0000000000
--- a/extras/GeckoWebBrowser/AssemblyInfo.cs
+++ /dev/null
@@ -1,9 +0,0 @@
-// Autogenerated from MonoDevelop.WebBrowsers.GeckoWebBrowser.addin.xml
-
-using System.Reflection;
-
-[assembly: AssemblyProduct ("MonoDevelop")]
-[assembly: AssemblyTitle ("Gecko Web Browser")]
-[assembly: AssemblyDescription ("Mozilla Web Browser component using GeckoSharp and GtkMozEmbed")]
-[assembly: AssemblyVersion ("2.6")]
-[assembly: AssemblyCopyright ("MIT X11")]
diff --git a/extras/GeckoWebBrowser/ChangeLog b/extras/GeckoWebBrowser/ChangeLog
deleted file mode 100644
index 34709556a8..0000000000
--- a/extras/GeckoWebBrowser/ChangeLog
+++ /dev/null
@@ -1,174 +0,0 @@
-2010-06-14 Lluis Sanchez Gual <lluis@novell.com>
-
- * configure: Bump MD version.
-
-2010-05-20 Lluis Sanchez Gual <lluis@novell.com>
-
- * configure: Bump MD version.
-
-2010-03-22 Lluis Sanchez Gual <lluis@novell.com>
-
- * configure:
- * AssemblyInfo.cs:
- * MonoDevelop.WebBrowsers.GeckoWebBrowser.addin.xml: Bumped MD
- version.
-
-2010-03-17 Lluis Sanchez Gual <lluis@novell.com>
-
- * GeckoWebBrowser.csproj: Flush.
-
-2010-03-17 Lluis Sanchez Gual <lluis@novell.com>
-
- * GeckoWebBrowser.cs:
- * gtk-gui/generated.cs:
- * GeckoWebBrowser.csproj:
- * GeckoWebBrowserLoader.cs:
- * MonoDevelop.WebBrowsers.GeckoWebBrowser.addin.xml: Merged
- MD.Projects into MD.Core, and MD.Projects.Gui, MD.Core.Gui
- and MD.Components into MD.Ide.
-
-2010-03-01 Lluis Sanchez Gual <lluis@novell.com>
-
- * GeckoWebBrowser.sln: The invariant policy can't be used
- anymore as base policy set.
-
-2009-10-30 Lluis Sanchez Gual <lluis@novell.com>
-
- * configure:
- * AssemblyInfo.cs:
- * MonoDevelop.WebBrowsers.GeckoWebBrowser.addin.xml: Bump MD
- version.
-
-2009-10-07 Lluis Sanchez Gual <lluis@novell.com>
-
- * configure:
- * AssemblyInfo.cs:
- * MonoDevelop.WebBrowsers.GeckoWebBrowser.addin.xml: Bump MD
- version.
-
-2009-08-26 Lluis Sanchez Gual <lluis@novell.com>
-
- * configure: We now depend on gtk# 2.12.8, Mono 2.4, and
- Mono.Addins 0.4.
-
-2009-04-15 Lluis Sanchez Gual <lluis@novell.com>
-
- * configure:
- * AssemblyInfo.cs:
- * MonoDevelop.WebBrowsers.GeckoWebBrowser.addin.xml: Bump MD
- version.
-
-2009-02-26 Lluis Sanchez Gual <lluis@novell.com>
-
- * GeckoWebBrowser.sln: Flush.
-
-2009-02-25 Michael Hutchinson <mhutchinson@novell.com>
-
- * GeckoWebBrowser.sln: Set policies. Remove unused name
- attribute.
-
-2009-02-20 Lluis Sanchez Gual <lluis@novell.com>
-
- * GeckoWebBrowser.csproj: Updated references.
-
-2009/02/06 Lluis Sanchez Gual <lluis@novell.com>
-
- * GeckoWebBrowser.mds:
- * GeckoWebBrowser.sln:
- * GeckoWebBrowser.mdp:
- * gtk-gui/generated.cs:
- * GeckoWebBrowser.make:
- * GeckoWebBrowser.csproj: Migrated to MSBuild file format.
-
-2009/02/03 Lluis Sanchez Gual <lluis@novell.com>
-
- * configure:
- * AssemblyInfo.cs:
- * MonoDevelop.WebBrowsers.GeckoWebBrowser.addin.xml: Bump MD
- version.
-
-2009-01-26 Michael Hutchinson <mhutchinson@novell.com>
-
- * GeckoWebBrowser.mdp: Flush project format changes.
-
-2008-12-02 Michael Hutchinson <mhutchinson@novell.com>
-
- * AssemblyInfo.cs:
- * GeckoWebBrowser.mdp:
- * GeckoWebBrowser.make: Add AssemblyInfo.cs files that are autogenerated
- from the addin manifests.
-
-2008-11-05 Lluis Sanchez Gual <lluis@novell.com>
-
- * configure:
- * MonoDevelop.WebBrowsers.GeckoWebBrowser.addin.xml: Bump MD version.
-
-2008-09-17 Lluis Sanchez Gual <lluis@novell.com>
-
- * GeckoWebBrowser.mdp: Updated projects.
-
-2008-08-18 Lluis Sanchez Gual <lluis@novell.com>
-
- * GeckoWebBrowser.mdp: Fix reference to Mono.TextEditor. The incorrect
- add-in version number causes problems in the makefile
- synchronization.
-
-2008-06-04 Lluis Sanchez Gual <lluis@novell.com>
-
- * MonoDevelop.WebBrowsers.GeckoWebBrowser.addin.xml, configure: Bump MD
- version.
-
-2008-05-21 Lluis Sanchez Gual <lluis@novell.com>
-
- * GeckoWebBrowser.make: Fix makefile.
-
-2008-05-21 Lluis Sanchez Gual <lluis@novell.com>
-
- * GeckoWebBrowser.mdp: Updated.
-
-2008-02-26 Michael Hutchinson <mhutchinson@novell.com>
-
- * GeckoWebBrowser.make: Use local package path.
-
-2008-01-25 Lluis Sanchez Gual <lluis@novell.com>
-
- * MonoDevelop.WebBrowsers.GeckoWebBrowser.addin.xml: Update MD version.
-
-2007-12-17 Lluis Sanchez Gual <lluis@novell.com>
-
- * configure: Updated versions to 0.18.
-
-2007-12-14 Lluis Sanchez Gual <lluis@novell.com>
-
- * GeckoWebBrowser.mdp: Updated project files. The order of extended
- properties won't change anymore.
-
-2007-12-12 Lluis Sanchez Gual <lluis@novell.com>
-
- * MonoDevelop.WebBrowsers.GeckoWebBrowser.addin.xml: Bump add-in versions.
-
-2007-12-04 Lluis Sanchez Gual <lluis@novell.com>
-
- * MonoDevelop.WebBrowsers.GeckoWebBrowser.addin.xml: Remove unneeded
- assembly import.
-
-2007-12-04 Lluis Sanchez Gual <lluis@novell.com>
-
- * GeckoWebBrowser.mdp, Makefile.am: Directory reorganization.
-
-2007-12-03 Michael Hutchinson <mhutchinson@novell.com>
-
- * GeckoWebBrowser.cs: Implement LinkClicked event.
-
-2007-12-03 Michael Hutchinson <mhutchinson@novell.com>
-
- * GeckoWebBrowser.cs: Workaround for On{Event} overridable methods not
- executing even though events are fired. Partial fix for "Bug 345423 -
- project is not a registered protocol".
-
-2007-11-30 Michael Hutchinson <mhutchinson@novell.com>
-
- * MonoDevelop.WebBrowsers.GeckoWebBrowser.addin.xml,
- GeckoWebBrowserLoader.cs, GeckoWebBrowser.mdp, Makefile.am,
- GeckoWebBrowser.cs: Add an IWebBrowserLoader using GeckoSharp/Mozilla.
-
diff --git a/extras/GeckoWebBrowser/GeckoWebBrowser.cs b/extras/GeckoWebBrowser/GeckoWebBrowser.cs
deleted file mode 100644
index 1d163ee939..0000000000
--- a/extras/GeckoWebBrowser/GeckoWebBrowser.cs
+++ /dev/null
@@ -1,251 +0,0 @@
-//
-// GeckoWebBrowser.cs
-//
-// Author:
-// Michael Hutchinson <mhutchinson@novell.com>
-//
-// Copyright (C) 2007 Novell, Inc (http://www.novell.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-using System;
-using System.IO;
-using Gecko;
-
-using MonoDevelop.Ide.WebBrowser;
-
-namespace MonoDevelop.WebBrowsers
-{
-
- public class GeckoWebBrowser : WebControl, IWebBrowser
- {
- string delayedUrl;
- string oldTempFile;
- bool reShown = false;
-
- bool suppressLinkClickedBecauseCausedByLoadUrlCall = false;
-
- public GeckoWebBrowser ()
- {
- WebControl.SetProfilePath ("/tmp", "MonoDevelop");
-
- //FIXME: On{Event} doesn't fire
- this.ExposeEvent += exposeHandler;
- this.OpenUri += delegate (object o, OpenUriArgs args) {
- args.RetVal = OnLocationChanging (args.AURI);
- };
- this.LocChange += delegate (object sender, EventArgs e) {
- OnLocationChanged ();
- };
- this.Progress += delegate (object sender, ProgressArgs e) {
- OnLoadingProgressChanged (e.Curprogress / e.Maxprogress);
- };
- this.ECMAStatus += delegate {
- OnJSStatusChanged ();
- };
- this.LinkStatusChanged += delegate {
- OnLinkStatusChanged ();
- };
- this.TitleChange += delegate {
- OnTitleChanged ();
- };
- }
-
- //FIXME: OnExposeEvent doesn't fire, but ExposeEvent does
- void exposeHandler (object sender, Gtk.ExposeEventArgs e)
- {
- if (delayedUrl != null) {
- realLoadUrl (delayedUrl);
- delayedUrl = null;
- }
-
- //FIXME: suppress a strange bug with control not getting drawn first time it's shown, or when docking changed.
- //For some reason this event only fires when control 'appears' or is re-docked, which corresponds 1:1 to the bug.
- if (!reShown) {
- Hide ();
- Show ();
- //Normally we would expect this event to fire with every redraw event, so put in a limiter
- //in case this is fixed in future.
- reShown = true;
- GLib.Timeout.Add (1000, delegate { reShown = false; return false; } );
- }
- }
-
- string IWebBrowser.Title {
- get { return base.Title; }
- }
-
- string IWebBrowser.JSStatus {
- get { return base.JsStatus; }
- }
-
- string IWebBrowser.LinkStatus {
- get { return base.LinkMessage; }
- }
-
- string IWebBrowser.Location {
- get { return base.Location; }
- }
-
- bool IWebBrowser.CanGoBack {
- get { return base.CanGoBack (); }
- }
-
- bool IWebBrowser.CanGoForward {
- get { return base.CanGoForward (); }
- }
-
- void IWebBrowser.GoForward ()
- {
- base.GoForward ();
- }
-
- void IWebBrowser.GoBack ()
- {
- base.GoBack ();
- }
-
- void IWebBrowser.LoadUrl (string url)
- {
- realLoadUrl (url);
- }
-
- void IWebBrowser.LoadHtml (string html)
- {
- string tempFile = System.IO.Path.GetTempFileName ();
-
- StreamWriter writer = null;
- try {
- writer = File.CreateText (tempFile);
- writer.Write (html);
- } catch (Exception ex) {
- MonoDevelop.Core.LoggingService.LogError ("Could not write temporary HTML file '{0}' for Gecko web control\n{1}", tempFile, ex.ToString ());
- } finally {
- if (writer != null)
- writer.Close ();
- }
-
- realLoadUrl ("tempfile://" + tempFile);
- }
-
- void realLoadUrl (string url)
- {
- if (url == null)
- throw new ArgumentNullException ("url");
-
- if (!this.IsRealized) {
- delayedUrl = url;
- return;
- }
-
- if (url == delayedUrl) {
- delayedUrl = null;
- }
-
- if (oldTempFile != null) {
- try {
- File.Delete (oldTempFile);
- } catch (Exception ex) {
- MonoDevelop.Core.LoggingService.LogError ("Could not delete temp file '{0}'\n{1]", oldTempFile, ex.ToString ());
- }
- oldTempFile = null;
- }
-
- suppressLinkClickedBecauseCausedByLoadUrlCall = true;
-
- if (url.StartsWith ("tempfile://")) {
- oldTempFile = url.Substring (11);
- base.LoadUrl (oldTempFile);
- } else {
- base.LoadUrl (url);
- }
- }
-
- void IWebBrowser.Reload ()
- {
- base.Reload ((int) ReloadFlags.Reloadnormal);
- }
-
- void IWebBrowser.StopLoad ()
- {
- base.StopLoad ();
- }
-
- public event PageLoadedHandler PageLoaded;
- public event LocationChangingHandler LocationChanging;
- public event LocationChangingHandler LinkClicked;
- public event LocationChangedHandler LocationChanged;
- public event TitleChangedHandler TitleChanged;
- public event StatusMessageChangedHandler JSStatusChanged;
- public event StatusMessageChangedHandler LinkStatusChanged;
- public event LoadingProgressChangedHandler LoadingProgressChanged;
-
- protected bool OnLocationChanging (string aURI)
- {
- LocationChangingEventArgs args = new LocationChangingEventArgs (aURI, false);
- args.SuppressChange = false;
- if (LocationChanging != null)
- LocationChanging (this, args);
- OnLinkClicked (args);
- return args.SuppressChange;
- }
-
- protected virtual void OnLinkClicked (LocationChangingEventArgs args)
- {
- if (suppressLinkClickedBecauseCausedByLoadUrlCall) {
- suppressLinkClickedBecauseCausedByLoadUrlCall = false;
- return;
- }
- if (LinkClicked != null)
- LinkClicked (this, args);
- }
-
- protected virtual void OnLocationChanged ()
- {
- if (LocationChanged != null)
- LocationChanged (this, new LocationChangedEventArgs (null));
- }
-
- protected virtual void OnLoadingProgressChanged (float progress)
- {
- if (LoadingProgressChanged != null)
- LoadingProgressChanged (this, new LoadingProgressChangedEventArgs (progress));
- }
-
- protected virtual void OnJSStatusChanged ()
- {
- if (JSStatusChanged != null)
- JSStatusChanged (this, new StatusMessageChangedEventArgs (base.JsStatus));
- }
-
- protected virtual void OnLinkStatusChanged ()
- {
- if (LinkStatusChanged != null)
- LinkStatusChanged (this, new StatusMessageChangedEventArgs (base.LinkMessage));
- }
-
- protected virtual void OnTitleChanged ()
- {
- if (TitleChanged != null)
- TitleChanged (this, new TitleChangedEventArgs (base.Title));
- }
- }
-}
diff --git a/extras/GeckoWebBrowser/GeckoWebBrowser.csproj b/extras/GeckoWebBrowser/GeckoWebBrowser.csproj
deleted file mode 100644
index 03276b3495..0000000000
--- a/extras/GeckoWebBrowser/GeckoWebBrowser.csproj
+++ /dev/null
@@ -1,82 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <ProductVersion>9.0.21022</ProductVersion>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{3D17ADF3-209C-4E76-8E38-A701F798DA0B}</ProjectGuid>
- <OutputType>Library</OutputType>
- <AssemblyName>MonoDevelop.GeckoWebBrowser</AssemblyName>
- <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
- <RootNamespace>GeckoWebBrowser</RootNamespace>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- <DebugSymbols>true</DebugSymbols>
- <DebugType>full</DebugType>
- <Optimize>true</Optimize>
- <OutputPath>build</OutputPath>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- <CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
- <Execution>
- <Execution clr-version="Net_2_0" />
- </Execution>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- <DebugType>none</DebugType>
- <Optimize>true</Optimize>
- <OutputPath>build</OutputPath>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- <CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
- <Execution>
- <Execution clr-version="Net_2_0" />
- </Execution>
- </PropertyGroup>
- <ItemGroup>
- <Reference Include="gecko-sharp, Version=2.0.0.0, Culture=neutral, PublicKeyToken=ccf7d78a55e9f021" />
- <Reference Include="MonoDevelop.Core, Version=1.9.2.0, Culture=neutral">
- <Package>monodevelop</Package>
- </Reference>
- <Reference Include="MonoDevelop.Ide, Version=1.9.2.0, Culture=neutral">
- <Package>monodevelop</Package>
- </Reference>
- <Reference Include="NRefactory, Version=0.0.0.0, Culture=neutral">
- <Package>monodevelop</Package>
- </Reference>
- <Reference Include="Mono.Cecil, Version=0.6.8.8607, Culture=neutral">
- <Package>monodevelop</Package>
- </Reference>
- <Reference Include="glib-sharp, Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
- <Reference Include="pango-sharp, Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
- <Reference Include="atk-sharp, Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
- <Reference Include="gdk-sharp, Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
- <Reference Include="gtk-sharp, Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
- <Reference Include="Mono.TextEditor, Version=1.0.0.0, Culture=neutral">
- <Package>monodevelop</Package>
- </Reference>
- <Reference Include="Mono.Posix" />
- <Reference Include="Mono.Debugging, Version=0.0.0.0, Culture=neutral, PublicKeyToken=5e9ce85b0923c84f">
- <Package>monodevelop</Package>
- </Reference>
- </ItemGroup>
- <ItemGroup>
- <EmbeddedResource Include="gtk-gui\gui.stetic">
- <LogicalName>gui.stetic</LogicalName>
- </EmbeddedResource>
- <EmbeddedResource Include="MonoDevelop.WebBrowsers.GeckoWebBrowser.addin.xml">
- <LogicalName>MonoDevelop.WebBrowsers.GeckoWebBrowser.addin.xml</LogicalName>
- </EmbeddedResource>
- </ItemGroup>
- <ItemGroup>
- <Compile Include="gtk-gui\generated.cs" />
- <Compile Include="GeckoWebBrowser.cs" />
- <Compile Include="GeckoWebBrowserLoader.cs" />
- <Compile Include="AssemblyInfo.cs" />
- </ItemGroup>
- <ItemGroup>
- <None Include="ChangeLog" />
- </ItemGroup>
- <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
-</Project> \ No newline at end of file
diff --git a/extras/GeckoWebBrowser/GeckoWebBrowser.make b/extras/GeckoWebBrowser/GeckoWebBrowser.make
deleted file mode 100644
index b33de11ebf..0000000000
--- a/extras/GeckoWebBrowser/GeckoWebBrowser.make
+++ /dev/null
@@ -1,115 +0,0 @@
-
-
-# Warning: This is an automatically generated file, do not edit!
-
-srcdir=.
-top_srcdir=.
-
-include $(top_srcdir)/Makefile.include
-include $(top_srcdir)/config.make
-
-ifeq ($(CONFIG),DEBUG)
-ASSEMBLY_COMPILER_COMMAND = dmcs
-ASSEMBLY_COMPILER_FLAGS = -noconfig -codepage:utf8 -warn:4 -optimize+ -debug -define:DEBUG
-ASSEMBLY = build/MonoDevelop.GeckoWebBrowser.dll
-ASSEMBLY_MDB = $(ASSEMBLY).mdb
-COMPILE_TARGET = library
-PROJECT_REFERENCES =
-BUILD_DIR = build
-
-
-endif
-
-ifeq ($(CONFIG),RELEASE)
-ASSEMBLY_COMPILER_COMMAND = dmcs
-ASSEMBLY_COMPILER_FLAGS = -noconfig -codepage:utf8 -warn:4 -optimize+
-ASSEMBLY = build/MonoDevelop.GeckoWebBrowser.dll
-ASSEMBLY_MDB =
-COMPILE_TARGET = library
-PROJECT_REFERENCES =
-BUILD_DIR = build
-
-
-endif
-
-INSTALL_DIR = $(DESTDIR)$(prefix)/lib/monodevelop/AddIns/GeckoWebBrowser
-
-LINUX_PKGCONFIG = \
- $(GECKOWEBBROWSER_PC)
-
-
-
-GECKOWEBBROWSER_PC = $(BUILD_DIR)/monodevelop-geckowebbrowser.pc
-
-
-FILES = \
- AssemblyInfo.cs \
- GeckoWebBrowser.cs \
- GeckoWebBrowserLoader.cs \
- gtk-gui/generated.cs
-
-DATA_FILES =
-
-RESOURCES = \
- gtk-gui/gui.stetic \
- MonoDevelop.WebBrowsers.GeckoWebBrowser.addin.xml
-
-EXTRAS = \
- ChangeLog \
- monodevelop-geckowebbrowser.pc.in
-
-REFERENCES = \
- Mono.Posix \
- -pkg:gecko-sharp-2.0 \
- -pkg:glib-sharp-2.0 \
- -pkg:gtk-sharp-2.0 \
- -pkg:monodevelop
-
-DLL_REFERENCES =
-
-CLEANFILES += $(LINUX_PKGCONFIG)
-
-#Targets
-all-local: $(ASSEMBLY) $(LINUX_PKGCONFIG) $(top_srcdir)/config.make
-
-$(GECKOWEBBROWSER_PC): monodevelop-geckowebbrowser.pc
- mkdir -p $(BUILD_DIR)
- cp '$<' '$@'
-
-
-
-monodevelop-geckowebbrowser.pc: monodevelop-geckowebbrowser.pc.in $(top_srcdir)/config.make
- sed -e "s,@prefix@,$(prefix)," -e "s,@PACKAGE@,$(PACKAGE)," < monodevelop-geckowebbrowser.pc.in > monodevelop-geckowebbrowser.pc
-
-
-$(build_xamlg_list): %.xaml.g.cs: %.xaml
- xamlg '$<'
-
-$(build_resx_resources) : %.resources: %.resx
- resgen2 '$<' '$@'
-
-LOCAL_PKGCONFIG=PKG_CONFIG_PATH=../../local-config:$$PKG_CONFIG_PATH
-
-$(ASSEMBLY) $(ASSEMBLY_MDB): $(build_sources) $(build_resources) $(build_datafiles) $(DLL_REFERENCES) $(PROJECT_REFERENCES) $(build_xamlg_list)
- make pre-all-local-hook prefix=$(prefix)
- mkdir -p $(dir $(ASSEMBLY))
- make $(CONFIG)_BeforeBuild
- $(LOCAL_PKGCONFIG) $(ASSEMBLY_COMPILER_COMMAND) $(ASSEMBLY_COMPILER_FLAGS) -out:$(ASSEMBLY) -target:$(COMPILE_TARGET) $(build_sources_embed) $(build_resources_embed) $(build_references_ref)
- make $(CONFIG)_AfterBuild
- make post-all-local-hook prefix=$(prefix)
-
-
-install-local: $(ASSEMBLY) $(ASSEMBLY_MDB) $(GECKOWEBBROWSER_PC)
- make pre-install-local-hook prefix=$(prefix)
- mkdir -p $(INSTALL_DIR)
- cp $(ASSEMBLY) $(ASSEMBLY_MDB) $(INSTALL_DIR)
- mkdir -p $(DESTDIR)$(prefix)/lib/pkgconfig
- test -z '$(GECKOWEBBROWSER_PC)' || cp $(GECKOWEBBROWSER_PC) $(DESTDIR)$(prefix)/lib/pkgconfig
- make post-install-local-hook prefix=$(prefix)
-
-uninstall-local: $(ASSEMBLY) $(ASSEMBLY_MDB) $(GECKOWEBBROWSER_PC)
- make pre-uninstall-local-hook prefix=$(prefix)
- rm -f $(INSTALL_DIR)/$(notdir $(ASSEMBLY))
- test -z '$(ASSEMBLY_MDB)' || rm -f $(INSTALL_DIR)/$(notdir $(ASSEMBLY_MDB))
- test -z '$(GECKOWEBBROWSER_PC)' || rm -f $(DESTDIR)$(prefix)/lib/pkgconfig/$(notdir $(GECKOWEBBROWSER_PC))
- make post-uninstall-local-hook prefix=$(prefix)
diff --git a/extras/GeckoWebBrowser/GeckoWebBrowser.sln b/extras/GeckoWebBrowser/GeckoWebBrowser.sln
deleted file mode 100644
index 703ecb54a7..0000000000
--- a/extras/GeckoWebBrowser/GeckoWebBrowser.sln
+++ /dev/null
@@ -1,38 +0,0 @@
-
-Microsoft Visual Studio Solution File, Format Version 11.00
-# Visual Studio 2010
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GeckoWebBrowser", "GeckoWebBrowser.csproj", "{3D17ADF3-209C-4E76-8E38-A701F798DA0B}"
-EndProject
-Global
- GlobalSection(SolutionConfigurationPlatforms) = preSolution
- Debug|Any CPU = Debug|Any CPU
- Release|Any CPU = Release|Any CPU
- EndGlobalSection
- GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {3D17ADF3-209C-4E76-8E38-A701F798DA0B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {3D17ADF3-209C-4E76-8E38-A701F798DA0B}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {3D17ADF3-209C-4E76-8E38-A701F798DA0B}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {3D17ADF3-209C-4E76-8E38-A701F798DA0B}.Release|Any CPU.Build.0 = Release|Any CPU
- EndGlobalSection
- GlobalSection(MonoDevelopProperties) = preSolution
- StartupItem = GeckoWebBrowser.csproj
- Policies = $0
- $0.DotNetNamingPolicy = $1
- $1.DirectoryNamespaceAssociation = Flat
- $1.ResourceNamePolicy = FileName
- $0.StandardHeader = $2
- $2.Text = @\n${FileName}\n \nAuthor:\n ${AuthorName} <${AuthorEmail}>\n\nCopyright (c) ${Year} ${CopyrightHolder}\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the "Software"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.
- $2.IncludeInNewFiles = True
- $0.TextStylePolicy = $3
- $3.FileWidth = 120
- $3.TabWidth = 4
- $3.inheritsSet = Mono
- $3.inheritsScope = text/plain
- $0.VersionControlPolicy = $4
- $4.inheritsSet = Mono
- $0.ChangeLogPolicy = $5
- $5.UpdateMode = None
- $5.VcsIntegration = None
- $5.inheritsSet = Mono
- EndGlobalSection
-EndGlobal
diff --git a/extras/GeckoWebBrowser/GeckoWebBrowserLoader.cs b/extras/GeckoWebBrowser/GeckoWebBrowserLoader.cs
deleted file mode 100644
index 3c709e8a3c..0000000000
--- a/extras/GeckoWebBrowser/GeckoWebBrowserLoader.cs
+++ /dev/null
@@ -1,47 +0,0 @@
-//
-// GeckoWebBrowserLoader.cs
-//
-// Author:
-// Michael Hutchinson <mhutchinson@novell.com>
-//
-// Copyright (C) 2007 Novell, Inc (http://www.novell.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-using System;
-using MonoDevelop.Ide.WebBrowser;
-
-namespace MonoDevelop.WebBrowsers
-{
-
- public class GeckoWebBrowserLoader : IWebBrowserLoader
- {
-
- public bool CanCreateBrowser {
- get { return true; }
- }
-
- public IWebBrowser GetBrowser ()
- {
- return new GeckoWebBrowser ();
- }
- }
-}
diff --git a/extras/GeckoWebBrowser/Makefile b/extras/GeckoWebBrowser/Makefile
deleted file mode 100644
index 1de7bf9dc3..0000000000
--- a/extras/GeckoWebBrowser/Makefile
+++ /dev/null
@@ -1,72 +0,0 @@
-
-EXTRA_DIST = GeckoWebBrowser.make rules.make configure Makefile.include
-
-all: all-recursive
-
-top_srcdir=.
-include $(top_srcdir)/config.make
-include $(top_srcdir)/rules.make
-
-#include $(top_srcdir)/custom-hooks.make
-
-#Warning: This is an automatically generated file, do not edit!
-ifeq ($(CONFIG),DEBUG)
- SUBDIRS = .
-endif
-ifeq ($(CONFIG),RELEASE)
- SUBDIRS = .
-endif
-
-# Include project specific makefile
-include GeckoWebBrowser.make
-
-CONFIG_MAKE=$(top_srcdir)/config.make
-
-%-recursive: $(CONFIG_MAKE)
- @set . $$MAKEFLAGS; final_exit=:; \
- case $$2 in --unix) shift ;; esac; \
- case $$2 in *=*) dk="exit 1" ;; *k*) dk=: ;; *) dk="exit 1" ;; esac; \
- make pre-$*-hook prefix=$(prefix) ; \
- for dir in $(SUBDIRS); do \
- case $$dir in \
- .) make $*-local || { final_exit="exit 1"; $$dk; };;\
- *) (cd $$dir && make $*) || { final_exit="exit 1"; $$dk; };;\
- esac \
- done; \
- make post-$*-hook prefix=$(prefix) ; \
- $$final_exit
-
-$(CONFIG_MAKE):
- echo "You must run configure first"
- exit 1
-
-clean: clean-recursive
-install: install-recursive
-uninstall: uninstall-recursive
-
-dist: $(CONFIG_MAKE)
- rm -rf $(PACKAGE)-$(VERSION)
- mkdir $(PACKAGE)-$(VERSION)
- make pre-dist-hook distdir=$$distdir
- for dir in $(SUBDIRS); do \
- pkgdir=`pwd`/$(PACKAGE)-$(VERSION); \
- mkdir $$pkgdir/$$dir || true; \
- case $$dir in \
- .) make dist-local distdir=$$pkgdir || exit 1;; \
- *) (cd $$dir; make dist-local distdir=$$pkgdir/$$dir) || exit 1;; \
- esac \
- done
- (make dist-local distdir=$(PACKAGE)-$(VERSION))
- make post-dist-hook distsir=$$distdir
- tar czvf $(PACKAGE)-$(VERSION).tar.gz $(PACKAGE)-$(VERSION)
- rm -rf $(PACKAGE)-$(VERSION)
- @echo "=========================================="
- @echo "$(PACKAGE)-$(VERSION) has been packaged > $(PACKAGE)-$(VERSION).tar.gz"
- @echo "=========================================="
-
-distcheck: dist
- (mkdir test; cd test; \
- tar xzvf ../$(PACKAGE)-$(VERSION).tar.gz; cd $(PACKAGE)-$(VERSION); \
- ./configure --prefix=$$(cd `pwd`/..; pwd); \
- make && make install && make dist);
- rm -rf test
diff --git a/extras/GeckoWebBrowser/Makefile.include b/extras/GeckoWebBrowser/Makefile.include
deleted file mode 100644
index 23345e7a0b..0000000000
--- a/extras/GeckoWebBrowser/Makefile.include
+++ /dev/null
@@ -1,33 +0,0 @@
-build_sources = $(FILES) $(GENERATED_FILES)
-build_sources_embed = $(build_sources:%='$(srcdir)/%')
-
-comma__=,
-build_resx_list = $(foreach res, $(RESOURCES), $(if $(filter %.resx, $(firstword $(subst $(comma__), ,$(res)))),$(res),))
-build_others_list = $(foreach res, $(RESOURCES), $(if $(filter %.resx, $(firstword $(subst $(comma__), ,$(res)))), ,$(res)))
-build_xamlg_list = $(filter %.xaml.g.cs, $(FILES))
-
-build_resx_files = $(foreach res, $(build_resx_list), $(firstword $(subst $(comma__), ,$(res))))
-build_resx_resources = $(build_resx_files:.resx=.resources)
-build_resx_resources_hack = $(subst .resx,.resources, $(build_resx_list))
-build_resx_resources_embed = $(build_resx_resources_hack:%='-resource:%')
-
-build_others_files = $(foreach res, $(build_others_list), $(firstword $(subst $(comma__), ,$(res))))
-build_others_resources = $(build_others_files)
-build_others_resources_embed = $(build_others_list:%='-resource:$(srcdir)/%')
-
-build_resources = $(build_resx_resources) $(build_others_resources)
-build_resources_embed = $(build_resx_resources_embed) $(build_others_resources_embed)
-
-build_references_ref = $(foreach ref, $(REFERENCES), $(if $(filter -pkg:%, $(ref)), $(ref), $(if $(filter -r:%, $(ref)), $(ref), -r:$(ref))))
-build_references_ref += $(foreach ref, $(DLL_REFERENCES), -r:$(ref))
-build_references_ref += $(foreach ref, $(PROJECT_REFERENCES), -r:$(ref))
-
-EXTRA_DIST += $(build_sources) $(build_resx_files) $(build_others_files) $(ASSEMBLY_WRAPPER_IN) $(EXTRAS) $(DATA_FILES)
-CLEANFILES = $(ASSEMBLY) $(ASSEMBLY).mdb $(BINARIES) $(build_resx_resources)
-DISTCLEANFILES = $(GENERATED_FILES) $(pc_files) $(BUILD_DIR)/*
-
-pkglib_SCRIPTS = $(ASSEMBLY)
-bin_SCRIPTS = $(BINARIES)
-
-linuxpkgconfigdir = @prefix@/lib/pkgconfig
-linuxpkgconfig_DATA = $(LINUX_PKGCONFIG)
diff --git a/extras/GeckoWebBrowser/MonoDevelop.WebBrowsers.GeckoWebBrowser.addin.xml b/extras/GeckoWebBrowser/MonoDevelop.WebBrowsers.GeckoWebBrowser.addin.xml
deleted file mode 100644
index 9171c900fd..0000000000
--- a/extras/GeckoWebBrowser/MonoDevelop.WebBrowsers.GeckoWebBrowser.addin.xml
+++ /dev/null
@@ -1,18 +0,0 @@
-<Addin id = "GeckoWebBrowser"
- namespace = "MonoDevelop"
- name = "Gecko Web Browser"
- author = "Michael Hutchinson"
- copyright = "MIT X11"
- url = "http://www.monodevelop.com"
- description = "Mozilla Web Browser component using GeckoSharp and GtkMozEmbed"
- category = "Platform Support"
- version = "4.2.3">
-
- <Dependencies>
- <Addin id = "Ide" version = "4.2.3"/>
- </Dependencies>
-
- <Extension path = "/MonoDevelop/Core/WebBrowsers">
- <Class id="GeckoWebBrowserLoader" class="MonoDevelop.WebBrowsers.GeckoWebBrowserLoader"/>
- </Extension>
-</Addin>
diff --git a/extras/GeckoWebBrowser/configure b/extras/GeckoWebBrowser/configure
deleted file mode 100755
index 56f9729494..0000000000
--- a/extras/GeckoWebBrowser/configure
+++ /dev/null
@@ -1,109 +0,0 @@
-#!/usr/bin/env bash
-VERSION=4.2.3
-PACKAGE=geckowebbrowser
-prefix=/usr/local
-config=DEBUG
-configurations=" RELEASE DEBUG"
-common_packages=" glib-sharp-2.0;2.12.8 gtk-sharp-2.0;2.12.8 gecko-sharp-2.0;0.12 monodevelop;4.2.3"
-
-
-usage ()
-{
- echo "Usage : configure [--prefix=PREFIX] [--config=CONFIG]"
- echo
- echo "Configurations available :"
- for c in $configurations; do
- if [ "$c" = "$config" ]; then
- echo " $c (Default)"
- else
- echo " $c"
- fi
- done
-}
-
-validate_config ()
-{
- test -z "$1" && return 0
- for c in $configurations; do
- if [ "$c" = "$1" ]; then
- return 1
- fi
- done
- return 0
-}
-
-check_package ()
-{
- name=`echo $1 | cut -d\; -f1`
- version=`echo $1 | cut -d\; -f2`
-
- echo -n "Checking for package '$name'.." | tee -a config.log
- pkg-config --atleast-version=$version $name
- if [ $? -ne 0 ]; then
- echo " ERROR: Package named '$name' >= $version not found." | tee -a config.log
- echo "Try adjusting your PKG_CONFIG_PATH environment variable." | tee -a config.log
- return 1
- fi
- echo " found." | tee -a config.log
-}
-
-check_required_packages ()
-{
- echo "Looking for required packages" | tee config.log
- var=required_packages_$config
- for pkg in $common_packages ${!var}; do
- check_package $pkg
- retval=$?
- [ $retval -ne 0 ] && return $retval
- done
- return 0
-}
-
-while test x$1 != x; do
- case $1 in
- --prefix=*)
- prefix=`echo $1 | sed 's/--prefix=//'`
- ;;
- --prefix)
- shift
- prefix=$1
- ;;
- --config=*)
- conf=`echo $1 | sed 's/--config=//'`
- validate_config "$conf"
- if [ $? -eq 1 ]; then
- config=$conf
- else
- echo "Invalid config name - $conf"
- usage
- exit 1
- fi
- ;;
- --help)
- usage
- exit
- ;;
- *)
- echo Unknown argument $1 >&2
- usage
- exit 1
- ;;
- esac
- shift
-done
-
-check_required_packages
-[ $? -eq 1 ] && exit 1
-
-echo "prefix=$prefix" > config.make
-echo "RUNTIME=mono" >> config.make
-echo "ASSEMBLY_VERSION=$VERSION.0.0" >> config.make
-echo "VERSION=$VERSION" >> config.make
-echo "PACKAGE=$PACKAGE" >> config.make
-echo "CONFIG=$config" >> config.make
-
-echo
-echo "$PACKAGE has been configured with "
-echo " prefix = $prefix"
-echo " config = $config"
-echo
diff --git a/extras/GeckoWebBrowser/gtk-gui/generated.cs b/extras/GeckoWebBrowser/gtk-gui/generated.cs
deleted file mode 100644
index 8463caae89..0000000000
--- a/extras/GeckoWebBrowser/gtk-gui/generated.cs
+++ /dev/null
@@ -1,29 +0,0 @@
-
-// This file has been generated by the GUI designer. Do not modify.
-namespace Stetic
-{
- internal class Gui
- {
- private static bool initialized;
-
- static internal void Initialize (Gtk.Widget iconRenderer)
- {
- if ((Stetic.Gui.initialized == false)) {
- Stetic.Gui.initialized = true;
- }
- }
- }
-
- internal class ActionGroups
- {
- public static Gtk.ActionGroup GetActionGroup (System.Type type)
- {
- return Stetic.ActionGroups.GetActionGroup (type.FullName);
- }
-
- public static Gtk.ActionGroup GetActionGroup (string name)
- {
- return null;
- }
- }
-}
diff --git a/extras/GeckoWebBrowser/gtk-gui/gui.stetic b/extras/GeckoWebBrowser/gtk-gui/gui.stetic
deleted file mode 100644
index b33dbb1008..0000000000
--- a/extras/GeckoWebBrowser/gtk-gui/gui.stetic
+++ /dev/null
@@ -1,6 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<stetic-interface>
- <configuration>
- <target-gtk-version>2.10.2</target-gtk-version>
- </configuration>
-</stetic-interface> \ No newline at end of file
diff --git a/extras/GeckoWebBrowser/monodevelop-geckowebbrowser.pc.in b/extras/GeckoWebBrowser/monodevelop-geckowebbrowser.pc.in
deleted file mode 100644
index aead637ab2..0000000000
--- a/extras/GeckoWebBrowser/monodevelop-geckowebbrowser.pc.in
+++ /dev/null
@@ -1,6 +0,0 @@
-Name: GeckoWebBrowser
-Description: GeckoWebBrowser
-Version: 0.1
-
-Requires:
-Libs: -r:@prefix@/lib/@PACKAGE@/MonoDevelop.GeckoWebBrowser.dll
diff --git a/extras/GeckoWebBrowser/rules.make b/extras/GeckoWebBrowser/rules.make
deleted file mode 100644
index 5f906b2402..0000000000
--- a/extras/GeckoWebBrowser/rules.make
+++ /dev/null
@@ -1,40 +0,0 @@
-clean-local:
- make pre-clean-local-hook
- make $(CONFIG)_BeforeClean
- -rm -f $(CLEANFILES)
- make $(CONFIG)_AfterClean
- make post-clean-local-hook
-
-install-local:
-uninstall-local:
-
-dist-local:
- make pre-dist-local-hook distdir=$$distdir
- list='$(EXTRA_DIST)'; \
- for f in Makefile $$list; do \
- d=`dirname "$$f"`; \
- test -d "$(distdir)/$$d" || \
- mkdir -p "$(distdir)/$$d"; \
- cp -p "$$f" "$(distdir)/$$d" || exit 1; \
- done
- make post-dist-local-hook distdir=$$distdir
-
-dist-local-recursive:
- for dir in $(SUBDIRS); do \
- mkdir -p $(distdir)/$$dir || true; \
- case $$dir in \
- .) make dist-local distdir=$(distdir) || exit 1;; \
- *) (cd $$dir; make dist-local distdir=$(distdir)/$$dir) || exit 1; \
- esac \
- done
-
-#hooks: Available hooks - all, clean, install, uninstall and dist
-# and their *-local variants
-pre-%-hook: ; @:
-post-%-hook: ; @:
-
-#targets for custom commands
-%_BeforeBuild: ; @:
-%_AfterBuild: ; @:
-%_BeforeClean: ; @:
-%_AfterClean: ; @:
diff --git a/extras/GtkSharpLibs/ChangeLog b/extras/GtkSharpLibs/ChangeLog
deleted file mode 100644
index 922b77e67b..0000000000
--- a/extras/GtkSharpLibs/ChangeLog
+++ /dev/null
@@ -1,26 +0,0 @@
-2007-12-01 Lluis Sanchez Gual <lluis@novell.com>
-
- * md-gtk-sharp-2.4/md-gtk-sharp.addin.xml.xsl,
- md-gtk-sharp-2.6/md-gtk-sharp.addin.xml.xsl,
- md-gtk-sharp-2.8/md-gtk-sharp.addin.xml.xsl: Updated versions.
-
-2007-09-25 Lluis Sanchez Gual <lluis@novell.com>
-
- * md-gtk-sharp-2.4/md-gtk-sharp.addin.xml.xsl,
- md-gtk-sharp-2.6/md-gtk-sharp.addin.xml.xsl,
- md-gtk-sharp-2.8/md-gtk-sharp.addin.xml.xsl: Fix dependency version
- numbers.
-
-2007-09-10 Lluis Sanchez Gual <lluis@novell.com>
-
- * md-gtk-sharp-2.4/md-gtk-sharp.addin.xml.xsl,
- md-gtk-sharp-2.6/md-gtk-sharp.addin.xml.xsl,
- md-gtk-sharp-2.8/md-gtk-sharp.addin.xml.xsl: Fix dependency version
- numbers. Use the attribute 'name' to identify packages.
-
-2007-09-10 Lluis Sanchez Gual <lluis@novell.com>
-
- * md-gtk-sharp-2.4/*,
- * md-gtk-sharp-2.6/*,
- * md-gtk-sharp-2.8/*: New add-ins which provide support for
- targeting several gtk# versions in MD.
diff --git a/extras/GtkSharpLibs/md-gtk-sharp-2.10/Makefile b/extras/GtkSharpLibs/md-gtk-sharp-2.10/Makefile
deleted file mode 100644
index dda71f26ff..0000000000
--- a/extras/GtkSharpLibs/md-gtk-sharp-2.10/Makefile
+++ /dev/null
@@ -1,107 +0,0 @@
-ADDIN_VERSION=2.10.3.28
-CORE_ADDIN_VERSION=2.4
-TARGET_VERSION=2.10
-GTK_POLICY_VERSION=2.4 2.6 2.8 2.10 2.12 2.14 2.16 2.18
-GNOME_POLICY_VERSION=2.4 2.6 2.8 2.16 2.18 2.20 2.22 2.24 2.26 2.28 2.30
-GTK_VERSION=2.10.3
-GNOME_VERSION=2.16.1
-
-GTK_TARBALL=gtk-sharp-$(GTK_VERSION).tar.gz
-GNOME_TARBALL=gnome-sharp-$(GNOME_VERSION).tar.gz
-GTK_DIR=gtk-sharp-$(GTK_VERSION)
-GNOME_DIR=gnome-sharp-$(GNOME_VERSION)
-ADDIN_FILE=md-gtk-sharp.addin.xml
-ADDIN_MPACK=MonoDevelop.GtkCore.GtkSharp.$(TARGET_VERSION)_$(GTK_VERSION).mpack
-GTK_LIB=tmpinstall/lib/mono/gac/gtk-sharp2/$(GTK_VERSION)/gtk-sharp2.dll
-GNOME_LIB=tmpinstall/lib/mono/gac/gnome-sharp2/$(GTK_VERSION)/gnome-sharp2.dll
-
-GTK_LIBS = \
- atk/atk-sharp \
- gconf/GConf/gconf-sharp \
- gdk/gdk-sharp \
- glade/glade-sharp \
- glib/glib-sharp \
- gnome/gnome-sharp \
- gtkdotnet/gtk-dotnet \
- gtk/gtk-sharp \
- pango/pango-sharp
-
-GNOME_LIBS = \
- art/art-sharp \
- gconf/GConf/gconf-sharp \
- gnome/gnome-sharp \
- gnomevfs/gnome-vfs-sharp \
- gtkhtml/gtkhtml-sharp \
- rsvg/rsvg-sharp \
- vte/vte-sharp
-
-LIBS = $(foreach lib, $(GTK_LIBS), $(GTK_DIR)/$(lib)) $(foreach lib, $(GNOME_LIBS), $(GNOME_DIR)/$(lib))
-ASSEMBLIES = $(foreach lib, $(LIBS), $(lib).dll)
-GTK_POLICY_FILES = $(foreach pv, $(GTK_POLICY_VERSION), $(foreach lib, $(LIBS), $(dir $(lib))policy.$(pv).$(notdir $(lib)).dll))
-GTK_POLICY_CONFIGS = $(foreach pv, $(GTK_POLICY_VERSION), $(foreach lib, $(LIBS), $(dir $(lib))policy.$(pv).config))
-GNOME_POLICY_FILES = $(foreach pv, $(GNOME_POLICY_VERSION), $(foreach lib, $(LIBS), $(dir $(lib))policy.$(pv).$(notdir $(lib)).dll))
-GNOME_POLICY_CONFIGS = $(foreach pv, $(GNOME_POLICY_VERSION), $(foreach lib, $(LIBS), $(dir $(lib))policy.$(pv).config))
-LOCAL_CONFIG=PKG_CONFIG_PATH=`pwd`/../tmpinstall/lib/pkgconfig:$$PKG_CONFIG_PATH PATH=`pwd`/../tmpinstall/bin:$$PATH
-
-FILES = $(ASSEMBLIES) $(GTK_POLICY_FILES) $(GNOME_POLICY_FILES) $(GTK_POLICY_CONFIGS) $(GNOME_POLICY_CONFIGS)
-GAC_FILES = $(ASSEMBLIES) $(POLICY_FILES) $(GNOME_POLICY_FILES)
-
-all: build_gtk build_gnome $(ADDIN_FILE)
-
-kk:
- echo $@
-
-clean:
- rm -rf $(FILES) $(dir $(LIBS)) $(ADDIN_FILE) $(GTK_TARBALL) $(GNOME_TARBALL) $(GTK_DIR) $(GNOME_DIR) tmpinstall gconf files lib
-
-$(GTK_TARBALL):
- wget http://go-mono.com/sources/gtk-sharp/$(GTK_TARBALL)
-
-$(GTK_DIR)/Makefile: $(GTK_TARBALL)
- rm -rf $(GTK_DIR) && \
- tar xvfz $(GTK_TARBALL) && \
- cd $(GTK_DIR) && \
- sed s/POLICY_VERSIONS="\(.*\)"/\POLICY_VERSIONS=\""$(GTK_POLICY_VERSION)"\"/ configure > configure.mod && \
- chmod +x configure.mod && \
- $(LOCAL_CONFIG) ./configure.mod --prefix=`pwd`/../tmpinstall
-
-$(GNOME_TARBALL):
- wget http://go-mono.com/sources/gnome-sharp2/$(GNOME_TARBALL)
-
-$(GNOME_DIR)/Makefile: $(GNOME_TARBALL)
- rm -rf $(GNOME_DIR) && \
- tar xvfz $(GNOME_TARBALL) && \
- cd $(GNOME_DIR) && \
- sed s/POLICY_VERSIONS="\(.*\)"/\POLICY_VERSIONS=\""$(GNOME_POLICY_VERSION)"\"/ configure > configure.mod && \
- chmod +x configure.mod && \
- $(LOCAL_CONFIG) ./configure.mod --prefix=`pwd`/../tmpinstall \
-
-build_gtk: $(GTK_DIR)/Makefile
- cd $(GTK_DIR) && \
- $(LOCAL_CONFIG) make && \
- $(LOCAL_CONFIG) make install
-
-build_gnome: $(GNOME_DIR)/Makefile
- cd $(GNOME_DIR) && \
- $(LOCAL_CONFIG) make && \
- $(LOCAL_CONFIG) make install
-
-$(ADDIN_FILE): $(ADDIN_FILE).xsl
- echo "<files>" > files
- echo "<targetversion>"$(TARGET_VERSION)"</targetversion>" >> files
- echo "<gtkversion>"$(GTK_VERSION)"</gtkversion>" >> files
- echo "<addinversion>"$(ADDIN_VERSION)"</addinversion>" >> files
- echo "<coreaddinversion>"$(CORE_ADDIN_VERSION)"</coreaddinversion>" >> files
- rm -rf lib
- cp -r tmpinstall/lib lib
- find lib -name *.dll -type f -printf "<dll>%p</dll>\n" >> files
- find lib -name *.config -type f -printf "<config>%p</config>\n" >> files
- echo "</files>" >> files
- mono-xmltool --transform $(ADDIN_FILE).xsl files $(ADDIN_FILE)
-
-$(ADDIN_MPACK): $(ADDIN_FILE)
- mdtool setup p $(ADDIN_FILE)
-
-pack: $(ADDIN_MPACK)
-
-
diff --git a/extras/GtkSharpLibs/md-gtk-sharp-2.10/README b/extras/GtkSharpLibs/md-gtk-sharp-2.10/README
deleted file mode 100644
index 6f55bcfd3c..0000000000
--- a/extras/GtkSharpLibs/md-gtk-sharp-2.10/README
+++ /dev/null
@@ -1,5 +0,0 @@
-The Makefile in this directory generates a MonoDevelop add-in that adds
-support for GTK# 2.8.
-
-WARNING: the generation of the add-in will fail if you have any GTK# version
-installed in the GAC. To properly build it, uninstall GTK# and run make.
diff --git a/extras/GtkSharpLibs/md-gtk-sharp-2.10/md-gtk-sharp.addin.xml.xsl b/extras/GtkSharpLibs/md-gtk-sharp-2.10/md-gtk-sharp.addin.xml.xsl
deleted file mode 100644
index ca60be6e85..0000000000
--- a/extras/GtkSharpLibs/md-gtk-sharp-2.10/md-gtk-sharp.addin.xml.xsl
+++ /dev/null
@@ -1,101 +0,0 @@
-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
-<xsl:output method="xml" indent="yes" />
-<xsl:template match="/">
-<Addin
- namespace = "MonoDevelop"
- author = "Lluis Sanchez"
- copyright = "GPL"
- url = "http://www.monodevelop.com"
- category = "GTK">
-
- <xsl:attribute name="id">GtkCore.GtkSharp.<xsl:value-of select="/files/targetversion"/></xsl:attribute>
- <xsl:attribute name="name">GTK# <xsl:value-of select="/files/targetversion"/> Compilation Support</xsl:attribute>
- <xsl:attribute name="version"><xsl:value-of select="/files/addinversion"/></xsl:attribute>
- <xsl:attribute name="description">Allows building applications which target GTK# <xsl:value-of select="/files/targetversion"/></xsl:attribute>
-
- <Runtime>
- <xsl:for-each select="/files/config|/files/dll">
- <xsl:element name="Import"><xsl:attribute name="file"><xsl:value-of select="." /></xsl:attribute></xsl:element>
- </xsl:for-each>
- </Runtime>
-
- <Dependencies>
- <Addin id="Core">
- <xsl:attribute name="version"><xsl:value-of select="/files/coreaddinversion"/></xsl:attribute>
- </Addin>
- <Addin id="GtkCore">
- <xsl:attribute name="version"><xsl:value-of select="/files/coreaddinversion"/></xsl:attribute>
- </Addin>
- </Dependencies>
-
- <Extension path = "/MonoDevelop/Core/SupportPackages">
- <Package name="art-sharp-2.0" gacRoot="true">
- <xsl:attribute name="version"><xsl:value-of select="/files/gtkversion"/></xsl:attribute>
- <xsl:for-each select="/files/dll[contains(.,'/art-sharp')]">
- <xsl:element name="Assembly"><xsl:attribute name="file"><xsl:value-of select="." /></xsl:attribute></xsl:element>
- </xsl:for-each>
- </Package>
- <Package name="gtk-sharp-2.0" gacRoot="true">
- <xsl:attribute name="version"><xsl:value-of select="/files/gtkversion"/></xsl:attribute>
- <xsl:for-each select="/files/dll[contains(.,'/atk-sharp') or contains(.,'/pango-sharp') or contains(.,'/gdk-sharp') or contains(.,'/gtk-sharp')]">
- <xsl:element name="Assembly"><xsl:attribute name="file"><xsl:value-of select="." /></xsl:attribute></xsl:element>
- </xsl:for-each>
- </Package>
- <Package name="vte-sharp-2.0" gacRoot="true">
- <xsl:attribute name="version"><xsl:value-of select="/files/gtkversion"/></xsl:attribute>
- <xsl:for-each select="/files/dll[contains(.,'/vte-sharp')]">
- <xsl:element name="Assembly"><xsl:attribute name="file"><xsl:value-of select="." /></xsl:attribute></xsl:element>
- </xsl:for-each>
- </Package>
- <Package name="glib-sharp-2.0" gacRoot="true">
- <xsl:attribute name="version"><xsl:value-of select="/files/gtkversion"/></xsl:attribute>
- <xsl:for-each select="/files/dll[contains(.,'/glib-sharp')]">
- <xsl:element name="Assembly"><xsl:attribute name="file"><xsl:value-of select="." /></xsl:attribute></xsl:element>
- </xsl:for-each>
- </Package>
- <Package name="rsvg-sharp-2.0" gacRoot="true">
- <xsl:attribute name="version"><xsl:value-of select="/files/gtkversion"/></xsl:attribute>
- <xsl:for-each select="/files/dll[contains(.,'/rsvg-sharp')]">
- <xsl:element name="Assembly"><xsl:attribute name="file"><xsl:value-of select="." /></xsl:attribute></xsl:element>
- </xsl:for-each>
- </Package>
- <Package name="gtk-dotnet-2.0" gacRoot="true">
- <xsl:attribute name="version"><xsl:value-of select="/files/gtkversion"/></xsl:attribute>
- <xsl:for-each select="/files/dll[contains(.,'/gtk-dotnet')]">
- <xsl:element name="Assembly"><xsl:attribute name="file"><xsl:value-of select="." /></xsl:attribute></xsl:element>
- </xsl:for-each>
- </Package>
- <Package name="gconf-sharp-2.0" gacRoot="true">
- <xsl:attribute name="version"><xsl:value-of select="/files/gtkversion"/></xsl:attribute>
- <xsl:for-each select="/files/dll[contains(.,'/gconf-sharp')]">
- <xsl:element name="Assembly"><xsl:attribute name="file"><xsl:value-of select="." /></xsl:attribute></xsl:element>
- </xsl:for-each>
- </Package>
- <Package name="glade-sharp-2.0" gacRoot="true">
- <xsl:attribute name="version"><xsl:value-of select="/files/gtkversion"/></xsl:attribute>
- <xsl:for-each select="/files/dll[contains(.,'/glade-sharp')]">
- <xsl:element name="Assembly"><xsl:attribute name="file"><xsl:value-of select="." /></xsl:attribute></xsl:element>
- </xsl:for-each>
- </Package>
- <Package name="gnome-sharp-2.0" gacRoot="true">
- <xsl:attribute name="version"><xsl:value-of select="/files/gtkversion"/></xsl:attribute>
- <xsl:for-each select="/files/dll[contains(.,'/gnome-sharp')]">
- <xsl:element name="Assembly"><xsl:attribute name="file"><xsl:value-of select="." /></xsl:attribute></xsl:element>
- </xsl:for-each>
- </Package>
- <Package name="gnome-vfs-sharp-2.0" gacRoot="true">
- <xsl:attribute name="version"><xsl:value-of select="/files/gtkversion"/></xsl:attribute>
- <xsl:for-each select="/files/dll[contains(.,'/gnome-vfs-sharp')]">
- <xsl:element name="Assembly"><xsl:attribute name="file"><xsl:value-of select="." /></xsl:attribute></xsl:element>
- </xsl:for-each>
- </Package>
- <Package name="gtkhtml-sharp-2.0" gacRoot="true">
- <xsl:attribute name="version"><xsl:value-of select="/files/gtkversion"/></xsl:attribute>
- <xsl:for-each select="/files/dll[contains(.,'/gtkhtml-sharp')]">
- <xsl:element name="Assembly"><xsl:attribute name="file"><xsl:value-of select="." /></xsl:attribute></xsl:element>
- </xsl:for-each>
- </Package>
- </Extension>
-</Addin>
-</xsl:template>
-</xsl:stylesheet>
diff --git a/extras/GtkSharpLibs/md-gtk-sharp-2.4/Makefile b/extras/GtkSharpLibs/md-gtk-sharp-2.4/Makefile
deleted file mode 100644
index d22e8c4773..0000000000
--- a/extras/GtkSharpLibs/md-gtk-sharp-2.4/Makefile
+++ /dev/null
@@ -1,72 +0,0 @@
-ADDIN_VERSION=2.4.3.28
-CORE_ADDIN_VERSION=2.4
-TARGET_VERSION=2.4
-POLICY_VERSION=2.4 2.6 2.8 2.10 2.12 2.14 2.16 2.18
-GTK_VERSION=2.4.3
-
-GTK_TARBALL=gtk-sharp-$(GTK_VERSION).tar.gz
-GTK_DIR=gtk-sharp-$(GTK_VERSION)
-ADDIN_FILE=md-gtk-sharp.addin.xml
-
-LIBS = \
- art/art-sharp \
- atk/atk-sharp \
- gconf/GConf/gconf-sharp \
- gdk/gdk-sharp \
- glade/glade-sharp \
- glib/glib-sharp \
- gnome/gnome-sharp \
- gnomevfs/gnome-vfs-sharp \
- gtkdotnet/gtk-dotnet \
- gtkhtml/gtkhtml-sharp \
- gtk/gtk-sharp \
- pango/pango-sharp \
- rsvg/rsvg-sharp \
- vte/vte-sharp
-
-ASSEMBLIES = $(foreach lib, $(LIBS), $(lib).dll)
-POLICY_FILES = $(foreach pv, $(POLICY_VERSION), $(foreach lib, $(LIBS), $(dir $(lib))policy.$(pv).$(notdir $(lib)).dll))
-POLICY_CONFIGS = $(foreach pv, $(POLICY_VERSION), $(foreach lib, $(LIBS), $(dir $(lib))policy.$(pv).config))
-
-FILES = $(ASSEMBLIES) $(POLICY_FILES) $(POLICY_CONFIGS)
-GAC_FILES = $(ASSEMBLIES) $(POLICY_FILES)
-
-all: $(GAC_FILES) $(ADDIN_FILE)
-
-clean:
- rm -rf $(FILES) $(dir $(LIBS)) $(ADDIN_FILE) $(GTK_TARBALL) $(GTK_DIR) gconf files lib
-
-$(GTK_TARBALL):
- wget http://go-mono.com/sources/gtk-sharp-2.0/$(GTK_TARBALL)
- rm -rf $(GTK_DIR)
- tar xvfz $(GTK_TARBALL)
-
-$(GTK_DIR)/Makefile: $(GTK_TARBALL)
- cd gtk-sharp-$(GTK_VERSION) && \
- sed s/POLICY_VERSIONS="\(.*\)"/\POLICY_VERSIONS=\""$(POLICY_VERSION)"\"/ configure > configure.mod && \
- chmod +x configure.mod && \
- ./configure.mod
-
-build: $(GTK_DIR)/Makefile
- cd gtk-sharp-$(GTK_VERSION) && \
- make
-
-$(GAC_FILES): build
- CURD=`pwd` && \
- cd $(dir $(GTK_DIR)/$@) && \
- gacutil -i $(notdir $@) -root $$CURD/lib
-
-$(ADDIN_FILE): $(ADDIN_FILE).xsl
- echo "<files>" > files
- echo "<targetversion>"$(TARGET_VERSION)"</targetversion>" >> files
- echo "<gtkversion>"$(GTK_VERSION)"</gtkversion>" >> files
- echo "<addinversion>"$(ADDIN_VERSION)"</addinversion>" >> files
- echo "<coreaddinversion>"$(CORE_ADDIN_VERSION)"</coreaddinversion>" >> files
- find lib -name *.dll -type f -printf "<dll>%p</dll>\n" >> files
- find lib -name *.config -type f -printf "<config>%p</config>\n" >> files
- echo "</files>" >> files
- mono-xmltool --transform $(ADDIN_FILE).xsl files $(ADDIN_FILE)
-
-pack:
- mdtool setup p $(ADDIN_FILE)
-
diff --git a/extras/GtkSharpLibs/md-gtk-sharp-2.4/README b/extras/GtkSharpLibs/md-gtk-sharp-2.4/README
deleted file mode 100644
index d8f1e92d4f..0000000000
--- a/extras/GtkSharpLibs/md-gtk-sharp-2.4/README
+++ /dev/null
@@ -1,5 +0,0 @@
-The Makefile in this directory generates a MonoDevelop add-in that adds
-support for GTK# 2.4.
-
-WARNING: the generation of the add-in will fail if you have any GTK# version
-installed in the GAC. To properly build it, uninstall GTK# and run make.
diff --git a/extras/GtkSharpLibs/md-gtk-sharp-2.4/md-gtk-sharp.addin.xml.xsl b/extras/GtkSharpLibs/md-gtk-sharp-2.4/md-gtk-sharp.addin.xml.xsl
deleted file mode 100644
index ca60be6e85..0000000000
--- a/extras/GtkSharpLibs/md-gtk-sharp-2.4/md-gtk-sharp.addin.xml.xsl
+++ /dev/null
@@ -1,101 +0,0 @@
-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
-<xsl:output method="xml" indent="yes" />
-<xsl:template match="/">
-<Addin
- namespace = "MonoDevelop"
- author = "Lluis Sanchez"
- copyright = "GPL"
- url = "http://www.monodevelop.com"
- category = "GTK">
-
- <xsl:attribute name="id">GtkCore.GtkSharp.<xsl:value-of select="/files/targetversion"/></xsl:attribute>
- <xsl:attribute name="name">GTK# <xsl:value-of select="/files/targetversion"/> Compilation Support</xsl:attribute>
- <xsl:attribute name="version"><xsl:value-of select="/files/addinversion"/></xsl:attribute>
- <xsl:attribute name="description">Allows building applications which target GTK# <xsl:value-of select="/files/targetversion"/></xsl:attribute>
-
- <Runtime>
- <xsl:for-each select="/files/config|/files/dll">
- <xsl:element name="Import"><xsl:attribute name="file"><xsl:value-of select="." /></xsl:attribute></xsl:element>
- </xsl:for-each>
- </Runtime>
-
- <Dependencies>
- <Addin id="Core">
- <xsl:attribute name="version"><xsl:value-of select="/files/coreaddinversion"/></xsl:attribute>
- </Addin>
- <Addin id="GtkCore">
- <xsl:attribute name="version"><xsl:value-of select="/files/coreaddinversion"/></xsl:attribute>
- </Addin>
- </Dependencies>
-
- <Extension path = "/MonoDevelop/Core/SupportPackages">
- <Package name="art-sharp-2.0" gacRoot="true">
- <xsl:attribute name="version"><xsl:value-of select="/files/gtkversion"/></xsl:attribute>
- <xsl:for-each select="/files/dll[contains(.,'/art-sharp')]">
- <xsl:element name="Assembly"><xsl:attribute name="file"><xsl:value-of select="." /></xsl:attribute></xsl:element>
- </xsl:for-each>
- </Package>
- <Package name="gtk-sharp-2.0" gacRoot="true">
- <xsl:attribute name="version"><xsl:value-of select="/files/gtkversion"/></xsl:attribute>
- <xsl:for-each select="/files/dll[contains(.,'/atk-sharp') or contains(.,'/pango-sharp') or contains(.,'/gdk-sharp') or contains(.,'/gtk-sharp')]">
- <xsl:element name="Assembly"><xsl:attribute name="file"><xsl:value-of select="." /></xsl:attribute></xsl:element>
- </xsl:for-each>
- </Package>
- <Package name="vte-sharp-2.0" gacRoot="true">
- <xsl:attribute name="version"><xsl:value-of select="/files/gtkversion"/></xsl:attribute>
- <xsl:for-each select="/files/dll[contains(.,'/vte-sharp')]">
- <xsl:element name="Assembly"><xsl:attribute name="file"><xsl:value-of select="." /></xsl:attribute></xsl:element>
- </xsl:for-each>
- </Package>
- <Package name="glib-sharp-2.0" gacRoot="true">
- <xsl:attribute name="version"><xsl:value-of select="/files/gtkversion"/></xsl:attribute>
- <xsl:for-each select="/files/dll[contains(.,'/glib-sharp')]">
- <xsl:element name="Assembly"><xsl:attribute name="file"><xsl:value-of select="." /></xsl:attribute></xsl:element>
- </xsl:for-each>
- </Package>
- <Package name="rsvg-sharp-2.0" gacRoot="true">
- <xsl:attribute name="version"><xsl:value-of select="/files/gtkversion"/></xsl:attribute>
- <xsl:for-each select="/files/dll[contains(.,'/rsvg-sharp')]">
- <xsl:element name="Assembly"><xsl:attribute name="file"><xsl:value-of select="." /></xsl:attribute></xsl:element>
- </xsl:for-each>
- </Package>
- <Package name="gtk-dotnet-2.0" gacRoot="true">
- <xsl:attribute name="version"><xsl:value-of select="/files/gtkversion"/></xsl:attribute>
- <xsl:for-each select="/files/dll[contains(.,'/gtk-dotnet')]">
- <xsl:element name="Assembly"><xsl:attribute name="file"><xsl:value-of select="." /></xsl:attribute></xsl:element>
- </xsl:for-each>
- </Package>
- <Package name="gconf-sharp-2.0" gacRoot="true">
- <xsl:attribute name="version"><xsl:value-of select="/files/gtkversion"/></xsl:attribute>
- <xsl:for-each select="/files/dll[contains(.,'/gconf-sharp')]">
- <xsl:element name="Assembly"><xsl:attribute name="file"><xsl:value-of select="." /></xsl:attribute></xsl:element>
- </xsl:for-each>
- </Package>
- <Package name="glade-sharp-2.0" gacRoot="true">
- <xsl:attribute name="version"><xsl:value-of select="/files/gtkversion"/></xsl:attribute>
- <xsl:for-each select="/files/dll[contains(.,'/glade-sharp')]">
- <xsl:element name="Assembly"><xsl:attribute name="file"><xsl:value-of select="." /></xsl:attribute></xsl:element>
- </xsl:for-each>
- </Package>
- <Package name="gnome-sharp-2.0" gacRoot="true">
- <xsl:attribute name="version"><xsl:value-of select="/files/gtkversion"/></xsl:attribute>
- <xsl:for-each select="/files/dll[contains(.,'/gnome-sharp')]">
- <xsl:element name="Assembly"><xsl:attribute name="file"><xsl:value-of select="." /></xsl:attribute></xsl:element>
- </xsl:for-each>
- </Package>
- <Package name="gnome-vfs-sharp-2.0" gacRoot="true">
- <xsl:attribute name="version"><xsl:value-of select="/files/gtkversion"/></xsl:attribute>
- <xsl:for-each select="/files/dll[contains(.,'/gnome-vfs-sharp')]">
- <xsl:element name="Assembly"><xsl:attribute name="file"><xsl:value-of select="." /></xsl:attribute></xsl:element>
- </xsl:for-each>
- </Package>
- <Package name="gtkhtml-sharp-2.0" gacRoot="true">
- <xsl:attribute name="version"><xsl:value-of select="/files/gtkversion"/></xsl:attribute>
- <xsl:for-each select="/files/dll[contains(.,'/gtkhtml-sharp')]">
- <xsl:element name="Assembly"><xsl:attribute name="file"><xsl:value-of select="." /></xsl:attribute></xsl:element>
- </xsl:for-each>
- </Package>
- </Extension>
-</Addin>
-</xsl:template>
-</xsl:stylesheet>
diff --git a/extras/GtkSharpLibs/md-gtk-sharp-2.6/Makefile b/extras/GtkSharpLibs/md-gtk-sharp-2.6/Makefile
deleted file mode 100644
index a3811c9b16..0000000000
--- a/extras/GtkSharpLibs/md-gtk-sharp-2.6/Makefile
+++ /dev/null
@@ -1,71 +0,0 @@
-ADDIN_VERSION=2.6.0.28
-CORE_ADDIN_VERSION=2.4
-TARGET_VERSION=2.6
-POLICY_VERSION=2.4 2.6 2.8 2.10 2.12 2.14 2.16 2.18
-GTK_VERSION=2.6.0
-
-GTK_TARBALL=gtk-sharp-$(GTK_VERSION).tar.gz
-GTK_DIR=gtk-sharp-$(GTK_VERSION)
-ADDIN_FILE=md-gtk-sharp.addin.xml
-
-LIBS = \
- art/art-sharp \
- atk/atk-sharp \
- gconf/GConf/gconf-sharp \
- gdk/gdk-sharp \
- glade/glade-sharp \
- glib/glib-sharp \
- gnome/gnome-sharp \
- gnomevfs/gnome-vfs-sharp \
- gtkdotnet/gtk-dotnet \
- gtkhtml/gtkhtml-sharp \
- gtk/gtk-sharp \
- pango/pango-sharp \
- rsvg/rsvg-sharp \
- vte/vte-sharp
-
-ASSEMBLIES = $(foreach lib, $(LIBS), $(lib).dll)
-POLICY_FILES = $(foreach pv, $(POLICY_VERSION), $(foreach lib, $(LIBS), $(dir $(lib))policy.$(pv).$(notdir $(lib)).dll))
-POLICY_CONFIGS = $(foreach pv, $(POLICY_VERSION), $(foreach lib, $(LIBS), $(dir $(lib))policy.$(pv).config))
-
-FILES = $(ASSEMBLIES) $(POLICY_FILES) $(POLICY_CONFIGS)
-GAC_FILES = $(ASSEMBLIES) $(POLICY_FILES)
-
-all: $(GAC_FILES) $(ADDIN_FILE)
-
-clean:
- rm -rf $(FILES) $(dir $(LIBS)) $(ADDIN_FILE) $(GTK_TARBALL) $(GTK_DIR) gconf files lib
-
-$(GTK_TARBALL):
- wget http://go-mono.com/sources/gtk-sharp/$(GTK_TARBALL)
- rm -rf $(GTK_DIR)
- tar xvfz $(GTK_TARBALL)
-
-$(GTK_DIR)/Makefile: $(GTK_TARBALL)
- cd gtk-sharp-$(GTK_VERSION) && \
- sed s/POLICY_VERSIONS="\(.*\)"/\POLICY_VERSIONS=\""$(POLICY_VERSION)"\"/ configure > configure.mod && \
- chmod +x configure.mod && \
- ./configure.mod
-
-build: $(GTK_DIR)/Makefile
- cd gtk-sharp-$(GTK_VERSION) && \
- make
-
-$(GAC_FILES): build
- CURD=`pwd` && \
- cd $(dir $(GTK_DIR)/$@) && \
- gacutil -i $(notdir $@) -root $$CURD/lib
-
-$(ADDIN_FILE): $(ADDIN_FILE).xsl
- echo "<files>" > files
- echo "<targetversion>"$(TARGET_VERSION)"</targetversion>" >> files
- echo "<gtkversion>"$(GTK_VERSION)"</gtkversion>" >> files
- echo "<addinversion>"$(ADDIN_VERSION)"</addinversion>" >> files
- echo "<coreaddinversion>"$(CORE_ADDIN_VERSION)"</coreaddinversion>" >> files
- find lib -name *.dll -type f -printf "<dll>%p</dll>\n" >> files
- find lib -name *.config -type f -printf "<config>%p</config>\n" >> files
- echo "</files>" >> files
- mono-xmltool --transform $(ADDIN_FILE).xsl files $(ADDIN_FILE)
-
-pack:
- mdtool setup p $(ADDIN_FILE)
diff --git a/extras/GtkSharpLibs/md-gtk-sharp-2.6/README b/extras/GtkSharpLibs/md-gtk-sharp-2.6/README
deleted file mode 100644
index 1eb89b7116..0000000000
--- a/extras/GtkSharpLibs/md-gtk-sharp-2.6/README
+++ /dev/null
@@ -1,5 +0,0 @@
-The Makefile in this directory generates a MonoDevelop add-in that adds
-support for GTK# 2.6.
-
-WARNING: the generation of the add-in will fail if you have any GTK# version
-installed in the GAC. To properly build it, uninstall GTK# and run make.
diff --git a/extras/GtkSharpLibs/md-gtk-sharp-2.6/md-gtk-sharp.addin.xml.xsl b/extras/GtkSharpLibs/md-gtk-sharp-2.6/md-gtk-sharp.addin.xml.xsl
deleted file mode 100644
index ca60be6e85..0000000000
--- a/extras/GtkSharpLibs/md-gtk-sharp-2.6/md-gtk-sharp.addin.xml.xsl
+++ /dev/null
@@ -1,101 +0,0 @@
-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
-<xsl:output method="xml" indent="yes" />
-<xsl:template match="/">
-<Addin
- namespace = "MonoDevelop"
- author = "Lluis Sanchez"
- copyright = "GPL"
- url = "http://www.monodevelop.com"
- category = "GTK">
-
- <xsl:attribute name="id">GtkCore.GtkSharp.<xsl:value-of select="/files/targetversion"/></xsl:attribute>
- <xsl:attribute name="name">GTK# <xsl:value-of select="/files/targetversion"/> Compilation Support</xsl:attribute>
- <xsl:attribute name="version"><xsl:value-of select="/files/addinversion"/></xsl:attribute>
- <xsl:attribute name="description">Allows building applications which target GTK# <xsl:value-of select="/files/targetversion"/></xsl:attribute>
-
- <Runtime>
- <xsl:for-each select="/files/config|/files/dll">
- <xsl:element name="Import"><xsl:attribute name="file"><xsl:value-of select="." /></xsl:attribute></xsl:element>
- </xsl:for-each>
- </Runtime>
-
- <Dependencies>
- <Addin id="Core">
- <xsl:attribute name="version"><xsl:value-of select="/files/coreaddinversion"/></xsl:attribute>
- </Addin>
- <Addin id="GtkCore">
- <xsl:attribute name="version"><xsl:value-of select="/files/coreaddinversion"/></xsl:attribute>
- </Addin>
- </Dependencies>
-
- <Extension path = "/MonoDevelop/Core/SupportPackages">
- <Package name="art-sharp-2.0" gacRoot="true">
- <xsl:attribute name="version"><xsl:value-of select="/files/gtkversion"/></xsl:attribute>
- <xsl:for-each select="/files/dll[contains(.,'/art-sharp')]">
- <xsl:element name="Assembly"><xsl:attribute name="file"><xsl:value-of select="." /></xsl:attribute></xsl:element>
- </xsl:for-each>
- </Package>
- <Package name="gtk-sharp-2.0" gacRoot="true">
- <xsl:attribute name="version"><xsl:value-of select="/files/gtkversion"/></xsl:attribute>
- <xsl:for-each select="/files/dll[contains(.,'/atk-sharp') or contains(.,'/pango-sharp') or contains(.,'/gdk-sharp') or contains(.,'/gtk-sharp')]">
- <xsl:element name="Assembly"><xsl:attribute name="file"><xsl:value-of select="." /></xsl:attribute></xsl:element>
- </xsl:for-each>
- </Package>
- <Package name="vte-sharp-2.0" gacRoot="true">
- <xsl:attribute name="version"><xsl:value-of select="/files/gtkversion"/></xsl:attribute>
- <xsl:for-each select="/files/dll[contains(.,'/vte-sharp')]">
- <xsl:element name="Assembly"><xsl:attribute name="file"><xsl:value-of select="." /></xsl:attribute></xsl:element>
- </xsl:for-each>
- </Package>
- <Package name="glib-sharp-2.0" gacRoot="true">
- <xsl:attribute name="version"><xsl:value-of select="/files/gtkversion"/></xsl:attribute>
- <xsl:for-each select="/files/dll[contains(.,'/glib-sharp')]">
- <xsl:element name="Assembly"><xsl:attribute name="file"><xsl:value-of select="." /></xsl:attribute></xsl:element>
- </xsl:for-each>
- </Package>
- <Package name="rsvg-sharp-2.0" gacRoot="true">
- <xsl:attribute name="version"><xsl:value-of select="/files/gtkversion"/></xsl:attribute>
- <xsl:for-each select="/files/dll[contains(.,'/rsvg-sharp')]">
- <xsl:element name="Assembly"><xsl:attribute name="file"><xsl:value-of select="." /></xsl:attribute></xsl:element>
- </xsl:for-each>
- </Package>
- <Package name="gtk-dotnet-2.0" gacRoot="true">
- <xsl:attribute name="version"><xsl:value-of select="/files/gtkversion"/></xsl:attribute>
- <xsl:for-each select="/files/dll[contains(.,'/gtk-dotnet')]">
- <xsl:element name="Assembly"><xsl:attribute name="file"><xsl:value-of select="." /></xsl:attribute></xsl:element>
- </xsl:for-each>
- </Package>
- <Package name="gconf-sharp-2.0" gacRoot="true">
- <xsl:attribute name="version"><xsl:value-of select="/files/gtkversion"/></xsl:attribute>
- <xsl:for-each select="/files/dll[contains(.,'/gconf-sharp')]">
- <xsl:element name="Assembly"><xsl:attribute name="file"><xsl:value-of select="." /></xsl:attribute></xsl:element>
- </xsl:for-each>
- </Package>
- <Package name="glade-sharp-2.0" gacRoot="true">
- <xsl:attribute name="version"><xsl:value-of select="/files/gtkversion"/></xsl:attribute>
- <xsl:for-each select="/files/dll[contains(.,'/glade-sharp')]">
- <xsl:element name="Assembly"><xsl:attribute name="file"><xsl:value-of select="." /></xsl:attribute></xsl:element>
- </xsl:for-each>
- </Package>
- <Package name="gnome-sharp-2.0" gacRoot="true">
- <xsl:attribute name="version"><xsl:value-of select="/files/gtkversion"/></xsl:attribute>
- <xsl:for-each select="/files/dll[contains(.,'/gnome-sharp')]">
- <xsl:element name="Assembly"><xsl:attribute name="file"><xsl:value-of select="." /></xsl:attribute></xsl:element>
- </xsl:for-each>
- </Package>
- <Package name="gnome-vfs-sharp-2.0" gacRoot="true">
- <xsl:attribute name="version"><xsl:value-of select="/files/gtkversion"/></xsl:attribute>
- <xsl:for-each select="/files/dll[contains(.,'/gnome-vfs-sharp')]">
- <xsl:element name="Assembly"><xsl:attribute name="file"><xsl:value-of select="." /></xsl:attribute></xsl:element>
- </xsl:for-each>
- </Package>
- <Package name="gtkhtml-sharp-2.0" gacRoot="true">
- <xsl:attribute name="version"><xsl:value-of select="/files/gtkversion"/></xsl:attribute>
- <xsl:for-each select="/files/dll[contains(.,'/gtkhtml-sharp')]">
- <xsl:element name="Assembly"><xsl:attribute name="file"><xsl:value-of select="." /></xsl:attribute></xsl:element>
- </xsl:for-each>
- </Package>
- </Extension>
-</Addin>
-</xsl:template>
-</xsl:stylesheet>
diff --git a/extras/GtkSharpLibs/md-gtk-sharp-2.8/Makefile b/extras/GtkSharpLibs/md-gtk-sharp-2.8/Makefile
deleted file mode 100644
index a614f82835..0000000000
--- a/extras/GtkSharpLibs/md-gtk-sharp-2.8/Makefile
+++ /dev/null
@@ -1,71 +0,0 @@
-ADDIN_VERSION=2.8.3.28
-CORE_ADDIN_VERSION=2.4
-TARGET_VERSION=2.8
-POLICY_VERSION=2.4 2.6 2.8 2.10 2.12 2.14 2.16 2.18
-GTK_VERSION=2.8.5
-
-GTK_TARBALL=gtk-sharp-$(GTK_VERSION).tar.gz
-GTK_DIR=gtk-sharp-$(GTK_VERSION)
-ADDIN_FILE=md-gtk-sharp.addin.xml
-
-LIBS = \
- art/art-sharp \
- atk/atk-sharp \
- gconf/GConf/gconf-sharp \
- gdk/gdk-sharp \
- glade/glade-sharp \
- glib/glib-sharp \
- gnome/gnome-sharp \
- gnomevfs/gnome-vfs-sharp \
- gtkdotnet/gtk-dotnet \
- gtkhtml/gtkhtml-sharp \
- gtk/gtk-sharp \
- pango/pango-sharp \
- rsvg/rsvg-sharp \
- vte/vte-sharp
-
-ASSEMBLIES = $(foreach lib, $(LIBS), $(lib).dll)
-POLICY_FILES = $(foreach pv, $(POLICY_VERSION), $(foreach lib, $(LIBS), $(dir $(lib))policy.$(pv).$(notdir $(lib)).dll))
-POLICY_CONFIGS = $(foreach pv, $(POLICY_VERSION), $(foreach lib, $(LIBS), $(dir $(lib))policy.$(pv).config))
-
-FILES = $(ASSEMBLIES) $(POLICY_FILES) $(POLICY_CONFIGS)
-GAC_FILES = $(ASSEMBLIES) $(POLICY_FILES)
-
-all: $(GAC_FILES) $(ADDIN_FILE)
-
-clean:
- rm -rf $(FILES) $(dir $(LIBS)) $(ADDIN_FILE) $(GTK_TARBALL) $(GTK_DIR) gconf files lib
-
-$(GTK_TARBALL):
- wget http://go-mono.com/sources/gtk-sharp-2.8/$(GTK_TARBALL)
- rm -rf $(GTK_DIR)
- tar xvfz $(GTK_TARBALL)
-
-$(GTK_DIR)/Makefile: $(GTK_TARBALL)
- cd gtk-sharp-$(GTK_VERSION) && \
- sed s/POLICY_VERSIONS="\(.*\)"/\POLICY_VERSIONS=\""$(POLICY_VERSION)"\"/ configure > configure.mod && \
- chmod +x configure.mod && \
- ./configure.mod
-
-build: $(GTK_DIR)/Makefile
- cd gtk-sharp-$(GTK_VERSION) && \
- make
-
-$(GAC_FILES): build
- CURD=`pwd` && \
- cd $(dir $(GTK_DIR)/$@) && \
- gacutil -i $(notdir $@) -root $$CURD/lib
-
-$(ADDIN_FILE): $(ADDIN_FILE).xsl
- echo "<files>" > files
- echo "<targetversion>"$(TARGET_VERSION)"</targetversion>" >> files
- echo "<gtkversion>"$(GTK_VERSION)"</gtkversion>" >> files
- echo "<addinversion>"$(ADDIN_VERSION)"</addinversion>" >> files
- echo "<coreaddinversion>"$(CORE_ADDIN_VERSION)"</coreaddinversion>" >> files
- find lib -name *.dll -type f -printf "<dll>%p</dll>\n" >> files
- find lib -name *.config -type f -printf "<config>%p</config>\n" >> files
- echo "</files>" >> files
- mono-xmltool --transform $(ADDIN_FILE).xsl files $(ADDIN_FILE)
-
-pack:
- mdtool setup p $(ADDIN_FILE)
diff --git a/extras/GtkSharpLibs/md-gtk-sharp-2.8/README b/extras/GtkSharpLibs/md-gtk-sharp-2.8/README
deleted file mode 100644
index 6f55bcfd3c..0000000000
--- a/extras/GtkSharpLibs/md-gtk-sharp-2.8/README
+++ /dev/null
@@ -1,5 +0,0 @@
-The Makefile in this directory generates a MonoDevelop add-in that adds
-support for GTK# 2.8.
-
-WARNING: the generation of the add-in will fail if you have any GTK# version
-installed in the GAC. To properly build it, uninstall GTK# and run make.
diff --git a/extras/GtkSharpLibs/md-gtk-sharp-2.8/md-gtk-sharp.addin.xml.xsl b/extras/GtkSharpLibs/md-gtk-sharp-2.8/md-gtk-sharp.addin.xml.xsl
deleted file mode 100644
index ca60be6e85..0000000000
--- a/extras/GtkSharpLibs/md-gtk-sharp-2.8/md-gtk-sharp.addin.xml.xsl
+++ /dev/null
@@ -1,101 +0,0 @@
-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
-<xsl:output method="xml" indent="yes" />
-<xsl:template match="/">
-<Addin
- namespace = "MonoDevelop"
- author = "Lluis Sanchez"
- copyright = "GPL"
- url = "http://www.monodevelop.com"
- category = "GTK">
-
- <xsl:attribute name="id">GtkCore.GtkSharp.<xsl:value-of select="/files/targetversion"/></xsl:attribute>
- <xsl:attribute name="name">GTK# <xsl:value-of select="/files/targetversion"/> Compilation Support</xsl:attribute>
- <xsl:attribute name="version"><xsl:value-of select="/files/addinversion"/></xsl:attribute>
- <xsl:attribute name="description">Allows building applications which target GTK# <xsl:value-of select="/files/targetversion"/></xsl:attribute>
-
- <Runtime>
- <xsl:for-each select="/files/config|/files/dll">
- <xsl:element name="Import"><xsl:attribute name="file"><xsl:value-of select="." /></xsl:attribute></xsl:element>
- </xsl:for-each>
- </Runtime>
-
- <Dependencies>
- <Addin id="Core">
- <xsl:attribute name="version"><xsl:value-of select="/files/coreaddinversion"/></xsl:attribute>
- </Addin>
- <Addin id="GtkCore">
- <xsl:attribute name="version"><xsl:value-of select="/files/coreaddinversion"/></xsl:attribute>
- </Addin>
- </Dependencies>
-
- <Extension path = "/MonoDevelop/Core/SupportPackages">
- <Package name="art-sharp-2.0" gacRoot="true">
- <xsl:attribute name="version"><xsl:value-of select="/files/gtkversion"/></xsl:attribute>
- <xsl:for-each select="/files/dll[contains(.,'/art-sharp')]">
- <xsl:element name="Assembly"><xsl:attribute name="file"><xsl:value-of select="." /></xsl:attribute></xsl:element>
- </xsl:for-each>
- </Package>
- <Package name="gtk-sharp-2.0" gacRoot="true">
- <xsl:attribute name="version"><xsl:value-of select="/files/gtkversion"/></xsl:attribute>
- <xsl:for-each select="/files/dll[contains(.,'/atk-sharp') or contains(.,'/pango-sharp') or contains(.,'/gdk-sharp') or contains(.,'/gtk-sharp')]">
- <xsl:element name="Assembly"><xsl:attribute name="file"><xsl:value-of select="." /></xsl:attribute></xsl:element>
- </xsl:for-each>
- </Package>
- <Package name="vte-sharp-2.0" gacRoot="true">
- <xsl:attribute name="version"><xsl:value-of select="/files/gtkversion"/></xsl:attribute>
- <xsl:for-each select="/files/dll[contains(.,'/vte-sharp')]">
- <xsl:element name="Assembly"><xsl:attribute name="file"><xsl:value-of select="." /></xsl:attribute></xsl:element>
- </xsl:for-each>
- </Package>
- <Package name="glib-sharp-2.0" gacRoot="true">
- <xsl:attribute name="version"><xsl:value-of select="/files/gtkversion"/></xsl:attribute>
- <xsl:for-each select="/files/dll[contains(.,'/glib-sharp')]">
- <xsl:element name="Assembly"><xsl:attribute name="file"><xsl:value-of select="." /></xsl:attribute></xsl:element>
- </xsl:for-each>
- </Package>
- <Package name="rsvg-sharp-2.0" gacRoot="true">
- <xsl:attribute name="version"><xsl:value-of select="/files/gtkversion"/></xsl:attribute>
- <xsl:for-each select="/files/dll[contains(.,'/rsvg-sharp')]">
- <xsl:element name="Assembly"><xsl:attribute name="file"><xsl:value-of select="." /></xsl:attribute></xsl:element>
- </xsl:for-each>
- </Package>
- <Package name="gtk-dotnet-2.0" gacRoot="true">
- <xsl:attribute name="version"><xsl:value-of select="/files/gtkversion"/></xsl:attribute>
- <xsl:for-each select="/files/dll[contains(.,'/gtk-dotnet')]">
- <xsl:element name="Assembly"><xsl:attribute name="file"><xsl:value-of select="." /></xsl:attribute></xsl:element>
- </xsl:for-each>
- </Package>
- <Package name="gconf-sharp-2.0" gacRoot="true">
- <xsl:attribute name="version"><xsl:value-of select="/files/gtkversion"/></xsl:attribute>
- <xsl:for-each select="/files/dll[contains(.,'/gconf-sharp')]">
- <xsl:element name="Assembly"><xsl:attribute name="file"><xsl:value-of select="." /></xsl:attribute></xsl:element>
- </xsl:for-each>
- </Package>
- <Package name="glade-sharp-2.0" gacRoot="true">
- <xsl:attribute name="version"><xsl:value-of select="/files/gtkversion"/></xsl:attribute>
- <xsl:for-each select="/files/dll[contains(.,'/glade-sharp')]">
- <xsl:element name="Assembly"><xsl:attribute name="file"><xsl:value-of select="." /></xsl:attribute></xsl:element>
- </xsl:for-each>
- </Package>
- <Package name="gnome-sharp-2.0" gacRoot="true">
- <xsl:attribute name="version"><xsl:value-of select="/files/gtkversion"/></xsl:attribute>
- <xsl:for-each select="/files/dll[contains(.,'/gnome-sharp')]">
- <xsl:element name="Assembly"><xsl:attribute name="file"><xsl:value-of select="." /></xsl:attribute></xsl:element>
- </xsl:for-each>
- </Package>
- <Package name="gnome-vfs-sharp-2.0" gacRoot="true">
- <xsl:attribute name="version"><xsl:value-of select="/files/gtkversion"/></xsl:attribute>
- <xsl:for-each select="/files/dll[contains(.,'/gnome-vfs-sharp')]">
- <xsl:element name="Assembly"><xsl:attribute name="file"><xsl:value-of select="." /></xsl:attribute></xsl:element>
- </xsl:for-each>
- </Package>
- <Package name="gtkhtml-sharp-2.0" gacRoot="true">
- <xsl:attribute name="version"><xsl:value-of select="/files/gtkversion"/></xsl:attribute>
- <xsl:for-each select="/files/dll[contains(.,'/gtkhtml-sharp')]">
- <xsl:element name="Assembly"><xsl:attribute name="file"><xsl:value-of select="." /></xsl:attribute></xsl:element>
- </xsl:for-each>
- </Package>
- </Extension>
-</Addin>
-</xsl:template>
-</xsl:stylesheet>
diff --git a/extras/GtkSourceViewEditor/MonoDevelop.SourceEditor.addin.xml b/extras/GtkSourceViewEditor/MonoDevelop.SourceEditor.addin.xml
deleted file mode 100644
index 54b711c7a9..0000000000
--- a/extras/GtkSourceViewEditor/MonoDevelop.SourceEditor.addin.xml
+++ /dev/null
@@ -1,85 +0,0 @@
-<Addin id = "SourceEditor"
- namespace = "MonoDevelop"
- name = "Text Editor"
- author = "Ben Maurer, Lluis Sanchez, Todd Berman, Michael Hutchinson"
- copyright = ""
- url = ""
- description = "Provides a text editor for the MonoDevelop IDE based on GtkSourceView 2"
- category = "MonoDevelop Core"
- version = "4.2.3">
-
- <Runtime>
- <Import assembly="MonoDevelop.SourceEditor.dll"/>
- </Runtime>
-
- <Dependencies>
- <Addin id="Core" version="4.2.3"/>
- <Addin id="Ide" version="4.2.3"/>
- </Dependencies>
-
- <!-- Extension points -->
-
- <ExtensionPoint path = "/MonoDevelop/SourceEditor/ContextMenu/Editor" name = "Editor context menu">
- <Description>Context menu for the editor.</Description>
- <ExtensionNodeSet id="MonoDevelop.Components.Commands.ItemSet" />
- </ExtensionPoint>
-
- <ExtensionPoint path = "/MonoDevelop/SourceEditor/EditActions" name = "Custom edit actions">
- <Description>Custom edit actions for the editor.</Description>
- <ExtensionNode name="EditAction" type="MonoDevelop.SourceEditor.Codons.EditActionCodon"/>
- </ExtensionPoint>
-
- <ExtensionPoint path = "/MonoDevelop/SourceEditor/Formatters" name = "Formatters">
- <Description>Custom edit actions for the editor.</Description>
- <ExtensionNode name="Class" />
- </ExtensionPoint>
-
-
- <!-- Extensions -->
-
- <Extension path = "/MonoDevelop/Ide/Commands/TextEditor">
- <Command id = "MonoDevelop.SourceEditor.EditorCommands.HighlightingTypeList"
- type = "array|radio"
- _label = "" />
- <Command id = "MonoDevelop.SourceEditor.EditorCommands.ShowBufferOptions"
- _label = "Buffer Options"
- icon = "md-properties-icon" />
- </Extension>
-
- <Extension path = "/MonoDevelop/SourceEditor/ContextMenu/Editor">
- <CommandItem id = "MonoDevelop.Ide.Commands.RefactoryCommands.CurrentRefactoryOperations" />
- <CommandItem id = "MonoDevelop.Ide.Commands.HelpCommands.Help" />
- <CommandItem id = "MonoDevelop.Ide.Commands.FileCommands.Save" />
- <CommandItem id = "MonoDevelop.Ide.Commands.FileCommands.SaveAs" />
- <CommandItem id = "MonoDevelop.Ide.Commands.FileCommands.CloseFile" />
- <SeparatorItem id = "Separator1" />
- <CommandItem id = "MonoDevelop.Ide.Commands.EditCommands.ToggleCodeComment" />
- <CommandItem id = "MonoDevelop.Ide.Commands.EditCommands.IndentSelection" />
- <CommandItem id = "MonoDevelop.Ide.Commands.EditCommands.UnIndentSelection" />
- <ItemSet id = "Advanced" _label = "_Advanced">
- <CommandItem id = "MonoDevelop.Ide.Commands.EditCommands.UppercaseSelection" />
- <CommandItem id = "MonoDevelop.Ide.Commands.EditCommands.LowercaseSelection" />
- </ItemSet>
- </Extension>
-
- <Extension path = "/MonoDevelop/Ide/GlobalOptionsDialog">
- <Section id="GtkSourceViewTextEditor" _label="GtkSourceView Text Editor">
- <Section id="General" insertbefore="Formatting" _label="General" fill="true" class="MonoDevelop.SourceEditor.Gui.OptionPanels.GeneralTextEditorPanel" icon="md-prefs-text-editor-general" />
- <Section id="Markers" _label="Markers and Rulers" class="MonoDevelop.SourceEditor.Gui.OptionPanels.MarkersTextEditorPanel" icon="md-prefs-markers-rulers" />
- <Section id="Behavior" _label="Behavior" class="MonoDevelop.SourceEditor.Gui.OptionPanels.BehaviorTextEditorPanel" icon="prefs-text-editor-behavior" />
- </Section>
- </Extension>
-
- <Extension path = "/MonoDevelop/SourceEditor/EditActions" extension-nodes="EditAction" description="Custom edit actions.">
- <!-- these are the default editor actions -->
- <EditAction id = "Tab" class = "MonoDevelop.SourceEditor.Actions.Tab" keys = "Tab"/>
- <EditAction id = "Return" class = "MonoDevelop.SourceEditor.Actions.Return" keys = "Return"/>
- </Extension>
-
- <Extension path = "/MonoDevelop/Ide/DisplayBindings">
- <DisplayBinding id = "NewText" insertafter="DefaultDisplayBinding"
- supportedformats = "Text Files,Source Files"
- class = "MonoDevelop.SourceEditor.Gui.SourceEditorDisplayBinding" />
- </Extension>
-
-</Addin>
diff --git a/extras/JavaBinding/AssemblyInfo.cs b/extras/JavaBinding/AssemblyInfo.cs
deleted file mode 100644
index cf34872f0d..0000000000
--- a/extras/JavaBinding/AssemblyInfo.cs
+++ /dev/null
@@ -1,9 +0,0 @@
-// Autogenerated from JavaBinding.addin.xml
-
-using System.Reflection;
-
-[assembly: AssemblyProduct ("MonoDevelop")]
-[assembly: AssemblyTitle ("Java Language Binding")]
-[assembly: AssemblyDescription ("Java Language Binding")]
-[assembly: AssemblyVersion ("2.6")]
-[assembly: AssemblyCopyright ("GPL")]
diff --git a/extras/JavaBinding/COPYING b/extras/JavaBinding/COPYING
deleted file mode 100644
index 623b6258a1..0000000000
--- a/extras/JavaBinding/COPYING
+++ /dev/null
@@ -1,340 +0,0 @@
- GNU GENERAL PUBLIC LICENSE
- Version 2, June 1991
-
- Copyright (C) 1989, 1991 Free Software Foundation, Inc.
- 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
- Everyone is permitted to copy and distribute verbatim copies
- of this license document, but changing it is not allowed.
-
- Preamble
-
- The licenses for most software are designed to take away your
-freedom to share and change it. By contrast, the GNU General Public
-License is intended to guarantee your freedom to share and change free
-software--to make sure the software is free for all its users. This
-General Public License applies to most of the Free Software
-Foundation's software and to any other program whose authors commit to
-using it. (Some other Free Software Foundation software is covered by
-the GNU Library General Public License instead.) You can apply it to
-your programs, too.
-
- When we speak of free software, we are referring to freedom, not
-price. Our General Public Licenses are designed to make sure that you
-have the freedom to distribute copies of free software (and charge for
-this service if you wish), that you receive source code or can get it
-if you want it, that you can change the software or use pieces of it
-in new free programs; and that you know you can do these things.
-
- To protect your rights, we need to make restrictions that forbid
-anyone to deny you these rights or to ask you to surrender the rights.
-These restrictions translate to certain responsibilities for you if you
-distribute copies of the software, or if you modify it.
-
- For example, if you distribute copies of such a program, whether
-gratis or for a fee, you must give the recipients all the rights that
-you have. You must make sure that they, too, receive or can get the
-source code. And you must show them these terms so they know their
-rights.
-
- We protect your rights with two steps: (1) copyright the software, and
-(2) offer you this license which gives you legal permission to copy,
-distribute and/or modify the software.
-
- Also, for each author's protection and ours, we want to make certain
-that everyone understands that there is no warranty for this free
-software. If the software is modified by someone else and passed on, we
-want its recipients to know that what they have is not the original, so
-that any problems introduced by others will not reflect on the original
-authors' reputations.
-
- Finally, any free program is threatened constantly by software
-patents. We wish to avoid the danger that redistributors of a free
-program will individually obtain patent licenses, in effect making the
-program proprietary. To prevent this, we have made it clear that any
-patent must be licensed for everyone's free use or not licensed at all.
-
- The precise terms and conditions for copying, distribution and
-modification follow.
-
- GNU GENERAL PUBLIC LICENSE
- TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
-
- 0. This License applies to any program or other work which contains
-a notice placed by the copyright holder saying it may be distributed
-under the terms of this General Public License. The "Program", below,
-refers to any such program or work, and a "work based on the Program"
-means either the Program or any derivative work under copyright law:
-that is to say, a work containing the Program or a portion of it,
-either verbatim or with modifications and/or translated into another
-language. (Hereinafter, translation is included without limitation in
-the term "modification".) Each licensee is addressed as "you".
-
-Activities other than copying, distribution and modification are not
-covered by this License; they are outside its scope. The act of
-running the Program is not restricted, and the output from the Program
-is covered only if its contents constitute a work based on the
-Program (independent of having been made by running the Program).
-Whether that is true depends on what the Program does.
-
- 1. You may copy and distribute verbatim copies of the Program's
-source code as you receive it, in any medium, provided that you
-conspicuously and appropriately publish on each copy an appropriate
-copyright notice and disclaimer of warranty; keep intact all the
-notices that refer to this License and to the absence of any warranty;
-and give any other recipients of the Program a copy of this License
-along with the Program.
-
-You may charge a fee for the physical act of transferring a copy, and
-you may at your option offer warranty protection in exchange for a fee.
-
- 2. You may modify your copy or copies of the Program or any portion
-of it, thus forming a work based on the Program, and copy and
-distribute such modifications or work under the terms of Section 1
-above, provided that you also meet all of these conditions:
-
- a) You must cause the modified files to carry prominent notices
- stating that you changed the files and the date of any change.
-
- b) You must cause any work that you distribute or publish, that in
- whole or in part contains or is derived from the Program or any
- part thereof, to be licensed as a whole at no charge to all third
- parties under the terms of this License.
-
- c) If the modified program normally reads commands interactively
- when run, you must cause it, when started running for such
- interactive use in the most ordinary way, to print or display an
- announcement including an appropriate copyright notice and a
- notice that there is no warranty (or else, saying that you provide
- a warranty) and that users may redistribute the program under
- these conditions, and telling the user how to view a copy of this
- License. (Exception: if the Program itself is interactive but
- does not normally print such an announcement, your work based on
- the Program is not required to print an announcement.)
-
-These requirements apply to the modified work as a whole. If
-identifiable sections of that work are not derived from the Program,
-and can be reasonably considered independent and separate works in
-themselves, then this License, and its terms, do not apply to those
-sections when you distribute them as separate works. But when you
-distribute the same sections as part of a whole which is a work based
-on the Program, the distribution of the whole must be on the terms of
-this License, whose permissions for other licensees extend to the
-entire whole, and thus to each and every part regardless of who wrote it.
-
-Thus, it is not the intent of this section to claim rights or contest
-your rights to work written entirely by you; rather, the intent is to
-exercise the right to control the distribution of derivative or
-collective works based on the Program.
-
-In addition, mere aggregation of another work not based on the Program
-with the Program (or with a work based on the Program) on a volume of
-a storage or distribution medium does not bring the other work under
-the scope of this License.
-
- 3. You may copy and distribute the Program (or a work based on it,
-under Section 2) in object code or executable form under the terms of
-Sections 1 and 2 above provided that you also do one of the following:
-
- a) Accompany it with the complete corresponding machine-readable
- source code, which must be distributed under the terms of Sections
- 1 and 2 above on a medium customarily used for software interchange; or,
-
- b) Accompany it with a written offer, valid for at least three
- years, to give any third party, for a charge no more than your
- cost of physically performing source distribution, a complete
- machine-readable copy of the corresponding source code, to be
- distributed under the terms of Sections 1 and 2 above on a medium
- customarily used for software interchange; or,
-
- c) Accompany it with the information you received as to the offer
- to distribute corresponding source code. (This alternative is
- allowed only for noncommercial distribution and only if you
- received the program in object code or executable form with such
- an offer, in accord with Subsection b above.)
-
-The source code for a work means the preferred form of the work for
-making modifications to it. For an executable work, complete source
-code means all the source code for all modules it contains, plus any
-associated interface definition files, plus the scripts used to
-control compilation and installation of the executable. However, as a
-special exception, the source code distributed need not include
-anything that is normally distributed (in either source or binary
-form) with the major components (compiler, kernel, and so on) of the
-operating system on which the executable runs, unless that component
-itself accompanies the executable.
-
-If distribution of executable or object code is made by offering
-access to copy from a designated place, then offering equivalent
-access to copy the source code from the same place counts as
-distribution of the source code, even though third parties are not
-compelled to copy the source along with the object code.
-
- 4. You may not copy, modify, sublicense, or distribute the Program
-except as expressly provided under this License. Any attempt
-otherwise to copy, modify, sublicense or distribute the Program is
-void, and will automatically terminate your rights under this License.
-However, parties who have received copies, or rights, from you under
-this License will not have their licenses terminated so long as such
-parties remain in full compliance.
-
- 5. You are not required to accept this License, since you have not
-signed it. However, nothing else grants you permission to modify or
-distribute the Program or its derivative works. These actions are
-prohibited by law if you do not accept this License. Therefore, by
-modifying or distributing the Program (or any work based on the
-Program), you indicate your acceptance of this License to do so, and
-all its terms and conditions for copying, distributing or modifying
-the Program or works based on it.
-
- 6. Each time you redistribute the Program (or any work based on the
-Program), the recipient automatically receives a license from the
-original licensor to copy, distribute or modify the Program subject to
-these terms and conditions. You may not impose any further
-restrictions on the recipients' exercise of the rights granted herein.
-You are not responsible for enforcing compliance by third parties to
-this License.
-
- 7. If, as a consequence of a court judgment or allegation of patent
-infringement or for any other reason (not limited to patent issues),
-conditions are imposed on you (whether by court order, agreement or
-otherwise) that contradict the conditions of this License, they do not
-excuse you from the conditions of this License. If you cannot
-distribute so as to satisfy simultaneously your obligations under this
-License and any other pertinent obligations, then as a consequence you
-may not distribute the Program at all. For example, if a patent
-license would not permit royalty-free redistribution of the Program by
-all those who receive copies directly or indirectly through you, then
-the only way you could satisfy both it and this License would be to
-refrain entirely from distribution of the Program.
-
-If any portion of this section is held invalid or unenforceable under
-any particular circumstance, the balance of the section is intended to
-apply and the section as a whole is intended to apply in other
-circumstances.
-
-It is not the purpose of this section to induce you to infringe any
-patents or other property right claims or to contest validity of any
-such claims; this section has the sole purpose of protecting the
-integrity of the free software distribution system, which is
-implemented by public license practices. Many people have made
-generous contributions to the wide range of software distributed
-through that system in reliance on consistent application of that
-system; it is up to the author/donor to decide if he or she is willing
-to distribute software through any other system and a licensee cannot
-impose that choice.
-
-This section is intended to make thoroughly clear what is believed to
-be a consequence of the rest of this License.
-
- 8. If the distribution and/or use of the Program is restricted in
-certain countries either by patents or by copyrighted interfaces, the
-original copyright holder who places the Program under this License
-may add an explicit geographical distribution limitation excluding
-those countries, so that distribution is permitted only in or among
-countries not thus excluded. In such case, this License incorporates
-the limitation as if written in the body of this License.
-
- 9. The Free Software Foundation may publish revised and/or new versions
-of the General Public License from time to time. Such new versions will
-be similar in spirit to the present version, but may differ in detail to
-address new problems or concerns.
-
-Each version is given a distinguishing version number. If the Program
-specifies a version number of this License which applies to it and "any
-later version", you have the option of following the terms and conditions
-either of that version or of any later version published by the Free
-Software Foundation. If the Program does not specify a version number of
-this License, you may choose any version ever published by the Free Software
-Foundation.
-
- 10. If you wish to incorporate parts of the Program into other free
-programs whose distribution conditions are different, write to the author
-to ask for permission. For software which is copyrighted by the Free
-Software Foundation, write to the Free Software Foundation; we sometimes
-make exceptions for this. Our decision will be guided by the two goals
-of preserving the free status of all derivatives of our free software and
-of promoting the sharing and reuse of software generally.
-
- NO WARRANTY
-
- 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
-FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
-OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
-PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
-OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
-TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
-PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
-REPAIR OR CORRECTION.
-
- 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
-WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
-REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
-INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
-OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
-TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
-YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
-PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
-POSSIBILITY OF SUCH DAMAGES.
-
- END OF TERMS AND CONDITIONS
-
- How to Apply These Terms to Your New Programs
-
- If you develop a new program, and you want it to be of the greatest
-possible use to the public, the best way to achieve this is to make it
-free software which everyone can redistribute and change under these terms.
-
- To do so, attach the following notices to the program. It is safest
-to attach them to the start of each source file to most effectively
-convey the exclusion of warranty; and each file should have at least
-the "copyright" line and a pointer to where the full notice is found.
-
- <one line to give the program's name and a brief idea of what it does.>
- Copyright (C) <year> <name of author>
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-
-
-Also add information on how to contact you by electronic and paper mail.
-
-If the program is interactive, make it output a short notice like this
-when it starts in an interactive mode:
-
- Gnomovision version 69, Copyright (C) year name of author
- Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
- This is free software, and you are welcome to redistribute it
- under certain conditions; type `show c' for details.
-
-The hypothetical commands `show w' and `show c' should show the appropriate
-parts of the General Public License. Of course, the commands you use may
-be called something other than `show w' and `show c'; they could even be
-mouse-clicks or menu items--whatever suits your program.
-
-You should also get your employer (if you work as a programmer) or your
-school, if any, to sign a "copyright disclaimer" for the program, if
-necessary. Here is a sample; alter the names:
-
- Yoyodyne, Inc., hereby disclaims all copyright interest in the program
- `Gnomovision' (which makes passes at compilers) written by James Hacker.
-
- <signature of Ty Coon>, 1 April 1989
- Ty Coon, President of Vice
-
-This General Public License does not permit incorporating your program into
-proprietary programs. If your program is a subroutine library, you may
-consider it more useful to permit linking proprietary applications with the
-library. If this is what you want to do, use the GNU Library General
-Public License instead of this License.
diff --git a/extras/JavaBinding/ChangeLog b/extras/JavaBinding/ChangeLog
deleted file mode 100644
index ba09df7170..0000000000
--- a/extras/JavaBinding/ChangeLog
+++ /dev/null
@@ -1,796 +0,0 @@
-2010-06-14 Lluis Sanchez Gual <lluis@novell.com>
-
- * configure: Bump MD version.
-
-2010-06-04 Lluis Sanchez Gual <lluis@novell.com>
-
- * templates/JavaConsoleApplicationProject.xpt.xml:
- * templates/IkvmConsoleApplicationProject.xpt.xml: Set the
- external console flag for console projects.
-
-2010-05-20 Lluis Sanchez Gual <lluis@novell.com>
-
- * configure: Bump MD version.
-
-2010-05-19 Lluis Sanchez Gual <lluis@novell.com>
-
- * IKVMCompilerManager.cs: Properly detect warnings. Fixes bug
- #602528 - java warnings taken as errors.
-
- * gtk-gui/gui.stetic: Flush.
-
-2010-05-05 Lluis Sanchez Gual <lluis@novell.com>
-
- * JavaBinding.addin.xml: Remove duplicated options section.
-
-2010-03-22 Lluis Sanchez Gual <lluis@novell.com>
-
- * configure:
- * AssemblyInfo.cs:
- * JavaBinding.addin.xml: Bumped MD version.
-
-2010-03-17 Lluis Sanchez Gual <lluis@novell.com>
-
- * JavaBinding.csproj: Flush.
-
-2010-03-17 Lluis Sanchez Gual <lluis@novell.com>
-
- * JavaBinding.addin.xml:
- * JavaLanguageBinding.cs:
- * Gui/GlobalOptionsPanel.cs:
- * Gui/ProjectConfigurationPropertyPanel.cs: Merged MD.Projects
- into MD.Core, and MD.Projects.Gui, MD.Core.Gui and
- MD.Components into MD.Ide.
-
-2010-03-01 Lluis Sanchez Gual <lluis@novell.com>
-
- * JavaBinding.sln: The invariant policy can't be used anymore
- as base policy set.
-
-2010-02-16 Lluis Sanchez Gual <lluis@novell.com>
-
- * JavaBinding.sln:
- * gtk-gui/gui.stetic:
- * JavaBinding.csproj:
- * gtk-gui/generated.cs:
- * gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:
- * gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs: Flush.
-
-2009-12-01 Lluis Sanchez Gual <lluis@novell.com>
-
- * IKVMCompilerManager.cs:
- * JavaLanguageBinding.cs: Introduced the ConfigurationSelector
- class to all methods that previously took a configuration
- name as string. This eliminates the ambiguity between
- solution configuration names and project configuration
- names.
-
-2009-11-10 Lluis Sanchez Gual <lluis@novell.com>
-
- * templates/IkvmLibraryProject.xpt.xml: Removed gtk#
- references from the library template.
-
-2009-10-30 Lluis Sanchez Gual <lluis@novell.com>
-
- * configure:
- * AssemblyInfo.cs:
- * JavaBinding.addin.xml: Bump MD version.
-
-2009-10-09 Lluis Sanchez Gual <lluis@novell.com>
-
- * JavaBinding.sln:
- * gtk-gui/gui.stetic: Flush.
-
-2009-10-09 Lluis Sanchez Gual <lluis@novell.com>
-
- * IKVMCompilerManager.cs: Improve error message when the java
- compiler is not found.
-
- * JavaBinding.csproj: Flush.
-
-2009-10-07 Lluis Sanchez Gual <lluis@novell.com>
-
- * configure:
- * AssemblyInfo.cs:
- * JavaBinding.addin.xml: Bump MD version.
-
-2009-09-07 Lluis Sanchez Gual <lluis@novell.com>
-
- * JavaLanguageBinding.cs: Add support for CLR 2.0.
-
- * JavaBinding.sln:
- * gtk-gui/gui.stetic: Update.
-
-2009-08-26 Lluis Sanchez Gual <lluis@novell.com>
-
- * configure:
- * JavaBinding.csproj:
- * gtk-gui/gui.stetic: We now depend on gtk# 2.12.8, Mono 2.4,
- and Mono.Addins 0.4.
-
-2009-06-17 Lluis Sanchez Gual <lluis@novell.com>
-
- * JavaBinding.sln:
- * JavaBinding.addin.xml: Remove obsolete extension.
-
-2009-04-20 Michael Hutchinson <mhutchinson@novell.com>
-
- * JavaLanguageBinding.cs: Track comment tag API.
-
-2009-04-15 Lluis Sanchez Gual <lluis@novell.com>
-
- * configure:
- * AssemblyInfo.cs:
- * JavaBinding.addin.xml: Bump MD version.
-
-2009-03-20 Michael Hutchinson <mhutchinson@novell.com>
-
- * templates/IkvmGtkApplicationProject.xpt.xml:
- * templates/IkvmGnomeApplicationProject.xpt.xml:
- * templates/IkvmGladeApplicationProject.xpt.xml: Don't require
- specific GTK# versions.
-
-2009-03-17 Michael Hutchinson <mhutchinson@novell.com>
-
- * IKVMCompilerManager.cs: Track API.
-
-2009-02-26 Michael Hutchinson <mhutchinson@novell.com>
-
- * JavaBinding.sln: Fix translation projects' GUIDs.
-
-2009-02-25 Michael Hutchinson <mhutchinson@novell.com>
-
- * JavaBinding.sln: Set policies. Remove unused name attribute.
-
-2009-02-25 Lluis Sanchez Gual <lluis@novell.com>
-
- * JavaLanguageBinding.cs: Track api changes.
-
-2009-02-20 Lluis Sanchez Gual <lluis@novell.com>
-
- * JavaBinding.csproj: Updated references.
-
-2009-02-11 Lluis Sanchez Gual <lluis@novell.com>
-
- * JavaLanguageBinding.cs:
- * IKVMCompilerManager.cs: Track API changes. Use the new
- ProjectItem collection.
-
-2009/02/06 Lluis Sanchez Gual <lluis@novell.com>
-
- * JavaBinding.sln: Flush.
-
-2009/02/06 Lluis Sanchez Gual <lluis@novell.com>
-
- * JavaBinding.mds:
- * JavaBinding.sln:
- * JavaBinding.mdp:
- * JavaBinding.csproj: Migrated to MSBuild file format.
-
-2009/02/03 Lluis Sanchez Gual <lluis@novell.com>
-
- * configure:
- * AssemblyInfo.cs:
- * JavaBinding.addin.xml: Bump MD version.
-
-2009/02/03 Lluis Sanchez Gual <lluis@novell.com>
-
- * JavaBinding.mds:
- * gtk-gui/gui.stetic:
- * gtk-gui/generated.cs:
- * gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:
- * gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs: Flush.
-
-2009-01-15 Lluis Sanchez Gual <lluis@novell.com>
-
- * Gui/ProjectConfigurationPropertyPanel.cs: Remove unused parameter.
-
- * JavaBinding.mdp: Updated.
-
-2009-01-15 Andrés G. Aragoneses <aaragoneses@novell.com>
-
- * JavaLanguageBinding.cs: Fix warning (duplicate using statement).
-
-2008-12-09 Lluis Sanchez Gual <lluis@novell.com>
-
- * JavaBinding.mdp: Don't require a specific version of Mono.Addins.
-
-2008-12-02 Michael Hutchinson <mhutchinson@novell.com>
-
- * AssemblyInfo.cs:
- * JavaBinding.mdp:
- * JavaBinding.make: Add AssemblyInfo.cs files that are autogenerated
- from the addin manifests.
-
-2008-11-05 Lluis Sanchez Gual <lluis@novell.com>
-
- * configure:
- * JavaBinding.addin.xml: Bump MD version.
-
-2008-09-17 Lluis Sanchez Gual <lluis@novell.com>
-
- * JavaBinding.mdp: Updated projects.
-
-2008-09-12 Lluis Sanchez Gual <lluis@novell.com>
-
- * JavaLanguageBinding.cs: Track api changes.
-
-2008-09-12 Mike Krüger <mkrueger@novell.com>
-
- * JavaLanguageBinding.cs: Updated java backend binding.
-
-2008-08-18 Lluis Sanchez Gual <lluis@novell.com>
-
- * JavaBinding.mdp: Fix reference to Mono.TextEditor. The incorrect
- add-in version number causes problems in the makefile
- synchronization.
-
-2008-07-21 Lluis Sanchez Gual <lluis@novell.com>
-
- * Project/JavaCompilerParameters.cs: Moved serialization engine to
- MonoDevelop.Core. Use new syntax for specifying attribute scope.
-
-2008-06-25 Lluis Sanchez Gual <lluis@novell.com>
-
- * JavaBinding.make, md1format.xml, JavaBinding.addin.xml,
- JavaBinding.mdp, Project/JavaCompilerParameters.cs: Add support for
- msbuild format.
-
-2008-06-04 Lluis Sanchez Gual <lluis@novell.com>
-
- * configure, JavaBinding.addin.xml: Bump MD version.
-
-2008-05-28 Michael Hutchinson <mhutchinson@novell.com>
-
- * po/Makefile: Remove bash-isms.
-
-2008-05-22 Lluis Sanchez Gual <lluis@novell.com>
-
- * JavaBinding.addin.xml: Merged the extension points for project and
- solution option panels into a single extension point. A single
- extension point will now be used for all kinds of items. Extension
- conditions can be used to make panels visible only for some
- specific item types.
-
-2008-05-22 Lluis Sanchez Gual <lluis@novell.com>
-
- * JavaLanguageBinding.cs, IKVMCompilerManager.cs: Replaced
- ICompilerResult/DefaultCompilerResult/CompilerResults by a new
- BuildResult class, which has owner information at error level, so
- it is possible to know which project generated an error when
- building a solution. Updated Task and TaskService to use the new
- owner information.
-
-2008-05-21 Lluis Sanchez Gual <lluis@novell.com>
-
- * Gui/ProjectConfigurationPropertyPanel.cs, JavaLanguageBinding.cs,
- JavaBinding.addin.xml, JavaBinding.mdp, JavaBinding.mds,
- IKVMCompilerManager.cs, gtk-gui/gui.stetic: New project model
- changes.
-
-2008-05-08 Michael Hutchinson <mhutchinson@novell.com>
-
- * JavaBinding.addin.xml: Set "isText" attribute on the mimetype
- definitions.
-
-2008-04-11 Lluis Sanchez Gual <lluis@novell.com>
-
- * JavaBinding.addin.xml: Use the new mime type extension to register
- new file types.
-
-2008-03-10 Lluis Sanchez Gual <lluis@novell.com>
-
- * JavaBinding.make, JavaBinding.addin.xml, JavaBinding.mdp,
- gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs,
- gtk-gui/gui.stetic, icons/java-22.png, icons/java-16.png: Added
- icons to the options pad.
-
-2008-03-07 Michael Hutchinson <mhutchinson@novell.com>
-
- * Gui/GlobalOptionsPanel.cs:
- * JavaBinding.addin.xml: Track API changes for global options panel.
-
-2008-02-24 Enver ALTIN <ealtin@gmail.com>
-
- * po/tr.po: Updated Turkish translation.
-
-2008-02-13 Geoff Norton <gnorton@novell.com>
-
- * JavaBinding.mdp:
- * JavaBinding.make:
- * configure: Drop unused gnome# dependency.
-
-2008-02-05 Lluis Sanchez Gual <lluis@novell.com>
-
- * COPYING, Makefile: Added COPYING file with GPL2 license.
- * Makefile.am: Removed unused file.
-
-2008-01-28 Michael Hutchinson <mhutchinson@novell.com>
-
- * po/nl.po: Updated translation by André Offringa.
- * po/es.po: Updated translation by Andrés G. Aragoneses.
- * po/de.po: Updated translation by anonymous GHOP student.
-
-2008-01-25 Lluis Sanchez Gual <lluis@novell.com>
-
- * configure, JavaBinding.addin.xml: Update MD version.
-
-2008-01-24 David Makovský (Yakeen) <yakeen@sannyas-on.net>
-
- * cs.po: Updated translation.
-
-2008-01-23 Atsushi Enomoto <atsushi@ximian.com>
-
- * po/ja.po : made it 100% up-to-date.
-
-2008-01-22 Michael Hutchinson <mhutchinson@novell.com>
-
- * po/messages.po: Add to svn so that translators don't have to build MD.
- * po/hu.po: Added new translation.
- * po/po.mdse:
- * po/Makefile: Updated. Fix update-po target and add statistics target.
-
-2008-01-22 Lluis Sanchez Gual <lluis@novell.com>
-
- * po/gl.po, po/cs.po, po/pt_BR.po, po/fr.po, po/es.po, po/sl_SI.po,
- po/pl.po, po/it.po, po/pt.po, po/ca.po, po/da.po, po/tr.po, po/ru.po,
- po/de.po, po/sv.po, po/ja.po, po/zh_TW.po, po/zh_CN.po: Updated
- translations.
- * po/nl.po, po/po.mdse, po/id.po: Added new translations.
-
-2008-01-22 Lluis Sanchez Gual <lluis@novell.com>
-
- * IKVMCompilerManager.cs: Improved handling of errors when running ikvmstub.
- * gtk-gui/gui.stetic: Updated.
-
-2008-01-15 Michael Hutchinson <mhutchinson@novell.com>
-
- * templates/IkvmGnomeApplicationProject.xpt.xml,
- templates/JavaApplet.xft.xml,
- templates/IkvmGladeApplicationProject.xpt.xml,
- templates/JavaConsoleApplicationProject.xpt.xml,
- templates/JavaOKDialog.xft.xml, templates/JavaFrame.xft.xml,
- templates/IkvmLibraryProject.xpt.xml, templates/EmptyJavaFile.xft.xml,
- templates/JavaPanel.xft.xml, templates/JavaDialog.xft.xml,
- templates/IkvmGtkApplicationProject.xpt.xml,
- templates/EmptyJavaProject.xpt.xml, templates/JavaApplication.xft.xml,
- templates/JavaApplicationProject.xpt.xml,
- templates/IkvmConsoleApplicationProject.xpt.xml: Make template
- categories translatable.
-
-2007-12-29 David Makovský (Yakeen) <yakeen@sannyas-on.net>
-
- * po/cs.po: updated translation
-
-2007-12-18 Lluis Sanchez Gual <lluis@novell.com>
-
- * JavaBinding.make: Add missing pkg-config path update.
-
-2007-12-17 Lluis Sanchez Gual <lluis@novell.com>
-
- * configure: Updated add-in versions.
-
-2007-12-14 Lluis Sanchez Gual <lluis@novell.com>
-
- * JavaBinding.mdp: Updated project file. The order of extended properties
- won't change anymore.
-
-2007-12-12 Lluis Sanchez Gual <lluis@novell.com>
-
- * JavaBinding.addin.xml: Bump add-in versions.
-
-2007-12-05 Lluis Sanchez Gual <lluis@novell.com>
-
- * configure: Use bash to run the config scripts.
-
-2007-12-04 Lluis Sanchez Gual <lluis@novell.com>
-
- * JavaBinding.mdp: Updated project files.
-
-2007-12-04 Lluis Sanchez Gual <lluis@novell.com>
-
- * po/Makefile: Properly install .mo files.
-
-2007-12-04 Lluis Sanchez Gual <lluis@novell.com>
-
- * configure, JavaBinding.make, JavaBinding.addin.xml, JavaBinding.mdp,
- JavaBinding.mds, Makefile.include, rules.make,
- gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs,
- gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs, gtk-gui/gui.stetic,
- monodevelop-java.pc.in, Makefile, po, po/gl.po, po/cs.po, po/pt_BR.po,
- po/es.po, po/fr.po, po/sl_SI.po, po/pl.po, po/it.po, po/ca.po, po/pt.po,
- po/da.po, po/tr.po, po/ru.po, po/sv.po, po/de.po, po/po.mdse, po/ja.po,
- po/zh_TW.po, po/Makefile, po/zh_CN.po: Directory reorganization.
-
-2007-12-03 Lluis Sanchez Gual <lluis@novell.com>
-
- * JavaBinding.mdp, Makefile.am, Java.glade: Remove unused glade file.
-
-2007-11-20 Lluis Sanchez Gual <lluis@novell.com>
-
- * gtk-gui, gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs,
- gtk-gui/generated.cs, gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs,
- gtk-gui/gui.stetic: Added missing files.
-
-2007-11-20 Lluis Sanchez Gual <lluis@novell.com>
-
- * Gui/GlobalOptionsPanel.cs, Gui/ProjectConfigurationPropertyPanel.cs,
- JavaBinding.mdp, Makefile.am: Migrated to Stetic.
-
-2007-11-15 Mike Krüger <mkrueger@novell.com>
-
- * JavaBindingCompilerServices.cs, JavaLanguageBinding.cs,
- JavaBinding.addin.xml, JavaBinding.mdp, IKVMCompilerManager.cs,
- Makefile.am: Worked on the java binding (compile & run of all sample
- projects work).
-
- Removed the gnome sample project, because there seems to be something
- wrong with the generated *.jar (no symbol for Modules.UI).
-
-2007-10-29 Lluis Sanchez Gual <lluis@novell.com>
-
- * JavaBinding.addin.xml: Bump MD version.
-
-2007-10-29 Lluis Sanchez Gual <lluis@novell.com>
-
- * JavaBinding.addin.xml: Track changes in the Icon extension node.
-
-2007-10-25 Lluis Sanchez Gual <lluis@novell.com>
-
- * icons/Java.File.EmptyFile, icons/Java.File.Form, icons/Java.File.FullFile,
- icons/Java.File.NewClass, icons/Java.File.WebFile, JavaBinding.mdp,
- Makefile.am, templates/EmptyJavaFile.xft.xml,
- templates/JavaApplet.xft.xml, templates/JavaApplication.xft.xml,
- templates/JavaDialog.xft.xml, templates/JavaFrame.xft.xml,
- templates/JavaOKDialog.xft.xml, templates/JavaPanel.xft.xml: Use tango
- file icons. Removed obsolete icons.
-
-2007-10-24 Lluis Sanchez Gual <lluis@novell.com>
-
- * JavaBinding.mdp, templates/IkvmGnomeApplicationProject.xpt.xml,
- templates/IkvmGladeApplicationProject.xpt.xml,
- templates/JavaConsoleApplicationProject.xpt.xml,
- templates/IkvmLibraryProject.xpt.xml,
- templates/EmptyJavaProject.xpt.xml,
- templates/IkvmGtkApplicationProject.xpt.xml,
- templates/JavaApplicationProject.xpt.xml,
- templates/IkvmConsoleApplicationProject.xpt.xml, Makefile.am,
- icons/Java.Project.Form, icons/Java.Project.Library,
- icons/Java.Project.WebProject, icons/Java.ProjectIcon,
- icons/Java.Project.DOSProject, icons/Java.Project.UserControl,
- icons/Java.Project.EmptyProject, icons/Java.Project.ServiceProject,
- icons/java-icon-32.png, icons/Java.Project.FullProject: Updated project
- icons. Use the base project icon with an overlay to show the type.
-
-2007-10-23 Lluis Sanchez Gual <lluis@novell.com>
-
- * JavaBinding.mdp: Project file names updated by change in MD path
- functions.
-
-2007-09-21 Lluis Sanchez Gual <lluis@novell.com>
-
- * JavaBinding.addin.xml: Bump MD version.
-
-2007-09-20 Lluis Sanchez Gual <lluis@novell.com>
-
- * JavaBinding.addin.xml: Added an Other section in the MD property dialog
- and moved some options there to avoid too many branches.
-
-2007-09-04 Michael Hutchinson <MHutchinson@novell.com>
-
- * JavaLanguageBinding.cs, Gui/GlobalOptionsPanel.cs,
- Gui/ProjectConfigurationPropertyPanel.cs: Fix some compiler warnings.
-
-2007-08-31 Mike Krüger <mkrueger@novell.com>
-
- * JavaLanguageBinding.cs, Gui/GlobalOptionsPanel.cs,
- Gui/ProjectConfigurationPropertyPanel.cs: Changes due to new property
- infrastructure.
-
-2007-08-09 Lluis Sanchez Gual <lluis@novell.com>
-
- * JavaBinding.addin.xml, JavaBinding.mdp, Makefile.am: Reorganized the
- extension point hierarchy. Embedded all add-in manifests as resources.
-
-2007-07-25 Lluis Sanchez Gual <lluis@novell.com>
-
- * Parser/Resolver.cs, Parser/TypeVisitor.cs: Remove debug code.
-
-2007-05-11 Lluis Sanchez Gual <lluis@novell.com>
-
- * JavaBinding.mdp: Copy the .addins.xml file to the output dir.
-
-2007-05-04 Lluis Sanchez Gual <lluis@novell.com>
-
- * JavaBinding.addin.xml: Migration to Mono.Addins.
-
-2007-04-19 Lluis Sanchez Gual <lluis@novell.com>
-
- * JavaBinding.mdp: Don't copy referenced assemblies.
-
-2007-02-16 Lluis Sanchez Gual <lluis@novell.com>
-
- * JavaBinding.mdp: Set target runtime to 2.0.
-
-2007-02-16 Lluis Sanchez Gual <lluis@novell.com>
-
- * JavaBinding.addin.xml: Change add-in versions to 0.13.
-
-2007-02-15 Lluis Sanchez Gual <lluis@novell.com>
-
- * JavaBinding.mdp, Makefile.am: Synchronized the MD project and the
- Makefile
-
-2006-12-14 Lluis Sanchez Gual <lluis@novell.com>
-
- * Parser/SharpDevelopTree/CompilationUnit.cs,
- Parser/SharpDevelopTree/Indexer.cs,
- Parser/SharpDevelopTree/Method.cs,
- Parser/SharpDevelopTree/Parameter.cs,
- Parser/SharpDevelopTree/Event.cs,
- Parser/SharpDevelopTree/ReturnType.cs,
- Parser/SharpDevelopTree/Field.cs,
- Parser/SharpDevelopTree/Property.cs,
- Parser/SharpDevelopTree/Class.cs,
- Parser/SharpDevelopTree/Constructor.cs,
- Parser/SharpDevelopTree/AttributeSection.cs: Renamed Abstract*
- classes to Default*.
-
-2006-09-18 Jacob Ilsø Christensen <jacobilsoe@gmail.com>
-
- * JavaBinding.mdp: Updated.
- * .: Added svn:ignore for JavaBinding.pidb.
-
-2006-07-03 Lluis Sanchez Gual <lluis@novell.com>
-
- * JavaBinding.addin.xml: Updated versions.
- * JavaBindingCompilerServices.cs: Track changes in ProjectReference.
-
-2006-06-15 Lluis Sanchez Gual <lluis@novell.com>
-
- * JavaBinding.addin.xml: Use the DataType element instead fof Class
- to declare serializable types.
-
-2006-05-04 Lluis Sanchez Gual <lluis@novell.com>
-
- * JavaBinding.addin.xml: Updated versions.
- * JavaBinding.mdp: Updated.
-
-2006-04-21 Lluis Sanchez Gual <lluis@novell.com>
-
- * JavaLanguageBinding.cs: Implement GetSupportedClrVersions.
-
-2006-04-07 David Makovský (Yakeen) <yakeen@sannyas-on.net>
-
- * JavaBinding.addin.xml: renamed attribute in FileFilter Extension
-
-2006-03-30 Lluis Sanchez Gual <lluis@novell.com>
-
- * Makefile.am:
- * JavaBinding.addin.xml: Updated references.
-
-2006-03-24 Lluis Sanchez Gual <lluis@novell.com>
-
- * JavaBinding.mdp: Updated.
- * Makefile.am: Use an unified format. Patch by Matze Braun.
- * JavaBinding.addin.xml: Updated add-in versions.
-
-2006-03-12 David Makovský (Yakeen) <yakeen@sannyas-on.net>
-
- * Java.glade: Marking some strings not to be translated. Not include balast in pot file.
-
-2006-01-30 Lluis Sanchez Gual <lluis@novell.com>
-
- * Parser/Resolver.cs:
- * Parser/Parser.cs: Track changes in parser api.
-
-2005-12-13 Lluis Sanchez Gual <lluis@novell.com>
-
- * JavaLanguageBinding.cs: Implemented IDotNetLanguageBinding methods.
- * templates/*: Set the correct category and language name.
-
-2005-11-15 Lluis Sanchez Gual <lluis@novell.com>
-
- * JavaBindingCompilerServices.cs: Look for ikvmc.exe in the configured
- directory and in the bin subdirectory. Fixes bug #76700.
-
-2005-11-14 Lluis Sanchez Gual <lluis@novell.com>
-
- * templates/JavaConsoleApplicationProject.xpt.xml:
- * templates/JavaApplicationProject.xpt.xml: "Class" is not a valid
- project target. Changed to Exe.
-
-2005-10-11 Lluis Sanchez Gual <lluis@novell.com>
-
- * JavaBinding.addin.xml: Fixed incorrect class name.
-
-2005-10-11 Lluis Sanchez Gual <lluis@novell.com>
-
- * JavaBinding.addin.xml: Fixed addin header information.
- Use "id" attribuet instead of "name" to identify addins.
-
-2005-10-06 Lluis Sanchez Gual <lluis@novell.com>
-
- * JavaBinding.addin.xml:
- * JavaLanguageBinding.cs: Register serializable types in the addin
- configuration file.
-
-2005-10-04 Lluis Sanchez Gual <lluis@novell.com>
-
- * JavaBinding.addin.xml: Added addin dependencies.
-
-2005-08-12 Lluis Sanchez Gual <lluis@novell.com>
-
- * templates/*:
- * JavaBinding.addin.xml: Properly reference resource icons and
- templates.
- * Makefile.am: Embed icon and templates as resources.
-
-2005-08-09 Lluis Sanchez Gual <lluis@novell.com>
-
- * Parser/Resolver.cs:
- * Parser/Parser.cs: Use the new IParserContext API.
-
-2005-07-11 Lluis Sanchez Gual <lluis@novell.com>
-
- * Project/JavaCompilerParameters.cs: Implement ICloneable.
- * JavaLanguageBinding.cs : CreateCompilationParameters now returns an
- ICloneable.
-
-2005-06-11 Lluis Sanchez Gual <lluis@novell.com>
-
- * Gui/ProjectConfigurationPropertyPanel.cs: Fix build.
-
-2005-05-20 Lluis Sanchez Gual <lluis@novell.com>
-
- * JavaBindingCompilerServices.cs: Automatically generate wrappers
- for referenced assemblies. Improved error parsing. Many fixes.
- * ProjectConfigurationPropertyPanel.cs: Moved to Glade.
- * JavaLanguageBinding.cs: Added some global configuration properties.
- * JavaCompilerParameters.cs: Added missing DefineSymbols property.
- * JavaBinding.addin.xml: Added new configuration dialogs and a new
- template.
- * Makefile.am: Added a new template and a glade file.
- * templates/IkvmGtkApplicationProject.xpt.xml:
- * templates/IkvmGladeApplicationProject.xpt.xml:
- * templates/IkvmGnomeApplicationProject.xpt.xml: Added GTK references
- in the GTK# projects.
- * templates/IkvmConsoleApplicationProject.xpt.xml: Removed hard-coded
- classpath.
- * Java.glade: New glade file for java options.
- * Gui/GlobalOptionsPanel.cs: New java options panel.
- * templates/IkvmLibraryProject.xpt.xml: New project template.
-
-2005-04-17 John Luke <john.luke@gmail.com>
-
- * Makefile.am: fix distcheck
-
-2005-02-16 Ben Motmans <ben.motmans@gmail.com>
-
- * EmptyJavaFile:
- * EmptyJavaProject:
- * JavaConsoleApplicationProject:
- * JavaApplicationProject:
- * JavaApplication:
- * JavaApplet:
- * JavaFrame:
- * JavaOKDialog:
- * JavaPanel:
- Consistent naming
-
-2005-02-05 John Luke <john.luke@gmail.com>
-
- * Makefile.am
- * JavaBinding.addin.xml: remove custom node builder
- * ProjectTreeBuilder/JavaNodeBuilder.cs: remove custom
- node builder in favor of using the default so references
- can be added (ikvm projects need IKVM.GNU.Classpath.dll and
- IKVM.Runtime.dll)
- * JavaBindingCompilerServices.cs: work like the C# bindings,
- error parsing is broken but Im pretty sure it already was
-
-2005-01-24 Lluis Sanchez Gual <lluis@novell.com>
-
- * JavaBindingCompilerServices.cs:
- * JavaLanguageBinding.cs: Use the new progress monitor API.
-
-2005-01-16 John Luke <john.luke@gmail.com>
-
- * Makefile.am: remove FormattingStrategy from build
- * JavaLanguageBinding.cs: make const LanguageName internal
- comment out NotImplementedException for GenerateMakefile
- so it doesn't abort MD when running
- * JavaBindingCompilerServices.cs: remove warnings
- * ProjectTreeBuilder/JavaNodeBuilder.cs: remove some unused
- code that caused warnings, use MonoDevelop.Services.Runtime
- instead of old method of getting services
- * TODO: add
- * template/Ikvm*.xft: Target "Exe" or "WinExe" instead of "Class"
-
-2005-01-11 Lluis Sanchez Gual <lluis@novell.com>
-
- * JavaBindingCompilerServices.cs:
- * Gui/ProjectConfigurationPropertyPanel.cs:
- * JavaLanguageBinding.cs:
- * JavaBinding.addin.xml:
- * ProjectTreeBuilder/JavaNodeBuilder.cs: Follow architecture changes.
-
- * JavaCompilerParameters.cs: Moved some parameters and enum
- definitions to DotNetProjectConfiguration.
-
- * Project/JavaProject.cs: Removed. Not needed any more.
- * Makefile.am: Updated.
-
-2004-12-13 Lluis Sanchez Gual <lluis@novell.com>
-
- * JavaBindingCompilerServices.cs: StatusBarService.ProgressMonitor is
- not a StatusBar widget any more.
-
-2004-12-07 Alexandre Gomes <alexmipego@hotmail.com>
-
- * JavaLanguageBinding.cs: Added CommentTag to be used by (Un)CommentCode
-
-2004-11-05 Levi Bard <taktaktaktaktaktaktaktaktaktak@gmail.com>
-
- * Parser/Parser.cs: Added HandlesFileExtension() to work with new
- IParser
-
-2004-07-05 John Luke <jluke@cfl.rr.com>
-
- * *.cs: cleanup everything
- remove single file compile/run
- remove runtime choices and use ikvmc to produce assemblies
-
- need to check errors on ikvmc part, I wish there was a better
- way than screen-scraping to do this.
-
- convert line endings to unix, not sure why they were dos style
-
-2004-06-08 John Luke <jluke@cfl.rr.com>
-
- * JavaBindingCompilerService.cs: rework so Process.Start works
- * JavaBindingExecutionService.cs: rework so Process.Start works
- by using ProcessStartInfo (cmd, args)
- add support for using Gij
- * Gui/ProjectConfigurationPropertyPanel.cs:
- enable Java, remove Mono, and add Gij runtimes
- * JavaRuntime.cs: add Gij
-
-2004-05-25 Todd Berman <tberman@sevenl.net>
-
- * JavaLanguageBinding.cs: signature change for GenerateMakefile.
-
-2004-04-28 Todd Berman <tberman@sevenl.net>
-
- * JavaLanguageBinding.cs: stubbing GenerateMakefile.
-
-2004-04-16 John Luke <jluke@cfl.rr.com>
-
- * JavaBindingCompilerService.cs:
- rework error parsing to work off of Streams instead of temp files
- allows javac errors to work, gcj maybe not
- set the column of the error
- specify the output directory
- * Project/JavaCompilerOptions: add runtime prop
- * JavaBindingExecutionService.cs: add prelim support
- for choosing runtime
- * JavaCompiler.cs:
- * JavaRuntime.cs: add enums for compiler and runtime
-
-2004-04-09 John Luke <jluke@cfl.rr.com>
-
- * JavaBindingCompilerService.cs: account for classpath when compiling,
- work with gcj or javac, cleanup old code
- * Gui/ProjectConfigurationPropertyPanel.cs: rough port, needs major HIG love,
- cleanup, add RadioButtons to select from gcj and javac
- * JavaBindingExecutionService.cs: use ikvm instead of java runtime
- * Parser/*: make a copy of the CSharpBinding/Parser in case I am crazy enough
- to port the parser to work with Java (not built yet)
- * Project/JavaCompilerParameters.cs: add javac/gcj .Compiler property,
- fix CompilerPath from being hardcoded
-
-2004-03-25 John Luke <jluke@cfl.rr.com>
-
- import from SD and make it build with our
- namespaces and SourceEditor
- change to work like CSharpBinding
diff --git a/extras/JavaBinding/FormatingStrategy/JavaFormattingStrategy.cs b/extras/JavaBinding/FormatingStrategy/JavaFormattingStrategy.cs
deleted file mode 100644
index 8c90693eb5..0000000000
--- a/extras/JavaBinding/FormatingStrategy/JavaFormattingStrategy.cs
+++ /dev/null
@@ -1,250 +0,0 @@
-// JavaFormattingStrategy.cs
-//
-// This file was derived from a file from #Develop.
-//
-// Copyright (C) 2001-2007 Mike Krüger <mkrueger@novell.com>
-//
-// This program is free software; you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation; either version 2 of the License, or
-// (at your option) any later version.
-//
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with this program; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-
-using System;
-using System.Collections;
-using System.Diagnostics;
-using System.Drawing;
-using System.Text;
-
-using MonoDevelop.TextEditor;
-using MonoDevelop.TextEditor.Document;
-using MonoDevelop.Core.Properties;
-using MonoDevelop.Core;
-using MonoDevelop.Core;
-using MonoDevelop.EditorBindings.FormattingStrategy;
-
-namespace JavaBinding.FormattingStrategy
-{
- /// <summary>
- /// This class handles the auto and smart indenting in the textbuffer while
- /// you type.
- /// </summary>
- public class JavaFormattingStrategy : DefaultFormattingStrategy
- {
- public JavaFormattingStrategy()
- {
- }
-
- /// <summary>
- /// Define Java specific smart indenting for a line :)
- /// </summary>
- protected override int SmartIndentLine(IFormattableDocument d, int lineNr)
- {
- if (lineNr > 0) {
- string lineAboveText = d.GetLineAsString (lineNr - 1);
- string trimlineAboveText = lineAboveText.Trim ();
- string curLineText = d.GetLineAsString (lineNr);
- string trimcurLineText = curLineText.Trim ();
-
- if (lineAboveText.EndsWith(")") && curLineText.StartsWith("{")) {
- string indentation = GetIndentation(d, lineNr - 1);
- d.ReplaceLine (lineNr, indentation + curLineText);
- return indentation.Length;
- }
-
- if (curLineText.StartsWith("}")) { // indent closing bracket.
- int openLine;
- int closingBracketOffset = d.GetClosingBraceForLine (lineNr, out openLine);
- if (closingBracketOffset == -1) { // no closing bracket found -> autoindent
- return AutoIndentLine(d, lineNr);
- }
-
- string indentation = GetIndentation (d, lineNr - 1);
-
- d.ReplaceLine (lineNr, indentation + curLineText);
- return indentation.Length;
- }
-
- if (lineAboveText.EndsWith(";")) { // expression ended, reset to valid indent.
- int openLine;
- int closingBracketOffset = d.GetClosingBraceForLine (lineNr, out openLine);
- if (closingBracketOffset == -1) { // no closing bracket found -> autoindent
- return AutoIndentLine(d, lineNr);
- }
-
- string closingBracketLineText = d.GetLineAsString (openLine).Trim ();
-
- string indentation = GetIndentation (d, openLine);
-
- // special handling for switch statement formatting.
- if (closingBracketLineText.StartsWith("switch")) {
- if (lineAboveText.StartsWith("break;") ||
- lineAboveText.StartsWith("goto") ||
- lineAboveText.StartsWith("return")) {
- } else {
- indentation += d.IndentString;
- }
- }
- indentation += d.IndentString;
-
- d.ReplaceLine (lineNr, indentation + curLineText);
- return indentation.Length;
- }
-
- if (lineAboveText.EndsWith("{") || // indent opening bracket.
- lineAboveText.EndsWith(":") || // indent case xyz:
- (lineAboveText.EndsWith(")") && // indent single line if, for ... etc
- (lineAboveText.StartsWith("if") ||
- lineAboveText.StartsWith("while") ||
- lineAboveText.StartsWith("for"))) ||
- lineAboveText.EndsWith("else")) {
- string indentation = GetIndentation (d, lineNr - 1) + d.IndentString;
- d.ReplaceLine (lineNr, indentation + curLineText);
- return indentation.Length;
- } else {
- // try to indent linewrap
- ArrayList bracketPos = new ArrayList();
- for (int i = 0; i < lineAboveText.Length; ++i) { // search for a ( bracket that isn't closed
- switch (lineAboveText[i]) {
- case '(':
- bracketPos.Add(i);
- break;
- case ')':
- if (bracketPos.Count > 0) {
- bracketPos.RemoveAt(bracketPos.Count - 1);
- }
- break;
- }
- }
- if (bracketPos.Count > 0) {
- int bracketIndex = (int)bracketPos[bracketPos.Count - 1];
- string indentation = GetIndentation (d, lineNr - 1);
-
- for (int i = 0; i <= bracketIndex; ++i) { // insert enough spaces to match
- indentation += " "; // brace start in the next line
- }
-
- d.ReplaceLine (lineNr, indentation + curLineText);
- return indentation.Length;
- }
- }
- }
- return AutoIndentLine (d, lineNr);
- }
-
- bool NeedCurlyBracket(string text)
- {
- int curlyCounter = 0;
-
- bool inString = false;
- bool inChar = false;
-
- bool lineComment = false;
- bool blockComment = false;
-
- for (int i = 0; i < text.Length; ++i) {
- switch (text[i]) {
- case '\r':
- case '\n':
- lineComment = false;
- break;
- case '/':
- if (blockComment) {
- Debug.Assert(i > 0);
- if (text[i - 1] == '*') {
- blockComment = false;
- }
- }
- if (!inString && !inChar && i + 1 < text.Length) {
- if (!blockComment && text[i + 1] == '/') {
- lineComment = true;
- }
- if (!lineComment && text[i + 1] == '*') {
- blockComment = true;
- }
- }
- break;
- case '"':
- inString = !inString;
- break;
- case '\'':
- inChar = !inChar;
- break;
- case '{':
- if (!(inString || inChar || lineComment || blockComment)) {
- ++curlyCounter;
- }
- break;
- case '}':
- if (!(inString || inChar || lineComment || blockComment)) {
- --curlyCounter;
- }
- break;
- }
- }
- return curlyCounter > 0;
- }
-
- // used for comment tag formater/inserter
- public override int FormatLine (IFormattableDocument d, int lineNr, int cursorOffset, char ch)
- {
- switch (ch) {
- //case '}':
- //case '{':
- // return d.FormattingStrategy.IndentLine (d, lineNr);
- case '\n':
- if (lineNr <= 0) {
- return IndentLine(d, lineNr);
- }
-
- if (d.AutoInsertCurlyBracket) {
- string oldLineText = d.GetLineAsString (lineNr - 1);
- if (oldLineText.EndsWith ("{") && NeedCurlyBracket (d.TextContent)) {
- d.Insert (cursorOffset, "\n}");
- IndentLine(d, lineNr + 1);
- }
- }
-
- string lineAboveText = d.GetLineAsString (lineNr - 1);
-
-
-#if NON_PORTABLE_CODE
- if (lineAbove.HighlightSpanStack != null && lineAbove.HighlightSpanStack.Count > 0) {
- if (!((Span)lineAbove.HighlightSpanStack.Peek()).StopEOL) { // case for /* style comments
- int index = lineAboveText.IndexOf("/*");
-
- if (index > 0) {
- string indentation = GetIndentation(d, lineNr - 1);
- for (int i = indentation.Length; i < index; ++ i) {
- indentation += ' ';
- }
- d.Document.Replace(curLine.Offset, cursorOffset - curLine.Offset, indentation + " * ");
- return indentation.Length + 3;
- }
-
- index = lineAboveText.IndexOf("*");
- if (index > 0) {
- string indentation = GetIndentation(d, lineNr - 1);
- for (int i = indentation.Length; i < index; ++ i) {
- indentation += ' ';
- }
- d.Document.Replace(curLine.Offset, cursorOffset - curLine.Offset, indentation + "* ");
- return indentation.Length + 2;
- }
- }
- }
-#endif
- return IndentLine(d, lineNr);
- }
- return 0;
- }
- }
-}
diff --git a/extras/JavaBinding/Gui/GlobalOptionsPanel.cs b/extras/JavaBinding/Gui/GlobalOptionsPanel.cs
deleted file mode 100644
index 33d940bee3..0000000000
--- a/extras/JavaBinding/Gui/GlobalOptionsPanel.cs
+++ /dev/null
@@ -1,58 +0,0 @@
-
-using System;
-using Gtk;
-
-using MonoDevelop.Projects;
-using MonoDevelop.Ide.Gui.Dialogs;
-using MonoDevelop.Components;
-using MonoDevelop.Core;
-
-namespace JavaBinding
-{
- public class GlobalOptionsPanelPanel : OptionsPanel
- {
- GlobalOptionsPanelWidget widget;
-
- public override Widget CreatePanelWidget ()
- {
- widget = new GlobalOptionsPanelWidget();
- return widget;
- }
-
- public override void ApplyChanges ()
- {
- widget.Store ();
- }
- }
-
- partial class GlobalOptionsPanelWidget : Gtk.Bin
- {
- public GlobalOptionsPanelWidget ()
- {
- Build ();
-
- ListStore store = new ListStore (typeof (string));
- store.AppendValues (GettextCatalog.GetString ("Javac"));
- store.AppendValues (GettextCatalog.GetString ("Gcj"));
- compilerCombo.Model = store;
- CellRendererText cr = new CellRendererText ();
- compilerCombo.PackStart (cr, true);
- compilerCombo.AddAttribute (cr, "text", 0);
- compilerCombo.Active = (int) JavaLanguageBinding.Properties.CompilerType;
-
- ikvmPathEntry.Path = JavaLanguageBinding.Properties.IkvmPath;
- compilerPathEntry.Text = JavaLanguageBinding.Properties.CompilerCommand;
- classpathEntry.Text = JavaLanguageBinding.Properties.Classpath;
- }
-
- public bool Store ()
- {
- JavaLanguageBinding.Properties.IkvmPath = ikvmPathEntry.Path;
- JavaLanguageBinding.Properties.CompilerCommand = compilerPathEntry.Text;
- JavaLanguageBinding.Properties.Classpath = classpathEntry.Text;
-
- JavaLanguageBinding.Properties.CompilerType = (JavaCompiler) compilerCombo.Active;
- return true;
- }
- }
-}
diff --git a/extras/JavaBinding/Gui/ProjectConfigurationPropertyPanel.cs b/extras/JavaBinding/Gui/ProjectConfigurationPropertyPanel.cs
deleted file mode 100644
index 4c1c0ef934..0000000000
--- a/extras/JavaBinding/Gui/ProjectConfigurationPropertyPanel.cs
+++ /dev/null
@@ -1,133 +0,0 @@
-// ProjectConfigurationPropertyPanel.cs
-//
-// This file was derived from a file from #Develop.
-//
-// Copyright (C) 2001-2007 Mike Krüger <mkrueger@novell.com>
-//
-// This program is free software; you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation; either version 2 of the License, or
-// (at your option) any later version.
-//
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with this program; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-
-using System;
-using Gtk;
-
-using MonoDevelop.Projects;
-using MonoDevelop.Ide.Projects;
-using MonoDevelop.Components;
-using MonoDevelop.Core;
-using MonoDevelop.Ide.Gui.Dialogs;
-
-namespace JavaBinding
-{
- public class ProjectConfigurationPropertyPanel : MultiConfigItemOptionsPanel
- {
- CodeGenerationPanelWidget widget;
-
- public override Widget CreatePanelWidget()
- {
- return (widget = new CodeGenerationPanelWidget ());
- }
-
- public override void LoadConfigData ()
- {
- widget.LoadConfigData (this);
- }
-
- public override void ApplyChanges ()
- {
- widget.Store ();
- }
- }
-
- partial class CodeGenerationPanelWidget : Gtk.Bin
- {
- JavaCompilerParameters compilerParameters = null;
- DotNetProjectConfiguration configuration;
- DotNetProject project;
-
- public CodeGenerationPanelWidget ()
- {
- Build ();
-
- ListStore store = new ListStore (typeof (string));
- store.AppendValues (GettextCatalog.GetString ("Executable"));
- store.AppendValues (GettextCatalog.GetString ("Library"));
- compileTargetCombo.Model = store;
- CellRendererText cr = new CellRendererText ();
- compileTargetCombo.PackStart (cr, true);
- compileTargetCombo.AddAttribute (cr, "text", 0);
-
- compilerJavacButton.Toggled += new EventHandler (OnCompilerToggled);
- compilerGcjButton.Toggled += new EventHandler (OnCompilerToggled);
- }
-
- public void LoadConfigData (ProjectConfigurationPropertyPanel dlg)
- {
- configuration = (DotNetProjectConfiguration) dlg.CurrentConfiguration;
- project = (DotNetProject) dlg.ConfiguredProject;
- compilerParameters = (JavaCompilerParameters) configuration.CompilationParameters;
-
- compileTargetCombo.Active = (int) configuration.CompileTarget;
-
- if (compilerParameters.Compiler == JavaCompiler.Javac)
- compilerJavacButton.Active = true;
- else
- compilerGcjButton.Active = true;
-
- enableOptimizationCheckButton.Active = compilerParameters.Optimize;
- generateDebugInformationCheckButton.Active = configuration.DebugMode;
- deprecationCheckButton.Active = compilerParameters.Deprecation;
- generateWarningsCheckButton.Active = compilerParameters.GenWarnings;
- warningsAsErrorsCheckButton.Active = !configuration.RunWithWarnings;
-
- compilerEntry.Text = compilerParameters.CompilerPath;
- classPathEntry.Text = compilerParameters.ClassPath;
- mainClassEntry.Text = compilerParameters.MainClass;
- symbolsEntry.Text = compilerParameters.DefineSymbols;
- OnCompilerToggled (null, null);
- }
-
- void OnCompilerToggled (object o, EventArgs args)
- {
- if (compilerJavacButton.Active)
- compilerEntry.Text = "javac";
- else
- compilerEntry.Text = "gcj";
- }
-
- public bool Store ()
- {
- if (compilerParameters == null)
- return true;
-
- if (compilerJavacButton.Active)
- compilerParameters.Compiler = JavaCompiler.Javac;
- else
- compilerParameters.Compiler = JavaCompiler.Gcj;
-
- project.CompileTarget = (CompileTarget) compileTargetCombo.Active;
- compilerParameters.GenWarnings = generateWarningsCheckButton.Active;
- compilerParameters.Deprecation = deprecationCheckButton.Active;
- configuration.DebugMode = generateDebugInformationCheckButton.Active;
- compilerParameters.Optimize = enableOptimizationCheckButton.Active;
- configuration.RunWithWarnings = !warningsAsErrorsCheckButton.Active;
-
- compilerParameters.CompilerPath = compilerEntry.Text;
- compilerParameters.ClassPath = classPathEntry.Text;
- compilerParameters.MainClass = mainClassEntry.Text;
- compilerParameters.DefineSymbols = symbolsEntry.Text;
- return true;
- }
- }
-
-}
diff --git a/extras/JavaBinding/IKVMCompilerManager.cs b/extras/JavaBinding/IKVMCompilerManager.cs
deleted file mode 100644
index e88725a199..0000000000
--- a/extras/JavaBinding/IKVMCompilerManager.cs
+++ /dev/null
@@ -1,296 +0,0 @@
-//
-// IKVMCompilerManager.cs
-//
-// Author:
-// Mike Krüger <mkrueger@novell.com>
-//
-// Copyright (C) 2007 Novell, Inc (http://www.novell.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-using System;
-using System.CodeDom.Compiler;
-using System.Diagnostics;
-using System.IO;
-using System.Text;
-
-using MonoDevelop.Core;
-using MonoDevelop.Core.Execution;
-using MonoDevelop.Core.ProgressMonitoring;
-using MonoDevelop.Projects;
-using Mono.Addins;
-
-namespace JavaBinding
-{
- public static class IKVMCompilerManager
- {
- static string GenerateOptionString (DotNetProjectConfiguration configuration)
- {
- JavaCompilerParameters parameters = (configuration.CompilationParameters as JavaCompilerParameters) ?? new JavaCompilerParameters ();
- StringBuilder result = new StringBuilder ();
- result.Append (configuration.DebugMode ? " -g " : " -g:none ");
- if (parameters.Optimize)
- result.Append (" -O ");
- if (parameters.Deprecation)
- result.Append (" -deprecation ");
- if (parameters.GenWarnings)
- result.Append (" -nowarn ");
- result.Append (" -encoding utf8 ");
- return result.ToString ();
- }
-
- public static BuildResult Compile (ProjectItemCollection projectItems, DotNetProjectConfiguration configuration, ConfigurationSelector configurationSelector, IProgressMonitor monitor)
- {
- JavaCompilerParameters parameters = (configuration.CompilationParameters as JavaCompilerParameters) ?? new JavaCompilerParameters ();
- string outdir = configuration.OutputDirectory;
- string options = GenerateOptionString (configuration);
- string compiler = parameters.CompilerPath;
- if (String.IsNullOrEmpty (compiler))
- compiler = "javac";
-
- StringBuilder files = new StringBuilder ();
- foreach (ProjectFile finfo in projectItems.GetAll<ProjectFile> ()) {
- if (finfo.Subtype != Subtype.Directory && finfo.BuildAction == BuildAction.Compile) {
- files.Append (" \"");
- files.Append (finfo.Name);
- files.Append ("\"");
- }
- }
-
- StringBuilder classpath = new StringBuilder (parameters.ClassPath);
- AppendClasspath (classpath, GenerateReferenceStubs (monitor, configurationSelector, configuration, parameters, projectItems));
- AppendClasspath (classpath, GenerateReferenceStub (monitor, configurationSelector, configuration, new ProjectReference(ReferenceType.Gac, "mscorlib")));
-
- StringBuilder args = new StringBuilder ();
- args.Append (options.ToString ());
- if (parameters.Compiler == JavaCompiler.Gcj)
- args.Append ("-C ");
- if (classpath.Length != 0) {
- args.Append (" -classpath ");
- args.Append (classpath.ToString ());
- }
- args.Append (files.ToString ());
- args.Append (" -d ");
- args.Append (outdir);
-
- CompilerResults results = new CompilerResults (new TempFileCollection ());
- StringWriter output = new StringWriter ();
- StringWriter error = new StringWriter ();
-
- bool success;
- try {
- success = Compile (monitor, compiler, args.ToString (), configuration, parameters, output, error);
- ParseJavaOutput (parameters.Compiler, error.ToString(), results);
- } catch (Exception ex) {
- string errorMsg = AddinManager.CurrentLocalizer.GetString ("Execution on '{0}' failed. Make sure the Java compiler is properly installed", compiler);
- monitor.ReportError (errorMsg, ex);
- success = false;
- results.Errors.Add (new CompilerError ("", 0, 0, "", errorMsg));
- }
-
- if (success) {
- output = new StringWriter ();
- error = new StringWriter ();
- CompileToAssembly (monitor, configuration, parameters, projectItems, output, error);
- ParseIkvmOutput (parameters.Compiler, error.ToString(), results);
- }
-
- return new BuildResult (results, "");
- }
-
- static void AppendClasspath (StringBuilder path, string jar)
- {
- if (path.Length > 0)
- path.Append (":");
- path.Append (jar);
- }
-
- static string GenerateReferenceStubs (IProgressMonitor monitor, ConfigurationSelector configurationSelector, DotNetProjectConfiguration configuration, JavaCompilerParameters compilerparameters, ProjectItemCollection projectItems)
- {
- StringBuilder result = new StringBuilder ();
- foreach (ProjectReference reference in projectItems.GetAll<ProjectReference> ()) {
- AppendClasspath (result, GenerateReferenceStub (monitor, configurationSelector, configuration, reference));
- }
- return result.ToString ();
- }
-
- static string GenerateReferenceStub (IProgressMonitor monitor, ConfigurationSelector configurationSelector, DotNetProjectConfiguration configuration, ProjectReference reference)
- {
- StringBuilder result = new StringBuilder ();
- foreach (string fileName in reference.GetReferencedFileNames (configurationSelector)) {
- string name = Path.GetFileNameWithoutExtension (Path.GetFileName (fileName));
- string outputName = Path.Combine (configuration.OutputDirectory, name + ".jar");
- if (!System.IO.File.Exists (outputName)) {
- monitor.Log.WriteLine (String.Format (GettextCatalog.GetString ("Generating {0} reference stub ..."), name));
- monitor.Log.WriteLine ("ikvmstub \"" + fileName + "\"");
- ProcessWrapper p = Runtime.ProcessService.StartProcess ("ikvmstub", "\"" + fileName + "\"", configuration.OutputDirectory, monitor.Log, monitor.Log, null);
- p.WaitForExit ();
- if (p.ExitCode != 0) {
- monitor.ReportError ("Stub generation failed.", null);
- if (File.Exists (outputName)) {
- try {
- File.Delete (outputName);
- } catch {
- // Ignore
- }
- }
- }
- }
- AppendClasspath (result, outputName);
- }
- return result.ToString ();
- }
- static string TargetToString (CompileTarget target)
- {
- switch (target) {
- case CompileTarget.WinExe:
- return "winexe";
- case CompileTarget.Library:
- return "library";
- }
- return "exe";
- }
-
- static void CompileToAssembly (IProgressMonitor monitor, DotNetProjectConfiguration configuration, JavaCompilerParameters compilerparameters, ProjectItemCollection projectItems, TextWriter output, TextWriter error)
- {
- monitor.Log.WriteLine (GettextCatalog.GetString ("Generating assembly ..."));
-
- LogTextWriter chainedError = new LogTextWriter ();
- chainedError.ChainWriter (monitor.Log);
- chainedError.ChainWriter (error);
-
- LogTextWriter chainedOutput = new LogTextWriter ();
- chainedOutput.ChainWriter (monitor.Log);
- chainedOutput.ChainWriter (output);
-
- string outdir = configuration.OutputDirectory;
- string outclass = Path.Combine (outdir, configuration.OutputAssembly + ".class");
- string asm = Path.GetFileNameWithoutExtension (outclass);
-
- StringBuilder args = new StringBuilder ("-recurse:*.class ");
-
- args.Append ("-assembly:"); args.Append (asm);
- args.Append (" -target:"); args.Append (TargetToString (configuration.CompileTarget));
- if (configuration.DebugMode)
- args.Append (" -debug");
- args.Append (" -srcpath:"); args.Append (configuration.ParentItem.BaseDirectory);
-
- foreach (ProjectReference lib in projectItems.GetAll<ProjectReference> ()) {
- foreach (string fileName in lib.GetReferencedFileNames (configuration.Selector)) {
- args.Append (" -r:"); args.Append (fileName);
- }
- }
-
- foreach (string fileName in new ProjectReference(ReferenceType.Gac, "mscorlib").GetReferencedFileNames (configuration.Selector)) {
- args.Append (" -r:"); args.Append (fileName);
- }
-
- monitor.Log.WriteLine ("ikvmc " + args);
- Process process = Runtime.ProcessService.StartProcess ("ikvmc", args.ToString (), configuration.OutputDirectory, chainedOutput, chainedError, null);
- process.WaitForExit ();
- }
-
- static bool Compile (IProgressMonitor monitor, string compiler, string args, DotNetProjectConfiguration configuration, JavaCompilerParameters compilerparameters, TextWriter output, TextWriter error)
- {
- LogTextWriter chainedError = new LogTextWriter ();
- chainedError.ChainWriter (monitor.Log);
- chainedError.ChainWriter (error);
-
- LogTextWriter chainedOutput = new LogTextWriter ();
- chainedOutput.ChainWriter (monitor.Log);
- chainedOutput.ChainWriter (output);
-
- monitor.Log.WriteLine (GettextCatalog.GetString ("Compiling Java source code ..."));
- monitor.Log.WriteLine (compiler + " " + args);
-
- Process process = Runtime.ProcessService.StartProcess (compiler, args, null, chainedOutput, chainedError, null);
- process.WaitForExit ();
- return process.ExitCode == 0;
- }
-
- static void ParseJavaOutput (JavaCompiler compiler, string errorStr, CompilerResults cr)
- {
- TextReader reader = new StringReader (errorStr);
- string line;
- while ((line = reader.ReadLine ()) != null) {
- CompilerError error = CreateJavaErrorFromString (compiler, line);
- if (error != null)
- cr.Errors.Add (error);
- }
- reader.Close ();
- }
-
- private static CompilerError CreateJavaErrorFromString (JavaCompiler compiler, string next)
- {
- CompilerError result = new CompilerError ();
-
- int errorCol = 0;
- string col = next.Trim ();
- if (col.Length == 1 && col == "^")
- errorCol = next.IndexOf ("^");
-
- int index1 = next.IndexOf (".java:");
- if (index1 < 0)
- return null;
-
- string s2 = next.Substring (index1 + 6);
- int index2 = s2.IndexOf (":");
- int line = Int32.Parse (next.Substring (index1 + 6, index2));
- string msg = next.Substring (index1 + index2 + 7).Trim ();
- if (msg.StartsWith ("warning:")) {
- result.IsWarning = true;
- msg = msg.Substring (8).Trim ();
- }
- result.Column = errorCol;
- result.Line = line;
- result.ErrorText = msg;
- result.FileName = Path.GetFullPath (next.Substring (0, index1) + ".java");
- return result;
- }
-
- static void ParseIkvmOutput (JavaCompiler compiler, string errorStr, CompilerResults cr)
- {
- TextReader reader = new StringReader (errorStr);
- string line;
- while ((line = reader.ReadLine ()) != null) {
- CompilerError error = CreateIkvmErrorFromString (line);
- if (error != null)
- cr.Errors.Add (error);
- }
- reader.Close ();
- }
-
- static CompilerError CreateIkvmErrorFromString (string error)
- {
- if (error.StartsWith ("Note") || error.StartsWith ("Warning"))
- return null;
- string trimmed = error.Trim ();
- if (trimmed.StartsWith ("(to avoid this warning add"))
- return null;
-
- CompilerError cerror = new CompilerError ();
- cerror.ErrorText = error;
- return cerror;
- }
-
- }
-}
- \ No newline at end of file
diff --git a/extras/JavaBinding/JavaBinding.addin.xml b/extras/JavaBinding/JavaBinding.addin.xml
deleted file mode 100644
index e86b1a5276..0000000000
--- a/extras/JavaBinding/JavaBinding.addin.xml
+++ /dev/null
@@ -1,95 +0,0 @@
-<Addin id = "JavaBinding"
- namespace = "MonoDevelop"
- name = "Java Language Binding"
- author = "Todd Berman"
- copyright = "GPL"
- url = "http://www.monodevelop.com"
- description = "Java Language Binding"
- category = "Language bindings"
- version = "4.2.3">
-
- <Runtime>
- <Import assembly = "JavaBinding.dll"/>
- </Runtime>
-
- <Localizer type="Gettext" catalog="monodevelop-java"/>
-
- <Dependencies>
- <Addin id="Core" version="4.2.3"/>
- <Addin id="Ide" version="4.2.3"/>
- </Dependencies>
-
- <Extension path = "/MonoDevelop/Ide/FileFilters">
- <FileFilter id = "Java"
- insertbefore = "AllFiles"
- _label = "Java Files"
- extensions = "*.java"/>
- </Extension>
-
- <Extension path = "/MonoDevelop/Ide/FileTemplates">
- <FileTemplate id = "JavaApplet" resource = "JavaApplet.xft.xml"/>
- <FileTemplate id = "JavaApplication" resource = "JavaApplication.xft.xml"/>
- <FileTemplate id = "JavaDialog" resource = "JavaDialog.xft.xml"/>
- <FileTemplate id = "JavaFrame" resource = "JavaFrame.xft.xml"/>
- <FileTemplate id = "JavaOKDialog" resource = "JavaOKDialog.xft.xml"/>
- <FileTemplate id = "JavaPanel" resource = "JavaPanel.xft.xml"/>
- <FileTemplate id = "EmptyJavaFile" resource = "EmptyJavaFile.xft.xml"/>
- </Extension>
-
- <Extension path = "/MonoDevelop/Ide/ProjectTemplates">
- <ProjectTemplate id = "EmptyJavaProject" resource = "EmptyJavaProject.xpt.xml"/>
- <ProjectTemplate id = "IkvmConsoleApplicationProject" resource = "IkvmConsoleApplicationProject.xpt.xml"/>
- <ProjectTemplate id = "IkvmGladeApplicationProject" resource = "IkvmGladeApplicationProject.xpt.xml"/>
-<!-- <ProjectTemplate id = "IkvmGnomeApplicationProject" resource = "IkvmGnomeApplicationProject.xpt.xml"/> -->
- <ProjectTemplate id = "IkvmGtkApplicationProject" resource = "IkvmGtkApplicationProject.xpt.xml"/>
- <ProjectTemplate id = "JavaApplicationProject" resource = "JavaApplicationProject.xpt.xml"/>
- <ProjectTemplate id = "JavaConsoleApplicationProject" resource = "JavaConsoleApplicationProject.xpt.xml"/>
- <ProjectTemplate id = "IkvmLibraryProject" resource = "IkvmLibraryProject.xpt.xml"/>
- </Extension>
-
- <Extension path = "/MonoDevelop/ProjectModel/Gui/ItemOptionPanels/Build">
- <Condition id="ActiveLanguage" value = "Java">
- <Section id = "JavaProjectPanel"
- _label = "Code Generation"
- class = "JavaBinding.ProjectConfigurationPropertyPanel"/>
- </Condition>
- </Extension>
-
- <Extension path = "/MonoDevelop/Ide/GlobalOptionsDialog/Other">
- <Section _label = "Java" icon="md-java" class = "JavaBinding.GlobalOptionsPanelPanel" />
- </Extension>
-
- <Extension path = "/MonoDevelop/Core/MimeTypes">
- <MimeType id="text/x-java" _description="Java source code" icon="md-java-file" isText="true">
- <File pattern="*.java" />
- </MimeType>
- </Extension>
-
- <Extension path = "/MonoDevelop/ProjectModel/LanguageBindings">
- <LanguageBinding id = "Java"
- supportedextensions = ".java"
- class = "JavaBinding.JavaLanguageBinding" />
- </Extension>
-
- <Extension path = "/MonoDevelop/ProjectModel/SerializableClasses">
- <DataType class = "JavaBinding.JavaCompilerParameters" />
- </Extension>
-
- <Extension path = "/MonoDevelop/Core/StockIcons">
- <StockIcon stockid = "md-java" resource = "java-16.png" icon="Menu" />
- <StockIcon stockid = "md-java" resource = "java-22.png" />
- <StockIcon stockid = "md-java-file" resource = "Java.FileIcon" />
- </Extension>
-
- <Extension path = "/MonoDevelop/ProjectModel/MSBuildItemTypes">
- <DotNetProject
- language="Java"
- extension="jproj"
- guid="{270db560-42d5-11dd-ae16-0800200c9a66}" />
- </Extension>
-
- <Extension path = "/MonoDevelop/ProjectModel/MD1SerializationMaps">
- <SerializationMap resource="md1format.xml" />
- </Extension>
-
-</Addin>
diff --git a/extras/JavaBinding/JavaBinding.csproj b/extras/JavaBinding/JavaBinding.csproj
deleted file mode 100644
index a30ea01b03..0000000000
--- a/extras/JavaBinding/JavaBinding.csproj
+++ /dev/null
@@ -1,158 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <ProductVersion>9.0.21022</ProductVersion>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{50A54FBA-D5B3-49F3-AC28-A7EE6AF145B5}</ProjectGuid>
- <OutputType>Library</OutputType>
- <AssemblyName>JavaBinding</AssemblyName>
- <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
- <RootNamespace>JavaBinding</RootNamespace>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- <DebugSymbols>true</DebugSymbols>
- <DebugType>full</DebugType>
- <Optimize>false</Optimize>
- <OutputPath>build</OutputPath>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>3</WarningLevel>
- <CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
- <Execution>
- <Execution clr-version="Net_2_0" />
- </Execution>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- <DebugType>none</DebugType>
- <Optimize>true</Optimize>
- <OutputPath>build</OutputPath>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- <CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
- <Execution>
- <Execution clr-version="Net_2_0" />
- </Execution>
- </PropertyGroup>
- <ItemGroup>
- <Reference Include="System" />
- <Reference Include="System.Xml" />
- <Reference Include="System.Drawing" />
- <Reference Include="MonoDevelop.Core, Version=1.9.2.0, Culture=neutral">
- <Package>monodevelop</Package>
- </Reference>
- <Reference Include="MonoDevelop.Ide, Version=1.9.2.0, Culture=neutral">
- <Package>monodevelop</Package>
- </Reference>
- <Reference Include="NRefactory, Version=0.0.0.0, Culture=neutral">
- <Package>monodevelop</Package>
- </Reference>
- <Reference Include="Mono.Posix" />
- <Reference Include="Mono.Addins, Version=0.4.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756">
- <SpecificVersion>False</SpecificVersion>
- </Reference>
- <Reference Include="Mono.Cecil, Version=0.6.8.8607, Culture=neutral">
- <Package>monodevelop</Package>
- </Reference>
- <Reference Include="glade-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
- <Reference Include="pango-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
- <Reference Include="atk-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
- <Reference Include="gdk-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
- <Reference Include="gtk-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
- <Reference Include="Mono.TextEditor, Version=1.0.0.0, Culture=neutral">
- <Package>monodevelop</Package>
- </Reference>
- <Reference Include="Mono.Debugging, Version=0.0.0.0, Culture=neutral, PublicKeyToken=5e9ce85b0923c84f">
- <Package>monodevelop</Package>
- </Reference>
- </ItemGroup>
- <ItemGroup>
- <EmbeddedResource Include="templates\EmptyJavaFile.xft.xml">
- <LogicalName>EmptyJavaFile.xft.xml</LogicalName>
- </EmbeddedResource>
- <EmbeddedResource Include="templates\EmptyJavaProject.xpt.xml">
- <LogicalName>EmptyJavaProject.xpt.xml</LogicalName>
- </EmbeddedResource>
- <EmbeddedResource Include="templates\IkvmConsoleApplicationProject.xpt.xml">
- <LogicalName>IkvmConsoleApplicationProject.xpt.xml</LogicalName>
- </EmbeddedResource>
- <EmbeddedResource Include="templates\IkvmGladeApplicationProject.xpt.xml">
- <LogicalName>IkvmGladeApplicationProject.xpt.xml</LogicalName>
- </EmbeddedResource>
- <EmbeddedResource Include="templates\IkvmGnomeApplicationProject.xpt.xml">
- <LogicalName>IkvmGnomeApplicationProject.xpt.xml</LogicalName>
- </EmbeddedResource>
- <EmbeddedResource Include="templates\IkvmGtkApplicationProject.xpt.xml">
- <LogicalName>IkvmGtkApplicationProject.xpt.xml</LogicalName>
- </EmbeddedResource>
- <EmbeddedResource Include="templates\IkvmLibraryProject.xpt.xml">
- <LogicalName>IkvmLibraryProject.xpt.xml</LogicalName>
- </EmbeddedResource>
- <EmbeddedResource Include="templates\JavaApplet.xft.xml">
- <LogicalName>JavaApplet.xft.xml</LogicalName>
- </EmbeddedResource>
- <EmbeddedResource Include="templates\JavaApplicationProject.xpt.xml">
- <LogicalName>JavaApplicationProject.xpt.xml</LogicalName>
- </EmbeddedResource>
- <EmbeddedResource Include="templates\JavaApplication.xft.xml">
- <LogicalName>JavaApplication.xft.xml</LogicalName>
- </EmbeddedResource>
- <EmbeddedResource Include="templates\JavaConsoleApplicationProject.xpt.xml">
- <LogicalName>JavaConsoleApplicationProject.xpt.xml</LogicalName>
- </EmbeddedResource>
- <EmbeddedResource Include="templates\JavaDialog.xft.xml">
- <LogicalName>JavaDialog.xft.xml</LogicalName>
- </EmbeddedResource>
- <EmbeddedResource Include="templates\JavaFrame.xft.xml">
- <LogicalName>JavaFrame.xft.xml</LogicalName>
- </EmbeddedResource>
- <EmbeddedResource Include="templates\JavaOKDialog.xft.xml">
- <LogicalName>JavaOKDialog.xft.xml</LogicalName>
- </EmbeddedResource>
- <EmbeddedResource Include="templates\JavaPanel.xft.xml">
- <LogicalName>JavaPanel.xft.xml</LogicalName>
- </EmbeddedResource>
- <EmbeddedResource Include="icons\Java.FileIcon">
- <LogicalName>Java.FileIcon</LogicalName>
- </EmbeddedResource>
- <EmbeddedResource Include="JavaBinding.addin.xml">
- <LogicalName>JavaBinding.addin.xml</LogicalName>
- </EmbeddedResource>
- <EmbeddedResource Include="icons\java-icon-32.png">
- <LogicalName>java-icon-32.png</LogicalName>
- </EmbeddedResource>
- <EmbeddedResource Include="gtk-gui\gui.stetic">
- <LogicalName>gui.stetic</LogicalName>
- </EmbeddedResource>
- <EmbeddedResource Include="icons\java-16.png">
- <LogicalName>java-16.png</LogicalName>
- </EmbeddedResource>
- <EmbeddedResource Include="icons\java-22.png">
- <LogicalName>java-22.png</LogicalName>
- </EmbeddedResource>
- <EmbeddedResource Include="md1format.xml">
- <LogicalName>md1format.xml</LogicalName>
- </EmbeddedResource>
- </ItemGroup>
- <ItemGroup>
- <Compile Include="Gui\ProjectConfigurationPropertyPanel.cs" />
- <Compile Include="Gui\GlobalOptionsPanel.cs" />
- <Compile Include="Project\JavaCompilerParameters.cs" />
- <Compile Include="JavaCompiler.cs" />
- <Compile Include="JavaLanguageBinding.cs" />
- <Compile Include="gtk-gui\generated.cs" />
- <Compile Include="gtk-gui\JavaBinding.CodeGenerationPanelWidget.cs" />
- <Compile Include="gtk-gui\JavaBinding.GlobalOptionsPanelWidget.cs" />
- <Compile Include="IKVMCompilerManager.cs" />
- <Compile Include="AssemblyInfo.cs" />
- </ItemGroup>
- <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
- <ProjectExtensions>
- <MonoDevelop>
- <Properties>
- <Deployment.LinuxDeployData generatePcFile="false" />
- <GtkDesignInfo gettextClass="Mono.Addins.AddinManager.CurrentLocalizer" />
- </Properties>
- </MonoDevelop>
- </ProjectExtensions>
-</Project> \ No newline at end of file
diff --git a/extras/JavaBinding/JavaBinding.make b/extras/JavaBinding/JavaBinding.make
deleted file mode 100644
index e34ad1e3ed..0000000000
--- a/extras/JavaBinding/JavaBinding.make
+++ /dev/null
@@ -1,148 +0,0 @@
-
-
-# Warning: This is an automatically generated file, do not edit!
-
-srcdir=.
-top_srcdir=.
-
-include $(top_srcdir)/Makefile.include
-include $(top_srcdir)/config.make
-
-ifeq ($(CONFIG),DEBUG)
-ASSEMBLY_COMPILER_COMMAND = dmcs
-ASSEMBLY_COMPILER_FLAGS = -noconfig -codepage:utf8 -warn:4 -optimize- -debug -define:DEBUG
-ASSEMBLY = build/JavaBinding.dll
-ASSEMBLY_MDB = $(ASSEMBLY).mdb
-COMPILE_TARGET = library
-PROJECT_REFERENCES =
-BUILD_DIR = build
-
-
-endif
-
-ifeq ($(CONFIG),RELEASE)
-ASSEMBLY_COMPILER_COMMAND = dmcs
-ASSEMBLY_COMPILER_FLAGS = -noconfig -codepage:utf8 -warn:4 -optimize+
-ASSEMBLY = build/JavaBinding.dll
-ASSEMBLY_MDB =
-COMPILE_TARGET = library
-PROJECT_REFERENCES =
-BUILD_DIR = build
-
-
-endif
-
-INSTALL_DIR = $(DESTDIR)$(prefix)/lib/monodevelop/AddIns/JavaBinding
-
-LINUX_PKGCONFIG = \
- $(JAVABINDING_PC)
-
-
-
-JAVABINDING_PC = $(BUILD_DIR)/monodevelop-java.pc
-
-
-FILES = \
- AssemblyInfo.cs \
- gtk-gui/generated.cs \
- gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs \
- gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs \
- Gui/GlobalOptionsPanel.cs \
- Gui/ProjectConfigurationPropertyPanel.cs \
- IKVMCompilerManager.cs \
- JavaCompiler.cs \
- JavaLanguageBinding.cs \
- Project/JavaCompilerParameters.cs
-
-DATA_FILES =
-
-RESOURCES = \
- gtk-gui/gui.stetic \
- icons/Java.FileIcon \
- icons/java-16.png \
- icons/java-22.png \
- icons/java-icon-32.png \
- JavaBinding.addin.xml \
- md1format.xml \
- templates/EmptyJavaFile.xft.xml \
- templates/EmptyJavaProject.xpt.xml \
- templates/IkvmConsoleApplicationProject.xpt.xml \
- templates/IkvmGladeApplicationProject.xpt.xml \
- templates/IkvmGnomeApplicationProject.xpt.xml \
- templates/IkvmGtkApplicationProject.xpt.xml \
- templates/IkvmLibraryProject.xpt.xml \
- templates/JavaApplet.xft.xml \
- templates/JavaApplication.xft.xml \
- templates/JavaApplicationProject.xpt.xml \
- templates/JavaConsoleApplicationProject.xpt.xml \
- templates/JavaDialog.xft.xml \
- templates/JavaFrame.xft.xml \
- templates/JavaOKDialog.xft.xml \
- templates/JavaPanel.xft.xml
-
-EXTRAS = \
- monodevelop-java.pc.in
-
-REFERENCES = \
- Mono.Posix \
- -pkg:glade-sharp-2.0 \
- -pkg:gtk-sharp-2.0 \
- -pkg:mono-addins \
- -pkg:monodevelop \
- System \
- System.Drawing \
- System.Xml
-
-DLL_REFERENCES =
-
-CLEANFILES += $(LINUX_PKGCONFIG)
-
-#Targets
-all-local: $(ASSEMBLY) $(LINUX_PKGCONFIG) $(top_srcdir)/config.make
-
-$(JAVABINDING_PC): monodevelop-java.pc
- mkdir -p $(BUILD_DIR)
- cp '$<' '$@'
-
-
-
-monodevelop-java.pc: monodevelop-java.pc.in $(top_srcdir)/config.make
- sed -e "s,@prefix@,$(prefix)," -e "s,@PACKAGE@,$(PACKAGE)," < monodevelop-java.pc.in > monodevelop-java.pc
-
-monodevelop-java.spec: monodevelop-java.spec.in $(top_srcdir)/config.make
- sed -e "s,@prefix@,$(prefix)," -e "s,@PACKAGE@,$(PACKAGE)," < monodevelop-java.spec.in > monodevelop-java.spec
-
-$(build_xamlg_list): %.xaml.g.cs: %.xaml
- xamlg '$<'
-
-$(build_resx_resources) : %.resources: %.resx
- resgen2 '$<' '$@'
-
-update-po:
- mdtool gettext-update
-
-LOCAL_PKGCONFIG=PKG_CONFIG_PATH=../../local-config:$$PKG_CONFIG_PATH
-
-$(ASSEMBLY) $(ASSEMBLY_MDB): $(build_sources) $(build_resources) $(build_datafiles) $(DLL_REFERENCES) $(PROJECT_REFERENCES) $(build_xamlg_list)
- make pre-all-local-hook prefix=$(prefix)
- mkdir -p $(dir $(ASSEMBLY))
- make $(CONFIG)_BeforeBuild
- $(LOCAL_PKGCONFIG) $(ASSEMBLY_COMPILER_COMMAND) $(ASSEMBLY_COMPILER_FLAGS) -out:$(ASSEMBLY) -target:$(COMPILE_TARGET) $(build_sources_embed) $(build_resources_embed) $(build_references_ref)
- make $(CONFIG)_AfterBuild
- make post-all-local-hook prefix=$(prefix)
-
-
-install-local: $(ASSEMBLY) $(ASSEMBLY_MDB) $(JAVABINDING_PC)
- make pre-install-local-hook prefix=$(prefix)
- mkdir -p $(INSTALL_DIR)
- cp $(ASSEMBLY) $(ASSEMBLY_MDB) $(INSTALL_DIR)
- mkdir -p $(DESTDIR)$(prefix)/lib/pkgconfig
- test -z '$(JAVABINDING_PC)' || cp $(JAVABINDING_PC) $(DESTDIR)$(prefix)/lib/pkgconfig
- make post-install-local-hook prefix=$(prefix)
-
-uninstall-local: $(ASSEMBLY) $(ASSEMBLY_MDB) $(JAVABINDING_PC)
- make pre-uninstall-local-hook prefix=$(prefix)
- rm -f $(INSTALL_DIR)/$(notdir $(ASSEMBLY))
- test -z '$(ASSEMBLY_MDB)' || rm -f $(INSTALL_DIR)/$(notdir $(ASSEMBLY_MDB))
- test -z '$(JAVABINDING_PC)' || rm -f $(INSTALL_DIR)/$(notdir $(JAVABINDING_PC))
- make post-uninstall-local-hook prefix=$(prefix)
diff --git a/extras/JavaBinding/JavaBinding.sln b/extras/JavaBinding/JavaBinding.sln
deleted file mode 100644
index 78a88993b2..0000000000
--- a/extras/JavaBinding/JavaBinding.sln
+++ /dev/null
@@ -1,44 +0,0 @@
-
-Microsoft Visual Studio Solution File, Format Version 11.00
-# Visual Studio 2010
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "JavaBinding", "JavaBinding.csproj", "{50A54FBA-D5B3-49F3-AC28-A7EE6AF145B5}"
-EndProject
-Project("{9344bdbb-3e7f-41fc-a0dd-8665d75ee146}") = "po", "po\po.mdproj", "{32285FB0-30D6-408F-8220-DFA21C56A10B}"
-EndProject
-Global
- GlobalSection(SolutionConfigurationPlatforms) = preSolution
- Debug|Any CPU = Debug|Any CPU
- Release|Any CPU = Release|Any CPU
- EndGlobalSection
- GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {32285FB0-30D6-408F-8220-DFA21C56A10B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {32285FB0-30D6-408F-8220-DFA21C56A10B}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {32285FB0-30D6-408F-8220-DFA21C56A10B}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {32285FB0-30D6-408F-8220-DFA21C56A10B}.Release|Any CPU.Build.0 = Release|Any CPU
- {50A54FBA-D5B3-49F3-AC28-A7EE6AF145B5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {50A54FBA-D5B3-49F3-AC28-A7EE6AF145B5}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {50A54FBA-D5B3-49F3-AC28-A7EE6AF145B5}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {50A54FBA-D5B3-49F3-AC28-A7EE6AF145B5}.Release|Any CPU.Build.0 = Release|Any CPU
- EndGlobalSection
- GlobalSection(MonoDevelopProperties) = preSolution
- StartupItem = JavaBinding.csproj
- Policies = $0
- $0.DotNetNamingPolicy = $1
- $1.DirectoryNamespaceAssociation = Flat
- $1.ResourceNamePolicy = FileName
- $0.StandardHeader = $2
- $2.Text = @\n${FileName}\n \nAuthor:\n ${AuthorName} <${AuthorEmail}>\n\nCopyright (c) ${Year} ${CopyrightHolder}\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the "Software"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.
- $2.IncludeInNewFiles = True
- $0.TextStylePolicy = $3
- $3.FileWidth = 120
- $3.TabWidth = 4
- $3.inheritsSet = Mono
- $3.inheritsScope = text/plain
- $0.VersionControlPolicy = $4
- $4.inheritsSet = Mono
- $0.ChangeLogPolicy = $5
- $5.UpdateMode = None
- $5.VcsIntegration = None
- $5.inheritsSet = Mono
- EndGlobalSection
-EndGlobal
diff --git a/extras/JavaBinding/JavaCompiler.cs b/extras/JavaBinding/JavaCompiler.cs
deleted file mode 100644
index 17245eb9c5..0000000000
--- a/extras/JavaBinding/JavaCompiler.cs
+++ /dev/null
@@ -1,10 +0,0 @@
-using System;
-
-namespace JavaBinding
-{
- public enum JavaCompiler
- {
- Javac,
- Gcj,
- }
-}
diff --git a/extras/JavaBinding/JavaLanguageBinding.cs b/extras/JavaBinding/JavaLanguageBinding.cs
deleted file mode 100644
index 86f8006003..0000000000
--- a/extras/JavaBinding/JavaLanguageBinding.cs
+++ /dev/null
@@ -1,147 +0,0 @@
-// JavaLanguageBinding.cs
-//
-// This file was derived from a file from #Develop.
-//
-// Copyright (C) 2001-2007 Mike Krüger <mkrueger@novell.com>
-//
-// This program is free software; you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation; either version 2 of the License, or
-// (at your option) any later version.
-//
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with this program; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-
-using System;
-using System.IO;
-using System.Diagnostics;
-using System.Collections;
-using System.Reflection;
-using System.Resources;
-using System.Xml;
-using System.CodeDom.Compiler;
-
-using MonoDevelop.Projects;
-using MonoDevelop.Projects.Dom;
-using MonoDevelop.Projects.Dom.Parser;
-using MonoDevelop.Core;
-using MonoDevelop.Projects.CodeGeneration;
-
-namespace JavaBinding
-{
- /// <summary>
- /// This class describes the main functionalaty of a language binding
- /// </summary>
- public class JavaLanguageBinding : IDotNetLanguageBinding
- {
- internal const string LanguageName = "Java";
- static GlobalProperties props = new GlobalProperties ();
-
- public static GlobalProperties Properties {
- get { return props; }
- }
-
- public string Language {
- get {
- return LanguageName;
- }
- }
- public string ProjectStockIcon {
- get {
- return "md-project";
- }
- }
- public bool IsSourceCodeFile (string fileName)
- {
- return Path.GetExtension (fileName) == ".java";
- }
-
- public BuildResult Compile (ProjectItemCollection projectItems, DotNetProjectConfiguration configuration, ConfigurationSelector configurationSelector, IProgressMonitor monitor)
- {
- return IKVMCompilerManager.Compile (projectItems, configuration, configurationSelector, monitor);
- }
-
- public ConfigurationParameters CreateCompilationParameters (XmlElement projectOptions)
- {
- JavaCompilerParameters parameters = new JavaCompilerParameters ();
- if (Properties.Classpath.Length > 0)
- parameters.ClassPath = Properties.Classpath;
-
- parameters.Compiler = Properties.CompilerType;
- parameters.CompilerPath = Properties.CompilerCommand;
-
- if (projectOptions != null) {
- if (projectOptions.Attributes["MainClass"] != null) {
- parameters.MainClass = projectOptions.GetAttribute ("MainClass");
- }
- if (projectOptions.Attributes["ClassPath"] != null) {
- parameters.ClassPath += ":" + projectOptions.GetAttribute ("ClassPath");
- }
- }
- return parameters;
- }
-
- public ProjectParameters CreateProjectParameters (XmlElement projectOptions)
- {
- return null;
- }
-
- public string SingleLineCommentTag { get { return "//"; } }
- public string BlockCommentStartTag { get { return "/*"; } }
- public string BlockCommentEndTag { get { return "*/"; } }
-
- public CodeDomProvider GetCodeDomProvider ()
- {
- return null;
- }
-
- public string GetFileName (string baseName)
- {
- return baseName + ".java";
- }
-
- public IParser Parser {
- get { return null; }
- }
-
- public IRefactorer Refactorer {
- get { return null; }
- }
-
- public ClrVersion[] GetSupportedClrVersions ()
- {
- return new ClrVersion[] { ClrVersion.Net_2_0 };
- }
- }
-
- public class GlobalProperties
- {
- Properties props = (Properties) PropertyService.Get ("JavaBinding.GlobalProps", new Properties ());
-
- public string IkvmPath {
- get { return props.Get ("IkvmPath", ""); }
- set { props.Set ("IkvmPath", value != null ? value : ""); }
- }
-
- public string CompilerCommand {
- get { return props.Get ("CompilerCommand", ""); }
- set { props.Set ("CompilerCommand", value != null ? value : "javac"); }
- }
-
- public JavaCompiler CompilerType {
- get { return (JavaCompiler) props.Get ("CompilerType", 0); }
- set { props.Set ("CompilerType", (int)value); }
- }
-
- public string Classpath {
- get { return props.Get ("Classpath", ""); }
- set { props.Set ("Classpath", value != null ? value : ""); }
- }
- }
-}
diff --git a/extras/JavaBinding/Makefile b/extras/JavaBinding/Makefile
deleted file mode 100644
index d9576ce63e..0000000000
--- a/extras/JavaBinding/Makefile
+++ /dev/null
@@ -1,72 +0,0 @@
-
-EXTRA_DIST = JavaBinding.make rules.make configure Makefile.include COPYING
-
-all: all-recursive
-
-top_srcdir=.
-include $(top_srcdir)/config.make
-include $(top_srcdir)/rules.make
-
-#include $(top_srcdir)/custom-hooks.make
-
-#Warning: This is an automatically generated file, do not edit!
-ifeq ($(CONFIG),DEBUG)
- SUBDIRS = . po
-endif
-ifeq ($(CONFIG),RELEASE)
- SUBDIRS = . po
-endif
-
-# Include project specific makefile
-include JavaBinding.make
-
-CONFIG_MAKE=$(top_srcdir)/config.make
-
-%-recursive: $(CONFIG_MAKE)
- @set . $$MAKEFLAGS; final_exit=:; \
- case $$2 in --unix) shift ;; esac; \
- case $$2 in *=*) dk="exit 1" ;; *k*) dk=: ;; *) dk="exit 1" ;; esac; \
- make pre-$*-hook prefix=$(prefix) ;\
- for dir in $(SUBDIRS); do \
- case $$dir in \
- .) make $*-local || { final_exit="exit 1"; $$dk; };;\
- *) (cd $$dir && make $*) || { final_exit="exit 1"; $$dk; };;\
- esac \
- done; \
- make post-$*-hook prefix=$(prefix) ;\
- $$final_exit
-
-$(CONFIG_MAKE):
- echo "You must run configure first"
- exit 1
-
-clean: clean-recursive
-install: install-recursive
-uninstall: uninstall-recursive
-
-dist: $(CONFIG_MAKE)
- rm -rf $(PACKAGE)-$(VERSION)
- mkdir $(PACKAGE)-$(VERSION)
- make pre-dist-hook distdir=$$distdir
- for dir in $(SUBDIRS); do \
- pkgdir=`pwd`/$(PACKAGE)-$(VERSION); \
- mkdir $$pkgdir/$$dir || true; \
- case $$dir in \
- .) make dist-local distdir=$$pkgdir || exit 1;; \
- *) (cd $$dir; make dist-local distdir=$$pkgdir/$$dir) || exit 1;; \
- esac \
- done
- (make dist-local distdir=$(PACKAGE)-$(VERSION))
- make post-dist-hook distsir=$$distdir
- tar czvf $(PACKAGE)-$(VERSION).tar.gz $(PACKAGE)-$(VERSION)
- rm -rf $(PACKAGE)-$(VERSION)
- @echo "=========================================="
- @echo "$(PACKAGE)-$(VERSION) has been packaged > $(PACKAGE)-$(VERSION).tar.gz"
- @echo "=========================================="
-
-distcheck: dist
- (mkdir test; cd test; \
- tar xzvf ../$(PACKAGE)-$(VERSION).tar.gz; cd $(PACKAGE)-$(VERSION); \
- ./configure --prefix=$$(cd `pwd`/..; pwd); \
- make && make install && make dist);
- rm -rf test
diff --git a/extras/JavaBinding/Makefile.include b/extras/JavaBinding/Makefile.include
deleted file mode 100644
index 159f5be409..0000000000
--- a/extras/JavaBinding/Makefile.include
+++ /dev/null
@@ -1,35 +0,0 @@
-build_sources = $(FILES) $(GENERATED_FILES)
-build_sources_embed = $(build_sources:%='$(srcdir)/%')
-
-comma__=,
-build_resx_list = $(foreach res, $(RESOURCES), $(if $(filter %.resx, $(firstword $(subst $(comma__), ,$(res)))),$(res),))
-build_others_list = $(foreach res, $(RESOURCES), $(if $(filter %.resx, $(firstword $(subst $(comma__), ,$(res)))), ,$(res)))
-build_xamlg_list = $(filter %.xaml.g.cs, $(FILES))
-
-build_resx_files = $(foreach res, $(build_resx_list), $(firstword $(subst $(comma__), ,$(res))))
-build_resx_resources = $(build_resx_files:.resx=.resources)
-build_resx_resources_hack = $(subst .resx,.resources, $(build_resx_list))
-build_resx_resources_embed = $(build_resx_resources_hack:%='-resource:%')
-
-build_others_files = $(foreach res, $(build_others_list), $(firstword $(subst $(comma__), ,$(res))))
-build_others_resources = $(build_others_files)
-build_others_resources_embed = $(build_others_list:%='-resource:$(srcdir)/%')
-
-build_resources = $(build_resx_resources) $(build_others_resources)
-build_resources_embed = $(build_resx_resources_embed) $(build_others_resources_embed)
-
-build_references_ref = $(foreach ref, $(REFERENCES), $(if $(filter -pkg:%, $(ref)), $(ref), $(if $(filter -r:%, $(ref)), $(ref), -r:$(ref))))
-build_references_ref += $(foreach ref, $(DLL_REFERENCES), -r:$(ref))
-build_references_ref += $(foreach ref, $(PROJECT_REFERENCES), -r:$(ref))
-
-EXTRA_DIST += $(build_sources) $(build_resx_files) $(build_others_files) $(ASSEMBLY_WRAPPER_IN) $(EXTRAS) $(DATA_FILES)
-CLEANFILES = $(ASSEMBLY) $(ASSEMBLY).mdb $(BINARIES) $(build_resx_resources)
-DISTCLEANFILES = $(GENERATED_FILES) $(pc_files) $(BUILD_DIR)/*
-
-pkglib_SCRIPTS = $(ASSEMBLY)
-bin_SCRIPTS = $(BINARIES)
-
-linuxpkgconfigdir = @prefix@/lib/pkgconfig
-linuxpkgconfig_DATA = $(LINUX_PKGCONFIG)
-
-LOCAL_PKGCONFIG=PKG_CONFIG_PATH=$(top_srcdir)/../../local-config:$$PKG_CONFIG_PATH
diff --git a/extras/JavaBinding/Parser/ExpressionFinder.cs b/extras/JavaBinding/Parser/ExpressionFinder.cs
deleted file mode 100644
index e3a6e0b314..0000000000
--- a/extras/JavaBinding/Parser/ExpressionFinder.cs
+++ /dev/null
@@ -1,380 +0,0 @@
-using System;
-using System.Text;
-using MonoDevelop.Projects.Parser;
-
-namespace JavaBinding.Parser
-{
- /// <summary>
- /// Description of ExpressionFinder.
- /// </summary>
- public class ExpressionFinder : IExpressionFinder
- {
- public string FindExpression(string inText, int offset)
- {
- this.text = FilterComments(inText, ref offset);
- this.text = text;
- this.offset = this.lastAccept = offset;
- this.state = START;
- if (this.text == null) {
- return null;
- }
-
- while (state != ERROR) {
- ReadNextToken();
- //Console.WriteLine("cur state {0} got token {1} going to {2}", GetStateName(state), GetTokenName(curTokenType), GetStateName(stateTable[state, curTokenType]));
- state = stateTable[state, curTokenType];
-
- if (state == ACCEPT || state == ACCEPT2) {
- lastAccept = this.offset;
- }
- if (state == ACCEPTNOMORE) {
- return this.text.Substring(this.offset + 1, offset - this.offset);
- }
- }
- return this.text.Substring(this.lastAccept + 1, offset - this.lastAccept);
- }
-
- #region Comment Filter and 'inside string watcher'
- int initialOffset;
- public string FilterComments(string text, ref int offset)
- {
- this.initialOffset = offset;
- StringBuilder outText = new StringBuilder();
- int curOffset = 0;
- while (curOffset <= initialOffset) {
- char ch = text[curOffset];
-
- switch (ch) {
- case '@':
- if (curOffset + 1 < text.Length && text[curOffset + 1] == '"') {
- outText.Append(text[curOffset++]); // @
- outText.Append(text[curOffset++]); // "
- if (!ReadVerbatimString(outText, text, ref curOffset)) {
- return null;
- }
- }else{
- outText.Append(ch);
- ++curOffset;
- }
- break;
- case '\'':
- outText.Append(ch);
- curOffset++;
- // to read '" and '\" ... this should work for these cases
- if (curOffset <= initialOffset) {
- outText.Append(text[curOffset++]);
- }
- if (curOffset <= initialOffset) {
- outText.Append(text[curOffset++]);
- }
- break;
- case '"':
- outText.Append(ch);
- curOffset++;
- if (!ReadString(outText, text, ref curOffset)) {
- return null;
- }
- break;
- case '/':
- if (curOffset + 1 < text.Length && text[curOffset + 1] == '/') {
- offset -= 2;
- curOffset += 2;
- if (!ReadToEOL(text, ref curOffset, ref offset)) {
- return null;
- }
- } else if (curOffset + 1 < text.Length && text[curOffset + 1] == '*') {
- offset -= 2;
- curOffset += 2;
- if (!ReadMultiLineComment(text, ref curOffset, ref offset)) {
- return null;
- }
- } else {
- goto default;
- }
- break;
- default:
- outText.Append(ch);
- ++curOffset;
- break;
- }
- }
-
- return outText.ToString();
- }
-
- bool ReadToEOL(string text, ref int curOffset, ref int offset)
- {
- while (curOffset <= initialOffset) {
- char ch = text[curOffset++];
- --offset;
- if (ch == '\n') {
- return true;
- }
- }
- return false;
- }
-
- bool ReadString(StringBuilder outText, string text, ref int curOffset)
- {
- while (curOffset <= initialOffset) {
- char ch = text[curOffset++];
- outText.Append(ch);
- if (ch == '"') {
- return true;
- } else if (ch == '\\') {
- outText.Append(text[curOffset++]);
- }
- }
- return false;
- }
-
- bool ReadVerbatimString(StringBuilder outText, string text, ref int curOffset)
- {
- while (curOffset <= initialOffset) {
- char ch = text[curOffset++];
- outText.Append(ch);
- if (ch == '"') {
- if (curOffset < text.Length && text[curOffset] == '"') {
- outText.Append(text[curOffset++]);
- } else {
- return true;
- }
- }
- }
- return false;
- }
-
- bool ReadMultiLineComment(string text, ref int curOffset, ref int offset)
- {
- while (curOffset <= initialOffset) {
- char ch = text[curOffset++];
- --offset;
- if (ch == '*') {
- if (curOffset < text.Length && text[curOffset] == '/') {
- ++curOffset;
- --offset;
- return true;
- }
- }
- }
- return false;
- }
- #endregion
-
- #region mini backward lexer
- string text;
- int offset;
-
- char GetNext()
- {
- if (offset >= 0) {
- return text[offset--];
- }
- return '\0';
- }
-
- char Peek()
- {
- if (offset >= 0) {
- return text[offset];
- }
- return '\0';
- }
-
- void UnGet()
- {
- ++offset;
- }
-
- // tokens for our lexer
- static int Err = 0;
- static int Dot = 1;
- static int StrLit = 2;
- static int Ident = 3;
- static int New = 4;
- static int Bracket = 5;
- static int Parent = 6;
- static int Curly = 7;
- static int Using = 8;
- int curTokenType;
-
- string GetTokenName(int state)
- {
- string[] stateName = new string[] {
- "Err", "Dot", "StrLit", "Ident", "New", "Bracket", "Paren", "Curly", "Using"
- };
- return stateName[state];
- }
-
- void ReadNextToken()
- {
- char ch = GetNext();
-
- curTokenType = Err;
- if (ch == '\0') {
- return;
- }
- while (Char.IsWhiteSpace(ch)) {
- ch = GetNext();
- }
-
- switch (ch) {
- case '}':
- if (ReadBracket('{', '}')) {
- curTokenType = Curly;
- }
- break;
- case ')':
- if (ReadBracket('(', ')')) {
- curTokenType = Parent;
- }
- break;
- case ']':
- if (ReadBracket('[', ']')) {
- curTokenType = Bracket;
- }
- break;
- case '.':
- curTokenType = Dot;
- break;
- case '\'':
- case '"':
- if (ReadStringLiteral(ch)) {
- curTokenType = StrLit;
- }
- break;
- default:
- string ident = ReadIdentifier(ch);
- if (ident != null) {
- switch (ident) {
- case "new":
- curTokenType = New;
- break;
- case "using":
- curTokenType = Using;
- break;
- default:
- curTokenType = Ident;
- break;
- }
- }
- break;
- }
- }
-
- bool ReadStringLiteral(char litStart)
- {
- while (true) {
- char ch = GetNext();
- if (ch == '\0') {
- return false;
- }
- if (ch == litStart) {
- if (Peek() == '@' && litStart == '"') {
- GetNext();
- }
- return true;
- }
- }
- }
-
- bool ReadBracket(char openBracket, char closingBracket)
- {
- int curlyBraceLevel = 0;
- int squareBracketLevel = 0;
- int parenthesisLevel = 0;
- switch (openBracket) {
- case '(':
- parenthesisLevel++;
- break;
- case '[':
- squareBracketLevel++;
- break;
- case '{':
- curlyBraceLevel++;
- break;
- }
-
- while (parenthesisLevel != 0 || squareBracketLevel != 0 || curlyBraceLevel != 0) {
- char ch = GetNext();
- if (ch == '\0') {
- return false;
- }
- switch (ch) {
- case '(':
- parenthesisLevel--;
- break;
- case '[':
- squareBracketLevel--;
- break;
- case '{':
- curlyBraceLevel--;
- break;
- case ')':
- parenthesisLevel++;
- break;
- case ']':
- squareBracketLevel++;
- break;
- case '}':
- curlyBraceLevel++;
- break;
- }
- }
- return true;
- }
-
- string ReadIdentifier(char ch)
- {
- string identifier = ch.ToString();
- while (IsIdentifierPart(Peek())) {
- identifier = GetNext() + identifier;
- }
- return identifier;
- }
-
- bool IsIdentifierPart(char ch)
- {
- return Char.IsLetterOrDigit(ch) || ch == '_';
- }
- #endregion
-
- #region finite state machine
- static int ERROR = 0;
- static int START = 1;
- static int DOT = 2;
- static int MORE = 3;
- static int CURLY = 4;
- static int CURLY2 = 5;
- static int CURLY3 = 6;
-
- static int ACCEPT = 7;
- static int ACCEPTNOMORE = 8;
- static int ACCEPT2 = 9;
-
- string GetStateName(int state)
- {
- string[] stateName = new string[] {
- "ERROR", "START", "DOT", "MORE", "CURLY", "CURLY2", "CURLY3", "ACCEPT", "ACCEPTNOMORE", "ACCEPT2"
- };
- return stateName[state];
- }
-
- int state = 0;
- int lastAccept = 0;
- static int[,] stateTable = new int[,] {
- // Err, Dot, Str, ID, New, Brk, Par, Cur, Using
- /*ERROR*/ { ERROR, ERROR, ERROR, ERROR, ERROR, ERROR, ERROR, ERROR, ERROR},
- /*START*/ { ERROR, DOT, ACCEPT, ACCEPT, ERROR, MORE, ACCEPT2, CURLY, ACCEPTNOMORE},
- /*DOT*/ { ERROR, ERROR, ACCEPT, ACCEPT, ERROR, MORE, ACCEPT, CURLY, ERROR},
- /*MORE*/ { ERROR, ERROR, ACCEPT, ACCEPT, ERROR, MORE, ACCEPT2, CURLY, ERROR},
- /*CURLY*/ { ERROR, ERROR, ERROR, ERROR, ERROR, CURLY2, ERROR, ERROR, ERROR},
- /*CURLY2*/ { ERROR, ERROR, ERROR, CURLY3, ERROR, ERROR, ERROR, ERROR, ERROR},
- /*CURLY3*/ { ERROR, ERROR, ERROR, ERROR, ACCEPTNOMORE, ERROR, ERROR, ERROR, ERROR},
- /*ACCEPT*/ { ERROR, MORE, ERROR, ERROR, ACCEPT, ERROR, ERROR, ERROR, ACCEPTNOMORE},
- /*ACCEPTNOMORE*/ { ERROR, ERROR, ERROR, ERROR, ERROR, ERROR, ERROR, ERROR, ERROR},
- /*ACCEPT2*/ { ERROR, MORE, ERROR, ACCEPT, ACCEPT, ERROR, ERROR, ERROR, ERROR},
- };
- #endregion
- }
-}
diff --git a/extras/JavaBinding/Parser/JavaVisitor.cs b/extras/JavaBinding/Parser/JavaVisitor.cs
deleted file mode 100644
index d2e18663a6..0000000000
--- a/extras/JavaBinding/Parser/JavaVisitor.cs
+++ /dev/null
@@ -1,252 +0,0 @@
-// created on 04.08.2003 at 17:49
-using System;
-using System.Drawing;
-using System.Diagnostics;
-using System.Collections;
-
-using RefParser = JRefactory.Parser;
-using AST = JRefactory.Parser.AST;
-using MonoDevelop.Projects.Parser;
-using JavaBinding.Parser.SharpDevelopTree;
-
-namespace JavaBinding.Parser
-{
- public class Using : AbstractUsing
- {
- }
-
- public class JavaVisitor : RefParser.AbstractASTVisitor
- {
- CompilationUnit cu = new CompilationUnit();
- Stack currentNamespace = new Stack();
- Stack currentClass = new Stack();
-
- public CompilationUnit Cu {
- get {
- return cu;
- }
- }
-
- public override object Visit(AST.CompilationUnit compilationUnit, object data)
- {
- //TODO: usings, Comments
- compilationUnit.AcceptChildren(this, data);
- return cu;
- }
-
- public override object Visit(AST.UsingDeclaration usingDeclaration, object data)
- {
- Using u = new Using();
- u.Usings.Add(usingDeclaration.Namespace);
- cu.Usings.Add(u);
- return data;
- }
-
- public override object Visit(AST.UsingAliasDeclaration usingAliasDeclaration, object data)
- {
- Using u = new Using();
- u.Aliases[usingAliasDeclaration.Alias] = usingAliasDeclaration.Namespace;
- cu.Usings.Add(u);
- return data;
- }
-
- AttributeSectionCollection VisitAttributes(ArrayList attributes)
- {
- // TODO Expressions???
- AttributeSectionCollection result = new AttributeSectionCollection();
- foreach (AST.AttributeSection section in attributes) {
- AttributeCollection resultAttributes = new AttributeCollection();
- foreach (AST.Attribute attribute in section.Attributes) {
- IAttribute a = new ASTAttribute(attribute.Name, new ArrayList(attribute.PositionalArguments), new SortedList());
- foreach (AST.NamedArgument n in attribute.NamedArguments) {
- a.NamedArguments[n.Name] = n.Expr;
- }
- }
- IAttributeSection s = new AttributeSection((AttributeTarget)Enum.Parse(typeof (AttributeTarget), section.AttributeTarget), resultAttributes);
- }
- return null;
- }
-
-// ModifierEnum VisitModifier(JRefactory.Parser.Modifier m)
-// {
-// return (ModifierEnum)m;
-// }
-
- public override object Visit(AST.NamespaceDeclaration namespaceDeclaration, object data)
- {
- string name;
- if (currentNamespace.Count == 0) {
- name = namespaceDeclaration.NameSpace;
- } else {
- name = String.Concat((string)currentNamespace.Peek(), '.', namespaceDeclaration.NameSpace);
- }
- currentNamespace.Push(name);
- object ret = namespaceDeclaration.AcceptChildren(this, data);
- currentNamespace.Pop();
- return ret;
- }
-
- ClassType TranslateClassType(RefParser.Types type)
- {
- switch (type) {
- case RefParser.Types.Class:
- return ClassType.Class;
- case RefParser.Types.Enum:
- return ClassType.Enum;
- case RefParser.Types.Interface:
- return ClassType.Interface;
- case RefParser.Types.Struct:
- return ClassType.Struct;
- }
- return ClassType.Class;
- }
-
- public override object Visit(AST.TypeDeclaration typeDeclaration, object data)
- {
- DefaultRegion region = GetRegion(typeDeclaration.StartLocation, typeDeclaration.EndLocation);
- Class c = new Class(cu, TranslateClassType(typeDeclaration.Type), typeDeclaration.Modifier, region);
- if (currentClass.Count > 0) {
- Class cur = ((Class)currentClass.Peek());
- cur.InnerClasses.Add(c);
- c.FullyQualifiedName = String.Concat(cur.FullyQualifiedName, '.', typeDeclaration.Name);
- } else {
- if (currentNamespace.Count == 0) {
- c.FullyQualifiedName = typeDeclaration.Name;
- } else {
- c.FullyQualifiedName = String.Concat(currentNamespace.Peek(), '.', typeDeclaration.Name);
- }
- cu.Classes.Add(c);
- }
- if (typeDeclaration.BaseTypes != null) {
- foreach (string type in typeDeclaration.BaseTypes) {
- c.BaseTypes.Add(type);
- }
- }
- currentClass.Push(c);
- object ret = typeDeclaration.AcceptChildren(this, data);
- currentClass.Pop();
- c.UpdateModifier();
- return ret;
- }
-
- DefaultRegion GetRegion(Point start, Point end)
- {
- return new DefaultRegion(start.Y, start.X, end.Y, end.X);
- }
-
- public override object Visit(AST.MethodDeclaration methodDeclaration, object data)
- {
- DefaultRegion region = GetRegion(methodDeclaration.StartLocation, methodDeclaration.EndLocation);
- DefaultRegion bodyRegion = GetRegion(methodDeclaration.EndLocation, methodDeclaration.Body != null ? methodDeclaration.Body.EndLocation : new Point(-1, -1));
-// Console.WriteLine(region + " --- " + bodyRegion);
- ReturnType type = new ReturnType(methodDeclaration.TypeReference);
- Class c = (Class)currentClass.Peek();
-
- Method method = new Method(String.Concat(methodDeclaration.Name), type, methodDeclaration.Modifier, region, bodyRegion);
- ParameterCollection parameters = new ParameterCollection();
- if (methodDeclaration.Parameters != null) {
- foreach (AST.ParameterDeclarationExpression par in methodDeclaration.Parameters) {
- ReturnType parType = new ReturnType(par.TypeReference);
- Parameter p = new Parameter(par.ParameterName, parType);
- parameters.Add(p);
- }
- }
- method.Parameters = parameters;
- c.Methods.Add(method);
- return null;
- }
-
- public override object Visit(AST.ConstructorDeclaration constructorDeclaration, object data)
- {
- DefaultRegion region = GetRegion(constructorDeclaration.StartLocation, constructorDeclaration.EndLocation);
- DefaultRegion bodyRegion = GetRegion(constructorDeclaration.EndLocation, constructorDeclaration.Body != null ? constructorDeclaration.Body.EndLocation : new Point(-1, -1));
-
- Class c = (Class)currentClass.Peek();
-
- Constructor constructor = new Constructor(constructorDeclaration.Modifier, region, bodyRegion);
- ParameterCollection parameters = new ParameterCollection();
- if (constructorDeclaration.Parameters != null) {
- foreach (AST.ParameterDeclarationExpression par in constructorDeclaration.Parameters) {
- ReturnType parType = new ReturnType(par.TypeReference);
- Parameter p = new Parameter(par.ParameterName, parType);
- parameters.Add(p);
- }
- }
- constructor.Parameters = parameters;
- c.Methods.Add(constructor);
- return null;
- }
-
-
- public override object Visit(AST.FieldDeclaration fieldDeclaration, object data)
- {
- DefaultRegion region = GetRegion(fieldDeclaration.StartLocation, fieldDeclaration.EndLocation);
- Class c = (Class)currentClass.Peek();
- ReturnType type = null;
- if (fieldDeclaration.TypeReference == null) {
- Debug.Assert(c.ClassType == ClassType.Enum);
- } else {
- type = new ReturnType(fieldDeclaration.TypeReference);
- }
- if (currentClass.Count > 0) {
- foreach (AST.VariableDeclaration field in fieldDeclaration.Fields) {
- Field f = new Field(type, field.Name, fieldDeclaration.Modifier, region);
-
- c.Fields.Add(f);
- }
- }
- return null;
- }
-
- public override object Visit(AST.PropertyDeclaration propertyDeclaration, object data)
- {
- DefaultRegion region = GetRegion(propertyDeclaration.StartLocation, propertyDeclaration.EndLocation);
- DefaultRegion bodyRegion = GetRegion(propertyDeclaration.BodyStart, propertyDeclaration.BodyEnd);
-
- ReturnType type = new ReturnType(propertyDeclaration.TypeReference);
- Class c = (Class)currentClass.Peek();
-
- Property property = new Property(propertyDeclaration.Name, type, propertyDeclaration.Modifier, region, bodyRegion);
- c.Properties.Add(property);
- return null;
- }
-
- public override object Visit(AST.EventDeclaration eventDeclaration, object data)
- {
- DefaultRegion region = GetRegion(eventDeclaration.StartLocation, eventDeclaration.EndLocation);
- DefaultRegion bodyRegion = GetRegion(eventDeclaration.BodyStart, eventDeclaration.BodyEnd);
- ReturnType type = new ReturnType(eventDeclaration.TypeReference);
- Class c = (Class)currentClass.Peek();
- Event e = null;
-
- if (eventDeclaration.VariableDeclarators != null) {
- foreach (JRefactory.Parser.AST.VariableDeclaration varDecl in eventDeclaration.VariableDeclarators) {
- e = new Event(varDecl.Name, type, eventDeclaration.Modifier, region, bodyRegion);
- c.Events.Add(e);
- }
- } else {
- e = new Event(eventDeclaration.Name, type, eventDeclaration.Modifier, region, bodyRegion);
- c.Events.Add(e);
- }
- return null;
- }
-
- public override object Visit(AST.IndexerDeclaration indexerDeclaration, object data)
- {
- DefaultRegion region = GetRegion(indexerDeclaration.StartLocation, indexerDeclaration.EndLocation);
- DefaultRegion bodyRegion = GetRegion(indexerDeclaration.BodyStart, indexerDeclaration.BodyEnd);
- ParameterCollection parameters = new ParameterCollection();
- Indexer i = new Indexer(new ReturnType(indexerDeclaration.TypeReference), parameters, indexerDeclaration.Modifier, region, bodyRegion);
- if (indexerDeclaration.Parameters != null) {
- foreach (AST.ParameterDeclarationExpression par in indexerDeclaration.Parameters) {
- ReturnType parType = new ReturnType(par.TypeReference);
- Parameter p = new Parameter(par.ParameterName, parType);
- parameters.Add(p);
- }
- }
- Class c = (Class)currentClass.Peek();
- c.Indexer.Add(i);
- return null;
- }
- }
-}
diff --git a/extras/JavaBinding/Parser/Parser.cs b/extras/JavaBinding/Parser/Parser.cs
deleted file mode 100644
index 707f54b20e..0000000000
--- a/extras/JavaBinding/Parser/Parser.cs
+++ /dev/null
@@ -1,124 +0,0 @@
-// Parser.cs
-//
-// This file was derived from a file from #Develop.
-//
-// Copyright (C) 2001-2007 Andrea Paatz <andrea@icsharpcode.net>
-//
-// This program is free software; you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation; either version 2 of the License, or
-// (at your option) any later version.
-//
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with this program; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-using System;
-using System.Drawing;
-using System.Collections;
-using MonoDevelop.Core;
-using MonoDevelop.Projects.Parser;
-using JavaBinding.Parser.SharpDevelopTree;
-using JRefactory.Parser;
-
-namespace JavaBinding.Parser
-{
- public class TParser : IParser
- {
- ///<summary>IParser Interface</summary>
- string[] lexerTags;
- public string[] LexerTags {
- set {
- lexerTags = value;
- }
- }
- public IExpressionFinder ExpressionFinder {
- get {
- return new ExpressionFinder();
- }
- }
-
- void RetrieveRegions(CompilationUnit cu, SpecialTracker tracker)
- {
- for (int i = 0; i < tracker.CurrentSpecials.Count; ++i) {
- PreProcessingDirective directive = tracker.CurrentSpecials[i] as PreProcessingDirective;
- if (directive != null) {
- if (directive.Cmd == "#region") {
- int deep = 1;
- for (int j = i + 1; j < tracker.CurrentSpecials.Count; ++j) {
- PreProcessingDirective nextDirective = tracker.CurrentSpecials[j] as PreProcessingDirective;
- if (nextDirective != null) {
- switch (nextDirective.Cmd) {
- case "#region":
- ++deep;
- break;
- case "#endregion":
- --deep;
- if (deep == 0) {
- cu.FoldingRegions.Add(new FoldingRegion(directive.Arg.Trim(), new DefaultRegion(directive.Start, new Point(nextDirective.End.X - 2, nextDirective.End.Y))));
- goto end;
- }
- break;
- }
- }
- }
- end: ;
- }
- }
- }
- }
-
- public ICompilationUnitBase Parse(string fileName)
- {
- Console.WriteLine ("*****");
- JRefactory.Parser.Parser p = new JRefactory.Parser.Parser();
-
- Lexer lexer = new Lexer(new FileReader(fileName));
- p.Parse(lexer);
-
- JavaVisitor visitor = new JavaVisitor ();
- visitor.Visit(p.compilationUnit, null);
- visitor.Cu.ErrorsDuringCompile = p.Errors.count > 0;
- RetrieveRegions(visitor.Cu, lexer.SpecialTracker);
- return visitor.Cu;
- }
-
- public ICompilationUnitBase Parse(string fileName, string fileContent)
- {
- JRefactory.Parser.Parser p = new JRefactory.Parser.Parser();
-
- Lexer lexer = new Lexer(new StringReader(fileContent));
- p.Parse(lexer);
-
- JavaVisitor visitor = new JavaVisitor ();
- visitor.Visit(p.compilationUnit, null);
- visitor.Cu.ErrorsDuringCompile = p.Errors.count > 0;
- visitor.Cu.Tag = p.compilationUnit;
- RetrieveRegions(visitor.Cu, lexer.SpecialTracker);
- return visitor.Cu;
- }
-
- public LanguageItemCollection CtrlSpace(IParserContext parserService, int caretLine, int caretColumn, string fileName)
- {
- return new Resolver().CtrlSpace(parserService, caretLine, caretColumn, fileName);
- }
-
- public ResolveResult Resolve(IParserContext parserService, string expression, int caretLineNumber, int caretColumn, string fileName, string fileContent)
- {
- return new Resolver().Resolve(parserService, expression, caretLineNumber, caretColumn, fileName, fileContent);
- }
-
-
- public bool HandlesFileExtension(string fileExtension){
- if(fileExtension == null) return false;
- return (fileExtension.ToLower() == ".java");
- }
-
-
- ///////// IParser Interface END
- }
-}
diff --git a/extras/JavaBinding/Parser/Resolver.cs b/extras/JavaBinding/Parser/Resolver.cs
deleted file mode 100644
index cc4ddf424a..0000000000
--- a/extras/JavaBinding/Parser/Resolver.cs
+++ /dev/null
@@ -1,858 +0,0 @@
-// Resolver.cs
-//
-// This file was derived from a file from #Develop.
-//
-// Copyright (C) 2001-2007 Andrea Paatz <andrea@icsharpcode.net>
-//
-// This program is free software; you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation; either version 2 of the License, or
-// (at your option) any later version.
-//
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with this program; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-
-using System;
-using System.Collections;
-using System.Drawing;
-
-using MonoDevelop.Core;
-using MonoDevelop.Projects.Parser;
-using JavaBinding.Parser.SharpDevelopTree;
-using JRefactory.Parser.AST;
-using JRefactory.Parser;
-
-namespace JavaBinding.Parser
-{
- public class Resolver
- {
- IParserContext parserService;
- ICompilationUnit cu;
- IClass callingClass;
- LookupTableVisitor lookupTableVisitor;
-
- public IParserContext ParserService {
- get {
- return parserService;
- }
- }
-
- public ICompilationUnit CompilationUnit {
- get {
- return cu;
- }
- }
-
- public IClass CallingClass {
- get {
- return callingClass;
- }
- }
-
- bool showStatic = false;
-
- public bool ShowStatic {
- get {
- return showStatic;
- }
-
- set {
- showStatic = value;
- }
- }
-
- int caretLine;
- int caretColumn;
-
- public ResolveResult Resolve(IParserContext parserService, string expression, int caretLineNumber, int caretColumn, string fileName, string fileContent)
- {
- Console.WriteLine("Start Resolving");
- if (expression == null) {
- return null;
- }
- expression = expression.TrimStart(null);
- if (expression == "") {
- return null;
- }
- if (expression.StartsWith("using ")) {
- // expression[expression.Length - 1] != '.'
- // the period that causes this Resove() is not part of the expression
- if (expression[expression.Length - 1] == '.') {
- return null;
- }
- int i;
- for (i = expression.Length - 1; i >= 0; --i) {
- if (!(Char.IsLetterOrDigit(expression[i]) || expression[i] == '_' || expression[i] == '.')) {
- break;
- }
- }
- // no Identifier before the period
- if (i == expression.Length - 1) {
- return null;
- }
- string t = expression.Substring(i + 1);
-// Console.WriteLine("in Using Statement");
- string[] namespaces = parserService.GetNamespaceList(t);
- if (namespaces == null || namespaces.Length <= 0) {
- return null;
- }
- return new ResolveResult(namespaces);
- }
-
- Console.WriteLine("Not in Using");
- this.caretLine = caretLineNumber;
- this.caretColumn = caretColumn;
-
- this.parserService = parserService;
- IParseInformation parseInfo = parserService.GetParseInformation(fileName);
- JRefactory.Parser.AST.CompilationUnit fileCompilationUnit = parseInfo.MostRecentCompilationUnit.Tag as JRefactory.Parser.AST.CompilationUnit;
- if (fileCompilationUnit == null) {
-// JRefactory.Parser.Parser fileParser = new JRefactory.Parser.Parser();
-// fileParser.Parse(new Lexer(new StringReader(fileContent)));
- Console.WriteLine("!Warning: no parseinformation!");
- return null;
- }
- /*
- //// try to find last expression in original string, it could be like " if (act!=null) act"
- //// in this case only "act" should be parsed as expression
- !!is so!! don't change things that work
- Expression expr=null; // tentative expression
- Lexer l=null;
- JRefactory.Parser.Parser p = new JRefactory.Parser.Parser();
- while (expression.Length > 0) {
- l = new Lexer(new StringReader(expression));
- expr = p.ParseExpression(l);
- if (l.LookAhead.val != "" && expression.LastIndexOf(l.LookAhead.val) >= 0) {
- if (expression.Substring(expression.LastIndexOf(l.LookAhead.val) + l.LookAhead.val.Length).Length > 0)
- expression=expression.Substring(expression.LastIndexOf(l.LookAhead.val) + l.LookAhead.val.Length).Trim();
- else {
- expression=l.LookAhead.val.Trim();
- l=new Lexer(new StringReader(expression));
- expr=p.ParseExpression(l);
- break;
- }
- } else {
- if (l.Token.val!="" || expr!=null) break;
- }
- }
- //// here last subexpression should be fixed in expr
- if it should be changed in expressionfinder don't fix it here
- */
- JRefactory.Parser.Parser p = new JRefactory.Parser.Parser();
- Lexer l = new Lexer(new StringReader(expression));
- Expression expr = p.ParseExpression(l);
- if (expr == null) {
- return null;
- }
- lookupTableVisitor = new LookupTableVisitor();
- lookupTableVisitor.Visit(fileCompilationUnit, null);
-
- TypeVisitor typeVisitor = new TypeVisitor(this);
-
- JavaVisitor cSharpVisitor = new JavaVisitor();
- cu = (ICompilationUnit)cSharpVisitor.Visit(fileCompilationUnit, null);
- if (cu != null) {
- callingClass = GetInnermostClass();
- //Console.WriteLine("CallingClass is " + callingClass == null ? "null" : callingClass.Name);
- }
- //Console.WriteLine("expression = " + expr.ToString());
- IReturnType type = expr.AcceptVisitor(typeVisitor, null) as IReturnType;
- //Console.WriteLine("type visited");
- if (type == null || type.PointerNestingLevel != 0) {
-// Console.WriteLine("Type == null || type.PointerNestingLevel != 0");
- if (type != null) {
- //Console.WriteLine("PointerNestingLevel is " + type.PointerNestingLevel);
- } else {
- //Console.WriteLine("Type == null");
- }
- //// when type is null might be file needs to be reparsed - some vars were lost
- fileCompilationUnit=parserService.ParseFile(fileName, fileContent).MostRecentCompilationUnit.Tag
- as JRefactory.Parser.AST.CompilationUnit;
- lookupTableVisitor.Visit(fileCompilationUnit,null);
- cu = (ICompilationUnit)cSharpVisitor.Visit(fileCompilationUnit, null);
- if (cu != null) {
- callingClass = GetInnermostClass();
- }
- type=expr.AcceptVisitor(typeVisitor,null) as IReturnType;
- if (type==null) return null;
- }
- if (type.ArrayDimensions != null && type.ArrayDimensions.Length > 0) {
- type = new ReturnType("System.Array");
- }
- Console.WriteLine("Here: Type is " + type.FullyQualifiedName);
- IClass returnClass = SearchType(type.FullyQualifiedName, cu);
- if (returnClass == null) {
- // Try if type is Namespace:
- string n = SearchNamespace(type.FullyQualifiedName, cu);
- if (n == null) {
- return null;
- }
- ArrayList content = parserService.GetNamespaceContents(n);
- ArrayList classes = new ArrayList();
- for (int i = 0; i < content.Count; ++i) {
- if (content[i] is IClass) {
- classes.Add((IClass)content[i]);
- }
- }
- string[] namespaces = parserService.GetNamespaceList(n);
- return new ResolveResult(namespaces, classes);
- }
- Console.WriteLine("Returning Result!");
- return new ResolveResult(returnClass, ListMembers(new ArrayList(), returnClass));
- }
-
- ArrayList ListMembers(ArrayList members, IClass curType)
- {
-// Console.WriteLine("LIST MEMBERS!!!");
-// Console.WriteLine("showStatic = " + showStatic);
-// Console.WriteLine(curType.InnerClasses.Count + " classes");
-// Console.WriteLine(curType.Properties.Count + " properties");
-// Console.WriteLine(curType.Methods.Count + " methods");
-// Console.WriteLine(curType.Events.Count + " events");
-// Console.WriteLine(curType.Fields.Count + " fields");
- if (showStatic) {
- foreach (IClass c in curType.InnerClasses) {
- if (IsAccessible(curType, c)) {
- members.Add(c);
-// Console.WriteLine("Member added");
- }
- }
- }
- foreach (IProperty p in curType.Properties) {
- if (MustBeShowen(curType, p)) {
- members.Add(p);
-// Console.WriteLine("Member added");
- } else {
- //// for some public static properties msutbeshowen is false, so additional check
- //// this is lame fix because curType doesn't allow to find out if to show only
- //// static public or simply public properties
- if (((AbstractMember)p).ReturnType!=null) {
- // if public add it to completion window
- if (((AbstractDecoration)p).IsPublic) members.Add(p);
-// Console.WriteLine("Property {0} added", p.FullyQualifiedName);
- }
- }
- }
-// Console.WriteLine("ADDING METHODS!!!");
- foreach (IMethod m in curType.Methods) {
-// Console.WriteLine("Method : " + m);
- if (MustBeShowen(curType, m)) {
- members.Add(m);
-// Console.WriteLine("Member added");
- }
- }
- foreach (IEvent e in curType.Events) {
- if (MustBeShowen(curType, e)) {
- members.Add(e);
-// Console.WriteLine("Member added");
- }
- }
- foreach (IField f in curType.Fields) {
- if (MustBeShowen(curType, f)) {
- members.Add(f);
-// Console.WriteLine("Member added");
- } else {
- //// enum fields must be shown here if present
- if (curType.ClassType == ClassType.Enum) {
- if (IsAccessible(curType,f)) members.Add(f);
-// Console.WriteLine("Member {0} added", f.FullyQualifiedName);
- }
- }
- }
-// Console.WriteLine("ClassType = " + curType.ClassType);
- if (curType.ClassType == ClassType.Interface && !showStatic) {
- foreach (string s in curType.BaseTypes) {
- IClass baseClass = SearchType(s, curType.CompilationUnit);
- if (baseClass != null && baseClass.ClassType == ClassType.Interface) {
- ListMembers(members, baseClass);
- }
- }
- } else {
- IClass baseClass = BaseClass(curType);
- if (baseClass != null) {
-// Console.WriteLine("Base Class = " + baseClass.FullyQualifiedName);
- ListMembers(members, baseClass);
- }
- }
-// Console.WriteLine("listing finished");
- return members;
- }
-
- public IClass BaseClass(IClass curClass)
- {
- foreach (string s in curClass.BaseTypes) {
- IClass baseClass = SearchType(s, curClass.CompilationUnit);
- if (baseClass != null && baseClass.ClassType != ClassType.Interface) {
- return baseClass;
- }
- }
- return null;
- }
-
- bool InStatic()
- {
- IProperty property = GetProperty();
- if (property != null) {
- return property.IsStatic;
- }
- IMethod method = GetMethod();
- if (method != null) {
- return method.IsStatic;
- }
- return false;
- }
-
- bool IsAccessible(IClass c, IDecoration member)
- {
-// Console.WriteLine("member.Modifiers = " + member.Modifiers);
- if ((member.Modifiers & ModifierEnum.Internal) == ModifierEnum.Internal) {
- return false;
- }
- if ((member.Modifiers & ModifierEnum.Public) == ModifierEnum.Public) {
-// Console.WriteLine("IsAccessible");
- return true;
- }
- if ((member.Modifiers & ModifierEnum.Protected) == ModifierEnum.Protected && IsClassInInheritanceTree(c, callingClass)) {
-// Console.WriteLine("IsAccessible");
- return true;
- }
- return c.FullyQualifiedName == callingClass.FullyQualifiedName;
- }
-
- bool MustBeShowen(IClass c, IDecoration member)
- {
-// Console.WriteLine("member:" + member.Modifiers);
- if ((!showStatic && ((member.Modifiers & ModifierEnum.Static) == ModifierEnum.Static)) ||
- ( showStatic && !((member.Modifiers & ModifierEnum.Static) == ModifierEnum.Static))) {
- //// enum type fields are not shown here - there is no info in member about enum field
- return false;
- }
-// Console.WriteLine("Testing Accessibility");
- return IsAccessible(c, member);
- }
-
- public ArrayList SearchMethod(IReturnType type, string memberName)
- {
- if (type == null || type.PointerNestingLevel != 0) {
- return new ArrayList();
- }
- IClass curType;
- if (type.ArrayDimensions != null && type.ArrayDimensions.Length > 0) {
- curType = SearchType("System.Array", null);
- } else {
- curType = SearchType(type.FullyQualifiedName, null);
- if (curType == null) {
- return new ArrayList();
- }
- }
- return SearchMethod(new ArrayList(), curType, memberName);
- }
-
- ArrayList SearchMethod(ArrayList methods, IClass curType, string memberName)
- {
- foreach (IMethod m in curType.Methods) {
- if (m.Name == memberName &&
- MustBeShowen(curType, m) &&
- !((m.Modifiers & ModifierEnum.Override) == ModifierEnum.Override)) {
- methods.Add(m);
- }
- }
- IClass baseClass = BaseClass(curType);
- if (baseClass != null) {
- return SearchMethod(methods, baseClass, memberName);
- }
- showStatic = false;
- return methods;
- }
-
- public ArrayList SearchIndexer(IReturnType type)
- {
- IClass curType = SearchType(type.FullyQualifiedName, null);
- if (curType != null) {
- return SearchIndexer(new ArrayList(), curType);
- }
- return new ArrayList();
- }
-
- public ArrayList SearchIndexer(ArrayList indexer, IClass curType)
- {
- foreach (IIndexer i in curType.Indexer) {
- if (MustBeShowen(curType, i) && !((i.Modifiers & ModifierEnum.Override) == ModifierEnum.Override)) {
- indexer.Add(i);
- }
- }
- IClass baseClass = BaseClass(curType);
- if (baseClass != null) {
- return SearchIndexer(indexer, baseClass);
- }
- showStatic = false;
- return indexer;
- }
-
- // no methods or indexer
- public IReturnType SearchMember(IReturnType type, string memberName)
- {
- if (type == null || memberName == null || memberName == "") {
- return null;
- }
-// Console.WriteLine("searching member {0} in {1}", memberName, type.Name);
- IClass curType = SearchType(type.FullyQualifiedName, cu);
- if (curType == null) {
-// Console.WriteLine("Type not found in SearchMember");
- return null;
- }
- if (type.PointerNestingLevel != 0) {
- return null;
- }
- if (type.ArrayDimensions != null && type.ArrayDimensions.Length > 0) {
- curType = SearchType("System.Array", null);
- }
- if (curType.ClassType == ClassType.Enum) {
- foreach (IField f in curType.Fields) {
- if (f.Name == memberName && MustBeShowen(curType, f)) {
- showStatic = false;
- return type; // enum members have the type of the enum
- }
- }
- }
- if (showStatic) {
-// Console.WriteLine("showStatic == true");
- foreach (IClass c in curType.InnerClasses) {
- if (c.Name == memberName && IsAccessible(curType, c)) {
- return new ReturnType(c.FullyQualifiedName);
- }
- }
- }
-// Console.WriteLine("#Properties " + curType.Properties.Count);
- foreach (IProperty p in curType.Properties) {
-// Console.WriteLine("checke Property " + p.Name);
-// Console.WriteLine("member name " + memberName);
- if (p.Name == memberName && MustBeShowen(curType, p)) {
-// Console.WriteLine("Property found " + p.Name);
- showStatic = false;
- return p.ReturnType;
- }
- }
- foreach (IField f in curType.Fields) {
-// Console.WriteLine("checke Feld " + f.Name);
-// Console.WriteLine("member name " + memberName);
- if (f.Name == memberName && MustBeShowen(curType, f)) {
-// Console.WriteLine("Field found " + f.Name);
- showStatic = false;
- return f.ReturnType;
- }
- }
- foreach (IEvent e in curType.Events) {
- if (e.Name == memberName && MustBeShowen(curType, e)) {
- showStatic = false;
- return e.ReturnType;
- }
- }
- foreach (string baseType in curType.BaseTypes) {
- IClass c = SearchType(baseType, curType.CompilationUnit);
- if (c != null) {
- IReturnType erg = SearchMember(new ReturnType(c.FullyQualifiedName), memberName);
- if (erg != null) {
- return erg;
- }
- }
- }
- return null;
- }
-
- bool IsInside(Point between, Point start, Point end)
- {
- if (between.Y < start.Y || between.Y > end.Y) {
-// Console.WriteLine("Y = {0} not between {1} and {2}", between.Y, start.Y, end.Y);
- return false;
- }
- if (between.Y > start.Y) {
- if (between.Y < end.Y) {
- return true;
- }
- // between.Y == end.Y
-// Console.WriteLine("between.Y = {0} == end.Y = {1}", between.Y, end.Y);
-// Console.WriteLine("returning {0}:, between.X = {1} <= end.X = {2}", between.X <= end.X, between.X, end.X);
- return between.X <= end.X;
- }
- // between.Y == start.Y
-// Console.WriteLine("between.Y = {0} == start.Y = {1}", between.Y, start.Y);
- if (between.X < start.X) {
- return false;
- }
- // start is OK and between.Y <= end.Y
- return between.Y < end.Y || between.X <= end.X;
- }
-
- ReturnType SearchVariable(string name)
- {
-// Console.WriteLine("Searching Variable");
-//
-// Console.WriteLine("LookUpTable has {0} entries", lookupTableVisitor.variables.Count);
-// Console.WriteLine("Listing Variables:");
- IDictionaryEnumerator enumerator = lookupTableVisitor.variables.GetEnumerator();
- while (enumerator.MoveNext()) {
- Console.WriteLine(enumerator.Key);
- }
-// Console.WriteLine("end listing");
- ArrayList variables = (ArrayList)lookupTableVisitor.variables[name];
- if (variables == null || variables.Count <= 0) {
-// Console.WriteLine(name + " not in LookUpTable");
- return null;
- }
-
- ReturnType found = null;
- foreach (LocalLookupVariable v in variables) {
-// Console.WriteLine("Position: ({0}/{1})", v.StartPos, v.EndPos);
- if (IsInside(new Point(caretColumn, caretLine), v.StartPos, v.EndPos)) {
- found = new ReturnType(v.TypeRef);
-// Console.WriteLine("Variable found");
- break;
- }
- }
- if (found == null) {
-// Console.WriteLine("No Variable found");
- return null;
- }
- return found;
- }
-
- /// <remarks>
- /// does the dynamic lookup for the typeName
- /// </remarks>
- public IReturnType DynamicLookup(string typeName)
- {
-// Console.WriteLine("starting dynamic lookup");
-// Console.WriteLine("name == " + typeName);
-
- // try if it exists a variable named typeName
- ReturnType variable = SearchVariable(typeName);
- if (variable != null) {
- showStatic = false;
- return variable;
- }
-// Console.WriteLine("No Variable found");
-
- if (callingClass == null) {
- return null;
- }
- //// somehow search in callingClass fields is not returning anything, so I am searching here once again
- foreach (IField f in callingClass.Fields) {
- if (f.Name == typeName) {
-// Console.WriteLine("Field found " + f.Name);
- return f.ReturnType;
- }
- }
- //// end of mod for search in Fields
-
- // try if typeName is a method parameter
- IReturnType p = SearchMethodParameter(typeName);
- if (p != null) {
-// Console.WriteLine("MethodParameter Found");
- showStatic = false;
- return p;
- }
-// Console.WriteLine("No Parameter found");
-
- // check if typeName == value in set method of a property
- if (typeName == "value") {
- p = SearchProperty();
- if (p != null) {
- showStatic = false;
- return p;
- }
- }
-// Console.WriteLine("No Property found");
-
- // try if there exists a nonstatic member named typeName
- showStatic = false;
- IReturnType t = SearchMember(callingClass == null ? null : new ReturnType(callingClass.FullyQualifiedName), typeName);
- if (t != null) {
- return t;
- }
-// Console.WriteLine("No nonstatic member found");
-
- // try if there exists a static member named typeName
- showStatic = true;
- t = SearchMember(callingClass == null ? null : new ReturnType(callingClass.FullyQualifiedName), typeName);
- if (t != null) {
- showStatic = false;
- return t;
- }
-// Console.WriteLine("No static member found");
-
- // try if there exists a static member in outer classes named typeName
- ClassCollection classes = GetOuterClasses();
- foreach (IClass c in GetOuterClasses()) {
- t = SearchMember(callingClass == null ? null : new ReturnType(c.FullyQualifiedName), typeName);
- if (t != null) {
- showStatic = false;
- return t;
- }
- }
-// Console.WriteLine("No static member in outer classes found");
-// Console.WriteLine("DynamicLookUp resultless");
- return null;
- }
-
- IProperty GetProperty()
- {
- foreach (IProperty property in callingClass.Properties) {
- if (property.BodyRegion != null && property.BodyRegion.IsInside(caretLine, caretColumn)) {
- return property;
- }
- }
- return null;
- }
-
- IMethod GetMethod()
- {
- foreach (IMethod method in callingClass.Methods) {
- if (method.BodyRegion != null && method.BodyRegion.IsInside(caretLine, caretColumn)) {
- return method;
- }
- }
- return null;
- }
-
- IReturnType SearchProperty()
- {
- IProperty property = GetProperty();
- if (property == null) {
- return null;
- }
- if (property.SetterRegion != null && property.SetterRegion.IsInside(caretLine, caretColumn)) {
- return property.ReturnType;
- }
- return null;
- }
-
- IReturnType SearchMethodParameter(string parameter)
- {
- IMethod method = GetMethod();
- if (method == null) {
- Console.WriteLine("Method not found");
- return null;
- }
- foreach (IParameter p in method.Parameters) {
- if (p.Name == parameter) {
- Console.WriteLine("Parameter found");
- return p.ReturnType;
- }
- }
- return null;
- }
-
- /// <remarks>
- /// use the usings to find the correct name of a namespace
- /// </remarks>
- public string SearchNamespace(string name, ICompilationUnit unit)
- {
- if (parserService.NamespaceExists(name)) {
- return name;
- }
- if (unit == null) {
-// Console.WriteLine("done, resultless");
- return null;
- }
- foreach (IUsing u in unit.Usings) {
- if (u != null && (u.Region == null || u.Region.IsInside(caretLine, caretColumn))) {
- string nameSpace = u.SearchNamespace(name);
- if (nameSpace != null) {
- return nameSpace;
- }
- }
- }
-// Console.WriteLine("done, resultless");
- return null;
- }
-
- /// <remarks>
- /// use the usings and the name of the namespace to find a class
- /// </remarks>
- public IClass SearchType(string name, ICompilationUnit unit)
- {
-// Console.WriteLine("Searching Type " + name);
- if (name == null || name == String.Empty) {
-// Console.WriteLine("No Name!");
- return null;
- }
- IClass c;
- c = parserService.GetClass(name);
- if (c != null) {
-// Console.WriteLine("Found!");
- return c;
- }
-// Console.WriteLine("No FullName");
- if (unit != null) {
-// Console.WriteLine(unit.Usings.Count + " Usings");
- foreach (IUsing u in unit.Usings) {
- if (u != null && (u.Region == null || u.Region.IsInside(caretLine, caretColumn))) {
-// Console.WriteLine("In UsingRegion");
- c = u.SearchType(name);
- if (c != null) {
-// Console.WriteLine("SearchType Successfull!!!");
- return c;
- }
- }
- }
- }
- if (callingClass == null) {
- return null;
- }
- string fullname = callingClass.FullyQualifiedName;
- string[] namespaces = fullname.Split(new char[] {'.'});
- string curnamespace = namespaces[0] + '.';
- for (int i = 1; i < namespaces.Length; ++i) {
- c = parserService.GetClass(curnamespace + name);
- if (c != null) {
- return c;
- }
- curnamespace += namespaces[i] + '.';
- }
- return null;
- }
-
- /// <remarks>
- /// Returns true, if class possibleBaseClass is in the inheritance tree from c
- /// </remarks>
- bool IsClassInInheritanceTree(IClass possibleBaseClass, IClass c)
- {
- if (possibleBaseClass == null || c == null) {
- return false;
- }
- if (possibleBaseClass.FullyQualifiedName == c.FullyQualifiedName) {
- return true;
- }
- foreach (string baseClass in c.BaseTypes) {
- if (IsClassInInheritanceTree(possibleBaseClass, SearchType(baseClass, cu))) {
- return true;
- }
- }
- return false;
- }
-
- /// <remarks>
- /// Returns the innerst class in which the carret currently is, returns null
- /// if the carret is outside any class boundaries.
- /// </remarks>
- IClass GetInnermostClass()
- {
- if (cu != null) {
- foreach (IClass c in cu.Classes) {
- if (c != null && c.Region != null && c.Region.IsInside(caretLine, caretColumn)) {
- return GetInnermostClass(c);
- }
- }
- }
- return null;
- }
-
- IClass GetInnermostClass(IClass curClass)
- {
- if (curClass == null) {
- return null;
- }
- if (curClass.InnerClasses == null) {
- return curClass;
- }
- foreach (IClass c in curClass.InnerClasses) {
- if (c != null && c.Region != null && c.Region.IsInside(caretLine, caretColumn)) {
- return GetInnermostClass(c);
- }
- }
- return curClass;
- }
-
- /// <remarks>
- /// Returns all (nestet) classes in which the carret currently is exept
- /// the innermost class, returns an empty collection if the carret is in
- /// no class or only in the innermost class.
- /// the most outer class is the last in the collection.
- /// </remarks>
- ClassCollection GetOuterClasses()
- {
- ClassCollection classes = new ClassCollection();
- if (cu != null) {
- foreach (IClass c in cu.Classes) {
- if (c != null && c.Region != null && c.Region.IsInside(caretLine, caretColumn)) {
- if (c != GetInnermostClass()) {
- GetOuterClasses(classes, c);
- classes.Add(c);
- }
- break;
- }
- }
- }
-
- return classes;
- }
-
- void GetOuterClasses(ClassCollection classes, IClass curClass)
- {
- if (curClass != null) {
- foreach (IClass c in curClass.InnerClasses) {
- if (c != null && c.Region != null && c.Region.IsInside(caretLine, caretColumn)) {
- if (c != GetInnermostClass()) {
- GetOuterClasses(classes, c);
- classes.Add(c);
- }
- break;
- }
- }
- }
- }
-
- public LanguageItemCollection CtrlSpace(IParserContext parserService, int caretLine, int caretColumn, string fileName)
- {
- LanguageItemCollection result = new LanguageItemCollection();
- this.parserService = parserService;
- IParseInformation parseInfo = parserService.GetParseInformation(fileName);
- JRefactory.Parser.AST.CompilationUnit fileCompilationUnit = parseInfo.MostRecentCompilationUnit.Tag as JRefactory.Parser.AST.CompilationUnit;
- if (fileCompilationUnit == null) {
- return null;
- }
- lookupTableVisitor = new LookupTableVisitor();
- lookupTableVisitor.Visit(fileCompilationUnit, null);
- JavaVisitor cSharpVisitor = new JavaVisitor ();
- cu = (ICompilationUnit)cSharpVisitor.Visit(fileCompilationUnit, null);
- if (cu != null) {
- callingClass = GetInnermostClass();
-// Console.WriteLine("CallingClass is " + callingClass == null ? "null" : callingClass.Name);
- }
- foreach (string name in lookupTableVisitor.variables.Keys) {
- ArrayList variables = (ArrayList)lookupTableVisitor.variables[name];
- if (variables != null && variables.Count > 0) {
- foreach (LocalLookupVariable v in variables) {
- if (IsInside(new Point(caretColumn, caretLine), v.StartPos, v.EndPos)) {
- result.Add(v);
- break;
- }
- }
- }
- }
- if (callingClass != null) {
- result = ListMembers(result, callingClass);
- }
- string n = "";
- result.AddRange(parserService.GetNamespaceContents(n));
- foreach (IUsing u in cu.Usings) {
- if (u != null && (u.Region == null || u.Region.IsInside(caretLine, caretColumn))) {
- foreach (string name in u.Usings) {
- result.AddRange(parserService.GetNamespaceContents(name));
- }
- foreach (string alias in u.Aliases.Keys) {
- result.Add(alias);
- }
- }
- }
- return result;
- }
- }
-}
diff --git a/extras/JavaBinding/Parser/SharpDevelopTree/AttributeSection.cs b/extras/JavaBinding/Parser/SharpDevelopTree/AttributeSection.cs
deleted file mode 100644
index 3602608f49..0000000000
--- a/extras/JavaBinding/Parser/SharpDevelopTree/AttributeSection.cs
+++ /dev/null
@@ -1,25 +0,0 @@
-// created on 08.09.2003 at 16:17
-
-using MonoDevelop.Projects.Parser;
-using System.Collections;
-
-namespace JavaBinding.Parser.SharpDevelopTree
-{
- public class AttributeSection : DefaultAttributeSection
- {
- public AttributeSection(AttributeTarget attributeTarget,
- AttributeCollection attributes) {
- this.attributeTarget = attributeTarget;
- this.attributes = attributes;
- }
- }
- public class ASTAttribute : DefaultAttribute
- {
- public ASTAttribute(string name, ArrayList positionalArguments, SortedList namedArguments)
- {
- this.name = name;
- this.positionalArguments = positionalArguments;
- this.namedArguments = namedArguments;
- }
- }
-}
diff --git a/extras/JavaBinding/Parser/SharpDevelopTree/Class.cs b/extras/JavaBinding/Parser/SharpDevelopTree/Class.cs
deleted file mode 100644
index d07c72efb7..0000000000
--- a/extras/JavaBinding/Parser/SharpDevelopTree/Class.cs
+++ /dev/null
@@ -1,57 +0,0 @@
-// created on 06.08.2003 at 12:37
-
-using System.Diagnostics;
-
-using MonoDevelop.Projects.Parser;
-using JRefactory.Parser;
-
-namespace JavaBinding.Parser.SharpDevelopTree
-{
- public class Class : DefaultClass
- {
- public Class(CompilationUnit cu, ClassType t, Modifier m, IRegion region): base (cu)
- {
- classType = t;
- this.region = region;
- modifiers = (ModifierEnum)m;
- }
-
- public void UpdateModifier()
- {
- if (classType == ClassType.Enum) {
- foreach (Field f in fields) {
- f.AddModifier(ModifierEnum.Public);
- }
- return;
- }
- if (classType != ClassType.Interface) {
- return;
- }
- foreach (Class c in innerClasses) {
- c.modifiers = c.modifiers | ModifierEnum.Public;
- }
- foreach (IMethod m in methods) {
- if (m is Constructor) {
- ((Constructor)m).AddModifier(ModifierEnum.Public);
- } else if (m is Method) {
- ((Method)m).AddModifier(ModifierEnum.Public);
- } else {
- Debug.Assert(false, "Unexpected type in method of interface. Can not set modifier to public!");
- }
- }
- foreach (Event e in events) {
- e.AddModifier(ModifierEnum.Public);
- }
- foreach (Field f in fields) {
- f.AddModifier(ModifierEnum.Public);
- }
- foreach (Indexer i in indexer) {
- i.AddModifier(ModifierEnum.Public);
- }
- foreach (Property p in properties) {
- p.AddModifier(ModifierEnum.Public);
- }
-
- }
- }
-}
diff --git a/extras/JavaBinding/Parser/SharpDevelopTree/CompilationUnit.cs b/extras/JavaBinding/Parser/SharpDevelopTree/CompilationUnit.cs
deleted file mode 100644
index c87424a972..0000000000
--- a/extras/JavaBinding/Parser/SharpDevelopTree/CompilationUnit.cs
+++ /dev/null
@@ -1,26 +0,0 @@
-// created on 04.08.2003 at 17:31
-
-using MonoDevelop.Projects.Parser;
-
-namespace JavaBinding.Parser.SharpDevelopTree
-{
- public class CompilationUnit : DefaultCompilationUnit
- {
-
- public override CommentCollection MiscComments {
- get {
- return null;
- }
- }
- public override CommentCollection DokuComments {
- get {
- return null;
- }
- }
- public override TagCollection TagComments {
- get {
- return null;
- }
- }
- }
-}
diff --git a/extras/JavaBinding/Parser/SharpDevelopTree/Constructor.cs b/extras/JavaBinding/Parser/SharpDevelopTree/Constructor.cs
deleted file mode 100644
index 894a6c2144..0000000000
--- a/extras/JavaBinding/Parser/SharpDevelopTree/Constructor.cs
+++ /dev/null
@@ -1,18 +0,0 @@
-// created on 06.08.2003 at 12:35
-
-using MonoDevelop.Projects.Parser;
-using JRefactory.Parser;
-
-namespace JavaBinding.Parser.SharpDevelopTree
-{
- public class Constructor : DefaultMethod
- {
- public Constructor(Modifier m, IRegion region, IRegion bodyRegion)
- {
- FullyQualifiedName = "ctor";
- this.region = region;
- this.bodyRegion = bodyRegion;
- modifiers = (ModifierEnum)m;
- }
- }
-}
diff --git a/extras/JavaBinding/Parser/SharpDevelopTree/Event.cs b/extras/JavaBinding/Parser/SharpDevelopTree/Event.cs
deleted file mode 100644
index 2ff7d5b473..0000000000
--- a/extras/JavaBinding/Parser/SharpDevelopTree/Event.cs
+++ /dev/null
@@ -1,24 +0,0 @@
-// created on 06.08.2003 at 12:30
-
-using MonoDevelop.Projects.Parser;
-using JRefactory.Parser;
-
-namespace JavaBinding.Parser.SharpDevelopTree
-{
- public class Event : DefaultEvent
- {
- public void AddModifier(ModifierEnum m)
- {
- modifiers = modifiers | m;
- }
-
- public Event(string name, ReturnType type, Modifier m, IRegion region, IRegion bodyRegion)
- {
- FullyQualifiedName = name;
- returnType = type;
- this.region = region;
- this.bodyRegion = bodyRegion;
- modifiers = (ModifierEnum)m;
- }
- }
-}
diff --git a/extras/JavaBinding/Parser/SharpDevelopTree/Field.cs b/extras/JavaBinding/Parser/SharpDevelopTree/Field.cs
deleted file mode 100644
index db3eb386b1..0000000000
--- a/extras/JavaBinding/Parser/SharpDevelopTree/Field.cs
+++ /dev/null
@@ -1,23 +0,0 @@
-// created on 04.08.2003 at 18:06
-
-using MonoDevelop.Projects.Parser;
-using JRefactory.Parser;
-
-namespace JavaBinding.Parser.SharpDevelopTree
-{
- public class Field : DefaultField
- {
- public void AddModifier(ModifierEnum m)
- {
- modifiers = modifiers | m;
- }
-
- public Field(ReturnType type, string fullyQualifiedName, Modifier m, IRegion region)
- {
- this.returnType = type;
- this.FullyQualifiedName = fullyQualifiedName;
- this.region = region;
- modifiers = (ModifierEnum)m;
- }
- }
-}
diff --git a/extras/JavaBinding/Parser/SharpDevelopTree/Indexer.cs b/extras/JavaBinding/Parser/SharpDevelopTree/Indexer.cs
deleted file mode 100644
index 6c60fea22f..0000000000
--- a/extras/JavaBinding/Parser/SharpDevelopTree/Indexer.cs
+++ /dev/null
@@ -1,24 +0,0 @@
-// created on 06.08.2003 at 12:34
-
-using MonoDevelop.Projects.Parser;
-using JRefactory.Parser;
-
-namespace JavaBinding.Parser.SharpDevelopTree
-{
- public class Indexer : DefaultIndexer
- {
- public void AddModifier(ModifierEnum m)
- {
- modifiers = modifiers | m;
- }
-
- public Indexer(ReturnType type, ParameterCollection parameters, Modifier m, IRegion region, IRegion bodyRegion)
- {
- returnType = type;
- this.parameters = parameters;
- this.region = region;
- this.bodyRegion = bodyRegion;
- modifiers = (ModifierEnum)m;
- }
- }
-}
diff --git a/extras/JavaBinding/Parser/SharpDevelopTree/Method.cs b/extras/JavaBinding/Parser/SharpDevelopTree/Method.cs
deleted file mode 100644
index 6603912823..0000000000
--- a/extras/JavaBinding/Parser/SharpDevelopTree/Method.cs
+++ /dev/null
@@ -1,19 +0,0 @@
-// created on 06.08.2003 at 12:35
-using System;
-using MonoDevelop.Projects.Parser;
-using JRefactory.Parser;
-
-namespace JavaBinding.Parser.SharpDevelopTree
-{
- public class Method : DefaultMethod
- {
- public Method(string name, ReturnType type, Modifier m, IRegion region, IRegion bodyRegion)
- {
- FullyQualifiedName = name;
- returnType = type;
- this.region = region;
- this.bodyRegion = bodyRegion;
- modifiers = (ModifierEnum)m;
- }
- }
-}
diff --git a/extras/JavaBinding/Parser/SharpDevelopTree/Parameter.cs b/extras/JavaBinding/Parser/SharpDevelopTree/Parameter.cs
deleted file mode 100644
index 259f70d614..0000000000
--- a/extras/JavaBinding/Parser/SharpDevelopTree/Parameter.cs
+++ /dev/null
@@ -1,15 +0,0 @@
-// created on 07.08.2003 at 20:12
-
-using MonoDevelop.Projects.Parser;
-
-namespace JavaBinding.Parser.SharpDevelopTree
-{
- public class Parameter : DefaultParameter
- {
- public Parameter(string name, ReturnType type)
- {
- this.name = name;
- returnType = type;
- }
- }
-}
diff --git a/extras/JavaBinding/Parser/SharpDevelopTree/Property.cs b/extras/JavaBinding/Parser/SharpDevelopTree/Property.cs
deleted file mode 100644
index 1b3acba113..0000000000
--- a/extras/JavaBinding/Parser/SharpDevelopTree/Property.cs
+++ /dev/null
@@ -1,24 +0,0 @@
-// created on 06.08.2003 at 12:36
-
-using MonoDevelop.Projects.Parser;
-using JRefactory.Parser;
-
-namespace JavaBinding.Parser.SharpDevelopTree
-{
- public class Property : DefaultProperty
- {
- public void AddModifier(ModifierEnum m)
- {
- modifiers = modifiers | m;
- }
-
- public Property(string fullyQualifiedName, ReturnType type, Modifier m, IRegion region, IRegion bodyRegion)
- {
- this.FullyQualifiedName = fullyQualifiedName;
- returnType = type;
- this.region = region;
- this.bodyRegion = bodyRegion;
- modifiers = (ModifierEnum)m;
- }
- }
-}
diff --git a/extras/JavaBinding/Parser/SharpDevelopTree/ReturnType.cs b/extras/JavaBinding/Parser/SharpDevelopTree/ReturnType.cs
deleted file mode 100644
index 5f401ea406..0000000000
--- a/extras/JavaBinding/Parser/SharpDevelopTree/ReturnType.cs
+++ /dev/null
@@ -1,32 +0,0 @@
-// created on 04.08.2003 at 18:08
-
-using MonoDevelop.Projects.Parser;
-
-namespace JavaBinding.Parser.SharpDevelopTree
-{
- public class ReturnType : DefaultReturnType
- {
- public ReturnType(string fullyQualifiedName)
- {
- base.FullyQualifiedName = fullyQualifiedName;
- }
-
- public ReturnType(string fullyQualifiedName, int[] arrayDimensions, int pointerNestingLevel)
- {
- this.FullyQualifiedName = fullyQualifiedName;
- this.arrayDimensions = arrayDimensions;
- this.pointerNestingLevel = pointerNestingLevel;
- }
-
- public ReturnType (JRefactory.Parser.AST.TypeReference type)
- {
- base.FullyQualifiedName = type.SystemType;
- base.arrayDimensions = type.RankSpecifier == null ? new int[] { } : type.RankSpecifier;
- base.pointerNestingLevel = type.PointerNestingLevel;
- }
- public ReturnType Clone()
- {
- return new ReturnType(FullyQualifiedName, arrayDimensions, pointerNestingLevel);
- }
- }
-}
diff --git a/extras/JavaBinding/Parser/TypeVisitor.cs b/extras/JavaBinding/Parser/TypeVisitor.cs
deleted file mode 100644
index 2ca129a0e9..0000000000
--- a/extras/JavaBinding/Parser/TypeVisitor.cs
+++ /dev/null
@@ -1,306 +0,0 @@
-// created on 22.08.2003 at 19:02
-
-using System;
-using System.Collections;
-
-using JRefactory.Parser;
-using JRefactory.Parser.AST;
-using JavaBinding.Parser.SharpDevelopTree;
-using MonoDevelop.Projects.Parser;
-
-namespace JavaBinding.Parser
-{
- public class TypeVisitor : AbstractASTVisitor
- {
- Resolver resolver;
-
- public TypeVisitor(Resolver resolver)
- {
- this.resolver = resolver;
- }
-
- public override object Visit(PrimitiveExpression primitiveExpression, object data)
- {
- if (primitiveExpression.Value != null) {
-// Console.WriteLine("Visiting " + primitiveExpression.Value);
- return new ReturnType(primitiveExpression.Value.GetType().FullName);
- }
- return null;
- }
-
- public override object Visit(BinaryOperatorExpression binaryOperatorExpression, object data)
- {
- // TODO : Operators
- return binaryOperatorExpression.Left.AcceptVisitor(this, data);
- }
-
- public override object Visit(ParenthesizedExpression parenthesizedExpression, object data)
- {
- if (parenthesizedExpression == null) {
- return null;
- }
- return parenthesizedExpression.Expression.AcceptVisitor(this, data);
- }
-
- public override object Visit(InvocationExpression invocationExpression, object data)
- {
- if (invocationExpression.TargetObject is FieldReferenceExpression) {
- FieldReferenceExpression field = (FieldReferenceExpression)invocationExpression.TargetObject;
- IReturnType type = field.TargetObject.AcceptVisitor(this, data) as IReturnType;
- ArrayList methods = resolver.SearchMethod(type, field.FieldName);
- resolver.ShowStatic = false;
- if (methods.Count <= 0) {
- return null;
- }
- // TODO: Find the right method
- return ((IMethod)methods[0]).ReturnType;
- } else if (invocationExpression.TargetObject is IdentifierExpression) {
- string id = ((IdentifierExpression)invocationExpression.TargetObject).Identifier;
- if (resolver.CallingClass == null) {
- return null;
- }
- IReturnType type = new ReturnType(resolver.CallingClass.FullyQualifiedName);
- ArrayList methods = resolver.SearchMethod(type, id);
- resolver.ShowStatic = false;
- if (methods.Count <= 0) {
- return null;
- }
- // TODO: Find the right method
- return ((IMethod)methods[0]).ReturnType;
- }
- // invocationExpression is delegate call
- IReturnType t = invocationExpression.AcceptChildren(this, data) as IReturnType;
- if (t == null) {
- return null;
- }
- IClass c = resolver.SearchType(t.FullyQualifiedName, resolver.CompilationUnit);
- if (c.ClassType == ClassType.Delegate) {
- ArrayList methods = resolver.SearchMethod(t, "invoke");
- if (methods.Count <= 0) {
- return null;
- }
- return ((IMethod)methods[0]).ReturnType;
- }
- return null;
- }
-
- public override object Visit(FieldReferenceExpression fieldReferenceExpression, object data)
- {
- if (fieldReferenceExpression == null) {
- return null;
- }
-
- IReturnType returnType = fieldReferenceExpression.TargetObject.AcceptVisitor(this, data) as IReturnType;
- if (returnType != null) {
- string name = resolver.SearchNamespace(returnType.FullyQualifiedName, resolver.CompilationUnit);
- if (name != null) {
- string n = resolver.SearchNamespace(string.Concat(name, ".", fieldReferenceExpression.FieldName), null);
- if (n != null) {
- return new ReturnType(n);
- }
- IClass c = resolver.SearchType(string.Concat(name, ".", fieldReferenceExpression.FieldName), resolver.CompilationUnit);
- if (c != null) {
- resolver.ShowStatic = true;
- return new ReturnType(c.FullyQualifiedName);
- }
- return null;
- }
- return resolver.SearchMember(returnType, fieldReferenceExpression.FieldName);
- }
-// Console.WriteLine("returnType of child is null!");
- return null;
- }
-
- public override object Visit(PointerReferenceExpression pointerReferenceExpression, object data)
- {
- ReturnType type = pointerReferenceExpression.Expression.AcceptVisitor(this, data) as ReturnType;
- if (type == null) {
- return null;
- }
- type = type.Clone();
- --type.PointerNestingLevel;
- if (type.PointerNestingLevel != 0) {
- return null;
- }
- return resolver.SearchMember(type, pointerReferenceExpression.Identifier);
- }
-
- public override object Visit(IdentifierExpression identifierExpression, object data)
- {
- if (identifierExpression == null) {
- return null;
- }
- string name = resolver.SearchNamespace(identifierExpression.Identifier, resolver.CompilationUnit);
- if (name != null) {
- return new ReturnType(name);
- }
- IClass c = resolver.SearchType(identifierExpression.Identifier, resolver.CompilationUnit);
- if (c != null) {
- resolver.ShowStatic = true;
- return new ReturnType(c.FullyQualifiedName);
- }
- return resolver.DynamicLookup(identifierExpression.Identifier);
- }
-
- public override object Visit(TypeReferenceExpression typeReferenceExpression, object data)
- {
- return new ReturnType(typeReferenceExpression.TypeReference);
- }
-
- public override object Visit(UnaryOperatorExpression unaryOperatorExpression, object data)
- {
- if (unaryOperatorExpression == null) {
- return null;
- }
- ReturnType expressionType = unaryOperatorExpression.Expression.AcceptVisitor(this, data) as ReturnType;
- // TODO: Little bug: unary operator MAY change the return type,
- // but that is only a minor issue
- switch (unaryOperatorExpression.Op) {
- case UnaryOperatorType.Not:
- break;
- case UnaryOperatorType.BitNot:
- break;
- case UnaryOperatorType.Minus:
- break;
- case UnaryOperatorType.Plus:
- break;
- case UnaryOperatorType.Increment:
- case UnaryOperatorType.PostIncrement:
- break;
- case UnaryOperatorType.Decrement:
- case UnaryOperatorType.PostDecrement:
- break;
- case UnaryOperatorType.Star: // dereference
- --expressionType.PointerNestingLevel;
- break;
- case UnaryOperatorType.BitWiseAnd: // get reference
- ++expressionType.PointerNestingLevel;
- break;
- case UnaryOperatorType.None:
- break;
- }
- return expressionType;
- }
-
- public override object Visit(AssignmentExpression assignmentExpression, object data)
- {
- return assignmentExpression.Left.AcceptVisitor(this, data);
- }
-
- public override object Visit(SizeOfExpression sizeOfExpression, object data)
- {
- return new ReturnType("System.Int32");
- }
-
- public override object Visit(TypeOfExpression typeOfExpression, object data)
- {
- return new ReturnType("System.Type");
- }
-
- public override object Visit(CheckedExpression checkedExpression, object data)
- {
- return checkedExpression.Expression.AcceptVisitor(this, data);
- }
-
- public override object Visit(UncheckedExpression uncheckedExpression, object data)
- {
- return uncheckedExpression.Expression.AcceptVisitor(this, data);
- }
-
- public override object Visit(CastExpression castExpression, object data)
- {
- return new ReturnType(castExpression.CastTo.Type);
- }
-
- public override object Visit(StackAllocExpression stackAllocExpression, object data)
- {
- ReturnType returnType = new ReturnType(stackAllocExpression.Type);
- ++returnType.PointerNestingLevel;
- return returnType;
- }
-
- public override object Visit(IndexerExpression indexerExpression, object data)
- {
- IReturnType type = (IReturnType)indexerExpression.TargetObject.AcceptVisitor(this, data);
- if (type == null) {
- return null;
- }
- if (type.ArrayDimensions == null || type.ArrayDimensions.Length == 0) {
- // check if ther is an indexer
- if (indexerExpression.TargetObject is ThisReferenceExpression) {
- if (resolver.CallingClass == null) {
- return null;
- }
- type = new ReturnType(resolver.CallingClass.FullyQualifiedName);
- }
- ArrayList indexer = resolver.SearchIndexer(type);
- if (indexer.Count == 0) {
- return null;
- }
- // TODO: get the right indexer
- return ((IIndexer)indexer[0]).ReturnType;
- }
-
- // TODO: what is a[0] if a is pointer to array or array of pointer ?
- if (type.ArrayDimensions[type.ArrayDimensions.Length - 1] != indexerExpression.Indices.Count) {
- return null;
- }
- int[] newArray = new int[type.ArrayDimensions.Length - 1];
- Array.Copy(type.ArrayDimensions, 0, newArray, 0, type.ArrayDimensions.Length - 1);
- return new ReturnType(type.Name, newArray, type.PointerNestingLevel);
- }
-
- public override object Visit(ThisReferenceExpression thisReferenceExpression, object data)
- {
- if (resolver.CallingClass == null) {
- return null;
- }
- return new ReturnType(resolver.CallingClass.FullyQualifiedName);
- }
-
- public override object Visit(BaseReferenceExpression baseReferenceExpression, object data)
- {
-// Console.WriteLine("Visiting base");
- if (resolver.CallingClass == null) {
- return null;
- }
- IClass baseClass = resolver.BaseClass(resolver.CallingClass);
- if (baseClass == null) {
-// Console.WriteLine("Base Class not found");
- return null;
- }
-// Console.WriteLine("Base Class: " + baseClass.FullyQualifiedName);
- return new ReturnType(baseClass.FullyQualifiedName);
- }
-
- public override object Visit(ObjectCreateExpression objectCreateExpression, object data)
- {
- string name = resolver.SearchType(objectCreateExpression.CreateType.Type, resolver.CompilationUnit).FullyQualifiedName;
- return new ReturnType(name, objectCreateExpression.CreateType.RankSpecifier, objectCreateExpression.CreateType.PointerNestingLevel);
- }
-
- public override object Visit(ArrayCreateExpression arrayCreateExpression, object data)
- {
- ReturnType type = new ReturnType(arrayCreateExpression.CreateType);
- if (arrayCreateExpression.Parameters != null && arrayCreateExpression.Parameters.Count > 0) {
- int[] newRank = new int[arrayCreateExpression.Rank.Length + 1];
- newRank[0] = arrayCreateExpression.Parameters.Count - 1;
- Array.Copy(type.ArrayDimensions, 0, newRank, 1, type.ArrayDimensions.Length);
- type.ArrayDimensions = newRank;
- }
- return type;
- }
-
- public override object Visit(DirectionExpression directionExpression, object data)
- {
- // no calls allowed !!!
- return null;
- }
-
- public override object Visit(ArrayInitializerExpression arrayInitializerExpression, object data)
- {
- // no calls allowed !!!
- return null;
- }
- }
-}
diff --git a/extras/JavaBinding/Project/ChangeLog b/extras/JavaBinding/Project/ChangeLog
deleted file mode 100644
index 4ea69bc91c..0000000000
--- a/extras/JavaBinding/Project/ChangeLog
+++ /dev/null
@@ -1,4 +0,0 @@
-2009-02-25 Lluis Sanchez Gual <lluis@novell.com>
-
- * JavaCompilerParameters.cs: Track api changes.
-
diff --git a/extras/JavaBinding/Project/JavaCompilerParameters.cs b/extras/JavaBinding/Project/JavaCompilerParameters.cs
deleted file mode 100644
index c5c48958cd..0000000000
--- a/extras/JavaBinding/Project/JavaCompilerParameters.cs
+++ /dev/null
@@ -1,141 +0,0 @@
-// JavaCompilerParameters.cs
-//
-// This file was derived from a file from #Develop.
-//
-// Copyright (C) 2001-2007 Mike Krüger <mkrueger@novell.com>
-//
-// This program is free software; you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation; either version 2 of the License, or
-// (at your option) any later version.
-//
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with this program; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-
-using System;
-using System.Xml;
-using System.Diagnostics;
-
-using MonoDevelop.Projects;
-using MonoDevelop.Core.Serialization;
-
-namespace JavaBinding
-{
- /// <summary>
- /// This class handles project specific compiler parameters
- /// </summary>
- public class JavaCompilerParameters: ConfigurationParameters
- {
- [ItemProperty("Deprecation", DefaultValue=true)]
- bool deprecation = true;
-
- [ItemProperty("Optimize", DefaultValue=true)]
- bool optimize = true;
-
- [ItemProperty("MainClass", DefaultValue=null)]
- string mainclass = null;
-
- [ItemProperty("DefineSymbols", DefaultValue="")]
- string definesymbols = String.Empty;
-
- [ItemProperty("ClassPath", DefaultValue="")]
- string classpath = String.Empty;
-
- [ItemProperty ("Compiler", DefaultValue=JavaCompiler.Gcj)]
- JavaCompiler compiler = JavaCompiler.Gcj;
-
- [ItemProperty("CompilerPath", DefaultValue="gcj")]
- string compilerpath = "gcj";
-
- [ItemProperty("GenWarnings", DefaultValue=false)]
- bool genwarnings = false;
-
- public override void AddDefineSymbol (string symbol)
- {
- DefineSymbols += symbol + ";";
- }
-
- public override void RemoveDefineSymbol (string symbol)
- {
- DefineSymbols = DefineSymbols.Replace (symbol + ";", "");
- }
-
- public bool GenWarnings {
- get {
- return genwarnings;
- }
- set {
- genwarnings = value;
- }
- }
-
- public string ClassPath {
- get {
- return classpath;
- }
- set {
- classpath = value;
- }
- }
-
- public JavaCompiler Compiler {
- get {
- return compiler;
- }
- set {
- compiler = value;
- }
- }
-
- public string CompilerPath {
- get {
- return compilerpath;
- }
- set {
- compilerpath = value;
- }
- }
-
- public bool Deprecation {
- get {
- return deprecation;
- }
- set {
- deprecation = value;
- }
- }
-
- public bool Optimize {
- get {
- return optimize;
- }
- set {
- optimize = value;
- }
- }
-
- public string MainClass {
- get {
- return mainclass;
- }
- set {
- mainclass = value;
- }
- }
-
- public string DefineSymbols {
- get {
- return definesymbols;
- }
- set {
- definesymbols = value;
- }
- }
- }
-}
diff --git a/extras/JavaBinding/README b/extras/JavaBinding/README
deleted file mode 100644
index 794c3285fa..0000000000
--- a/extras/JavaBinding/README
+++ /dev/null
@@ -1,7 +0,0 @@
-
-MonoDevelop's support of Java is accompished via IKVM.NET
-(see http://www.ikvm.net) and it intended to allow writing
-.NET applications and libraries in Java. With this in mind
-we will be moving to producing .NET assemblies instead of
-java class files or jars by default.
-
diff --git a/extras/JavaBinding/TODO b/extras/JavaBinding/TODO
deleted file mode 100644
index 7b0d9904ce..0000000000
--- a/extras/JavaBinding/TODO
+++ /dev/null
@@ -1,7 +0,0 @@
- - fix regluar java templates
- - make classpath handling better
- - support turning a jar to a dll simply
- - support more java compilers (like ecj)
- - automatically copy IKVM.GNU.Classpath.dll and IKVM.Runtime.dll
- to output dir
- - implement GenerateMakefiles perhaps
diff --git a/extras/JavaBinding/configure b/extras/JavaBinding/configure
deleted file mode 100755
index 3b77b7e1f1..0000000000
--- a/extras/JavaBinding/configure
+++ /dev/null
@@ -1,102 +0,0 @@
-#!/usr/bin/env bash
-VERSION=4.2.3
-PACKAGE=monodevelop-java
-prefix=/usr/local
-config=DEBUG
-configurations=" RELEASE DEBUG"
-required_packages="mono-addins;0.3 gtk-sharp-2.0;2.12.8 glade-sharp-2.0;2.12.8 monodevelop;2.7"
-
-usage ()
-{
- echo "Usage : configure [--prefix=PREFIX] [--config=CONFIG]"
- echo
- echo "Configurations available :"
- for c in $configurations; do
- if [ "$c" = "$config" ]; then
- echo " $c (Default)"
- else
- echo " $c"
- fi
- done
-}
-
-validate_config ()
-{
- test -z "$1" && return 0
- for c in $configurations; do
- if [ "$c" = "$1" ]; then
- return 1
- fi
- done
- return 0
-}
-
-check_required_packages ()
-{
- echo "Looking for required packages" | tee config.log
- for pkg in $required_packages; do
- name=`echo $pkg | cut -d\; -f1`
- version=`echo $pkg | cut -d\; -f2`
-
- echo -n "Checking for package '$name'.." | tee -a config.log
- pkg-config --atleast-version=$version $name
- if [ $? -ne 0 ]; then
- echo " ERROR: Package named '$name' >= $version not found." | tee -a config.log
- echo "Try adjusting your PKG_CONFIG_PATH environment variable." | tee -a config.log
- return 1
- fi
- echo " found." | tee -a config.log
- done
- return 0
-}
-
-while test x$1 != x; do
- case $1 in
- --prefix=*)
- prefix=`echo $1 | sed 's/--prefix=//'`
- ;;
- --prefix)
- shift
- prefix=$1
- ;;
- --config=*)
- conf=`echo $1 | sed 's/--config=//'`
- validate_config "$conf"
- if [ $? -eq 1 ]; then
- config=$conf
- else
- echo "Invalid config name - $conf"
- usage
- exit 1
- fi
- ;;
- --help)
- usage
- exit
- ;;
- *)
- echo Unknown argument $1 >&2
- usage
- exit 1
- ;;
- esac
- shift
-done
-
-check_required_packages
-[ $? -eq 1 ] && exit 1
-
-sed -e "s,@VERSION@,$VERSION," < monodevelop-java.spec.in > monodevelop-java.spec
-
-echo "prefix=$prefix" > config.make
-echo "RUNTIME=mono" >> config.make
-echo "ASSEMBLY_VERSION=$VERSION.0.0" >> config.make
-echo "VERSION=$VERSION" >> config.make
-echo "PACKAGE=$PACKAGE" >> config.make
-echo "CONFIG=$config" >> config.make
-
-echo
-echo "$PACKAGE has been configured with "
-echo " prefix = $prefix"
-echo " config = $config"
-echo
diff --git a/extras/JavaBinding/gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs b/extras/JavaBinding/gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs
deleted file mode 100644
index 278eb43e8b..0000000000
--- a/extras/JavaBinding/gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs
+++ /dev/null
@@ -1,464 +0,0 @@
-
-// This file has been generated by the GUI designer. Do not modify.
-namespace JavaBinding
-{
- internal partial class CodeGenerationPanelWidget
- {
- private global::Gtk.VBox vbox62;
-
- private global::Gtk.Label label82;
-
- private global::Gtk.HBox hbox56;
-
- private global::Gtk.Label label81;
-
- private global::Gtk.VBox vbox65;
-
- private global::Gtk.Table table7;
-
- private global::Gtk.Entry classPathEntry;
-
- private global::Gtk.HBox hbox61;
-
- private global::Gtk.ComboBox compileTargetCombo;
-
- private global::Gtk.Label label86;
-
- private global::Gtk.Label label87;
-
- private global::Gtk.Label label88;
-
- private global::Gtk.Label label91;
-
- private global::Gtk.Entry mainClassEntry;
-
- private global::Gtk.Entry symbolsEntry;
-
- private global::Gtk.Label label92;
-
- private global::Gtk.HBox hbox57;
-
- private global::Gtk.Label label93;
-
- private global::Gtk.VBox vbox66;
-
- private global::Gtk.HBox hbox58;
-
- private global::Gtk.RadioButton compilerGcjButton;
-
- private global::Gtk.RadioButton compilerJavacButton;
-
- private global::Gtk.Entry compilerEntry;
-
- private global::Gtk.HBox hbox60;
-
- private global::Gtk.VBox vbox68;
-
- private global::Gtk.Label label90;
-
- private global::Gtk.HBox hbox47;
-
- private global::Gtk.Label label72;
-
- private global::Gtk.VBox vbox64;
-
- private global::Gtk.CheckButton enableOptimizationCheckButton;
-
- private global::Gtk.CheckButton generateDebugInformationCheckButton;
-
- private global::Gtk.VBox vbox69;
-
- private global::Gtk.Label label94;
-
- private global::Gtk.HBox hbox59;
-
- private global::Gtk.Label label95;
-
- private global::Gtk.VBox vbox67;
-
- private global::Gtk.CheckButton generateWarningsCheckButton;
-
- private global::Gtk.CheckButton deprecationCheckButton;
-
- private global::Gtk.CheckButton warningsAsErrorsCheckButton;
-
- protected virtual void Build ()
- {
- global::Stetic.Gui.Initialize (this);
- // Widget JavaBinding.CodeGenerationPanelWidget
- global::Stetic.BinContainer.Attach (this);
- this.Name = "JavaBinding.CodeGenerationPanelWidget";
- // Container child JavaBinding.CodeGenerationPanelWidget.Gtk.Container+ContainerChild
- this.vbox62 = new global::Gtk.VBox ();
- this.vbox62.Name = "vbox62";
- this.vbox62.Spacing = 12;
- // Container child vbox62.Gtk.Box+BoxChild
- this.label82 = new global::Gtk.Label ();
- this.label82.Name = "label82";
- this.label82.Xalign = 0f;
- this.label82.LabelProp = global::Mono.Addins.AddinManager.CurrentLocalizer.GetString ("<b>Code Generation</b>");
- this.label82.UseMarkup = true;
- this.vbox62.Add (this.label82);
- global::Gtk.Box.BoxChild w1 = ((global::Gtk.Box.BoxChild)(this.vbox62[this.label82]));
- w1.Position = 0;
- w1.Expand = false;
- w1.Fill = false;
- // Container child vbox62.Gtk.Box+BoxChild
- this.hbox56 = new global::Gtk.HBox ();
- this.hbox56.Name = "hbox56";
- // Container child hbox56.Gtk.Box+BoxChild
- this.label81 = new global::Gtk.Label ();
- this.label81.WidthRequest = 18;
- this.label81.Name = "label81";
- this.hbox56.Add (this.label81);
- global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.hbox56[this.label81]));
- w2.Position = 0;
- w2.Expand = false;
- w2.Fill = false;
- // Container child hbox56.Gtk.Box+BoxChild
- this.vbox65 = new global::Gtk.VBox ();
- this.vbox65.Name = "vbox65";
- this.vbox65.Spacing = 6;
- // Container child vbox65.Gtk.Box+BoxChild
- this.table7 = new global::Gtk.Table (((uint)(4)), ((uint)(2)), false);
- this.table7.Name = "table7";
- this.table7.RowSpacing = ((uint)(6));
- this.table7.ColumnSpacing = ((uint)(6));
- // Container child table7.Gtk.Table+TableChild
- this.classPathEntry = new global::Gtk.Entry ();
- this.classPathEntry.Name = "classPathEntry";
- this.classPathEntry.IsEditable = true;
- this.classPathEntry.InvisibleChar = '●';
- this.table7.Add (this.classPathEntry);
- global::Gtk.Table.TableChild w3 = ((global::Gtk.Table.TableChild)(this.table7[this.classPathEntry]));
- w3.TopAttach = ((uint)(3));
- w3.BottomAttach = ((uint)(4));
- w3.LeftAttach = ((uint)(1));
- w3.RightAttach = ((uint)(2));
- w3.YOptions = ((global::Gtk.AttachOptions)(0));
- // Container child table7.Gtk.Table+TableChild
- this.hbox61 = new global::Gtk.HBox ();
- this.hbox61.Name = "hbox61";
- // Container child hbox61.Gtk.Box+BoxChild
- this.compileTargetCombo = new global::Gtk.ComboBox ();
- this.compileTargetCombo.Name = "compileTargetCombo";
- this.hbox61.Add (this.compileTargetCombo);
- global::Gtk.Box.BoxChild w4 = ((global::Gtk.Box.BoxChild)(this.hbox61[this.compileTargetCombo]));
- w4.Position = 0;
- w4.Expand = false;
- w4.Fill = false;
- this.table7.Add (this.hbox61);
- global::Gtk.Table.TableChild w5 = ((global::Gtk.Table.TableChild)(this.table7[this.hbox61]));
- w5.LeftAttach = ((uint)(1));
- w5.RightAttach = ((uint)(2));
- w5.XOptions = ((global::Gtk.AttachOptions)(4));
- w5.YOptions = ((global::Gtk.AttachOptions)(4));
- // Container child table7.Gtk.Table+TableChild
- this.label86 = new global::Gtk.Label ();
- this.label86.Name = "label86";
- this.label86.Xalign = 0f;
- this.label86.LabelProp = global::Mono.Addins.AddinManager.CurrentLocalizer.GetString ("Compile _Target:");
- this.label86.UseUnderline = true;
- this.table7.Add (this.label86);
- global::Gtk.Table.TableChild w6 = ((global::Gtk.Table.TableChild)(this.table7[this.label86]));
- w6.XOptions = ((global::Gtk.AttachOptions)(4));
- w6.YOptions = ((global::Gtk.AttachOptions)(0));
- // Container child table7.Gtk.Table+TableChild
- this.label87 = new global::Gtk.Label ();
- this.label87.Name = "label87";
- this.label87.Xalign = 0f;
- this.label87.LabelProp = global::Mono.Addins.AddinManager.CurrentLocalizer.GetString ("Define S_ymbols:");
- this.label87.UseUnderline = true;
- this.table7.Add (this.label87);
- global::Gtk.Table.TableChild w7 = ((global::Gtk.Table.TableChild)(this.table7[this.label87]));
- w7.TopAttach = ((uint)(1));
- w7.BottomAttach = ((uint)(2));
- w7.XOptions = ((global::Gtk.AttachOptions)(4));
- w7.YOptions = ((global::Gtk.AttachOptions)(0));
- // Container child table7.Gtk.Table+TableChild
- this.label88 = new global::Gtk.Label ();
- this.label88.Name = "label88";
- this.label88.Xalign = 0f;
- this.label88.LabelProp = global::Mono.Addins.AddinManager.CurrentLocalizer.GetString ("_Main Class:");
- this.label88.UseUnderline = true;
- this.table7.Add (this.label88);
- global::Gtk.Table.TableChild w8 = ((global::Gtk.Table.TableChild)(this.table7[this.label88]));
- w8.TopAttach = ((uint)(2));
- w8.BottomAttach = ((uint)(3));
- w8.XOptions = ((global::Gtk.AttachOptions)(4));
- w8.YOptions = ((global::Gtk.AttachOptions)(0));
- // Container child table7.Gtk.Table+TableChild
- this.label91 = new global::Gtk.Label ();
- this.label91.Name = "label91";
- this.label91.Xalign = 0f;
- this.label91.LabelProp = global::Mono.Addins.AddinManager.CurrentLocalizer.GetString ("Classpath:");
- this.label91.UseUnderline = true;
- this.table7.Add (this.label91);
- global::Gtk.Table.TableChild w9 = ((global::Gtk.Table.TableChild)(this.table7[this.label91]));
- w9.TopAttach = ((uint)(3));
- w9.BottomAttach = ((uint)(4));
- w9.XOptions = ((global::Gtk.AttachOptions)(4));
- w9.YOptions = ((global::Gtk.AttachOptions)(0));
- // Container child table7.Gtk.Table+TableChild
- this.mainClassEntry = new global::Gtk.Entry ();
- this.mainClassEntry.Name = "mainClassEntry";
- this.mainClassEntry.IsEditable = true;
- this.mainClassEntry.InvisibleChar = '●';
- this.table7.Add (this.mainClassEntry);
- global::Gtk.Table.TableChild w10 = ((global::Gtk.Table.TableChild)(this.table7[this.mainClassEntry]));
- w10.TopAttach = ((uint)(2));
- w10.BottomAttach = ((uint)(3));
- w10.LeftAttach = ((uint)(1));
- w10.RightAttach = ((uint)(2));
- w10.YOptions = ((global::Gtk.AttachOptions)(0));
- // Container child table7.Gtk.Table+TableChild
- this.symbolsEntry = new global::Gtk.Entry ();
- this.symbolsEntry.Name = "symbolsEntry";
- this.symbolsEntry.IsEditable = true;
- this.symbolsEntry.InvisibleChar = '●';
- this.table7.Add (this.symbolsEntry);
- global::Gtk.Table.TableChild w11 = ((global::Gtk.Table.TableChild)(this.table7[this.symbolsEntry]));
- w11.TopAttach = ((uint)(1));
- w11.BottomAttach = ((uint)(2));
- w11.LeftAttach = ((uint)(1));
- w11.RightAttach = ((uint)(2));
- w11.YOptions = ((global::Gtk.AttachOptions)(0));
- this.vbox65.Add (this.table7);
- global::Gtk.Box.BoxChild w12 = ((global::Gtk.Box.BoxChild)(this.vbox65[this.table7]));
- w12.Position = 0;
- this.hbox56.Add (this.vbox65);
- global::Gtk.Box.BoxChild w13 = ((global::Gtk.Box.BoxChild)(this.hbox56[this.vbox65]));
- w13.Position = 1;
- this.vbox62.Add (this.hbox56);
- global::Gtk.Box.BoxChild w14 = ((global::Gtk.Box.BoxChild)(this.vbox62[this.hbox56]));
- w14.Position = 1;
- w14.Expand = false;
- w14.Fill = false;
- // Container child vbox62.Gtk.Box+BoxChild
- this.label92 = new global::Gtk.Label ();
- this.label92.Name = "label92";
- this.label92.Xalign = 0f;
- this.label92.LabelProp = global::Mono.Addins.AddinManager.CurrentLocalizer.GetString ("<b>Compiler</b>");
- this.label92.UseMarkup = true;
- this.vbox62.Add (this.label92);
- global::Gtk.Box.BoxChild w15 = ((global::Gtk.Box.BoxChild)(this.vbox62[this.label92]));
- w15.Position = 2;
- w15.Expand = false;
- w15.Fill = false;
- // Container child vbox62.Gtk.Box+BoxChild
- this.hbox57 = new global::Gtk.HBox ();
- this.hbox57.Name = "hbox57";
- // Container child hbox57.Gtk.Box+BoxChild
- this.label93 = new global::Gtk.Label ();
- this.label93.WidthRequest = 18;
- this.label93.Name = "label93";
- this.hbox57.Add (this.label93);
- global::Gtk.Box.BoxChild w16 = ((global::Gtk.Box.BoxChild)(this.hbox57[this.label93]));
- w16.Position = 0;
- w16.Expand = false;
- w16.Fill = false;
- // Container child hbox57.Gtk.Box+BoxChild
- this.vbox66 = new global::Gtk.VBox ();
- this.vbox66.Name = "vbox66";
- // Container child vbox66.Gtk.Box+BoxChild
- this.hbox58 = new global::Gtk.HBox ();
- this.hbox58.Name = "hbox58";
- this.hbox58.Spacing = 18;
- // Container child hbox58.Gtk.Box+BoxChild
- this.compilerGcjButton = new global::Gtk.RadioButton (global::Mono.Addins.AddinManager.CurrentLocalizer.GetString ("gcj"));
- this.compilerGcjButton.Name = "compilerGcjButton";
- this.compilerGcjButton.Active = true;
- this.compilerGcjButton.DrawIndicator = true;
- this.compilerGcjButton.UseUnderline = true;
- this.compilerGcjButton.Group = new global::GLib.SList (global::System.IntPtr.Zero);
- this.hbox58.Add (this.compilerGcjButton);
- global::Gtk.Box.BoxChild w17 = ((global::Gtk.Box.BoxChild)(this.hbox58[this.compilerGcjButton]));
- w17.Position = 0;
- w17.Expand = false;
- w17.Fill = false;
- // Container child hbox58.Gtk.Box+BoxChild
- this.compilerJavacButton = new global::Gtk.RadioButton (global::Mono.Addins.AddinManager.CurrentLocalizer.GetString ("javac"));
- this.compilerJavacButton.Name = "compilerJavacButton";
- this.compilerJavacButton.DrawIndicator = true;
- this.compilerJavacButton.UseUnderline = true;
- this.compilerJavacButton.Group = this.compilerGcjButton.Group;
- this.hbox58.Add (this.compilerJavacButton);
- global::Gtk.Box.BoxChild w18 = ((global::Gtk.Box.BoxChild)(this.hbox58[this.compilerJavacButton]));
- w18.Position = 1;
- w18.Expand = false;
- w18.Fill = false;
- this.vbox66.Add (this.hbox58);
- global::Gtk.Box.BoxChild w19 = ((global::Gtk.Box.BoxChild)(this.vbox66[this.hbox58]));
- w19.Position = 0;
- // Container child vbox66.Gtk.Box+BoxChild
- this.compilerEntry = new global::Gtk.Entry ();
- this.compilerEntry.Name = "compilerEntry";
- this.compilerEntry.IsEditable = true;
- this.compilerEntry.InvisibleChar = '●';
- this.vbox66.Add (this.compilerEntry);
- global::Gtk.Box.BoxChild w20 = ((global::Gtk.Box.BoxChild)(this.vbox66[this.compilerEntry]));
- w20.Position = 1;
- w20.Expand = false;
- w20.Fill = false;
- this.hbox57.Add (this.vbox66);
- global::Gtk.Box.BoxChild w21 = ((global::Gtk.Box.BoxChild)(this.hbox57[this.vbox66]));
- w21.Position = 1;
- this.vbox62.Add (this.hbox57);
- global::Gtk.Box.BoxChild w22 = ((global::Gtk.Box.BoxChild)(this.vbox62[this.hbox57]));
- w22.Position = 3;
- w22.Expand = false;
- w22.Fill = false;
- // Container child vbox62.Gtk.Box+BoxChild
- this.hbox60 = new global::Gtk.HBox ();
- this.hbox60.Name = "hbox60";
- // Container child hbox60.Gtk.Box+BoxChild
- this.vbox68 = new global::Gtk.VBox ();
- this.vbox68.Name = "vbox68";
- this.vbox68.Spacing = 6;
- // Container child vbox68.Gtk.Box+BoxChild
- this.label90 = new global::Gtk.Label ();
- this.label90.Name = "label90";
- this.label90.Xalign = 0f;
- this.label90.LabelProp = global::Mono.Addins.AddinManager.CurrentLocalizer.GetString ("<b>Options</b>");
- this.label90.UseMarkup = true;
- this.label90.UseUnderline = true;
- this.vbox68.Add (this.label90);
- global::Gtk.Box.BoxChild w23 = ((global::Gtk.Box.BoxChild)(this.vbox68[this.label90]));
- w23.Position = 0;
- w23.Expand = false;
- w23.Fill = false;
- // Container child vbox68.Gtk.Box+BoxChild
- this.hbox47 = new global::Gtk.HBox ();
- this.hbox47.Name = "hbox47";
- // Container child hbox47.Gtk.Box+BoxChild
- this.label72 = new global::Gtk.Label ();
- this.label72.WidthRequest = 18;
- this.label72.Name = "label72";
- this.hbox47.Add (this.label72);
- global::Gtk.Box.BoxChild w24 = ((global::Gtk.Box.BoxChild)(this.hbox47[this.label72]));
- w24.Position = 0;
- w24.Expand = false;
- w24.Fill = false;
- // Container child hbox47.Gtk.Box+BoxChild
- this.vbox64 = new global::Gtk.VBox ();
- this.vbox64.Name = "vbox64";
- this.vbox64.Spacing = 6;
- // Container child vbox64.Gtk.Box+BoxChild
- this.enableOptimizationCheckButton = new global::Gtk.CheckButton ();
- this.enableOptimizationCheckButton.Name = "enableOptimizationCheckButton";
- this.enableOptimizationCheckButton.Label = global::Mono.Addins.AddinManager.CurrentLocalizer.GetString ("Enable _optimizations");
- this.enableOptimizationCheckButton.DrawIndicator = true;
- this.enableOptimizationCheckButton.UseUnderline = true;
- this.vbox64.Add (this.enableOptimizationCheckButton);
- global::Gtk.Box.BoxChild w25 = ((global::Gtk.Box.BoxChild)(this.vbox64[this.enableOptimizationCheckButton]));
- w25.Position = 0;
- w25.Expand = false;
- w25.Fill = false;
- // Container child vbox64.Gtk.Box+BoxChild
- this.generateDebugInformationCheckButton = new global::Gtk.CheckButton ();
- this.generateDebugInformationCheckButton.Name = "generateDebugInformationCheckButton";
- this.generateDebugInformationCheckButton.Label = global::Mono.Addins.AddinManager.CurrentLocalizer.GetString ("Emit _debugging information");
- this.generateDebugInformationCheckButton.DrawIndicator = true;
- this.generateDebugInformationCheckButton.UseUnderline = true;
- this.vbox64.Add (this.generateDebugInformationCheckButton);
- global::Gtk.Box.BoxChild w26 = ((global::Gtk.Box.BoxChild)(this.vbox64[this.generateDebugInformationCheckButton]));
- w26.Position = 1;
- w26.Expand = false;
- w26.Fill = false;
- this.hbox47.Add (this.vbox64);
- global::Gtk.Box.BoxChild w27 = ((global::Gtk.Box.BoxChild)(this.hbox47[this.vbox64]));
- w27.Position = 1;
- this.vbox68.Add (this.hbox47);
- global::Gtk.Box.BoxChild w28 = ((global::Gtk.Box.BoxChild)(this.vbox68[this.hbox47]));
- w28.Position = 1;
- this.hbox60.Add (this.vbox68);
- global::Gtk.Box.BoxChild w29 = ((global::Gtk.Box.BoxChild)(this.hbox60[this.vbox68]));
- w29.Position = 0;
- // Container child hbox60.Gtk.Box+BoxChild
- this.vbox69 = new global::Gtk.VBox ();
- this.vbox69.Name = "vbox69";
- this.vbox69.Spacing = 6;
- // Container child vbox69.Gtk.Box+BoxChild
- this.label94 = new global::Gtk.Label ();
- this.label94.Name = "label94";
- this.label94.Xalign = 0f;
- this.label94.LabelProp = global::Mono.Addins.AddinManager.CurrentLocalizer.GetString ("<b>Warnings</b>");
- this.label94.UseMarkup = true;
- this.label94.UseUnderline = true;
- this.vbox69.Add (this.label94);
- global::Gtk.Box.BoxChild w30 = ((global::Gtk.Box.BoxChild)(this.vbox69[this.label94]));
- w30.Position = 0;
- w30.Expand = false;
- w30.Fill = false;
- // Container child vbox69.Gtk.Box+BoxChild
- this.hbox59 = new global::Gtk.HBox ();
- this.hbox59.Name = "hbox59";
- // Container child hbox59.Gtk.Box+BoxChild
- this.label95 = new global::Gtk.Label ();
- this.label95.WidthRequest = 18;
- this.label95.Name = "label95";
- this.hbox59.Add (this.label95);
- global::Gtk.Box.BoxChild w31 = ((global::Gtk.Box.BoxChild)(this.hbox59[this.label95]));
- w31.Position = 0;
- w31.Expand = false;
- w31.Fill = false;
- // Container child hbox59.Gtk.Box+BoxChild
- this.vbox67 = new global::Gtk.VBox ();
- this.vbox67.Name = "vbox67";
- this.vbox67.Spacing = 6;
- // Container child vbox67.Gtk.Box+BoxChild
- this.generateWarningsCheckButton = new global::Gtk.CheckButton ();
- this.generateWarningsCheckButton.Name = "generateWarningsCheckButton";
- this.generateWarningsCheckButton.Label = global::Mono.Addins.AddinManager.CurrentLocalizer.GetString ("Generate warnings");
- this.generateWarningsCheckButton.DrawIndicator = true;
- this.generateWarningsCheckButton.UseUnderline = true;
- this.vbox67.Add (this.generateWarningsCheckButton);
- global::Gtk.Box.BoxChild w32 = ((global::Gtk.Box.BoxChild)(this.vbox67[this.generateWarningsCheckButton]));
- w32.Position = 0;
- w32.Expand = false;
- w32.Fill = false;
- // Container child vbox67.Gtk.Box+BoxChild
- this.deprecationCheckButton = new global::Gtk.CheckButton ();
- this.deprecationCheckButton.Name = "deprecationCheckButton";
- this.deprecationCheckButton.Label = global::Mono.Addins.AddinManager.CurrentLocalizer.GetString ("Enable deprecation warnings");
- this.deprecationCheckButton.DrawIndicator = true;
- this.deprecationCheckButton.UseUnderline = true;
- this.vbox67.Add (this.deprecationCheckButton);
- global::Gtk.Box.BoxChild w33 = ((global::Gtk.Box.BoxChild)(this.vbox67[this.deprecationCheckButton]));
- w33.Position = 1;
- w33.Expand = false;
- w33.Fill = false;
- // Container child vbox67.Gtk.Box+BoxChild
- this.warningsAsErrorsCheckButton = new global::Gtk.CheckButton ();
- this.warningsAsErrorsCheckButton.Name = "warningsAsErrorsCheckButton";
- this.warningsAsErrorsCheckButton.Label = global::Mono.Addins.AddinManager.CurrentLocalizer.GetString ("Treat warnings as _errors");
- this.warningsAsErrorsCheckButton.DrawIndicator = true;
- this.warningsAsErrorsCheckButton.UseUnderline = true;
- this.vbox67.Add (this.warningsAsErrorsCheckButton);
- global::Gtk.Box.BoxChild w34 = ((global::Gtk.Box.BoxChild)(this.vbox67[this.warningsAsErrorsCheckButton]));
- w34.Position = 2;
- w34.Expand = false;
- w34.Fill = false;
- this.hbox59.Add (this.vbox67);
- global::Gtk.Box.BoxChild w35 = ((global::Gtk.Box.BoxChild)(this.hbox59[this.vbox67]));
- w35.Position = 1;
- this.vbox69.Add (this.hbox59);
- global::Gtk.Box.BoxChild w36 = ((global::Gtk.Box.BoxChild)(this.vbox69[this.hbox59]));
- w36.Position = 1;
- this.hbox60.Add (this.vbox69);
- global::Gtk.Box.BoxChild w37 = ((global::Gtk.Box.BoxChild)(this.hbox60[this.vbox69]));
- w37.Position = 1;
- this.vbox62.Add (this.hbox60);
- global::Gtk.Box.BoxChild w38 = ((global::Gtk.Box.BoxChild)(this.vbox62[this.hbox60]));
- w38.Position = 4;
- this.Add (this.vbox62);
- if ((this.Child != null)) {
- this.Child.ShowAll ();
- }
- this.label87.MnemonicWidget = this.symbolsEntry;
- this.label88.MnemonicWidget = this.mainClassEntry;
- this.label91.MnemonicWidget = this.classPathEntry;
- this.Show ();
- }
- }
-}
diff --git a/extras/JavaBinding/gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs b/extras/JavaBinding/gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs
deleted file mode 100644
index 1337a84c45..0000000000
--- a/extras/JavaBinding/gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs
+++ /dev/null
@@ -1,219 +0,0 @@
-
-// This file has been generated by the GUI designer. Do not modify.
-namespace JavaBinding
-{
- internal partial class GlobalOptionsPanelWidget
- {
- private global::Gtk.VBox vbox70;
-
- private global::Gtk.Label label96;
-
- private global::Gtk.HBox hbox63;
-
- private global::Gtk.Label label100;
-
- private global::Gtk.Table table9;
-
- private global::Gtk.Entry compilerPathEntry;
-
- private global::Gtk.HBox hbox64;
-
- private global::Gtk.ComboBox compilerCombo;
-
- private global::MonoDevelop.Components.FolderEntry ikvmPathEntry;
-
- private global::Gtk.Label label101;
-
- private global::Gtk.Label label98;
-
- private global::Gtk.Label label99;
-
- private global::Gtk.Label label97;
-
- private global::Gtk.HBox hbox65;
-
- private global::Gtk.Label label102;
-
- private global::Gtk.Table table10;
-
- private global::Gtk.Entry classpathEntry;
-
- private global::Gtk.Label label103;
-
- protected virtual void Build ()
- {
- global::Stetic.Gui.Initialize (this);
- // Widget JavaBinding.GlobalOptionsPanelWidget
- global::Stetic.BinContainer.Attach (this);
- this.Name = "JavaBinding.GlobalOptionsPanelWidget";
- // Container child JavaBinding.GlobalOptionsPanelWidget.Gtk.Container+ContainerChild
- this.vbox70 = new global::Gtk.VBox ();
- this.vbox70.Name = "vbox70";
- this.vbox70.Spacing = 12;
- // Container child vbox70.Gtk.Box+BoxChild
- this.label96 = new global::Gtk.Label ();
- this.label96.Name = "label96";
- this.label96.Xalign = 0f;
- this.label96.LabelProp = global::Mono.Addins.AddinManager.CurrentLocalizer.GetString ("<b>Compiler</b>");
- this.label96.UseMarkup = true;
- this.vbox70.Add (this.label96);
- global::Gtk.Box.BoxChild w1 = ((global::Gtk.Box.BoxChild)(this.vbox70[this.label96]));
- w1.Position = 0;
- w1.Expand = false;
- w1.Fill = false;
- // Container child vbox70.Gtk.Box+BoxChild
- this.hbox63 = new global::Gtk.HBox ();
- this.hbox63.Name = "hbox63";
- // Container child hbox63.Gtk.Box+BoxChild
- this.label100 = new global::Gtk.Label ();
- this.label100.WidthRequest = 18;
- this.label100.Name = "label100";
- this.hbox63.Add (this.label100);
- global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.hbox63[this.label100]));
- w2.Position = 0;
- w2.Expand = false;
- w2.Fill = false;
- // Container child hbox63.Gtk.Box+BoxChild
- this.table9 = new global::Gtk.Table (((uint)(3)), ((uint)(2)), false);
- this.table9.Name = "table9";
- this.table9.RowSpacing = ((uint)(6));
- this.table9.ColumnSpacing = ((uint)(6));
- // Container child table9.Gtk.Table+TableChild
- this.compilerPathEntry = new global::Gtk.Entry ();
- this.compilerPathEntry.Name = "compilerPathEntry";
- this.compilerPathEntry.IsEditable = true;
- this.compilerPathEntry.InvisibleChar = '●';
- this.table9.Add (this.compilerPathEntry);
- global::Gtk.Table.TableChild w3 = ((global::Gtk.Table.TableChild)(this.table9[this.compilerPathEntry]));
- w3.TopAttach = ((uint)(2));
- w3.BottomAttach = ((uint)(3));
- w3.LeftAttach = ((uint)(1));
- w3.RightAttach = ((uint)(2));
- w3.YOptions = ((global::Gtk.AttachOptions)(0));
- // Container child table9.Gtk.Table+TableChild
- this.hbox64 = new global::Gtk.HBox ();
- this.hbox64.Name = "hbox64";
- // Container child hbox64.Gtk.Box+BoxChild
- this.compilerCombo = new global::Gtk.ComboBox ();
- this.compilerCombo.Name = "compilerCombo";
- this.hbox64.Add (this.compilerCombo);
- global::Gtk.Box.BoxChild w4 = ((global::Gtk.Box.BoxChild)(this.hbox64[this.compilerCombo]));
- w4.Position = 0;
- w4.Expand = false;
- w4.Fill = false;
- this.table9.Add (this.hbox64);
- global::Gtk.Table.TableChild w5 = ((global::Gtk.Table.TableChild)(this.table9[this.hbox64]));
- w5.TopAttach = ((uint)(1));
- w5.BottomAttach = ((uint)(2));
- w5.LeftAttach = ((uint)(1));
- w5.RightAttach = ((uint)(2));
- w5.YOptions = ((global::Gtk.AttachOptions)(4));
- // Container child table9.Gtk.Table+TableChild
- this.ikvmPathEntry = new global::MonoDevelop.Components.FolderEntry ();
- this.ikvmPathEntry.Name = "ikvmPathEntry";
- this.table9.Add (this.ikvmPathEntry);
- global::Gtk.Table.TableChild w6 = ((global::Gtk.Table.TableChild)(this.table9[this.ikvmPathEntry]));
- w6.LeftAttach = ((uint)(1));
- w6.RightAttach = ((uint)(2));
- w6.XOptions = ((global::Gtk.AttachOptions)(4));
- w6.YOptions = ((global::Gtk.AttachOptions)(4));
- // Container child table9.Gtk.Table+TableChild
- this.label101 = new global::Gtk.Label ();
- this.label101.Name = "label101";
- this.label101.Xalign = 0f;
- this.label101.LabelProp = global::Mono.Addins.AddinManager.CurrentLocalizer.GetString ("Compiler command:");
- this.table9.Add (this.label101);
- global::Gtk.Table.TableChild w7 = ((global::Gtk.Table.TableChild)(this.table9[this.label101]));
- w7.TopAttach = ((uint)(2));
- w7.BottomAttach = ((uint)(3));
- w7.XOptions = ((global::Gtk.AttachOptions)(4));
- w7.YOptions = ((global::Gtk.AttachOptions)(0));
- // Container child table9.Gtk.Table+TableChild
- this.label98 = new global::Gtk.Label ();
- this.label98.Name = "label98";
- this.label98.Xalign = 0f;
- this.label98.LabelProp = global::Mono.Addins.AddinManager.CurrentLocalizer.GetString ("IKVM path:");
- this.table9.Add (this.label98);
- global::Gtk.Table.TableChild w8 = ((global::Gtk.Table.TableChild)(this.table9[this.label98]));
- w8.XOptions = ((global::Gtk.AttachOptions)(4));
- w8.YOptions = ((global::Gtk.AttachOptions)(0));
- // Container child table9.Gtk.Table+TableChild
- this.label99 = new global::Gtk.Label ();
- this.label99.Name = "label99";
- this.label99.Xalign = 0f;
- this.label99.LabelProp = global::Mono.Addins.AddinManager.CurrentLocalizer.GetString ("Java compiler:");
- this.table9.Add (this.label99);
- global::Gtk.Table.TableChild w9 = ((global::Gtk.Table.TableChild)(this.table9[this.label99]));
- w9.TopAttach = ((uint)(1));
- w9.BottomAttach = ((uint)(2));
- w9.XOptions = ((global::Gtk.AttachOptions)(4));
- w9.YOptions = ((global::Gtk.AttachOptions)(0));
- this.hbox63.Add (this.table9);
- global::Gtk.Box.BoxChild w10 = ((global::Gtk.Box.BoxChild)(this.hbox63[this.table9]));
- w10.Position = 1;
- this.vbox70.Add (this.hbox63);
- global::Gtk.Box.BoxChild w11 = ((global::Gtk.Box.BoxChild)(this.vbox70[this.hbox63]));
- w11.Position = 1;
- w11.Expand = false;
- w11.Fill = false;
- // Container child vbox70.Gtk.Box+BoxChild
- this.label97 = new global::Gtk.Label ();
- this.label97.Name = "label97";
- this.label97.Xalign = 0f;
- this.label97.LabelProp = global::Mono.Addins.AddinManager.CurrentLocalizer.GetString ("<b>Code Generation</b>");
- this.label97.UseMarkup = true;
- this.vbox70.Add (this.label97);
- global::Gtk.Box.BoxChild w12 = ((global::Gtk.Box.BoxChild)(this.vbox70[this.label97]));
- w12.Position = 2;
- w12.Expand = false;
- w12.Fill = false;
- // Container child vbox70.Gtk.Box+BoxChild
- this.hbox65 = new global::Gtk.HBox ();
- this.hbox65.Name = "hbox65";
- // Container child hbox65.Gtk.Box+BoxChild
- this.label102 = new global::Gtk.Label ();
- this.label102.WidthRequest = 18;
- this.label102.Name = "label102";
- this.hbox65.Add (this.label102);
- global::Gtk.Box.BoxChild w13 = ((global::Gtk.Box.BoxChild)(this.hbox65[this.label102]));
- w13.Position = 0;
- w13.Expand = false;
- w13.Fill = false;
- // Container child hbox65.Gtk.Box+BoxChild
- this.table10 = new global::Gtk.Table (((uint)(1)), ((uint)(2)), false);
- this.table10.Name = "table10";
- this.table10.RowSpacing = ((uint)(6));
- this.table10.ColumnSpacing = ((uint)(6));
- // Container child table10.Gtk.Table+TableChild
- this.classpathEntry = new global::Gtk.Entry ();
- this.classpathEntry.Name = "classpathEntry";
- this.classpathEntry.IsEditable = true;
- this.classpathEntry.InvisibleChar = '●';
- this.table10.Add (this.classpathEntry);
- global::Gtk.Table.TableChild w14 = ((global::Gtk.Table.TableChild)(this.table10[this.classpathEntry]));
- w14.LeftAttach = ((uint)(1));
- w14.RightAttach = ((uint)(2));
- w14.YOptions = ((global::Gtk.AttachOptions)(0));
- // Container child table10.Gtk.Table+TableChild
- this.label103 = new global::Gtk.Label ();
- this.label103.Name = "label103";
- this.label103.Xalign = 0f;
- this.label103.LabelProp = global::Mono.Addins.AddinManager.CurrentLocalizer.GetString ("Classpath:");
- this.table10.Add (this.label103);
- global::Gtk.Table.TableChild w15 = ((global::Gtk.Table.TableChild)(this.table10[this.label103]));
- w15.XOptions = ((global::Gtk.AttachOptions)(4));
- w15.YOptions = ((global::Gtk.AttachOptions)(0));
- this.hbox65.Add (this.table10);
- global::Gtk.Box.BoxChild w16 = ((global::Gtk.Box.BoxChild)(this.hbox65[this.table10]));
- w16.Position = 1;
- this.vbox70.Add (this.hbox65);
- global::Gtk.Box.BoxChild w17 = ((global::Gtk.Box.BoxChild)(this.vbox70[this.hbox65]));
- w17.Position = 3;
- this.Add (this.vbox70);
- if ((this.Child != null)) {
- this.Child.ShowAll ();
- }
- this.Show ();
- }
- }
-}
diff --git a/extras/JavaBinding/gtk-gui/generated.cs b/extras/JavaBinding/gtk-gui/generated.cs
deleted file mode 100644
index aa96390c4a..0000000000
--- a/extras/JavaBinding/gtk-gui/generated.cs
+++ /dev/null
@@ -1,82 +0,0 @@
-
-// This file has been generated by the GUI designer. Do not modify.
-namespace Stetic
-{
- internal class Gui
- {
- private static bool initialized;
-
- static internal void Initialize (Gtk.Widget iconRenderer)
- {
- if ((Stetic.Gui.initialized == false)) {
- Stetic.Gui.initialized = true;
- }
- }
- }
-
- internal class BinContainer
- {
- private Gtk.Widget child;
-
- private Gtk.UIManager uimanager;
-
- public static BinContainer Attach (Gtk.Bin bin)
- {
- BinContainer bc = new BinContainer ();
- bin.SizeRequested += new Gtk.SizeRequestedHandler (bc.OnSizeRequested);
- bin.SizeAllocated += new Gtk.SizeAllocatedHandler (bc.OnSizeAllocated);
- bin.Added += new Gtk.AddedHandler (bc.OnAdded);
- return bc;
- }
-
- private void OnSizeRequested (object sender, Gtk.SizeRequestedArgs args)
- {
- if ((this.child != null)) {
- args.Requisition = this.child.SizeRequest ();
- }
- }
-
- private void OnSizeAllocated (object sender, Gtk.SizeAllocatedArgs args)
- {
- if ((this.child != null)) {
- this.child.Allocation = args.Allocation;
- }
- }
-
- private void OnAdded (object sender, Gtk.AddedArgs args)
- {
- this.child = args.Widget;
- }
-
- public void SetUiManager (Gtk.UIManager uim)
- {
- this.uimanager = uim;
- this.child.Realized += new System.EventHandler (this.OnRealized);
- }
-
- private void OnRealized (object sender, System.EventArgs args)
- {
- if ((this.uimanager != null)) {
- Gtk.Widget w;
- w = this.child.Toplevel;
- if (((w != null) && typeof(Gtk.Window).IsInstanceOfType (w))) {
- ((Gtk.Window)(w)).AddAccelGroup (this.uimanager.AccelGroup);
- this.uimanager = null;
- }
- }
- }
- }
-
- internal class ActionGroups
- {
- public static Gtk.ActionGroup GetActionGroup (System.Type type)
- {
- return Stetic.ActionGroups.GetActionGroup (type.FullName);
- }
-
- public static Gtk.ActionGroup GetActionGroup (string name)
- {
- return null;
- }
- }
-}
diff --git a/extras/JavaBinding/gtk-gui/gui.stetic b/extras/JavaBinding/gtk-gui/gui.stetic
deleted file mode 100644
index 87d3f6f403..0000000000
--- a/extras/JavaBinding/gtk-gui/gui.stetic
+++ /dev/null
@@ -1,836 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<stetic-interface>
- <configuration>
- <images-root-path>..</images-root-path>
- <target-gtk-version>2.12</target-gtk-version>
- </configuration>
- <import>
- <widget-library name="MonoDevelop.Ide, Version=2.4.0.0, Culture=neutral" />
- <widget-library name="glade-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
- <widget-library name="Mono.TextEditor, Version=1.0.0.0, Culture=neutral" />
- <widget-library name="../build/JavaBinding.dll" internal="true" />
- </import>
- <widget class="Gtk.Bin" id="JavaBinding.CodeGenerationPanelWidget" design-size="600 410">
- <property name="MemberName" />
- <property name="GeneratePublic">False</property>
- <child>
- <widget class="Gtk.VBox" id="vbox62">
- <property name="MemberName" />
- <property name="Spacing">12</property>
- <child>
- <widget class="Gtk.Label" id="label82">
- <property name="MemberName" />
- <property name="Xalign">0</property>
- <property name="LabelProp" translatable="yes">&lt;b&gt;Code Generation&lt;/b&gt;</property>
- <property name="UseMarkup">True</property>
- </widget>
- <packing>
- <property name="Position">0</property>
- <property name="AutoSize">False</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.HBox" id="hbox56">
- <property name="MemberName" />
- <child>
- <widget class="Gtk.Label" id="label81">
- <property name="MemberName" />
- <property name="WidthRequest">18</property>
- </widget>
- <packing>
- <property name="Position">0</property>
- <property name="AutoSize">False</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.VBox" id="vbox65">
- <property name="MemberName" />
- <property name="Spacing">6</property>
- <child>
- <widget class="Gtk.Table" id="table7">
- <property name="MemberName" />
- <property name="NRows">4</property>
- <property name="NColumns">2</property>
- <property name="RowSpacing">6</property>
- <property name="ColumnSpacing">6</property>
- <child>
- <widget class="Gtk.Entry" id="classPathEntry">
- <property name="MemberName" />
- <property name="IsEditable">True</property>
- <property name="InvisibleChar">●</property>
- </widget>
- <packing>
- <property name="TopAttach">3</property>
- <property name="BottomAttach">4</property>
- <property name="LeftAttach">1</property>
- <property name="RightAttach">2</property>
- <property name="AutoSize">False</property>
- <property name="YOptions">0</property>
- <property name="XExpand">True</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">False</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.HBox" id="hbox61">
- <property name="MemberName" />
- <child>
- <widget class="Gtk.ComboBox" id="compileTargetCombo">
- <property name="MemberName" />
- <property name="IsTextCombo">False</property>
- <property name="Items" translatable="yes" />
- </widget>
- <packing>
- <property name="Position">0</property>
- <property name="AutoSize">False</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="LeftAttach">1</property>
- <property name="RightAttach">2</property>
- <property name="AutoSize">False</property>
- <property name="XOptions">Fill</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">False</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Label" id="label86">
- <property name="MemberName" />
- <property name="Xalign">0</property>
- <property name="LabelProp" translatable="yes">Compile _Target:</property>
- <property name="UseUnderline">True</property>
- </widget>
- <packing>
- <property name="AutoSize">False</property>
- <property name="XOptions">Fill</property>
- <property name="YOptions">0</property>
- <property name="XExpand">False</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">False</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Label" id="label87">
- <property name="MemberName" />
- <property name="Xalign">0</property>
- <property name="LabelProp" translatable="yes">Define S_ymbols:</property>
- <property name="UseUnderline">True</property>
- <property name="MnemonicWidget">symbolsEntry</property>
- </widget>
- <packing>
- <property name="TopAttach">1</property>
- <property name="BottomAttach">2</property>
- <property name="AutoSize">False</property>
- <property name="XOptions">Fill</property>
- <property name="YOptions">0</property>
- <property name="XExpand">False</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">False</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Label" id="label88">
- <property name="MemberName" />
- <property name="Xalign">0</property>
- <property name="LabelProp" translatable="yes">_Main Class:</property>
- <property name="UseUnderline">True</property>
- <property name="MnemonicWidget">mainClassEntry</property>
- </widget>
- <packing>
- <property name="TopAttach">2</property>
- <property name="BottomAttach">3</property>
- <property name="AutoSize">False</property>
- <property name="XOptions">Fill</property>
- <property name="YOptions">0</property>
- <property name="XExpand">False</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">False</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Label" id="label91">
- <property name="MemberName" />
- <property name="Xalign">0</property>
- <property name="LabelProp" translatable="yes">Classpath:</property>
- <property name="UseUnderline">True</property>
- <property name="MnemonicWidget">classPathEntry</property>
- </widget>
- <packing>
- <property name="TopAttach">3</property>
- <property name="BottomAttach">4</property>
- <property name="AutoSize">False</property>
- <property name="XOptions">Fill</property>
- <property name="YOptions">0</property>
- <property name="XExpand">False</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">False</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Entry" id="mainClassEntry">
- <property name="MemberName" />
- <property name="IsEditable">True</property>
- <property name="InvisibleChar">●</property>
- </widget>
- <packing>
- <property name="TopAttach">2</property>
- <property name="BottomAttach">3</property>
- <property name="LeftAttach">1</property>
- <property name="RightAttach">2</property>
- <property name="AutoSize">False</property>
- <property name="YOptions">0</property>
- <property name="XExpand">True</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">False</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Entry" id="symbolsEntry">
- <property name="MemberName" />
- <property name="IsEditable">True</property>
- <property name="InvisibleChar">●</property>
- </widget>
- <packing>
- <property name="TopAttach">1</property>
- <property name="BottomAttach">2</property>
- <property name="LeftAttach">1</property>
- <property name="RightAttach">2</property>
- <property name="AutoSize">False</property>
- <property name="YOptions">0</property>
- <property name="XExpand">True</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">False</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="Position">0</property>
- <property name="AutoSize">False</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="Position">1</property>
- <property name="AutoSize">False</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="Position">1</property>
- <property name="AutoSize">False</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Label" id="label92">
- <property name="MemberName" />
- <property name="Xalign">0</property>
- <property name="LabelProp" translatable="yes">&lt;b&gt;Compiler&lt;/b&gt;</property>
- <property name="UseMarkup">True</property>
- </widget>
- <packing>
- <property name="Position">2</property>
- <property name="AutoSize">False</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.HBox" id="hbox57">
- <property name="MemberName" />
- <child>
- <widget class="Gtk.Label" id="label93">
- <property name="MemberName" />
- <property name="WidthRequest">18</property>
- </widget>
- <packing>
- <property name="Position">0</property>
- <property name="AutoSize">False</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.VBox" id="vbox66">
- <property name="MemberName" />
- <child>
- <widget class="Gtk.HBox" id="hbox58">
- <property name="MemberName" />
- <property name="Spacing">18</property>
- <child>
- <widget class="Gtk.RadioButton" id="compilerGcjButton">
- <property name="MemberName" />
- <property name="Label" translatable="yes">gcj</property>
- <property name="Active">True</property>
- <property name="DrawIndicator">True</property>
- <property name="HasLabel">True</property>
- <property name="UseUnderline">True</property>
- <property name="Group">compilerGcjButton</property>
- </widget>
- <packing>
- <property name="Position">0</property>
- <property name="AutoSize">False</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.RadioButton" id="compilerJavacButton">
- <property name="MemberName" />
- <property name="Label" translatable="yes">javac</property>
- <property name="DrawIndicator">True</property>
- <property name="HasLabel">True</property>
- <property name="UseUnderline">True</property>
- <property name="Group">compilerGcjButton</property>
- </widget>
- <packing>
- <property name="Position">1</property>
- <property name="AutoSize">False</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="Position">0</property>
- <property name="AutoSize">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Entry" id="compilerEntry">
- <property name="MemberName" />
- <property name="IsEditable">True</property>
- <property name="InvisibleChar">●</property>
- </widget>
- <packing>
- <property name="Position">1</property>
- <property name="AutoSize">False</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="Position">1</property>
- <property name="AutoSize">False</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="Position">3</property>
- <property name="AutoSize">False</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.HBox" id="hbox60">
- <property name="MemberName" />
- <child>
- <widget class="Gtk.VBox" id="vbox68">
- <property name="MemberName" />
- <property name="Spacing">6</property>
- <child>
- <widget class="Gtk.Label" id="label90">
- <property name="MemberName" />
- <property name="Xalign">0</property>
- <property name="LabelProp" translatable="yes">&lt;b&gt;Options&lt;/b&gt;</property>
- <property name="UseMarkup">True</property>
- <property name="UseUnderline">True</property>
- </widget>
- <packing>
- <property name="Position">0</property>
- <property name="AutoSize">False</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.HBox" id="hbox47">
- <property name="MemberName" />
- <child>
- <widget class="Gtk.Label" id="label72">
- <property name="MemberName" />
- <property name="WidthRequest">18</property>
- </widget>
- <packing>
- <property name="Position">0</property>
- <property name="AutoSize">False</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.VBox" id="vbox64">
- <property name="MemberName" />
- <property name="Spacing">6</property>
- <child>
- <widget class="Gtk.CheckButton" id="enableOptimizationCheckButton">
- <property name="MemberName" />
- <property name="Label" translatable="yes">Enable _optimizations</property>
- <property name="DrawIndicator">True</property>
- <property name="HasLabel">True</property>
- <property name="UseUnderline">True</property>
- </widget>
- <packing>
- <property name="Position">0</property>
- <property name="AutoSize">False</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.CheckButton" id="generateDebugInformationCheckButton">
- <property name="MemberName" />
- <property name="Label" translatable="yes">Emit _debugging information</property>
- <property name="DrawIndicator">True</property>
- <property name="HasLabel">True</property>
- <property name="UseUnderline">True</property>
- </widget>
- <packing>
- <property name="Position">1</property>
- <property name="AutoSize">False</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="Position">1</property>
- <property name="AutoSize">False</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="Position">1</property>
- <property name="AutoSize">False</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="Position">0</property>
- <property name="AutoSize">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.VBox" id="vbox69">
- <property name="MemberName" />
- <property name="Spacing">6</property>
- <child>
- <widget class="Gtk.Label" id="label94">
- <property name="MemberName" />
- <property name="Xalign">0</property>
- <property name="LabelProp" translatable="yes">&lt;b&gt;Warnings&lt;/b&gt;</property>
- <property name="UseMarkup">True</property>
- <property name="UseUnderline">True</property>
- </widget>
- <packing>
- <property name="Position">0</property>
- <property name="AutoSize">False</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.HBox" id="hbox59">
- <property name="MemberName" />
- <child>
- <widget class="Gtk.Label" id="label95">
- <property name="MemberName" />
- <property name="WidthRequest">18</property>
- </widget>
- <packing>
- <property name="Position">0</property>
- <property name="AutoSize">False</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.VBox" id="vbox67">
- <property name="MemberName" />
- <property name="Spacing">6</property>
- <child>
- <widget class="Gtk.CheckButton" id="generateWarningsCheckButton">
- <property name="MemberName" />
- <property name="Label" translatable="yes">Generate warnings</property>
- <property name="DrawIndicator">True</property>
- <property name="HasLabel">True</property>
- <property name="UseUnderline">True</property>
- </widget>
- <packing>
- <property name="Position">0</property>
- <property name="AutoSize">False</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.CheckButton" id="deprecationCheckButton">
- <property name="MemberName" />
- <property name="Label" translatable="yes">Enable deprecation warnings</property>
- <property name="DrawIndicator">True</property>
- <property name="HasLabel">True</property>
- <property name="UseUnderline">True</property>
- </widget>
- <packing>
- <property name="Position">1</property>
- <property name="AutoSize">False</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.CheckButton" id="warningsAsErrorsCheckButton">
- <property name="MemberName" />
- <property name="Label" translatable="yes">Treat warnings as _errors</property>
- <property name="DrawIndicator">True</property>
- <property name="HasLabel">True</property>
- <property name="UseUnderline">True</property>
- </widget>
- <packing>
- <property name="Position">2</property>
- <property name="AutoSize">False</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="Position">1</property>
- <property name="AutoSize">False</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="Position">1</property>
- <property name="AutoSize">False</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="Position">1</property>
- <property name="AutoSize">False</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="Position">4</property>
- <property name="AutoSize">False</property>
- </packing>
- </child>
- </widget>
- </child>
- </widget>
- <widget class="Gtk.Bin" id="JavaBinding.GlobalOptionsPanelWidget" design-size="349 182">
- <property name="MemberName" />
- <property name="GeneratePublic">False</property>
- <child>
- <widget class="Gtk.VBox" id="vbox70">
- <property name="MemberName" />
- <property name="Spacing">12</property>
- <child>
- <widget class="Gtk.Label" id="label96">
- <property name="MemberName" />
- <property name="Xalign">0</property>
- <property name="LabelProp" translatable="yes">&lt;b&gt;Compiler&lt;/b&gt;</property>
- <property name="UseMarkup">True</property>
- </widget>
- <packing>
- <property name="Position">0</property>
- <property name="AutoSize">False</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.HBox" id="hbox63">
- <property name="MemberName" />
- <child>
- <widget class="Gtk.Label" id="label100">
- <property name="MemberName" />
- <property name="WidthRequest">18</property>
- <property name="LabelProp" translatable="yes" />
- </widget>
- <packing>
- <property name="Position">0</property>
- <property name="AutoSize">False</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Table" id="table9">
- <property name="MemberName" />
- <property name="NRows">3</property>
- <property name="NColumns">2</property>
- <property name="RowSpacing">6</property>
- <property name="ColumnSpacing">6</property>
- <child>
- <widget class="Gtk.Entry" id="compilerPathEntry">
- <property name="MemberName" />
- <property name="IsEditable">True</property>
- <property name="InvisibleChar">●</property>
- </widget>
- <packing>
- <property name="TopAttach">2</property>
- <property name="BottomAttach">3</property>
- <property name="LeftAttach">1</property>
- <property name="RightAttach">2</property>
- <property name="AutoSize">False</property>
- <property name="YOptions">0</property>
- <property name="XExpand">True</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">False</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.HBox" id="hbox64">
- <property name="MemberName" />
- <child>
- <widget class="Gtk.ComboBox" id="compilerCombo">
- <property name="MemberName" />
- <property name="IsTextCombo">False</property>
- <property name="Items" translatable="yes" />
- </widget>
- <packing>
- <property name="Position">0</property>
- <property name="AutoSize">False</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="TopAttach">1</property>
- <property name="BottomAttach">2</property>
- <property name="LeftAttach">1</property>
- <property name="RightAttach">2</property>
- <property name="AutoSize">False</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">True</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="MonoDevelop.Components.FolderEntry" id="ikvmPathEntry">
- <property name="MemberName" />
- </widget>
- <packing>
- <property name="LeftAttach">1</property>
- <property name="RightAttach">2</property>
- <property name="AutoSize">True</property>
- <property name="XOptions">Fill</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">False</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Label" id="label101">
- <property name="MemberName" />
- <property name="Xalign">0</property>
- <property name="LabelProp" translatable="yes">Compiler command:</property>
- </widget>
- <packing>
- <property name="TopAttach">2</property>
- <property name="BottomAttach">3</property>
- <property name="AutoSize">False</property>
- <property name="XOptions">Fill</property>
- <property name="YOptions">0</property>
- <property name="XExpand">False</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">False</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Label" id="label98">
- <property name="MemberName" />
- <property name="Xalign">0</property>
- <property name="LabelProp" translatable="yes">IKVM path:</property>
- </widget>
- <packing>
- <property name="AutoSize">False</property>
- <property name="XOptions">Fill</property>
- <property name="YOptions">0</property>
- <property name="XExpand">False</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">False</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Label" id="label99">
- <property name="MemberName" />
- <property name="Xalign">0</property>
- <property name="LabelProp" translatable="yes">Java compiler:</property>
- </widget>
- <packing>
- <property name="TopAttach">1</property>
- <property name="BottomAttach">2</property>
- <property name="AutoSize">False</property>
- <property name="XOptions">Fill</property>
- <property name="YOptions">0</property>
- <property name="XExpand">False</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">False</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="Position">1</property>
- <property name="AutoSize">False</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="Position">1</property>
- <property name="AutoSize">False</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Label" id="label97">
- <property name="MemberName" />
- <property name="Xalign">0</property>
- <property name="LabelProp" translatable="yes">&lt;b&gt;Code Generation&lt;/b&gt;</property>
- <property name="UseMarkup">True</property>
- </widget>
- <packing>
- <property name="Position">2</property>
- <property name="AutoSize">False</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.HBox" id="hbox65">
- <property name="MemberName" />
- <child>
- <widget class="Gtk.Label" id="label102">
- <property name="MemberName" />
- <property name="WidthRequest">18</property>
- <property name="LabelProp" translatable="yes" />
- </widget>
- <packing>
- <property name="Position">0</property>
- <property name="AutoSize">False</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Table" id="table10">
- <property name="MemberName" />
- <property name="NRows">1</property>
- <property name="NColumns">2</property>
- <property name="RowSpacing">6</property>
- <property name="ColumnSpacing">6</property>
- <child>
- <widget class="Gtk.Entry" id="classpathEntry">
- <property name="MemberName" />
- <property name="IsEditable">True</property>
- <property name="InvisibleChar">●</property>
- </widget>
- <packing>
- <property name="LeftAttach">1</property>
- <property name="RightAttach">2</property>
- <property name="AutoSize">False</property>
- <property name="YOptions">0</property>
- <property name="XExpand">True</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">False</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Label" id="label103">
- <property name="MemberName" />
- <property name="Xalign">0</property>
- <property name="LabelProp" translatable="yes">Classpath:</property>
- </widget>
- <packing>
- <property name="AutoSize">False</property>
- <property name="XOptions">Fill</property>
- <property name="YOptions">0</property>
- <property name="XExpand">False</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">False</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="Position">1</property>
- <property name="AutoSize">False</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="Position">3</property>
- <property name="AutoSize">False</property>
- </packing>
- </child>
- </widget>
- </child>
- </widget>
-</stetic-interface> \ No newline at end of file
diff --git a/extras/JavaBinding/icons/Java.FileIcon b/extras/JavaBinding/icons/Java.FileIcon
deleted file mode 100644
index 04429be655..0000000000
--- a/extras/JavaBinding/icons/Java.FileIcon
+++ /dev/null
Binary files differ
diff --git a/extras/JavaBinding/icons/java-16.png b/extras/JavaBinding/icons/java-16.png
deleted file mode 100644
index 729a9b9f40..0000000000
--- a/extras/JavaBinding/icons/java-16.png
+++ /dev/null
Binary files differ
diff --git a/extras/JavaBinding/icons/java-22.png b/extras/JavaBinding/icons/java-22.png
deleted file mode 100644
index 7b13963f13..0000000000
--- a/extras/JavaBinding/icons/java-22.png
+++ /dev/null
Binary files differ
diff --git a/extras/JavaBinding/icons/java-icon-32.png b/extras/JavaBinding/icons/java-icon-32.png
deleted file mode 100644
index ce52b9db82..0000000000
--- a/extras/JavaBinding/icons/java-icon-32.png
+++ /dev/null
Binary files differ
diff --git a/extras/JavaBinding/md1format.xml b/extras/JavaBinding/md1format.xml
deleted file mode 100644
index 2b8a2c18ca..0000000000
--- a/extras/JavaBinding/md1format.xml
+++ /dev/null
@@ -1,12 +0,0 @@
-<SerializationMap>
- <DataItem class = "JavaBinding.JavaCompilerParameters">
- <ItemProperty member="deprecation"/>
- <ItemProperty member="optimize"/>
- <ItemProperty member="mainclass" />
- <ItemProperty member="definesymbols" />
- <ItemProperty member="classpath" />
- <ItemProperty member="compiler" />
- <ItemProperty member="compilerpath" />
- <ItemProperty member="genwarnings" />
- </DataItem>
-</SerializationMap> \ No newline at end of file
diff --git a/extras/JavaBinding/monodevelop-java.pc.in b/extras/JavaBinding/monodevelop-java.pc.in
deleted file mode 100644
index 430d579ab4..0000000000
--- a/extras/JavaBinding/monodevelop-java.pc.in
+++ /dev/null
@@ -1,8 +0,0 @@
-Name: JavaBinding
-Description: JavaBinding
-Version: 0.1
-
-libdir=@prefix@/lib/monodevelop
-
-Requires:
-Libs: -r:${libdir}/AddIns/JavaBinding.dll
diff --git a/extras/JavaBinding/monodevelop-java.spec.in b/extras/JavaBinding/monodevelop-java.spec.in
deleted file mode 100644
index 0cfe63390f..0000000000
--- a/extras/JavaBinding/monodevelop-java.spec.in
+++ /dev/null
@@ -1,65 +0,0 @@
-#
-# spec file for package monodevelop-java
-#
-# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
-#
-# All modifications and additions to the file contributed by third parties
-# remain the property of their copyright owners, unless otherwise agreed
-# upon. The license for this file, and modifications and additions to the
-# file, is the same license as for the pristine package itself (unless the
-# license for the pristine package is not an Open Source License, in which
-# case the license is the MIT License). An "Open Source License" is a
-# license that conforms to the Open Source Definition (Version 1.9)
-# published by the Open Source Initiative.
-
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
-#
-
-
-
-Name: monodevelop-java
-Version: @VERSION@
-Release: 6
-License: GPLv2+
-BuildRoot: %{_tmppath}/%{name}-%{version}-build
-AutoReqProv: on
-BuildArch: noarch
-Url: http://www.monodevelop.com
-Source0: %{name}-%{version}.tar.bz2
-BuildRequires: ikvm mono-devel monodevelop >= %{version}
-Requires: ikvm
-Requires: java-sdk
-Summary: Monodevelop Java Addin
-Group: Development/Languages/Mono
-
-%description
-Java language integration with MonoDevelop based on ikvm.
-
-%files -f %{name}.lang
-%defattr(-, root, root)
-%{_datadir}/pkgconfig/monodevelop-java.pc
-%{_prefix}/lib/monodevelop/AddIns/JavaBinding/JavaBinding.dll*
-%dir %{_prefix}/lib/monodevelop/AddIns/JavaBinding
-%dir %{_prefix}/lib/monodevelop/AddIns/JavaBinding/locale
-%dir %{_prefix}/lib/monodevelop/AddIns/JavaBinding/locale/*
-%dir %{_prefix}/lib/monodevelop/AddIns/JavaBinding/locale/*/*
-
-%prep
-%setup -q
-
-%build
-%{?env_options}
-./configure --prefix=%{_prefix}
-make
-
-%install
-%{?env_options}
-make install DESTDIR=%{buildroot}
-mkdir -p %{buildroot}%{_datadir}/pkgconfig
-mv %{buildroot}%{_prefix}/lib/pkgconfig/*.pc %{buildroot}%{_datadir}/pkgconfig
-%find_lang %{name}
-
-%clean
-rm -rf %{buildroot}
-
-%changelog
diff --git a/extras/JavaBinding/po/ChangeLog b/extras/JavaBinding/po/ChangeLog
deleted file mode 100644
index 58aeb5909d..0000000000
--- a/extras/JavaBinding/po/ChangeLog
+++ /dev/null
@@ -1,40 +0,0 @@
-2009-03-19 Michael Hutchinson <mhutchinson@novell.com>
-
- * fr.po: Updated translation from Vincent Daron.
-
-2009-03-04 Michael Hutchinson <mhutchinson@novell.com>
-
- * da.po:
- * tr.po:
- * ca.po:
- * it.po:
- * pt.po:
- * ja.po:
- * id.po:
- * sv.po:
- * ru.po:
- * de.po:
- * fr.po:
- * es.po:
- * gl.po:
- * cs.po:
- * hu.po:
- * pl.po:
- * nl.po:
- * zh_CN.po:
- * zh_TW.po:
- * sl_SI.po:
- * pt_BR.po:
- * messages.po: Updated for string freeze.
-
- * po.mdproj: Updated format.
-
-2009-02-26 Michael Hutchinson <mhutchinson@novell.com>
-
- * po.mdproj: Fix translation projects' GUIDs.
-
-2009/02/06 Lluis Sanchez Gual <lluis@novell.com>
-
- * po.mdse:
- * po.mdproj: Migrated to MSBuild file format.
-
diff --git a/extras/JavaBinding/po/Makefile b/extras/JavaBinding/po/Makefile
deleted file mode 100644
index ca133be250..0000000000
--- a/extras/JavaBinding/po/Makefile
+++ /dev/null
@@ -1,67 +0,0 @@
-
-# Warning: This is an automatically generated file, do not edit!
-
-srcdir=.
-top_srcdir=../
-
-include $(top_srcdir)/Makefile.include
-include $(top_srcdir)/config.make
-
-MDTOOL = $(LOCAL_PKGCONFIG) mono `$(LOCAL_PKGCONFIG) pkg-config --variable=libdir monodevelop`/bin/mdtool.exe
-BUILD_DIR = ../build/locale
-INSTALL_DIR = $(DESTDIR)$(prefix)/lib/monodevelop/AddIns/JavaBinding/locale
-
-FILES = \
- ca.po\
- cs.po\
- da.po\
- de.po\
- es.po\
- fr.po\
- gl.po\
- hu.po\
- id.po\
- it.po\
- ja.po\
- nl.po\
- pl.po\
- pt.po\
- pt_BR.po\
- ru.po\
- sl_SI.po\
- sv.po\
- tr.po\
- zh_CN.po\
- zh_TW.po
-
-GMO_FILES = $(patsubst %.po,$(BUILD_DIR)/%/LC_MESSAGES/$(PACKAGE).mo,$(FILES))
-MO_FILES = $(foreach po,$(FILES), $(INSTALL_DIR)/$(basename $(po))/LC_MESSAGES/$(PACKAGE).mo)
-
-all: $(GMO_FILES)
-
-update-po:
- cd $(top_srcdir) && $(MDTOOL) gettext-update
-
-statistics:
- @for LANGFILE in $(FILES); do \
- echo "$$LANGFILE:"; \
- msgfmt -o /dev/null --verbose "$$LANGFILE"; \
- done
-
-$(GMO_FILES): $(BUILD_DIR)/%/LC_MESSAGES/$(PACKAGE).mo: %.po
- mkdir -p $(dir $@)
- msgfmt '$<' -o '$@'
-
-$(MO_FILES): $(INSTALL_DIR)/%/LC_MESSAGES/$(PACKAGE).mo : $(BUILD_DIR)/%/LC_MESSAGES/$(PACKAGE).mo
- mkdir -p $(dir $@)
- cp '$<' '$@'
-
-install-local: $(MO_FILES)
-
-CLEANFILES = $(GMO_FILES)
-EXTRA_DIST = Makefile $(FILES)
-install: install-local
-uninstall: uninstall-local
-clean: clean-local
-
-include $(top_srcdir)/rules.make
diff --git a/extras/JavaBinding/po/ca.po b/extras/JavaBinding/po/ca.po
deleted file mode 100644
index eb7a6475b4..0000000000
--- a/extras/JavaBinding/po/ca.po
+++ /dev/null
@@ -1,289 +0,0 @@
-# Translation of monodevelop.po into Catalan
-# Copyright (C) 2006 The Mono Project
-# This file is distributed under the same license as the MonoDevelop package.
-# Jonathan Hernández Velasco <jbilbo@gmail.com>, 2006.
-# Jordi Mas i Hernàndez, <jmas@softcatala.org>, 2006, 2007
-#
-# Traduïm namespace per "espai de nom" (veure TERMCAT) i assembly per "assemblat"
-#
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: MonoDevelop rev62170\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2009-03-04 18:11:10-0500\n"
-"PO-Revision-Date: 2006-08-31 02:13+0200\n"
-"Last-Translator: Jonathan Hernández Velasco <jbilbo@gmail.com>\n"
-"Language-Team: Catalan <ca@dodds.net>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=2; plural=(n != 1);\n"
-
-#: ../templates/EmptyJavaFile.xft.xml:4
-msgid "Empty File"
-msgstr "Fitxer buit"
-
-#: ../templates/EmptyJavaFile.xft.xml:6
-msgid "General"
-msgstr ""
-
-#: ../templates/EmptyJavaFile.xft.xml:8
-msgid "Creates an empty Java file."
-msgstr "Crea un fitxer Java buit."
-
-#: ../templates/EmptyJavaProject.xpt.xml:7
-msgid "Empty Project"
-msgstr "Projecte buit"
-
-#
-#: ../templates/EmptyJavaProject.xpt.xml:8
-#: ../templates/IkvmConsoleApplicationProject.xpt.xml:8
-#: ../templates/IkvmGladeApplicationProject.xpt.xml:8
-#: ../templates/IkvmGnomeApplicationProject.xpt.xml:8
-#: ../templates/IkvmGtkApplicationProject.xpt.xml:8
-#: ../templates/IkvmLibraryProject.xpt.xml:8
-#: ../templates/JavaApplicationProject.xpt.xml:8
-#: ../templates/JavaConsoleApplicationProject.xpt.xml:8
-#: ../JavaBinding.addin.xml:64
-msgid "Java"
-msgstr "Java"
-
-#: ../templates/EmptyJavaProject.xpt.xml:11
-msgid "Creates an empty Java solution."
-msgstr "Crea una solució Java buida."
-
-#: ../templates/IkvmConsoleApplicationProject.xpt.xml:7
-msgid "IKVM Console Project"
-msgstr "Projecte IKVM de consola"
-
-#: ../templates/IkvmConsoleApplicationProject.xpt.xml:11
-msgid "Create a console Java project with IKVM"
-msgstr "Crea un projecte Java de consola amb IKVM"
-
-#: ../templates/IkvmGladeApplicationProject.xpt.xml:7
-msgid "IKVM Glade# Project"
-msgstr "Projecte Glade# IKVM"
-
-#: ../templates/IkvmGladeApplicationProject.xpt.xml:11
-msgid "Create a Glade# Java project with IKVM"
-msgstr "Crea un projecte Java Glade# amb IKVM"
-
-#: ../templates/IkvmGnomeApplicationProject.xpt.xml:7
-msgid "IKVM Gnome# Project"
-msgstr "Projecte Gnome# IKVM"
-
-#: ../templates/IkvmGnomeApplicationProject.xpt.xml:11
-msgid "Create a Gnome# Java project with IKVM"
-msgstr "Crea un projecte Java Gnome# amb IKVM"
-
-#: ../templates/IkvmGtkApplicationProject.xpt.xml:7
-msgid "IKVM Gtk# Project"
-msgstr "Projecte Gtk# IKVM"
-
-#: ../templates/IkvmGtkApplicationProject.xpt.xml:11
-msgid "Create a Gtk# Java project with IKVM"
-msgstr "Crea un projecte Java Gtk# amb IKVM"
-
-#
-#: ../templates/IkvmLibraryProject.xpt.xml:7
-msgid "IKVM Library"
-msgstr "Biblioteca IKVM"
-
-#
-#: ../templates/IkvmLibraryProject.xpt.xml:11
-msgid "Create a Java library with IKVM"
-msgstr "Crea una biblioteca Java amb IKVM"
-
-#: ../templates/JavaApplet.xft.xml:4
-msgid "AWT Applet"
-msgstr "Miniaplicació AWT"
-
-#: ../templates/JavaApplet.xft.xml:6 ../templates/JavaApplication.xft.xml:6
-#: ../templates/JavaDialog.xft.xml:6 ../templates/JavaFrame.xft.xml:6
-#: ../templates/JavaOKDialog.xft.xml:6 ../templates/JavaPanel.xft.xml:6
-msgid "AWT"
-msgstr ""
-
-#: ../templates/JavaApplet.xft.xml:8
-msgid "Creates a Java AWT Applet"
-msgstr "Crea una miniaplicació Java AWT"
-
-#: ../templates/JavaApplicationProject.xpt.xml:7
-msgid "AWT Project"
-msgstr "Projecte AWT"
-
-#: ../templates/JavaApplicationProject.xpt.xml:11
-msgid "Creates a Java AWT project."
-msgstr "Crea un projecte Java AWT."
-
-#: ../templates/JavaApplication.xft.xml:4
-#, fuzzy
-msgid "AWT Application"
-msgstr "Miniaplicació AWT"
-
-#: ../templates/JavaApplication.xft.xml:8
-msgid "Creates a Java AWT application."
-msgstr "Crea una aplicació Java AWT."
-
-#: ../templates/JavaConsoleApplicationProject.xpt.xml:7
-msgid "Console Project"
-msgstr "Projecte de consola"
-
-#: ../templates/JavaConsoleApplicationProject.xpt.xml:11
-msgid "Create a console Java project"
-msgstr "Crea un projecte Java de consola"
-
-#: ../templates/JavaDialog.xft.xml:4
-msgid "Java AWT Dialog"
-msgstr "Diàleg Java AWT"
-
-#: ../templates/JavaDialog.xft.xml:8
-msgid "Creates an AWT dialog."
-msgstr "Crea un diàleg AWT."
-
-#: ../templates/JavaFrame.xft.xml:4
-msgid "AWT Frame"
-msgstr "Frame AWT"
-
-#: ../templates/JavaFrame.xft.xml:8
-msgid "Creates a Java AWT Frame"
-msgstr "Crea un Frame Java AWT"
-
-#: ../templates/JavaOKDialog.xft.xml:4
-msgid "AWT OK Dialog"
-msgstr "Diàleg OK d'AWT"
-
-#: ../templates/JavaOKDialog.xft.xml:8
-msgid "Creates a Java AWT OK Dialog."
-msgstr "Crea un diàleg OK de Java AWT"
-
-#: ../templates/JavaPanel.xft.xml:4
-msgid "AWT Panel"
-msgstr "Quadre AWT"
-
-#: ../templates/JavaPanel.xft.xml:8
-msgid "Creates a Java AWT panel."
-msgstr "Crea un quadre Java AWT"
-
-#
-#: ../JavaBinding.addin.xml:27
-msgid "Java Files"
-msgstr "Fitxers Java"
-
-#: ../JavaBinding.addin.xml:55
-msgid "Code Generation"
-msgstr "Generació de codi"
-
-#: ../JavaBinding.addin.xml:58
-msgid "Output"
-msgstr "Sortida"
-
-#: ../JavaBinding.addin.xml:76
-msgid "Java source code"
-msgstr ""
-
-#: ../Gui/ProjectConfigurationPropertyPanel.cs:61
-msgid "Executable"
-msgstr "Executable"
-
-#: ../Gui/ProjectConfigurationPropertyPanel.cs:62
-msgid "Library"
-msgstr "Biblioteca"
-
-#: ../Gui/GlobalOptionsPanel.cs:34
-msgid "Javac"
-msgstr "Javac"
-
-#: ../Gui/GlobalOptionsPanel.cs:35
-msgid "Gcj"
-msgstr "Gcj"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:106
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:170
-#, fuzzy
-msgid "<b>Code Generation</b>"
-msgstr "Generació de codi"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:167
-msgid "Compile _Target:"
-msgstr "Compila l'_objectiu:"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:177
-msgid "Define S_ymbols:"
-msgstr "Defineix els s_ímbols:"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:189
-msgid "_Main Class:"
-msgstr "Classe _principal:"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:201
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:208
-msgid "Classpath:"
-msgstr "Classpath:"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:248
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:64
-msgid "<b>Compiler</b>"
-msgstr "<b>Compilador</b>"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:275
-msgid "gcj"
-msgstr "gcj"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:287
-#, fuzzy
-msgid "javac"
-msgstr "javac"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:329
-msgid "<b>Options</b>"
-msgstr "<b>Opcions</b>"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:356
-msgid "Enable _optimizations"
-msgstr "Activa les _optimizacions"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:367
-msgid "Emit _debugging information"
-msgstr "Emet informació _de depuració"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:392
-msgid "<b>Warnings</b>"
-msgstr "<b>Advertiments</b>"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:419
-msgid "Generate warnings"
-msgstr "Genera advertiments"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:430
-msgid "Enable deprecation warnings"
-msgstr "Activa advertiments d'obsolescència"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:441
-msgid "Treat warnings as _errors"
-msgstr "Tracta advertiments com _errors"
-
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:131
-msgid "Compiler command:"
-msgstr "Ordre del compilador:"
-
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:142
-msgid "IKVM path:"
-msgstr "Camí de l'IKVM:"
-
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:151
-msgid "Java compiler:"
-msgstr "Compilador Java:"
-
-#: ../IKVMCompilerManager.cs:132
-msgid "Generating {0} reference stub ..."
-msgstr ""
-
-#: ../IKVMCompilerManager.cs:163
-msgid "Generating assembly ..."
-msgstr ""
-
-#: ../IKVMCompilerManager.cs:209
-msgid "Compiling Java source code ..."
-msgstr ""
diff --git a/extras/JavaBinding/po/cs.po b/extras/JavaBinding/po/cs.po
deleted file mode 100644
index b683771793..0000000000
--- a/extras/JavaBinding/po/cs.po
+++ /dev/null
@@ -1,282 +0,0 @@
-# Czech translation of MonoDevelop.
-# Copyright (C) 2005 THE MonoDevelop'S COPYRIGHT HOLDER
-# This file is distributed under the same license as the MonoDevelop package.
-# David Makovský (Yakeen) <yakeen@sannyas-on.net>, 2005.
-#
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: MonoDevelop Java Addin\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2009-03-04 18:11:10-0500\n"
-"PO-Revision-Date: 2008-01-24 00:08+0100\n"
-"Last-Translator: David Makovský (Yakeen) <yakeen@sannyas-on.net>\n"
-"Language-Team: Czech <cs@li.org>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n"
-"X-Poedit-Language: Czech\n"
-"X-Poedit-Country: CZECH REPUBLIC\n"
-
-#: ../templates/EmptyJavaFile.xft.xml:4
-msgid "Empty File"
-msgstr "Prázdný soubor"
-
-#: ../templates/EmptyJavaFile.xft.xml:6
-msgid "General"
-msgstr "Obecný"
-
-#: ../templates/EmptyJavaFile.xft.xml:8
-msgid "Creates an empty Java file."
-msgstr "Vytvoří prázdný Java soubor."
-
-#: ../templates/EmptyJavaProject.xpt.xml:7
-msgid "Empty Project"
-msgstr "Prázdný projekt"
-
-#: ../templates/EmptyJavaProject.xpt.xml:8
-#: ../templates/IkvmConsoleApplicationProject.xpt.xml:8
-#: ../templates/IkvmGladeApplicationProject.xpt.xml:8
-#: ../templates/IkvmGnomeApplicationProject.xpt.xml:8
-#: ../templates/IkvmGtkApplicationProject.xpt.xml:8
-#: ../templates/IkvmLibraryProject.xpt.xml:8
-#: ../templates/JavaApplicationProject.xpt.xml:8
-#: ../templates/JavaConsoleApplicationProject.xpt.xml:8
-#: ../JavaBinding.addin.xml:64
-msgid "Java"
-msgstr "Java"
-
-#: ../templates/EmptyJavaProject.xpt.xml:11
-msgid "Creates an empty Java solution."
-msgstr "Vytvoří prázdný projekt IKVM Java."
-
-#: ../templates/IkvmConsoleApplicationProject.xpt.xml:7
-msgid "IKVM Console Project"
-msgstr "IKVM projekt pro konzoli"
-
-#: ../templates/IkvmConsoleApplicationProject.xpt.xml:11
-msgid "Create a console Java project with IKVM"
-msgstr "Vytvoří Java IKVM projekt pro konzoli."
-
-#: ../templates/IkvmGladeApplicationProject.xpt.xml:7
-msgid "IKVM Glade# Project"
-msgstr "IKVM Glade# projekt"
-
-#: ../templates/IkvmGladeApplicationProject.xpt.xml:11
-msgid "Create a Glade# Java project with IKVM"
-msgstr "Vytvoří IKVM Glade# Java projekt."
-
-#: ../templates/IkvmGnomeApplicationProject.xpt.xml:7
-msgid "IKVM Gnome# Project"
-msgstr "IKVM Gnome# projekt"
-
-#: ../templates/IkvmGnomeApplicationProject.xpt.xml:11
-msgid "Create a Gnome# Java project with IKVM"
-msgstr "Vytvoří IKVM Gnome# Java projekt."
-
-#: ../templates/IkvmGtkApplicationProject.xpt.xml:7
-msgid "IKVM Gtk# Project"
-msgstr "IKVM Gtk# projekt"
-
-#: ../templates/IkvmGtkApplicationProject.xpt.xml:11
-msgid "Create a Gtk# Java project with IKVM"
-msgstr "Vytvoří IKVM Gtk# Java projekt."
-
-#: ../templates/IkvmLibraryProject.xpt.xml:7
-msgid "IKVM Library"
-msgstr "IKVM knihovna"
-
-#: ../templates/IkvmLibraryProject.xpt.xml:11
-msgid "Create a Java library with IKVM"
-msgstr "Vytvoří Java knihovnu s IKVM"
-
-#: ../templates/JavaApplet.xft.xml:4
-msgid "AWT Applet"
-msgstr "AWT aplet"
-
-#: ../templates/JavaApplet.xft.xml:6 ../templates/JavaApplication.xft.xml:6
-#: ../templates/JavaDialog.xft.xml:6 ../templates/JavaFrame.xft.xml:6
-#: ../templates/JavaOKDialog.xft.xml:6 ../templates/JavaPanel.xft.xml:6
-msgid "AWT"
-msgstr "AWT"
-
-#: ../templates/JavaApplet.xft.xml:8
-msgid "Creates a Java AWT Applet"
-msgstr "Vytvoří Java AWT aplet."
-
-#: ../templates/JavaApplicationProject.xpt.xml:7
-msgid "AWT Project"
-msgstr "AWT projekt"
-
-#: ../templates/JavaApplicationProject.xpt.xml:11
-msgid "Creates a Java AWT project."
-msgstr "Vytvoří Java AWT projekt."
-
-#: ../templates/JavaApplication.xft.xml:4
-msgid "AWT Application"
-msgstr "AWT Aplikace"
-
-#: ../templates/JavaApplication.xft.xml:8
-msgid "Creates a Java AWT application."
-msgstr "Vytvoří Java AWT aplikaci."
-
-#: ../templates/JavaConsoleApplicationProject.xpt.xml:7
-msgid "Console Project"
-msgstr "Projekt pro konzoli"
-
-#: ../templates/JavaConsoleApplicationProject.xpt.xml:11
-msgid "Create a console Java project"
-msgstr "Vytvoří Java projekt pro konzoli."
-
-#: ../templates/JavaDialog.xft.xml:4
-msgid "Java AWT Dialog"
-msgstr "Java AWT dialog"
-
-#: ../templates/JavaDialog.xft.xml:8
-msgid "Creates an AWT dialog."
-msgstr "Vytvoří AWT dialog."
-
-#: ../templates/JavaFrame.xft.xml:4
-msgid "AWT Frame"
-msgstr "AWT rámec"
-
-#: ../templates/JavaFrame.xft.xml:8
-msgid "Creates a Java AWT Frame"
-msgstr "Vytvoří Java AWT rámec."
-
-#: ../templates/JavaOKDialog.xft.xml:4
-msgid "AWT OK Dialog"
-msgstr "AWT OK dialog"
-
-#: ../templates/JavaOKDialog.xft.xml:8
-msgid "Creates a Java AWT OK Dialog."
-msgstr "Vytvoří Java AWT OK dialog."
-
-#: ../templates/JavaPanel.xft.xml:4
-msgid "AWT Panel"
-msgstr "AWT panel"
-
-#: ../templates/JavaPanel.xft.xml:8
-msgid "Creates a Java AWT panel."
-msgstr "Vytvoří Java AWT panel."
-
-#: ../JavaBinding.addin.xml:27
-msgid "Java Files"
-msgstr "Soubory Java"
-
-#: ../JavaBinding.addin.xml:55
-msgid "Code Generation"
-msgstr "Vytváření kódu"
-
-#: ../JavaBinding.addin.xml:58
-msgid "Output"
-msgstr "Výstup"
-
-#: ../JavaBinding.addin.xml:76
-#, fuzzy
-msgid "Java source code"
-msgstr "Kompiluji Java zdrojový kód..."
-
-#: ../Gui/ProjectConfigurationPropertyPanel.cs:61
-msgid "Executable"
-msgstr "Program"
-
-#: ../Gui/ProjectConfigurationPropertyPanel.cs:62
-msgid "Library"
-msgstr "Knihovna"
-
-#: ../Gui/GlobalOptionsPanel.cs:34
-msgid "Javac"
-msgstr "Javac (SUN)"
-
-#: ../Gui/GlobalOptionsPanel.cs:35
-msgid "Gcj"
-msgstr "Gcj (GNU)"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:106
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:170
-msgid "<b>Code Generation</b>"
-msgstr "<b>Vytváření kódu</b>"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:167
-msgid "Compile _Target:"
-msgstr "Cíl kompilace:"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:177
-msgid "Define S_ymbols:"
-msgstr "Definovat _symboly:"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:189
-msgid "_Main Class:"
-msgstr "_Hlavní třída:"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:201
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:208
-msgid "Classpath:"
-msgstr "Cesta ke knihovnám (-classpath):"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:248
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:64
-msgid "<b>Compiler</b>"
-msgstr "<b>Kompilátor</b>"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:275
-msgid "gcj"
-msgstr "Gcj (GNU)"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:287
-msgid "javac"
-msgstr "Javac (SUN)"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:329
-msgid "<b>Options</b>"
-msgstr "<b>Volby</b>"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:356
-msgid "Enable _optimizations"
-msgstr "_Optimalizovat kód"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:367
-msgid "Emit _debugging information"
-msgstr "Generování informací la_dění"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:392
-msgid "<b>Warnings</b>"
-msgstr "<b>Varování</b>"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:419
-msgid "Generate warnings"
-msgstr "Generovat varování"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:430
-msgid "Enable deprecation warnings"
-msgstr "Zapnout varování při používání nedoporučených volání"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:441
-msgid "Treat warnings as _errors"
-msgstr "Považovat varování _za chyby"
-
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:131
-msgid "Compiler command:"
-msgstr "Příkaz kompilátoru:"
-
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:142
-msgid "IKVM path:"
-msgstr "Cesta k IKVM:"
-
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:151
-msgid "Java compiler:"
-msgstr "Kompilátor Javy:"
-
-#: ../IKVMCompilerManager.cs:132
-msgid "Generating {0} reference stub ..."
-msgstr "Generuji {0} referenční stub..."
-
-#: ../IKVMCompilerManager.cs:163
-msgid "Generating assembly ..."
-msgstr "Generuji assembly..."
-
-#: ../IKVMCompilerManager.cs:209
-msgid "Compiling Java source code ..."
-msgstr "Kompiluji Java zdrojový kód..."
diff --git a/extras/JavaBinding/po/da.po b/extras/JavaBinding/po/da.po
deleted file mode 100644
index 9ab7234f07..0000000000
--- a/extras/JavaBinding/po/da.po
+++ /dev/null
@@ -1,290 +0,0 @@
-# Danish translation of MonoDevelop.
-# Copyright (C) 2004, 2005 Martin Willemoes Hansen
-# This file is distributed under the same license as the MonoDevelop package.
-# Martin Willemoes Hansen <mwh@sysrq.dk>, 2004 - 2005
-#
-# Husk at tilføje dig i credit-listen (besked id "translator-credits")
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: MonoDevelop\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2009-03-04 18:11:10-0500\n"
-"PO-Revision-Date: 2005-05-20 17:07+0200\n"
-"Last-Translator: Martin Willemoes Hansen <mwh@sysrq.dk>\n"
-"Language-Team: Martin Willemoes Hansen <mwh@sysrq.dk>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=2; plural=n != 1;\n"
-
-#: ../templates/EmptyJavaFile.xft.xml:4
-msgid "Empty File"
-msgstr "Tom fil"
-
-#: ../templates/EmptyJavaFile.xft.xml:6
-msgid "General"
-msgstr ""
-
-#: ../templates/EmptyJavaFile.xft.xml:8
-msgid "Creates an empty Java file."
-msgstr "Opretter en tom Java-fil."
-
-#: ../templates/EmptyJavaProject.xpt.xml:7
-msgid "Empty Project"
-msgstr "Tomt projekt"
-
-#: ../templates/EmptyJavaProject.xpt.xml:8
-#: ../templates/IkvmConsoleApplicationProject.xpt.xml:8
-#: ../templates/IkvmGladeApplicationProject.xpt.xml:8
-#: ../templates/IkvmGnomeApplicationProject.xpt.xml:8
-#: ../templates/IkvmGtkApplicationProject.xpt.xml:8
-#: ../templates/IkvmLibraryProject.xpt.xml:8
-#: ../templates/JavaApplicationProject.xpt.xml:8
-#: ../templates/JavaConsoleApplicationProject.xpt.xml:8
-#: ../JavaBinding.addin.xml:64
-#, fuzzy
-msgid "Java"
-msgstr "Javac"
-
-#: ../templates/EmptyJavaProject.xpt.xml:11
-msgid "Creates an empty Java solution."
-msgstr "Opretter en tom Java-løsning."
-
-#: ../templates/IkvmConsoleApplicationProject.xpt.xml:7
-msgid "IKVM Console Project"
-msgstr "IKVM/kommandolinje-projekt"
-
-#: ../templates/IkvmConsoleApplicationProject.xpt.xml:11
-msgid "Create a console Java project with IKVM"
-msgstr "Opret et Java/kommandolinje-projekt med IKVM"
-
-#: ../templates/IkvmGladeApplicationProject.xpt.xml:7
-msgid "IKVM Glade# Project"
-msgstr "IKVM/Glade#-projekt"
-
-#: ../templates/IkvmGladeApplicationProject.xpt.xml:11
-msgid "Create a Glade# Java project with IKVM"
-msgstr "Opret et Java/Glade#-projekt med IKVM"
-
-#: ../templates/IkvmGnomeApplicationProject.xpt.xml:7
-msgid "IKVM Gnome# Project"
-msgstr "IKVM/Gnome#-projekt"
-
-#: ../templates/IkvmGnomeApplicationProject.xpt.xml:11
-msgid "Create a Gnome# Java project with IKVM"
-msgstr "Opret et nyt Java/Gnome#-projekt med IKVM"
-
-#: ../templates/IkvmGtkApplicationProject.xpt.xml:7
-msgid "IKVM Gtk# Project"
-msgstr "IKVM/Gtk#-projekt"
-
-#: ../templates/IkvmGtkApplicationProject.xpt.xml:11
-msgid "Create a Gtk# Java project with IKVM"
-msgstr "Opret et Java/Gtk#-projekt med IKVM"
-
-#: ../templates/IkvmLibraryProject.xpt.xml:7
-#, fuzzy
-msgid "IKVM Library"
-msgstr "Bibliotek"
-
-#: ../templates/IkvmLibraryProject.xpt.xml:11
-#, fuzzy
-msgid "Create a Java library with IKVM"
-msgstr "Opret et Java/Gtk#-projekt med IKVM"
-
-#: ../templates/JavaApplet.xft.xml:4
-msgid "AWT Applet"
-msgstr "AWT-applet"
-
-#: ../templates/JavaApplet.xft.xml:6 ../templates/JavaApplication.xft.xml:6
-#: ../templates/JavaDialog.xft.xml:6 ../templates/JavaFrame.xft.xml:6
-#: ../templates/JavaOKDialog.xft.xml:6 ../templates/JavaPanel.xft.xml:6
-msgid "AWT"
-msgstr ""
-
-#: ../templates/JavaApplet.xft.xml:8
-msgid "Creates a Java AWT Applet"
-msgstr "Opretter en ny Java/AWT-applet"
-
-#: ../templates/JavaApplicationProject.xpt.xml:7
-msgid "AWT Project"
-msgstr "AWT-projekt"
-
-#: ../templates/JavaApplicationProject.xpt.xml:11
-msgid "Creates a Java AWT project."
-msgstr "Opretter et nyt Java/AWT-projekt."
-
-#: ../templates/JavaApplication.xft.xml:4
-#, fuzzy
-msgid "AWT Application"
-msgstr "AWT-applet"
-
-#: ../templates/JavaApplication.xft.xml:8
-msgid "Creates a Java AWT application."
-msgstr "Opretter et Java/AWT-program."
-
-#: ../templates/JavaConsoleApplicationProject.xpt.xml:7
-msgid "Console Project"
-msgstr "Kommandolinje-projekt"
-
-#: ../templates/JavaConsoleApplicationProject.xpt.xml:11
-msgid "Create a console Java project"
-msgstr "Opret et nyt Java/kommandolinje-projekt"
-
-#: ../templates/JavaDialog.xft.xml:4
-msgid "Java AWT Dialog"
-msgstr "Java/AWT-dialog"
-
-#: ../templates/JavaDialog.xft.xml:8
-msgid "Creates an AWT dialog."
-msgstr "Opretter en AWT-dialog."
-
-#: ../templates/JavaFrame.xft.xml:4
-msgid "AWT Frame"
-msgstr "AWT-ramme"
-
-#: ../templates/JavaFrame.xft.xml:8
-msgid "Creates a Java AWT Frame"
-msgstr "Opretter en ny Java/AWT-ramme"
-
-#: ../templates/JavaOKDialog.xft.xml:4
-msgid "AWT OK Dialog"
-msgstr "AWT-o.k.-dialog"
-
-#: ../templates/JavaOKDialog.xft.xml:8
-msgid "Creates a Java AWT OK Dialog."
-msgstr "Opretter en ny Java/AWT-dialog."
-
-#: ../templates/JavaPanel.xft.xml:4
-msgid "AWT Panel"
-msgstr "AWT-panel"
-
-#: ../templates/JavaPanel.xft.xml:8
-msgid "Creates a Java AWT panel."
-msgstr "Opretter et Java/AWT-panel."
-
-#: ../JavaBinding.addin.xml:27
-#, fuzzy
-msgid "Java Files"
-msgstr "Gem filer"
-
-#: ../JavaBinding.addin.xml:55
-msgid "Code Generation"
-msgstr "Kodegenerering"
-
-#: ../JavaBinding.addin.xml:58
-msgid "Output"
-msgstr "Uddata"
-
-#: ../JavaBinding.addin.xml:76
-msgid "Java source code"
-msgstr ""
-
-#: ../Gui/ProjectConfigurationPropertyPanel.cs:61
-msgid "Executable"
-msgstr "Kørbar"
-
-#: ../Gui/ProjectConfigurationPropertyPanel.cs:62
-msgid "Library"
-msgstr "Bibliotek"
-
-#: ../Gui/GlobalOptionsPanel.cs:34
-msgid "Javac"
-msgstr "Javac"
-
-#: ../Gui/GlobalOptionsPanel.cs:35
-msgid "Gcj"
-msgstr "Gcj"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:106
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:170
-#, fuzzy
-msgid "<b>Code Generation</b>"
-msgstr "Kodegenerering"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:167
-msgid "Compile _Target:"
-msgstr "Oversættelses_mål:"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:177
-msgid "Define S_ymbols:"
-msgstr "Definér s_ymboler:"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:189
-msgid "_Main Class:"
-msgstr "_Hovedklasse:"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:201
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:208
-msgid "Classpath:"
-msgstr "Klassesti:"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:248
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:64
-#, fuzzy
-msgid "<b>Compiler</b>"
-msgstr "<b>Skabelon</b>"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:275
-msgid "gcj"
-msgstr "gcj"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:287
-#, fuzzy
-msgid "javac"
-msgstr "javac"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:329
-msgid "<b>Options</b>"
-msgstr "<b>Indstillinger</b>"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:356
-msgid "Enable _optimizations"
-msgstr "Aktivér _optimeringer"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:367
-msgid "Emit _debugging information"
-msgstr "Generer _aflusningsinformation"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:392
-msgid "<b>Warnings</b>"
-msgstr "<b>Advarsler</b>"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:419
-msgid "Generate warnings"
-msgstr "Generér advarsler"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:430
-#, fuzzy
-msgid "Enable deprecation warnings"
-msgstr "Aktivér _kodefuldførelse"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:441
-msgid "Treat warnings as _errors"
-msgstr "Håndter advarsler som f_ejl"
-
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:131
-#, fuzzy
-msgid "Compiler command:"
-msgstr "Oversætter:"
-
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:142
-msgid "IKVM path:"
-msgstr "IKVM-sti:"
-
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:151
-msgid "Java compiler:"
-msgstr "Java-oversætter:"
-
-#: ../IKVMCompilerManager.cs:132
-msgid "Generating {0} reference stub ..."
-msgstr ""
-
-#: ../IKVMCompilerManager.cs:163
-msgid "Generating assembly ..."
-msgstr ""
-
-#: ../IKVMCompilerManager.cs:209
-msgid "Compiling Java source code ..."
-msgstr ""
diff --git a/extras/JavaBinding/po/de.po b/extras/JavaBinding/po/de.po
deleted file mode 100644
index 258478b60e..0000000000
--- a/extras/JavaBinding/po/de.po
+++ /dev/null
@@ -1,277 +0,0 @@
-# benste <Benedict.Stein@gmail.com>, 2007.
-#
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: Monodevelop\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2009-03-04 18:11:10-0500\n"
-"PO-Revision-Date: 2008-01-28 20:05+0100\n"
-"Last-Translator: \n"
-"Language-Team: \n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"X-Poedit-Bookmarks: -1,1681,-1,-1,-1,-1,-1,-1,-1,-1\n"
-
-#: ../templates/EmptyJavaFile.xft.xml:4
-msgid "Empty File"
-msgstr "Leere Datei"
-
-#: ../templates/EmptyJavaFile.xft.xml:6
-msgid "General"
-msgstr "Allgemein"
-
-#: ../templates/EmptyJavaFile.xft.xml:8
-msgid "Creates an empty Java file."
-msgstr "Erzeugt eine leere Java-Datei."
-
-#: ../templates/EmptyJavaProject.xpt.xml:7
-msgid "Empty Project"
-msgstr "Leeres Projekt"
-
-#: ../templates/EmptyJavaProject.xpt.xml:8
-#: ../templates/IkvmConsoleApplicationProject.xpt.xml:8
-#: ../templates/IkvmGladeApplicationProject.xpt.xml:8
-#: ../templates/IkvmGnomeApplicationProject.xpt.xml:8
-#: ../templates/IkvmGtkApplicationProject.xpt.xml:8
-#: ../templates/IkvmLibraryProject.xpt.xml:8
-#: ../templates/JavaApplicationProject.xpt.xml:8
-#: ../templates/JavaConsoleApplicationProject.xpt.xml:8
-#: ../JavaBinding.addin.xml:64
-msgid "Java"
-msgstr "Java"
-
-#: ../templates/EmptyJavaProject.xpt.xml:11
-msgid "Creates an empty Java solution."
-msgstr "Erzeugt eine leere Java-Solution."
-
-#: ../templates/IkvmConsoleApplicationProject.xpt.xml:7
-msgid "IKVM Console Project"
-msgstr "IKVM Konsolen-Projekt"
-
-#: ../templates/IkvmConsoleApplicationProject.xpt.xml:11
-msgid "Create a console Java project with IKVM"
-msgstr "Erzeugt ein Konsolen Java-Projekt mit IKVM"
-
-#: ../templates/IkvmGladeApplicationProject.xpt.xml:7
-msgid "IKVM Glade# Project"
-msgstr "IKVM Glade# Projekt"
-
-#: ../templates/IkvmGladeApplicationProject.xpt.xml:11
-msgid "Create a Glade# Java project with IKVM"
-msgstr "Erzeugt ein Glade# Java-Projekt mit IKVM"
-
-#: ../templates/IkvmGnomeApplicationProject.xpt.xml:7
-msgid "IKVM Gnome# Project"
-msgstr "IKVM Gnome# Projekt"
-
-#: ../templates/IkvmGnomeApplicationProject.xpt.xml:11
-msgid "Create a Gnome# Java project with IKVM"
-msgstr "Erzeugt ein Gnome# Java-Projekt mit IKVM"
-
-#: ../templates/IkvmGtkApplicationProject.xpt.xml:7
-msgid "IKVM Gtk# Project"
-msgstr "IKVM Gtk# Projekt"
-
-#: ../templates/IkvmGtkApplicationProject.xpt.xml:11
-msgid "Create a Gtk# Java project with IKVM"
-msgstr "Erzeugt ein Gtk# Java-Projekt mit IKVM"
-
-#: ../templates/IkvmLibraryProject.xpt.xml:7
-msgid "IKVM Library"
-msgstr "IKVM-Bibliothek"
-
-#: ../templates/IkvmLibraryProject.xpt.xml:11
-msgid "Create a Java library with IKVM"
-msgstr "Erzeuge eine Java-Bibliothek mit IKVM"
-
-#: ../templates/JavaApplet.xft.xml:4
-msgid "AWT Applet"
-msgstr "AWT-Applet"
-
-#: ../templates/JavaApplet.xft.xml:6 ../templates/JavaApplication.xft.xml:6
-#: ../templates/JavaDialog.xft.xml:6 ../templates/JavaFrame.xft.xml:6
-#: ../templates/JavaOKDialog.xft.xml:6 ../templates/JavaPanel.xft.xml:6
-msgid "AWT"
-msgstr "AWT"
-
-#: ../templates/JavaApplet.xft.xml:8
-msgid "Creates a Java AWT Applet"
-msgstr "Erzeugt ein Java AWT-Applet"
-
-#: ../templates/JavaApplicationProject.xpt.xml:7
-msgid "AWT Project"
-msgstr "AWT Projekt"
-
-#: ../templates/JavaApplicationProject.xpt.xml:11
-msgid "Creates a Java AWT project."
-msgstr "Erzeugt ein Java AWT-Projekt."
-
-#: ../templates/JavaApplication.xft.xml:4
-msgid "AWT Application"
-msgstr "AWT Anwendung"
-
-#: ../templates/JavaApplication.xft.xml:8
-msgid "Creates a Java AWT application."
-msgstr "Erzeugt eine Java AWT-Anwendung."
-
-#: ../templates/JavaConsoleApplicationProject.xpt.xml:7
-msgid "Console Project"
-msgstr "Konsolen-Projekt"
-
-#: ../templates/JavaConsoleApplicationProject.xpt.xml:11
-msgid "Create a console Java project"
-msgstr "Erzeugt ein Konsolen Java-Projekt"
-
-#: ../templates/JavaDialog.xft.xml:4
-msgid "Java AWT Dialog"
-msgstr "Java AWT-Dialog"
-
-#: ../templates/JavaDialog.xft.xml:8
-msgid "Creates an AWT dialog."
-msgstr "Erzeugt einen AWT-Dialog."
-
-#: ../templates/JavaFrame.xft.xml:4
-msgid "AWT Frame"
-msgstr "AWT-Frame"
-
-#: ../templates/JavaFrame.xft.xml:8
-msgid "Creates a Java AWT Frame"
-msgstr "Erzeugt ein Java AWT-Frame"
-
-#: ../templates/JavaOKDialog.xft.xml:4
-msgid "AWT OK Dialog"
-msgstr "AWT OK-Dialog"
-
-#: ../templates/JavaOKDialog.xft.xml:8
-msgid "Creates a Java AWT OK Dialog."
-msgstr "Erzeugt einen Java AWT OK-Dialog"
-
-#: ../templates/JavaPanel.xft.xml:4
-msgid "AWT Panel"
-msgstr "AWT Panel"
-
-#: ../templates/JavaPanel.xft.xml:8
-msgid "Creates a Java AWT panel."
-msgstr "Erzeugt ein Java AWT panel"
-
-#: ../JavaBinding.addin.xml:27
-msgid "Java Files"
-msgstr "Java-Dateien"
-
-#: ../JavaBinding.addin.xml:55
-msgid "Code Generation"
-msgstr "Quelltext-Erzeugung"
-
-#: ../JavaBinding.addin.xml:58
-msgid "Output"
-msgstr "Ausgabe"
-
-#: ../JavaBinding.addin.xml:76
-#, fuzzy
-msgid "Java source code"
-msgstr "Kompiliere Java-Source-Code ..."
-
-#: ../Gui/ProjectConfigurationPropertyPanel.cs:61
-msgid "Executable"
-msgstr "Ausführbare Datei"
-
-#: ../Gui/ProjectConfigurationPropertyPanel.cs:62
-msgid "Library"
-msgstr "Bibliothek"
-
-#: ../Gui/GlobalOptionsPanel.cs:34
-msgid "Javac"
-msgstr "Javac"
-
-#: ../Gui/GlobalOptionsPanel.cs:35
-msgid "Gcj"
-msgstr "Gcj"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:106
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:170
-msgid "<b>Code Generation</b>"
-msgstr "<b>Quelltext-Erzeugung</b>"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:167
-msgid "Compile _Target:"
-msgstr "Kompilierungsziel:"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:177
-msgid "Define S_ymbols:"
-msgstr "Definiere S_ymbole:"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:189
-msgid "_Main Class:"
-msgstr "Hauptklasse:"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:201
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:208
-msgid "Classpath:"
-msgstr "Klassenpfad:"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:248
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:64
-msgid "<b>Compiler</b>"
-msgstr "<b>Compiler</b>"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:275
-msgid "gcj"
-msgstr "gcj"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:287
-msgid "javac"
-msgstr "javac"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:329
-msgid "<b>Options</b>"
-msgstr "<b>Optionen</b>"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:356
-msgid "Enable _optimizations"
-msgstr "Optimierungen aktivieren"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:367
-msgid "Emit _debugging information"
-msgstr "Debug-Informationen ausgeben"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:392
-msgid "<b>Warnings</b>"
-msgstr "<b>Warnungen</b>"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:419
-msgid "Generate warnings"
-msgstr "Erzeuge Warnungen"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:430
-msgid "Enable deprecation warnings"
-msgstr "Aktiviere Missbilligung-Warnungen"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:441
-msgid "Treat warnings as _errors"
-msgstr "Behandle Warnungen als F_ehler"
-
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:131
-msgid "Compiler command:"
-msgstr "Compiler-Befehl:"
-
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:142
-msgid "IKVM path:"
-msgstr "IKVM-Pfad:"
-
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:151
-msgid "Java compiler:"
-msgstr "Java-Compiler:"
-
-#: ../IKVMCompilerManager.cs:132
-msgid "Generating {0} reference stub ..."
-msgstr "Erzeuge {0} Referenz-Stutzen..."
-
-#: ../IKVMCompilerManager.cs:163
-msgid "Generating assembly ..."
-msgstr "Erzeuge Assembly..."
-
-#: ../IKVMCompilerManager.cs:209
-msgid "Compiling Java source code ..."
-msgstr "Kompiliere Java-Source-Code ..."
diff --git a/extras/JavaBinding/po/es.po b/extras/JavaBinding/po/es.po
deleted file mode 100644
index de95d350fe..0000000000
--- a/extras/JavaBinding/po/es.po
+++ /dev/null
@@ -1,282 +0,0 @@
-# Translation of monodevelop.po into Spanish
-# Copyright (C) 2005 The Mono Project
-# This file is distributed under the same license as the MonoDevelop package.
-# Andrés G. Aragoneses <knocte@gmail.com>, 2005-2008
-# Alejandro Serrano <trupill@yahoo.es>, 2006
-# Jonathan Hernández Velasco <jbilbo@ya.com>, 2004-2005
-# Antonio Ognio <gnrfan@gnrfan.org>, 2004
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: MonoDevelop rev2237\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2009-03-04 18:11:10-0500\n"
-"PO-Revision-Date: 2005-03-01 16:34+0100\n"
-"Last-Translator: Andrés G. Aragoneses <knocte@gmail.com>\n"
-"Language-Team: Spanish <es@li.org>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=2; plural=(n != 1);\n"
-
-#: ../templates/EmptyJavaFile.xft.xml:4
-msgid "Empty File"
-msgstr "Archivo vacío"
-
-#: ../templates/EmptyJavaFile.xft.xml:6
-msgid "General"
-msgstr "General"
-
-#: ../templates/EmptyJavaFile.xft.xml:8
-msgid "Creates an empty Java file."
-msgstr "Crea un archivo Java vacío."
-
-#: ../templates/EmptyJavaProject.xpt.xml:7
-msgid "Empty Project"
-msgstr "Proyecto vacío"
-
-#: ../templates/EmptyJavaProject.xpt.xml:8
-#: ../templates/IkvmConsoleApplicationProject.xpt.xml:8
-#: ../templates/IkvmGladeApplicationProject.xpt.xml:8
-#: ../templates/IkvmGnomeApplicationProject.xpt.xml:8
-#: ../templates/IkvmGtkApplicationProject.xpt.xml:8
-#: ../templates/IkvmLibraryProject.xpt.xml:8
-#: ../templates/JavaApplicationProject.xpt.xml:8
-#: ../templates/JavaConsoleApplicationProject.xpt.xml:8
-#: ../JavaBinding.addin.xml:64
-msgid "Java"
-msgstr "Java"
-
-#: ../templates/EmptyJavaProject.xpt.xml:11
-msgid "Creates an empty Java solution."
-msgstr "Crea una solución Java vacía."
-
-#: ../templates/IkvmConsoleApplicationProject.xpt.xml:7
-msgid "IKVM Console Project"
-msgstr "Proyecto IKVM de consola"
-
-#: ../templates/IkvmConsoleApplicationProject.xpt.xml:11
-msgid "Create a console Java project with IKVM"
-msgstr "Crea un proyecto Java de consola con IKVM"
-
-#: ../templates/IkvmGladeApplicationProject.xpt.xml:7
-msgid "IKVM Glade# Project"
-msgstr "Proyecto Glade# IKVM"
-
-#: ../templates/IkvmGladeApplicationProject.xpt.xml:11
-msgid "Create a Glade# Java project with IKVM"
-msgstr "Crea un proyecto Java Glade# con IKVM"
-
-#: ../templates/IkvmGnomeApplicationProject.xpt.xml:7
-msgid "IKVM Gnome# Project"
-msgstr "Proyecto Gnome# IKVM"
-
-#: ../templates/IkvmGnomeApplicationProject.xpt.xml:11
-msgid "Create a Gnome# Java project with IKVM"
-msgstr "Crea un proyecto Java Gnome# con IKVM"
-
-#: ../templates/IkvmGtkApplicationProject.xpt.xml:7
-msgid "IKVM Gtk# Project"
-msgstr "Proyecto Gtk# IKVM"
-
-#: ../templates/IkvmGtkApplicationProject.xpt.xml:11
-msgid "Create a Gtk# Java project with IKVM"
-msgstr "Crea un proyecto Java Gtk# con IKVM"
-
-#: ../templates/IkvmLibraryProject.xpt.xml:7
-msgid "IKVM Library"
-msgstr "Librería IKVM"
-
-#: ../templates/IkvmLibraryProject.xpt.xml:11
-msgid "Create a Java library with IKVM"
-msgstr "Crear una librería Java con IKVM"
-
-#: ../templates/JavaApplet.xft.xml:4
-msgid "AWT Applet"
-msgstr "Applet AWT"
-
-#: ../templates/JavaApplet.xft.xml:6 ../templates/JavaApplication.xft.xml:6
-#: ../templates/JavaDialog.xft.xml:6 ../templates/JavaFrame.xft.xml:6
-#: ../templates/JavaOKDialog.xft.xml:6 ../templates/JavaPanel.xft.xml:6
-msgid "AWT"
-msgstr "AWT"
-
-#: ../templates/JavaApplet.xft.xml:8
-msgid "Creates a Java AWT Applet"
-msgstr "Crea un Applet Java AWT"
-
-#: ../templates/JavaApplicationProject.xpt.xml:7
-msgid "AWT Project"
-msgstr "Proyecto AWT"
-
-#: ../templates/JavaApplicationProject.xpt.xml:11
-msgid "Creates a Java AWT project."
-msgstr "Crea un proyecto Java AWT."
-
-#: ../templates/JavaApplication.xft.xml:4
-msgid "AWT Application"
-msgstr "Aplicación AWT"
-
-#: ../templates/JavaApplication.xft.xml:8
-msgid "Creates a Java AWT application."
-msgstr "Crea una aplicación Java AWT."
-
-#: ../templates/JavaConsoleApplicationProject.xpt.xml:7
-msgid "Console Project"
-msgstr "Proyecto de consola"
-
-#: ../templates/JavaConsoleApplicationProject.xpt.xml:11
-msgid "Create a console Java project"
-msgstr "Crea un proyecto Java de consola"
-
-#: ../templates/JavaDialog.xft.xml:4
-msgid "Java AWT Dialog"
-msgstr "Diálogo Java AWT"
-
-#: ../templates/JavaDialog.xft.xml:8
-msgid "Creates an AWT dialog."
-msgstr "Crea un diálogo AWT."
-
-#: ../templates/JavaFrame.xft.xml:4
-msgid "AWT Frame"
-msgstr "Frame AWT"
-
-#: ../templates/JavaFrame.xft.xml:8
-msgid "Creates a Java AWT Frame"
-msgstr "Crea un Frame Java AWT"
-
-#: ../templates/JavaOKDialog.xft.xml:4
-msgid "AWT OK Dialog"
-msgstr "Diálogo OK de AWT"
-
-#: ../templates/JavaOKDialog.xft.xml:8
-msgid "Creates a Java AWT OK Dialog."
-msgstr "Crea un diálogo OK de Java AWT"
-
-#: ../templates/JavaPanel.xft.xml:4
-msgid "AWT Panel"
-msgstr "Panel AWT"
-
-#: ../templates/JavaPanel.xft.xml:8
-msgid "Creates a Java AWT panel."
-msgstr "Crea un panel Java AWT"
-
-#: ../JavaBinding.addin.xml:27
-msgid "Java Files"
-msgstr "Archivos Java"
-
-#: ../JavaBinding.addin.xml:55
-msgid "Code Generation"
-msgstr "Generación de código"
-
-#: ../JavaBinding.addin.xml:58
-msgid "Output"
-msgstr "Salida"
-
-#: ../JavaBinding.addin.xml:76
-#, fuzzy
-msgid "Java source code"
-msgstr "Compilando código Java"
-
-#: ../Gui/ProjectConfigurationPropertyPanel.cs:61
-msgid "Executable"
-msgstr "Ejecutable"
-
-#: ../Gui/ProjectConfigurationPropertyPanel.cs:62
-msgid "Library"
-msgstr "Librería"
-
-#: ../Gui/GlobalOptionsPanel.cs:34
-msgid "Javac"
-msgstr "Javac"
-
-#: ../Gui/GlobalOptionsPanel.cs:35
-msgid "Gcj"
-msgstr "Gcj"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:106
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:170
-msgid "<b>Code Generation</b>"
-msgstr "<b>Generación de código</b>"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:167
-msgid "Compile _Target:"
-msgstr "Obje_tivo de la compilación:"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:177
-msgid "Define S_ymbols:"
-msgstr "Definir s_ímbolos:"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:189
-msgid "_Main Class:"
-msgstr "Clase _principal:"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:201
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:208
-msgid "Classpath:"
-msgstr "Classpath:"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:248
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:64
-msgid "<b>Compiler</b>"
-msgstr "<b>Compilador</b>"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:275
-msgid "gcj"
-msgstr "gcj"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:287
-msgid "javac"
-msgstr "javac"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:329
-msgid "<b>Options</b>"
-msgstr "<b>Opciones</b>"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:356
-msgid "Enable _optimizations"
-msgstr "Activar _optimizaciones"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:367
-msgid "Emit _debugging information"
-msgstr "Emitir información de _depuración"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:392
-msgid "<b>Warnings</b>"
-msgstr "<b>Advertencias</b>"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:419
-msgid "Generate warnings"
-msgstr "Generar advertencias"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:430
-msgid "Enable deprecation warnings"
-msgstr "Activar advertencias sobre obsolescencia"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:441
-msgid "Treat warnings as _errors"
-msgstr "Tratar advertencias como _errores"
-
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:131
-msgid "Compiler command:"
-msgstr "Comando del compilador:"
-
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:142
-msgid "IKVM path:"
-msgstr "Ruta de IKVM:"
-
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:151
-msgid "Java compiler:"
-msgstr "Compilador Java:"
-
-#: ../IKVMCompilerManager.cs:132
-msgid "Generating {0} reference stub ..."
-msgstr "Generando esqueleto de referencia {0} ..."
-
-#: ../IKVMCompilerManager.cs:163
-msgid "Generating assembly ..."
-msgstr "Generando ensamblado..."
-
-#: ../IKVMCompilerManager.cs:209
-msgid "Compiling Java source code ..."
-msgstr "Compilando código Java"
diff --git a/extras/JavaBinding/po/fr.po b/extras/JavaBinding/po/fr.po
deleted file mode 100644
index 4d6606b032..0000000000
--- a/extras/JavaBinding/po/fr.po
+++ /dev/null
@@ -1,283 +0,0 @@
-# MonoDevelop fr_FR translation
-# Copyright (C) Vincent Daron <vdaron@ask.be>,
-# Nicolas Favre-Felix <n.favrefelix@gmail.com> 2006.
-# This file is distributed under the same license as Monodevelop
-#
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: fr_FR\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2009-03-04 18:11:10-0500\n"
-"PO-Revision-Date: 2009-03-06 22:25:42+0100\n"
-"Last-Translator: Vincent DARON <vdaron@ask.be>\n"
-"Language-Team: \n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"X-Generator: MonoDevelop Gettext addin\n"
-
-#: ../templates/EmptyJavaFile.xft.xml:4
-msgid "Empty File"
-msgstr "Fichier vide"
-
-#: ../templates/EmptyJavaFile.xft.xml:6
-msgid "General"
-msgstr "Général"
-
-#: ../templates/EmptyJavaFile.xft.xml:8
-msgid "Creates an empty Java file."
-msgstr "Crée un fichier java vide."
-
-#: ../templates/EmptyJavaProject.xpt.xml:7
-msgid "Empty Project"
-msgstr "Projet vide"
-
-#: ../templates/EmptyJavaProject.xpt.xml:8
-#: ../templates/IkvmConsoleApplicationProject.xpt.xml:8
-#: ../templates/IkvmGladeApplicationProject.xpt.xml:8
-#: ../templates/IkvmGnomeApplicationProject.xpt.xml:8
-#: ../templates/IkvmGtkApplicationProject.xpt.xml:8
-#: ../templates/IkvmLibraryProject.xpt.xml:8
-#: ../templates/JavaApplicationProject.xpt.xml:8
-#: ../templates/JavaConsoleApplicationProject.xpt.xml:8
-#: ../JavaBinding.addin.xml:64
-msgid "Java"
-msgstr "Java"
-
-#: ../templates/EmptyJavaProject.xpt.xml:11
-msgid "Creates an empty Java solution."
-msgstr "Crée une solution java vide."
-
-#: ../templates/IkvmConsoleApplicationProject.xpt.xml:7
-msgid "IKVM Console Project"
-msgstr "Projet console IKVM"
-
-#: ../templates/IkvmConsoleApplicationProject.xpt.xml:11
-msgid "Create a console Java project with IKVM"
-msgstr "Crée un projet console Java avec IKVM"
-
-#: ../templates/IkvmGladeApplicationProject.xpt.xml:7
-msgid "IKVM Glade# Project"
-msgstr "Projet Glade# IKVM"
-
-#: ../templates/IkvmGladeApplicationProject.xpt.xml:11
-msgid "Create a Glade# Java project with IKVM"
-msgstr "Crée un projet Glade# Java avec IKVM"
-
-#: ../templates/IkvmGnomeApplicationProject.xpt.xml:7
-msgid "IKVM Gnome# Project"
-msgstr "Projet Gnome# IKVM"
-
-#: ../templates/IkvmGnomeApplicationProject.xpt.xml:11
-msgid "Create a Gnome# Java project with IKVM"
-msgstr "Crée un projet Gnome# Java avec IKVM"
-
-#: ../templates/IkvmGtkApplicationProject.xpt.xml:7
-msgid "IKVM Gtk# Project"
-msgstr "Projet Gtk# IKVM"
-
-#: ../templates/IkvmGtkApplicationProject.xpt.xml:11
-msgid "Create a Gtk# Java project with IKVM"
-msgstr "Crée un projet Gtk# Java avec IKVM"
-
-#: ../templates/IkvmLibraryProject.xpt.xml:7
-msgid "IKVM Library"
-msgstr "Bibliothèque IKVM"
-
-#: ../templates/IkvmLibraryProject.xpt.xml:11
-msgid "Create a Java library with IKVM"
-msgstr "Crée une librairie Java avec IKVM"
-
-#: ../templates/JavaApplet.xft.xml:4
-msgid "AWT Applet"
-msgstr "Applet Java AWT"
-
-#: ../templates/JavaApplet.xft.xml:6
-#: ../templates/JavaApplication.xft.xml:6
-#: ../templates/JavaDialog.xft.xml:6
-#: ../templates/JavaFrame.xft.xml:6
-#: ../templates/JavaOKDialog.xft.xml:6
-#: ../templates/JavaPanel.xft.xml:6
-msgid "AWT"
-msgstr "AWT"
-
-#: ../templates/JavaApplet.xft.xml:8
-msgid "Creates a Java AWT Applet"
-msgstr "Crée une applet java AWT"
-
-#: ../templates/JavaApplicationProject.xpt.xml:7
-msgid "AWT Project"
-msgstr "Projet AWT"
-
-#: ../templates/JavaApplicationProject.xpt.xml:11
-msgid "Creates a Java AWT project."
-msgstr "Crée un projet java AWT."
-
-#: ../templates/JavaApplication.xft.xml:4
-msgid "AWT Application"
-msgstr "Application AWT"
-
-#: ../templates/JavaApplication.xft.xml:8
-msgid "Creates a Java AWT application."
-msgstr "Crée une application Java AWT."
-
-#: ../templates/JavaConsoleApplicationProject.xpt.xml:7
-msgid "Console Project"
-msgstr "Projet console"
-
-#: ../templates/JavaConsoleApplicationProject.xpt.xml:11
-msgid "Create a console Java project"
-msgstr "Crée un nouveau projet Java console"
-
-#: ../templates/JavaDialog.xft.xml:4
-msgid "Java AWT Dialog"
-msgstr "Boîte de dialogue Java AWT"
-
-#: ../templates/JavaDialog.xft.xml:8
-msgid "Creates an AWT dialog."
-msgstr "Crée une boîte de dialogue AWT."
-
-#: ../templates/JavaFrame.xft.xml:4
-msgid "AWT Frame"
-msgstr "Cadre AWT"
-
-#: ../templates/JavaFrame.xft.xml:8
-msgid "Creates a Java AWT Frame"
-msgstr "Crée un cadre Java AWT"
-
-#: ../templates/JavaOKDialog.xft.xml:4
-msgid "AWT OK Dialog"
-msgstr "Boîte de dialogue OK AWT"
-
-#: ../templates/JavaOKDialog.xft.xml:8
-msgid "Creates a Java AWT OK Dialog."
-msgstr "Crée une boîte de dialogue OK Java AWT."
-
-#: ../templates/JavaPanel.xft.xml:4
-msgid "AWT Panel"
-msgstr "Panel Java AWT"
-
-#: ../templates/JavaPanel.xft.xml:8
-msgid "Creates a Java AWT panel."
-msgstr "Crée un panneau Java AWT."
-
-#: ../JavaBinding.addin.xml:27
-msgid "Java Files"
-msgstr "Fichiers Java"
-
-#: ../JavaBinding.addin.xml:55
-msgid "Code Generation"
-msgstr "Génération de code"
-
-#: ../JavaBinding.addin.xml:58
-msgid "Output"
-msgstr "Sortie"
-
-#: ../JavaBinding.addin.xml:76
-msgid "Java source code"
-msgstr "Source Code Java"
-
-#: ../Gui/ProjectConfigurationPropertyPanel.cs:61
-msgid "Executable"
-msgstr "Exécutable"
-
-#: ../Gui/ProjectConfigurationPropertyPanel.cs:62
-msgid "Library"
-msgstr "Bibliothèque"
-
-#: ../Gui/GlobalOptionsPanel.cs:34
-msgid "Javac"
-msgstr "Javac"
-
-#: ../Gui/GlobalOptionsPanel.cs:35
-msgid "Gcj"
-msgstr "Gcj"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:106
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:170
-msgid "<b>Code Generation</b>"
-msgstr "<b>Génération de code</b>"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:167
-msgid "Compile _Target:"
-msgstr "Compiler la _cible :"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:177
-msgid "Define S_ymbols:"
-msgstr "Définir les _symboles :"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:189
-msgid "_Main Class:"
-msgstr "Classe _Main :"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:201
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:208
-msgid "Classpath:"
-msgstr "Classpath :"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:248
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:64
-msgid "<b>Compiler</b>"
-msgstr "<b>Compilateur</b>"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:275
-msgid "gcj"
-msgstr "gcj"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:287
-msgid "javac"
-msgstr "javac"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:329
-msgid "<b>Options</b>"
-msgstr "<b>Options</b>"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:356
-msgid "Enable _optimizations"
-msgstr "Activer les _optimisations"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:367
-msgid "Emit _debugging information"
-msgstr "Inclure les informations de _debogage"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:392
-msgid "<b>Warnings</b>"
-msgstr "<b>Avertissements</b>"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:419
-msgid "Generate warnings"
-msgstr "Génère des avertissements"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:430
-msgid "Enable deprecation warnings"
-msgstr "Activer les avertissements d'obsolescence"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:441
-msgid "Treat warnings as _errors"
-msgstr "Traiter les avertissements comme des _erreurs"
-
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:131
-msgid "Compiler command:"
-msgstr "Commande de compilation :"
-
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:142
-msgid "IKVM path:"
-msgstr "Chemin IKVM :"
-
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:151
-msgid "Java compiler:"
-msgstr "Compilateur Java :"
-
-#: ../IKVMCompilerManager.cs:132
-msgid "Generating {0} reference stub ..."
-msgstr "Génération de la référence de {0}..."
-
-#: ../IKVMCompilerManager.cs:163
-msgid "Generating assembly ..."
-msgstr "Génération de l'assemblage."
-
-#: ../IKVMCompilerManager.cs:209
-msgid "Compiling Java source code ..."
-msgstr "Compilation du code source Java."
-
diff --git a/extras/JavaBinding/po/gl.po b/extras/JavaBinding/po/gl.po
deleted file mode 100644
index b0b3bd5839..0000000000
--- a/extras/JavaBinding/po/gl.po
+++ /dev/null
@@ -1,283 +0,0 @@
-# translation of gl.po to Galego
-# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
-# This file is distributed under the same license as the PACKAGE package.
-#
-# Ignacio Casal Quinteiro <icq@cvs.gnome.org>, 2007.
-# Ignacio Casal Quinteiro <nacho.resa@gmail.com>, 2007.
-msgid ""
-msgstr ""
-"Project-Id-Version: gl\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2009-03-04 18:11:10-0500\n"
-"PO-Revision-Date: 2007-09-25 15:10+0200\n"
-"Last-Translator: Ignacio Casal Quinteiro <icq@cvs.gnome.org>\n"
-"Language-Team: Galego <proxecto@trasno.net>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=2; plural=(n != 1);\n"
-"X-Generator: KBabel 1.11.4\n"
-
-#: ../templates/EmptyJavaFile.xft.xml:4
-msgid "Empty File"
-msgstr "Ficheiro baleiro"
-
-#: ../templates/EmptyJavaFile.xft.xml:6
-msgid "General"
-msgstr ""
-
-#: ../templates/EmptyJavaFile.xft.xml:8
-msgid "Creates an empty Java file."
-msgstr "Crea un ficheiro de Java baleiro."
-
-#: ../templates/EmptyJavaProject.xpt.xml:7
-msgid "Empty Project"
-msgstr "Proxecto baleiro"
-
-#: ../templates/EmptyJavaProject.xpt.xml:8
-#: ../templates/IkvmConsoleApplicationProject.xpt.xml:8
-#: ../templates/IkvmGladeApplicationProject.xpt.xml:8
-#: ../templates/IkvmGnomeApplicationProject.xpt.xml:8
-#: ../templates/IkvmGtkApplicationProject.xpt.xml:8
-#: ../templates/IkvmLibraryProject.xpt.xml:8
-#: ../templates/JavaApplicationProject.xpt.xml:8
-#: ../templates/JavaConsoleApplicationProject.xpt.xml:8
-#: ../JavaBinding.addin.xml:64
-msgid "Java"
-msgstr "Java"
-
-#: ../templates/EmptyJavaProject.xpt.xml:11
-msgid "Creates an empty Java solution."
-msgstr "Crea unha solución de Java baleira."
-
-#: ../templates/IkvmConsoleApplicationProject.xpt.xml:7
-msgid "IKVM Console Project"
-msgstr "Proxecto de consola IKVM"
-
-#: ../templates/IkvmConsoleApplicationProject.xpt.xml:11
-msgid "Create a console Java project with IKVM"
-msgstr "Crea un proxecto de consola de Java con IKVM"
-
-#: ../templates/IkvmGladeApplicationProject.xpt.xml:7
-msgid "IKVM Glade# Project"
-msgstr "Proxecto Glade# IKVM"
-
-#: ../templates/IkvmGladeApplicationProject.xpt.xml:11
-msgid "Create a Glade# Java project with IKVM"
-msgstr "Crea un proxecto Java Glade# con IKVM"
-
-#: ../templates/IkvmGnomeApplicationProject.xpt.xml:7
-msgid "IKVM Gnome# Project"
-msgstr "Proxecto Gnome# IKVM"
-
-#: ../templates/IkvmGnomeApplicationProject.xpt.xml:11
-msgid "Create a Gnome# Java project with IKVM"
-msgstr "Crea un proxecto Java Gnome# con IKVM"
-
-#: ../templates/IkvmGtkApplicationProject.xpt.xml:7
-msgid "IKVM Gtk# Project"
-msgstr "Proxecto Gtk# IKVM"
-
-#: ../templates/IkvmGtkApplicationProject.xpt.xml:11
-msgid "Create a Gtk# Java project with IKVM"
-msgstr "Crea un proxecto Java Gtk# con IKVM"
-
-#: ../templates/IkvmLibraryProject.xpt.xml:7
-msgid "IKVM Library"
-msgstr "Biblioteca IKVM"
-
-#: ../templates/IkvmLibraryProject.xpt.xml:11
-msgid "Create a Java library with IKVM"
-msgstr "Crear unha biblioteca Java con IKVM"
-
-#: ../templates/JavaApplet.xft.xml:4
-msgid "AWT Applet"
-msgstr "Applet AWT"
-
-#: ../templates/JavaApplet.xft.xml:6 ../templates/JavaApplication.xft.xml:6
-#: ../templates/JavaDialog.xft.xml:6 ../templates/JavaFrame.xft.xml:6
-#: ../templates/JavaOKDialog.xft.xml:6 ../templates/JavaPanel.xft.xml:6
-msgid "AWT"
-msgstr ""
-
-#: ../templates/JavaApplet.xft.xml:8
-msgid "Creates a Java AWT Applet"
-msgstr "Crea un applet Java AWT"
-
-#: ../templates/JavaApplicationProject.xpt.xml:7
-msgid "AWT Project"
-msgstr "Proxecto AWT"
-
-#: ../templates/JavaApplicationProject.xpt.xml:11
-msgid "Creates a Java AWT project."
-msgstr "Crea un proxecto Java AWT"
-
-#: ../templates/JavaApplication.xft.xml:4
-#, fuzzy
-msgid "AWT Application"
-msgstr "Applet AWT"
-
-#: ../templates/JavaApplication.xft.xml:8
-msgid "Creates a Java AWT application."
-msgstr "Crea unha aplicación Java AWT."
-
-#: ../templates/JavaConsoleApplicationProject.xpt.xml:7
-msgid "Console Project"
-msgstr "Proxecto de consola"
-
-#: ../templates/JavaConsoleApplicationProject.xpt.xml:11
-msgid "Create a console Java project"
-msgstr "Crea un proxecto Java de consola"
-
-#: ../templates/JavaDialog.xft.xml:4
-msgid "Java AWT Dialog"
-msgstr "Diálogo Java AWT"
-
-#: ../templates/JavaDialog.xft.xml:8
-msgid "Creates an AWT dialog."
-msgstr "Crea un diálogo AWT."
-
-#: ../templates/JavaFrame.xft.xml:4
-msgid "AWT Frame"
-msgstr "Marco AWT"
-
-#: ../templates/JavaFrame.xft.xml:8
-msgid "Creates a Java AWT Frame"
-msgstr "Crear un marco Java AWT"
-
-#: ../templates/JavaOKDialog.xft.xml:4
-msgid "AWT OK Dialog"
-msgstr "Diálogo Aceptar de AWT"
-
-#: ../templates/JavaOKDialog.xft.xml:8
-msgid "Creates a Java AWT OK Dialog."
-msgstr "Crea un diálogo Aceptar de Java AWT"
-
-#: ../templates/JavaPanel.xft.xml:4
-msgid "AWT Panel"
-msgstr "Panel AWT"
-
-#: ../templates/JavaPanel.xft.xml:8
-msgid "Creates a Java AWT panel."
-msgstr "Crea un panel Java AWT."
-
-#: ../JavaBinding.addin.xml:27
-msgid "Java Files"
-msgstr "Ficheiro Java"
-
-#: ../JavaBinding.addin.xml:55
-msgid "Code Generation"
-msgstr "Xeración de código"
-
-#: ../JavaBinding.addin.xml:58
-msgid "Output"
-msgstr "Saída"
-
-#: ../JavaBinding.addin.xml:76
-msgid "Java source code"
-msgstr ""
-
-#: ../Gui/ProjectConfigurationPropertyPanel.cs:61
-msgid "Executable"
-msgstr "Executable"
-
-#: ../Gui/ProjectConfigurationPropertyPanel.cs:62
-msgid "Library"
-msgstr "Biblioteca"
-
-#: ../Gui/GlobalOptionsPanel.cs:34
-msgid "Javac"
-msgstr "Javac"
-
-#: ../Gui/GlobalOptionsPanel.cs:35
-msgid "Gcj"
-msgstr "Gcj"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:106
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:170
-#, fuzzy
-msgid "<b>Code Generation</b>"
-msgstr "Xeración de código"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:167
-msgid "Compile _Target:"
-msgstr "Ob_xectivo da compilación:"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:177
-msgid "Define S_ymbols:"
-msgstr "Definir _símbolos:"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:189
-msgid "_Main Class:"
-msgstr "Clase _principal:"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:201
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:208
-msgid "Classpath:"
-msgstr "Ruta da clase:"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:248
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:64
-msgid "<b>Compiler</b>"
-msgstr "<b>Compilador</b>"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:275
-msgid "gcj"
-msgstr "gcj"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:287
-#, fuzzy
-msgid "javac"
-msgstr "javac"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:329
-msgid "<b>Options</b>"
-msgstr "<b>Opcións</b>"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:356
-msgid "Enable _optimizations"
-msgstr "Activar _optimizacións"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:367
-msgid "Emit _debugging information"
-msgstr "Emitir información de _depuración"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:392
-msgid "<b>Warnings</b>"
-msgstr "<b>Avisos</b>"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:419
-msgid "Generate warnings"
-msgstr "Xerar avisos"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:430
-msgid "Enable deprecation warnings"
-msgstr "Activar avisos de obsoletos"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:441
-msgid "Treat warnings as _errors"
-msgstr "Tratar advertencias como _erros"
-
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:131
-msgid "Compiler command:"
-msgstr "Comando do compilador:"
-
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:142
-msgid "IKVM path:"
-msgstr "Ruta de IKVM:"
-
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:151
-msgid "Java compiler:"
-msgstr "Compilador de Java:"
-
-#: ../IKVMCompilerManager.cs:132
-msgid "Generating {0} reference stub ..."
-msgstr ""
-
-#: ../IKVMCompilerManager.cs:163
-msgid "Generating assembly ..."
-msgstr ""
-
-#: ../IKVMCompilerManager.cs:209
-msgid "Compiling Java source code ..."
-msgstr ""
diff --git a/extras/JavaBinding/po/hu.po b/extras/JavaBinding/po/hu.po
deleted file mode 100755
index 3b144c5fa5..0000000000
--- a/extras/JavaBinding/po/hu.po
+++ /dev/null
@@ -1,274 +0,0 @@
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: MonoDevelop Hungarian translation 1.0\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2009-03-04 18:11:10-0500\n"
-"PO-Revision-Date: 2008-02-03 23:22+0100\n"
-"Last-Translator: Gergely Kiss <mail.gery@gmail.com>\n"
-"Language-Team: \n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-
-#: ../templates/EmptyJavaFile.xft.xml:4
-msgid "Empty File"
-msgstr "Üres fájl"
-
-#: ../templates/EmptyJavaFile.xft.xml:6
-msgid "General"
-msgstr "Általános"
-
-#: ../templates/EmptyJavaFile.xft.xml:8
-msgid "Creates an empty Java file."
-msgstr "Létrehoz egy üres Java fájlt"
-
-#: ../templates/EmptyJavaProject.xpt.xml:7
-msgid "Empty Project"
-msgstr "Üres projekt"
-
-#: ../templates/EmptyJavaProject.xpt.xml:8
-#: ../templates/IkvmConsoleApplicationProject.xpt.xml:8
-#: ../templates/IkvmGladeApplicationProject.xpt.xml:8
-#: ../templates/IkvmGnomeApplicationProject.xpt.xml:8
-#: ../templates/IkvmGtkApplicationProject.xpt.xml:8
-#: ../templates/IkvmLibraryProject.xpt.xml:8
-#: ../templates/JavaApplicationProject.xpt.xml:8
-#: ../templates/JavaConsoleApplicationProject.xpt.xml:8
-#: ../JavaBinding.addin.xml:64
-msgid "Java"
-msgstr "Java"
-
-#: ../templates/EmptyJavaProject.xpt.xml:11
-msgid "Creates an empty Java solution."
-msgstr "Létrehoz egy üres Java megoldást"
-
-#: ../templates/IkvmConsoleApplicationProject.xpt.xml:7
-msgid "IKVM Console Project"
-msgstr "IKVM konzolos projekt"
-
-#: ../templates/IkvmConsoleApplicationProject.xpt.xml:11
-msgid "Create a console Java project with IKVM"
-msgstr "Létrehoz egy IKVM-et használó konzolos Java projektet"
-
-#: ../templates/IkvmGladeApplicationProject.xpt.xml:7
-msgid "IKVM Glade# Project"
-msgstr "IKVM Glade# projekt"
-
-#: ../templates/IkvmGladeApplicationProject.xpt.xml:11
-msgid "Create a Glade# Java project with IKVM"
-msgstr "Létrehoz egy IKVM-et használó Glade#/Java projektet"
-
-#: ../templates/IkvmGnomeApplicationProject.xpt.xml:7
-msgid "IKVM Gnome# Project"
-msgstr "IKVM Gnome# projekt"
-
-#: ../templates/IkvmGnomeApplicationProject.xpt.xml:11
-msgid "Create a Gnome# Java project with IKVM"
-msgstr "Létrehoz egy IKVM-et használó Gnome#/Java projektet"
-
-#: ../templates/IkvmGtkApplicationProject.xpt.xml:7
-msgid "IKVM Gtk# Project"
-msgstr "IKVM GTK# projekt"
-
-#: ../templates/IkvmGtkApplicationProject.xpt.xml:11
-msgid "Create a Gtk# Java project with IKVM"
-msgstr "Létrehoz egy IKVM-et használó GTK#/Java projektet"
-
-#: ../templates/IkvmLibraryProject.xpt.xml:7
-msgid "IKVM Library"
-msgstr "IKVM függvénykönyvtár"
-
-#: ../templates/IkvmLibraryProject.xpt.xml:11
-msgid "Create a Java library with IKVM"
-msgstr "Létrehoz egy IKVM-et használó Java függvénykönyvtárat"
-
-#: ../templates/JavaApplet.xft.xml:4
-msgid "AWT Applet"
-msgstr "AWT applet"
-
-#: ../templates/JavaApplet.xft.xml:6 ../templates/JavaApplication.xft.xml:6
-#: ../templates/JavaDialog.xft.xml:6 ../templates/JavaFrame.xft.xml:6
-#: ../templates/JavaOKDialog.xft.xml:6 ../templates/JavaPanel.xft.xml:6
-msgid "AWT"
-msgstr "AWT"
-
-#: ../templates/JavaApplet.xft.xml:8
-msgid "Creates a Java AWT Applet"
-msgstr "Létrehoz egy Java AWT appletet"
-
-#: ../templates/JavaApplicationProject.xpt.xml:7
-msgid "AWT Project"
-msgstr "AWT projekt"
-
-#: ../templates/JavaApplicationProject.xpt.xml:11
-msgid "Creates a Java AWT project."
-msgstr "Létrehoz egy Java AWT projektet"
-
-#: ../templates/JavaApplication.xft.xml:4
-msgid "AWT Application"
-msgstr "AWT alkalmazás"
-
-#: ../templates/JavaApplication.xft.xml:8
-msgid "Creates a Java AWT application."
-msgstr "Létrehoz egy Java AWT alkalmazást"
-
-#: ../templates/JavaConsoleApplicationProject.xpt.xml:7
-msgid "Console Project"
-msgstr "Konzolos projekt"
-
-#: ../templates/JavaConsoleApplicationProject.xpt.xml:11
-msgid "Create a console Java project"
-msgstr "Létrehoz egy konzolos Java projektet"
-
-#: ../templates/JavaDialog.xft.xml:4
-msgid "Java AWT Dialog"
-msgstr "Java AWT párbeszédablak"
-
-#: ../templates/JavaDialog.xft.xml:8
-msgid "Creates an AWT dialog."
-msgstr "Létrehoz egy AWT párbeszédablakot"
-
-#: ../templates/JavaFrame.xft.xml:4
-msgid "AWT Frame"
-msgstr "AWT keret"
-
-#: ../templates/JavaFrame.xft.xml:8
-msgid "Creates a Java AWT Frame"
-msgstr "Léterhoz egy Java AWT keretet"
-
-#: ../templates/JavaOKDialog.xft.xml:4
-msgid "AWT OK Dialog"
-msgstr "AWT OK párbeszédablak"
-
-#: ../templates/JavaOKDialog.xft.xml:8
-msgid "Creates a Java AWT OK Dialog."
-msgstr "Létrehoz egy Java AWT OK párbeszédablakot"
-
-#: ../templates/JavaPanel.xft.xml:4
-msgid "AWT Panel"
-msgstr "AWT panel"
-
-#: ../templates/JavaPanel.xft.xml:8
-msgid "Creates a Java AWT panel."
-msgstr "Létrehoz egy Java AWT panelt"
-
-#: ../JavaBinding.addin.xml:27
-msgid "Java Files"
-msgstr "Java fájlok"
-
-#: ../JavaBinding.addin.xml:55
-msgid "Code Generation"
-msgstr "Kódgenerálás"
-
-#: ../JavaBinding.addin.xml:58
-msgid "Output"
-msgstr "Kimenet"
-
-#: ../JavaBinding.addin.xml:76
-#, fuzzy
-msgid "Java source code"
-msgstr "Java forráskód fordítása..."
-
-#: ../Gui/ProjectConfigurationPropertyPanel.cs:61
-msgid "Executable"
-msgstr "Futtatható fájl"
-
-#: ../Gui/ProjectConfigurationPropertyPanel.cs:62
-msgid "Library"
-msgstr "Függvénykönyvtár"
-
-#: ../Gui/GlobalOptionsPanel.cs:34
-msgid "Javac"
-msgstr "Javac"
-
-#: ../Gui/GlobalOptionsPanel.cs:35
-msgid "Gcj"
-msgstr "Gcj"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:106
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:170
-msgid "<b>Code Generation</b>"
-msgstr "<b>Kódgenerálás</b>"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:167
-msgid "Compile _Target:"
-msgstr "Fordí_tási célpont:"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:177
-msgid "Define S_ymbols:"
-msgstr "_Szimbólumok definiálása:"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:189
-msgid "_Main Class:"
-msgstr "_Főosztály:"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:201
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:208
-msgid "Classpath:"
-msgstr "Osztály útvonala:"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:248
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:64
-msgid "<b>Compiler</b>"
-msgstr "<b>Fordító</b>"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:275
-msgid "gcj"
-msgstr "gcj"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:287
-msgid "javac"
-msgstr "javac"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:329
-msgid "<b>Options</b>"
-msgstr "<b>Beállítások</b>"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:356
-msgid "Enable _optimizations"
-msgstr "_Optimalizációk engedélyezése"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:367
-msgid "Emit _debugging information"
-msgstr "_Hibakeresési információk kijelzése"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:392
-msgid "<b>Warnings</b>"
-msgstr "<b>Figyelmeztetések</b>"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:419
-msgid "Generate warnings"
-msgstr "Figyelmeztetések generálása"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:430
-msgid "Enable deprecation warnings"
-msgstr "Helytelen kódhasználat esetén figyelmeztessen"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:441
-msgid "Treat warnings as _errors"
-msgstr "Figy_elmeztetések kezelése hibaként"
-
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:131
-msgid "Compiler command:"
-msgstr "A fordító parancssora:"
-
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:142
-msgid "IKVM path:"
-msgstr "IKVM útvonala:"
-
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:151
-msgid "Java compiler:"
-msgstr "Java fordító:"
-
-#: ../IKVMCompilerManager.cs:132
-msgid "Generating {0} reference stub ..."
-msgstr "{0} referenciacsonk generálása..."
-
-#: ../IKVMCompilerManager.cs:163
-msgid "Generating assembly ..."
-msgstr "Assembly kód generálása..."
-
-#: ../IKVMCompilerManager.cs:209
-msgid "Compiling Java source code ..."
-msgstr "Java forráskód fordítása..."
diff --git a/extras/JavaBinding/po/id.po b/extras/JavaBinding/po/id.po
deleted file mode 100644
index b884a5a6a3..0000000000
--- a/extras/JavaBinding/po/id.po
+++ /dev/null
@@ -1,280 +0,0 @@
-# Indonesian MonoDevelop translation.
-# Copyright (C) 2007 Fajrin Azis
-# This file is distributed under the same license as the PACKAGE package.
-# Fajrin Azis <fajrin_azis_kudo@yahoo.co.id>, 2007.
-#
-#, fuzzy
-msgid ""
-msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2009-03-04 18:11:10-0500\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: Fajrin Azis <fajrin_azis_kudo@yahoo.co.id>\n"
-"Language-Team: Indonesian <id@li.org>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
-
-#: ../templates/EmptyJavaFile.xft.xml:4
-msgid "Empty File"
-msgstr "File Kosong"
-
-#: ../templates/EmptyJavaFile.xft.xml:6
-msgid "General"
-msgstr "General"
-
-#: ../templates/EmptyJavaFile.xft.xml:8
-msgid "Creates an empty Java file."
-msgstr "Buat file Java kosong."
-
-#: ../templates/EmptyJavaProject.xpt.xml:7
-msgid "Empty Project"
-msgstr "Proyek Kosong"
-
-#: ../templates/EmptyJavaProject.xpt.xml:8
-#: ../templates/IkvmConsoleApplicationProject.xpt.xml:8
-#: ../templates/IkvmGladeApplicationProject.xpt.xml:8
-#: ../templates/IkvmGnomeApplicationProject.xpt.xml:8
-#: ../templates/IkvmGtkApplicationProject.xpt.xml:8
-#: ../templates/IkvmLibraryProject.xpt.xml:8
-#: ../templates/JavaApplicationProject.xpt.xml:8
-#: ../templates/JavaConsoleApplicationProject.xpt.xml:8
-#: ../JavaBinding.addin.xml:64
-msgid "Java"
-msgstr "Java"
-
-#: ../templates/EmptyJavaProject.xpt.xml:11
-msgid "Creates an empty Java solution."
-msgstr "Buat solusi Java kosong"
-
-#: ../templates/IkvmConsoleApplicationProject.xpt.xml:7
-msgid "IKVM Console Project"
-msgstr "Proyek Konsol IKVM"
-
-#: ../templates/IkvmConsoleApplicationProject.xpt.xml:11
-msgid "Create a console Java project with IKVM"
-msgstr "Buat proyek Java konsol dengan IKVM"
-
-#: ../templates/IkvmGladeApplicationProject.xpt.xml:7
-msgid "IKVM Glade# Project"
-msgstr "Proyek IKVM Glade#"
-
-#: ../templates/IkvmGladeApplicationProject.xpt.xml:11
-msgid "Create a Glade# Java project with IKVM"
-msgstr "Buat proyek Glade# Java dengan IKVM"
-
-#: ../templates/IkvmGnomeApplicationProject.xpt.xml:7
-msgid "IKVM Gnome# Project"
-msgstr "Proyek IKVM Gnome#"
-
-#: ../templates/IkvmGnomeApplicationProject.xpt.xml:11
-msgid "Create a Gnome# Java project with IKVM"
-msgstr "Buat proyek Gnome# Java dengan IKVM"
-
-#: ../templates/IkvmGtkApplicationProject.xpt.xml:7
-msgid "IKVM Gtk# Project"
-msgstr "Proyek IKVM Gtk#"
-
-#: ../templates/IkvmGtkApplicationProject.xpt.xml:11
-msgid "Create a Gtk# Java project with IKVM"
-msgstr "Buat proyek Gtk# Java dengan IKVM"
-
-#: ../templates/IkvmLibraryProject.xpt.xml:7
-msgid "IKVM Library"
-msgstr "IKVM Library"
-
-#: ../templates/IkvmLibraryProject.xpt.xml:11
-msgid "Create a Java library with IKVM"
-msgstr "Buat Java library dengan IKVM"
-
-#: ../templates/JavaApplet.xft.xml:4
-msgid "AWT Applet"
-msgstr "AWT Applet"
-
-#: ../templates/JavaApplet.xft.xml:6 ../templates/JavaApplication.xft.xml:6
-#: ../templates/JavaDialog.xft.xml:6 ../templates/JavaFrame.xft.xml:6
-#: ../templates/JavaOKDialog.xft.xml:6 ../templates/JavaPanel.xft.xml:6
-msgid "AWT"
-msgstr ""
-
-#: ../templates/JavaApplet.xft.xml:8
-msgid "Creates a Java AWT Applet"
-msgstr "Buat Java AWT Applet"
-
-#: ../templates/JavaApplicationProject.xpt.xml:7
-msgid "AWT Project"
-msgstr "Proyek AWT"
-
-#: ../templates/JavaApplicationProject.xpt.xml:11
-msgid "Creates a Java AWT project."
-msgstr "Buat proyek Java AWT"
-
-#: ../templates/JavaApplication.xft.xml:4
-msgid "AWT Application"
-msgstr "Aplikasi AWT"
-
-#: ../templates/JavaApplication.xft.xml:8
-msgid "Creates a Java AWT application."
-msgstr "Buat aplikasi Java AWT"
-
-#: ../templates/JavaConsoleApplicationProject.xpt.xml:7
-msgid "Console Project"
-msgstr "Proyek Konsol"
-
-#: ../templates/JavaConsoleApplicationProject.xpt.xml:11
-msgid "Create a console Java project"
-msgstr "Buat proyek Java konsol"
-
-#: ../templates/JavaDialog.xft.xml:4
-msgid "Java AWT Dialog"
-msgstr "Dialog Java AWT"
-
-#: ../templates/JavaDialog.xft.xml:8
-msgid "Creates an AWT dialog."
-msgstr "Buat dialog AWT"
-
-#: ../templates/JavaFrame.xft.xml:4
-msgid "AWT Frame"
-msgstr "AWT Frame"
-
-#: ../templates/JavaFrame.xft.xml:8
-msgid "Creates a Java AWT Frame"
-msgstr "Buat Java AWT Frame"
-
-#: ../templates/JavaOKDialog.xft.xml:4
-msgid "AWT OK Dialog"
-msgstr "Dialog OK AWT"
-
-#: ../templates/JavaOKDialog.xft.xml:8
-msgid "Creates a Java AWT OK Dialog."
-msgstr "Buat Dialog OK Java AWT"
-
-#: ../templates/JavaPanel.xft.xml:4
-msgid "AWT Panel"
-msgstr "Panel AWT"
-
-#: ../templates/JavaPanel.xft.xml:8
-msgid "Creates a Java AWT panel."
-msgstr "Buat panel Java AWT"
-
-#: ../JavaBinding.addin.xml:27
-msgid "Java Files"
-msgstr "Java Files"
-
-#: ../JavaBinding.addin.xml:55
-msgid "Code Generation"
-msgstr "Generasi Code"
-
-#: ../JavaBinding.addin.xml:58
-msgid "Output"
-msgstr "Output"
-
-#: ../JavaBinding.addin.xml:76
-#, fuzzy
-msgid "Java source code"
-msgstr "Compiling Java source code ..."
-
-#: ../Gui/ProjectConfigurationPropertyPanel.cs:61
-msgid "Executable"
-msgstr "Executable"
-
-#: ../Gui/ProjectConfigurationPropertyPanel.cs:62
-msgid "Library"
-msgstr "Library"
-
-#: ../Gui/GlobalOptionsPanel.cs:34
-msgid "Javac"
-msgstr "Javac"
-
-#: ../Gui/GlobalOptionsPanel.cs:35
-msgid "Gcj"
-msgstr "Gcj"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:106
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:170
-msgid "<b>Code Generation</b>"
-msgstr "<b>Code Generation</b>"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:167
-msgid "Compile _Target:"
-msgstr "Compile _Target:"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:177
-msgid "Define S_ymbols:"
-msgstr "Menjelaskan S_imbol:"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:189
-msgid "_Main Class:"
-msgstr "_Main Class:"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:201
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:208
-msgid "Classpath:"
-msgstr "Classpath:"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:248
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:64
-msgid "<b>Compiler</b>"
-msgstr "<b>Compiler</b>"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:275
-msgid "gcj"
-msgstr "gcj"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:287
-msgid "javac"
-msgstr "javac"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:329
-msgid "<b>Options</b>"
-msgstr "<b>Opsi</b>"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:356
-msgid "Enable _optimizations"
-msgstr "Aktifkan _optimisasi"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:367
-msgid "Emit _debugging information"
-msgstr "Emit _debugging information"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:392
-msgid "<b>Warnings</b>"
-msgstr "<b>Peringatan</b>"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:419
-msgid "Generate warnings"
-msgstr "Hasilkan peringatan"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:430
-msgid "Enable deprecation warnings"
-msgstr "Aktifkan peringatan protes"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:441
-msgid "Treat warnings as _errors"
-msgstr "Perlakukan peringatan sebagai k_esalahan"
-
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:131
-msgid "Compiler command:"
-msgstr "Compiler command:"
-
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:142
-msgid "IKVM path:"
-msgstr "IKVM path:"
-
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:151
-msgid "Java compiler:"
-msgstr "Java compiler:"
-
-#: ../IKVMCompilerManager.cs:132
-msgid "Generating {0} reference stub ..."
-msgstr "Generating {0} reference stub ..."
-
-#: ../IKVMCompilerManager.cs:163
-msgid "Generating assembly ..."
-msgstr "Generating assembly ..."
-
-#: ../IKVMCompilerManager.cs:209
-msgid "Compiling Java source code ..."
-msgstr "Compiling Java source code ..."
diff --git a/extras/JavaBinding/po/it.po b/extras/JavaBinding/po/it.po
deleted file mode 100644
index 748a964dc0..0000000000
--- a/extras/JavaBinding/po/it.po
+++ /dev/null
@@ -1,293 +0,0 @@
-# ITALIAN translation of MonoDevelop.
-# Copyright (C) 2005 THE MonoDevelop's COPYRIGHT HOLDER.
-# This file is distributed under the same license as the MonoDevelop package.
-# Alberto Paro <alberto@paro.homeunix.org>, 2005
-# Milo Casagrande <milo_casagrande@yahoo.it>, 2006-2007
-#
-# Piccolo glossario:
-# item -> elemento (me lo dimentico sempre :)
-# pattern -> criterio
-# match -> corrispondenza
-# target -> obiettivo
-# dock -> invariato (da wikipedia it.wikipedia.org/wiki/Dock, benché qui sia riferito la Mac)
-# to deploy -> produrre, mettere in produzione
-# to build -> generare, opzione di generazione
-#
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: monodevelop\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2009-03-04 18:11:10-0500\n"
-"PO-Revision-Date: 2007-09-24 23:50+0200\n"
-"Last-Translator: Milo Casagrande <milo_casagrande@yahoo.it>\n"
-"Language-Team: Italian <tp@lists.linux.it>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-forms: nplurals=2; plural=(n != 1);\n"
-
-#: ../templates/EmptyJavaFile.xft.xml:4
-msgid "Empty File"
-msgstr "File vuoto"
-
-#: ../templates/EmptyJavaFile.xft.xml:6
-msgid "General"
-msgstr ""
-
-#: ../templates/EmptyJavaFile.xft.xml:8
-msgid "Creates an empty Java file."
-msgstr "Crea un file Java vuoto"
-
-#: ../templates/EmptyJavaProject.xpt.xml:7
-msgid "Empty Project"
-msgstr "Progetto vuoto"
-
-#: ../templates/EmptyJavaProject.xpt.xml:8
-#: ../templates/IkvmConsoleApplicationProject.xpt.xml:8
-#: ../templates/IkvmGladeApplicationProject.xpt.xml:8
-#: ../templates/IkvmGnomeApplicationProject.xpt.xml:8
-#: ../templates/IkvmGtkApplicationProject.xpt.xml:8
-#: ../templates/IkvmLibraryProject.xpt.xml:8
-#: ../templates/JavaApplicationProject.xpt.xml:8
-#: ../templates/JavaConsoleApplicationProject.xpt.xml:8
-#: ../JavaBinding.addin.xml:64
-msgid "Java"
-msgstr "Java"
-
-#: ../templates/EmptyJavaProject.xpt.xml:11
-msgid "Creates an empty Java solution."
-msgstr "Crea una soluzione Java vuota"
-
-#: ../templates/IkvmConsoleApplicationProject.xpt.xml:7
-msgid "IKVM Console Project"
-msgstr "Progetto console IKVM"
-
-#: ../templates/IkvmConsoleApplicationProject.xpt.xml:11
-msgid "Create a console Java project with IKVM"
-msgstr "Crea un progetto Java per console con IKVM"
-
-#: ../templates/IkvmGladeApplicationProject.xpt.xml:7
-msgid "IKVM Glade# Project"
-msgstr "Progetto IKVM Glade#"
-
-#: ../templates/IkvmGladeApplicationProject.xpt.xml:11
-msgid "Create a Glade# Java project with IKVM"
-msgstr "Crea un progetto Glade# Java con IKVM"
-
-#: ../templates/IkvmGnomeApplicationProject.xpt.xml:7
-msgid "IKVM Gnome# Project"
-msgstr "Progetto IKVM Gnome#"
-
-#: ../templates/IkvmGnomeApplicationProject.xpt.xml:11
-msgid "Create a Gnome# Java project with IKVM"
-msgstr "Crea un progetto Gnome# Java con IKVM"
-
-#: ../templates/IkvmGtkApplicationProject.xpt.xml:7
-msgid "IKVM Gtk# Project"
-msgstr "Progetto IKVM GTK#"
-
-#: ../templates/IkvmGtkApplicationProject.xpt.xml:11
-msgid "Create a Gtk# Java project with IKVM"
-msgstr "Crea un progetto GTK# Java con IKVM"
-
-#: ../templates/IkvmLibraryProject.xpt.xml:7
-msgid "IKVM Library"
-msgstr "Libreria IKVM"
-
-#: ../templates/IkvmLibraryProject.xpt.xml:11
-msgid "Create a Java library with IKVM"
-msgstr "Crea una libreria Java con IKVM"
-
-#: ../templates/JavaApplet.xft.xml:4
-msgid "AWT Applet"
-msgstr "Applet AWT"
-
-#: ../templates/JavaApplet.xft.xml:6 ../templates/JavaApplication.xft.xml:6
-#: ../templates/JavaDialog.xft.xml:6 ../templates/JavaFrame.xft.xml:6
-#: ../templates/JavaOKDialog.xft.xml:6 ../templates/JavaPanel.xft.xml:6
-msgid "AWT"
-msgstr ""
-
-#: ../templates/JavaApplet.xft.xml:8
-msgid "Creates a Java AWT Applet"
-msgstr "Crea un'applet Java AWT"
-
-#: ../templates/JavaApplicationProject.xpt.xml:7
-msgid "AWT Project"
-msgstr "Progetto AWT"
-
-#: ../templates/JavaApplicationProject.xpt.xml:11
-msgid "Creates a Java AWT project."
-msgstr "Crea un progetto Java AWT"
-
-#: ../templates/JavaApplication.xft.xml:4
-#, fuzzy
-msgid "AWT Application"
-msgstr "Applet AWT"
-
-#: ../templates/JavaApplication.xft.xml:8
-msgid "Creates a Java AWT application."
-msgstr "Crea un'applicazione Java AWT"
-
-#: ../templates/JavaConsoleApplicationProject.xpt.xml:7
-msgid "Console Project"
-msgstr "Progetto console"
-
-#: ../templates/JavaConsoleApplicationProject.xpt.xml:11
-msgid "Create a console Java project"
-msgstr "Crea un progetto Java per console"
-
-#: ../templates/JavaDialog.xft.xml:4
-msgid "Java AWT Dialog"
-msgstr "Dialogo Java AWT"
-
-#: ../templates/JavaDialog.xft.xml:8
-msgid "Creates an AWT dialog."
-msgstr "Crea un dialogo con AWT"
-
-#: ../templates/JavaFrame.xft.xml:4
-msgid "AWT Frame"
-msgstr "Frame AWT"
-
-#: ../templates/JavaFrame.xft.xml:8
-msgid "Creates a Java AWT Frame"
-msgstr "Crea un frame Java AWT"
-
-#: ../templates/JavaOKDialog.xft.xml:4
-msgid "AWT OK Dialog"
-msgstr "Dialogo AWT OK"
-
-#: ../templates/JavaOKDialog.xft.xml:8
-msgid "Creates a Java AWT OK Dialog."
-msgstr "Crea un dialogo Java AWT OK"
-
-#: ../templates/JavaPanel.xft.xml:4
-msgid "AWT Panel"
-msgstr "Pannello AWT"
-
-#: ../templates/JavaPanel.xft.xml:8
-msgid "Creates a Java AWT panel."
-msgstr "Crea un pannello Java AWT"
-
-#: ../JavaBinding.addin.xml:27
-msgid "Java Files"
-msgstr "File Java"
-
-#: ../JavaBinding.addin.xml:55
-msgid "Code Generation"
-msgstr "Generazione codice"
-
-#: ../JavaBinding.addin.xml:58
-msgid "Output"
-msgstr "Output"
-
-#: ../JavaBinding.addin.xml:76
-msgid "Java source code"
-msgstr ""
-
-#: ../Gui/ProjectConfigurationPropertyPanel.cs:61
-msgid "Executable"
-msgstr "Eseguibile"
-
-#: ../Gui/ProjectConfigurationPropertyPanel.cs:62
-msgid "Library"
-msgstr "Libreria"
-
-#: ../Gui/GlobalOptionsPanel.cs:34
-msgid "Javac"
-msgstr "javac"
-
-#: ../Gui/GlobalOptionsPanel.cs:35
-msgid "Gcj"
-msgstr "gcj"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:106
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:170
-#, fuzzy
-msgid "<b>Code Generation</b>"
-msgstr "Generazione codice"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:167
-msgid "Compile _Target:"
-msgstr "Obiettivo di compilazione:"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:177
-msgid "Define S_ymbols:"
-msgstr "Definisci s_imboli:"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:189
-msgid "_Main Class:"
-msgstr "Classe _principale:"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:201
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:208
-msgid "Classpath:"
-msgstr "Classpath"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:248
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:64
-msgid "<b>Compiler</b>"
-msgstr "<b>Compilatore</b>"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:275
-msgid "gcj"
-msgstr "gcj"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:287
-#, fuzzy
-msgid "javac"
-msgstr "javac"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:329
-msgid "<b>Options</b>"
-msgstr "<b>Opzioni</b>"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:356
-msgid "Enable _optimizations"
-msgstr "_Abilitare ottimizzazioni"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:367
-msgid "Emit _debugging information"
-msgstr "_Emettere informazioni di debug"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:392
-msgid "<b>Warnings</b>"
-msgstr "<b>Avvisi</b>"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:419
-msgid "Generate warnings"
-msgstr "Genera avvisi"
-
-# (NdT) non mi viene in mente una traduzione...
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:430
-msgid "Enable deprecation warnings"
-msgstr "Abilita avvisi deprecation"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:441
-msgid "Treat warnings as _errors"
-msgstr "_Gestire gli avvisi come errori"
-
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:131
-msgid "Compiler command:"
-msgstr "Comando del compilatore:"
-
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:142
-msgid "IKVM path:"
-msgstr "Percorso IKVM:"
-
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:151
-msgid "Java compiler:"
-msgstr "Compilatore Java:"
-
-#: ../IKVMCompilerManager.cs:132
-msgid "Generating {0} reference stub ..."
-msgstr ""
-
-#: ../IKVMCompilerManager.cs:163
-msgid "Generating assembly ..."
-msgstr ""
-
-#: ../IKVMCompilerManager.cs:209
-msgid "Compiling Java source code ..."
-msgstr ""
diff --git a/extras/JavaBinding/po/ja.po b/extras/JavaBinding/po/ja.po
deleted file mode 100644
index e6e542ef7a..0000000000
--- a/extras/JavaBinding/po/ja.po
+++ /dev/null
@@ -1,279 +0,0 @@
-# MonoDevelop ja_JP translation
-# Copyright (C) 2004 Atsushi Enomoto
-# This file is distributed under the same license as the PACKAGE package.
-# Atsushi Enomoto <atsushi@ximian.com>, 2004.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: MonoDevelop 0.3\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2009-03-04 18:11:10-0500\n"
-"PO-Revision-Date: 2015-01-06 09:06+0900\n"
-"Last-Translator: Akira Nakagawa <matyapiro31@gmail.com>\n"
-"Language-Team: Atsushi Enomoto <atsushi@ximian.com>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=2; plural=n != 1;\n"
-"X-Generator: Poedit 1.5.7\n"
-
-#: ../templates/EmptyJavaFile.xft.xml:4
-msgid "Empty File"
-msgstr "空のファイル"
-
-#: ../templates/EmptyJavaFile.xft.xml:6
-msgid "General"
-msgstr "全般"
-
-#: ../templates/EmptyJavaFile.xft.xml:8
-msgid "Creates an empty Java file."
-msgstr "空のJavaファイルを作成します"
-
-#: ../templates/EmptyJavaProject.xpt.xml:7
-msgid "Empty Project"
-msgstr "空のプロジェクト"
-
-#: ../templates/EmptyJavaProject.xpt.xml:8
-#: ../templates/IkvmConsoleApplicationProject.xpt.xml:8
-#: ../templates/IkvmGladeApplicationProject.xpt.xml:8
-#: ../templates/IkvmGnomeApplicationProject.xpt.xml:8
-#: ../templates/IkvmGtkApplicationProject.xpt.xml:8
-#: ../templates/IkvmLibraryProject.xpt.xml:8
-#: ../templates/JavaApplicationProject.xpt.xml:8
-#: ../templates/JavaConsoleApplicationProject.xpt.xml:8
-#: ../JavaBinding.addin.xml:64
-msgid "Java"
-msgstr "Java"
-
-#: ../templates/EmptyJavaProject.xpt.xml:11
-msgid "Creates an empty Java solution."
-msgstr "空のJavaソリューションを作成します"
-
-#: ../templates/IkvmConsoleApplicationProject.xpt.xml:7
-msgid "IKVM Console Project"
-msgstr "IKVMコンソール プロジェクト"
-
-#: ../templates/IkvmConsoleApplicationProject.xpt.xml:11
-msgid "Create a console Java project with IKVM"
-msgstr "ILVMを使用するコンソールJavaプロジェクトを作成します"
-
-#: ../templates/IkvmGladeApplicationProject.xpt.xml:7
-msgid "IKVM Glade# Project"
-msgstr "IKVM Glade#プロジェクト"
-
-#: ../templates/IkvmGladeApplicationProject.xpt.xml:11
-msgid "Create a Glade# Java project with IKVM"
-msgstr "IKVMを使用するGlade# Javaプロジェクト"
-
-#: ../templates/IkvmGnomeApplicationProject.xpt.xml:7
-msgid "IKVM Gnome# Project"
-msgstr "IKVM Gnome#プロジェクト"
-
-#: ../templates/IkvmGnomeApplicationProject.xpt.xml:11
-msgid "Create a Gnome# Java project with IKVM"
-msgstr "IKVMを使用するGnome# Javaプロジェクトを作成します"
-
-#: ../templates/IkvmGtkApplicationProject.xpt.xml:7
-msgid "IKVM Gtk# Project"
-msgstr "IKVM Gtk#プロジェクト"
-
-#: ../templates/IkvmGtkApplicationProject.xpt.xml:11
-msgid "Create a Gtk# Java project with IKVM"
-msgstr "IKVMを使用するGtk# Javaプロジェクト"
-
-#: ../templates/IkvmLibraryProject.xpt.xml:7
-msgid "IKVM Library"
-msgstr "IKVMライブラリ"
-
-#: ../templates/IkvmLibraryProject.xpt.xml:11
-msgid "Create a Java library with IKVM"
-msgstr "IKVMを使用するJavaライブラリを作成する"
-
-#: ../templates/JavaApplet.xft.xml:4
-msgid "AWT Applet"
-msgstr "AWT アプレット"
-
-#: ../templates/JavaApplet.xft.xml:6 ../templates/JavaApplication.xft.xml:6
-#: ../templates/JavaDialog.xft.xml:6 ../templates/JavaFrame.xft.xml:6
-#: ../templates/JavaOKDialog.xft.xml:6 ../templates/JavaPanel.xft.xml:6
-msgid "AWT"
-msgstr "AWT"
-
-#: ../templates/JavaApplet.xft.xml:8
-msgid "Creates a Java AWT Applet"
-msgstr "Java AWTアプレットを作成します"
-
-#: ../templates/JavaApplicationProject.xpt.xml:7
-msgid "AWT Project"
-msgstr "AWTプロジェクト"
-
-#: ../templates/JavaApplicationProject.xpt.xml:11
-msgid "Creates a Java AWT project."
-msgstr "Java AWTプロジェクトを作成します"
-
-#: ../templates/JavaApplication.xft.xml:4
-msgid "AWT Application"
-msgstr "AWT アプリケーション"
-
-#: ../templates/JavaApplication.xft.xml:8
-msgid "Creates a Java AWT application."
-msgstr "Java AWTアプリケーションを作成します"
-
-#: ../templates/JavaConsoleApplicationProject.xpt.xml:7
-msgid "Console Project"
-msgstr "コンソール プロジェクト"
-
-#: ../templates/JavaConsoleApplicationProject.xpt.xml:11
-msgid "Create a console Java project"
-msgstr "新しいコンソールJavaプロジェクトの作成"
-
-#: ../templates/JavaDialog.xft.xml:4
-msgid "Java AWT Dialog"
-msgstr "Java AWT ダイアログ"
-
-#: ../templates/JavaDialog.xft.xml:8
-msgid "Creates an AWT dialog."
-msgstr "AWTダイアログを作成します"
-
-#: ../templates/JavaFrame.xft.xml:4
-msgid "AWT Frame"
-msgstr "AWT フレーム"
-
-#: ../templates/JavaFrame.xft.xml:8
-msgid "Creates a Java AWT Frame"
-msgstr "Java AWTフレームを作成します"
-
-#: ../templates/JavaOKDialog.xft.xml:4
-msgid "AWT OK Dialog"
-msgstr "AWT OKダイアログ"
-
-#: ../templates/JavaOKDialog.xft.xml:8
-msgid "Creates a Java AWT OK Dialog."
-msgstr "Java AWT OKダイアログを作成します"
-
-#: ../templates/JavaPanel.xft.xml:4
-msgid "AWT Panel"
-msgstr "AWT パネル"
-
-#: ../templates/JavaPanel.xft.xml:8
-msgid "Creates a Java AWT panel."
-msgstr "Java AWTパネルを作成します"
-
-#: ../JavaBinding.addin.xml:27
-msgid "Java Files"
-msgstr "Javaファイル"
-
-#: ../JavaBinding.addin.xml:55
-msgid "Code Generation"
-msgstr "コード生成方法"
-
-#: ../JavaBinding.addin.xml:58
-msgid "Output"
-msgstr "出力"
-
-#: ../JavaBinding.addin.xml:76
-msgid "Java source code"
-msgstr "java ソースコード"
-
-#: ../Gui/ProjectConfigurationPropertyPanel.cs:61
-msgid "Executable"
-msgstr "実行可能ファイル"
-
-#: ../Gui/ProjectConfigurationPropertyPanel.cs:62
-msgid "Library"
-msgstr "ライブラリ"
-
-#: ../Gui/GlobalOptionsPanel.cs:34
-msgid "Javac"
-msgstr "Javac"
-
-#: ../Gui/GlobalOptionsPanel.cs:35
-msgid "Gcj"
-msgstr "Gcj"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:106
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:170
-msgid "<b>Code Generation</b>"
-msgstr "<b>コード生成方法</b>"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:167
-msgid "Compile _Target:"
-msgstr "コンパイルのターゲット: (_T)"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:177
-msgid "Define S_ymbols:"
-msgstr "シンボルを定義: (_y)"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:189
-msgid "_Main Class:"
-msgstr "_Main クラス:"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:201
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:208
-msgid "Classpath:"
-msgstr "Classpath:"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:248
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:64
-msgid "<b>Compiler</b>"
-msgstr "<b>コンパイラ</b>"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:275
-msgid "gcj"
-msgstr "gcj"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:287
-msgid "javac"
-msgstr "javac"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:329
-msgid "<b>Options</b>"
-msgstr "<b>オプション</b>"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:356
-msgid "Enable _optimizations"
-msgstr "最適化を有効にする (_O)"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:367
-msgid "Emit _debugging information"
-msgstr "デバッグ情報の出力 (_D)"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:392
-msgid "<b>Warnings</b>"
-msgstr "<b>警告</b>"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:419
-msgid "Generate warnings"
-msgstr "警告を生成"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:430
-msgid "Enable deprecation warnings"
-msgstr "廃止機能の警告を有効にする"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:441
-msgid "Treat warnings as _errors"
-msgstr "警告をエラーとして扱う (_E)"
-
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:131
-msgid "Compiler command:"
-msgstr "コンパイラ コマンド:"
-
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:142
-msgid "IKVM path:"
-msgstr "IKVMのパス:"
-
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:151
-msgid "Java compiler:"
-msgstr "Javaコンパイラ:"
-
-#: ../IKVMCompilerManager.cs:132
-msgid "Generating {0} reference stub ..."
-msgstr "{0} 参照スタブを生成しています..."
-
-#: ../IKVMCompilerManager.cs:163
-msgid "Generating assembly ..."
-msgstr "アセンブリを生成しています..."
-
-#: ../IKVMCompilerManager.cs:209
-msgid "Compiling Java source code ..."
-msgstr "javaソースコードをコンパイルしています..."
diff --git a/extras/JavaBinding/po/messages.po b/extras/JavaBinding/po/messages.po
deleted file mode 100644
index 7f4e920e8b..0000000000
--- a/extras/JavaBinding/po/messages.po
+++ /dev/null
@@ -1,276 +0,0 @@
-msgid ""
-msgstr ""
-"Project-Id-Version: \n"
-"POT-Creation-Date: 2009-03-04 18:12:11-0500\n"
-"PO-Revision-Date: 2009-03-04 18:12:12-0500\n"
-"Last-Translator: Michael Hutchinson <mhutchinson@novell.com>\n"
-"Language-Team: \n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=utf-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"X-Generator: MonoDevelop Gettext addin\n"
-
-#: ../templates/EmptyJavaFile.xft.xml:4
-msgid "Empty File"
-msgstr ""
-
-#: ../templates/EmptyJavaFile.xft.xml:6
-msgid "General"
-msgstr ""
-
-#: ../templates/EmptyJavaFile.xft.xml:8
-msgid "Creates an empty Java file."
-msgstr ""
-
-#: ../templates/EmptyJavaProject.xpt.xml:7
-msgid "Empty Project"
-msgstr ""
-
-#: ../templates/EmptyJavaProject.xpt.xml:8
-#: ../templates/IkvmConsoleApplicationProject.xpt.xml:8
-#: ../templates/IkvmGladeApplicationProject.xpt.xml:8
-#: ../templates/IkvmGnomeApplicationProject.xpt.xml:8
-#: ../templates/IkvmGtkApplicationProject.xpt.xml:8
-#: ../templates/IkvmLibraryProject.xpt.xml:8
-#: ../templates/JavaApplicationProject.xpt.xml:8
-#: ../templates/JavaConsoleApplicationProject.xpt.xml:8
-#: ../JavaBinding.addin.xml:64
-msgid "Java"
-msgstr ""
-
-#: ../templates/EmptyJavaProject.xpt.xml:11
-msgid "Creates an empty Java solution."
-msgstr ""
-
-#: ../templates/IkvmConsoleApplicationProject.xpt.xml:7
-msgid "IKVM Console Project"
-msgstr ""
-
-#: ../templates/IkvmConsoleApplicationProject.xpt.xml:11
-msgid "Create a console Java project with IKVM"
-msgstr ""
-
-#: ../templates/IkvmGladeApplicationProject.xpt.xml:7
-msgid "IKVM Glade# Project"
-msgstr ""
-
-#: ../templates/IkvmGladeApplicationProject.xpt.xml:11
-msgid "Create a Glade# Java project with IKVM"
-msgstr ""
-
-#: ../templates/IkvmGnomeApplicationProject.xpt.xml:7
-msgid "IKVM Gnome# Project"
-msgstr ""
-
-#: ../templates/IkvmGnomeApplicationProject.xpt.xml:11
-msgid "Create a Gnome# Java project with IKVM"
-msgstr ""
-
-#: ../templates/IkvmGtkApplicationProject.xpt.xml:7
-msgid "IKVM Gtk# Project"
-msgstr ""
-
-#: ../templates/IkvmGtkApplicationProject.xpt.xml:11
-msgid "Create a Gtk# Java project with IKVM"
-msgstr ""
-
-#: ../templates/IkvmLibraryProject.xpt.xml:7
-msgid "IKVM Library"
-msgstr ""
-
-#: ../templates/IkvmLibraryProject.xpt.xml:11
-msgid "Create a Java library with IKVM"
-msgstr ""
-
-#: ../templates/JavaApplet.xft.xml:4
-msgid "AWT Applet"
-msgstr ""
-
-#: ../templates/JavaApplet.xft.xml:6
-#: ../templates/JavaApplication.xft.xml:6
-#: ../templates/JavaDialog.xft.xml:6
-#: ../templates/JavaFrame.xft.xml:6
-#: ../templates/JavaOKDialog.xft.xml:6
-#: ../templates/JavaPanel.xft.xml:6
-msgid "AWT"
-msgstr ""
-
-#: ../templates/JavaApplet.xft.xml:8
-msgid "Creates a Java AWT Applet"
-msgstr ""
-
-#: ../templates/JavaApplicationProject.xpt.xml:7
-msgid "AWT Project"
-msgstr ""
-
-#: ../templates/JavaApplicationProject.xpt.xml:11
-msgid "Creates a Java AWT project."
-msgstr ""
-
-#: ../templates/JavaApplication.xft.xml:4
-msgid "AWT Application"
-msgstr ""
-
-#: ../templates/JavaApplication.xft.xml:8
-msgid "Creates a Java AWT application."
-msgstr ""
-
-#: ../templates/JavaConsoleApplicationProject.xpt.xml:7
-msgid "Console Project"
-msgstr ""
-
-#: ../templates/JavaConsoleApplicationProject.xpt.xml:11
-msgid "Create a console Java project"
-msgstr ""
-
-#: ../templates/JavaDialog.xft.xml:4
-msgid "Java AWT Dialog"
-msgstr ""
-
-#: ../templates/JavaDialog.xft.xml:8
-msgid "Creates an AWT dialog."
-msgstr ""
-
-#: ../templates/JavaFrame.xft.xml:4
-msgid "AWT Frame"
-msgstr ""
-
-#: ../templates/JavaFrame.xft.xml:8
-msgid "Creates a Java AWT Frame"
-msgstr ""
-
-#: ../templates/JavaOKDialog.xft.xml:4
-msgid "AWT OK Dialog"
-msgstr ""
-
-#: ../templates/JavaOKDialog.xft.xml:8
-msgid "Creates a Java AWT OK Dialog."
-msgstr ""
-
-#: ../templates/JavaPanel.xft.xml:4
-msgid "AWT Panel"
-msgstr ""
-
-#: ../templates/JavaPanel.xft.xml:8
-msgid "Creates a Java AWT panel."
-msgstr ""
-
-#: ../JavaBinding.addin.xml:27
-msgid "Java Files"
-msgstr ""
-
-#: ../JavaBinding.addin.xml:55
-msgid "Code Generation"
-msgstr ""
-
-#: ../JavaBinding.addin.xml:58
-msgid "Output"
-msgstr ""
-
-#: ../JavaBinding.addin.xml:76
-msgid "Java source code"
-msgstr ""
-
-#: ../Gui/ProjectConfigurationPropertyPanel.cs:61
-msgid "Executable"
-msgstr ""
-
-#: ../Gui/ProjectConfigurationPropertyPanel.cs:62
-msgid "Library"
-msgstr ""
-
-#: ../Gui/GlobalOptionsPanel.cs:34
-msgid "Javac"
-msgstr ""
-
-#: ../Gui/GlobalOptionsPanel.cs:35
-msgid "Gcj"
-msgstr ""
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:106
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:170
-msgid "<b>Code Generation</b>"
-msgstr ""
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:167
-msgid "Compile _Target:"
-msgstr ""
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:177
-msgid "Define S_ymbols:"
-msgstr ""
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:189
-msgid "_Main Class:"
-msgstr ""
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:201
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:208
-msgid "Classpath:"
-msgstr ""
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:248
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:64
-msgid "<b>Compiler</b>"
-msgstr ""
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:275
-msgid "gcj"
-msgstr ""
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:287
-msgid "javac"
-msgstr ""
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:329
-msgid "<b>Options</b>"
-msgstr ""
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:356
-msgid "Enable _optimizations"
-msgstr ""
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:367
-msgid "Emit _debugging information"
-msgstr ""
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:392
-msgid "<b>Warnings</b>"
-msgstr ""
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:419
-msgid "Generate warnings"
-msgstr ""
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:430
-msgid "Enable deprecation warnings"
-msgstr ""
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:441
-msgid "Treat warnings as _errors"
-msgstr ""
-
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:131
-msgid "Compiler command:"
-msgstr ""
-
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:142
-msgid "IKVM path:"
-msgstr ""
-
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:151
-msgid "Java compiler:"
-msgstr ""
-
-#: ../IKVMCompilerManager.cs:132
-msgid "Generating {0} reference stub ..."
-msgstr ""
-
-#: ../IKVMCompilerManager.cs:163
-msgid "Generating assembly ..."
-msgstr ""
-
-#: ../IKVMCompilerManager.cs:209
-msgid "Compiling Java source code ..."
-msgstr ""
-
diff --git a/extras/JavaBinding/po/nl.po b/extras/JavaBinding/po/nl.po
deleted file mode 100644
index d297494e8d..0000000000
--- a/extras/JavaBinding/po/nl.po
+++ /dev/null
@@ -1,273 +0,0 @@
-msgid ""
-msgstr ""
-"Project-Id-Version: \n"
-"POT-Creation-Date: 2009-03-04 18:11:10-0500\n"
-"PO-Revision-Date: 2008-01-22 18:54:28+0100\n"
-"Last-Translator: André Offringa\n"
-"Language-Team: \n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"X-Generator: MonoDevelop.Gettext \n"
-
-#: ../templates/EmptyJavaFile.xft.xml:4
-msgid "Empty File"
-msgstr "Leeg bestand"
-
-#: ../templates/EmptyJavaFile.xft.xml:6
-msgid "General"
-msgstr "Algemeen"
-
-#: ../templates/EmptyJavaFile.xft.xml:8
-msgid "Creates an empty Java file."
-msgstr "CrMaakt een nieuw Java-bestand aan."
-
-#: ../templates/EmptyJavaProject.xpt.xml:7
-msgid "Empty Project"
-msgstr "Leeg project"
-
-#: ../templates/EmptyJavaProject.xpt.xml:8
-#: ../templates/IkvmConsoleApplicationProject.xpt.xml:8
-#: ../templates/IkvmGladeApplicationProject.xpt.xml:8
-#: ../templates/IkvmGnomeApplicationProject.xpt.xml:8
-#: ../templates/IkvmGtkApplicationProject.xpt.xml:8
-#: ../templates/IkvmLibraryProject.xpt.xml:8
-#: ../templates/JavaApplicationProject.xpt.xml:8
-#: ../templates/JavaConsoleApplicationProject.xpt.xml:8
-#: ../JavaBinding.addin.xml:64
-msgid "Java"
-msgstr "Java"
-
-#: ../templates/EmptyJavaProject.xpt.xml:11
-msgid "Creates an empty Java solution."
-msgstr "Maakt een lege Java-oplossing aan."
-
-#: ../templates/IkvmConsoleApplicationProject.xpt.xml:7
-msgid "IKVM Console Project"
-msgstr "IKVM Console-project"
-
-#: ../templates/IkvmConsoleApplicationProject.xpt.xml:11
-msgid "Create a console Java project with IKVM"
-msgstr "Maakt een Java console-project met IKVM aan"
-
-#: ../templates/IkvmGladeApplicationProject.xpt.xml:7
-msgid "IKVM Glade# Project"
-msgstr "IKVM Glade#-project"
-
-#: ../templates/IkvmGladeApplicationProject.xpt.xml:11
-msgid "Create a Glade# Java project with IKVM"
-msgstr "Maakt een Glade# Java-project met IKVM aan"
-
-#: ../templates/IkvmGnomeApplicationProject.xpt.xml:7
-msgid "IKVM Gnome# Project"
-msgstr "IKVM Gnome#-project"
-
-#: ../templates/IkvmGnomeApplicationProject.xpt.xml:11
-msgid "Create a Gnome# Java project with IKVM"
-msgstr "Maakt een Gnome# Java-project met IKVM aan"
-
-#: ../templates/IkvmGtkApplicationProject.xpt.xml:7
-msgid "IKVM Gtk# Project"
-msgstr "IKVM Gtk#-project"
-
-#: ../templates/IkvmGtkApplicationProject.xpt.xml:11
-msgid "Create a Gtk# Java project with IKVM"
-msgstr "Maakt een Gtk# Java-project met IKVM aan"
-
-#: ../templates/IkvmLibraryProject.xpt.xml:7
-msgid "IKVM Library"
-msgstr "IKVM-bibliotheek"
-
-#: ../templates/IkvmLibraryProject.xpt.xml:11
-msgid "Create a Java library with IKVM"
-msgstr "Maakt een nieuwe Java-bibliotheek met IKVM aan"
-
-#: ../templates/JavaApplet.xft.xml:4
-msgid "AWT Applet"
-msgstr "AWT applet"
-
-#: ../templates/JavaApplet.xft.xml:6 ../templates/JavaApplication.xft.xml:6
-#: ../templates/JavaDialog.xft.xml:6 ../templates/JavaFrame.xft.xml:6
-#: ../templates/JavaOKDialog.xft.xml:6 ../templates/JavaPanel.xft.xml:6
-msgid "AWT"
-msgstr "AWT"
-
-#: ../templates/JavaApplet.xft.xml:8
-msgid "Creates a Java AWT Applet"
-msgstr "Maakt een JAva AWT applet aan"
-
-#: ../templates/JavaApplicationProject.xpt.xml:7
-msgid "AWT Project"
-msgstr "AWT-project"
-
-#: ../templates/JavaApplicationProject.xpt.xml:11
-msgid "Creates a Java AWT project."
-msgstr "Maakt een Java AWT-project aan."
-
-#: ../templates/JavaApplication.xft.xml:4
-msgid "AWT Application"
-msgstr "AWT-applicatie"
-
-#: ../templates/JavaApplication.xft.xml:8
-msgid "Creates a Java AWT application."
-msgstr "Maakt een JAva AWT-applicatie aan."
-
-#: ../templates/JavaConsoleApplicationProject.xpt.xml:7
-msgid "Console Project"
-msgstr "Console-project"
-
-#: ../templates/JavaConsoleApplicationProject.xpt.xml:11
-msgid "Create a console Java project"
-msgstr "Maakt een Java console-project aan"
-
-#: ../templates/JavaDialog.xft.xml:4
-msgid "Java AWT Dialog"
-msgstr "Java AWT-dialoog"
-
-#: ../templates/JavaDialog.xft.xml:8
-msgid "Creates an AWT dialog."
-msgstr "Maakt een AWT-dialoog aan."
-
-#: ../templates/JavaFrame.xft.xml:4
-msgid "AWT Frame"
-msgstr "AWT-frame"
-
-#: ../templates/JavaFrame.xft.xml:8
-msgid "Creates a Java AWT Frame"
-msgstr "Maakt een JAva AWT-frame aan"
-
-#: ../templates/JavaOKDialog.xft.xml:4
-msgid "AWT OK Dialog"
-msgstr "AWT OK-dialoog"
-
-#: ../templates/JavaOKDialog.xft.xml:8
-msgid "Creates a Java AWT OK Dialog."
-msgstr "Maakt een Java AWT OK-dialoog aan."
-
-#: ../templates/JavaPanel.xft.xml:4
-msgid "AWT Panel"
-msgstr "AWT panel"
-
-#: ../templates/JavaPanel.xft.xml:8
-msgid "Creates a Java AWT panel."
-msgstr "Maakt een Java AWT panel aan."
-
-#: ../JavaBinding.addin.xml:27
-msgid "Java Files"
-msgstr "Java-bestanden"
-
-#: ../JavaBinding.addin.xml:55
-msgid "Code Generation"
-msgstr "Broncode-generatie"
-
-#: ../JavaBinding.addin.xml:58
-msgid "Output"
-msgstr "Uitvoer"
-
-#: ../JavaBinding.addin.xml:76
-#, fuzzy
-msgid "Java source code"
-msgstr "Bezig met compileren Java broncode ..."
-
-#: ../Gui/ProjectConfigurationPropertyPanel.cs:61
-msgid "Executable"
-msgstr "Uitvoerbaar bestand"
-
-#: ../Gui/ProjectConfigurationPropertyPanel.cs:62
-msgid "Library"
-msgstr "Bibliotheek"
-
-#: ../Gui/GlobalOptionsPanel.cs:34
-msgid "Javac"
-msgstr "Javac"
-
-#: ../Gui/GlobalOptionsPanel.cs:35
-msgid "Gcj"
-msgstr "Gcj"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:106
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:170
-msgid "<b>Code Generation</b>"
-msgstr "<b>Broncode-generatie</b>"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:167
-msgid "Compile _Target:"
-msgstr "Compileer _doel:"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:177
-msgid "Define S_ymbols:"
-msgstr "Definieer s_ymbolen:"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:189
-msgid "_Main Class:"
-msgstr "_Hoofd klasse:"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:201
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:208
-msgid "Classpath:"
-msgstr "Class-pad:"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:248
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:64
-msgid "<b>Compiler</b>"
-msgstr "<b>Compileer</b>"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:275
-msgid "gcj"
-msgstr "gcj"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:287
-msgid "javac"
-msgstr "javac"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:329
-msgid "<b>Options</b>"
-msgstr "<b>Opties</b>"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:356
-msgid "Enable _optimizations"
-msgstr "_Optimalisaties inschakelen"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:367
-msgid "Emit _debugging information"
-msgstr "Genereer _debug-informatie"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:392
-msgid "<b>Warnings</b>"
-msgstr "<b>Waarschuwingen</b>"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:419
-msgid "Generate warnings"
-msgstr "Genereer waarschuwingen"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:430
-msgid "Enable deprecation warnings"
-msgstr "Deprecation-waarschuwingen inschakelen"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:441
-msgid "Treat warnings as _errors"
-msgstr "Behandel waarschuwingen als _foutmeldingen"
-
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:131
-msgid "Compiler command:"
-msgstr "Compileer-commando:"
-
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:142
-msgid "IKVM path:"
-msgstr "IKVM-pad:"
-
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:151
-msgid "Java compiler:"
-msgstr "Java compiler:"
-
-#: ../IKVMCompilerManager.cs:132
-msgid "Generating {0} reference stub ..."
-msgstr "Bezig met genereren {0} referentie-stub ..."
-
-#: ../IKVMCompilerManager.cs:163
-msgid "Generating assembly ..."
-msgstr "Bezig met genereren assembly ..."
-
-#: ../IKVMCompilerManager.cs:209
-msgid "Compiling Java source code ..."
-msgstr "Bezig met compileren Java broncode ..."
diff --git a/extras/JavaBinding/po/pl.po b/extras/JavaBinding/po/pl.po
deleted file mode 100644
index 73f58a9884..0000000000
--- a/extras/JavaBinding/po/pl.po
+++ /dev/null
@@ -1,283 +0,0 @@
-# Polish translation of MonoDevelop.
-# Copyright (C) 2005 Marek Sieradzki <mootant@op.pl>
-# This file is distributed under the same license as the MonoDevelop package.
-# Marek Sieradzki <mootant@op.pl>, 2005.
-#
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: MonoDevelop 0.6\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2009-03-04 18:11:10-0500\n"
-"PO-Revision-Date: 2007-02-18 14:50+0100\n"
-"Last-Translator: Marek Sieradzki <marek.sieradzki@gmail.com>\n"
-"Language-Team: Polish <gnomepl@pandora.info.bielsko.pl>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=2; plural=n != 1;\n"
-
-#: ../templates/EmptyJavaFile.xft.xml:4
-msgid "Empty File"
-msgstr "Pusty plik"
-
-#: ../templates/EmptyJavaFile.xft.xml:6
-msgid "General"
-msgstr ""
-
-#: ../templates/EmptyJavaFile.xft.xml:8
-msgid "Creates an empty Java file."
-msgstr "Tworzy pusty plik Java."
-
-#: ../templates/EmptyJavaProject.xpt.xml:7
-msgid "Empty Project"
-msgstr "Pusty projekt"
-
-#: ../templates/EmptyJavaProject.xpt.xml:8
-#: ../templates/IkvmConsoleApplicationProject.xpt.xml:8
-#: ../templates/IkvmGladeApplicationProject.xpt.xml:8
-#: ../templates/IkvmGnomeApplicationProject.xpt.xml:8
-#: ../templates/IkvmGtkApplicationProject.xpt.xml:8
-#: ../templates/IkvmLibraryProject.xpt.xml:8
-#: ../templates/JavaApplicationProject.xpt.xml:8
-#: ../templates/JavaConsoleApplicationProject.xpt.xml:8
-#: ../JavaBinding.addin.xml:64
-msgid "Java"
-msgstr "Java"
-
-#: ../templates/EmptyJavaProject.xpt.xml:11
-msgid "Creates an empty Java solution."
-msgstr "Tworzy puste rozwiązanie Java."
-
-#: ../templates/IkvmConsoleApplicationProject.xpt.xml:7
-msgid "IKVM Console Project"
-msgstr "Projekt konsolowy IKVM"
-
-#: ../templates/IkvmConsoleApplicationProject.xpt.xml:11
-msgid "Create a console Java project with IKVM"
-msgstr "Tworzy konsolowy projekt Java z IKVM"
-
-#: ../templates/IkvmGladeApplicationProject.xpt.xml:7
-msgid "IKVM Glade# Project"
-msgstr "Projekt IKVM Glade#"
-
-#: ../templates/IkvmGladeApplicationProject.xpt.xml:11
-msgid "Create a Glade# Java project with IKVM"
-msgstr "Tworzy projekt Java Glade# z IKVM"
-
-#: ../templates/IkvmGnomeApplicationProject.xpt.xml:7
-msgid "IKVM Gnome# Project"
-msgstr "Projekt IKVM Gnome#"
-
-#: ../templates/IkvmGnomeApplicationProject.xpt.xml:11
-msgid "Create a Gnome# Java project with IKVM"
-msgstr "Tworzy projekt Java Gnome# z IKVM"
-
-#: ../templates/IkvmGtkApplicationProject.xpt.xml:7
-msgid "IKVM Gtk# Project"
-msgstr "Projekt IKVM Gtk#"
-
-#: ../templates/IkvmGtkApplicationProject.xpt.xml:11
-msgid "Create a Gtk# Java project with IKVM"
-msgstr "Tworzy projekt Java Gtk# z IKVM"
-
-#: ../templates/IkvmLibraryProject.xpt.xml:7
-msgid "IKVM Library"
-msgstr "Biblioteka IKVM"
-
-#: ../templates/IkvmLibraryProject.xpt.xml:11
-#, fuzzy
-msgid "Create a Java library with IKVM"
-msgstr "Tworzy projekt Java Gtk# z IKVM"
-
-#: ../templates/JavaApplet.xft.xml:4
-msgid "AWT Applet"
-msgstr "Aplet AWT"
-
-#: ../templates/JavaApplet.xft.xml:6 ../templates/JavaApplication.xft.xml:6
-#: ../templates/JavaDialog.xft.xml:6 ../templates/JavaFrame.xft.xml:6
-#: ../templates/JavaOKDialog.xft.xml:6 ../templates/JavaPanel.xft.xml:6
-msgid "AWT"
-msgstr ""
-
-#: ../templates/JavaApplet.xft.xml:8
-msgid "Creates a Java AWT Applet"
-msgstr "Tworzy aplet Java AWT"
-
-#: ../templates/JavaApplicationProject.xpt.xml:7
-msgid "AWT Project"
-msgstr "Projekt AWT"
-
-#: ../templates/JavaApplicationProject.xpt.xml:11
-msgid "Creates a Java AWT project."
-msgstr "Tworzy projekt Java AWT."
-
-#: ../templates/JavaApplication.xft.xml:4
-#, fuzzy
-msgid "AWT Application"
-msgstr "Aplet AWT"
-
-#: ../templates/JavaApplication.xft.xml:8
-msgid "Creates a Java AWT application."
-msgstr "Tworzy aplikację Java AWT."
-
-#: ../templates/JavaConsoleApplicationProject.xpt.xml:7
-msgid "Console Project"
-msgstr "Projekt konsolowy"
-
-#: ../templates/JavaConsoleApplicationProject.xpt.xml:11
-msgid "Create a console Java project"
-msgstr "Tworzy konsolowy projekt Java"
-
-#: ../templates/JavaDialog.xft.xml:4
-msgid "Java AWT Dialog"
-msgstr "Dialog Java AWT"
-
-#: ../templates/JavaDialog.xft.xml:8
-msgid "Creates an AWT dialog."
-msgstr "Tworzy dialog AWT."
-
-#: ../templates/JavaFrame.xft.xml:4
-msgid "AWT Frame"
-msgstr "Ramka AWT"
-
-#: ../templates/JavaFrame.xft.xml:8
-msgid "Creates a Java AWT Frame"
-msgstr "Tworzy ramkę Java AWT"
-
-#: ../templates/JavaOKDialog.xft.xml:4
-msgid "AWT OK Dialog"
-msgstr "Dialog AWT OK"
-
-#: ../templates/JavaOKDialog.xft.xml:8
-msgid "Creates a Java AWT OK Dialog."
-msgstr "Tworzy dialog Java AWT OK"
-
-#: ../templates/JavaPanel.xft.xml:4
-msgid "AWT Panel"
-msgstr "Panel AWT"
-
-#: ../templates/JavaPanel.xft.xml:8
-msgid "Creates a Java AWT panel."
-msgstr "Tworzy panel Java AWT"
-
-#: ../JavaBinding.addin.xml:27
-msgid "Java Files"
-msgstr "Pliki Java"
-
-#: ../JavaBinding.addin.xml:55
-msgid "Code Generation"
-msgstr "Generowanie kodu"
-
-#: ../JavaBinding.addin.xml:58
-msgid "Output"
-msgstr "Wyjście"
-
-#: ../JavaBinding.addin.xml:76
-msgid "Java source code"
-msgstr ""
-
-#: ../Gui/ProjectConfigurationPropertyPanel.cs:61
-msgid "Executable"
-msgstr "Plik wykonywalny"
-
-#: ../Gui/ProjectConfigurationPropertyPanel.cs:62
-msgid "Library"
-msgstr "Biblioteka"
-
-#: ../Gui/GlobalOptionsPanel.cs:34
-msgid "Javac"
-msgstr "Javac"
-
-#: ../Gui/GlobalOptionsPanel.cs:35
-msgid "Gcj"
-msgstr "Gcj"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:106
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:170
-#, fuzzy
-msgid "<b>Code Generation</b>"
-msgstr "Generowanie kodu"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:167
-msgid "Compile _Target:"
-msgstr "Kompiluj cel:"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:177
-msgid "Define S_ymbols:"
-msgstr "Definiuj s_ymbole:"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:189
-msgid "_Main Class:"
-msgstr "_Główna klasa:"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:201
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:208
-msgid "Classpath:"
-msgstr "Ścieżka klas:"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:248
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:64
-msgid "<b>Compiler</b>"
-msgstr "<b>Kompilator</b>"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:275
-msgid "gcj"
-msgstr "gcj"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:287
-#, fuzzy
-msgid "javac"
-msgstr "javac"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:329
-msgid "<b>Options</b>"
-msgstr "<b>Opcje</b>"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:356
-msgid "Enable _optimizations"
-msgstr "Włącz _optymalizacje"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:367
-msgid "Emit _debugging information"
-msgstr "Generuj informacje do debugowania"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:392
-msgid "<b>Warnings</b>"
-msgstr "<b>Ostrzeżenia</b>"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:419
-msgid "Generate warnings"
-msgstr "Generuj ostrzeżenia"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:430
-msgid "Enable deprecation warnings"
-msgstr "Włącz ostrzeżenia o przestarzałości"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:441
-msgid "Treat warnings as _errors"
-msgstr "Traktuj ostrzeżenia jako _błędy"
-
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:131
-msgid "Compiler command:"
-msgstr "Polecenie kompilatora:"
-
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:142
-msgid "IKVM path:"
-msgstr "Ścieżka do IKVM:"
-
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:151
-msgid "Java compiler:"
-msgstr "Kompilator Java:"
-
-#: ../IKVMCompilerManager.cs:132
-msgid "Generating {0} reference stub ..."
-msgstr ""
-
-#: ../IKVMCompilerManager.cs:163
-msgid "Generating assembly ..."
-msgstr ""
-
-#: ../IKVMCompilerManager.cs:209
-msgid "Compiling Java source code ..."
-msgstr ""
diff --git a/extras/JavaBinding/po/po.mdproj b/extras/JavaBinding/po/po.mdproj
deleted file mode 100644
index 2abb1364a4..0000000000
--- a/extras/JavaBinding/po/po.mdproj
+++ /dev/null
@@ -1,45 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <ItemType>TranslationProject</ItemType>
- <relPath>locale</relPath>
- <translations>
- <translations>
- <Translation isoCode="ca" />
- <Translation isoCode="cs" />
- <Translation isoCode="da" />
- <Translation isoCode="de" />
- <Translation isoCode="es" />
- <Translation isoCode="fr" />
- <Translation isoCode="gl" />
- <Translation isoCode="hu" />
- <Translation isoCode="id" />
- <Translation isoCode="it" />
- <Translation isoCode="ja" />
- <Translation isoCode="nl" />
- <Translation isoCode="pl" />
- <Translation isoCode="pt" />
- <Translation isoCode="pt_BR" />
- <Translation isoCode="ru" />
- <Translation isoCode="sl_SI" />
- <Translation isoCode="sv" />
- <Translation isoCode="tr" />
- <Translation isoCode="zh_CN" />
- <Translation isoCode="zh_TW" />
- </translations>
- </translations>
- <packageName>monodevelop-java</packageName>
- <outputType>RelativeToOutput</outputType>
- <ProjectGuid>{32285FB0-30D6-408F-8220-DFA21C56A10B}</ProjectGuid>
- <ProductVersion>9.0.21022</ProductVersion>
- <SchemaVersion>2.0</SchemaVersion>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' " />
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' " />
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' " />
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' " />
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' " />
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' " />
-</Project> \ No newline at end of file
diff --git a/extras/JavaBinding/po/pt.po b/extras/JavaBinding/po/pt.po
deleted file mode 100644
index cb4472c673..0000000000
--- a/extras/JavaBinding/po/pt.po
+++ /dev/null
@@ -1,285 +0,0 @@
-# MonoDevelop Portuguese (Portugal) / Português (Portugal) translation
-# Copyright (C) 2007
-#
-# This file is distributed under the same license as the MonoDevelop package.
-#
-# Vitor Hugo Barros <vitor.h.barros@gmail>, 2007
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: MonoDevelop 0.14\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2009-03-04 18:11:10-0500\n"
-"PO-Revision-Date: 2006-04-06 16:24-0300\n"
-"Last-Translator: Vitor Hugo Barros <vitor.h.barros@gmail>\n"
-"Language-Team: \n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=2; plural=n != 1;\n"
-
-#: ../templates/EmptyJavaFile.xft.xml:4
-msgid "Empty File"
-msgstr "Ficheiro vazio"
-
-#: ../templates/EmptyJavaFile.xft.xml:6
-msgid "General"
-msgstr ""
-
-#: ../templates/EmptyJavaFile.xft.xml:8
-msgid "Creates an empty Java file."
-msgstr "Cria um ficheiro de Java vazio."
-
-#: ../templates/EmptyJavaProject.xpt.xml:7
-msgid "Empty Project"
-msgstr "Projecto vazio"
-
-#: ../templates/EmptyJavaProject.xpt.xml:8
-#: ../templates/IkvmConsoleApplicationProject.xpt.xml:8
-#: ../templates/IkvmGladeApplicationProject.xpt.xml:8
-#: ../templates/IkvmGnomeApplicationProject.xpt.xml:8
-#: ../templates/IkvmGtkApplicationProject.xpt.xml:8
-#: ../templates/IkvmLibraryProject.xpt.xml:8
-#: ../templates/JavaApplicationProject.xpt.xml:8
-#: ../templates/JavaConsoleApplicationProject.xpt.xml:8
-#: ../JavaBinding.addin.xml:64
-msgid "Java"
-msgstr "Java"
-
-#: ../templates/EmptyJavaProject.xpt.xml:11
-msgid "Creates an empty Java solution."
-msgstr "Cria uma solução de Java vazia."
-
-#: ../templates/IkvmConsoleApplicationProject.xpt.xml:7
-#, fuzzy
-msgid "IKVM Console Project"
-msgstr "Projecto de consola IKVM"
-
-#: ../templates/IkvmConsoleApplicationProject.xpt.xml:11
-msgid "Create a console Java project with IKVM"
-msgstr "Cria um projecto de consola de Java com IKVM"
-
-#: ../templates/IkvmGladeApplicationProject.xpt.xml:7
-msgid "IKVM Glade# Project"
-msgstr "Projecto Glade# IKVM"
-
-#: ../templates/IkvmGladeApplicationProject.xpt.xml:11
-msgid "Create a Glade# Java project with IKVM"
-msgstr "Cria um projecto Java Glade# com IKVM"
-
-#: ../templates/IkvmGnomeApplicationProject.xpt.xml:7
-msgid "IKVM Gnome# Project"
-msgstr "Projecto Gnome# IKVM"
-
-#: ../templates/IkvmGnomeApplicationProject.xpt.xml:11
-msgid "Create a Gnome# Java project with IKVM"
-msgstr "Criar um projecto Java Gnome# com IKVM"
-
-#: ../templates/IkvmGtkApplicationProject.xpt.xml:7
-msgid "IKVM Gtk# Project"
-msgstr "Projecto Gtk# IKVM"
-
-#: ../templates/IkvmGtkApplicationProject.xpt.xml:11
-msgid "Create a Gtk# Java project with IKVM"
-msgstr "Criar um projecto Java Gtk# com IKVM"
-
-#: ../templates/IkvmLibraryProject.xpt.xml:7
-msgid "IKVM Library"
-msgstr "Biblioteca IKVM"
-
-#: ../templates/IkvmLibraryProject.xpt.xml:11
-msgid "Create a Java library with IKVM"
-msgstr "Criar uma biblioteca Java com IKVM"
-
-#: ../templates/JavaApplet.xft.xml:4
-msgid "AWT Applet"
-msgstr "Applet AWT"
-
-#: ../templates/JavaApplet.xft.xml:6 ../templates/JavaApplication.xft.xml:6
-#: ../templates/JavaDialog.xft.xml:6 ../templates/JavaFrame.xft.xml:6
-#: ../templates/JavaOKDialog.xft.xml:6 ../templates/JavaPanel.xft.xml:6
-msgid "AWT"
-msgstr ""
-
-#: ../templates/JavaApplet.xft.xml:8
-msgid "Creates a Java AWT Applet"
-msgstr "Cria um applet Java AWT"
-
-#: ../templates/JavaApplicationProject.xpt.xml:7
-msgid "AWT Project"
-msgstr "Projecto AWT"
-
-#: ../templates/JavaApplicationProject.xpt.xml:11
-msgid "Creates a Java AWT project."
-msgstr "Cria um projecto Java AWT"
-
-#: ../templates/JavaApplication.xft.xml:4
-#, fuzzy
-msgid "AWT Application"
-msgstr "Applet AWT"
-
-#: ../templates/JavaApplication.xft.xml:8
-msgid "Creates a Java AWT application."
-msgstr "Cria uma aplicação Java AWT."
-
-#: ../templates/JavaConsoleApplicationProject.xpt.xml:7
-#, fuzzy
-msgid "Console Project"
-msgstr "Projecto de consola"
-
-#: ../templates/JavaConsoleApplicationProject.xpt.xml:11
-msgid "Create a console Java project"
-msgstr "Cria um projecto Java de consola"
-
-#: ../templates/JavaDialog.xft.xml:4
-msgid "Java AWT Dialog"
-msgstr "Diálogo Java AWT"
-
-#: ../templates/JavaDialog.xft.xml:8
-msgid "Creates an AWT dialog."
-msgstr "Cria um diálogo AWT."
-
-#: ../templates/JavaFrame.xft.xml:4
-msgid "AWT Frame"
-msgstr "Frame AWT"
-
-#: ../templates/JavaFrame.xft.xml:8
-msgid "Creates a Java AWT Frame"
-msgstr "Cria uma frame Java AWT"
-
-#: ../templates/JavaOKDialog.xft.xml:4
-msgid "AWT OK Dialog"
-msgstr "Diálogo Aceitar de AWT"
-
-#: ../templates/JavaOKDialog.xft.xml:8
-msgid "Creates a Java AWT OK Dialog."
-msgstr "Cria um diálogo Aceitar de Java AWT"
-
-#: ../templates/JavaPanel.xft.xml:4
-msgid "AWT Panel"
-msgstr "Painel AWT"
-
-#: ../templates/JavaPanel.xft.xml:8
-msgid "Creates a Java AWT panel."
-msgstr "Cria um painel Java AWT."
-
-#: ../JavaBinding.addin.xml:27
-msgid "Java Files"
-msgstr "Ficheiros Java"
-
-#: ../JavaBinding.addin.xml:55
-msgid "Code Generation"
-msgstr "Geração de código"
-
-#: ../JavaBinding.addin.xml:58
-msgid "Output"
-msgstr "Output"
-
-#: ../JavaBinding.addin.xml:76
-msgid "Java source code"
-msgstr ""
-
-#: ../Gui/ProjectConfigurationPropertyPanel.cs:61
-msgid "Executable"
-msgstr "Executável"
-
-#: ../Gui/ProjectConfigurationPropertyPanel.cs:62
-msgid "Library"
-msgstr "Biblioteca"
-
-#: ../Gui/GlobalOptionsPanel.cs:34
-msgid "Javac"
-msgstr "Javac"
-
-#: ../Gui/GlobalOptionsPanel.cs:35
-msgid "Gcj"
-msgstr "Gcj"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:106
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:170
-#, fuzzy
-msgid "<b>Code Generation</b>"
-msgstr "Geração de código"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:167
-msgid "Compile _Target:"
-msgstr "Des_tino da compilação:"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:177
-msgid "Define S_ymbols:"
-msgstr "Definir _símbolos:"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:189
-msgid "_Main Class:"
-msgstr "Classe _principal:"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:201
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:208
-msgid "Classpath:"
-msgstr "Caminho da classe:"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:248
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:64
-msgid "<b>Compiler</b>"
-msgstr "<b>Compilador</b>"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:275
-msgid "gcj"
-msgstr "gcj"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:287
-#, fuzzy
-msgid "javac"
-msgstr "javac"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:329
-msgid "<b>Options</b>"
-msgstr "<b>Opções</b>"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:356
-msgid "Enable _optimizations"
-msgstr "Activar _optimizações"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:367
-msgid "Emit _debugging information"
-msgstr "Emitir informação de _depuração"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:392
-msgid "<b>Warnings</b>"
-msgstr "<b>Avisos</b>"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:419
-msgid "Generate warnings"
-msgstr "Gerar avisos"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:430
-msgid "Enable deprecation warnings"
-msgstr "Activar avisos de obsoletos"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:441
-msgid "Treat warnings as _errors"
-msgstr "Tratar avisos como _erros"
-
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:131
-msgid "Compiler command:"
-msgstr "Comando do compilador:"
-
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:142
-msgid "IKVM path:"
-msgstr "Caminho de IKVM:"
-
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:151
-msgid "Java compiler:"
-msgstr "Compilador de Java:"
-
-#: ../IKVMCompilerManager.cs:132
-msgid "Generating {0} reference stub ..."
-msgstr ""
-
-#: ../IKVMCompilerManager.cs:163
-msgid "Generating assembly ..."
-msgstr ""
-
-#: ../IKVMCompilerManager.cs:209
-msgid "Compiling Java source code ..."
-msgstr ""
diff --git a/extras/JavaBinding/po/pt_BR.po b/extras/JavaBinding/po/pt_BR.po
deleted file mode 100644
index 20df334843..0000000000
--- a/extras/JavaBinding/po/pt_BR.po
+++ /dev/null
@@ -1,283 +0,0 @@
-# MonoDevelop Portuguese (Brazilian) translation
-# Copyright (C) 2004, Andre Filipe de Assuncao e Brito <decko@noisemakers.org>
-# Copyright (C) 2004, Maurício de Lemos Rodrigues Collares Neto <mauricioc@gmail.com>
-# Copyright (C) 2006, Rafael "Monoman" Teixeira <rafaelteixeirabr@hotmail.com>
-# Copyright (C) 2007, Renato Felipe Atilio <renatoat@gmail.com>
-#
-# This file is distributed under the same license as the MonoDevelop package.
-#
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: MonoDevelop 0.10\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2009-03-04 18:11:10-0500\n"
-"PO-Revision-Date: 2007-12-14 21:15-0300\n"
-"Last-Translator: Renato Felipe Atilio <renatoat@gmail.com>\n"
-"Language-Team: pt_BR <gnome-l10n-br@listas.cipsga.org.br>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=2; plural=n != 1;\n"
-
-#: ../templates/EmptyJavaFile.xft.xml:4
-msgid "Empty File"
-msgstr "Arquivo Vazio"
-
-#: ../templates/EmptyJavaFile.xft.xml:6
-msgid "General"
-msgstr "Geral"
-
-#: ../templates/EmptyJavaFile.xft.xml:8
-msgid "Creates an empty Java file."
-msgstr "Cria um fonte Java vazio."
-
-#: ../templates/EmptyJavaProject.xpt.xml:7
-msgid "Empty Project"
-msgstr "Projeto Vazio"
-
-#: ../templates/EmptyJavaProject.xpt.xml:8
-#: ../templates/IkvmConsoleApplicationProject.xpt.xml:8
-#: ../templates/IkvmGladeApplicationProject.xpt.xml:8
-#: ../templates/IkvmGnomeApplicationProject.xpt.xml:8
-#: ../templates/IkvmGtkApplicationProject.xpt.xml:8
-#: ../templates/IkvmLibraryProject.xpt.xml:8
-#: ../templates/JavaApplicationProject.xpt.xml:8
-#: ../templates/JavaConsoleApplicationProject.xpt.xml:8
-#: ../JavaBinding.addin.xml:64
-msgid "Java"
-msgstr "Java"
-
-#: ../templates/EmptyJavaProject.xpt.xml:11
-msgid "Creates an empty Java solution."
-msgstr "Cria uma solução Java vazia."
-
-#: ../templates/IkvmConsoleApplicationProject.xpt.xml:7
-msgid "IKVM Console Project"
-msgstr "Projeto em Modo Texto com IKVM"
-
-#: ../templates/IkvmConsoleApplicationProject.xpt.xml:11
-msgid "Create a console Java project with IKVM"
-msgstr "Criar um novo projeto modo texto em Java com IKVM"
-
-#: ../templates/IkvmGladeApplicationProject.xpt.xml:7
-msgid "IKVM Glade# Project"
-msgstr "Projeto Glade# com IKVM"
-
-#: ../templates/IkvmGladeApplicationProject.xpt.xml:11
-msgid "Create a Glade# Java project with IKVM"
-msgstr "Criar um projeto Glade# em Java com IKVM"
-
-#: ../templates/IkvmGnomeApplicationProject.xpt.xml:7
-msgid "IKVM Gnome# Project"
-msgstr "Projeto Gnome# com IKVM"
-
-#: ../templates/IkvmGnomeApplicationProject.xpt.xml:11
-msgid "Create a Gnome# Java project with IKVM"
-msgstr "Cria um projeto Gnome# em Java com IKVM "
-
-#: ../templates/IkvmGtkApplicationProject.xpt.xml:7
-msgid "IKVM Gtk# Project"
-msgstr "Projeto Gtk# com IKVM"
-
-#: ../templates/IkvmGtkApplicationProject.xpt.xml:11
-msgid "Create a Gtk# Java project with IKVM"
-msgstr "Criar um projeto GTK# em Java com IKVM"
-
-#: ../templates/IkvmLibraryProject.xpt.xml:7
-msgid "IKVM Library"
-msgstr "Biblioteca IKVM"
-
-#: ../templates/IkvmLibraryProject.xpt.xml:11
-msgid "Create a Java library with IKVM"
-msgstr "Criar uma biblioteca Java com IKVM"
-
-#: ../templates/JavaApplet.xft.xml:4
-msgid "AWT Applet"
-msgstr "Applet AWT"
-
-#: ../templates/JavaApplet.xft.xml:6 ../templates/JavaApplication.xft.xml:6
-#: ../templates/JavaDialog.xft.xml:6 ../templates/JavaFrame.xft.xml:6
-#: ../templates/JavaOKDialog.xft.xml:6 ../templates/JavaPanel.xft.xml:6
-msgid "AWT"
-msgstr ""
-
-#: ../templates/JavaApplet.xft.xml:8
-msgid "Creates a Java AWT Applet"
-msgstr "Cria um Applet AWT em Java"
-
-#: ../templates/JavaApplicationProject.xpt.xml:7
-msgid "AWT Project"
-msgstr "Projeto AWT"
-
-#: ../templates/JavaApplicationProject.xpt.xml:11
-msgid "Creates a Java AWT project."
-msgstr "Cria um projeto AWT em Java."
-
-#: ../templates/JavaApplication.xft.xml:4
-msgid "AWT Application"
-msgstr "Aplicação AWT"
-
-#: ../templates/JavaApplication.xft.xml:8
-msgid "Creates a Java AWT application."
-msgstr "Cria uma aplicação AWT em Java."
-
-#: ../templates/JavaConsoleApplicationProject.xpt.xml:7
-msgid "Console Project"
-msgstr "Projeto Modo Texto"
-
-#: ../templates/JavaConsoleApplicationProject.xpt.xml:11
-msgid "Create a console Java project"
-msgstr "Criar um novo projeto modo texto em Java"
-
-#: ../templates/JavaDialog.xft.xml:4
-msgid "Java AWT Dialog"
-msgstr "Caixa de Diálogo.AWT em Java"
-
-#: ../templates/JavaDialog.xft.xml:8
-msgid "Creates an AWT dialog."
-msgstr "Cria uma caixa de diálogo AWT."
-
-#: ../templates/JavaFrame.xft.xml:4
-msgid "AWT Frame"
-msgstr "Quadro AWT"
-
-#: ../templates/JavaFrame.xft.xml:8
-msgid "Creates a Java AWT Frame"
-msgstr "Criar um novo quadro AWT em Java"
-
-#: ../templates/JavaOKDialog.xft.xml:4
-msgid "AWT OK Dialog"
-msgstr "Caixa de Diálogo.AWT com Botão OK"
-
-#: ../templates/JavaOKDialog.xft.xml:8
-msgid "Creates a Java AWT OK Dialog."
-msgstr "Cria uma caixa de diálogo AWT, com um botão de OK em Java."
-
-#: ../templates/JavaPanel.xft.xml:4
-msgid "AWT Panel"
-msgstr "Painel AWT"
-
-#: ../templates/JavaPanel.xft.xml:8
-msgid "Creates a Java AWT panel."
-msgstr "Cria um painel AWT em Java."
-
-#: ../JavaBinding.addin.xml:27
-msgid "Java Files"
-msgstr "Arquivos Java"
-
-#: ../JavaBinding.addin.xml:55
-msgid "Code Generation"
-msgstr "Geração de Código"
-
-#: ../JavaBinding.addin.xml:58
-msgid "Output"
-msgstr "Saida"
-
-#: ../JavaBinding.addin.xml:76
-#, fuzzy
-msgid "Java source code"
-msgstr "Compilando código fonte Java..."
-
-#: ../Gui/ProjectConfigurationPropertyPanel.cs:61
-msgid "Executable"
-msgstr "Executável"
-
-#: ../Gui/ProjectConfigurationPropertyPanel.cs:62
-msgid "Library"
-msgstr "Biblioteca"
-
-#: ../Gui/GlobalOptionsPanel.cs:34
-msgid "Javac"
-msgstr "Javac"
-
-#: ../Gui/GlobalOptionsPanel.cs:35
-msgid "Gcj"
-msgstr "Gcj"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:106
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:170
-msgid "<b>Code Generation</b>"
-msgstr "<b>Geração de Código</b>"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:167
-msgid "Compile _Target:"
-msgstr "Compilar a_lvo:"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:177
-msgid "Define S_ymbols:"
-msgstr "Definir _Símbolos:"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:189
-msgid "_Main Class:"
-msgstr "Classe Pri_ncipal:"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:201
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:208
-msgid "Classpath:"
-msgstr "Caminho para as classes:"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:248
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:64
-msgid "<b>Compiler</b>"
-msgstr "<b>Compilador</b>"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:275
-msgid "gcj"
-msgstr "gcj"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:287
-msgid "javac"
-msgstr "javac"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:329
-msgid "<b>Options</b>"
-msgstr "<b>Opções</b>"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:356
-msgid "Enable _optimizations"
-msgstr "Habilitar _optimizações"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:367
-msgid "Emit _debugging information"
-msgstr "Emitir informações de _depuração"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:392
-msgid "<b>Warnings</b>"
-msgstr "<b>Avisos</b>"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:419
-msgid "Generate warnings"
-msgstr "Gerar avisos"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:430
-msgid "Enable deprecation warnings"
-msgstr "Habilitar avisos de obsolescência"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:441
-msgid "Treat warnings as _errors"
-msgstr "Tratar avisos como _erros"
-
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:131
-msgid "Compiler command:"
-msgstr "Comando do compilador:"
-
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:142
-msgid "IKVM path:"
-msgstr "Caminho para o IKVM:"
-
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:151
-msgid "Java compiler:"
-msgstr "Compilador Java:"
-
-#: ../IKVMCompilerManager.cs:132
-msgid "Generating {0} reference stub ..."
-msgstr "Gerando esboço de referência {0}"
-
-#: ../IKVMCompilerManager.cs:163
-msgid "Generating assembly ..."
-msgstr "Gerando montagem ..."
-
-#: ../IKVMCompilerManager.cs:209
-msgid "Compiling Java source code ..."
-msgstr "Compilando código fonte Java..."
diff --git a/extras/JavaBinding/po/ru.po b/extras/JavaBinding/po/ru.po
deleted file mode 100644
index 03ee8130f6..0000000000
--- a/extras/JavaBinding/po/ru.po
+++ /dev/null
@@ -1,287 +0,0 @@
-# Russian translation of MonoDevelop.
-# Copyright (C) 2006 Maxim Krentovskiy <mkrentovskiy@gmail.com>
-# Copyright (C) 2007 Semyon Soldatov <simplexe@csharp.net.ru>
-# This file is distributed under the same license as the MonoDevelop package.
-# Maxim Krentovskiy <mkrentovskiy@gmail.com>, 2006
-# Semyon Soldatov <simplexe@csharp.net.ru>, 2007
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: MonoDevelop 0.13\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2009-03-04 18:11:10-0500\n"
-"PO-Revision-Date: 2007-10-29 10:54+0300\n"
-"Last-Translator: Daniel Abramov <ex@vingrad.ru>\n"
-"Language-Team: Russian <ru@li.org>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%"
-"10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)\n"
-"X-Poedit-Language: Russian\n"
-"X-Poedit-Country: RUSSIAN FEDERATION\n"
-"X-Poedit-SourceCharset: utf-8\n"
-
-#: ../templates/EmptyJavaFile.xft.xml:4
-msgid "Empty File"
-msgstr "Файл"
-
-#: ../templates/EmptyJavaFile.xft.xml:6
-msgid "General"
-msgstr ""
-
-#: ../templates/EmptyJavaFile.xft.xml:8
-msgid "Creates an empty Java file."
-msgstr "Создать файл на языке Java."
-
-#: ../templates/EmptyJavaProject.xpt.xml:7
-msgid "Empty Project"
-msgstr "Проект"
-
-#: ../templates/EmptyJavaProject.xpt.xml:8
-#: ../templates/IkvmConsoleApplicationProject.xpt.xml:8
-#: ../templates/IkvmGladeApplicationProject.xpt.xml:8
-#: ../templates/IkvmGnomeApplicationProject.xpt.xml:8
-#: ../templates/IkvmGtkApplicationProject.xpt.xml:8
-#: ../templates/IkvmLibraryProject.xpt.xml:8
-#: ../templates/JavaApplicationProject.xpt.xml:8
-#: ../templates/JavaConsoleApplicationProject.xpt.xml:8
-#: ../JavaBinding.addin.xml:64
-msgid "Java"
-msgstr "Java"
-
-#: ../templates/EmptyJavaProject.xpt.xml:11
-msgid "Creates an empty Java solution."
-msgstr "Создать решение на языке Java."
-
-#: ../templates/IkvmConsoleApplicationProject.xpt.xml:7
-msgid "IKVM Console Project"
-msgstr "Консольный проект IKVM"
-
-#: ../templates/IkvmConsoleApplicationProject.xpt.xml:11
-msgid "Create a console Java project with IKVM"
-msgstr "Создать консольный проект IKVM"
-
-#: ../templates/IkvmGladeApplicationProject.xpt.xml:7
-msgid "IKVM Glade# Project"
-msgstr "Проект IKVM Glade#"
-
-#: ../templates/IkvmGladeApplicationProject.xpt.xml:11
-msgid "Create a Glade# Java project with IKVM"
-msgstr "Создать проект на языке Java при помощи Glade# и IKVM"
-
-#: ../templates/IkvmGnomeApplicationProject.xpt.xml:7
-msgid "IKVM Gnome# Project"
-msgstr "Проект IKVM Gnome#"
-
-#: ../templates/IkvmGnomeApplicationProject.xpt.xml:11
-msgid "Create a Gnome# Java project with IKVM"
-msgstr "Создать проект на языке Java при помощи Gnome# и IKVM"
-
-#: ../templates/IkvmGtkApplicationProject.xpt.xml:7
-msgid "IKVM Gtk# Project"
-msgstr "Проект IKVM Gtk#"
-
-#: ../templates/IkvmGtkApplicationProject.xpt.xml:11
-msgid "Create a Gtk# Java project with IKVM"
-msgstr "Создать проект на языке Java при помощи Gtk# и IKVM"
-
-#: ../templates/IkvmLibraryProject.xpt.xml:7
-msgid "IKVM Library"
-msgstr "Библиотека IKVM"
-
-#: ../templates/IkvmLibraryProject.xpt.xml:11
-msgid "Create a Java library with IKVM"
-msgstr "Создать библиотеку на языке Java при помощи IKVM"
-
-#: ../templates/JavaApplet.xft.xml:4
-msgid "AWT Applet"
-msgstr "Апплет AWT"
-
-#: ../templates/JavaApplet.xft.xml:6 ../templates/JavaApplication.xft.xml:6
-#: ../templates/JavaDialog.xft.xml:6 ../templates/JavaFrame.xft.xml:6
-#: ../templates/JavaOKDialog.xft.xml:6 ../templates/JavaPanel.xft.xml:6
-msgid "AWT"
-msgstr ""
-
-#: ../templates/JavaApplet.xft.xml:8
-msgid "Creates a Java AWT Applet"
-msgstr "Создать Java-апплет на основе AWT"
-
-#: ../templates/JavaApplicationProject.xpt.xml:7
-msgid "AWT Project"
-msgstr "Проект AWT"
-
-#: ../templates/JavaApplicationProject.xpt.xml:11
-msgid "Creates a Java AWT project."
-msgstr "Создать проект на языке Java на основе AWT."
-
-#: ../templates/JavaApplication.xft.xml:4
-#, fuzzy
-msgid "AWT Application"
-msgstr "Апплет AWT"
-
-#: ../templates/JavaApplication.xft.xml:8
-msgid "Creates a Java AWT application."
-msgstr "Создать приложение на языке Java на основе AWT."
-
-#: ../templates/JavaConsoleApplicationProject.xpt.xml:7
-msgid "Console Project"
-msgstr "Консольный проект"
-
-#: ../templates/JavaConsoleApplicationProject.xpt.xml:11
-msgid "Create a console Java project"
-msgstr "Создать консольный проект Java"
-
-#: ../templates/JavaDialog.xft.xml:4
-msgid "Java AWT Dialog"
-msgstr "Диалог Java AWT"
-
-#: ../templates/JavaDialog.xft.xml:8
-msgid "Creates an AWT dialog."
-msgstr "Создать диалог AWT."
-
-#: ../templates/JavaFrame.xft.xml:4
-msgid "AWT Frame"
-msgstr "Фрейм AWT"
-
-#: ../templates/JavaFrame.xft.xml:8
-msgid "Creates a Java AWT Frame"
-msgstr "Создать фрейм Java AWT"
-
-#: ../templates/JavaOKDialog.xft.xml:4
-msgid "AWT OK Dialog"
-msgstr "Диалоговое окно (OK Dialog) AWT"
-
-#: ../templates/JavaOKDialog.xft.xml:8
-msgid "Creates a Java AWT OK Dialog."
-msgstr "Создать диалоговое окно (OK Dialog) Java AWT."
-
-#: ../templates/JavaPanel.xft.xml:4
-msgid "AWT Panel"
-msgstr "Панель AWT"
-
-#: ../templates/JavaPanel.xft.xml:8
-msgid "Creates a Java AWT panel."
-msgstr "Создать панель Java AWT"
-
-#: ../JavaBinding.addin.xml:27
-msgid "Java Files"
-msgstr "Файлы Java"
-
-#: ../JavaBinding.addin.xml:55
-msgid "Code Generation"
-msgstr "Генерация кода"
-
-#: ../JavaBinding.addin.xml:58
-msgid "Output"
-msgstr "Вывод"
-
-#: ../JavaBinding.addin.xml:76
-msgid "Java source code"
-msgstr ""
-
-#: ../Gui/ProjectConfigurationPropertyPanel.cs:61
-msgid "Executable"
-msgstr "Исполняемый файл"
-
-#: ../Gui/ProjectConfigurationPropertyPanel.cs:62
-msgid "Library"
-msgstr "Библиотека"
-
-#: ../Gui/GlobalOptionsPanel.cs:34
-msgid "Javac"
-msgstr "Javac"
-
-#: ../Gui/GlobalOptionsPanel.cs:35
-msgid "Gcj"
-msgstr "Gcj"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:106
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:170
-#, fuzzy
-msgid "<b>Code Generation</b>"
-msgstr "Генерация кода"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:167
-msgid "Compile _Target:"
-msgstr "Тип проекта:"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:177
-msgid "Define S_ymbols:"
-msgstr "Назначить _символы:"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:189
-msgid "_Main Class:"
-msgstr "_Основной класс:"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:201
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:208
-msgid "Classpath:"
-msgstr "Путь к классам:"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:248
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:64
-msgid "<b>Compiler</b>"
-msgstr "<b>Компилятор</b>"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:275
-msgid "gcj"
-msgstr "gcj"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:287
-#, fuzzy
-msgid "javac"
-msgstr "javac"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:329
-msgid "<b>Options</b>"
-msgstr "<b>Параметры</b>"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:356
-msgid "Enable _optimizations"
-msgstr "Разрешить опт_имизацию"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:367
-msgid "Emit _debugging information"
-msgstr "Включить от_ладочную информацию"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:392
-msgid "<b>Warnings</b>"
-msgstr "<b>Предупреждения</b>"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:419
-msgid "Generate warnings"
-msgstr "Включить предупреждения"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:430
-msgid "Enable deprecation warnings"
-msgstr "Предупреждать об использовании устаревших классов"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:441
-msgid "Treat warnings as _errors"
-msgstr "Трактовать предупреждения как _ошибки"
-
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:131
-msgid "Compiler command:"
-msgstr "Команда компиляции:"
-
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:142
-msgid "IKVM path:"
-msgstr "Путь к IKVM:"
-
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:151
-msgid "Java compiler:"
-msgstr "Компилятор Java:"
-
-#: ../IKVMCompilerManager.cs:132
-msgid "Generating {0} reference stub ..."
-msgstr ""
-
-#: ../IKVMCompilerManager.cs:163
-msgid "Generating assembly ..."
-msgstr ""
-
-#: ../IKVMCompilerManager.cs:209
-msgid "Compiling Java source code ..."
-msgstr ""
diff --git a/extras/JavaBinding/po/sl_SI.po b/extras/JavaBinding/po/sl_SI.po
deleted file mode 100644
index f7bc1d1f53..0000000000
--- a/extras/JavaBinding/po/sl_SI.po
+++ /dev/null
@@ -1,288 +0,0 @@
-# translation of sl_SI.po to Slovene
-# Slovenian translation of MonoDevelop
-# Copyright (C) 2006 Matej Urbas
-# This file is distributed under the same license as the MonoDevelop package.
-#
-# Matej Urbas <matej.urbas@gmail.com>, 2006.
-msgid ""
-msgstr ""
-"Project-Id-Version: sl_SI\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2009-03-04 18:11:10-0500\n"
-"PO-Revision-Date: 2006-11-18 01:38+0100\n"
-"Last-Translator: Matej Urbas <matej.urbas@gmail.com>\n"
-"Language-Team: Slovene\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=4; plural=n==1 ? 0 : n==2 ? 1 : (n>4 || n < 1) ? 3 : "
-"2;\n"
-"X-Generator: KBabel 1.11.4\n"
-
-#: ../templates/EmptyJavaFile.xft.xml:4
-msgid "Empty File"
-msgstr "Prazna datoteka"
-
-#: ../templates/EmptyJavaFile.xft.xml:6
-msgid "General"
-msgstr ""
-
-#: ../templates/EmptyJavaFile.xft.xml:8
-msgid "Creates an empty Java file."
-msgstr "Ustvari prazno javansko datoteko"
-
-#: ../templates/EmptyJavaProject.xpt.xml:7
-msgid "Empty Project"
-msgstr "Prazen projekt"
-
-#: ../templates/EmptyJavaProject.xpt.xml:8
-#: ../templates/IkvmConsoleApplicationProject.xpt.xml:8
-#: ../templates/IkvmGladeApplicationProject.xpt.xml:8
-#: ../templates/IkvmGnomeApplicationProject.xpt.xml:8
-#: ../templates/IkvmGtkApplicationProject.xpt.xml:8
-#: ../templates/IkvmLibraryProject.xpt.xml:8
-#: ../templates/JavaApplicationProject.xpt.xml:8
-#: ../templates/JavaConsoleApplicationProject.xpt.xml:8
-#: ../JavaBinding.addin.xml:64
-#, fuzzy
-msgid "Java"
-msgstr "Javac"
-
-#: ../templates/EmptyJavaProject.xpt.xml:11
-msgid "Creates an empty Java solution."
-msgstr "Ustvari prazno javansko rešitev"
-
-#: ../templates/IkvmConsoleApplicationProject.xpt.xml:7
-msgid "IKVM Console Project"
-msgstr "IKVM konzolni projekt"
-
-#: ../templates/IkvmConsoleApplicationProject.xpt.xml:11
-msgid "Create a console Java project with IKVM"
-msgstr "Ustvari konzolni projekt z IKVM"
-
-#: ../templates/IkvmGladeApplicationProject.xpt.xml:7
-msgid "IKVM Glade# Project"
-msgstr "IKVM Glade# projekt"
-
-#: ../templates/IkvmGladeApplicationProject.xpt.xml:11
-msgid "Create a Glade# Java project with IKVM"
-msgstr "Ustvari Glade# javanski projekt z IKVM"
-
-#: ../templates/IkvmGnomeApplicationProject.xpt.xml:7
-msgid "IKVM Gnome# Project"
-msgstr "IKVM Gnome# projekt"
-
-#: ../templates/IkvmGnomeApplicationProject.xpt.xml:11
-msgid "Create a Gnome# Java project with IKVM"
-msgstr "Ustvari nov Gnome# javanski projekt z IKVM"
-
-#: ../templates/IkvmGtkApplicationProject.xpt.xml:7
-msgid "IKVM Gtk# Project"
-msgstr "IKVM Gtk# projekt"
-
-#: ../templates/IkvmGtkApplicationProject.xpt.xml:11
-msgid "Create a Gtk# Java project with IKVM"
-msgstr "Ustvari nov Gtk# javanski projekt z IKVM"
-
-#: ../templates/IkvmLibraryProject.xpt.xml:7
-#, fuzzy
-msgid "IKVM Library"
-msgstr "Knjižnica (dll)"
-
-#: ../templates/IkvmLibraryProject.xpt.xml:11
-#, fuzzy
-msgid "Create a Java library with IKVM"
-msgstr "Ustvari nov Gtk# javanski projekt z IKVM"
-
-#: ../templates/JavaApplet.xft.xml:4
-msgid "AWT Applet"
-msgstr "AWT aplet"
-
-#: ../templates/JavaApplet.xft.xml:6 ../templates/JavaApplication.xft.xml:6
-#: ../templates/JavaDialog.xft.xml:6 ../templates/JavaFrame.xft.xml:6
-#: ../templates/JavaOKDialog.xft.xml:6 ../templates/JavaPanel.xft.xml:6
-msgid "AWT"
-msgstr ""
-
-#: ../templates/JavaApplet.xft.xml:8
-msgid "Creates a Java AWT Applet"
-msgstr "Ustvari nov javanski AWT applet"
-
-#: ../templates/JavaApplicationProject.xpt.xml:7
-msgid "AWT Project"
-msgstr "AWT projekt"
-
-#: ../templates/JavaApplicationProject.xpt.xml:11
-msgid "Creates a Java AWT project."
-msgstr "Ustvari nov javanski AWT projekt"
-
-#: ../templates/JavaApplication.xft.xml:4
-#, fuzzy
-msgid "AWT Application"
-msgstr "AWT aplet"
-
-#: ../templates/JavaApplication.xft.xml:8
-msgid "Creates a Java AWT application."
-msgstr "Ustvari nov javanski AWT program"
-
-#: ../templates/JavaConsoleApplicationProject.xpt.xml:7
-msgid "Console Project"
-msgstr "Konzolni projekt"
-
-#: ../templates/JavaConsoleApplicationProject.xpt.xml:11
-msgid "Create a console Java project"
-msgstr "UJstvari nov javanski konzolni projekt"
-
-#: ../templates/JavaDialog.xft.xml:4
-msgid "Java AWT Dialog"
-msgstr "Javanski AWT dialog"
-
-#: ../templates/JavaDialog.xft.xml:8
-msgid "Creates an AWT dialog."
-msgstr "Ustvari nov AWT dialog"
-
-#: ../templates/JavaFrame.xft.xml:4
-msgid "AWT Frame"
-msgstr "AWT okvir"
-
-#: ../templates/JavaFrame.xft.xml:8
-msgid "Creates a Java AWT Frame"
-msgstr "Ustvari nov javanski AWT okvir"
-
-#: ../templates/JavaOKDialog.xft.xml:4
-msgid "AWT OK Dialog"
-msgstr "AWT OK dialog"
-
-#: ../templates/JavaOKDialog.xft.xml:8
-msgid "Creates a Java AWT OK Dialog."
-msgstr "Ustvari nov javanski AWT OK dialog"
-
-#: ../templates/JavaPanel.xft.xml:4
-msgid "AWT Panel"
-msgstr "AWT plošča"
-
-#: ../templates/JavaPanel.xft.xml:8
-msgid "Creates a Java AWT panel."
-msgstr "Ustvari novo javansko AWT ploščo"
-
-#: ../JavaBinding.addin.xml:27
-#, fuzzy
-msgid "Java Files"
-msgstr "Shrani datoteke"
-
-#: ../JavaBinding.addin.xml:55
-msgid "Code Generation"
-msgstr "Generator koda"
-
-#: ../JavaBinding.addin.xml:58
-msgid "Output"
-msgstr "Izhod"
-
-#: ../JavaBinding.addin.xml:76
-msgid "Java source code"
-msgstr ""
-
-#: ../Gui/ProjectConfigurationPropertyPanel.cs:61
-msgid "Executable"
-msgstr "Izvršilna datoteka (exe)"
-
-#: ../Gui/ProjectConfigurationPropertyPanel.cs:62
-msgid "Library"
-msgstr "Knjižnica (dll)"
-
-#: ../Gui/GlobalOptionsPanel.cs:34
-msgid "Javac"
-msgstr "Javac"
-
-#: ../Gui/GlobalOptionsPanel.cs:35
-msgid "Gcj"
-msgstr "Gcj"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:106
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:170
-#, fuzzy
-msgid "<b>Code Generation</b>"
-msgstr "Generator koda"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:167
-msgid "Compile _Target:"
-msgstr "_Tarča izgradnje:"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:177
-msgid "Define S_ymbols:"
-msgstr "Definiraj _simbole:"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:189
-msgid "_Main Class:"
-msgstr "_Vhodni razred:"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:201
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:208
-msgid "Classpath:"
-msgstr "Classpath:"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:248
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:64
-msgid "<b>Compiler</b>"
-msgstr "<b>Prevajalnik</b>"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:275
-msgid "gcj"
-msgstr "gcj"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:287
-#, fuzzy
-msgid "javac"
-msgstr "javac"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:329
-msgid "<b>Options</b>"
-msgstr "<b>Nastavitve</b>"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:356
-msgid "Enable _optimizations"
-msgstr "Omogoči _optimizacije"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:367
-msgid "Emit _debugging information"
-msgstr "Dodaj informacije za raz_hroščevanje"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:392
-msgid "<b>Warnings</b>"
-msgstr "<b>Opozorila</b>"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:419
-msgid "Generate warnings"
-msgstr "Ustvari opozorila"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:430
-msgid "Enable deprecation warnings"
-msgstr "Omogoči 'deprecation' opozorila"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:441
-msgid "Treat warnings as _errors"
-msgstr "Obravnavaj opozorila kot _napake"
-
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:131
-msgid "Compiler command:"
-msgstr "Ukaz prevajalniku:"
-
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:142
-msgid "IKVM path:"
-msgstr "IKVM pot:"
-
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:151
-msgid "Java compiler:"
-msgstr "Java prevajalnik:"
-
-#: ../IKVMCompilerManager.cs:132
-msgid "Generating {0} reference stub ..."
-msgstr ""
-
-#: ../IKVMCompilerManager.cs:163
-msgid "Generating assembly ..."
-msgstr ""
-
-#: ../IKVMCompilerManager.cs:209
-msgid "Compiling Java source code ..."
-msgstr ""
diff --git a/extras/JavaBinding/po/sv.po b/extras/JavaBinding/po/sv.po
deleted file mode 100644
index d03e3cffb4..0000000000
--- a/extras/JavaBinding/po/sv.po
+++ /dev/null
@@ -1,298 +0,0 @@
-# Swedish translation for MonoDevelop.
-# Copyright (C) 2007 Free Software Foundation, Inc.
-# This file is distributed under the same license as the monodevelop package.
-# Daniel Nylander <po@danielnylander.se>, 2007.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: monodevelop\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2009-03-04 18:11:10-0500\n"
-"PO-Revision-Date: 2007-10-01 22:12+0100\n"
-"Last-Translator: Daniel Nylander <po@danielnylander.se>\n"
-"Language-Team: Swedish <tp-sv@listor.tp-sv.se>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=2; plural=n != 1;\n"
-
-#: ../templates/EmptyJavaFile.xft.xml:4
-msgid "Empty File"
-msgstr "Tom fil"
-
-#: ../templates/EmptyJavaFile.xft.xml:6
-msgid "General"
-msgstr ""
-
-#: ../templates/EmptyJavaFile.xft.xml:8
-msgid "Creates an empty Java file."
-msgstr "Skapar en tom Java-fil."
-
-#: ../templates/EmptyJavaProject.xpt.xml:7
-msgid "Empty Project"
-msgstr "Tomt projekt"
-
-#: ../templates/EmptyJavaProject.xpt.xml:8
-#: ../templates/IkvmConsoleApplicationProject.xpt.xml:8
-#: ../templates/IkvmGladeApplicationProject.xpt.xml:8
-#: ../templates/IkvmGnomeApplicationProject.xpt.xml:8
-#: ../templates/IkvmGtkApplicationProject.xpt.xml:8
-#: ../templates/IkvmLibraryProject.xpt.xml:8
-#: ../templates/JavaApplicationProject.xpt.xml:8
-#: ../templates/JavaConsoleApplicationProject.xpt.xml:8
-#: ../JavaBinding.addin.xml:64
-msgid "Java"
-msgstr "Java"
-
-#: ../templates/EmptyJavaProject.xpt.xml:11
-msgid "Creates an empty Java solution."
-msgstr "Skapar en tom Java-lösning."
-
-#: ../templates/IkvmConsoleApplicationProject.xpt.xml:7
-#, fuzzy
-msgid "IKVM Console Project"
-msgstr "Konsollprojekt"
-
-#: ../templates/IkvmConsoleApplicationProject.xpt.xml:11
-msgid "Create a console Java project with IKVM"
-msgstr ""
-
-#: ../templates/IkvmGladeApplicationProject.xpt.xml:7
-msgid "IKVM Glade# Project"
-msgstr ""
-
-#: ../templates/IkvmGladeApplicationProject.xpt.xml:11
-msgid "Create a Glade# Java project with IKVM"
-msgstr ""
-
-#: ../templates/IkvmGnomeApplicationProject.xpt.xml:7
-#, fuzzy
-msgid "IKVM Gnome# Project"
-msgstr "Konsollprojekt"
-
-#: ../templates/IkvmGnomeApplicationProject.xpt.xml:11
-msgid "Create a Gnome# Java project with IKVM"
-msgstr ""
-
-#: ../templates/IkvmGtkApplicationProject.xpt.xml:7
-#, fuzzy
-msgid "IKVM Gtk# Project"
-msgstr "Tomt projekt"
-
-#: ../templates/IkvmGtkApplicationProject.xpt.xml:11
-msgid "Create a Gtk# Java project with IKVM"
-msgstr ""
-
-#: ../templates/IkvmLibraryProject.xpt.xml:7
-#, fuzzy
-msgid "IKVM Library"
-msgstr "Bibliotek"
-
-#: ../templates/IkvmLibraryProject.xpt.xml:11
-msgid "Create a Java library with IKVM"
-msgstr ""
-
-#: ../templates/JavaApplet.xft.xml:4
-msgid "AWT Applet"
-msgstr ""
-
-#: ../templates/JavaApplet.xft.xml:6 ../templates/JavaApplication.xft.xml:6
-#: ../templates/JavaDialog.xft.xml:6 ../templates/JavaFrame.xft.xml:6
-#: ../templates/JavaOKDialog.xft.xml:6 ../templates/JavaPanel.xft.xml:6
-msgid "AWT"
-msgstr ""
-
-#: ../templates/JavaApplet.xft.xml:8
-#, fuzzy
-msgid "Creates a Java AWT Applet"
-msgstr "Skapar en tom Java-fil."
-
-#: ../templates/JavaApplicationProject.xpt.xml:7
-#, fuzzy
-msgid "AWT Project"
-msgstr "Tomt projekt"
-
-#: ../templates/JavaApplicationProject.xpt.xml:11
-#, fuzzy
-msgid "Creates a Java AWT project."
-msgstr "Skapar en tom Java-fil."
-
-#: ../templates/JavaApplication.xft.xml:4
-msgid "AWT Application"
-msgstr ""
-
-#: ../templates/JavaApplication.xft.xml:8
-#, fuzzy
-msgid "Creates a Java AWT application."
-msgstr "Skapar en tom Java-lösning."
-
-#: ../templates/JavaConsoleApplicationProject.xpt.xml:7
-msgid "Console Project"
-msgstr "Konsollprojekt"
-
-#: ../templates/JavaConsoleApplicationProject.xpt.xml:11
-#, fuzzy
-msgid "Create a console Java project"
-msgstr "Konsollprojekt"
-
-#: ../templates/JavaDialog.xft.xml:4
-msgid "Java AWT Dialog"
-msgstr ""
-
-#: ../templates/JavaDialog.xft.xml:8
-#, fuzzy
-msgid "Creates an AWT dialog."
-msgstr "Skapar en tom Java-fil."
-
-#: ../templates/JavaFrame.xft.xml:4
-msgid "AWT Frame"
-msgstr ""
-
-#: ../templates/JavaFrame.xft.xml:8
-#, fuzzy
-msgid "Creates a Java AWT Frame"
-msgstr "Skapar en tom Java-fil."
-
-#: ../templates/JavaOKDialog.xft.xml:4
-msgid "AWT OK Dialog"
-msgstr ""
-
-#: ../templates/JavaOKDialog.xft.xml:8
-#, fuzzy
-msgid "Creates a Java AWT OK Dialog."
-msgstr "Skapar en tom Java-fil."
-
-#: ../templates/JavaPanel.xft.xml:4
-msgid "AWT Panel"
-msgstr ""
-
-#: ../templates/JavaPanel.xft.xml:8
-#, fuzzy
-msgid "Creates a Java AWT panel."
-msgstr "Skapar en tom Java-fil."
-
-#: ../JavaBinding.addin.xml:27
-#, fuzzy
-msgid "Java Files"
-msgstr "Java-filer"
-
-#: ../JavaBinding.addin.xml:55
-#, fuzzy
-msgid "Code Generation"
-msgstr "Kodgenerering"
-
-#: ../JavaBinding.addin.xml:58
-msgid "Output"
-msgstr "Utdata"
-
-#: ../JavaBinding.addin.xml:76
-msgid "Java source code"
-msgstr ""
-
-#: ../Gui/ProjectConfigurationPropertyPanel.cs:61
-msgid "Executable"
-msgstr "Körbar fil"
-
-#: ../Gui/ProjectConfigurationPropertyPanel.cs:62
-msgid "Library"
-msgstr "Bibliotek"
-
-#: ../Gui/GlobalOptionsPanel.cs:34
-msgid "Javac"
-msgstr "Javac"
-
-#: ../Gui/GlobalOptionsPanel.cs:35
-msgid "Gcj"
-msgstr "Gcj"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:106
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:170
-#, fuzzy
-msgid "<b>Code Generation</b>"
-msgstr "Kodgenerering"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:167
-#, fuzzy
-msgid "Compile _Target:"
-msgstr "Kommando för kompilator:"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:177
-msgid "Define S_ymbols:"
-msgstr ""
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:189
-msgid "_Main Class:"
-msgstr ""
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:201
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:208
-msgid "Classpath:"
-msgstr "Klassökväg:"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:248
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:64
-msgid "<b>Compiler</b>"
-msgstr "<b>Kompilator</b>"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:275
-msgid "gcj"
-msgstr "gcj"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:287
-#, fuzzy
-msgid "javac"
-msgstr "javac"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:329
-msgid "<b>Options</b>"
-msgstr "<b>Alternativ</b>"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:356
-msgid "Enable _optimizations"
-msgstr "Aktivera _optimeringar"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:367
-msgid "Emit _debugging information"
-msgstr ""
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:392
-msgid "<b>Warnings</b>"
-msgstr "<b>Varningar</b>"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:419
-msgid "Generate warnings"
-msgstr "Generera varningar"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:430
-#, fuzzy
-msgid "Enable deprecation warnings"
-msgstr "Generera varningar"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:441
-msgid "Treat warnings as _errors"
-msgstr "Behandla varningar som _fel"
-
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:131
-msgid "Compiler command:"
-msgstr "Kommando för kompilator:"
-
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:142
-msgid "IKVM path:"
-msgstr ""
-
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:151
-#, fuzzy
-msgid "Java compiler:"
-msgstr "Java-filer"
-
-#: ../IKVMCompilerManager.cs:132
-msgid "Generating {0} reference stub ..."
-msgstr ""
-
-#: ../IKVMCompilerManager.cs:163
-msgid "Generating assembly ..."
-msgstr ""
-
-#: ../IKVMCompilerManager.cs:209
-msgid "Compiling Java source code ..."
-msgstr ""
diff --git a/extras/JavaBinding/po/tr.po b/extras/JavaBinding/po/tr.po
deleted file mode 100644
index a0215b0d72..0000000000
--- a/extras/JavaBinding/po/tr.po
+++ /dev/null
@@ -1,281 +0,0 @@
-# Turkish translation of MonoDevelop
-# Copyright (C) 2004 Novell, Inc.
-# This file is distributed under the same license as the MonoDevelop package.
-# Enver ALTIN <skyblue@skyblue.gen.tr>, 2004,
-# Enver ALTIN <ealtin@gmail.com>
-# , fuzzy
-#
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: MonoDevelop 1.0\n"
-"Report-Msgid-Bugs-To: ealtin@gmail.com\n"
-"POT-Creation-Date: 2009-03-04 18:11:10-0500\n"
-"PO-Revision-Date: 2008-02-24 00:36+0200\n"
-"Last-Translator: Enver ALTIN <ealtin@gmail.com>\n"
-"Language-Team: Turkish <gnome-turk@gnome.org>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-
-#: ../templates/EmptyJavaFile.xft.xml:4
-msgid "Empty File"
-msgstr "Boş dosya"
-
-#: ../templates/EmptyJavaFile.xft.xml:6
-msgid "General"
-msgstr "Genel"
-
-#: ../templates/EmptyJavaFile.xft.xml:8
-msgid "Creates an empty Java file."
-msgstr "Boş bir Java dosyası oluşturur."
-
-#: ../templates/EmptyJavaProject.xpt.xml:7
-msgid "Empty Project"
-msgstr "Boş Proje"
-
-#: ../templates/EmptyJavaProject.xpt.xml:8
-#: ../templates/IkvmConsoleApplicationProject.xpt.xml:8
-#: ../templates/IkvmGladeApplicationProject.xpt.xml:8
-#: ../templates/IkvmGnomeApplicationProject.xpt.xml:8
-#: ../templates/IkvmGtkApplicationProject.xpt.xml:8
-#: ../templates/IkvmLibraryProject.xpt.xml:8
-#: ../templates/JavaApplicationProject.xpt.xml:8
-#: ../templates/JavaConsoleApplicationProject.xpt.xml:8
-#: ../JavaBinding.addin.xml:64
-msgid "Java"
-msgstr "Java"
-
-#: ../templates/EmptyJavaProject.xpt.xml:11
-msgid "Creates an empty Java solution."
-msgstr "Boş bir Java çözümü oluşturur"
-
-#: ../templates/IkvmConsoleApplicationProject.xpt.xml:7
-msgid "IKVM Console Project"
-msgstr "IKVM Konsol Projesi"
-
-#: ../templates/IkvmConsoleApplicationProject.xpt.xml:11
-msgid "Create a console Java project with IKVM"
-msgstr "IKVM kullanarak bir konsol Java projesi oluşturur."
-
-#: ../templates/IkvmGladeApplicationProject.xpt.xml:7
-msgid "IKVM Glade# Project"
-msgstr "IKVM Glade# projesi"
-
-#: ../templates/IkvmGladeApplicationProject.xpt.xml:11
-msgid "Create a Glade# Java project with IKVM"
-msgstr "IKVM kullanarak bir Glade# Java projesi oluşturur"
-
-#: ../templates/IkvmGnomeApplicationProject.xpt.xml:7
-msgid "IKVM Gnome# Project"
-msgstr "IKVM Gnome# projesi"
-
-#: ../templates/IkvmGnomeApplicationProject.xpt.xml:11
-msgid "Create a Gnome# Java project with IKVM"
-msgstr "IKVM kullanarak bir Gnome# Java projesi oluşturur."
-
-#: ../templates/IkvmGtkApplicationProject.xpt.xml:7
-msgid "IKVM Gtk# Project"
-msgstr "IKVM Gtk# projesi"
-
-#: ../templates/IkvmGtkApplicationProject.xpt.xml:11
-msgid "Create a Gtk# Java project with IKVM"
-msgstr "IKVM kullanarak bir Gtk# Java projesi oluşturur."
-
-#: ../templates/IkvmLibraryProject.xpt.xml:7
-msgid "IKVM Library"
-msgstr "IKVM Kütüphanesi"
-
-#: ../templates/IkvmLibraryProject.xpt.xml:11
-msgid "Create a Java library with IKVM"
-msgstr "IKVM kullanarak Java kütüphanesi oluşturur."
-
-#: ../templates/JavaApplet.xft.xml:4
-msgid "AWT Applet"
-msgstr "AWT Uygulamacığı"
-
-#: ../templates/JavaApplet.xft.xml:6 ../templates/JavaApplication.xft.xml:6
-#: ../templates/JavaDialog.xft.xml:6 ../templates/JavaFrame.xft.xml:6
-#: ../templates/JavaOKDialog.xft.xml:6 ../templates/JavaPanel.xft.xml:6
-msgid "AWT"
-msgstr "AWT"
-
-#: ../templates/JavaApplet.xft.xml:8
-msgid "Creates a Java AWT Applet"
-msgstr "Bir AWT uygulamacığı oluşturur"
-
-#: ../templates/JavaApplicationProject.xpt.xml:7
-msgid "AWT Project"
-msgstr "AWT Projesi"
-
-#: ../templates/JavaApplicationProject.xpt.xml:11
-msgid "Creates a Java AWT project."
-msgstr "Bir Java AWT projesi oluşturur."
-
-#: ../templates/JavaApplication.xft.xml:4
-msgid "AWT Application"
-msgstr "AWT Uygulaması"
-
-#: ../templates/JavaApplication.xft.xml:8
-msgid "Creates a Java AWT application."
-msgstr "Bir Java AWT uygulaması oluşturur."
-
-#: ../templates/JavaConsoleApplicationProject.xpt.xml:7
-msgid "Console Project"
-msgstr "Konsol Projesi"
-
-#: ../templates/JavaConsoleApplicationProject.xpt.xml:11
-msgid "Create a console Java project"
-msgstr "Bir konsol Java projesi oluşturur"
-
-#: ../templates/JavaDialog.xft.xml:4
-msgid "Java AWT Dialog"
-msgstr "Java AWT Diyaloğu"
-
-#: ../templates/JavaDialog.xft.xml:8
-msgid "Creates an AWT dialog."
-msgstr "Bir AWT diyaloğu oluşturur."
-
-#: ../templates/JavaFrame.xft.xml:4
-msgid "AWT Frame"
-msgstr "AWT çerçevesi"
-
-#: ../templates/JavaFrame.xft.xml:8
-msgid "Creates a Java AWT Frame"
-msgstr "Bir Java AWT çerçevesi oluşturur"
-
-#: ../templates/JavaOKDialog.xft.xml:4
-msgid "AWT OK Dialog"
-msgstr "AWT OK Diyaloğu"
-
-#: ../templates/JavaOKDialog.xft.xml:8
-msgid "Creates a Java AWT OK Dialog."
-msgstr "Bir Java AWT OK diyaloğu oluşturur."
-
-#: ../templates/JavaPanel.xft.xml:4
-msgid "AWT Panel"
-msgstr "AWT Paneli"
-
-#: ../templates/JavaPanel.xft.xml:8
-msgid "Creates a Java AWT panel."
-msgstr "Bir Java AWT paneli oluşturur."
-
-#: ../JavaBinding.addin.xml:27
-msgid "Java Files"
-msgstr "Java Dosyaları"
-
-#: ../JavaBinding.addin.xml:55
-msgid "Code Generation"
-msgstr "Kod Üretme"
-
-#: ../JavaBinding.addin.xml:58
-msgid "Output"
-msgstr "Çıktı"
-
-#: ../JavaBinding.addin.xml:76
-#, fuzzy
-msgid "Java source code"
-msgstr "Java kaynak kodu derleniyor ..."
-
-#: ../Gui/ProjectConfigurationPropertyPanel.cs:61
-msgid "Executable"
-msgstr "Uygulama"
-
-#: ../Gui/ProjectConfigurationPropertyPanel.cs:62
-msgid "Library"
-msgstr "Kütüphane"
-
-#: ../Gui/GlobalOptionsPanel.cs:34
-msgid "Javac"
-msgstr "Javac"
-
-#: ../Gui/GlobalOptionsPanel.cs:35
-msgid "Gcj"
-msgstr "Gcj"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:106
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:170
-msgid "<b>Code Generation</b>"
-msgstr "<b>Kod Üretme</b>"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:167
-msgid "Compile _Target:"
-msgstr "Derleme _Hedefi:"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:177
-msgid "Define S_ymbols:"
-msgstr "S_embolleri Tanımla:"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:189
-msgid "_Main Class:"
-msgstr "_Ana Sınıf:"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:201
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:208
-msgid "Classpath:"
-msgstr "Sınıfyolu:"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:248
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:64
-msgid "<b>Compiler</b>"
-msgstr "<b>Derleyici</b>"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:275
-msgid "gcj"
-msgstr "gcj"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:287
-msgid "javac"
-msgstr "javac"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:329
-msgid "<b>Options</b>"
-msgstr "<b>Seçenekler</b>"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:356
-msgid "Enable _optimizations"
-msgstr "_Eniyilemelere izin ver"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:367
-msgid "Emit _debugging information"
-msgstr "Hata _ayıklama bilgisini ekle"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:392
-msgid "<b>Warnings</b>"
-msgstr "<b>Uyarılar</b>"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:419
-msgid "Generate warnings"
-msgstr "Uyarı üret"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:430
-msgid "Enable deprecation warnings"
-msgstr "İtiraz uyarılarını etkinleştir"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:441
-msgid "Treat warnings as _errors"
-msgstr "Uyarıları hata _farzet"
-
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:131
-msgid "Compiler command:"
-msgstr "Derleyici komutu:"
-
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:142
-msgid "IKVM path:"
-msgstr "IKVM yolu:"
-
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:151
-msgid "Java compiler:"
-msgstr "Java derleyicisi:"
-
-#: ../IKVMCompilerManager.cs:132
-msgid "Generating {0} reference stub ..."
-msgstr "{0} atıf koçanı üretiliyor ..."
-
-#: ../IKVMCompilerManager.cs:163
-msgid "Generating assembly ..."
-msgstr "Çevirme üretiliyor ..."
-
-#: ../IKVMCompilerManager.cs:209
-msgid "Compiling Java source code ..."
-msgstr "Java kaynak kodu derleniyor ..."
diff --git a/extras/JavaBinding/po/zh_CN.po b/extras/JavaBinding/po/zh_CN.po
deleted file mode 100644
index f23503456f..0000000000
--- a/extras/JavaBinding/po/zh_CN.po
+++ /dev/null
@@ -1,280 +0,0 @@
-# MonoDevelop zh_CN translation
-# Copyright(C) 2006 Yu Lindong
-# This file is distributed under the same license as the PACKAGE package.
-# Yu Lindong <shinjidev@163.com>, 2006.
-# Funda Wang <fundawang@linux.net.cn>, 2006.
-#
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: MonoDevelop 0.10\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2009-03-04 18:11:10-0500\n"
-"PO-Revision-Date: 2007-12-26 21:22+0800\n"
-"Last-Translator: Simon Keung <simon_keung@hotmail.com>\n"
-"Language-Team: Yu Lindong <shinjidev@163.com>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=1; plural=0;\n"
-
-#: ../templates/EmptyJavaFile.xft.xml:4
-msgid "Empty File"
-msgstr "空文件"
-
-#: ../templates/EmptyJavaFile.xft.xml:6
-msgid "General"
-msgstr "常规"
-
-#: ../templates/EmptyJavaFile.xft.xml:8
-msgid "Creates an empty Java file."
-msgstr "创建一个空的 Java 文件。"
-
-#: ../templates/EmptyJavaProject.xpt.xml:7
-msgid "Empty Project"
-msgstr "空工程"
-
-#: ../templates/EmptyJavaProject.xpt.xml:8
-#: ../templates/IkvmConsoleApplicationProject.xpt.xml:8
-#: ../templates/IkvmGladeApplicationProject.xpt.xml:8
-#: ../templates/IkvmGnomeApplicationProject.xpt.xml:8
-#: ../templates/IkvmGtkApplicationProject.xpt.xml:8
-#: ../templates/IkvmLibraryProject.xpt.xml:8
-#: ../templates/JavaApplicationProject.xpt.xml:8
-#: ../templates/JavaConsoleApplicationProject.xpt.xml:8
-#: ../JavaBinding.addin.xml:64
-msgid "Java"
-msgstr "Java"
-
-#: ../templates/EmptyJavaProject.xpt.xml:11
-msgid "Creates an empty Java solution."
-msgstr "创建一个空的 Java 解决方案。"
-
-#: ../templates/IkvmConsoleApplicationProject.xpt.xml:7
-msgid "IKVM Console Project"
-msgstr "IKVM 控制台工程"
-
-#: ../templates/IkvmConsoleApplicationProject.xpt.xml:11
-msgid "Create a console Java project with IKVM"
-msgstr "创建一个基于 IKVM 的 Java 控制台工程"
-
-#: ../templates/IkvmGladeApplicationProject.xpt.xml:7
-msgid "IKVM Glade# Project"
-msgstr "IKVM Glade# 工程"
-
-#: ../templates/IkvmGladeApplicationProject.xpt.xml:11
-msgid "Create a Glade# Java project with IKVM"
-msgstr "创建一个基于 IKVM 的 Java Glade# 工程"
-
-#: ../templates/IkvmGnomeApplicationProject.xpt.xml:7
-msgid "IKVM Gnome# Project"
-msgstr "IKVM Gnome# 工程"
-
-#: ../templates/IkvmGnomeApplicationProject.xpt.xml:11
-msgid "Create a Gnome# Java project with IKVM"
-msgstr "创建一个基于 IKVM 的 Java Gnome# 工程"
-
-#: ../templates/IkvmGtkApplicationProject.xpt.xml:7
-msgid "IKVM Gtk# Project"
-msgstr "IKVM Gtk# 工程"
-
-#: ../templates/IkvmGtkApplicationProject.xpt.xml:11
-msgid "Create a Gtk# Java project with IKVM"
-msgstr "创建一个基于 IKVM 的 Java Gtk# 工程"
-
-#: ../templates/IkvmLibraryProject.xpt.xml:7
-msgid "IKVM Library"
-msgstr "IKVM 库"
-
-#: ../templates/IkvmLibraryProject.xpt.xml:11
-msgid "Create a Java library with IKVM"
-msgstr "创建一个基于 IKVM 的 Java 库"
-
-#: ../templates/JavaApplet.xft.xml:4
-msgid "AWT Applet"
-msgstr "AWT 小程序"
-
-#: ../templates/JavaApplet.xft.xml:6 ../templates/JavaApplication.xft.xml:6
-#: ../templates/JavaDialog.xft.xml:6 ../templates/JavaFrame.xft.xml:6
-#: ../templates/JavaOKDialog.xft.xml:6 ../templates/JavaPanel.xft.xml:6
-msgid "AWT"
-msgstr ""
-
-#: ../templates/JavaApplet.xft.xml:8
-msgid "Creates a Java AWT Applet"
-msgstr "创建一个 Java AWT 小程序"
-
-#: ../templates/JavaApplicationProject.xpt.xml:7
-msgid "AWT Project"
-msgstr "AWT 工程"
-
-#: ../templates/JavaApplicationProject.xpt.xml:11
-msgid "Creates a Java AWT project."
-msgstr "创建一个 Java AWT 工程。"
-
-#: ../templates/JavaApplication.xft.xml:4
-msgid "AWT Application"
-msgstr "AWT 应用程序"
-
-#: ../templates/JavaApplication.xft.xml:8
-msgid "Creates a Java AWT application."
-msgstr "创建一个 Java AWT 应用程序。"
-
-#: ../templates/JavaConsoleApplicationProject.xpt.xml:7
-msgid "Console Project"
-msgstr "控制台工程"
-
-#: ../templates/JavaConsoleApplicationProject.xpt.xml:11
-msgid "Create a console Java project"
-msgstr "创建一个 Java 控制台工程"
-
-#: ../templates/JavaDialog.xft.xml:4
-msgid "Java AWT Dialog"
-msgstr "Java AWT 对话框"
-
-#: ../templates/JavaDialog.xft.xml:8
-msgid "Creates an AWT dialog."
-msgstr "创建一个 AWT 对话框。"
-
-#: ../templates/JavaFrame.xft.xml:4
-msgid "AWT Frame"
-msgstr "AWT 框架"
-
-#: ../templates/JavaFrame.xft.xml:8
-msgid "Creates a Java AWT Frame"
-msgstr "创建一个 Java AWT 框架"
-
-#: ../templates/JavaOKDialog.xft.xml:4
-msgid "AWT OK Dialog"
-msgstr "AWT 确定对话框"
-
-#: ../templates/JavaOKDialog.xft.xml:8
-msgid "Creates a Java AWT OK Dialog."
-msgstr "创建一个 Java AWT 确定对话框。"
-
-#: ../templates/JavaPanel.xft.xml:4
-msgid "AWT Panel"
-msgstr "AWT 面板"
-
-#: ../templates/JavaPanel.xft.xml:8
-msgid "Creates a Java AWT panel."
-msgstr "创建一个 Java AWT 面板。"
-
-#: ../JavaBinding.addin.xml:27
-msgid "Java Files"
-msgstr "Java 文件"
-
-#: ../JavaBinding.addin.xml:55
-msgid "Code Generation"
-msgstr "代码生成"
-
-#: ../JavaBinding.addin.xml:58
-msgid "Output"
-msgstr "输出"
-
-#: ../JavaBinding.addin.xml:76
-msgid "Java source code"
-msgstr ""
-
-#: ../Gui/ProjectConfigurationPropertyPanel.cs:61
-msgid "Executable"
-msgstr "可执行文件"
-
-#: ../Gui/ProjectConfigurationPropertyPanel.cs:62
-msgid "Library"
-msgstr "库"
-
-#: ../Gui/GlobalOptionsPanel.cs:34
-msgid "Javac"
-msgstr "Javac"
-
-#: ../Gui/GlobalOptionsPanel.cs:35
-msgid "Gcj"
-msgstr "Gcj"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:106
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:170
-msgid "<b>Code Generation</b>"
-msgstr "<b>代码生成</b>"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:167
-msgid "Compile _Target:"
-msgstr "编译目标(_T):"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:177
-msgid "Define S_ymbols:"
-msgstr "定义符号(_Y):"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:189
-msgid "_Main Class:"
-msgstr "Main 类(_M):"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:201
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:208
-msgid "Classpath:"
-msgstr "Classpath:"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:248
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:64
-msgid "<b>Compiler</b>"
-msgstr "<b>编译器</b>"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:275
-msgid "gcj"
-msgstr "gcj"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:287
-msgid "javac"
-msgstr "javac"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:329
-msgid "<b>Options</b>"
-msgstr "<b>选项</b>"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:356
-msgid "Enable _optimizations"
-msgstr "允许优化(_O)"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:367
-msgid "Emit _debugging information"
-msgstr "嵌入调试信息(_D)"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:392
-msgid "<b>Warnings</b>"
-msgstr "<b>警告</b>"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:419
-msgid "Generate warnings"
-msgstr "生成警告"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:430
-msgid "Enable deprecation warnings"
-msgstr "启用废弃警告"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:441
-msgid "Treat warnings as _errors"
-msgstr "将警告看作错误(_E)"
-
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:131
-msgid "Compiler command:"
-msgstr "编译器命令:"
-
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:142
-msgid "IKVM path:"
-msgstr "IKVM 路径:"
-
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:151
-msgid "Java compiler:"
-msgstr "Java 编译器:"
-
-#: ../IKVMCompilerManager.cs:132
-msgid "Generating {0} reference stub ..."
-msgstr ""
-
-#: ../IKVMCompilerManager.cs:163
-msgid "Generating assembly ..."
-msgstr "正在生成程序集"
-
-#: ../IKVMCompilerManager.cs:209
-msgid "Compiling Java source code ..."
-msgstr ""
diff --git a/extras/JavaBinding/po/zh_TW.po b/extras/JavaBinding/po/zh_TW.po
deleted file mode 100644
index cc998edc62..0000000000
--- a/extras/JavaBinding/po/zh_TW.po
+++ /dev/null
@@ -1,280 +0,0 @@
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: MonoDevelop 0.9\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2009-03-04 18:11:10-0500\n"
-"PO-Revision-Date: 2006-04-02 10:09+0800\n"
-"Last-Translator: ellery <elleryq@gmail.com>\n"
-"Language-Team: Atsushi Enomoto <atsushi@ximian.com>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-
-#: ../templates/EmptyJavaFile.xft.xml:4
-msgid "Empty File"
-msgstr "空白檔案"
-
-#: ../templates/EmptyJavaFile.xft.xml:6
-msgid "General"
-msgstr ""
-
-#: ../templates/EmptyJavaFile.xft.xml:8
-msgid "Creates an empty Java file."
-msgstr "建立空白 Java 檔案"
-
-#: ../templates/EmptyJavaProject.xpt.xml:7
-msgid "Empty Project"
-msgstr "空白專案"
-
-#: ../templates/EmptyJavaProject.xpt.xml:8
-#: ../templates/IkvmConsoleApplicationProject.xpt.xml:8
-#: ../templates/IkvmGladeApplicationProject.xpt.xml:8
-#: ../templates/IkvmGnomeApplicationProject.xpt.xml:8
-#: ../templates/IkvmGtkApplicationProject.xpt.xml:8
-#: ../templates/IkvmLibraryProject.xpt.xml:8
-#: ../templates/JavaApplicationProject.xpt.xml:8
-#: ../templates/JavaConsoleApplicationProject.xpt.xml:8
-#: ../JavaBinding.addin.xml:64
-#, fuzzy
-msgid "Java"
-msgstr "Javac"
-
-#: ../templates/EmptyJavaProject.xpt.xml:11
-msgid "Creates an empty Java solution."
-msgstr "建立空白 Java 方案."
-
-#: ../templates/IkvmConsoleApplicationProject.xpt.xml:7
-msgid "IKVM Console Project"
-msgstr "IKVM Console 專案"
-
-#: ../templates/IkvmConsoleApplicationProject.xpt.xml:11
-msgid "Create a console Java project with IKVM"
-msgstr "建立以 IKVM 為主的控制模式(Console)Java 專案"
-
-#: ../templates/IkvmGladeApplicationProject.xpt.xml:7
-msgid "IKVM Glade# Project"
-msgstr "IKVM Glade# 專案"
-
-#: ../templates/IkvmGladeApplicationProject.xpt.xml:11
-msgid "Create a Glade# Java project with IKVM"
-msgstr "建立以 IKVM 為基礎的 Glade# Java 專案"
-
-#: ../templates/IkvmGnomeApplicationProject.xpt.xml:7
-msgid "IKVM Gnome# Project"
-msgstr "IKVM Gnome# 專案"
-
-#: ../templates/IkvmGnomeApplicationProject.xpt.xml:11
-msgid "Create a Gnome# Java project with IKVM"
-msgstr "建立以 IKVM 為基礎的 Gnome# Java 專案"
-
-#: ../templates/IkvmGtkApplicationProject.xpt.xml:7
-msgid "IKVM Gtk# Project"
-msgstr "IKVM Gtk# 專案"
-
-#: ../templates/IkvmGtkApplicationProject.xpt.xml:11
-msgid "Create a Gtk# Java project with IKVM"
-msgstr "建立以 IKVM 為基礎的 Gtk# Java 專案"
-
-#: ../templates/IkvmLibraryProject.xpt.xml:7
-#, fuzzy
-msgid "IKVM Library"
-msgstr "函式庫"
-
-#: ../templates/IkvmLibraryProject.xpt.xml:11
-#, fuzzy
-msgid "Create a Java library with IKVM"
-msgstr "建立以 IKVM 為基礎的 Gtk# Java 專案"
-
-#: ../templates/JavaApplet.xft.xml:4
-msgid "AWT Applet"
-msgstr "AWT Applet"
-
-#: ../templates/JavaApplet.xft.xml:6 ../templates/JavaApplication.xft.xml:6
-#: ../templates/JavaDialog.xft.xml:6 ../templates/JavaFrame.xft.xml:6
-#: ../templates/JavaOKDialog.xft.xml:6 ../templates/JavaPanel.xft.xml:6
-msgid "AWT"
-msgstr ""
-
-#: ../templates/JavaApplet.xft.xml:8
-msgid "Creates a Java AWT Applet"
-msgstr "建立 Java AWT Applet"
-
-#: ../templates/JavaApplicationProject.xpt.xml:7
-msgid "AWT Project"
-msgstr "AWT專案"
-
-#: ../templates/JavaApplicationProject.xpt.xml:11
-msgid "Creates a Java AWT project."
-msgstr "建立 Java AWT 專案"
-
-#: ../templates/JavaApplication.xft.xml:4
-#, fuzzy
-msgid "AWT Application"
-msgstr "AWT Applet"
-
-#: ../templates/JavaApplication.xft.xml:8
-msgid "Creates a Java AWT application."
-msgstr "建立 Java AWT 應用程式"
-
-#: ../templates/JavaConsoleApplicationProject.xpt.xml:7
-msgid "Console Project"
-msgstr "控制模式(Console)專案"
-
-#: ../templates/JavaConsoleApplicationProject.xpt.xml:11
-msgid "Create a console Java project"
-msgstr "建立控制模式(Console)的 Java 專案"
-
-#: ../templates/JavaDialog.xft.xml:4
-msgid "Java AWT Dialog"
-msgstr "Java AWT 對話盒"
-
-#: ../templates/JavaDialog.xft.xml:8
-msgid "Creates an AWT dialog."
-msgstr "建立 AWT 對話盒."
-
-#: ../templates/JavaFrame.xft.xml:4
-msgid "AWT Frame"
-msgstr "AWT Frame"
-
-#: ../templates/JavaFrame.xft.xml:8
-msgid "Creates a Java AWT Frame"
-msgstr "建立 Java AWT Frame"
-
-#: ../templates/JavaOKDialog.xft.xml:4
-msgid "AWT OK Dialog"
-msgstr "AWT OK對話盒"
-
-#: ../templates/JavaOKDialog.xft.xml:8
-msgid "Creates a Java AWT OK Dialog."
-msgstr "建立 Java AWT OK 對話盒"
-
-#: ../templates/JavaPanel.xft.xml:4
-msgid "AWT Panel"
-msgstr "AWT Panel"
-
-#: ../templates/JavaPanel.xft.xml:8
-msgid "Creates a Java AWT panel."
-msgstr "建立 Java AWT panel"
-
-#: ../JavaBinding.addin.xml:27
-#, fuzzy
-msgid "Java Files"
-msgstr "儲存檔案"
-
-#: ../JavaBinding.addin.xml:55
-msgid "Code Generation"
-msgstr "代碼生成"
-
-#: ../JavaBinding.addin.xml:58
-msgid "Output"
-msgstr "輸出"
-
-#: ../JavaBinding.addin.xml:76
-msgid "Java source code"
-msgstr ""
-
-#: ../Gui/ProjectConfigurationPropertyPanel.cs:61
-msgid "Executable"
-msgstr "可執行的"
-
-#: ../Gui/ProjectConfigurationPropertyPanel.cs:62
-msgid "Library"
-msgstr "函式庫"
-
-#: ../Gui/GlobalOptionsPanel.cs:34
-msgid "Javac"
-msgstr "Javac"
-
-#: ../Gui/GlobalOptionsPanel.cs:35
-msgid "Gcj"
-msgstr "Gcj"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:106
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:170
-#, fuzzy
-msgid "<b>Code Generation</b>"
-msgstr "代碼生成"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:167
-msgid "Compile _Target:"
-msgstr "編譯目標: (_T)"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:177
-msgid "Define S_ymbols:"
-msgstr "定義符號: (_y)"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:189
-msgid "_Main Class:"
-msgstr "主類別 (_M) :"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:201
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:208
-msgid "Classpath:"
-msgstr "Classpath:"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:248
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:64
-msgid "<b>Compiler</b>"
-msgstr "<b>編譯器</b>"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:275
-msgid "gcj"
-msgstr "gcj"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:287
-#, fuzzy
-msgid "javac"
-msgstr "javac"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:329
-msgid "<b>Options</b>"
-msgstr "<b>選項</b>"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:356
-msgid "Enable _optimizations"
-msgstr "打開最佳化 (_O)"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:367
-msgid "Emit _debugging information"
-msgstr "省略除錯資訊 (_D)"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:392
-msgid "<b>Warnings</b>"
-msgstr "<b>警告</b>"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:419
-msgid "Generate warnings"
-msgstr "產生警告"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:430
-msgid "Enable deprecation warnings"
-msgstr "啟用反對警告"
-
-#: ../gtk-gui/JavaBinding.CodeGenerationPanelWidget.cs:441
-msgid "Treat warnings as _errors"
-msgstr "把警告當成錯誤 (_E)"
-
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:131
-msgid "Compiler command:"
-msgstr "編譯器指令:"
-
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:142
-msgid "IKVM path:"
-msgstr "IKVM 路徑:"
-
-#: ../gtk-gui/JavaBinding.GlobalOptionsPanelWidget.cs:151
-msgid "Java compiler:"
-msgstr "Java編譯器:"
-
-#: ../IKVMCompilerManager.cs:132
-msgid "Generating {0} reference stub ..."
-msgstr ""
-
-#: ../IKVMCompilerManager.cs:163
-msgid "Generating assembly ..."
-msgstr ""
-
-#: ../IKVMCompilerManager.cs:209
-msgid "Compiling Java source code ..."
-msgstr ""
diff --git a/extras/JavaBinding/rules.make b/extras/JavaBinding/rules.make
deleted file mode 100644
index 5f906b2402..0000000000
--- a/extras/JavaBinding/rules.make
+++ /dev/null
@@ -1,40 +0,0 @@
-clean-local:
- make pre-clean-local-hook
- make $(CONFIG)_BeforeClean
- -rm -f $(CLEANFILES)
- make $(CONFIG)_AfterClean
- make post-clean-local-hook
-
-install-local:
-uninstall-local:
-
-dist-local:
- make pre-dist-local-hook distdir=$$distdir
- list='$(EXTRA_DIST)'; \
- for f in Makefile $$list; do \
- d=`dirname "$$f"`; \
- test -d "$(distdir)/$$d" || \
- mkdir -p "$(distdir)/$$d"; \
- cp -p "$$f" "$(distdir)/$$d" || exit 1; \
- done
- make post-dist-local-hook distdir=$$distdir
-
-dist-local-recursive:
- for dir in $(SUBDIRS); do \
- mkdir -p $(distdir)/$$dir || true; \
- case $$dir in \
- .) make dist-local distdir=$(distdir) || exit 1;; \
- *) (cd $$dir; make dist-local distdir=$(distdir)/$$dir) || exit 1; \
- esac \
- done
-
-#hooks: Available hooks - all, clean, install, uninstall and dist
-# and their *-local variants
-pre-%-hook: ; @:
-post-%-hook: ; @:
-
-#targets for custom commands
-%_BeforeBuild: ; @:
-%_AfterBuild: ; @:
-%_BeforeClean: ; @:
-%_AfterClean: ; @:
diff --git a/extras/JavaBinding/templates/EmptyJavaFile.xft.xml b/extras/JavaBinding/templates/EmptyJavaFile.xft.xml
deleted file mode 100644
index b30caf3ed1..0000000000
--- a/extras/JavaBinding/templates/EmptyJavaFile.xft.xml
+++ /dev/null
@@ -1,20 +0,0 @@
-<?xml version="1.0"?>
-<Template Originator="Gary Gray" Language="Java" Created="09/05/2001" LastModified="09/05/2001">
-
- <TemplateConfiguration>
- <_Name>Empty File</_Name>
- <Icon>md-text-file-icon</Icon>
- <_Category>General</_Category>
- <LanguageName>Java</LanguageName>
- <_Description>Creates an empty Java file.</_Description>
- </TemplateConfiguration>
-
- <TemplateFiles>
- <File DefaultExtension=".java" DefaultName="EmptyJavafile">
- <![CDATA[// created on ${Date} at ${Time}]]>
- </File>
- </TemplateFiles>
-
- <FileOptions/>
-
-</Template>
diff --git a/extras/JavaBinding/templates/EmptyJavaProject.xpt.xml b/extras/JavaBinding/templates/EmptyJavaProject.xpt.xml
deleted file mode 100644
index 5cb1aabd27..0000000000
--- a/extras/JavaBinding/templates/EmptyJavaProject.xpt.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-<?xml version="1.0"?>
-<Template originator = "Gary Gray"
- created = "09/05/2001"
- lastModified = "02/01/2003">
-
- <!-- Template Header -->
- <TemplateConfiguration>
- <_Name>Empty Project</_Name>
- <_Category>Java</_Category>
- <Icon>md-project|res:java-icon-32.png</Icon>
- <LanguageName>Java</LanguageName>
- <_Description>Creates an empty Java solution.</_Description>
- </TemplateConfiguration>
-
- <!-- Template Content -->
- <Combine name = "${ProjectName}" directory = ".">
- <Project name = "${ProjectName}" directory = "."/>
- </Combine>
-</Template>
diff --git a/extras/JavaBinding/templates/IkvmConsoleApplicationProject.xpt.xml b/extras/JavaBinding/templates/IkvmConsoleApplicationProject.xpt.xml
deleted file mode 100644
index dcfacaca25..0000000000
--- a/extras/JavaBinding/templates/IkvmConsoleApplicationProject.xpt.xml
+++ /dev/null
@@ -1,47 +0,0 @@
-<?xml version="1.0"?>
-<Template originator = "John Luke"
- created = "04/06/2004"
- lastModified = "04/06/2004">
-
- <!-- Template Header -->
- <TemplateConfiguration>
- <_Name>IKVM Console Project</_Name>
- <_Category>Java</_Category>
- <Icon>md-project-console|res:java-icon-32.png</Icon>
- <LanguageName>Java</LanguageName>
- <_Description>Create a console Java project with IKVM</_Description>
- </TemplateConfiguration>
-
- <!-- Actions -->
- <Actions>
- <Open filename = "application.java"/>
- </Actions>
-
- <!-- Template Content -->
- <Combine name = "${ProjectName}" directory = ".">
- <Options>
- <StartupProject>${ProjectName}</StartupProject>
- </Options>
-
- <Project name = "${ProjectName}" directory = ".">
- <!-- FIXME: remove path to jar -->
- <Options Target = "Exe" MainClass ="application" ExternalConsole="True" />
-
- <Files>
- <File name = "application.java">
-<![CDATA[/*
- * application.java
- *
- * created on ${Date} at ${Time}
- */
-import cli.System.*;
-
-public class application {
- public static void main(java.lang.String[] args) {
- Console.WriteLine ("Hello, World!");
- }
-}]]></File>
- </Files>
- </Project>
- </Combine>
-</Template>
diff --git a/extras/JavaBinding/templates/IkvmGladeApplicationProject.xpt.xml b/extras/JavaBinding/templates/IkvmGladeApplicationProject.xpt.xml
deleted file mode 100644
index c33b51562b..0000000000
--- a/extras/JavaBinding/templates/IkvmGladeApplicationProject.xpt.xml
+++ /dev/null
@@ -1,62 +0,0 @@
-<?xml version="1.0"?>
-<Template originator = "John Luke"
- created = "04/06/2004"
- lastModified = "04/06/2004">
-
- <!-- Template Header -->
- <TemplateConfiguration>
- <_Name>IKVM Glade# Project</_Name>
- <_Category>Java</_Category>
- <Icon>md-project-gui|res:java-icon-32.png</Icon>
- <LanguageName>Java</LanguageName>
- <_Description>Create a Glade# Java project with IKVM</_Description>
- </TemplateConfiguration>
-
- <!-- Actions -->
- <Actions>
- <Open filename = "application.java"/>
- </Actions>
-
- <!-- Template Content -->
- <Combine name = "${ProjectName}" directory = ".">
- <Options>
- <StartupProject>${ProjectName}</StartupProject>
- </Options>
-
- <Project name = "${ProjectName}" directory = ".">
- <!-- FIXME: do not hardcode these -->
- <Options Target = "WinExe" PauseConsoleOutput = "False" MainClass ="application" />
-
- <References>
- <Reference type="Gac" SpecificVersion="false" refto="gtk-sharp, Version=2.0.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
- <Reference type="Gac" SpecificVersion="false" refto="gdk-sharp, Version=2.0.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
- <Reference type="Gac" SpecificVersion="false" refto="glib-sharp, Version=2.0.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
- <Reference type="Gac" SpecificVersion="false" refto="glade-sharp, Version=2.0.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
- <Reference type="Gac" SpecificVersion="false" refto="pango-sharp, Version=2.0.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
- <Reference type="Gac" SpecificVersion="false" refto="glade-sharp, Version=2.0.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
- </References>
-
- <Files>
- <File name = "application.java">
-<![CDATA[/*
- * application.java
- *
- * created on ${Date} at ${Time}
- */
-import cli.Gtk.*;
-import cli.Glade.*;
-
-public class application {
- public static void main (String[] args) {
- Application.Init ();
- Window w = new Window ("Hello Mono with Java#");
- Button b = new Button ("Click me");
- w.Add (b);
- w.ShowAll ();
- Application.Run ();
- }
-}]]></File>
- </Files>
- </Project>
- </Combine>
-</Template>
diff --git a/extras/JavaBinding/templates/IkvmGnomeApplicationProject.xpt.xml b/extras/JavaBinding/templates/IkvmGnomeApplicationProject.xpt.xml
deleted file mode 100644
index 99560ab696..0000000000
--- a/extras/JavaBinding/templates/IkvmGnomeApplicationProject.xpt.xml
+++ /dev/null
@@ -1,62 +0,0 @@
-<?xml version="1.0"?>
-<Template originator = "John Luke"
- created = "04/06/2004"
- lastModified = "04/06/2004">
-
- <!-- Template Header -->
- <TemplateConfiguration>
- <_Name>IKVM Gnome# Project</_Name>
- <_Category>Java</_Category>
- <Icon>md-project-gui|res:java-icon-32.png</Icon>
- <LanguageName>Java</LanguageName>
- <_Description>Create a Gnome# Java project with IKVM</_Description>
- </TemplateConfiguration>
-
- <!-- Actions -->
- <Actions>
- <Open filename = "application.java"/>
- </Actions>
-
- <!-- Template Content -->
- <Combine name = "${ProjectName}" directory = ".">
- <Options>
- <StartupProject>${ProjectName}</StartupProject>
- </Options>
-
- <Project name = "${ProjectName}" directory = ".">
- <!-- FIXME: do not hardcode these -->
- <Options Target = "WinExe" PauseConsoleOutput = "False" MainClass ="application" />
-
- <References>
- <Reference type="Gac" SpecificVersion="false" refto="gnome-sharp, Version=2.0.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
- <Reference type="Gac" SpecificVersion="false" refto="gtk-sharp, Version=2.0.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
- <Reference type="Gac" SpecificVersion="false" refto="gdk-sharp, Version=2.0.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
- <Reference type="Gac" SpecificVersion="false" refto="glib-sharp, Version=2.0.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
- <Reference type="Gac" SpecificVersion="false" refto="glade-sharp, Version=2.0.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
- <Reference type="Gac" SpecificVersion="false" refto="pango-sharp, Version=2.0.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
- </References>
-
- <Files>
- <File name = "application.java">
-<![CDATA[/*
- * application.java
- *
- * created on ${Date} at ${Time}
- */
-import cli.Gnome.*;
-import cli.Gtk.*;
-
-public class application {
- public static void main (String[] args) {
- Program p = new Program ("Name", "0.0", Modules.UI, args);
- App app = new App ("Hello Mono with Java#", "0.0");
- Button b = new Button ("Click me");
- app.Add (b);
- app.ShowAll ();
- p.Run ();
- }
-}]]></File>
- </Files>
- </Project>
- </Combine>
-</Template>
diff --git a/extras/JavaBinding/templates/IkvmGtkApplicationProject.xpt.xml b/extras/JavaBinding/templates/IkvmGtkApplicationProject.xpt.xml
deleted file mode 100644
index 73af5e00f6..0000000000
--- a/extras/JavaBinding/templates/IkvmGtkApplicationProject.xpt.xml
+++ /dev/null
@@ -1,60 +0,0 @@
-<?xml version="1.0"?>
-<Template originator = "John Luke"
- created = "04/06/2004"
- lastModified = "04/06/2004">
-
- <!-- Template Header -->
- <TemplateConfiguration>
- <_Name>IKVM Gtk# Project</_Name>
- <_Category>Java</_Category>
- <Icon>md-project-gui|res:java-icon-32.png</Icon>
- <LanguageName>Java</LanguageName>
- <_Description>Create a Gtk# Java project with IKVM</_Description>
- </TemplateConfiguration>
-
- <!-- Actions -->
- <Actions>
- <Open filename = "application.java"/>
- </Actions>
-
- <!-- Template Content -->
- <Combine name = "${ProjectName}" directory = ".">
- <Options>
- <StartupProject>${ProjectName}</StartupProject>
- </Options>
-
- <Project name = "${ProjectName}" directory = ".">
- <!-- FIXME: do not hardcode these -->
- <Options Target = "WinExe" PauseConsoleOutput = "False" MainClass ="application" />
-
- <References>
- <Reference type="Gac" SpecificVersion="false" refto="gtk-sharp, Version=2.0.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
- <Reference type="Gac" SpecificVersion="false" refto="gdk-sharp, Version=2.0.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
- <Reference type="Gac" SpecificVersion="false" refto="glib-sharp, Version=2.0.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
- <Reference type="Gac" SpecificVersion="false" refto="glade-sharp, Version=2.0.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
- <Reference type="Gac" SpecificVersion="false" refto="pango-sharp, Version=2.0.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
- </References>
-
- <Files>
- <File name = "application.java">
-<![CDATA[/*
- * application.java
- *
- * created on ${Date} at ${Time}
- */
-import cli.Gtk.*;
-
-public class application {
- public static void main (String[] args) {
- Application.Init ();
- Window w = new Window ("Hello Mono with Java#");
- Button b = new Button ("Click me");
- w.Add (b);
- w.ShowAll ();
- Application.Run ();
- }
-}]]></File>
- </Files>
- </Project>
- </Combine>
-</Template>
diff --git a/extras/JavaBinding/templates/IkvmLibraryProject.xpt.xml b/extras/JavaBinding/templates/IkvmLibraryProject.xpt.xml
deleted file mode 100644
index 69c68197a2..0000000000
--- a/extras/JavaBinding/templates/IkvmLibraryProject.xpt.xml
+++ /dev/null
@@ -1,44 +0,0 @@
-<?xml version="1.0"?>
-<Template originator = "John Luke"
- created = "04/06/2004"
- lastModified = "04/06/2004">
-
- <!-- Template Header -->
- <TemplateConfiguration>
- <_Name>IKVM Library</_Name>
- <_Category>Java</_Category>
- <Icon>md-project-library|res:java-icon-32.png</Icon>
- <LanguageName>Java</LanguageName>
- <_Description>Create a Java library with IKVM</_Description>
- </TemplateConfiguration>
-
- <!-- Actions -->
- <Actions>
- <Open filename = "MyClass.java"/>
- </Actions>
-
- <!-- Template Content -->
- <Combine name = "${ProjectName}" directory = ".">
- <Options>
- <StartupProject>${ProjectName}</StartupProject>
- </Options>
-
- <Project name = "${ProjectName}" directory = ".">
-
- <Options Target = "Library" PauseConsoleOutput = "False" />
-
- <Files>
- <File name = "MyClass.java">
-<![CDATA[/*
- * MyClass.java
- *
- * created on ${Date} at ${Time}
- */
-
-public class MyClass
-{
-}]]></File>
- </Files>
- </Project>
- </Combine>
-</Template>
diff --git a/extras/JavaBinding/templates/JavaApplet.xft.xml b/extras/JavaBinding/templates/JavaApplet.xft.xml
deleted file mode 100644
index b92d2f854e..0000000000
--- a/extras/JavaBinding/templates/JavaApplet.xft.xml
+++ /dev/null
@@ -1,70 +0,0 @@
-<?xml version="1.0"?>
-<Template Originator="Gary Gray" Language="JAVA" Created="09/05/2001" LastModified="09/05/2001">
-
- <TemplateConfiguration>
- <_Name>AWT Applet</_Name>
- <Icon>md-html-file-icon</Icon>
- <_Category>AWT</_Category>
- <LanguageName>Java</LanguageName>
- <_Description>Creates a Java AWT Applet</_Description>
- </TemplateConfiguration>
-
- <TemplateFiles>
- <File DefaultExtension=".java" DefaultName="Applet">
-
-<![CDATA[
-/*
- * applet.java
- *
- * created on ${Date} at ${Time}
- */
-
-public class applet extends java.applet.Applet {
-
- /** Initializes the applet applet */
- public void init() {
- initComponents();
- }
-
- /** This method is called from within the init() method to
- * initialize the form.
- * WARNING: Do NOT modify this code. The content of this method is
- * always regenerated by the Form Editor.
- */
- private void initComponents() {//GEN-BEGIN:initComponents
- setLayout(new java.awt.BorderLayout());
-
- }//GEN-END:initComponents
-
-
- // Variables declaration - do not modify//GEN-BEGIN:variables
- // End of variables declaration//GEN-END:variables
-
-}]]>
- </File>
- <File DefaultExtension=".html" DefaultName="Applet">
-
-<![CDATA[
-<HTML>
-<HEAD>
- <TITLE>Applet HTML Page</TITLE>
-</HEAD>
-<BODY>
-
-<H3><HR WIDTH="100%">Applet HTML Page<HR WIDTH="100%"></H3>
-
-<P>
-<APPLET code="applet.class" width=350 height=200></APPLET>
-</P>
-
-<HR WIDTH="100%"><FONT SIZE=-1><I>Generated by SharpDevelop IDE</I></FONT>
-</BODY>
-</HTML>
-
-]]>
- </File>
- </TemplateFiles>
-
- <FileOptions/>
-
-</Template>
diff --git a/extras/JavaBinding/templates/JavaApplication.xft.xml b/extras/JavaBinding/templates/JavaApplication.xft.xml
deleted file mode 100644
index 2fc4e3aae4..0000000000
--- a/extras/JavaBinding/templates/JavaApplication.xft.xml
+++ /dev/null
@@ -1,146 +0,0 @@
-<?xml version="1.0"?>
-<Template Originator="Gary Gray" Language="JAVA" Created="09/05/2001" LastModified="09/05/2001">
-
- <TemplateConfiguration>
- <_Name>AWT Application</_Name>
- <Icon>md-gui-file</Icon>
- <_Category>AWT</_Category>
- <LanguageName>Java</LanguageName>
- <_Description>Creates a Java AWT application.</_Description>
- </TemplateConfiguration>
-
- <TemplateFiles>
- <File DefaultExtension=".java" DefaultName="Application">
-
-<![CDATA[
-/*
- * application.java
- *
- * created on ${Date} at ${Time}
- */
-
-public class application extends javax.swing.JFrame {
-
- /** Creates new form application */
- public application() {
- initComponents();
- }
-
- /** This method is called from within the constructor to
- * initialize the form.
- * WARNING: Do NOT modify this code. The content of this method is
- * always regenerated by the Form Editor.
- */
- private void initComponents() {//GEN-BEGIN:initComponents
- menuBar = new javax.swing.JMenuBar();
-
- fileMenu = new javax.swing.JMenu();
- fileMenu.setText("File");
-
- openMenuItem = new javax.swing.JMenuItem();
- openMenuItem.setText("Open");
-
- fileMenu.add(openMenuItem);
- saveMenuItem = new javax.swing.JMenuItem();
- saveMenuItem.setText("Save");
-
- fileMenu.add(saveMenuItem);
- saveAsMenuItem = new javax.swing.JMenuItem();
- saveAsMenuItem.setText("Save As ...");
-
- fileMenu.add(saveAsMenuItem);
- exitMenuItem = new javax.swing.JMenuItem();
- exitMenuItem.setText("Exit");
- exitMenuItem.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- exitMenuItemActionPerformed(evt);
- }
- }
- );
-
- fileMenu.add(exitMenuItem);
- menuBar.add(fileMenu);
- editMenu = new javax.swing.JMenu();
- editMenu.setText("Edit");
-
- cutMenuItem = new javax.swing.JMenuItem();
- cutMenuItem.setText("Cut");
-
- editMenu.add(cutMenuItem);
- copyMenuItem = new javax.swing.JMenuItem();
- copyMenuItem.setText("Copy");
-
- editMenu.add(copyMenuItem);
- pasteMenuItem = new javax.swing.JMenuItem();
- pasteMenuItem.setText("Paste");
-
- editMenu.add(pasteMenuItem);
- deleteMenuItem = new javax.swing.JMenuItem();
- deleteMenuItem.setText("Delete");
-
- editMenu.add(deleteMenuItem);
- menuBar.add(editMenu);
- helpMenu = new javax.swing.JMenu();
- helpMenu.setText("Help");
-
- contentsMenuItem = new javax.swing.JMenuItem();
- contentsMenuItem.setText("Contents");
-
- helpMenu.add(contentsMenuItem);
- aboutMenuItem = new javax.swing.JMenuItem();
- aboutMenuItem.setText("About");
-
- helpMenu.add(aboutMenuItem);
- menuBar.add(helpMenu);
- addWindowListener(new java.awt.event.WindowAdapter() {
- public void windowClosing(java.awt.event.WindowEvent evt) {
- exitForm(evt);
- }
- }
- );
-
- setJMenuBar(menuBar);
-
- pack();
- }//GEN-END:initComponents
-
- private void exitMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_exitMenuItemActionPerformed
- System.exit(0);
- }//GEN-LAST:event_exitMenuItemActionPerformed
-
- /** Exit the Application */
- private void exitForm(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_exitForm
- System.exit(0);
- }//GEN-LAST:event_exitForm
-
- /**
- * param args the command line arguments
- */
- public static void main(String args[]) {
- new application().show();
- }
-
- // Variables declaration - do not modify//GEN-BEGIN:variables
- private javax.swing.JMenuBar menuBar;
- private javax.swing.JMenu fileMenu;
- private javax.swing.JMenuItem openMenuItem;
- private javax.swing.JMenuItem saveMenuItem;
- private javax.swing.JMenuItem saveAsMenuItem;
- private javax.swing.JMenuItem exitMenuItem;
- private javax.swing.JMenu editMenu;
- private javax.swing.JMenuItem cutMenuItem;
- private javax.swing.JMenuItem copyMenuItem;
- private javax.swing.JMenuItem pasteMenuItem;
- private javax.swing.JMenuItem deleteMenuItem;
- private javax.swing.JMenu helpMenu;
- private javax.swing.JMenuItem contentsMenuItem;
- private javax.swing.JMenuItem aboutMenuItem;
- // End of variables declaration//GEN-END:variables
-
-}]]>
- </File>
- </TemplateFiles>
-
- <FileOptions/>
-
-</Template>
diff --git a/extras/JavaBinding/templates/JavaApplicationProject.xpt.xml b/extras/JavaBinding/templates/JavaApplicationProject.xpt.xml
deleted file mode 100644
index 1efcccbf1b..0000000000
--- a/extras/JavaBinding/templates/JavaApplicationProject.xpt.xml
+++ /dev/null
@@ -1,160 +0,0 @@
-<?xml version="1.0"?>
-<Template originator = "Gary Gray"
- created = "09/05/2001"
- lastModified = "04/06/2004">
-
- <!-- Template Header -->
- <TemplateConfiguration>
- <_Name>AWT Project</_Name>
- <_Category>Java</_Category>
- <Icon>md-project-gui|res:java-icon-32.png</Icon>
- <LanguageName>Java</LanguageName>
- <_Description>Creates a Java AWT project.</_Description>
- </TemplateConfiguration>
-
- <!-- Actions -->
- <Actions>
- <Open filename = "application.java"/>
- </Actions>
-
- <!-- Template Content -->
- <Combine name = "${ProjectName}" directory = ".">
- <Options>
- <StartupProject>${ProjectName}</StartupProject>
- </Options>
-
- <Project name = "${ProjectName}" directory = ".">
- <Options Target = "Exe" PauseConsoleOutput = "False" ClassPath = "" MainClass ="application" />
-
- <Files>
- <File name = "application.java">
-<![CDATA[
-/*
- * application.java
- *
- * created on ${Date} at ${Time}
- */
-
-public class application extends javax.swing.JFrame {
-
- /** Creates new form application */
- public application() {
- initComponents();
- }
-
- /** This method is called from within the constructor to
- * initialize the form.
- * WARNING: Do NOT modify this code. The content of this method is
- * always regenerated by the Form Editor.
- */
- private void initComponents() {//GEN-BEGIN:initComponents
- menuBar = new javax.swing.JMenuBar();
-
- fileMenu = new javax.swing.JMenu();
- fileMenu.setText("File");
-
- openMenuItem = new javax.swing.JMenuItem();
- openMenuItem.setText("Open");
-
- fileMenu.add(openMenuItem);
- saveMenuItem = new javax.swing.JMenuItem();
- saveMenuItem.setText("Save");
-
- fileMenu.add(saveMenuItem);
- saveAsMenuItem = new javax.swing.JMenuItem();
- saveAsMenuItem.setText("Save As ...");
-
- fileMenu.add(saveAsMenuItem);
- exitMenuItem = new javax.swing.JMenuItem();
- exitMenuItem.setText("Exit");
- exitMenuItem.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- exitMenuItemActionPerformed(evt);
- }
- }
- );
-
- fileMenu.add(exitMenuItem);
- menuBar.add(fileMenu);
- editMenu = new javax.swing.JMenu();
- editMenu.setText("Edit");
-
- cutMenuItem = new javax.swing.JMenuItem();
- cutMenuItem.setText("Cut");
-
- editMenu.add(cutMenuItem);
- copyMenuItem = new javax.swing.JMenuItem();
- copyMenuItem.setText("Copy");
-
- editMenu.add(copyMenuItem);
- pasteMenuItem = new javax.swing.JMenuItem();
- pasteMenuItem.setText("Paste");
-
- editMenu.add(pasteMenuItem);
- deleteMenuItem = new javax.swing.JMenuItem();
- deleteMenuItem.setText("Delete");
-
- editMenu.add(deleteMenuItem);
- menuBar.add(editMenu);
- helpMenu = new javax.swing.JMenu();
- helpMenu.setText("Help");
-
- contentsMenuItem = new javax.swing.JMenuItem();
- contentsMenuItem.setText("Contents");
-
- helpMenu.add(contentsMenuItem);
- aboutMenuItem = new javax.swing.JMenuItem();
- aboutMenuItem.setText("About");
-
- helpMenu.add(aboutMenuItem);
- menuBar.add(helpMenu);
- addWindowListener(new java.awt.event.WindowAdapter() {
- public void windowClosing(java.awt.event.WindowEvent evt) {
- exitForm(evt);
- }
- }
- );
-
- setJMenuBar(menuBar);
-
- pack();
- }//GEN-END:initComponents
-
- private void exitMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_exitMenuItemActionPerformed
- System.exit(0);
- }//GEN-LAST:event_exitMenuItemActionPerformed
-
- /** Exit the Application */
- private void exitForm(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_exitForm
- System.exit(0);
- }//GEN-LAST:event_exitForm
-
- /**
- * param args the command line arguments
- */
- public static void main(String args[]) {
- new application().show();
- }
-
- // Variables declaration - do not modify//GEN-BEGIN:variables
- private javax.swing.JMenuBar menuBar;
- private javax.swing.JMenu fileMenu;
- private javax.swing.JMenuItem openMenuItem;
- private javax.swing.JMenuItem saveMenuItem;
- private javax.swing.JMenuItem saveAsMenuItem;
- private javax.swing.JMenuItem exitMenuItem;
- private javax.swing.JMenu editMenu;
- private javax.swing.JMenuItem cutMenuItem;
- private javax.swing.JMenuItem copyMenuItem;
- private javax.swing.JMenuItem pasteMenuItem;
- private javax.swing.JMenuItem deleteMenuItem;
- private javax.swing.JMenu helpMenu;
- private javax.swing.JMenuItem contentsMenuItem;
- private javax.swing.JMenuItem aboutMenuItem;
- // End of variables declaration//GEN-END:variables
-
-}]]></File>
- </Files>
- </Project>
- </Combine>
-</Template>
diff --git a/extras/JavaBinding/templates/JavaConsoleApplicationProject.xpt.xml b/extras/JavaBinding/templates/JavaConsoleApplicationProject.xpt.xml
deleted file mode 100644
index f7b3bc15a6..0000000000
--- a/extras/JavaBinding/templates/JavaConsoleApplicationProject.xpt.xml
+++ /dev/null
@@ -1,45 +0,0 @@
-<?xml version="1.0"?>
-<Template originator = "Shinsaku Nakagawa"
- created = "03/27/2003"
- lastModified = "04/06/2004">
-
- <!-- Template Header -->
- <TemplateConfiguration>
- <_Name>Console Project</_Name>
- <_Category>Java</_Category>
- <Icon>md-project-console|res:java-icon-32.png</Icon>
- <LanguageName>Java</LanguageName>
- <_Description>Create a console Java project</_Description>
- </TemplateConfiguration>
-
- <!-- Actions -->
- <Actions>
- <Open filename = "application.java"/>
- </Actions>
-
- <!-- Template Content -->
- <Combine name = "${ProjectName}" directory = ".">
- <Options>
- <StartupProject>${ProjectName}</StartupProject>
- </Options>
-
- <Project name = "${ProjectName}" directory = ".">
- <Options Target = "Exe" ClassPath = "" MainClass ="application" ExternalConsole="True" />
-
- <Files>
- <File name = "application.java">
-<![CDATA[/*
- * application.java
- *
- * created on ${Date} at ${Time}
- */
-
-public class application {
- public static void main(String[] args) {
- System.out.println("Hello, World!");
- }
-}]]></File>
- </Files>
- </Project>
- </Combine>
-</Template>
diff --git a/extras/JavaBinding/templates/JavaDialog.xft.xml b/extras/JavaBinding/templates/JavaDialog.xft.xml
deleted file mode 100644
index c2c60f54fb..0000000000
--- a/extras/JavaBinding/templates/JavaDialog.xft.xml
+++ /dev/null
@@ -1,68 +0,0 @@
-<?xml version="1.0"?>
-<Template Originator="Gary Gray" Language="JAVA" Created="09/05/2001" LastModified="09/05/2001">
-
- <TemplateConfiguration>
- <_Name>Java AWT Dialog</_Name>
- <Icon>md-gui-file</Icon>
- <_Category>AWT</_Category>
- <LanguageName>Java</LanguageName>
- <_Description>Creates an AWT dialog.</_Description>
- </TemplateConfiguration>
-
- <TemplateFiles>
- <File DefaultExtension=".java" DefaultName="Dialog">
-
-<![CDATA[
-/*
- * dialog.java
- *
- * created on ${Date} at ${Time}
- */
-
-public class dialog extends java.awt.Dialog {
-
- /** Creates new form dialog */
- public dialog(java.awt.Frame parent, boolean modal) {
- super(parent, modal);
- initComponents();
- }
-
- /** This method is called from within the constructor to
- * initialize the form.
- * WARNING: Do NOT modify this code. The content of this method is
- * always regenerated by the Form Editor.
- */
- private void initComponents() {//GEN-BEGIN:initComponents
- setLayout(new java.awt.BorderLayout());
- addWindowListener(new java.awt.event.WindowAdapter() {
- public void windowClosing(java.awt.event.WindowEvent evt) {
- closeDialog(evt);
- }
- }
- );
- pack();
- }//GEN-END:initComponents
-
- /** Closes the dialog */
- private void closeDialog(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_closeDialog
- setVisible(false);
- dispose();
- }//GEN-LAST:event_closeDialog
-
- /**
- * param args the command line arguments
- */
- public static void main(String args[]) {
- new dialog(new java.awt.Frame(), true).show();
- }
-
- // Variables declaration - do not modify//GEN-BEGIN:variables
- // End of variables declaration//GEN-END:variables
-
-}]]>
- </File>
- </TemplateFiles>
-
- <FileOptions/>
-
-</Template>
diff --git a/extras/JavaBinding/templates/JavaFrame.xft.xml b/extras/JavaBinding/templates/JavaFrame.xft.xml
deleted file mode 100644
index ffed5a6a81..0000000000
--- a/extras/JavaBinding/templates/JavaFrame.xft.xml
+++ /dev/null
@@ -1,67 +0,0 @@
-<?xml version="1.0"?>
-<Template Originator="Gary Gray" Language="JAVA" Created="09/05/2001" LastModified="09/05/2001">
-
- <TemplateConfiguration>
- <_Name>AWT Frame</_Name>
- <Icon>md-gui-file</Icon>
- <_Category>AWT</_Category>
- <LanguageName>Java</LanguageName>
- <_Description>Creates a Java AWT Frame</_Description>
- </TemplateConfiguration>
-
- <TemplateFiles>
- <File DefaultExtension=".java" DefaultName="Frame">
-
-<![CDATA[
-/*
- * frame.java
- *
- * created on ${Date} at ${Time}
- */
-
-public class frame extends java.awt.Frame {
-
- /** Creates new form frame */
- public frame() {
- initComponents();
- }
-
- /** This method is called from within the constructor to
- * initialize the form.
- * WARNING: Do NOT modify this code. The content of this method is
- * always regenerated by the Form Editor.
- */
- private void initComponents() {//GEN-BEGIN:initComponents
- addWindowListener(new java.awt.event.WindowAdapter() {
- public void windowClosing(java.awt.event.WindowEvent evt) {
- exitForm(evt);
- }
- }
- );
- pack();
- }//GEN-END:initComponents
-
- /** Exit the Application */
- private void exitForm(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_exitForm
- System.exit(0);
- }//GEN-LAST:event_exitForm
-
- /**
- * param args the command line arguments
- */
- public static void main(String args[]) {
- new frame().show();
- }
-
-
- // Variables declaration - do not modify//GEN-BEGIN:variables
- // End of variables declaration//GEN-END:variables
-
-}
-]]>
- </File>
- </TemplateFiles>
-
- <FileOptions/>
-
-</Template>
diff --git a/extras/JavaBinding/templates/JavaOKDialog.xft.xml b/extras/JavaBinding/templates/JavaOKDialog.xft.xml
deleted file mode 100644
index 493d99bb21..0000000000
--- a/extras/JavaBinding/templates/JavaOKDialog.xft.xml
+++ /dev/null
@@ -1,122 +0,0 @@
-<?xml version="1.0"?>
-<Template Originator="Gary Gray" Language="JAVA" Created="09/05/2001" LastModified="09/05/2001">
-
- <TemplateConfiguration>
- <_Name>AWT OK Dialog</_Name>
- <Icon>md-gui-file</Icon>
- <_Category>AWT</_Category>
- <LanguageName>Java</LanguageName>
- <_Description>Creates a Java AWT OK Dialog.</_Description>
- </TemplateConfiguration>
-
- <TemplateFiles>
- <File DefaultExtension=".java" DefaultName="OKDialog">
-
-<![CDATA[
-/*
- * OKDialog.java
- *
- * created on ${Date} at ${Time}
- */
-
-public class OKDialog extends javax.swing.JDialog {
- /** A return status code - returned if Cancel button has been pressed */
- public static final int RET_CANCEL = 0;
- /** A return status code - returned if OK button has been pressed */
- public static final int RET_OK = 1;
-
- /** Creates new form OKDialog */
- public OKDialog(java.awt.Frame parent, boolean modal) {
- super(parent, modal);
- initComponents();
- }
-
- /** return the return status of this dialog - one of RET_OK or RET_CANCEL */
- public int getReturnStatus() {
- return returnStatus;
- }
-
- /** This method is called from within the constructor to
- * initialize the form.
- * WARNING: Do NOT modify this code. The content of this method is
- * always regenerated by the Form Editor.
- */
- private void initComponents() {//GEN-BEGIN:initComponents
- addWindowListener(new java.awt.event.WindowAdapter() {
- public void windowClosing(java.awt.event.WindowEvent evt) {
- closeDialog(evt);
- }
- }
- );
-
- buttonPanel = new javax.swing.JPanel();
- buttonPanel.setLayout(new java.awt.FlowLayout(2, 5, 5));
-
- okButton = new javax.swing.JButton();
- okButton.setText("OK");
- okButton.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- okButtonActionPerformed(evt);
- }
- }
- );
-
- buttonPanel.add(okButton);
-
- cancelButton = new javax.swing.JButton();
- cancelButton.setText("Cancel");
- cancelButton.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- cancelButtonActionPerformed(evt);
- }
- }
- );
-
- buttonPanel.add(cancelButton);
-
-
- getContentPane().add(buttonPanel, java.awt.BorderLayout.SOUTH);
-
- pack();
- }//GEN-END:initComponents
-
- private void okButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_okButtonActionPerformed
- doClose(RET_OK);
- }//GEN-LAST:event_okButtonActionPerformed
-
- private void cancelButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cancelButtonActionPerformed
- doClose(RET_CANCEL);
- }//GEN-LAST:event_cancelButtonActionPerformed
-
- /** Closes the dialog */
- private void closeDialog(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_closeDialog
- doClose(RET_CANCEL);
- }//GEN-LAST:event_closeDialog
-
- private void doClose(int retStatus) {
- returnStatus = retStatus;
- setVisible(false);
- dispose();
- }
-
- /**
- * param args the command line arguments
- */
- public static void main(String args[]) {
- new OKDialog(new javax.swing.JFrame(), true).show();
- }
-
- // Variables declaration - do not modify//GEN-BEGIN:variables
- private javax.swing.JPanel buttonPanel;
- private javax.swing.JButton okButton;
- private javax.swing.JButton cancelButton;
- // End of variables declaration//GEN-END:variables
-
- private int returnStatus = RET_CANCEL;
-}]]>
- </File>
- </TemplateFiles>
-
- <FileOptions/>
-
-</Template>
diff --git a/extras/JavaBinding/templates/JavaPanel.xft.xml b/extras/JavaBinding/templates/JavaPanel.xft.xml
deleted file mode 100644
index 5a7273b399..0000000000
--- a/extras/JavaBinding/templates/JavaPanel.xft.xml
+++ /dev/null
@@ -1,53 +0,0 @@
-<?xml version="1.0"?>
-<Template Originator="Gary Gray" Language="JAVA" Created="09/05/2001" LastModified="09/05/2001">
-
- <TemplateConfiguration>
- <_Name>AWT Panel</_Name>
- <Icon>md-gui-file</Icon>
- <_Category>AWT</_Category>
- <LanguageName>Java</LanguageName>
- <_Description>Creates a Java AWT panel.</_Description>
- </TemplateConfiguration>
-
- <TemplateFiles>
- <File DefaultExtension=".java" DefaultName="Panel">
-
-<![CDATA[
-/*
- * panel.java
- *
- * created on ${Date} at ${Time}
- */
-
-/**
- *
- * author Administrator
- */
-public class panel extends java.awt.Panel {
-
- /** Creates new form panel */
- public panel() {
- initComponents();
- }
-
- /** This method is called from within the constructor to
- * initialize the form.
- * WARNING: Do NOT modify this code. The content of this method is
- * always regenerated by the Form Editor.
- */
- private void initComponents() {//GEN-BEGIN:initComponents
- setLayout(new java.awt.BorderLayout());
-
- }//GEN-END:initComponents
-
- // Variables declaration - do not modify//GEN-BEGIN:variables
- // End of variables declaration//GEN-END:variables
-
-}
-]]>
- </File>
- </TemplateFiles>
-
- <FileOptions/>
-
-</Template>
diff --git a/extras/MonoDevelop.AddinAuthoring/AddinTextStylePolicy.xml b/extras/MonoDevelop.AddinAuthoring/AddinTextStylePolicy.xml
deleted file mode 100644
index 280289eb7e..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/AddinTextStylePolicy.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-<TextStylePolicy scope="application/x-addin+xml">
- <FileWidth>80</FileWidth>
- <TabWidth>4</TabWidth>
- <TabsToSpaces>False</TabsToSpaces>
- <NoTabsAfterNonTabs>False</NoTabsAfterNonTabs>
- <RemoveTrailingWhitespace>False</RemoveTrailingWhitespace>
- <EolMarker>Native</EolMarker>
-</TextStylePolicy>
diff --git a/extras/MonoDevelop.AddinAuthoring/AddinXmlPolicy.xml b/extras/MonoDevelop.AddinAuthoring/AddinXmlPolicy.xml
deleted file mode 100644
index debf809562..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/AddinXmlPolicy.xml
+++ /dev/null
@@ -1,31 +0,0 @@
-<XmlFormattingPolicy scope="application/x-addin+xml">
- <DefaultFormat
- OmitXmlDeclaration="False"
- NewLineChars="&#xA;"
- IndentContent="True"
- ContentIndentString=" "
- AttributesInNewLine="False"
- MaxAttributesPerLine="10"
- AttributesIndentString=" "
- AlignAttributes="False"
- AlignAttributeValues="False"
- QuoteChar="&quot;"
- SpacesBeforeAssignment="0"
- SpacesAfterAssignment="0"
- EmptyLinesBeforeStart="0"
- EmptyLinesAfterStart="0"
- EmptyLinesBeforeEnd="0"
- EmptyLinesAfterEnd="0" />
- <Formats>
- <XmlFormatingSettings OmitXmlDeclaration="False" NewLineChars="&#xA;" IndentContent="True" ContentIndentString=" " AttributesInNewLine="True" MaxAttributesPerLine="10" AttributesIndentString=" " WrapAttributes="False" AlignAttributes="False" AlignAttributeValues="False" QuoteChar="&quot;" SpacesBeforeAssignment="0" SpacesAfterAssignment="0" EmptyLinesBeforeStart="0" EmptyLinesAfterStart="0" EmptyLinesBeforeEnd="0" EmptyLinesAfterEnd="0">
- <ScopeXPath>
- <String>/Addin</String>
- </ScopeXPath>
- </XmlFormatingSettings>
- <XmlFormatingSettings OmitXmlDeclaration="False" NewLineChars="&#xA;" IndentContent="True" ContentIndentString=" " AttributesInNewLine="False" MaxAttributesPerLine="10" AttributesIndentString=" " WrapAttributes="False" AlignAttributes="False" AlignAttributeValues="False" QuoteChar="&quot;" SpacesBeforeAssignment="0" SpacesAfterAssignment="0" EmptyLinesBeforeStart="1" EmptyLinesAfterStart="0" EmptyLinesBeforeEnd="0" EmptyLinesAfterEnd="1">
- <ScopeXPath>
- <String>/*/*</String>
- </ScopeXPath>
- </XmlFormatingSettings>
- </Formats>
-</XmlFormattingPolicy>
diff --git a/extras/MonoDevelop.AddinAuthoring/AssemblyInfo.cs b/extras/MonoDevelop.AddinAuthoring/AssemblyInfo.cs
deleted file mode 100644
index b2d1935b13..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/AssemblyInfo.cs
+++ /dev/null
@@ -1,9 +0,0 @@
-// Autogenerated from MonoDevelop.AddinAuthoring.addin.xml
-
-using System.Reflection;
-
-[assembly: AssemblyProduct ("MonoDevelop")]
-[assembly: AssemblyTitle ("Add-in Authoring")]
-[assembly: AssemblyDescription ("This add-in provides utilities for creating Mono.Addins based libraries and applications")]
-[assembly: AssemblyVersion ("2.4")]
-[assembly: AssemblyCopyright ("MIT X11")]
diff --git a/extras/MonoDevelop.AddinAuthoring/ChangeLog b/extras/MonoDevelop.AddinAuthoring/ChangeLog
deleted file mode 100644
index d58411fb03..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/ChangeLog
+++ /dev/null
@@ -1,439 +0,0 @@
-2010-06-14 Lluis Sanchez Gual <lluis@novell.com>
-
- * configure: Bump MD version.
-
-2010-03-29 Lluis Sanchez Gual <lluis@novell.com>
-
- * MonoDevelop.AddinAuthoring.addin.xml: Remove old add-ins.
-
-2010-03-29 Lluis Sanchez Gual <lluis@novell.com>
-
- * MonoDevelop.AddinAuthoring/TypeCellEditor.cs:
- * MonoDevelop.AddinAuthoring/SolutionAddinData.cs:
- * MonoDevelop.AddinAuthoring/AddinDescriptionView.cs:
- * MonoDevelop.AddinAuthoring/AddinAuthoringService.cs:
- * MonoDevelop.AddinAuthoring/ExtensionEditorWidget.cs:
- * MonoDevelop.AddinAuthoring/SelectRepositoryDialog.cs:
- * MonoDevelop.AddinAuthoring/AddinOptionPanelWidget.cs:
- * MonoDevelop.AddinAuthoring/ExtensionSelectorDialog.cs:
- * MonoDevelop.AddinAuthoring/AddinDescriptionDisplayBinding.cs:
- * MonoDevelop.AddinAuthoring.NodeBuilders/ExtensionsNodeBuilder.cs:
- * MonoDevelop.AddinAuthoring.NodeBuilders/AddinFolderNodeBuilder.cs:
- * MonoDevelop.AddinAuthoring.CodeCompletion/CodeCompletionExtension.cs:
- * MonoDevelop.AddinAuthoring.NodeBuilders/AddinReferenceNodeBuilder.cs:
- * MonoDevelop.AddinAuthoring.NodeBuilders/ExtensionPointsNodeBuilder.cs:
- * MonoDevelop.AddinAuthoring.NodeBuilders/ProjectFolderNodeBuilderExtension.cs:
- Track api chages. Patch by Jay R. Wren.
-
-2010-03-22 Lluis Sanchez Gual <lluis@novell.com>
-
- * configure:
- * AssemblyInfo.cs:
- * MonoDevelop.AddinAuthoring.addin.xml: Bumped MD version.
-
-2010-02-18 Lluis Sanchez Gual <lluis@novell.com>
-
- * MonoDevelop.AddinAuthoring/ExtensionEditorWidget.cs:
- * MonoDevelop.AddinAuthoring/ExtensionSelectorDialog.cs: Track
- api changes.
-
-2010-02-16 Lluis Sanchez Gual <lluis@novell.com>
-
- * gtk-gui/gui.stetic:
- * gtk-gui/generated.cs:
- * MonoDevelop.AddinAuthoring.sln:
- * MonoDevelop.AddinAuthoring.csproj:
- * gtk-gui/MonoDevelop.AddinAuthoring.TypeSelector.cs:
- * gtk-gui/MonoDevelop.AddinAuthoring.RegistrySelector.cs:
- * gtk-gui/MonoDevelop.AddinAuthoring.NewRegistryDialog.cs:
- * gtk-gui/MonoDevelop.AddinAuthoring.AddinFeatureWidget.cs:
- * gtk-gui/MonoDevelop.AddinAuthoring.NodeSetEditorDialog.cs:
- * gtk-gui/MonoDevelop.AddinAuthoring.NodeSetEditorWidget.cs:
- * gtk-gui/MonoDevelop.AddinAuthoring.SelectNodeSetDialog.cs:
- * gtk-gui/MonoDevelop.AddinAuthoring.NodeTypeEditorDialog.cs:
- * gtk-gui/MonoDevelop.AddinAuthoring.ExtensionEditorWidget.cs:
- * gtk-gui/MonoDevelop.AddinAuthoring.SelectRepositoryDialog.cs:
- * gtk-gui/MonoDevelop.AddinAuthoring.AddinDescriptionWidget.cs:
- * gtk-gui/MonoDevelop.AddinAuthoring.AddinOptionPanelWidget.cs:
- * gtk-gui/MonoDevelop.AddinAuthoring.ExtensionSelectorDialog.cs:
- * gtk-gui/MonoDevelop.AddinAuthoring.NewExtensionPointDialog.cs:
- * gtk-gui/MonoDevelop.AddinAuthoring.ExtensionPointsEditorWidget.cs:
- Flush.
-
- * MonoDevelop.AddinAuthoring/ExtensionEditorWidget.cs:
- * MonoDevelop.AddinAuthoring/ExtensionSelectorDialog.cs: Fix
- build.
-
- * MonoDevelop.AddinAuthoring.CodeCompletion/CodeCompletionExtension.cs:
- Track api changes.
-
-2010-02-12 Lluis Sanchez Gual <lluis@novell.com>
-
- * MonoDevelop.AddinAuthoring.addin.xml: Set correct
- serializable type name.
-
-2010-01-28 Lluis Sanchez Gual <lluis@novell.com>
-
- * MonoDevelop.AddinAuthoring/AddinFeatureWidget.cs: Track api
- changes.
-
-2010-01-28 Lluis Sanchez Gual <lluis@novell.com>
-
- * MonoDevelop.AddinAuthoring/AddinAuthoringService.cs:
- * MonoDevelop.AddinAuthoring/AddinDescriptionDisplayBinding.cs:
- Track api changes.
-
-2009-12-01 Lluis Sanchez Gual <lluis@novell.com>
-
- * MonoDevelop.AddinAuthoring/AddinData.cs:
- * MonoDevelop.AddinAuthoring/SolutionAddinData.cs:
- * MonoDevelop.AddinAuthoring/AddinProjectExtension.cs:
- * MonoDevelop.AddinAuthoring/AddinProjectReference.cs:
- * MonoDevelop.AddinAuthoring/AddinDescriptionWidget.cs:
- Introduced the ConfigurationSelector class to all methods that
- previously took a configuration name as string. This
- eliminates the ambiguity between solution configuration names
- and project configuration names.
-
-2009-10-30 Lluis Sanchez Gual <lluis@novell.com>
-
- * configure:
- * AssemblyInfo.cs:
- * MonoDevelop.AddinAuthoring.addin.xml: Bump MD version.
-
-2009-10-07 Lluis Sanchez Gual <lluis@novell.com>
-
- * configure:
- * AssemblyInfo.cs:
- * MonoDevelop.AddinAuthoring.addin.xml: Bump MD version.
-
-2009-10-07 Lluis Sanchez Gual <lluis@novell.com>
-
- * MonoDevelop.AddinAuthoring/AddinDescriptionView.cs:
- * MonoDevelop.AddinAuthoring/AddinAuthoringService.cs: Improve
- formatting of saved .addin files.
-
- * MonoDevelop.AddinAuthoring/AddinData.cs: Remove debug code.
-
- * MonoDevelop.AddinAuthoring.CodeCompletion/CodeCompletionExtension.cs:
- Track api changes.
-
-2009-10-01 Lluis Sanchez Gual <lluis@novell.com>
-
- * gtk-gui/gui.stetic:
- * addin-reference.png:
- * MonoDevelop.AddinAuthoring.sln:
- * MonoDevelop.AddinAuthoring.make:
- * MonoDevelop.AddinAuthoring.csproj:
- * MonoDevelop.AddinAuthoring.addin.xml:
- * MonoDevelop.AddinAuthoring/AddinData.cs:
- * MonoDevelop.AddinAuthoring/AddinDescriptionView.cs:
- * MonoDevelop.AddinAuthoring/AddinProjectExtension.cs:
- * MonoDevelop.AddinAuthoring/AddinAuthoringService.cs:
- * MonoDevelop.AddinAuthoring/AddinDescriptionDisplayBinding.cs:
- * MonoDevelop.AddinAuthoring.NodeBuilders/ReferenceNodeBuilder.cs:
- * MonoDevelop.AddinAuthoring.NodeBuilders/AddinFolderNodeBuilder.cs:
- * MonoDevelop.AddinAuthoring.NodeBuilders/AddinReferenceNodeBuilder.cs:
- * MonoDevelop.AddinAuthoring.NodeBuilders/ReferencesFolderNodeBuilder.cs:
- * MonoDevelop.AddinAuthoring.NodeBuilders/ProjectFolderNodeBuilderExtension.cs:
- Ongoing work.
-
-2009-09-01 Lluis Sanchez Gual <lluis@novell.com>
-
- * configure: Bump mono-addins dependency.
-
-2009-09-01 Lluis Sanchez Gual <lluis@novell.com>
-
- * configure: Updated deps.
-
-2009-08-21 Lluis Sanchez Gual <lluis@novell.com>
-
- * MonoDevelop.AddinAuthoring/SolutionAddinData.cs:
- * MonoDevelop.AddinAuthoring/AddinFeatureWidget.cs:
- * MonoDevelop.AddinAuthoring/RegistryExtensionNode.cs:
- * MonoDevelop.AddinAuthoring/AddinProjectExtension.cs: Add
- support for testing add-ins.
-
-2009-08-21 Lluis Sanchez Gual <lluis@novell.com>
-
- * gtk-gui/gui.stetic:
- * MonoDevelop.AddinAuthoring.addin.xml:
- * MonoDevelop.AddinAuthoring/AddinData.cs:
- * MonoDevelop.AddinAuthoring/ExtensionDomain.cs:
- * MonoDevelop.AddinAuthoring/RegistrySelector.cs:
- * MonoDevelop.AddinAuthoring/SolutionAddinData.cs:
- * MonoDevelop.AddinAuthoring/AddinFeatureWidget.cs:
- * MonoDevelop.AddinAuthoring/AddinAuthoringService.cs:
- * MonoDevelop.AddinAuthoring/RegistryExtensionNode.cs:
- * MonoDevelop.AddinAuthoring/AddinProjectReference.cs:
- * MonoDevelop.AddinAuthoring/ExtensionEditorWidget.cs:
- * MonoDevelop.AddinAuthoring/SelectRepositoryDialog.cs:
- * gtk-gui/MonoDevelop.AddinAuthoring.SelectRepositoryDialog.cs:
- * gtk-gui/MonoDevelop.AddinAuthoring.AddinDescriptionWidget.cs:
- * MonoDevelop.AddinAuthoring.NodeBuilders/AddinReferenceNodeBuilder.cs:
- * MonoDevelop.AddinAuthoring.NodeBuilders/ReferencesFolderNodeBuilder.cs:
- Ongoing work.
-
-2009-08-12 Lluis Sanchez Gual <lluis@novell.com>
-
- * AssemblyInfo.cs:
- * gtk-gui/gui.stetic:
- * gtk-gui/objects.xml:
- * templates/AddinProject.xpt.xml:
- * MonoDevelop.AddinAuthoring.mdp:
- * MonoDevelop.AddinAuthoring.sln:
- * MonoDevelop.AddinAuthoring.mds:
- * MonoDevelop.AddinAuthoring.make:
- * MonoDevelop.AddinAuthoring.csproj:
- * MonoDevelop.AddinAuthoring.addin.xml:
- * MonoDevelop.AddinAuthoring/AddinData.cs:
- * MonoDevelop.AddinAuthoring.CodeCompletion:
- * templates/ExtensibleLibraryProject.xpt.xml:
- * MonoDevelop.AddinAuthoring/TypeCellEditor.cs:
- * MonoDevelop.AddinAuthoring/ExtensionDomain.cs:
- * MonoDevelop.AddinAuthoring/NodeEditorWidget.cs:
- * templates/ExtensibleApplicationProject.xpt.xml:
- * MonoDevelop.AddinAuthoring/RegistrySelector.cs:
- * MonoDevelop.AddinAuthoring/NewRegistryDialog.cs:
- * MonoDevelop.AddinAuthoring/SolutionAddinData.cs:
- * MonoDevelop.AddinAuthoring/AddinFeatureWidget.cs:
- * MonoDevelop.AddinAuthoring/AddinDescriptionView.cs:
- * MonoDevelop.AddinAuthoring/RegistryExtensionNode.cs:
- * MonoDevelop.AddinAuthoring/ExtensionEditorWidget.cs:
- * MonoDevelop.AddinAuthoring/AddinProjectReference.cs:
- * MonoDevelop.AddinAuthoring/AddinAuthoringService.cs:
- * MonoDevelop.AddinAuthoring/AddinOptionPanelWidget.cs:
- * MonoDevelop.AddinAuthoring/SelectRepositoryDialog.cs:
- * gtk-gui/MonoDevelop.AddinAuthoring.NewRegistryDialog.cs:
- * gtk-gui/MonoDevelop.AddinAuthoring.AddinFeatureWidget.cs:
- * MonoDevelop.AddinAuthoring.CodeCompletion/AddinParser.cs:
- * gtk-gui/MonoDevelop.AddinAuthoring.NodeSetEditorDialog.cs:
- * gtk-gui/MonoDevelop.AddinAuthoring.SelectNodeSetDialog.cs:
- * gtk-gui/MonoDevelop.AddinAuthoring.NodeTypeEditorDialog.cs:
- * gtk-gui/MonoDevelop.AddinAuthoring.ExtensionEditorWidget.cs:
- * gtk-gui/MonoDevelop.AddinAuthoring.AddinOptionPanelWidget.cs:
- * gtk-gui/MonoDevelop.AddinAuthoring.AddinDescriptionWidget.cs:
- * MonoDevelop.AddinAuthoring/AddinDescriptionDisplayBinding.cs:
- * gtk-gui/MonoDevelop.AddinAuthoring.SelectRepositoryDialog.cs:
- * gtk-gui/MonoDevelop.AddinAuthoring.ExtensionSelectorDialog.cs:
- * gtk-gui/MonoDevelop.AddinAuthoring.NewExtensionPointDialog.cs:
- * MonoDevelop.AddinAuthoring.NodeBuilders/ReferenceNodeBuilder.cs:
- * MonoDevelop.AddinAuthoring.CodeCompletion/BaseXmlEditorExtension.cs:
- * MonoDevelop.AddinAuthoring.NodeBuilders/AddinReferenceNodeBuilder.cs:
- * MonoDevelop.AddinAuthoring.CodeCompletion/CodeCompletionExtension.cs:
- * MonoDevelop.AddinAuthoring.NodeBuilders/ReferencesFolderNodeBuilder.cs:
- * MonoDevelop.AddinAuthoring.NodeBuilders/ProjectFolderNodeBuilderExtension.cs:
- Work in progress.
-
-2009-05-19 Lluis Sanchez Gual <lluis@novell.com>
-
- * MonoDevelop.AddinAuthoring/AddinData.cs: Track api changes.
-
-2009-04-15 Lluis Sanchez Gual <lluis@novell.com>
-
- * configure: Bump MD version.
-
-2009-02-26 Lluis Sanchez Gual <lluis@novell.com>
-
- * MonoDevelop.AddinAuthoring.mds:
- * MonoDevelop.AddinAuthoring.mdp: Flush.
-
-2009/02/03 Lluis Sanchez Gual <lluis@novell.com>
-
- * MonoDevelop.AddinAuthoring/AddinFileDescriptionTemplate.cs: Fix
- build.
-
-2009/02/03 Lluis Sanchez Gual <lluis@novell.com>
-
- * configure:
- * AssemblyInfo.cs: Bump MD version.
-
-2009-01-26 Michael Hutchinson <mhutchinson@novell.com>
-
- * MonoDevelop.AddinAuthoring.mdp: Flush project format changes.
-
-2008-12-02 Michael Hutchinson <mhutchinson@novell.com>
-
- * AssemblyInfo.cs: Add AssemblyInfo.cs files that are autogenerated from
- the addin manifests.
-
-2008-11-05 Lluis Sanchez Gual <lluis@novell.com>
-
- * configure: Bump MD version.
-
-2008-10-01 Michael Hutchinson <mhutchinson@novell.com>
-
- * MonoDevelop.AddinAuthoring/AddinFileDescriptionTemplate.cs,
- MonoDevelop.AddinAuthoring/AddinProjectExtension.cs,
- MonoDevelop.AddinAuthoring/AddinData.cs: Track API.
-
-2008-09-17 Lluis Sanchez Gual <lluis@novell.com>
-
- * MonoDevelop.AddinAuthoring.mdp: Updated projects.
-
-2008-09-12 Lluis Sanchez Gual <lluis@novell.com>
-
- * MonoDevelop.AddinAuthoring/AddinFileDescriptionTemplate.cs,
- MonoDevelop.AddinAuthoring/TypeSelector.cs: Track api changes.
-
-2008-09-04 Lluis Sanchez Gual <lluis@novell.com>
-
- * MonoDevelop.AddinAuthoring.NodeBuilders/AddinReferenceNodeBuilder.cs,
- MonoDevelop.AddinAuthoring.NodeBuilders/ExtensionsNodeBuilder.cs,
- MonoDevelop.AddinAuthoring.NodeBuilders/ProjectFolderNodeBuilderExtension.cs,
- MonoDevelop.AddinAuthoring.NodeBuilders/ExtensionPointsNodeBuilder.cs,
- MonoDevelop.AddinAuthoring.NodeBuilders/AddinFolderNodeBuilder.cs,
- MonoDevelop.AddinAuthoring.NodeBuilders/ReferencesFolderNodeBuilder.cs:
- Moved the extensible tree view to its own directory.
-
-2008-08-21 Lluis Sanchez Gual <lluis@novell.com>
-
- * MonoDevelop.AddinAuthoring/NodeSetEditorWidget.cs,
- MonoDevelop.AddinAuthoring/TypeSelector.cs,
- MonoDevelop.AddinAuthoring/ExtensionPointsEditorWidget.cs,
- MonoDevelop.AddinAuthoring/ExtensionEditorWidget.cs,
- MonoDevelop.AddinAuthoring/AddinDescriptionWidget.cs,
- MonoDevelop.AddinAuthoring/AddinOptionPanelWidget.cs,
- MonoDevelop.AddinAuthoring/AddinFeatureWidget.cs,
- MonoDevelop.AddinAuthoring/CellRendererExtension.cs,
- MonoDevelop.AddinAuthoring/RegistrySelector.cs,
- MonoDevelop.AddinAuthoring.NodeBuilders/AddinFolderNodeBuilder.cs,
- MonoDevelop.AddinAuthoring.mdp, gtk-gui/objects.xml: Use new model
- for exporting stetic widgets.
-
-2008-07-21 Lluis Sanchez Gual <lluis@novell.com>
-
- * MonoDevelop.AddinAuthoring/AddinAuthoringService.cs,
- MonoDevelop.AddinAuthoring/AddinData.cs,
- MonoDevelop.AddinAuthoring/RegistryExtensionNode.cs: Moved
- serialization engine to MonoDevelop.Core. Use new syntax for
- specifying attribute scope.
-
-2008-06-04 Lluis Sanchez Gual <lluis@novell.com>
-
- * configure, MonoDevelop.AddinAuthoring.addin.xml: Bump MD version.
-
-2008-05-26 Lluis Sanchez Gual <lluis@novell.com>
-
- * MonoDevelop.AddinAuthoring/AddinFileDescriptionTemplate.cs: Track api
- changes.
-
-2008-05-22 Lluis Sanchez Gual <lluis@novell.com>
-
- * MonoDevelop.AddinAuthoring.addin.xml: Merged the extension points for
- project and solution option panels into a single extension point. A
- single extension point will now be used for all kinds of items.
- Extension conditions can be used to make panels visible only for
- some specific item types.
-
-2008-05-22 Lluis Sanchez Gual <lluis@novell.com>
-
- * MonoDevelop.AddinAuthoring/AddinProjectExtension.cs: Replaced
- ICompilerResult/DefaultCompilerResult/CompilerResults by a new
- BuildResult class, which has owner information at error level, so
- it is possible to know which project generated an error when
- building a solution. Updated Task and TaskService to use the new
- owner information.
-
-2008-05-21 Lluis Sanchez Gual <lluis@novell.com>
-
- * MonoDevelop.AddinAuthoring/NodeEditorDialog.cs,
- MonoDevelop.AddinAuthoring/NodeSetEditorWidget.cs,
- MonoDevelop.AddinAuthoring/NodeTypeEditorDialog.cs,
- MonoDevelop.AddinAuthoring/AddinFileDescriptionTemplate.cs,
- MonoDevelop.AddinAuthoring/NewExtensionPointDialog.cs,
- MonoDevelop.AddinAuthoring/AddinAuthoringService.cs,
- MonoDevelop.AddinAuthoring/SelectNodeSetDialog.cs,
- MonoDevelop.AddinAuthoring/TypeSelector.cs,
- MonoDevelop.AddinAuthoring/ExtensionPointsEditorWidget.cs,
- MonoDevelop.AddinAuthoring/AddinProjectReference.cs,
- MonoDevelop.AddinAuthoring/ExtensionEditorWidget.cs,
- MonoDevelop.AddinAuthoring/AddinDescriptionWidget.cs,
- MonoDevelop.AddinAuthoring/AddinOptionPanelWidget.cs,
- MonoDevelop.AddinAuthoring/AddinFeatureWidget.cs,
- MonoDevelop.AddinAuthoring/NodeEditorWidget.cs,
- MonoDevelop.AddinAuthoring/AddinProjectExtension.cs,
- MonoDevelop.AddinAuthoring/AddinDescriptionDisplayBinding.cs,
- MonoDevelop.AddinAuthoring/AddinData.cs,
- MonoDevelop.AddinAuthoring.addin.xml,
- MonoDevelop.AddinAuthoring.NodeBuilders/ReferencesFolderNodeBuilder.cs,
- MonoDevelop.AddinAuthoring.mds: New project model changes.
-
-2008-03-10 Lluis Sanchez Gual <lluis@novell.com>
-
- * templates/AddinProject.xpt.xml: Fix attribute name.
-
-2008-03-10 Lluis Sanchez Gual <lluis@novell.com>
-
- * MonoDevelop.AddinAuthoring/AddinDescriptionView.cs,
- MonoDevelop.AddinAuthoring/AddinOptionPanelWidget.cs,
- MonoDevelop.AddinAuthoring/SelectRepositoryDialog.cs,
- MonoDevelop.AddinAuthoring.NodeBuilders/AddinReferenceNodeBuilder.cs:
- Track changes in the MessageService class.
-
-2008-02-20 Lluis Sanchez Gual <lluis@novell.com>
-
- * MonoDevelop.AddinAuthoring.NodeBuilders/AddinReferenceNodeBuilder.cs:
- Handle the delete key in TreeViewPad, so it will work event if the
- shortcut is not defined.
-
-2008-02-18 Lluis Sanchez Gual <lluis@novell.com>
-
- * MonoDevelop.AddinAuthoring/RegistryExtensionNode.cs,
- MonoDevelop.AddinAuthoring/AddinAuthoringService.cs,
- MonoDevelop.AddinAuthoring/AddinProjectReference.cs,
- MonoDevelop.AddinAuthoring/SelectRepositoryDialog.cs,
- MonoDevelop.AddinAuthoring/NewRegistryDialog.cs,
- MonoDevelop.AddinAuthoring/AddinProjectExtension.cs,
- MonoDevelop.AddinAuthoring/AddinData.cs,
- MonoDevelop.AddinAuthoring.make, MonoDevelop.AddinAuthoring.addin.xml,
- MonoDevelop.AddinAuthoring.NodeBuilders/AddinReferenceNodeBuilder.cs,
- MonoDevelop.AddinAuthoring.mdp,
- gtk-gui/MonoDevelop.AddinAuthoring.SelectRepositoryDialog.cs,
- gtk-gui/MonoDevelop.AddinAuthoring.NewRegistryDialog.cs,
- gtk-gui/gui.stetic: Improved add-in reference management and registry
- selection.
-
-2008-02-14 Lluis Sanchez Gual <lluis@novell.com>
-
- * MonoDevelop.AddinAuthoring/AddinDescriptionView.cs,
- MonoDevelop.AddinAuthoring/AddinAuthoringService.cs,
- MonoDevelop.AddinAuthoring/TypeSelector.cs,
- MonoDevelop.AddinAuthoring/ExtensionPointsEditorWidget.cs,
- MonoDevelop.AddinAuthoring/ExtensionEditorWidget.cs,
- MonoDevelop.AddinAuthoring/AddinDescriptionWidget.cs,
- MonoDevelop.AddinAuthoring/ExtensionSelectorDialog.cs,
- MonoDevelop.AddinAuthoring/AddinFeatureWidget.cs,
- MonoDevelop.AddinAuthoring/NodeEditorWidget.cs,
- MonoDevelop.AddinAuthoring/AddinProjectExtension.cs,
- MonoDevelop.AddinAuthoring/AddinDescriptionDisplayBinding.cs,
- MonoDevelop.AddinAuthoring/AddinData.cs,
- MonoDevelop.AddinAuthoring/RegistrySelector.cs,
- MonoDevelop.AddinAuthoring.make, MonoDevelop.AddinAuthoring.addin.xml,
- MonoDevelop.AddinAuthoring.NodeBuilders/AddinReferenceNodeBuilder.cs,
- MonoDevelop.AddinAuthoring.NodeBuilders/ProjectFolderNodeBuilderExtension.cs,
- MonoDevelop.AddinAuthoring.NodeBuilders/ExtensionsNodeBuilder.cs,
- MonoDevelop.AddinAuthoring.NodeBuilders/ExtensionPointsNodeBuilder.cs,
- MonoDevelop.AddinAuthoring.NodeBuilders/AddinFolderNodeBuilder.cs,
- MonoDevelop.AddinAuthoring.NodeBuilders/ReferencesFolderNodeBuilder.cs,
- MonoDevelop.AddinAuthoring.mdp,
- gtk-gui/MonoDevelop.AddinAuthoring.ExtensionEditorWidget.cs,
- gtk-gui/MonoDevelop.AddinAuthoring.AddinDescriptionWidget.cs,
- gtk-gui/MonoDevelop.AddinAuthoring.AddinOptionPanelWidget.cs,
- gtk-gui/MonoDevelop.AddinAuthoring.ExtensionSelectorDialog.cs,
- gtk-gui/MonoDevelop.AddinAuthoring.AddinFeatureWidget.cs,
- gtk-gui/MonoDevelop.AddinAuthoring.SelectRepositoryDialog.cs,
- gtk-gui/MonoDevelop.AddinAuthoring.NodeSetEditorWidget.cs,
- gtk-gui/MonoDevelop.AddinAuthoring.NodeTypeEditorDialog.cs,
- gtk-gui/MonoDevelop.AddinAuthoring.NewExtensionPointDialog.cs,
- gtk-gui/MonoDevelop.AddinAuthoring.SelectNodeSetDialog.cs,
- gtk-gui/MonoDevelop.AddinAuthoring.ExtensionPointsEditorWidget.cs,
- gtk-gui/gui.stetic, MonoDevelop.AddinAuthoring.mds: Improved
- localization, handling of manifest file changes, reloading of manifest.
- Simplified manifest view.
-
-2008-02-14 Lluis Sanchez Gual <lluis@novell.com>
-
- * configure, monodevelop.addinauthoring.pc.in, Makefile.include,
- MonoDevelop.AddinAuthoring.make, rules.make, Makefile: Add build files
-
diff --git a/extras/MonoDevelop.AddinAuthoring/Makefile b/extras/MonoDevelop.AddinAuthoring/Makefile
deleted file mode 100644
index bc4decbc5f..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/Makefile
+++ /dev/null
@@ -1,72 +0,0 @@
-
-EXTRA_DIST = MonoDevelop.AddinAuthoring.make rules.make configure Makefile.include
-
-all: all-recursive
-
-top_srcdir=.
-include $(top_srcdir)/config.make
-include $(top_srcdir)/rules.make
-
-#include $(top_srcdir)/custom-hooks.make
-
-#Warning: This is an automatically generated file, do not edit!
-ifeq ($(CONFIG),DEBUG)
- SUBDIRS = .
-endif
-ifeq ($(CONFIG),RELEASE)
- SUBDIRS = .
-endif
-
-# Include project specific makefile
-include MonoDevelop.AddinAuthoring.make
-
-CONFIG_MAKE=$(top_srcdir)/config.make
-
-%-recursive: $(CONFIG_MAKE)
- @set . $$MAKEFLAGS; final_exit=:; \
- case $$2 in --unix) shift ;; esac; \
- case $$2 in *=*) dk="exit 1" ;; *k*) dk=: ;; *) dk="exit 1" ;; esac; \
- make pre-$*-hook prefix=$(prefix) ; \
- for dir in $(SUBDIRS); do \
- case $$dir in \
- .) make $*-local || { final_exit="exit 1"; $$dk; };;\
- *) (cd $$dir && make $*) || { final_exit="exit 1"; $$dk; };;\
- esac \
- done; \
- make post-$*-hook prefix=$(prefix) ; \
- $$final_exit
-
-$(CONFIG_MAKE):
- echo "You must run configure first"
- exit 1
-
-clean: clean-recursive
-install: install-recursive
-uninstall: uninstall-recursive
-
-dist: $(CONFIG_MAKE)
- rm -rf $(PACKAGE)-$(VERSION)
- mkdir $(PACKAGE)-$(VERSION)
- make pre-dist-hook distdir=$$distdir
- for dir in $(SUBDIRS); do \
- pkgdir=`pwd`/$(PACKAGE)-$(VERSION); \
- mkdir $$pkgdir/$$dir || true; \
- case $$dir in \
- .) make dist-local distdir=$$pkgdir || exit 1;; \
- *) (cd $$dir; make dist-local distdir=$$pkgdir/$$dir) || exit 1;; \
- esac \
- done
- (make dist-local distdir=$(PACKAGE)-$(VERSION))
- make post-dist-hook distsir=$$distdir
- tar czvf $(PACKAGE)-$(VERSION).tar.gz $(PACKAGE)-$(VERSION)
- rm -rf $(PACKAGE)-$(VERSION)
- @echo "=========================================="
- @echo "$(PACKAGE)-$(VERSION) has been packaged > $(PACKAGE)-$(VERSION).tar.gz"
- @echo "=========================================="
-
-distcheck: dist
- (mkdir test; cd test; \
- tar xzvf ../$(PACKAGE)-$(VERSION).tar.gz; cd $(PACKAGE)-$(VERSION); \
- ./configure --prefix=$$(cd `pwd`/..; pwd); \
- make && make install && make dist);
- rm -rf test
diff --git a/extras/MonoDevelop.AddinAuthoring/Makefile.include b/extras/MonoDevelop.AddinAuthoring/Makefile.include
deleted file mode 100644
index 23345e7a0b..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/Makefile.include
+++ /dev/null
@@ -1,33 +0,0 @@
-build_sources = $(FILES) $(GENERATED_FILES)
-build_sources_embed = $(build_sources:%='$(srcdir)/%')
-
-comma__=,
-build_resx_list = $(foreach res, $(RESOURCES), $(if $(filter %.resx, $(firstword $(subst $(comma__), ,$(res)))),$(res),))
-build_others_list = $(foreach res, $(RESOURCES), $(if $(filter %.resx, $(firstword $(subst $(comma__), ,$(res)))), ,$(res)))
-build_xamlg_list = $(filter %.xaml.g.cs, $(FILES))
-
-build_resx_files = $(foreach res, $(build_resx_list), $(firstword $(subst $(comma__), ,$(res))))
-build_resx_resources = $(build_resx_files:.resx=.resources)
-build_resx_resources_hack = $(subst .resx,.resources, $(build_resx_list))
-build_resx_resources_embed = $(build_resx_resources_hack:%='-resource:%')
-
-build_others_files = $(foreach res, $(build_others_list), $(firstword $(subst $(comma__), ,$(res))))
-build_others_resources = $(build_others_files)
-build_others_resources_embed = $(build_others_list:%='-resource:$(srcdir)/%')
-
-build_resources = $(build_resx_resources) $(build_others_resources)
-build_resources_embed = $(build_resx_resources_embed) $(build_others_resources_embed)
-
-build_references_ref = $(foreach ref, $(REFERENCES), $(if $(filter -pkg:%, $(ref)), $(ref), $(if $(filter -r:%, $(ref)), $(ref), -r:$(ref))))
-build_references_ref += $(foreach ref, $(DLL_REFERENCES), -r:$(ref))
-build_references_ref += $(foreach ref, $(PROJECT_REFERENCES), -r:$(ref))
-
-EXTRA_DIST += $(build_sources) $(build_resx_files) $(build_others_files) $(ASSEMBLY_WRAPPER_IN) $(EXTRAS) $(DATA_FILES)
-CLEANFILES = $(ASSEMBLY) $(ASSEMBLY).mdb $(BINARIES) $(build_resx_resources)
-DISTCLEANFILES = $(GENERATED_FILES) $(pc_files) $(BUILD_DIR)/*
-
-pkglib_SCRIPTS = $(ASSEMBLY)
-bin_SCRIPTS = $(BINARIES)
-
-linuxpkgconfigdir = @prefix@/lib/pkgconfig
-linuxpkgconfig_DATA = $(LINUX_PKGCONFIG)
diff --git a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.CodeCompletion/AddinParser.cs b/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.CodeCompletion/AddinParser.cs
deleted file mode 100644
index 24c2e9db1e..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.CodeCompletion/AddinParser.cs
+++ /dev/null
@@ -1,112 +0,0 @@
-// AddinParser.cs
-//
-// Author:
-// Lluis Sanchez Gual <lluis@novell.com>
-//
-// Copyright (c) 2008 Novell, Inc (http://www.novell.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-//
-//
-
-using System;
-using System.Xml;
-using Mono.Addins.Description;
-
-namespace MonoDevelop.AddinAuthoring.CodeCompletion
-{
- public class AddinParser
- {
- XmlTextReader reader;
- char completionChar;
- AddinDescription adesc;
-
- public AddinParser (AddinDescription adesc, string text, char completionChar)
- {
- reader = new XmlTextReader (new StringReader (text));
- this.completionChar = completionChar;
- this.adesc = adesc;
- }
-
- public CompletionContext ParseElement (CompletionContext parentContext)
- {
- }
-
- public CompletionContext ParseElementContent (CompletionContext parentContext)
- {
- PositionCheckpoint ();
-
- do {
- if (!reader.Read ())
- return null;
- if (PositionFound ()) {
- if (OpeningElement)
- return new TopLevelCompletionContext ();
- else
- return null;
- }
- }
- while (reader.NodeType != XmlNodeType.Element);
-
- if (reader.Name == "Addin") {
- bool isEmpty = reader.IsEmptyElement;
- reader.Read ();
- if (PositionFound () && OpeningElement)
- return new InsideHeaderCompletionContext ();
- else if (!isEmpty)
- return ParseModule (adesc.MainModule);
- }
- return null;
- }
-
- CompletionContext ParseElement (CompletionContext parentContext)
- {
- do {
- if (reader.NodeType == XmlNodeType.Element) {
- bool isEmpty = reader.IsEmptyElement;
- ItemData data = parentContext.GetElementData (reader.LocalName);
- if (data != null) {
- CompletionContext childCtx = (CompletionContext) Activator.CreateInstance (data.ChildContextType);
- childCtx.Init (parentContext, reader);
- reader.Read ();
- if (PositionFound ())
- return FillContext (childCtx);
- if (!isEmpty) {
- CompletionContext ctx = ParseElement (childCtx);
- if (ctx != null)
- return ctx;
- }
- }
- else {
- reader.Skip ();
- if (PositionFound ())
- return null;
- }
- }
- else if (PositionFound ()) {
- if (OpeningElement)
- return ModuleExtensionContext (module);
- else
- return null;
- }
- }
- while (reader.Read ());
- }
- }
-}
diff --git a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.CodeCompletion/BaseXmlEditorExtension.cs b/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.CodeCompletion/BaseXmlEditorExtension.cs
deleted file mode 100644
index aa86ff8a7f..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.CodeCompletion/BaseXmlEditorExtension.cs
+++ /dev/null
@@ -1,213 +0,0 @@
-
-using System;
-using S = MonoDevelop.Xml.StateEngine;
-using MonoDevelop.Ide.Gui.Content;
-using MonoDevelop.Ide.CodeCompletion;
-
-namespace MonoDevelop.AddinAuthoring.CodeCompletion
-{
- public class BaseXmlEditorExtension: CompletionTextEditorExtension
- {
- DocumentStateTracker<S.Parser> tracker;
-
- #region Setup and teardown
-
- public override void Initialize ()
- {
- base.Initialize ();
- S.Parser parser = new S.Parser (new S.XmlFreeState (), true);
- tracker = new DocumentStateTracker<S.Parser> (parser, Editor);
- }
-
- public override void Dispose ()
- {
- if (tracker != null)
- tracker = null;
- base.Dispose ();
- }
-
- #endregion
-
- #region Convenience accessors
-
- protected ITextBuffer Buffer {
- get {
- if (Document == null)
- throw new InvalidOperationException ("Editor extension not yet initialized");
- return Document.GetContent<ITextBuffer> ();
- }
- }
-
- protected IEditableTextBuffer EditableBuffer {
- get {
- if (Document == null)
- throw new InvalidOperationException ("Editor extension not yet initialized");
- return Document.GetContent<IEditableTextBuffer> ();
- }
- }
-
- #endregion
-
- public override ICompletionDataProvider CodeCompletionCommand (CodeCompletionContext completionContext)
- {
- int pos = completionContext.TriggerOffset;
- string txt = Editor.GetText (pos - 1, pos);
- int triggerWordLength = 0;
- ICompletionDataProvider cp = null;
- if (txt.Length > 0)
- cp = HandleCodeCompletion ((CodeCompletionContext) completionContext, true, ref triggerWordLength);
-
- return cp;
- }
-
- public override ICompletionDataProvider HandleCodeCompletion (
- CodeCompletionContext completionContext, char completionChar, ref int triggerWordLength)
- {
- int pos = completionContext.TriggerOffset;
- if (pos > 0 && Editor.GetCharAt (pos - 1) == completionChar) {
- return HandleCodeCompletion ((CodeCompletionContext) completionContext, false, ref triggerWordLength);
- }
- return null;
- }
-
- ICompletionDataProvider HandleCodeCompletion (
- CodeCompletionContext completionContext, bool forced, ref int triggerWordLength)
- {
- tracker.UpdateEngine ();
-
- //FIXME: lines in completionContext are zero-indexed, but ILocation and buffer are 1-indexed.
- //This could easily cause bugs.
- int line = completionContext.TriggerLine + 1, col = completionContext.TriggerLineOffset;
-
- ITextBuffer buf = this.Buffer;
-
- // completionChar may be a space even if the current char isn't, when ctrl-space is fired t
- int currentPosition = buf.CursorPosition - 1;
- char currentChar = buf.GetCharAt (currentPosition);
- char previousChar = buf.GetCharAt (currentPosition - 1);
-
- //decide whether completion will be auto-activated, to avoid unnecessary
- //parsing, which hurts editor responsiveness
- if (!forced) {
- //
- if (tracker.Engine.CurrentState is S.XmlFreeState && !(currentChar == '<' || currentChar == '>'))
- return null;
-
- if (tracker.Engine.CurrentState is S.XmlNameState
- && tracker.Engine.CurrentState.Parent is S.XmlAttributeState && previousChar != ' ')
- return null;
-
- if (tracker.Engine.CurrentState is S.XmlAttributeValueState
- && !(previousChar == '\'' || previousChar == '"' || currentChar =='\'' || currentChar == '"'))
- return null;
- }
-
- //tag completion
- if (currentChar == '<') {
- CodeCompletionDataProvider cp = new CodeCompletionDataProvider (null, GetAmbience ());
-
- if (tracker.Engine.CurrentState is S.XmlFreeState) {
-
- S.XElement el = tracker.Engine.Nodes.Peek () as S.XElement;
- AddTagCompletionData (cp, el);
- }
- return cp;
- }
-
- //closing tag completion
- if (tracker.Engine.CurrentState is S.XmlFreeState && currentPosition - 1 > 0 && currentChar == '>') {
- //get name of current node in document that's being ended
- S.XElement el = tracker.Engine.Nodes.Peek () as S.XElement;
- if (el != null && el.Position.End >= currentPosition && !el.IsClosed && el.IsNamed) {
- CodeCompletionDataProvider cp = new CodeCompletionDataProvider (null, GetAmbience ());
- cp.AddCompletionData (
- new MonoDevelop.XmlEditor.Completion.XmlTagCompletionData (
- String.Concat ("</", el.Name.FullName, ">"), 0, true)
- );
- return cp;
- }
- }
-
- //attributes names within tags
- if (tracker.Engine.CurrentState is S.XmlTagState && forced ||
- (tracker.Engine.CurrentState is S.XmlNameState
- && tracker.Engine.CurrentState.Parent is S.XmlAttributeState
- && tracker.Engine.CurrentStateLength == 1)
- ) {
- int peekp = (tracker.Engine.CurrentState is S.XmlTagState) ? 0 : 1;
- S.XElement el = (S.XElement) tracker.Engine.Nodes.Peek (peekp);
-
- // HACK
- S.XElement pel = tracker.Engine.Nodes.Peek (peekp + 1) as S.XElement;
- if (el.Parent == null && pel != null)
- pel.AddChildNode (el);
-
- //attributes
- if (el != null && el.Name.IsValid && (forced || char.IsWhiteSpace (currentChar) ||
- (char.IsWhiteSpace (previousChar) && char.IsLetter (currentChar))))
- {
- CodeCompletionDataProvider cp = new CodeCompletionDataProvider (null, GetAmbience ());
- if (!forced)
- triggerWordLength = 1;
-
- AddAttributeCompletionData (cp, el);
- return cp;
- }
- }
-
- //attribute values
- //determine whether to trigger completion within attribute values quotes
- if ((tracker.Engine.CurrentState is S.XmlDoubleQuotedAttributeValueState
- || tracker.Engine.CurrentState is S.XmlSingleQuotedAttributeValueState)
- //trigger on the opening quote
- && (tracker.Engine.CurrentStateLength == 0
- //or trigger on first letter of value, if unforced
- || (!forced && tracker.Engine.CurrentStateLength == 1))
- ) {
- S.XAttribute att = (S.XAttribute) tracker.Engine.Nodes.Peek ();
-
- if (att.IsNamed) {
- S.XElement el = (S.XElement) tracker.Engine.Nodes.Peek (1);
-
- // HACK
- S.XElement pel = tracker.Engine.Nodes.Peek (2) as S.XElement;
- if (el.Parent == null && pel != null)
- pel.AddChildNode (el);
-
- char next = ' ';
- if (currentPosition + 1 < buf.Length)
- next = buf.GetCharAt (currentPosition + 1);
-
- char compareChar = (tracker.Engine.CurrentStateLength == 0)? currentChar : previousChar;
- Console.WriteLine ("ppa: " + att.Value);
-
- if ((compareChar == '"' || compareChar == '\'')
- && (next == compareChar || char.IsWhiteSpace (next))
- ) {
- //if triggered by first letter of value, grab that letter
- if (tracker.Engine.CurrentStateLength == 1)
- triggerWordLength = 1;
-
- CodeCompletionDataProvider cp = new CodeCompletionDataProvider (null, GetAmbience ());
- AddAttributeValueCompletionData (cp, el, att);
- return cp;
- }
- }
- }
-
- return null;
- }
-
- protected virtual void AddTagCompletionData (CodeCompletionDataProvider cp, S.XElement element)
- {
- }
-
- protected virtual void AddAttributeCompletionData (CodeCompletionDataProvider cp, S.XElement element)
- {
- }
-
- protected virtual void AddAttributeValueCompletionData (CodeCompletionDataProvider cp, S.XElement element, S.XAttribute attribute)
- {
- }
- }
-}
diff --git a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.CodeCompletion/CodeCompletionExtension.cs b/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.CodeCompletion/CodeCompletionExtension.cs
deleted file mode 100644
index ceafef167b..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.CodeCompletion/CodeCompletionExtension.cs
+++ /dev/null
@@ -1,724 +0,0 @@
-// CodeCompletionExtension.cs
-//
-// Author:
-// Lluis Sanchez Gual <lluis@novell.com>
-//
-// Copyright (c) 2008 Novell, Inc (http://www.novell.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-//
-//
-
-using System;
-using System.Xml;
-using System.IO;
-using System.Collections.Generic;
-using Mono.Addins;
-using Mono.Addins.Description;
-using MonoDevelop.Core;
-using MonoDevelop.Core.Collections;
-using MonoDevelop.Projects;
-using MonoDevelop.Ide.CodeCompletion;
-using MonoDevelop.Ide.Gui.Content;
-using MonoDevelop.Ide.Gui;
-using MonoDevelop.XmlEditor;
-using MonoDevelop.Xml.StateEngine;
-using MonoDevelop.XmlEditor.Gui;
-using Gdk;
-
-namespace MonoDevelop.AddinAuthoring.CodeCompletion
-{
- public class CodeCompletionExtension: BaseXmlEditorExtension
- {
- AddinDescription adesc;
- AddinRegistry registry;
- ToplevelCompletionContext topCtx = new ToplevelCompletionContext ();
-
- public override bool ExtendsEditor(Document doc, IEditableTextBuffer editor)
- {
- return (doc.Project is DotNetProject) && (editor.Name.ToString ().EndsWith (".addin") || editor.Name.ToString ().EndsWith (".addin.xml"));
- }
-
- protected override ICompletionDataList HandleCodeCompletion (CodeCompletionContext completionContext, bool forced, ref int triggerWordLength)
- {
- if ((Tracker.Engine.CurrentState is XmlDoubleQuotedAttributeValueState
- || Tracker.Engine.CurrentState is XmlSingleQuotedAttributeValueState))
- {
- // completionChar may be a space even if the current char isn't, when ctrl-space is fired t
- int currentPosition = Editor.Caret.Offset;
- if (currentPosition > 0) {
- string s = Editor.GetTextBetween (currentPosition - Tracker.Engine.CurrentStateLength, currentPosition);
- if (s.EndsWith ("/"))
- return GetPathCompletion (s);
- }
- }
- return base.HandleCodeCompletion (completionContext, forced, ref triggerWordLength);
- }
-
- CompletionDataList GetPathCompletion (string subPath)
- {
- CompletionContext ctx = GetCompletionContext (1);
- if (!(ctx is ExtensionCompletionContext))
- return null;
- ModuleCompletionContext mc = (ModuleCompletionContext) ctx.GetParentContext (typeof(ModuleCompletionContext));
-
- Set<string> paths = new Set<string> ();
- CompletionDataList cp = new CompletionDataList ();
- foreach (AddinDependency adep in mc.Module.Dependencies) {
- Addin addin = registry.GetAddin (adep.FullAddinId);
- if (addin != null && addin.Description != null) {
- foreach (ExtensionPoint ep in addin.Description.ExtensionPoints) {
- if (ep.Path.StartsWith (subPath)) {
- string spath = ep.Path.Substring (subPath.Length);
- int i = spath.IndexOf ('/');
- if (i != -1)
- spath = spath.Substring (0, i);
- if (paths.Add (spath)) {
- if (i == -1) // Full match. Add the documentation
- cp.Add (spath, "md-extension-point", ep.Name + "\n" + ep.Description);
- else
- cp.Add (spath, "md-literal");
- }
- }
- }
- }
- }
- return cp;
- }
-
-
- public override bool KeyPress(Key key, char keyChar, ModifierType modifier)
- {
- UpdateAddinDescription ();
- return base.KeyPress (key, keyChar, modifier);
- }
-
- protected override void GetElementCompletions(CompletionDataList list)
- {
- CompletionContext ctx = GetCompletionContext (0);
- if (ctx != null) {
- ctx.SetCompletionAction (CompletionAction.ElementStart, null);
- ctx.AddCompletionData (list);
- }
- }
-
- protected override CompletionDataList GetAttributeCompletions(IAttributedXObject attributedOb, Dictionary<string, string> existingAtts)
- {
- CompletionDataList list = new CompletionDataList ();
- CompletionContext ctx = GetCompletionContext (1);
- if (ctx != null) {
- ctx.SetCompletionAction (CompletionAction.AttributeStart, null);
- ctx.AddCompletionData (list);
- }
- return list;
- }
-
- protected override CompletionDataList GetAttributeValueCompletions(IAttributedXObject attributedOb, XAttribute att)
- {
- CompletionDataList list = new CompletionDataList ();
- CompletionContext ctx = GetCompletionContext (1);
- if (ctx != null) {
- ctx.SetCompletionAction (CompletionAction.AttributeValue, att.Name.Name);
- ctx.AddCompletionData (list);
- }
- return list;
- }
-
-
- void UpdateAddinDescription ()
- {
- try {
- AddinData adata = AddinData.GetAddinData ((DotNetProject) this.Document.Project);
- adesc = adata.AddinRegistry.ReadAddinManifestFile (new StringReader (Editor.Text), Document.FileName);
- registry = adata.AddinRegistry;
- } catch {
- }
- }
-
- CompletionContext GetCompletionContext (int numParent)
- {
- XElement element = GetParentElement (numParent);
- if (element == null)
- return topCtx;
-
- CompletionContext parentContext;
- parentContext = GetCompletionContext (numParent + 1);
-
- if (parentContext == null)
- return null;
-
- if (!element.IsNamed)
- return parentContext;
- ItemData data = parentContext.GetElementData (element.Name.Name);
- if (data == null)
- return null;
- if (data.ChildContextType == null)
- return null;
- if (adesc == null)
- return null;
-
- CompletionContext ctx = (CompletionContext) Activator.CreateInstance (data.ChildContextType);
- ctx.Init (registry, adesc, parentContext, element);
- return ctx;
- }
- }
-
-
- enum CompletionAction
- {
- ElementStart,
- AttributeStart,
- AttributeValue
- }
-
- class ItemData
- {
- public string Name;
- public string Description;
- public Type ChildContextType;
- public string CompletionString;
- }
-
- class CompletionContext
- {
- List<ItemData> elementData;
- List<ItemData> attributeData;
- List<ItemData> currentCollection;
- string attNameForValue;
- CompletionAction action;
- CompletionContext parentContext;
- AddinDescription adesc;
- AddinRegistry registry;
-
- public List<ItemData> ElementData {
- get {
- if (elementData == null) {
- elementData = currentCollection = new List<ItemData> ();
- OnAddChildElements ();
- }
- return elementData;
- }
- }
-
- public List<ItemData> AttributeData {
- get {
- if (attributeData == null) {
- attributeData = currentCollection = new List<ItemData> ();
- OnAddAttributes ();
- }
- return attributeData;
- }
- }
-
- public ItemData GetElementData (string name)
- {
- foreach (ItemData data in ElementData)
- if (data.Name == name)
- return data;
- return null;
- }
-
- public CompletionContext ParentContext {
- get {
- return parentContext;
- }
- set {
- parentContext = value;
- }
- }
-
- public AddinDescription AddinDescription {
- get {
- return adesc;
- }
- }
-
- public AddinRegistry AddinRegistry {
- get {
- return registry;
- }
- }
-
- public void Init (AddinRegistry registry, AddinDescription adesc, CompletionContext parentContext, XElement elem)
- {
- this.registry = registry;
- this.adesc = adesc;
- this.parentContext = parentContext;
- Initialize (elem);
- }
-
- public virtual void Initialize (XElement elem)
- {
- }
-
- public void SetCompletionAction (CompletionAction action, string attNameForValue)
- {
- this.action = action;
- this.attNameForValue = attNameForValue;
- }
-
- public virtual void AddCompletionData (CompletionDataList provider)
- {
- if (action == CompletionAction.AttributeValue) {
- currentCollection = new List<ItemData> ();
- OnAddAttributeValues (attNameForValue);
- }
- else if (action == CompletionAction.ElementStart)
- currentCollection = ElementData;
- else
- currentCollection = AttributeData;
-
- foreach (ItemData data in currentCollection) {
- CompletionData cd = new CompletionData (data.Name, "md-literal", data.Description);
- if (data.CompletionString != null)
- cd.CompletionText = data.CompletionString;
- provider.Add (cd);
- }
- }
-
- public void AddTrueFalse ()
- {
- Add ("true", "");
- Add ("false", "");
- }
-
- public virtual void OnAddChildElements ()
- {
- }
-
- public virtual void OnAddAttributes ()
- {
- }
-
- public virtual void OnAddAttributeValues (string attName)
- {
- }
-
- public void Add (string name, string desc)
- {
- Add (name, desc, null, null);
- }
-
- public void Add (string name, string desc, string completionString)
- {
- Add (name, desc, completionString, null);
- }
-
- public void Add (string name, string desc, Type type)
- {
- Add (name, desc, null, type);
- }
-
- public void Add (string name, string desc, string completionString, Type type)
- {
- ItemData data = new ItemData ();
- data.Name = name;
- data.Description = name + "\n" + desc;
- data.CompletionString = completionString;
- data.ChildContextType = type;
- currentCollection.Add (data);
- }
-
- public CompletionContext GetParentContext (Type type)
- {
- if (parentContext != null) {
- if (type.IsInstanceOfType (parentContext))
- return parentContext;
- else
- return parentContext.GetParentContext (type);
- } else
- return null;
- }
- }
-
- class ToplevelCompletionContext: CompletionContext
- {
- public override void OnAddChildElements()
- {
- Add ("Addin", GettextCatalog.GetString ("Declaration of an add-in."), typeof(HeaderCompletionContext));
- }
- }
-
- class ModuleCompletionContext: CompletionContext
- {
- ModuleDescription module;
-
- public ModuleDescription Module {
- get { return module; }
- }
-
- public override void Initialize(XElement elem)
- {
- if (elem.Name.Name == "Addin")
- module = this.AddinDescription.MainModule;
- XElement pe = elem.Parent as XElement;
- if (pe != null) {
- int n = 0;
- XNode ob = pe.FirstChild;
- while (ob != null) {
- if (ob == elem) {
- module = this.AddinDescription.OptionalModules [n];
- break;
- }
- ob = ob.NextSibling;
- }
- }
- }
-
- public override void OnAddChildElements()
- {
- if (module != null) {
- Add ("Extension", GettextCatalog.GetString ("Extension\nA collection of extension nodes. An extension node is the definition of an object that extends an application."), typeof(ExtensionCompletionContext));
- Add ("Runtime", GettextCatalog.GetString ("Declaration of files to be loaded at run-time."), typeof(RuntimeCompletionContext));
- Add ("Dependencies", GettextCatalog.GetString ("Declaration of dependencies of the add-in."), typeof(DependenciesCompletionContext));
- }
- }
- }
-
- class RuntimeCompletionContext: CompletionContext
- {
- public override void OnAddChildElements()
- {
- Add ("Import", GettextCatalog.GetString ("File import."), typeof(ImportCompletionContext));
- }
- }
-
- class ImportCompletionContext: CompletionContext
- {
- public override void OnAddAttributes ()
- {
- Add ("assembly", GettextCatalog.GetString ("Name of an assembly that belongs to the add-in."));
- Add ("file", GettextCatalog.GetString ("Name of a file that belongs to the add-in."));
- }
- }
-
- class DependenciesCompletionContext: CompletionContext
- {
- public override void OnAddChildElements()
- {
- Add ("Addin", GettextCatalog.GetString ("Declares an add-in dependency."), typeof(AddinDependencyCompletionContext));
- }
- }
-
- class AddinDependencyCompletionContext: CompletionContext
- {
- string id;
-
- public override void Initialize(XElement elem)
- {
- XAttribute attr = elem.Attributes [new XName ("id")];
- if (attr != null)
- id = attr.Value;
- }
-
- public override void OnAddAttributes ()
- {
- Add ("id", GettextCatalog.GetString ("Identifier of the extended add-in."));
- Add ("version", GettextCatalog.GetString ("Version of the extended add-in."));
- }
-
- public override void OnAddAttributeValues(string attName)
- {
- if (attName == "id") {
- foreach (Addin a in this.AddinRegistry.GetAddins ())
- AddAddin (a);
- foreach (Addin a in this.AddinRegistry.GetAddinRoots ())
- AddAddin (a);
- }
- else if (attName == "version" && id != null) {
- Addin a = this.AddinRegistry.GetAddin (Addin.GetFullId (this.AddinDescription.Namespace, id, null));
- if (a != null)
- Add (a.Version, "");
- }
- }
-
- void AddAddin (Addin a)
- {
- string id = a.Namespace == this.AddinDescription.Namespace ? a.LocalId : Addin.GetIdName (a.Id);
- Add (id, a.Name + ". " + a.Description, id + "\" version=\"" + a.Version + "\"");
- }
- }
-
- class HeaderCompletionContext: ModuleCompletionContext
- {
- public override void OnAddAttributes ()
- {
- Add ("id", GettextCatalog.GetString ("The identifier of the add-in. It is mandatory for add-in roots and for add-ins that can be extended, optional for other add-ins."));
- Add ("namespace", GettextCatalog.GetString ("Namespace of the add-in. The full ID of an add-in is composed by 'namespace.name'."));
- Add ("version", GettextCatalog.GetString ("The version of the add-in. It is mandatory for add-in roots and for add-ins that can be extended."));
- Add ("compatVersion", GettextCatalog.GetString ("Version of the add-in with which this add-in is backwards compatible (optional)."));
- Add ("name", GettextCatalog.GetString ("Display name of the add-in."));
- Add ("description", GettextCatalog.GetString ("Description of the add-in."));
- Add ("author", GettextCatalog.GetString ("Author of the add-in."));
- Add ("url", GettextCatalog.GetString ("Url of a web page with more information about the add-in."));
- Add ("defaultEnabled", GettextCatalog.GetString ("When set to 'false', the add-in won't be enabled until it is explicitly enabled by the user. The default is 'true'."));
- Add ("isroot", GettextCatalog.GetString ("Must be true if this manifest belongs to an add-in root."));
- }
-
- public override void OnAddChildElements()
- {
- base.OnAddChildElements ();
- Add ("ExtensionPoint", GettextCatalog.GetString ("An extension point. A placeholder where add-ins can register extension nodes to provide extra functionality. Extension points are identified using extension paths."), typeof(ExtensionPointCompletionContext));
- Add ("ExtensionNodeSet", GettextCatalog.GetString ("Node sets allows grouping a set of extension node declarations and give an identifier to that group (the node set). Once a node set is declared, it can be referenced from several extension points which use the same extension node structure. Extension node sets also allow declaring recursive extension nodes, that is, extension nodes with a tree structure."), typeof(ExtensionNodeSetCompletionContext));
- Add ("Module", GettextCatalog.GetString ("An optional Module. By using optional modules, and add-in can declare extensions which will be registered only if some specified add-in dependencies can be satisfied."), typeof(ModuleCompletionContext));
- Add ("ConditionType", GettextCatalog.GetString ("Definition of a Condition Type. Add-ins may use conditions to register nodes in an extension point which are only visible under some contexts."), typeof(ConditionTypeCompletionContext));
- Add ("Localizer", GettextCatalog.GetString ("Definition of a Localizer. Enables localization support."), typeof(LocalizerCompletionContext));
- }
-
- public override void OnAddAttributeValues(string attName)
- {
- switch (attName) {
- case "isroot":
- case "defaultEnabled":
- AddTrueFalse ();
- break;
-
- case "namespace": {
- Set<string> nss = new Set<string> ();
- foreach (Addin a in this.AddinRegistry.GetAddins ())
- nss.Add (a.Namespace);
- foreach (Addin a in this.AddinRegistry.GetAddinRoots ())
- nss.Add (a.Namespace);
- foreach (string s in nss) {
- if (!string.IsNullOrEmpty (s))
- Add (s, "");
- }
- break;
- }
- }
- }
- }
-
- class BaseExtensionNodeSetCompletionContext: CompletionContext
- {
- public override void OnAddChildElements()
- {
- Add ("Description", GettextCatalog.GetString ("Long description of the extension point or node set."));
- Add ("ExtensionNode", GettextCatalog.GetString ("Declares a type of node allowed in this extension point or node set."), typeof(ExtensionNodeTypeCompletionContext));
- Add ("ExtensionNodeSet", GettextCatalog.GetString ("A node set reference. Node sets allows grouping a set of extension node declarations and give an identifier to that group (the node set). Once a node set is declared, it can be referenced from several extension points which use the same extension node structure."), typeof(ExtensionNodeSetRefCompletionContext));
- }
- }
-
- class ExtensionNodeSetCompletionContext: BaseExtensionNodeSetCompletionContext
- {
- public override void OnAddAttributes ()
- {
- base.OnAddAttributes ();
- Add ("id", GettextCatalog.GetString ("The identifier of the Node Set."));
- }
- }
-
- class ConditionTypeCompletionContext: CompletionContext
- {
- public override void OnAddAttributes ()
- {
- Add ("id", GettextCatalog.GetString ("The identifier of the condition."));
- Add ("type", GettextCatalog.GetString ("The type that implements the condition."));
- }
- }
-
- class LocalizerCompletionContext: CompletionContext
- {
- string type;
-
- public override void Initialize(XElement elem)
- {
- XAttribute attr = elem.Attributes [new XName ("type")];
- if (attr != null)
- type = attr.Value;
- }
-
- public override void OnAddAttributes ()
- {
- if (type == null)
- Add ("type", GettextCatalog.GetString ("The type of localizer. It can be 'Gettext', 'StringResource', 'StringTable' or the name of a class that implements Mono.Addins.IAddinLocalizerFactory."));
- if (type == "Gettext") {
- Add ("catalog", GettextCatalog.GetString ("Name of the catalog which contains the strings (the add-in id by default)."));
- Add ("location", GettextCatalog.GetString ("Relative path to the location of the catalog ('./locale' by default). This path must be relative to the add-in location."));
- }
- }
-
- public override void OnAddAttributeValues(string attName)
- {
- if (attName == "type") {
- Add ("Gettext", GettextCatalog.GetString ("The Gettext localizer type can be used to localize an add-in with 'gettext'."));
- Add ("StringResource", GettextCatalog.GetString ("The StringResource localizer type can be used to localize an add-in using string resources defined in satellite assemblies."));
- Add ("StringTable", GettextCatalog.GetString ("The StringTable localizer type can be used for add-ins with very basic localization needs. Translated strings are specified in a table embedded in the add-in manifest."));
- }
- }
- }
-
- class ExtensionPointCompletionContext: BaseExtensionNodeSetCompletionContext
- {
- public override void OnAddAttributes()
- {
- Add ("path", GettextCatalog.GetString ("Path of the extension point."));
- Add ("name", GettextCatalog.GetString ("Display name of the extension point (to be shown in documentation)."));
- }
- }
-
- class ExtensionNodeSetRefCompletionContext: CompletionContext
- {
- public override void OnAddAttributes()
- {
- Add ("id", GettextCatalog.GetString ("Identifier of the Node Set."));
- }
-
- public override void OnAddAttributeValues (string attName)
- {
- if (attName == "id") {
- ModuleCompletionContext mc = (ModuleCompletionContext) GetParentContext (typeof(ModuleCompletionContext));
- foreach (AddinDependency adep in mc.Module.Dependencies) {
- Addin addin = AddinRegistry.GetAddin (adep.FullAddinId);
- if (addin != null && addin.Description != null) {
- foreach (ExtensionNodeSet ns in addin.Description.ExtensionNodeSets)
- Add (ns.Id, "");
- }
- }
- }
- }
- }
-
- class ExtensionNodeTypeCompletionContext: BaseExtensionNodeSetCompletionContext
- {
- public override void Initialize (XElement elem)
- {
- }
-
- public override void OnAddAttributes()
- {
- Add ("name", GettextCatalog.GetString ("Name of the node type. When an element is added to an extension point, its name must match one of the declared node types."));
- Add ("type", GettextCatalog.GetString ("CLR type that implements this extension node type. It must be a subclass of Mono.Addins.ExtensionNode. If not specified, by default it is Mono.Addins.TypeExtensionNode."));
- }
- }
-
- abstract class BaseExtensionCompletionContext: CompletionContext
- {
- public abstract ExtensionNodeTypeCollection GetAllowedNodeTypes ();
-
- public abstract string GetPath ();
-
- public override void OnAddChildElements()
- {
- foreach (ExtensionNodeType nt in GetAllowedNodeTypes ())
- Add (nt.NodeName, nt.Description, typeof(ExtensionNodeCompletionContext));
- }
- }
-
- class ExtensionCompletionContext: BaseExtensionCompletionContext
- {
- Extension extension;
-
- public override void Initialize (XElement elem)
- {
- XAttribute attr = elem.Attributes [new XName ("path")];
- if (attr != null) {
- ModuleCompletionContext ctx = ParentContext as ModuleCompletionContext;
- if (ctx != null && ctx.Module != null)
- extension = ctx.Module.GetExtension (attr.Value);
- }
- }
-
- public override string GetPath ()
- {
- if (extension != null)
- return extension.Path;
- else
- return null;
- }
-
- public override ExtensionNodeTypeCollection GetAllowedNodeTypes ()
- {
- if (extension == null)
- return new ExtensionNodeTypeCollection ();
- else
- return extension.GetAllowedNodeTypes ();
- }
-
- public override void OnAddAttributes()
- {
- Add ("path", GettextCatalog.GetString ("Path of the extension point where the nodes will be registered."));
- }
- }
-
- class ExtensionNodeCompletionContext: BaseExtensionCompletionContext
- {
- ExtensionNodeType nodeType;
- string id;
-
- public string Id {
- get { return id; }
- }
-
- public override void Initialize (XElement elem)
- {
- XAttribute att = elem.Attributes [new XName ("id")];
- if (att != null)
- id = att.Value;
- string nodeName = elem.Name.Name;
- BaseExtensionCompletionContext ctx = ParentContext as BaseExtensionCompletionContext;
- foreach (ExtensionNodeType nt in ctx.GetAllowedNodeTypes ()) {
- if (nt.NodeName == nodeName) {
- nodeType = nt;
- break;
- }
- }
- }
-
- public override ExtensionNodeTypeCollection GetAllowedNodeTypes ()
- {
- return nodeType.GetAllowedNodeTypes ();
- }
-
- public override void OnAddAttributes()
- {
- if (nodeType != null) {
- foreach (NodeTypeAttribute att in nodeType.Attributes)
- Add (att.Name, att.Description);
- }
- Add ("id", GettextCatalog.GetString ("Identifier of the node. It's optional, but needed if the node will be referenced from other nodes."));
- Add ("insertafter", GettextCatalog.GetString ("Identifier of the node after which this node has to be placed."));
- Add ("insertbefore", GettextCatalog.GetString ("Identifier of the node before which this node has to be placed."));
- }
-
- public override void OnAddAttributeValues (string attName)
- {
- if (attName == "insertafter" || attName == "insertbefore") {
- string parentPath = ((BaseExtensionCompletionContext)ParentContext).GetPath ();
- if (parentPath != null) {
- foreach (ExtensionNodeDescription en in AddinData.GetExtensionNodes (AddinRegistry, AddinDescription, parentPath)) {
- if (!string.IsNullOrEmpty (en.Id)) {
- ExtensionNodeType nt = en.GetNodeType ();
- string desc = nt != null ? nt.Description : "";
- Add (en.Id, desc);
- }
- }
- }
- }
- }
-
- public override string GetPath ()
- {
- if (id != null)
- return ((BaseExtensionCompletionContext)ParentContext).GetPath () + "/" + id;
- else
- return null;
- }
- }
-}
diff --git a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.Gui/AddinView.cs b/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.Gui/AddinView.cs
deleted file mode 100644
index dbb45f6735..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.Gui/AddinView.cs
+++ /dev/null
@@ -1,60 +0,0 @@
-//
-// AddinView.cs
-//
-// Author:
-// Lluis Sanchez Gual <lluis@novell.com>
-//
-// Copyright (c) 2010 Novell, Inc (http://www.novell.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-using System;
-using Mono.Addins.Description;
-
-namespace MonoDevelop.AddinAuthoring.Gui
-{
- [System.ComponentModel.ToolboxItem(true)]
- public partial class AddinView : Gtk.Bin
- {
- public AddinView ()
- {
- this.Build ();
- }
-
- public void Fill (AddinDescription desc)
- {
- string name = desc.Name;
- if (string.IsNullOrEmpty (name))
- name = desc.LocalId;
- labelName.Markup = "<small>Add-in</small>\n<big><b>" + GLib.Markup.EscapeText (name) + "</b></big>";
-
- if (!string.IsNullOrEmpty (desc.Description))
- labelDesc.Text = desc.Description;
- else
- labelDesc.Hide ();
-
- labelId.Text = desc.LocalId;
- labelNamespace.Text = desc.Namespace;
- labelVersion.Text = desc.Version;
- labelAuthor.Text = desc.Author;
- labelCopyright.Text = desc.Copyright;
- }
- }
-}
-
diff --git a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.Gui/ExtensionNodeView.cs b/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.Gui/ExtensionNodeView.cs
deleted file mode 100644
index ad26119774..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.Gui/ExtensionNodeView.cs
+++ /dev/null
@@ -1,74 +0,0 @@
-//
-// ExtensionNodeView.cs
-//
-// Author:
-// Lluis Sanchez Gual <lluis@novell.com>
-//
-// Copyright (c) 2010 Novell, Inc (http://www.novell.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-using System;
-using Mono.Addins.Description;
-using Mono.Addins;
-
-namespace MonoDevelop.AddinAuthoring.Gui
-{
- [System.ComponentModel.ToolboxItem(true)]
- public partial class ExtensionNodeView : Gtk.Bin
- {
- public ExtensionNodeView ()
- {
- this.Build ();
- }
-
- public void Fill (ExtensionNodeDescription node)
- {
- ExtensionNodeType ntype = node.GetNodeType ();
- labelName.Markup = "<small>Extension Node</small>\n<big><b>" + GLib.Markup.EscapeText (ntype.NodeName) + "</b></big>";
-
- if (!string.IsNullOrEmpty (ntype.Description))
- labelDesc.Text = ntype.Description;
- else
- labelDesc.Text = AddinManager.CurrentLocalizer.GetString ("No additional documentation");
-
- uint row = 0;
- foreach (var att in node.Attributes) {
- Gtk.Label lab = new Gtk.Label ();
- lab.Markup = "<b>" + GLib.Markup.EscapeText (att.Name) + ":</b>";
- lab.UseUnderline = false;
- lab.Xalign = 0;
- tableAtts.Attach (lab, 0, 1, row, row + 1);
- Gtk.Table.TableChild ct = (Gtk.Table.TableChild) tableAtts [lab];
- ct.XOptions = Gtk.AttachOptions.Fill;
-
- lab = new Gtk.Label (att.Value);
- lab.UseUnderline = false;
- lab.Xalign = 0;
- lab.Wrap = true;
- tableAtts.Attach (lab, 1, 2, row, row + 1);
- ct = (Gtk.Table.TableChild) tableAtts [lab];
- ct.XOptions = Gtk.AttachOptions.Fill;
- row++;
- }
- tableAtts.ShowAll ();
- }
- }
-}
-
diff --git a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.Gui/ExtensionPointView.cs b/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.Gui/ExtensionPointView.cs
deleted file mode 100644
index d5569d2188..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.Gui/ExtensionPointView.cs
+++ /dev/null
@@ -1,114 +0,0 @@
-//
-// ExtensionPointView.cs
-//
-// Author:
-// Lluis Sanchez Gual <lluis@novell.com>
-//
-// Copyright (c) 2010 Novell, Inc (http://www.novell.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-using System;
-using Mono.Addins.Description;
-using System.Collections.Generic;
-using Mono.Addins;
-
-namespace MonoDevelop.AddinAuthoring.Gui
-{
- [System.ComponentModel.ToolboxItem(true)]
- public partial class ExtensionPointView : Gtk.Bin
- {
- AddinRegistry reg;
-
- public ExtensionPointView ()
- {
- this.Build ();
- }
-
- public void Fill (ExtensionPoint ep, AddinRegistry reg)
- {
- string name;
- if (!string.IsNullOrEmpty (ep.Name))
- name = ep.Name;
- else
- name = ep.Path;
-
- labelName.Markup = "<small>Extension Point</small>\n<big><b>" + GLib.Markup.EscapeText (name) + "</b></big>";
- if (!string.IsNullOrEmpty (ep.Description))
- labelDesc.Text = ep.Description;
- else
- labelDesc.Text = AddinManager.CurrentLocalizer.GetString ("No additional documentation");
-
- List<ExtensionNodeType> types = new List<ExtensionNodeType> ();
- GetNodeTypes (reg, ep.NodeSet, types);
-
- uint row = 0;
- foreach (ExtensionNodeType nt in types) {
- Gtk.Label lab = new Gtk.Label ();
- lab.Markup = "<b>" + GLib.Markup.EscapeText (nt.NodeName) + "</b>";
- lab.UseUnderline = false;
- lab.Xalign = lab.Yalign = 0;
- Gtk.Button but = new Gtk.Button (lab);
- but.Relief = Gtk.ReliefStyle.None;
- tableNodes.Attach (but, 0, 1, row, row + 1);
- Gtk.Table.TableChild ct = (Gtk.Table.TableChild) tableNodes [but];
- ct.XOptions = Gtk.AttachOptions.Fill;
-
- lab = new Gtk.Label (nt.Description);
- lab.UseUnderline = false;
- lab.Xalign = lab.Yalign = 0;
- lab.Wrap = true;
- tableNodes.Attach (lab, 1, 2, row, row + 1);
- ct = (Gtk.Table.TableChild) tableNodes [lab];
- ct.XOptions = Gtk.AttachOptions.Expand | Gtk.AttachOptions.Fill;
- row++;
- }
- tableNodes.ShowAll ();
- }
-
- void GetNodeTypes (AddinRegistry reg, ExtensionNodeSet nset, List<ExtensionNodeType> list)
- {
- foreach (ExtensionNodeType nt in nset.NodeTypes)
- list.Add (nt);
-
- foreach (string ns in nset.NodeSets) {
- ExtensionNodeSet cset = FindNodeSet (reg, nset.ParentAddinDescription, ns);
- if (cset != null)
- GetNodeTypes (reg, nset, list);
- }
- }
-
- ExtensionNodeSet FindNodeSet (AddinRegistry reg, AddinDescription adesc, string name)
- {
- ExtensionNodeSet nset = adesc.ExtensionNodeSets [name];
- if (nset != null)
- return nset;
- foreach (AddinDependency adep in adesc.MainModule.Dependencies) {
- Addin addin = reg.GetAddin (adep.FullAddinId);
- if (addin != null) {
- nset = adesc.ExtensionNodeSets [name];
- if (nset != null)
- return nset;
- }
- }
- return null;
- }
- }
-}
-
diff --git a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.Gui/ExtensionView.cs b/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.Gui/ExtensionView.cs
deleted file mode 100644
index 688afc8be3..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.Gui/ExtensionView.cs
+++ /dev/null
@@ -1,80 +0,0 @@
-//
-// ExtensionView.cs
-//
-// Author:
-// Lluis Sanchez Gual <lluis@novell.com>
-//
-// Copyright (c) 2010 Novell, Inc (http://www.novell.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-using System;
-using Mono.Addins.Description;
-using MonoDevelop.Ide.Gui.Components;
-using MonoDevelop.Projects;
-using MonoDevelop.Ide;
-
-namespace MonoDevelop.AddinAuthoring.Gui
-{
- [System.ComponentModel.ToolboxItem(true)]
- public partial class ExtensionView : Gtk.Bin
- {
- public ExtensionView ()
- {
- this.Build ();
- }
-
- public void Fill (Extension ext, ITreeNavigator nav)
- {
- labelName.Markup = "<small>Extension</small>\n<big><b>" + GLib.Markup.EscapeText (Util.GetDisplayName (ext)) + "</b></big>";
- object parent = ext.GetExtendedObject ();
-
- if (parent is ExtensionPoint) {
- ExtensionPoint ep = (ExtensionPoint) parent;
- string txt = "<small>Extension Point</small>\n<b>" + GLib.Markup.EscapeText (Util.GetDisplayName (ep)) + "</b>";
- if (!string.IsNullOrEmpty (ep.Description))
- txt += "\n" + GLib.Markup.EscapeText (ep.Description);
- Gtk.Label lab = new Gtk.Label ();
- lab.Xalign = lab.Yalign = 0;
- lab.Markup = txt;
- lab.WidthRequest = 400;
- lab.Wrap = true;
- Gtk.Image img = new Gtk.Image (ImageService.GetPixbuf ("md-extension-point", Gtk.IconSize.Menu));
- img.Yalign = 0;
- Gtk.HBox box = new Gtk.HBox (false, 6);
- box.PackStart (img, false, false, 0);
- box.PackStart (lab, true, true, 0);
- buttonExt.Add (box);
- buttonExt.ShowAll ();
- buttonExt.Clicked += delegate {
- if (nav.MoveToObject (ext)) {
- nav.MoveToParent (typeof(Solution));
- nav.Expanded = true;
- if (nav.MoveToObject (ep.ParentAddinDescription)) {
- nav.Expanded = true;
- if (nav.MoveToObject (ep))
- nav.Selected = true;
- }
- }
- };
- }
- }
- }
-}
-
diff --git a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.NodeBuilders/AddinCategoryGroup.cs b/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.NodeBuilders/AddinCategoryGroup.cs
deleted file mode 100644
index acfb71e6a5..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.NodeBuilders/AddinCategoryGroup.cs
+++ /dev/null
@@ -1,44 +0,0 @@
-//
-// AddinCategory.cs
-//
-// Author:
-// Lluis Sanchez Gual <lluis@novell.com>
-//
-// Copyright (c) 2010 Novell, Inc (http://www.novell.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-using System;
-using Mono.Addins.Description;
-
-namespace MonoDevelop.AddinAuthoring.NodeBuilders
-{
- public class AddinCategoryGroup
- {
- public AddinCategoryGroup (RegistryInfo reg, string name)
- {
- this.Registry = reg;
- this.Name = name;
- }
-
- public RegistryInfo Registry { get; set; }
- public string Name { get; set; }
- }
-}
-
diff --git a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.NodeBuilders/AddinCategoryNodeBuilder.cs b/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.NodeBuilders/AddinCategoryNodeBuilder.cs
deleted file mode 100644
index 76ec30f073..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.NodeBuilders/AddinCategoryNodeBuilder.cs
+++ /dev/null
@@ -1,92 +0,0 @@
-// ExtensionPointsNodeBuilder.cs
-//
-// Author:
-// Lluis Sanchez Gual <lluis@novell.com>
-//
-// Copyright (c) 2007 Novell, Inc (http://www.novell.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-//
-//
-
-using System;
-using MonoDevelop.Projects;
-using MonoDevelop.Core;
-using MonoDevelop.Ide.Gui;
-using MonoDevelop.Ide.Gui.Pads;
-using MonoDevelop.Ide.Gui.Pads.ProjectPad;
-using MonoDevelop.Components.Commands;
-using Mono.Addins;
-using Mono.Addins.Description;
-using MonoDevelop.Ide.Gui.Components;
-using Gdk;
-using System.Collections.Generic;
-
-namespace MonoDevelop.AddinAuthoring.NodeBuilders
-{
- public class AddinCategoryNodeBuilder: TypeNodeBuilder
- {
- public override Type NodeDataType {
- get { return typeof(AddinCategoryGroup); }
- }
-
- public override string GetNodeName (ITreeNavigator thisNode, object dataObject)
- {
- AddinCategoryGroup ep = (AddinCategoryGroup) dataObject;
- return ep.Name;
- }
-
- public override void BuildNode (ITreeBuilder treeBuilder, object dataObject, ref string label, ref Pixbuf icon, ref Pixbuf closedIcon)
- {
- AddinCategoryGroup ep = (AddinCategoryGroup) dataObject;
- label = ep.Name;
- icon = Context.GetIcon ("md-open-folder");
- }
-
- public override void BuildChildNodes (ITreeBuilder treeBuilder, object dataObject)
- {
- AddinCategoryGroup cat = (AddinCategoryGroup) dataObject;
- foreach (var ad in cat.Registry.CachedRegistry.GetAddinRoots ()) {
- if (ad.Description.Category == cat.Name)
- treeBuilder.AddChild (ad.Description);
- }
- foreach (var ad in cat.Registry.CachedRegistry.GetAddins ()) {
- if (ad.Description.Category == cat.Name)
- treeBuilder.AddChild (ad.Description);
- }
- }
-
- public override bool HasChildNodes (ITreeBuilder builder, object dataObject)
- {
- return true;
- }
-
- public override int CompareObjects (ITreeNavigator thisNode, ITreeNavigator otherNode)
- {
- object o1 = thisNode.DataItem;
- object o2 = otherNode.DataItem;
- if ((o1 is AddinCategoryGroup) && !(o2 is AddinCategoryGroup))
- return -1;
- if ((o2 is AddinCategoryGroup) && !(o1 is AddinCategoryGroup))
- return 1;
- return base.CompareObjects (thisNode, otherNode);
- }
-
- }
-}
diff --git a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.NodeBuilders/AddinFolderNodeBuilder.cs b/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.NodeBuilders/AddinFolderNodeBuilder.cs
deleted file mode 100644
index 9a375de691..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.NodeBuilders/AddinFolderNodeBuilder.cs
+++ /dev/null
@@ -1,124 +0,0 @@
-//
-// AddinFolderNodeBuilder.cs
-//
-// Author:
-// Lluis Sanchez Gual
-//
-// Copyright (C) 2006 Novell, Inc (http://www.novell.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-using System;
-using System.Collections;
-
-using MonoDevelop.Projects;
-using MonoDevelop.Core;
-using MonoDevelop.Ide.Gui.Pads;
-using MonoDevelop.Components.Commands;
-using MonoDevelop.Ide;
-using MonoDevelop.Ide.Commands;
-using MonoDevelop.Ide.Gui.Pads.ProjectPad;
-using Mono.Addins;
-using MonoDevelop.Ide.Gui.Components;
-
-namespace MonoDevelop.AddinAuthoring.NodeBuilders
-{
- public class AddinFolderNodeBuilder: TypeNodeBuilder
- {
- EventHandler updateDelegate;
-
- public AddinFolderNodeBuilder ()
- {
- updateDelegate = (EventHandler) DispatchService.GuiDispatch (new EventHandler (OnUpdateFiles));
- AddinData.AddinSupportChanged += OnAddinSupportChanged;
- }
-
- public override Type NodeDataType {
- get { return typeof(AddinData); }
- }
-
- public override Type CommandHandlerType {
- get { return typeof(AddinFolderCommandHandler); }
- }
-
-/* public override string ContextMenuAddinPath {
- get { return "/MonoDevelop/AddinAuthoring/ContextMenu/ProjectPad/Addin"; }
- }
- */
- public override string GetNodeName (ITreeNavigator thisNode, object dataObject)
- {
- return "AddinDescription";
- }
-
- public override void BuildNode (ITreeBuilder treeBuilder, object dataObject, ref string label, ref Gdk.Pixbuf icon, ref Gdk.Pixbuf closedIcon)
- {
- label = AddinManager.CurrentLocalizer.GetString ("Extension Model");
- icon = Context.GetIcon (MonoDevelop.Ide.Gui.Stock.Addin);
- }
-
- public override void BuildChildNodes (ITreeBuilder builder, object dataObject)
- {
- AddinData data = (AddinData) dataObject;
- ProjectFile file = data.Project.GetProjectFile (data.AddinManifestFileName);
- if (file != null)
- builder.AddChild (file);
- }
-
- public override bool HasChildNodes (ITreeBuilder builder, object dataObject)
- {
- return true;
- }
-
- public override int CompareObjects (ITreeNavigator thisNode, ITreeNavigator otherNode)
- {
- if (otherNode.DataItem is ProjectReferenceCollection)
- return 1;
- else
- return -1;
- }
-
- public override void OnNodeAdded (object dataObject)
- {
- AddinData w = (AddinData) dataObject;
- w.Changed += updateDelegate;
- }
-
- public override void OnNodeRemoved (object dataObject)
- {
- AddinData w = (AddinData)dataObject;
- w.Changed -= updateDelegate;
- }
-
- void OnUpdateFiles (object s, EventArgs args)
- {
- ITreeBuilder tb = Context.GetTreeBuilder (s);
- if (tb != null)
- tb.UpdateAll ();
- }
-
- void OnAddinSupportChanged (Project p, bool enabled)
- {
- ITreeBuilder tb = Context.GetTreeBuilder (p);
- if (tb != null)
- tb.UpdateAll ();
- }
- }
-}
diff --git a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.NodeBuilders/AddinGroup.cs b/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.NodeBuilders/AddinGroup.cs
deleted file mode 100644
index c722629148..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.NodeBuilders/AddinGroup.cs
+++ /dev/null
@@ -1,42 +0,0 @@
-//
-// AddinGroup.cs
-//
-// Author:
-// Lluis Sanchez Gual <lluis@novell.com>
-//
-// Copyright (c) 2010 Novell, Inc (http://www.novell.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-using System;
-using Mono.Addins.Description;
-
-namespace MonoDevelop.AddinAuthoring.NodeBuilders
-{
- public class AddinGroup
- {
- public AddinGroup (AddinDescription adesc)
- {
- this.AddinDescription = adesc;
- }
-
- public AddinDescription AddinDescription { get; set; }
- }
-}
-
diff --git a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.NodeBuilders/AddinHeaderNodeBuilder.cs b/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.NodeBuilders/AddinHeaderNodeBuilder.cs
deleted file mode 100644
index e50ddf61a4..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.NodeBuilders/AddinHeaderNodeBuilder.cs
+++ /dev/null
@@ -1,41 +0,0 @@
-// AddinHeaderNodeBuilder.cs
-//
-// Author:
-// Lluis Sanchez Gual <lluis@novell.com>
-//
-// Copyright (c) 2007 Novell, Inc (http://www.novell.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-//
-//
-
-using System;
-
-namespace MonoDevelop.AddinAuthoring.NodeBuilders
-{
-
-
- public class AddinHeaderNodeBuilder
- {
-
- public AddinHeaderNodeBuilder()
- {
- }
- }
-}
diff --git a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.NodeBuilders/AddinNodeBuilder.cs b/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.NodeBuilders/AddinNodeBuilder.cs
deleted file mode 100644
index 3230e0b5e6..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.NodeBuilders/AddinNodeBuilder.cs
+++ /dev/null
@@ -1,90 +0,0 @@
-//
-// AddinNodeBuilder.cs
-//
-// Author:
-// Lluis Sanchez Gual <lluis@novell.com>
-//
-// Copyright (c) 2010 Novell, Inc (http://www.novell.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-using System;
-using MonoDevelop.Ide.Gui.Components;
-using Mono.Addins.Description;
-using System.Collections.Generic;
-using MonoDevelop.Core;
-
-namespace MonoDevelop.AddinAuthoring.NodeBuilders
-{
- public class AddinNodeBuilder: TypeNodeBuilder
- {
- public override Type NodeDataType {
- get { return typeof(AddinDescription); }
- }
-
- public override string GetNodeName (ITreeNavigator thisNode, object dataObject)
- {
- AddinDescription ad = (AddinDescription) dataObject;
- return ad.AddinId;
- }
-
- public override void BuildNode (ITreeBuilder treeBuilder, object dataObject, ref string label, ref Gdk.Pixbuf icon, ref Gdk.Pixbuf closedIcon)
- {
- AddinDescription ad = (AddinDescription) dataObject;
- label = Util.GetDisplayName (ad);
- icon = Context.GetIcon ("md-addin");
- }
-
- public override void BuildChildNodes (ITreeBuilder treeBuilder, object dataObject)
- {
- AddinDescription ad = (AddinDescription) dataObject;
- HashSet<string> localPoints = new HashSet<string> ();
- foreach (ExtensionPoint ep in ad.ExtensionPoints) {
- treeBuilder.AddChild (ep);
- localPoints.Add (ep.Path);
- }
- foreach (Extension ex in ad.MainModule.Extensions) {
- if (!localPoints.Contains (ex.Path))
- treeBuilder.AddChild (ex);
- }
- treeBuilder.AddChild (new TreeViewItem (GettextCatalog.GetString ("Dependencies"), MonoDevelop.Ide.Gui.Stock.ClosedReferenceFolder), true);
- foreach (Dependency dep in ad.MainModule.Dependencies) {
- AddinDependency adep = dep as AddinDependency;
- if (adep != null)
- treeBuilder.AddChild (new TreeViewItem (adep.FullAddinId, "md-addin-reference"));
- }
- }
-
- public override bool HasChildNodes (ITreeBuilder builder, object dataObject)
- {
- return true;
- }
-
- public override int CompareObjects (ITreeNavigator thisNode, ITreeNavigator otherNode)
- {
- AddinDescription ad1 = thisNode.DataItem as AddinDescription;
- AddinDescription ad2 = otherNode.DataItem as AddinDescription;
- if (ad1 != null && ad2 != null)
- return Util.GetDisplayName (ad1).CompareTo (Util.GetDisplayName (ad2));
- return base.CompareObjects (thisNode, otherNode);
- }
-
- }
-}
-
diff --git a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.NodeBuilders/AddinReferenceNodeBuilder.cs b/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.NodeBuilders/AddinReferenceNodeBuilder.cs
deleted file mode 100644
index b50943f0cd..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.NodeBuilders/AddinReferenceNodeBuilder.cs
+++ /dev/null
@@ -1,86 +0,0 @@
-// AddinReferenceNodeBuilder.cs
-//
-// Author:
-// Lluis Sanchez Gual <lluis@novell.com>
-//
-// Copyright (c) 2007 Novell, Inc (http://www.novell.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-//
-//
-
-using System;
-using MonoDevelop.Projects;
-using MonoDevelop.Core;
-using MonoDevelop.Ide;
-using MonoDevelop.Ide.Gui.Pads;
-using MonoDevelop.Ide.Gui.Pads.ProjectPad;
-using MonoDevelop.Components.Commands;
-using Mono.Addins;
-using Mono.Addins.Description;
-using MonoDevelop.Ide.Gui.Components;
-using Gdk;
-
-namespace MonoDevelop.AddinAuthoring.NodeBuilders
-{
- public class AddinReferenceNodeBuilder: TypeNodeBuilder
- {
- public override Type NodeDataType {
- get { return typeof(AddinDependency); }
- }
-
- public override Type CommandHandlerType {
- get { return typeof(AddinReferenceCommandHandler); }
- }
-
- public override string ContextMenuAddinPath {
- get { return "/MonoDevelop/AddinAuthoring/ContextMenu/ProjectPad/AddinReference"; }
- }
-
-
- public override string GetNodeName (ITreeNavigator thisNode, object dataObject)
- {
- AddinDependency adep = (AddinDependency) dataObject;
- return Addin.GetIdName (adep.AddinId);
- }
-
-
- public override void BuildNode (ITreeBuilder treeBuilder, object dataObject, ref string label, ref Pixbuf icon, ref Pixbuf closedIcon)
- {
- AddinDependency adep = (AddinDependency) dataObject;
- label = Addin.GetIdName (adep.AddinId);
- icon = closedIcon = Context.GetIcon ("md-addin-reference");
- }
- }
-
- class AddinReferenceCommandHandler: NodeCommandHandler
- {
- public override void DeleteItem ()
- {
- DotNetProject p = CurrentNode.GetParentDataItem (typeof(Project), true) as DotNetProject;
- AddinData data = AddinData.GetAddinData (p);
- AddinDependency adep = (AddinDependency) CurrentNode.DataItem;
-
- string q = AddinManager.CurrentLocalizer.GetString ("Are you sure you want to remove the reference to add-in '{0}'?", Addin.GetIdName (adep.AddinId));
- if (MessageService.Confirm (q, AlertButton.Remove)) {
- AddinAuthoringService.RemoveReferences (data, new string[] { adep.FullAddinId });
- }
- }
- }
-}
diff --git a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.NodeBuilders/ExtensionModelTypeNodeBuilder.cs b/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.NodeBuilders/ExtensionModelTypeNodeBuilder.cs
deleted file mode 100644
index e3e666fdf4..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.NodeBuilders/ExtensionModelTypeNodeBuilder.cs
+++ /dev/null
@@ -1,72 +0,0 @@
-//
-// ExtensionModelTypeNodeBuilder.cs
-//
-// Author:
-// Lluis Sanchez Gual <lluis@novell.com>
-//
-// Copyright (c) 2010 Novell, Inc (http://www.novell.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-using System;
-using MonoDevelop.Ide.Gui.Components;
-using MonoDevelop.Projects;
-using Mono.Addins;
-
-namespace MonoDevelop.AddinAuthoring.NodeBuilders
-{
- public abstract class ExtensionModelTypeNodeBuilder: TypeNodeBuilder
- {
- public AddinRegistry GetRegistry (ITreeNavigator nav)
- {
- Solution sol = (Solution) nav.GetParentDataItem (typeof(Solution), true);
- if (sol != null)
- return sol.GetAddinData ().Registry;
- RegistryInfo reg = (RegistryInfo) nav.GetParentDataItem (typeof(RegistryInfo), true);
- if (reg != null)
- return reg.CachedRegistry;
- return null;
- }
-
- public AddinData GetAddinData (ITreeNavigator nav)
- {
- DotNetProject p = (DotNetProject) nav.GetParentDataItem (typeof(DotNetProject), true);
- if (p == null)
- return null;
- return p.GetAddinData ();
- }
-
- public CachedModelData GetCachedModelData (ITreeNavigator nav)
- {
- Project p = (Project) nav.GetParentDataItem (typeof(Project), true);
- if (p == null)
- return new CachedModelData ();
- CachedModelData data = (CachedModelData) p.ExtendedProperties [typeof(CachedModelData)];
- if (data == null) {
- data = new CachedModelData ();
- p.ExtendedProperties [typeof(CachedModelData)] = data;
- }
- return data;
- }
- }
-
- public class CachedModelData
- {
- }
-}
-
diff --git a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.NodeBuilders/ExtensionNodeBuilder.cs b/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.NodeBuilders/ExtensionNodeBuilder.cs
deleted file mode 100644
index e10849e2eb..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.NodeBuilders/ExtensionNodeBuilder.cs
+++ /dev/null
@@ -1,175 +0,0 @@
-// ExtensionPointsNodeBuilder.cs
-//
-// Author:
-// Lluis Sanchez Gual <lluis@novell.com>
-//
-// Copyright (c) 2007 Novell, Inc (http://www.novell.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-//
-//
-
-using System;
-using MonoDevelop.Projects;
-using MonoDevelop.Core;
-using MonoDevelop.Ide;
-using MonoDevelop.Ide.Gui;
-using MonoDevelop.Ide.Gui.Pads;
-using MonoDevelop.Ide.Gui.Pads.ProjectPad;
-using MonoDevelop.Components.Commands;
-using Mono.Addins;
-using Mono.Addins.Description;
-using MonoDevelop.Ide.Gui.Components;
-using Gdk;
-using System.Collections.Generic;
-
-namespace MonoDevelop.AddinAuthoring.NodeBuilders
-{
- public class ExtensionNodeBuilder: ExtensionModelTypeNodeBuilder
- {
- public override Type NodeDataType {
- get { return typeof(Extension); }
- }
-
- public override Type CommandHandlerType {
- get { return typeof(ExtensionCommandHandler); }
- }
-
- public override string ContextMenuAddinPath {
- get { return "/MonoDevelop/AddinAuthoring/ContextMenu/ExtensionModelPad/Extension"; }
- }
-
- public override string GetNodeName (ITreeNavigator thisNode, object dataObject)
- {
- Extension ep = (Extension) dataObject;
- return ep.Path;
- }
-
- public override void BuildNode (ITreeBuilder treeBuilder, object dataObject, ref string label, ref Pixbuf icon, ref Pixbuf closedIcon)
- {
- Extension ext = (Extension) dataObject;
- label = GLib.Markup.EscapeText (Util.GetDisplayName (ext));
- icon = Context.GetIcon ("md-extension");
- }
-
- public override void BuildChildNodes (ITreeBuilder treeBuilder, object dataObject)
- {
- Extension en = (Extension) dataObject;
- AddinRegistry reg = GetRegistry (treeBuilder);
- if (reg == null)
- return;
-
- if (treeBuilder.Options ["ShowExistingNodes"]) {
-
- ExtensionNodeTree tree = new ExtensionNodeTree ();
- tree.Fill (reg, en);
-
- foreach (var node in tree.Nodes)
- treeBuilder.AddChild (node);
- }
- else {
- int order = 0;
- foreach (ExtensionNodeDescription child in en.ExtensionNodes)
- treeBuilder.AddChild (new ExtensionNodeInfo (child, true, order++));
- }
- }
-
-
- public override bool HasChildNodes (ITreeBuilder builder, object dataObject)
- {
- if (builder.Options ["ShowExistingNodes"])
- return true;
-
- Extension en = (Extension) dataObject;
- return en.ExtensionNodes.Count > 0;
- }
-
- public override int CompareObjects (ITreeNavigator thisNode, ITreeNavigator otherNode)
- {
- if (thisNode.DataItem is TreeViewItem)
- return -1;
- if (otherNode.DataItem is TreeViewItem)
- return 1;
- return base.CompareObjects (thisNode, otherNode);
- }
- }
-
- class ExtensionCommandHandler: NodeCommandHandler
- {
- protected virtual Extension GetExtension ()
- {
- return (Extension) CurrentNode.DataItem;
- }
-
- [CommandUpdateHandler (Commands.AddNode)]
- public void UpdateAddNodeBefore (CommandArrayInfo cinfo)
- {
- Extension en = GetExtension ();
- foreach (ExtensionNodeType ntype in en.GetAllowedNodeTypes ())
- cinfo.Add (GettextCatalog.GetString ("Add extension '{0}'", ntype.NodeName), ntype);
- }
-
- [CommandHandler (Commands.AddNode)]
- public void AddNodeBefore (object data)
- {
- DotNetProject p = (DotNetProject) CurrentNode.GetParentDataItem (typeof(Project), false);
- AddinData adata = p.GetAddinData ();
-
- Extension en = GetExtension ();
- ExtensionNodeType ntype = (ExtensionNodeType) data;
-
- ExtensionNodeDescription newNode = new ExtensionNodeDescription (ntype.NodeName);
- en.ExtensionNodes.Add (newNode);
- CurrentNode.Expanded = true;
-
- adata.SaveAddinManifest ();
- adata.NotifyChanged (false);
-
- DispatchService.GuiDispatch (delegate {
- ITreeNavigator nav = Tree.GetNodeAtObject (new ExtensionNodeInfo (newNode, false));
- if (nav != null)
- nav.Selected = true;
- });
- }
-
- public override bool CanDeleteMultipleItems ()
- {
- return true;
- }
-
- public override void DeleteMultipleItems ()
- {
- string msg = GettextCatalog.GetString ("The following extensions and all the nodes they contain will be deleted:") + "\n\n";
- foreach (var nav in CurrentNodes) {
- msg += Util.GetDisplayName ((Extension)nav.DataItem) + "\n";
- }
- if (MessageService.Confirm (GettextCatalog.GetString ("Are you sure you want to delete the selected extensions?"), msg, AlertButton.Delete)) {
- foreach (var nav in CurrentNodes) {
- Extension ex = (Extension)nav.DataItem;
- ModuleDescription module = (ModuleDescription) ex.Parent;
- module.Extensions.Remove (ex);
- }
- }
- DotNetProject p = (DotNetProject) CurrentNode.GetParentDataItem (typeof(Project), false);
- AddinData adata = p.GetAddinData ();
- adata.SaveAddinManifest ();
- adata.NotifyChanged (false);
- }
- }
-}
diff --git a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.NodeBuilders/ExtensionNodeNodeBuilder.cs b/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.NodeBuilders/ExtensionNodeNodeBuilder.cs
deleted file mode 100644
index be47000797..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.NodeBuilders/ExtensionNodeNodeBuilder.cs
+++ /dev/null
@@ -1,316 +0,0 @@
-// ExtensionPointsNodeBuilder.cs
-//
-// Author:
-// Lluis Sanchez Gual <lluis@novell.com>
-//
-// Copyright (c) 2007 Novell, Inc (http://www.novell.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-//
-//
-
-using System;
-using MonoDevelop.Projects;
-using MonoDevelop.Core;
-using MonoDevelop.Ide;
-using MonoDevelop.Ide.Gui;
-using MonoDevelop.Ide.Gui.Pads;
-using MonoDevelop.Ide.Gui.Pads.ProjectPad;
-using MonoDevelop.Components.Commands;
-using Mono.Addins;
-using Mono.Addins.Description;
-using MonoDevelop.Ide.Gui.Components;
-using Gdk;
-
-using System.Text;
-
-namespace MonoDevelop.AddinAuthoring.NodeBuilders
-{
- public class ExtensionNodeNodeBuilder: ExtensionModelTypeNodeBuilder
- {
- public override Type NodeDataType {
- get { return typeof(ExtensionNodeInfo); }
- }
-
- public override Type CommandHandlerType {
- get { return typeof(ExtensionNodeCommandHandler); }
- }
-
- public override string ContextMenuAddinPath {
- get { return "/MonoDevelop/AddinAuthoring/ContextMenu/ExtensionModelPad/ExtensionNode"; }
- }
-
- public override string GetNodeName (ITreeNavigator thisNode, object dataObject)
- {
- ExtensionNodeInfo ep = (ExtensionNodeInfo) dataObject;
- return ep.Node.Id;
- }
-
- public override void BuildNode (ITreeBuilder treeBuilder, object dataObject, ref string label, ref Pixbuf icon, ref Pixbuf closedIcon)
- {
- ExtensionNodeInfo ninfo = (ExtensionNodeInfo) dataObject;
- ExtensionNodeDescription node = ninfo.Node;
-
- label = GLib.Markup.EscapeText (node.NodeName);
- StringBuilder desc = new StringBuilder ();
- foreach (NodeAttribute at in node.Attributes) {
- if (desc.Length > 0)
- desc.Append (" ");
- desc.Append (at.Name).Append ("=\"").Append (GLib.Markup.EscapeText (at.Value)).Append ('"');
- }
- if (desc.Length > 0)
- label += "(<i>" + desc + "</i>)";
-
- icon = Context.GetIcon ("md-extension-node");
-
- if (treeBuilder.Options ["ShowExistingNodes"] && !ninfo.CanModify) {
- Gdk.Pixbuf gicon = Context.GetComposedIcon (icon, "fade");
- if (gicon == null) {
- gicon = ImageService.MakeTransparent (icon, 0.5);
- Context.CacheComposedIcon (icon, "fade", gicon);
- }
- icon = gicon;
- }
- }
-
- public override void BuildChildNodes (ITreeBuilder treeBuilder, object dataObject)
- {
- ExtensionNodeInfo en = (ExtensionNodeInfo) dataObject;
- foreach (ExtensionNodeInfo child in en.Expand ())
- treeBuilder.AddChild (child);
- }
-
- public override bool HasChildNodes (ITreeBuilder builder, object dataObject)
- {
- ExtensionNodeInfo en = (ExtensionNodeInfo) dataObject;
- return en.HasChildren;
- }
-
- public override int CompareObjects (ITreeNavigator thisNode, ITreeNavigator otherNode)
- {
- ExtensionNodeInfo n1 = thisNode.DataItem as ExtensionNodeInfo;
- ExtensionNodeInfo n2 = otherNode.DataItem as ExtensionNodeInfo;
- if (n1 != null && n2 != null)
- return n1.Order.CompareTo (n2.Order);
- else
- return base.CompareObjects (thisNode, otherNode);
- }
-
- public override void OnNodeAdded (object dataObject)
- {
- ExtensionNodeInfo en = (ExtensionNodeInfo) dataObject;
- en.Changed += HandleNodeChanged;
- }
-
- public override void OnNodeRemoved (object dataObject)
- {
- ExtensionNodeInfo en = (ExtensionNodeInfo) dataObject;
- en.Changed -= HandleNodeChanged;
- }
-
- void HandleNodeChanged (object sender, EventArgs e)
- {
- ITreeBuilder builder = Context.GetTreeBuilder (sender);
- if (builder != null)
- builder.UpdateAll ();
- }
-
- }
-
- class ExtensionNodeCommandHandler: NodeCommandHandler
- {
- public override DragOperation CanDragNode ()
- {
- ExtensionNodeInfo en = (ExtensionNodeInfo) CurrentNode.DataItem;
- if (en.CanModify)
- return DragOperation.Copy | DragOperation.Move;
- else
- return DragOperation.None;
- }
-
- public override bool CanDropNode (object dataObject, DragOperation operation, DropPosition pos)
- {
- object parent1 = CurrentNode.GetParentDataItem (typeof(Extension), false);
- if (parent1 == null)
- parent1 = CurrentNode.GetParentDataItem (typeof(ExtensionPoint), false);
-
- ITreeNavigator nav = CurrentNode.Clone ();
- if (!nav.MoveToObject (dataObject))
- return false;
- object parent2 = nav.GetParentDataItem (parent1.GetType (), false);
- if (parent2 != parent1)
- return false;
-
- return true;
- }
-
- public override void OnMultipleNodeDrop (object[] dataObjects, DragOperation operation, DropPosition pos)
- {
- DotNetProject p = (DotNetProject) CurrentNode.GetParentDataItem (typeof(Project), false);
- AddinData adata = p.GetAddinData ();
-
- ExtensionNodeInfo en = (ExtensionNodeInfo) CurrentNode.DataItem;
-
- foreach (ExtensionNodeInfo newNode in dataObjects) {
- if (newNode.Node.Parent is ExtensionNodeDescription)
- ((ExtensionNodeDescription)newNode.Node.Parent).ChildNodes.Remove (en.Node);
- else
- ((Extension)newNode.Node.Parent).ExtensionNodes.Remove (newNode.Node);
- InsertNode (adata, en, pos, newNode.Node);
-
- // Add all other nodes after the first node
- en = newNode;
- pos = DropPosition.After;
- }
-
- adata.CachedAddinManifest.Save ();
- adata.NotifyChanged (false);
- }
-
- [CommandUpdateHandler (Commands.AddNodeAfter)]
- public void UpdateAddNodeAfter (CommandArrayInfo cinfo)
- {
- foreach (ExtensionNodeType ntype in GetAllowedChildTypes ()) {
- cinfo.Add (ntype.NodeName, ntype);
- }
- }
-
- [CommandHandler (Commands.AddNodeAfter)]
- public void AddNodeAfter (object data)
- {
- DotNetProject p = (DotNetProject) CurrentNode.GetParentDataItem (typeof(Project), false);
- AddinData adata = p.GetAddinData ();
-
- ExtensionNodeInfo en = (ExtensionNodeInfo) CurrentNode.DataItem;
- ExtensionNodeType ntype = (ExtensionNodeType) data;
- ExtensionNodeDescription newNode = new ExtensionNodeDescription (ntype.NodeName);
- InsertNode (adata, en, DropPosition.After, newNode);
-
- adata.CachedAddinManifest.Save ();
- adata.NotifyChanged (false);
- }
-
-
- [CommandUpdateHandler (Commands.AddNodeBefore)]
- public void UpdateAddNodeBefore (CommandArrayInfo cinfo)
- {
- foreach (ExtensionNodeType ntype in GetAllowedChildTypes ()) {
- cinfo.Add (ntype.NodeName, ntype);
- }
- }
-
- [CommandHandler (Commands.AddNodeBefore)]
- public void AddNodeBefore (object data)
- {
- DotNetProject p = (DotNetProject) CurrentNode.GetParentDataItem (typeof(Project), false);
- AddinData adata = p.GetAddinData ();
-
- ExtensionNodeInfo en = (ExtensionNodeInfo) CurrentNode.DataItem;
- ExtensionNodeType ntype = (ExtensionNodeType) data;
- ExtensionNodeDescription newNode = new ExtensionNodeDescription (ntype.NodeName);
- InsertNode (adata, en, DropPosition.Before, newNode);
-
- adata.CachedAddinManifest.Save ();
- adata.NotifyChanged (false);
- }
-
- ExtensionNodeDescription InsertNode (AddinData adata, ExtensionNodeInfo refNode, DropPosition pos, ExtensionNodeDescription newNode)
- {
- ExtensionNodeDescriptionCollection nodes = null;
- newNode.InsertBefore = "";
- newNode.InsertAfter = "";
-
- if (refNode.CanModify) {
- if (pos == DropPosition.Into)
- nodes = refNode.Node.ChildNodes;
- else if (refNode.Node.Parent is ExtensionNodeDescription)
- nodes = ((ExtensionNodeDescription)refNode.Node.Parent).ChildNodes;
- } else {
- if (pos == DropPosition.After)
- newNode.InsertAfter = refNode.Node.Id;
- else if (pos == DropPosition.Before)
- newNode.InsertBefore = refNode.Node.Id;
- }
- if (nodes == null) {
- string path = refNode.Node.GetParentPath ();
- if (pos == DropPosition.Into)
- path += "/" + refNode.Node.Id;
- Extension ext = adata.CachedAddinManifest.MainModule.GetExtension (path);
- nodes = ext.ExtensionNodes;
- }
-
- for (int n = 0; n < nodes.Count; n++) {
- ExtensionNodeDescription node = nodes [n];
- if (node == refNode.Node) {
- if (pos == DropPosition.After) n++;
- nodes.Insert (n, newNode);
- return newNode;
- }
- }
- nodes.Add (newNode);
- return newNode;
- }
-
- ExtensionNodeTypeCollection GetAllowedChildTypes ()
- {
- ExtensionNodeInfo en = (ExtensionNodeInfo) CurrentNode.DataItem;
- object parent = en.Node.Parent;
-
- Extension ext = parent as Extension;
- if (ext != null)
- return ext.GetAllowedNodeTypes ();
- else {
- ExtensionNodeDescription node = (ExtensionNodeDescription) parent;
- if (node != null) {
- ExtensionNodeType tn = node.GetNodeType ();
- if (tn != null)
- return tn.GetAllowedNodeTypes ();
- }
- }
- return new ExtensionNodeTypeCollection ();
- }
-
- public override bool CanDeleteMultipleItems ()
- {
- foreach (var nav in CurrentNodes) {
- ExtensionNodeInfo en = (ExtensionNodeInfo) nav.DataItem;
- if (!en.CanModify)
- return false;
- }
- return true;
- }
-
- public override void DeleteMultipleItems ()
- {
- if (MessageService.Confirm (GettextCatalog.GetString ("Are you sure you want to delete the selected nodes?"), AlertButton.Delete)) {
- foreach (var nav in CurrentNodes) {
- ExtensionNodeInfo en = (ExtensionNodeInfo) nav.DataItem;
- if (en.Node.Parent is Extension)
- ((Extension)en.Node.Parent).ExtensionNodes.Remove (en.Node);
- else if (en.Node.Parent is ExtensionNodeDescription)
- ((ExtensionNodeDescription)en.Node.Parent).ChildNodes.Remove (en.Node);
- }
- }
- DotNetProject p = (DotNetProject) CurrentNode.GetParentDataItem (typeof(Project), false);
- AddinData adata = p.GetAddinData ();
- adata.SaveAddinManifest ();
- adata.NotifyChanged (false);
- }
- }
-}
diff --git a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.NodeBuilders/ExtensionPointNodeBuilder.cs b/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.NodeBuilders/ExtensionPointNodeBuilder.cs
deleted file mode 100644
index 632932a809..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.NodeBuilders/ExtensionPointNodeBuilder.cs
+++ /dev/null
@@ -1,191 +0,0 @@
-// ExtensionPointsNodeBuilder.cs
-//
-// Author:
-// Lluis Sanchez Gual <lluis@novell.com>
-//
-// Copyright (c) 2007 Novell, Inc (http://www.novell.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-//
-//
-
-using System;
-using MonoDevelop.Projects;
-using MonoDevelop.Core;
-using MonoDevelop.Ide;
-using MonoDevelop.Ide.Gui;
-using MonoDevelop.Ide.Gui.Pads;
-using MonoDevelop.Ide.Gui.Pads.ProjectPad;
-using MonoDevelop.Components.Commands;
-using Mono.Addins;
-using Mono.Addins.Description;
-using MonoDevelop.Ide.Gui.Components;
-using Gdk;
-using System.Collections.Generic;
-
-
-namespace MonoDevelop.AddinAuthoring.NodeBuilders
-{
- public class ExtensionPointNodeBuilder: ExtensionModelTypeNodeBuilder
- {
- public override Type NodeDataType {
- get { return typeof(ExtensionPoint); }
- }
-
- public override Type CommandHandlerType {
- get { return typeof(ExtensionPointCommandHandler); }
- }
-
- public override string ContextMenuAddinPath {
- get { return "/MonoDevelop/AddinAuthoring/ContextMenu/ExtensionModelPad/ExtensionPoint"; }
- }
-
- public override string GetNodeName (ITreeNavigator thisNode, object dataObject)
- {
- ExtensionPoint ep = (ExtensionPoint) dataObject;
- return ep.Path;
- }
-
- public override object GetParentObject (object dataObject)
- {
- ExtensionPoint ep = (ExtensionPoint) dataObject;
- return ep.ParentAddinDescription;
- }
-
- public override void BuildNode (ITreeBuilder treeBuilder, object dataObject, ref string label, ref Pixbuf icon, ref Pixbuf closedIcon)
- {
- ExtensionPoint ep = (ExtensionPoint) dataObject;
- label = GLib.Markup.EscapeText (!string.IsNullOrEmpty (ep.Name) ? ep.Name : ep.Path);
- icon = Context.GetIcon ("md-extension-point");
- }
-
- public override void BuildChildNodes (ITreeBuilder treeBuilder, object dataObject)
- {
- ExtensionPoint ep = (ExtensionPoint) dataObject;
-
- if (treeBuilder.Options ["ShowExistingNodes"]) {
- AddinRegistry reg = GetRegistry (treeBuilder);
- if (reg == null)
- return;
- ExtensionNodeTree tree = new ExtensionNodeTree ();
- tree.Fill (reg, ep);
- foreach (var node in tree.Nodes)
- treeBuilder.AddChild (node);
- }
- else {
- int order = 0;
- foreach (Extension ext in ep.ParentAddinDescription.MainModule.Extensions) {
- if (ext.Path == ep.Path) {
- foreach (ExtensionNodeDescription node in ext.ExtensionNodes)
- treeBuilder.AddChild (new ExtensionNodeInfo (node, true, order++));
- }
- }
- }
- }
-
- public override bool HasChildNodes (ITreeBuilder builder, object dataObject)
- {
- if (builder.Options ["ShowExistingNodes"])
- return true;
- else {
- ExtensionPoint ep = (ExtensionPoint) dataObject;
- foreach (Extension ext in ep.ParentAddinDescription.MainModule.Extensions) {
- if (ext.Path == ep.Path) {
- if (ext.ExtensionNodes.Count > 0)
- return true;
- }
- }
- return false;
- }
- }
-
- public override int CompareObjects (ITreeNavigator thisNode, ITreeNavigator otherNode)
- {
- if (thisNode.DataItem is TreeViewItem)
- return -1;
- if (otherNode.DataItem is TreeViewItem)
- return 1;
- return base.CompareObjects (thisNode, otherNode);
- }
-
-
- }
-
- class ExtensionPointCommandHandler: ExtensionCommandHandler
- {
- public override void ActivateItem ()
- {
- DotNetProject project = (DotNetProject) CurrentNode.GetParentDataItem (typeof(DotNetProject), true);
- if (project == null)
- return;
- AddinData data = project.GetAddinData ();
- if (data == null)
- return;
-
- ExtensionPoint ep = (ExtensionPoint) CurrentNode.DataItem;
- ExtensionPoint epc = new ExtensionPoint ();
- epc.CopyFrom (ep);
- NewExtensionPointDialog epdlg = new NewExtensionPointDialog (project, data.AddinRegistry, data.CachedAddinManifest, epc);
- if (epdlg.Run () == (int) Gtk.ResponseType.Ok) {
- ep.CopyFrom (epc);
- data.CachedAddinManifest.Save ();
- }
- epdlg.Destroy ();
- }
-
- protected override Extension GetExtension ()
- {
- ExtensionPoint ep = (ExtensionPoint) CurrentNode.DataItem;
- return ep.ParentAddinDescription.MainModule.GetExtension (ep.Path);
- }
-
- public override bool CanDeleteMultipleItems ()
- {
- return true;
- }
-
- public override void DeleteMultipleItems ()
- {
- string msg = GettextCatalog.GetString ("The following extension points and all the nodes they contain will be deleted:") + "\n\n";
- foreach (var nav in CurrentNodes) {
- msg += Util.GetDisplayName ((ExtensionPoint)nav.DataItem) + "\n";
- }
- if (MessageService.Confirm (GettextCatalog.GetString ("Are you sure you want to delete the selected extension points?"), msg, AlertButton.Delete)) {
- foreach (var nav in CurrentNodes) {
- ExtensionPoint ep = (ExtensionPoint)nav.DataItem;
- ep.ParentAddinDescription.ExtensionPoints.Remove (ep);
- foreach (ModuleDescription module in ep.ParentAddinDescription.AllModules) {
- List<Extension> toDelete = new List<Extension> ();
- foreach (Extension ext in module.Extensions) {
- if (ext.Path == ep.Path || ext.Path.StartsWith (ep.Path + "/"))
- toDelete.Add (ext);
- }
- foreach (Extension ext in toDelete)
- module.Extensions.Remove (ext);
- }
- }
- }
- DotNetProject p = (DotNetProject) CurrentNode.GetParentDataItem (typeof(Project), false);
- AddinData adata = p.GetAddinData ();
- adata.SaveAddinManifest ();
- adata.NotifyChanged (false);
- }
-
- }
-}
diff --git a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.NodeBuilders/ExtensionPointsNodeBuilder.cs b/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.NodeBuilders/ExtensionPointsNodeBuilder.cs
deleted file mode 100644
index fb5edbb0d8..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.NodeBuilders/ExtensionPointsNodeBuilder.cs
+++ /dev/null
@@ -1,84 +0,0 @@
-// ExtensionPointsNodeBuilder.cs
-//
-// Author:
-// Lluis Sanchez Gual <lluis@novell.com>
-//
-// Copyright (c) 2007 Novell, Inc (http://www.novell.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-//
-//
-
-using System;
-using MonoDevelop.Projects;
-using MonoDevelop.Core;
-using MonoDevelop.Ide;
-using MonoDevelop.Ide.Gui;
-using MonoDevelop.Ide.Gui.Pads;
-using MonoDevelop.Ide.Gui.Pads.ProjectPad;
-using MonoDevelop.Components.Commands;
-using Mono.Addins;
-using Mono.Addins.Description;
-using MonoDevelop.Ide.Gui.Components;
-using Gdk;
-
-namespace MonoDevelop.AddinAuthoring
-{
- public class ExtensionPointsNodeBuilder: TypeNodeBuilder
- {
- public override Type NodeDataType {
- get { return typeof(ExtensionPointCollection); }
- }
-
- public override Type CommandHandlerType {
- get { return typeof(ExtensionPointsCommandHandler); }
- }
-
- public override string ContextMenuAddinPath {
- get { return "/MonoDevelop/AddinAuthoring/ContextMenu/ProjectPad/AddinReference"; }
- }
-
- public override string GetNodeName (ITreeNavigator thisNode, object dataObject)
- {
- return "extension-points";
- }
-
- public override void BuildNode (ITreeBuilder treeBuilder, object dataObject, ref string label, ref Pixbuf icon, ref Pixbuf closedIcon)
- {
- AddinData data = (AddinData) treeBuilder.GetParentDataItem (typeof(AddinData), false);
- label = AddinManager.CurrentLocalizer.GetString ("Extension Points ({0})", data.CachedAddinManifest.ExtensionPoints.Count);
- icon = Context.GetIcon ("md-extension-point");
- }
- }
-
- class ExtensionPointsCommandHandler: NodeCommandHandler
- {
- public override void ActivateItem ()
- {
- AddinData data = (AddinData) CurrentNode.GetParentDataItem (typeof(AddinData), false);
- Document doc = IdeApp.Workbench.OpenDocument (data.AddinManifestFileName);
- if (doc != null) {
- AddinDescriptionView view = doc.GetContent<AddinDescriptionView> ();
- if (view != null)
- view.ShowExtensionPoints ();
- }
- }
-
- }
-}
diff --git a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.NodeBuilders/ExtensionsNodeBuilder.cs b/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.NodeBuilders/ExtensionsNodeBuilder.cs
deleted file mode 100644
index 4476c072e8..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.NodeBuilders/ExtensionsNodeBuilder.cs
+++ /dev/null
@@ -1,85 +0,0 @@
-// ExtensionsNodeBuilder.cs
-//
-// Author:
-// Lluis Sanchez Gual <lluis@novell.com>
-//
-// Copyright (c) 2007 Novell, Inc (http://www.novell.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-//
-//
-
-using System;
-using MonoDevelop.Projects;
-using MonoDevelop.Core;
-using MonoDevelop.Ide;
-using MonoDevelop.Ide.Gui;
-using MonoDevelop.Ide.Gui.Pads;
-using MonoDevelop.Ide.Gui.Pads.ProjectPad;
-using MonoDevelop.Components.Commands;
-using Mono.Addins;
-using Mono.Addins.Description;
-using MonoDevelop.Ide.Gui.Components;
-using Gdk;
-
-namespace MonoDevelop.AddinAuthoring
-{
-
-
- public class ExtensionsNodeBuilder: TypeNodeBuilder
- {
- public override Type NodeDataType {
- get { return typeof(ExtensionCollection); }
- }
-
- public override Type CommandHandlerType {
- get { return typeof(ExtensionsCommandHandler); }
- }
-
- public override string ContextMenuAddinPath {
- get { return "/MonoDevelop/AddinAuthoring/ContextMenu/ProjectPad/AddinReference"; }
- }
-
- public override string GetNodeName (ITreeNavigator thisNode, object dataObject)
- {
- return "extension-points";
- }
-
- public override void BuildNode (ITreeBuilder treeBuilder, object dataObject, ref string label, ref Pixbuf icon, ref Pixbuf closedIcon)
- {
- AddinData data = (AddinData) treeBuilder.GetParentDataItem (typeof(AddinData), false);
- label = AddinManager.CurrentLocalizer.GetString ("Extensions ({0})", data.CachedAddinManifest.MainModule.Extensions.Count);
- icon = Context.GetIcon ("md-extension-node");
- }
- }
-
- class ExtensionsCommandHandler: NodeCommandHandler
- {
- public override void ActivateItem ()
- {
- AddinData data = (AddinData) CurrentNode.GetParentDataItem (typeof(AddinData), false);
- Document doc = IdeApp.Workbench.OpenDocument (data.AddinManifestFileName);
- if (doc != null) {
- AddinDescriptionView view = doc.GetContent<AddinDescriptionView> ();
- if (view != null)
- view.ShowExtensions ();
- }
- }
- }
-}
diff --git a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.NodeBuilders/ProjectFolderNodeBuilderExtension.cs b/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.NodeBuilders/ProjectFolderNodeBuilderExtension.cs
deleted file mode 100644
index e4dddd8826..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.NodeBuilders/ProjectFolderNodeBuilderExtension.cs
+++ /dev/null
@@ -1,153 +0,0 @@
-//
-// ProjectFolderNodeBuilderExtension.cs
-//
-// Author:
-// Lluis Sanchez Gual
-//
-// Copyright (C) 2006 Novell, Inc (http://www.novell.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-
-using System;
-using MonoDevelop.Projects;
-using MonoDevelop.Core;
-using MonoDevelop.Ide;
-using MonoDevelop.Ide.Gui;
-using MonoDevelop.Ide.Gui.Pads;
-using MonoDevelop.Ide.Gui.Pads.ProjectPad;
-using MonoDevelop.Components.Commands;
-using Mono.Addins.Description;
-using MonoDevelop.Ide.Gui.Components;
-using Gtk;
-
-namespace MonoDevelop.AddinAuthoring.NodeBuilders
-{
- class ProjectFolderNodeBuilderExtension: NodeBuilderExtension
- {
- public override bool CanBuildNode (Type dataType)
- {
- return typeof(DotNetProject).IsAssignableFrom (dataType) ||
- typeof(ProjectFile).IsAssignableFrom (dataType);
-/* return typeof(ProjectFolder).IsAssignableFrom (dataType) ||
- typeof(ProjectFile).IsAssignableFrom (dataType) ||
- typeof(DotNetProject).IsAssignableFrom (dataType);
-*/ }
-
- public override Type CommandHandlerType {
- get { return typeof(AddinFolderCommandHandler); }
- }
-
- public override void GetNodeAttributes (ITreeNavigator parentNode, object dataObject, ref NodeAttributes attributes)
- {
- base.GetNodeAttributes (parentNode, dataObject, ref attributes);
- if (dataObject is ProjectFile) {
- string fname = ((ProjectFile)dataObject).Name;
- if (fname.EndsWith (".addin.xml", StringComparison.Ordinal) || fname.EndsWith (".addin", StringComparison.Ordinal)) {
- if (!(parentNode.DataItem is AddinData)) {
- DotNetProject dp = (DotNetProject) parentNode.GetParentDataItem (typeof(DotNetProject), true);
- if (dp != null && dp.GetAddinData () != null) {
- // Hide the manifest
- attributes |= NodeAttributes.Hidden;
- }
- }
- }
- }
- }
-
-
- public override void BuildChildNodes (ITreeBuilder builder, object dataObject)
- {
- if (dataObject is DotNetProject) {
- AddinData data = AddinData.GetAddinData ((DotNetProject)dataObject);
- if (data != null)
- builder.AddChild (data);
- }
- }
-
- public override void OnNodeAdded (object dataObject)
- {
- if (dataObject is DotNetProject) {
- AddinData data = AddinData.GetAddinData ((DotNetProject)dataObject);
- if (data != null)
- data.Changed += OnProjectChanged;
- }
- }
-
- public override void OnNodeRemoved (object dataObject)
- {
- if (dataObject is DotNetProject) {
- AddinData data = AddinData.GetAddinData ((DotNetProject)dataObject);
- if (data != null)
- data.Changed -= OnProjectChanged;
- }
- }
-
-
- void OnProjectChanged (object s, EventArgs a)
- {
- AddinData data = (AddinData) s;
- ITreeBuilder tb = Context.GetTreeBuilder (data.Project);
- if (tb != null)
- tb.UpdateAll ();
- }
-
- }
-
- class AddinFolderCommandHandler: NodeCommandHandler
- {
- public override void ActivateItem ()
- {
-/* if (CurrentNode.DataItem is AddinData) {
- Pad pad = IdeApp.Workbench.GetPad<ExtensionTreePad> ();
- ExtensionTreePad etree = (ExtensionTreePad) pad.Content;
- pad.BringToFront ();
- Project p = (Project) CurrentNode.GetParentDataItem (typeof(Project), false);
- if (p != null)
- etree.SelectProject (p);
- }*/
- }
-
- [CommandHandler (Commands.AddExtension)]
- public void OnAddExtension ()
- {
- DotNetProject p = CurrentNode.GetParentDataItem (typeof(Project), true) as DotNetProject;
- AddinData data = AddinData.GetAddinData (p);
-
- AddinDescription desc = data.LoadAddinManifest ();
- ExtensionSelectorDialog dlg = new ExtensionSelectorDialog (data.AddinRegistry, null, desc.IsRoot, false);
- if (dlg.Run () == (int) ResponseType.Ok) {
- foreach (object ob in dlg.GetSelection ())
- Console.WriteLine ("pp s: " + ob);
- }
- dlg.Destroy ();
- }
-
- [CommandUpdateHandler (Commands.AddExtension)]
- public void OnUpdateAddExtension (CommandInfo cinfo)
- {
- if (CurrentNode.DataItem is ProjectFolder || CurrentNode.DataItem is DotNetProject) {
- DotNetProject p = CurrentNode.GetParentDataItem (typeof(Project), true) as DotNetProject;
- cinfo.Visible = p != null && AddinData.GetAddinData (p) != null;
- }
- }
- }
-}
diff --git a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.NodeBuilders/ProjectNodeBuilder.cs b/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.NodeBuilders/ProjectNodeBuilder.cs
deleted file mode 100644
index 7a4e44f8d3..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.NodeBuilders/ProjectNodeBuilder.cs
+++ /dev/null
@@ -1,244 +0,0 @@
-//
-// ProjectNodeBuilder.cs
-//
-// Author:
-// Lluis Sanchez Gual
-//
-// Copyright (C) 2005 Novell, Inc (http://www.novell.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-using System;
-using System.IO;
-using System.Collections;
-using System.Collections.Generic;
-using System.Text;
-
-using MonoDevelop.Projects;
-using MonoDevelop.Projects.Dom;
-using MonoDevelop.Projects.Dom.Parser;
-using MonoDevelop.Core;
-using MonoDevelop.Ide;
-using MonoDevelop.Ide.Gui.Components;
-using Mono.Addins.Description;
-using MonoDevelop.Components.Commands;
-
-namespace MonoDevelop.AddinAuthoring.NodeBuilders
-{
- public class ProjectNodeBuilder: TypeNodeBuilder
- {
- SolutionItemRenamedEventHandler projectNameChanged;
-
- public ProjectNodeBuilder ()
- {
- projectNameChanged = (SolutionItemRenamedEventHandler) DispatchService.GuiDispatch (new SolutionItemRenamedEventHandler (OnProjectRenamed));
- }
-
- protected override void Initialize ()
- {
- }
- public override void Dispose ()
- {
- }
-
- public override Type NodeDataType {
- get { return typeof(DotNetProject); }
- }
-
- public override string ContextMenuAddinPath {
- get { return "/MonoDevelop/AddinAuthoring/ContextMenu/ExtensionModelPad/Project"; }
- }
-
- public override Type CommandHandlerType {
- get { return typeof(ProjectCommandHandler); }
- }
-
- public override void OnNodeAdded (object dataObject)
- {
- DotNetProject project = (DotNetProject) dataObject;
- project.NameChanged += projectNameChanged;
-
- AddinData data = project.GetAddinData ();
- if (data != null) {
- data.Changed += HandleDataChanged;
- }
- }
-
- public override void OnNodeRemoved (object dataObject)
- {
- DotNetProject project = (DotNetProject) dataObject;
- project.NameChanged -= projectNameChanged;
-
- AddinData data = project.GetAddinData ();
- if (data != null)
- data.Changed -= HandleDataChanged;
- }
-
- public override string GetNodeName (ITreeNavigator thisNode, object dataObject)
- {
- return ((Project)dataObject).Name;
- }
-
- public override void BuildNode (ITreeBuilder treeBuilder, object dataObject, ref string label, ref Gdk.Pixbuf icon, ref Gdk.Pixbuf closedIcon)
- {
- Project p = dataObject as Project;
- label = p.Name;
- icon = Context.GetIcon (p.StockIcon);
- }
-
- public override void BuildChildNodes (ITreeBuilder builder, object dataObject)
- {
- DotNetProject project = (DotNetProject) dataObject;
- AddinData data = project.GetAddinData ();
- if (data != null && data.CachedAddinManifest != null) {
- AddinDescription adesc = data.CachedAddinManifest;
- HashSet<string> localPoints = new HashSet<string> ();
- foreach (ExtensionPoint ep in adesc.ExtensionPoints) {
- builder.AddChild (ep);
- localPoints.Add (ep.Path);
- }
- foreach (Extension ext in adesc.MainModule.Extensions) {
- if (!localPoints.Contains (ext.Path))
- builder.AddChild (ext);
- }
- }
- }
-
- public static IEnumerable<object> BuildChildNodes (ITreeBuilder treeBuilder, AddinData data, Func<AddinDescription,bool> includeAddin)
- {
- AddinDescription adesc = data.CachedAddinManifest;
- HashSet<string> localPoints = new HashSet<string> ();
- if (includeAddin (adesc)) {
- foreach (ExtensionPoint ep in adesc.ExtensionPoints) {
- yield return ep;
- localPoints.Add (ep.Path);
- }
- }
- foreach (Extension ext in adesc.MainModule.Extensions) {
- if (!localPoints.Contains (ext.Path)) {
- if (includeAddin != null) {
- object ob = ext.GetExtendedObject ();
- while (!(ob is ExtensionPoint) && ob != null) {
- if (ob is Extension)
- ob = ((Extension)ob).GetExtendedObject ();
- else if (ob is ExtensionNodeDescription)
- ob = ((ExtensionNodeDescription)ob).Parent;
- else
- ob = null;
- }
- if (ob != null && includeAddin (((ExtensionPoint)ob).ParentAddinDescription))
- yield return ext;
- } else {
- yield return ext;
- }
- }
- }
- }
-
- public override bool HasChildNodes (ITreeBuilder builder, object dataObject)
- {
- return true;
- }
-
- void HandleDataChanged (object sender, EventArgs e)
- {
- AddinData data = (AddinData) sender;
- ITreeBuilder tb = Context.GetTreeBuilder (data.Project);
- if (tb != null) tb.UpdateAll ();
- }
-
- void OnProjectRenamed (object sender, SolutionItemRenamedEventArgs e)
- {
- ITreeBuilder tb = Context.GetTreeBuilder (e.SolutionItem);
- if (tb != null) tb.Update ();
- }
-
- }
-
- class ProjectCommandHandler: NodeCommandHandler
- {
- [CommandHandler (Commands.AddExtensionPoint)]
- public void OnAddExtensionPoint ()
- {
- DotNetProject project = (DotNetProject) CurrentNode.DataItem;
- if (project == null)
- return;
- AddinData data = project.GetAddinData ();
- if (project == null)
- return;
-
- ExtensionPoint ep = new ExtensionPoint ();
- NewExtensionPointDialog dlg = new NewExtensionPointDialog (project, data.AddinRegistry, data.CachedAddinManifest, ep);
- try {
- if (dlg.Run () == (int) Gtk.ResponseType.Ok) {
- data.CachedAddinManifest.ExtensionPoints.Add (ep);
- data.SaveAddinManifest ();
- data.NotifyChanged (false);
- }
- } finally {
- dlg.Destroy ();
- }
- }
-
- [CommandHandler (Commands.AddExtension)]
- public void OnAddExtension ()
- {
- DotNetProject project = (DotNetProject) CurrentNode.DataItem;
- if (project == null)
- return;
- AddinData data = project.GetAddinData ();
- if (project == null)
- return;
-
- AddinDescription adesc = data.CachedAddinManifest;
-
- ExtensionSelectorDialog dlg = new ExtensionSelectorDialog (data.AddinRegistry, adesc, adesc.IsRoot, false);
- if (dlg.Run () == (int) Gtk.ResponseType.Ok) {
- foreach (object ob in dlg.GetSelection ()) {
- AddinDescription desc = null;
- if (ob is ExtensionPoint) {
- ExtensionPoint ep = (ExtensionPoint) ob;
- Extension ext = new Extension (ep.Path);
- adesc.MainModule.Extensions.Add (ext);
- desc = (AddinDescription) ep.Parent;
- }
- else if (ob is ExtensionNodeDescription) {
- ExtensionNodeDescription node = (ExtensionNodeDescription) ob;
- desc = node.ParentAddinDescription;
- string path = "";
- while (node != null && !(node.Parent is Extension)) {
- if (!node.IsCondition)
- path = "/" + node.Id + path;
- node = node.Parent as ExtensionNodeDescription;
- }
- Extension eext = (Extension) node.Parent;
- Extension ext = new Extension (eext.Path + "/" + node.Id + path);
- adesc.MainModule.Extensions.Add (ext);
- }
- if (adesc.AddinId != desc.AddinId && !adesc.MainModule.DependsOnAddin (desc.AddinId))
- adesc.MainModule.Dependencies.Add (new AddinDependency (desc.AddinId));
- }
- adesc.Save ();
- }
- dlg.Destroy ();
- }
- }
-}
diff --git a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.NodeBuilders/ReferenceNodeBuilder.cs b/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.NodeBuilders/ReferenceNodeBuilder.cs
deleted file mode 100644
index cc5db59faa..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.NodeBuilders/ReferenceNodeBuilder.cs
+++ /dev/null
@@ -1,59 +0,0 @@
-//
-// ReferenceNodeBuilder.cs
-//
-// Author:
-// Lluis Sanchez Gual <lluis@novell.com>
-//
-// Copyright (c) 2009 Novell, Inc (http://www.novell.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-using System;
-using MonoDevelop.Projects;
-using MonoDevelop.Ide.Gui.Components;
-using MonoDevelop.Ide.Gui.Pads.ProjectPad;
-
-namespace MonoDevelop.AddinAuthoring.NodeBuilders
-{
- public class ReferenceNodeBuilder: NodeBuilderExtension
- {
- public override bool CanBuildNode (System.Type dataType)
- {
- return typeof(ProjectReference).IsAssignableFrom (dataType);
- }
-
- public override void GetNodeAttributes (ITreeNavigator parentNode, object dataObject, ref NodeAttributes attributes)
- {
- if (dataObject is AddinProjectReference) {
- attributes |= NodeAttributes.Hidden;
- return;
- }
- ProjectReference pr = (ProjectReference) dataObject;
- DotNetProject parent = pr.OwnerProject as DotNetProject;
- if (AddinAuthoringService.IsProjectIncludedByAddin (parent, pr)) {
- attributes |= NodeAttributes.Hidden;
- }
- else if (parent.GetAddinData () != null && pr.ReferenceType == ReferenceType.Project) {
- DotNetProject tp = parent.ParentSolution.FindProjectByName (pr.Reference) as DotNetProject;
- if (tp != null && tp.GetAddinData () != null)
- attributes |= NodeAttributes.Hidden;
- }
- }
- }
-}
diff --git a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.NodeBuilders/ReferencesFolderNodeBuilder.cs b/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.NodeBuilders/ReferencesFolderNodeBuilder.cs
deleted file mode 100644
index de3d1e9eda..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.NodeBuilders/ReferencesFolderNodeBuilder.cs
+++ /dev/null
@@ -1,102 +0,0 @@
-// ReferencesFolderNodeBuilder.cs
-//
-// Author:
-// Lluis Sanchez Gual <lluis@novell.com>
-//
-// Copyright (c) 2007 Novell, Inc (http://www.novell.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-//
-//
-
-using System;
-using MonoDevelop.Projects;
-using MonoDevelop.Core;
-using MonoDevelop.Ide.Gui;
-using MonoDevelop.Ide.Gui.Pads;
-using MonoDevelop.Ide.Gui.Pads.ProjectPad;
-using MonoDevelop.Components.Commands;
-using Mono.Addins;
-using Mono.Addins.Description;
-using MonoDevelop.Ide.Gui.Components;
-
-namespace MonoDevelop.AddinAuthoring.NodeBuilders
-{
- public class ReferencesFolderNodeBuilder: NodeBuilderExtension
- {
- public override bool CanBuildNode (Type dataType)
- {
- return typeof(ProjectReferenceCollection).IsAssignableFrom (dataType);
- }
-
- public override Type CommandHandlerType {
- get { return typeof(ReferencesFolderCommandHandler); }
- }
-
- public override bool HasChildNodes (ITreeBuilder builder, object dataObject)
- {
- if (base.HasChildNodes (builder, dataObject))
- return true;
- DotNetProject p = (DotNetProject) builder.GetParentDataItem (typeof(DotNetProject), false);
- if (p != null) {
- AddinData data = AddinData.GetAddinData (p);
- if (data != null)
- return data.CachedAddinManifest.MainModule.Dependencies.Count > 0;
- }
- return false;
- }
-
-
- public override void BuildChildNodes (ITreeBuilder treeBuilder, object dataObject)
- {
- base.BuildChildNodes (treeBuilder, dataObject);
- DotNetProject p = (DotNetProject) treeBuilder.GetParentDataItem (typeof(DotNetProject), false);
- if (p != null) {
- AddinData data = AddinData.GetAddinData (p);
- if (data != null) {
- foreach (Dependency adep in data.CachedAddinManifest.MainModule.Dependencies)
- treeBuilder.AddChild (adep);
- }
- }
- }
- }
-
- class ReferencesFolderCommandHandler: NodeCommandHandler
- {
- [CommandHandler (Commands.AddAddinDependency)]
- public void AddAddinDependency ()
- {
- DotNetProject p = CurrentNode.GetParentDataItem (typeof(Project), true) as DotNetProject;
- AddinData data = AddinData.GetAddinData (p);
-
- ExtensionSelectorDialog dlg = new ExtensionSelectorDialog (data.AddinRegistry, null, data.CachedAddinManifest.IsRoot, true);
- if (dlg.Run () == (int) Gtk.ResponseType.Ok) {
- AddinAuthoringService.AddReferences (data, dlg.GetSelection ());
- }
- dlg.Destroy ();
- }
-
- [CommandUpdateHandler (Commands.AddAddinDependency)]
- public void OnUpdateAddAddinDependency (CommandInfo cinfo)
- {
- DotNetProject p = CurrentNode.GetParentDataItem (typeof(Project), true) as DotNetProject;
- cinfo.Visible = p != null && AddinData.GetAddinData (p) != null;
- }
- }
-}
diff --git a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.NodeBuilders/RegistryNodeBuilder.cs b/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.NodeBuilders/RegistryNodeBuilder.cs
deleted file mode 100644
index 4fc7f112e2..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.NodeBuilders/RegistryNodeBuilder.cs
+++ /dev/null
@@ -1,92 +0,0 @@
-//
-// RegistryNodeBuilder.cs
-//
-// Author:
-// Lluis Sanchez Gual <lluis@novell.com>
-//
-// Copyright (c) 2010 Novell, Inc (http://www.novell.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-using System;
-using MonoDevelop.Ide.Gui.Components;
-using Mono.Addins;
-using System.Collections.Generic;
-
-namespace MonoDevelop.AddinAuthoring.NodeBuilders
-{
- public class RegistryNodeBuilder: TypeNodeBuilder
- {
- public RegistryNodeBuilder ()
- {
- }
-
- public override Type NodeDataType {
- get { return typeof(RegistryInfo); }
- }
-
- public override string GetNodeName (ITreeNavigator thisNode, object dataObject)
- {
- RegistryInfo reg = (RegistryInfo) dataObject;
- string name = reg.ApplicationName;
- if (string.IsNullOrEmpty (name))
- name = reg.ApplicationPath;
- return name;
- }
-
- public override void BuildNode (ITreeBuilder treeBuilder, object dataObject, ref string label, ref Gdk.Pixbuf icon, ref Gdk.Pixbuf closedIcon)
- {
- RegistryInfo reg = (RegistryInfo) dataObject;
- label = reg.ApplicationName;
- if (string.IsNullOrEmpty (label))
- label = reg.ApplicationPath;
- icon = Context.GetIcon ("md-package");
- }
-
- public override bool HasChildNodes (ITreeBuilder builder, object dataObject)
- {
- return true;
- }
-
- public override void BuildChildNodes (ITreeBuilder treeBuilder, object dataObject)
- {
- RegistryInfo reg = (RegistryInfo) dataObject;
- if (reg.CachedRegistry == null) {
- reg.CachedRegistry = new AddinRegistry (reg.RegistryPath, reg.ApplicationPath);
- reg.CachedRegistry.Update (null);
- }
- HashSet<string> cats = new HashSet<string> ();
- foreach (var ad in reg.CachedRegistry.GetAddinRoots ()) {
- if (string.IsNullOrEmpty (ad.Description.Category)) {
- treeBuilder.AddChild (ad.Description);
- } else if (cats.Add (ad.Description.Category)) {
- treeBuilder.AddChild (new AddinCategoryGroup (reg, ad.Description.Category));
- }
- }
- foreach (var ad in reg.CachedRegistry.GetAddins ()) {
- if (string.IsNullOrEmpty (ad.Description.Category)) {
- treeBuilder.AddChild (ad.Description);
- } else if (cats.Add (ad.Description.Category)) {
- treeBuilder.AddChild (new AddinCategoryGroup (reg, ad.Description.Category));
- }
- }
- }
- }
-}
-
diff --git a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.NodeBuilders/SolutionNodeBuilder.cs b/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.NodeBuilders/SolutionNodeBuilder.cs
deleted file mode 100644
index 4f2a97f80e..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.NodeBuilders/SolutionNodeBuilder.cs
+++ /dev/null
@@ -1,97 +0,0 @@
-//
-// SolutionNodeBuilder.cs
-//
-// Author:
-// Lluis Sanchez Gual <lluis@novell.com>
-//
-// Copyright (c) 2010 Novell, Inc (http://www.novell.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-using System;
-using MonoDevelop.Ide.Gui.Components;
-using MonoDevelop.Projects;
-
-namespace MonoDevelop.AddinAuthoring.NodeBuilders
-{
- public class SolutionNodeBuilder: TypeNodeBuilder
- {
- bool forBrowser;
-
- public SolutionNodeBuilder ()
- {
- }
-
- public SolutionNodeBuilder (bool forBrowser)
- {
- this.forBrowser = forBrowser;
- }
-
- public override Type NodeDataType {
- get { return typeof(Solution); }
- }
-
- public override string GetNodeName (ITreeNavigator thisNode, object dataObject)
- {
- Solution sol = (Solution) dataObject;
- if (forBrowser) {
- SolutionAddinData data = sol.GetAddinData ();
- if (data != null && data.ApplicationName != null)
- return data.ApplicationName;
- }
- return sol.Name;
- }
-
- public override void GetNodeAttributes (ITreeNavigator parentNode, object dataObject, ref NodeAttributes attributes)
- {
- Solution sol = (Solution) dataObject;
- foreach (DotNetProject p in sol.GetAllSolutionItems<DotNetProject> ()) {
- if (p.GetAddinData () != null)
- return;
- }
- attributes |= NodeAttributes.Hidden;
- }
-
- public override void BuildNode (ITreeBuilder treeBuilder, object dataObject, ref string label, ref Gdk.Pixbuf icon, ref Gdk.Pixbuf closedIcon)
- {
- Solution sol = (Solution) dataObject;
- label = GLib.Markup.EscapeText (sol.Name);
- icon = Context.GetIcon (MonoDevelop.Ide.Gui.Stock.Solution);
- }
-
- public override void BuildChildNodes (ITreeBuilder treeBuilder, object dataObject)
- {
- Solution sol = (Solution) dataObject;
- SolutionAddinData data = sol.GetAddinData ();
- if (data != null && data.Registry != null) {
- foreach (var ad in data.Registry.GetAddinRoots ())
- treeBuilder.AddChild (ad.Description);
- foreach (var ad in data.Registry.GetAddins ())
- treeBuilder.AddChild (ad.Description);
- }
- }
-
- public override bool HasChildNodes (ITreeBuilder builder, object dataObject)
- {
- return true;
- }
-
- }
-}
-
diff --git a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.addin.xml b/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.addin.xml
deleted file mode 100644
index 14ce4265d5..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.addin.xml
+++ /dev/null
@@ -1,206 +0,0 @@
-<Addin id = "AddinAuthoring"
- namespace = "MonoDevelop"
- name = "Add-in Authoring"
- author = "Lluis Sanchez Gual"
- copyright = "MIT X11"
- url = "http://www.monodevelop.com"
- description = "This add-in provides utilities for creating Mono.Addins based libraries and applications"
- version = "4.2.3">
-
- <Dependencies>
- <Addin id="Core" version="4.2.3"/>
- <Addin id="Ide" version="4.2.3"/>
- <Addin id="VersionControl" version="4.2.3"/>
- </Dependencies>
-
- <!-- Extension Points -->
-
- <ExtensionPoint path = "/MonoDevelop/AddinAuthoring/ContextMenu/ProjectPad/Addin">
- <ExtensionNodeSet id="MonoDevelop.Components.Commands.ItemSet"/>
- </ExtensionPoint>
-
- <ExtensionPoint path = "/MonoDevelop/AddinAuthoring/ContextMenu/ProjectPad/AddinReference">
- <ExtensionNodeSet id="MonoDevelop.Components.Commands.ItemSet"/>
- </ExtensionPoint>
-
- <ExtensionPoint path = "/MonoDevelop/AddinAuthoring/AddinRegistries">
- <ExtensionNode name="Registry" type="MonoDevelop.AddinAuthoring.RegistryInfo" />
- </ExtensionPoint>
-
- <ExtensionPoint path = "/MonoDevelop/AddinAuthoring/ContextMenu/ExtensionModelPad/ExtensionPoint">
- <ExtensionNodeSet id="MonoDevelop.Components.Commands.ItemSet"/>
- </ExtensionPoint>
-
- <ExtensionPoint path = "/MonoDevelop/AddinAuthoring/ContextMenu/ExtensionModelPad/Extension">
- <ExtensionNodeSet id="MonoDevelop.Components.Commands.ItemSet"/>
- </ExtensionPoint>
-
- <ExtensionPoint path = "/MonoDevelop/AddinAuthoring/ContextMenu/ExtensionModelPad/ExtensionNode">
- <ExtensionNodeSet id="MonoDevelop.Components.Commands.ItemSet"/>
- </ExtensionPoint>
-
- <ExtensionPoint path = "/MonoDevelop/AddinAuthoring/ContextMenu/ExtensionModelPad/Project">
- <ExtensionNodeSet id="MonoDevelop.Components.Commands.ItemSet"/>
- </ExtensionPoint>
-
- <!-- Extensions -->
-
- <Extension path = "/MonoDevelop/AddinAuthoring/AddinRegistries">
- </Extension>
-
- <Extension path = "/MonoDevelop/Ide/Commands">
- <Command id = "MonoDevelop.AddinAuthoring.Commands.AddAddinDependency"
- _label = "Add add-in reference..." />
- <Command id = "MonoDevelop.AddinAuthoring.Commands.AddExtension"
- icon = "md-addin"
- _label = "Add new extension..." />
- <Command id = "MonoDevelop.AddinAuthoring.Commands.AddNodeBefore"
- type="array"
- _label = "Add Node Before" />
- <Command id = "MonoDevelop.AddinAuthoring.Commands.AddNodeAfter"
- type="array"
- _label = "Add Node After" />
- <Command id = "MonoDevelop.AddinAuthoring.Commands.AddNode"
- type="array"
- _label = "Add Node" />
- <Command id = "MonoDevelop.AddinAuthoring.Commands.AddExtensionPoint"
- icon = "md-new-extension-point"
- _label = "New Extension Point" />
- <Command id = "MonoDevelop.AddinAuthoring.Commands.ExtensionModelBrowser"
- icon = "md-addin"
- defaultHandler = "MonoDevelop.AddinAuthoring.ExtensionModelBrowserHandler"
- _label = "Extension Model Browser" />
- </Extension>
-
- <Extension path = "/MonoDevelop/Ide/FileTemplateTypes">
- <FileTemplateType name = "Addin" class = "MonoDevelop.AddinAuthoring.AddinFileDescriptionTemplate"/>
- </Extension>
-
- <Extension path="/MonoDevelop/Ide/MainMenu/Edit">
- <CommandItem id="MonoDevelop.AddinAuthoring.Commands.AddAddinDependency" insertafter="Separator5"/>
- </Extension>
-
- <Extension path="/MonoDevelop/Ide/MainMenu/View">
- <CommandItem id="MonoDevelop.AddinAuthoring.Commands.ExtensionModelBrowser" />
- </Extension>
-
-<!-- <Extension path = "/MonoDevelop/Ide/DisplayBindings">
- <DisplayBinding class = "MonoDevelop.AddinAuthoring.AddinDescriptionDisplayBinding" insertbefore="DefaultDisplayBinding"/>
- </Extension>
--->
-
- <Extension path = "/MonoDevelop/Ide/ContextMenu/ProjectPad">
- <Condition id="ItemType" value="ProjectReferenceCollection">
- <CommandItem id = "MonoDevelop.AddinAuthoring.Commands.AddAddinDependency" insertafter="MonoDevelop.Ide.Commands.ProjectCommands.AddReference"/>
- </Condition>
- </Extension>
-
- <Extension path = "/MonoDevelop/Ide/Pads/ProjectPad">
- <NodeBuilder class = "MonoDevelop.AddinAuthoring.NodeBuilders.ReferencesFolderNodeBuilder"/>
- <NodeBuilder class = "MonoDevelop.AddinAuthoring.NodeBuilders.AddinReferenceNodeBuilder"/>
- <NodeBuilder class = "MonoDevelop.AddinAuthoring.NodeBuilders.ReferenceNodeBuilder"/>
-<!-- <NodeBuilder class = "MonoDevelop.AddinAuthoring.NodeBuilders.ProjectFolderNodeBuilderExtension"/>-->
- <NodeBuilder class = "MonoDevelop.AddinAuthoring.NodeBuilders.AddinFolderNodeBuilder"/>
- </Extension>
-
- <Extension path = "/MonoDevelop/Ide/ProjectTemplates">
- <ProjectTemplate id = "ExtensibleApplicationProject" resource = "ExtensibleApplicationProject.xpt.xml"/>
- <ProjectTemplate id = "ExtensibleLibraryProject" resource = "ExtensibleLibraryProject.xpt.xml"/>
- <ProjectTemplate id = "AddinProject" resource = "AddinProject.xpt.xml"/>
- </Extension>
-
- <Extension path = "/MonoDevelop/AddinAuthoring/ContextMenu/ProjectPad/Addin">
- <CommandItem id = "MonoDevelop.AddinAuthoring.Commands.AddAddinDependency" />
- <CommandItem id = "MonoDevelop.AddinAuthoring.Commands.AddExtension" />
- </Extension>
-
- <Extension path = "/MonoDevelop/AddinAuthoring/ContextMenu/ProjectPad/AddinReference">
- <CommandItem id = "MonoDevelop.Ide.Commands.EditCommands.Delete" />
- </Extension>
-
- <Extension path = "/MonoDevelop/Ide/ContextMenu/ProjectPad/Add">
- <Condition id="ItemType" value="Project">
- <SeparatorItem insertafter = "MonoDevelop.Ide.Commands.ProjectCommands.AddFiles" />
- <CommandItem id = "MonoDevelop.AddinAuthoring.Commands.AddExtension" />
- </Condition>
- </Extension>
-
- <Extension path = "/MonoDevelop/ProjectModel/ProjectServiceExtensions">
- <Class class = "MonoDevelop.AddinAuthoring.AddinProjectExtension" insertafter="MidStep"/>
- </Extension>
-
- <Extension path = "/MonoDevelop/Ide/ProjectFeatures">
- <Class class = "MonoDevelop.AddinAuthoring.AddinFeature" />
- </Extension>
-
- <Extension path = "/MonoDevelop/ProjectModel/Gui/ItemOptionPanels/Common">
- <Condition id="ItemType" value="DotNetProject">
- <Section id = "AddinAuthoring" _label = "Add-in Settings" icon="md-addin" class="MonoDevelop.AddinAuthoring.AddinOptionPanel"/>
- </Condition>
- </Extension>
-
- <Extension path = "/MonoDevelop/Core/StockIcons">
- <StockIcon stockid = "md-addinauthoring-newclass" icon = "md-class|res:flare.png" size="Menu" />
- <StockIcon stockid = "md-addinauthoring-newinterface" icon = "md-interface|res:flare.png" size="Menu" />
- <StockIcon stockid = "md-extension" icon = "res:extension.png" size="Menu" />
- <StockIcon stockid = "md-extension-point" icon = "res:extension-point.png" size="Menu" />
- <StockIcon stockid = "md-extension-node-type" icon = "res:extension-node-type.png" size="Menu" />
- <StockIcon stockid = "md-extension-node" icon = "res:extension-node-type.png" size="Menu" />
- <StockIcon stockid = "md-extension-node-set" icon = "res:extension-node-set.png" size="Menu" />
- <StockIcon stockid = "md-new-extension-point" icon = "res:extension-point.png|res:flare.png" size="Menu" />
- <StockIcon stockid = "md-addinauthoring-current-addin" icon = "md-addin|res:flare.png" size="Menu" />
- <StockIcon stockid = "md-addin-reference" icon = "res:addin-reference.png" size="Menu" />
- </Extension>
-
- <Extension path = "/MonoDevelop/ProjectModel/SerializableClasses">
- <DataType class = "MonoDevelop.AddinAuthoring.AddinProjectReference" name = "AddinReference"/>
- <DataType class = "MonoDevelop.AddinAuthoring.ExtensionDomain" />
- </Extension>
-
- <Extension path = "/MonoDevelop/Ide/TextEditorExtensions">
- <Class class = "MonoDevelop.AddinAuthoring.CodeCompletion.CodeCompletionExtension" insertbefore="MonoDevelop.XmlEditor.XmlTextEditorExtension" />
- </Extension>
-
- <Extension path = "/MonoDevelop/ProjectModel/ExtendedProperties">
- <ItemProperty class = "MonoDevelop.Projects.DotNetProject"
- name = "ExtensionDomain" type = "System.String" external="false"/>
- </Extension>
-
- <Extension path = "/MonoDevelop/Ide/WorkbenchContexts/Edit">
- <ContextPad id = "ExtensionTreePad" />
- </Extension>
-
- <Extension path = "/MonoDevelop/AddinAuthoring/ContextMenu/ExtensionModelPad/Project">
- <CommandItem id = "MonoDevelop.AddinAuthoring.Commands.AddExtensionPoint" />
- <CommandItem id = "MonoDevelop.AddinAuthoring.Commands.AddExtension" />
- </Extension>
-
- <Extension path = "/MonoDevelop/AddinAuthoring/ContextMenu/ExtensionModelPad/Extension">
- <CommandItem id="MonoDevelop.AddinAuthoring.Commands.AddNode" />
- <CommandItem id = "MonoDevelop.Ide.Commands.EditCommands.Delete" />
- </Extension>
-
- <Extension path = "/MonoDevelop/AddinAuthoring/ContextMenu/ExtensionModelPad/ExtensionPoint">
- <CommandItem id="MonoDevelop.AddinAuthoring.Commands.AddNode" />
- <CommandItem id = "MonoDevelop.Ide.Commands.EditCommands.Delete" />
- </Extension>
-
- <Extension path = "/MonoDevelop/AddinAuthoring/ContextMenu/ExtensionModelPad/ExtensionNode">
- <ItemSet id="InsertBefore" _label="Insert Before" autohide="true">
- <CommandItem id="MonoDevelop.AddinAuthoring.Commands.AddNodeBefore" />
- </ItemSet>
- <ItemSet id="InsertAfter" _label="Insert After" autohide="true">
- <CommandItem id="MonoDevelop.AddinAuthoring.Commands.AddNodeAfter" />
- </ItemSet>
- <CommandItem id = "MonoDevelop.Ide.Commands.EditCommands.Delete" />
- </Extension>
-
- <Extension path = "/MonoDevelop/ProjectModel/PolicySets/Mono" >
- <Policies resource="AddinXmlPolicy.xml" />
- <Policies resource="AddinTextStylePolicy.xml" />
- </Extension>
-
- <Extension path = "/MonoDevelop/Core/UserDataMigration">
- <Migration sourceVersion="2.4" kind="Config" sourcePath="AddinAuthoring.config" />
- </Extension>
-</Addin>
diff --git a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.csproj b/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.csproj
deleted file mode 100644
index b6efa457b5..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.csproj
+++ /dev/null
@@ -1,300 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <ProductVersion>9.0.21022</ProductVersion>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{3614523B-7789-4475-9A99-D71727E8C627}</ProjectGuid>
- <OutputType>Library</OutputType>
- <ApplicationIcon>.</ApplicationIcon>
- <AssemblyName>MonoDevelop.AddinAuthoring</AssemblyName>
- <RootNamespace>MonoDevelop.AddinAuthoring</RootNamespace>
- <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- <DebugSymbols>true</DebugSymbols>
- <DebugType>full</DebugType>
- <Optimize>true</Optimize>
- <OutputPath>build</OutputPath>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- <ConsolePause>false</ConsolePause>
- <CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
- <Execution>
- <Execution clr-version="Net_2_0" />
- </Execution>
- <CustomCommands>
- <CustomCommands>
- <Command type="Execute" command="../../main/build/bin/MonoDevelop.exe" />
- </CustomCommands>
- </CustomCommands>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- <DebugType>none</DebugType>
- <Optimize>true</Optimize>
- <OutputPath>bin\Release</OutputPath>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- <ConsolePause>false</ConsolePause>
- <CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
- <Execution>
- <Execution clr-version="Net_2_0" />
- </Execution>
- </PropertyGroup>
- <ItemGroup>
- <Compile Include="AssemblyInfo.cs" />
- <Compile Include="gtk-gui\generated.cs" />
- <Compile Include="MonoDevelop.AddinAuthoring.NodeBuilders\ProjectFolderNodeBuilderExtension.cs" />
- <Compile Include="MonoDevelop.AddinAuthoring.NodeBuilders\AddinFolderNodeBuilder.cs" />
- <Compile Include="MonoDevelop.AddinAuthoring\AddinData.cs" />
- <Compile Include="MonoDevelop.AddinAuthoring\AddinDescriptionWidget.cs" />
- <Compile Include="MonoDevelop.AddinAuthoring\AddinFileDescriptionTemplate.cs" />
- <Compile Include="MonoDevelop.AddinAuthoring\AddinOptionPanelWidget.cs" />
- <Compile Include="MonoDevelop.AddinAuthoring\AddinProjectExtension.cs" />
- <Compile Include="MonoDevelop.AddinAuthoring\Commands.cs" />
- <Compile Include="MonoDevelop.AddinAuthoring\ExtensionEditorWidget.cs" />
- <Compile Include="MonoDevelop.AddinAuthoring\ExtensionSelectorDialog.cs" />
- <Compile Include="MonoDevelop.AddinAuthoring\SelectRepositoryDialog.cs" />
- <Compile Include="MonoDevelop.AddinAuthoring\CellRendererExtension.cs" />
- <Compile Include="MonoDevelop.AddinAuthoring\AddinFeatureWidget.cs" />
- <Compile Include="MonoDevelop.AddinAuthoring\NodeEditorWidget.cs" />
- <Compile Include="MonoDevelop.AddinAuthoring\RegistryExtensionNode.cs" />
- <Compile Include="MonoDevelop.AddinAuthoring\AddinAuthoringService.cs" />
- <Compile Include="MonoDevelop.AddinAuthoring\RegistrySelector.cs" />
- <Compile Include="MonoDevelop.AddinAuthoring\NewExtensionPointDialog.cs" />
- <Compile Include="MonoDevelop.AddinAuthoring\TypeSelector.cs" />
- <Compile Include="MonoDevelop.AddinAuthoring\NodeSetEditorWidget.cs" />
- <Compile Include="MonoDevelop.AddinAuthoring\NodeSetEditorDialog.cs" />
- <Compile Include="MonoDevelop.AddinAuthoring\NodeTypeEditorDialog.cs" />
- <Compile Include="MonoDevelop.AddinAuthoring\SelectNodeSetDialog.cs" />
- <Compile Include="MonoDevelop.AddinAuthoring.NodeBuilders\AddinHeaderNodeBuilder.cs" />
- <Compile Include="MonoDevelop.AddinAuthoring\ExtensionPointsEditorWidget.cs" />
- <Compile Include="MonoDevelop.AddinAuthoring.NodeBuilders\ReferencesFolderNodeBuilder.cs" />
- <Compile Include="MonoDevelop.AddinAuthoring.NodeBuilders\AddinReferenceNodeBuilder.cs" />
- <Compile Include="MonoDevelop.AddinAuthoring\AddinProjectReference.cs" />
- <Compile Include="MonoDevelop.AddinAuthoring\NewRegistryDialog.cs" />
- <Compile Include="MonoDevelop.AddinAuthoring.CodeCompletion\CodeCompletionExtension.cs" />
- <Compile Include="gtk-gui\MonoDevelop.AddinAuthoring.AddinOptionPanelWidget.cs" />
- <Compile Include="gtk-gui\MonoDevelop.AddinAuthoring.AddinDescriptionWidget.cs" />
- <Compile Include="gtk-gui\MonoDevelop.AddinAuthoring.SelectRepositoryDialog.cs" />
- <Compile Include="gtk-gui\MonoDevelop.AddinAuthoring.ExtensionSelectorDialog.cs" />
- <Compile Include="gtk-gui\MonoDevelop.AddinAuthoring.ExtensionEditorWidget.cs" />
- <Compile Include="gtk-gui\MonoDevelop.AddinAuthoring.AddinFeatureWidget.cs" />
- <Compile Include="gtk-gui\MonoDevelop.AddinAuthoring.RegistrySelector.cs" />
- <Compile Include="gtk-gui\MonoDevelop.AddinAuthoring.NewExtensionPointDialog.cs" />
- <Compile Include="gtk-gui\MonoDevelop.AddinAuthoring.TypeSelector.cs" />
- <Compile Include="gtk-gui\MonoDevelop.AddinAuthoring.NodeSetEditorWidget.cs" />
- <Compile Include="gtk-gui\MonoDevelop.AddinAuthoring.NodeSetEditorDialog.cs" />
- <Compile Include="gtk-gui\MonoDevelop.AddinAuthoring.NodeTypeEditorDialog.cs" />
- <Compile Include="gtk-gui\MonoDevelop.AddinAuthoring.SelectNodeSetDialog.cs" />
- <Compile Include="gtk-gui\MonoDevelop.AddinAuthoring.ExtensionPointsEditorWidget.cs" />
- <Compile Include="gtk-gui\MonoDevelop.AddinAuthoring.NewRegistryDialog.cs" />
- <Compile Include="MonoDevelop.AddinAuthoring\SolutionAddinData.cs" />
- <Compile Include="MonoDevelop.AddinAuthoring\ExtensionDomain.cs" />
- <Compile Include="MonoDevelop.AddinAuthoring.NodeBuilders\ReferenceNodeBuilder.cs" />
- <Compile Include="MonoDevelop.AddinAuthoring\TypeCellEditor.cs" />
- <Compile Include="MonoDevelop.AddinAuthoring.NodeBuilders\ProjectNodeBuilder.cs" />
- <Compile Include="MonoDevelop.AddinAuthoring.NodeBuilders\ExtensionPointNodeBuilder.cs" />
- <Compile Include="MonoDevelop.AddinAuthoring.NodeBuilders\ExtensionNodeBuilder.cs" />
- <Compile Include="MonoDevelop.AddinAuthoring.NodeBuilders\ExtensionNodeNodeBuilder.cs" />
- <Compile Include="MonoDevelop.AddinAuthoring.NodeBuilders\ExtensionModelTypeNodeBuilder.cs" />
- <Compile Include="MonoDevelop.AddinAuthoring\Util.cs" />
- <Compile Include="MonoDevelop.AddinAuthoring.NodeBuilders\AddinCategoryGroup.cs" />
- <Compile Include="MonoDevelop.AddinAuthoring.NodeBuilders\AddinGroup.cs" />
- <Compile Include="MonoDevelop.AddinAuthoring.NodeBuilders\AddinCategoryNodeBuilder.cs" />
- <Compile Include="MonoDevelop.AddinAuthoring\ExtensionNodeTree.cs" />
- <Compile Include="MonoDevelop.AddinAuthoring\ExtensionNodeInfo.cs" />
- <Compile Include="MonoDevelop.AddinAuthoring\ExtensionModelBrowser.cs" />
- <Compile Include="MonoDevelop.AddinAuthoring\ExtensionModelBrowserWidget.cs" />
- <Compile Include="gtk-gui\MonoDevelop.AddinAuthoring.ExtensionModelBrowserWidget.cs" />
- <Compile Include="MonoDevelop.AddinAuthoring.NodeBuilders\AddinNodeBuilder.cs" />
- <Compile Include="MonoDevelop.AddinAuthoring.NodeBuilders\SolutionNodeBuilder.cs" />
- <Compile Include="MonoDevelop.AddinAuthoring.Gui\AddinView.cs" />
- <Compile Include="gtk-gui\MonoDevelop.AddinAuthoring.Gui.AddinView.cs" />
- <Compile Include="MonoDevelop.AddinAuthoring.Gui\ExtensionPointView.cs" />
- <Compile Include="gtk-gui\MonoDevelop.AddinAuthoring.Gui.ExtensionPointView.cs" />
- <Compile Include="MonoDevelop.AddinAuthoring.Gui\ExtensionView.cs" />
- <Compile Include="gtk-gui\MonoDevelop.AddinAuthoring.Gui.ExtensionView.cs" />
- <Compile Include="MonoDevelop.AddinAuthoring.Gui\ExtensionNodeView.cs" />
- <Compile Include="gtk-gui\MonoDevelop.AddinAuthoring.Gui.ExtensionNodeView.cs" />
- <Compile Include="MonoDevelop.AddinAuthoring.NodeBuilders\RegistryNodeBuilder.cs" />
- <Compile Include="MonoDevelop.AddinAuthoring\AddinDescriptionDisplayBinding.cs" />
- <Compile Include="MonoDevelop.AddinAuthoring\AddinDescriptionView.cs" />
- <Compile Include="MonoDevelop.AddinAuthoring\DomAssemblyReflector.cs" />
- <Compile Include="MonoDevelop.AddinAuthoring\AddinFileSystem.cs" />
- <Compile Include="MonoDevelop.AddinAuthoring\RegistryEventArgs.cs" />
- <Compile Include="MonoDevelop.AddinAuthoring\StartupHandler.cs" />
- <Compile Include="MonoDevelop.AddinAuthoring\ExtensionPointsEditorView.cs" />
- <Compile Include="MonoDevelop.AddinAuthoring\ExtensionEditorView.cs" />
- <Compile Include="MonoDevelop.AddinAuthoring\ExtensionBaseView.cs" />
- </ItemGroup>
- <ItemGroup>
- <EmbeddedResource Include="gtk-gui\gui.stetic">
- <LogicalName>gui.stetic</LogicalName>
- </EmbeddedResource>
- <EmbeddedResource Include="MonoDevelop.AddinAuthoring.addin.xml">
- <LogicalName>MonoDevelop.AddinAuthoring.addin.xml</LogicalName>
- </EmbeddedResource>
- <EmbeddedResource Include="templates\AddinProject.xpt.xml">
- <LogicalName>AddinProject.xpt.xml</LogicalName>
- </EmbeddedResource>
- <EmbeddedResource Include="flare.png">
- <LogicalName>flare.png</LogicalName>
- </EmbeddedResource>
- <EmbeddedResource Include="extension-node-type.png">
- <LogicalName>extension-node-type.png</LogicalName>
- </EmbeddedResource>
- <EmbeddedResource Include="extension-point.png">
- <LogicalName>extension-point.png</LogicalName>
- </EmbeddedResource>
- <EmbeddedResource Include="extension-node-set.png">
- <LogicalName>extension-node-set.png</LogicalName>
- </EmbeddedResource>
- <EmbeddedResource Include="templates\ExtensibleApplicationProject.xpt.xml">
- <LogicalName>ExtensibleApplicationProject.xpt.xml</LogicalName>
- </EmbeddedResource>
- <EmbeddedResource Include="templates\ExtensibleLibraryProject.xpt.xml">
- <LogicalName>ExtensibleLibraryProject.xpt.xml</LogicalName>
- </EmbeddedResource>
- <EmbeddedResource Include="addin-reference.png">
- <LogicalName>addin-reference.png</LogicalName>
- </EmbeddedResource>
- <EmbeddedResource Include="extension.png">
- <LogicalName>extension.png</LogicalName>
- </EmbeddedResource>
- <EmbeddedResource Include="AddinXmlPolicy.xml">
- <LogicalName>AddinXmlPolicy.xml</LogicalName>
- </EmbeddedResource>
- <EmbeddedResource Include="AddinTextStylePolicy.xml">
- <LogicalName>AddinTextStylePolicy.xml</LogicalName>
- </EmbeddedResource>
- </ItemGroup>
- <ItemGroup>
- <Reference Include="pango-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
- <Reference Include="atk-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
- <Reference Include="gdk-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
- <Reference Include="gtk-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
- <Reference Include="MonoDevelop.Ide, Version=2.1.0.0, Culture=neutral">
- <Package>monodevelop</Package>
- <SpecificVersion>False</SpecificVersion>
- </Reference>
- <Reference Include="NRefactory, Version=2.1.0.0, Culture=neutral">
- <Package>monodevelop</Package>
- <SpecificVersion>False</SpecificVersion>
- </Reference>
- <Reference Include="Mono.Cecil, Version=0.6.8.8607, Culture=neutral">
- <Package>monodevelop</Package>
- <SpecificVersion>False</SpecificVersion>
- </Reference>
- <Reference Include="Mono.TextEditor, Version=1.0.0.0, Culture=neutral">
- <Package>monodevelop</Package>
- </Reference>
- <Reference Include="MonoDevelop.VersionControl, Version=2.1.0.0, Culture=neutral">
- <Package>monodevelop-core-addins</Package>
- <SpecificVersion>False</SpecificVersion>
- </Reference>
- <Reference Include="MonoDevelop.NUnit, Version=2.1.0.0, Culture=neutral">
- <Package>monodevelop-core-addins</Package>
- <SpecificVersion>False</SpecificVersion>
- </Reference>
- <Reference Include="MonoDevelop.XmlEditor, Version=2.1.0.0, Culture=neutral">
- <Package>monodevelop-core-addins</Package>
- <SpecificVersion>False</SpecificVersion>
- </Reference>
- <Reference Include="MonoDevelop.Gettext, Version=2.1.0.0, Culture=neutral">
- <Package>monodevelop-core-addins</Package>
- <SpecificVersion>False</SpecificVersion>
- </Reference>
- <Reference Include="MonoDevelop.Deployment, Version=2.1.0.0, Culture=neutral">
- <Package>monodevelop-core-addins</Package>
- <SpecificVersion>False</SpecificVersion>
- </Reference>
- <Reference Include="MonoDevelop.Deployment.Linux, Version=2.1.0.0, Culture=neutral">
- <Package>monodevelop-core-addins</Package>
- <SpecificVersion>False</SpecificVersion>
- </Reference>
- <Reference Include="MonoDevelop.GtkCore, Version=2.1.0.0, Culture=neutral">
- <Package>monodevelop-core-addins</Package>
- <SpecificVersion>False</SpecificVersion>
- </Reference>
- <Reference Include="MonoDevelop.DesignerSupport, Version=2.1.0.0, Culture=neutral">
- <Package>monodevelop-core-addins</Package>
- <SpecificVersion>False</SpecificVersion>
- </Reference>
- <Reference Include="MonoDevelop.VBNetBinding, Version=2.1.0.0, Culture=neutral">
- <Package>monodevelop-core-addins</Package>
- <SpecificVersion>False</SpecificVersion>
- </Reference>
- <Reference Include="MonoDevelop.CSharpBinding, Version=2.1.0.0, Culture=neutral">
- <Package>monodevelop-core-addins</Package>
- <SpecificVersion>False</SpecificVersion>
- </Reference>
- <Reference Include="MonoDevelop.SourceEditor2, Version=2.1.0.0, Culture=neutral">
- <Package>monodevelop-core-addins</Package>
- <SpecificVersion>False</SpecificVersion>
- </Reference>
- <Reference Include="MonoDevelop.Debugger, Version=2.1.0.0, Culture=neutral">
- <Package>monodevelop-core-addins</Package>
- <SpecificVersion>False</SpecificVersion>
- </Reference>
- <Reference Include="System" />
- <Reference Include="System.Xml" />
- <Reference Include="MonoDevelop.Core, Version=2.1.0.0, Culture=neutral">
- <Package>monodevelop</Package>
- <SpecificVersion>False</SpecificVersion>
- </Reference>
- <Reference Include="MonoDevelop.AspNet, Version=2.1.0.0, Culture=neutral">
- <Package>monodevelop-core-addins</Package>
- <SpecificVersion>False</SpecificVersion>
- </Reference>
- <Reference Include="MonoDevelop.CBinding, Version=2.1.0.0, Culture=neutral">
- <Package>monodevelop-core-addins</Package>
- <SpecificVersion>False</SpecificVersion>
- </Reference>
- <Reference Include="MonoDevelop.Autotools, Version=2.1.0.0, Culture=neutral">
- <Package>monodevelop-core-addins</Package>
- <SpecificVersion>False</SpecificVersion>
- </Reference>
- <Reference Include="System.Core">
- </Reference>
- <Reference Include="MonoDevelop.Refactoring, Version=2.1.0.0, Culture=neutral">
- <Package>monodevelop-core-addins</Package>
- <SpecificVersion>False</SpecificVersion>
- </Reference>
- <Reference Include="MonoDevelop.Debugger.Soft, Version=2.2.0.0, Culture=neutral">
- <Package>monodevelop-core-addins</Package>
- <SpecificVersion>False</SpecificVersion>
- </Reference>
- <Reference Include="glib-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
- <Reference Include="gtkhtml-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f">
- </Reference>
- <Reference Include="Mono.Debugger.Soft, Version=0.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756">
- <Package>monodevelop-core-addins</Package>
- </Reference>
- <Reference Include="Mono.Addins, Version=0.5.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756" />
- <Reference Include="Mono.Addins.Setup, Version=0.5.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756" />
- <Reference Include="Mono.Debugging, Version=0.0.0.0, Culture=neutral, PublicKeyToken=5e9ce85b0923c84f">
- <Package>monodevelop</Package>
- </Reference>
- <Reference Include="Mono.Debugging.Soft, Version=0.0.0.0, Culture=neutral, PublicKeyToken=5e9ce85b0923c84f">
- <Package>monodevelop-core-addins</Package>
- </Reference>
- </ItemGroup>
- <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
- <ProjectExtensions>
- <MonoDevelop>
- <Properties>
- <Policies>
- <ChangeLogPolicy UpdateMode="None" inheritsSet="Mono">
- <MessageStyle LineAlign="0" />
- </ChangeLogPolicy>
- </Policies>
- <GtkDesignInfo gettextClass="Mono.Addins.AddinManager.CurrentLocalizer" />
- </Properties>
- </MonoDevelop>
- </ProjectExtensions>
- <ItemGroup>
- <Folder Include="MonoDevelop.AddinAuthoring.Gui\" />
- </ItemGroup>
-</Project>
diff --git a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.make b/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.make
deleted file mode 100644
index 524286318c..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.make
+++ /dev/null
@@ -1,210 +0,0 @@
-
-
-# Warning: This is an automatically generated file, do not edit!
-
-srcdir=.
-top_srcdir=.
-
-include $(top_srcdir)/Makefile.include
-include $(top_srcdir)/config.make
-
-ifeq ($(CONFIG),DEBUG)
-ASSEMBLY_COMPILER_COMMAND = dmcs
-ASSEMBLY_COMPILER_FLAGS = -noconfig -codepage:utf8 -warn:4 -optimize+ -debug -define:DEBUG
-ASSEMBLY = build/MonoDevelop.AddinAuthoring.dll
-ASSEMBLY_MDB = $(ASSEMBLY).mdb
-COMPILE_TARGET = library
-PROJECT_REFERENCES =
-BUILD_DIR = build
-
-
-endif
-
-ifeq ($(CONFIG),RELEASE)
-ASSEMBLY_COMPILER_COMMAND = dmcs
-ASSEMBLY_COMPILER_FLAGS = -noconfig -codepage:utf8 -warn:4 -optimize+
-ASSEMBLY = bin/Release/MonoDevelop.AddinAuthoring.dll
-ASSEMBLY_MDB =
-COMPILE_TARGET = library
-PROJECT_REFERENCES =
-BUILD_DIR = bin/Release
-
-
-endif
-
-
-LINUX_PKGCONFIG = \
- $(MONODEVELOP_ADDINAUTHORING_PC)
-
-
-
-MONODEVELOP_ADDINAUTHORING_PC = $(BUILD_DIR)/monodevelop.addinauthoring.pc
-
-
-FILES = \
- AssemblyInfo.cs \
- gtk-gui/generated.cs \
- gtk-gui/MonoDevelop.AddinAuthoring.AddinDescriptionWidget.cs \
- gtk-gui/MonoDevelop.AddinAuthoring.AddinFeatureWidget.cs \
- gtk-gui/MonoDevelop.AddinAuthoring.AddinOptionPanelWidget.cs \
- gtk-gui/MonoDevelop.AddinAuthoring.ExtensionEditorWidget.cs \
- gtk-gui/MonoDevelop.AddinAuthoring.ExtensionModelBrowserWidget.cs \
- gtk-gui/MonoDevelop.AddinAuthoring.ExtensionPointsEditorWidget.cs \
- gtk-gui/MonoDevelop.AddinAuthoring.ExtensionSelectorDialog.cs \
- gtk-gui/MonoDevelop.AddinAuthoring.Gui.AddinView.cs \
- gtk-gui/MonoDevelop.AddinAuthoring.Gui.ExtensionNodeView.cs \
- gtk-gui/MonoDevelop.AddinAuthoring.Gui.ExtensionPointView.cs \
- gtk-gui/MonoDevelop.AddinAuthoring.Gui.ExtensionView.cs \
- gtk-gui/MonoDevelop.AddinAuthoring.NewExtensionPointDialog.cs \
- gtk-gui/MonoDevelop.AddinAuthoring.NewRegistryDialog.cs \
- gtk-gui/MonoDevelop.AddinAuthoring.NodeSetEditorDialog.cs \
- gtk-gui/MonoDevelop.AddinAuthoring.NodeSetEditorWidget.cs \
- gtk-gui/MonoDevelop.AddinAuthoring.NodeTypeEditorDialog.cs \
- gtk-gui/MonoDevelop.AddinAuthoring.RegistrySelector.cs \
- gtk-gui/MonoDevelop.AddinAuthoring.SelectNodeSetDialog.cs \
- gtk-gui/MonoDevelop.AddinAuthoring.SelectRepositoryDialog.cs \
- gtk-gui/MonoDevelop.AddinAuthoring.TypeSelector.cs \
- MonoDevelop.AddinAuthoring.CodeCompletion/CodeCompletionExtension.cs \
- MonoDevelop.AddinAuthoring.Gui/AddinView.cs \
- MonoDevelop.AddinAuthoring.Gui/ExtensionNodeView.cs \
- MonoDevelop.AddinAuthoring.Gui/ExtensionPointView.cs \
- MonoDevelop.AddinAuthoring.Gui/ExtensionView.cs \
- MonoDevelop.AddinAuthoring.NodeBuilders/AddinCategoryGroup.cs \
- MonoDevelop.AddinAuthoring.NodeBuilders/AddinCategoryNodeBuilder.cs \
- MonoDevelop.AddinAuthoring.NodeBuilders/AddinFolderNodeBuilder.cs \
- MonoDevelop.AddinAuthoring.NodeBuilders/AddinGroup.cs \
- MonoDevelop.AddinAuthoring.NodeBuilders/AddinHeaderNodeBuilder.cs \
- MonoDevelop.AddinAuthoring.NodeBuilders/AddinNodeBuilder.cs \
- MonoDevelop.AddinAuthoring.NodeBuilders/AddinReferenceNodeBuilder.cs \
- MonoDevelop.AddinAuthoring.NodeBuilders/ExtensionModelTypeNodeBuilder.cs \
- MonoDevelop.AddinAuthoring.NodeBuilders/ExtensionNodeBuilder.cs \
- MonoDevelop.AddinAuthoring.NodeBuilders/ExtensionNodeNodeBuilder.cs \
- MonoDevelop.AddinAuthoring.NodeBuilders/ExtensionPointNodeBuilder.cs \
- MonoDevelop.AddinAuthoring.NodeBuilders/ProjectFolderNodeBuilderExtension.cs \
- MonoDevelop.AddinAuthoring.NodeBuilders/ProjectNodeBuilder.cs \
- MonoDevelop.AddinAuthoring.NodeBuilders/ReferenceNodeBuilder.cs \
- MonoDevelop.AddinAuthoring.NodeBuilders/ReferencesFolderNodeBuilder.cs \
- MonoDevelop.AddinAuthoring.NodeBuilders/RegistryNodeBuilder.cs \
- MonoDevelop.AddinAuthoring.NodeBuilders/SolutionNodeBuilder.cs \
- MonoDevelop.AddinAuthoring/AddinAuthoringService.cs \
- MonoDevelop.AddinAuthoring/AddinData.cs \
- MonoDevelop.AddinAuthoring/AddinDescriptionDisplayBinding.cs \
- MonoDevelop.AddinAuthoring/AddinDescriptionView.cs \
- MonoDevelop.AddinAuthoring/AddinDescriptionWidget.cs \
- MonoDevelop.AddinAuthoring/AddinFeatureWidget.cs \
- MonoDevelop.AddinAuthoring/AddinFileDescriptionTemplate.cs \
- MonoDevelop.AddinAuthoring/AddinFileSystem.cs \
- MonoDevelop.AddinAuthoring/AddinOptionPanelWidget.cs \
- MonoDevelop.AddinAuthoring/AddinProjectExtension.cs \
- MonoDevelop.AddinAuthoring/AddinProjectReference.cs \
- MonoDevelop.AddinAuthoring/CellRendererExtension.cs \
- MonoDevelop.AddinAuthoring/Commands.cs \
- MonoDevelop.AddinAuthoring/DomAssemblyReflector.cs \
- MonoDevelop.AddinAuthoring/ExtensionBaseView.cs \
- MonoDevelop.AddinAuthoring/ExtensionDomain.cs \
- MonoDevelop.AddinAuthoring/ExtensionEditorView.cs \
- MonoDevelop.AddinAuthoring/ExtensionEditorWidget.cs \
- MonoDevelop.AddinAuthoring/ExtensionModelBrowser.cs \
- MonoDevelop.AddinAuthoring/ExtensionModelBrowserWidget.cs \
- MonoDevelop.AddinAuthoring/ExtensionNodeInfo.cs \
- MonoDevelop.AddinAuthoring/ExtensionNodeTree.cs \
- MonoDevelop.AddinAuthoring/ExtensionPointsEditorView.cs \
- MonoDevelop.AddinAuthoring/ExtensionPointsEditorWidget.cs \
- MonoDevelop.AddinAuthoring/ExtensionSelectorDialog.cs \
- MonoDevelop.AddinAuthoring/NewExtensionPointDialog.cs \
- MonoDevelop.AddinAuthoring/NewRegistryDialog.cs \
- MonoDevelop.AddinAuthoring/NodeEditorWidget.cs \
- MonoDevelop.AddinAuthoring/NodeSetEditorDialog.cs \
- MonoDevelop.AddinAuthoring/NodeSetEditorWidget.cs \
- MonoDevelop.AddinAuthoring/NodeTypeEditorDialog.cs \
- MonoDevelop.AddinAuthoring/RegistryEventArgs.cs \
- MonoDevelop.AddinAuthoring/RegistryExtensionNode.cs \
- MonoDevelop.AddinAuthoring/RegistrySelector.cs \
- MonoDevelop.AddinAuthoring/SelectNodeSetDialog.cs \
- MonoDevelop.AddinAuthoring/SelectRepositoryDialog.cs \
- MonoDevelop.AddinAuthoring/SolutionAddinData.cs \
- MonoDevelop.AddinAuthoring/StartupHandler.cs \
- MonoDevelop.AddinAuthoring/TypeCellEditor.cs \
- MonoDevelop.AddinAuthoring/TypeSelector.cs \
- MonoDevelop.AddinAuthoring/Util.cs
-
-DATA_FILES =
-
-RESOURCES = \
- addin-reference.png \
- AddinTextStylePolicy.xml \
- AddinXmlPolicy.xml \
- extension.png \
- extension-node-set.png \
- extension-node-type.png \
- extension-point.png \
- flare.png \
- gtk-gui/gui.stetic \
- MonoDevelop.AddinAuthoring.addin.xml \
- templates/AddinProject.xpt.xml \
- templates/ExtensibleApplicationProject.xpt.xml \
- templates/ExtensibleLibraryProject.xpt.xml
-
-EXTRAS = \
- monodevelop.addinauthoring.pc.in
-
-REFERENCES = \
- -pkg:glib-sharp-2.0 \
- -pkg:gtkhtml-sharp-3.14 \
- -pkg:gtk-sharp-2.0 \
- -pkg:mono-addins \
- -pkg:mono-addins-setup \
- -pkg:monodevelop \
- -pkg:monodevelop-core-addins \
- System \
- System.Core \
- System.Xml
-
-DLL_REFERENCES =
-
-CLEANFILES += $(LINUX_PKGCONFIG)
-
-#Targets
-all-local: $(ASSEMBLY) $(LINUX_PKGCONFIG) $(top_srcdir)/config.make
-
-$(MONODEVELOP_ADDINAUTHORING_PC): monodevelop.addinauthoring.pc
- mkdir -p $(BUILD_DIR)
- cp '$<' '$@'
-
-
-
-monodevelop.addinauthoring.pc: monodevelop.addinauthoring.pc.in $(top_srcdir)/config.make
- sed -e "s,@prefix@,$(prefix)," -e "s,@PACKAGE@,$(PACKAGE)," < monodevelop.addinauthoring.pc.in > monodevelop.addinauthoring.pc
-
-
-$(build_xamlg_list): %.xaml.g.cs: %.xaml
- xamlg '$<'
-
-$(build_resx_resources) : %.resources: %.resx
- resgen2 '$<' '$@'
-
-LOCAL_PKGCONFIG=PKG_CONFIG_PATH=../../local-config:$$PKG_CONFIG_PATH
-
-$(ASSEMBLY) $(ASSEMBLY_MDB): $(build_sources) $(build_resources) $(build_datafiles) $(DLL_REFERENCES) $(PROJECT_REFERENCES) $(build_xamlg_list)
- make pre-all-local-hook prefix=$(prefix)
- mkdir -p $(dir $(ASSEMBLY))
- make $(CONFIG)_BeforeBuild
- $(LOCAL_PKGCONFIG) $(ASSEMBLY_COMPILER_COMMAND) $(ASSEMBLY_COMPILER_FLAGS) -out:$(ASSEMBLY) -target:$(COMPILE_TARGET) $(build_sources_embed) $(build_resources_embed) $(build_references_ref)
- make $(CONFIG)_AfterBuild
- make post-all-local-hook prefix=$(prefix)
-
-
-install-local: $(ASSEMBLY) $(ASSEMBLY_MDB) $(MONODEVELOP_ADDINAUTHORING_PC)
- make pre-install-local-hook prefix=$(prefix)
- mkdir -p $(DESTDIR)$(prefix)/lib/$(PACKAGE)
- cp $(ASSEMBLY) $(ASSEMBLY_MDB) $(DESTDIR)$(prefix)/lib/$(PACKAGE)
- mkdir -p $(DESTDIR)$(prefix)/lib/pkgconfig
- test -z '$(MONODEVELOP_ADDINAUTHORING_PC)' || cp $(MONODEVELOP_ADDINAUTHORING_PC) $(DESTDIR)$(prefix)/lib/pkgconfig
- make post-install-local-hook prefix=$(prefix)
-
-uninstall-local: $(ASSEMBLY) $(ASSEMBLY_MDB) $(MONODEVELOP_ADDINAUTHORING_PC)
- make pre-uninstall-local-hook prefix=$(prefix)
- rm -f $(DESTDIR)$(prefix)/lib/$(PACKAGE)/$(notdir $(ASSEMBLY))
- test -z '$(ASSEMBLY_MDB)' || rm -f $(DESTDIR)$(prefix)/lib/$(PACKAGE)/$(notdir $(ASSEMBLY_MDB))
- test -z '$(MONODEVELOP_ADDINAUTHORING_PC)' || rm -f $(DESTDIR)$(prefix)/lib/pkgconfig/$(notdir $(MONODEVELOP_ADDINAUTHORING_PC))
- make post-uninstall-local-hook prefix=$(prefix)
diff --git a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.sln b/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.sln
deleted file mode 100644
index d71b09901d..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.sln
+++ /dev/null
@@ -1,54 +0,0 @@
-
-Microsoft Visual Studio Solution File, Format Version 11.00
-# Visual Studio 2010
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MonoDevelop.AddinAuthoring", "MonoDevelop.AddinAuthoring.csproj", "{3614523B-7789-4475-9A99-D71727E8C627}"
-EndProject
-Global
- GlobalSection(SolutionConfigurationPlatforms) = preSolution
- Debug|Any CPU = Debug|Any CPU
- Release|Any CPU = Release|Any CPU
- EndGlobalSection
- GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {3614523B-7789-4475-9A99-D71727E8C627}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {3614523B-7789-4475-9A99-D71727E8C627}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {3614523B-7789-4475-9A99-D71727E8C627}.Release|Any CPU.ActiveCfg = Release|Any CPU
- EndGlobalSection
- GlobalSection(MonoDevelopProperties) = preSolution
- StartupItem = MonoDevelop.AddinAuthoring.csproj
- Policies = $0
- $0.ChangeLogPolicy = $1
- $1.UpdateMode = None
- $1.MessageStyle = $2
- $2.LineAlign = 0
- $1.inheritsSet = Mono
- name = MonoDevelop.AddinAuthoring
- EndGlobalSection
- GlobalSection(MonoDevelopProperties.Debug) = preSolution
- Entries = $0
- $0.Entry = $1
- $1.filename = MonoDevelop.AddinAuthoring.mdp
- $1.Entries = $2
- $2.Entry = $3
- $3.filename = MonoDevelop.AddinAuthoring.mdp
- $0.Entries = $4
- $4.Entry = $5
- $5.filename = MonoDevelop.AddinAuthoring.mdp
- Entries = $6
- $6.Entry = $7
- $7.filename = MonoDevelop.AddinAuthoring.mdp
- EndGlobalSection
- GlobalSection(MonoDevelopProperties.Release) = preSolution
- Entries = $0
- $0.Entry = $1
- $1.filename = MonoDevelop.AddinAuthoring.mdp
- $1.Entries = $2
- $2.Entry = $3
- $3.filename = MonoDevelop.AddinAuthoring.mdp
- $0.Entries = $4
- $4.Entry = $5
- $5.filename = MonoDevelop.AddinAuthoring.mdp
- Entries = $6
- $6.Entry = $7
- $7.filename = MonoDevelop.AddinAuthoring.mdp
- EndGlobalSection
-EndGlobal
diff --git a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/AddinAuthoringService.cs b/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/AddinAuthoringService.cs
deleted file mode 100644
index a6af559805..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/AddinAuthoringService.cs
+++ /dev/null
@@ -1,333 +0,0 @@
-// AddinAuthoringService.cs
-//
-// Author:
-// Lluis Sanchez Gual
-//
-// Copyright (c) 2007 Novell, Inc (http://www.novell.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-//
-//
-
-using System;
-using System.IO;
-using System.Collections.Generic;
-using System.Xml;
-using Mono.Addins;
-using Mono.Addins.Description;
-using Mono.Addins.Setup;
-using MonoDevelop.Core;
-using MonoDevelop.Core.ProgressMonitoring;
-using MonoDevelop.Ide;
-using MonoDevelop.Ide.Gui;
-using MonoDevelop.Ide.Gui.Content;
-using MonoDevelop.Projects;
-using MonoDevelop.Core.Serialization;
-using MonoDevelop.Projects.Formats.MSBuild;
-using MonoDevelop.Xml.Formatting;
-using MonoDevelop.Projects.Policies;
-
-namespace MonoDevelop.AddinAuthoring
-{
- public static class AddinAuthoringService
- {
- static AddinAuthoringServiceConfig config;
- static string configFile;
-
- public static event EventHandler<RegistryEventArgs> RegistryChanged;
-
- static AddinAuthoringService ()
- {
- if (IdeApp.IsInitialized) {
- //IdeApp.ProjectOperations.EndBuild += OnEndBuild;
- }
-
- configFile = Path.Combine (PropertyService.Locations.Config, "AddinAuthoring.config");
- if (File.Exists (configFile)) {
- try {
- XmlDataSerializer ser = new XmlDataSerializer (new DataContext ());
- StreamReader sr = new StreamReader (configFile);
- using (sr) {
- config = (AddinAuthoringServiceConfig) ser.Deserialize (new XmlTextReader (sr), typeof(AddinAuthoringServiceConfig));
- }
- }
- catch (Exception ex) {
- LoggingService.LogError ("Could not load add-in authoring service configuration", ex);
- }
- }
- if (config == null)
- config = new AddinAuthoringServiceConfig ();
- }
-
- static Document browserDocument;
-
- public static void ShowExtensionModelBrowser ()
- {
- if (browserDocument != null)
- browserDocument.Select ();
- else {
- ExtensionModelBrowser browser = new ExtensionModelBrowser ();
- browserDocument = IdeApp.Workbench.OpenDocument (browser, true);
- browserDocument.Closed += delegate {
- browserDocument = null;
- };
- }
- }
-
- static void SaveConfig ()
- {
- try {
- XmlDataSerializer ser = new XmlDataSerializer (new DataContext ());
- StreamWriter sw = new StreamWriter (configFile);
- using (sw) {
- ser.Serialize (new XmlTextWriter (sw), config, typeof(AddinAuthoringServiceConfig));
- }
- }
- catch (Exception ex) {
- LoggingService.LogError ("Could not save add-in authoring service configuration", ex);
- }
- }
-
- internal static void Init ()
- {
- // Do nothing. Will be initialized in the static constructor.
- }
-
- static void OnEndBuild (object s, BuildEventArgs args)
- {
- if (args.Success && IdeApp.Workspace.IsOpen) {
- Dictionary<string, AddinRegistry> regs = new Dictionary<string, AddinRegistry> ();
- foreach (DotNetProject p in IdeApp.Workspace.GetAllSolutionItems<DotNetProject> ()) {
- AddinData data = AddinData.GetAddinData (p);
- if (data != null) {
- if (!regs.ContainsKey (data.AddinRegistry.RegistryPath))
- regs [data.AddinRegistry.RegistryPath] = data.AddinRegistry;
- }
- }
- if (regs.Count > 0) {
- args.ProgressMonitor.BeginTask (AddinManager.CurrentLocalizer.GetString ("Updating add-in registry"), regs.Count);
- foreach (AddinRegistry reg in regs.Values) {
- reg.Update (new ProgressStatusMonitor (args.ProgressMonitor, 2));
- args.ProgressMonitor.Step (1);
- }
- args.ProgressMonitor.EndTask ();
- }
- }
- }
-
- public static string GetRegistryName (string regPath)
- {
- foreach (RegistryInfo node in GetRegistries ()) {
- if (Path.GetFullPath (node.RegistryPath) == Path.GetFullPath (regPath))
- return node.ApplicationName;
- }
- return regPath;
- }
-
- public static IEnumerable<RegistryInfo> GetRegistries ()
- {
- foreach (RegistryInfo node in AddinManager.GetExtensionNodes ("MonoDevelop/AddinAuthoring/AddinRegistries"))
- yield return node;
- foreach (RegistryInfo node in config.Registries)
- yield return node;
- foreach (Application app in SetupService.GetExtensibleApplications ())
- yield return new RegistryInfo (app);
- }
-
- public static void AddCustomRegistry (RegistryInfo reg)
- {
- config.Registries.Add (reg);
- SaveConfig ();
- }
-
- public static void RemoveCustomRegistry (RegistryInfo reg)
- {
- config.Registries.Remove (reg);
- SaveConfig ();
- }
-
- internal static string NormalizeUserPath (string path)
- {
- if (path.StartsWith ("~")) {
- string absRegistryPath = Environment.GetFolderPath (Environment.SpecialFolder.Personal);
- return Path.Combine (absRegistryPath, path.Substring (2));
- }
- else
- return path;
- }
-
- internal static string NormalizeRegistryPath (string path)
- {
- FilePath fp = Path.GetFullPath (path);
- foreach (Environment.SpecialFolder sf in Enum.GetValues (typeof(Environment.SpecialFolder))) {
- FilePath folderPath = Environment.GetFolderPath (sf);
- if (folderPath.IsNullOrEmpty)
- continue;
- if (fp.IsChildPathOf (folderPath))
- return "[" + sf.ToString () + "]" + Path.DirectorySeparatorChar + fp.ToRelative (folderPath);
- }
- return fp;
- }
-
- internal static void AddReferences (AddinData data, object[] addins)
- {
- AddinDescription desc = data.CachedAddinManifest;
- foreach (Addin ad in addins)
- AddReference (desc, ad);
-
- data.SaveAddinManifest ();
- data.NotifyChanged (false);
- }
-
- internal static void RemoveReferences (AddinData data, string[] fullIds)
- {
- AddinDescription desc = data.CachedAddinManifest;
- foreach (string ad in fullIds)
- RemoveReference (desc, ad);
-
- data.SaveAddinManifest ();
- data.NotifyChanged (false);
- }
-
- static void AddReference (AddinDescription desc, Addin addin)
- {
- foreach (AddinDependency adep in desc.MainModule.Dependencies) {
- if (adep.FullAddinId == addin.Id)
- return;
- }
- if (addin.Namespace == desc.Namespace)
- desc.MainModule.Dependencies.Add (new AddinDependency (addin.LocalId, addin.Version));
- else
- desc.MainModule.Dependencies.Add (new AddinDependency (addin.Id));
- }
-
- static void RemoveReference (AddinDescription desc, string addinId)
- {
- foreach (AddinDependency adep in desc.MainModule.Dependencies) {
- if (adep.FullAddinId == addinId) {
- desc.MainModule.Dependencies.Remove (adep);
- break;
- }
- }
- }
-
- public static AddinData GetAddinData (this DotNetProject p)
- {
- return AddinData.GetAddinData (p);
- }
-
- public static SolutionAddinData GetAddinData (this Solution sol)
- {
- SolutionAddinData data = sol.ExtendedProperties ["MonoDevelop.AddinAuthoring"] as SolutionAddinData;
- if (data == null) {
- data = new SolutionAddinData (sol);
- sol.ExtendedProperties ["MonoDevelop.AddinAuthoring"] = data;
- }
- return data;
- }
-
- public static AddinRegistry GetAddinRegistry (this Solution sol)
- {
- return sol.GetAddinData ().Registry;
- }
-
- public static bool HasAddinRoot (this Solution sol)
- {
- foreach (DotNetProject dnp in sol.GetAllSolutionItems<DotNetProject> ()) {
- AddinData data = AddinData.GetAddinData (dnp);
- if (data != null && data.IsRoot)
- return true;
- }
- return false;
- }
-
- public static string GetAddinApplication (this Solution sol)
- {
- foreach (DotNetProject dnp in sol.GetAllSolutionItems<DotNetProject> ()) {
- AddinData data = AddinData.GetAddinData (dnp);
- if (data != null && data.ApplicationName != null)
- return data.ApplicationName;
- }
- return null;
- }
-
- public static bool IsProjectIncludedByAddin (DotNetProject project, ProjectReference pref)
- {
- // Checks if the provided reference is implicitly included by an add-in reference in the project.
- foreach (ProjectReference p in project.References) {
- if (p.ReferenceType != ReferenceType.Project && p != pref)
- continue;
- DotNetProject rp = project.ParentSolution.FindProjectByName (p.Reference) as DotNetProject;
- if (rp != null && rp.GetAddinData () != null) {
- foreach (ProjectReference aref in rp.References) {
- if (aref.ReferenceType == ReferenceType.Project && aref.Reference == pref.Reference)
- return true;
- }
- }
- }
- return false;
- }
-
- public static void SaveFormatted (PolicyContainer policies, AddinDescription adesc)
- {
- File.WriteAllText (adesc.FileName, SaveFormattedXml (policies, adesc));
- }
-
- public static string SaveFormattedXml (PolicyContainer policies, AddinDescription adesc)
- {
- XmlDocument doc = adesc.SaveToXml ();
-
- TextStylePolicy textPolicy = policies.Get<TextStylePolicy> (DesktopService.GetMimeTypeInheritanceChain ("application/x-addin+xml"));
- XmlFormattingPolicy xmlPolicy = policies.Get<XmlFormattingPolicy> (DesktopService.GetMimeTypeInheritanceChain ("application/x-addin+xml"));
-
- return XmlFormatter.FormatXml (textPolicy, xmlPolicy, doc.OuterXml);
- }
-
- public static void NotifyRegistryChanged (AddinRegistry reg)
- {
- if (RegistryChanged != null)
- RegistryChanged (null, new RegistryEventArgs () { Registry = reg });
- }
- }
-
- class AddinAuthoringServiceConfig
- {
- List<RegistryInfo> registries = new List<RegistryInfo> ();
-
- [ItemProperty]
- public List<RegistryInfo> Registries {
- get { return registries; }
- }
- }
-
- [Extension]
- public class MonoAddinsMSBuildImportProvider: IMSBuildImportProvider
- {
- const string import = @"$(MSBuildExtensionsPath)\Mono.Addins.targets";
-
- public void UpdateImports (SolutionEntityItem item, List<string> imports)
- {
- DotNetProject project = item as DotNetProject;
- if (project != null && project.GetAddinData () != null)
- imports.Add (import);
- else
- imports.Remove (import);
- }
- }
-}
diff --git a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/AddinData.cs b/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/AddinData.cs
deleted file mode 100644
index d91912e0ce..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/AddinData.cs
+++ /dev/null
@@ -1,423 +0,0 @@
-//
-// AddinData.cs
-//
-// Author:
-// Lluis Sanchez Gual
-//
-// Copyright (C) 2007 Novell, Inc (http://www.novell.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-using System;
-using System.Linq;
-using System.Collections;
-using System.Collections.Generic;
-using System.IO;
-using MonoDevelop.Core;
-using MonoDevelop.Projects;
-using MonoDevelop.Core.Serialization;
-using Mono.Addins;
-using Mono.Addins.Description;
-using MonoDevelop.Xml.Formatting;
-using MonoDevelop.Projects.Dom.Parser;
-using MonoDevelop.Projects.Dom;
-
-
-namespace MonoDevelop.AddinAuthoring
-{
- public class AddinData: IDisposable
- {
- DotNetProject project;
- AddinRegistry registry;
- string lastOutputPath;
- bool isRoot;
- bool updating;
-
- AddinDescription manifest;
- AddinDescription compiledManifest;
- FileSystemWatcher watcher;
- DateTime lastNotifiedTimestamp;
- object changeLock = new object ();
-
- public event EventHandler Changed;
- internal static event AddinSupportEventHandler AddinSupportChanged;
-
- internal AddinData ()
- {
- AddinAuthoringService.Init ();
- }
-
- internal AddinData (DotNetProject project)
- {
- Bind (project);
- }
-
- internal void Bind (DotNetProject project)
- {
- this.project = project;
- project.ExtendedProperties ["MonoDevelop.AddinAuthoring"] = this;
-
- watcher = new FileSystemWatcher (Path.GetDirectoryName (AddinManifestFileName));
- watcher.Filter = Path.GetFileName (AddinManifestFileName);
- watcher.Changed += OnDescFileChanged;
- watcher.EnableRaisingEvents = true;
- lastOutputPath = Path.GetDirectoryName (Project.GetOutputFileName (ConfigurationSelector.Default));
-
- if (!string.IsNullOrEmpty (ApplicationName)) {
- project.ParentSolution.GetAddinData ().ApplicationName = ApplicationName;
- }
-
- if (project.ParentSolution != null) {
- SyncRoot ();
- SyncReferences ();
- }
-
- project.ReferenceAddedToProject += ProjectReferenceAddedToProject;
- project.ReferenceRemovedFromProject += ProjectReferenceRemovedFromProject;
- }
-
- void ProjectReferenceRemovedFromProject (object sender, ProjectReferenceEventArgs e)
- {
- }
-
- void ProjectReferenceAddedToProject (object sender, ProjectReferenceEventArgs e)
- {
- if (updating)
- return;
- if (e.ProjectReference.ReferenceType == ReferenceType.Project) {
- DotNetProject rp = project.ParentSolution.FindProjectByName (e.ProjectReference.Reference) as DotNetProject;
- if (rp != null) {
- AddinData adata = AddinData.GetAddinData (rp);
- if (adata != null) {
- CachedAddinManifest.MainModule.Dependencies.Add (new AddinDependency (adata.CachedAddinManifest.AddinId));
- CachedAddinManifest.Save ();
- NotifyChanged (false);
- }
- }
- }
- }
-
- void OnDescFileChanged (object s, EventArgs a)
- {
- Gtk.Application.Invoke (delegate {
- lock (changeLock) {
- DateTime tim = File.GetLastWriteTime (AddinManifestFileName);
- if (tim != lastNotifiedTimestamp) {
- lastNotifiedTimestamp = tim;
- NotifyChanged (true);
- }
- }
- });
- }
-
- public void Dispose ()
- {
- if (watcher != null)
- watcher.Dispose ();
- project.ReferenceAddedToProject -= ProjectReferenceAddedToProject;
- project.ReferenceRemovedFromProject -= ProjectReferenceRemovedFromProject;
- }
-
-
- public static AddinData GetAddinData (DotNetProject project)
- {
- AddinData data = project.ExtendedProperties ["MonoDevelop.AddinAuthoring"] as AddinData;
- if (data != null)
- return data;
-
- if (data == null) {
- foreach (ProjectFile pfile in project.Files) {
- if (pfile.Name.EndsWith (".addin.xml") || pfile.Name.EndsWith (".addin"))
- return new AddinData (project);
- }
- ProjectDom dom = ProjectDomService.GetProjectDom (project);
- if (dom != null && dom.Attributes.Any (
- a => a.AttributeType.FullName == "Mono.Addins.AddinAttribute" || a.AttributeType.FullName == "Mono.Addins.AddinRootAttribute"
- )) {
- return new AddinData (project);
- }
- }
- return null;
- }
-
- public static AddinData EnableAddinAuthoringSupport (DotNetProject project)
- {
- AddinData data = GetAddinData (project);
- if (data != null)
- return data;
-
- data = new AddinData (project);
- project.ExtendedProperties ["MonoDevelop.AddinAuthoring"] = data;
- if (AddinSupportChanged != null)
- AddinSupportChanged (project, true);
- return data;
- }
-
- public static void DisableAddinAuthoringSupport (DotNetProject project)
- {
- AddinData data = GetAddinData (project);
- project.ExtendedProperties.Remove ("MonoDevelop.AddinAuthoring");
- if (data != null && AddinSupportChanged != null)
- AddinSupportChanged (project, false);
- }
-
- public DotNetProject Project {
- get { return project; }
- }
-
- public bool IsRoot {
- get { return isRoot; }
- }
-
- public AddinDescription CachedAddinManifest {
- get {
- if (manifest == null)
- manifest = LoadAddinManifest ();
- return manifest;
- }
- }
-
- public void SaveAddinManifest ()
- {
- lock (changeLock) {
- if (manifest != null) {
- AddinAuthoringService.SaveFormatted (project.Policies, manifest);
- lastNotifiedTimestamp = File.GetLastWriteTime (manifest.FileName);
- }
- }
- }
-
- public AddinDescription LoadAddinManifest ()
- {
- AddinDescription d = AddinRegistry.ReadAddinManifestFile (AddinManifestFileName);
- return d;
- }
-
- public string AddinManifestFileName {
- get {
- foreach (ProjectFile pf in project.Files) {
- if (pf.FilePath.ToString ().EndsWith (".addin") || pf.FilePath.ToString ().EndsWith (".addin.xml"))
- return pf.FilePath;
- }
-
- AddinDescription desc = new AddinDescription ();
- string file = Path.Combine (project.BaseDirectory, "manifest.addin.xml");
- desc.Save (file);
- project.AddFile (file, BuildAction.EmbeddedResource);
- return file;
- }
- }
-
- public AddinDescription CompiledAddinManifest {
- get {
- if (compiledManifest == null) {
- if (File.Exists (project.GetOutputFileName (ConfigurationSelector.Default))) {
- compiledManifest = registry.GetAddinDescription (new ConsoleProgressStatus (false), project.GetOutputFileName (ConfigurationSelector.Default));
- }
- }
- return compiledManifest;
- }
- }
-
- public string ApplicationName {
- get { return project.ExtendedProperties ["ExtensionDomain"] as string; }
- set {
- if (string.IsNullOrEmpty (value))
- project.ExtendedProperties.Remove ("ExtensionDomain");
- else
- project.ExtendedProperties ["ExtensionDomain"] = value;
- project.ParentSolution.GetAddinData ().ApplicationName = value;
- NotifyChanged (true);
- }
- }
-
- AddinRegistry tempRegistry;
-
- public AddinRegistry AddinRegistry {
- get {
- if (registry != null)
- return registry;
- if (project.ParentSolution == null) {
- if (tempRegistry == null)
- tempRegistry = new AddinRegistry (".");
- return tempRegistry;
- }
- return SetRegistry ();
- }
- }
-
- AddinRegistry SetRegistry ()
- {
- if (Project.ParentSolution != null)
- return Project.ParentSolution.GetAddinRegistry ();
- else
- throw new InvalidOperationException ();
- }
-
- internal void CheckOutputPath ()
- {
- if (CachedAddinManifest.IsRoot) {
- string outDir = Path.GetDirectoryName (Project.GetOutputFileName (ConfigurationSelector.Default));
- if (lastOutputPath != outDir) {
- registry = null;
- NotifyChanged (true);
- }
- }
- }
-
- public void NotifyChanged ()
- {
- NotifyChanged (true);
- }
-
- public void NotifyChanged (bool externalChange)
- {
- if (externalChange) {
- manifest = null;
- SyncRoot ();
- SyncReferences ();
- }
-
- if (Changed != null)
- Changed (this, EventArgs.Empty);
- }
-
- void SyncRoot ()
- {
- if (project.ParentSolution == null)
- return;
- if (CachedAddinManifest.IsRoot != isRoot) {
- isRoot = CachedAddinManifest.IsRoot;
- registry = null;
- manifest = null;
- }
- }
-
- void SyncReferences ()
- {
- bool changed = false;
- Hashtable addinRefs = new Hashtable ();
- foreach (AddinDependency adep in CachedAddinManifest.MainModule.Dependencies) {
- bool found = false;
- foreach (ProjectReference pr in Project.References) {
- if ((pr is AddinProjectReference) && ((AddinProjectReference)pr).AddinId == adep.FullAddinId) {
- found = true;
- break;
- } else if (pr.ReferenceType == ReferenceType.Project) {
- DotNetProject rp = Project.ParentSolution.FindProjectByName (pr.Reference) as DotNetProject;
- if (rp != null) {
- AddinData ad = AddinData.GetAddinData (rp);
- if (ad != null && ad.CachedAddinManifest.AddinId == adep.FullAddinId) {
- found = true;
- break;
- }
- }
- }
- }
- if (!found) {
- try {
- updating = true;
- DotNetProject p = FindProjectImplementingAddin (adep.FullAddinId);
- if (p != null)
- Project.References.Add (new ProjectReference (p) { LocalCopy = false });
- else
- Project.References.Add (new AddinProjectReference (adep.FullAddinId));
- } finally {
- updating = false;
- }
- changed = true;
- }
- addinRefs [adep.FullAddinId] = adep;
- }
-
- ArrayList toDelete = new ArrayList ();
- foreach (ProjectReference pr in Project.References) {
- if ((pr is AddinProjectReference) && !addinRefs.ContainsKey (((AddinProjectReference)pr).AddinId))
- toDelete.Add (pr);
- }
- foreach (ProjectReference pr in toDelete)
- Project.References.Remove (pr);
-
- if (changed || toDelete.Count > 0)
- Project.Save (new MonoDevelop.Core.ProgressMonitoring.NullProgressMonitor ());
- }
-
- DotNetProject FindProjectImplementingAddin (string fullId)
- {
- if (Project.ParentSolution == null)
- return null;
- foreach (DotNetProject p in Project.ParentSolution.GetAllSolutionItems<DotNetProject> ()) {
- AddinData adata = AddinData.GetAddinData (p);
- if (adata != null && adata.CachedAddinManifest.AddinId == fullId)
- return p;
- }
- return null;
- }
-
- internal static ExtensionNodeDescriptionCollection GetExtensionNodes (AddinRegistry registry, AddinDescription desc, string path)
- {
- ArrayList extensions = new ArrayList ();
- CollectExtensions (desc, path, extensions);
- foreach (Dependency dep in desc.MainModule.Dependencies) {
- AddinDependency adep = dep as AddinDependency;
- if (adep == null) continue;
- Addin addin = registry.GetAddin (adep.FullAddinId);
- if (addin != null)
- CollectExtensions (addin.Description, path, extensions);
- }
-
- // Sort the extensions, to make sure they are added in the correct order
- // That is, deepest children last.
- extensions.Sort (new ExtensionComparer ());
-
- ExtensionNodeDescriptionCollection nodes = new ExtensionNodeDescriptionCollection ();
-
- // Add the nodes
- foreach (Extension ext in extensions) {
- string subp = path.Substring (ext.Path.Length);
- ExtensionNodeDescriptionCollection col = ext.ExtensionNodes;
- foreach (string p in subp.Split ('/')) {
- if (p.Length == 0) continue;
- ExtensionNodeDescription node = col [p];
- if (node == null) {
- col = null;
- break;
- }
- else
- col = node.ChildNodes;
- }
- if (col != null)
- nodes.AddRange (col);
- }
- return nodes;
- }
-
- static void CollectExtensions (AddinDescription desc, string path, ArrayList extensions)
- {
- foreach (Extension ext in desc.MainModule.Extensions) {
- if (ext.Path == path || path.StartsWith (ext.Path + "/"))
- extensions.Add (ext);
- }
- }
- }
-
- internal delegate void AddinSupportEventHandler (Project project, bool enabled);
-}
diff --git a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/AddinDescriptionDisplayBinding.cs b/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/AddinDescriptionDisplayBinding.cs
deleted file mode 100644
index 5ae4e7fa4d..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/AddinDescriptionDisplayBinding.cs
+++ /dev/null
@@ -1,77 +0,0 @@
-// AddinDescriptionDisplayBinding.cs
-//
-// Author:
-// Lluis Sanchez Gual <lluis@novell.com>
-//
-// Copyright (c) 2007 Novell, Inc (http://www.novell.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-//
-//
-
-using System;
-using MonoDevelop.Ide;
-using MonoDevelop.Ide.Gui;
-using MonoDevelop.Ide.Codons;
-using MonoDevelop.Projects;
-using Mono.Addins;
-
-namespace MonoDevelop.AddinAuthoring
-{
- public class AddinDescriptionDisplayBinding: IDisplayBinding
- {
- public string Name {
- get {
- return AddinManager.CurrentLocalizer.GetString ("Add-in description editor");
- }
- }
-
- public bool CanCreateContentForUri (string fileName)
- {
- if (fileName.EndsWith (".addin.xml") || fileName.EndsWith (".xml")) {
- if (IdeApp.Workspace.IsOpen) {
- DotNetProject p = IdeApp.Workspace.GetProjectContainingFile (fileName) as DotNetProject;
- return p != null && AddinData.GetAddinData (p) != null;
- }
- }
- return false;
- }
-
- public bool CanCreateContentForMimeType (string mimetype)
- {
- return false;
- }
-
- public IViewContent CreateContentForUri (string fileName)
- {
- DotNetProject p = IdeApp.Workspace.GetProjectContainingFile (fileName) as DotNetProject;
- AddinData data = AddinData.GetAddinData (p);
- return new AddinDescriptionView (data, fileName);
- }
-
- public IViewContent CreateContentForMimeType (string mimeType, System.IO.Stream content)
- {
- throw new NotImplementedException();
- }
-
- public bool CanUseAsDefault {
- get { return true; }
- }
- }
-}
diff --git a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/AddinDescriptionView.cs b/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/AddinDescriptionView.cs
deleted file mode 100644
index 525053aa33..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/AddinDescriptionView.cs
+++ /dev/null
@@ -1,129 +0,0 @@
-
-using System;
-using System.IO;
-using MonoDevelop.Core;
-using MonoDevelop.Ide.Gui.Content;
-using MonoDevelop.Ide.Gui;
-using MonoDevelop.Ide;
-using Mono.Addins;
-using Mono.Addins.Description;
-
-namespace MonoDevelop.AddinAuthoring
-{
- public class AddinDescriptionView: AbstractViewContent
- {
- AddinDescriptionWidget descWidget;
- AddinData data;
- AddinDescription adesc;
- DateTime descTimestamp;
- bool inInternalUpdate;
- string manifestFile;
-
- public AddinDescriptionView (AddinData data, string manifestFile)
- {
- this.data = data;
- this.manifestFile = manifestFile;
- ContentName = manifestFile;
- Project = data.Project;
-
- descWidget = new AddinDescriptionWidget ();
- descWidget.Changed += delegate {
- IsDirty = true;
- };
-
- data.Changed += OnDataChanged;
-
- Reload ();
- }
-
- public override void Dispose ()
- {
- data.Changed -= OnDataChanged;
- base.Dispose ();
- }
-
-
- public override string StockIconId {
- get { return "md-addin"; }
- }
-
-
- public override void Load (string fileName)
- {
- }
-
- public override Gtk.Widget Control {
- get { return descWidget; }
- }
-
- public override bool IsFile {
- get { return false; }
- }
-
- public AddinData Data {
- get {
- return data;
- }
- }
-
- public AddinDescription AddinDescription {
- get {
- return adesc;
- }
- }
-
- public override void Save ()
- {
- descWidget.Save ();
- AddinAuthoringService.SaveFormatted (data.Project.Policies, adesc);
- IsDirty = false;
- data.NotifyChanged (true);
- }
-
- internal void BeginInternalUpdate ()
- {
- inInternalUpdate = true;
- }
-
- internal void EndInternalUpdate ()
- {
- inInternalUpdate = false;
- descTimestamp = File.GetLastWriteTime (manifestFile);
- }
-
- public void Update ()
- {
- descWidget.Update ();
- }
-
- public void Reload ()
- {
- adesc = data.AddinRegistry.ReadAddinManifestFile (manifestFile);
- descWidget.Fill (adesc, data);
- IsDirty = false;
- descTimestamp = File.GetLastWriteTime (manifestFile);
- }
-
- void OnDataChanged (object s, EventArgs a)
- {
- if (inInternalUpdate || descTimestamp == File.GetLastWriteTime (manifestFile))
- return;
- if (IsDirty) {
- string q = AddinManager.CurrentLocalizer.GetString ("The add-in manifest for project '{0}' has been modified. Do you want to reload it? (unsaved changes will be lost)", data.Project.Name);
- if (!MessageService.Confirm (q, AlertButton.Reload))
- return;
- }
- Reload ();
- }
-
- public void ShowExtensionPoints ()
- {
- descWidget.ShowExtensionPoints ();
- }
-
- public void ShowExtensions ()
- {
- descWidget.ShowExtensions ();
- }
- }
-}
diff --git a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/AddinDescriptionWidget.cs b/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/AddinDescriptionWidget.cs
deleted file mode 100644
index 7b45084c31..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/AddinDescriptionWidget.cs
+++ /dev/null
@@ -1,134 +0,0 @@
-
-using System;
-using MonoDevelop.Core;
-using MonoDevelop.Components;
-using MonoDevelop.Projects;
-using Mono.Addins;
-using Mono.Addins.Description;
-using Gtk;
-
-namespace MonoDevelop.AddinAuthoring
-{
- [System.ComponentModel.Category("widget")]
- [System.ComponentModel.ToolboxItem(true)]
- public partial class AddinDescriptionWidget : Gtk.Bin
- {
- AddinDescription adesc;
- string defaultId;
- string defaultName;
- NotebookButtonBar butbar;
-
- public event EventHandler Changed;
-
- public AddinDescriptionWidget ()
- {
- this.Build();
-
- butbar = new NotebookButtonBar ();
- butbar.Notebook = notebook;
- mainBox.PackStart (butbar, false, false, 0);
- butbar.Show ();
-
- butbar.SetButton (0, AddinManager.CurrentLocalizer.GetString ("Header"), "gtk-dialog-info");
- butbar.SetButton (1, AddinManager.CurrentLocalizer.GetString ("Extension Points"), "md-extension-point");
- butbar.SetButton (2, AddinManager.CurrentLocalizer.GetString ("Extensions"), "md-extension-node");
-
- extensionEditor.BorderWidth = 12;
- extensionEditor.Changed += delegate {
- NotifyChanged ();
- };
-
- extensionPointsEditor.BorderWidth = 12;
- extensionPointsEditor.Changed += delegate {
- NotifyChanged ();
- };
-
- notebook.Page = 0;
- }
-
- public void Fill (AddinDescription desc, AddinData data)
- {
- adesc = desc;
- comboNs.Entry.Text = desc.Namespace;
- entryVersion.Text = desc.Version;
- entryCompatVersion.Text = desc.CompatVersion;
- textviewDesc.Buffer.Text = desc.Description;
- entryAuthor.Text = desc.Author;
- entryLicense.Text = desc.Copyright;
- entryUrl.Text = desc.Url;
- checkIsRoot.Active = desc.IsRoot;
- notebook.ShowTabs = false;
- notebook.ShowBorder = false;
-
- if (desc.LocalId.Length == 0) {
- defaultId = System.IO.Path.GetFileNameWithoutExtension (data.Project.GetOutputFileName (ConfigurationSelector.Default));
- entryIdentifier.Text = defaultId;
- }
- else
- entryIdentifier.Text = desc.LocalId;
-
- if (desc.Name.Length == 0) {
- defaultName = entryIdentifier.Text;
- entryName.Text = defaultName;
- }
- else
- entryName.Text = desc.Name;
-
- extensionEditor.SetData (adesc, data);
- extensionPointsEditor.SetData (adesc, data);
- }
-
- public void Save ()
- {
- adesc.LocalId = entryIdentifier.Text;
- adesc.Namespace = comboNs.Entry.Text;
- adesc.Version = entryVersion.Text;
- adesc.CompatVersion = entryCompatVersion.Text;
- adesc.Name = entryName.Text;
- adesc.Description = textviewDesc.Buffer.Text;
- adesc.Author = entryAuthor.Text;
- adesc.Copyright = entryLicense.Text;
- adesc.Url = entryUrl.Text;
- }
-
- public void Update ()
- {
- extensionEditor.Fill ();
- }
-
- public void ShowExtensionPoints ()
- {
- butbar.ShowPage (1);
- }
-
- public void ShowExtensions ()
- {
- butbar.ShowPage (2);
- }
-
- protected virtual void OnEntryChanged(object sender, System.EventArgs e)
- {
- NotifyChanged ();
- }
-
- void NotifyChanged ()
- {
- if (Changed != null)
- Changed (this, EventArgs.Empty);
- }
-
-
- protected virtual void OnEntryIdentifierChanged(object sender, System.EventArgs e)
- {
- if (entryName.Text == defaultName) {
- entryName.Text = defaultName = entryIdentifier.Text;
- }
- }
-
- protected void OnCheckIsRootClicked (object sender, System.EventArgs e)
- {
- adesc.IsRoot = checkIsRoot.Active;
- NotifyChanged ();
- }
- }
-}
diff --git a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/AddinFeatureWidget.cs b/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/AddinFeatureWidget.cs
deleted file mode 100644
index 6466b5c2c6..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/AddinFeatureWidget.cs
+++ /dev/null
@@ -1,269 +0,0 @@
-
-using System;
-using System.Collections;
-using System.Text;
-using System.Collections.Specialized;
-using MonoDevelop.Ide.Templates;
-using MonoDevelop.Core;
-using Mono.Addins;
-using Mono.Addins.Description;
-using MonoDevelop.Projects;
-using MonoDevelop.Components;
-using Gtk;
-
-namespace MonoDevelop.AddinAuthoring
-{
- [System.ComponentModel.Category("widget")]
- [System.ComponentModel.ToolboxItem(true)]
- public partial class AddinFeatureWidget : Gtk.Bin
- {
- bool loading;
- bool idSet;
- bool nsSet;
- bool isRoot;
-
- public AddinFeatureWidget ()
- {
- this.Build();
- }
-
- public void Load (Solution solution, DotNetProject project, bool forOptionsPanel)
- {
- AddinData data = AddinData.GetAddinData (project);
- if (data != null && !forOptionsPanel) {
- boxLibraryType.Visible = false;
- AddinDescription desc = data.CachedAddinManifest;
- if (project.CompileTarget != CompileTarget.Library || desc.IsRoot || solution.HasAddinRoot ()) {
- boxRepo.Visible = false;
- hseparator.Visible = false;
- isRoot = true;
- }
- else {
- if (solution.HasAddinRoot ())
- boxRepo.Visible = false;
- else if (solution.GetAddinData() != null) {
- string app = solution.GetAddinData().ApplicationName;
- if (app != null) {
- regSelector.ApplicationName = app;
- regSelector.Sensitive = false;
- }
- }
- isRoot = false;
- }
- entryName.Text = project.Name;
- entryId.Text = project.Name;
- } else {
- if (project.CompileTarget != CompileTarget.Library) {
- // Editing options of an exe
- labelExtensibleApp.Visible = data == null;
- boxRepo.Visible = false;
- boxLibraryType.Visible = false;
- hseparator.Visible = false;
- isRoot = true;
- }
- else {
- // Editing options of an add-in or extensible library
- labelExtensibleApp.Visible = false;
- if (data != null && data.CachedAddinManifest != null && data.CachedAddinManifest.IsRoot)
- radiobuttonLibrary.Active = true;
- else
- radiobuttonAddin.Active = true;
- isRoot = radiobuttonLibrary.Active;
-
- // There is a root in the solution. The target registry can't be selected.
- if (solution.HasAddinRoot ())
- boxRepo.Visible = false;
- }
- if (data != null) {
- regSelector.ApplicationName = data.ApplicationName;
- ((Gtk.Container)tableNames.Parent).Remove (tableNames);
- ((Gtk.Container)labelAddinInfo.Parent).Remove (labelAddinInfo);
- } else {
- entryName.Text = project.Name;
- entryId.Text = project.Name;
- }
- }
- if (project.CompileTarget == CompileTarget.Library) {
- if (radiobuttonLibrary.Active)
- labelAddinInfo.Text = AddinManager.CurrentLocalizer.GetString ("Library information:");
- else
- labelAddinInfo.Text = AddinManager.CurrentLocalizer.GetString ("Add-in information:");
- } else {
- labelAddinInfo.Text = AddinManager.CurrentLocalizer.GetString ("Application information:");
- }
-
- UpdateControls ();
- }
-
- void UpdateControls ()
- {
- boxRepo.Sensitive = !isRoot;
- }
-
- public string ApplicationName {
- get { return isRoot ? null : regSelector.ApplicationName; }
- }
-
- public bool HasRegistryInfo {
- get { return boxRepo.Visible && boxRepo.Sensitive; }
- }
-
- public bool IsRoot {
- get { return isRoot; }
- }
-
- public string AddinName {
- get { return entryName.Text; }
- }
-
- public string AddinId {
- get { return entryId.Text; }
- }
-
- public string AddinNamespace {
- get { return comboNs.Entry.Text; }
- }
-
- public string Validate ()
- {
- if (!isRoot && ApplicationName == null && boxRepo.Visible)
- return AddinManager.CurrentLocalizer.GetString ("Please select the application to be extended by this add-in.");
- else
- return null;
- }
-
- protected virtual void OnEntryIdChanged (object sender, System.EventArgs e)
- {
- if (!loading)
- idSet = true;
- }
-
- protected virtual void OnEntryNameChanged (object sender, System.EventArgs e)
- {
- if (!idSet) {
- loading = true;
- entryId.Text = GenerateId (entryName.Text);
- loading = false;
- }
- }
-
- string GenerateId (string id)
- {
- StringBuilder sb = new StringBuilder ();
- bool up = true;
- foreach (char c in id) {
- if (c == ' ' || (!char.IsLetterOrDigit (c) && c != '_')) {
- up = true;
- continue;
- }
- if (up) {
- sb.Append (char.ToUpper (c));
- up = false;
- }
- else
- sb.Append (c);
- }
- return sb.ToString ();
- }
-
- protected virtual void OnRegSelectorChanged (object sender, System.EventArgs e)
- {
- Mono.Addins.Setup.Application app = Mono.Addins.Setup.SetupService.GetExtensibleApplication (regSelector.ApplicationName);
- if (app == null)
- return;
-
- Hashtable names = new Hashtable ();
- foreach (Addin ad in app.Registry.GetAddinRoots ()) {
- if (ad.Namespace.Length > 0)
- names [ad.Namespace] = ad.Namespace;
- }
- foreach (Addin ad in app.Registry.GetAddins ()) {
- if (ad.Namespace.Length > 0)
- names [ad.Namespace] = ad.Namespace;
- }
-
- loading = true;
- try {
- string uk = null;
- ((Gtk.ListStore)comboNs.Model).Clear ();
- foreach (string s in names.Keys) {
- comboNs.AppendText (s);
- uk = s;
- }
- if (names.Count == 1 && !nsSet)
- comboNs.Entry.Text = uk;
- } finally {
- loading = false;
- }
- }
-
- protected virtual void OnComboNsChanged (object sender, System.EventArgs e)
- {
- if (!loading)
- nsSet = true;
- }
-
- protected virtual void OnRadiobuttonLibraryToggled (object sender, System.EventArgs e)
- {
- isRoot = radiobuttonLibrary.Active;
- UpdateControls ();
- }
- }
-
- public class AddinFeature: ISolutionItemFeature
- {
- public string Title {
- get { return AddinManager.CurrentLocalizer.GetString ("Extensibility"); }
- }
-
- public string Description {
- get { return AddinManager.CurrentLocalizer.GetString ("Support of extensibility with add-ins"); }
- }
-
- public FeatureSupportLevel GetSupportLevel (SolutionFolder parentCombine, SolutionItem entry)
- {
- if (entry is DotNetProject) {
- if (AddinData.GetAddinData ((DotNetProject)entry) != null)
- return FeatureSupportLevel.Enabled;
- else
- return FeatureSupportLevel.SupportedByDefault;
- }
- else
- return FeatureSupportLevel.NotSupported;
- }
-
- public Widget CreateFeatureEditor (SolutionFolder parentFolder, SolutionItem entry)
- {
- AddinFeatureWidget w = new AddinFeatureWidget ();
- w.Load (parentFolder.ParentSolution, (DotNetProject)entry, false);
- return w;
- }
-
- public string Validate (SolutionFolder parentCombine, SolutionItem entry, Widget ed)
- {
- AddinFeatureWidget editor = (AddinFeatureWidget) ed;
- return editor.Validate ();
- }
-
- public void ApplyFeature (SolutionFolder parentCombine, SolutionItem entry, Widget ed)
- {
- AddinFeatureWidget editor = (AddinFeatureWidget) ed;
- AddinData data = AddinData.EnableAddinAuthoringSupport ((DotNetProject) entry);
-
- DotNetProject project = (DotNetProject) entry;
- if (editor.HasRegistryInfo)
- project.GetAddinData ().ApplicationName = editor.ApplicationName;
-
- AddinDescription desc = data.LoadAddinManifest ();
- if (editor.AddinId.Length > 0)
- desc.LocalId = editor.AddinId;
- if (editor.AddinName.Length > 0)
- desc.Name = editor.AddinName;
- desc.Namespace = editor.AddinNamespace;
- desc.IsRoot = project.CompileTarget != CompileTarget.Library || editor.IsRoot;
- desc.Version = "1.0";
- desc.Save ();
- data.NotifyChanged ();
- }
- }
-}
diff --git a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/AddinFileDescriptionTemplate.cs b/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/AddinFileDescriptionTemplate.cs
deleted file mode 100644
index edf724fcba..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/AddinFileDescriptionTemplate.cs
+++ /dev/null
@@ -1,85 +0,0 @@
-//
-// WidgetFileDescriptionTemplate.cs
-//
-// Author:
-// Lluis Sanchez Gual
-//
-// Copyright (C) 2006 Novell, Inc (http://www.novell.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-
-using System;
-using System.Xml;
-using System.IO;
-
-using MonoDevelop.Core;
-using MonoDevelop.Projects;
-using MonoDevelop.Projects.Dom.Parser;
-using MonoDevelop.Ide.Gui;
-using MonoDevelop.Ide.Templates;
-
-namespace MonoDevelop.AddinAuthoring
-{
- public class AddinFileDescriptionTemplate: FileDescriptionTemplate
- {
- XmlElement addinTemplate;
-
- public override string Name {
- get { return "Addin"; }
- }
-
- public override void Load (XmlElement filenode, FilePath path)
- {
- addinTemplate = filenode;
- }
-
- public override bool AddToProject (SolutionItem parent, Project project, string language, string directory, string name)
- {
- // Replace template variables
-
- string cname = Path.GetFileNameWithoutExtension (name);
- string[,] tags = {
- {"Name", cname},
- };
-
- string content = addinTemplate.OuterXml;
- content = StringParserService.Parse (content, tags);
-
- // Create the manifest
-
- XmlDocument doc = new XmlDocument ();
- doc.LoadXml (content);
-
- string file = Path.Combine (directory, "manifest.addin.xml");
- doc.Save (file);
-
- project.AddFile (file, BuildAction.EmbeddedResource);
-
- AddinData.EnableAddinAuthoringSupport ((DotNetProject)project);
- return true;
- }
-
- public override void Show ()
- {
- }
- }
-}
diff --git a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/AddinFileSystem.cs b/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/AddinFileSystem.cs
deleted file mode 100644
index 97176a5ac3..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/AddinFileSystem.cs
+++ /dev/null
@@ -1,268 +0,0 @@
-//
-// AddinFileSystem.cs
-//
-// Author:
-// Lluis Sanchez Gual <lluis@novell.com>
-//
-// Copyright (c) 2011 Novell, Inc (http://www.novell.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-using System;
-using System.Linq;
-using System.Collections.Generic;
-using MonoDevelop.Core;
-using Mono.Addins.Database;
-using System.IO;
-using MonoDevelop.Projects;
-using MonoDevelop.Ide;
-using MonoDevelop.Projects.Dom.Parser;
-
-namespace MonoDevelop.AddinAuthoring
-{
- public class AddinFileSystem: AddinFileSystemExtension, IDisposable
- {
- DomAssemblyReflector reflector;
- Solution solution;
- Dictionary<FilePath,List<FilePath>> folders = new Dictionary<FilePath, List<FilePath>> ();
- Dictionary<FilePath,FilePath> fileMaps = new Dictionary<FilePath, FilePath> ();
- Dictionary<FilePath,DotNetProject> projectMaps = new Dictionary<FilePath, DotNetProject> ();
- Dictionary<DotNetProject,DateTime> projectTimestamps = new Dictionary<DotNetProject, DateTime> ();
-
- public event EventHandler Changed;
-
- public AddinFileSystem (Solution solution)
- {
- this.solution = solution;
- solution.FileChangedInProject += HandleSolutionFileChangedInProject;
- solution.EntrySaved += HandleSolutionEntrySaved;
- solution.SolutionItemRemoved += HandleSolutionSolutionItemRemoved;
- ProjectDomService.TypesUpdated += OnParseInfoChanged;
- }
-
- public void Dispose ()
- {
- solution.FileChangedInProject -= HandleSolutionFileChangedInProject;
- solution.EntrySaved -= HandleSolutionEntrySaved;
- ProjectDomService.TypesUpdated -= OnParseInfoChanged;
- solution.SolutionItemRemoved -= HandleSolutionSolutionItemRemoved;
- if (reflector != null)
- reflector.UnloadAssemblyDoms ();
- }
-
- void OnParseInfoChanged (object sender, MonoDevelop.Projects.Dom.TypeUpdateInformationEventArgs e)
- {
- if (e.Project is DotNetProject && e.Project.ParentSolution == solution) {
- projectTimestamps [(DotNetProject)e.Project] = DateTime.Now;
- OnChanged ();
- }
- }
-
- void HandleSolutionEntrySaved (object sender, SolutionItemEventArgs e)
- {
- if (e.SolutionItem is DotNetProject) {
- projectTimestamps [(DotNetProject)e.SolutionItem] = DateTime.Now;
- OnChanged ();
- }
- }
-
- void HandleSolutionFileChangedInProject (object sender, ProjectFileEventArgs e)
- {
- if (e.Project is DotNetProject) {
- projectTimestamps [(DotNetProject)e.Project] = DateTime.Now;
- OnChanged ();
- }
- }
-
- void HandleSolutionSolutionItemRemoved (object sender, SolutionItemChangeEventArgs e)
- {
- if (e.SolutionItem is DotNetProject) {
- projectTimestamps.Remove ((DotNetProject)e.SolutionItem);
- OnChanged ();
- }
- }
-
- void OnChanged ()
- {
- if (Changed != null)
- Changed (this, EventArgs.Empty);
- }
-
- public override bool RequiresIsolation {
- get {
- return false;
- }
- }
-
- public override void ScanStarted ()
- {
- base.ScanStarted ();
-
- folders.Clear ();
- fileMaps.Clear ();
- projectMaps.Clear ();
-
- // Locate all add-in folders
-
- foreach (DotNetProject p in solution.GetAllSolutionItems<DotNetProject> ()) {
- foreach (DotNetProjectConfiguration conf in p.Configurations) {
-
- FilePath asmFile = p.GetOutputFileName (conf.Selector);
- AddProjectMap (asmFile, p);
-
- // Map support files
- foreach (var file in p.GetSupportFileList (conf.Selector)) {
- FilePath tpath = conf.OutputDirectory.Combine (file.Target);
- if (file.Src != tpath)
- AddFileMap (tpath, file.Src);
- }
-
- // Map references to other projects
- foreach (ProjectReference pref in p.References) {
- if (pref.ReferenceType == ReferenceType.Project) {
- DotNetProject refProject = solution.FindProjectByName (pref.Reference) as DotNetProject;
- if (refProject != null) {
- FilePath refOutput = refProject.GetOutputFileName (conf.Selector);
- if (refOutput.IsNull)
- refOutput = refProject.GetOutputFileName (ConfigurationSelector.Default);
- if (!refOutput.IsNullOrEmpty)
- projectMaps [conf.OutputDirectory.Combine (refOutput.FileName)] = refProject;
- }
- }
- }
- }
- }
- }
-
- public override void ScanFinished ()
- {
- base.ScanFinished ();
- folders.Clear ();
- fileMaps.Clear ();
- projectMaps.Clear ();
- if (reflector != null)
- reflector.UnloadAssemblyDoms ();
- }
-
- void AddFileMap (FilePath src, FilePath dst)
- {
- fileMaps [src] = dst;
- RegPath (src);
- }
-
- void AddProjectMap (FilePath src, DotNetProject p)
- {
- projectMaps [src] = p;
- RegPath (src);
- }
-
- void RegPath (FilePath src)
- {
- List<FilePath> files;
- if (!folders.TryGetValue (src.ParentDirectory, out files))
- folders [src.ParentDirectory] = files = new List<FilePath> ();
- if (!files.Any (f => f == src))
- files.Add (src);
- }
-
- public override bool DirectoryExists (string dir)
- {
- FilePath path = dir;
- if (folders.ContainsKey (path) || base.DirectoryExists (path))
- return true;
-
- foreach (FilePath f in folders.Keys) {
- if (f.IsChildPathOf (dir))
- return true;
- }
- return false;
- }
-
- public override bool FileExists (string path)
- {
- return base.FileExists (path) || fileMaps.ContainsKey (path) || projectMaps.ContainsKey (path);
- }
-
- public override IEnumerable<string> GetDirectories (string path)
- {
- HashSet<FilePath> dirs = new HashSet<FilePath> ();
-
- if (base.DirectoryExists (path))
- dirs.UnionWith (base.GetDirectories (path).Select (s => (FilePath)s));
-
- FilePath dir = path;
- foreach (FilePath f in folders.Keys) {
- if (f.IsChildPathOf (dir)) {
- string s = f.ToRelative (dir);
- int i = s.IndexOf (Path.DirectorySeparatorChar);
- if (i != -1)
- dirs.Add (dir.Combine (s.Substring (0,i)));
- else
- dirs.Add (dir.Combine (s));
- }
- }
- return dirs.Select (p => (string)p);
- }
-
- public override IEnumerable<string> GetFiles (string path)
- {
- HashSet<FilePath> files = new HashSet<FilePath> ();
- if (base.DirectoryExists (path))
- files.UnionWith (base.GetFiles (path).Select (s => (FilePath)s));
-
- List<FilePath> dirFiles;
- if (folders.TryGetValue (path, out dirFiles))
- files.UnionWith (dirFiles);
-
- return files.Select (p => (string)p);
- }
-
- public override DateTime GetLastWriteTime (string filePath)
- {
- FilePath mapped;
- if (fileMaps.TryGetValue (filePath, out mapped))
- return base.GetLastWriteTime (mapped);
-
- DotNetProject p;
- if (projectMaps.TryGetValue (filePath, out p)) {
- DateTime t;
- if (!projectTimestamps.TryGetValue (p, out t))
- projectTimestamps [p] = t = DateTime.Now;
- return t;
- }
-
- return base.GetLastWriteTime (filePath);
- }
-
- public override Stream OpenFile (string path)
- {
- FilePath mapped;
- if (fileMaps.TryGetValue (path, out mapped))
- return base.OpenFile (mapped);
- return base.OpenFile (path);
- }
-
- public override IAssemblyReflector GetReflectorForFile (IAssemblyLocator locator, string path)
- {
- if (reflector == null)
- reflector = new DomAssemblyReflector (solution);
- return reflector;
- }
- }
-}
-
diff --git a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/AddinOptionPanelWidget.cs b/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/AddinOptionPanelWidget.cs
deleted file mode 100644
index 2a6c8d0885..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/AddinOptionPanelWidget.cs
+++ /dev/null
@@ -1,81 +0,0 @@
-
-using System;
-using MonoDevelop.Core;
-using MonoDevelop.Projects;
-using MonoDevelop.Ide;
-using MonoDevelop.Ide.Gui;
-using MonoDevelop.Ide.Gui.Dialogs;
-
-namespace MonoDevelop.AddinAuthoring
-{
- [System.ComponentModel.Category("widget")]
- [System.ComponentModel.ToolboxItem(true)]
- public partial class AddinOptionPanelWidget : Gtk.Bin
- {
- DotNetProject project;
-
- public AddinOptionPanelWidget (DotNetProject project)
- {
- this.Build();
- this.project = project;
- optionsWidget.Load (project.ParentSolution, project, true);
-
- AddinData data = AddinData.GetAddinData (project);
- if (data != null)
- checkEnable.Active = true;
- else {
- checkEnable.Active = false;
- optionsWidget.Sensitive = false;
- }
-
- }
-
- public bool ValidateChanges ()
- {
- if (checkEnable.Active) {
- string msg = optionsWidget.Validate ();
- if (msg != null) {
- MessageService.ShowError ((Gtk.Window) this.Toplevel, msg);
- return false;
- }
- }
- return true;
- }
-
- public void Store ()
- {
- if (checkEnable.Active) {
- AddinFeature f = new AddinFeature ();
- f.ApplyFeature (project.ParentFolder, project, optionsWidget);
- }
- else {
- AddinData.DisableAddinAuthoringSupport (project);
- }
- }
-
- protected virtual void OnCheckEnableClicked(object sender, System.EventArgs e)
- {
- optionsWidget.Sensitive = checkEnable.Active;
- }
- }
-
- class AddinOptionPanel: ItemOptionsPanel
- {
- AddinOptionPanelWidget widget;
-
- public override Gtk.Widget CreatePanelWidget ()
- {
- return widget = new AddinOptionPanelWidget ((DotNetProject)ConfiguredProject);
- }
-
- public override bool ValidateChanges ()
- {
- return widget.ValidateChanges ();
- }
-
- public override void ApplyChanges ()
- {
- widget.Store ();
- }
- }
-}
diff --git a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/AddinProjectExtension.cs b/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/AddinProjectExtension.cs
deleted file mode 100644
index 355ad4e78a..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/AddinProjectExtension.cs
+++ /dev/null
@@ -1,178 +0,0 @@
-
-using System;
-using System.Collections.Specialized;
-using MonoDevelop.Projects;
-using MonoDevelop.Core;
-using MonoDevelop.Core.Execution;
-using MonoDevelop.Core.ProgressMonitoring;
-using Mono.Addins.Description;
-using Mono.Addins;
-using MonoDevelop.Ide;
-
-namespace MonoDevelop.AddinAuthoring
-{
- public class AddinProjectExtension: ProjectServiceExtension
- {
- static bool buildingSolution;
-
- public override bool SupportsItem (IBuildTarget item)
- {
- return IdeApp.IsInitialized && (item is Solution);
- }
-
- protected override BuildResult Build (IProgressMonitor monitor, Solution solution, ConfigurationSelector configuration)
- {
- try {
- buildingSolution = true;
- BuildResult res = base.Build (monitor, solution, configuration);
- if (res.ErrorCount == 0) {
- SolutionAddinData data = solution.GetAddinData ();
- if (data != null && data.Registry != null) {
- data.Registry.Update (new ProgressStatusMonitor (monitor));
- DispatchService.GuiDispatch (delegate {
- data.NotifyChanged ();
- });
- }
- }
- return res;
- } finally {
- buildingSolution = false;
- }
- }
-
- protected override BuildResult Build (IProgressMonitor monitor, SolutionEntityItem entry, ConfigurationSelector configuration)
- {
- DotNetProject project = entry as DotNetProject;
- AddinData data = project != null ? AddinData.GetAddinData (project) : null;
- if (data != null)
- monitor.BeginTask (null, buildingSolution ? 2 : 3);
-
- BuildResult res = base.Build (monitor, entry, configuration);
- if (res.ErrorCount > 0 || data == null)
- return res;
-
- monitor.Step (1);
-
- monitor.Log.WriteLine (AddinManager.CurrentLocalizer.GetString ("Verifying add-in description..."));
- string fileName = data.AddinManifestFileName;
- ProjectFile file = data.Project.Files.GetFile (fileName);
- if (file == null)
- return res;
-
- string addinFile;
- if (file.BuildAction == BuildAction.EmbeddedResource)
- addinFile = project.GetOutputFileName (ConfigurationSelector.Default);
- else
- addinFile = file.FilePath;
-
- AddinDescription desc = data.AddinRegistry.GetAddinDescription (new ProgressStatusMonitor (monitor), addinFile);
- StringCollection errors = desc.Verify ();
-
- foreach (string err in errors) {
- res.AddError (data.AddinManifestFileName, 0, 0, "", err);
- monitor.Log.WriteLine ("ERROR: " + err);
- }
-
- if (!buildingSolution && project.ParentSolution != null) {
- monitor.Step (1);
- SolutionAddinData sdata = project.ParentSolution.GetAddinData ();
- if (sdata != null && sdata.Registry != null) {
- sdata.Registry.Update (new ProgressStatusMonitor (monitor));
- DispatchService.GuiDispatch (delegate {
- sdata.NotifyChanged ();
- });
- }
- }
-
- monitor.EndTask ();
-
- return res;
- }
-
- public override void Save (IProgressMonitor monitor, SolutionEntityItem entry)
- {
- base.Save (monitor, entry);
-
- DotNetProject project = entry as DotNetProject;
- if (project != null) {
- AddinData data = AddinData.GetAddinData (project);
- if (data != null) {
- Gtk.Application.Invoke (delegate {
- data.CheckOutputPath ();
- });
- }
- }
- }
-
- ExecutionCommand CreateCommand (SolutionEntityItem item)
- {
- DotNetProject project = item as DotNetProject;
- if (project == null || project.CompileTarget != CompileTarget.Library || project.ParentSolution == null)
- return null;
-
- SolutionAddinData sdata = project.ParentSolution.GetAddinData ();
- if (sdata == null || project.GetAddinData () == null || project.GetAddinData ().IsRoot)
- return null;
-
- RegistryInfo ri = sdata.ExternalRegistryInfo;
- if (ri == null || string.IsNullOrEmpty (ri.TestCommand))
- return null;
-
- FilePath cmd;
- string args;
- if (ri.TestCommand [0] == '"') {
- // If the file name is quoted, unquote it
- int i = ri.TestCommand.IndexOf ('"', 1);
- if (i == -1)
- throw new UserException ("Invalid add-in test command: " + ri.TestCommand);
- cmd = ri.TestCommand.Substring (1, i - 1);
- args = ri.TestCommand.Substring (i + 1).Trim ();
- } else {
- int i = ri.TestCommand.IndexOf (' ');
- if (i == -1) {
- cmd = ri.TestCommand;
- args = string.Empty;
- } else {
- cmd = ri.TestCommand.Substring (0, i);
- args = ri.TestCommand.Substring (i + 1).Trim ();
- }
- }
-
- // If the command is an absolute file, take it
- // It not, consider it is a file relative to the startup path
- // If a relative file can't be found, use it as is
-
- if (!cmd.IsAbsolute) {
- FilePath absCmd = cmd.ToAbsolute (ri.ApplicationPath);
- if (System.IO.File.Exists (absCmd))
- cmd = absCmd;
- }
-
- ProcessExecutionCommand pcmd = Runtime.ProcessService.CreateCommand (cmd) as ProcessExecutionCommand;
- if (pcmd == null)
- return null;
- pcmd.Arguments = args;
- pcmd.EnvironmentVariables ["MONO_ADDINS_REGISTRY"] = sdata.TestRegistryPath;
- return pcmd;
- }
-
- protected override bool CanExecute (SolutionEntityItem item, ExecutionContext context, ConfigurationSelector configuration)
- {
- ExecutionCommand cmd = CreateCommand (item);
- if (cmd != null && context.ExecutionHandler.CanExecute (cmd))
- return true;
- return base.CanExecute (item, context, configuration);
- }
-
- protected override void Execute (IProgressMonitor monitor, SolutionEntityItem item, ExecutionContext context, ConfigurationSelector configuration)
- {
- ExecutionCommand cmd = CreateCommand (item);
- if (cmd != null && context.ExecutionHandler.CanExecute (cmd)) {
- item.ParentSolution.GetAddinData ().SetupTestRegistry ();
- context.ExecutionHandler.Execute (cmd, context.ConsoleFactory.CreateConsole (true));
- }
- base.Execute (monitor, item, context, configuration);
- }
-
- }
-}
diff --git a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/AddinProjectReference.cs b/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/AddinProjectReference.cs
deleted file mode 100644
index 7034496a1b..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/AddinProjectReference.cs
+++ /dev/null
@@ -1,96 +0,0 @@
-// AddinProjectReference.cs
-//
-// Author:
-// Lluis Sanchez Gual <lluis@novell.com>
-//
-// Copyright (c) 2007 Novell, Inc (http://www.novell.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-//
-//
-
-using System;
-using System.IO;
-using System.Collections.Generic;
-using Mono.Addins;
-using MonoDevelop.Projects;
-using MonoDevelop.Core.Serialization;
-
-namespace MonoDevelop.AddinAuthoring
-{
- [DataItem ("AddinReference")]
- public class AddinProjectReference: ProjectReference
- {
- [ItemProperty ("Include")]
- internal string Include {
- get { return Reference; }
- set { InitCustomReference (value); }
- }
-
- public AddinProjectReference ()
- {
- LocalCopy = false;
- }
-
- public AddinProjectReference (string addinId): base (ReferenceType.Custom, EncodeId (addinId))
- {
- LocalCopy = false;
- }
-
- public string AddinId {
- get { return DecodeId (Reference); }
- }
-
- static string EncodeId (string addinId)
- {
- int i = addinId.LastIndexOf (',');
- if (i == -1)
- throw new ArgumentException ("Invalid add-in id");
- return addinId.Substring (0, i) + ":" + addinId.Substring (i+1);
- }
-
- static string DecodeId (string reference)
- {
- int i = reference.LastIndexOf (':');
- if (i == -1)
- throw new ArgumentException ("Invalid add-in reference");
- return reference.Substring (0, i) + "," + reference.Substring (i+1);
- }
-
- public override string[] GetReferencedFileNames (ConfigurationSelector configuration)
- {
- if (OwnerProject != null) {
- string aid = AddinId;
- AddinData data = AddinData.GetAddinData ((DotNetProject)OwnerProject);
- if (data != null) {
- Addin addin = data.AddinRegistry.GetAddin (aid);
- if (addin != null) {
- List<string> list = new List<string> ();
- foreach (string asm in addin.Description.MainModule.Assemblies) {
- string afile = Path.Combine (Path.GetDirectoryName (addin.Description.AddinFile), asm);
- list.Add (afile);
- }
- return list.ToArray ();
- }
- }
- }
- return new string [0];
- }
- }
-}
diff --git a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/CellRendererExtension.cs b/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/CellRendererExtension.cs
deleted file mode 100644
index 213d10d540..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/CellRendererExtension.cs
+++ /dev/null
@@ -1,145 +0,0 @@
-//
-// CellRendererComboBox.cs
-//
-// Author:
-// Lluis Sanchez Gual
-//
-// Copyright (C) 2006 Novell, Inc (http://www.novell.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-using System;
-using Gtk;
-using Gdk;
-using MonoDevelop.Components;
-using Mono.Addins;
-using Mono.Addins.Description;
-
-namespace MonoDevelop.AddinAuthoring
-{
- public class CellRendererExtension: CellRendererText
- {
- ExtensionEditor editor;
-
- public CellRendererExtension ()
- {
- //Mode |= Gtk.CellRendererMode.Editable;
- }
-
- public override void GetSize (Widget widget, ref Rectangle cell_area, out int x_offset, out int y_offset, out int width, out int height)
- {
- base.GetSize (widget, ref cell_area, out x_offset, out y_offset, out width, out height);
- if (editor != null) {
- Gtk.Requisition req = editor.SizeRequest ();
- if (req.Height > height)
- height = req.Height;
- }
- }
-
- public override CellEditable StartEditing (Gdk.Event ev, Widget widget, string path, Gdk.Rectangle background_area, Gdk.Rectangle cell_area, CellRendererState flags)
- {
- TreeView tree = (TreeView) widget;
- TreeIter iter;
- tree.Model.GetIterFromString (out iter, path);
- ExtensionNodeDescription node = tree.Model.GetValue (iter, 2) as ExtensionNodeDescription;
- if (node != null) {
- editor = new ExtensionEditor (node);
- tree.Model.EmitRowChanged (new TreePath (path), iter);
- TreeViewCellContainer tc = new TreeViewCellContainer (editor);
- tc.EditingDone += delegate {
- editor = null;
- tree.Model.EmitRowChanged (new TreePath (path), iter);
- };
- return tc;
- }
- else {
- this.StopEditing (false);
- return null;
- }
- }
- }
-
- public class ExtensionEditor: Gtk.VBox
- {
- public ExtensionEditor (ExtensionNodeDescription node)
- {
- HBox fieldsBox = new HBox ();
- fieldsBox.Spacing = 3;
- Gtk.Label lab = new Gtk.Label ();
- lab.Markup = "<b>" + node.NodeName + "</b>";
- fieldsBox.PackStart (lab, false, false, 0);
- ExtensionNodeType nt = node.GetNodeType ();
- if (nt == null) {
- fieldsBox.PackStart (new Gtk.Label ("Unknown node type"), false, false, 0);
- }
- else {
- AddAttribute (fieldsBox, node, "id", "System.String", false);
- Console.WriteLine ("ppAA: " + nt.Attributes.Count);
- foreach (NodeTypeAttribute at in nt.Attributes) {
- AddAttribute (fieldsBox, node, at.Name, at.Type, at.Required);
- }
- }
- PackStart (fieldsBox, false, false, 0);
- ShowAll ();
- }
-
- void AddAttribute (HBox fieldsBox, ExtensionNodeDescription node, string name, string type, bool req)
- {
- HBox box = new HBox ();
- Gtk.Label lab = new Gtk.Label ();
- lab.Markup = "<b>" + name + "</b>=\"";
- box.PackStart (lab, false, false, 0);
- Gtk.Entry entry = new AutoSizeEntry ();
- entry.Text = node.GetAttribute (name);
- box.PackStart (entry, false, false, 0);
- box.PackStart (new Gtk.Label ("\" "), false, false, 0);
- fieldsBox.PackStart (box, false, false, 0);
- }
- }
-
- [System.ComponentModel.Category("MonoDevelop.AddinAuthoring")]
- [System.ComponentModel.ToolboxItem(true)]
- class AutoSizeEntry: Gtk.Entry
- {
- public AutoSizeEntry ()
- {
-// HasFrame = false;
- Resize ();
- }
-
- void Resize ()
- {
- int len;
- if (Text.Length < 2)
- len = 2;
- else if (Text.Length > 100)
- len = 100;
- else
- len = Text.Length;
- this.WidthChars = len;
- }
-
- protected override void OnChanged ()
- {
- Resize ();
- }
- }
-}
diff --git a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/Commands.cs b/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/Commands.cs
deleted file mode 100644
index 3c0287bcc4..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/Commands.cs
+++ /dev/null
@@ -1,26 +0,0 @@
-
-using System;
-using MonoDevelop.Components.Commands;
-using MonoDevelop.Ide.Gui;
-
-namespace MonoDevelop.AddinAuthoring
-{
- public enum Commands
- {
- AddAddinDependency,
- AddExtension,
- AddNode,
- AddNodeBefore,
- AddNodeAfter,
- ExtensionModelBrowser,
- AddExtensionPoint,
- }
-
- class ExtensionModelBrowserHandler: CommandHandler
- {
- protected override void Run ()
- {
- AddinAuthoringService.ShowExtensionModelBrowser ();
- }
- }
-}
diff --git a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/DomAssemblyReflector.cs b/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/DomAssemblyReflector.cs
deleted file mode 100644
index ebd6ffbd12..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/DomAssemblyReflector.cs
+++ /dev/null
@@ -1,478 +0,0 @@
-//
-// DomAssemblyReflector.cs
-//
-// Author:
-// Lluis Sanchez Gual <lluis@novell.com>
-//
-// Copyright (c) 2011 Novell, Inc (http://www.novell.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-using System;
-using System.Linq;
-using Mono.Addins.Database;
-using System.Collections;
-using System.Collections.Generic;
-using MonoDevelop.Projects;
-using MonoDevelop.Ide;
-using MonoDevelop.Projects.Dom.Parser;
-using System.IO;
-using MonoDevelop.Projects.Dom;
-using System.CodeDom;
-using System.Reflection;
-using MA = Mono.Addins.Database;
-using Mono.Addins;
-using MonoDevelop.Core;
-
-namespace MonoDevelop.AddinAuthoring
-{
- public class DomAssemblyReflector: IAssemblyReflector
- {
- Solution solution;
- List<FilePath> loadedDoms = new List<FilePath> ();
-
- public DomAssemblyReflector (Solution solution)
- {
- this.solution = solution;
- }
-
- #region IAssemblyReflector implementation
- public void Initialize (IAssemblyLocator locator)
- {
- }
-
- public object GetCustomAttribute (object obj, Type type, bool inherit)
- {
- foreach (object att in GetCustomAttributes (obj, type, inherit))
- if (type.IsInstanceOfType (att))
- return att;
- return null;
- }
-
- IEnumerable<IAttribute> GetAttributes (object ob)
- {
- if (ob is IMember)
- return ((IMember)ob).Attributes;
- else if (ob is IParameter)
- return ((IParameter)ob).Attributes;
- else if (ob is ProjectDom)
- return ((ProjectDom)ob).Attributes;
- else
- throw new NotSupportedException ();
- }
-
- public object[] GetCustomAttributes (object obj, Type type, bool inherit)
- {
- ArrayList atts = new ArrayList ();
- foreach (IAttribute att in GetAttributes (obj)) {
- object catt = ConvertAttribute (att, type);
- if (catt != null)
- atts.Add (catt);
- }
- if (inherit && (obj is IType)) {
- IType td = (IType) obj;
- if (td.BaseType != null && td.BaseType.FullName != "System.Object") {
- IType bt = td.SourceProjectDom.GetType (td.BaseType);
- if (bt != null)
- atts.AddRange (GetCustomAttributes (bt, type, true));
- }
- }
- return atts.ToArray ();
- }
-
-
- object ConvertAttribute (IAttribute att, Type expectedType)
- {
- Type attype = typeof(IAssemblyReflector).Assembly.GetType (att.AttributeType.FullName);
-
- if (attype == null || !expectedType.IsAssignableFrom (attype))
- return null;
-
- object ob;
-
- var args = att.PositionalArguments;
- if (args.Count > 0) {
- object[] cargs = new object [args.Count];
- ArrayList typeParameters = null;
-
- // Constructor parameters of type System.Type can't be set because types from the assembly
- // can't be loaded. The parameter value will be set later using a type name property.
- for (int n=0; n<cargs.Length; n++) {
- var res = Evaluate (args [n]);
- cargs [n] = res.Value;
- if (res.Type == "System.Type") {
- if (typeParameters == null)
- typeParameters = new ArrayList ();
- cargs [n] = typeof(object);
- typeParameters.Add (n);
- }
- }
- ob = Activator.CreateInstance (attype, cargs);
-
- // If there are arguments of type System.Type, set them using the property
- if (typeParameters != null) {
- Type[] ptypes = new Type [cargs.Length];
- for (int n=0; n<cargs.Length; n++) {
- ptypes [n] = cargs [n].GetType ();
- }
- ConstructorInfo ci = attype.GetConstructor (ptypes);
- ParameterInfo[] ciParams = ci.GetParameters ();
-
- for (int n=0; n<typeParameters.Count; n++) {
- int ip = (int) typeParameters [n];
- string propName = ciParams[ip].Name;
- propName = char.ToUpper (propName [0]) + propName.Substring (1) + "Name";
- PropertyInfo pi = attype.GetProperty (propName, BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic);
-
- if (pi == null)
- throw new InvalidOperationException ("Property '" + propName + "' not found in type '" + attype + "'.");
-
- pi.SetValue (ob, Evaluate (args [ip]).Value, null);
- }
- }
- } else {
- ob = Activator.CreateInstance (attype);
- }
-
- foreach (var namedArgument in att.NamedArguments) {
- string pname = namedArgument.Key;
- PropertyInfo prop = attype.GetProperty (pname);
- var res = Evaluate (namedArgument.Value);
- if (prop != null) {
- if (prop.PropertyType == typeof(System.Type)) {
- // We can't load the type. We have to use the typeName property instead.
- pname += "Name";
- prop = attype.GetProperty (pname, BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic);
-
- if (prop == null)
- throw new InvalidOperationException ("Property '" + pname + "' not found in type '" + attype + "'.");
- }
- prop.SetValue (ob, res.Value, null);
- }
- }
- return ob;
- }
-
- public List<MA.CustomAttribute> GetRawCustomAttributes (object obj, Type type, bool inherit)
- {
- ProjectDom dom;
- if (obj is ProjectDom)
- dom = (ProjectDom)obj;
- else if (obj is IType)
- dom = ((IType)obj).SourceProjectDom;
- else if (obj is IMember)
- dom = ((IMember)obj).DeclaringType.SourceProjectDom;
- else if (obj is IParameter)
- dom = ((IParameter)obj).DeclaringMember.DeclaringType.SourceProjectDom;
- else
- throw new NotSupportedException ();
-
- List<MA.CustomAttribute> atts = new List<MA.CustomAttribute> ();
-
- foreach (IAttribute att in GetAttributes (obj)) {
- MA.CustomAttribute catt = ConvertToRawAttribute (dom, att, type.FullName);
- if (catt != null)
- atts.Add (catt);
- }
- if (inherit && (obj is IType)) {
- IType td = (IType) obj;
- if (td.BaseType != null && td.BaseType.FullName != "System.Object") {
- IType bt = td.SourceProjectDom.GetType (td.BaseType);
- if (bt != null)
- atts.AddRange (GetRawCustomAttributes (bt, type, true));
- }
- }
- return atts;
- }
-
-
- MA.CustomAttribute ConvertToRawAttribute (ProjectDom dom, IAttribute att, string expectedType)
- {
- IType attType = dom.GetType (att.AttributeType);
-
- if (attType == null || !TypeIsAssignableFrom (expectedType, attType))
- return null;
-
- MA.CustomAttribute mat = new MA.CustomAttribute ();
- mat.TypeName = att.AttributeType.FullName;
-
- var arguments = att.PositionalArguments;
- if (arguments.Count > 0) {
-
- IMethod constructor = FindConstructor (dom, att);
- if (constructor == null)
- throw new InvalidOperationException ("Custom attribute constructor not found");
-
- for (int n=0; n<arguments.Count; n++) {
- IParameter par = constructor.Parameters[n];
- object val = Evaluate (arguments [n]).Value;
- if (val != null) {
- string name = par.Name;
- NodeAttributeAttribute bat = (NodeAttributeAttribute) GetCustomAttribute (par, typeof(NodeAttributeAttribute), false);
- if (bat != null)
- name = bat.Name;
- mat.Add (name, Convert.ToString (val, System.Globalization.CultureInfo.InvariantCulture));
- }
- }
- }
-
- foreach (var namedArgument in att.NamedArguments) {
- string pname = namedArgument.Key;
- object val = Evaluate (namedArgument.Value).Value;
- if (val == null)
- continue;
-
- foreach (IType td in GetInheritanceChain (attType)) {
- IMember prop = GetMember (td.Members, pname);
- if (prop == null)
- continue;
-
- NodeAttributeAttribute bat = (NodeAttributeAttribute) GetCustomAttribute (prop, typeof(NodeAttributeAttribute), false);
- if (bat != null) {
- string name = string.IsNullOrEmpty (bat.Name) ? prop.Name : bat.Name;
- mat.Add (name, Convert.ToString (val, System.Globalization.CultureInfo.InvariantCulture));
- }
- }
- }
-
- return mat;
- }
-
- static TMember GetMember<TMember> (IEnumerable<TMember> members, string name) where TMember : class, IMember
- {
- foreach (var member in members)
- if (member.Name == name)
- return member;
-
- return null;
- }
-
- IEnumerable<IType> GetInheritanceChain (IType td)
- {
- yield return td;
- while (td != null && td.BaseType != null && td.BaseType.FullName != "System.Object") {
- td = td.SourceProjectDom.GetType (td.BaseType);
- if (td != null)
- yield return td;
- }
- }
-
- IMethod FindConstructor (ProjectDom dom, IAttribute att)
- {
- // The constructor provided by CustomAttribute.Constructor is lacking some information, such as the parameter
- // name and custom attributes. Since we need the full info, we have to look it up in the declaring type.
-
- IType atd = dom.GetType (att.AttributeType);
- foreach (IMethod met in atd.Methods) {
- if (met.IsConstructor)
- continue;
-
- if (met.Parameters.Count == att.PositionalArguments.Count) {
- for (int n = met.Parameters.Count - 1; n >= 0; n--) {
- var res = Evaluate (att.PositionalArguments [n]);
- if (met.Parameters[n].ReturnType.FullName != res.Type)
- break;
- if (n == 0)
- return met;
- }
- }
- }
- return null;
- }
-
- EvalResult Evaluate (CodeExpression exp)
- {
- if (exp is CodePrimitiveExpression) {
- CodePrimitiveExpression pe = (CodePrimitiveExpression) exp;
- return new EvalResult () { Type = pe.Value.GetType ().FullName, Value = pe.Value };
- }
- else if (exp is CodeTypeOfExpression) {
- CodeTypeOfExpression ce = (CodeTypeOfExpression) exp;
- return new EvalResult () { Type = "System.Type", Value = ce.Type.BaseType };
- }
- else
- throw new NotSupportedException ();
- }
-
- class EvalResult
- {
- public string Type;
- public object Value;
- }
-
- public object LoadAssembly (string file)
- {
- DotNetProject project = null;
- foreach (DotNetProject p in solution.GetAllSolutionItems<DotNetProject> ()) {
- foreach (var conf in p.Configurations) {
- if (p.GetOutputFileName (conf.Selector) == file) {
- project = p;
- break;
- }
- }
- }
- if (project != null)
- return ProjectDomService.GetProjectDom (project);
- else {
- if (!loadedDoms.Contains (file)) {
- loadedDoms.Add (file);
- ProjectDomService.LoadAssembly (Runtime.SystemAssemblyService.DefaultRuntime, file);
- }
- return ProjectDomService.GetAssemblyDom (Runtime.SystemAssemblyService.DefaultRuntime, file);
- }
- }
-
- public void UnloadAssemblyDoms ()
- {
- foreach (var f in loadedDoms)
- ProjectDomService.UnloadAssembly (Runtime.SystemAssemblyService.DefaultRuntime, f);
- loadedDoms.Clear ();
- }
-
- public object LoadAssemblyFromReference (object asmReference)
- {
- return asmReference;
- }
-
- public string[] GetResourceNames (object asm)
- {
- DotNetProject p = (DotNetProject) ((ProjectDom) asm).Project;
- List<string> res = new List<string> ();
- foreach (ProjectFile f in p.Files) {
- if (f.BuildAction == BuildAction.EmbeddedResource)
- res.Add (f.ResourceId);
- }
- return res.ToArray ();
- }
-
- public System.IO.Stream GetResourceStream (object asm, string resourceName)
- {
- DotNetProject p = (DotNetProject) ((ProjectDom) asm).Project;
- foreach (ProjectFile f in p.Files) {
- if (f.BuildAction == BuildAction.EmbeddedResource && f.ResourceId == resourceName)
- return File.OpenRead (f.FilePath);
- }
- throw new Exception ("Resource '" + resourceName + "' not found");
- }
-
- public IEnumerable GetAssemblyTypes (object asm)
- {
- ProjectDom dom = (ProjectDom) asm;
- return dom.Types;
- }
-
- public IEnumerable GetAssemblyReferences (object asm)
- {
- ProjectDom dom = (ProjectDom) asm;
- return dom.References;
- }
-
- public object GetType (object asm, string typeName)
- {
- ProjectDom dom = (ProjectDom) asm;
- return dom.GetType (typeName);
- }
-
- public string GetTypeName (object type)
- {
- IType t = (IType) type;
- return t.Name;
- }
-
- public string GetTypeFullName (object type)
- {
- IType t = (IType) type;
- return t.FullName;
- }
-
- public string GetTypeAssemblyQualifiedName (object type)
- {
- IType t = (IType) type;
- DotNetProject p = (DotNetProject) t.SourceProjectDom.Project;
- DotNetProjectConfiguration conf = (DotNetProjectConfiguration) p.GetConfiguration (ConfigurationSelector.Default);
- return t.FullName + ", " + conf.CompiledOutputName.FileNameWithoutExtension;
- }
-
- public IEnumerable GetBaseTypeFullNameList (object type)
- {
- IType t = (IType) type;
-
- ArrayList list = new ArrayList ();
- Hashtable visited = new Hashtable ();
- GetBaseTypeFullNameList (visited, list, t);
- list.Remove (t.FullName);
- return list;
- }
-
- void GetBaseTypeFullNameList (Hashtable visited, ArrayList list, IType tr)
- {
- if (tr.FullName == "System.Object" || visited.Contains (tr.FullName))
- return;
-
- visited [tr.FullName] = tr;
- list.Add (tr.FullName);
-
- if (tr.BaseType != null) {
- IType bt = tr.SourceProjectDom.GetType (tr.BaseType);
- if (bt != null)
- GetBaseTypeFullNameList (visited, list, bt);
- }
-
- foreach (IReturnType interf in tr.ImplementedInterfaces) {
- IType bt = tr.SourceProjectDom.GetType (interf);
- if (bt != null)
- GetBaseTypeFullNameList (visited, list, bt);
- }
- }
-
- public bool TypeIsAssignableFrom (object baseType, object type)
- {
- IType tbase = (IType) baseType;
- IType ttype = (IType) type;
- return ttype.IsBaseType (tbase.ReturnType);
- }
-
- public bool TypeIsAssignableFrom (string baseTypeName, object type)
- {
- foreach (string bt in GetBaseTypeFullNameList (type))
- if (bt == baseTypeName)
- return true;
- return false;
- }
-
- public IEnumerable GetFields (object type)
- {
- IType t = (IType) type;
- return t.Fields;
- }
-
- public string GetFieldName (object field)
- {
- IField f = (IField) field;
- return f.Name;
- }
-
- public string GetFieldTypeFullName (object field)
- {
- IField f = (IField) field;
- return f.ReturnType.FullName;
- }
- #endregion
- }
-}
-
diff --git a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/ExtensionBaseView.cs b/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/ExtensionBaseView.cs
deleted file mode 100644
index 66a79030d9..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/ExtensionBaseView.cs
+++ /dev/null
@@ -1,130 +0,0 @@
-//
-// ExtensionView.cs
-//
-// Author:
-// Lluis Sanchez Gual <lluis@novell.com>
-//
-// Copyright (c) 2011 Novell, Inc (http://www.novell.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-using System;
-using Mono.Addins.Description;
-using MonoDevelop.Ide.Gui;
-using System.IO;
-
-namespace MonoDevelop.AddinAuthoring
-{
- public abstract class ExtensionBaseView: IAttachableViewContent
- {
- IExtensionViewWidget editor;
- AddinDescription desc;
- AddinData data;
- bool changed;
-
- public ExtensionBaseView (AddinDescription desc, AddinData data)
- {
- this.desc = desc;
- this.data = data;
- }
-
- protected abstract IExtensionViewWidget CreateWidget ();
-
- #region IAttachableViewContent implementation
- public void Selected ()
- {
- string txt = WorkbenchWindow.Document.Editor.Text;
- try {
- desc = data.AddinRegistry.ReadAddinManifestFile (new StringReader (txt), WorkbenchWindow.Document.FileName);
- Control.Sensitive = true;
- editor.SetData (desc, data);
- } catch {
- desc = null;
- Control.Sensitive = false;
- }
- changed = false;
- }
-
- public void Deselected ()
- {
- if (changed)
- WorkbenchWindow.Document.Editor.Text = AddinAuthoringService.SaveFormattedXml (data.Project.Policies, desc);
- }
-
- public void BeforeSave ()
- {
- if (changed)
- WorkbenchWindow.Document.Editor.Text = AddinAuthoringService.SaveFormattedXml (data.Project.Policies, desc);
- }
-
- public void BaseContentChanged ()
- {
- }
- #endregion
-
- #region IBaseViewContent implementation
- public T GetContent<T> () where T:class
- {
- return null;
- }
-
- public bool CanReuseView (string fileName)
- {
- return false;
- }
-
- public void RedrawContent ()
- {
- }
-
- public IWorkbenchWindow WorkbenchWindow { get; set; }
-
- public Gtk.Widget Control {
- get {
- if (editor == null) {
- editor = CreateWidget ();
- editor.SetData (desc, data);
- editor.Changed += HandleEditorChanged;
- }
- return (Gtk.Widget) editor;
- }
- }
-
- void HandleEditorChanged (object sender, EventArgs e)
- {
- changed = true;
- }
-
- public abstract string TabPageLabel { get; }
-
- #endregion
-
- #region IDisposable implementation
- public virtual void Dispose ()
- {
- }
- #endregion
- }
-
- public interface IExtensionViewWidget
- {
- void SetData (AddinDescription desc, AddinData data);
- event EventHandler Changed;
- }
-}
-
diff --git a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/ExtensionDomain.cs b/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/ExtensionDomain.cs
deleted file mode 100644
index dfaf3c95d0..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/ExtensionDomain.cs
+++ /dev/null
@@ -1,45 +0,0 @@
-//
-// ExtensionDomain.cs
-//
-// Author:
-// Lluis Sanchez Gual <lluis@novell.com>
-//
-// Copyright (c) 2009 Novell, Inc (http://www.novell.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-using System;
-using MonoDevelop.Core.Serialization;
-using MonoDevelop.Projects;
-
-namespace MonoDevelop.AddinAuthoring
-{
- public class ExtensionDomain: ProjectItem
- {
- [ItemProperty("Include")]
- public string Application { get; set; }
-
- //[ItemProperty("IsRoot", DefaultValue=false)]
- //public bool IsRoot { get; set; }
-
- public ExtensionDomain()
- {
- }
- }
-}
diff --git a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/ExtensionEditorView.cs b/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/ExtensionEditorView.cs
deleted file mode 100644
index d080d087e4..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/ExtensionEditorView.cs
+++ /dev/null
@@ -1,50 +0,0 @@
-//
-// ExtensionEditorView.cs
-//
-// Author:
-// Lluis Sanchez Gual <lluis@novell.com>
-//
-// Copyright (c) 2011 Novell, Inc (http://www.novell.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-using System;
-using MonoDevelop.Ide.Gui;
-using Mono.Addins.Description;
-
-namespace MonoDevelop.AddinAuthoring
-{
- public class ExtensionEditorView: ExtensionBaseView
- {
- public ExtensionEditorView (AddinDescription desc, AddinData data): base (desc, data)
- {
- }
-
- protected override IExtensionViewWidget CreateWidget ()
- {
- return new ExtensionEditorWidget ();
- }
-
- public override string TabPageLabel {
- get {
- return "Extensions";
- }
- }
- }
-}
-
diff --git a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/ExtensionEditorWidget.cs b/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/ExtensionEditorWidget.cs
deleted file mode 100644
index 9f9a953464..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/ExtensionEditorWidget.cs
+++ /dev/null
@@ -1,484 +0,0 @@
-
-using System;
-using System.Collections;
-using System.Collections.Generic;
-using Mono.Addins;
-using Mono.Addins.Description;
-using Gtk;
-using MonoDevelop.Core;
-using MonoDevelop.Ide;
-using MonoDevelop.Components;
-using MonoDevelop.Projects;
-
-namespace MonoDevelop.AddinAuthoring
-{
-
-
- [System.ComponentModel.Category("widget")]
- [System.ComponentModel.ToolboxItem(true)]
- public partial class ExtensionEditorWidget : Gtk.Bin, IExtensionViewWidget
- {
- AddinData data;
- AddinDescription adesc, compiledDesc;
- TreeStore store;
- TreeViewState state;
- Gdk.Pixbuf pixAddin;
- Gdk.Pixbuf pixLocalAddin;
- Gdk.Pixbuf pixExtensionPoint;
- Gdk.Pixbuf pixExtensionNode;
- Gtk.Widget currentEditor;
-
- const int ColLabel = 0;
- const int ColAddin = 1;
- const int ColExtension = 2;
- const int ColNode = 3;
- const int ColIcon = 4;
- const int ColShowIcon = 5;
- const int ColExtensionPoint = 6;
-
- public event EventHandler Changed;
-
- public ExtensionEditorWidget()
- {
- this.Build();
-
- //FIXME: avoid unnecessary creation of old treeview
- scrolledwindow6.Remove (tree);
- tree.Destroy ();
- tree = new ContextMenuTreeView ();
- tree.ShowAll ();
- scrolledwindow6.Add (tree);
- ((ContextMenuTreeView)tree).DoPopupMenu = ShowPopupMenu;
-
- pixAddin = ImageService.GetPixbuf (MonoDevelop.Ide.Gui.Stock.Addin, IconSize.Menu);
- pixLocalAddin = ImageService.GetPixbuf ("md-addinauthoring-current-addin", IconSize.Menu);
- pixExtensionPoint = ImageService.GetPixbuf ("md-extension-point", IconSize.Menu);
- pixExtensionNode = ImageService.GetPixbuf ("md-extension-node", IconSize.Menu);
-
- store = new TreeStore (typeof(string), typeof(string), typeof(Extension), typeof(ExtensionNodeDescription), typeof(Gdk.Pixbuf), typeof(bool), typeof(ExtensionPoint));
- state = new TreeViewState (tree, 0);
-
- TreeViewColumn col = new TreeViewColumn ();
- CellRendererPixbuf cpix = new CellRendererPixbuf ();
- col.PackStart (cpix, false);
- col.AddAttribute (cpix, "pixbuf", ColIcon);
- col.AddAttribute (cpix, "visible", ColShowIcon);
-
- CellRendererExtension crt = new CellRendererExtension ();
- crt.Yalign = 0;
- col.PackStart (crt, true);
- col.AddAttribute (crt, "markup", ColLabel);
-
- tree.AppendColumn (col);
- tree.Model = store;
- tree.HeadersVisible = false;
-
- tree.Selection.Changed += OnSelectionChanged;
-
- IdeApp.ProjectOperations.EndBuild += OnEndBuild;
- }
-
- public override void Dispose ()
- {
- IdeApp.ProjectOperations.EndBuild -= OnEndBuild;
- base.Dispose ();
- }
-
- public void OnEndBuild (object s, BuildEventArgs args)
- {
- compiledDesc = null;
- Fill ();
- }
-
- AddinDescription CompiledAddinDesc {
- get {
- return data.CompiledAddinManifest;
- }
- }
-
- bool CheckCompiledAddinDesc ()
- {
- if (CompiledAddinDesc == null) {
-
- }
- return true;
- }
-
- public void SetData (AddinDescription desc, AddinData data)
- {
- this.data = data;
- this.adesc = desc;
- Fill ();
- }
-
- public void Fill ()
- {
- state.Save ();
- store.Clear ();
- List<AddinDescription> deps = new List<AddinDescription> ();
- deps.Add (adesc);
-
- foreach (Dependency dep in adesc.MainModule.Dependencies) {
- AddinDependency adep = dep as AddinDependency;
- if (adep == null) continue;
- Addin ad = data.AddinRegistry.GetAddin (adep.FullAddinId);
- if (ad != null && ad.Description != null) {
- deps.Add (ad.Description);
- }
- }
-
- foreach (Extension ext in adesc.MainModule.Extensions) {
- AddExtension (ext, deps);
- }
- UpdateButtons ();
- state.Load ();
- }
-
- void ShowPopupMenu (Gdk.EventButton evt)
- {
- TreeIter it;
- if (!tree.Selection.GetSelected (out it))
- return;
-
- Menu menu = new Menu ();
- Gtk.ImageMenuItem mi = new Gtk.ImageMenuItem (AddinManager.CurrentLocalizer.GetString ("Select Extension Points..."));
- menu.Insert (mi, -1);
-
- string aid = (string) store.GetValue (it, ColAddin);
- if (aid != null) {
- }
-
- PopulateNodeTypes (menu, it);
-
- menu.Insert (new Gtk.SeparatorMenuItem (), -1);
- mi = new Gtk.ImageMenuItem (Gtk.Stock.Remove, null);
- menu.Insert (mi, -1);
- mi.Activated += delegate { DeleteSelection (); };
-
- menu.ShowAll ();
- GtkWorkarounds.ShowContextMenu (menu, tree, evt);
- }
-
- void PopulateNodeTypes (Gtk.Menu menu, TreeIter it)
- {
- ExtensionNodeTypeCollection types = GetAllowedChildTypes (it);
- Extension ext = (Extension) store.GetValue (it, ColExtension);
- ExtensionNodeDescription node = (ExtensionNodeDescription) store.GetValue (it, ColNode);
-
- if (types != null && types.Count > 0) {
- if (menu.Children.Length > 0)
- menu.Insert (new Gtk.SeparatorMenuItem (), -1);
- foreach (ExtensionNodeType nt in types) {
- Gtk.ImageMenuItem mi = new Gtk.ImageMenuItem (AddinManager.CurrentLocalizer.GetString ("Add node '{0}'", nt.NodeName));
- menu.Insert (mi, -1);
- ExtensionNodeType ntc = nt;
- mi.Activated += delegate {
- CreateNode (it, ext, node, ntc);
- };
- }
- }
- }
-
- ExtensionNodeTypeCollection GetAllowedChildTypes (TreeIter it)
- {
- ExtensionNodeTypeCollection types = null;
-
- Extension ext = (Extension) store.GetValue (it, ColExtension);
- if (ext != null) {
- if (ext.Parent == null) {
- ExtensionPoint ep = (ExtensionPoint) store.GetValue (it, ColExtensionPoint);
- types = ep.NodeSet.GetAllowedNodeTypes ();
- } else
- types = ext.GetAllowedNodeTypes ();
- }
-
- ExtensionNodeDescription node = (ExtensionNodeDescription) store.GetValue (it, ColNode);
- if (node != null) {
- ExtensionNodeType tn = node.GetNodeType ();
- if (tn != null)
- types = tn.GetAllowedNodeTypes ();
- }
- return types;
- }
-
- void DeleteSelection ()
- {
- TreeIter it;
- if (!tree.Selection.GetSelected (out it))
- return;
-
- string aid = (string) store.GetValue (it, ColAddin);
- Extension ext = (Extension) store.GetValue (it, ColExtension);
- ExtensionNodeDescription node = (ExtensionNodeDescription) store.GetValue (it, ColNode);
-
- if (aid != null) {
- if (store.IterChildren (out it, it)) {
- do {
- Extension aext = (Extension) store.GetValue (it, ColExtension);
- adesc.MainModule.Extensions.Remove (aext);
- }
- while (store.IterNext (ref it));
- }
- }
- else if (ext != null) {
- adesc.MainModule.Extensions.Remove (ext);
- }
- else if (node != null) {
- if (node.Parent is ExtensionNodeDescription)
- ((ExtensionNodeDescription)node.Parent).ChildNodes.Remove (node);
- else if (node.Parent is Extension)
- ((Extension)node.Parent).ExtensionNodes.Remove (node);
- }
-
- store.Remove (ref it);
- if (!it.Equals (TreeIter.Zero))
- tree.Selection.SelectIter (it);
- NotifyChanged ();
- }
-
- void CreateNode (TreeIter it, Extension ext, ExtensionNodeDescription node, ExtensionNodeType nt)
- {
- ExtensionNodeDescription newNode = new ExtensionNodeDescription (nt.NodeName);
-
- if (ext != null) {
- if (ext.Parent == null)
- adesc.MainModule.Extensions.Add (ext);
- ext.ExtensionNodes.Add (newNode);
- }
- else
- node.ChildNodes.Add (newNode);
- TreeIter nit = AddNode (it, newNode);
- tree.ExpandRow (store.GetPath (it), false);
- tree.Selection.SelectIter (nit);
- NotifyChanged ();
- }
-
- void AddExtension (Extension ext, IEnumerable<AddinDescription> deps)
- {
- ExtensionPoint extep = null;
- foreach (AddinDescription desc in deps) {
- foreach (ExtensionPoint ep in desc.ExtensionPoints) {
- if (ep.Path == ext.Path || ext.Path.StartsWith (ep.Path + "/")) {
- extep = ep;
- break;
- }
- }
- if (extep != null)
- break;
- }
- if (extep != null) {
- TreeIter it = AddExtensionPoint (extep, ext);
- foreach (ExtensionNodeDescription node in ext.ExtensionNodes)
- AddNode (it, node);
- }
- else {
- string txt = "<b>" + GLib.Markup.EscapeText (ext.Path) + "</b>\n";
- txt += "<small><span foreground='red'>" + AddinManager.CurrentLocalizer.GetString ("Unknown extension point") + "</span></small>";
- store.AppendValues (txt, null, null, null, pixExtensionPoint, true, null);
- }
- }
-
- TreeIter AddExtensionPoint (ExtensionPoint extep, Extension ext)
- {
- string spath = ext.Path.Substring (extep.Path.Length);
- spath = spath.Trim ('/').Replace ("/", " / ");
- TreeIter ait = AddAddin (extep.ParentAddinDescription);
- string name;
- if (extep.Name.Length > 0) {
- name = GLib.Markup.EscapeText (extep.Name);
- if (spath.Length > 0)
- name += " / " + GLib.Markup.EscapeText (spath);
- }
- else if (extep.Description.Length > 0) {
- name = GLib.Markup.EscapeText (extep.Description);
- if (spath.Length > 0)
- name += " / " + GLib.Markup.EscapeText (spath);
- }
- else
- name = GLib.Markup.EscapeText (extep.Path);
-
- return store.AppendValues (ait, name, null, ext, null, pixExtensionPoint, true, extep);
- }
-
- TreeIter AddAddin (AddinDescription adesc)
- {
- TreeIter it;
- if (store.GetIterFirst (out it)) {
- do {
- if ((string)store.GetValue (it, ColAddin) == adesc.AddinId)
- return it;
- }
- while (store.IterNext (ref it));
- }
- if (adesc != this.adesc) {
- string txt = GLib.Markup.EscapeText (adesc.Name);
- return store.AppendValues (txt, adesc.AddinId, null, null, pixAddin, true, null);
- } else {
- string txt = AddinManager.CurrentLocalizer.GetString ("Local extension points");
- return store.AppendValues (txt, adesc.AddinId, null, null, pixLocalAddin, true, null);
- }
- }
-
- TreeIter AddNode (TreeIter it, ExtensionNodeDescription node)
- {
- string txt = GLib.Markup.EscapeText (node.NodeName) + " (<i>";
- foreach (NodeAttribute at in node.Attributes)
- txt += at.Name + "=\"" + GLib.Markup.EscapeText (at.Value) + "\" ";
- txt += "</i>)";
- it = store.AppendValues (it, txt, null, null, node, pixExtensionNode, true, null);
-
- foreach (ExtensionNodeDescription cnode in node.ChildNodes)
- AddNode (it, cnode);
- return it;
- }
-
- protected virtual void OnButtonAddClicked(object sender, System.EventArgs e)
- {
- ExtensionSelectorDialog dlg = new ExtensionSelectorDialog (data.AddinRegistry, adesc, adesc.IsRoot, false);
- if (dlg.Run () == (int) Gtk.ResponseType.Ok) {
- foreach (object ob in dlg.GetSelection ()) {
- AddinDescription desc = null;
- if (ob is ExtensionPoint) {
- ExtensionPoint ep = (ExtensionPoint) ob;
- Extension ext = new Extension (ep.Path);
- adesc.MainModule.Extensions.Add (ext);
- desc = (AddinDescription) ep.Parent;
- }
- else if (ob is ExtensionNodeDescription) {
- ExtensionNodeDescription node = (ExtensionNodeDescription) ob;
- desc = node.ParentAddinDescription;
- string path = "";
- while (node != null && !(node.Parent is Extension)) {
- if (!node.IsCondition)
- path = "/" + node.Id + path;
- node = node.Parent as ExtensionNodeDescription;
- }
- Extension eext = (Extension) node.Parent;
- Extension ext = new Extension (eext.Path + "/" + node.Id + path);
- adesc.MainModule.Extensions.Add (ext);
- }
- if (adesc.AddinId != desc.AddinId && !adesc.MainModule.DependsOnAddin (desc.AddinId))
- adesc.MainModule.Dependencies.Add (new AddinDependency (desc.AddinId));
- }
- NotifyChanged ();
- Fill ();
- }
- dlg.Destroy ();
- }
-
- void NotifyChanged ()
- {
- if (Changed != null)
- Changed (this, EventArgs.Empty);
- }
-
- void OnSelectionChanged (object s, EventArgs a)
- {
- UpdateButtons ();
- }
-
- void UpdateButtons ()
- {
- TreeIter iter;
- if (!tree.Selection.GetSelected (out iter)) {
- addNodeButton.Sensitive = false;
- buttonRemove.Sensitive = false;
- DisposeEditor ();
- return;
- }
-
- DisposeEditor ();
-
- ExtensionNodeDescription node = store.GetValue (iter, ColNode) as ExtensionNodeDescription;
- if (node == null) {
- ExtensionPoint ep = (ExtensionPoint) store.GetValue (iter, ColExtensionPoint);
- if (ep != null) {
- addNodeButton.Sensitive = true;
- buttonRemove.Sensitive = false;
- } else {
- addNodeButton.Sensitive = false;
- buttonRemove.Sensitive = false;
- }
- return;
- }
-
- ExtensionNodeType nt = node.GetNodeType ();
- if (nt == null)
- return;
-
- NodeEditorWidget editor = new NodeEditorWidget (data.Project, data.AddinRegistry, nt, adesc, node.GetParentPath(), node);
- editorBox.AddWithViewport (editor);
- editor.Show ();
- editor.BorderWidth = 3;
- currentEditor = editor;
-
- ExtensionNodeTypeCollection types = GetAllowedChildTypes (iter);
- addNodeButton.Sensitive = types != null && types.Count > 0;
- buttonRemove.Sensitive = true;
- }
-
- void DisposeEditor ()
- {
- if (currentEditor != null) {
- if (currentEditor is NodeEditorWidget)
- ((NodeEditorWidget)currentEditor).Save ();
- editorBox.Remove (currentEditor);
- currentEditor.Destroy ();
- currentEditor = null;
- }
- }
-
- protected virtual void OnButtonRemoveClicked(object sender, System.EventArgs e)
- {
- DeleteSelection ();
- }
-
- protected virtual void OnAddNodeButtonPressed (object sender, System.EventArgs e)
- {
- TreeIter it;
- if (!tree.Selection.GetSelected (out it))
- return;
-
- Menu menu = new Menu ();
- PopulateNodeTypes (menu, it);
-
- menu.ShowAll ();
- menu.Popup (null, null, GetAddMenuPosition, 1, Global.CurrentEventTime);
- }
-
- void GetAddMenuPosition (Menu menu, out int x, out int y, out bool pushIn)
- {
- addNodeButton.ParentWindow.GetOrigin (out x, out y);
- x += addNodeButton.Allocation.X;
- y += addNodeButton.Allocation.Bottom;
- pushIn = true;
- }
-
- //FIXME: this should be a re-usable class in MonoDevelop.Ide
- class ContextMenuTreeView : Gtk.TreeView
- {
- public Action<Gdk.EventButton> DoPopupMenu { get; set; }
-
- protected override bool OnButtonPressEvent (Gdk.EventButton evnt)
- {
- bool res = base.OnButtonPressEvent (evnt);
-
- if (DoPopupMenu != null && Mono.TextEditor.GtkWorkarounds.TriggersContextMenu (evnt)) {
- DoPopupMenu (evnt);
- return true;
- }
-
- return res;
- }
-
- protected override bool OnPopupMenu ()
- {
- if (DoPopupMenu != null) {
- DoPopupMenu (null);
- return true;
- }
- return base.OnPopupMenu ();
- }
- }
- }
-}
diff --git a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/ExtensionModelBrowser.cs b/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/ExtensionModelBrowser.cs
deleted file mode 100644
index 25d8f7c551..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/ExtensionModelBrowser.cs
+++ /dev/null
@@ -1,61 +0,0 @@
-//
-// ExtensionModelBrowser.cs
-//
-// Author:
-// Lluis Sanchez Gual <lluis@novell.com>
-//
-// Copyright (c) 2010 Novell, Inc (http://www.novell.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-using System;
-using MonoDevelop.Ide.Gui;
-using MonoDevelop.Projects;
-
-namespace MonoDevelop.AddinAuthoring
-{
- public class ExtensionModelBrowser: AbstractViewContent
- {
- ExtensionModelBrowserWidget widget;
-
- public ExtensionModelBrowser ()
- {
- ContentName = "Extension Model Browser";
- }
-
- public override void Load (string fileName)
- {
- }
-
- public override Gtk.Widget Control {
- get {
- if (widget == null)
- widget = new ExtensionModelBrowserWidget ();
- return widget;
- }
- }
-
- public override void Dispose ()
- {
- if (widget != null)
- widget.Destroy ();
- }
-
- }
-}
-
diff --git a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/ExtensionModelBrowserWidget.cs b/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/ExtensionModelBrowserWidget.cs
deleted file mode 100644
index e6ba966c31..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/ExtensionModelBrowserWidget.cs
+++ /dev/null
@@ -1,192 +0,0 @@
-//
-// ExtensionModelBrowserWidget.cs
-//
-// Author:
-// Lluis Sanchez Gual <lluis@novell.com>
-//
-// Copyright (c) 2010 Novell, Inc (http://www.novell.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-using System;
-using System.Collections.Generic;
-using MonoDevelop.Ide.Gui.Components;
-using MonoDevelop.AddinAuthoring.NodeBuilders;
-using MonoDevelop.Ide;
-using MonoDevelop.Core;
-using Mono.Addins.Description;
-using MonoDevelop.AddinAuthoring.Gui;
-using MonoDevelop.Projects;
-using Mono.Addins;
-
-namespace MonoDevelop.AddinAuthoring
-{
- [System.ComponentModel.ToolboxItem(true)]
- public partial class ExtensionModelBrowserWidget : Gtk.Bin
- {
- ExtensibleTreeView tree;
- Gtk.Widget docView;
- Dictionary<AddinRegistry, RegistryInfo> registries = new Dictionary<AddinRegistry, RegistryInfo> ();
- Dictionary<Solution, RegistryInfo> solutions = new Dictionary<Solution, RegistryInfo> ();
-
- public ExtensionModelBrowserWidget ()
- {
- this.Build ();
- NodeBuilder[] builders = new NodeBuilder [] {
- new ExtensionNodeBuilder (),
- new ExtensionNodeNodeBuilder (),
- new ExtensionPointNodeBuilder (),
- new AddinNodeBuilder (),
- new SolutionNodeBuilder (true),
- new RegistryNodeBuilder (),
- new AddinCategoryNodeBuilder (),
- new MonoDevelop.Ide.Gui.Pads.ProjectPad.WorkspaceNodeBuilder (),
- new MonoDevelop.Ide.Gui.Pads.ProjectPad.SolutionFolderNodeBuilder ()
- };
- TreePadOption[] options = new TreePadOption [] {
- new TreePadOption ("ShowExistingNodes", GettextCatalog.GetString ("Show existing nodes"), true)
- };
-
- tree = new ExtensibleTreeView (builders, options);
- tree.ShowAll ();
- paned.Add1 (tree);
-
- foreach (Solution sol in IdeApp.Workspace.GetAllSolutions ())
- AddSolution (sol);
-
- docView = new Gtk.Label ();
- paned.Add2 (docView);
-
- tree.ShadowType = Gtk.ShadowType.In;
- tree.Tree.Selection.Changed += HandleSelectionChanged;
-
- AddinAuthoringService.RegistryChanged += OnRegistryChanged;
- IdeApp.Workspace.WorkspaceItemLoaded += OnSolutionLoaded;
- IdeApp.Workspace.WorkspaceItemUnloaded += OnSolutionUnloaded;
- }
-
- protected override void OnDestroyed ()
- {
- AddinAuthoringService.RegistryChanged -= OnRegistryChanged;
- IdeApp.Workspace.WorkspaceItemLoaded -= OnSolutionLoaded;
- IdeApp.Workspace.WorkspaceItemUnloaded -= OnSolutionUnloaded;
- base.OnDestroyed ();
- }
-
- void AddSolution (Solution sol)
- {
- SolutionAddinData data = sol.GetAddinData ();
- if (data != null) {
- RegistryInfo reg = new RegistryInfo ();
- reg.ApplicationName = data.ApplicationName;
- reg.CachedRegistry = data.Registry;
- tree.AddChild (reg);
- registries [reg.CachedRegistry] = reg;
- solutions [sol] = reg;
- }
- }
-
- void OnSolutionLoaded (object sender, WorkspaceItemEventArgs e)
- {
- if (e.Item is Solution)
- AddSolution ((Solution)e.Item);
- }
-
- void OnSolutionUnloaded (object sender, WorkspaceItemEventArgs e)
- {
- if (e.Item is Solution) {
- RegistryInfo reg;
- if (solutions.TryGetValue ((Solution) e.Item, out reg)) {
- var nav = tree.BuilderContext.GetTreeBuilder (reg);
- if (nav != null)
- nav.Remove ();
- }
- }
- }
-
- void OnRegistryChanged (object sender, RegistryEventArgs e)
- {
- RegistryInfo reg;
- if (registries.TryGetValue (e.Registry, out reg)) {
- var nav = tree.BuilderContext.GetTreeBuilder (reg);
- if (nav != null)
- nav.UpdateAll ();
- }
- }
-
- void HandleSelectionChanged (object sender, EventArgs e)
- {
- ITreeNavigator nav = tree.GetSelectedNode ();
- if (nav != null)
- ShowDocumentation (nav.DataItem);
- }
-
- void ShowDocumentation (object ob)
- {
- if (docView != null) {
- paned.Remove (docView);
- docView.Destroy ();
- docView = null;
- }
-
- ITreeNavigator nav = tree.GetSelectedNode ();
- RegistryInfo regInfo = (RegistryInfo) nav.GetParentDataItem (typeof(RegistryInfo), true);
- AddinRegistry reg = regInfo.CachedRegistry;
-
- if (ob is AddinDescription) {
- AddinView view = new AddinView ();
- view.Fill ((AddinDescription) ob);
- docView = view;
- }
- else if (ob is ExtensionPoint) {
- ExtensionPointView view = new ExtensionPointView ();
- view.Fill ((ExtensionPoint) ob, reg);
- docView = view;
- }
- else if (ob is Extension) {
- ExtensionView view = new ExtensionView ();
- view.Fill ((Extension) ob, nav);
- docView = view;
- }
- else if (ob is ExtensionNodeInfo) {
- ExtensionNodeView view = new ExtensionNodeView ();
- view.Fill (((ExtensionNodeInfo) ob).Node);
- docView = view;
- }
-
- if (docView == null)
- docView = new Gtk.Label ();
-
- docView.ShowAll ();
- paned.Add2 (docView);
- }
-
- protected void OnButtonAddClicked (object sender, System.EventArgs e)
- {
- SelectRepositoryDialog dlg = new SelectRepositoryDialog (null);
- dlg.TransientFor = this.Toplevel as Gtk.Window;
- if (dlg.Run () == (int) Gtk.ResponseType.Ok) {
- RegistryInfo reg = dlg.SelectedApplication;
- tree.AddChild (reg);
- }
- dlg.Destroy ();
- }
- }
-}
-
diff --git a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/ExtensionNodeInfo.cs b/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/ExtensionNodeInfo.cs
deleted file mode 100644
index 46abe24aa0..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/ExtensionNodeInfo.cs
+++ /dev/null
@@ -1,137 +0,0 @@
-//
-// ExtensionNodeInfo.cs
-//
-// Author:
-// Lluis Sanchez Gual <lluis@novell.com>
-//
-// Copyright (c) 2010 Novell, Inc (http://www.novell.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-using System;
-using Mono.Addins.Description;
-using System.Linq;
-using System.Collections.Generic;
-
-namespace MonoDevelop.AddinAuthoring
-{
- public class ExtensionNodeInfo
- {
- public int Order { get; set; }
- public ExtensionNodeDescription Node { get; set; }
- public List<ExtensionNodeInfo> Children { get; set; }
-
- public ExtensionNodeInfo (ExtensionNodeDescription node, bool canModify)
- {
- this.Node = node;
- this.CanModify = canModify;
- }
-
- public ExtensionNodeInfo (ExtensionNodeDescription node, bool canModify, int order)
- {
- this.Node = node;
- this.CanModify = canModify;
- this.Order = order;
- }
-
- public bool CanModify {
- get; set;
- }
-
- public void Add (ExtensionNodeInfo child)
- {
- if (Children == null)
- Children = new List<ExtensionNodeInfo> ();
- Children.Add (child);
- }
-
- public ExtensionNodeInfo GetChild (string name)
- {
- if (Children == null)
- return null;
- return Children.FirstOrDefault (n => n.Node.Id == name);
- }
-
- public List<ExtensionNodeInfo> Expand ()
- {
- if (Children != null)
- return Children;
- Children = new List<ExtensionNodeInfo> ();
- int i = 0;
- foreach (ExtensionNodeDescription n in Node.ChildNodes)
- Children.Add (new ExtensionNodeInfo (n, CanModify) { Order = i++ });
- return Children;
- }
-
- public bool HasChildren {
- get { return Node.ChildNodes.Count > 0; }
- }
-
- public void NotifyChanged ()
- {
- if (Changed != null)
- Changed (this, EventArgs.Empty);
- }
-
- public override bool Equals (object obj)
- {
- ExtensionNodeInfo en = obj as ExtensionNodeInfo;
- return en != null && Node == en.Node;
- }
-
- public override int GetHashCode ()
- {
- return Node.GetHashCode ();
- }
-
-
-
- public event EventHandler Changed;
- }
-
- public class ExtensionNodeInfoList: System.Collections.ObjectModel.Collection<ExtensionNodeInfo>
- {
- protected override void InsertItem (int index, ExtensionNodeInfo item)
- {
- base.InsertItem (index, item);
- UpdateOrder (index);
- }
-
- protected override void SetItem (int index, ExtensionNodeInfo item)
- {
- base.SetItem (index, item);
- item.Order = index;
- }
-
- protected override void RemoveItem (int index)
- {
- base.RemoveItem (index);
- UpdateOrder (index);
- }
-
- void UpdateOrder (int index)
- {
- for (int n=index; n<Count; n++)
- this[n].Order = n;
- }
-
-
- }
-}
-
diff --git a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/ExtensionNodeTree.cs b/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/ExtensionNodeTree.cs
deleted file mode 100644
index 8db5b38cc8..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/ExtensionNodeTree.cs
+++ /dev/null
@@ -1,198 +0,0 @@
-//
-// ExtensionNodeBuilder.cs
-//
-// Author:
-// Lluis Sanchez Gual <lluis@novell.com>
-//
-// Copyright (c) 2010 Novell, Inc (http://www.novell.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-using System;
-using MonoDevelop.Core;
-using MonoDevelop.Projects;
-using Mono.Addins;
-using Mono.Addins.Description;
-using System.Collections.Generic;
-
-namespace MonoDevelop.AddinAuthoring
-{
- public class ExtensionNodeTree
- {
- List<ExtensionNodeInfo> nodes = new List<ExtensionNodeInfo> ();
-
- public List<ExtensionNodeInfo> Nodes {
- get { return this.nodes; }
- }
-
- public void Fill (AddinRegistry reg, ExtensionPoint ep)
- {
- List<AddinDescription> deps = new List<AddinDescription> ();
- foreach (var addinId in ep.ExtenderAddins) {
- Addin ad = reg.GetAddin (addinId);
- if (ad != null && ad.LocalId != ep.ParentAddinDescription.LocalId)
- deps.Add (ad.Description);
- }
- Fill (ep.ParentAddinDescription, ep.ParentAddinDescription, ep.Path, deps);
- }
-
- public void Fill (AddinRegistry reg, Extension ex)
- {
- Fill (reg, ex.ParentAddinDescription, ex.ParentAddinDescription, ex.Path);
- }
-
- public void Fill (AddinData data, AddinDescription pdesc, string path)
- {
- Fill (data.AddinRegistry, data.CachedAddinManifest, pdesc, path);
- }
-
- public void Fill (AddinRegistry reg, AddinDescription localDesc, AddinDescription pdesc, string path)
- {
- List<AddinDescription> deps = new List<AddinDescription> ();
-
- foreach (Dependency dep in pdesc.MainModule.Dependencies) {
- AddinDependency adep = dep as AddinDependency;
- if (adep == null) continue;
- Addin addin = reg.GetAddin (adep.FullAddinId);
- if (addin != null)
- deps.Add (addin.Description);
- }
- Fill (localDesc, pdesc, path, deps);
- }
-
- public void Fill (AddinDescription localDesc, AddinDescription pdesc, string path, List<AddinDescription> contributorAddins)
- {
- var extensions = new List<Extension> ();
- var extNodes = new List<ExtensionNodeDescription> ();
-
- SortReferences (contributorAddins);
-
- foreach (AddinDescription desc in contributorAddins)
- CollectExtensions (desc, path, extensions, extNodes);
-
- CollectExtensions (pdesc, path, extensions, extNodes);
-
- foreach (var node in extNodes)
- nodes.Add (new ExtensionNodeInfo (node, node.ParentAddinDescription == localDesc));
-
- foreach (Extension ext in extensions) {
- bool canModify = ext.ParentAddinDescription == localDesc;
- string subp = ext.Path.Substring (path.Length);
- List<ExtensionNodeInfo> list = nodes;
- foreach (string p in subp.Split ('/')) {
- if (p.Length == 0) continue;
- int i = FindNode (list, p);
- if (i == -1) {
- list = null;
- break;
- }
- list = list [i].Expand ();
- }
- if (list != null) {
- int insertPos = list.Count;
- foreach (ExtensionNodeDescription n in ext.ExtensionNodes) {
- if (!string.IsNullOrEmpty (n.InsertAfter)) {
- int i = FindNode (list, n.InsertAfter);
- if (i != -1)
- insertPos = i + 1;
- }
- else if (!string.IsNullOrEmpty (n.InsertBefore)) {
- int i = FindNode (list, n.InsertBefore);
- if (i != -1)
- insertPos = i;
- }
- list.Insert (insertPos++, new ExtensionNodeInfo (n, canModify));
- }
- }
- }
- StoreOrder (nodes);
- }
-
- int FindNode (List<ExtensionNodeInfo> list, string name)
- {
- if (list == null)
- return -1;
- for (int n = 0; n < list.Count; n++) {
- if (list [n].Node.Id == name)
- return n;
- }
- return -1;
- }
-
- void StoreOrder (List<ExtensionNodeInfo> list)
- {
- for (int n = 0; n < list.Count; n++) {
- ExtensionNodeInfo node = list [n];
- node.Order = n;
- if (node.Children != null)
- StoreOrder (node.Children);
- }
- }
-
- void SortReferences (List<AddinDescription> deps)
- {
- List<AddinDescription> sorted = new List<AddinDescription> ();
- foreach (var desc in deps) {
- int n;
- for (n = 0; n < sorted.Count; n++) {
- if (DependsOn (sorted[n], desc))
- break;
- }
- sorted.Insert (n, desc);
- }
- }
-
- bool DependsOn (AddinDescription a1, AddinDescription a2)
- {
- foreach (ModuleDescription module in a1.AllModules) {
- foreach (Dependency dep in module.Dependencies) {
- AddinDependency adep = dep as AddinDependency;
- if (adep != null && adep.FullAddinId == a2.AddinId)
- return true;
- else
- Console.WriteLine ("pp???:" + dep);
- }
- }
- return false;
- }
-
- void CollectExtensions (AddinDescription desc, string path, List<Extension> extensions, List<ExtensionNodeDescription> nodes)
- {
- foreach (Extension ext in desc.MainModule.Extensions) {
- if (ext.Path == path || ext.Path.StartsWith (path + "/"))
- extensions.Add (ext);
- else if (path.StartsWith (ext.Path + "/")) {
- string subp = path.Substring (ext.Path.Length);
- ExtensionNodeDescription foundNode = null;
- ExtensionNodeDescriptionCollection list = ext.ExtensionNodes;
- foreach (string p in subp.Split ('/')) {
- if (p.Length == 0) continue;
- foundNode = list [p];
- if (foundNode == null)
- break;
- }
- if (foundNode != null) {
- foreach (ExtensionNodeDescription n in foundNode.ChildNodes)
- nodes.Add (n);
- }
- }
- }
- }
- }
-}
diff --git a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/ExtensionPointsEditorView.cs b/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/ExtensionPointsEditorView.cs
deleted file mode 100644
index 7fa6b29c66..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/ExtensionPointsEditorView.cs
+++ /dev/null
@@ -1,50 +0,0 @@
-//
-// ExtensionPointsEditorView.cs
-//
-// Author:
-// Lluis Sanchez Gual <lluis@novell.com>
-//
-// Copyright (c) 2011 Novell, Inc (http://www.novell.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-using System;
-using MonoDevelop.Ide.Gui;
-using Mono.Addins.Description;
-
-namespace MonoDevelop.AddinAuthoring
-{
- public class ExtensionPointsEditorView: ExtensionBaseView
- {
- public ExtensionPointsEditorView (AddinDescription desc, AddinData data): base (desc, data)
- {
- }
-
- protected override IExtensionViewWidget CreateWidget ()
- {
- return new ExtensionPointsEditorWidget ();
- }
-
- public override string TabPageLabel {
- get {
- return "Extension Points";
- }
- }
- }
-}
-
diff --git a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/ExtensionPointsEditorWidget.cs b/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/ExtensionPointsEditorWidget.cs
deleted file mode 100644
index c3b69071f5..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/ExtensionPointsEditorWidget.cs
+++ /dev/null
@@ -1,161 +0,0 @@
-// ExtensionPointsEditorWidget.cs
-//
-// Author:
-// Lluis Sanchez Gual <lluis@novell.com>
-//
-// Copyright (c) 2007 Novell, Inc (http://www.novell.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-//
-//
-
-using System;
-using Mono.Addins;
-using Mono.Addins.Description;
-using MonoDevelop.Components;
-using MonoDevelop.Projects;
-using Gtk;
-
-namespace MonoDevelop.AddinAuthoring
-{
- [System.ComponentModel.Category("MonoDevelop.AddinAuthoring")]
- [System.ComponentModel.ToolboxItem(true)]
- public partial class ExtensionPointsEditorWidget : Gtk.Bin, IExtensionViewWidget
- {
- ListStore store;
- AddinData data;
- AddinDescription adesc;
- TreeViewState state;
-
- public event EventHandler Changed;
-
- public ExtensionPointsEditorWidget ()
- {
- this.Build();
-
- store = new ListStore (typeof(ExtensionPoint), typeof(string), typeof(string));
- tree.Model = store;
-
- TreeViewColumn col = new TreeViewColumn ();
- CellRendererPixbuf cpix = new CellRendererPixbuf ();
- cpix.Yalign = 0;
- col.PackStart (cpix, false);
- col.AddAttribute (cpix, "stock-id", 1);
- CellRendererText crt = new CellRendererText ();
- col.PackStart (crt, true);
- col.AddAttribute (crt, "markup", 2);
- tree.AppendColumn (col);
-
- state = new TreeViewState (tree, 2);
- tree.Selection.Changed += OnSelectionChanged;
- }
-
- void NotifyChanged ()
- {
- if (Changed != null)
- Changed (this, EventArgs.Empty);
- }
-
- public void SetData (AddinDescription desc, AddinData data)
- {
- this.data = data;
- this.adesc = desc;
- Fill ();
- }
-
- void Fill ()
- {
- state.Save ();
-
- store.Clear ();
-
- foreach (ExtensionPoint extep in adesc.ExtensionPoints) {
- string name;
- if (extep.Name.Length > 0 && extep.Description.Length > 0) {
- name = "<b>" + GLib.Markup.EscapeText (extep.Name) + "</b>";
- name += "\n<small>" + GLib.Markup.EscapeText (extep.Description) + "</small>";
- }
- else if (extep.Name.Length > 0) {
- name = "<b>" + GLib.Markup.EscapeText (extep.Name) + "</b>";
- }
- else if (extep.Description.Length > 0) {
- name = "<b>" + GLib.Markup.EscapeText (extep.Description) + "</b>";
- }
- else
- name = "<b>" + GLib.Markup.EscapeText (extep.Path) + "</b>";
- store.AppendValues (extep, "md-extension-point", name);
- }
-
- state.Load ();
- UpdateButtons ();
- }
-
- void UpdateButtons ()
- {
- TreeIter it;
- buttonRemove.Sensitive = buttonProperties.Sensitive = tree.Selection.GetSelected (out it);
- }
-
- protected virtual void OnButtonNewClicked (object sender, System.EventArgs e)
- {
- ExtensionPoint ep = new ExtensionPoint ();
- NewExtensionPointDialog dlg = new NewExtensionPointDialog ((DotNetProject)data.Project, data.AddinRegistry, adesc, ep);
- try {
- if (dlg.Run () == (int) ResponseType.Ok) {
- adesc.ExtensionPoints.Add (ep);
- Fill ();
- NotifyChanged ();
- }
- } finally {
- dlg.Destroy ();
- }
- }
-
- protected virtual void OnButtonRemoveClicked (object sender, System.EventArgs e)
- {
- TreeIter it;
- tree.Selection.GetSelected (out it);
- ExtensionPoint ep = (ExtensionPoint) store.GetValue (it, 0);
- adesc.ExtensionPoints.Remove (ep);
- store.Remove (ref it);
- NotifyChanged ();
- }
-
- protected virtual void OnButtonPropertiesClicked (object sender, System.EventArgs e)
- {
- TreeIter iter;
- tree.Selection.GetSelected (out iter);
-
- ExtensionPoint ep = (ExtensionPoint) store.GetValue (iter, 0);
- ExtensionPoint epc = new ExtensionPoint ();
- epc.CopyFrom (ep);
- NewExtensionPointDialog epdlg = new NewExtensionPointDialog ((DotNetProject)data.Project, data.AddinRegistry, adesc, epc);
- if (epdlg.Run () == (int) ResponseType.Ok)
- ep.CopyFrom (epc);
- epdlg.Destroy ();
- Fill ();
- NotifyChanged ();
- }
-
- void OnSelectionChanged (object s, EventArgs args)
- {
- UpdateButtons ();
- }
- }
-}
diff --git a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/ExtensionSelectorDialog.cs b/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/ExtensionSelectorDialog.cs
deleted file mode 100644
index 6f0e26b713..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/ExtensionSelectorDialog.cs
+++ /dev/null
@@ -1,380 +0,0 @@
-
-using System;
-using System.Collections;
-using Gtk;
-using Mono.Addins;
-using Mono.Addins.Description;
-using MonoDevelop.Core;
-using MonoDevelop.Ide;
-using MonoDevelop.Ide.Gui;
-
-namespace MonoDevelop.AddinAuthoring
-{
- public partial class ExtensionSelectorDialog : Gtk.Dialog
- {
- TreeStore store;
- AddinRegistry registry;
- AddinDescription adesc;
- bool showTypedOnly = false;
- bool isRoot;
-
- bool showNamespaces = true;
- bool showCategories = true;
- bool showExtensionPoints = true;
- bool showExtensionNodes = true;
- bool addinSelector = false;
-
- Hashtable selection = new Hashtable ();
- Gdk.Pixbuf pixCategory;
- Gdk.Pixbuf pixNamespace;
- Gdk.Pixbuf pixAddin;
- Gdk.Pixbuf pixLocalAddin;
-
- const int ColLabel = 0;
- const int ColObject = 1;
- const int ColExtension = 2;
- const int ColShowCheck = 3;
- const int ColChecked = 4;
- const int ColIcon = 5;
- const int ColShowIcon = 6;
- const int ColFilled = 7;
-
- public ExtensionSelectorDialog (AddinRegistry reg, AddinDescription adesc, bool isRoot, bool addinSelector)
- {
- this.Build();
-
- this.addinSelector = addinSelector;
- this.registry = reg;
- this.adesc = adesc;
- this.isRoot = isRoot;
-
- pixCategory = ImageService.GetPixbuf (MonoDevelop.Ide.Gui.Stock.ClosedFolder, IconSize.Menu);
- pixNamespace = ImageService.GetPixbuf (MonoDevelop.Ide.Gui.Stock.NameSpace, IconSize.Menu);
- pixAddin = ImageService.GetPixbuf (MonoDevelop.Ide.Gui.Stock.Addin, IconSize.Menu);
- pixLocalAddin = ImageService.GetPixbuf ("md-addinauthoring-current-addin", IconSize.Menu);
-
- store = new TreeStore (typeof(string), typeof(object), typeof(ExtensionPoint), typeof(bool), typeof(bool), typeof(Gdk.Pixbuf), typeof(bool), typeof(bool));
-
- TreeViewColumn col = new TreeViewColumn ();
- CellRendererPixbuf cpix = new CellRendererPixbuf ();
- col.PackStart (cpix, false);
- col.AddAttribute (cpix, "pixbuf", ColIcon);
- col.AddAttribute (cpix, "visible", ColShowIcon);
-
- CellRendererToggle ctog = new CellRendererToggle ();
- ctog.Toggled += OnToggled;
- ctog.Yalign = 0;
- ctog.Ypad = 5;
- col.PackStart (ctog, false);
- col.AddAttribute (ctog, "active", ColChecked);
- col.AddAttribute (ctog, "visible", ColShowCheck);
- CellRendererText crt = new CellRendererText ();
- crt.Yalign = 0;
- col.PackStart (crt, true);
- col.AddAttribute (crt, "markup", ColLabel);
-
- tree.AppendColumn (col);
- Fill ();
-
- tree.HeadersVisible = false;
- tree.Model = store;
-
- tree.TestExpandRow += new Gtk.TestExpandRowHandler (OnTestExpandRow);
- }
-
- public object[] GetSelection ()
- {
- ArrayList list = new ArrayList ();
- list.AddRange (selection.Values);
- return list.ToArray ();
- }
-
- void Fill ()
- {
- foreach (Addin addin in registry.GetAddins ())
- AddAddin (addin);
- foreach (Addin addin in registry.GetAddinRoots ())
- AddAddin (addin);
-
- if (adesc != null && showExtensionPoints) {
- string txt = AddinManager.CurrentLocalizer.GetString ("Local extension points");
- TreeIter iter = store.AppendValues (GLib.Markup.EscapeText (txt), adesc, null, false, false, pixLocalAddin, true, false);
- // Add a dummy node to make sure the expand button is shown
- store.AppendValues (iter, "", null, null, false, false, null, true, true);
- }
- }
-
- void AddAddin (Addin addin)
- {
- AddinDescription desc = addin.Description;
- if (desc == null || desc.ExtensionPoints.Count == 0)
- return;
-
- if (isRoot && !desc.IsRoot)
- return;
-
- if (showTypedOnly) {
- bool istyped = false;
- for (int n=0; n<desc.ExtensionPoints.Count && !istyped; n++) {
- ExtensionPoint ep = desc.ExtensionPoints [n];
- for (int m=0; m<ep.NodeSet.NodeTypes.Count && !istyped; m++) {
- if (((ExtensionNodeType)ep.NodeSet.NodeTypes [m]).ObjectTypeName.Length > 0)
- istyped = true;
- }
- }
- if (!istyped)
- return;
- }
-
- TreeIter iter = TreeIter.Zero;
- if (showNamespaces) {
- if (desc.Namespace.Length == 0)
- iter = GetBranch (iter, AddinManager.CurrentLocalizer.GetString ("Global namespace"), pixNamespace);
- else
- iter = GetBranch (iter, desc.Namespace, pixNamespace);
- }
- if (showCategories) {
- if (desc.Category.Length > 0) {
- foreach (string cat in desc.Category.Split ('/')) {
- string tcat = cat.Trim ();
- if (tcat.Length == 0)
- continue;
- iter = GetBranch (iter, tcat, pixCategory);
- }
- } else {
- iter = GetBranch (iter, AddinManager.CurrentLocalizer.GetString ("Miscellaneous"), pixCategory);
- }
- }
-
- iter = GetBranch (iter, desc.Name, pixAddin);
- store.SetValue (iter, ColObject, addin);
-
- if (addinSelector) {
- store.SetValue (iter, ColShowCheck, true);
- store.SetValue (iter, ColChecked, selection.Contains (addin));
- store.SetValue (iter, ColFilled, true);
- return;
- }
-
- if (showExtensionPoints) {
- store.SetValue (iter, ColFilled, false);
- // Add a dummy node to make sure the expand button is shown
- store.AppendValues (iter, "", null, null, false, false, null, true, true);
- }
- }
-
- void FillExtensionPoint (TreeIter iter, ExtensionPoint ep)
- {
- // Add extension node types
-
- FillExtensionNodeSet (iter, ep.NodeSet);
-
- // Add extension nodes from known add-ins
-
- ArrayList extensions = new ArrayList ();
-
- CollectExtensions (ep.ParentAddinDescription, ep.Path, extensions);
- foreach (Dependency dep in ep.ParentAddinDescription.MainModule.Dependencies) {
- AddinDependency adep = dep as AddinDependency;
- if (adep == null) continue;
- Addin addin = registry.GetAddin (adep.FullAddinId);
- if (addin != null)
- CollectExtensions (addin.Description, ep.Path, extensions);
- }
-
- // Sort the extensions, to make sure they are added in the correct order
- // That is, deepest children last.
- extensions.Sort (new ExtensionComparer ());
-
-// iter = store.AppendValues (iter, "Extensions", null, ep, false, false, null, false, true);
-
- // Add the nodes
- foreach (Extension ext in extensions) {
- string subp = ext.Path.Substring (ep.Path.Length);
- TreeIter citer = iter;
- ExtensionNodeSet ns = ep.NodeSet;
- bool found = true;
- foreach (string p in subp.Split ('/')) {
- if (p.Length == 0) continue;
- if (!GetNodeBranch (citer, p, ns, out citer, out ns)) {
- found = false;
- break;
- }
- }
- if (found)
- FillNodes (citer, ns, ext.ExtensionNodes);
- }
- }
-
- void CollectExtensions (AddinDescription desc, string path, ArrayList extensions)
- {
- foreach (Extension ext in desc.MainModule.Extensions) {
- if (ext.Path == path || ext.Path.StartsWith (path + "/"))
- extensions.Add (ext);
- }
- }
-
- void FillExtensionNodeSet (TreeIter iter, ExtensionNodeSet ns)
- {
- // Add extension node types
-/* ExtensionNodeTypeCollection col = ns.GetAllowedNodeTypes ();
- foreach (ExtensionNodeType nt in col) {
- string nname;
- if (nt.Description.Length > 0) {
- nname = GLib.Markup.EscapeText (nt.NodeName) + "\n";
- nname += "<small>" + GLib.Markup.EscapeText (nt.Description) + "</small>";
- }
- else
- nname = GLib.Markup.EscapeText (nt.NodeName);
-
- store.AppendValues (iter, nname, nt, null, true, selection.Contains (nt), null, false, true);
- }
-*/ }
-
- void FillNodes (TreeIter iter, ExtensionNodeSet ns, ExtensionNodeDescriptionCollection nodes)
- {
- ExtensionNodeTypeCollection ntypes = ns.GetAllowedNodeTypes ();
-
- foreach (ExtensionNodeDescription node in nodes) {
-
- if (node.IsCondition) {
- FillNodes (iter, ns, nodes);
- continue;
- }
-
- string id = node.Id;
- ExtensionNodeType nt = ntypes [node.NodeName];
-
- // The node can only be extended if it has an ID and if it accepts child nodes
- if (id.Length > 0 && (nt.NodeTypes.Count > 0 || nt.NodeSets.Count > 0)) {
- TreeIter citer = GetBranch (iter, id + " (" + nt.NodeName + ")", null);
- store.SetValue (citer, ColObject, node);
- store.SetValue (citer, ColShowCheck, true);
- store.SetValue (citer, ColChecked, false);
- FillExtensionNodeSet (citer, nt);
- FillNodes (citer, nt, node.ChildNodes);
- }
- }
- }
-
- bool GetNodeBranch (TreeIter parent, string name, ExtensionNodeSet nset, out TreeIter citer, out ExtensionNodeSet cset)
- {
- TreeIter iter;
- bool more;
- if (!parent.Equals (TreeIter.Zero))
- more = store.IterChildren (out iter, parent);
- else
- more = store.GetIterFirst (out iter);
-
- if (more) {
- do {
- if (((string)store.GetValue (iter, ColLabel)) == name) {
- ExtensionNodeDescription node = (ExtensionNodeDescription) store.GetValue (iter, ColObject);
- ExtensionNodeType nt = nset.GetAllowedNodeTypes () [node.NodeName];
- cset = nt;
- citer = iter;
- return true;
- }
- } while (store.IterNext (ref iter));
- }
- citer = iter;
- cset = null;
- return false;
- }
-
- void FillAddin (TreeIter iter, AddinDescription addin)
- {
- foreach (ExtensionPoint ep in addin.ExtensionPoints) {
- string name;
- if (ep.Name.Length > 0 && ep.Description.Length > 0) {
- name = "<b>" + GLib.Markup.EscapeText (ep.Name) + "</b>\n";
- name += "<small>" + GLib.Markup.EscapeText (ep.Description) + "</small>";
- }
- else if (ep.Name.Length > 0)
- name = "<b>" + GLib.Markup.EscapeText (ep.Name) + "</b>";
- else if (ep.Description.Length > 0)
- name = "<b>" + GLib.Markup.EscapeText (ep.Description) + "</b>";
- else
- name = "<b>" + GLib.Markup.EscapeText (ep.Path) + "</b>";
-
- TreeIter epIter = store.AppendValues (iter, name, ep, ep, true, selection.Contains (ep), null, false, !showExtensionNodes);
- if (showExtensionNodes) {
- // Add a dummy node to make sure the expand button is shown
- store.AppendValues (epIter, "", null, null, false, false, null, true, true);
- }
- }
- }
-
- private void OnTestExpandRow (object sender, Gtk.TestExpandRowArgs args)
- {
- bool filled = (bool) store.GetValue (args.Iter, ColFilled);
- if (!filled) {
- store.SetValue (args.Iter, ColFilled, true);
-
- // Remove the dummy child
- TreeIter iter;
- store.IterChildren (out iter, args.Iter);
- store.Remove (ref iter);
-
- object ob = store.GetValue (args.Iter, ColObject);
- if (ob is ExtensionPoint)
- FillExtensionPoint (args.Iter, (ExtensionPoint) ob);
- else if (ob is Addin)
- FillAddin (args.Iter, ((Addin) ob).Description);
- else if (ob is AddinDescription)
- FillAddin (args.Iter, (AddinDescription) ob);
-
- // If after all there are no children, return false
- if (!store.IterChildren (out iter, args.Iter)) {
- args.RetVal = true;
- }
- } else
- args.RetVal = false;
- }
-
- TreeIter GetBranch (TreeIter parent, string name, Gdk.Pixbuf icon)
- {
- TreeIter iter;
- bool more;
- if (!parent.Equals (TreeIter.Zero))
- more = store.IterChildren (out iter, parent);
- else
- more = store.GetIterFirst (out iter);
-
- if (more) {
- do {
- if (((string)store.GetValue (iter, ColLabel)) == name)
- return iter;
- } while (store.IterNext (ref iter));
- }
-
- if (!parent.Equals (TreeIter.Zero))
- return store.AppendValues (parent, GLib.Markup.EscapeText (name), null, null, false, false, icon, icon != null, true);
- else
- return store.AppendValues (GLib.Markup.EscapeText (name), null, null, false, false, icon, icon != null, true);
- }
-
- void OnToggled (object s, ToggledArgs args)
- {
- TreeIter it;
- if (!store.GetIterFromString (out it, args.Path))
- return;
- object ob = store.GetValue (it, ColObject);
- if (selection.Contains (ob)) {
- selection.Remove (ob);
- store.SetValue (it, ColChecked, false);
- } else {
- selection [ob] = ob;
- store.SetValue (it, ColChecked, true);
- }
- }
- }
-
- class ExtensionComparer: IComparer
- {
- public int Compare (object x, object y)
- {
- return ((Extension)x).Path.CompareTo (((Extension)y).Path);
- }
- }
-}
diff --git a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/NewExtensionPointDialog.cs b/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/NewExtensionPointDialog.cs
deleted file mode 100644
index 57fd51445b..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/NewExtensionPointDialog.cs
+++ /dev/null
@@ -1,124 +0,0 @@
-// NewExtensionPointDialog.cs
-//
-// Author:
-// Lluis Sanchez Gual <lluis@novell.com>
-//
-// Copyright (c) 2007 Novell, Inc (http://www.novell.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-//
-//
-
-using System;
-using Mono.Addins.Description;
-using MonoDevelop.Projects;
-using Mono.Addins;
-
-namespace MonoDevelop.AddinAuthoring
-{
-
-
- public partial class NewExtensionPointDialog : Gtk.Dialog
- {
- ExtensionPoint ep;
- DotNetProject project;
- AddinRegistry registry;
- AddinDescription adesc;
-
- public NewExtensionPointDialog (DotNetProject project, AddinRegistry registry, AddinDescription adesc, ExtensionPoint ep)
- {
- this.Build();
- this.ep = ep;
- this.project = project;
- this.registry = registry;
- this.adesc = adesc;
-
- notebook.Page = 0;
-
- Fill ();
- }
-
- void Fill ()
- {
- entryPath.Text = ep.Path;
- entryName.Text = ep.Name;
- entryDesc.Text = ep.Description;
-
- if (ep.Parent == null)
- entryNodeName.Text = "Type";
-
- if (ep.Parent == null && ep.Path.Length == 0) {
- if (adesc.Namespace.Length > 0)
- entryPath.Text = "/" + adesc.Namespace + "/";
- else if (adesc.LocalId.Length > 0)
- entryPath.Text = "/" + adesc.LocalId + "/";
- }
-
- if (ep.NodeSet.NodeSets.Count == 0 && ep.NodeSet.NodeTypes.Count == 1) {
- ExtensionNodeType nt = ep.NodeSet.NodeTypes [0];
- if (nt.TypeName == string.Empty || nt.TypeName == "Mono.Addins.TypeExtensionNode") {
- notebook.Page = 0;
- entryNodeName.Text = nt.NodeName;
- baseTypeSelector.Project = project;
- baseTypeSelector.TypeName = nt.ObjectTypeName;
- entryNodeDescription.Text = nt.Description;
- }
- }
- nodeseteditorwidget.Fill (project, registry, adesc, ep.NodeSet);
- UpdateButtons ();
- }
-
- protected virtual void OnRadioTypeExtensionClicked (object sender, System.EventArgs e)
- {
- notebook.Page = 0;
- }
-
- protected virtual void OnRadioCustomExtensionClicked (object sender, System.EventArgs e)
- {
- notebook.Page = 1;
- }
-
- protected virtual void OnButtonOkClicked (object sender, System.EventArgs e)
- {
- ep.Path = entryPath.Text;
- ep.Name = entryName.Text;
- ep.Description = entryDesc.Text;
-
- if (notebook.Page == 0) {
- ep.NodeSet.CopyFrom (new ExtensionNodeSet ());
- ExtensionNodeType nt = new ExtensionNodeType ();
- nt.NodeName = entryNodeName.Text;
- nt.TypeName = "Mono.Addins.TypeExtensionNode";
- nt.ObjectTypeName = baseTypeSelector.TypeName;
- nt.Description = entryNodeDescription.Text;
- ep.NodeSet.NodeTypes.Add (nt);
- }
- }
-
- void UpdateButtons ()
- {
- buttonOk.Sensitive = (entryPath.Text.Length > 0);
- }
-
- protected virtual void OnEntryPathChanged (object sender, System.EventArgs e)
- {
- UpdateButtons ();
- }
- }
-}
diff --git a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/NewRegistryDialog.cs b/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/NewRegistryDialog.cs
deleted file mode 100644
index d85f07a618..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/NewRegistryDialog.cs
+++ /dev/null
@@ -1,58 +0,0 @@
-// NewRegistryDialog.cs
-//
-// Author:
-// Lluis Sanchez Gual <lluis@novell.com>
-//
-// Copyright (c) 2007 Novell, Inc (http://www.novell.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-//
-//
-
-using System;
-
-namespace MonoDevelop.AddinAuthoring
-{
-
-
- public partial class NewRegistryDialog : Gtk.Dialog
- {
-
- public NewRegistryDialog (string appName)
- {
- this.Build();
- if (appName != null) {
- entryName.Text = appName;
- entryName.Sensitive = false;
- }
- }
-
- public string ApplicationName {
- get { return entryName.Text; }
- }
-
- public string RegistryPath {
- get { return entryRegPath.Path; }
- }
-
- public string ApplicationPath {
- get { return entryAppPath.Path; }
- }
- }
-}
diff --git a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/NodeEditorDialog.cs b/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/NodeEditorDialog.cs
deleted file mode 100644
index 907312d3fe..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/NodeEditorDialog.cs
+++ /dev/null
@@ -1,30 +0,0 @@
-
-using System;
-using Gtk;
-using Mono.Addins;
-using Mono.Addins.Description;
-using MonoDevelop.Projects;
-
-namespace MonoDevelop.AddinAuthoring
-{
- public class NodeEditorDialog: Dialog
- {
- NodeEditorWidget editor;
-
- public NodeEditorDialog (DotNetProject project, AddinRegistry reg, ExtensionNodeType ntype, AddinDescription parentAddinDescription, string parentPath, ExtensionNodeDescription node)
- {
- editor = new NodeEditorWidget (project, reg, ntype, parentAddinDescription, parentPath, node);
- editor.BorderWidth = 12;
- this.VBox.PackStart (editor, true, true, 0);
- this.AddButton (Stock.Cancel, ResponseType.Cancel);
- this.AddButton (Stock.Ok, ResponseType.Ok);
- this.DefaultWidth = 400;
- ShowAll ();
- }
-
- public void Save ()
- {
- editor.Save ();
- }
- }
-}
diff --git a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/NodeEditorWidget.cs b/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/NodeEditorWidget.cs
deleted file mode 100644
index bf0c87409a..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/NodeEditorWidget.cs
+++ /dev/null
@@ -1,216 +0,0 @@
-
-using System;
-using System.ComponentModel;
-using System.Collections;
-using System.Collections.Generic;
-using System.Globalization;
-using Gtk;
-using Mono.Addins;
-using Mono.Addins.Description;
-using MonoDevelop.Core;
-using MonoDevelop.Projects;
-using MonoDevelop.Components.PropertyGrid;
-
-namespace MonoDevelop.AddinAuthoring
-{
- public class NodeEditorWidget: VBox
- {
- ExtensionNodeDescription node;
-
- ComboBox insBeforeCombo;
- ComboBox insAfterCombo;
- Gtk.Tooltips tips;
- DotNetProject project;
- PropertyGrid grid;
-
- Hashtable atts = new Hashtable ();
-
- public NodeEditorWidget (DotNetProject project, AddinRegistry reg, ExtensionNodeType ntype, AddinDescription parentAddinDescription, string parentPath, ExtensionNodeDescription node)
- {
- this.node = node;
- this.project = project;
- tips = new Tooltips ();
- Spacing = 0;
-
- // Header
-
- Label label = new Label ();
- label.Wrap = true;
- label.WidthRequest = 480;
- string txt = "<b>" + node.NodeName + "</b>";
- if (ntype.Description.Length > 0)
- txt += "\n" + GLib.Markup.EscapeText (ntype.Description);
- label.Markup = txt;
- label.Xalign = 0f;
- PackStart (label, false, false, 6);
- PackStart (new HSeparator (), false, false, 0);
-
- // Attributes
-
- grid = new PropertyGrid ();
- grid.CurrentObject = new NodeWrapper (project, reg, ntype, parentAddinDescription, parentPath, node);
-
- PackStart (grid, true, true, 0);
-
- ShowAll ();
-
- grid.ShowHelp = true;
- grid.ShowToolbar = false;
-
- }
-
- public void Save ()
- {
- grid.CurrentObject = null;
- }
- }
-
- class NodeWrapper: CustomTypeDescriptor
- {
- PropertyDescriptorCollection properties;
-
- public NodeWrapper (DotNetProject project, AddinRegistry reg, ExtensionNodeType ntype, AddinDescription parentAddinDescription, string parentPath, ExtensionNodeDescription node)
- {
- List<PropertyDescriptor> props = new List<PropertyDescriptor> ();
-
- string mainCategory = AddinManager.CurrentLocalizer.GetString ("Node Attributes");
-
- PropertyDescriptor prop = new MyPropertyDescriptor ("id", typeof(String), AddinManager.CurrentLocalizer.GetString ("Identifier of the extension node"), mainCategory, node);
- props.Add (prop);
-
- foreach (NodeTypeAttribute att in ntype.Attributes) {
- Type pt = Type.GetType (att.Type);
- if (pt == null)
- pt = typeof(string);
- prop = new MyPropertyDescriptor (att.Name, pt, att.Description, mainCategory, node);
- props.Add (prop);
- }
-
-/* int n = 1;
- foreach (ExtensionNodeDescription en in AddinData.GetExtensionNodes (reg, parentAddinDescription, parentPath)) {
- if (en.Id.Length > 0) {
- insBeforeCombo.AppendText (en.Id);
- insAfterCombo.AppendText (en.Id);
- if (en.Id == node.InsertBefore)
- insBeforeCombo.Active = n;
- if (en.Id == node.InsertAfter)
- insAfterCombo.Active = n;
- }
- n++;
- }
- */
-
- prop = new MyPropertyDescriptor ("insertBefore", typeof(String), AddinManager.CurrentLocalizer.GetString ("Insert Before"), AddinManager.CurrentLocalizer.GetString ("Placement"), node);
- props.Add (prop);
-
- prop = new MyPropertyDescriptor ("insertAfter", typeof(String), AddinManager.CurrentLocalizer.GetString ("Insert After"), AddinManager.CurrentLocalizer.GetString ("Placement"), node);
- props.Add (prop);
-
- properties = new PropertyDescriptorCollection (props.ToArray ());
- }
-
- public override PropertyDescriptorCollection GetProperties ()
- {
- return properties;
- }
- }
-
- class MyPropertyDescriptor: PropertyDescriptor
- {
- string name;
- Type type;
- string desc;
- ExtensionNodeDescription node;
- string category;
- Type editorType;
-
- public MyPropertyDescriptor (string name, Type type, string desc, string category, ExtensionNodeDescription node): base (name, new Attribute [0])
- {
- if (type == typeof(Type)) {
- type = typeof(string);
- editorType = typeof(TypeCellEditor);
- }
-
- this.name = name;
- this.type = type;
- this.node = node;
- this.desc = desc;
- this.category = category;
- }
-
- protected override void FillAttributes (System.Collections.IList attributeList)
- {
- base.FillAttributes (attributeList);
- if (desc != null)
- attributeList.Add (new DescriptionAttribute (desc));
- if (category != null)
- attributeList.Add (new CategoryAttribute (category));
- if (editorType != null)
- attributeList.Add (new EditorAttribute (editorType, typeof(PropertyEditorCell)));
- }
-
-
- public override Type ComponentType {
- get {
- return typeof(NodeWrapper);
- }
- }
-
- public override bool IsReadOnly {
- get {
- return false;
- }
- }
-
- public override Type PropertyType {
- get {
- return type;
- }
- }
-
- public override bool CanResetValue (object component)
- {
- return false;
- }
-
- public override object GetValue (object component)
- {
- string sval;
- if (name == "insertBefore")
- sval = node.InsertBefore;
- else if (name == "insertAfter")
- sval = node.InsertAfter;
- else if (name == "id")
- sval = node.Id;
- else
- sval = node.GetAttribute (name);
- try {
- return Convert.ChangeType (sval, type);
- } catch {
- return Activator.CreateInstance (type);
- }
- }
-
- public override void SetValue (object component, object value)
- {
- string sval = Convert.ToString (value, CultureInfo.InvariantCulture);
- if (name == "insertBefore")
- node.InsertBefore = sval;
- else if (name == "insertAfter")
- node.InsertAfter = sval;
- else if (name == "id")
- node.Id = sval;
- else
- node.SetAttribute (name, sval);
- }
-
- public override void ResetValue (object component)
- {
- }
-
- public override bool ShouldSerializeValue (object component)
- {
- return true;
- }
- }
-}
diff --git a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/NodeSetEditorDialog.cs b/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/NodeSetEditorDialog.cs
deleted file mode 100644
index 8144a117b7..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/NodeSetEditorDialog.cs
+++ /dev/null
@@ -1,42 +0,0 @@
-// NodeSetEditorDialog.cs
-//
-// Author:
-// Lluis Sanchez Gual <lluis@novell.com>
-//
-// Copyright (c) 2007 Novell, Inc (http://www.novell.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-//
-//
-
-using System;
-
-namespace MonoDevelop.AddinAuthoring
-{
-
-
- public partial class NodeSetEditorDialog : Gtk.Dialog
- {
-
- public NodeSetEditorDialog()
- {
- this.Build();
- }
- }
-}
diff --git a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/NodeSetEditorWidget.cs b/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/NodeSetEditorWidget.cs
deleted file mode 100644
index 6a0ccfdb38..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/NodeSetEditorWidget.cs
+++ /dev/null
@@ -1,223 +0,0 @@
-// NodeSetEditorWidget.cs
-//
-// Author:
-// Lluis Sanchez Gual <lluis@novell.com>
-//
-// Copyright (c) 2007 Novell, Inc (http://www.novell.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-//
-//
-
-using System;
-using System.Collections;
-using Gtk;
-using Mono.Addins;
-using Mono.Addins.Description;
-using MonoDevelop.Projects;
-
-namespace MonoDevelop.AddinAuthoring
-{
-
-
- [System.ComponentModel.Category("MonoDevelop.AddinAuthoring")]
- [System.ComponentModel.ToolboxItem(true)]
- public partial class NodeSetEditorWidget : Gtk.Bin
- {
- ExtensionNodeSet nodeSet;
- TreeStore store;
- AddinRegistry registry;
- AddinDescription adesc;
- DotNetProject project;
-
- const int ColObject = 0;
- const int ColIcon = 1;
- const int ColName = 2;
- const int ColType = 3;
- const int ColDescription = 4;
- const int ColCanEdit = 5;
-
- public NodeSetEditorWidget()
- {
- this.Build();
-
- store = new TreeStore (typeof(object), typeof(string), typeof(string), typeof(string), typeof(string), typeof(bool));
- tree.Model = store;
-
- TreeViewColumn col = new TreeViewColumn ();
- col.Title = "Name";
- CellRendererPixbuf crp = new CellRendererPixbuf ();
- col.PackStart (crp, false);
- CellRendererText crt = new CellRendererText ();
- col.PackStart (crt, true);
- col.Spacing = 3;
- col.AddAttribute (crp, "stock-id", ColIcon);
- col.AddAttribute (crt, "text", ColName);
- col.AddAttribute (crt, "sensitive", ColCanEdit);
-
- tree.AppendColumn (col);
- tree.AppendColumn ("Type", new CellRendererText (), "text", ColType, "sensitive", ColCanEdit);
- tree.AppendColumn ("Description", new CellRendererText (), "text", ColDescription, "sensitive", ColCanEdit);
-
- tree.Selection.Changed += OnSelectionChanged;
- }
-
- public bool AllowEditing {
- get {
- return buttonBox.Visible;
- }
- set {
- buttonBox.Visible = value;
- }
- }
-
- public void Fill (DotNetProject project, AddinRegistry registry, AddinDescription adesc, ExtensionNodeSet nset)
- {
- this.nodeSet = nset;
- this.registry = registry;
- this.adesc = adesc;
- this.project = project;
- Update ();
- }
-
- public void Update ()
- {
- store.Clear ();
- if (nodeSet == null)
- return;
- Hashtable visited = new Hashtable ();
- Fill (TreeIter.Zero, nodeSet, visited, true);
- }
-
- void Fill (TreeIter it, ExtensionNodeSet nset, Hashtable visited, bool isReference)
- {
- if (visited.Contains (nset))
- return;
- visited [nset] = nset;
- foreach (ExtensionNodeType nt in nset.NodeTypes) {
- TreeIter cit;
- if (it.Equals (TreeIter.Zero))
- cit = store.AppendValues (nt, "md-extension-node-type", nt.NodeName, nt.TypeName, nt.Description, isReference);
- else
- cit = store.AppendValues (it, nt, "md-extension-node-type", nt.NodeName, nt.TypeName, nt.Description, isReference);
- Fill (cit, nt, visited, isReference);
- }
- foreach (string ns in nset.NodeSets) {
- TreeIter cit;
- ExtensionNodeSet rns = FindNodeSet (ns);
- if (it.Equals (TreeIter.Zero))
- cit = store.AppendValues (rns, "md-extension-node-set", ns, string.Empty, string.Empty, isReference);
- else
- cit = store.AppendValues (it, rns, "md-extension-node-set", ns, string.Empty, string.Empty, isReference);
- if (rns != null)
- Fill (cit, rns, visited, false);
- }
- }
-
- ExtensionNodeSet FindNodeSet (string name)
- {
- foreach (ExtensionNodeSet ns in adesc.ExtensionNodeSets)
- if (ns.Id == name)
- return ns;
-
- foreach (AddinDependency adep in adesc.MainModule.Dependencies) {
- Addin addin = registry.GetAddin (adep.FullAddinId);
- if (addin != null && addin.Description != null) {
- foreach (ExtensionNodeSet ns in addin.Description.ExtensionNodeSets)
- if (ns.Id == name)
- return ns;
- }
- }
- return null;
- }
-
- void UpdateButtons ()
- {
- TreeIter iter;
- if (tree.Selection.GetSelected (out iter)) {
- bool canedit = (bool) store.GetValue (iter, ColCanEdit);
- removeNodeButton.Sensitive = canedit;
- editNodeButton.Sensitive = canedit && (store.GetValue (iter, ColObject) is ExtensionNodeType);
- } else {
- editNodeButton.Sensitive = removeNodeButton.Sensitive = false;
- }
- }
-
- void OnSelectionChanged (object s, EventArgs args)
- {
- UpdateButtons ();
- }
-
- protected virtual void OnAddNodeButtonClicked (object sender, System.EventArgs e)
- {
- ExtensionNodeType nt = new ExtensionNodeType ();
- NodeTypeEditorDialog dlg = new NodeTypeEditorDialog (project, nt);
- if (dlg.Run () == (int) Gtk.ResponseType.Ok) {
- nodeSet.NodeTypes.Add (nt);
- Update ();
- }
- dlg.Destroy ();
- }
-
- protected virtual void OnAddSetButtonClicked (object sender, System.EventArgs e)
- {
- SelectNodeSetDialog dlg = new SelectNodeSetDialog (project, registry, adesc);
- if (dlg.Run () == (int) ResponseType.Ok) {
- nodeSet.NodeSets.Add (dlg.SelectedNodeSet);
- Update ();
- }
- dlg.Destroy ();
- }
-
- protected virtual void OnRemoveNodeButtonClicked (object sender, System.EventArgs e)
- {
- TreeIter iter;
- tree.Selection.GetSelected (out iter);
- ExtensionNodeSet ns = (ExtensionNodeSet) store.GetValue (iter, ColObject);
- if (ns is ExtensionNodeType) {
- ((ExtensionNodeSet)ns.Parent).NodeTypes.Remove (ns);
- } else {
- string nid = ns.Id;
- if (store.IterParent (out iter, iter)) {
- ExtensionNodeSet pns = (ExtensionNodeSet) store.GetValue (iter, ColObject);
- pns.NodeSets.Remove (nid);
- } else {
- nodeSet.NodeSets.Remove (nid);
- }
- }
- Update ();
- }
-
- protected virtual void OnEditNodeButtonClicked (object sender, System.EventArgs e)
- {
- TreeIter iter;
- tree.Selection.GetSelected (out iter);
- ExtensionNodeType ns = (ExtensionNodeType) store.GetValue (iter, ColObject);
- ExtensionNodeType copy = new ExtensionNodeType ();
- copy.CopyFrom (ns);
-
- NodeTypeEditorDialog dlg = new NodeTypeEditorDialog (project, copy);
- if (dlg.Run () == (int) Gtk.ResponseType.Ok) {
- ns.CopyFrom (copy);
- Update ();
- }
- dlg.Destroy ();
- }
- }
-}
diff --git a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/NodeTypeEditorDialog.cs b/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/NodeTypeEditorDialog.cs
deleted file mode 100644
index 0e98ef40e2..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/NodeTypeEditorDialog.cs
+++ /dev/null
@@ -1,89 +0,0 @@
-// NodeTypeEditorDialog.cs
-//
-// Author:
-// Lluis Sanchez Gual <lluis@novell.com>
-//
-// Copyright (c) 2007 Novell, Inc (http://www.novell.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-//
-//
-
-using System;
-using Mono.Addins.Description;
-using MonoDevelop.Projects;
-
-namespace MonoDevelop.AddinAuthoring
-{
-
-
- public partial class NodeTypeEditorDialog : Gtk.Dialog
- {
- ExtensionNodeType ntype;
- bool nodeNameSet, loading;
-
- public NodeTypeEditorDialog (DotNetProject project, ExtensionNodeType nt)
- {
- this.Build();
- this.ntype = nt;
- nodeType.Project = project;
- baseType.Project = project;
-
- Fill ();
-
- if (nt.Parent == null) {
- loading = true;
- nodeType.TypeName = "Mono.Addins.TypeExtensionNode";
- entryName.Text = "Type";
- loading = false;
- }
- }
-
- void Fill ()
- {
- loading = true;
- entryName.Text = ntype.NodeName;
- nodeType.TypeName = ntype.TypeName;
- baseType.TypeName = ntype.ObjectTypeName;
- entryDesc.Text = ntype.Description;
- loading = false;
- }
-
- protected virtual void OnButtonOkClicked (object sender, System.EventArgs e)
- {
- ntype.NodeName = entryName.Text;
- ntype.TypeName = nodeType.TypeName;
- ntype.ObjectTypeName = baseType.TypeName;
- ntype.Description = entryDesc.Text;
- }
-
- protected virtual void OnNodeTypeChanged (object sender, System.EventArgs e)
- {
- if (nodeType.TypeName == "Mono.Addins.TypeExtensionNode" && !nodeNameSet) {
- entryName.Text = "Type";
- }
- }
-
- protected virtual void OnEntryNameChanged (object sender, System.EventArgs e)
- {
- if (!loading)
- nodeNameSet = true;
- }
- }
-}
diff --git a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/RegistryEventArgs.cs b/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/RegistryEventArgs.cs
deleted file mode 100644
index 8c2aacca08..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/RegistryEventArgs.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-//
-// RegistryEventArgs.cs
-//
-// Author:
-// Lluis Sanchez Gual <lluis@novell.com>
-//
-// Copyright (c) 2011 Novell, Inc (http://www.novell.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-using System;
-using Mono.Addins;
-
-namespace MonoDevelop.AddinAuthoring
-{
- public class RegistryEventArgs: EventArgs
- {
- public AddinRegistry Registry { get; set; }
- }
-}
-
diff --git a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/RegistryExtensionNode.cs b/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/RegistryExtensionNode.cs
deleted file mode 100644
index 05d2fb596f..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/RegistryExtensionNode.cs
+++ /dev/null
@@ -1,97 +0,0 @@
-// RegistryExtensionNode.cs
-//
-// Author:
-// Lluis Sanchez Gual
-//
-// Copyright (c) 2007 Novell, Inc (http://www.novell.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-//
-//
-
-using System;
-using Mono.Addins;
-using MonoDevelop.Core.Serialization;
-
-namespace MonoDevelop.AddinAuthoring
-{
- [DataItem("AddinRegistry")]
- public class RegistryInfo : ExtensionNode
- {
- [ItemProperty()]
- [NodeAttribute("name", Required = true)]
- string name;
-
- [ItemProperty()]
- [NodeAttribute("appPath", Required = true)]
- string appPath;
-
- [ItemProperty()]
- [NodeAttribute("regPath", Required = true)]
- string regPath;
-
- [ItemProperty()]
- [NodeAttribute("description")]
- string description;
-
- [ItemProperty()]
- [NodeAttribute("testCommand")]
- string testCommand;
-
- internal AddinRegistry CachedRegistry { get; set; }
-
- public RegistryInfo ()
- {
- }
-
- public RegistryInfo (Mono.Addins.Setup.Application app)
- {
- name = app.Name;
- description = app.Description;
- regPath = app.Registry.RegistryPath;
- appPath = app.StartupPath;
- testCommand = app.TestCommand;
- }
-
- public string ApplicationName {
- get { return name; }
- set { name = value; }
- }
-
- public string Description {
- get { return description; }
- set { description = value; }
- }
-
- public string ApplicationPath {
- get { return appPath; }
- set { appPath = !string.IsNullOrEmpty (value) ? AddinAuthoringService.NormalizeUserPath (value) : null; }
- }
-
- public string RegistryPath {
- get { return regPath; }
- set { regPath = !string.IsNullOrEmpty (value) ? AddinAuthoringService.NormalizeRegistryPath (value) : null; }
- }
-
- public string TestCommand {
- get { return testCommand; }
- set { testCommand = value; }
- }
- }
-}
diff --git a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/RegistrySelector.cs b/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/RegistrySelector.cs
deleted file mode 100644
index efcf8aa6c0..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/RegistrySelector.cs
+++ /dev/null
@@ -1,76 +0,0 @@
-// RegistrySelector.cs
-//
-// Author:
-// Lluis Sanchez Gual
-//
-// Copyright (c) 2007 Novell, Inc (http://www.novell.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-//
-//
-
-using System;
-using MonoDevelop.Core;
-using Mono.Addins;
-
-namespace MonoDevelop.AddinAuthoring
-{
- [System.ComponentModel.Category("widget")]
- [System.ComponentModel.ToolboxItem(true)]
- public partial class RegistrySelector : Gtk.Bin
- {
- string appName;
-
- public event EventHandler Changed;
-
- public RegistrySelector()
- {
- this.Build();
- }
-
- public string ApplicationName {
- get { return appName; }
- set {
- appName = value;
- UpdateLabel ();
- }
- }
-
- protected virtual void OnButtonBrowseClicked (object sender, System.EventArgs e)
- {
- SelectRepositoryDialog dlg = new SelectRepositoryDialog (appName);
- dlg.TransientFor = this.Toplevel as Gtk.Window;
- if (dlg.Run () == (int) Gtk.ResponseType.Ok) {
- appName = dlg.SelectedApplication.ApplicationName;
- UpdateLabel ();
- if (Changed != null)
- Changed (this, EventArgs.Empty);
- }
- dlg.Destroy ();
- }
-
- void UpdateLabel ()
- {
- if (appName != null)
- label.Text = appName;
- else
- label.Text = AddinManager.CurrentLocalizer.GetString ("(No selection)");
- }
- }
-}
diff --git a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/SelectNodeSetDialog.cs b/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/SelectNodeSetDialog.cs
deleted file mode 100644
index 98b84f3661..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/SelectNodeSetDialog.cs
+++ /dev/null
@@ -1,81 +0,0 @@
-// SelectNodeSetDialog.cs
-//
-// Author:
-// Lluis Sanchez Gual <lluis@novell.com>
-//
-// Copyright (c) 2007 Novell, Inc (http://www.novell.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-//
-//
-
-using System;
-using System.Collections;
-using Mono.Addins;
-using Mono.Addins.Description;
-using MonoDevelop.Projects;
-using Gtk;
-
-namespace MonoDevelop.AddinAuthoring
-{
- public partial class SelectNodeSetDialog : Gtk.Dialog
- {
- Hashtable sets = new Hashtable ();
- DotNetProject project;
- AddinRegistry registry;
- AddinDescription desc;
-
- public SelectNodeSetDialog (DotNetProject project, AddinRegistry registry, AddinDescription desc)
- {
- this.Build();
- this.project = project;
- this.registry = registry;
- this.desc = desc;
-
- foreach (AddinDependency adep in desc.MainModule.Dependencies) {
- Addin addin = registry.GetAddin (adep.FullAddinId);
- if (addin != null && addin.Description != null) {
- foreach (ExtensionNodeSet ns in addin.Description.ExtensionNodeSets) {
- combo.AppendText (ns.Id);
- sets [ns.Id] = ns;
- }
- }
- }
-
- foreach (ExtensionNodeSet ns in desc.ExtensionNodeSets) {
- combo.AppendText (ns.Id);
- sets [ns.Id] = ns;
- }
-
- nodeseteditor.AllowEditing = false;
- buttonOk.Sensitive = false;
- }
-
- protected virtual void OnComboChanged (object sender, System.EventArgs e)
- {
- ExtensionNodeSet ns = (ExtensionNodeSet) sets [combo.Entry.Text];
- nodeseteditor.Fill (project, registry, desc, ns);
- buttonOk.Sensitive = combo.Entry.Text.Length > 0;
- }
-
- public string SelectedNodeSet {
- get { return combo.Entry.Text; }
- }
- }
-}
diff --git a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/SelectRepositoryDialog.cs b/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/SelectRepositoryDialog.cs
deleted file mode 100644
index ec22a5fda9..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/SelectRepositoryDialog.cs
+++ /dev/null
@@ -1,98 +0,0 @@
-
-using System;
-using Gtk;
-using Mono.Addins;
-using MonoDevelop.Components;
-using MonoDevelop.Ide.Gui;
-using MonoDevelop.Ide;
-
-namespace MonoDevelop.AddinAuthoring
-{
- public partial class SelectRepositoryDialog : Gtk.Dialog
- {
- ListStore store;
- TreeViewState state;
-
- public SelectRepositoryDialog (string selection)
- {
- this.Build();
-
- store = new ListStore (typeof(string), typeof(string), typeof(RegistryInfo));
- tree.AppendColumn (AddinManager.CurrentLocalizer.GetString ("Application"), new CellRendererText (), "text", 0);
- tree.AppendColumn (AddinManager.CurrentLocalizer.GetString ("Description"), new CellRendererText (), "text", 1);
- tree.Model = store;
- state = new TreeViewState (tree, 0);
-
- Fill (selection);
-
- tree.Selection.Changed += delegate {
- UpdateButtons ();
- };
- }
-
- void Fill (string selection)
- {
- state.Save ();
- store.Clear ();
-
- TreeIter selIter = TreeIter.Zero;
-
- foreach (RegistryInfo reg in AddinAuthoringService.GetRegistries ()) {
- TreeIter it = store.AppendValues (reg.ApplicationName, reg.Description, reg);
- if (reg.ApplicationName == selection)
- selIter = it;
- }
- state.Load ();
-
- if (!selIter.Equals (TreeIter.Zero))
- tree.Selection.SelectIter (selIter);
- else {
- if (!tree.Selection.GetSelected (out selIter) && store.GetIterFirst (out selIter))
- tree.Selection.SelectIter (selIter);
- }
- UpdateButtons ();
- }
-
- public RegistryInfo SelectedApplication {
- get {
- TreeIter it;
- if (tree.Selection.GetSelected (out it))
- return (RegistryInfo) store.GetValue (it, 2);
- else
- return null;
- }
- }
-
- void UpdateButtons ()
- {
- buttonOk.Sensitive = SelectedApplication != null;
- }
-
- protected virtual void OnButtonAddClicked (object sender, System.EventArgs e)
- {
- NewRegistryDialog dlg = new NewRegistryDialog (null);
- dlg.TransientFor = this;
- if (dlg.Run () == (int) Gtk.ResponseType.Ok) {
- RegistryInfo reg = new RegistryInfo ();
- reg.ApplicationName = dlg.ApplicationName;
- reg.ApplicationPath = dlg.ApplicationPath;
- reg.RegistryPath = dlg.RegistryPath;
- AddinAuthoringService.AddCustomRegistry (reg);
- Fill (null);
- }
- dlg.Destroy ();
- }
-
- protected virtual void OnButtonRemoveClicked (object sender, System.EventArgs e)
- {
- string q = AddinManager.CurrentLocalizer.GetString ("Are you sure you want to remove this registry reference?");
- if (MessageService.Confirm (q, AlertButton.Remove)) {
- TreeIter it;
- tree.Selection.GetSelected (out it);
- RegistryInfo reg = (RegistryInfo) store.GetValue (it, 2);
- AddinAuthoringService.RemoveCustomRegistry (reg);
- Fill (null);
- }
- }
- }
-}
diff --git a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/SolutionAddinData.cs b/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/SolutionAddinData.cs
deleted file mode 100644
index 1b96466796..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/SolutionAddinData.cs
+++ /dev/null
@@ -1,190 +0,0 @@
-//
-// SolutionAddinData.cs
-//
-// Author:
-// Lluis Sanchez Gual <lluis@novell.com>
-//
-// Copyright (c) 2009 Novell, Inc (http://www.novell.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-using System;
-using System.Xml;
-using System.IO;
-using MonoDevelop.Core;
-using MonoDevelop.Projects;
-using Mono.Addins;
-using Mono.Addins.Setup;
-using MonoDevelop.Ide;
-
-namespace MonoDevelop.AddinAuthoring
-{
- public class SolutionAddinData: IDisposable
- {
- AddinRegistry registry;
- Solution solution;
- RegistryInfo regInfo;
- AddinFileSystem customFileSystem;
- bool registryNeedsUpdate;
- bool updatePlanned;
-
- const int RegistryChangeNotifDelay = 1 * 1000;
-
- public SolutionAddinData (Solution sol)
- {
- solution = sol;
- customFileSystem = new AddinFileSystem (sol);
- customFileSystem.Changed += OnSolutionChanged;
- }
-
- public void Dispose ()
- {
- customFileSystem.Dispose ();
- }
-
- FilePath TempRegistryPath {
- get {
-
- return solution.BaseDirectory.Combine (".temp-addin-registry").Combine (IdeApp.Workspace.ActiveConfigurationId ?? "Default");
- }
- }
-
- public string ApplicationName {
- get { return regInfo != null ? regInfo.ApplicationName : null; }
- set {
- if (regInfo != null && regInfo.ApplicationName == value)
- return;
- Application app = SetupService.GetExtensibleApplication (value);
- if (app != null)
- ExternalRegistryInfo = new RegistryInfo (app);
- else {
- RegistryInfo ri = new RegistryInfo ();
- ri.ApplicationName = value;
- ExternalRegistryInfo = ri;
- }
- }
- }
-
- public RegistryInfo ExternalRegistryInfo {
- get {
- return regInfo;
- }
- set {
- regInfo = value;
- registry = null;
- if (value != null)
- solution.UserProperties.SetValue ("MonoDevelop.AddinAuthoring.RegistryInfo", value);
- else
- solution.UserProperties.RemoveValue ("MonoDevelop.AddinAuthoring.RegistryInfo");
- }
- }
-
- public FilePath TestRegistryPath {
- get { return TempRegistryPath; }
- }
-
- public void SetupTestRegistry ()
- {
- UpdateRegistry ();
- }
-
- public AddinRegistry Registry {
- get {
- lock (this) {
- if (registry == null) {
- ResetRegistry ();
- UpdateRegistry ();
- }
- else if (registryNeedsUpdate)
- UpdateRegistry ();
- }
- return registry;
- }
- }
-
- public void ResetRegistry ()
- {
- registry = null;
- RegistryInfo ri = ExternalRegistryInfo;
- if (ri != null) {
- if (string.IsNullOrEmpty (ri.ApplicationPath) || string.IsNullOrEmpty (ri.RegistryPath))
- throw new InvalidOperationException ();
- else
- registry = new AddinRegistry (ri.RegistryPath, ri.ApplicationPath);
- }
- if (registry == null) {
- FilePath path = TempRegistryPath;
- registry = new AddinRegistry (path, path);
- }
- registry.RegisterExtension (customFileSystem);
- }
-
- public void UpdateRegistry ()
- {
- registryNeedsUpdate = false;
-
- FilePath addinsPath = TempRegistryPath.Combine ("addins");
- if (!Directory.Exists (addinsPath))
- Directory.CreateDirectory (addinsPath);
- using (StreamWriter sw = new StreamWriter (TempRegistryPath.Combine ("dummy.addin.xml"))) {
- sw.WriteLine ("<Addin id=\"__\" version=\"1.0\" namespace=\"__\" isroot=\"true\" name=\"__\"/>");
- }
- FilePath includeFile = addinsPath.Combine ("all.addins");
- using (StreamWriter sw = new StreamWriter (includeFile)) {
- XmlTextWriter tw = new XmlTextWriter (sw);
- tw.Formatting = Formatting.Indented;
- tw.WriteStartElement ("Addins");
- foreach (DotNetProject p in solution.GetAllSolutionItems<DotNetProject> ()) {
- tw.WriteElementString ("Directory", p.GetOutputFileName (IdeApp.Workspace.ActiveConfiguration).ParentDirectory);
- }
- tw.WriteEndElement ();
- }
- Registry.Update (new ConsoleProgressStatus (false));
- AddinAuthoringService.NotifyRegistryChanged (Registry);
- }
-
- void OnSolutionChanged (object sender, EventArgs e)
- {
- lock (this) {
- if (!updatePlanned) {
- updatePlanned = true;
- GLib.Timeout.Add (RegistryChangeNotifDelay, OnDelayedUpdate);
- }
- }
- }
-
- bool OnDelayedUpdate ()
- {
- lock (this) {
- updatePlanned = false;
- UpdateRegistry ();
- }
- return false;
- }
-
- public void NotifyChanged ()
- {
- foreach (DotNetProject p in solution.GetAllSolutionItems<DotNetProject> ()) {
- AddinData data = p.GetAddinData ();
- if (data != null)
- data.NotifyChanged (false);
- }
- }
- }
-}
diff --git a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/StartupHandler.cs b/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/StartupHandler.cs
deleted file mode 100644
index d69454c5b3..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/StartupHandler.cs
+++ /dev/null
@@ -1,63 +0,0 @@
-//
-// StartupHandler.cs
-//
-// Author:
-// Lluis Sanchez Gual <lluis@novell.com>
-//
-// Copyright (c) 2011 Novell, Inc (http://www.novell.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-using System;
-using Mono.Addins;
-using MonoDevelop.Components.Commands;
-using MonoDevelop.Ide.Extensions;
-using MonoDevelop.Projects;
-using MonoDevelop.Ide.Gui;
-
-namespace MonoDevelop.AddinAuthoring
-{
- [Extension ("/MonoDevelop/Ide/StartupHandlers", NodeName="Class")]
- public class StartupHandler: CommandHandler
- {
- protected override void Run ()
- {
- Ide.IdeApp.Workbench.DocumentOpened += HandleDocumentOpened;
- }
-
- void HandleDocumentOpened (object sender, DocumentEventArgs e)
- {
- if (!(e.Document.Project is DotNetProject) || !e.Document.IsFile)
- return;
- string ext = e.Document.FileName;
- if (!ext.EndsWith (".addin.xml") && !ext.EndsWith (".addin"))
- return;
-
- var data = AddinData.GetAddinData ((DotNetProject)e.Document.Project);
- if (data != null) {
- IWorkbenchWindow window = e.Document.Window;
- var adesc = data.AddinRegistry.ReadAddinManifestFile (e.Document.FileName);
-
- window.AttachViewContent (new ExtensionEditorView (adesc, data));
- window.AttachViewContent (new ExtensionPointsEditorView (adesc, data));
- }
-
- }
- }
-}
-
diff --git a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/TypeCellEditor.cs b/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/TypeCellEditor.cs
deleted file mode 100644
index 81f7b3cc3b..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/TypeCellEditor.cs
+++ /dev/null
@@ -1,97 +0,0 @@
-//
-// DateTimeEditorCell.cs
-//
-// Author:
-// Lluis Sanchez Gual
-//
-// Copyright (C) 2007 Novell, Inc (http://www.novell.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-using System;
-using Gtk;
-using Gdk;
-using System.Text;
-using System.ComponentModel;
-using MonoDevelop.Components.PropertyGrid;
-
-namespace MonoDevelop.AddinAuthoring
-{
- public class TypeCellEditor: PropertyEditorCell
- {
- protected override string GetValueText ()
- {
- return Value.ToString ();
- }
-
- protected override IPropertyEditor CreateEditor (Gdk.Rectangle cell_area, Gtk.StateType state)
- {
- return new TypeEditor ();
- }
- }
-
- public class TypeEditor: Gtk.HBox, IPropertyEditor
- {
- Gtk.Entry entry;
- Gtk.Button goButton;
- Gtk.Button createButton;
-
- static TypeEditor ()
- {
- Gtk.Rc.ParseString ("style \"MonoDevelop.AddinAuthoring.TypeEditor\" {\n GtkButton::inner-border = {0,0,0,0}\n }\n");
- Gtk.Rc.ParseString ("widget \"*.MonoDevelop.AddinAuthoring.TypeEditor\" style \"MonoDevelop.AddinAuthoring.TypeEditor\"\n");
- }
-
- public TypeEditor()
- {
- entry = new Gtk.Entry ();
- entry.Changed += OnChanged;
- entry.HasFrame = false;
- PackStart (entry, true, true, 0);
- goButton = new Button (new Gtk.Image (Gtk.Stock.JumpTo, IconSize.Menu));
- goButton.Relief = ReliefStyle.None;
- PackStart (goButton, false, false, 0);
- goButton.Name = "MonoDevelop.AddinAuthoring.TypeEditor";
- createButton = new Button (new Gtk.Image ("md-addinauthoring-newclass", IconSize.Menu));
- createButton.Relief = ReliefStyle.None;
- createButton.Name = "MonoDevelop.AddinAuthoring.TypeEditor";
- PackStart (createButton, false, false, 0);
- ShowAll ();
- }
-
- public void Initialize (EditSession session)
- {
- }
-
- public object Value {
- get { return entry.Text; }
- set { entry.Text = (string) value; }
- }
-
- void OnChanged (object o, EventArgs a)
- {
- if (ValueChanged != null)
- ValueChanged (this, a);
- }
-
- public event EventHandler ValueChanged;
- }
-}
diff --git a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/TypeSelector.cs b/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/TypeSelector.cs
deleted file mode 100644
index 07d4f9a3ce..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/TypeSelector.cs
+++ /dev/null
@@ -1,207 +0,0 @@
-// TypeSelector.cs
-//
-// Author:
-// Lluis Sanchez Gual <lluis@novell.com>
-//
-// Copyright (c) 2007 Novell, Inc (http://www.novell.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-//
-//
-
-using System;
-using System.Collections.Generic;
-using MonoDevelop.Core;
-using MonoDevelop.Projects.Dom;
-using MonoDevelop.Projects.Dom.Parser;
-using MonoDevelop.Projects;
-using MonoDevelop.Ide.Gui;
-using Mono.Addins;
-
-namespace MonoDevelop.AddinAuthoring
-{
-
-
- [System.ComponentModel.Category("MonoDevelop.AddinAuthoring")]
- [System.ComponentModel.ToolboxItem(true)]
- public partial class TypeSelector : Gtk.Bin
- {
- bool allowCreate = true;
- bool allowCreateInterface = true;
- IEnumerable<IType> typeList;
- DotNetProject project;
- bool loading;
-
- string newClassLabel = AddinManager.CurrentLocalizer.GetString ("(New Class)");
- string newInterfaceLabel = AddinManager.CurrentLocalizer.GetString ("(New Interface)");
-
- public event EventHandler Changed;
-
- public TypeSelector()
- {
- this.Build();
- FillCombo ();
- combo.Entry.Changed += OnEntryChanged;
- }
-
- public TypeSelector (DotNetProject project, string typeName): this ()
- {
- this.project = project;
- combo.Entry.Text = typeName;
- FillCombo ();
- }
-
- public DotNetProject Project {
- get { return project; }
- set {
- project = value;
- FillCombo ();
- }
- }
-
- public bool AllowCreate {
- get {
- return allowCreate;
- }
- set {
- allowCreate = value;
- typeImage.Visible = value;
- FillCombo ();
- }
- }
-
- public IEnumerable<IType> TypeList {
- get {
- if (typeList == null && project != null) {
- ProjectDom ctx = ProjectDomService.GetProjectDom (project);
- typeList = ctx.Types;
- }
- return typeList;
- }
- set {
- typeList = value;
- FillCombo ();
- }
- }
-
- public bool AllowCreateInterface {
- get {
- return allowCreateInterface;
- }
- set {
- allowCreateInterface = value;
- FillCombo ();
- }
- }
-
- public new string TypeName {
- get {
- return combo.Entry.Text;
- }
- set {
- combo.Entry.Text = value;
- }
- }
-
- void FillCombo ()
- {
- loading = true;
-
- ((Gtk.ListStore)combo.Model).Clear ();
- if (allowCreate) {
- combo.AppendText (newClassLabel);
- if (allowCreateInterface)
- combo.AppendText (newInterfaceLabel);
- }
-
- if (TypeList == null) {
- UpdateIcon ();
- return;
- }
-
- foreach (IType cls in TypeList) {
- if (cls.ClassType != ClassType.Class && cls.ClassType != ClassType.Interface)
- continue;
- combo.AppendText (cls.FullName);
- }
- UpdateIcon ();
-
- loading = false;
- }
-
- [GLib.ConnectBeforeAttribute]
- protected virtual void OnComboChanged (object sender, System.EventArgs e)
- {
- string newIcon = null;
- if (combo.Entry.Text == newClassLabel) {
- newIcon = "md-addinauthoring-newclass";
- }
- if (combo.Entry.Text == newInterfaceLabel) {
- newIcon = "md-addinauthoring-newinterface";
- }
-
- if (newIcon != null) {
- if (project.DefaultNamespace.Length > 0)
- combo.Entry.Text = project.DefaultNamespace + ".";
- eventbox.Remove (typeImage);
- typeImage = new Gtk.Image (newIcon, Gtk.IconSize.Menu);
- eventbox.Add (typeImage);
- eventbox.ShowAll ();
- } else {
- eventbox.Hide ();
- }
- if (!loading)
- OnChanged ();
- }
-
- bool IsKnownType ()
- {
- if (TypeList == null)
- return false;
- foreach (IType cls in TypeList) {
- if (cls.ClassType != ClassType.Class && cls.ClassType != ClassType.Interface)
- continue;
- if (cls.FullName == TypeName)
- return true;
- }
- return false;
- }
-
- [GLib.ConnectBeforeAttribute]
- protected virtual void OnEntryChanged (object sender, System.EventArgs e)
- {
- UpdateIcon ();
- }
-
- void UpdateIcon ()
- {
- if (TypeName.Length == 0 || IsKnownType ()) {
- eventbox.Hide ();
- } else {
- eventbox.Show ();
- }
- }
-
- public virtual void OnChanged ()
- {
- if (Changed != null)
- Changed (this, EventArgs.Empty);
- }
- }
-}
diff --git a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/Util.cs b/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/Util.cs
deleted file mode 100644
index 0e63d0c95b..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring/Util.cs
+++ /dev/null
@@ -1,85 +0,0 @@
-//
-// Util.cs
-//
-// Author:
-// Lluis Sanchez Gual <lluis@novell.com>
-//
-// Copyright (c) 2010 Novell, Inc (http://www.novell.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-using System;
-using System.Collections.Generic;
-using Mono.Addins.Description;
-
-namespace MonoDevelop.AddinAuthoring
-{
- public static class Util
- {
- public static string GetDisplayName (AddinDescription ad)
- {
- if (!string.IsNullOrEmpty (ad.Name))
- return ad.Name;
- else
- return ad.LocalId;
- }
-
- public static string GetDisplayName (ExtensionPoint ep)
- {
- if (string.IsNullOrEmpty (ep.Name))
- return ep.Path;
- else
- return ep.Name;
- }
-
- public static string GetDisplayName (Extension ext)
- {
- ObjectDescription ob = ext.GetExtendedObject ();
- string desc = "";
- string label;
- Extension lastExtension = ext;
- while (ob is ExtensionNodeDescription) {
- ExtensionNodeDescription en = (ExtensionNodeDescription) ob;
- if (desc.Length > 0)
- desc = " / " + desc;
- desc = en.Id + desc;
- ob = (ObjectDescription) en.Parent;
- if (ob is Extension) {
- lastExtension = (Extension) ob;
- ob = lastExtension.GetExtendedObject ();
- }
- }
- ExtensionPoint ep = ob as ExtensionPoint;
- if (ep != null) {
- if (!string.IsNullOrEmpty (ep.Name))
- label = ep.Name;
- else
- label = ep.Path;
- } else if (lastExtension != null) {
- label = lastExtension.Path;
- } else {
- label = "(Unknown Extension Point)";
- }
- if (!string.IsNullOrEmpty (desc))
- label += " / " + desc;
- return label;
- }
- }
-}
-
diff --git a/extras/MonoDevelop.AddinAuthoring/addin-reference.png b/extras/MonoDevelop.AddinAuthoring/addin-reference.png
deleted file mode 100644
index f9a971623b..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/addin-reference.png
+++ /dev/null
Binary files differ
diff --git a/extras/MonoDevelop.AddinAuthoring/configure b/extras/MonoDevelop.AddinAuthoring/configure
deleted file mode 100755
index 698fb6da07..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/configure
+++ /dev/null
@@ -1,109 +0,0 @@
-#!/usr/bin/env bash
-VERSION=4.2.3
-PACKAGE=monodevelop_addinauthoring
-prefix=/usr/local
-config=DEBUG
-configurations=" RELEASE DEBUG"
-common_packages=" monodevelop;4.2.3 gtk-sharp-2.0;2.12.8 mono-addins-setup;0.4 mono-addins;0.5"
-
-
-usage ()
-{
- echo "Usage : configure [--prefix=PREFIX] [--config=CONFIG]"
- echo
- echo "Configurations available :"
- for c in $configurations; do
- if [ "$c" = "$config" ]; then
- echo " $c (Default)"
- else
- echo " $c"
- fi
- done
-}
-
-validate_config ()
-{
- test -z "$1" && return 0
- for c in $configurations; do
- if [ "$c" = "$1" ]; then
- return 1
- fi
- done
- return 0
-}
-
-check_package ()
-{
- name=`echo $1 | cut -d\; -f1`
- version=`echo $1 | cut -d\; -f2`
-
- echo -n "Checking for package '$name'.." | tee -a config.log
- pkg-config --atleast-version=$version $name
- if [ $? -ne 0 ]; then
- echo " ERROR: Package named '$name' >= $version not found." | tee -a config.log
- echo "Try adjusting your PKG_CONFIG_PATH environment variable." | tee -a config.log
- return 1
- fi
- echo " found." | tee -a config.log
-}
-
-check_required_packages ()
-{
- echo "Looking for required packages" | tee config.log
- var=required_packages_$config
- for pkg in $common_packages ${!var}; do
- check_package $pkg
- retval=$?
- [ $retval -ne 0 ] && return $retval
- done
- return 0
-}
-
-while test x$1 != x; do
- case $1 in
- --prefix=*)
- prefix=`echo $1 | sed 's/--prefix=//'`
- ;;
- --prefix)
- shift
- prefix=$1
- ;;
- --config=*)
- conf=`echo $1 | sed 's/--config=//'`
- validate_config "$conf"
- if [ $? -eq 1 ]; then
- config=$conf
- else
- echo "Invalid config name - $conf"
- usage
- exit 1
- fi
- ;;
- --help)
- usage
- exit
- ;;
- *)
- echo Unknown argument $1 >&2
- usage
- exit 1
- ;;
- esac
- shift
-done
-
-check_required_packages
-[ $? -eq 1 ] && exit 1
-
-echo "prefix=$prefix" > config.make
-echo "RUNTIME=mono" >> config.make
-echo "ASSEMBLY_VERSION=$VERSION.0.0" >> config.make
-echo "VERSION=$VERSION" >> config.make
-echo "PACKAGE=$PACKAGE" >> config.make
-echo "CONFIG=$config" >> config.make
-
-echo
-echo "$PACKAGE has been configured with "
-echo " prefix = $prefix"
-echo " config = $config"
-echo
diff --git a/extras/MonoDevelop.AddinAuthoring/extension-node-set.png b/extras/MonoDevelop.AddinAuthoring/extension-node-set.png
deleted file mode 100644
index 7d390d5e30..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/extension-node-set.png
+++ /dev/null
Binary files differ
diff --git a/extras/MonoDevelop.AddinAuthoring/extension-node-type.png b/extras/MonoDevelop.AddinAuthoring/extension-node-type.png
deleted file mode 100644
index 430c7dc733..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/extension-node-type.png
+++ /dev/null
Binary files differ
diff --git a/extras/MonoDevelop.AddinAuthoring/extension-point.png b/extras/MonoDevelop.AddinAuthoring/extension-point.png
deleted file mode 100644
index 38cdb35baa..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/extension-point.png
+++ /dev/null
Binary files differ
diff --git a/extras/MonoDevelop.AddinAuthoring/extension.png b/extras/MonoDevelop.AddinAuthoring/extension.png
deleted file mode 100644
index d9159a3560..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/extension.png
+++ /dev/null
Binary files differ
diff --git a/extras/MonoDevelop.AddinAuthoring/flare.png b/extras/MonoDevelop.AddinAuthoring/flare.png
deleted file mode 100644
index d5f829bf91..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/flare.png
+++ /dev/null
Binary files differ
diff --git a/extras/MonoDevelop.AddinAuthoring/gtk-gui/MonoDevelop.AddinAuthoring.AddinDescriptionWidget.cs b/extras/MonoDevelop.AddinAuthoring/gtk-gui/MonoDevelop.AddinAuthoring.AddinDescriptionWidget.cs
deleted file mode 100644
index 5651ea479a..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/gtk-gui/MonoDevelop.AddinAuthoring.AddinDescriptionWidget.cs
+++ /dev/null
@@ -1,402 +0,0 @@
-
-// This file has been generated by the GUI designer. Do not modify.
-namespace MonoDevelop.AddinAuthoring
-{
- public partial class AddinDescriptionWidget
- {
- private global::Gtk.UIManager UIManager;
- private global::Gtk.VBox mainBox;
- private global::Gtk.Notebook notebook;
- private global::Gtk.VBox vbox3;
- private global::Gtk.Table table1;
- private global::Gtk.CheckButton checkIsRoot;
- private global::Gtk.ComboBoxEntry comboNs;
- private global::Gtk.Entry entryAuthor;
- private global::Gtk.Entry entryIdentifier;
- private global::Gtk.Entry entryLicense;
- private global::Gtk.Entry entryName;
- private global::Gtk.Entry entryUrl;
- private global::Gtk.HBox hbox9;
- private global::Gtk.Entry entryVersion;
- private global::Gtk.Label label4;
- private global::Gtk.Entry entryCompatVersion;
- private global::Gtk.HSeparator hseparator1;
- private global::Gtk.HSeparator hseparator2;
- private global::Gtk.Label label12;
- private global::Gtk.Label label13;
- private global::Gtk.Label label14;
- private global::Gtk.Label label15;
- private global::Gtk.Label label2;
- private global::Gtk.Label label3;
- private global::Gtk.Label label7;
- private global::Gtk.Label label8;
- private global::Gtk.ScrolledWindow scrolledwindow1;
- private global::Gtk.TextView textviewDesc;
- private global::Gtk.HSeparator hseparator3;
- private global::Gtk.Label label5;
- private global::MonoDevelop.AddinAuthoring.ExtensionPointsEditorWidget extensionPointsEditor;
- private global::Gtk.Label label9;
- private global::Gtk.HBox hbox5;
- private global::MonoDevelop.AddinAuthoring.ExtensionEditorWidget extensionEditor;
- private global::Gtk.Label label10;
-
- protected virtual void Build ()
- {
- global::Stetic.Gui.Initialize (this);
- // Widget MonoDevelop.AddinAuthoring.AddinDescriptionWidget
- Stetic.BinContainer w1 = global::Stetic.BinContainer.Attach (this);
- this.UIManager = new global::Gtk.UIManager ();
- global::Gtk.ActionGroup w2 = new global::Gtk.ActionGroup ("Default");
- this.UIManager.InsertActionGroup (w2, 0);
- this.Name = "MonoDevelop.AddinAuthoring.AddinDescriptionWidget";
- // Container child MonoDevelop.AddinAuthoring.AddinDescriptionWidget.Gtk.Container+ContainerChild
- this.mainBox = new global::Gtk.VBox ();
- this.mainBox.Name = "mainBox";
- this.mainBox.Spacing = 3;
- // Container child mainBox.Gtk.Box+BoxChild
- this.notebook = new global::Gtk.Notebook ();
- this.notebook.CanFocus = true;
- this.notebook.Name = "notebook";
- this.notebook.CurrentPage = 2;
- this.notebook.TabPos = ((global::Gtk.PositionType)(3));
- // Container child notebook.Gtk.Notebook+NotebookChild
- this.vbox3 = new global::Gtk.VBox ();
- this.vbox3.Name = "vbox3";
- this.vbox3.Spacing = 6;
- // Container child vbox3.Gtk.Box+BoxChild
- this.table1 = new global::Gtk.Table (((uint)(11)), ((uint)(2)), false);
- this.table1.Name = "table1";
- this.table1.RowSpacing = ((uint)(6));
- this.table1.ColumnSpacing = ((uint)(6));
- this.table1.BorderWidth = ((uint)(12));
- // Container child table1.Gtk.Table+TableChild
- this.checkIsRoot = new global::Gtk.CheckButton ();
- this.checkIsRoot.CanFocus = true;
- this.checkIsRoot.Name = "checkIsRoot";
- this.checkIsRoot.Label = global::Mono.Addins.AddinManager.CurrentLocalizer.GetString ("Add-in root");
- this.checkIsRoot.DrawIndicator = true;
- this.checkIsRoot.UseUnderline = true;
- this.table1.Add (this.checkIsRoot);
- global::Gtk.Table.TableChild w3 = ((global::Gtk.Table.TableChild)(this.table1 [this.checkIsRoot]));
- w3.TopAttach = ((uint)(3));
- w3.BottomAttach = ((uint)(4));
- w3.RightAttach = ((uint)(2));
- w3.YOptions = ((global::Gtk.AttachOptions)(4));
- // Container child table1.Gtk.Table+TableChild
- this.comboNs = global::Gtk.ComboBoxEntry.NewText ();
- this.comboNs.Name = "comboNs";
- this.table1.Add (this.comboNs);
- global::Gtk.Table.TableChild w4 = ((global::Gtk.Table.TableChild)(this.table1 [this.comboNs]));
- w4.TopAttach = ((uint)(1));
- w4.BottomAttach = ((uint)(2));
- w4.LeftAttach = ((uint)(1));
- w4.RightAttach = ((uint)(2));
- w4.YOptions = ((global::Gtk.AttachOptions)(4));
- // Container child table1.Gtk.Table+TableChild
- this.entryAuthor = new global::Gtk.Entry ();
- this.entryAuthor.CanFocus = true;
- this.entryAuthor.Name = "entryAuthor";
- this.entryAuthor.IsEditable = true;
- this.entryAuthor.InvisibleChar = '●';
- this.table1.Add (this.entryAuthor);
- global::Gtk.Table.TableChild w5 = ((global::Gtk.Table.TableChild)(this.table1 [this.entryAuthor]));
- w5.TopAttach = ((uint)(8));
- w5.BottomAttach = ((uint)(9));
- w5.LeftAttach = ((uint)(1));
- w5.RightAttach = ((uint)(2));
- w5.YOptions = ((global::Gtk.AttachOptions)(4));
- // Container child table1.Gtk.Table+TableChild
- this.entryIdentifier = new global::Gtk.Entry ();
- this.entryIdentifier.CanFocus = true;
- this.entryIdentifier.Name = "entryIdentifier";
- this.entryIdentifier.IsEditable = true;
- this.entryIdentifier.InvisibleChar = '●';
- this.table1.Add (this.entryIdentifier);
- global::Gtk.Table.TableChild w6 = ((global::Gtk.Table.TableChild)(this.table1 [this.entryIdentifier]));
- w6.LeftAttach = ((uint)(1));
- w6.RightAttach = ((uint)(2));
- w6.YOptions = ((global::Gtk.AttachOptions)(4));
- // Container child table1.Gtk.Table+TableChild
- this.entryLicense = new global::Gtk.Entry ();
- this.entryLicense.CanFocus = true;
- this.entryLicense.Name = "entryLicense";
- this.entryLicense.IsEditable = true;
- this.entryLicense.InvisibleChar = '●';
- this.table1.Add (this.entryLicense);
- global::Gtk.Table.TableChild w7 = ((global::Gtk.Table.TableChild)(this.table1 [this.entryLicense]));
- w7.TopAttach = ((uint)(9));
- w7.BottomAttach = ((uint)(10));
- w7.LeftAttach = ((uint)(1));
- w7.RightAttach = ((uint)(2));
- w7.YOptions = ((global::Gtk.AttachOptions)(4));
- // Container child table1.Gtk.Table+TableChild
- this.entryName = new global::Gtk.Entry ();
- this.entryName.CanFocus = true;
- this.entryName.Name = "entryName";
- this.entryName.IsEditable = true;
- this.entryName.InvisibleChar = '●';
- this.table1.Add (this.entryName);
- global::Gtk.Table.TableChild w8 = ((global::Gtk.Table.TableChild)(this.table1 [this.entryName]));
- w8.TopAttach = ((uint)(5));
- w8.BottomAttach = ((uint)(6));
- w8.LeftAttach = ((uint)(1));
- w8.RightAttach = ((uint)(2));
- w8.YOptions = ((global::Gtk.AttachOptions)(4));
- // Container child table1.Gtk.Table+TableChild
- this.entryUrl = new global::Gtk.Entry ();
- this.entryUrl.CanFocus = true;
- this.entryUrl.Name = "entryUrl";
- this.entryUrl.IsEditable = true;
- this.entryUrl.InvisibleChar = '●';
- this.table1.Add (this.entryUrl);
- global::Gtk.Table.TableChild w9 = ((global::Gtk.Table.TableChild)(this.table1 [this.entryUrl]));
- w9.TopAttach = ((uint)(10));
- w9.BottomAttach = ((uint)(11));
- w9.LeftAttach = ((uint)(1));
- w9.RightAttach = ((uint)(2));
- w9.YOptions = ((global::Gtk.AttachOptions)(4));
- // Container child table1.Gtk.Table+TableChild
- this.hbox9 = new global::Gtk.HBox ();
- this.hbox9.Name = "hbox9";
- this.hbox9.Spacing = 6;
- // Container child hbox9.Gtk.Box+BoxChild
- this.entryVersion = new global::Gtk.Entry ();
- this.entryVersion.CanFocus = true;
- this.entryVersion.Name = "entryVersion";
- this.entryVersion.IsEditable = true;
- this.entryVersion.WidthChars = 15;
- this.entryVersion.InvisibleChar = '●';
- this.hbox9.Add (this.entryVersion);
- global::Gtk.Box.BoxChild w10 = ((global::Gtk.Box.BoxChild)(this.hbox9 [this.entryVersion]));
- w10.Position = 0;
- w10.Expand = false;
- w10.Fill = false;
- // Container child hbox9.Gtk.Box+BoxChild
- this.label4 = new global::Gtk.Label ();
- this.label4.Name = "label4";
- this.label4.LabelProp = global::Mono.Addins.AddinManager.CurrentLocalizer.GetString ("Compatible Version:");
- this.hbox9.Add (this.label4);
- global::Gtk.Box.BoxChild w11 = ((global::Gtk.Box.BoxChild)(this.hbox9 [this.label4]));
- w11.Position = 1;
- w11.Expand = false;
- w11.Fill = false;
- // Container child hbox9.Gtk.Box+BoxChild
- this.entryCompatVersion = new global::Gtk.Entry ();
- this.entryCompatVersion.CanFocus = true;
- this.entryCompatVersion.Name = "entryCompatVersion";
- this.entryCompatVersion.IsEditable = true;
- this.entryCompatVersion.WidthChars = 15;
- this.entryCompatVersion.InvisibleChar = '●';
- this.hbox9.Add (this.entryCompatVersion);
- global::Gtk.Box.BoxChild w12 = ((global::Gtk.Box.BoxChild)(this.hbox9 [this.entryCompatVersion]));
- w12.Position = 2;
- w12.Expand = false;
- w12.Fill = false;
- this.table1.Add (this.hbox9);
- global::Gtk.Table.TableChild w13 = ((global::Gtk.Table.TableChild)(this.table1 [this.hbox9]));
- w13.TopAttach = ((uint)(2));
- w13.BottomAttach = ((uint)(3));
- w13.LeftAttach = ((uint)(1));
- w13.RightAttach = ((uint)(2));
- w13.XOptions = ((global::Gtk.AttachOptions)(4));
- w13.YOptions = ((global::Gtk.AttachOptions)(4));
- // Container child table1.Gtk.Table+TableChild
- this.hseparator1 = new global::Gtk.HSeparator ();
- this.hseparator1.Name = "hseparator1";
- this.table1.Add (this.hseparator1);
- global::Gtk.Table.TableChild w14 = ((global::Gtk.Table.TableChild)(this.table1 [this.hseparator1]));
- w14.TopAttach = ((uint)(7));
- w14.BottomAttach = ((uint)(8));
- w14.RightAttach = ((uint)(2));
- w14.XOptions = ((global::Gtk.AttachOptions)(4));
- w14.YOptions = ((global::Gtk.AttachOptions)(4));
- // Container child table1.Gtk.Table+TableChild
- this.hseparator2 = new global::Gtk.HSeparator ();
- this.hseparator2.Name = "hseparator2";
- this.table1.Add (this.hseparator2);
- global::Gtk.Table.TableChild w15 = ((global::Gtk.Table.TableChild)(this.table1 [this.hseparator2]));
- w15.TopAttach = ((uint)(4));
- w15.BottomAttach = ((uint)(5));
- w15.RightAttach = ((uint)(2));
- w15.XOptions = ((global::Gtk.AttachOptions)(4));
- w15.YOptions = ((global::Gtk.AttachOptions)(4));
- // Container child table1.Gtk.Table+TableChild
- this.label12 = new global::Gtk.Label ();
- this.label12.Name = "label12";
- this.label12.Xalign = 0F;
- this.label12.LabelProp = global::Mono.Addins.AddinManager.CurrentLocalizer.GetString ("License:");
- this.table1.Add (this.label12);
- global::Gtk.Table.TableChild w16 = ((global::Gtk.Table.TableChild)(this.table1 [this.label12]));
- w16.TopAttach = ((uint)(9));
- w16.BottomAttach = ((uint)(10));
- w16.XOptions = ((global::Gtk.AttachOptions)(4));
- w16.YOptions = ((global::Gtk.AttachOptions)(4));
- // Container child table1.Gtk.Table+TableChild
- this.label13 = new global::Gtk.Label ();
- this.label13.Name = "label13";
- this.label13.Xalign = 0F;
- this.label13.LabelProp = global::Mono.Addins.AddinManager.CurrentLocalizer.GetString ("Author:");
- this.table1.Add (this.label13);
- global::Gtk.Table.TableChild w17 = ((global::Gtk.Table.TableChild)(this.table1 [this.label13]));
- w17.TopAttach = ((uint)(8));
- w17.BottomAttach = ((uint)(9));
- w17.XOptions = ((global::Gtk.AttachOptions)(4));
- w17.YOptions = ((global::Gtk.AttachOptions)(4));
- // Container child table1.Gtk.Table+TableChild
- this.label14 = new global::Gtk.Label ();
- this.label14.Name = "label14";
- this.label14.Xalign = 0F;
- this.label14.LabelProp = global::Mono.Addins.AddinManager.CurrentLocalizer.GetString ("Name:");
- this.table1.Add (this.label14);
- global::Gtk.Table.TableChild w18 = ((global::Gtk.Table.TableChild)(this.table1 [this.label14]));
- w18.TopAttach = ((uint)(5));
- w18.BottomAttach = ((uint)(6));
- w18.XOptions = ((global::Gtk.AttachOptions)(4));
- w18.YOptions = ((global::Gtk.AttachOptions)(4));
- // Container child table1.Gtk.Table+TableChild
- this.label15 = new global::Gtk.Label ();
- this.label15.Name = "label15";
- this.label15.Xalign = 0F;
- this.label15.Yalign = 0F;
- this.label15.LabelProp = global::Mono.Addins.AddinManager.CurrentLocalizer.GetString ("Description:");
- this.table1.Add (this.label15);
- global::Gtk.Table.TableChild w19 = ((global::Gtk.Table.TableChild)(this.table1 [this.label15]));
- w19.TopAttach = ((uint)(6));
- w19.BottomAttach = ((uint)(7));
- w19.XOptions = ((global::Gtk.AttachOptions)(4));
- w19.YOptions = ((global::Gtk.AttachOptions)(4));
- // Container child table1.Gtk.Table+TableChild
- this.label2 = new global::Gtk.Label ();
- this.label2.Name = "label2";
- this.label2.Xalign = 0F;
- this.label2.LabelProp = global::Mono.Addins.AddinManager.CurrentLocalizer.GetString ("Namespace:");
- this.table1.Add (this.label2);
- global::Gtk.Table.TableChild w20 = ((global::Gtk.Table.TableChild)(this.table1 [this.label2]));
- w20.TopAttach = ((uint)(1));
- w20.BottomAttach = ((uint)(2));
- w20.XOptions = ((global::Gtk.AttachOptions)(4));
- w20.YOptions = ((global::Gtk.AttachOptions)(4));
- // Container child table1.Gtk.Table+TableChild
- this.label3 = new global::Gtk.Label ();
- this.label3.Name = "label3";
- this.label3.Xalign = 0F;
- this.label3.LabelProp = global::Mono.Addins.AddinManager.CurrentLocalizer.GetString ("Version:");
- this.table1.Add (this.label3);
- global::Gtk.Table.TableChild w21 = ((global::Gtk.Table.TableChild)(this.table1 [this.label3]));
- w21.TopAttach = ((uint)(2));
- w21.BottomAttach = ((uint)(3));
- w21.XOptions = ((global::Gtk.AttachOptions)(4));
- w21.YOptions = ((global::Gtk.AttachOptions)(4));
- // Container child table1.Gtk.Table+TableChild
- this.label7 = new global::Gtk.Label ();
- this.label7.Name = "label7";
- this.label7.Xalign = 0F;
- this.label7.LabelProp = global::Mono.Addins.AddinManager.CurrentLocalizer.GetString ("URL:");
- this.table1.Add (this.label7);
- global::Gtk.Table.TableChild w22 = ((global::Gtk.Table.TableChild)(this.table1 [this.label7]));
- w22.TopAttach = ((uint)(10));
- w22.BottomAttach = ((uint)(11));
- w22.XOptions = ((global::Gtk.AttachOptions)(4));
- w22.YOptions = ((global::Gtk.AttachOptions)(4));
- // Container child table1.Gtk.Table+TableChild
- this.label8 = new global::Gtk.Label ();
- this.label8.Name = "label8";
- this.label8.Xalign = 0F;
- this.label8.LabelProp = global::Mono.Addins.AddinManager.CurrentLocalizer.GetString ("Identifier:");
- this.table1.Add (this.label8);
- global::Gtk.Table.TableChild w23 = ((global::Gtk.Table.TableChild)(this.table1 [this.label8]));
- w23.XOptions = ((global::Gtk.AttachOptions)(4));
- w23.YOptions = ((global::Gtk.AttachOptions)(4));
- // Container child table1.Gtk.Table+TableChild
- this.scrolledwindow1 = new global::Gtk.ScrolledWindow ();
- this.scrolledwindow1.CanFocus = true;
- this.scrolledwindow1.Name = "scrolledwindow1";
- this.scrolledwindow1.ShadowType = ((global::Gtk.ShadowType)(1));
- // Container child scrolledwindow1.Gtk.Container+ContainerChild
- this.textviewDesc = new global::Gtk.TextView ();
- this.textviewDesc.CanFocus = true;
- this.textviewDesc.Name = "textviewDesc";
- this.scrolledwindow1.Add (this.textviewDesc);
- this.table1.Add (this.scrolledwindow1);
- global::Gtk.Table.TableChild w25 = ((global::Gtk.Table.TableChild)(this.table1 [this.scrolledwindow1]));
- w25.TopAttach = ((uint)(6));
- w25.BottomAttach = ((uint)(7));
- w25.LeftAttach = ((uint)(1));
- w25.RightAttach = ((uint)(2));
- w25.YOptions = ((global::Gtk.AttachOptions)(4));
- this.vbox3.Add (this.table1);
- global::Gtk.Box.BoxChild w26 = ((global::Gtk.Box.BoxChild)(this.vbox3 [this.table1]));
- w26.Position = 0;
- w26.Expand = false;
- w26.Fill = false;
- // Container child vbox3.Gtk.Box+BoxChild
- this.hseparator3 = new global::Gtk.HSeparator ();
- this.hseparator3.Name = "hseparator3";
- this.vbox3.Add (this.hseparator3);
- global::Gtk.Box.BoxChild w27 = ((global::Gtk.Box.BoxChild)(this.vbox3 [this.hseparator3]));
- w27.PackType = ((global::Gtk.PackType)(1));
- w27.Position = 1;
- w27.Expand = false;
- w27.Fill = false;
- this.notebook.Add (this.vbox3);
- // Notebook tab
- this.label5 = new global::Gtk.Label ();
- this.label5.Name = "label5";
- this.label5.LabelProp = global::Mono.Addins.AddinManager.CurrentLocalizer.GetString ("Header");
- this.notebook.SetTabLabel (this.vbox3, this.label5);
- this.label5.ShowAll ();
- // Container child notebook.Gtk.Notebook+NotebookChild
- this.extensionPointsEditor = new global::MonoDevelop.AddinAuthoring.ExtensionPointsEditorWidget ();
- this.extensionPointsEditor.Events = ((global::Gdk.EventMask)(256));
- this.extensionPointsEditor.Name = "extensionPointsEditor";
- this.notebook.Add (this.extensionPointsEditor);
- global::Gtk.Notebook.NotebookChild w29 = ((global::Gtk.Notebook.NotebookChild)(this.notebook [this.extensionPointsEditor]));
- w29.Position = 1;
- // Notebook tab
- this.label9 = new global::Gtk.Label ();
- this.label9.Name = "label9";
- this.label9.LabelProp = global::Mono.Addins.AddinManager.CurrentLocalizer.GetString ("Extension Points");
- this.notebook.SetTabLabel (this.extensionPointsEditor, this.label9);
- this.label9.ShowAll ();
- // Container child notebook.Gtk.Notebook+NotebookChild
- this.hbox5 = new global::Gtk.HBox ();
- this.hbox5.Name = "hbox5";
- this.hbox5.Spacing = 6;
- this.hbox5.BorderWidth = ((uint)(6));
- // Container child hbox5.Gtk.Box+BoxChild
- this.extensionEditor = new global::MonoDevelop.AddinAuthoring.ExtensionEditorWidget ();
- this.extensionEditor.Events = ((global::Gdk.EventMask)(256));
- this.extensionEditor.Name = "extensionEditor";
- this.hbox5.Add (this.extensionEditor);
- global::Gtk.Box.BoxChild w30 = ((global::Gtk.Box.BoxChild)(this.hbox5 [this.extensionEditor]));
- w30.Position = 0;
- this.notebook.Add (this.hbox5);
- global::Gtk.Notebook.NotebookChild w31 = ((global::Gtk.Notebook.NotebookChild)(this.notebook [this.hbox5]));
- w31.Position = 2;
- // Notebook tab
- this.label10 = new global::Gtk.Label ();
- this.label10.Name = "label10";
- this.label10.LabelProp = global::Mono.Addins.AddinManager.CurrentLocalizer.GetString ("Extensions");
- this.notebook.SetTabLabel (this.hbox5, this.label10);
- this.label10.ShowAll ();
- this.mainBox.Add (this.notebook);
- global::Gtk.Box.BoxChild w32 = ((global::Gtk.Box.BoxChild)(this.mainBox [this.notebook]));
- w32.Position = 0;
- this.Add (this.mainBox);
- if ((this.Child != null)) {
- this.Child.ShowAll ();
- }
- w1.SetUiManager (UIManager);
- this.Show ();
- this.entryVersion.Changed += new global::System.EventHandler (this.OnEntryChanged);
- this.entryCompatVersion.Changed += new global::System.EventHandler (this.OnEntryChanged);
- this.entryUrl.Changed += new global::System.EventHandler (this.OnEntryChanged);
- this.entryName.Changed += new global::System.EventHandler (this.OnEntryChanged);
- this.entryLicense.Changed += new global::System.EventHandler (this.OnEntryChanged);
- this.entryIdentifier.Changed += new global::System.EventHandler (this.OnEntryChanged);
- this.entryIdentifier.Changed += new global::System.EventHandler (this.OnEntryIdentifierChanged);
- this.entryAuthor.Changed += new global::System.EventHandler (this.OnEntryChanged);
- this.checkIsRoot.Clicked += new global::System.EventHandler (this.OnCheckIsRootClicked);
- }
- }
-}
diff --git a/extras/MonoDevelop.AddinAuthoring/gtk-gui/MonoDevelop.AddinAuthoring.AddinFeatureWidget.cs b/extras/MonoDevelop.AddinAuthoring/gtk-gui/MonoDevelop.AddinAuthoring.AddinFeatureWidget.cs
deleted file mode 100644
index 9d877e522a..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/gtk-gui/MonoDevelop.AddinAuthoring.AddinFeatureWidget.cs
+++ /dev/null
@@ -1,245 +0,0 @@
-
-// This file has been generated by the GUI designer. Do not modify.
-namespace MonoDevelop.AddinAuthoring
-{
- public partial class AddinFeatureWidget
- {
- private global::Gtk.VBox vbox2;
- private global::Gtk.VBox boxLibraryType;
- private global::Gtk.Label labelExtensibleApp;
- private global::Gtk.Label label2;
- private global::Gtk.Alignment alignment1;
- private global::Gtk.VBox vbox3;
- private global::Gtk.RadioButton radiobuttonLibrary;
- private global::Gtk.RadioButton radiobuttonAddin;
- private global::Gtk.HBox boxRepo;
- private global::Gtk.Label label3;
- private global::MonoDevelop.AddinAuthoring.RegistrySelector regSelector;
- private global::Gtk.HSeparator hseparator;
- private global::Gtk.Label labelAddinInfo;
- private global::Gtk.Alignment alignment3;
- private global::Gtk.Table tableNames;
- private global::Gtk.ComboBoxEntry comboNs;
- private global::Gtk.Entry entryId;
- private global::Gtk.Entry entryName;
- private global::Gtk.Label label7;
- private global::Gtk.Label label9;
- private global::Gtk.Label labelName;
-
- protected virtual void Build ()
- {
- global::Stetic.Gui.Initialize (this);
- // Widget MonoDevelop.AddinAuthoring.AddinFeatureWidget
- global::Stetic.BinContainer.Attach (this);
- this.Name = "MonoDevelop.AddinAuthoring.AddinFeatureWidget";
- // Container child MonoDevelop.AddinAuthoring.AddinFeatureWidget.Gtk.Container+ContainerChild
- this.vbox2 = new global::Gtk.VBox ();
- this.vbox2.Name = "vbox2";
- this.vbox2.Spacing = 6;
- // Container child vbox2.Gtk.Box+BoxChild
- this.boxLibraryType = new global::Gtk.VBox ();
- this.boxLibraryType.Name = "boxLibraryType";
- this.boxLibraryType.Spacing = 6;
- // Container child boxLibraryType.Gtk.Box+BoxChild
- this.labelExtensibleApp = new global::Gtk.Label ();
- this.labelExtensibleApp.Name = "labelExtensibleApp";
- this.labelExtensibleApp.Xalign = 0F;
- this.labelExtensibleApp.LabelProp = global::Mono.Addins.AddinManager.CurrentLocalizer.GetString ("Allow the application to be extended by add-ins.");
- this.boxLibraryType.Add (this.labelExtensibleApp);
- global::Gtk.Box.BoxChild w1 = ((global::Gtk.Box.BoxChild)(this.boxLibraryType [this.labelExtensibleApp]));
- w1.Position = 0;
- w1.Expand = false;
- w1.Fill = false;
- // Container child boxLibraryType.Gtk.Box+BoxChild
- this.label2 = new global::Gtk.Label ();
- this.label2.Name = "label2";
- this.label2.Xalign = 0F;
- this.label2.LabelProp = global::Mono.Addins.AddinManager.CurrentLocalizer.GetString ("Which kind of library you want to create?");
- this.boxLibraryType.Add (this.label2);
- global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.boxLibraryType [this.label2]));
- w2.Position = 1;
- w2.Expand = false;
- w2.Fill = false;
- // Container child boxLibraryType.Gtk.Box+BoxChild
- this.alignment1 = new global::Gtk.Alignment (0.5F, 0.5F, 1F, 1F);
- this.alignment1.Name = "alignment1";
- this.alignment1.LeftPadding = ((uint)(12));
- // Container child alignment1.Gtk.Container+ContainerChild
- this.vbox3 = new global::Gtk.VBox ();
- this.vbox3.Name = "vbox3";
- this.vbox3.Spacing = 6;
- // Container child vbox3.Gtk.Box+BoxChild
- this.radiobuttonLibrary = new global::Gtk.RadioButton (global::Mono.Addins.AddinManager.CurrentLocalizer.GetString ("A library which can be extended by add-ins"));
- this.radiobuttonLibrary.CanFocus = true;
- this.radiobuttonLibrary.Name = "radiobuttonLibrary";
- this.radiobuttonLibrary.DrawIndicator = true;
- this.radiobuttonLibrary.UseUnderline = true;
- this.radiobuttonLibrary.Group = new global::GLib.SList (global::System.IntPtr.Zero);
- this.vbox3.Add (this.radiobuttonLibrary);
- global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.vbox3 [this.radiobuttonLibrary]));
- w3.Position = 0;
- w3.Expand = false;
- w3.Fill = false;
- // Container child vbox3.Gtk.Box+BoxChild
- this.radiobuttonAddin = new global::Gtk.RadioButton (global::Mono.Addins.AddinManager.CurrentLocalizer.GetString ("An Add-in"));
- this.radiobuttonAddin.CanFocus = true;
- this.radiobuttonAddin.Name = "radiobuttonAddin";
- this.radiobuttonAddin.DrawIndicator = true;
- this.radiobuttonAddin.UseUnderline = true;
- this.radiobuttonAddin.Group = this.radiobuttonLibrary.Group;
- this.vbox3.Add (this.radiobuttonAddin);
- global::Gtk.Box.BoxChild w4 = ((global::Gtk.Box.BoxChild)(this.vbox3 [this.radiobuttonAddin]));
- w4.Position = 1;
- w4.Expand = false;
- w4.Fill = false;
- this.alignment1.Add (this.vbox3);
- this.boxLibraryType.Add (this.alignment1);
- global::Gtk.Box.BoxChild w6 = ((global::Gtk.Box.BoxChild)(this.boxLibraryType [this.alignment1]));
- w6.Position = 2;
- w6.Expand = false;
- w6.Fill = false;
- this.vbox2.Add (this.boxLibraryType);
- global::Gtk.Box.BoxChild w7 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.boxLibraryType]));
- w7.Position = 0;
- w7.Expand = false;
- w7.Fill = false;
- // Container child vbox2.Gtk.Box+BoxChild
- this.boxRepo = new global::Gtk.HBox ();
- this.boxRepo.Name = "boxRepo";
- this.boxRepo.Spacing = 6;
- // Container child boxRepo.Gtk.Box+BoxChild
- this.label3 = new global::Gtk.Label ();
- this.label3.Name = "label3";
- this.label3.Xalign = 0F;
- this.label3.LabelProp = global::Mono.Addins.AddinManager.CurrentLocalizer.GetString ("Extended Application:");
- this.boxRepo.Add (this.label3);
- global::Gtk.Box.BoxChild w8 = ((global::Gtk.Box.BoxChild)(this.boxRepo [this.label3]));
- w8.Position = 0;
- w8.Expand = false;
- w8.Fill = false;
- // Container child boxRepo.Gtk.Box+BoxChild
- this.regSelector = new global::MonoDevelop.AddinAuthoring.RegistrySelector ();
- this.regSelector.Events = ((global::Gdk.EventMask)(256));
- this.regSelector.Name = "regSelector";
- this.boxRepo.Add (this.regSelector);
- global::Gtk.Box.BoxChild w9 = ((global::Gtk.Box.BoxChild)(this.boxRepo [this.regSelector]));
- w9.Position = 1;
- this.vbox2.Add (this.boxRepo);
- global::Gtk.Box.BoxChild w10 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.boxRepo]));
- w10.Position = 1;
- w10.Expand = false;
- w10.Fill = false;
- // Container child vbox2.Gtk.Box+BoxChild
- this.hseparator = new global::Gtk.HSeparator ();
- this.hseparator.Name = "hseparator";
- this.vbox2.Add (this.hseparator);
- global::Gtk.Box.BoxChild w11 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.hseparator]));
- w11.Position = 2;
- w11.Expand = false;
- w11.Fill = false;
- // Container child vbox2.Gtk.Box+BoxChild
- this.labelAddinInfo = new global::Gtk.Label ();
- this.labelAddinInfo.Name = "labelAddinInfo";
- this.labelAddinInfo.Xalign = 0F;
- this.labelAddinInfo.LabelProp = global::Mono.Addins.AddinManager.CurrentLocalizer.GetString ("Add-in module information:");
- this.vbox2.Add (this.labelAddinInfo);
- global::Gtk.Box.BoxChild w12 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.labelAddinInfo]));
- w12.Position = 3;
- w12.Expand = false;
- w12.Fill = false;
- // Container child vbox2.Gtk.Box+BoxChild
- this.alignment3 = new global::Gtk.Alignment (0.5F, 0.5F, 1F, 1F);
- this.alignment3.Name = "alignment3";
- this.alignment3.LeftPadding = ((uint)(24));
- // Container child alignment3.Gtk.Container+ContainerChild
- this.tableNames = new global::Gtk.Table (((uint)(3)), ((uint)(2)), false);
- this.tableNames.Name = "tableNames";
- this.tableNames.RowSpacing = ((uint)(6));
- this.tableNames.ColumnSpacing = ((uint)(6));
- // Container child tableNames.Gtk.Table+TableChild
- this.comboNs = global::Gtk.ComboBoxEntry.NewText ();
- this.comboNs.Name = "comboNs";
- this.tableNames.Add (this.comboNs);
- global::Gtk.Table.TableChild w13 = ((global::Gtk.Table.TableChild)(this.tableNames [this.comboNs]));
- w13.TopAttach = ((uint)(1));
- w13.BottomAttach = ((uint)(2));
- w13.LeftAttach = ((uint)(1));
- w13.RightAttach = ((uint)(2));
- w13.YOptions = ((global::Gtk.AttachOptions)(4));
- // Container child tableNames.Gtk.Table+TableChild
- this.entryId = new global::Gtk.Entry ();
- this.entryId.CanFocus = true;
- this.entryId.Name = "entryId";
- this.entryId.IsEditable = true;
- this.entryId.InvisibleChar = '●';
- this.tableNames.Add (this.entryId);
- global::Gtk.Table.TableChild w14 = ((global::Gtk.Table.TableChild)(this.tableNames [this.entryId]));
- w14.TopAttach = ((uint)(2));
- w14.BottomAttach = ((uint)(3));
- w14.LeftAttach = ((uint)(1));
- w14.RightAttach = ((uint)(2));
- w14.XOptions = ((global::Gtk.AttachOptions)(4));
- w14.YOptions = ((global::Gtk.AttachOptions)(4));
- // Container child tableNames.Gtk.Table+TableChild
- this.entryName = new global::Gtk.Entry ();
- this.entryName.CanFocus = true;
- this.entryName.Name = "entryName";
- this.entryName.IsEditable = true;
- this.entryName.InvisibleChar = '●';
- this.tableNames.Add (this.entryName);
- global::Gtk.Table.TableChild w15 = ((global::Gtk.Table.TableChild)(this.tableNames [this.entryName]));
- w15.LeftAttach = ((uint)(1));
- w15.RightAttach = ((uint)(2));
- w15.XOptions = ((global::Gtk.AttachOptions)(4));
- w15.YOptions = ((global::Gtk.AttachOptions)(4));
- // Container child tableNames.Gtk.Table+TableChild
- this.label7 = new global::Gtk.Label ();
- this.label7.Name = "label7";
- this.label7.Xalign = 0F;
- this.label7.LabelProp = global::Mono.Addins.AddinManager.CurrentLocalizer.GetString ("Namespace:");
- this.tableNames.Add (this.label7);
- global::Gtk.Table.TableChild w16 = ((global::Gtk.Table.TableChild)(this.tableNames [this.label7]));
- w16.TopAttach = ((uint)(1));
- w16.BottomAttach = ((uint)(2));
- w16.XOptions = ((global::Gtk.AttachOptions)(4));
- w16.YOptions = ((global::Gtk.AttachOptions)(4));
- // Container child tableNames.Gtk.Table+TableChild
- this.label9 = new global::Gtk.Label ();
- this.label9.Name = "label9";
- this.label9.Xalign = 0F;
- this.label9.LabelProp = global::Mono.Addins.AddinManager.CurrentLocalizer.GetString ("Identifier:");
- this.tableNames.Add (this.label9);
- global::Gtk.Table.TableChild w17 = ((global::Gtk.Table.TableChild)(this.tableNames [this.label9]));
- w17.TopAttach = ((uint)(2));
- w17.BottomAttach = ((uint)(3));
- w17.XOptions = ((global::Gtk.AttachOptions)(4));
- w17.YOptions = ((global::Gtk.AttachOptions)(4));
- // Container child tableNames.Gtk.Table+TableChild
- this.labelName = new global::Gtk.Label ();
- this.labelName.Name = "labelName";
- this.labelName.Xalign = 0F;
- this.labelName.LabelProp = global::Mono.Addins.AddinManager.CurrentLocalizer.GetString ("Display name:");
- this.tableNames.Add (this.labelName);
- global::Gtk.Table.TableChild w18 = ((global::Gtk.Table.TableChild)(this.tableNames [this.labelName]));
- w18.XOptions = ((global::Gtk.AttachOptions)(4));
- w18.YOptions = ((global::Gtk.AttachOptions)(4));
- this.alignment3.Add (this.tableNames);
- this.vbox2.Add (this.alignment3);
- global::Gtk.Box.BoxChild w20 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.alignment3]));
- w20.Position = 4;
- w20.Expand = false;
- w20.Fill = false;
- this.Add (this.vbox2);
- if ((this.Child != null)) {
- this.Child.ShowAll ();
- }
- this.labelExtensibleApp.Hide ();
- this.Show ();
- this.radiobuttonLibrary.Toggled += new global::System.EventHandler (this.OnRadiobuttonLibraryToggled);
- this.regSelector.Changed += new global::System.EventHandler (this.OnRegSelectorChanged);
- this.entryName.Changed += new global::System.EventHandler (this.OnEntryNameChanged);
- this.entryId.Changed += new global::System.EventHandler (this.OnEntryIdChanged);
- this.comboNs.Changed += new global::System.EventHandler (this.OnComboNsChanged);
- }
- }
-}
diff --git a/extras/MonoDevelop.AddinAuthoring/gtk-gui/MonoDevelop.AddinAuthoring.AddinOptionPanelWidget.cs b/extras/MonoDevelop.AddinAuthoring/gtk-gui/MonoDevelop.AddinAuthoring.AddinOptionPanelWidget.cs
deleted file mode 100644
index 600a79a6b7..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/gtk-gui/MonoDevelop.AddinAuthoring.AddinOptionPanelWidget.cs
+++ /dev/null
@@ -1,59 +0,0 @@
-
-// This file has been generated by the GUI designer. Do not modify.
-namespace MonoDevelop.AddinAuthoring
-{
- public partial class AddinOptionPanelWidget
- {
- private global::Gtk.VBox vbox2;
- private global::Gtk.CheckButton checkEnable;
- private global::Gtk.HSeparator hseparator1;
- private global::MonoDevelop.AddinAuthoring.AddinFeatureWidget optionsWidget;
-
- protected virtual void Build ()
- {
- global::Stetic.Gui.Initialize (this);
- // Widget MonoDevelop.AddinAuthoring.AddinOptionPanelWidget
- global::Stetic.BinContainer.Attach (this);
- this.Name = "MonoDevelop.AddinAuthoring.AddinOptionPanelWidget";
- // Container child MonoDevelop.AddinAuthoring.AddinOptionPanelWidget.Gtk.Container+ContainerChild
- this.vbox2 = new global::Gtk.VBox ();
- this.vbox2.Name = "vbox2";
- this.vbox2.Spacing = 6;
- // Container child vbox2.Gtk.Box+BoxChild
- this.checkEnable = new global::Gtk.CheckButton ();
- this.checkEnable.CanFocus = true;
- this.checkEnable.Name = "checkEnable";
- this.checkEnable.Label = global::Mono.Addins.AddinManager.CurrentLocalizer.GetString ("Enable extensibility features");
- this.checkEnable.DrawIndicator = true;
- this.checkEnable.UseUnderline = true;
- this.vbox2.Add (this.checkEnable);
- global::Gtk.Box.BoxChild w1 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.checkEnable]));
- w1.Position = 0;
- w1.Expand = false;
- w1.Fill = false;
- // Container child vbox2.Gtk.Box+BoxChild
- this.hseparator1 = new global::Gtk.HSeparator ();
- this.hseparator1.Name = "hseparator1";
- this.vbox2.Add (this.hseparator1);
- global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.hseparator1]));
- w2.Position = 1;
- w2.Expand = false;
- w2.Fill = false;
- // Container child vbox2.Gtk.Box+BoxChild
- this.optionsWidget = new global::MonoDevelop.AddinAuthoring.AddinFeatureWidget ();
- this.optionsWidget.Events = ((global::Gdk.EventMask)(256));
- this.optionsWidget.Name = "optionsWidget";
- this.vbox2.Add (this.optionsWidget);
- global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.optionsWidget]));
- w3.Position = 2;
- w3.Expand = false;
- w3.Fill = false;
- this.Add (this.vbox2);
- if ((this.Child != null)) {
- this.Child.ShowAll ();
- }
- this.Show ();
- this.checkEnable.Clicked += new global::System.EventHandler (this.OnCheckEnableClicked);
- }
- }
-}
diff --git a/extras/MonoDevelop.AddinAuthoring/gtk-gui/MonoDevelop.AddinAuthoring.ExtensionEditorWidget.cs b/extras/MonoDevelop.AddinAuthoring/gtk-gui/MonoDevelop.AddinAuthoring.ExtensionEditorWidget.cs
deleted file mode 100644
index 728cff8542..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/gtk-gui/MonoDevelop.AddinAuthoring.ExtensionEditorWidget.cs
+++ /dev/null
@@ -1,181 +0,0 @@
-
-// This file has been generated by the GUI designer. Do not modify.
-namespace MonoDevelop.AddinAuthoring
-{
- public partial class ExtensionEditorWidget
- {
- private global::Gtk.VBox vbox2;
- private global::Gtk.HBox hbox1;
- private global::Gtk.Button buttonAdd;
- private global::Gtk.Button addNodeButton;
- private global::Gtk.HBox hbox2;
- private global::Gtk.Image image445;
- private global::Gtk.Label label1;
- private global::Gtk.Arrow arrow1;
- private global::Gtk.Button buttonRemove;
- private global::Gtk.HBox hbox4;
- private global::Gtk.HPaned hpaned1;
- private global::Gtk.ScrolledWindow scrolledwindow6;
- private global::Gtk.TreeView tree;
- private global::Gtk.ScrolledWindow editorBox;
-
- protected virtual void Build ()
- {
- global::Stetic.Gui.Initialize (this);
- // Widget MonoDevelop.AddinAuthoring.ExtensionEditorWidget
- global::Stetic.BinContainer.Attach (this);
- this.Name = "MonoDevelop.AddinAuthoring.ExtensionEditorWidget";
- // Container child MonoDevelop.AddinAuthoring.ExtensionEditorWidget.Gtk.Container+ContainerChild
- this.vbox2 = new global::Gtk.VBox ();
- this.vbox2.Name = "vbox2";
- this.vbox2.Spacing = 3;
- // Container child vbox2.Gtk.Box+BoxChild
- this.hbox1 = new global::Gtk.HBox ();
- this.hbox1.Name = "hbox1";
- this.hbox1.Spacing = 3;
- // Container child hbox1.Gtk.Box+BoxChild
- this.buttonAdd = new global::Gtk.Button ();
- this.buttonAdd.CanFocus = true;
- this.buttonAdd.Name = "buttonAdd";
- this.buttonAdd.UseUnderline = true;
- this.buttonAdd.Relief = ((global::Gtk.ReliefStyle)(2));
- // Container child buttonAdd.Gtk.Container+ContainerChild
- global::Gtk.Alignment w1 = new global::Gtk.Alignment (0.5F, 0.5F, 0F, 0F);
- // Container child GtkAlignment.Gtk.Container+ContainerChild
- global::Gtk.HBox w2 = new global::Gtk.HBox ();
- w2.Spacing = 2;
- // Container child GtkHBox.Gtk.Container+ContainerChild
- global::Gtk.Image w3 = new global::Gtk.Image ();
- w3.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "md-extension-point", global::Gtk.IconSize.Menu);
- w2.Add (w3);
- // Container child GtkHBox.Gtk.Container+ContainerChild
- global::Gtk.Label w5 = new global::Gtk.Label ();
- w5.LabelProp = global::Mono.Addins.AddinManager.CurrentLocalizer.GetString ("Select Extension Points");
- w5.UseUnderline = true;
- w2.Add (w5);
- w1.Add (w2);
- this.buttonAdd.Add (w1);
- this.hbox1.Add (this.buttonAdd);
- global::Gtk.Box.BoxChild w9 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.buttonAdd]));
- w9.Position = 0;
- w9.Expand = false;
- w9.Fill = false;
- // Container child hbox1.Gtk.Box+BoxChild
- this.addNodeButton = new global::Gtk.Button ();
- this.addNodeButton.CanFocus = true;
- this.addNodeButton.Name = "addNodeButton";
- this.addNodeButton.Relief = ((global::Gtk.ReliefStyle)(2));
- // Container child addNodeButton.Gtk.Container+ContainerChild
- this.hbox2 = new global::Gtk.HBox ();
- this.hbox2.Name = "hbox2";
- this.hbox2.Spacing = 6;
- // Container child hbox2.Gtk.Box+BoxChild
- this.image445 = new global::Gtk.Image ();
- this.image445.Name = "image445";
- this.image445.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-add", global::Gtk.IconSize.Menu);
- this.hbox2.Add (this.image445);
- global::Gtk.Box.BoxChild w10 = ((global::Gtk.Box.BoxChild)(this.hbox2 [this.image445]));
- w10.Position = 0;
- w10.Expand = false;
- w10.Fill = false;
- // Container child hbox2.Gtk.Box+BoxChild
- this.label1 = new global::Gtk.Label ();
- this.label1.Name = "label1";
- this.label1.LabelProp = global::Mono.Addins.AddinManager.CurrentLocalizer.GetString ("Add Node");
- this.hbox2.Add (this.label1);
- global::Gtk.Box.BoxChild w11 = ((global::Gtk.Box.BoxChild)(this.hbox2 [this.label1]));
- w11.Position = 1;
- w11.Expand = false;
- w11.Fill = false;
- // Container child hbox2.Gtk.Box+BoxChild
- this.arrow1 = new global::Gtk.Arrow (((global::Gtk.ArrowType)(1)), ((global::Gtk.ShadowType)(2)));
- this.arrow1.Name = "arrow1";
- this.hbox2.Add (this.arrow1);
- global::Gtk.Box.BoxChild w12 = ((global::Gtk.Box.BoxChild)(this.hbox2 [this.arrow1]));
- w12.Position = 2;
- w12.Expand = false;
- w12.Fill = false;
- this.addNodeButton.Add (this.hbox2);
- this.addNodeButton.Label = null;
- this.hbox1.Add (this.addNodeButton);
- global::Gtk.Box.BoxChild w14 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.addNodeButton]));
- w14.Position = 1;
- w14.Expand = false;
- w14.Fill = false;
- // Container child hbox1.Gtk.Box+BoxChild
- this.buttonRemove = new global::Gtk.Button ();
- this.buttonRemove.CanFocus = true;
- this.buttonRemove.Name = "buttonRemove";
- this.buttonRemove.UseUnderline = true;
- this.buttonRemove.Relief = ((global::Gtk.ReliefStyle)(2));
- // Container child buttonRemove.Gtk.Container+ContainerChild
- global::Gtk.Alignment w15 = new global::Gtk.Alignment (0.5F, 0.5F, 0F, 0F);
- // Container child GtkAlignment.Gtk.Container+ContainerChild
- global::Gtk.HBox w16 = new global::Gtk.HBox ();
- w16.Spacing = 2;
- // Container child GtkHBox.Gtk.Container+ContainerChild
- global::Gtk.Image w17 = new global::Gtk.Image ();
- w17.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-remove", global::Gtk.IconSize.Menu);
- w16.Add (w17);
- // Container child GtkHBox.Gtk.Container+ContainerChild
- global::Gtk.Label w19 = new global::Gtk.Label ();
- w19.LabelProp = global::Mono.Addins.AddinManager.CurrentLocalizer.GetString ("Remove");
- w19.UseUnderline = true;
- w16.Add (w19);
- w15.Add (w16);
- this.buttonRemove.Add (w15);
- this.hbox1.Add (this.buttonRemove);
- global::Gtk.Box.BoxChild w23 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.buttonRemove]));
- w23.Position = 2;
- w23.Expand = false;
- w23.Fill = false;
- this.vbox2.Add (this.hbox1);
- global::Gtk.Box.BoxChild w24 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.hbox1]));
- w24.Position = 0;
- w24.Expand = false;
- w24.Fill = false;
- // Container child vbox2.Gtk.Box+BoxChild
- this.hbox4 = new global::Gtk.HBox ();
- this.hbox4.Name = "hbox4";
- this.hbox4.Spacing = 6;
- // Container child hbox4.Gtk.Box+BoxChild
- this.hpaned1 = new global::Gtk.HPaned ();
- this.hpaned1.CanFocus = true;
- this.hpaned1.Name = "hpaned1";
- this.hpaned1.Position = 411;
- // Container child hpaned1.Gtk.Paned+PanedChild
- this.scrolledwindow6 = new global::Gtk.ScrolledWindow ();
- this.scrolledwindow6.CanFocus = true;
- this.scrolledwindow6.Name = "scrolledwindow6";
- this.scrolledwindow6.ShadowType = ((global::Gtk.ShadowType)(1));
- // Container child scrolledwindow6.Gtk.Container+ContainerChild
- this.tree = new global::Gtk.TreeView ();
- this.tree.CanFocus = true;
- this.tree.Name = "tree";
- this.scrolledwindow6.Add (this.tree);
- this.hpaned1.Add (this.scrolledwindow6);
- global::Gtk.Paned.PanedChild w26 = ((global::Gtk.Paned.PanedChild)(this.hpaned1 [this.scrolledwindow6]));
- w26.Resize = false;
- // Container child hpaned1.Gtk.Paned+PanedChild
- this.editorBox = new global::Gtk.ScrolledWindow ();
- this.editorBox.CanFocus = true;
- this.editorBox.Name = "editorBox";
- this.editorBox.HscrollbarPolicy = ((global::Gtk.PolicyType)(2));
- this.hpaned1.Add (this.editorBox);
- this.hbox4.Add (this.hpaned1);
- global::Gtk.Box.BoxChild w28 = ((global::Gtk.Box.BoxChild)(this.hbox4 [this.hpaned1]));
- w28.Position = 0;
- this.vbox2.Add (this.hbox4);
- global::Gtk.Box.BoxChild w29 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.hbox4]));
- w29.Position = 1;
- this.Add (this.vbox2);
- if ((this.Child != null)) {
- this.Child.ShowAll ();
- }
- this.Show ();
- this.buttonAdd.Clicked += new global::System.EventHandler (this.OnButtonAddClicked);
- this.addNodeButton.Pressed += new global::System.EventHandler (this.OnAddNodeButtonPressed);
- this.buttonRemove.Clicked += new global::System.EventHandler (this.OnButtonRemoveClicked);
- }
- }
-}
diff --git a/extras/MonoDevelop.AddinAuthoring/gtk-gui/MonoDevelop.AddinAuthoring.ExtensionPointsEditorWidget.cs b/extras/MonoDevelop.AddinAuthoring/gtk-gui/MonoDevelop.AddinAuthoring.ExtensionPointsEditorWidget.cs
deleted file mode 100644
index c3b60b4d51..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/gtk-gui/MonoDevelop.AddinAuthoring.ExtensionPointsEditorWidget.cs
+++ /dev/null
@@ -1,134 +0,0 @@
-
-// This file has been generated by the GUI designer. Do not modify.
-namespace MonoDevelop.AddinAuthoring
-{
- public partial class ExtensionPointsEditorWidget
- {
- private global::Gtk.VBox vbox2;
- private global::Gtk.HBox hbox1;
- private global::Gtk.Button buttonNew;
- private global::Gtk.Button buttonRemove;
- private global::Gtk.Button buttonProperties;
- private global::Gtk.HBox hbox4;
- private global::Gtk.ScrolledWindow scrolledwindow6;
- private global::Gtk.TreeView tree;
-
- protected virtual void Build ()
- {
- global::Stetic.Gui.Initialize (this);
- // Widget MonoDevelop.AddinAuthoring.ExtensionPointsEditorWidget
- global::Stetic.BinContainer.Attach (this);
- this.Name = "MonoDevelop.AddinAuthoring.ExtensionPointsEditorWidget";
- // Container child MonoDevelop.AddinAuthoring.ExtensionPointsEditorWidget.Gtk.Container+ContainerChild
- this.vbox2 = new global::Gtk.VBox ();
- this.vbox2.Name = "vbox2";
- this.vbox2.Spacing = 3;
- this.vbox2.BorderWidth = ((uint)(6));
- // Container child vbox2.Gtk.Box+BoxChild
- this.hbox1 = new global::Gtk.HBox ();
- this.hbox1.Name = "hbox1";
- this.hbox1.Spacing = 3;
- // Container child hbox1.Gtk.Box+BoxChild
- this.buttonNew = new global::Gtk.Button ();
- this.buttonNew.CanFocus = true;
- this.buttonNew.Name = "buttonNew";
- this.buttonNew.UseUnderline = true;
- this.buttonNew.Relief = ((global::Gtk.ReliefStyle)(2));
- // Container child buttonNew.Gtk.Container+ContainerChild
- global::Gtk.Alignment w1 = new global::Gtk.Alignment (0.5F, 0.5F, 0F, 0F);
- // Container child GtkAlignment.Gtk.Container+ContainerChild
- global::Gtk.HBox w2 = new global::Gtk.HBox ();
- w2.Spacing = 2;
- // Container child GtkHBox.Gtk.Container+ContainerChild
- global::Gtk.Image w3 = new global::Gtk.Image ();
- w3.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "md-new-extension-point", global::Gtk.IconSize.Menu);
- w2.Add (w3);
- // Container child GtkHBox.Gtk.Container+ContainerChild
- global::Gtk.Label w5 = new global::Gtk.Label ();
- w5.LabelProp = global::Mono.Addins.AddinManager.CurrentLocalizer.GetString ("New Extension Point");
- w5.UseUnderline = true;
- w2.Add (w5);
- w1.Add (w2);
- this.buttonNew.Add (w1);
- this.hbox1.Add (this.buttonNew);
- global::Gtk.Box.BoxChild w9 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.buttonNew]));
- w9.Position = 0;
- w9.Expand = false;
- w9.Fill = false;
- // Container child hbox1.Gtk.Box+BoxChild
- this.buttonRemove = new global::Gtk.Button ();
- this.buttonRemove.CanFocus = true;
- this.buttonRemove.Name = "buttonRemove";
- this.buttonRemove.UseStock = true;
- this.buttonRemove.UseUnderline = true;
- this.buttonRemove.Relief = ((global::Gtk.ReliefStyle)(2));
- this.buttonRemove.Label = "gtk-delete";
- this.hbox1.Add (this.buttonRemove);
- global::Gtk.Box.BoxChild w10 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.buttonRemove]));
- w10.Position = 1;
- w10.Expand = false;
- w10.Fill = false;
- // Container child hbox1.Gtk.Box+BoxChild
- this.buttonProperties = new global::Gtk.Button ();
- this.buttonProperties.CanFocus = true;
- this.buttonProperties.Name = "buttonProperties";
- this.buttonProperties.UseUnderline = true;
- this.buttonProperties.Relief = ((global::Gtk.ReliefStyle)(2));
- // Container child buttonProperties.Gtk.Container+ContainerChild
- global::Gtk.Alignment w11 = new global::Gtk.Alignment (0.5F, 0.5F, 0F, 0F);
- // Container child GtkAlignment.Gtk.Container+ContainerChild
- global::Gtk.HBox w12 = new global::Gtk.HBox ();
- w12.Spacing = 2;
- // Container child GtkHBox.Gtk.Container+ContainerChild
- global::Gtk.Image w13 = new global::Gtk.Image ();
- w13.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-edit", global::Gtk.IconSize.Menu);
- w12.Add (w13);
- // Container child GtkHBox.Gtk.Container+ContainerChild
- global::Gtk.Label w15 = new global::Gtk.Label ();
- w15.LabelProp = global::Mono.Addins.AddinManager.CurrentLocalizer.GetString ("Properties");
- w15.UseUnderline = true;
- w12.Add (w15);
- w11.Add (w12);
- this.buttonProperties.Add (w11);
- this.hbox1.Add (this.buttonProperties);
- global::Gtk.Box.BoxChild w19 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.buttonProperties]));
- w19.Position = 2;
- w19.Expand = false;
- w19.Fill = false;
- this.vbox2.Add (this.hbox1);
- global::Gtk.Box.BoxChild w20 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.hbox1]));
- w20.Position = 0;
- w20.Expand = false;
- w20.Fill = false;
- // Container child vbox2.Gtk.Box+BoxChild
- this.hbox4 = new global::Gtk.HBox ();
- this.hbox4.Name = "hbox4";
- this.hbox4.Spacing = 6;
- // Container child hbox4.Gtk.Box+BoxChild
- this.scrolledwindow6 = new global::Gtk.ScrolledWindow ();
- this.scrolledwindow6.CanFocus = true;
- this.scrolledwindow6.Name = "scrolledwindow6";
- this.scrolledwindow6.ShadowType = ((global::Gtk.ShadowType)(1));
- // Container child scrolledwindow6.Gtk.Container+ContainerChild
- this.tree = new global::Gtk.TreeView ();
- this.tree.CanFocus = true;
- this.tree.Name = "tree";
- this.tree.HeadersVisible = false;
- this.scrolledwindow6.Add (this.tree);
- this.hbox4.Add (this.scrolledwindow6);
- global::Gtk.Box.BoxChild w22 = ((global::Gtk.Box.BoxChild)(this.hbox4 [this.scrolledwindow6]));
- w22.Position = 0;
- this.vbox2.Add (this.hbox4);
- global::Gtk.Box.BoxChild w23 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.hbox4]));
- w23.Position = 1;
- this.Add (this.vbox2);
- if ((this.Child != null)) {
- this.Child.ShowAll ();
- }
- this.Show ();
- this.buttonNew.Clicked += new global::System.EventHandler (this.OnButtonNewClicked);
- this.buttonRemove.Clicked += new global::System.EventHandler (this.OnButtonRemoveClicked);
- this.buttonProperties.Clicked += new global::System.EventHandler (this.OnButtonPropertiesClicked);
- }
- }
-}
diff --git a/extras/MonoDevelop.AddinAuthoring/gtk-gui/MonoDevelop.AddinAuthoring.ExtensionSelectorDialog.cs b/extras/MonoDevelop.AddinAuthoring/gtk-gui/MonoDevelop.AddinAuthoring.ExtensionSelectorDialog.cs
deleted file mode 100644
index 3851cfbfcb..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/gtk-gui/MonoDevelop.AddinAuthoring.ExtensionSelectorDialog.cs
+++ /dev/null
@@ -1,97 +0,0 @@
-
-// This file has been generated by the GUI designer. Do not modify.
-namespace MonoDevelop.AddinAuthoring
-{
- public partial class ExtensionSelectorDialog
- {
- private global::Gtk.VBox vbox5;
- private global::Gtk.Label label13;
- private global::Gtk.ScrolledWindow scrolledwindow5;
- private global::Gtk.TreeView tree;
- private global::Gtk.Button button785;
- private global::Gtk.Button button789;
-
- protected virtual void Build ()
- {
- global::Stetic.Gui.Initialize (this);
- // Widget MonoDevelop.AddinAuthoring.ExtensionSelectorDialog
- this.Events = ((global::Gdk.EventMask)(256));
- this.Name = "MonoDevelop.AddinAuthoring.ExtensionSelectorDialog";
- this.Title = global::Mono.Addins.AddinManager.CurrentLocalizer.GetString ("Extension Selector");
- this.WindowPosition = ((global::Gtk.WindowPosition)(4));
- // Internal child MonoDevelop.AddinAuthoring.ExtensionSelectorDialog.VBox
- global::Gtk.VBox w1 = this.VBox;
- w1.Events = ((global::Gdk.EventMask)(256));
- w1.Name = "dialog_VBox";
- w1.BorderWidth = ((uint)(2));
- // Container child dialog_VBox.Gtk.Box+BoxChild
- this.vbox5 = new global::Gtk.VBox ();
- this.vbox5.Name = "vbox5";
- this.vbox5.Spacing = 6;
- this.vbox5.BorderWidth = ((uint)(12));
- // Container child vbox5.Gtk.Box+BoxChild
- this.label13 = new global::Gtk.Label ();
- this.label13.Name = "label13";
- this.label13.Xalign = 0F;
- this.label13.LabelProp = global::Mono.Addins.AddinManager.CurrentLocalizer.GetString ("Select the extension points to be extended:");
- this.vbox5.Add (this.label13);
- global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.vbox5 [this.label13]));
- w2.Position = 0;
- w2.Expand = false;
- w2.Fill = false;
- // Container child vbox5.Gtk.Box+BoxChild
- this.scrolledwindow5 = new global::Gtk.ScrolledWindow ();
- this.scrolledwindow5.CanFocus = true;
- this.scrolledwindow5.Name = "scrolledwindow5";
- this.scrolledwindow5.ShadowType = ((global::Gtk.ShadowType)(1));
- // Container child scrolledwindow5.Gtk.Container+ContainerChild
- this.tree = new global::Gtk.TreeView ();
- this.tree.CanFocus = true;
- this.tree.Name = "tree";
- this.scrolledwindow5.Add (this.tree);
- this.vbox5.Add (this.scrolledwindow5);
- global::Gtk.Box.BoxChild w4 = ((global::Gtk.Box.BoxChild)(this.vbox5 [this.scrolledwindow5]));
- w4.Position = 1;
- w1.Add (this.vbox5);
- global::Gtk.Box.BoxChild w5 = ((global::Gtk.Box.BoxChild)(w1 [this.vbox5]));
- w5.Position = 0;
- // Internal child MonoDevelop.AddinAuthoring.ExtensionSelectorDialog.ActionArea
- global::Gtk.HButtonBox w6 = this.ActionArea;
- w6.Name = "MonoDevelop.AddinAuthoring.ExtensionSelectorDialog_ActionArea";
- w6.Spacing = 6;
- w6.BorderWidth = ((uint)(5));
- w6.LayoutStyle = ((global::Gtk.ButtonBoxStyle)(4));
- // Container child MonoDevelop.AddinAuthoring.ExtensionSelectorDialog_ActionArea.Gtk.ButtonBox+ButtonBoxChild
- this.button785 = new global::Gtk.Button ();
- this.button785.CanDefault = true;
- this.button785.CanFocus = true;
- this.button785.Name = "button785";
- this.button785.UseStock = true;
- this.button785.UseUnderline = true;
- this.button785.Label = "gtk-cancel";
- this.AddActionWidget (this.button785, -6);
- global::Gtk.ButtonBox.ButtonBoxChild w7 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w6 [this.button785]));
- w7.Expand = false;
- w7.Fill = false;
- // Container child MonoDevelop.AddinAuthoring.ExtensionSelectorDialog_ActionArea.Gtk.ButtonBox+ButtonBoxChild
- this.button789 = new global::Gtk.Button ();
- this.button789.CanDefault = true;
- this.button789.CanFocus = true;
- this.button789.Name = "button789";
- this.button789.UseStock = true;
- this.button789.UseUnderline = true;
- this.button789.Label = "gtk-ok";
- this.AddActionWidget (this.button789, -5);
- global::Gtk.ButtonBox.ButtonBoxChild w8 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w6 [this.button789]));
- w8.Position = 1;
- w8.Expand = false;
- w8.Fill = false;
- if ((this.Child != null)) {
- this.Child.ShowAll ();
- }
- this.DefaultWidth = 652;
- this.DefaultHeight = 526;
- this.Show ();
- }
- }
-}
diff --git a/extras/MonoDevelop.AddinAuthoring/gtk-gui/MonoDevelop.AddinAuthoring.NewExtensionPointDialog.cs b/extras/MonoDevelop.AddinAuthoring/gtk-gui/MonoDevelop.AddinAuthoring.NewExtensionPointDialog.cs
deleted file mode 100644
index 7c0e1bd742..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/gtk-gui/MonoDevelop.AddinAuthoring.NewExtensionPointDialog.cs
+++ /dev/null
@@ -1,337 +0,0 @@
-
-// This file has been generated by the GUI designer. Do not modify.
-namespace MonoDevelop.AddinAuthoring
-{
- public partial class NewExtensionPointDialog
- {
- private global::Gtk.VBox vbox2;
- private global::Gtk.Table table2;
- private global::Gtk.Entry entryDesc;
- private global::Gtk.Entry entryName;
- private global::Gtk.Entry entryPath;
- private global::Gtk.Label label6;
- private global::Gtk.Label label7;
- private global::Gtk.Label label8;
- private global::Gtk.VBox vbox3;
- private global::Gtk.Label label2;
- private global::Gtk.HBox hbox2;
- private global::Gtk.RadioButton radioTypeExtension;
- private global::Gtk.RadioButton radioCustomExtension;
- private global::Gtk.HSeparator hseparator2;
- private global::Gtk.Notebook notebook;
- private global::Gtk.Table table1;
- private global::MonoDevelop.AddinAuthoring.TypeSelector baseTypeSelector;
- private global::Gtk.Entry entryNodeDescription;
- private global::Gtk.Entry entryNodeName;
- private global::Gtk.Label label3;
- private global::Gtk.Label label4;
- private global::Gtk.Label label5;
- private global::Gtk.Label label9;
- private global::MonoDevelop.AddinAuthoring.NodeSetEditorWidget nodeseteditorwidget;
- private global::Gtk.Label label10;
- private global::Gtk.Button buttonCancel;
- private global::Gtk.Button buttonOk;
-
- protected virtual void Build ()
- {
- global::Stetic.Gui.Initialize (this);
- // Widget MonoDevelop.AddinAuthoring.NewExtensionPointDialog
- this.Name = "MonoDevelop.AddinAuthoring.NewExtensionPointDialog";
- this.WindowPosition = ((global::Gtk.WindowPosition)(4));
- this.Modal = true;
- // Internal child MonoDevelop.AddinAuthoring.NewExtensionPointDialog.VBox
- global::Gtk.VBox w1 = this.VBox;
- w1.Name = "dialog1_VBox";
- w1.BorderWidth = ((uint)(2));
- // Container child dialog1_VBox.Gtk.Box+BoxChild
- this.vbox2 = new global::Gtk.VBox ();
- this.vbox2.Name = "vbox2";
- this.vbox2.Spacing = 15;
- this.vbox2.BorderWidth = ((uint)(15));
- // Container child vbox2.Gtk.Box+BoxChild
- this.table2 = new global::Gtk.Table (((uint)(3)), ((uint)(2)), false);
- this.table2.Name = "table2";
- this.table2.RowSpacing = ((uint)(6));
- this.table2.ColumnSpacing = ((uint)(6));
- // Container child table2.Gtk.Table+TableChild
- this.entryDesc = new global::Gtk.Entry ();
- this.entryDesc.CanFocus = true;
- this.entryDesc.Name = "entryDesc";
- this.entryDesc.IsEditable = true;
- this.entryDesc.InvisibleChar = '●';
- this.table2.Add (this.entryDesc);
- global::Gtk.Table.TableChild w2 = ((global::Gtk.Table.TableChild)(this.table2 [this.entryDesc]));
- w2.TopAttach = ((uint)(2));
- w2.BottomAttach = ((uint)(3));
- w2.LeftAttach = ((uint)(1));
- w2.RightAttach = ((uint)(2));
- w2.YOptions = ((global::Gtk.AttachOptions)(4));
- // Container child table2.Gtk.Table+TableChild
- this.entryName = new global::Gtk.Entry ();
- this.entryName.CanFocus = true;
- this.entryName.Name = "entryName";
- this.entryName.IsEditable = true;
- this.entryName.InvisibleChar = '●';
- this.table2.Add (this.entryName);
- global::Gtk.Table.TableChild w3 = ((global::Gtk.Table.TableChild)(this.table2 [this.entryName]));
- w3.TopAttach = ((uint)(1));
- w3.BottomAttach = ((uint)(2));
- w3.LeftAttach = ((uint)(1));
- w3.RightAttach = ((uint)(2));
- w3.YOptions = ((global::Gtk.AttachOptions)(4));
- // Container child table2.Gtk.Table+TableChild
- this.entryPath = new global::Gtk.Entry ();
- this.entryPath.CanFocus = true;
- this.entryPath.Name = "entryPath";
- this.entryPath.IsEditable = true;
- this.entryPath.InvisibleChar = '●';
- this.table2.Add (this.entryPath);
- global::Gtk.Table.TableChild w4 = ((global::Gtk.Table.TableChild)(this.table2 [this.entryPath]));
- w4.LeftAttach = ((uint)(1));
- w4.RightAttach = ((uint)(2));
- w4.YOptions = ((global::Gtk.AttachOptions)(4));
- // Container child table2.Gtk.Table+TableChild
- this.label6 = new global::Gtk.Label ();
- this.label6.Name = "label6";
- this.label6.Xalign = 0F;
- this.label6.LabelProp = global::Mono.Addins.AddinManager.CurrentLocalizer.GetString ("Description:");
- this.table2.Add (this.label6);
- global::Gtk.Table.TableChild w5 = ((global::Gtk.Table.TableChild)(this.table2 [this.label6]));
- w5.TopAttach = ((uint)(2));
- w5.BottomAttach = ((uint)(3));
- w5.XOptions = ((global::Gtk.AttachOptions)(4));
- w5.YOptions = ((global::Gtk.AttachOptions)(4));
- // Container child table2.Gtk.Table+TableChild
- this.label7 = new global::Gtk.Label ();
- this.label7.Name = "label7";
- this.label7.Xalign = 0F;
- this.label7.LabelProp = global::Mono.Addins.AddinManager.CurrentLocalizer.GetString ("Extension path:");
- this.table2.Add (this.label7);
- global::Gtk.Table.TableChild w6 = ((global::Gtk.Table.TableChild)(this.table2 [this.label7]));
- w6.XOptions = ((global::Gtk.AttachOptions)(4));
- w6.YOptions = ((global::Gtk.AttachOptions)(4));
- // Container child table2.Gtk.Table+TableChild
- this.label8 = new global::Gtk.Label ();
- this.label8.Name = "label8";
- this.label8.Xalign = 0F;
- this.label8.LabelProp = global::Mono.Addins.AddinManager.CurrentLocalizer.GetString ("Name:");
- this.table2.Add (this.label8);
- global::Gtk.Table.TableChild w7 = ((global::Gtk.Table.TableChild)(this.table2 [this.label8]));
- w7.TopAttach = ((uint)(1));
- w7.BottomAttach = ((uint)(2));
- w7.XOptions = ((global::Gtk.AttachOptions)(4));
- w7.YOptions = ((global::Gtk.AttachOptions)(4));
- this.vbox2.Add (this.table2);
- global::Gtk.Box.BoxChild w8 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.table2]));
- w8.Position = 0;
- w8.Expand = false;
- w8.Fill = false;
- // Container child vbox2.Gtk.Box+BoxChild
- this.vbox3 = new global::Gtk.VBox ();
- this.vbox3.Name = "vbox3";
- this.vbox3.Spacing = 6;
- // Container child vbox3.Gtk.Box+BoxChild
- this.label2 = new global::Gtk.Label ();
- this.label2.Name = "label2";
- this.label2.Xalign = 0F;
- this.label2.LabelProp = global::Mono.Addins.AddinManager.CurrentLocalizer.GetString ("Select the kind of extension point to create:");
- this.vbox3.Add (this.label2);
- global::Gtk.Box.BoxChild w9 = ((global::Gtk.Box.BoxChild)(this.vbox3 [this.label2]));
- w9.Position = 0;
- w9.Expand = false;
- w9.Fill = false;
- // Container child vbox3.Gtk.Box+BoxChild
- this.hbox2 = new global::Gtk.HBox ();
- this.hbox2.Name = "hbox2";
- this.hbox2.Spacing = 24;
- // Container child hbox2.Gtk.Box+BoxChild
- this.radioTypeExtension = new global::Gtk.RadioButton (global::Mono.Addins.AddinManager.CurrentLocalizer.GetString ("Type extension point"));
- this.radioTypeExtension.CanFocus = true;
- this.radioTypeExtension.Name = "radioTypeExtension";
- this.radioTypeExtension.DrawIndicator = true;
- this.radioTypeExtension.UseUnderline = true;
- this.radioTypeExtension.Group = new global::GLib.SList (global::System.IntPtr.Zero);
- this.hbox2.Add (this.radioTypeExtension);
- global::Gtk.Box.BoxChild w10 = ((global::Gtk.Box.BoxChild)(this.hbox2 [this.radioTypeExtension]));
- w10.Position = 0;
- w10.Expand = false;
- w10.Fill = false;
- // Container child hbox2.Gtk.Box+BoxChild
- this.radioCustomExtension = new global::Gtk.RadioButton (global::Mono.Addins.AddinManager.CurrentLocalizer.GetString ("Custom extension point"));
- this.radioCustomExtension.CanFocus = true;
- this.radioCustomExtension.Name = "radioCustomExtension";
- this.radioCustomExtension.DrawIndicator = true;
- this.radioCustomExtension.UseUnderline = true;
- this.radioCustomExtension.Group = this.radioTypeExtension.Group;
- this.hbox2.Add (this.radioCustomExtension);
- global::Gtk.Box.BoxChild w11 = ((global::Gtk.Box.BoxChild)(this.hbox2 [this.radioCustomExtension]));
- w11.Position = 1;
- this.vbox3.Add (this.hbox2);
- global::Gtk.Box.BoxChild w12 = ((global::Gtk.Box.BoxChild)(this.vbox3 [this.hbox2]));
- w12.Position = 1;
- w12.Expand = false;
- w12.Fill = false;
- this.vbox2.Add (this.vbox3);
- global::Gtk.Box.BoxChild w13 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.vbox3]));
- w13.Position = 1;
- w13.Expand = false;
- w13.Fill = false;
- // Container child vbox2.Gtk.Box+BoxChild
- this.hseparator2 = new global::Gtk.HSeparator ();
- this.hseparator2.Name = "hseparator2";
- this.vbox2.Add (this.hseparator2);
- global::Gtk.Box.BoxChild w14 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.hseparator2]));
- w14.Position = 2;
- w14.Expand = false;
- w14.Fill = false;
- // Container child vbox2.Gtk.Box+BoxChild
- this.notebook = new global::Gtk.Notebook ();
- this.notebook.CanFocus = true;
- this.notebook.Name = "notebook";
- this.notebook.CurrentPage = 0;
- this.notebook.ShowBorder = false;
- this.notebook.ShowTabs = false;
- // Container child notebook.Gtk.Notebook+NotebookChild
- this.table1 = new global::Gtk.Table (((uint)(3)), ((uint)(2)), false);
- this.table1.Name = "table1";
- this.table1.RowSpacing = ((uint)(6));
- this.table1.ColumnSpacing = ((uint)(6));
- // Container child table1.Gtk.Table+TableChild
- this.baseTypeSelector = new global::MonoDevelop.AddinAuthoring.TypeSelector ();
- this.baseTypeSelector.Events = ((global::Gdk.EventMask)(256));
- this.baseTypeSelector.Name = "baseTypeSelector";
- this.baseTypeSelector.AllowCreate = false;
- this.baseTypeSelector.AllowCreateInterface = false;
- this.table1.Add (this.baseTypeSelector);
- global::Gtk.Table.TableChild w15 = ((global::Gtk.Table.TableChild)(this.table1 [this.baseTypeSelector]));
- w15.TopAttach = ((uint)(1));
- w15.BottomAttach = ((uint)(2));
- w15.LeftAttach = ((uint)(1));
- w15.RightAttach = ((uint)(2));
- w15.YOptions = ((global::Gtk.AttachOptions)(4));
- // Container child table1.Gtk.Table+TableChild
- this.entryNodeDescription = new global::Gtk.Entry ();
- this.entryNodeDescription.CanFocus = true;
- this.entryNodeDescription.Name = "entryNodeDescription";
- this.entryNodeDescription.IsEditable = true;
- this.entryNodeDescription.InvisibleChar = '●';
- this.table1.Add (this.entryNodeDescription);
- global::Gtk.Table.TableChild w16 = ((global::Gtk.Table.TableChild)(this.table1 [this.entryNodeDescription]));
- w16.TopAttach = ((uint)(2));
- w16.BottomAttach = ((uint)(3));
- w16.LeftAttach = ((uint)(1));
- w16.RightAttach = ((uint)(2));
- w16.YOptions = ((global::Gtk.AttachOptions)(4));
- // Container child table1.Gtk.Table+TableChild
- this.entryNodeName = new global::Gtk.Entry ();
- this.entryNodeName.CanFocus = true;
- this.entryNodeName.Name = "entryNodeName";
- this.entryNodeName.IsEditable = true;
- this.entryNodeName.InvisibleChar = '●';
- this.table1.Add (this.entryNodeName);
- global::Gtk.Table.TableChild w17 = ((global::Gtk.Table.TableChild)(this.table1 [this.entryNodeName]));
- w17.LeftAttach = ((uint)(1));
- w17.RightAttach = ((uint)(2));
- w17.YOptions = ((global::Gtk.AttachOptions)(4));
- // Container child table1.Gtk.Table+TableChild
- this.label3 = new global::Gtk.Label ();
- this.label3.Name = "label3";
- this.label3.Xalign = 0F;
- this.label3.LabelProp = global::Mono.Addins.AddinManager.CurrentLocalizer.GetString ("Node name:");
- this.table1.Add (this.label3);
- global::Gtk.Table.TableChild w18 = ((global::Gtk.Table.TableChild)(this.table1 [this.label3]));
- w18.XOptions = ((global::Gtk.AttachOptions)(4));
- w18.YOptions = ((global::Gtk.AttachOptions)(4));
- // Container child table1.Gtk.Table+TableChild
- this.label4 = new global::Gtk.Label ();
- this.label4.Name = "label4";
- this.label4.Xalign = 0F;
- this.label4.LabelProp = global::Mono.Addins.AddinManager.CurrentLocalizer.GetString ("Description:");
- this.table1.Add (this.label4);
- global::Gtk.Table.TableChild w19 = ((global::Gtk.Table.TableChild)(this.table1 [this.label4]));
- w19.TopAttach = ((uint)(2));
- w19.BottomAttach = ((uint)(3));
- w19.XOptions = ((global::Gtk.AttachOptions)(4));
- w19.YOptions = ((global::Gtk.AttachOptions)(4));
- // Container child table1.Gtk.Table+TableChild
- this.label5 = new global::Gtk.Label ();
- this.label5.Name = "label5";
- this.label5.Xalign = 0F;
- this.label5.LabelProp = global::Mono.Addins.AddinManager.CurrentLocalizer.GetString ("Base type:");
- this.table1.Add (this.label5);
- global::Gtk.Table.TableChild w20 = ((global::Gtk.Table.TableChild)(this.table1 [this.label5]));
- w20.TopAttach = ((uint)(1));
- w20.BottomAttach = ((uint)(2));
- w20.XOptions = ((global::Gtk.AttachOptions)(4));
- w20.YOptions = ((global::Gtk.AttachOptions)(4));
- this.notebook.Add (this.table1);
- // Notebook tab
- this.label9 = new global::Gtk.Label ();
- this.label9.Name = "label9";
- this.label9.LabelProp = global::Mono.Addins.AddinManager.CurrentLocalizer.GetString ("page1");
- this.notebook.SetTabLabel (this.table1, this.label9);
- this.label9.ShowAll ();
- // Container child notebook.Gtk.Notebook+NotebookChild
- this.nodeseteditorwidget = new global::MonoDevelop.AddinAuthoring.NodeSetEditorWidget ();
- this.nodeseteditorwidget.Events = ((global::Gdk.EventMask)(256));
- this.nodeseteditorwidget.Name = "nodeseteditorwidget";
- this.nodeseteditorwidget.AllowEditing = true;
- this.notebook.Add (this.nodeseteditorwidget);
- global::Gtk.Notebook.NotebookChild w22 = ((global::Gtk.Notebook.NotebookChild)(this.notebook [this.nodeseteditorwidget]));
- w22.Position = 1;
- // Notebook tab
- this.label10 = new global::Gtk.Label ();
- this.label10.Name = "label10";
- this.label10.LabelProp = global::Mono.Addins.AddinManager.CurrentLocalizer.GetString ("page2");
- this.notebook.SetTabLabel (this.nodeseteditorwidget, this.label10);
- this.label10.ShowAll ();
- this.vbox2.Add (this.notebook);
- global::Gtk.Box.BoxChild w23 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.notebook]));
- w23.Position = 3;
- w1.Add (this.vbox2);
- global::Gtk.Box.BoxChild w24 = ((global::Gtk.Box.BoxChild)(w1 [this.vbox2]));
- w24.Position = 0;
- // Internal child MonoDevelop.AddinAuthoring.NewExtensionPointDialog.ActionArea
- global::Gtk.HButtonBox w25 = this.ActionArea;
- w25.Name = "dialog1_ActionArea";
- w25.Spacing = 6;
- w25.BorderWidth = ((uint)(5));
- w25.LayoutStyle = ((global::Gtk.ButtonBoxStyle)(4));
- // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
- this.buttonCancel = new global::Gtk.Button ();
- this.buttonCancel.CanDefault = true;
- this.buttonCancel.CanFocus = true;
- this.buttonCancel.Name = "buttonCancel";
- this.buttonCancel.UseStock = true;
- this.buttonCancel.UseUnderline = true;
- this.buttonCancel.Label = "gtk-cancel";
- this.AddActionWidget (this.buttonCancel, -6);
- global::Gtk.ButtonBox.ButtonBoxChild w26 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w25 [this.buttonCancel]));
- w26.Expand = false;
- w26.Fill = false;
- // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
- this.buttonOk = new global::Gtk.Button ();
- this.buttonOk.CanDefault = true;
- this.buttonOk.CanFocus = true;
- this.buttonOk.Name = "buttonOk";
- this.buttonOk.UseStock = true;
- this.buttonOk.UseUnderline = true;
- this.buttonOk.Label = "gtk-ok";
- this.AddActionWidget (this.buttonOk, -5);
- global::Gtk.ButtonBox.ButtonBoxChild w27 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w25 [this.buttonOk]));
- w27.Position = 1;
- w27.Expand = false;
- w27.Fill = false;
- if ((this.Child != null)) {
- this.Child.ShowAll ();
- }
- this.DefaultWidth = 625;
- this.DefaultHeight = 522;
- this.Show ();
- this.entryPath.Changed += new global::System.EventHandler (this.OnEntryPathChanged);
- this.radioTypeExtension.Clicked += new global::System.EventHandler (this.OnRadioTypeExtensionClicked);
- this.radioCustomExtension.Clicked += new global::System.EventHandler (this.OnRadioCustomExtensionClicked);
- this.buttonOk.Clicked += new global::System.EventHandler (this.OnButtonOkClicked);
- }
- }
-}
diff --git a/extras/MonoDevelop.AddinAuthoring/gtk-gui/MonoDevelop.AddinAuthoring.NewRegistryDialog.cs b/extras/MonoDevelop.AddinAuthoring/gtk-gui/MonoDevelop.AddinAuthoring.NewRegistryDialog.cs
deleted file mode 100644
index 35d7d2fc83..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/gtk-gui/MonoDevelop.AddinAuthoring.NewRegistryDialog.cs
+++ /dev/null
@@ -1,142 +0,0 @@
-
-// This file has been generated by the GUI designer. Do not modify.
-namespace MonoDevelop.AddinAuthoring
-{
- public partial class NewRegistryDialog
- {
- private global::Gtk.Table table1;
- private global::MonoDevelop.Components.FolderEntry entryAppPath;
- private global::Gtk.Entry entryName;
- private global::MonoDevelop.Components.FolderEntry entryRegPath;
- private global::Gtk.Label label1;
- private global::Gtk.Label label2;
- private global::Gtk.Label label3;
- private global::Gtk.Button buttonCancel;
- private global::Gtk.Button buttonOk;
-
- protected virtual void Build ()
- {
- global::Stetic.Gui.Initialize (this);
- // Widget MonoDevelop.AddinAuthoring.NewRegistryDialog
- this.Name = "MonoDevelop.AddinAuthoring.NewRegistryDialog";
- this.Title = global::Mono.Addins.AddinManager.CurrentLocalizer.GetString ("New Registry");
- this.WindowPosition = ((global::Gtk.WindowPosition)(4));
- this.DefaultWidth = 0;
- this.DefaultHeight = 0;
- // Internal child MonoDevelop.AddinAuthoring.NewRegistryDialog.VBox
- global::Gtk.VBox w1 = this.VBox;
- w1.Name = "dialog1_VBox";
- w1.BorderWidth = ((uint)(2));
- // Container child dialog1_VBox.Gtk.Box+BoxChild
- this.table1 = new global::Gtk.Table (((uint)(3)), ((uint)(2)), false);
- this.table1.Name = "table1";
- this.table1.RowSpacing = ((uint)(6));
- this.table1.ColumnSpacing = ((uint)(6));
- this.table1.BorderWidth = ((uint)(9));
- // Container child table1.Gtk.Table+TableChild
- this.entryAppPath = new global::MonoDevelop.Components.FolderEntry ();
- this.entryAppPath.Name = "entryAppPath";
- this.table1.Add (this.entryAppPath);
- global::Gtk.Table.TableChild w2 = ((global::Gtk.Table.TableChild)(this.table1 [this.entryAppPath]));
- w2.TopAttach = ((uint)(1));
- w2.BottomAttach = ((uint)(2));
- w2.LeftAttach = ((uint)(1));
- w2.RightAttach = ((uint)(2));
- w2.XOptions = ((global::Gtk.AttachOptions)(4));
- w2.YOptions = ((global::Gtk.AttachOptions)(4));
- // Container child table1.Gtk.Table+TableChild
- this.entryName = new global::Gtk.Entry ();
- this.entryName.CanFocus = true;
- this.entryName.Name = "entryName";
- this.entryName.IsEditable = true;
- this.entryName.InvisibleChar = '●';
- this.table1.Add (this.entryName);
- global::Gtk.Table.TableChild w3 = ((global::Gtk.Table.TableChild)(this.table1 [this.entryName]));
- w3.LeftAttach = ((uint)(1));
- w3.RightAttach = ((uint)(2));
- w3.YOptions = ((global::Gtk.AttachOptions)(4));
- // Container child table1.Gtk.Table+TableChild
- this.entryRegPath = new global::MonoDevelop.Components.FolderEntry ();
- this.entryRegPath.Name = "entryRegPath";
- this.table1.Add (this.entryRegPath);
- global::Gtk.Table.TableChild w4 = ((global::Gtk.Table.TableChild)(this.table1 [this.entryRegPath]));
- w4.TopAttach = ((uint)(2));
- w4.BottomAttach = ((uint)(3));
- w4.LeftAttach = ((uint)(1));
- w4.RightAttach = ((uint)(2));
- w4.XOptions = ((global::Gtk.AttachOptions)(4));
- w4.YOptions = ((global::Gtk.AttachOptions)(4));
- // Container child table1.Gtk.Table+TableChild
- this.label1 = new global::Gtk.Label ();
- this.label1.Name = "label1";
- this.label1.Xalign = 0F;
- this.label1.LabelProp = global::Mono.Addins.AddinManager.CurrentLocalizer.GetString ("Application Name:");
- this.table1.Add (this.label1);
- global::Gtk.Table.TableChild w5 = ((global::Gtk.Table.TableChild)(this.table1 [this.label1]));
- w5.XOptions = ((global::Gtk.AttachOptions)(4));
- w5.YOptions = ((global::Gtk.AttachOptions)(4));
- // Container child table1.Gtk.Table+TableChild
- this.label2 = new global::Gtk.Label ();
- this.label2.Name = "label2";
- this.label2.Xalign = 0F;
- this.label2.LabelProp = global::Mono.Addins.AddinManager.CurrentLocalizer.GetString ("Registry Path:");
- this.table1.Add (this.label2);
- global::Gtk.Table.TableChild w6 = ((global::Gtk.Table.TableChild)(this.table1 [this.label2]));
- w6.TopAttach = ((uint)(2));
- w6.BottomAttach = ((uint)(3));
- w6.XOptions = ((global::Gtk.AttachOptions)(4));
- w6.YOptions = ((global::Gtk.AttachOptions)(4));
- // Container child table1.Gtk.Table+TableChild
- this.label3 = new global::Gtk.Label ();
- this.label3.Name = "label3";
- this.label3.Xalign = 0F;
- this.label3.LabelProp = global::Mono.Addins.AddinManager.CurrentLocalizer.GetString ("Application Path:");
- this.table1.Add (this.label3);
- global::Gtk.Table.TableChild w7 = ((global::Gtk.Table.TableChild)(this.table1 [this.label3]));
- w7.TopAttach = ((uint)(1));
- w7.BottomAttach = ((uint)(2));
- w7.XOptions = ((global::Gtk.AttachOptions)(4));
- w7.YOptions = ((global::Gtk.AttachOptions)(4));
- w1.Add (this.table1);
- global::Gtk.Box.BoxChild w8 = ((global::Gtk.Box.BoxChild)(w1 [this.table1]));
- w8.Position = 0;
- w8.Expand = false;
- w8.Fill = false;
- // Internal child MonoDevelop.AddinAuthoring.NewRegistryDialog.ActionArea
- global::Gtk.HButtonBox w9 = this.ActionArea;
- w9.Name = "dialog1_ActionArea";
- w9.Spacing = 6;
- w9.BorderWidth = ((uint)(5));
- w9.LayoutStyle = ((global::Gtk.ButtonBoxStyle)(4));
- // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
- this.buttonCancel = new global::Gtk.Button ();
- this.buttonCancel.CanDefault = true;
- this.buttonCancel.CanFocus = true;
- this.buttonCancel.Name = "buttonCancel";
- this.buttonCancel.UseStock = true;
- this.buttonCancel.UseUnderline = true;
- this.buttonCancel.Label = "gtk-cancel";
- this.AddActionWidget (this.buttonCancel, -6);
- global::Gtk.ButtonBox.ButtonBoxChild w10 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w9 [this.buttonCancel]));
- w10.Expand = false;
- w10.Fill = false;
- // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
- this.buttonOk = new global::Gtk.Button ();
- this.buttonOk.CanDefault = true;
- this.buttonOk.CanFocus = true;
- this.buttonOk.Name = "buttonOk";
- this.buttonOk.UseStock = true;
- this.buttonOk.UseUnderline = true;
- this.buttonOk.Label = "gtk-ok";
- this.AddActionWidget (this.buttonOk, -5);
- global::Gtk.ButtonBox.ButtonBoxChild w11 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w9 [this.buttonOk]));
- w11.Position = 1;
- w11.Expand = false;
- w11.Fill = false;
- if ((this.Child != null)) {
- this.Child.ShowAll ();
- }
- this.Show ();
- }
- }
-}
diff --git a/extras/MonoDevelop.AddinAuthoring/gtk-gui/MonoDevelop.AddinAuthoring.NodeSetEditorDialog.cs b/extras/MonoDevelop.AddinAuthoring/gtk-gui/MonoDevelop.AddinAuthoring.NodeSetEditorDialog.cs
deleted file mode 100644
index d821c363dc..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/gtk-gui/MonoDevelop.AddinAuthoring.NodeSetEditorDialog.cs
+++ /dev/null
@@ -1,59 +0,0 @@
-
-// This file has been generated by the GUI designer. Do not modify.
-namespace MonoDevelop.AddinAuthoring
-{
- public partial class NodeSetEditorDialog
- {
- private global::Gtk.Button buttonCancel;
- private global::Gtk.Button buttonOk;
-
- protected virtual void Build ()
- {
- global::Stetic.Gui.Initialize (this);
- // Widget MonoDevelop.AddinAuthoring.NodeSetEditorDialog
- this.Name = "MonoDevelop.AddinAuthoring.NodeSetEditorDialog";
- this.WindowPosition = ((global::Gtk.WindowPosition)(4));
- // Internal child MonoDevelop.AddinAuthoring.NodeSetEditorDialog.VBox
- global::Gtk.VBox w1 = this.VBox;
- w1.Name = "dialog1_VBox";
- w1.BorderWidth = ((uint)(2));
- // Internal child MonoDevelop.AddinAuthoring.NodeSetEditorDialog.ActionArea
- global::Gtk.HButtonBox w2 = this.ActionArea;
- w2.Name = "dialog1_ActionArea";
- w2.Spacing = 10;
- w2.BorderWidth = ((uint)(5));
- w2.LayoutStyle = ((global::Gtk.ButtonBoxStyle)(4));
- // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
- this.buttonCancel = new global::Gtk.Button ();
- this.buttonCancel.CanDefault = true;
- this.buttonCancel.CanFocus = true;
- this.buttonCancel.Name = "buttonCancel";
- this.buttonCancel.UseStock = true;
- this.buttonCancel.UseUnderline = true;
- this.buttonCancel.Label = "gtk-cancel";
- this.AddActionWidget (this.buttonCancel, -6);
- global::Gtk.ButtonBox.ButtonBoxChild w3 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w2 [this.buttonCancel]));
- w3.Expand = false;
- w3.Fill = false;
- // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
- this.buttonOk = new global::Gtk.Button ();
- this.buttonOk.CanDefault = true;
- this.buttonOk.CanFocus = true;
- this.buttonOk.Name = "buttonOk";
- this.buttonOk.UseStock = true;
- this.buttonOk.UseUnderline = true;
- this.buttonOk.Label = "gtk-ok";
- this.AddActionWidget (this.buttonOk, -5);
- global::Gtk.ButtonBox.ButtonBoxChild w4 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w2 [this.buttonOk]));
- w4.Position = 1;
- w4.Expand = false;
- w4.Fill = false;
- if ((this.Child != null)) {
- this.Child.ShowAll ();
- }
- this.DefaultWidth = 400;
- this.DefaultHeight = 300;
- this.Show ();
- }
- }
-}
diff --git a/extras/MonoDevelop.AddinAuthoring/gtk-gui/MonoDevelop.AddinAuthoring.NodeSetEditorWidget.cs b/extras/MonoDevelop.AddinAuthoring/gtk-gui/MonoDevelop.AddinAuthoring.NodeSetEditorWidget.cs
deleted file mode 100644
index b6c63ad7fd..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/gtk-gui/MonoDevelop.AddinAuthoring.NodeSetEditorWidget.cs
+++ /dev/null
@@ -1,134 +0,0 @@
-
-// This file has been generated by the GUI designer. Do not modify.
-namespace MonoDevelop.AddinAuthoring
-{
- public partial class NodeSetEditorWidget
- {
- private global::Gtk.HBox hbox4;
- private global::Gtk.ScrolledWindow GtkScrolledWindow;
- private global::Gtk.TreeView tree;
- private global::Gtk.VBox buttonBox;
- private global::Gtk.Button addNodeButton;
- private global::Gtk.Button addSetButton;
- private global::Gtk.Button removeNodeButton;
- private global::Gtk.Button editNodeButton;
-
- protected virtual void Build ()
- {
- global::Stetic.Gui.Initialize (this);
- // Widget MonoDevelop.AddinAuthoring.NodeSetEditorWidget
- global::Stetic.BinContainer.Attach (this);
- this.Name = "MonoDevelop.AddinAuthoring.NodeSetEditorWidget";
- // Container child MonoDevelop.AddinAuthoring.NodeSetEditorWidget.Gtk.Container+ContainerChild
- this.hbox4 = new global::Gtk.HBox ();
- this.hbox4.Name = "hbox4";
- this.hbox4.Spacing = 6;
- // Container child hbox4.Gtk.Box+BoxChild
- this.GtkScrolledWindow = new global::Gtk.ScrolledWindow ();
- this.GtkScrolledWindow.Name = "GtkScrolledWindow";
- this.GtkScrolledWindow.ShadowType = ((global::Gtk.ShadowType)(1));
- // Container child GtkScrolledWindow.Gtk.Container+ContainerChild
- this.tree = new global::Gtk.TreeView ();
- this.tree.CanFocus = true;
- this.tree.Name = "tree";
- this.GtkScrolledWindow.Add (this.tree);
- this.hbox4.Add (this.GtkScrolledWindow);
- global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.hbox4 [this.GtkScrolledWindow]));
- w2.Position = 0;
- // Container child hbox4.Gtk.Box+BoxChild
- this.buttonBox = new global::Gtk.VBox ();
- this.buttonBox.Name = "buttonBox";
- this.buttonBox.Spacing = 6;
- // Container child buttonBox.Gtk.Box+BoxChild
- this.addNodeButton = new global::Gtk.Button ();
- this.addNodeButton.CanFocus = true;
- this.addNodeButton.Name = "addNodeButton";
- this.addNodeButton.UseUnderline = true;
- // Container child addNodeButton.Gtk.Container+ContainerChild
- global::Gtk.Alignment w3 = new global::Gtk.Alignment (0.5F, 0.5F, 0F, 0F);
- // Container child GtkAlignment.Gtk.Container+ContainerChild
- global::Gtk.HBox w4 = new global::Gtk.HBox ();
- w4.Spacing = 2;
- // Container child GtkHBox.Gtk.Container+ContainerChild
- global::Gtk.Image w5 = new global::Gtk.Image ();
- w5.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-add", global::Gtk.IconSize.Menu);
- w4.Add (w5);
- // Container child GtkHBox.Gtk.Container+ContainerChild
- global::Gtk.Label w7 = new global::Gtk.Label ();
- w7.LabelProp = global::Mono.Addins.AddinManager.CurrentLocalizer.GetString ("_Add Node Type...");
- w7.UseUnderline = true;
- w4.Add (w7);
- w3.Add (w4);
- this.addNodeButton.Add (w3);
- this.buttonBox.Add (this.addNodeButton);
- global::Gtk.Box.BoxChild w11 = ((global::Gtk.Box.BoxChild)(this.buttonBox [this.addNodeButton]));
- w11.Position = 0;
- w11.Expand = false;
- w11.Fill = false;
- // Container child buttonBox.Gtk.Box+BoxChild
- this.addSetButton = new global::Gtk.Button ();
- this.addSetButton.CanFocus = true;
- this.addSetButton.Name = "addSetButton";
- this.addSetButton.UseUnderline = true;
- // Container child addSetButton.Gtk.Container+ContainerChild
- global::Gtk.Alignment w12 = new global::Gtk.Alignment (0.5F, 0.5F, 0F, 0F);
- // Container child GtkAlignment.Gtk.Container+ContainerChild
- global::Gtk.HBox w13 = new global::Gtk.HBox ();
- w13.Spacing = 2;
- // Container child GtkHBox.Gtk.Container+ContainerChild
- global::Gtk.Image w14 = new global::Gtk.Image ();
- w14.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-add", global::Gtk.IconSize.Menu);
- w13.Add (w14);
- // Container child GtkHBox.Gtk.Container+ContainerChild
- global::Gtk.Label w16 = new global::Gtk.Label ();
- w16.LabelProp = global::Mono.Addins.AddinManager.CurrentLocalizer.GetString ("Add Node _Set...");
- w16.UseUnderline = true;
- w13.Add (w16);
- w12.Add (w13);
- this.addSetButton.Add (w12);
- this.buttonBox.Add (this.addSetButton);
- global::Gtk.Box.BoxChild w20 = ((global::Gtk.Box.BoxChild)(this.buttonBox [this.addSetButton]));
- w20.Position = 1;
- w20.Expand = false;
- w20.Fill = false;
- // Container child buttonBox.Gtk.Box+BoxChild
- this.removeNodeButton = new global::Gtk.Button ();
- this.removeNodeButton.CanFocus = true;
- this.removeNodeButton.Name = "removeNodeButton";
- this.removeNodeButton.UseStock = true;
- this.removeNodeButton.UseUnderline = true;
- this.removeNodeButton.Label = "gtk-remove";
- this.buttonBox.Add (this.removeNodeButton);
- global::Gtk.Box.BoxChild w21 = ((global::Gtk.Box.BoxChild)(this.buttonBox [this.removeNodeButton]));
- w21.Position = 2;
- w21.Expand = false;
- w21.Fill = false;
- // Container child buttonBox.Gtk.Box+BoxChild
- this.editNodeButton = new global::Gtk.Button ();
- this.editNodeButton.CanFocus = true;
- this.editNodeButton.Name = "editNodeButton";
- this.editNodeButton.UseStock = true;
- this.editNodeButton.UseUnderline = true;
- this.editNodeButton.Label = "gtk-edit";
- this.buttonBox.Add (this.editNodeButton);
- global::Gtk.Box.BoxChild w22 = ((global::Gtk.Box.BoxChild)(this.buttonBox [this.editNodeButton]));
- w22.Position = 3;
- w22.Expand = false;
- w22.Fill = false;
- this.hbox4.Add (this.buttonBox);
- global::Gtk.Box.BoxChild w23 = ((global::Gtk.Box.BoxChild)(this.hbox4 [this.buttonBox]));
- w23.Position = 1;
- w23.Expand = false;
- w23.Fill = false;
- this.Add (this.hbox4);
- if ((this.Child != null)) {
- this.Child.ShowAll ();
- }
- this.Show ();
- this.addNodeButton.Clicked += new global::System.EventHandler (this.OnAddNodeButtonClicked);
- this.addSetButton.Clicked += new global::System.EventHandler (this.OnAddSetButtonClicked);
- this.removeNodeButton.Clicked += new global::System.EventHandler (this.OnRemoveNodeButtonClicked);
- this.editNodeButton.Clicked += new global::System.EventHandler (this.OnEditNodeButtonClicked);
- }
- }
-}
diff --git a/extras/MonoDevelop.AddinAuthoring/gtk-gui/MonoDevelop.AddinAuthoring.NodeTypeEditorDialog.cs b/extras/MonoDevelop.AddinAuthoring/gtk-gui/MonoDevelop.AddinAuthoring.NodeTypeEditorDialog.cs
deleted file mode 100644
index ad9a7770e7..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/gtk-gui/MonoDevelop.AddinAuthoring.NodeTypeEditorDialog.cs
+++ /dev/null
@@ -1,177 +0,0 @@
-
-// This file has been generated by the GUI designer. Do not modify.
-namespace MonoDevelop.AddinAuthoring
-{
- public partial class NodeTypeEditorDialog
- {
- private global::Gtk.Table table1;
- private global::MonoDevelop.AddinAuthoring.TypeSelector baseType;
- private global::Gtk.Entry entryDesc;
- private global::Gtk.Entry entryName;
- private global::Gtk.Label label3;
- private global::Gtk.Label label4;
- private global::Gtk.Label label5;
- private global::Gtk.Label label6;
- private global::MonoDevelop.AddinAuthoring.TypeSelector nodeType;
- private global::Gtk.Button buttonCancel;
- private global::Gtk.Button buttonOk;
-
- protected virtual void Build ()
- {
- global::Stetic.Gui.Initialize (this);
- // Widget MonoDevelop.AddinAuthoring.NodeTypeEditorDialog
- this.Name = "MonoDevelop.AddinAuthoring.NodeTypeEditorDialog";
- this.Title = global::Mono.Addins.AddinManager.CurrentLocalizer.GetString ("Extension Node Type");
- this.WindowPosition = ((global::Gtk.WindowPosition)(4));
- this.Modal = true;
- // Internal child MonoDevelop.AddinAuthoring.NodeTypeEditorDialog.VBox
- global::Gtk.VBox w1 = this.VBox;
- w1.Name = "dialog1_VBox";
- w1.BorderWidth = ((uint)(2));
- // Container child dialog1_VBox.Gtk.Box+BoxChild
- this.table1 = new global::Gtk.Table (((uint)(4)), ((uint)(2)), false);
- this.table1.Name = "table1";
- this.table1.RowSpacing = ((uint)(6));
- this.table1.ColumnSpacing = ((uint)(6));
- this.table1.BorderWidth = ((uint)(9));
- // Container child table1.Gtk.Table+TableChild
- this.baseType = new global::MonoDevelop.AddinAuthoring.TypeSelector ();
- this.baseType.Events = ((global::Gdk.EventMask)(256));
- this.baseType.Name = "baseType";
- this.baseType.AllowCreate = false;
- this.baseType.AllowCreateInterface = false;
- this.table1.Add (this.baseType);
- global::Gtk.Table.TableChild w2 = ((global::Gtk.Table.TableChild)(this.table1 [this.baseType]));
- w2.TopAttach = ((uint)(2));
- w2.BottomAttach = ((uint)(3));
- w2.LeftAttach = ((uint)(1));
- w2.RightAttach = ((uint)(2));
- w2.YOptions = ((global::Gtk.AttachOptions)(4));
- // Container child table1.Gtk.Table+TableChild
- this.entryDesc = new global::Gtk.Entry ();
- this.entryDesc.CanFocus = true;
- this.entryDesc.Name = "entryDesc";
- this.entryDesc.IsEditable = true;
- this.entryDesc.InvisibleChar = '●';
- this.table1.Add (this.entryDesc);
- global::Gtk.Table.TableChild w3 = ((global::Gtk.Table.TableChild)(this.table1 [this.entryDesc]));
- w3.TopAttach = ((uint)(3));
- w3.BottomAttach = ((uint)(4));
- w3.LeftAttach = ((uint)(1));
- w3.RightAttach = ((uint)(2));
- w3.YOptions = ((global::Gtk.AttachOptions)(4));
- // Container child table1.Gtk.Table+TableChild
- this.entryName = new global::Gtk.Entry ();
- this.entryName.CanFocus = true;
- this.entryName.Name = "entryName";
- this.entryName.IsEditable = true;
- this.entryName.InvisibleChar = '●';
- this.table1.Add (this.entryName);
- global::Gtk.Table.TableChild w4 = ((global::Gtk.Table.TableChild)(this.table1 [this.entryName]));
- w4.TopAttach = ((uint)(1));
- w4.BottomAttach = ((uint)(2));
- w4.LeftAttach = ((uint)(1));
- w4.RightAttach = ((uint)(2));
- w4.YOptions = ((global::Gtk.AttachOptions)(4));
- // Container child table1.Gtk.Table+TableChild
- this.label3 = new global::Gtk.Label ();
- this.label3.Name = "label3";
- this.label3.Xalign = 0F;
- this.label3.LabelProp = global::Mono.Addins.AddinManager.CurrentLocalizer.GetString ("Node type:");
- this.table1.Add (this.label3);
- global::Gtk.Table.TableChild w5 = ((global::Gtk.Table.TableChild)(this.table1 [this.label3]));
- w5.XOptions = ((global::Gtk.AttachOptions)(4));
- w5.YOptions = ((global::Gtk.AttachOptions)(4));
- // Container child table1.Gtk.Table+TableChild
- this.label4 = new global::Gtk.Label ();
- this.label4.Name = "label4";
- this.label4.Xalign = 0F;
- this.label4.LabelProp = global::Mono.Addins.AddinManager.CurrentLocalizer.GetString ("Description:");
- this.table1.Add (this.label4);
- global::Gtk.Table.TableChild w6 = ((global::Gtk.Table.TableChild)(this.table1 [this.label4]));
- w6.TopAttach = ((uint)(3));
- w6.BottomAttach = ((uint)(4));
- w6.XOptions = ((global::Gtk.AttachOptions)(4));
- w6.YOptions = ((global::Gtk.AttachOptions)(4));
- // Container child table1.Gtk.Table+TableChild
- this.label5 = new global::Gtk.Label ();
- this.label5.Name = "label5";
- this.label5.Xalign = 0F;
- this.label5.LabelProp = global::Mono.Addins.AddinManager.CurrentLocalizer.GetString ("Base type:");
- this.table1.Add (this.label5);
- global::Gtk.Table.TableChild w7 = ((global::Gtk.Table.TableChild)(this.table1 [this.label5]));
- w7.TopAttach = ((uint)(2));
- w7.BottomAttach = ((uint)(3));
- w7.XOptions = ((global::Gtk.AttachOptions)(4));
- w7.YOptions = ((global::Gtk.AttachOptions)(4));
- // Container child table1.Gtk.Table+TableChild
- this.label6 = new global::Gtk.Label ();
- this.label6.Name = "label6";
- this.label6.Xalign = 0F;
- this.label6.LabelProp = global::Mono.Addins.AddinManager.CurrentLocalizer.GetString ("Node name:");
- this.table1.Add (this.label6);
- global::Gtk.Table.TableChild w8 = ((global::Gtk.Table.TableChild)(this.table1 [this.label6]));
- w8.TopAttach = ((uint)(1));
- w8.BottomAttach = ((uint)(2));
- w8.XOptions = ((global::Gtk.AttachOptions)(4));
- w8.YOptions = ((global::Gtk.AttachOptions)(4));
- // Container child table1.Gtk.Table+TableChild
- this.nodeType = new global::MonoDevelop.AddinAuthoring.TypeSelector ();
- this.nodeType.Events = ((global::Gdk.EventMask)(256));
- this.nodeType.Name = "nodeType";
- this.nodeType.AllowCreate = false;
- this.nodeType.AllowCreateInterface = false;
- this.table1.Add (this.nodeType);
- global::Gtk.Table.TableChild w9 = ((global::Gtk.Table.TableChild)(this.table1 [this.nodeType]));
- w9.LeftAttach = ((uint)(1));
- w9.RightAttach = ((uint)(2));
- w9.XOptions = ((global::Gtk.AttachOptions)(4));
- w9.YOptions = ((global::Gtk.AttachOptions)(4));
- w1.Add (this.table1);
- global::Gtk.Box.BoxChild w10 = ((global::Gtk.Box.BoxChild)(w1 [this.table1]));
- w10.Position = 0;
- w10.Expand = false;
- w10.Fill = false;
- // Internal child MonoDevelop.AddinAuthoring.NodeTypeEditorDialog.ActionArea
- global::Gtk.HButtonBox w11 = this.ActionArea;
- w11.Name = "dialog1_ActionArea";
- w11.Spacing = 6;
- w11.BorderWidth = ((uint)(5));
- w11.LayoutStyle = ((global::Gtk.ButtonBoxStyle)(4));
- // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
- this.buttonCancel = new global::Gtk.Button ();
- this.buttonCancel.CanDefault = true;
- this.buttonCancel.CanFocus = true;
- this.buttonCancel.Name = "buttonCancel";
- this.buttonCancel.UseStock = true;
- this.buttonCancel.UseUnderline = true;
- this.buttonCancel.Label = "gtk-cancel";
- this.AddActionWidget (this.buttonCancel, -6);
- global::Gtk.ButtonBox.ButtonBoxChild w12 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w11 [this.buttonCancel]));
- w12.Expand = false;
- w12.Fill = false;
- // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
- this.buttonOk = new global::Gtk.Button ();
- this.buttonOk.CanDefault = true;
- this.buttonOk.CanFocus = true;
- this.buttonOk.Name = "buttonOk";
- this.buttonOk.UseStock = true;
- this.buttonOk.UseUnderline = true;
- this.buttonOk.Label = "gtk-ok";
- this.AddActionWidget (this.buttonOk, -5);
- global::Gtk.ButtonBox.ButtonBoxChild w13 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w11 [this.buttonOk]));
- w13.Position = 1;
- w13.Expand = false;
- w13.Fill = false;
- if ((this.Child != null)) {
- this.Child.ShowAll ();
- }
- this.DefaultWidth = 543;
- this.DefaultHeight = 251;
- this.Show ();
- this.nodeType.Changed += new global::System.EventHandler (this.OnNodeTypeChanged);
- this.entryName.Changed += new global::System.EventHandler (this.OnEntryNameChanged);
- this.buttonOk.Clicked += new global::System.EventHandler (this.OnButtonOkClicked);
- }
- }
-}
diff --git a/extras/MonoDevelop.AddinAuthoring/gtk-gui/MonoDevelop.AddinAuthoring.RegistrySelector.cs b/extras/MonoDevelop.AddinAuthoring/gtk-gui/MonoDevelop.AddinAuthoring.RegistrySelector.cs
deleted file mode 100644
index 15031491ee..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/gtk-gui/MonoDevelop.AddinAuthoring.RegistrySelector.cs
+++ /dev/null
@@ -1,62 +0,0 @@
-
-// This file has been generated by the GUI designer. Do not modify.
-namespace MonoDevelop.AddinAuthoring
-{
- public partial class RegistrySelector
- {
- private global::Gtk.Button buttonBrowse;
- private global::Gtk.HBox hbox2;
- private global::Gtk.Label label;
- private global::Gtk.VSeparator vseparator1;
- private global::Gtk.Image image131;
-
- protected virtual void Build ()
- {
- global::Stetic.Gui.Initialize (this);
- // Widget MonoDevelop.AddinAuthoring.RegistrySelector
- global::Stetic.BinContainer.Attach (this);
- this.Name = "MonoDevelop.AddinAuthoring.RegistrySelector";
- // Container child MonoDevelop.AddinAuthoring.RegistrySelector.Gtk.Container+ContainerChild
- this.buttonBrowse = new global::Gtk.Button ();
- this.buttonBrowse.CanFocus = true;
- this.buttonBrowse.Name = "buttonBrowse";
- // Container child buttonBrowse.Gtk.Container+ContainerChild
- this.hbox2 = new global::Gtk.HBox ();
- this.hbox2.Name = "hbox2";
- this.hbox2.Spacing = 6;
- // Container child hbox2.Gtk.Box+BoxChild
- this.label = new global::Gtk.Label ();
- this.label.Name = "label";
- this.label.Xalign = 0F;
- this.label.Ellipsize = ((global::Pango.EllipsizeMode)(3));
- this.hbox2.Add (this.label);
- global::Gtk.Box.BoxChild w1 = ((global::Gtk.Box.BoxChild)(this.hbox2 [this.label]));
- w1.Position = 0;
- // Container child hbox2.Gtk.Box+BoxChild
- this.vseparator1 = new global::Gtk.VSeparator ();
- this.vseparator1.Name = "vseparator1";
- this.hbox2.Add (this.vseparator1);
- global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.hbox2 [this.vseparator1]));
- w2.Position = 1;
- w2.Expand = false;
- w2.Fill = false;
- // Container child hbox2.Gtk.Box+BoxChild
- this.image131 = new global::Gtk.Image ();
- this.image131.Name = "image131";
- this.image131.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-open", global::Gtk.IconSize.Menu);
- this.hbox2.Add (this.image131);
- global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.hbox2 [this.image131]));
- w3.Position = 2;
- w3.Expand = false;
- w3.Fill = false;
- this.buttonBrowse.Add (this.hbox2);
- this.buttonBrowse.Label = null;
- this.Add (this.buttonBrowse);
- if ((this.Child != null)) {
- this.Child.ShowAll ();
- }
- this.Show ();
- this.buttonBrowse.Clicked += new global::System.EventHandler (this.OnButtonBrowseClicked);
- }
- }
-}
diff --git a/extras/MonoDevelop.AddinAuthoring/gtk-gui/MonoDevelop.AddinAuthoring.SelectNodeSetDialog.cs b/extras/MonoDevelop.AddinAuthoring/gtk-gui/MonoDevelop.AddinAuthoring.SelectNodeSetDialog.cs
deleted file mode 100644
index bcb8fb3254..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/gtk-gui/MonoDevelop.AddinAuthoring.SelectNodeSetDialog.cs
+++ /dev/null
@@ -1,108 +0,0 @@
-
-// This file has been generated by the GUI designer. Do not modify.
-namespace MonoDevelop.AddinAuthoring
-{
- public partial class SelectNodeSetDialog
- {
- private global::Gtk.VBox vbox3;
- private global::Gtk.HBox hbox1;
- private global::Gtk.Label label1;
- private global::Gtk.ComboBoxEntry combo;
- private global::MonoDevelop.AddinAuthoring.NodeSetEditorWidget nodeseteditor;
- private global::Gtk.Button buttonCancel;
- private global::Gtk.Button buttonOk;
-
- protected virtual void Build ()
- {
- global::Stetic.Gui.Initialize (this);
- // Widget MonoDevelop.AddinAuthoring.SelectNodeSetDialog
- this.Name = "MonoDevelop.AddinAuthoring.SelectNodeSetDialog";
- this.Title = global::Mono.Addins.AddinManager.CurrentLocalizer.GetString ("Select Node Set");
- this.WindowPosition = ((global::Gtk.WindowPosition)(4));
- this.Modal = true;
- // Internal child MonoDevelop.AddinAuthoring.SelectNodeSetDialog.VBox
- global::Gtk.VBox w1 = this.VBox;
- w1.Name = "dialog1_VBox";
- w1.BorderWidth = ((uint)(2));
- // Container child dialog1_VBox.Gtk.Box+BoxChild
- this.vbox3 = new global::Gtk.VBox ();
- this.vbox3.Name = "vbox3";
- this.vbox3.Spacing = 12;
- this.vbox3.BorderWidth = ((uint)(9));
- // Container child vbox3.Gtk.Box+BoxChild
- this.hbox1 = new global::Gtk.HBox ();
- this.hbox1.Name = "hbox1";
- this.hbox1.Spacing = 6;
- // Container child hbox1.Gtk.Box+BoxChild
- this.label1 = new global::Gtk.Label ();
- this.label1.Name = "label1";
- this.label1.Xalign = 0F;
- this.label1.LabelProp = global::Mono.Addins.AddinManager.CurrentLocalizer.GetString ("Node Set:");
- this.hbox1.Add (this.label1);
- global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.label1]));
- w2.Position = 0;
- w2.Expand = false;
- w2.Fill = false;
- // Container child hbox1.Gtk.Box+BoxChild
- this.combo = global::Gtk.ComboBoxEntry.NewText ();
- this.combo.Name = "combo";
- this.hbox1.Add (this.combo);
- global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.combo]));
- w3.Position = 1;
- this.vbox3.Add (this.hbox1);
- global::Gtk.Box.BoxChild w4 = ((global::Gtk.Box.BoxChild)(this.vbox3 [this.hbox1]));
- w4.Position = 0;
- w4.Expand = false;
- w4.Fill = false;
- // Container child vbox3.Gtk.Box+BoxChild
- this.nodeseteditor = new global::MonoDevelop.AddinAuthoring.NodeSetEditorWidget ();
- this.nodeseteditor.Events = ((global::Gdk.EventMask)(256));
- this.nodeseteditor.Name = "nodeseteditor";
- this.nodeseteditor.AllowEditing = false;
- this.vbox3.Add (this.nodeseteditor);
- global::Gtk.Box.BoxChild w5 = ((global::Gtk.Box.BoxChild)(this.vbox3 [this.nodeseteditor]));
- w5.Position = 1;
- w1.Add (this.vbox3);
- global::Gtk.Box.BoxChild w6 = ((global::Gtk.Box.BoxChild)(w1 [this.vbox3]));
- w6.Position = 0;
- // Internal child MonoDevelop.AddinAuthoring.SelectNodeSetDialog.ActionArea
- global::Gtk.HButtonBox w7 = this.ActionArea;
- w7.Name = "dialog1_ActionArea";
- w7.Spacing = 6;
- w7.BorderWidth = ((uint)(5));
- w7.LayoutStyle = ((global::Gtk.ButtonBoxStyle)(4));
- // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
- this.buttonCancel = new global::Gtk.Button ();
- this.buttonCancel.CanDefault = true;
- this.buttonCancel.CanFocus = true;
- this.buttonCancel.Name = "buttonCancel";
- this.buttonCancel.UseStock = true;
- this.buttonCancel.UseUnderline = true;
- this.buttonCancel.Label = "gtk-cancel";
- this.AddActionWidget (this.buttonCancel, -6);
- global::Gtk.ButtonBox.ButtonBoxChild w8 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w7 [this.buttonCancel]));
- w8.Expand = false;
- w8.Fill = false;
- // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
- this.buttonOk = new global::Gtk.Button ();
- this.buttonOk.CanDefault = true;
- this.buttonOk.CanFocus = true;
- this.buttonOk.Name = "buttonOk";
- this.buttonOk.UseStock = true;
- this.buttonOk.UseUnderline = true;
- this.buttonOk.Label = "gtk-ok";
- this.AddActionWidget (this.buttonOk, -5);
- global::Gtk.ButtonBox.ButtonBoxChild w9 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w7 [this.buttonOk]));
- w9.Position = 1;
- w9.Expand = false;
- w9.Fill = false;
- if ((this.Child != null)) {
- this.Child.ShowAll ();
- }
- this.DefaultWidth = 498;
- this.DefaultHeight = 346;
- this.Show ();
- this.combo.Changed += new global::System.EventHandler (this.OnComboChanged);
- }
- }
-}
diff --git a/extras/MonoDevelop.AddinAuthoring/gtk-gui/MonoDevelop.AddinAuthoring.SelectRepositoryDialog.cs b/extras/MonoDevelop.AddinAuthoring/gtk-gui/MonoDevelop.AddinAuthoring.SelectRepositoryDialog.cs
deleted file mode 100644
index d216cf976d..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/gtk-gui/MonoDevelop.AddinAuthoring.SelectRepositoryDialog.cs
+++ /dev/null
@@ -1,142 +0,0 @@
-
-// This file has been generated by the GUI designer. Do not modify.
-namespace MonoDevelop.AddinAuthoring
-{
- public partial class SelectRepositoryDialog
- {
- private global::Gtk.VBox vbox4;
- private global::Gtk.Label label11;
- private global::Gtk.HBox hbox1;
- private global::Gtk.ScrolledWindow scrolledwindow4;
- private global::Gtk.TreeView tree;
- private global::Gtk.VBox vbox2;
- private global::Gtk.Button buttonAdd;
- private global::Gtk.Button buttonRemove;
- private global::Gtk.Button button155;
- private global::Gtk.Button buttonOk;
-
- protected virtual void Build ()
- {
- global::Stetic.Gui.Initialize (this);
- // Widget MonoDevelop.AddinAuthoring.SelectRepositoryDialog
- this.Name = "MonoDevelop.AddinAuthoring.SelectRepositoryDialog";
- this.Title = global::Mono.Addins.AddinManager.CurrentLocalizer.GetString ("Select Add-in Registry");
- this.WindowPosition = ((global::Gtk.WindowPosition)(4));
- this.DefaultWidth = 500;
- this.DefaultHeight = 400;
- // Internal child MonoDevelop.AddinAuthoring.SelectRepositoryDialog.VBox
- global::Gtk.VBox w1 = this.VBox;
- w1.Events = ((global::Gdk.EventMask)(256));
- w1.Name = "dialog_VBox";
- w1.BorderWidth = ((uint)(2));
- // Container child dialog_VBox.Gtk.Box+BoxChild
- this.vbox4 = new global::Gtk.VBox ();
- this.vbox4.Name = "vbox4";
- this.vbox4.Spacing = 6;
- this.vbox4.BorderWidth = ((uint)(6));
- // Container child vbox4.Gtk.Box+BoxChild
- this.label11 = new global::Gtk.Label ();
- this.label11.Name = "label11";
- this.label11.Xalign = 0F;
- this.label11.LabelProp = global::Mono.Addins.AddinManager.CurrentLocalizer.GetString ("Select the application you want to extend:");
- this.vbox4.Add (this.label11);
- global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.vbox4 [this.label11]));
- w2.Position = 0;
- w2.Expand = false;
- w2.Fill = false;
- // Container child vbox4.Gtk.Box+BoxChild
- this.hbox1 = new global::Gtk.HBox ();
- this.hbox1.Name = "hbox1";
- this.hbox1.Spacing = 6;
- // Container child hbox1.Gtk.Box+BoxChild
- this.scrolledwindow4 = new global::Gtk.ScrolledWindow ();
- this.scrolledwindow4.CanFocus = true;
- this.scrolledwindow4.Name = "scrolledwindow4";
- this.scrolledwindow4.ShadowType = ((global::Gtk.ShadowType)(1));
- // Container child scrolledwindow4.Gtk.Container+ContainerChild
- this.tree = new global::Gtk.TreeView ();
- this.tree.CanFocus = true;
- this.tree.Name = "tree";
- this.scrolledwindow4.Add (this.tree);
- this.hbox1.Add (this.scrolledwindow4);
- global::Gtk.Box.BoxChild w4 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.scrolledwindow4]));
- w4.Position = 0;
- // Container child hbox1.Gtk.Box+BoxChild
- this.vbox2 = new global::Gtk.VBox ();
- this.vbox2.Name = "vbox2";
- this.vbox2.Spacing = 6;
- // Container child vbox2.Gtk.Box+BoxChild
- this.buttonAdd = new global::Gtk.Button ();
- this.buttonAdd.CanFocus = true;
- this.buttonAdd.Name = "buttonAdd";
- this.buttonAdd.UseStock = true;
- this.buttonAdd.UseUnderline = true;
- this.buttonAdd.Label = "gtk-add";
- this.vbox2.Add (this.buttonAdd);
- global::Gtk.Box.BoxChild w5 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.buttonAdd]));
- w5.Position = 0;
- w5.Expand = false;
- w5.Fill = false;
- // Container child vbox2.Gtk.Box+BoxChild
- this.buttonRemove = new global::Gtk.Button ();
- this.buttonRemove.CanFocus = true;
- this.buttonRemove.Name = "buttonRemove";
- this.buttonRemove.UseStock = true;
- this.buttonRemove.UseUnderline = true;
- this.buttonRemove.Label = "gtk-remove";
- this.vbox2.Add (this.buttonRemove);
- global::Gtk.Box.BoxChild w6 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.buttonRemove]));
- w6.Position = 1;
- w6.Expand = false;
- w6.Fill = false;
- this.hbox1.Add (this.vbox2);
- global::Gtk.Box.BoxChild w7 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.vbox2]));
- w7.Position = 1;
- w7.Expand = false;
- w7.Fill = false;
- this.vbox4.Add (this.hbox1);
- global::Gtk.Box.BoxChild w8 = ((global::Gtk.Box.BoxChild)(this.vbox4 [this.hbox1]));
- w8.Position = 1;
- w1.Add (this.vbox4);
- global::Gtk.Box.BoxChild w9 = ((global::Gtk.Box.BoxChild)(w1 [this.vbox4]));
- w9.Position = 0;
- // Internal child MonoDevelop.AddinAuthoring.SelectRepositoryDialog.ActionArea
- global::Gtk.HButtonBox w10 = this.ActionArea;
- w10.Name = "MonoDevelop.AddinAuthoring.SelectRepositoryDialog_ActionArea";
- w10.Spacing = 6;
- w10.BorderWidth = ((uint)(5));
- w10.LayoutStyle = ((global::Gtk.ButtonBoxStyle)(4));
- // Container child MonoDevelop.AddinAuthoring.SelectRepositoryDialog_ActionArea.Gtk.ButtonBox+ButtonBoxChild
- this.button155 = new global::Gtk.Button ();
- this.button155.CanDefault = true;
- this.button155.CanFocus = true;
- this.button155.Name = "button155";
- this.button155.UseStock = true;
- this.button155.UseUnderline = true;
- this.button155.Label = "gtk-cancel";
- this.AddActionWidget (this.button155, -6);
- global::Gtk.ButtonBox.ButtonBoxChild w11 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w10 [this.button155]));
- w11.Expand = false;
- w11.Fill = false;
- // Container child MonoDevelop.AddinAuthoring.SelectRepositoryDialog_ActionArea.Gtk.ButtonBox+ButtonBoxChild
- this.buttonOk = new global::Gtk.Button ();
- this.buttonOk.CanDefault = true;
- this.buttonOk.CanFocus = true;
- this.buttonOk.Name = "buttonOk";
- this.buttonOk.UseStock = true;
- this.buttonOk.UseUnderline = true;
- this.buttonOk.Label = "gtk-ok";
- this.AddActionWidget (this.buttonOk, -5);
- global::Gtk.ButtonBox.ButtonBoxChild w12 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w10 [this.buttonOk]));
- w12.Position = 1;
- w12.Expand = false;
- w12.Fill = false;
- if ((this.Child != null)) {
- this.Child.ShowAll ();
- }
- this.Show ();
- this.buttonAdd.Clicked += new global::System.EventHandler (this.OnButtonAddClicked);
- this.buttonRemove.Clicked += new global::System.EventHandler (this.OnButtonRemoveClicked);
- }
- }
-}
diff --git a/extras/MonoDevelop.AddinAuthoring/gtk-gui/MonoDevelop.AddinAuthoring.TypeSelector.cs b/extras/MonoDevelop.AddinAuthoring/gtk-gui/MonoDevelop.AddinAuthoring.TypeSelector.cs
deleted file mode 100644
index ab3c03bc79..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/gtk-gui/MonoDevelop.AddinAuthoring.TypeSelector.cs
+++ /dev/null
@@ -1,49 +0,0 @@
-
-// This file has been generated by the GUI designer. Do not modify.
-namespace MonoDevelop.AddinAuthoring
-{
- public partial class TypeSelector
- {
- private global::Gtk.HBox hbox3;
- private global::Gtk.EventBox eventbox;
- private global::Gtk.Image typeImage;
- private global::Gtk.ComboBoxEntry combo;
-
- protected virtual void Build ()
- {
- global::Stetic.Gui.Initialize (this);
- // Widget MonoDevelop.AddinAuthoring.TypeSelector
- global::Stetic.BinContainer.Attach (this);
- this.Name = "MonoDevelop.AddinAuthoring.TypeSelector";
- // Container child MonoDevelop.AddinAuthoring.TypeSelector.Gtk.Container+ContainerChild
- this.hbox3 = new global::Gtk.HBox ();
- this.hbox3.Name = "hbox3";
- this.hbox3.Spacing = 6;
- // Container child hbox3.Gtk.Box+BoxChild
- this.eventbox = new global::Gtk.EventBox ();
- this.eventbox.Name = "eventbox";
- // Container child eventbox.Gtk.Container+ContainerChild
- this.typeImage = new global::Gtk.Image ();
- this.typeImage.Name = "typeImage";
- this.typeImage.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "md-addinauthoring-newclass", global::Gtk.IconSize.Menu);
- this.eventbox.Add (this.typeImage);
- this.hbox3.Add (this.eventbox);
- global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.hbox3 [this.eventbox]));
- w2.Position = 0;
- w2.Expand = false;
- w2.Fill = false;
- // Container child hbox3.Gtk.Box+BoxChild
- this.combo = global::Gtk.ComboBoxEntry.NewText ();
- this.combo.Name = "combo";
- this.hbox3.Add (this.combo);
- global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.hbox3 [this.combo]));
- w3.Position = 1;
- this.Add (this.hbox3);
- if ((this.Child != null)) {
- this.Child.ShowAll ();
- }
- this.Show ();
- this.combo.Changed += new global::System.EventHandler (this.OnComboChanged);
- }
- }
-}
diff --git a/extras/MonoDevelop.AddinAuthoring/gtk-gui/generated.cs b/extras/MonoDevelop.AddinAuthoring/gtk-gui/generated.cs
deleted file mode 100644
index 0ada9fc5f0..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/gtk-gui/generated.cs
+++ /dev/null
@@ -1,115 +0,0 @@
-
-// This file has been generated by the GUI designer. Do not modify.
-namespace Stetic
-{
- internal class Gui
- {
- private static bool initialized;
-
- internal static void Initialize (Gtk.Widget iconRenderer)
- {
- if ((Stetic.Gui.initialized == false)) {
- Stetic.Gui.initialized = true;
- }
- }
- }
-
- internal class BinContainer
- {
- private Gtk.Widget child;
- private Gtk.UIManager uimanager;
-
- public static BinContainer Attach (Gtk.Bin bin)
- {
- BinContainer bc = new BinContainer ();
- bin.SizeRequested += new Gtk.SizeRequestedHandler (bc.OnSizeRequested);
- bin.SizeAllocated += new Gtk.SizeAllocatedHandler (bc.OnSizeAllocated);
- bin.Added += new Gtk.AddedHandler (bc.OnAdded);
- return bc;
- }
-
- private void OnSizeRequested (object sender, Gtk.SizeRequestedArgs args)
- {
- if ((this.child != null)) {
- args.Requisition = this.child.SizeRequest ();
- }
- }
-
- private void OnSizeAllocated (object sender, Gtk.SizeAllocatedArgs args)
- {
- if ((this.child != null)) {
- this.child.Allocation = args.Allocation;
- }
- }
-
- private void OnAdded (object sender, Gtk.AddedArgs args)
- {
- this.child = args.Widget;
- }
-
- public void SetUiManager (Gtk.UIManager uim)
- {
- this.uimanager = uim;
- this.child.Realized += new System.EventHandler (this.OnRealized);
- }
-
- private void OnRealized (object sender, System.EventArgs args)
- {
- if ((this.uimanager != null)) {
- Gtk.Widget w;
- w = this.child.Toplevel;
- if (((w != null) && typeof(Gtk.Window).IsInstanceOfType (w))) {
- ((Gtk.Window)(w)).AddAccelGroup (this.uimanager.AccelGroup);
- this.uimanager = null;
- }
- }
- }
- }
-
- internal class IconLoader
- {
- public static Gdk.Pixbuf LoadIcon (Gtk.Widget widget, string name, Gtk.IconSize size)
- {
- Gdk.Pixbuf res = widget.RenderIcon (name, size, null);
- if ((res != null)) {
- return res;
- } else {
- int sz;
- int sy;
- global::Gtk.Icon.SizeLookup (size, out sz, out sy);
- try {
- return Gtk.IconTheme.Default.LoadIcon (name, sz, 0);
- } catch (System.Exception) {
- if ((name != "gtk-missing-image")) {
- return Stetic.IconLoader.LoadIcon (widget, "gtk-missing-image", size);
- } else {
- Gdk.Pixmap pmap = new Gdk.Pixmap (Gdk.Screen.Default.RootWindow, sz, sz);
- Gdk.GC gc = new Gdk.GC (pmap);
- gc.RgbFgColor = new Gdk.Color (255, 255, 255);
- pmap.DrawRectangle (gc, true, 0, 0, sz, sz);
- gc.RgbFgColor = new Gdk.Color (0, 0, 0);
- pmap.DrawRectangle (gc, false, 0, 0, (sz - 1), (sz - 1));
- gc.SetLineAttributes (3, Gdk.LineStyle.Solid, Gdk.CapStyle.Round, Gdk.JoinStyle.Round);
- gc.RgbFgColor = new Gdk.Color (255, 0, 0);
- pmap.DrawLine (gc, (sz / 4), (sz / 4), ((sz - 1) - (sz / 4)), ((sz - 1) - (sz / 4)));
- pmap.DrawLine (gc, ((sz - 1) - (sz / 4)), (sz / 4), (sz / 4), ((sz - 1) - (sz / 4)));
- return Gdk.Pixbuf.FromDrawable (pmap, pmap.Colormap, 0, 0, 0, 0, sz, sz);
- }
- }
- }
- }
- }
-
- internal class ActionGroups
- {
- public static Gtk.ActionGroup GetActionGroup (System.Type type)
- {
- return Stetic.ActionGroups.GetActionGroup (type.FullName);
- }
-
- public static Gtk.ActionGroup GetActionGroup (string name)
- {
- return null;
- }
- }
-}
diff --git a/extras/MonoDevelop.AddinAuthoring/gtk-gui/gui.stetic b/extras/MonoDevelop.AddinAuthoring/gtk-gui/gui.stetic
deleted file mode 100644
index d899d56ace..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/gtk-gui/gui.stetic
+++ /dev/null
@@ -1,3407 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<stetic-interface>
- <configuration>
- <images-root-path>..</images-root-path>
- <target-gtk-version>2.12</target-gtk-version>
- </configuration>
- <import>
- <widget-library name="MonoDevelop.Ide, Version=2.6.0.0, Culture=neutral" />
- <widget-library name="Mono.TextEditor, Version=1.0.0.0, Culture=neutral" />
- <widget-library name="MonoDevelop.VersionControl, Version=2.6.0.0, Culture=neutral" />
- <widget-library name="MonoDevelop.NUnit, Version=2.6.0.0, Culture=neutral" />
- <widget-library name="MonoDevelop.XmlEditor, Version=2.6.0.0, Culture=neutral" />
- <widget-library name="MonoDevelop.Gettext, Version=2.6.0.0, Culture=neutral" />
- <widget-library name="MonoDevelop.Deployment, Version=2.6.0.0, Culture=neutral" />
- <widget-library name="MonoDevelop.Deployment.Linux, Version=2.6.0.0, Culture=neutral" />
- <widget-library name="MonoDevelop.GtkCore, Version=2.6.0.0, Culture=neutral" />
- <widget-library name="MonoDevelop.DesignerSupport, Version=2.6.0.0, Culture=neutral" />
- <widget-library name="MonoDevelop.VBNetBinding, Version=2.6.0.0, Culture=neutral" />
- <widget-library name="MonoDevelop.CSharpBinding, Version=2.6.0.0, Culture=neutral" />
- <widget-library name="MonoDevelop.SourceEditor2, Version=2.6.0.0, Culture=neutral" />
- <widget-library name="MonoDevelop.Debugger, Version=2.6.0.0, Culture=neutral" />
- <widget-library name="MonoDevelop.AspNet, Version=2.6.0.0, Culture=neutral" />
- <widget-library name="MonoDevelop.Autotools, Version=2.6.0.0, Culture=neutral" />
- <widget-library name="MonoDevelop.Refactoring, Version=2.6.0.0, Culture=neutral" />
- <widget-library name="MonoDevelop.Debugger.Soft, Version=2.6.0.0, Culture=neutral" />
- <widget-library name="../build/MonoDevelop.AddinAuthoring.dll" internal="true" />
- </import>
- <widget class="Gtk.Bin" id="MonoDevelop.AddinAuthoring.AddinOptionPanelWidget" design-size="615 437">
- <property name="MemberName" />
- <child>
- <widget class="Gtk.VBox" id="vbox2">
- <property name="MemberName" />
- <property name="Spacing">6</property>
- <child>
- <widget class="Gtk.CheckButton" id="checkEnable">
- <property name="MemberName" />
- <property name="CanFocus">True</property>
- <property name="Label" translatable="yes">Enable extensibility features</property>
- <property name="DrawIndicator">True</property>
- <property name="HasLabel">True</property>
- <property name="UseUnderline">True</property>
- <signal name="Clicked" handler="OnCheckEnableClicked" />
- </widget>
- <packing>
- <property name="Position">0</property>
- <property name="AutoSize">True</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.HSeparator" id="hseparator1">
- <property name="MemberName" />
- </widget>
- <packing>
- <property name="Position">1</property>
- <property name="AutoSize">True</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <widget class="MonoDevelop.AddinAuthoring.AddinFeatureWidget" id="optionsWidget">
- <property name="MemberName" />
- <property name="Events">ButtonPressMask</property>
- </widget>
- <packing>
- <property name="Position">2</property>
- <property name="AutoSize">True</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- </widget>
- </child>
- </widget>
- <widget class="Gtk.Bin" id="MonoDevelop.AddinAuthoring.AddinDescriptionWidget" design-size="646 458">
- <action-group name="Default" />
- <property name="MemberName" />
- <child>
- <widget class="Gtk.VBox" id="mainBox">
- <property name="MemberName" />
- <property name="Spacing">3</property>
- <child>
- <widget class="Gtk.Notebook" id="notebook">
- <property name="MemberName" />
- <property name="CanFocus">True</property>
- <property name="CurrentPage">2</property>
- <property name="TabPos">Bottom</property>
- <child>
- <widget class="Gtk.VBox" id="vbox3">
- <property name="MemberName" />
- <property name="Spacing">6</property>
- <child>
- <widget class="Gtk.Table" id="table1">
- <property name="MemberName" />
- <property name="NRows">11</property>
- <property name="NColumns">2</property>
- <property name="RowSpacing">6</property>
- <property name="ColumnSpacing">6</property>
- <property name="BorderWidth">12</property>
- <child>
- <widget class="Gtk.CheckButton" id="checkIsRoot">
- <property name="MemberName" />
- <property name="CanFocus">True</property>
- <property name="Label" translatable="yes">Add-in root</property>
- <property name="DrawIndicator">True</property>
- <property name="HasLabel">True</property>
- <property name="UseUnderline">True</property>
- <signal name="Clicked" handler="OnCheckIsRootClicked" />
- </widget>
- <packing>
- <property name="TopAttach">3</property>
- <property name="BottomAttach">4</property>
- <property name="RightAttach">2</property>
- <property name="AutoSize">False</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">True</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.ComboBoxEntry" id="comboNs">
- <property name="MemberName" />
- <property name="IsTextCombo">True</property>
- <property name="Items" translatable="yes" />
- </widget>
- <packing>
- <property name="TopAttach">1</property>
- <property name="BottomAttach">2</property>
- <property name="LeftAttach">1</property>
- <property name="RightAttach">2</property>
- <property name="AutoSize">False</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">True</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Entry" id="entryAuthor">
- <property name="MemberName" />
- <property name="CanFocus">True</property>
- <property name="IsEditable">True</property>
- <property name="InvisibleChar">●</property>
- <signal name="Changed" handler="OnEntryChanged" />
- </widget>
- <packing>
- <property name="TopAttach">8</property>
- <property name="BottomAttach">9</property>
- <property name="LeftAttach">1</property>
- <property name="RightAttach">2</property>
- <property name="AutoSize">False</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">True</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Entry" id="entryIdentifier">
- <property name="MemberName" />
- <property name="CanFocus">True</property>
- <property name="IsEditable">True</property>
- <property name="InvisibleChar">●</property>
- <signal name="Changed" handler="OnEntryChanged" />
- <signal name="Changed" handler="OnEntryIdentifierChanged" />
- </widget>
- <packing>
- <property name="LeftAttach">1</property>
- <property name="RightAttach">2</property>
- <property name="AutoSize">False</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">True</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Entry" id="entryLicense">
- <property name="MemberName" />
- <property name="CanFocus">True</property>
- <property name="IsEditable">True</property>
- <property name="InvisibleChar">●</property>
- <signal name="Changed" handler="OnEntryChanged" />
- </widget>
- <packing>
- <property name="TopAttach">9</property>
- <property name="BottomAttach">10</property>
- <property name="LeftAttach">1</property>
- <property name="RightAttach">2</property>
- <property name="AutoSize">False</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">True</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Entry" id="entryName">
- <property name="MemberName" />
- <property name="CanFocus">True</property>
- <property name="IsEditable">True</property>
- <property name="InvisibleChar">●</property>
- <signal name="Changed" handler="OnEntryChanged" />
- </widget>
- <packing>
- <property name="TopAttach">5</property>
- <property name="BottomAttach">6</property>
- <property name="LeftAttach">1</property>
- <property name="RightAttach">2</property>
- <property name="AutoSize">False</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">True</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Entry" id="entryUrl">
- <property name="MemberName" />
- <property name="CanFocus">True</property>
- <property name="IsEditable">True</property>
- <property name="InvisibleChar">●</property>
- <signal name="Changed" handler="OnEntryChanged" />
- </widget>
- <packing>
- <property name="TopAttach">10</property>
- <property name="BottomAttach">11</property>
- <property name="LeftAttach">1</property>
- <property name="RightAttach">2</property>
- <property name="AutoSize">False</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">True</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.HBox" id="hbox9">
- <property name="MemberName" />
- <property name="Spacing">6</property>
- <child>
- <widget class="Gtk.Entry" id="entryVersion">
- <property name="MemberName" />
- <property name="CanFocus">True</property>
- <property name="IsEditable">True</property>
- <property name="WidthChars">15</property>
- <property name="InvisibleChar">●</property>
- <signal name="Changed" handler="OnEntryChanged" />
- </widget>
- <packing>
- <property name="Position">0</property>
- <property name="AutoSize">False</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Label" id="label4">
- <property name="MemberName" />
- <property name="LabelProp" translatable="yes">Compatible Version:</property>
- </widget>
- <packing>
- <property name="Position">1</property>
- <property name="AutoSize">True</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Entry" id="entryCompatVersion">
- <property name="MemberName" />
- <property name="CanFocus">True</property>
- <property name="IsEditable">True</property>
- <property name="WidthChars">15</property>
- <property name="InvisibleChar">●</property>
- <signal name="Changed" handler="OnEntryChanged" />
- </widget>
- <packing>
- <property name="Position">2</property>
- <property name="AutoSize">False</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <placeholder />
- </child>
- </widget>
- <packing>
- <property name="TopAttach">2</property>
- <property name="BottomAttach">3</property>
- <property name="LeftAttach">1</property>
- <property name="RightAttach">2</property>
- <property name="AutoSize">True</property>
- <property name="XOptions">Fill</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">False</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.HSeparator" id="hseparator1">
- <property name="MemberName" />
- </widget>
- <packing>
- <property name="TopAttach">7</property>
- <property name="BottomAttach">8</property>
- <property name="RightAttach">2</property>
- <property name="AutoSize">True</property>
- <property name="XOptions">Fill</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">False</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.HSeparator" id="hseparator2">
- <property name="MemberName" />
- </widget>
- <packing>
- <property name="TopAttach">4</property>
- <property name="BottomAttach">5</property>
- <property name="RightAttach">2</property>
- <property name="AutoSize">True</property>
- <property name="XOptions">Fill</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">False</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Label" id="label12">
- <property name="MemberName" />
- <property name="Xalign">0</property>
- <property name="LabelProp" translatable="yes">License:</property>
- </widget>
- <packing>
- <property name="TopAttach">9</property>
- <property name="BottomAttach">10</property>
- <property name="AutoSize">True</property>
- <property name="XOptions">Fill</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">False</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Label" id="label13">
- <property name="MemberName" />
- <property name="Xalign">0</property>
- <property name="LabelProp" translatable="yes">Author:</property>
- </widget>
- <packing>
- <property name="TopAttach">8</property>
- <property name="BottomAttach">9</property>
- <property name="AutoSize">True</property>
- <property name="XOptions">Fill</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">False</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Label" id="label14">
- <property name="MemberName" />
- <property name="Xalign">0</property>
- <property name="LabelProp" translatable="yes">Name:</property>
- </widget>
- <packing>
- <property name="TopAttach">5</property>
- <property name="BottomAttach">6</property>
- <property name="AutoSize">True</property>
- <property name="XOptions">Fill</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">False</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Label" id="label15">
- <property name="MemberName" />
- <property name="Xalign">0</property>
- <property name="Yalign">0</property>
- <property name="LabelProp" translatable="yes">Description:</property>
- </widget>
- <packing>
- <property name="TopAttach">6</property>
- <property name="BottomAttach">7</property>
- <property name="AutoSize">True</property>
- <property name="XOptions">Fill</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">False</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Label" id="label2">
- <property name="MemberName" />
- <property name="Xalign">0</property>
- <property name="LabelProp" translatable="yes">Namespace:</property>
- </widget>
- <packing>
- <property name="TopAttach">1</property>
- <property name="BottomAttach">2</property>
- <property name="AutoSize">True</property>
- <property name="XOptions">Fill</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">False</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Label" id="label3">
- <property name="MemberName" />
- <property name="Xalign">0</property>
- <property name="LabelProp" translatable="yes">Version:</property>
- </widget>
- <packing>
- <property name="TopAttach">2</property>
- <property name="BottomAttach">3</property>
- <property name="AutoSize">True</property>
- <property name="XOptions">Fill</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">False</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Label" id="label7">
- <property name="MemberName" />
- <property name="Xalign">0</property>
- <property name="LabelProp" translatable="yes">URL:</property>
- </widget>
- <packing>
- <property name="TopAttach">10</property>
- <property name="BottomAttach">11</property>
- <property name="AutoSize">True</property>
- <property name="XOptions">Fill</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">False</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Label" id="label8">
- <property name="MemberName" />
- <property name="Xalign">0</property>
- <property name="LabelProp" translatable="yes">Identifier:</property>
- </widget>
- <packing>
- <property name="AutoSize">True</property>
- <property name="XOptions">Fill</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">False</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.ScrolledWindow" id="scrolledwindow1">
- <property name="MemberName" />
- <property name="CanFocus">True</property>
- <property name="ShadowType">In</property>
- <child>
- <widget class="Gtk.TextView" id="textviewDesc">
- <property name="MemberName" />
- <property name="CanFocus">True</property>
- <property name="Text" translatable="yes" />
- </widget>
- </child>
- </widget>
- <packing>
- <property name="TopAttach">6</property>
- <property name="BottomAttach">7</property>
- <property name="LeftAttach">1</property>
- <property name="RightAttach">2</property>
- <property name="AutoSize">False</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">True</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="Position">0</property>
- <property name="AutoSize">True</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.HSeparator" id="hseparator3">
- <property name="MemberName" />
- </widget>
- <packing>
- <property name="PackType">End</property>
- <property name="Position">1</property>
- <property name="AutoSize">True</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- </widget>
- </child>
- <child>
- <widget class="Gtk.Label" id="label5">
- <property name="MemberName" />
- <property name="LabelProp" translatable="yes">Header</property>
- </widget>
- <packing>
- <property name="type">tab</property>
- </packing>
- </child>
- <child>
- <widget class="MonoDevelop.AddinAuthoring.ExtensionPointsEditorWidget" id="extensionPointsEditor">
- <property name="MemberName" />
- <property name="Events">ButtonPressMask</property>
- </widget>
- <packing>
- <property name="Position">1</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Label" id="label9">
- <property name="MemberName" />
- <property name="LabelProp" translatable="yes">Extension Points</property>
- </widget>
- <packing>
- <property name="type">tab</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.HBox" id="hbox5">
- <property name="MemberName" />
- <property name="Spacing">6</property>
- <property name="BorderWidth">6</property>
- <child>
- <widget class="MonoDevelop.AddinAuthoring.ExtensionEditorWidget" id="extensionEditor">
- <property name="MemberName" />
- <property name="Events">ButtonPressMask</property>
- </widget>
- <packing>
- <property name="Position">0</property>
- <property name="AutoSize">False</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="Position">2</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Label" id="label10">
- <property name="MemberName" />
- <property name="LabelProp" translatable="yes">Extensions</property>
- </widget>
- <packing>
- <property name="type">tab</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="Position">0</property>
- <property name="AutoSize">True</property>
- </packing>
- </child>
- </widget>
- </child>
- </widget>
- <widget class="Gtk.Dialog" id="MonoDevelop.AddinAuthoring.SelectRepositoryDialog" design-size="620 358">
- <property name="MemberName" />
- <property name="Title" translatable="yes">Select Add-in Registry</property>
- <property name="WindowPosition">CenterOnParent</property>
- <property name="DefaultWidth">500</property>
- <property name="DefaultHeight">400</property>
- <property name="Buttons">2</property>
- <property name="HelpButton">False</property>
- <child internal-child="VBox">
- <widget class="Gtk.VBox" id="dialog_VBox">
- <property name="MemberName" />
- <property name="Events">ButtonPressMask</property>
- <property name="BorderWidth">2</property>
- <child>
- <widget class="Gtk.VBox" id="vbox4">
- <property name="MemberName" />
- <property name="Spacing">6</property>
- <property name="BorderWidth">6</property>
- <child>
- <widget class="Gtk.Label" id="label11">
- <property name="MemberName" />
- <property name="Xalign">0</property>
- <property name="LabelProp" translatable="yes">Select the application you want to extend:</property>
- </widget>
- <packing>
- <property name="Position">0</property>
- <property name="AutoSize">True</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.HBox" id="hbox1">
- <property name="MemberName" />
- <property name="Spacing">6</property>
- <child>
- <widget class="Gtk.ScrolledWindow" id="scrolledwindow4">
- <property name="MemberName" />
- <property name="CanFocus">True</property>
- <property name="ShadowType">In</property>
- <child>
- <widget class="Gtk.TreeView" id="tree">
- <property name="MemberName" />
- <property name="CanFocus">True</property>
- </widget>
- </child>
- </widget>
- <packing>
- <property name="Position">0</property>
- <property name="AutoSize">True</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.VBox" id="vbox2">
- <property name="MemberName" />
- <property name="Spacing">6</property>
- <child>
- <widget class="Gtk.Button" id="buttonAdd">
- <property name="MemberName" />
- <property name="CanFocus">True</property>
- <property name="UseStock">True</property>
- <property name="Type">StockItem</property>
- <property name="StockId">gtk-add</property>
- <signal name="Clicked" handler="OnButtonAddClicked" />
- <property name="label">gtk-add</property>
- </widget>
- <packing>
- <property name="Position">0</property>
- <property name="AutoSize">True</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Button" id="buttonRemove">
- <property name="MemberName" />
- <property name="CanFocus">True</property>
- <property name="UseStock">True</property>
- <property name="Type">StockItem</property>
- <property name="StockId">gtk-remove</property>
- <signal name="Clicked" handler="OnButtonRemoveClicked" />
- <property name="label">gtk-remove</property>
- </widget>
- <packing>
- <property name="Position">1</property>
- <property name="AutoSize">True</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <placeholder />
- </child>
- </widget>
- <packing>
- <property name="Position">1</property>
- <property name="AutoSize">False</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="Position">1</property>
- <property name="AutoSize">True</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="Position">0</property>
- <property name="AutoSize">True</property>
- </packing>
- </child>
- </widget>
- </child>
- <child internal-child="ActionArea">
- <widget class="Gtk.HButtonBox" id="MonoDevelop.AddinAuthoring.SelectRepositoryDialog_ActionArea">
- <property name="MemberName" />
- <property name="Spacing">6</property>
- <property name="BorderWidth">5</property>
- <property name="Size">2</property>
- <property name="LayoutStyle">End</property>
- <child>
- <widget class="Gtk.Button" id="button155">
- <property name="MemberName" />
- <property name="CanDefault">True</property>
- <property name="CanFocus">True</property>
- <property name="UseStock">True</property>
- <property name="Type">StockItem</property>
- <property name="StockId">gtk-cancel</property>
- <property name="ResponseId">-6</property>
- <property name="label">gtk-cancel</property>
- </widget>
- <packing>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Button" id="buttonOk">
- <property name="MemberName" />
- <property name="CanDefault">True</property>
- <property name="CanFocus">True</property>
- <property name="UseStock">True</property>
- <property name="Type">StockItem</property>
- <property name="StockId">gtk-ok</property>
- <property name="ResponseId">-5</property>
- <property name="label">gtk-ok</property>
- </widget>
- <packing>
- <property name="Position">1</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- </widget>
- </child>
- </widget>
- <widget class="Gtk.Dialog" id="MonoDevelop.AddinAuthoring.ExtensionSelectorDialog" design-size="652 526">
- <property name="MemberName" />
- <property name="Events">ButtonPressMask</property>
- <property name="Title" translatable="yes">Extension Selector</property>
- <property name="WindowPosition">CenterOnParent</property>
- <property name="Buttons">2</property>
- <property name="HelpButton">False</property>
- <child internal-child="VBox">
- <widget class="Gtk.VBox" id="dialog_VBox">
- <property name="MemberName" />
- <property name="Events">ButtonPressMask</property>
- <property name="BorderWidth">2</property>
- <child>
- <widget class="Gtk.VBox" id="vbox5">
- <property name="MemberName" />
- <property name="Spacing">6</property>
- <property name="BorderWidth">12</property>
- <child>
- <widget class="Gtk.Label" id="label13">
- <property name="MemberName" />
- <property name="Xalign">0</property>
- <property name="LabelProp" translatable="yes">Select the extension points to be extended:</property>
- </widget>
- <packing>
- <property name="Position">0</property>
- <property name="AutoSize">True</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.ScrolledWindow" id="scrolledwindow5">
- <property name="MemberName" />
- <property name="CanFocus">True</property>
- <property name="ShadowType">In</property>
- <child>
- <widget class="Gtk.TreeView" id="tree">
- <property name="MemberName" />
- <property name="CanFocus">True</property>
- </widget>
- </child>
- </widget>
- <packing>
- <property name="Position">1</property>
- <property name="AutoSize">True</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="Position">0</property>
- <property name="AutoSize">True</property>
- </packing>
- </child>
- </widget>
- </child>
- <child internal-child="ActionArea">
- <widget class="Gtk.HButtonBox" id="MonoDevelop.AddinAuthoring.ExtensionSelectorDialog_ActionArea">
- <property name="MemberName" />
- <property name="Spacing">6</property>
- <property name="BorderWidth">5</property>
- <property name="Size">2</property>
- <property name="LayoutStyle">End</property>
- <child>
- <widget class="Gtk.Button" id="button785">
- <property name="MemberName" />
- <property name="CanDefault">True</property>
- <property name="CanFocus">True</property>
- <property name="UseStock">True</property>
- <property name="Type">StockItem</property>
- <property name="StockId">gtk-cancel</property>
- <property name="ResponseId">-6</property>
- <property name="label">gtk-cancel</property>
- </widget>
- <packing>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Button" id="button789">
- <property name="MemberName" />
- <property name="CanDefault">True</property>
- <property name="CanFocus">True</property>
- <property name="UseStock">True</property>
- <property name="Type">StockItem</property>
- <property name="StockId">gtk-ok</property>
- <property name="ResponseId">-5</property>
- <property name="label">gtk-ok</property>
- </widget>
- <packing>
- <property name="Position">1</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- </widget>
- </child>
- </widget>
- <widget class="Gtk.Bin" id="MonoDevelop.AddinAuthoring.ExtensionEditorWidget" design-size="652 403">
- <property name="MemberName" />
- <child>
- <widget class="Gtk.VBox" id="vbox2">
- <property name="MemberName" />
- <property name="Spacing">3</property>
- <child>
- <widget class="Gtk.HBox" id="hbox1">
- <property name="MemberName" />
- <property name="Spacing">3</property>
- <child>
- <widget class="Gtk.Button" id="buttonAdd">
- <property name="MemberName" />
- <property name="CanFocus">True</property>
- <property name="Type">TextAndIcon</property>
- <property name="Icon">stock:md-extension-point Menu</property>
- <property name="Label" translatable="yes">Select Extension Points</property>
- <property name="UseUnderline">True</property>
- <property name="Relief">None</property>
- <signal name="Clicked" handler="OnButtonAddClicked" />
- </widget>
- <packing>
- <property name="Position">0</property>
- <property name="AutoSize">True</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Button" id="addNodeButton">
- <property name="MemberName" />
- <property name="CanFocus">True</property>
- <property name="Type">Custom</property>
- <property name="Relief">None</property>
- <signal name="Pressed" handler="OnAddNodeButtonPressed" />
- <child>
- <widget class="Gtk.HBox" id="hbox2">
- <property name="MemberName" />
- <property name="Spacing">6</property>
- <child>
- <widget class="Gtk.Image" id="image445">
- <property name="MemberName" />
- <property name="Pixbuf">stock:gtk-add Menu</property>
- </widget>
- <packing>
- <property name="Position">0</property>
- <property name="AutoSize">True</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Label" id="label1">
- <property name="MemberName" />
- <property name="LabelProp" translatable="yes">Add Node</property>
- </widget>
- <packing>
- <property name="Position">1</property>
- <property name="AutoSize">True</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Arrow" id="arrow1">
- <property name="MemberName" />
- <property name="ArrowType">Down</property>
- </widget>
- <packing>
- <property name="Position">2</property>
- <property name="AutoSize">True</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- </widget>
- </child>
- </widget>
- <packing>
- <property name="Position">1</property>
- <property name="AutoSize">True</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Button" id="buttonRemove">
- <property name="MemberName" />
- <property name="CanFocus">True</property>
- <property name="Type">TextAndIcon</property>
- <property name="Icon">stock:gtk-remove Menu</property>
- <property name="Label" translatable="yes">Remove</property>
- <property name="UseUnderline">True</property>
- <property name="Relief">None</property>
- <signal name="Clicked" handler="OnButtonRemoveClicked" />
- </widget>
- <packing>
- <property name="Position">2</property>
- <property name="AutoSize">True</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="Position">0</property>
- <property name="AutoSize">True</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.HBox" id="hbox4">
- <property name="MemberName" />
- <property name="Spacing">6</property>
- <child>
- <widget class="Gtk.HPaned" id="hpaned1">
- <property name="MemberName" />
- <property name="CanFocus">True</property>
- <property name="Position">411</property>
- <child>
- <widget class="Gtk.ScrolledWindow" id="scrolledwindow6">
- <property name="MemberName" />
- <property name="CanFocus">True</property>
- <property name="ShadowType">In</property>
- <child>
- <widget class="Gtk.TreeView" id="tree">
- <property name="MemberName" />
- <property name="CanFocus">True</property>
- </widget>
- </child>
- </widget>
- <packing>
- <property name="Resize">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.ScrolledWindow" id="editorBox">
- <property name="MemberName" />
- <property name="CanFocus">True</property>
- <property name="HscrollbarPolicy">Never</property>
- <child>
- <widget class="Gtk.Viewport" id="GtkViewport">
- <property name="MemberName" />
- <property name="ShadowType">None</property>
- <child>
- <placeholder />
- </child>
- </widget>
- </child>
- </widget>
- </child>
- </widget>
- <packing>
- <property name="Position">0</property>
- <property name="AutoSize">True</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="Position">1</property>
- <property name="AutoSize">True</property>
- </packing>
- </child>
- </widget>
- </child>
- </widget>
- <widget class="Gtk.Bin" id="MonoDevelop.AddinAuthoring.AddinFeatureWidget" design-size="615 255">
- <property name="MemberName" />
- <child>
- <widget class="Gtk.VBox" id="vbox2">
- <property name="MemberName" />
- <property name="Spacing">6</property>
- <child>
- <widget class="Gtk.VBox" id="boxLibraryType">
- <property name="MemberName" />
- <property name="Spacing">6</property>
- <child>
- <widget class="Gtk.Label" id="labelExtensibleApp">
- <property name="MemberName" />
- <property name="Visible">False</property>
- <property name="Xalign">0</property>
- <property name="LabelProp" translatable="yes">Allow the application to be extended by add-ins.</property>
- </widget>
- <packing>
- <property name="Position">0</property>
- <property name="AutoSize">True</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Label" id="label2">
- <property name="MemberName" />
- <property name="Xalign">0</property>
- <property name="LabelProp" translatable="yes">Which kind of library you want to create?</property>
- </widget>
- <packing>
- <property name="Position">1</property>
- <property name="AutoSize">True</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Alignment" id="alignment1">
- <property name="MemberName" />
- <property name="LeftPadding">12</property>
- <child>
- <widget class="Gtk.VBox" id="vbox3">
- <property name="MemberName" />
- <property name="Spacing">6</property>
- <child>
- <widget class="Gtk.RadioButton" id="radiobuttonLibrary">
- <property name="MemberName" />
- <property name="CanFocus">True</property>
- <property name="Label" translatable="yes">A library which can be extended by add-ins</property>
- <property name="DrawIndicator">True</property>
- <property name="HasLabel">True</property>
- <property name="UseUnderline">True</property>
- <property name="Group">group1</property>
- <signal name="Toggled" handler="OnRadiobuttonLibraryToggled" />
- </widget>
- <packing>
- <property name="Position">0</property>
- <property name="AutoSize">True</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.RadioButton" id="radiobuttonAddin">
- <property name="MemberName" />
- <property name="CanFocus">True</property>
- <property name="Label" translatable="yes">An Add-in</property>
- <property name="DrawIndicator">True</property>
- <property name="HasLabel">True</property>
- <property name="UseUnderline">True</property>
- <property name="Group">group1</property>
- </widget>
- <packing>
- <property name="Position">1</property>
- <property name="AutoSize">True</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- </widget>
- </child>
- </widget>
- <packing>
- <property name="Position">2</property>
- <property name="AutoSize">True</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="Position">0</property>
- <property name="AutoSize">True</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.HBox" id="boxRepo">
- <property name="MemberName" />
- <property name="Spacing">6</property>
- <child>
- <widget class="Gtk.Label" id="label3">
- <property name="MemberName" />
- <property name="Xalign">0</property>
- <property name="LabelProp" translatable="yes">Extended Application:</property>
- </widget>
- <packing>
- <property name="Position">0</property>
- <property name="AutoSize">True</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <widget class="MonoDevelop.AddinAuthoring.RegistrySelector" id="regSelector">
- <property name="MemberName" />
- <property name="Events">ButtonPressMask</property>
- <signal name="Changed" handler="OnRegSelectorChanged" />
- </widget>
- <packing>
- <property name="Position">1</property>
- <property name="AutoSize">False</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="Position">1</property>
- <property name="AutoSize">True</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.HSeparator" id="hseparator">
- <property name="MemberName" />
- </widget>
- <packing>
- <property name="Position">2</property>
- <property name="AutoSize">True</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Label" id="labelAddinInfo">
- <property name="MemberName" />
- <property name="Xalign">0</property>
- <property name="LabelProp" translatable="yes">Add-in module information:</property>
- </widget>
- <packing>
- <property name="Position">3</property>
- <property name="AutoSize">True</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Alignment" id="alignment3">
- <property name="MemberName" />
- <property name="LeftPadding">24</property>
- <child>
- <widget class="Gtk.Table" id="tableNames">
- <property name="MemberName" />
- <property name="NRows">3</property>
- <property name="NColumns">2</property>
- <property name="RowSpacing">6</property>
- <property name="ColumnSpacing">6</property>
- <child>
- <widget class="Gtk.ComboBoxEntry" id="comboNs">
- <property name="MemberName" />
- <property name="IsTextCombo">True</property>
- <property name="Items" translatable="yes" />
- <signal name="Changed" handler="OnComboNsChanged" />
- </widget>
- <packing>
- <property name="TopAttach">1</property>
- <property name="BottomAttach">2</property>
- <property name="LeftAttach">1</property>
- <property name="RightAttach">2</property>
- <property name="AutoSize">False</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">True</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Entry" id="entryId">
- <property name="MemberName" />
- <property name="CanFocus">True</property>
- <property name="IsEditable">True</property>
- <property name="InvisibleChar">●</property>
- <signal name="Changed" handler="OnEntryIdChanged" />
- </widget>
- <packing>
- <property name="TopAttach">2</property>
- <property name="BottomAttach">3</property>
- <property name="LeftAttach">1</property>
- <property name="RightAttach">2</property>
- <property name="AutoSize">True</property>
- <property name="XOptions">Fill</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">False</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Entry" id="entryName">
- <property name="MemberName" />
- <property name="CanFocus">True</property>
- <property name="IsEditable">True</property>
- <property name="InvisibleChar">●</property>
- <signal name="Changed" handler="OnEntryNameChanged" />
- </widget>
- <packing>
- <property name="LeftAttach">1</property>
- <property name="RightAttach">2</property>
- <property name="AutoSize">True</property>
- <property name="XOptions">Fill</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">False</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Label" id="label7">
- <property name="MemberName" />
- <property name="Xalign">0</property>
- <property name="LabelProp" translatable="yes">Namespace:</property>
- </widget>
- <packing>
- <property name="TopAttach">1</property>
- <property name="BottomAttach">2</property>
- <property name="AutoSize">True</property>
- <property name="XOptions">Fill</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">False</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Label" id="label9">
- <property name="MemberName" />
- <property name="Xalign">0</property>
- <property name="LabelProp" translatable="yes">Identifier:</property>
- </widget>
- <packing>
- <property name="TopAttach">2</property>
- <property name="BottomAttach">3</property>
- <property name="AutoSize">True</property>
- <property name="XOptions">Fill</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">False</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Label" id="labelName">
- <property name="MemberName" />
- <property name="Xalign">0</property>
- <property name="LabelProp" translatable="yes">Display name:</property>
- </widget>
- <packing>
- <property name="AutoSize">True</property>
- <property name="XOptions">Fill</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">False</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- </widget>
- </child>
- </widget>
- <packing>
- <property name="Position">4</property>
- <property name="AutoSize">True</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- </widget>
- </child>
- </widget>
- <widget class="Gtk.Bin" id="MonoDevelop.AddinAuthoring.RegistrySelector" design-size="279 30">
- <property name="MemberName" />
- <child>
- <widget class="Gtk.Button" id="buttonBrowse">
- <property name="MemberName" />
- <property name="CanFocus">True</property>
- <property name="Type">Custom</property>
- <signal name="Clicked" handler="OnButtonBrowseClicked" />
- <child>
- <widget class="Gtk.HBox" id="hbox2">
- <property name="MemberName" />
- <property name="Spacing">6</property>
- <child>
- <widget class="Gtk.Label" id="label">
- <property name="MemberName" />
- <property name="Xalign">0</property>
- <property name="Ellipsize">End</property>
- </widget>
- <packing>
- <property name="Position">0</property>
- <property name="AutoSize">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.VSeparator" id="vseparator1">
- <property name="MemberName" />
- </widget>
- <packing>
- <property name="Position">1</property>
- <property name="AutoSize">True</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Image" id="image131">
- <property name="MemberName" />
- <property name="Pixbuf">stock:gtk-open Menu</property>
- </widget>
- <packing>
- <property name="Position">2</property>
- <property name="AutoSize">True</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- </widget>
- </child>
- </widget>
- </child>
- </widget>
- <widget class="Gtk.Dialog" id="MonoDevelop.AddinAuthoring.NewExtensionPointDialog" design-size="625 522">
- <property name="MemberName" />
- <property name="WindowPosition">CenterOnParent</property>
- <property name="Modal">True</property>
- <property name="Buttons">2</property>
- <property name="HelpButton">False</property>
- <child internal-child="VBox">
- <widget class="Gtk.VBox" id="dialog1_VBox">
- <property name="MemberName" />
- <property name="BorderWidth">2</property>
- <child>
- <widget class="Gtk.VBox" id="vbox2">
- <property name="MemberName" />
- <property name="Spacing">15</property>
- <property name="BorderWidth">15</property>
- <child>
- <widget class="Gtk.Table" id="table2">
- <property name="MemberName" />
- <property name="NRows">3</property>
- <property name="NColumns">2</property>
- <property name="RowSpacing">6</property>
- <property name="ColumnSpacing">6</property>
- <child>
- <widget class="Gtk.Entry" id="entryDesc">
- <property name="MemberName" />
- <property name="CanFocus">True</property>
- <property name="IsEditable">True</property>
- <property name="InvisibleChar">●</property>
- </widget>
- <packing>
- <property name="TopAttach">2</property>
- <property name="BottomAttach">3</property>
- <property name="LeftAttach">1</property>
- <property name="RightAttach">2</property>
- <property name="AutoSize">True</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">True</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Entry" id="entryName">
- <property name="MemberName" />
- <property name="CanFocus">True</property>
- <property name="IsEditable">True</property>
- <property name="InvisibleChar">●</property>
- </widget>
- <packing>
- <property name="TopAttach">1</property>
- <property name="BottomAttach">2</property>
- <property name="LeftAttach">1</property>
- <property name="RightAttach">2</property>
- <property name="AutoSize">True</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">True</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Entry" id="entryPath">
- <property name="MemberName" />
- <property name="CanFocus">True</property>
- <property name="IsEditable">True</property>
- <property name="InvisibleChar">●</property>
- <signal name="Changed" handler="OnEntryPathChanged" />
- </widget>
- <packing>
- <property name="LeftAttach">1</property>
- <property name="RightAttach">2</property>
- <property name="AutoSize">True</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">True</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Label" id="label6">
- <property name="MemberName" />
- <property name="Xalign">0</property>
- <property name="LabelProp" translatable="yes">Description:</property>
- </widget>
- <packing>
- <property name="TopAttach">2</property>
- <property name="BottomAttach">3</property>
- <property name="AutoSize">True</property>
- <property name="XOptions">Fill</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">False</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Label" id="label7">
- <property name="MemberName" />
- <property name="Xalign">0</property>
- <property name="LabelProp" translatable="yes">Extension path:</property>
- </widget>
- <packing>
- <property name="AutoSize">True</property>
- <property name="XOptions">Fill</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">False</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Label" id="label8">
- <property name="MemberName" />
- <property name="Xalign">0</property>
- <property name="LabelProp" translatable="yes">Name:</property>
- </widget>
- <packing>
- <property name="TopAttach">1</property>
- <property name="BottomAttach">2</property>
- <property name="AutoSize">True</property>
- <property name="XOptions">Fill</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">False</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="Position">0</property>
- <property name="AutoSize">True</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.VBox" id="vbox3">
- <property name="MemberName" />
- <property name="Spacing">6</property>
- <child>
- <widget class="Gtk.Label" id="label2">
- <property name="MemberName" />
- <property name="Xalign">0</property>
- <property name="LabelProp" translatable="yes">Select the kind of extension point to create:</property>
- </widget>
- <packing>
- <property name="Position">0</property>
- <property name="AutoSize">True</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.HBox" id="hbox2">
- <property name="MemberName" />
- <property name="Spacing">24</property>
- <child>
- <widget class="Gtk.RadioButton" id="radioTypeExtension">
- <property name="MemberName" />
- <property name="CanFocus">True</property>
- <property name="Label" translatable="yes">Type extension point</property>
- <property name="DrawIndicator">True</property>
- <property name="HasLabel">True</property>
- <property name="UseUnderline">True</property>
- <property name="Group">group1</property>
- <signal name="Clicked" handler="OnRadioTypeExtensionClicked" />
- </widget>
- <packing>
- <property name="Position">0</property>
- <property name="AutoSize">False</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.RadioButton" id="radioCustomExtension">
- <property name="MemberName" />
- <property name="CanFocus">True</property>
- <property name="Label" translatable="yes">Custom extension point</property>
- <property name="DrawIndicator">True</property>
- <property name="HasLabel">True</property>
- <property name="UseUnderline">True</property>
- <property name="Group">group1</property>
- <signal name="Clicked" handler="OnRadioCustomExtensionClicked" />
- </widget>
- <packing>
- <property name="Position">1</property>
- <property name="AutoSize">True</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="Position">1</property>
- <property name="AutoSize">True</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="Position">1</property>
- <property name="AutoSize">True</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.HSeparator" id="hseparator2">
- <property name="MemberName" />
- </widget>
- <packing>
- <property name="Position">2</property>
- <property name="AutoSize">True</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Notebook" id="notebook">
- <property name="MemberName" />
- <property name="CanFocus">True</property>
- <property name="CurrentPage">0</property>
- <property name="ShowBorder">False</property>
- <property name="ShowTabs">False</property>
- <child>
- <widget class="Gtk.Table" id="table1">
- <property name="MemberName" />
- <property name="NRows">3</property>
- <property name="NColumns">2</property>
- <property name="RowSpacing">6</property>
- <property name="ColumnSpacing">6</property>
- <child>
- <widget class="MonoDevelop.AddinAuthoring.TypeSelector" id="baseTypeSelector">
- <property name="MemberName" />
- <property name="Events">ButtonPressMask</property>
- <property name="AllowCreate">False</property>
- <property name="AllowCreateInterface">False</property>
- </widget>
- <packing>
- <property name="TopAttach">1</property>
- <property name="BottomAttach">2</property>
- <property name="LeftAttach">1</property>
- <property name="RightAttach">2</property>
- <property name="AutoSize">False</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">True</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Entry" id="entryNodeDescription">
- <property name="MemberName" />
- <property name="CanFocus">True</property>
- <property name="IsEditable">True</property>
- <property name="InvisibleChar">●</property>
- </widget>
- <packing>
- <property name="TopAttach">2</property>
- <property name="BottomAttach">3</property>
- <property name="LeftAttach">1</property>
- <property name="RightAttach">2</property>
- <property name="AutoSize">False</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">True</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Entry" id="entryNodeName">
- <property name="MemberName" />
- <property name="CanFocus">True</property>
- <property name="IsEditable">True</property>
- <property name="InvisibleChar">●</property>
- </widget>
- <packing>
- <property name="LeftAttach">1</property>
- <property name="RightAttach">2</property>
- <property name="AutoSize">False</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">True</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Label" id="label3">
- <property name="MemberName" />
- <property name="Xalign">0</property>
- <property name="LabelProp" translatable="yes">Node name:</property>
- </widget>
- <packing>
- <property name="AutoSize">True</property>
- <property name="XOptions">Fill</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">False</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Label" id="label4">
- <property name="MemberName" />
- <property name="Xalign">0</property>
- <property name="LabelProp" translatable="yes">Description:</property>
- </widget>
- <packing>
- <property name="TopAttach">2</property>
- <property name="BottomAttach">3</property>
- <property name="AutoSize">True</property>
- <property name="XOptions">Fill</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">False</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Label" id="label5">
- <property name="MemberName" />
- <property name="Xalign">0</property>
- <property name="LabelProp" translatable="yes">Base type:</property>
- </widget>
- <packing>
- <property name="TopAttach">1</property>
- <property name="BottomAttach">2</property>
- <property name="AutoSize">True</property>
- <property name="XOptions">Fill</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">False</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- </widget>
- </child>
- <child>
- <widget class="Gtk.Label" id="label9">
- <property name="MemberName" />
- <property name="LabelProp" translatable="yes">page1</property>
- </widget>
- <packing>
- <property name="type">tab</property>
- </packing>
- </child>
- <child>
- <widget class="MonoDevelop.AddinAuthoring.NodeSetEditorWidget" id="nodeseteditorwidget">
- <property name="MemberName" />
- <property name="Events">ButtonPressMask</property>
- <property name="AllowEditing">True</property>
- </widget>
- <packing>
- <property name="Position">1</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Label" id="label10">
- <property name="MemberName" />
- <property name="LabelProp" translatable="yes">page2</property>
- </widget>
- <packing>
- <property name="type">tab</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="Position">3</property>
- <property name="AutoSize">False</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="Position">0</property>
- <property name="AutoSize">False</property>
- </packing>
- </child>
- </widget>
- </child>
- <child internal-child="ActionArea">
- <widget class="Gtk.HButtonBox" id="dialog1_ActionArea">
- <property name="MemberName" />
- <property name="Spacing">6</property>
- <property name="BorderWidth">5</property>
- <property name="Size">2</property>
- <property name="LayoutStyle">End</property>
- <child>
- <widget class="Gtk.Button" id="buttonCancel">
- <property name="MemberName" />
- <property name="CanDefault">True</property>
- <property name="CanFocus">True</property>
- <property name="UseStock">True</property>
- <property name="Type">StockItem</property>
- <property name="StockId">gtk-cancel</property>
- <property name="ResponseId">-6</property>
- <property name="label">gtk-cancel</property>
- </widget>
- <packing>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Button" id="buttonOk">
- <property name="MemberName" />
- <property name="CanDefault">True</property>
- <property name="CanFocus">True</property>
- <property name="UseStock">True</property>
- <property name="Type">StockItem</property>
- <property name="StockId">gtk-ok</property>
- <property name="ResponseId">-5</property>
- <signal name="Clicked" handler="OnButtonOkClicked" />
- <property name="label">gtk-ok</property>
- </widget>
- <packing>
- <property name="Position">1</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- </widget>
- </child>
- </widget>
- <widget class="Gtk.Bin" id="MonoDevelop.AddinAuthoring.TypeSelector" design-size="326 30">
- <property name="MemberName" />
- <child>
- <widget class="Gtk.HBox" id="hbox3">
- <property name="MemberName" />
- <property name="Spacing">6</property>
- <child>
- <widget class="Gtk.EventBox" id="eventbox">
- <property name="MemberName" />
- <child>
- <widget class="Gtk.Image" id="typeImage">
- <property name="MemberName" />
- <property name="Pixbuf">stock:md-addinauthoring-newclass Menu</property>
- </widget>
- </child>
- </widget>
- <packing>
- <property name="Position">0</property>
- <property name="AutoSize">True</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.ComboBoxEntry" id="combo">
- <property name="MemberName" />
- <property name="IsTextCombo">True</property>
- <property name="Items" translatable="yes" />
- <signal name="Changed" handler="OnComboChanged" />
- </widget>
- <packing>
- <property name="Position">1</property>
- <property name="AutoSize">False</property>
- </packing>
- </child>
- </widget>
- </child>
- </widget>
- <widget class="Gtk.Bin" id="MonoDevelop.AddinAuthoring.NodeSetEditorWidget" design-size="565 308">
- <property name="MemberName" />
- <child>
- <widget class="Gtk.HBox" id="hbox4">
- <property name="MemberName" />
- <property name="Spacing">6</property>
- <child>
- <widget class="Gtk.ScrolledWindow" id="GtkScrolledWindow">
- <property name="MemberName" />
- <property name="ShadowType">In</property>
- <child>
- <widget class="Gtk.TreeView" id="tree">
- <property name="MemberName" />
- <property name="CanFocus">True</property>
- <property name="ShowScrollbars">True</property>
- </widget>
- </child>
- </widget>
- <packing>
- <property name="Position">0</property>
- <property name="AutoSize">True</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.VBox" id="buttonBox">
- <property name="MemberName" />
- <property name="Spacing">6</property>
- <child>
- <widget class="Gtk.Button" id="addNodeButton">
- <property name="MemberName" />
- <property name="CanFocus">True</property>
- <property name="Type">TextAndIcon</property>
- <property name="Icon">stock:gtk-add Menu</property>
- <property name="Label" translatable="yes">_Add Node Type...</property>
- <property name="UseUnderline">True</property>
- <signal name="Clicked" handler="OnAddNodeButtonClicked" />
- </widget>
- <packing>
- <property name="Position">0</property>
- <property name="AutoSize">True</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Button" id="addSetButton">
- <property name="MemberName" />
- <property name="CanFocus">True</property>
- <property name="Type">TextAndIcon</property>
- <property name="Icon">stock:gtk-add Menu</property>
- <property name="Label" translatable="yes">Add Node _Set...</property>
- <property name="UseUnderline">True</property>
- <signal name="Clicked" handler="OnAddSetButtonClicked" />
- </widget>
- <packing>
- <property name="Position">1</property>
- <property name="AutoSize">True</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Button" id="removeNodeButton">
- <property name="MemberName" />
- <property name="CanFocus">True</property>
- <property name="UseStock">True</property>
- <property name="Type">StockItem</property>
- <property name="StockId">gtk-remove</property>
- <signal name="Clicked" handler="OnRemoveNodeButtonClicked" />
- <property name="label">gtk-remove</property>
- </widget>
- <packing>
- <property name="Position">2</property>
- <property name="AutoSize">True</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Button" id="editNodeButton">
- <property name="MemberName" />
- <property name="CanFocus">True</property>
- <property name="UseStock">True</property>
- <property name="Type">StockItem</property>
- <property name="StockId">gtk-edit</property>
- <signal name="Clicked" handler="OnEditNodeButtonClicked" />
- <property name="label">gtk-edit</property>
- </widget>
- <packing>
- <property name="Position">3</property>
- <property name="AutoSize">True</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="Position">1</property>
- <property name="AutoSize">True</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- </widget>
- </child>
- </widget>
- <widget class="Gtk.Dialog" id="MonoDevelop.AddinAuthoring.NodeSetEditorDialog" design-size="400 300">
- <property name="MemberName" />
- <property name="WindowPosition">CenterOnParent</property>
- <property name="Buttons">2</property>
- <property name="HelpButton">False</property>
- <child internal-child="VBox">
- <widget class="Gtk.VBox" id="dialog1_VBox">
- <property name="MemberName" />
- <property name="BorderWidth">2</property>
- <child>
- <placeholder />
- </child>
- </widget>
- </child>
- <child internal-child="ActionArea">
- <widget class="Gtk.HButtonBox" id="dialog1_ActionArea">
- <property name="MemberName" />
- <property name="Spacing">10</property>
- <property name="BorderWidth">5</property>
- <property name="Size">2</property>
- <property name="LayoutStyle">End</property>
- <child>
- <widget class="Gtk.Button" id="buttonCancel">
- <property name="MemberName" />
- <property name="CanDefault">True</property>
- <property name="CanFocus">True</property>
- <property name="UseStock">True</property>
- <property name="Type">StockItem</property>
- <property name="StockId">gtk-cancel</property>
- <property name="ResponseId">-6</property>
- <property name="label">gtk-cancel</property>
- </widget>
- <packing>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Button" id="buttonOk">
- <property name="MemberName" />
- <property name="CanDefault">True</property>
- <property name="CanFocus">True</property>
- <property name="UseStock">True</property>
- <property name="Type">StockItem</property>
- <property name="StockId">gtk-ok</property>
- <property name="ResponseId">-5</property>
- <property name="label">gtk-ok</property>
- </widget>
- <packing>
- <property name="Position">1</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- </widget>
- </child>
- </widget>
- <widget class="Gtk.Dialog" id="MonoDevelop.AddinAuthoring.NodeTypeEditorDialog" design-size="543 251">
- <property name="MemberName" />
- <property name="Title" translatable="yes">Extension Node Type</property>
- <property name="WindowPosition">CenterOnParent</property>
- <property name="Modal">True</property>
- <property name="Buttons">2</property>
- <property name="HelpButton">False</property>
- <child internal-child="VBox">
- <widget class="Gtk.VBox" id="dialog1_VBox">
- <property name="MemberName" />
- <property name="BorderWidth">2</property>
- <child>
- <widget class="Gtk.Table" id="table1">
- <property name="MemberName" />
- <property name="NRows">4</property>
- <property name="NColumns">2</property>
- <property name="RowSpacing">6</property>
- <property name="ColumnSpacing">6</property>
- <property name="BorderWidth">9</property>
- <child>
- <widget class="MonoDevelop.AddinAuthoring.TypeSelector" id="baseType">
- <property name="MemberName" />
- <property name="Events">ButtonPressMask</property>
- <property name="AllowCreate">False</property>
- <property name="AllowCreateInterface">False</property>
- </widget>
- <packing>
- <property name="TopAttach">2</property>
- <property name="BottomAttach">3</property>
- <property name="LeftAttach">1</property>
- <property name="RightAttach">2</property>
- <property name="AutoSize">False</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">True</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Entry" id="entryDesc">
- <property name="MemberName" />
- <property name="CanFocus">True</property>
- <property name="IsEditable">True</property>
- <property name="InvisibleChar">●</property>
- </widget>
- <packing>
- <property name="TopAttach">3</property>
- <property name="BottomAttach">4</property>
- <property name="LeftAttach">1</property>
- <property name="RightAttach">2</property>
- <property name="AutoSize">False</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">True</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Entry" id="entryName">
- <property name="MemberName" />
- <property name="CanFocus">True</property>
- <property name="IsEditable">True</property>
- <property name="InvisibleChar">●</property>
- <signal name="Changed" handler="OnEntryNameChanged" />
- </widget>
- <packing>
- <property name="TopAttach">1</property>
- <property name="BottomAttach">2</property>
- <property name="LeftAttach">1</property>
- <property name="RightAttach">2</property>
- <property name="AutoSize">False</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">True</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Label" id="label3">
- <property name="MemberName" />
- <property name="Xalign">0</property>
- <property name="LabelProp" translatable="yes">Node type:</property>
- </widget>
- <packing>
- <property name="AutoSize">True</property>
- <property name="XOptions">Fill</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">False</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Label" id="label4">
- <property name="MemberName" />
- <property name="Xalign">0</property>
- <property name="LabelProp" translatable="yes">Description:</property>
- </widget>
- <packing>
- <property name="TopAttach">3</property>
- <property name="BottomAttach">4</property>
- <property name="AutoSize">True</property>
- <property name="XOptions">Fill</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">False</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Label" id="label5">
- <property name="MemberName" />
- <property name="Xalign">0</property>
- <property name="LabelProp" translatable="yes">Base type:</property>
- </widget>
- <packing>
- <property name="TopAttach">2</property>
- <property name="BottomAttach">3</property>
- <property name="AutoSize">True</property>
- <property name="XOptions">Fill</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">False</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Label" id="label6">
- <property name="MemberName" />
- <property name="Xalign">0</property>
- <property name="LabelProp" translatable="yes">Node name:</property>
- </widget>
- <packing>
- <property name="TopAttach">1</property>
- <property name="BottomAttach">2</property>
- <property name="AutoSize">True</property>
- <property name="XOptions">Fill</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">False</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="MonoDevelop.AddinAuthoring.TypeSelector" id="nodeType">
- <property name="MemberName" />
- <property name="Events">ButtonPressMask</property>
- <property name="AllowCreate">False</property>
- <property name="AllowCreateInterface">False</property>
- <signal name="Changed" handler="OnNodeTypeChanged" />
- </widget>
- <packing>
- <property name="LeftAttach">1</property>
- <property name="RightAttach">2</property>
- <property name="AutoSize">True</property>
- <property name="XOptions">Fill</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">False</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="Position">0</property>
- <property name="AutoSize">True</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- </widget>
- </child>
- <child internal-child="ActionArea">
- <widget class="Gtk.HButtonBox" id="dialog1_ActionArea">
- <property name="MemberName" />
- <property name="Spacing">6</property>
- <property name="BorderWidth">5</property>
- <property name="Size">2</property>
- <property name="LayoutStyle">End</property>
- <child>
- <widget class="Gtk.Button" id="buttonCancel">
- <property name="MemberName" />
- <property name="CanDefault">True</property>
- <property name="CanFocus">True</property>
- <property name="UseStock">True</property>
- <property name="Type">StockItem</property>
- <property name="StockId">gtk-cancel</property>
- <property name="ResponseId">-6</property>
- <property name="label">gtk-cancel</property>
- </widget>
- <packing>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Button" id="buttonOk">
- <property name="MemberName" />
- <property name="CanDefault">True</property>
- <property name="CanFocus">True</property>
- <property name="UseStock">True</property>
- <property name="Type">StockItem</property>
- <property name="StockId">gtk-ok</property>
- <property name="ResponseId">-5</property>
- <signal name="Clicked" handler="OnButtonOkClicked" />
- <property name="label">gtk-ok</property>
- </widget>
- <packing>
- <property name="Position">1</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- </widget>
- </child>
- </widget>
- <widget class="Gtk.Dialog" id="MonoDevelop.AddinAuthoring.SelectNodeSetDialog" design-size="498 346">
- <property name="MemberName" />
- <property name="Title" translatable="yes">Select Node Set</property>
- <property name="WindowPosition">CenterOnParent</property>
- <property name="Modal">True</property>
- <property name="Buttons">2</property>
- <property name="HelpButton">False</property>
- <child internal-child="VBox">
- <widget class="Gtk.VBox" id="dialog1_VBox">
- <property name="MemberName" />
- <property name="BorderWidth">2</property>
- <child>
- <widget class="Gtk.VBox" id="vbox3">
- <property name="MemberName" />
- <property name="Spacing">12</property>
- <property name="BorderWidth">9</property>
- <child>
- <widget class="Gtk.HBox" id="hbox1">
- <property name="MemberName" />
- <property name="Spacing">6</property>
- <child>
- <widget class="Gtk.Label" id="label1">
- <property name="MemberName" />
- <property name="Xalign">0</property>
- <property name="LabelProp" translatable="yes">Node Set:</property>
- </widget>
- <packing>
- <property name="Position">0</property>
- <property name="AutoSize">True</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.ComboBoxEntry" id="combo">
- <property name="MemberName" />
- <property name="IsTextCombo">True</property>
- <property name="Items" translatable="yes" />
- <signal name="Changed" handler="OnComboChanged" />
- </widget>
- <packing>
- <property name="Position">1</property>
- <property name="AutoSize">False</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="Position">0</property>
- <property name="AutoSize">True</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <widget class="MonoDevelop.AddinAuthoring.NodeSetEditorWidget" id="nodeseteditor">
- <property name="MemberName" />
- <property name="Events">ButtonPressMask</property>
- <property name="AllowEditing">False</property>
- </widget>
- <packing>
- <property name="Position">1</property>
- <property name="AutoSize">False</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="Position">0</property>
- <property name="AutoSize">False</property>
- </packing>
- </child>
- </widget>
- </child>
- <child internal-child="ActionArea">
- <widget class="Gtk.HButtonBox" id="dialog1_ActionArea">
- <property name="MemberName" />
- <property name="Spacing">6</property>
- <property name="BorderWidth">5</property>
- <property name="Size">2</property>
- <property name="LayoutStyle">End</property>
- <child>
- <widget class="Gtk.Button" id="buttonCancel">
- <property name="MemberName" />
- <property name="CanDefault">True</property>
- <property name="CanFocus">True</property>
- <property name="UseStock">True</property>
- <property name="Type">StockItem</property>
- <property name="StockId">gtk-cancel</property>
- <property name="ResponseId">-6</property>
- <property name="label">gtk-cancel</property>
- </widget>
- <packing>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Button" id="buttonOk">
- <property name="MemberName" />
- <property name="CanDefault">True</property>
- <property name="CanFocus">True</property>
- <property name="UseStock">True</property>
- <property name="Type">StockItem</property>
- <property name="StockId">gtk-ok</property>
- <property name="ResponseId">-5</property>
- <property name="label">gtk-ok</property>
- </widget>
- <packing>
- <property name="Position">1</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- </widget>
- </child>
- </widget>
- <widget class="Gtk.Bin" id="MonoDevelop.AddinAuthoring.ExtensionPointsEditorWidget" design-size="652 300">
- <property name="MemberName" />
- <child>
- <widget class="Gtk.VBox" id="vbox2">
- <property name="MemberName" />
- <property name="Spacing">3</property>
- <property name="BorderWidth">6</property>
- <child>
- <widget class="Gtk.HBox" id="hbox1">
- <property name="MemberName" />
- <property name="Spacing">3</property>
- <child>
- <widget class="Gtk.Button" id="buttonNew">
- <property name="MemberName" />
- <property name="CanFocus">True</property>
- <property name="Type">TextAndIcon</property>
- <property name="Icon">stock:md-new-extension-point Menu</property>
- <property name="Label" translatable="yes">New Extension Point</property>
- <property name="UseUnderline">True</property>
- <property name="Relief">None</property>
- <signal name="Clicked" handler="OnButtonNewClicked" />
- </widget>
- <packing>
- <property name="Position">0</property>
- <property name="AutoSize">True</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Button" id="buttonRemove">
- <property name="MemberName" />
- <property name="CanFocus">True</property>
- <property name="UseStock">True</property>
- <property name="Type">StockItem</property>
- <property name="StockId">gtk-delete</property>
- <property name="Relief">None</property>
- <signal name="Clicked" handler="OnButtonRemoveClicked" />
- <property name="label">gtk-delete</property>
- </widget>
- <packing>
- <property name="Position">1</property>
- <property name="AutoSize">True</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Button" id="buttonProperties">
- <property name="MemberName" />
- <property name="CanFocus">True</property>
- <property name="Type">TextAndIcon</property>
- <property name="Icon">stock:gtk-edit Menu</property>
- <property name="Label" translatable="yes">Properties</property>
- <property name="UseUnderline">True</property>
- <property name="Relief">None</property>
- <signal name="Clicked" handler="OnButtonPropertiesClicked" />
- </widget>
- <packing>
- <property name="Position">2</property>
- <property name="AutoSize">True</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="Position">0</property>
- <property name="AutoSize">True</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.HBox" id="hbox4">
- <property name="MemberName" />
- <property name="Spacing">6</property>
- <child>
- <widget class="Gtk.ScrolledWindow" id="scrolledwindow6">
- <property name="MemberName" />
- <property name="CanFocus">True</property>
- <property name="ShadowType">In</property>
- <child>
- <widget class="Gtk.TreeView" id="tree">
- <property name="MemberName" />
- <property name="CanFocus">True</property>
- <property name="HeadersVisible">False</property>
- </widget>
- </child>
- </widget>
- <packing>
- <property name="Position">0</property>
- <property name="AutoSize">True</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="Position">1</property>
- <property name="AutoSize">True</property>
- </packing>
- </child>
- </widget>
- </child>
- </widget>
- <widget class="Gtk.Dialog" id="MonoDevelop.AddinAuthoring.NewRegistryDialog" design-size="586 166">
- <property name="MemberName" />
- <property name="Title" translatable="yes">New Registry</property>
- <property name="WindowPosition">CenterOnParent</property>
- <property name="DefaultWidth">0</property>
- <property name="DefaultHeight">0</property>
- <property name="Buttons">2</property>
- <property name="HelpButton">False</property>
- <child internal-child="VBox">
- <widget class="Gtk.VBox" id="dialog1_VBox">
- <property name="MemberName" />
- <property name="BorderWidth">2</property>
- <child>
- <widget class="Gtk.Table" id="table1">
- <property name="MemberName" />
- <property name="NRows">3</property>
- <property name="NColumns">2</property>
- <property name="RowSpacing">6</property>
- <property name="ColumnSpacing">6</property>
- <property name="BorderWidth">9</property>
- <child>
- <widget class="MonoDevelop.Components.FolderEntry" id="entryAppPath">
- <property name="MemberName" />
- </widget>
- <packing>
- <property name="TopAttach">1</property>
- <property name="BottomAttach">2</property>
- <property name="LeftAttach">1</property>
- <property name="RightAttach">2</property>
- <property name="AutoSize">True</property>
- <property name="XOptions">Fill</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">False</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Entry" id="entryName">
- <property name="MemberName" />
- <property name="CanFocus">True</property>
- <property name="IsEditable">True</property>
- <property name="InvisibleChar">●</property>
- </widget>
- <packing>
- <property name="LeftAttach">1</property>
- <property name="RightAttach">2</property>
- <property name="AutoSize">False</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">True</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="MonoDevelop.Components.FolderEntry" id="entryRegPath">
- <property name="MemberName" />
- </widget>
- <packing>
- <property name="TopAttach">2</property>
- <property name="BottomAttach">3</property>
- <property name="LeftAttach">1</property>
- <property name="RightAttach">2</property>
- <property name="AutoSize">True</property>
- <property name="XOptions">Fill</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">False</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Label" id="label1">
- <property name="MemberName" />
- <property name="Xalign">0</property>
- <property name="LabelProp" translatable="yes">Application Name:</property>
- </widget>
- <packing>
- <property name="AutoSize">True</property>
- <property name="XOptions">Fill</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">False</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Label" id="label2">
- <property name="MemberName" />
- <property name="Xalign">0</property>
- <property name="LabelProp" translatable="yes">Registry Path:</property>
- </widget>
- <packing>
- <property name="TopAttach">2</property>
- <property name="BottomAttach">3</property>
- <property name="AutoSize">True</property>
- <property name="XOptions">Fill</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">False</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Label" id="label3">
- <property name="MemberName" />
- <property name="Xalign">0</property>
- <property name="LabelProp" translatable="yes">Application Path:</property>
- </widget>
- <packing>
- <property name="TopAttach">1</property>
- <property name="BottomAttach">2</property>
- <property name="AutoSize">True</property>
- <property name="XOptions">Fill</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">False</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="Position">0</property>
- <property name="AutoSize">True</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- </widget>
- </child>
- <child internal-child="ActionArea">
- <widget class="Gtk.HButtonBox" id="dialog1_ActionArea">
- <property name="MemberName" />
- <property name="Spacing">6</property>
- <property name="BorderWidth">5</property>
- <property name="Size">2</property>
- <property name="LayoutStyle">End</property>
- <child>
- <widget class="Gtk.Button" id="buttonCancel">
- <property name="MemberName" />
- <property name="CanDefault">True</property>
- <property name="CanFocus">True</property>
- <property name="UseStock">True</property>
- <property name="Type">StockItem</property>
- <property name="StockId">gtk-cancel</property>
- <property name="ResponseId">-6</property>
- <property name="label">gtk-cancel</property>
- </widget>
- <packing>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Button" id="buttonOk">
- <property name="MemberName" />
- <property name="CanDefault">True</property>
- <property name="CanFocus">True</property>
- <property name="UseStock">True</property>
- <property name="Type">StockItem</property>
- <property name="StockId">gtk-ok</property>
- <property name="ResponseId">-5</property>
- <property name="label">gtk-ok</property>
- </widget>
- <packing>
- <property name="Position">1</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- </widget>
- </child>
- </widget>
- <widget class="Gtk.Bin" id="MonoDevelop.AddinAuthoring.ExtensionModelBrowserWidget" design-size="586 402">
- <property name="MemberName" />
- <child>
- <widget class="Gtk.VBox" id="vbox2">
- <property name="MemberName" />
- <property name="Spacing">6</property>
- <child>
- <widget class="Gtk.HBox" id="hbox1">
- <property name="MemberName" />
- <property name="Spacing">6</property>
- <child>
- <widget class="Gtk.Button" id="button79">
- <property name="MemberName" />
- <property name="CanFocus">True</property>
- <property name="Type">TextAndIcon</property>
- <property name="Icon">stock:gtk-go-back Menu</property>
- <property name="Label" translatable="yes" />
- <property name="UseUnderline">True</property>
- <property name="Relief">None</property>
- </widget>
- <packing>
- <property name="Position">0</property>
- <property name="AutoSize">True</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Button" id="button80">
- <property name="MemberName" />
- <property name="CanFocus">True</property>
- <property name="Type">TextAndIcon</property>
- <property name="Icon">stock:gtk-go-forward Menu</property>
- <property name="Label" translatable="yes" />
- <property name="UseUnderline">True</property>
- <property name="Relief">None</property>
- </widget>
- <packing>
- <property name="Position">1</property>
- <property name="AutoSize">True</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.VSeparator" id="vseparator1">
- <property name="MemberName" />
- </widget>
- <packing>
- <property name="Position">2</property>
- <property name="AutoSize">True</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Button" id="buttonAdd">
- <property name="MemberName" />
- <property name="CanFocus">True</property>
- <property name="Type">TextAndIcon</property>
- <property name="Icon">stock:gtk-add Menu</property>
- <property name="Label" translatable="yes">Add registry</property>
- <property name="UseUnderline">True</property>
- <property name="Relief">None</property>
- <signal name="Clicked" handler="OnButtonAddClicked" />
- </widget>
- <packing>
- <property name="Position">3</property>
- <property name="AutoSize">True</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <placeholder />
- </child>
- </widget>
- <packing>
- <property name="Position">0</property>
- <property name="AutoSize">False</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.HPaned" id="paned">
- <property name="MemberName" />
- <property name="CanFocus">True</property>
- <property name="Position">253</property>
- <child>
- <placeholder />
- </child>
- <child>
- <placeholder />
- </child>
- </widget>
- <packing>
- <property name="Position">1</property>
- <property name="AutoSize">True</property>
- </packing>
- </child>
- </widget>
- </child>
- </widget>
- <widget class="Gtk.Bin" id="MonoDevelop.AddinAuthoring.Gui.AddinView" design-size="436 253">
- <property name="MemberName" />
- <property name="Visible">False</property>
- <child>
- <widget class="Gtk.VBox" id="vbox2">
- <property name="MemberName" />
- <property name="Spacing">12</property>
- <child>
- <widget class="Gtk.Label" id="labelName">
- <property name="MemberName" />
- <property name="Xalign">0</property>
- <property name="LabelProp">&lt;b&gt;Addin Name&lt;/b&gt;</property>
- <property name="UseMarkup">True</property>
- </widget>
- <packing>
- <property name="Position">0</property>
- <property name="AutoSize">True</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Label" id="labelDesc">
- <property name="MemberName" />
- <property name="Xalign">0</property>
- <property name="LabelProp">Some description</property>
- <property name="Wrap">True</property>
- </widget>
- <packing>
- <property name="Position">1</property>
- <property name="AutoSize">True</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Table" id="table1">
- <property name="MemberName" />
- <property name="NRows">5</property>
- <property name="NColumns">2</property>
- <property name="RowSpacing">6</property>
- <property name="ColumnSpacing">6</property>
- <child>
- <widget class="Gtk.Label" id="label3">
- <property name="MemberName" />
- <property name="Xalign">0</property>
- <property name="LabelProp" translatable="yes">&lt;b&gt;Id:&lt;/b&gt;</property>
- <property name="UseMarkup">True</property>
- </widget>
- <packing>
- <property name="AutoSize">True</property>
- <property name="XOptions">Fill</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">False</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Label" id="label4">
- <property name="MemberName" />
- <property name="Xalign">0</property>
- <property name="LabelProp" translatable="yes">&lt;b&gt;Namespace:&lt;/b&gt;</property>
- <property name="UseMarkup">True</property>
- </widget>
- <packing>
- <property name="TopAttach">1</property>
- <property name="BottomAttach">2</property>
- <property name="AutoSize">True</property>
- <property name="XOptions">Fill</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">False</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Label" id="label5">
- <property name="MemberName" />
- <property name="Xalign">0</property>
- <property name="LabelProp" translatable="yes">&lt;b&gt;Version:&lt;/b&gt;</property>
- <property name="UseMarkup">True</property>
- </widget>
- <packing>
- <property name="TopAttach">2</property>
- <property name="BottomAttach">3</property>
- <property name="AutoSize">True</property>
- <property name="XOptions">Fill</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">False</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Label" id="label6">
- <property name="MemberName" />
- <property name="Xalign">0</property>
- <property name="LabelProp" translatable="yes">&lt;b&gt;Copyright:&lt;/b&gt;</property>
- <property name="UseMarkup">True</property>
- </widget>
- <packing>
- <property name="TopAttach">3</property>
- <property name="BottomAttach">4</property>
- <property name="AutoSize">True</property>
- <property name="XOptions">Fill</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">False</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Label" id="label7">
- <property name="MemberName" />
- <property name="Xalign">0</property>
- <property name="LabelProp" translatable="yes">&lt;b&gt;Author:&lt;/b&gt;</property>
- <property name="UseMarkup">True</property>
- </widget>
- <packing>
- <property name="TopAttach">4</property>
- <property name="BottomAttach">5</property>
- <property name="AutoSize">True</property>
- <property name="XOptions">Fill</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">False</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Label" id="labelAuthor">
- <property name="MemberName" />
- <property name="Xalign">0</property>
- <property name="Wrap">True</property>
- </widget>
- <packing>
- <property name="TopAttach">4</property>
- <property name="BottomAttach">5</property>
- <property name="LeftAttach">1</property>
- <property name="RightAttach">2</property>
- <property name="AutoSize">True</property>
- <property name="XOptions">Fill</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">False</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Label" id="labelCopyright">
- <property name="MemberName" />
- <property name="Xalign">0</property>
- <property name="Wrap">True</property>
- </widget>
- <packing>
- <property name="TopAttach">3</property>
- <property name="BottomAttach">4</property>
- <property name="LeftAttach">1</property>
- <property name="RightAttach">2</property>
- <property name="AutoSize">True</property>
- <property name="XOptions">Fill</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">False</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Label" id="labelId">
- <property name="MemberName" />
- <property name="Xalign">0</property>
- <property name="Wrap">True</property>
- </widget>
- <packing>
- <property name="LeftAttach">1</property>
- <property name="RightAttach">2</property>
- <property name="AutoSize">False</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">True</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Label" id="labelNamespace">
- <property name="MemberName" />
- <property name="Xalign">0</property>
- <property name="Wrap">True</property>
- </widget>
- <packing>
- <property name="TopAttach">1</property>
- <property name="BottomAttach">2</property>
- <property name="LeftAttach">1</property>
- <property name="RightAttach">2</property>
- <property name="AutoSize">True</property>
- <property name="XOptions">Fill</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">False</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Label" id="labelVersion">
- <property name="MemberName" />
- <property name="Xalign">0</property>
- <property name="Wrap">True</property>
- </widget>
- <packing>
- <property name="TopAttach">2</property>
- <property name="BottomAttach">3</property>
- <property name="LeftAttach">1</property>
- <property name="RightAttach">2</property>
- <property name="AutoSize">True</property>
- <property name="XOptions">Fill</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">False</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="Position">2</property>
- <property name="AutoSize">True</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- </widget>
- </child>
- </widget>
- <widget class="Gtk.Bin" id="MonoDevelop.AddinAuthoring.Gui.ExtensionPointView" design-size="300 300">
- <property name="MemberName" />
- <property name="Visible">False</property>
- <child>
- <widget class="Gtk.VBox" id="vbox3">
- <property name="MemberName" />
- <property name="Spacing">12</property>
- <child>
- <widget class="Gtk.Label" id="labelName">
- <property name="MemberName" />
- <property name="Xalign">0</property>
- <property name="LabelProp">&lt;b&gt;Addin Name&lt;/b&gt;</property>
- <property name="UseMarkup">True</property>
- </widget>
- <packing>
- <property name="Position">0</property>
- <property name="AutoSize">True</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Label" id="label1">
- <property name="MemberName" />
- <property name="Xalign">0</property>
- <property name="LabelProp" translatable="yes">&lt;b&gt;&lt;i&gt;Remarks:&lt;/i&gt;&lt;/b&gt;</property>
- <property name="UseMarkup">True</property>
- </widget>
- <packing>
- <property name="Position">1</property>
- <property name="AutoSize">True</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Label" id="labelDesc">
- <property name="MemberName" />
- <property name="Xalign">0</property>
- <property name="LabelProp">Some description</property>
- <property name="Wrap">True</property>
- </widget>
- <packing>
- <property name="Position">2</property>
- <property name="AutoSize">True</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.VBox" id="vbox4">
- <property name="MemberName" />
- <property name="Spacing">6</property>
- <child>
- <widget class="Gtk.Label" id="label9">
- <property name="MemberName" />
- <property name="Xalign">0</property>
- <property name="LabelProp" translatable="yes">&lt;b&gt;&lt;i&gt;Extension nodes:&lt;/i&gt;&lt;/b&gt;</property>
- <property name="UseMarkup">True</property>
- </widget>
- <packing>
- <property name="Position">0</property>
- <property name="AutoSize">True</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Table" id="tableNodes">
- <property name="MemberName" />
- <property name="NRows">3</property>
- <property name="NColumns">2</property>
- <property name="RowSpacing">6</property>
- <property name="ColumnSpacing">6</property>
- <child>
- <placeholder />
- </child>
- <child>
- <placeholder />
- </child>
- <child>
- <placeholder />
- </child>
- <child>
- <placeholder />
- </child>
- <child>
- <placeholder />
- </child>
- <child>
- <placeholder />
- </child>
- </widget>
- <packing>
- <property name="Position">1</property>
- <property name="AutoSize">False</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="Position">3</property>
- <property name="AutoSize">True</property>
- </packing>
- </child>
- </widget>
- </child>
- </widget>
- <widget class="Gtk.Bin" id="MonoDevelop.AddinAuthoring.Gui.ExtensionView" design-size="300 300">
- <property name="MemberName" />
- <property name="Visible">False</property>
- <child>
- <widget class="Gtk.VBox" id="vbox3">
- <property name="MemberName" />
- <property name="Spacing">12</property>
- <child>
- <widget class="Gtk.Label" id="labelName">
- <property name="MemberName" />
- <property name="Xalign">0</property>
- <property name="LabelProp">&lt;b&gt;Addin Name&lt;/b&gt;</property>
- <property name="UseMarkup">True</property>
- </widget>
- <packing>
- <property name="Position">0</property>
- <property name="AutoSize">True</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.VBox" id="vbox5">
- <property name="MemberName" />
- <property name="Spacing">6</property>
- <child>
- <widget class="Gtk.Label" id="label11">
- <property name="MemberName" />
- <property name="Xalign">0</property>
- <property name="LabelProp" translatable="yes">&lt;b&gt;&lt;i&gt;Extends:&lt;/i&gt;&lt;/b&gt;</property>
- <property name="UseMarkup">True</property>
- </widget>
- <packing>
- <property name="Position">0</property>
- <property name="AutoSize">True</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.HBox" id="hbox1">
- <property name="MemberName" />
- <property name="Spacing">6</property>
- <child>
- <widget class="Gtk.Button" id="buttonExt">
- <property name="MemberName" />
- <property name="CanFocus">True</property>
- <property name="Type">Custom</property>
- <property name="Relief">None</property>
- <child>
- <placeholder />
- </child>
- </widget>
- <packing>
- <property name="Position">0</property>
- <property name="AutoSize">False</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <placeholder />
- </child>
- </widget>
- <packing>
- <property name="Position">1</property>
- <property name="AutoSize">False</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="Position">1</property>
- <property name="AutoSize">True</property>
- </packing>
- </child>
- </widget>
- </child>
- </widget>
- <widget class="Gtk.Bin" id="MonoDevelop.AddinAuthoring.Gui.ExtensionNodeView" design-size="453 300">
- <property name="MemberName" />
- <property name="Visible">False</property>
- <child>
- <widget class="Gtk.VBox" id="vbox3">
- <property name="MemberName" />
- <property name="Spacing">12</property>
- <child>
- <widget class="Gtk.Label" id="labelName">
- <property name="MemberName" />
- <property name="Xalign">0</property>
- <property name="LabelProp">&lt;b&gt;Addin Name&lt;/b&gt;</property>
- <property name="UseMarkup">True</property>
- </widget>
- <packing>
- <property name="Position">0</property>
- <property name="AutoSize">True</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Label" id="label2">
- <property name="MemberName" />
- <property name="Xalign">0</property>
- <property name="LabelProp" translatable="yes">&lt;b&gt;&lt;i&gt;Remarks:&lt;/i&gt;&lt;/b&gt;</property>
- <property name="UseMarkup">True</property>
- </widget>
- <packing>
- <property name="Position">1</property>
- <property name="AutoSize">True</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Label" id="labelDesc">
- <property name="MemberName" />
- <property name="Xalign">0</property>
- <property name="LabelProp">Some description</property>
- <property name="Wrap">True</property>
- </widget>
- <packing>
- <property name="Position">2</property>
- <property name="AutoSize">True</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Label" id="label3">
- <property name="MemberName" />
- <property name="Xalign">0</property>
- <property name="LabelProp" translatable="yes">&lt;b&gt;&lt;i&gt;Attributes:&lt;/i&gt;&lt;/b&gt;</property>
- <property name="UseMarkup">True</property>
- </widget>
- <packing>
- <property name="Position">3</property>
- <property name="AutoSize">True</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.VBox" id="vbox4">
- <property name="MemberName" />
- <property name="Spacing">6</property>
- <child>
- <widget class="Gtk.Table" id="tableAtts">
- <property name="MemberName" />
- <property name="NRows">3</property>
- <property name="NColumns">3</property>
- <property name="RowSpacing">6</property>
- <property name="ColumnSpacing">6</property>
- <child>
- <placeholder />
- </child>
- <child>
- <placeholder />
- </child>
- <child>
- <placeholder />
- </child>
- <child>
- <placeholder />
- </child>
- <child>
- <placeholder />
- </child>
- <child>
- <placeholder />
- </child>
- <child>
- <placeholder />
- </child>
- <child>
- <placeholder />
- </child>
- <child>
- <placeholder />
- </child>
- </widget>
- <packing>
- <property name="Position">0</property>
- <property name="AutoSize">False</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="Position">4</property>
- <property name="AutoSize">True</property>
- </packing>
- </child>
- </widget>
- </child>
- </widget>
-</stetic-interface>
diff --git a/extras/MonoDevelop.AddinAuthoring/monodevelop.addinauthoring.pc.in b/extras/MonoDevelop.AddinAuthoring/monodevelop.addinauthoring.pc.in
deleted file mode 100644
index cb3367dee2..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/monodevelop.addinauthoring.pc.in
+++ /dev/null
@@ -1,6 +0,0 @@
-Name: MonoDevelop.AddinAuthoring
-Description: MonoDevelop.AddinAuthoring
-Version: 0.1
-
-Requires:
-Libs: -r:@prefix@/lib/@PACKAGE@/MonoDevelop.AddinAuthoring.dll
diff --git a/extras/MonoDevelop.AddinAuthoring/rules.make b/extras/MonoDevelop.AddinAuthoring/rules.make
deleted file mode 100644
index 5f906b2402..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/rules.make
+++ /dev/null
@@ -1,40 +0,0 @@
-clean-local:
- make pre-clean-local-hook
- make $(CONFIG)_BeforeClean
- -rm -f $(CLEANFILES)
- make $(CONFIG)_AfterClean
- make post-clean-local-hook
-
-install-local:
-uninstall-local:
-
-dist-local:
- make pre-dist-local-hook distdir=$$distdir
- list='$(EXTRA_DIST)'; \
- for f in Makefile $$list; do \
- d=`dirname "$$f"`; \
- test -d "$(distdir)/$$d" || \
- mkdir -p "$(distdir)/$$d"; \
- cp -p "$$f" "$(distdir)/$$d" || exit 1; \
- done
- make post-dist-local-hook distdir=$$distdir
-
-dist-local-recursive:
- for dir in $(SUBDIRS); do \
- mkdir -p $(distdir)/$$dir || true; \
- case $$dir in \
- .) make dist-local distdir=$(distdir) || exit 1;; \
- *) (cd $$dir; make dist-local distdir=$(distdir)/$$dir) || exit 1; \
- esac \
- done
-
-#hooks: Available hooks - all, clean, install, uninstall and dist
-# and their *-local variants
-pre-%-hook: ; @:
-post-%-hook: ; @:
-
-#targets for custom commands
-%_BeforeBuild: ; @:
-%_AfterBuild: ; @:
-%_BeforeClean: ; @:
-%_AfterClean: ; @:
diff --git a/extras/MonoDevelop.AddinAuthoring/templates/AddinProject.xpt.xml b/extras/MonoDevelop.AddinAuthoring/templates/AddinProject.xpt.xml
deleted file mode 100644
index 0de75e0b9c..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/templates/AddinProject.xpt.xml
+++ /dev/null
@@ -1,37 +0,0 @@
-<?xml version="1.0"?>
-<Template originator = "Lluis Sanchez">
-
- <!-- Template Header -->
- <TemplateConfiguration>
- <_Name>Add-in</_Name>
- <_Category>Add-ins</_Category>
- <_Description>Creates an add-in</_Description>
- <LanguageName>*</LanguageName>
- </TemplateConfiguration>
-
- <!-- Actions -->
- <Actions>
- </Actions>
-
- <!-- Template Content -->
- <Combine name = "${ProjectName}" directory = ".">
- <Options>
- <StartupProject>${ProjectName}</StartupProject>
- </Options>
-
- <Project name = "${ProjectName}" directory = ".">
- <Options Target = "Library" />
-
- <References>
- <Reference type="Gac" refto="System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
- <Reference type="Gac" SpecificVersion="false" refto="Mono.Addins, Version=0.1.0.0, Culture=neutral" />
- </References>
- <Files>
- <Addin id="${ProjectName}" name="${ProjectName}" isroot="false" version="1.0">
- </Addin>
- <FileTemplateReference TemplateID="EmptyClass" name="MyClass.cs" />
- <FileTemplateReference TemplateID="CSharpAssemblyInfo" name="AssemblyInfo.cs" />
- </Files>
- </Project>
- </Combine>
-</Template>
diff --git a/extras/MonoDevelop.AddinAuthoring/templates/ExtensibleApplicationProject.xpt.xml b/extras/MonoDevelop.AddinAuthoring/templates/ExtensibleApplicationProject.xpt.xml
deleted file mode 100644
index 21638f368e..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/templates/ExtensibleApplicationProject.xpt.xml
+++ /dev/null
@@ -1,50 +0,0 @@
-<?xml version="1.0"?>
-<Template originator = "Lluis Sanchez">
-
- <!-- Template Header -->
- <TemplateConfiguration>
- <_Name>Extensible Application</_Name>
- <_Category>Add-ins</_Category>
- <_Description>Creates an application which can be extended by add-ins</_Description>
- <LanguageName>*</LanguageName>
- </TemplateConfiguration>
-
- <!-- Actions -->
- <Actions>
- </Actions>
-
- <!-- Template Content -->
- <Combine name = "${ProjectName}" directory = ".">
- <Options>
- <StartupProject>${ProjectName}</StartupProject>
- </Options>
-
- <Project name = "${ProjectName}" directory = ".">
- <References>
- <Reference type="Gac" refto="System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
- <Reference type="Gac" SpecificVersion="false" refto="Mono.Addins, Version=0.1.0.0, Culture=neutral" />
- </References>
- <Files>
- <Addin id="${ProjectName}" name="${ProjectName}" isroot="true" version="1.0">
- </Addin>
- <File name="Main.cs" AddStandardHeader="True">
-<![CDATA[using System;
-using Mono.Addins;
-
-namespace ${Namespace}
-{
- class MainClass
- {
- public static void Main (string[] args)
- {
- AddinManager.Initialize (".");
- AddinManager.Registry.Update (null);
- }
- }
-}]]>
- </File>
- <FileTemplateReference TemplateID="CSharpAssemblyInfo" name="AssemblyInfo.cs" />
- </Files>
- </Project>
- </Combine>
-</Template>
diff --git a/extras/MonoDevelop.AddinAuthoring/templates/ExtensibleLibraryProject.xpt.xml b/extras/MonoDevelop.AddinAuthoring/templates/ExtensibleLibraryProject.xpt.xml
deleted file mode 100644
index 94762521a5..0000000000
--- a/extras/MonoDevelop.AddinAuthoring/templates/ExtensibleLibraryProject.xpt.xml
+++ /dev/null
@@ -1,37 +0,0 @@
-<?xml version="1.0"?>
-<Template originator = "Lluis Sanchez">
-
- <!-- Template Header -->
- <TemplateConfiguration>
- <_Name>Extensible Library</_Name>
- <_Category>Add-ins</_Category>
- <_Description>Creates a library which can be extended by add-ins</_Description>
- <LanguageName>*</LanguageName>
- </TemplateConfiguration>
-
- <!-- Actions -->
- <Actions>
- </Actions>
-
- <!-- Template Content -->
- <Combine name = "${ProjectName}" directory = ".">
- <Options>
- <StartupProject>${ProjectName}</StartupProject>
- </Options>
-
- <Project name = "${ProjectName}" directory = ".">
- <Options Target = "Library" />
-
- <References>
- <Reference type="Gac" refto="System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
- <Reference type="Gac" SpecificVersion="false" refto="Mono.Addins, Version=0.1.0.0, Culture=neutral" />
- </References>
- <Files>
- <Addin id="${ProjectName}" name="${ProjectName}" isroot="true" version="1.0">
- </Addin>
- <FileTemplateReference TemplateID="EmptyClass" name="MyClass.cs" />
- <FileTemplateReference TemplateID="CSharpAssemblyInfo" name="AssemblyInfo.cs" />
- </Files>
- </Project>
- </Combine>
-</Template>
diff --git a/extras/MonoDevelop.CodeAnalysis/AUTHORS b/extras/MonoDevelop.CodeAnalysis/AUTHORS
deleted file mode 100644
index 8b13789179..0000000000
--- a/extras/MonoDevelop.CodeAnalysis/AUTHORS
+++ /dev/null
@@ -1 +0,0 @@
-
diff --git a/extras/MonoDevelop.CodeAnalysis/COPYING b/extras/MonoDevelop.CodeAnalysis/COPYING
deleted file mode 100644
index 14826f9621..0000000000
--- a/extras/MonoDevelop.CodeAnalysis/COPYING
+++ /dev/null
@@ -1,21 +0,0 @@
-
-The MIT License
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
-
diff --git a/extras/MonoDevelop.CodeAnalysis/ChangeLog b/extras/MonoDevelop.CodeAnalysis/ChangeLog
deleted file mode 100644
index d433cb2543..0000000000
--- a/extras/MonoDevelop.CodeAnalysis/ChangeLog
+++ /dev/null
@@ -1,90 +0,0 @@
-2010-03-01 Lluis Sanchez Gual <lluis@novell.com>
-
- * MonoDevelop.CodeAnalysis.sln: The invariant policy can't be
- used anymore as base policy set.
-
-2010-02-18 Lluis Sanchez Gual <lluis@novell.com>
-
- * dlls/Mono.Cecil.dll:
- * dlls/Gendarme.Rules.Ui.dll:
- * dlls/Gendarme.Framework.dll:
- * dlls/Gendarme.Rules.Design.dll:
- * dlls/Gendarme.Rules.Naming.dll:
- * dlls/Gendarme.Rules.Smells.dll:
- * dlls/Gendarme.Rules.Security.dll:
- * dlls/Gendarme.Rules.Exceptions.dll:
- * dlls/Gendarme.Rules.Concurrency.dll:
- * dlls/Gendarme.Rules.Correctness.dll:
- * dlls/Gendarme.Rules.Portability.dll:
- * dlls/Gendarme.Rules.Performance.dll:
- * dlls/Gendarme.Rules.BadPractice.dll:
- * dlls/Gendarme.Rules.Serialization.dll:
- * dlls/Gendarme.Rules.Maintainability.dll:
- * dlls/Gendarme.Rules.Interoperability.dll: Upgraded to
- latest, since what we had was having problems with the
- latest cecil.
-
- * MonoDevelop.CodeAnalysis.sln: Flush.
-
-2009-12-16 Lluis Sanchez Gual <lluis@novell.com>
-
- * MonoDevelop.CodeAnalysis.sln: Flush.
-
-2009-08-26 Lluis Sanchez Gual <lluis@novell.com>
-
- * configure.ac: We now depend on gtk# 2.12.8, Mono 2.4, and
- Mono.Addins 0.4.
-
-2009-08-13 Lluis Sanchez Gual <lluis@novell.com>
-
- * MonoDevelop.CodeAnalysis.sln: Flush.
-
-2009-02-26 Lluis Sanchez Gual <lluis@novell.com>
-
- * MonoDevelop.CodeAnalysis.sln: Flush.
-
-2009-02-25 Michael Hutchinson <mhutchinson@novell.com>
-
- * MonoDevelop.CodeAnalysis.sln: Set policies. Remove unused
- name attribute.
-
-2009/02/06 Lluis Sanchez Gual <lluis@novell.com>
-
- * MonoDevelop.CodeAnalysis.sln:
- * MonoDevelop.CodeAnalysis.mds: Migrated to MSBuild format.
-
-2009/02/03 Lluis Sanchez Gual <lluis@novell.com>
-
- * MonoDevelop.CodeAnalysis.mds: Flush.
-
-2008-11-05 Lluis Sanchez Gual <lluis@novell.com>
-
- * configure.ac: Bump MD version.
-
-2008-07-15 Lluis Sanchez Gual <lluis@novell.com>
-
- * AUTHORS, README, NEWS: Add required files.
-
-2008-03-17 Daniel Abramov <ex@vingrad.ru>
- * dlls/Gendarme.Framework.dll: updated framework to keep
- the same version with Gendarme.Rules.BadPractice.dll
-
-2008-03-16 Daniel Abramov <ex@vingrad.ru>
- * dlls/Mono.Cecil.dll, dlls/Gendarme.Rules.BadPractice.dll:
- added Cecil because Gendarme implementation needs it
- and one example rule assembly (later we might consider
- using those in GAC, as Gendarme grows)
- * dlls/smokey.exe: added Smokey executable
-
-2008-03-14 Ben Motmans <ben.motmans@gmail.com>
-
- * configure.in, MonoDevelop.CodeAnalysis.mds, Makefile.am: added smokey
- addin
-
-2008-03-14 Ben Motmans <ben.motmans@gmail.com>
-
- * MonoDevelop.CodeAnalysis.Smokey: initial smokey addin
-
-2008-03-14 Ben Motmans <ben.motmans@gmail.com>
-
- * COPYING: added MIT/X11 license
diff --git a/extras/MonoDevelop.CodeAnalysis/Makefile.am b/extras/MonoDevelop.CodeAnalysis/Makefile.am
deleted file mode 100644
index f317d2ea02..0000000000
--- a/extras/MonoDevelop.CodeAnalysis/Makefile.am
+++ /dev/null
@@ -1,27 +0,0 @@
-SUBDIRS = \
- MonoDevelop.CodeAnalysis \
- MonoDevelop.CodeAnalysis.Gendarme \
- MonoDevelop.CodeAnalysis.Smokey
-
-all:
-
-pkgconfig_in_files = monodevelop-codeanalysis.pc.in
-
-pkgconfigdir= $(prefix)/lib/pkgconfig
-pkgconfig_DATA = $(pkgconfig_in_files:.pc.in=.pc)
-
-PACKAGES =
-
-mpacks: $(PACKAGES)
- test -z "packages" || mkdir -p packages
- mdtool setup p $(PACKAGES:%=%) -d:packages
- mdtool setup rb packages
-
-### SYNCH BLOCK: any changes to this line should be kept in sync with the corresponding block in Makefile.am
-MD_PKG_CONFIG_PATH=$(gtksharp_prefix)/lib/pkgconfig/:/usr/lib/pkgconfig/:/usr/local/lib/pkgconfig/:/usr/share/pkgconfig/:/usr/local/share/pkgconfig/$(shell if test -d /usr/lib64; then echo ":/usr/lib64/pkgconfig/:/usr/local/lib64/pkgconfig/"; fi)
-### END BLOCK
-
-# we can't use the variables that are conditionally defined
-EXTRA_DIST = $(pkgconfig_in_files)
-
-DISTCLEANFILES = $(pkgconfig_DATA)
diff --git a/extras/MonoDevelop.CodeAnalysis/Makefile.include b/extras/MonoDevelop.CodeAnalysis/Makefile.include
deleted file mode 100644
index c2b369a673..0000000000
--- a/extras/MonoDevelop.CodeAnalysis/Makefile.include
+++ /dev/null
@@ -1,4 +0,0 @@
-build_sources = $(addprefix $(srcdir)/, $(FILES)) $(GENERATED_FILES)
-build_resources = $(addprefix $(srcdir)/, $(RES))
-build_test_sources = $(addprefix $(srcdir)/, $(TESTFILES)) $(GENERATED_FILES)
-
diff --git a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Gendarme/AssemblyInfo.cs b/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Gendarme/AssemblyInfo.cs
deleted file mode 100644
index 6b95012ce2..0000000000
--- a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Gendarme/AssemblyInfo.cs
+++ /dev/null
@@ -1,9 +0,0 @@
-// Autogenerated from MonoDevelop.CodeAnalysis.Gendarme.addin.xml
-
-using System.Reflection;
-
-[assembly: AssemblyProduct ("MonoDevelop")]
-[assembly: AssemblyTitle ("MonoDevelop CodeAnalysis Gendarme addin")]
-[assembly: AssemblyDescription ("MonoDevelop CodeAnalysis addin")]
-[assembly: AssemblyVersion ("0.1.0")]
-[assembly: AssemblyCopyright ("MIT/X11")]
diff --git a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Gendarme/ChangeLog b/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Gendarme/ChangeLog
deleted file mode 100644
index 9d551b46d7..0000000000
--- a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Gendarme/ChangeLog
+++ /dev/null
@@ -1,112 +0,0 @@
-2010-03-17 Lluis Sanchez Gual <lluis@novell.com>
-
- * MonoDevelop.CodeAnalysis.Gendarme.csproj: Flush.
-
-2010-02-18 Lluis Sanchez Gual <lluis@novell.com>
-
- * gtk-gui/generated.cs:
- * MonoDevelop.CodeAnalysis.Gendarme.csproj: Flush.
-
-2009-12-16 Lluis Sanchez Gual <lluis@novell.com>
-
- * Makefile.am:
- * MonoDevelop.CodeAnalysis.Gendarme.csproj: Remove local
- cecil.dll reference. MD already includes it.
-
-2009-09-15 Lluis Sanchez Gual <lluis@novell.com>
-
- * Makefile.am: Fix references path again.
-
-2009-09-15 Lluis Sanchez Gual <lluis@novell.com>
-
- * Makefile.am: Try to get MD references from the main build
- dir.
-
-2009-08-26 Lluis Sanchez Gual <lluis@novell.com>
-
- * gtk-gui/gui.stetic: We now depend on gtk# 2.12.8, Mono 2.4,
- and Mono.Addins 0.4.
-
-2009-02-20 Lluis Sanchez Gual <lluis@novell.com>
-
- * MonoDevelop.CodeAnalysis.Gendarme.csproj: Updated
- references.
-
-2009-02-06 Lluis Sanchez Gual <lluis@novell.com>
-
- * AssemblyInfo.cs: Add missing files.
-
-2009/02/06 Lluis Sanchez Gual <lluis@novell.com>
-
- * Makefile.am:
- * MonoDevelop.CodeAnalysis.Gendarme.csproj: Flush.
-
-2009/02/06 Lluis Sanchez Gual <lluis@novell.com>
-
- * MonoDevelop.CodeAnalysis.Gendarme.mdp:
- * MonoDevelop.CodeAnalysis.Gendarme.csproj: Migrated to MSBuild file
- format.
-
-2009/02/03 Lluis Sanchez Gual <lluis@novell.com>
-
- * gtk-gui/generated.cs:
- * MonoDevelop.CodeAnalysis.Gendarme.mdp: Flush.
-
-2008-08-18 Lluis Sanchez Gual <lluis@novell.com>
-
- * MonoDevelop.CodeAnalysis.Gendarme.mdp: Fix reference to
- Mono.TextEditor. The incorrect add-in version number causes
- problems in the makefile synchronization.
-
-2008-04-24 Daniel Abramov <ex@vingrad.ru>
-
- * MonoDevelop.CodeAnalysis.Gendarme.addin.xml: added dependencies
- * Makefile.am, MonoDevelop.CodeAnalysis.Gendarme.mdp: added new files
- * GendarmeAnalyzer.cs: (new) class implementing IAnalyzer for Gendarme
- * GendarmeRule.cs: simplified code
- * GendarmeRuleCache.cs: minor changes
- * GendarmeRuleLoader.cs: minor changes + implemented dynamical loading
- for Gendarme rules assemblies
- * GendarmeRunner.cs: minor changes
- * Utilities.cs: simplification
-
-
-2008-03-17 Daniel Abramov <ex@vingrad.ru>
-
- * GendarmeRuleLoader.cs: added little comment
-
-2008-03-17 Daniel Abramov <ex@vingrad.ru>
-
- * GendarmeRunner.cs: fixed minor problem (now Gendarme runner works)
-
-2008-03-16 Daniel Abramov <ex@vingrad.ru>
-
- * GendarmeRule.cs, GendarmeRuleCache.cs, GendarmeRuleLoader.cs,
- GendarmeRunner.cs, GendarmeViolation.cs: most code is
- Mono Guidelines-formatted; also rule loading is implemented (and tested)
- * Utilities.cs: a good place for Gendarme-wide shared code
- * Makefile.am, MonoDevelop.CodeAnalysis.Gendarme.mdp: added Utilities.cs
-
-2008-03-16 Daniel Abramov <ex@vingrad.ru>
-
- * GendarmeRuleCache.cs, GendarmeRuleLoader.cs, GendarmeRunner.cs,
- GendarmeViolation.cs, MonoDevelop.CodeAnalysis.Gendarme.mdp,
- Utilities.cs: added more Gendarme support.
-
-2008-03-15 Sebastien Pouliot <sebastien@ximian.com>
-
- * MonoDevelop.CodeAnalysis.Gendarme.mdp: Downgrade references to Gtk#
- 2.8 (so it works with my SLED10 :-)
-
-2008-03-14 Ben Motmans <ben.motmans@gmail.com>
-
- * MonoDevelop.CodeAnalysis.Gendarme.mdp, Makefile.am: fixed references
-
-2008-03-14 Ben Motmans <ben.motmans@gmail.com>
-
- * MonoDevelop.CodeAnalysis.Gendarme.addin.xml: added addin metadata
-
-2008-03-14 Ben Motmans <ben.motmans@gmail.com>
-
- * MonoDevelop.CodeAnalysis.Gendarme.mdp: changed the build directory
-
diff --git a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Gendarme/GendarmeAnalyzer.cs b/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Gendarme/GendarmeAnalyzer.cs
deleted file mode 100644
index 2fa55092e3..0000000000
--- a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Gendarme/GendarmeAnalyzer.cs
+++ /dev/null
@@ -1,27 +0,0 @@
-using MonoDevelop.CodeAnalysis;
-using MonoDevelop.CodeAnalysis.Gendarme;
-
-[assembly:AssemblyAnalyzer (typeof (GendarmeAnalyzer))]
-
-namespace MonoDevelop.CodeAnalysis.Gendarme {
- public class GendarmeAnalyzer : IAnalyzer {
- GendarmeRunner runner;
- GendarmeRuleLoader loader;
-
- public IRunner GetRunner ()
- {
- if (runner == null)
- runner = new GendarmeRunner ();
-
- return runner;
- }
-
- public IRuleLoader GetRuleLoader ()
- {
- if (loader == null)
- loader = new GendarmeRuleLoader ();
-
- return loader;
- }
- }
-} \ No newline at end of file
diff --git a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Gendarme/GendarmeRule.cs b/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Gendarme/GendarmeRule.cs
deleted file mode 100644
index 348cf4fc68..0000000000
--- a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Gendarme/GendarmeRule.cs
+++ /dev/null
@@ -1,42 +0,0 @@
-using System;
-using System.Collections.Generic;
-
-using GF = Gendarme.Framework;
-using CA = MonoDevelop.CodeAnalysis;
-
-namespace MonoDevelop.CodeAnalysis.Gendarme {
-
- public class GendarmeRule : CA.IRule {
-
- private readonly GF.IRule rule;
- private readonly string description;
-
- internal GendarmeRule (GF.IRule rule)
- {
- this.rule = rule;
-
- object [] attrs = rule.GetType ().GetCustomAttributes (typeof (GF.ProblemAttribute), false);
- if (attrs == null || attrs.Length == 0)
- return;
-
- GF.ProblemAttribute problem = (GF.ProblemAttribute) attrs [0];
- description = problem.Problem;
- }
-
- public string Id {
- get { return rule.FullName; }
- }
-
- public string Name {
- get { return rule.Name; }
- }
-
- public string Description {
- get { return description; }
- }
-
- internal GF.IRule InternalRule {
- get { return rule; }
- }
- }
-}
diff --git a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Gendarme/GendarmeRuleCache.cs b/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Gendarme/GendarmeRuleCache.cs
deleted file mode 100644
index 5f2f7cbecc..0000000000
--- a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Gendarme/GendarmeRuleCache.cs
+++ /dev/null
@@ -1,49 +0,0 @@
-using System;
-using System.Collections.Generic;
-
-using CA = MonoDevelop.CodeAnalysis;
-using GF = Gendarme.Framework;
-using Mono.Cecil;
-
-namespace MonoDevelop.CodeAnalysis.Gendarme {
-
- static class GendarmeRuleCache {
-
- private static Dictionary<Type, GF.IRule> cachedRules;
- private static Dictionary<GF.IRule, CA.IRule> boundProxies;
-
- static GendarmeRuleCache ()
- {
- cachedRules = new Dictionary<Type, GF.IRule> ();
- boundProxies = new Dictionary<GF.IRule, CA.IRule> ();
- }
-
- public static CA.IRule CreateOrGetProxy (Type ruleType)
- {
- if (!Utilities.IsGendarmeRule (ruleType))
- throw new ArgumentException (AddinCatalog.GetString ("{0} is not a rule type because it does not implement IRule interface.",
- ruleType), "ruleType");
-
- if (!cachedRules.ContainsKey (ruleType)) {
- // create `real' rule and cache it
- GF.IRule rule = (GF.IRule) Activator.CreateInstance (ruleType);
- cachedRules.Add (ruleType, rule);
- // create a proxy and cache it
- GendarmeRule proxy = new GendarmeRule (rule);
- boundProxies.Add (rule, proxy);
- return proxy;
- } else {
- // return from cache
- return boundProxies [cachedRules [ruleType]];
- }
- }
-
- public static CA.IRule GetProxy (GF.IRule rule)
- {
- if (!boundProxies.ContainsKey (rule))
- throw new ArgumentException (AddinCatalog.GetString ("{0} rule has not been cached but it should.", rule), "rule");
-
- return boundProxies [rule];
- }
- }
-} \ No newline at end of file
diff --git a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Gendarme/GendarmeRuleLoader.cs b/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Gendarme/GendarmeRuleLoader.cs
deleted file mode 100644
index 6ce7937fc6..0000000000
--- a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Gendarme/GendarmeRuleLoader.cs
+++ /dev/null
@@ -1,52 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.IO;
-using System.Reflection;
-
-using GF = Gendarme.Framework;
-using CA = MonoDevelop.CodeAnalysis;
-
-namespace MonoDevelop.CodeAnalysis.Gendarme {
-
- public class GendarmeRuleLoader : CA.DictionaryBasedRuleLoader {
- private static readonly string gendarmeDirectory;
-
- static GendarmeRuleLoader ()
- {
- gendarmeDirectory = Path.GetDirectoryName (Assembly.GetExecutingAssembly ().Location);
-
- // FIXME: this is a workaround for bug found either in Gendarme or Cecil:
- GF.AssemblyResolver.Resolver.AddSearchDirectory (gendarmeDirectory);
- }
-
- public GendarmeRuleLoader ()
- {
- foreach (string lib in Directory.GetFiles (gendarmeDirectory, "Gendarme.Rules.*.dll", SearchOption.TopDirectoryOnly)) {
- string fileName = Path.GetFileName (lib);
- string categoryName = fileName.Substring (15, fileName.Length - 19);
- RegisterCategory (categoryName);
- }
- }
-
- protected override void LoadRules (Category c)
- {
- string rulesFile = GetRulesAssemblyFileName (c.Id);
- if (!File.Exists (rulesFile))
- throw new ArgumentException (AddinCatalog.GetString ("Could not find '{0}' rules assembly in '{1}'.", c.Id, gendarmeDirectory));
-
- Assembly rulesAssembly = Assembly.LoadFile (Path.GetFullPath (rulesFile));
- foreach (Type t in rulesAssembly.GetTypes ()) {
- if (t.IsAbstract || t.IsInterface)
- continue;
-
- if (Utilities.IsGendarmeRule (t))
- base.AddRule (c, GendarmeRuleCache.CreateOrGetProxy (t));
- }
- }
-
- static string GetRulesAssemblyFileName (string id)
- {
- return Path.Combine (gendarmeDirectory, "Gendarme.Rules." + id + ".dll");
- }
- }
-}
diff --git a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Gendarme/GendarmeRunner.cs b/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Gendarme/GendarmeRunner.cs
deleted file mode 100644
index 34fa5c9c94..0000000000
--- a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Gendarme/GendarmeRunner.cs
+++ /dev/null
@@ -1,52 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.IO;
-
-using CA = MonoDevelop.CodeAnalysis;
-using GF = Gendarme.Framework;
-using Mono.Cecil;
-
-namespace MonoDevelop.CodeAnalysis.Gendarme {
-
- public class GendarmeRunner : GF.Runner, CA.IRunner {
-
- public string Id {
- get { return "GendarmeRunner"; }
- }
-
- public string Name {
- get { return "Gendarme"; }
- }
-
- public GendarmeRunner ()
- {
- base.IgnoreList = new GF.BasicIgnoreList (this);
- }
-
- public IEnumerable<IViolation> Run (string inspectedFile, IEnumerable<CA.IRule> ruleSet)
- {
- if (!File.Exists (inspectedFile))
- throw new ArgumentException (AddinCatalog.GetString ("File does not exist: '{0}'.", inspectedFile),
- "inspectedFile");
-
- // assemblies
- base.Assemblies.Clear ();
- AssemblyDefinition ad = AssemblyDefinition.ReadAssembly (inspectedFile);
- base.Assemblies.Add (ad);
-
- // rules
- base.Rules.Clear ();
- foreach (CA.IRule rule in ruleSet)
- base.Rules.Add (((GendarmeRule) rule).InternalRule);
-
- // defects
- base.Reset ();
-
- base.Initialize ();
- base.Run ();
-
- foreach (GF.Defect def in base.Defects)
- yield return new GendarmeViolation (def);
- }
- }
-}
diff --git a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Gendarme/GendarmeViolation.cs b/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Gendarme/GendarmeViolation.cs
deleted file mode 100644
index 2f67f544ee..0000000000
--- a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Gendarme/GendarmeViolation.cs
+++ /dev/null
@@ -1,86 +0,0 @@
-using System;
-using System.IO;
-
-using CA = MonoDevelop.CodeAnalysis;
-using GF = Gendarme.Framework;
-using Mono.Cecil;
-
-namespace MonoDevelop.CodeAnalysis.Gendarme {
-
- class GendarmeViolation : IViolation {
- private readonly GF.Defect defect;
- private CA.CodeLocation location;
-
- internal GendarmeViolation (GF.Defect defect)
- {
- this.defect = defect;
- this.location = new CA.CodeLocation(string.Empty, 0, 0);
- }
-
- public CA.IRule Rule {
- get {
- return GendarmeRuleCache.GetProxy (defect.Rule);
- }
- }
-
- public CA.Severity Severity {
- get {
- switch (defect.Severity) {
- case GF.Severity.Critical:
- return CA.Severity.Critical;
- case GF.Severity.High:
- return CA.Severity.High;
- case GF.Severity.Low:
- return CA.Severity.Low;
- case GF.Severity.Medium:
- return CA.Severity.Medium;
- default:
- throw new NotImplementedException ();
- }
- }
- }
-
- public CA.Confidence Confidence {
- get {
- switch (defect.Confidence) {
- case GF.Confidence.High:
- return CA.Confidence.High;
- case GF.Confidence.Low:
- return CA.Confidence.Low;
- case GF.Confidence.Normal:
- return CA.Confidence.Normal;
- case GF.Confidence.Total:
- return CA.Confidence.Total;
- default:
- throw new NotImplementedException ();
- }
- }
- }
-
- public CA.CodeLocation Location {
- get {
- return location;
- }
- }
-
- public Uri Documentation {
- get {
- return defect.Rule.Uri;
- }
- }
-
- public string Problem {
- get {
- return defect.Rule.Problem;
- }
- }
-
- public string Solution {
- get {
- return defect.Rule.Solution;
- }
- }
-
-
- }
-} \ No newline at end of file
diff --git a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Gendarme/Makefile.am b/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Gendarme/Makefile.am
deleted file mode 100644
index 5e36371cb6..0000000000
--- a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Gendarme/Makefile.am
+++ /dev/null
@@ -1,48 +0,0 @@
-ADDIN_BUILD = $(top_builddir)/build
-ASSEMBLY = $(ADDIN_BUILD)/MonoDevelop.CodeAnalysis.Gendarme.dll
-REFS = \
- $(GLIB_SHARP_LIBS) \
- $(GTK_SHARP_LIBS) \
- $(MONODEVELOP_LIBS) \
- -r:$(top_builddir)/build/MonoDevelop.CodeAnalysis.dll \
- -r:$(top_srcdir)/dlls/Gendarme.Framework.dll \
- -r:Mono.Posix \
- -r:System \
- -r:System.Xml
-
-FILES = \
- AssemblyInfo.cs \
- GendarmeAnalyzer.cs \
- GendarmeRule.cs \
- GendarmeRuleCache.cs \
- GendarmeRuleLoader.cs \
- GendarmeRunner.cs \
- GendarmeViolation.cs \
- gtk-gui/generated.cs \
- Utilities.cs
-
-RES = \
- gtk-gui/gui.stetic \
- MonoDevelop.CodeAnalysis.Gendarme.addin.xml
-
-all: $(ASSEMBLY)
-
-LOCAL_PKGCONFIG=PKG_CONFIG_PATH=../../../local-config:$$PKG_CONFIG_PATH
-
-$(ASSEMBLY): $(build_sources) $(build_resources)
- mkdir -p $(ADDIN_BUILD)
- $(LOCAL_PKGCONFIG) $(CSC) $(CSC_FLAGS) $(REFS) $(build_resources:%=/resource:%) $(build_sources) -out:$@ -target:library
-
-$(ADDIN_BUILD)/Gendarme.Framework.dll: $(top_srcdir)/dlls/Gendarme.Framework.dll
- cp $^ $@
-
-$(ADDIN_BUILD)/Mono.Cecil.dll: $(top_srcdir)/dlls/Mono.Cecil.dll
- cp $^ $@
-
-assemblydir = $(MD_ADDIN_DIR)/MonoDevelop.CodeAnalysis
-assembly_DATA = $(ASSEMBLY) $(ADDIN_BUILD)/Mono.Cecil.dll $(ADDIN_BUILD)/Gendarme.Framework.dll
-
-CLEANFILES = $(ASSEMBLY) $(ASSEMBLY).mdb
-EXTRA_DIST = $(FILES) $(RES)
-
-include $(top_srcdir)/Makefile.include
diff --git a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Gendarme/MonoDevelop.CodeAnalysis.Gendarme.addin.xml b/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Gendarme/MonoDevelop.CodeAnalysis.Gendarme.addin.xml
deleted file mode 100644
index 77eed114fe..0000000000
--- a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Gendarme/MonoDevelop.CodeAnalysis.Gendarme.addin.xml
+++ /dev/null
@@ -1,18 +0,0 @@
-<Addin id = "CodeAnalysis.Gendarme"
- namespace = "MonoDevelop"
- name = "MonoDevelop CodeAnalysis Gendarme addin"
- author = "Ben Motmans"
- copyright = "MIT/X11"
- url = "http://code.google.com/p/md-codeanalysis"
- description = "MonoDevelop CodeAnalysis addin"
- category = "Code Analysis"
- version = "4.2.3">
-
- <Runtime>
- <Import assembly="MonoDevelop.CodeAnalysis.dll"/>
- <Import assembly="MonoDevelop.CodeAnalysis.Gendarme.dll"/>
- <Import assembly="Gendarme.Framework.dll"/>
- </Runtime>
-
- <Localizer type="Gettext" catalog="monodevelop-codeanalysis" />
-</Addin>
diff --git a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Gendarme/MonoDevelop.CodeAnalysis.Gendarme.csproj b/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Gendarme/MonoDevelop.CodeAnalysis.Gendarme.csproj
deleted file mode 100644
index ec217e723e..0000000000
--- a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Gendarme/MonoDevelop.CodeAnalysis.Gendarme.csproj
+++ /dev/null
@@ -1,123 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <ProductVersion>9.0.21022</ProductVersion>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{B067BEE4-E7B3-4707-ADDD-05C89E0F618C}</ProjectGuid>
- <OutputType>Library</OutputType>
- <newfilesearch>OnLoadAutoInsert</newfilesearch>
- <AssemblyName>MonoDevelop.CodeAnalysis.Gendarme</AssemblyName>
- <RootNamespace>MonoDevelop.CodeAnalysis.Gendarme</RootNamespace>
- <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- <DebugSymbols>true</DebugSymbols>
- <DebugType>full</DebugType>
- <Optimize>true</Optimize>
- <OutputPath>..\build</OutputPath>
- <DefineConstants>DEBUG</DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- <CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
- <Execution>
- <Execution clr-version="Net_2_0" />
- </Execution>
- <AssemblyOriginatorKeyFile>.</AssemblyOriginatorKeyFile>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- <DebugType>none</DebugType>
- <Optimize>true</Optimize>
- <OutputPath>..\build</OutputPath>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- <CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
- <Execution>
- <Execution clr-version="Net_2_0" />
- </Execution>
- </PropertyGroup>
- <ItemGroup>
- <Reference Include="MonoDevelop.Core, Version=1.9.2.0, Culture=neutral">
- <Package>monodevelop</Package>
- <SpecificVersion>False</SpecificVersion>
- </Reference>
- <Reference Include="Mono.Posix" />
- <Reference Include="System" />
- <Reference Include="System.Xml" />
- <Reference Include="NRefactory, Version=0.0.0.0, Culture=neutral">
- <Package>monodevelop</Package>
- <SpecificVersion>False</SpecificVersion>
- </Reference>
- <Reference Include="Mono.Cecil, Version=0.6.8.8607, Culture=neutral">
- <Package>monodevelop</Package>
- <SpecificVersion>False</SpecificVersion>
- </Reference>
- <Reference Include="Mono.TextEditor, Version=1.0.0.0, Culture=neutral">
- <Package>monodevelop</Package>
- </Reference>
- <Reference Include="MonoDevelop.Ide, Version=1.9.2.0, Culture=neutral">
- <Package>monodevelop</Package>
- <SpecificVersion>False</SpecificVersion>
- </Reference>
- <Reference Include="glib-sharp, Version=2.10.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f">
- <SpecificVersion>False</SpecificVersion>
- </Reference>
- <Reference Include="pango-sharp, Version=2.10.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f">
- <SpecificVersion>False</SpecificVersion>
- </Reference>
- <Reference Include="atk-sharp, Version=2.10.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f">
- <SpecificVersion>False</SpecificVersion>
- </Reference>
- <Reference Include="gdk-sharp, Version=2.10.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f">
- <SpecificVersion>False</SpecificVersion>
- </Reference>
- <Reference Include="gtk-sharp, Version=2.10.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f">
- <SpecificVersion>False</SpecificVersion>
- </Reference>
- <Reference Include="Gendarme.Framework, Version=2.7.0.0, Culture=neutral, PublicKeyToken=null">
- <HintPath>..\dlls\Gendarme.Framework.dll</HintPath>
- </Reference>
- <Reference Include="Mono.Debugging, Version=0.0.0.0, Culture=neutral, PublicKeyToken=5e9ce85b0923c84f">
- <Package>monodevelop</Package>
- </Reference>
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\MonoDevelop.CodeAnalysis\MonoDevelop.CodeAnalysis.csproj">
- <Project>{07C24E54-66FF-42F1-B1A1-628D389AAFDC}</Project>
- <Name>MonoDevelop.CodeAnalysis</Name>
- </ProjectReference>
- </ItemGroup>
- <ItemGroup>
- <EmbeddedResource Include="MonoDevelop.CodeAnalysis.Gendarme.addin.xml">
- <LogicalName>MonoDevelop.CodeAnalysis.Gendarme.addin.xml</LogicalName>
- </EmbeddedResource>
- <EmbeddedResource Include="gtk-gui\gui.stetic">
- <LogicalName>gui.stetic</LogicalName>
- </EmbeddedResource>
- </ItemGroup>
- <ItemGroup>
- <Compile Include="gtk-gui\generated.cs" />
- <Compile Include="GendarmeRunner.cs" />
- <Compile Include="GendarmeRule.cs" />
- <Compile Include="GendarmeViolation.cs" />
- <Compile Include="GendarmeRuleLoader.cs" />
- <Compile Include="GendarmeRuleCache.cs" />
- <Compile Include="Utilities.cs" />
- <Compile Include="GendarmeAnalyzer.cs" />
- <Compile Include="AssemblyInfo.cs" />
- </ItemGroup>
- <ItemGroup>
- <None Include="ChangeLog" />
- <None Include="xdb.il" />
- <None Include="xdb.s" />
- </ItemGroup>
- <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
- <ProjectExtensions>
- <MonoDevelop>
- <Properties>
- <GtkDesignInfo gettextClass="AddinCatalog" />
- </Properties>
- </MonoDevelop>
- </ProjectExtensions>
-</Project> \ No newline at end of file
diff --git a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Gendarme/Utilities.cs b/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Gendarme/Utilities.cs
deleted file mode 100644
index 05272575b1..0000000000
--- a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Gendarme/Utilities.cs
+++ /dev/null
@@ -1,15 +0,0 @@
-using System;
-using System.Reflection;
-
-using GF = Gendarme.Framework;
-
-namespace MonoDevelop.CodeAnalysis.Gendarme {
-
- static class Utilities {
-
- public static bool IsGendarmeRule (Type t)
- {
- return t.GetInterface (typeof (GF.IRule).FullName) != null;
- }
- }
-} \ No newline at end of file
diff --git a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Gendarme/gtk-gui/generated.cs b/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Gendarme/gtk-gui/generated.cs
deleted file mode 100644
index 8463caae89..0000000000
--- a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Gendarme/gtk-gui/generated.cs
+++ /dev/null
@@ -1,29 +0,0 @@
-
-// This file has been generated by the GUI designer. Do not modify.
-namespace Stetic
-{
- internal class Gui
- {
- private static bool initialized;
-
- static internal void Initialize (Gtk.Widget iconRenderer)
- {
- if ((Stetic.Gui.initialized == false)) {
- Stetic.Gui.initialized = true;
- }
- }
- }
-
- internal class ActionGroups
- {
- public static Gtk.ActionGroup GetActionGroup (System.Type type)
- {
- return Stetic.ActionGroups.GetActionGroup (type.FullName);
- }
-
- public static Gtk.ActionGroup GetActionGroup (string name)
- {
- return null;
- }
- }
-}
diff --git a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Gendarme/gtk-gui/gui.stetic b/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Gendarme/gtk-gui/gui.stetic
deleted file mode 100644
index 83be1d2a0d..0000000000
--- a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Gendarme/gtk-gui/gui.stetic
+++ /dev/null
@@ -1,12 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<stetic-interface>
- <configuration>
- <images-root-path>..</images-root-path>
- <target-gtk-version>2.12</target-gtk-version>
- </configuration>
- <import>
- <widget-library name="MonoDevelop.Components, Version=0.19.0.0, Culture=neutral" />
- <widget-library name="MonoDevelop.Ide, Version=0.19.0.0, Culture=neutral" />
- <widget-library name="MonoDevelop.Projects.Gui, Version=0.19.0.0, Culture=neutral" />
- </import>
-</stetic-interface> \ No newline at end of file
diff --git a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Smokey/AssemblyInfo.cs b/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Smokey/AssemblyInfo.cs
deleted file mode 100644
index fdd7acf2fc..0000000000
--- a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Smokey/AssemblyInfo.cs
+++ /dev/null
@@ -1,9 +0,0 @@
-// Autogenerated from MonoDevelop.CodeAnalysis.Smokey.addin.xml
-
-using System.Reflection;
-
-[assembly: AssemblyProduct ("MonoDevelop")]
-[assembly: AssemblyTitle ("MonoDevelop CodeAnalysis Smokey addin")]
-[assembly: AssemblyDescription ("MonoDevelop CodeAnalysis addin")]
-[assembly: AssemblyVersion ("0.1.0")]
-[assembly: AssemblyCopyright ("MIT/X11")]
diff --git a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Smokey/ChangeLog b/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Smokey/ChangeLog
deleted file mode 100644
index 6df42d6531..0000000000
--- a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Smokey/ChangeLog
+++ /dev/null
@@ -1,75 +0,0 @@
-2010-02-18 Lluis Sanchez Gual <lluis@novell.com>
-
- * gtk-gui/generated.cs: Flush.
-
-2009-12-16 Lluis Sanchez Gual <lluis@novell.com>
-
- * MonoDevelop.CodeAnalysis.Smokey.csproj: Flush.
-
-2009-09-15 Lluis Sanchez Gual <lluis@novell.com>
-
- * Makefile.am: Fix references path again.
-
-2009-09-15 Lluis Sanchez Gual <lluis@novell.com>
-
- * Makefile.am: Try to get MD references from the main build
- dir.
-
-2009-08-26 Lluis Sanchez Gual <lluis@novell.com>
-
- * gtk-gui/gui.stetic: We now depend on gtk# 2.12.8, Mono 2.4,
- and Mono.Addins 0.4.
-
-2009-02-20 Lluis Sanchez Gual <lluis@novell.com>
-
- * MonoDevelop.CodeAnalysis.Smokey.csproj: Updated references.
-
-2009-02-06 Lluis Sanchez Gual <lluis@novell.com>
-
- * AssemblyInfo.cs: Add missing files.
-
-2009/02/06 Lluis Sanchez Gual <lluis@novell.com>
-
- * MonoDevelop.CodeAnalysis.Smokey.csproj: Flush.
-
-2009/02/06 Lluis Sanchez Gual <lluis@novell.com>
-
- * MonoDevelop.CodeAnalysis.Smokey.mdp:
- * MonoDevelop.CodeAnalysis.Smokey.csproj: Migrated to MSBuild file
- format.
-
-2009/02/03 Lluis Sanchez Gual <lluis@novell.com>
-
- * gtk-gui/generated.cs:
- * MonoDevelop.CodeAnalysis.Smokey.mdp: Flush.
-
-2008-12-09 Lluis Sanchez Gual <lluis@novell.com>
-
- * MonoDevelop.CodeAnalysis.Smokey.mdp: Don't require a specific version
- of Mono.Addins.
-
-2008-03-18 Daniel Abramov <ex@vingrad.ru>
-
- * MonoDevelop.CodeAnalysis.Smokey.addin.xml: added dependencies
- * SmokeyAnalyzer.cs: (new) implementation of IAnalyzer for Smokey
- * SmokeyRuleLoader.cs: make it dynamic
- * SmokeyViolation.cs: minor
-
-2008-03-17 Daniel Abramov <ex@vingrad.ru>
-
- * SmokeyRunner.cs: interface implementation stub
-
-2008-03-16 Daniel Abramov <ex@vingrad.ru>
-
- * MonoDevelop.CodeAnalysis.Smokey.mdp, SmokeyRule.cs,
- SmokeyRuleLoader.cs, SmokeyRunner.cs
- SmokeyViolation.cs: initial code, now rule loading works (tested)
-
-
-
-2008-03-14 Ben Motmans <ben.motmans@gmail.com>
-
- * MonoDevelop.CodeAnalysis.Smokey.addin.xml, ChangeLog, gtk-gui,
- gtk-gui/generated.cs, gtk-gui/gui.stetic,
- MonoDevelop.CodeAnalysis.Smokey.mdp: initial smokey addin
-
diff --git a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Smokey/Makefile.am b/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Smokey/Makefile.am
deleted file mode 100644
index 504f81e418..0000000000
--- a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Smokey/Makefile.am
+++ /dev/null
@@ -1,45 +0,0 @@
-ADDIN_BUILD = $(top_builddir)/build
-ASSEMBLY = $(ADDIN_BUILD)/MonoDevelop.CodeAnalysis.Smokey.dll
-REFS = \
- $(GLIB_SHARP_LIBS) \
- $(GTK_SHARP_LIBS) \
- $(MONO_ADDINS_LIBS) \
- $(MONODEVELOP_LIBS) \
- -r:Mono.Posix \
- -r:System \
- -r:System.Xml \
- -r:$(top_builddir)/build/MonoDevelop.CodeAnalysis.dll \
- -r:$(top_srcdir)/dlls/smokey.exe
-
-FILES = \
- gtk-gui/generated.cs \
- SmokeyRule.cs \
- SmokeyRuleLoader.cs \
- SmokeyRunner.cs \
- SmokeyViolation.cs \
- SmokeyParser.cs \
- SmokeyRuleCache.cs \
- SmokeyAnalyzer.cs
-
-RES = \
- gtk-gui/gui.stetic \
- MonoDevelop.CodeAnalysis.Smokey.addin.xml
-
-all: $(ASSEMBLY)
-
-LOCAL_PKGCONFIG=PKG_CONFIG_PATH=../../../local-config:$$PKG_CONFIG_PATH
-
-$(ASSEMBLY): $(build_sources) $(build_resources)
- mkdir -p $(ADDIN_BUILD)
- $(LOCAL_PKGCONFIG) $(CSC) $(CSC_FLAGS) $(REFS) $(build_resources:%=/resource:%) $(build_sources) -out:$@ -target:library
-
-$(ADDIN_BUILD)/smokey.exe: $(top_srcdir)/dlls/smokey.exe
- cp $^ $@
-
-assemblydir = $(MD_ADDIN_DIR)/MonoDevelop.CodeAnalysis
-assembly_DATA = $(ASSEMBLY) $(ADDIN_BUILD)/smokey.exe
-
-CLEANFILES = $(ASSEMBLY) $(ASSEMBLY).mdb
-EXTRA_DIST = $(FILES) $(RES)
-
-include $(top_srcdir)/Makefile.include
diff --git a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Smokey/MonoDevelop.CodeAnalysis.Smokey.addin.xml b/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Smokey/MonoDevelop.CodeAnalysis.Smokey.addin.xml
deleted file mode 100644
index 8e1cfc55d2..0000000000
--- a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Smokey/MonoDevelop.CodeAnalysis.Smokey.addin.xml
+++ /dev/null
@@ -1,18 +0,0 @@
-<Addin id = "CodeAnalysis.Smokey"
- namespace = "MonoDevelop"
- name = "MonoDevelop CodeAnalysis Smokey addin"
- author = "Ben Motmans"
- copyright = "MIT/X11"
- url = "http://code.google.com/p/md-codeanalysis"
- description = "MonoDevelop CodeAnalysis addin"
- category = "Code Analysis"
- version = "4.2.3">
-
- <Runtime>
- <Import assembly="MonoDevelop.CodeAnalysis.dll"/>
- <Import assembly="MonoDevelop.CodeAnalysis.Smokey.dll"/>
- <Import assembly="smokey.exe"/>
- </Runtime>
-
- <Localizer type="Gettext" catalog="monodevelop-codeanalysis" />
-</Addin>
diff --git a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Smokey/MonoDevelop.CodeAnalysis.Smokey.csproj b/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Smokey/MonoDevelop.CodeAnalysis.Smokey.csproj
deleted file mode 100644
index d4ccd408f7..0000000000
--- a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Smokey/MonoDevelop.CodeAnalysis.Smokey.csproj
+++ /dev/null
@@ -1,118 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <ProductVersion>9.0.21022</ProductVersion>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{D2147A8C-E36C-4613-B97B-B90B3345E44B}</ProjectGuid>
- <OutputType>Library</OutputType>
- <newfilesearch>OnLoadAutoInsert</newfilesearch>
- <AssemblyName>MonoDevelop.CodeAnalysis.Smokey</AssemblyName>
- <RootNamespace>MonoDevelop.CodeAnalysis.Smokey</RootNamespace>
- <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- <DebugSymbols>true</DebugSymbols>
- <DebugType>full</DebugType>
- <Optimize>true</Optimize>
- <OutputPath>..\build</OutputPath>
- <DefineConstants>DEBUG</DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- <CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
- <Execution>
- <Execution clr-version="Net_2_0" />
- </Execution>
- <AssemblyOriginatorKeyFile>.</AssemblyOriginatorKeyFile>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- <DebugType>none</DebugType>
- <Optimize>true</Optimize>
- <OutputPath>..\build</OutputPath>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- <CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
- <Execution>
- <Execution clr-version="Net_2_0" />
- </Execution>
- </PropertyGroup>
- <ItemGroup>
- <Reference Include="MonoDevelop.Core, Version=1.9.2.0, Culture=neutral">
- <Package>monodevelop</Package>
- </Reference>
- <Reference Include="Mono.Posix" />
- <Reference Include="System" />
- <Reference Include="System.Xml" />
- <Reference Include="Mono.Addins, Version=0.4.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756">
- <SpecificVersion>False</SpecificVersion>
- </Reference>
- <Reference Include="smokey, Version=1.2.383.0, Culture=neutral, PublicKeyToken=e73790e66f13b574">
- <HintPath>..\dlls\smokey.exe</HintPath>
- </Reference>
- <Reference Include="NRefactory, Version=0.0.0.0, Culture=neutral">
- <Package>monodevelop</Package>
- </Reference>
- <Reference Include="Mono.Cecil, Version=0.6.8.8607, Culture=neutral">
- <Package>monodevelop</Package>
- </Reference>
- <Reference Include="glib-sharp, Version=2.10.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
- <Reference Include="pango-sharp, Version=2.10.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
- <Reference Include="atk-sharp, Version=2.10.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
- <Reference Include="gdk-sharp, Version=2.10.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
- <Reference Include="gtk-sharp, Version=2.10.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
- <Reference Include="MonoDevelop.Core.Gui, Version=1.9.2.0, Culture=neutral">
- <Package>monodevelop</Package>
- </Reference>
- <Reference Include="MonoDevelop.Projects, Version=1.9.2.0, Culture=neutral">
- <Package>monodevelop</Package>
- </Reference>
- <Reference Include="MonoDevelop.Projects.Gui, Version=1.9.2.0, Culture=neutral">
- <Package>monodevelop</Package>
- </Reference>
- <Reference Include="MonoDevelop.Ide, Version=1.9.2.0, Culture=neutral">
- <Package>monodevelop</Package>
- </Reference>
- <Reference Include="MonoDevelop.Components, Version=1.9.2.0, Culture=neutral">
- <Package>monodevelop</Package>
- </Reference>
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\MonoDevelop.CodeAnalysis\MonoDevelop.CodeAnalysis.csproj">
- <Project>{07C24E54-66FF-42F1-B1A1-628D389AAFDC}</Project>
- <Name>MonoDevelop.CodeAnalysis</Name>
- </ProjectReference>
- </ItemGroup>
- <ItemGroup>
- <EmbeddedResource Include="MonoDevelop.CodeAnalysis.Smokey.addin.xml">
- <LogicalName>MonoDevelop.CodeAnalysis.Smokey.addin.xml</LogicalName>
- </EmbeddedResource>
- <EmbeddedResource Include="gtk-gui\gui.stetic">
- <LogicalName>gui.stetic</LogicalName>
- </EmbeddedResource>
- </ItemGroup>
- <ItemGroup>
- <Compile Include="gtk-gui\generated.cs" />
- <Compile Include="SmokeyRule.cs" />
- <Compile Include="SmokeyRuleLoader.cs" />
- <Compile Include="SmokeyRunner.cs" />
- <Compile Include="SmokeyViolation.cs" />
- <Compile Include="SmokeyParser.cs" />
- <Compile Include="SmokeyRuleCache.cs" />
- <Compile Include="SmokeyAnalyzer.cs" />
- <Compile Include="AssemblyInfo.cs" />
- </ItemGroup>
- <ItemGroup>
- <None Include="ChangeLog" />
- <None Include="xdb.il" />
- <None Include="xdb.s" />
- </ItemGroup>
- <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
- <ProjectExtensions>
- <MonoDevelop>
- <Properties>
- <GtkDesignInfo gettextClass="AddinCatalog" />
- </Properties>
- </MonoDevelop>
- </ProjectExtensions>
-</Project> \ No newline at end of file
diff --git a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Smokey/SmokeyAnalyzer.cs b/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Smokey/SmokeyAnalyzer.cs
deleted file mode 100644
index 03ff0e3f29..0000000000
--- a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Smokey/SmokeyAnalyzer.cs
+++ /dev/null
@@ -1,27 +0,0 @@
-using MonoDevelop.CodeAnalysis;
-using MonoDevelop.CodeAnalysis.Smokey;
-
-[assembly:AssemblyAnalyzer (typeof (SmokeyAnalyzer))]
-
-namespace MonoDevelop.CodeAnalysis.Smokey {
- public class SmokeyAnalyzer : IAnalyzer {
- SmokeyRunner runner;
- SmokeyRuleLoader loader;
-
- public IRunner GetRunner ()
- {
- if (runner == null)
- runner = new SmokeyRunner ();
-
- return runner;
- }
-
- public IRuleLoader GetRuleLoader ()
- {
- if (loader == null)
- loader = new SmokeyRuleLoader ();
-
- return loader;
- }
- }
-} \ No newline at end of file
diff --git a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Smokey/SmokeyParser.cs b/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Smokey/SmokeyParser.cs
deleted file mode 100644
index 4996d8fff2..0000000000
--- a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Smokey/SmokeyParser.cs
+++ /dev/null
@@ -1,104 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Diagnostics;
-using System.IO;
-using System.Xml;
-
-using CA = MonoDevelop.CodeAnalysis;
-
-namespace MonoDevelop.CodeAnalysis.Smokey {
-
- internal static class SmokeyParser {
- private const string RuleErrorMessage = "A rule has failed to run.";
-
- public static IEnumerable<IViolation> ParseOutput (StreamReader sr, IEnumerable<CA.IRule> ruleSet)
- {
- List<IViolation> found = new List<IViolation> ();
-
- // FIXME: instead of checking each defect if its rule is in "set"
- // we should think on making use of Smokey "ignore" feature
-
- // we should only return violations with rules id in this list
- List<string> ruleIds = new List<string> ();
- foreach (CA.IRule rule in ruleSet)
- ruleIds.Add (rule.Id);
-
- // if assembly is big, Gendarme outputs progress bar using dots
- // before actual xml, so we might want to need to move forward
- while (sr.Peek () != '<')
- sr.Read ();
-
- // go!
- using (XmlTextReader reader = new XmlTextReader (sr)) {
- reader.WhitespaceHandling = WhitespaceHandling.None;
- string file = string.Empty;
- int line = 0;
-
- while (reader.Read ()) {
- if (reader.NodeType != XmlNodeType.Element)
- continue;
-
- if("Location" == reader.Name) {
- file = reader.GetAttribute("file");
- if(null == file){ file = string.Empty; }
- if(!int.TryParse(reader.GetAttribute("line"), out line)){ line = 0; }
- }
-
- if (reader.Name != "Violation")
- continue;
-
-
- // get rule id
- string ruleId = reader.GetAttribute ("checkID");
- // if we don't need to check for this rule, let it go
- if (!ruleIds.Contains (ruleId))
- continue;
-
- // parse severity (or try to)
- CA.Severity severity = ParseSeverity (reader.GetAttribute ("severity"));
-
- // parse solution and problem
- string problem = null;
- string solution = null;
- while (reader.Read ()) {
- if (reader.NodeType != XmlNodeType.Element)
- continue;
-
- if (reader.Name == "Cause")
- problem = reader.ReadString ();
- else if (reader.Name == "Fix")
- solution = reader.ReadString ();
- else if (problem != null && solution != null)
- break;
- }
-
- // sometimes Smokey rules throw an exception
- // we shouldn't return "dead" violations
- if (IsErrorMessage (problem))
- continue;
-
- // go!
- found.Add (new SmokeyViolation (ruleId, problem, solution, severity, file, line));
- }
- }
- return found;
- }
-
- private static CA.Severity ParseSeverity (string value)
- {
- if (value == "Error")
- return CA.Severity.High; // FIXME: or Critical?
- else if (value == "Warning")
- return CA.Severity.Medium;
- else if (value == "Nitpick")
- return CA.Severity.Low;
- else
- return CA.Severity.Medium; // by default?
- }
-
- private static bool IsErrorMessage (string cause)
- {
- return cause == RuleErrorMessage;
- }
- }
-}
diff --git a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Smokey/SmokeyRule.cs b/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Smokey/SmokeyRule.cs
deleted file mode 100644
index 3b5dfea1f4..0000000000
--- a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Smokey/SmokeyRule.cs
+++ /dev/null
@@ -1,31 +0,0 @@
-using System;
-using System.Collections.Generic;
-
-using CA = MonoDevelop.CodeAnalysis;
-
-namespace MonoDevelop.CodeAnalysis.Smokey {
-
- public class SmokeyRule : CA.IRule {
- private string id, name, description;
-
- public SmokeyRule (string id, string name, string description)
- {
- this.id = id;
- this.name = name;
- this.description = description;
- }
-
-
- public string Id {
- get { return id; }
- }
-
- public string Name {
- get { return name; }
- }
-
- public string Description {
- get { return description; }
- }
- }
-}
diff --git a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Smokey/SmokeyRuleCache.cs b/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Smokey/SmokeyRuleCache.cs
deleted file mode 100644
index 196227a853..0000000000
--- a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Smokey/SmokeyRuleCache.cs
+++ /dev/null
@@ -1,33 +0,0 @@
-using System;
-using System.Collections.Generic;
-
-using CA = MonoDevelop.CodeAnalysis;
-
-namespace MonoDevelop.CodeAnalysis.Smokey {
-
- static class SmokeyRuleCache {
-
- static Dictionary<string, SmokeyRule> cachedRules;
-
- static SmokeyRuleCache ()
- {
- cachedRules = new Dictionary<string, SmokeyRule> ();
- }
-
- public static void Add (SmokeyRule r)
- {
- if (cachedRules.ContainsKey (r.Id))
- return;
-
- cachedRules [r.Id] = r;
- }
-
- public static SmokeyRule Get (string id)
- {
- if (!cachedRules.ContainsKey (id))
- throw new ArgumentException (string.Format ("Rule with '{0}' id could not be found in cache while it should be.", id),
- "id");
- return cachedRules [id];
- }
- }
-} \ No newline at end of file
diff --git a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Smokey/SmokeyRuleLoader.cs b/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Smokey/SmokeyRuleLoader.cs
deleted file mode 100644
index 15fe9df3c5..0000000000
--- a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Smokey/SmokeyRuleLoader.cs
+++ /dev/null
@@ -1,60 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.IO;
-using System.Reflection;
-using System.Xml;
-
-using CA = MonoDevelop.CodeAnalysis;
-
-namespace MonoDevelop.CodeAnalysis.Smokey {
-
- public class SmokeyRuleLoader : CA.DictionaryBasedRuleLoader {
-
- public SmokeyRuleLoader ()
- {
- foreach (string resource in SmokeyRunner.Smokey.GetManifestResourceNames ()) {
- if (!resource.EndsWith (".xml"))
- continue;
-
- if (resource == "Schema.xml")
- continue;
-
- string categoryName = resource.Substring (0, resource.Length - 4); // remove ".xml"
- RegisterCategory (categoryName);
- }
- }
-
- protected override void LoadRules (Category c)
- {
- // load xml file from smokey resources
- using (Stream ruleInfo = SmokeyRunner.Smokey.GetManifestResourceStream (c.Id + ".xml")) {
- using (XmlTextReader reader = new XmlTextReader (ruleInfo)) {
- reader.WhitespaceHandling = WhitespaceHandling.None;
-
- // we need to know all rule ids, names and descriptions
- while (reader.Read ()) {
- reader.ReadToFollowing ("Violation");
- string ruleId = reader.GetAttribute ("checkID"); // id
- do {
- if (reader.EOF)
- break;
-
- reader.ReadToFollowing ("Translation");
- } while (reader.GetAttribute ("lang") != "en");
-
- if (reader.EOF)
- break;
-
- string ruleName = reader.GetAttribute ("typeName"); // name
- reader.ReadToFollowing ("Description");
- string ruleDescription = reader.ReadElementContentAsString (); // description
-
- SmokeyRule rule = new SmokeyRule (ruleId, ruleName, ruleDescription);
- SmokeyRuleCache.Add (rule);
- base.AddRule (c, rule);
- }
- }
- }
- }
- }
-}
diff --git a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Smokey/SmokeyRunner.cs b/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Smokey/SmokeyRunner.cs
deleted file mode 100644
index 17b428c8ec..0000000000
--- a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Smokey/SmokeyRunner.cs
+++ /dev/null
@@ -1,61 +0,0 @@
-using System;
-using System.Diagnostics;
-using System.Collections.Generic;
-using System.IO;
-using System.Reflection;
-
-using CA = MonoDevelop.CodeAnalysis;
-
-namespace MonoDevelop.CodeAnalysis.Smokey {
-
- public class SmokeyRunner : IRunner
- {
- private static readonly Assembly smokey;
-
- static SmokeyRunner ()
- {
- string assemblyDirectory = Path.GetDirectoryName (Assembly.GetExecutingAssembly ().Location);
- smokey = Assembly.LoadFile (Path.Combine (assemblyDirectory, "smokey.exe"));
- }
-
- public SmokeyRunner()
- {
- }
-
- public IEnumerable<CA.IViolation> Run (string inspectedFile, IEnumerable<CA.IRule> ruleSet)
- {
- // FIXME: add support for ruleSet parameter
- // TODO: use MonoDevelop process APIs instead of System.Diagnostics
- string arguments = "-xml";
-
- ProcessStartInfo startInfo = new ProcessStartInfo ("mono");
- // runtime needs to be defined explicitly (or somewhy 1.1 can be loaded)
- startInfo.Arguments = string.Format ("--runtime=v2.0.50727 {0} {1} {2}",
- smokey.CodeBase, arguments, inspectedFile);
- startInfo.RedirectStandardOutput = true;
- startInfo.UseShellExecute = false;
-
- Process smokeyProcess = null;
- try {
- smokeyProcess = Process.Start (startInfo);
- return SmokeyParser.ParseOutput (smokeyProcess.StandardOutput, ruleSet);
- } catch (Exception ex) {
- throw new InvalidOperationException (AddinCatalog.GetString ("Could not run Smokey or parse its output."), ex);
- } finally {
- if (smokey != null) smokeyProcess.Dispose ();
- }
- }
-
- public static Assembly Smokey {
- get { return smokey; }
- }
-
- public string Id {
- get { return "SmokeyRunner"; }
- }
-
- public string Name {
- get { return "Smokey"; }
- }
- }
-}
diff --git a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Smokey/SmokeyViolation.cs b/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Smokey/SmokeyViolation.cs
deleted file mode 100644
index 803fa4211e..0000000000
--- a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Smokey/SmokeyViolation.cs
+++ /dev/null
@@ -1,54 +0,0 @@
-using System;
-
-using CA = MonoDevelop.CodeAnalysis;
-
-namespace MonoDevelop.CodeAnalysis.Smokey {
-
- public class SmokeyViolation : CA.IViolation {
- private string ruleId, problem, solution;
- private CA.Severity severity;
- private CA.CodeLocation location;
-
- public CA.IRule Rule {
- get { return SmokeyRuleCache.Get (ruleId); }
- }
-
- public CA.Severity Severity {
- get { return severity; }
- }
-
- public CA.Confidence Confidence {
- get { return CA.Confidence.Normal; }
- }
-
- public CA.CodeLocation Location {
- get {
- return location;
- }
- }
-
- public Uri Documentation {
- get {
- throw new NotImplementedException();
- }
- }
-
- public string Problem {
- get { return problem; }
- }
-
- public string Solution {
- get { return solution; }
- }
-
-
- public SmokeyViolation (string ruleId, string problem, string solution, CA.Severity severity, string file, int line)
- {
- this.ruleId = ruleId;
- this.problem = problem;
- this.solution = solution;
- this.severity = severity;
- this.location = new CodeLocation(file, line, 0);
- }
- }
-}
diff --git a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Smokey/gtk-gui/generated.cs b/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Smokey/gtk-gui/generated.cs
deleted file mode 100644
index 8463caae89..0000000000
--- a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Smokey/gtk-gui/generated.cs
+++ /dev/null
@@ -1,29 +0,0 @@
-
-// This file has been generated by the GUI designer. Do not modify.
-namespace Stetic
-{
- internal class Gui
- {
- private static bool initialized;
-
- static internal void Initialize (Gtk.Widget iconRenderer)
- {
- if ((Stetic.Gui.initialized == false)) {
- Stetic.Gui.initialized = true;
- }
- }
- }
-
- internal class ActionGroups
- {
- public static Gtk.ActionGroup GetActionGroup (System.Type type)
- {
- return Stetic.ActionGroups.GetActionGroup (type.FullName);
- }
-
- public static Gtk.ActionGroup GetActionGroup (string name)
- {
- return null;
- }
- }
-}
diff --git a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Smokey/gtk-gui/gui.stetic b/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Smokey/gtk-gui/gui.stetic
deleted file mode 100644
index 83be1d2a0d..0000000000
--- a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Smokey/gtk-gui/gui.stetic
+++ /dev/null
@@ -1,12 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<stetic-interface>
- <configuration>
- <images-root-path>..</images-root-path>
- <target-gtk-version>2.12</target-gtk-version>
- </configuration>
- <import>
- <widget-library name="MonoDevelop.Components, Version=0.19.0.0, Culture=neutral" />
- <widget-library name="MonoDevelop.Ide, Version=0.19.0.0, Culture=neutral" />
- <widget-library name="MonoDevelop.Projects.Gui, Version=0.19.0.0, Culture=neutral" />
- </import>
-</stetic-interface> \ No newline at end of file
diff --git a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.sln b/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.sln
deleted file mode 100644
index 135ce45600..0000000000
--- a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.sln
+++ /dev/null
@@ -1,51 +0,0 @@
-
-Microsoft Visual Studio Solution File, Format Version 11.00
-# Visual Studio 2010
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MonoDevelop.CodeAnalysis.Gendarme", "MonoDevelop.CodeAnalysis.Gendarme\MonoDevelop.CodeAnalysis.Gendarme.csproj", "{B067BEE4-E7B3-4707-ADDD-05C89E0F618C}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MonoDevelop.CodeAnalysis", "MonoDevelop.CodeAnalysis\MonoDevelop.CodeAnalysis.csproj", "{07C24E54-66FF-42F1-B1A1-628D389AAFDC}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MonoDevelop.CodeAnalysis.Smokey", "MonoDevelop.CodeAnalysis.Smokey\MonoDevelop.CodeAnalysis.Smokey.csproj", "{D2147A8C-E36C-4613-B97B-B90B3345E44B}"
-EndProject
-Global
- GlobalSection(SolutionConfigurationPlatforms) = preSolution
- Debug|Any CPU = Debug|Any CPU
- Release|Any CPU = Release|Any CPU
- EndGlobalSection
- GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {07C24E54-66FF-42F1-B1A1-628D389AAFDC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {07C24E54-66FF-42F1-B1A1-628D389AAFDC}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {07C24E54-66FF-42F1-B1A1-628D389AAFDC}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {07C24E54-66FF-42F1-B1A1-628D389AAFDC}.Release|Any CPU.Build.0 = Release|Any CPU
- {B067BEE4-E7B3-4707-ADDD-05C89E0F618C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {B067BEE4-E7B3-4707-ADDD-05C89E0F618C}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {B067BEE4-E7B3-4707-ADDD-05C89E0F618C}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {B067BEE4-E7B3-4707-ADDD-05C89E0F618C}.Release|Any CPU.Build.0 = Release|Any CPU
- {D2147A8C-E36C-4613-B97B-B90B3345E44B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {D2147A8C-E36C-4613-B97B-B90B3345E44B}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {D2147A8C-E36C-4613-B97B-B90B3345E44B}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {D2147A8C-E36C-4613-B97B-B90B3345E44B}.Release|Any CPU.Build.0 = Release|Any CPU
- EndGlobalSection
- GlobalSection(MonoDevelopProperties) = preSolution
- StartupItem = MonoDevelop.CodeAnalysis.Gendarme\MonoDevelop.CodeAnalysis.Gendarme.csproj
- Policies = $0
- $0.DotNetNamingPolicy = $1
- $1.DirectoryNamespaceAssociation = Flat
- $1.ResourceNamePolicy = FileName
- $0.StandardHeader = $2
- $2.Text = @\n${FileName}\n \nAuthor:\n ${AuthorName} <${AuthorEmail}>\n\nCopyright (c) ${Year} ${CopyrightHolder}\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the "Software"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.
- $2.IncludeInNewFiles = True
- $0.TextStylePolicy = $3
- $3.FileWidth = 120
- $3.TabWidth = 4
- $3.inheritsSet = Mono
- $3.inheritsScope = text/plain
- $0.VersionControlPolicy = $4
- $4.inheritsSet = Mono
- $0.ChangeLogPolicy = $5
- $5.UpdateMode = None
- $5.VcsIntegration = None
- $5.inheritsSet = Mono
- name = MonoDevelop.CodeAnalysis
- EndGlobalSection
-EndGlobal
diff --git a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/AddinCatalog.cs b/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/AddinCatalog.cs
deleted file mode 100644
index c879c908a2..0000000000
--- a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/AddinCatalog.cs
+++ /dev/null
@@ -1,63 +0,0 @@
-// Gettext.cs
-//
-// Author:
-// Lluis Sanchez Gual <lluis@novell.com>
-// Ben Motmans <ben.motmans@gmail.com>
-//
-// Copyright (c) 2007 Novell, Inc (http://www.novell.com)
-// Copyright (c) 2007 Ben Motmans
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-//
-//
-
-using System;
-using Mono.Addins;
-
-namespace MonoDevelop.CodeAnalysis {
- public static class AddinCatalog {
- static AddinLocalizer localizer;
-
- public static string GetString (string str)
- {
- if (localizer == null)
- localizer = AddinManager.CurrentLocalizer;
- return localizer.GetString (str);
- }
-
- public static string GetString (string str, params object[] pars)
- {
- return string.Format (GetString (str), pars);
- }
-
- public static string GetPluralString (string msgid, string defaultPlural, int n)
- {
- if (localizer == null)
- localizer = AddinManager.CurrentLocalizer;
- return localizer.GetPluralString (msgid, defaultPlural, n);
- }
-
- public static string GetPluralString (string msgid, string defaultPlural, int n, params string[] args)
- {
- if (localizer == null)
- localizer = AddinManager.CurrentLocalizer;
- return localizer.GetPluralString (msgid, defaultPlural, n, args);
- }
- }
-} \ No newline at end of file
diff --git a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/Argument.cs b/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/Argument.cs
deleted file mode 100644
index b67e7e7549..0000000000
--- a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/Argument.cs
+++ /dev/null
@@ -1,12 +0,0 @@
-using System;
-
-namespace MonoDevelop.CodeAnalysis {
- public static class Argument
- {
- public static void NotNull (object value, string name)
- {
- if (value == null)
- throw new ArgumentNullException (name);
- }
- }
-}
diff --git a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/ChangeLog b/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/ChangeLog
deleted file mode 100644
index 725a410414..0000000000
--- a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/ChangeLog
+++ /dev/null
@@ -1,147 +0,0 @@
-2010-03-22 Lluis Sanchez Gual <lluis@novell.com>
-
- * MonoDevelop.CodeAnalysis.addin.xml: Bumped MD version.
-
-2010-03-17 Lluis Sanchez Gual <lluis@novell.com>
-
- * MonoDevelop.CodeAnalysis.csproj: Flush.
-
-2010-03-17 Lluis Sanchez Gual <lluis@novell.com>
-
- * Gui/ResultsReporter.cs:
- * Commands/AnalyzeHandler.cs:
- * MonoDevelop.CodeAnalysis.csproj:
- * MonoDevelop.CodeAnalysis.addin.xml: Merged MD.Projects into
- MD.Core, and MD.Projects.Gui, MD.Core.Gui and MD.Components
- into MD.Ide.
-
-2010-02-18 Lluis Sanchez Gual <lluis@novell.com>
-
- * gtk-gui/generated.cs:
- * MonoDevelop.CodeAnalysis.csproj:
- * gtk-gui/MonoDevelop.CodeAnalysis.ViolationWidget.cs:
- * gtk-gui/MonoDevelop.CodeAnalysis.ProjectOptionsPanelWidget.cs:
- Flush.
-
-2009-12-16 Lluis Sanchez Gual <lluis@novell.com>
-
- * MonoDevelop.CodeAnalysis.csproj: Flush.
-
-2009-12-01 Lluis Sanchez Gual <lluis@novell.com>
-
- * CodeAnalysis/MainAnalyzer.cs: Introduced the
- ConfigurationSelector class to all methods that previously
- took a configuration name as string. This eliminates the
- ambiguity between solution configuration names and project
- configuration names.
-
-2009-10-30 Lluis Sanchez Gual <lluis@novell.com>
-
- * MonoDevelop.CodeAnalysis.addin.xml: Bump MD version.
-
-2009-10-07 Lluis Sanchez Gual <lluis@novell.com>
-
- * MonoDevelop.CodeAnalysis.addin.xml: Bump MD version.
-
-2009-09-15 Lluis Sanchez Gual <lluis@novell.com>
-
- * Makefile.am: Fix references path again.
-
-2009-09-15 Lluis Sanchez Gual <lluis@novell.com>
-
- * Makefile.am: Try to get MD references from the main build
- dir.
-
- * gtk-gui/gui.stetic: Update.
-
-2009-08-26 Lluis Sanchez Gual <lluis@novell.com>
-
- * gtk-gui/gui.stetic: We now depend on gtk# 2.12.8, Mono 2.4,
- and Mono.Addins 0.4.
-
-2009-08-13 Lluis Sanchez Gual <lluis@novell.com>
-
- * Gui/ResultsReporter.cs: Track api changes.
-
-2009-04-15 Lluis Sanchez Gual <lluis@novell.com>
-
- * MonoDevelop.CodeAnalysis.addin.xml: Bump MD version.
-
-2009-02-23 Lluis Sanchez Gual <lluis@novell.com>
-
- * MonoDevelop.CodeAnalysis.addin.xml: Track merge of the
- project pad context menu.
-
-2009-02-20 Lluis Sanchez Gual <lluis@novell.com>
-
- * MonoDevelop.CodeAnalysis.csproj: Updated references.
-
-2009/02/06 Lluis Sanchez Gual <lluis@novell.com>
-
- * MonoDevelop.CodeAnalysis.mdp:
- * MonoDevelop.CodeAnalysis.csproj: Migrated to MSBuild file format.
-
-2009/02/03 Lluis Sanchez Gual <lluis@novell.com>
-
- * gtk-gui/generated.cs:
- * MonoDevelop.CodeAnalysis.mdp:
- * gtk-gui/MonoDevelop.CodeAnalysis.ViolationWidget.cs:
- * gtk-gui/MonoDevelop.CodeAnalysis.ProjectOptionsPanelWidget.cs:
- Flush.
-
-2008-11-05 Lluis Sanchez Gual <lluis@novell.com>
-
- * MonoDevelop.CodeAnalysis.addin.xml: Bump MD version.
-
-2008-09-29 Lluis Sanchez Gual <lluis@novell.com>
-
- * MonoDevelop.CodeAnalysis.addin.xml: Moved analyze command to tools
- submenu.
- * Gui/ViolationWidget.cs, gtk-gui/objects.xml,
- gtk-gui/MonoDevelop.CodeAnalysis.ProjectOptionsPanelWidget.cs:
- Updated.
-
-2008-08-18 Lluis Sanchez Gual <lluis@novell.com>
-
- * MonoDevelop.CodeAnalysis.mdp: Fix reference to Mono.TextEditor. The
- incorrect add-in version number causes problems in the makefile
- synchronization.
-
-2008-04-24 Daniel Abramov <ex@vingrad.ru>
-
- * Makefile.am, MonoDevelop.CodeAnalysis.mdp: added new files
- * MonoDevelop.CodeAnalysis.addin.xml: upgraded MD version to 1.0 and added extension nodes
- * CodeAnalysis/AssemblyAnalyzerFacadeAttribute.cs: (new) attribute required for loading
- plugin assemblies (like Gendarme, Smokey)
- * CodeAnalysis/CodeAnalysisException.cs: (new) exception type for code analysis engine
- * CodeAnalysis/DictionaryBasedRuleLoader.cs: minor changes
- * CodeAnalysis/IAnalyzer.cs: (new) analyzer interface to be implemented by Gendarme/Smokey addins
- * CodeAnalysis/MainAnalyzer.cs: class that performs analysis of a CombineEntry using
- dynamically loaded analyzer assemblies
- * Commands/AnalyzeHandler.cs: a handler for MD CodeAnalysis commands (solution pad context menu)
- * Commands/Commands.cs: rename to CodeAnalysisCommands.cs (by its type name)
- * Commands/CodeAnalysisCommands.cs: (new) renamed Commands.cs
- * Gui/ResultsReporter.cs: (new) class that handles GUI interaction
-
-2008-03-16 Daniel Abramov <ex@vingrad.ru>
-
- * Argument.cs: a class performing checks and throwing exceptions if needed
- * CodeAnalysis/Category.cs, CodeAnalysis/CodeLocation.cs, CodeAnalysis/Confidence.cs,
- CodeAnalysis/IRule.cs, CodeAnalysis/IRuleLoader.cs, CodeAnalysis/IRunner.cs,
- CodeAnalysis/IViolation.cs, CodeAnalysis/Severity.cs, Commands/Commands.cs,
- Extensions/RuleLoaderExtension.cs, : Code is formatted according to Mono Coding Guidelines
- * CodeAnalysis/DictionaryBasedRuleLoader.cs: extracted some shared code for rule loaders
-
-2008-03-16 Daniel Abramov <ex@vingrad.ru>
-
- * CodeAnalysis/IRunner.cs: added Run () method.
-
-2008-03-14 Ben Motmans <ben.motmans@gmail.com>
-
- * MonoDevelop.CodeAnalysis.addin.xml: added addin metadata
- * gtk-gui/gui.stetic: changed dll reference to the correct location
-
-2008-03-14 Ben Motmans <ben.motmans@gmail.com>
-
- * MonoDevelop.CodeAnalysis.mdp: changed the build directory
-
diff --git a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/CodeAnalysis/AssemblyAnalyzerAttribute.cs b/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/CodeAnalysis/AssemblyAnalyzerAttribute.cs
deleted file mode 100644
index 99fc671696..0000000000
--- a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/CodeAnalysis/AssemblyAnalyzerAttribute.cs
+++ /dev/null
@@ -1,24 +0,0 @@
-using System;
-
-namespace MonoDevelop.CodeAnalysis {
-
- /// <summary>
- /// Attribute that specifies type implementing IAnalyzer for a plugin assembly.
- /// </summary>
- [AttributeUsage (AttributeTargets.Assembly)]
- public sealed class AssemblyAnalyzerAttribute : Attribute {
- private Type type;
-
- public AssemblyAnalyzerAttribute (Type Type)
- {
- if (Type.GetInterface (typeof (IAnalyzer).FullName) == null)
- throw new ArgumentException ("AssemblyAnalyzer can only point to types implementing IAnalyzer interface.");
-
- type = Type;
- }
-
- public Type Type {
- get { return type; }
- }
- }
-}
diff --git a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/CodeAnalysis/Category.cs b/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/CodeAnalysis/Category.cs
deleted file mode 100644
index 6f97c78cd2..0000000000
--- a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/CodeAnalysis/Category.cs
+++ /dev/null
@@ -1,28 +0,0 @@
-using System;
-
-namespace MonoDevelop.CodeAnalysis {
-
- public class Category {
- private string id;
- private string name;
-
- public Category (string id, string name)
- {
- Argument.NotNull (id, "id");
- Argument.NotNull (name, "name");
-
- this.id = id;
- this.name = name;
- }
-
- public string Id
- {
- get { return id; }
- }
-
- public string Name
- {
- get { return name; }
- }
- }
-}
diff --git a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/CodeAnalysis/CodeAnalysisException.cs b/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/CodeAnalysis/CodeAnalysisException.cs
deleted file mode 100644
index e9470ab353..0000000000
--- a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/CodeAnalysis/CodeAnalysisException.cs
+++ /dev/null
@@ -1,15 +0,0 @@
-using System;
-
-namespace MonoDevelop.CodeAnalysis {
-
- public class CodeAnalysisException : Exception {
-
- public CodeAnalysisException () { }
-
- public CodeAnalysisException (string message)
- : base (message) { }
-
- public CodeAnalysisException (string message, Exception inner)
- : base (message, inner) { }
- }
-}
diff --git a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/CodeAnalysis/CodeLocation.cs b/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/CodeAnalysis/CodeLocation.cs
deleted file mode 100644
index 642d541b5f..0000000000
--- a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/CodeAnalysis/CodeLocation.cs
+++ /dev/null
@@ -1,34 +0,0 @@
-using System;
-
-namespace MonoDevelop.CodeAnalysis {
-
- public class CodeLocation {
-
- public string File {
- get { return file; }
- }
- private string file;
-
- public int Line {
- get { return line; }
- }
- private int line;
-
- public int Column {
- get { return column; }
- }
- private int column;
-
- public CodeLocation ()
- {
- file = string.Empty;
- }
-
- public CodeLocation(string file, int line, int column)
- {
- this.file = file;
- this.line = line;
- this.column = column;
- }
- }
-}
diff --git a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/CodeAnalysis/Confidence.cs b/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/CodeAnalysis/Confidence.cs
deleted file mode 100644
index 9bd70237ae..0000000000
--- a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/CodeAnalysis/Confidence.cs
+++ /dev/null
@@ -1,11 +0,0 @@
-using System;
-
-namespace MonoDevelop.CodeAnalysis {
-
- public enum Confidence {
- Total,
- High,
- Normal,
- Low
- }
-}
diff --git a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/CodeAnalysis/DictionaryBasedRuleLoader.cs b/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/CodeAnalysis/DictionaryBasedRuleLoader.cs
deleted file mode 100644
index f56f20ac0a..0000000000
--- a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/CodeAnalysis/DictionaryBasedRuleLoader.cs
+++ /dev/null
@@ -1,78 +0,0 @@
-using System;
-using System.Collections.Generic;
-
-using MonoDevelop.Core;
-
-namespace MonoDevelop.CodeAnalysis {
-
- public abstract class DictionaryBasedRuleLoader : IRuleLoader {
- private Dictionary<Category, IList<IRule>> categorizedRules;
- private bool rulesLoaded = false;
-
- public DictionaryBasedRuleLoader ()
- {
- categorizedRules = new Dictionary<Category, IList<IRule>> ();
- }
-
- /// <summary>
- /// Adds a rule to the specified category (one should exist).
- /// </summary>
- protected void AddRule (Category c, IRule r)
- {
- categorizedRules [c].Add (r);
- }
-
- void EnsureLoaded ()
- {
- if (!rulesLoaded)
- LoadAllRules ();
- }
-
- void LoadAllRules ()
- {
- foreach (Category c in categorizedRules.Keys)
- LoadRules (c);
-
- rulesLoaded = true;
- }
-
- /// <summary>
- /// Loads rules of specified category.
- /// </summary>
- protected abstract void LoadRules (Category c);
-
- /// <summary>
- /// Adds a category to internal dictionary.
- /// </summary>
- protected void RegisterCategory (string id)
- {
- Category c = new Category (id, id); // TODO: make id and name different?
- categorizedRules.Add (c, new List<IRule> ());
- }
-
-
- public IEnumerable<IRule> GetRules ()
- {
- EnsureLoaded ();
- foreach (List<IRule> ruleList in categorizedRules.Values)
- foreach (IRule rule in ruleList)
- yield return rule;
- }
-
- public IEnumerable<IRule> GetRules (Category category)
- {
- EnsureLoaded ();
- if (!categorizedRules.ContainsKey (category))
- throw new ArgumentOutOfRangeException ("category",
- category, AddinCatalog.GetString ("Category '{0}' does not exist.", category));
-
- return categorizedRules [category];
- }
-
- public IEnumerable<Category> GetCategories ()
- {
- EnsureLoaded ();
- return categorizedRules.Keys;
- }
- }
-}
diff --git a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/CodeAnalysis/IAnalyzer.cs b/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/CodeAnalysis/IAnalyzer.cs
deleted file mode 100644
index 779053da68..0000000000
--- a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/CodeAnalysis/IAnalyzer.cs
+++ /dev/null
@@ -1,10 +0,0 @@
-namespace MonoDevelop.CodeAnalysis {
- /// <summary>
- /// Interface that provides methods for getting IRunner and IRuleLoader instances.
- /// It should be implemented for each plugin assembly.
- /// </summary>
- public interface IAnalyzer {
- IRunner GetRunner ();
- IRuleLoader GetRuleLoader ();
- }
-}
diff --git a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/CodeAnalysis/IRule.cs b/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/CodeAnalysis/IRule.cs
deleted file mode 100644
index a459f021d2..0000000000
--- a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/CodeAnalysis/IRule.cs
+++ /dev/null
@@ -1,11 +0,0 @@
-using System;
-
-namespace MonoDevelop.CodeAnalysis {
-
- public interface IRule {
- string Id { get; }
-
- string Name { get; }
- string Description { get; }
- }
-}
diff --git a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/CodeAnalysis/IRuleLoader.cs b/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/CodeAnalysis/IRuleLoader.cs
deleted file mode 100644
index 95b0424adf..0000000000
--- a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/CodeAnalysis/IRuleLoader.cs
+++ /dev/null
@@ -1,12 +0,0 @@
-using System;
-using System.Collections.Generic;
-
-namespace MonoDevelop.CodeAnalysis {
-
- public interface IRuleLoader {
- IEnumerable<IRule> GetRules ();
- IEnumerable<IRule> GetRules (Category category);
-
- IEnumerable<Category> GetCategories ();
- }
-}
diff --git a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/CodeAnalysis/IRunner.cs b/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/CodeAnalysis/IRunner.cs
deleted file mode 100644
index cb34ff5f68..0000000000
--- a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/CodeAnalysis/IRunner.cs
+++ /dev/null
@@ -1,12 +0,0 @@
-using System;
-using System.Collections.Generic;
-
-namespace MonoDevelop.CodeAnalysis {
-
- public interface IRunner {
- string Id { get; }
- string Name { get; }
-
- IEnumerable<IViolation> Run (string inspectedFile, IEnumerable<IRule> ruleSet);
- }
-}
diff --git a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/CodeAnalysis/IViolation.cs b/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/CodeAnalysis/IViolation.cs
deleted file mode 100644
index cb70d7d197..0000000000
--- a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/CodeAnalysis/IViolation.cs
+++ /dev/null
@@ -1,16 +0,0 @@
-using System;
-
-namespace MonoDevelop.CodeAnalysis {
-
- public interface IViolation {
- IRule Rule { get; }
-
- Severity Severity { get; }
- Confidence Confidence { get; }
- CodeLocation Location { get; }
-
- Uri Documentation { get; }
- string Problem { get; }
- string Solution { get; }
- }
-}
diff --git a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/CodeAnalysis/MainAnalyzer.cs b/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/CodeAnalysis/MainAnalyzer.cs
deleted file mode 100644
index c63437fe22..0000000000
--- a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/CodeAnalysis/MainAnalyzer.cs
+++ /dev/null
@@ -1,214 +0,0 @@
-using System;
-using System.IO;
-using System.Collections.Generic;
-using System.Collections.ObjectModel;
-using System.Reflection;
-using System.Threading;
-
-using MonoDevelop.Core;
-using MonoDevelop.Projects;
-
-using MonoDevelop.CodeAnalysis.Gui;
-
-namespace MonoDevelop.CodeAnalysis {
-
- /// <summary>
- /// Class that encapsulates independent analyzers (Gendarme, Smokey), loads them
- /// and performs analysis.
- /// </summary>
- static class MainAnalyzer {
- private static bool is_busy = false;
- private static DotNetProject current_project = null;
- private static List<IAnalyzer> analyzers;
-
- static void LoadAnalyzersIfNeccessary ()
- {
- if (analyzers == null)
- LoadAnalyzers ();
- }
-
- /// <summary>
- /// This method loads available analyzers from the same directory
- /// where current assembly is located (most probably, MD AddIns directory).
- /// Every analyzer plugin must have a file name like
- /// 'MonoDevelop.CodeAnalysis.*.dll' in order to be loaded.
- /// Also each plugin assembly must have a [AssemblyAnalyzer] attribute
- /// applied, pointing to the concrete class implementing IAnalyzer.
- ///
- /// example: MonoDevelop.CodeAnalysis.Gendarme.dll has
- /// [assembly:AssemblyAnalyzer (typeof (GendarmeAnalyzer))]
- /// </summary>
- static void LoadAnalyzers ()
- {
- analyzers = new List<IAnalyzer> ();
- string path = Path.GetDirectoryName (Assembly.GetExecutingAssembly ().Location);
-
- foreach (string dll in Directory.GetFiles (path, "MonoDevelop.CodeAnalysis.*.dll", SearchOption.TopDirectoryOnly)) {
- try {
- Assembly lib = Assembly.LoadFile (dll);
-
- IAnalyzer analyzer = CreateAnalyzer (lib);
-
- if (analyzer != null)
- analyzers.Add (analyzer);
- } catch {
- continue;
- }
- }
- }
-
- /// <summary>
- /// Creates and returns analyzer (if any) for a plugin assembly.
- /// </summary>
- static IAnalyzer CreateAnalyzer (Assembly library)
- {
- object [] attrs = library.GetCustomAttributes (typeof (AssemblyAnalyzerAttribute), false);
- if (attrs.Length == 0)
- return null;
-
- Type Type = ((AssemblyAnalyzerAttribute) attrs [0]).Type;
- return (IAnalyzer) Activator.CreateInstance (Type);
- }
-
- /// <value>
- /// Indicates if the analyzer is busy now and cannot perform another analysis.
- /// </value>
- public static bool IsBusy {
- get { return is_busy; }
- }
-
- /// <value>
- /// Points to the current project being analyzed (if any).
- /// </value>
- public static DotNetProject CurrentProject {
- get { return current_project; }
- }
-
- /// <summary>
- /// Indicates if analyzer can handle specified type of entry.
- /// </summary>
- public static bool CanAnalyze (object entry)
- {
- return entry is DotNetProject || entry is Solution;
- }
-
- /// <summary>
- /// Begins analysis operation (and starts new thread) for the specified entry.
- /// </summary>
- public static void BeginAnalysis (SolutionItem entry)
- {
- if (is_busy) // this should never be true (lock GUI, etc)
- throw new InvalidOperationException ();
-
- is_busy = true;
- Thread thread = new Thread (DoAnalyze);
- thread.IsBackground = true;
- thread.Start (entry);
- }
-
- /// <summary>
- /// Starts main analysis and reports the results.
- /// </summary>
- static void DoAnalyze (object param)
- {
- SolutionItem entry = param as SolutionItem;
-
- try {
- ResultsReporter.AnalysisStarted (entry.Name);
- AnalyzeCombineEntry (entry, 1.0);
- } catch (CodeAnalysisException ex) {
- ResultsReporter.ReportError (ex);
- } finally {
- is_busy = false;
- ResultsReporter.AnalysisFinished ();
- }
- }
-
- /// <summary>
- /// Runs analysis on a combine entry, if applicable.
- /// </summary>
- static void AnalyzeCombineEntry (object entry, double work)
- {
- if (entry is Solution)
- AnalyzeCombine ((Solution)entry, work);
-
- else if (entry is DotNetProject)
- AnalyzeProject ((DotNetProject)entry, work);
- }
-
- /// <summary>
- /// Enumerates each entry in a combine and runs analysis for it.
- /// </summary>
- static void AnalyzeCombine (Solution combine, double work)
- {
- List<SolutionItem> entriesToAnalyze = new List<SolutionItem> ();
- ReadOnlyCollection<SolutionItem> children = combine.GetAllSolutionItems ();
-
- foreach (object child in children)
- if (child != combine && CanAnalyze (child))
- entriesToAnalyze.Add (child as SolutionItem);
-
- double entryWork = work / entriesToAnalyze.Count;
-
- foreach (SolutionItem childEntry in entriesToAnalyze) {
- AnalyzeCombineEntry (childEntry, entryWork);
- }
- }
-
- /// <summary>
- /// Performs analysis on specified project and reports violations to GUI.
- /// </summary>
- static void AnalyzeProject (DotNetProject project, double work)
- {
- current_project = project;
- try {
- IEnumerable<IViolation> violations = RunAnalyzers (current_project, work);
- ResultsReporter.ReportViolations (violations);
- } catch (CodeAnalysisException) {
- throw;
- } catch (Exception ex) {
- throw new CodeAnalysisException (AddinCatalog.GetString ("Analysis failed because of unexpected error: {0}. Please, contact the plugin developers.", ex), ex);
- } finally {
- current_project = null;
- }
- }
-
- /// <summary>
- /// Determines which analyzers to run, which rule sets to use (TODO)
- /// and invokes the runners.
- /// </summary>
- static IEnumerable<IViolation> RunAnalyzers (DotNetProject project, double work)
- {
- string dll = project.GetOutputFileName (ConfigurationSelector.Default);
- if (!File.Exists (dll))
- yield break;
-
- LoadAnalyzersIfNeccessary ();
-
- if (analyzers.Count == 0)
- yield break;
-
- double analyzerWork = work / analyzers.Count;
-
- foreach (IAnalyzer analyzer in analyzers) {
- IEnumerable<IRule> ruleSet = GetRuleSet (project, analyzer.GetRuleLoader ());
- IRunner runner = analyzer.GetRunner ();
-
- IEnumerable<IViolation> violations = runner.Run (dll, ruleSet);
- foreach (IViolation vio in violations)
- yield return vio;
-
- ResultsReporter.WorkComplete += analyzerWork;
- }
- }
-
- /// <summary>
- /// Gets rule set for specified project (TODO: read project configuration).
- /// </summary>
- static IEnumerable<IRule> GetRuleSet (DotNetProject project, IRuleLoader ruleLoader)
- {
- // TODO: retrieve rule set from project configuration
- return ruleLoader.GetRules ();
- }
- }
-}
diff --git a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/CodeAnalysis/Severity.cs b/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/CodeAnalysis/Severity.cs
deleted file mode 100644
index f446bd0f7a..0000000000
--- a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/CodeAnalysis/Severity.cs
+++ /dev/null
@@ -1,11 +0,0 @@
-using System;
-
-namespace MonoDevelop.CodeAnalysis {
-
- public enum Severity {
- Critical,
- High,
- Medium,
- Low
- }
-}
diff --git a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/Commands/AnalyzeHandler.cs b/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/Commands/AnalyzeHandler.cs
deleted file mode 100644
index 83533fd693..0000000000
--- a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/Commands/AnalyzeHandler.cs
+++ /dev/null
@@ -1,37 +0,0 @@
-using System;
-
-using MonoDevelop.Components.Commands;
-using MonoDevelop.Core;
-using MonoDevelop.Ide;
-using MonoDevelop.Projects;
-
-namespace MonoDevelop.CodeAnalysis {
-
- /// <summary>
- /// Class that handles CodeAnalysisCommands.
- /// </summary>
- internal class AnalyzeHandler: CommandHandler {
-
- protected override void Run ()
- {
- SolutionItem entry = IdeApp.ProjectOperations.CurrentSelectedItem as SolutionItem;
-
- if (entry != null && MainAnalyzer.CanAnalyze (entry))
- MainAnalyzer.BeginAnalysis (entry);
- }
-
- protected override void Update (CommandInfo info)
- {
- SolutionItem entry = IdeApp.ProjectOperations.CurrentSelectedItem as SolutionItem;
-
- if (entry == null) {
- info.Enabled = info.Visible = false;
- return;
- }
-
- info.Enabled = !(MainAnalyzer.IsBusy);
- info.Visible = MainAnalyzer.CanAnalyze (entry);
- info.Text = AddinCatalog.GetString ("Analyze {0}", entry.Name);
- }
- }
-}
diff --git a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/Commands/ChangeLog b/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/Commands/ChangeLog
deleted file mode 100644
index b8261059b8..0000000000
--- a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/Commands/ChangeLog
+++ /dev/null
@@ -1,5 +0,0 @@
-2009-02-23 Lluis Sanchez Gual <lluis@novell.com>
-
- * CodeAnalysisCommands.cs: Track merge of the project pad
- context menu.
-
diff --git a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/Commands/CodeAnalysisCommands.cs b/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/Commands/CodeAnalysisCommands.cs
deleted file mode 100644
index 2117126f94..0000000000
--- a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/Commands/CodeAnalysisCommands.cs
+++ /dev/null
@@ -1,8 +0,0 @@
-using System;
-
-namespace MonoDevelop.CodeAnalysis {
-
- public enum CodeAnalysisCommands {
- Analyze,
- }
-}
diff --git a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/Extensions/RuleLoaderExtension.cs b/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/Extensions/RuleLoaderExtension.cs
deleted file mode 100644
index a8b7c5eccd..0000000000
--- a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/Extensions/RuleLoaderExtension.cs
+++ /dev/null
@@ -1,11 +0,0 @@
-using System;
-
-namespace MonoDevelop.CodeAnalysis {
-
- public class RuleLoaderExtension { // TODO
-
- public RuleLoaderExtension ()
- {
- }
- }
-}
diff --git a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/Gui/ProjectOptionsPanel.cs b/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/Gui/ProjectOptionsPanel.cs
deleted file mode 100644
index e69de29bb2..0000000000
--- a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/Gui/ProjectOptionsPanel.cs
+++ /dev/null
diff --git a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/Gui/ProjectOptionsPanelWidget.cs b/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/Gui/ProjectOptionsPanelWidget.cs
deleted file mode 100644
index 2bb3b958df..0000000000
--- a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/Gui/ProjectOptionsPanelWidget.cs
+++ /dev/null
@@ -1,14 +0,0 @@
-
-using System;
-
-namespace MonoDevelop.CodeAnalysis
-{
- public partial class ProjectOptionsPanelWidget : Gtk.Bin
- {
-
- public ProjectOptionsPanelWidget()
- {
- this.Build();
- }
- }
-}
diff --git a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/Gui/ResultsReporter.cs b/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/Gui/ResultsReporter.cs
deleted file mode 100644
index 471726bb9b..0000000000
--- a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/Gui/ResultsReporter.cs
+++ /dev/null
@@ -1,98 +0,0 @@
-using System;
-using System.Collections.Generic;
-
-using MonoDevelop.Core;
-using MonoDevelop.Ide;
-using MonoDevelop.Ide.Tasks;
-
-namespace MonoDevelop.CodeAnalysis.Gui {
-
- /// <summary>
- /// Class that interacts with MonoDevelop GUI.
- /// </summary>
- static class ResultsReporter {
- private static double work_complete = 0.0;
-
- /// <value>
- /// Status bar complete work amount (0 to 1).
- /// </value>
- public static double WorkComplete {
- get { return work_complete; }
- set {
- work_complete = value;
- DispatchService.GuiDispatch (delegate {
- IdeApp.Workbench.StatusBar.SetProgressFraction (value);
- });
- }
- }
-
- /// <summary>
- /// Informs the GUI that analysis has started.
- /// </summary>
- public static void AnalysisStarted (string entryName)
- {
- DispatchService.GuiDispatch (delegate {
- ResetProgressBar ();
- IdeApp.Workbench.StatusBar.BeginProgress (AddinCatalog.GetString ("Analyzing {0}...", entryName));
- TaskService.Errors.Clear ();
- });
- }
-
- /// <summary>
- /// Informs the GUI that analysis has finished.
- /// </summary>
- public static void AnalysisFinished ()
- {
- DispatchService.GuiDispatch (delegate {
- IdeApp.Workbench.StatusBar.EndProgress ();
- IdeApp.Workbench.StatusBar.ShowMessage (AddinCatalog.GetString ("Analysis has finished."));
- ResetProgressBar ();
- });
- }
-
- /// <summary>
- /// Reports an error to GUI.
- /// </summary>
- public static void ReportError (CodeAnalysisException ex)
- {
- DispatchService.GuiDispatch (delegate {
- MessageService.ShowError (ex.Message, ex.StackTrace);
- });
- }
-
- /// <summary>
- /// Displays violation list in GUI.
- /// </summary>
- public static void ReportViolations (IEnumerable<IViolation> violations)
- {
- TaskService.ShowErrors ();
-
- foreach (IViolation v in violations)
- AddViolation (v);
- }
-
- /// <summary>
- /// Adds a violation to GUI (currently, Task View)
- /// </summary>
- private static void AddViolation (IViolation v)
- {
- // TODO: replace Task View with our own GUI
- TaskSeverity type = TaskSeverity.Warning;
-
- if ((v.Severity == Severity.Critical || v.Severity == Severity.High)
- && (v.Confidence == Confidence.Total || v.Confidence == Confidence.High))
- type = TaskSeverity.Error;
-
- string text = v.Problem + Environment.NewLine + v.Solution;
-
- // TODO: handle Location
- Task task = new Task (v.Location.File, text, v.Location.Column, v.Location.Line, type, TaskPriority.Normal, MainAnalyzer.CurrentProject);
- TaskService.Errors.Add (task);
- }
-
- static void ResetProgressBar ()
- {
- WorkComplete = 0.0;
- }
- }
-}
diff --git a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/Gui/ViolationView.cs b/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/Gui/ViolationView.cs
deleted file mode 100644
index e69de29bb2..0000000000
--- a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/Gui/ViolationView.cs
+++ /dev/null
diff --git a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/Gui/ViolationWidget.cs b/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/Gui/ViolationWidget.cs
deleted file mode 100644
index 487b9d8503..0000000000
--- a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/Gui/ViolationWidget.cs
+++ /dev/null
@@ -1,15 +0,0 @@
-
-using System;
-
-namespace MonoDevelop.CodeAnalysis
-{
- [System.ComponentModel.Category("MonoDevelop.CodeAnalysis")]
- [System.ComponentModel.ToolboxItem(true)]
- public partial class ViolationWidget : Gtk.Bin
- {
- public ViolationWidget()
- {
- this.Build();
- }
- }
-}
diff --git a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/Makefile.am b/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/Makefile.am
deleted file mode 100644
index 4a9954db0c..0000000000
--- a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/Makefile.am
+++ /dev/null
@@ -1,61 +0,0 @@
-ADDIN_BUILD = $(top_builddir)/build
-ASSEMBLY = $(ADDIN_BUILD)/MonoDevelop.CodeAnalysis.dll
-REFS = \
- $(GLIB_SHARP_LIBS) \
- $(GTK_SHARP_LIBS) \
- $(MONO_ADDINS_LIBS) \
- $(MONODEVELOP_LIBS) \
- -r:Mono.Posix \
- -r:System \
- -r:System.Xml
-
-FILES = \
- AddinCatalog.cs \
- Argument.cs \
- CodeAnalysis/AssemblyAnalyzerAttribute.cs \
- CodeAnalysis/Category.cs \
- CodeAnalysis/CodeAnalysisException.cs \
- CodeAnalysis/CodeLocation.cs \
- CodeAnalysis/Confidence.cs \
- CodeAnalysis/DictionaryBasedRuleLoader.cs \
- CodeAnalysis/IAnalyzer.cs \
- CodeAnalysis/IRule.cs \
- CodeAnalysis/IRuleLoader.cs \
- CodeAnalysis/IRunner.cs \
- CodeAnalysis/IViolation.cs \
- CodeAnalysis/MainAnalyzer.cs \
- CodeAnalysis/Severity.cs \
- Commands/AnalyzeHandler.cs \
- Commands/CodeAnalysisCommands.cs \
- Extensions/RuleLoaderExtension.cs \
- gtk-gui/generated.cs \
- gtk-gui/MonoDevelop.CodeAnalysis.ProjectOptionsPanelWidget.cs \
- gtk-gui/MonoDevelop.CodeAnalysis.ViolationWidget.cs \
- Gui/ProjectOptionsPanel.cs \
- Gui/ProjectOptionsPanelWidget.cs \
- Gui/ResultsReporter.cs \
- Gui/ViolationView.cs \
- Gui/ViolationWidget.cs \
- Project/CodeAnalysisData.cs
-
-RES = \
- gtk-gui/gui.stetic \
- gtk-gui/objects.xml \
- MonoDevelop.CodeAnalysis.addin.xml
-
-all: $(ASSEMBLY)
-
-LOCAL_PKGCONFIG=PKG_CONFIG_PATH=../../../local-config:$$PKG_CONFIG_PATH
-
-$(ASSEMBLY): $(build_sources) $(build_resources)
- mkdir -p $(ADDIN_BUILD)
- $(LOCAL_PKGCONFIG) $(CSC) $(CSC_FLAGS) $(REFS) $(build_resources:%=/resource:%) $(build_sources) -out:$@ -target:library
-
-
-assemblydir = $(MD_ADDIN_DIR)/MonoDevelop.CodeAnalysis
-assembly_DATA = $(ASSEMBLY)
-
-CLEANFILES = $(ASSEMBLY) $(ASSEMBLY).mdb
-EXTRA_DIST = $(FILES) $(RES)
-
-include $(top_srcdir)/Makefile.include
diff --git a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.addin.xml b/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.addin.xml
deleted file mode 100644
index 21107cddb4..0000000000
--- a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.addin.xml
+++ /dev/null
@@ -1,32 +0,0 @@
-<Addin id = "CodeAnalysis"
- namespace = "MonoDevelop"
- name = "MonoDevelop CodeAnalysis addin"
- author = "Ben Motmans"
- copyright = "MIT/X11"
- url = "http://code.google.com/p/md-codeanalysis"
- description = "MonoDevelop CodeAnalysis addin"
- category = "Code Analysis"
- version = "4.2.3">
-
- <Dependencies>
- <Addin id="Core" version="4.2.3"/>
- <Addin id="Ide" version="4.2.3"/>
- </Dependencies>
-
- <Extension path="/MonoDevelop/Ide/Commands">
- <Command id="MonoDevelop.CodeAnalysis.CodeAnalysisCommands.Analyze" _label="Analyze"
- defaultHandler="MonoDevelop.CodeAnalysis.AnalyzeHandler"/>
- </Extension>
-
- <Extension path="/MonoDevelop/Ide/ContextMenu/ProjectPad/Tools">
- <Condition id="ItemType" value="Project|Solution">
- <CommandItem id="MonoDevelop.CodeAnalysis.CodeAnalysisCommands.Analyze" />
- </Condition>
- </Extension>
-
- <Runtime>
- <Import assembly="MonoDevelop.CodeAnalysis.dll"/>
- </Runtime>
-
- <Localizer type="Gettext" catalog="monodevelop-codeanalysis" />
-</Addin>
diff --git a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.csproj b/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.csproj
deleted file mode 100644
index fcc46707a7..0000000000
--- a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.csproj
+++ /dev/null
@@ -1,119 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <ProductVersion>9.0.21022</ProductVersion>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{07C24E54-66FF-42F1-B1A1-628D389AAFDC}</ProjectGuid>
- <OutputType>Library</OutputType>
- <AssemblyName>MonoDevelop.CodeAnalysis</AssemblyName>
- <RootNamespace>MonoDevelop.CodeAnalysis</RootNamespace>
- <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- <DebugSymbols>true</DebugSymbols>
- <DebugType>full</DebugType>
- <Optimize>true</Optimize>
- <OutputPath>..\build</OutputPath>
- <DefineConstants>DEBUG</DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- <CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
- <Execution>
- <Execution clr-version="Net_2_0" />
- </Execution>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- <DebugType>none</DebugType>
- <Optimize>true</Optimize>
- <OutputPath>..\build</OutputPath>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- <CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
- <Execution>
- <Execution clr-version="Net_2_0" />
- </Execution>
- <AssemblyOriginatorKeyFile>.</AssemblyOriginatorKeyFile>
- </PropertyGroup>
- <ItemGroup>
- <Reference Include="NRefactory, Version=0.0.0.0, Culture=neutral">
- <Package>monodevelop</Package>
- </Reference>
- <Reference Include="Mono.Posix" />
- <Reference Include="System" />
- <Reference Include="System.Xml" />
- <Reference Include="Mono.Addins, Version=0.4.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756" />
- <Reference Include="Mono.Cecil, Version=0.6.8.8607, Culture=neutral">
- <Package>monodevelop</Package>
- </Reference>
- <Reference Include="Mono.TextEditor, Version=1.0.0.0, Culture=neutral">
- <Package>monodevelop</Package>
- </Reference>
- <Reference Include="MonoDevelop.Core, Version=1.9.2.0, Culture=neutral">
- <Package>monodevelop</Package>
- </Reference>
- <Reference Include="MonoDevelop.Ide, Version=1.9.2.0, Culture=neutral">
- <Package>monodevelop</Package>
- </Reference>
- <Reference Include="glib-sharp, Version=2.10.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
- <Reference Include="pango-sharp, Version=2.10.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
- <Reference Include="atk-sharp, Version=2.10.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
- <Reference Include="gdk-sharp, Version=2.10.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
- <Reference Include="gtk-sharp, Version=2.10.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
- <Reference Include="Mono.Debugging, Version=0.0.0.0, Culture=neutral, PublicKeyToken=5e9ce85b0923c84f">
- <Package>monodevelop</Package>
- </Reference>
- </ItemGroup>
- <ItemGroup>
- <Compile Include="AddinCatalog.cs" />
- <Compile Include="gtk-gui\generated.cs" />
- <Compile Include="Gui\ProjectOptionsPanel.cs" />
- <Compile Include="Gui\ProjectOptionsPanelWidget.cs" />
- <Compile Include="gtk-gui\MonoDevelop.CodeAnalysis.ProjectOptionsPanelWidget.cs" />
- <Compile Include="Gui\ViolationWidget.cs" />
- <Compile Include="Gui\ViolationView.cs" />
- <Compile Include="Project\CodeAnalysisData.cs" />
- <Compile Include="CodeAnalysis\IRuleLoader.cs" />
- <Compile Include="Extensions\RuleLoaderExtension.cs" />
- <Compile Include="CodeAnalysis\IRule.cs" />
- <Compile Include="CodeAnalysis\IViolation.cs" />
- <Compile Include="CodeAnalysis\IRunner.cs" />
- <Compile Include="CodeAnalysis\CodeLocation.cs" />
- <Compile Include="Commands\CodeAnalysisCommands.cs" />
- <Compile Include="CodeAnalysis\Severity.cs" />
- <Compile Include="CodeAnalysis\Confidence.cs" />
- <Compile Include="gtk-gui\MonoDevelop.CodeAnalysis.ViolationWidget.cs" />
- <Compile Include="CodeAnalysis\Category.cs" />
- <Compile Include="CodeAnalysis\DictionaryBasedRuleLoader.cs" />
- <Compile Include="Argument.cs" />
- <Compile Include="Commands\AnalyzeHandler.cs" />
- <Compile Include="CodeAnalysis\MainAnalyzer.cs" />
- <Compile Include="CodeAnalysis\AssemblyAnalyzerAttribute.cs" />
- <Compile Include="CodeAnalysis\IAnalyzer.cs" />
- <Compile Include="Gui\ResultsReporter.cs" />
- <Compile Include="CodeAnalysis\CodeAnalysisException.cs" />
- </ItemGroup>
- <ItemGroup>
- <EmbeddedResource Include="MonoDevelop.CodeAnalysis.addin.xml">
- <LogicalName>MonoDevelop.CodeAnalysis.addin.xml</LogicalName>
- </EmbeddedResource>
- <EmbeddedResource Include="gtk-gui\gui.stetic">
- <LogicalName>gui.stetic</LogicalName>
- </EmbeddedResource>
- <EmbeddedResource Include="gtk-gui\objects.xml">
- <LogicalName>objects.xml</LogicalName>
- </EmbeddedResource>
- </ItemGroup>
- <ItemGroup>
- <None Include="ChangeLog" />
- </ItemGroup>
- <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
- <ProjectExtensions>
- <MonoDevelop>
- <Properties>
- <GtkDesignInfo gettextClass="AddinCatalog" />
- </Properties>
- </MonoDevelop>
- </ProjectExtensions>
-</Project> \ No newline at end of file
diff --git a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/Project/CodeAnalysisData.cs b/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/Project/CodeAnalysisData.cs
deleted file mode 100644
index e69de29bb2..0000000000
--- a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/Project/CodeAnalysisData.cs
+++ /dev/null
diff --git a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/gtk-gui/MonoDevelop.CodeAnalysis.ProjectOptionsPanelWidget.cs b/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/gtk-gui/MonoDevelop.CodeAnalysis.ProjectOptionsPanelWidget.cs
deleted file mode 100644
index 4b44118534..0000000000
--- a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/gtk-gui/MonoDevelop.CodeAnalysis.ProjectOptionsPanelWidget.cs
+++ /dev/null
@@ -1,19 +0,0 @@
-
-// This file has been generated by the GUI designer. Do not modify.
-namespace MonoDevelop.CodeAnalysis
-{
- public partial class ProjectOptionsPanelWidget
- {
- protected virtual void Build ()
- {
- global::Stetic.Gui.Initialize (this);
- // Widget MonoDevelop.CodeAnalysis.ProjectOptionsPanelWidget
- global::Stetic.BinContainer.Attach (this);
- this.Name = "MonoDevelop.CodeAnalysis.ProjectOptionsPanelWidget";
- if ((this.Child != null)) {
- this.Child.ShowAll ();
- }
- this.Show ();
- }
- }
-}
diff --git a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/gtk-gui/MonoDevelop.CodeAnalysis.ViolationWidget.cs b/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/gtk-gui/MonoDevelop.CodeAnalysis.ViolationWidget.cs
deleted file mode 100644
index eb62688335..0000000000
--- a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/gtk-gui/MonoDevelop.CodeAnalysis.ViolationWidget.cs
+++ /dev/null
@@ -1,19 +0,0 @@
-
-// This file has been generated by the GUI designer. Do not modify.
-namespace MonoDevelop.CodeAnalysis
-{
- public partial class ViolationWidget
- {
- protected virtual void Build ()
- {
- global::Stetic.Gui.Initialize (this);
- // Widget MonoDevelop.CodeAnalysis.ViolationWidget
- global::Stetic.BinContainer.Attach (this);
- this.Name = "MonoDevelop.CodeAnalysis.ViolationWidget";
- if ((this.Child != null)) {
- this.Child.ShowAll ();
- }
- this.Show ();
- }
- }
-}
diff --git a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/gtk-gui/generated.cs b/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/gtk-gui/generated.cs
deleted file mode 100644
index aa96390c4a..0000000000
--- a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/gtk-gui/generated.cs
+++ /dev/null
@@ -1,82 +0,0 @@
-
-// This file has been generated by the GUI designer. Do not modify.
-namespace Stetic
-{
- internal class Gui
- {
- private static bool initialized;
-
- static internal void Initialize (Gtk.Widget iconRenderer)
- {
- if ((Stetic.Gui.initialized == false)) {
- Stetic.Gui.initialized = true;
- }
- }
- }
-
- internal class BinContainer
- {
- private Gtk.Widget child;
-
- private Gtk.UIManager uimanager;
-
- public static BinContainer Attach (Gtk.Bin bin)
- {
- BinContainer bc = new BinContainer ();
- bin.SizeRequested += new Gtk.SizeRequestedHandler (bc.OnSizeRequested);
- bin.SizeAllocated += new Gtk.SizeAllocatedHandler (bc.OnSizeAllocated);
- bin.Added += new Gtk.AddedHandler (bc.OnAdded);
- return bc;
- }
-
- private void OnSizeRequested (object sender, Gtk.SizeRequestedArgs args)
- {
- if ((this.child != null)) {
- args.Requisition = this.child.SizeRequest ();
- }
- }
-
- private void OnSizeAllocated (object sender, Gtk.SizeAllocatedArgs args)
- {
- if ((this.child != null)) {
- this.child.Allocation = args.Allocation;
- }
- }
-
- private void OnAdded (object sender, Gtk.AddedArgs args)
- {
- this.child = args.Widget;
- }
-
- public void SetUiManager (Gtk.UIManager uim)
- {
- this.uimanager = uim;
- this.child.Realized += new System.EventHandler (this.OnRealized);
- }
-
- private void OnRealized (object sender, System.EventArgs args)
- {
- if ((this.uimanager != null)) {
- Gtk.Widget w;
- w = this.child.Toplevel;
- if (((w != null) && typeof(Gtk.Window).IsInstanceOfType (w))) {
- ((Gtk.Window)(w)).AddAccelGroup (this.uimanager.AccelGroup);
- this.uimanager = null;
- }
- }
- }
- }
-
- internal class ActionGroups
- {
- public static Gtk.ActionGroup GetActionGroup (System.Type type)
- {
- return Stetic.ActionGroups.GetActionGroup (type.FullName);
- }
-
- public static Gtk.ActionGroup GetActionGroup (string name)
- {
- return null;
- }
- }
-}
diff --git a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/gtk-gui/gui.stetic b/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/gtk-gui/gui.stetic
deleted file mode 100644
index 7402f21c3f..0000000000
--- a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/gtk-gui/gui.stetic
+++ /dev/null
@@ -1,27 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<stetic-interface>
- <configuration>
- <images-root-path>..</images-root-path>
- <target-gtk-version>2.10</target-gtk-version>
- </configuration>
- <import>
- <widget-library name="Mono.TextEditor, Version=1.0.0.0, Culture=neutral" />
- <widget-library name="MonoDevelop.Core.Gui, Version=2.1.0.0, Culture=neutral" />
- <widget-library name="MonoDevelop.Components, Version=2.1.0.0, Culture=neutral" />
- <widget-library name="MonoDevelop.Ide, Version=2.1.0.0, Culture=neutral" />
- <widget-library name="MonoDevelop.Projects.Gui, Version=2.1.0.0, Culture=neutral" />
- <widget-library name="../../build/MonoDevelop.CodeAnalysis.dll" internal="true" />
- </import>
- <widget class="Gtk.Bin" id="MonoDevelop.CodeAnalysis.ProjectOptionsPanelWidget" design-size="300 300">
- <property name="MemberName" />
- <child>
- <placeholder />
- </child>
- </widget>
- <widget class="Gtk.Bin" id="MonoDevelop.CodeAnalysis.ViolationWidget" design-size="300 300">
- <property name="MemberName" />
- <child>
- <placeholder />
- </child>
- </widget>
-</stetic-interface> \ No newline at end of file
diff --git a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/gtk-gui/objects.xml b/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/gtk-gui/objects.xml
deleted file mode 100644
index 0eb041193b..0000000000
--- a/extras/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis/gtk-gui/objects.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-<objects attr-sync="on">
- <object type="MonoDevelop.CodeAnalysis.ViolationWidget" palette-category="MonoDevelop.CodeAnalysis" allow-children="false" base-type="Gtk.Bin">
- <itemgroups />
- <signals />
- </object>
-</objects> \ No newline at end of file
diff --git a/extras/MonoDevelop.CodeAnalysis/NEWS b/extras/MonoDevelop.CodeAnalysis/NEWS
deleted file mode 100644
index e69de29bb2..0000000000
--- a/extras/MonoDevelop.CodeAnalysis/NEWS
+++ /dev/null
diff --git a/extras/MonoDevelop.CodeAnalysis/README b/extras/MonoDevelop.CodeAnalysis/README
deleted file mode 100644
index e69de29bb2..0000000000
--- a/extras/MonoDevelop.CodeAnalysis/README
+++ /dev/null
diff --git a/extras/MonoDevelop.CodeAnalysis/autogen.sh b/extras/MonoDevelop.CodeAnalysis/autogen.sh
deleted file mode 100755
index 4f80c5fbf3..0000000000
--- a/extras/MonoDevelop.CodeAnalysis/autogen.sh
+++ /dev/null
@@ -1,83 +0,0 @@
-#! /bin/sh
-
-PROJECT=MonoDevelop.CodeAnalysis
-FILE=
-CONFIGURE=configure.ac
-
-: ${AUTOCONF=autoconf}
-: ${AUTOHEADER=autoheader}
-: ${AUTOMAKE=automake}
-: ${LIBTOOLIZE=libtoolize}
-: ${ACLOCAL=aclocal}
-: ${LIBTOOL=libtool}
-
-srcdir=`dirname $0`
-test -z "$srcdir" && srcdir=.
-
-ORIGDIR=`pwd`
-cd $srcdir
-TEST_TYPE=-f
-aclocalinclude="-I . $ACLOCAL_FLAGS"
-
-DIE=0
-
-($AUTOCONF --version) < /dev/null > /dev/null 2>&1 || {
- echo
- echo "You must have autoconf installed to compile $PROJECT."
- echo "Download the appropriate package for your distribution,"
- echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
- DIE=1
-}
-
-($AUTOMAKE --version) < /dev/null > /dev/null 2>&1 || {
- echo
- echo "You must have automake installed to compile $PROJECT."
- echo "Get ftp://sourceware.cygnus.com/pub/automake/automake-1.4.tar.gz"
- echo "(or a newer version if it is available)"
- DIE=1
-}
-
-(grep "^AM_PROG_LIBTOOL" $CONFIGURE >/dev/null) && {
- ($LIBTOOL --version) < /dev/null > /dev/null 2>&1 || {
- echo
- echo "**Error**: You must have \`libtool' installed to compile $PROJECT."
- echo "Get ftp://ftp.gnu.org/pub/gnu/libtool-1.2d.tar.gz"
- echo "(or a newer version if it is available)"
- DIE=1
- }
-}
-
-if test "$DIE" -eq 1; then
- exit 1
-fi
-
-#test $TEST_TYPE $FILE || {
-# echo "You must run this script in the top-level $PROJECT directory"
-# exit 1
-#}
-
-if test -z "$*"; then
- echo "I am going to run ./configure with no arguments - if you wish "
- echo "to pass any to it, please specify them on the $0 command line."
-fi
-
-case $CC in
-*xlc | *xlc\ * | *lcc | *lcc\ *) am_opt=--include-deps;;
-esac
-
-(grep "^AM_PROG_LIBTOOL" $CONFIGURE >/dev/null) && {
- echo "Running $LIBTOOLIZE ..."
- $LIBTOOLIZE --force --copy
-}
-
-echo "Running $ACLOCAL $aclocalinclude ..."
-$ACLOCAL $aclocalinclude
-
-echo "Running $AUTOMAKE --add-missing --gnu -Wno-portability -Wno-syntax $am_opt ..."
-$AUTOMAKE --add-missing --add-missing --gnu -Wno-portability -Wno-syntax $am_opt
-
-echo "Running $AUTOCONF ..."
-$AUTOCONF
-
-echo Running $srcdir/configure $conf_flags "$@" ...
-$srcdir/configure --enable-maintainer-mode $conf_flags "$@" \
diff --git a/extras/MonoDevelop.CodeAnalysis/configure.ac b/extras/MonoDevelop.CodeAnalysis/configure.ac
deleted file mode 100644
index 804d710865..0000000000
--- a/extras/MonoDevelop.CodeAnalysis/configure.ac
+++ /dev/null
@@ -1,104 +0,0 @@
-AC_INIT([monodevelop-codeanalysis], 0.2, [monodevelop-list@lists.ximian.com])
-AC_PREREQ(2.53)
-AM_INIT_AUTOMAKE([1.9 tar-ustar])
-AM_MAINTAINER_MODE
-
-ASSEMBLY_VERSION=0.1.0.0
-
-AC_PATH_PROG(MONO, mono)
-AC_PATH_PROG(MCS, gmcs)
-
-if test "x$MONO" = "x" ; then
- AC_MSG_ERROR([Can't find "mono" in your PATH])
-fi
-
-if test "x$MCS" = "x" ; then
- AC_MSG_ERROR([Can't find "gmcs" in your PATH])
-fi
-AC_SUBST(PATH)
-AC_SUBST(LD_LIBRARY_PATH)
-
-MONO_REQUIRED_VERSION=2.4
-PKG_CHECK_MODULES(UNMANAGED_DEPENDENCIES_MONO,mono >= $MONO_REQUIRED_VERSION, has_mono=true, has_mono=false)
-
-if test "x$has_mono" = "xfalse"; then
- AC_MSG_ERROR([Please install mono version $MONO_REQUIRED_VERSION or later to install MonoDevelop.
-Please see http://www.mono-project.org/ to download latest mono sources or packages])
-fi
-
-if test "x$has_mono" = "xtrue"; then
- if test `uname -s` = "Darwin"; then
- AC_PATH_PROG(RUNTIME, mono, no)
- AC_PATH_PROG(CSC, gmcs, no)
- LIB_PREFIX=
- LIB_SUFFIX=.dylib
- else
- AC_PATH_PROG(RUNTIME, mono, no)
- AC_PATH_PROG(CSC, gmcs, no)
- LIB_PREFIX=.so
- LIB_SUFFIX=
- fi
-fi
-
-# Find msgfmt and msgmerge for translations
-AC_PATH_PROG(MSGFMT, msgfmt, no)
-if test "x$MSGFMT" = "xno"; then
- AC_MSG_ERROR([You need to install msgfmt from intltool])
-fi
-AC_PATH_PROG(MSGMERGE, msgmerge, no)
-if test "x$MSGMERGE" = "xno"; then
- AC_MSG_ERROR([You need to install msgmerge from intltool])
-fi
-
-dnl hard dependencies
-MONOADDINS_REQUIRED_VERSION=0.4
-MONODEVELOP_REQUIRED_VERSION=1.9.1
-GTKSHARP_REQUIRED_VERSION=2.12.2
-CECIL_VERSION=0.5
-GENDARME_VERSION=1.9
-
-PKG_CHECK_MODULES(MONO_ADDINS, mono-addins >= $MONOADDINS_REQUIRED_VERSION)
-AC_SUBST(MONO_ADDINS_LIBS)
-PKG_CHECK_MODULES(MONO_ADDINS_SETUP, mono-addins-setup >= $MONOADDINS_REQUIRED_VERSION)
-AC_SUBST(MONO_ADDINS_SETUP_LIBS)
-PKG_CHECK_MODULES(MONO_ADDINS_GUI, mono-addins-gui >= $MONOADDINS_REQUIRED_VERSION)
-AC_SUBST(MONO_ADDINS_GUI_LIBS)
-PKG_CHECK_MODULES(GLIB_SHARP, glib-sharp-2.0 >= $GTKSHARP_REQUIRED_VERSION)
-AC_SUBST(GLIB_SHARP_LIBS)
-PKG_CHECK_MODULES(GTK_SHARP, gtk-sharp-2.0 >= $GTKSHARP_REQUIRED_VERSION)
-AC_SUBST(GTK_SHARP_LIBS)
-PKG_CHECK_MODULES(MONODEVELOP, monodevelop >= $MONODEVELOP_REQUIRED_VERSION)
-AC_SUBST(MONODEVELOP_LIBS)
-
-gtksharp_prefix="`$PKG_CONFIG --variable=prefix gtk-sharp-2.0`"
-AC_SUBST(gtksharp_prefix)
-
-CSC_FLAGS="-debug -codepage:utf8"
-
-AC_SUBST(LIB_SUFFIX)
-AC_SUBST(LIB_PREFIX)
-AC_SUBST(ASSEMBLY_VERSION)
-AC_SUBST(CSC_FLAGS)
-
-MD_DIR='$(prefix)/lib/monodevelop'
-MD_ASSEMBLY_DIR="$MD_DIR/bin"
-MD_ADDIN_DIR="$MD_DIR/AddIns"
-
-AC_SUBST(MD_ASSEMBLY_DIR)
-AC_SUBST(MD_ADDIN_DIR)
-AC_SUBST(MD_DIR)
-
-AC_OUTPUT([
-Makefile
-monodevelop-codeanalysis.pc
-MonoDevelop.CodeAnalysis/Makefile
-MonoDevelop.CodeAnalysis.Gendarme/Makefile
-MonoDevelop.CodeAnalysis.Smokey/Makefile
-])
-
-echo ""
-echo "Configuration summary"
-echo ""
-echo " * Installation prefix = $prefix"
-echo " * C# compiler = $CSC"
-echo ""
diff --git a/extras/MonoDevelop.CodeAnalysis/dlls/Gendarme.Framework.dll b/extras/MonoDevelop.CodeAnalysis/dlls/Gendarme.Framework.dll
deleted file mode 100755
index 809a270d2b..0000000000
--- a/extras/MonoDevelop.CodeAnalysis/dlls/Gendarme.Framework.dll
+++ /dev/null
Binary files differ
diff --git a/extras/MonoDevelop.CodeAnalysis/dlls/Gendarme.Framework.license.txt b/extras/MonoDevelop.CodeAnalysis/dlls/Gendarme.Framework.license.txt
deleted file mode 100644
index 34a52c9e0a..0000000000
--- a/extras/MonoDevelop.CodeAnalysis/dlls/Gendarme.Framework.license.txt
+++ /dev/null
@@ -1,21 +0,0 @@
-Copyright (c) 2005-2008 Novell, Inc and the individuals listed on the
-ChangeLog entries.
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/extras/MonoDevelop.CodeAnalysis/dlls/Gendarme.Rules.BadPractice.dll b/extras/MonoDevelop.CodeAnalysis/dlls/Gendarme.Rules.BadPractice.dll
deleted file mode 100755
index a5256f856f..0000000000
--- a/extras/MonoDevelop.CodeAnalysis/dlls/Gendarme.Rules.BadPractice.dll
+++ /dev/null
Binary files differ
diff --git a/extras/MonoDevelop.CodeAnalysis/dlls/Gendarme.Rules.Concurrency.dll b/extras/MonoDevelop.CodeAnalysis/dlls/Gendarme.Rules.Concurrency.dll
deleted file mode 100755
index e428da9efb..0000000000
--- a/extras/MonoDevelop.CodeAnalysis/dlls/Gendarme.Rules.Concurrency.dll
+++ /dev/null
Binary files differ
diff --git a/extras/MonoDevelop.CodeAnalysis/dlls/Gendarme.Rules.Correctness.dll b/extras/MonoDevelop.CodeAnalysis/dlls/Gendarme.Rules.Correctness.dll
deleted file mode 100755
index 07918927e1..0000000000
--- a/extras/MonoDevelop.CodeAnalysis/dlls/Gendarme.Rules.Correctness.dll
+++ /dev/null
Binary files differ
diff --git a/extras/MonoDevelop.CodeAnalysis/dlls/Gendarme.Rules.Design.dll b/extras/MonoDevelop.CodeAnalysis/dlls/Gendarme.Rules.Design.dll
deleted file mode 100755
index 9e89d1fc0d..0000000000
--- a/extras/MonoDevelop.CodeAnalysis/dlls/Gendarme.Rules.Design.dll
+++ /dev/null
Binary files differ
diff --git a/extras/MonoDevelop.CodeAnalysis/dlls/Gendarme.Rules.Exceptions.dll b/extras/MonoDevelop.CodeAnalysis/dlls/Gendarme.Rules.Exceptions.dll
deleted file mode 100755
index f54dc3c798..0000000000
--- a/extras/MonoDevelop.CodeAnalysis/dlls/Gendarme.Rules.Exceptions.dll
+++ /dev/null
Binary files differ
diff --git a/extras/MonoDevelop.CodeAnalysis/dlls/Gendarme.Rules.Interoperability.dll b/extras/MonoDevelop.CodeAnalysis/dlls/Gendarme.Rules.Interoperability.dll
deleted file mode 100755
index 232273aac1..0000000000
--- a/extras/MonoDevelop.CodeAnalysis/dlls/Gendarme.Rules.Interoperability.dll
+++ /dev/null
Binary files differ
diff --git a/extras/MonoDevelop.CodeAnalysis/dlls/Gendarme.Rules.Maintainability.dll b/extras/MonoDevelop.CodeAnalysis/dlls/Gendarme.Rules.Maintainability.dll
deleted file mode 100755
index 33177452f0..0000000000
--- a/extras/MonoDevelop.CodeAnalysis/dlls/Gendarme.Rules.Maintainability.dll
+++ /dev/null
Binary files differ
diff --git a/extras/MonoDevelop.CodeAnalysis/dlls/Gendarme.Rules.Naming.dll b/extras/MonoDevelop.CodeAnalysis/dlls/Gendarme.Rules.Naming.dll
deleted file mode 100755
index 288a08a00c..0000000000
--- a/extras/MonoDevelop.CodeAnalysis/dlls/Gendarme.Rules.Naming.dll
+++ /dev/null
Binary files differ
diff --git a/extras/MonoDevelop.CodeAnalysis/dlls/Gendarme.Rules.Performance.dll b/extras/MonoDevelop.CodeAnalysis/dlls/Gendarme.Rules.Performance.dll
deleted file mode 100755
index 925411de33..0000000000
--- a/extras/MonoDevelop.CodeAnalysis/dlls/Gendarme.Rules.Performance.dll
+++ /dev/null
Binary files differ
diff --git a/extras/MonoDevelop.CodeAnalysis/dlls/Gendarme.Rules.Portability.dll b/extras/MonoDevelop.CodeAnalysis/dlls/Gendarme.Rules.Portability.dll
deleted file mode 100755
index ceb4813f28..0000000000
--- a/extras/MonoDevelop.CodeAnalysis/dlls/Gendarme.Rules.Portability.dll
+++ /dev/null
Binary files differ
diff --git a/extras/MonoDevelop.CodeAnalysis/dlls/Gendarme.Rules.Security.dll b/extras/MonoDevelop.CodeAnalysis/dlls/Gendarme.Rules.Security.dll
deleted file mode 100755
index e04646426f..0000000000
--- a/extras/MonoDevelop.CodeAnalysis/dlls/Gendarme.Rules.Security.dll
+++ /dev/null
Binary files differ
diff --git a/extras/MonoDevelop.CodeAnalysis/dlls/Gendarme.Rules.Serialization.dll b/extras/MonoDevelop.CodeAnalysis/dlls/Gendarme.Rules.Serialization.dll
deleted file mode 100755
index fb526a5bbe..0000000000
--- a/extras/MonoDevelop.CodeAnalysis/dlls/Gendarme.Rules.Serialization.dll
+++ /dev/null
Binary files differ
diff --git a/extras/MonoDevelop.CodeAnalysis/dlls/Gendarme.Rules.Smells.dll b/extras/MonoDevelop.CodeAnalysis/dlls/Gendarme.Rules.Smells.dll
deleted file mode 100755
index 7ecb08e7e4..0000000000
--- a/extras/MonoDevelop.CodeAnalysis/dlls/Gendarme.Rules.Smells.dll
+++ /dev/null
Binary files differ
diff --git a/extras/MonoDevelop.CodeAnalysis/dlls/Gendarme.Rules.Ui.dll b/extras/MonoDevelop.CodeAnalysis/dlls/Gendarme.Rules.Ui.dll
deleted file mode 100755
index 417cdd4ea6..0000000000
--- a/extras/MonoDevelop.CodeAnalysis/dlls/Gendarme.Rules.Ui.dll
+++ /dev/null
Binary files differ
diff --git a/extras/MonoDevelop.CodeAnalysis/dlls/Mono.Cecil.dll b/extras/MonoDevelop.CodeAnalysis/dlls/Mono.Cecil.dll
deleted file mode 100755
index b8082a381d..0000000000
--- a/extras/MonoDevelop.CodeAnalysis/dlls/Mono.Cecil.dll
+++ /dev/null
Binary files differ
diff --git a/extras/MonoDevelop.CodeAnalysis/dlls/smokey.exe b/extras/MonoDevelop.CodeAnalysis/dlls/smokey.exe
deleted file mode 100644
index dcf02a7a15..0000000000
--- a/extras/MonoDevelop.CodeAnalysis/dlls/smokey.exe
+++ /dev/null
Binary files differ
diff --git a/extras/MonoDevelop.CodeAnalysis/monodevelop-codeanalysis.pc.in b/extras/MonoDevelop.CodeAnalysis/monodevelop-codeanalysis.pc.in
deleted file mode 100644
index bcc3fece39..0000000000
--- a/extras/MonoDevelop.CodeAnalysis/monodevelop-codeanalysis.pc.in
+++ /dev/null
@@ -1,8 +0,0 @@
-Name: monodevelop-codeanalysis
-Description: MonoDevelop.CodeAnalysis Add-in
-Version: 0.1
-
-libdir=@prefix@/lib/monodevelop
-
-Requires:
-Libs: -r:${libdir}/AddIns/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.dll -r:${libdir}/AddIns/MonoDevelop.CodeAnalysis/MonoDevelop.CodeAnalysis.Gendarme.dll
diff --git a/extras/MonoDevelop.MeeGo/ChangeLog b/extras/MonoDevelop.MeeGo/ChangeLog
deleted file mode 100644
index 15273a984d..0000000000
--- a/extras/MonoDevelop.MeeGo/ChangeLog
+++ /dev/null
@@ -1,116 +0,0 @@
-2010-06-14 Lluis Sanchez Gual <lluis@novell.com>
-
- * configure: Bump MD version.
-
-2010-05-20 Lluis Sanchez Gual <lluis@novell.com>
-
- * configure: Bump MD version.
-
-2010-04-06 Michael Hutchinson <mhutchinson@novell.com>
-
- * MonoDevelop.MeeGo.addin.xml: Fix debugger feature set
- declaration.
-
-2010-03-22 Lluis Sanchez Gual <lluis@novell.com>
-
- * configure:
- * MonoDevelop.MeeGo.addin.xml: Bumped MD version.
-
-2010-03-17 Lluis Sanchez Gual <lluis@novell.com>
-
- * MeeGoUtility.cs:
- * MeeGoDevicePicker.cs:
- * MonoDevelop.MeeGo.addin.xml: Merged MD.Projects into
- MD.Core, and MD.Projects.Gui, MD.Core.Gui and MD.Components
- into MD.Ide.
-
-2010-03-03 Michael Hutchinson <mhutchinson@novell.com>
-
- * MeeGoProject.cs:
- * MeeGoProjectConfiguration.cs: Cleaner creation of new
- configurations.
-
-2010-02-22 Michael Hutchinson <mhutchinson@novell.com>
-
- * README.txt:
- * MonoDevelop.MeeGo.csproj: Added a README.
-
-2010-02-21 Michael Hutchinson <mhutchinson@novell.com>
-
- * MeeGoExecutionHandler.cs:
- * MeeGoSoftDebuggerSession.cs: Fix debugger stdout/stderr.
-
-2010-02-21 Michael Hutchinson <mhutchinson@novell.com>
-
- * MeeGoDebuggerSession.cs:
- * MeeGoExecutionCommand.cs:
- * MonoDevelop.MeeGo.csproj:
- * MeeGoExecutionHandler.cs:
- * MeeGoSoftDebuggerEngine.cs:
- * MeeGoSoftDebuggerSession.cs: Implemented remote debugging.
-
-2010-02-20 Michael Hutchinson <mhutchinson@novell.com>
-
- * MeeGoExecutionHandler.cs: Implement support for capturing
- output of remote process and for killing the process.
-
- * MeeGoUtility.cs: Fix copies after the first one so they
- don't get copied into subdirectory.
-
-2010-02-20 Michael Hutchinson <mhutchinson@novell.com>
-
- * MeeGoDevicePicker.cs:
- * MonoDevelop.MeeGo.csproj: Recreate the device picker GUI by
- hand since stetic seems not to have svn added the stetic
- files from my other machine :/
-
-2010-02-19 Michael Hutchinson <mhutchinson@novell.com>
-
- * SshOperation.cs:
- * MeeGoUtility.cs:
- * MeeGoExecutionModeSet.cs:
- * MonoDevelop.MeeGo.csproj:
- * MeeGoExecutionHandler.cs: Reorganize execution code.
-
-2010-02-19 Michael Hutchinson <mhutchinson@novell.com>
-
- * MeeGoUtility.cs:
- * MeeGoProject.cs:
- * SshOperation.cs:
- * MeeGoDevicePicker.cs:
- * MonoDevelop.MeeGo.csproj:
- * MeeGoExecutionCommand.cs:
- * MeeGoExecutionHandler.cs:
- * MeeGoSoftDebuggerEngine.cs:
- * MonoDevelop.MeeGo.addin.xml: Add support for launching over
- ssh.
-
-2010-02-18 Michael Hutchinson <mhutchinson@novell.com>
-
- * Templates/MeeGoGtkProject.xpt.xml: Fix code binding to
- designer.
-
-2010-02-18 Michael Hutchinson <mhutchinson@novell.com>
-
- * Templates:
- * MeeGoProject.cs:
- * MeeGoExecutionHandler.cs:
- * MonoDevelop.MeeGo.csproj:
- * MonoDevelop.MeeGo.addin.xml:
- * Templates/MeeGoGtkProject.xpt.xml: Add template. Fix
- creating project.
-
-2010-02-17 Michael Hutchinson <mhutchinson@novell.com>
-
- * MeeGoProject.cs:
- * MeeGoUtility.cs:
- * MonoDevelop.MeeGo.sln:
- * MeeGoProjectBinding.cs:
- * MeeGoDebuggerSession.cs:
- * MeeGoExecutionCommand.cs:
- * MonoDevelop.MeeGo.csproj:
- * MeeGoExecutionHandler.cs:
- * MeeGoSoftDebuggerEngine.cs:
- * MonoDevelop.MeeGo.addin.xml:
- * MeeGoProjectConfiguration.cs: Stubbed out new MeeGo addin.
-
diff --git a/extras/MonoDevelop.MeeGo/Makefile b/extras/MonoDevelop.MeeGo/Makefile
deleted file mode 100644
index f2adbe2271..0000000000
--- a/extras/MonoDevelop.MeeGo/Makefile
+++ /dev/null
@@ -1,41 +0,0 @@
-include config.make
-installdir = "$(prefix)/lib/monodevelop/AddIns/MonoDevelop.MeeGo"
-conf=Debug
-SLN=MonoDevelop.MeeGo.sln
-
-
-ISLOCAL := $(wildcard "../local-config/monodevelop.pc")
-ifeq ($(strip $(ISLOCAL)),)
- LOCAL_MDBUILD=../../main/build
- MDTOOL=\
- PKG_CONFIG_PATH="../../local-config:${PKG_CONFIG_PATH}" \
- MONODEVELOP_LOCALE_PATH="${LOCAL_MDBUILD}/locale" \
- MONO_ADDINS_REGISTRY="${LOCAL_MDBUILD}/bin" \
- mono --debug "${LOCAL_MDBUILD}/bin/mdtool.exe"
-else
- MDTOOL=mdtool
-endif
-
-all: update-reg
- $(MDTOOL) build -c:$(conf) $(SLN)
-
-clean:
- rm -rf build/*
-
-# this breaks if the local MD has been cleaned
-#clean: update-reg
-# $(MDTOOL) build -t:Clean -c:$(conf) $(SLN)
-
-install: all
- mkdir -p $(installdir)
- cp -r ./build/* $(installdir)
-
-uninstall:
- rm -rf "$(installdir)"
-
-ifeq ($(strip $(ISLOCAL)),)
-update-reg:
- $(MDTOOL) setup reg-update
-else
- update-reg:
-endif
diff --git a/extras/MonoDevelop.MeeGo/MeeGoDevicePicker.cs b/extras/MonoDevelop.MeeGo/MeeGoDevicePicker.cs
deleted file mode 100644
index 60d50a215d..0000000000
--- a/extras/MonoDevelop.MeeGo/MeeGoDevicePicker.cs
+++ /dev/null
@@ -1,136 +0,0 @@
-//
-// MeeGoDevicePicker.cs
-//
-// Author:
-// Michael Hutchinson <mhutchinson@novell.com>
-//
-// Copyright (c) 2010 Novell, Inc. (http://www.novell.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-using System;
-using Gtk;
-
-using MonoDevelop.Core;
-
-namespace MonoDevelop.MeeGo
-{
- class MeeGoDevicePicker : Dialog
- {
- Entry userEntry, passwordEntry, addressEntry;
- Button okButton, cancelButton;
-
- public MeeGoDevicePicker (Window parentWindow)
- {
- TransientFor = parentWindow;
- Modal = true;
- Build ();
-
- userEntry.Text = PropertyService.Get<string> ("MeeGoDevice.User") ?? "";
- passwordEntry.Text = PropertyService.Get<string> ("MeeGoDevice.Password") ?? "";
- addressEntry.Text = PropertyService.Get<string> ("MeeGoDevice.Address") ?? "";
-
- addressEntry.Changed += delegate {
- okButton.Sensitive = !string.IsNullOrEmpty (addressEntry.Text);
- };
- okButton.Sensitive = !string.IsNullOrEmpty (addressEntry.Text);
- }
-
- void Build ()
- {
- Title = "MeeGo Device";
- BorderWidth = 6;
-
- addressEntry = new Entry () { ActivatesDefault = true };
- userEntry = new Entry () { ActivatesDefault = true };
- passwordEntry = new Entry () { Visibility = false, ActivatesDefault = true };
-
- var addressLabel = new Label ("_Address:") {
- Xalign = 0,
- Justify = Justification.Left,
- UseUnderline = true,
- MnemonicWidget = addressEntry
- };
- var userLabel = new Label ("_Username:") {
- Xalign = 0,
- Justify = Justification.Left,
- UseUnderline = true,
- MnemonicWidget = userEntry
- };
- var passwordLabel = new Label ("_Password:") {
- Xalign = 0,
- Justify = Justification.Left,
- UseUnderline = true,
- MnemonicWidget = passwordEntry
- };
-
- var table = new Table (2, 3, false);
- var fill = AttachOptions.Expand | AttachOptions.Fill;
- var none = AttachOptions.Shrink;
- var expand = AttachOptions.Expand;
-
- table.Attach (addressLabel, 0, 1, 0, 1, expand, none, 2, 2);
- table.Attach (addressEntry, 1, 2, 0, 1, fill, none, 2, 2);
- table.Attach (userLabel, 0, 1, 1, 2, expand, none, 2, 2);
- table.Attach (userEntry, 1, 2, 1, 2, fill, none, 2, 2);
- table.Attach (passwordLabel, 0, 1, 2, 3, expand, none, 2, 2);
- table.Attach (passwordEntry, 1, 2, 2, 3, fill, none, 2, 2);
-
- VBox.PackStart (new Label ("Enter details of the MeeGo device:"), true, false, 6);
- VBox.PackStart (table, true, false, 6);
-
- cancelButton = new Button (Gtk.Stock.Cancel);
- this.AddActionWidget (cancelButton, ResponseType.Cancel);
- okButton = new Button (Gtk.Stock.Ok) { CanDefault = true };
- this.AddActionWidget (okButton, ResponseType.Ok);
- okButton.HasDefault = true;
-
- ShowAll ();
-
- Resize (400, 80);
- Resizable = false;
- }
-
- MeeGoDevice GetDevice ()
- {
- PropertyService.Set ("MeeGoDevice.User", userEntry.Text);
- PropertyService.Set ("MeeGoDevice.Password", passwordEntry.Text);
- PropertyService.Set ("MeeGoDevice.Address", addressEntry.Text);
-
- return new MeeGoDevice (addressEntry.Text, userEntry.Text, passwordEntry.Text);
- }
-
- public override void Dispose ()
- {
- Destroy ();
- base.Dispose ();
- }
-
- public static MeeGoDevice GetDevice (Window parentWindow)
- {
- using (var dialog = new MeeGoDevicePicker (parentWindow ?? MessageService.RootWindow)) {
- int result = dialog.Run ();
- if (result != (int)ResponseType.Ok)
- return null;
- return dialog.GetDevice ();
- }
- }
- }
-}
-
diff --git a/extras/MonoDevelop.MeeGo/MeeGoExecutionCommand.cs b/extras/MonoDevelop.MeeGo/MeeGoExecutionCommand.cs
deleted file mode 100644
index b09423413b..0000000000
--- a/extras/MonoDevelop.MeeGo/MeeGoExecutionCommand.cs
+++ /dev/null
@@ -1,61 +0,0 @@
-//
-// MeeGoExecutionCommand.cs
-//
-// Author:
-// Michael Hutchinson <mhutchinson@novell.com>
-//
-// Copyright (c) 2010 Novell, Inc. (http://www.novell.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-using System;
-using MonoDevelop.Core;
-using MonoDevelop.Core.Execution;
-using MonoDevelop.Core.Assemblies;
-using System.Collections.Generic;
-using System.IO;
-
-namespace MonoDevelop.MeeGo
-{
- public class MeeGoExecutionCommand: DotNetExecutionCommand
- {
- public MeeGoExecutionCommand (MeeGoProjectConfiguration config) : base (config.CompiledOutputName)
- {
- this.Config = config;
- }
-
- public MeeGoProjectConfiguration Config { get; private set; }
-
- public string Name {
- get {
- return Path.GetFileNameWithoutExtension (Config.OutputAssembly);
- }
- }
-
- public override string CommandString {
- get { return "[meego]"; }
- }
-
- public string DeviceExePath {
- get {
- return Config.ParentItem.Name + "/" + Config.CompiledOutputName.FileName;
- }
- }
- }
-}
diff --git a/extras/MonoDevelop.MeeGo/MeeGoExecutionHandler.cs b/extras/MonoDevelop.MeeGo/MeeGoExecutionHandler.cs
deleted file mode 100644
index c9cae80da9..0000000000
--- a/extras/MonoDevelop.MeeGo/MeeGoExecutionHandler.cs
+++ /dev/null
@@ -1,250 +0,0 @@
-//
-// MeeGoExecutionHandler.cs
-//
-// Author:
-// Michael Hutchinson <mhutchinson@novell.com>
-//
-// Copyright (c) 2010 Novell, Inc. (http://www.novell.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-using System;
-using System.Linq;
-using MonoDevelop.Core.Execution;
-using System.Collections.Generic;
-using Tamir.SharpSsh;
-using Tamir.SharpSsh.jsch;
-using System.IO;
-using MonoDevelop.Core;
-using System.Text;
-using System.Threading;
-
-namespace MonoDevelop.MeeGo
-{
-
- class MeeGoExecutionHandler : IExecutionHandler
- {
-
- public bool CanExecute (ExecutionCommand command)
- {
- return command is MeeGoExecutionCommand;
- }
-
- public IProcessAsyncOperation Execute (ExecutionCommand command, IConsole console)
- {
- var cmd = (MeeGoExecutionCommand) command;
- var targetDevice = MeeGoDevice.GetChosenDevice ();
- if (targetDevice == null) {
- return new NullProcessAsyncOperation (false);
- }
-
- //if (MeeGoUtility.NeedsUploading (cmd.Config)) {
- MeeGoUtility.Upload (targetDevice, cmd.Config, console.Out, console.Error).WaitForCompleted ();
- //}
-
- var auth = GetGdmXAuth (targetDevice);
- if (auth == null) {
- console.Error.WriteLine ("Could not obtain single X authority for user '" + targetDevice.Username +"'");
- return new NullProcessAsyncOperation (false);
- }
-
- var proc = CreateProcess (cmd, null, targetDevice, auth, console.Out.Write, console.Error.Write);
- proc.Run ();
- return proc;
- }
-
- public static SshRemoteProcess CreateProcess (MeeGoExecutionCommand cmd, string sdbOptions, MeeGoDevice device,
- Dictionary<string,string> xauth,
- Action<string> stdOut, Action<string> stdErr)
- {
- string exec = GetCommandString (cmd, sdbOptions, xauth);
-
- var ssh = new LiveSshExec (device.Address, device.Username, device.Password);
-
- //hacky but openssh seems to ignore signals
- Action kill = delegate {
- var killExec = new SshExec (device.Address, device.Username, device.Password);
- killExec.Connect ();
- killExec.RunCommand ("ps x | grep '" + cmd.DeviceExePath + "' | " +
- "grep -v 'grep \\'" + cmd.DeviceExePath + "\\' | awk '{ print $1 }' | xargs kill ");
- killExec.Close ();
- };
-
- return new SshRemoteProcess (ssh, exec, stdOut, stdErr, kill);
- }
-
- public static string GetCommandString (MeeGoExecutionCommand cmd, string sdbOptions, Dictionary<string,string> auth)
- {
- string runtimeArgs = string.IsNullOrEmpty (cmd.RuntimeArguments)
- ? (string.IsNullOrEmpty (sdbOptions)? "--debug" : "")
- : cmd.RuntimeArguments;
-
- var sb = new StringBuilder ();
- foreach (var arg in cmd.EnvironmentVariables)
- sb.AppendFormat ("{0}='{1}' ", arg.Key, arg.Value);
- foreach (var arg in auth)
- sb.AppendFormat ("{0}='{1}' ", arg.Key, arg.Value);
- sb.Append ("mono");
- if (!string.IsNullOrEmpty (sdbOptions))
- sb.AppendFormat (" --debug --debugger-agent={0}", sdbOptions);
-
- sb.AppendFormat (" {0} '{1}' {2}", runtimeArgs, cmd.DeviceExePath, cmd.Arguments);
-
- return sb.ToString ();
- }
-
- public static Dictionary<string,string> GetGdmXAuth (MeeGoDevice targetDevice)
- {
- Sftp sftp = null;
- try {
- sftp = new Sftp (targetDevice.Address, targetDevice.Username, targetDevice.Password);
- sftp.Connect ();
- var files = sftp.GetFileList ("/var/run/gdm/auth-for-" + targetDevice.Username + "*");
- sftp.Close ();
- if (files.Count == 1) {
- return new Dictionary<string, string> () {
- { "XAUTHLOCALHOSTNAME", "localhost" },
- { "DISPLAY", ":0.0"},
- { "XAUTHORITY", "/var/run/gdm/" + files[0] +"/database"}
- };
- }
- } catch (Exception ex) {
- LoggingService.LogError ("Error getting xauth via sftp", ex);
- if (sftp != null) {
- try {
- sftp.Close ();
- } catch (Exception ex2) {
- LoggingService.LogError ("Error closing sftp connection", ex2);
- }
- }
- }
- return null;
- }
- }
-
- class SshRemoteProcess : SshOperation<LiveSshExec>, IProcessAsyncOperation
- {
- string command;
- ChannelExec channel;
- Action kill;
- Action<string> stdOut, stdErr;
-
- public SshRemoteProcess (LiveSshExec ssh, string command,
- Action<string> stdOut, Action<string> stdErr, Action kill)
- : base (ssh)
- {
- this.command = command;
- this.kill = kill;
- this.stdErr = stdErr;
- this.stdOut = stdOut;
- }
-
- protected override void RunOperations ()
- {
- try {
- channel = Ssh.GetChannel (command);
- channel.setErrStream (new TextStream (stdErr));
- channel.setOutputStream (new TextStream (stdOut));
- channel.connect ();
- while (!channel.isEOF ())
- Thread.Sleep (200);
- channel.disconnect ();
- } finally {
- ExitCode = channel.getExitStatus ();
- }
- }
-
- public int ExitCode { get; private set; }
- public int ProcessId { get; private set; }
-
- public override void Cancel ()
- {
- kill ();
-
- channel.sendSignal ("TERM");
- channel.disconnect ();
- }
- }
-
- class LiveSshExec : SshExec
- {
- public LiveSshExec (string address, string username, string password) : base (address, username, password)
- {
- }
-
- public ChannelExec GetChannel (string command)
- {
- return (ChannelExec) (m_channel = GetChannelExec (command));
- }
-
- public ChannelExec Channel {
- get { return (ChannelExec)m_channel; }
- }
- }
-
- class TextStream : Stream
- {
- Action<string> onWrite;
- Encoding encoding;
-
- public TextStream (Action<string> onWrite) : this (onWrite, Encoding.UTF8)
- {
- }
-
- public TextStream (Action<string> onWrite, Encoding incomingEncoding)
- {
- this.onWrite = onWrite;
- this.encoding = incomingEncoding;
- }
-
- public override void Write (byte[] buffer, int offset, int count)
- {
- onWrite (encoding.GetString (buffer, offset, count));
- }
-
- public override bool CanRead { get { return false; } }
- public override bool CanWrite { get { return false; } }
- public override bool CanSeek { get { return false; } }
- public override long Length { get { return -1; } }
-
- public override long Position {
- get { return -1; }
- set { throw new InvalidOperationException (); }
- }
-
- public override long Seek (long offset, SeekOrigin origin)
- {
- throw new InvalidOperationException ();
- }
-
- public override void SetLength (long value)
- {
- throw new InvalidOperationException ();
- }
-
- public override int Read (byte[] buffer, int offset, int count)
- {
- throw new InvalidOperationException ();
- }
-
- public override void Flush ()
- {
- }
- }
-}
diff --git a/extras/MonoDevelop.MeeGo/MeeGoExecutionModeSet.cs b/extras/MonoDevelop.MeeGo/MeeGoExecutionModeSet.cs
deleted file mode 100644
index 55ff8a1018..0000000000
--- a/extras/MonoDevelop.MeeGo/MeeGoExecutionModeSet.cs
+++ /dev/null
@@ -1,60 +0,0 @@
-//
-// MeeGoExecutionHandler.cs
-//
-// Author:
-// Michael Hutchinson <mhutchinson@novell.com>
-//
-// Copyright (c) 2010 Novell, Inc. (http://www.novell.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-using System;
-using MonoDevelop.Core.Execution;
-using System.Collections.Generic;
-
-namespace MonoDevelop.MeeGo
-{
- public class MeeGoExecutionModeSet : IExecutionModeSet
- {
- MeeGoExecutionMode mode;
-
- public string Name { get { return "MeeGo"; } }
-
- public IEnumerable<IExecutionMode> ExecutionModes {
- get {
- yield return mode ?? (mode = new MeeGoExecutionMode ());
- }
- }
- }
-
- class MeeGoExecutionMode : IExecutionMode
- {
- MeeGoExecutionHandler handler;
-
- public string Name { get { return "MeeGo Device"; } }
-
- public string Id { get { return "MeeGoExecutionMode"; } }
-
- public IExecutionHandler ExecutionHandler {
- get {
- return handler ?? (handler = new MeeGoExecutionHandler ());
- }
- }
- }
-}
diff --git a/extras/MonoDevelop.MeeGo/MeeGoProject.cs b/extras/MonoDevelop.MeeGo/MeeGoProject.cs
deleted file mode 100644
index eb8eeda605..0000000000
--- a/extras/MonoDevelop.MeeGo/MeeGoProject.cs
+++ /dev/null
@@ -1,117 +0,0 @@
-//
-// MeeGoProject.cs
-//
-// Author:
-// Michael Hutchinson <mhutchinson@novell.com>
-//
-// Copyright (c) 2010 Novell, Inc. (http://www.novell.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-using MonoDevelop.Core;
-using MonoDevelop.Core.Execution;
-using MonoDevelop.Core.ProgressMonitoring;
-using MonoDevelop.Projects;
-using System;
-using System.Xml;
-
-namespace MonoDevelop.MeeGo
-{
-
- public class MeeGoProject : DotNetAssemblyProject
- {
- #region Constructors
-
- public MeeGoProject ()
- {
- Init ();
- }
-
- public MeeGoProject (string language) : base (language)
- {
- Init ();
- }
-
- public MeeGoProject (string languageName, ProjectCreateInformation info, XmlElement projectOptions)
- : base (languageName, info, projectOptions)
- {
- Init ();
- }
-
- void Init ()
- {
- }
-
- public override SolutionItemConfiguration CreateConfiguration (string name)
- {
- var conf = new MeeGoProjectConfiguration (name);
- conf.CopyFrom (base.CreateConfiguration (name));
- return conf;
- }
-
- #endregion
-
- #region Execution
-
- protected override ExecutionCommand CreateExecutionCommand (ConfigurationSelector configSel,
- DotNetProjectConfiguration configuration)
- {
- var conf = (MeeGoProjectConfiguration) configuration;
- return new MeeGoExecutionCommand (conf) {
- UserAssemblyPaths = GetUserAssemblyPaths (configSel),
- };
- }
-
- /*
- protected override void OnExecute (IProgressMonitor monitor, ExecutionContext context, ConfigurationSelector configSel)
- {
- var conf = (MeeGoProjectConfiguration) GetConfiguration (configSel);
- var cmd = (MeeGoExecutionCommand)CreateExecutionCommand (configSel, conf);
-
- using (var opMon = new AggregatedOperationMonitor (monitor)) {
- if (MeeGoUtility.NeedsUploading (conf)) {
- using (var op = MeeGoUtility.Upload (cmd.Device, cmd.AppExe)) {
- opMon.AddOperation (op);
- op.WaitForOutput ();
- if (op.ExitCode != 0)
- return;
- }
- MeeGoUtility.TouchUploadMarker (conf);
- }
-
- IConsole console = null;
- try {
-
- console = conf.ExternalConsole
- ? context.ExternalConsoleFactory.CreateConsole (!conf.PauseConsoleOutput)
- : context.ConsoleFactory.CreateConsole (!conf.PauseConsoleOutput);
-
- var ex = context.ExecutionHandler.Execute (cmd, console);
- opMon.AddOperation (ex);
- ex.WaitForCompleted ();
- } finally {
- if (console != null)
- console.Dispose ();
- }
- }
- }*/
-
- #endregion
- }
-}
diff --git a/extras/MonoDevelop.MeeGo/MeeGoProjectBinding.cs b/extras/MonoDevelop.MeeGo/MeeGoProjectBinding.cs
deleted file mode 100644
index 920458db6e..0000000000
--- a/extras/MonoDevelop.MeeGo/MeeGoProjectBinding.cs
+++ /dev/null
@@ -1,56 +0,0 @@
-//
-// MeeGoProjectBinding.cs
-//
-// Author:
-// Michael Hutchinson <mhutchinson@novell.com>
-//
-// Copyright (c) 2010 Novell, Inc. (http://www.novell.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-using System;
-using MonoDevelop.Projects;
-
-
-namespace MonoDevelop.MeeGo
-{
-
- public class MeeGoProjectBinding : IProjectBinding
- {
- public Project CreateProject (ProjectCreateInformation info, System.Xml.XmlElement projectOptions)
- {
- string lang = projectOptions.GetAttribute ("language");
- return new MeeGoProject (lang, info, projectOptions);
- }
-
- public Project CreateSingleFileProject (string sourceFile)
- {
- throw new InvalidOperationException ();
- }
-
- public bool CanCreateSingleFileProject (string sourceFile)
- {
- return false;
- }
-
- public string Name {
- get { return "MeeGo"; }
- }
- }
-}
diff --git a/extras/MonoDevelop.MeeGo/MeeGoProjectConfiguration.cs b/extras/MonoDevelop.MeeGo/MeeGoProjectConfiguration.cs
deleted file mode 100644
index 7459ffcf24..0000000000
--- a/extras/MonoDevelop.MeeGo/MeeGoProjectConfiguration.cs
+++ /dev/null
@@ -1,52 +0,0 @@
-//
-// MeeGoProjectConfiguration.cs
-//
-// Author:
-// Michael Hutchinson <mhutchinson@novell.com>
-//
-// Copyright (c) 2010 Novell, Inc. (http://www.novell.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-using MonoDevelop.Core.Serialization;
-using MonoDevelop.Projects;
-
-namespace MonoDevelop.MeeGo
-{
-
-
- public class MeeGoProjectConfiguration : DotNetProjectConfiguration
- {
- public MeeGoProjectConfiguration () : base ()
- {
- }
-
- public MeeGoProjectConfiguration (string name) : base (name)
- {
- }
-
- public override void CopyFrom (ItemConfiguration configuration)
- {
- //var cfg = configuration as MeeGoProjectConfiguration;
- //if (cfg != null) {
- //}
- base.CopyFrom (configuration);
- }
- }
-}
diff --git a/extras/MonoDevelop.MeeGo/MeeGoSoftDebuggerEngine.cs b/extras/MonoDevelop.MeeGo/MeeGoSoftDebuggerEngine.cs
deleted file mode 100644
index acf4e7536d..0000000000
--- a/extras/MonoDevelop.MeeGo/MeeGoSoftDebuggerEngine.cs
+++ /dev/null
@@ -1,64 +0,0 @@
-//
-// MeeGoDebuggerEngine.cs
-//
-// Author:
-// Michael Hutchinson <mhutchinson@novell.com>
-//
-// Copyright (c) 2010 Novell, Inc. (http://www.novell.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-using MonoDevelop.Debugger;
-using MonoDevelop.Core.Execution;
-using Mono.Debugging.Client;
-using System.Net;
-
-namespace MonoDevelop.MeeGo
-{
- public class MeeGoSoftDebuggerEngine: IDebuggerEngine
- {
- public bool CanDebugCommand (ExecutionCommand command)
- {
- return command is MeeGoExecutionCommand;
- }
-
- public DebuggerStartInfo CreateDebuggerStartInfo (ExecutionCommand command)
- {
- var cmd = (MeeGoExecutionCommand) command;
-
- var debuggerAddress = Dns.GetHostEntry (Dns.GetHostName ()).AddressList[0];
- int debuggerPort = 10000;
-
- var dev = MeeGoDevice.GetChosenDevice ();
- var startInfo = new MeeGoSoftDebuggerStartInfo (debuggerAddress, debuggerPort, cmd, dev);
- startInfo.SetUserAssemblies (cmd.UserAssemblyPaths);
- return startInfo;
- }
-
- public DebuggerSession CreateSession ()
- {
- return new MeeGoSoftDebuggerSession ();
- }
-
- public ProcessInfo[] GetAttachableProcesses ()
- {
- return new ProcessInfo[0];
- }
- }
-}
diff --git a/extras/MonoDevelop.MeeGo/MeeGoSoftDebuggerSession.cs b/extras/MonoDevelop.MeeGo/MeeGoSoftDebuggerSession.cs
deleted file mode 100644
index e3467ece5d..0000000000
--- a/extras/MonoDevelop.MeeGo/MeeGoSoftDebuggerSession.cs
+++ /dev/null
@@ -1,108 +0,0 @@
-//
-// MeeGoDebuggerSession.cs
-//
-// Author:
-// Michael Hutchinson <mhutchinson@novell.com>
-//
-// Copyright (c) 2010 Novell, Inc. (http://www.novell.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-using System.Net;
-using MonoDevelop.Debugger.Soft;
-using Mono.Debugging.Client;
-using MonoDevelop.Core.Execution;
-using System.IO;
-
-namespace MonoDevelop.MeeGo
-{
- public class MeeGoSoftDebuggerSession : Mono.Debugging.Soft.SoftDebuggerSession
- {
- SshRemoteProcess process;
-
- protected override void OnRun (DebuggerStartInfo startInfo)
- {
- var dsi = (MeeGoSoftDebuggerStartInfo) startInfo;
- StartProcess (dsi);
- StartListening (dsi);
- }
-
- protected override string GetConnectingMessage (RemoteDebuggerStartInfo dsi)
- {
- return string.Format ("Waiting for debugger to connect on {0}:{1}...", dsi.Address, dsi.DebugPort);
- }
-
- protected override void EndSession ()
- {
- base.EndSession ();
- EndProcess ();
- }
-
- void StartProcess (MeeGoSoftDebuggerStartInfo dsi)
- {
- MeeGoUtility.Upload (dsi.Device, dsi.ExecutionCommand.Config, null, null).WaitForCompleted ();
- var auth = MeeGoExecutionHandler.GetGdmXAuth (dsi.Device);
- string debugOptions = string.Format ("transport=dt_socket,address={0}:{1}", dsi.Address, dsi.DebugPort);
-
- process = MeeGoExecutionHandler.CreateProcess (dsi.ExecutionCommand, debugOptions, dsi.Device, auth,
- x => OnTargetOutput (false, x),
- x => OnTargetOutput (true, x));
-
- process.Completed += delegate {
- process = null;
- };
-
- TargetExited += delegate {
- EndProcess ();
- };
-
- process.Run ();
- }
-
- void EndProcess ()
- {
- if (process == null)
- return;
- if (!process.IsCompleted) {
- try {
- process.Cancel ();
- } catch {}
- }
- }
-
- protected override void OnExit ()
- {
- base.OnExit ();
- EndProcess ();
- }
- }
-
- class MeeGoSoftDebuggerStartInfo : RemoteDebuggerStartInfo
- {
- public MeeGoExecutionCommand ExecutionCommand { get; private set; }
- public MeeGoDevice Device { get; private set; }
-
- public MeeGoSoftDebuggerStartInfo (IPAddress address, int debugPort, MeeGoExecutionCommand cmd, MeeGoDevice device)
- : base (cmd.Name, address, debugPort)
- {
- ExecutionCommand = cmd;
- Device = device;
- }
- }
-}
diff --git a/extras/MonoDevelop.MeeGo/MeeGoUtility.cs b/extras/MonoDevelop.MeeGo/MeeGoUtility.cs
deleted file mode 100644
index 91b094eae1..0000000000
--- a/extras/MonoDevelop.MeeGo/MeeGoUtility.cs
+++ /dev/null
@@ -1,112 +0,0 @@
-//
-// MeeGoUtility.cs
-//
-// Author:
-// Michael Hutchinson <mhutchinson@novell.com>
-//
-// Copyright (c) 2010 Novell, Inc. (http://www.novell.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-using System;
-using System.IO;
-using MonoDevelop.Core.Execution;
-using MonoDevelop.Core;
-
-using System.Diagnostics;
-using Tamir.SharpSsh;
-using System.Threading;
-
-namespace MonoDevelop.MeeGo
-{
- static class MeeGoUtility
- {
- //FIXME: needs better file list and handling of subdirectories
- public static IAsyncOperation Upload (MeeGoDevice targetDevice, MeeGoProjectConfiguration conf,
- TextWriter outWriter, TextWriter errorWriter)
- {
- var sftp = new Sftp (targetDevice.Address, targetDevice.Username, targetDevice.Password);
-
- var files = Directory.GetFiles (conf.OutputDirectory, "*", SearchOption.TopDirectoryOnly);
- var op = conf.OutputDirectory.ParentDirectory;
- for (int i = 0; i < files.Length; i++)
- files[i] = op.Combine (files[i]);
-
- var scop = new SshTransferOperation<Sftp> (sftp, delegate (Sftp s) {
- var dir = conf.ParentItem.Name;
- try {
- s.Mkdir (dir);
- } catch {}
- s.Put (files, dir);
- });
- scop.Run ();
- return scop;
- }
-
- public static bool NeedsUploading (MeeGoProjectConfiguration conf)
- {
- var markerFile = conf.OutputDirectory.Combine (".meego_last_uploaded");
- return File.Exists (conf.CompiledOutputName) && (!File.Exists (markerFile)
- || File.GetLastWriteTime (markerFile) < File.GetLastWriteTime (conf.OutputAssembly));
- }
-
- public static void TouchUploadMarker (MeeGoProjectConfiguration conf)
- {
- var markerFile = conf.OutputDirectory.Combine (".meego_last_uploaded");
- if (File.Exists (markerFile))
- File.SetLastWriteTime (markerFile, DateTime.Now);
- else
- File.WriteAllText (markerFile, "This file is used to determine when the app was last uploaded to a device");
- }
- }
-
- class MeeGoDevice
- {
- public MeeGoDevice (string address, string username, string password)
- {
- this.Address = address;
- this.Username = username;
- this.Password = password;
- }
-
- public string Address { get; set; }
- public string Username { get; set; }
- public string Password { get; set; }
-
-
-
- static MeeGoDevice chosenDevice;
-
- public static MeeGoDevice GetChosenDevice ()
- {
- if (chosenDevice == null) {
- DispatchService.GuiSyncDispatch (delegate {
- chosenDevice = MeeGoDevicePicker.GetDevice (null);
- });
- }
- return chosenDevice;
- }
-
- public static void ResetChosenDevice ()
- {
- chosenDevice = null;
- }
- }
-}
-
diff --git a/extras/MonoDevelop.MeeGo/MonoDevelop.MeeGo.addin.xml b/extras/MonoDevelop.MeeGo/MonoDevelop.MeeGo.addin.xml
deleted file mode 100644
index 246994da09..0000000000
--- a/extras/MonoDevelop.MeeGo/MonoDevelop.MeeGo.addin.xml
+++ /dev/null
@@ -1,55 +0,0 @@
-<Addin id = "MeeGo"
- namespace = "MonoDevelop"
- name = "Mono MeeGo development"
- author = "Michael Hutchinson"
- copyright = "MIT X11"
- url = "http://monodevelop.com/"
- description = "Support for developing and deploying MeeGo applications using Mono."
- category = "Mobile Development"
- version = "4.2.3">
-
- <Runtime>
- <Import file = "Templates/MeeGoGtkProject.xpt.xml"/>
- </Runtime>
-
- <Dependencies>
- <Addin id="Core" version="4.2.3"/>
- <Addin id="Ide" version="4.2.3"/>
- <Addin id="Debugger" version="4.2.3"/>
- <Addin id="Debugger.Soft" version="4.2.3"/>
- <Addin id="GtkCore" version="4.2.3"/>
- <Addin id="CSharpBinding" version="4.2.3"/>
- </Dependencies>
-
- <Extension path = "/MonoDevelop/Ide/ProjectTemplates">
- <ProjectTemplate id = "MeeGoGtkProject"
- file = "Templates/MeeGoGtkProject.xpt.xml" />
- </Extension>
-
- <Extension path = "/MonoDevelop/ProjectModel/MSBuildItemTypes">
- <DotNetProjectSubtype
- guid="{3fd4c4e6-4e66-4b72-9776-a9d37f06ace0}"
- type="MonoDevelop.MeeGo.MeeGoProject" />
- </Extension>
-
- <Extension path = "/MonoDevelop/ProjectModel/ProjectBindings">
- <ProjectBinding id = "MeeGo" class = "MonoDevelop.MeeGo.MeeGoProjectBinding" />
- </Extension>
-
- <Extension path = "/MonoDevelop/ProjectModel/SerializableClasses">
- <DataType class = "MonoDevelop.MeeGo.MeeGoProject" />
- <DataType class = "MonoDevelop.MeeGo.MeeGoProjectConfiguration" />
- </Extension>
-
- <Extension path = "/MonoDevelop/Core/ExecutionModes">
- <ModeSetType class="MonoDevelop.MeeGo.MeeGoExecutionModeSet"/>
- </Extension>
-
- <Extension path="/MonoDevelop/Debugging/DebuggerEngines">
- <DebuggerEngine
- id="MonoDevelop.MeeGo.SoftDebugger"
- name="Mono Soft Debugger for MeeGo"
- features="Breakpoints, Pause, Stepping, DebugFile, ConditionalBreakpoints, Tracepoints, Catchpoints"
- type="MonoDevelop.MeeGo.MeeGoSoftDebuggerEngine" />
- </Extension>
-</Addin>
diff --git a/extras/MonoDevelop.MeeGo/MonoDevelop.MeeGo.csproj b/extras/MonoDevelop.MeeGo/MonoDevelop.MeeGo.csproj
deleted file mode 100644
index 16eb4a837f..0000000000
--- a/extras/MonoDevelop.MeeGo/MonoDevelop.MeeGo.csproj
+++ /dev/null
@@ -1,123 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="3.5" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">x86</Platform>
- <ProductVersion>9.0.21022</ProductVersion>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{E5B3216C-35F0-4CC2-9ECE-00C6311FD61A}</ProjectGuid>
- <OutputType>Library</OutputType>
- <RootNamespace>MonoDevelop.MeeGo</RootNamespace>
- <AssemblyName>MonoDevelop.MeeGo</AssemblyName>
- <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
- <DebugSymbols>true</DebugSymbols>
- <DebugType>full</DebugType>
- <Optimize>false</Optimize>
- <OutputPath>build</OutputPath>
- <DefineConstants>DEBUG</DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- <PlatformTarget>x86</PlatformTarget>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
- <DebugType>none</DebugType>
- <Optimize>false</Optimize>
- <OutputPath>build</OutputPath>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- <PlatformTarget>x86</PlatformTarget>
- </PropertyGroup>
- <ItemGroup>
- <Reference Include="gtk-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
- <Reference Include="MonoDevelop.Core.Gui, Version=2.2.0.0, Culture=neutral">
- <Package>monodevelop</Package>
- </Reference>
- <Reference Include="MonoDevelop.Debugger, Version=2.2.0.0, Culture=neutral">
- <Package>monodevelop-core-addins</Package>
- </Reference>
- <Reference Include="MonoDevelop.Debugger.Soft, Version=2.2.0.0, Culture=neutral">
- <Package>monodevelop-core-addins</Package>
- </Reference>
- <Reference Include="MonoDevelop.Core, Version=2.2.0.0, Culture=neutral">
- <Package>monodevelop</Package>
- </Reference>
- <Reference Include="MonoDevelop.Components, Version=2.2.0.0, Culture=neutral">
- <Package>monodevelop</Package>
- </Reference>
- <Reference Include="MonoDevelop.GtkCore, Version=2.2.0.0, Culture=neutral">
- <Package>monodevelop-core-addins</Package>
- </Reference>
- <Reference Include="MonoDevelop.Ide, Version=2.2.0.0, Culture=neutral">
- <Package>monodevelop</Package>
- </Reference>
- <Reference Include="MonoDevelop.Projects, Version=2.2.0.0, Culture=neutral">
- <Package>monodevelop</Package>
- </Reference>
- <Reference Include="MonoDevelop.Projects.Gui, Version=2.2.0.0, Culture=neutral">
- <Package>monodevelop</Package>
- </Reference>
- <Reference Include="System.Core" />
- <Reference Include="System" />
- <Reference Include="Mono.TextEditor, Version=1.0.0.0, Culture=neutral">
- <Package>monodevelop</Package>
- </Reference>
- <Reference Include="Mono.Debugger.Soft, Version=0.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756">
- <SpecificVersion>False</SpecificVersion>
- <HintPath>..\..\main\build\AddIns\MonoDevelop.Debugger.Soft\Mono.Debugger.Soft.dll</HintPath>
- <Private>False</Private>
- </Reference>
- <Reference Include="System.Xml" />
- <Reference Include="gdk-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
- <Reference Include="Mono.Posix" />
- <Reference Include="DiffieHellman, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
- <SpecificVersion>False</SpecificVersion>
- <HintPath>lib\DiffieHellman.dll</HintPath>
- </Reference>
- <Reference Include="Org.Mentalis.Security, Version=1.0.13.715, Culture=neutral, PublicKeyToken=null">
- <SpecificVersion>False</SpecificVersion>
- <HintPath>lib\Org.Mentalis.Security.dll</HintPath>
- </Reference>
- <Reference Include="Tamir.SharpSSH, Version=1.1.1.13, Culture=neutral, PublicKeyToken=null">
- <SpecificVersion>False</SpecificVersion>
- <HintPath>lib\Tamir.SharpSSH.dll</HintPath>
- </Reference>
- <Reference Include="Mono.Debugging, Version=0.0.0.0, Culture=neutral, PublicKeyToken=6f41c46557cec84f">
- <Package>monodevelop</Package>
- </Reference>
- <Reference Include="Mono.Debugging.Soft, Version=0.0.0.0, Culture=neutral, PublicKeyToken=8817f797d73c2b6f">
- <Package>monodevelop-core-addins</Package>
- </Reference>
- </ItemGroup>
- <ItemGroup>
- <EmbeddedResource Include="MonoDevelop.MeeGo.addin.xml">
- <LogicalName>MonoDevelop.MeeGo.addin.xml</LogicalName>
- </EmbeddedResource>
- <EmbeddedResource Include="Templates\MeeGoGtkProject.xpt.xml">
- <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
- <LogicalName>MeeGoGtkProject.xpt.xml</LogicalName>
- </EmbeddedResource>
- </ItemGroup>
- <ItemGroup>
- <Compile Include="MeeGoSoftDebuggerEngine.cs" />
- <Compile Include="MeeGoExecutionCommand.cs" />
- <Compile Include="MeeGoExecutionHandler.cs" />
- <Compile Include="MeeGoProject.cs" />
- <Compile Include="MeeGoProjectBinding.cs" />
- <Compile Include="MeeGoProjectConfiguration.cs" />
- <Compile Include="MeeGoUtility.cs" />
- <Compile Include="MeeGoDevicePicker.cs" />
- <Compile Include="SshOperation.cs" />
- <Compile Include="MeeGoExecutionModeSet.cs" />
- <Compile Include="MeeGoSoftDebuggerSession.cs" />
- </ItemGroup>
- <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
- <ItemGroup>
- <Folder Include="Templates\" />
- </ItemGroup>
- <ItemGroup>
- <None Include="README.txt" />
- <None Include="ChangeLog" />
- </ItemGroup>
-</Project>
diff --git a/extras/MonoDevelop.MeeGo/MonoDevelop.MeeGo.sln b/extras/MonoDevelop.MeeGo/MonoDevelop.MeeGo.sln
deleted file mode 100644
index 6e937a8b2b..0000000000
--- a/extras/MonoDevelop.MeeGo/MonoDevelop.MeeGo.sln
+++ /dev/null
@@ -1,32 +0,0 @@
-
-Microsoft Visual Studio Solution File, Format Version 10.00
-# Visual Studio 2008
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MonoDevelop.MeeGo", "MonoDevelop.MeeGo.csproj", "{E5B3216C-35F0-4CC2-9ECE-00C6311FD61A}"
-EndProject
-Global
- GlobalSection(SolutionConfigurationPlatforms) = preSolution
- Debug|x86 = Debug|x86
- Release|x86 = Release|x86
- EndGlobalSection
- GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {E5B3216C-35F0-4CC2-9ECE-00C6311FD61A}.Debug|x86.ActiveCfg = Debug|x86
- {E5B3216C-35F0-4CC2-9ECE-00C6311FD61A}.Debug|x86.Build.0 = Debug|x86
- {E5B3216C-35F0-4CC2-9ECE-00C6311FD61A}.Release|x86.ActiveCfg = Release|x86
- {E5B3216C-35F0-4CC2-9ECE-00C6311FD61A}.Release|x86.Build.0 = Release|x86
- EndGlobalSection
- GlobalSection(MonoDevelopProperties) = preSolution
- StartupItem = MonoDevelop.MeeGo.csproj
- Policies = $0
- $0.DotNetNamingPolicy = $1
- $1.DirectoryNamespaceAssociation = PrefixedHierarchical
- $1.ResourceNamePolicy = FileName
- $0.StandardHeader = $2
- $2.inheritsSet = MITX11License
- $0.VersionControlPolicy = $3
- $3.inheritsSet = Mono
- $0.ChangeLogPolicy = $4
- $4.UpdateMode = None
- $4.VcsIntegration = None
- $4.inheritsSet = Mono
- EndGlobalSection
-EndGlobal
diff --git a/extras/MonoDevelop.MeeGo/README.txt b/extras/MonoDevelop.MeeGo/README.txt
deleted file mode 100644
index b19b52ae00..0000000000
--- a/extras/MonoDevelop.MeeGo/README.txt
+++ /dev/null
@@ -1,85 +0,0 @@
-To prepare a Moblin machine as a target
-======================================
-
-These instructions are intended to be run as root on a SUSE Moblin machine.
-If you have a different setup, you will have to adapt them.
-
-1) Enable Avahi Server
- a) Edit /etc/avahi/avahi-daemon.conf, set host and domain, e.g.
- host-name=monomo
- domain-name=local
- b) (Re)start the Avahi daemon:
- /etc/init.d/avahi-daemon restart
- c) Set Avahi to run at startup:
- insserv avahi-daemon
- d) Check that you can ping the target machine from the developer machine.
- If they are on the same subnet you can now use $host-name.$domain-name as the
- target address, e.g
- ping monomo.local
-
-2) Enable SSH Server
- a) (Re)start the SSH daemon:
- /etc/init.d/sshd restart
- b) Set SSH to run at startup:
- insserv sshd
- c) Check that you can ssh into the target from the dev machine, e.g.
- ssh monomo.local
-
-3) Upgrade Mono to 2.6.1
- a) Add the zypper repo and upgrade
- zypper addrepo http://ftp.novell.com/pub/mono/download-stable/SLE_11 mono-stable
- zypper refresh --repo mono-stable
- zypper dist-upgrade --repo mono-stable
- b) Check the Mono version on the target is 2.6.1+
- mono --version
-
-To build the MonoDevelop addin on Linux
-========================================
-
-1) Build MonoDevelop from SVN:
- http://monodevelop.com/Developers/Articles/Development%3a_Getting_Started
-
-2) Ensure that you include MonoDevelop.MeeGo in your build profile. You can
- reconfigure with
- ./configure --select
-
-3) Download the SharpSSH binaries from
- http://www.tamirgal.com/blog/page/SharpSSH.aspx
- and extract them to
- extras/MonoDevelop.MeeGo/lib
-
-4) Build with
- make
- then run with
- make run
-
-Instructions for building on Mac and Windows will be added later.
-
-To use the addin
-================
-
-1) New Solution -> C# -> MeeGo -> MeeGo GTK# Project
-
-2) Everything should work as normal, build, run, debug, etc
-
-But you can also...
-
-3) Run -> Run with... -> MeeGo Device
- - or -
- Run -> Run with... -> Mono Soft Debugger for MeeGo
-
-4) Enter the mdns address (or IP address) of the device e.g.
- monomo.local, and the user and password
-
-5) See app appear on the device!
-
-Known issues
-==========
-
-* Error recovery is very poor e.g. if device address not not found or
- connection times out you might have to kill MD
-
-* Device address and credentials are stored in plaintext and cannot be
- modified without restarting MD
-
-* No way to configure location that the app is copied to on the target
diff --git a/extras/MonoDevelop.MeeGo/SshOperation.cs b/extras/MonoDevelop.MeeGo/SshOperation.cs
deleted file mode 100644
index 19f37b4f82..0000000000
--- a/extras/MonoDevelop.MeeGo/SshOperation.cs
+++ /dev/null
@@ -1,107 +0,0 @@
-//
-// SshOperation.cs
-//
-// Author:
-// Michael Hutchinson <mhutchinson@novell.com>
-//
-// Copyright (c) 2010 Novell, Inc. (http://www.novell.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-using System;
-using Tamir.SharpSsh;
-using MonoDevelop.Core;
-using System.Threading;
-
-namespace MonoDevelop.MeeGo
-{
- public abstract class SshOperation<T> : IAsyncOperation where T : SshBase
- {
- T ssh;
- ManualResetEvent wait = new ManualResetEvent (false);
-
- public SshOperation (T ssh)
- {
- this.ssh = ssh;
- }
-
- protected T Ssh { get { return ssh; } }
-
- protected abstract void RunOperations ();
- public abstract void Cancel ();
-
- public void Run ()
- {
- ThreadPool.QueueUserWorkItem (delegate {
- try {
- ssh.Connect ();
- RunOperations ();
- Success = true;
- } catch (Exception ex) {
- Success = false;
- LoggingService.LogError ("Error in ssh operation", ex);
- } finally {
- try {
- if (ssh.Connected)
- ssh.Close ();
- } catch (Exception ex) {
- LoggingService.LogError ("Error disconnecting from ssh", ex);
- Success = false;
- }
- }
- IsCompleted = true;
- wait.Set ();
- if (Completed != null)
- Completed (this);
- });
- }
-
- public void WaitForCompleted ()
- {
- WaitHandle.WaitAll (new WaitHandle [] { wait });
- }
-
- public event OperationHandler Completed;
-
- public bool IsCompleted { get; private set; }
- public bool Success { get; private set; }
- public bool SuccessWithWarnings { get; private set; }
- }
-
- class SshTransferOperation<T> : SshOperation<T> where T : SshTransferProtocolBase
- {
- Action<T> action;
-
- public SshTransferOperation (T ssh, Action<T> action) : base (ssh)
- {
- this.action = action;
- }
-
- protected override void RunOperations ()
- {
- action (Ssh);
- }
-
- public override void Cancel ()
- {
- Ssh.Cancel ();
- }
- }
-}
-
diff --git a/extras/MonoDevelop.MeeGo/Templates/MeeGoGtkProject.xpt.xml b/extras/MonoDevelop.MeeGo/Templates/MeeGoGtkProject.xpt.xml
deleted file mode 100644
index a391521277..0000000000
--- a/extras/MonoDevelop.MeeGo/Templates/MeeGoGtkProject.xpt.xml
+++ /dev/null
@@ -1,109 +0,0 @@
-<?xml version="1.0"?>
-<Template originator = "Michael Hutchinson"
- created = "2010/02/18"
- lastModified = "2010/02/18">
-
- <!-- Template Header -->
- <TemplateConfiguration>
- <_Name>MeeGo Gtk# Project</_Name>
- <_Category>C#/MeeGo</_Category>
- <Icon>md-project-gui</Icon>
- <LanguageName>C#</LanguageName>
- <_Description>A GTK# based project for MeeGo.</_Description>
- </TemplateConfiguration>
-
- <!-- Actions -->
- <Actions>
- <Open filename = "Main.cs"/>
- </Actions>
-
- <!-- Template Content -->
- <Combine name = "${ProjectName}" directory = ".">
- <Options>
- <StartupProject>${ProjectName}</StartupProject>
- </Options>
-
- <Project name = "${ProjectName}" directory = "." type = "MeeGo">
- <Options Target = "WinExe"/>
-
- <References>
- <Reference type="Gac" refto="System" />
- <Reference type="Gac" refto="System.Xml" />
- <Reference type="Gac" refto="System.Core" />
- <Reference type="Gac" SpecificVersion="false" refto="gtk-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
- <Reference type="Gac" SpecificVersion="false" refto="gdk-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
- <Reference type="Gac" SpecificVersion="false" refto="glib-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
- <Reference type="Gac" SpecificVersion="false" refto="pango-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
- <Reference type="Gac" SpecificVersion="false" refto="atk-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
- </References>
-
- <Files>
-
- <!-- A window template -->
-
- <Widget>
- <SteticTemplate>
- <widget class="Gtk.Window" id="${Namespace}.MainWindow" design-size="1024 600">
- <property name="Title" translatable="yes">${Name}</property>
- <property name="WindowPosition">CenterOnParent</property>
- <signal name="DeleteEvent" handler="OnDeleteEvent" />
- <child>
- <placeholder />
- </child>
- </widget>
- </SteticTemplate>
-
- <!-- Class bound to the window -->
-
- <File name="MainWindow.cs" AddStandardHeader="True">
-<![CDATA[using System;
-using Gtk;
-
-namespace ${Namespace}
-{
-
- public partial class MainWindow: Gtk.Window
- {
- public MainWindow (): base (Gtk.WindowType.Toplevel)
- {
- Build ();
-
- //your custom initialization code goes here
- }
-
- protected void OnDeleteEvent (object sender, DeleteEventArgs a)
- {
- Application.Quit ();
- a.RetVal = true;
- }
- }
-}]]>
- </File>
- </Widget>
-
- <!-- The main class -->
-
- <File name="Main.cs" AddStandardHeader="True">
-<![CDATA[using System;
-using Gtk;
-
-namespace ${Namespace}
-{
- class MainClass
- {
- public static void Main (string[] args)
- {
- Application.Init ();
- MainWindow win = new MainWindow ();
- win.Show ();
- Application.Run ();
- }
- }
-}]]>
- </File>
-
- <FileTemplateReference TemplateID="CSharpAssemblyInfo" name="AssemblyInfo.cs" />
- </Files>
- </Project>
- </Combine>
-</Template>
diff --git a/extras/MonoDevelop.MeeGo/configure b/extras/MonoDevelop.MeeGo/configure
deleted file mode 100755
index c454df89e3..0000000000
--- a/extras/MonoDevelop.MeeGo/configure
+++ /dev/null
@@ -1,71 +0,0 @@
-#!/usr/bin/env bash
-prefix=/usr/local
-common_packages=" mono-addins;0.3 monodevelop;4.2.3 monodevelop-core-addins;2.7"
-
-usage ()
-{
- echo "Usage : configure [OPTION]... [--config=CONFIG]"
- echo
- echo "Options:"
- echo " --prefix=PREFIX install architecture-independent files in PREFIX"
- echo " [/usr/local]"
- echo
-}
-check_package ()
-{
- name=`echo $1 | cut -d\; -f1`
- version=`echo $1 | cut -d\; -f2`
-
- echo -n "Checking for package '$name'.." | tee -a config.log
- pkg-config --atleast-version=$version $name
- if [ $? -ne 0 ]; then
- echo " ERROR: Package named '$name' >= $version not found." | tee -a config.log
- echo "Try adjusting your PKG_CONFIG_PATH environment variable." | tee -a config.log
- return 1
- fi
- echo " found." | tee -a config.log
-}
-
-check_required_packages ()
-{
- echo "Looking for required packages" | tee config.log
- var=required_packages_$config
- for pkg in $common_packages ${!var}; do
- check_package $pkg
- retval=$?
- [ $retval -ne 0 ] && return $retval
- done
- return 0
-}
-
-while test x$1 != x; do
- case $1 in
- --prefix=*)
- prefix=`echo $1 | sed 's/--prefix=//'`
- ;;
- --prefix)
- shift
- prefix=$1
- ;;
- --help)
- usage
- exit
- ;;
- *)
- echo Unknown argument $1 >&2
- usage
- exit 1
- ;;
- esac
- shift
-done
-
-check_required_packages
-[ $? -eq 1 ] && exit 1
-
-echo "prefix=$prefix" > config.make
-
-echo
-echo "$PACKAGE has been configured with "
-echo " prefix = $prefix"
-echo
diff --git a/extras/MonoDevelop.Profiling/AUTHORS b/extras/MonoDevelop.Profiling/AUTHORS
deleted file mode 100644
index f809ff555c..0000000000
--- a/extras/MonoDevelop.Profiling/AUTHORS
+++ /dev/null
@@ -1 +0,0 @@
-Ben Motmans <ben.motmans@gmail.com>
diff --git a/extras/MonoDevelop.Profiling/COPYING b/extras/MonoDevelop.Profiling/COPYING
deleted file mode 100644
index 618c9ea81e..0000000000
--- a/extras/MonoDevelop.Profiling/COPYING
+++ /dev/null
@@ -1,23 +0,0 @@
-
-The MIT License
-
-Copyright (c) 2007 Ben Motmans <ben.motmans@gmail.com>
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
-
diff --git a/extras/MonoDevelop.Profiling/ChangeLog b/extras/MonoDevelop.Profiling/ChangeLog
deleted file mode 100644
index d7f91db933..0000000000
--- a/extras/MonoDevelop.Profiling/ChangeLog
+++ /dev/null
@@ -1,74 +0,0 @@
-2010-06-14 Lluis Sanchez Gual <lluis@novell.com>
-
- * configure.in: Bump MD version.
-
-2010-05-20 Lluis Sanchez Gual <lluis@novell.com>
-
- * configure.in: Bump MD version.
-
-2010-03-22 Lluis Sanchez Gual <lluis@novell.com>
-
- * configure.in: Bumped MD version.
-
-2010-03-17 Lluis Sanchez Gual <lluis@novell.com>
-
- * MonoDevelop.Profiling.mds: Merged MD.Projects into MD.Core,
- and MD.Projects.Gui, MD.Core.Gui and MD.Components into
- MD.Ide.
-
-2009-10-30 Lluis Sanchez Gual <lluis@novell.com>
-
- * configure.in: Bump MD version.
-
-2009-10-07 Lluis Sanchez Gual <lluis@novell.com>
-
- * configure.in: Bump MD version.
-
-2009-08-26 Lluis Sanchez Gual <lluis@novell.com>
-
- * configure.in: We now depend on gtk# 2.12.8, Mono 2.4, and
- Mono.Addins 0.4.
-
-2009-04-15 Lluis Sanchez Gual <lluis@novell.com>
-
- * configure.in: Bump MD version.
-
-2009-02-26 Michael Hutchinson <mhutchinson@novell.com>
-
- * MonoDevelop.Profiling.mds: Remove unused attribute.
-
-2009/02/03 Lluis Sanchez Gual <lluis@novell.com>
-
- * configure.in: Bump MD version.
-
-2008-11-05 Lluis Sanchez Gual <lluis@novell.com>
-
- * configure.in: Bump MD version.
-
-2008-06-04 Lluis Sanchez Gual <lluis@novell.com>
-
- * configure.in: Bump MD version.
-
-2008-05-21 Lluis Sanchez Gual <lluis@novell.com>
-
- * MonoDevelop.Profiling.mds: New project model changes and updates.
-
-2007-12-27 Ben Motmans <ben.motmans@gmail.com>
-
- * Added svn:ignore mask for autogenerated files
-
-2007-12-27 Ben Motmans <ben.motmans@gmail.com>
-
- * configure.in: patch from Zach Lute to fix a compilation problem when
- monodevelop isn't installed [fixes #350769]
-
-2007-12-19 Ben Motmans <ben.motmans@gmail.com>
-
- * MonoDevelop.Profiling, MonoDevelop.Profiling.HeapBuddy,
- MonoDevelop.Profiling.HeapShot, MonoDevelop.Profiling.mds: Initial code
- commit
- * monodevelop-profiling.pc.in, AUTHORS, configure.in, README,
- Makefile.include, build, COPYING, Makefile.am, autogen.sh, NEWS, po,
- po/Makefile.am: makefile+project stuff
-
-
diff --git a/extras/MonoDevelop.Profiling/Makefile.am b/extras/MonoDevelop.Profiling/Makefile.am
deleted file mode 100644
index 23735fd796..0000000000
--- a/extras/MonoDevelop.Profiling/Makefile.am
+++ /dev/null
@@ -1,28 +0,0 @@
-SUBDIRS = \
- MonoDevelop.Profiling \
- MonoDevelop.Profiling.HeapShot \
- MonoDevelop.Profiling.HeapBuddy \
- po
-
-all:
-
-pkgconfig_in_files = monodevelop-profiling.pc.in
-
-pkgconfigdir= $(prefix)/lib/pkgconfig
-pkgconfig_DATA = $(pkgconfig_in_files:.pc.in=.pc)
-
-PACKAGES =
-
-mpacks: $(PACKAGES)
- test -z "packages" || mkdir -p packages
- mdtool setup p $(PACKAGES:%=%) -d:packages
- mdtool setup rb packages
-
-### SYNCH BLOCK: any changes to this line should be kept in sync with the corresponding block in Makefile.am
-MD_PKG_CONFIG_PATH=$(gtksharp_prefix)/lib/pkgconfig/:/usr/lib/pkgconfig/:/usr/local/lib/pkgconfig/:/usr/share/pkgconfig/:/usr/local/share/pkgconfig/$(shell if test -d /usr/lib64; then echo ":/usr/lib64/pkgconfig/:/usr/local/lib64/pkgconfig/"; fi)
-### END BLOCK
-
-# we can't use the variables that are conditionally defined
-EXTRA_DIST = $(pkgconfig_in_files)
-
-DISTCLEANFILES = $(pkgconfig_DATA)
diff --git a/extras/MonoDevelop.Profiling/Makefile.include b/extras/MonoDevelop.Profiling/Makefile.include
deleted file mode 100644
index c2b369a673..0000000000
--- a/extras/MonoDevelop.Profiling/Makefile.include
+++ /dev/null
@@ -1,4 +0,0 @@
-build_sources = $(addprefix $(srcdir)/, $(FILES)) $(GENERATED_FILES)
-build_resources = $(addprefix $(srcdir)/, $(RES))
-build_test_sources = $(addprefix $(srcdir)/, $(TESTFILES)) $(GENERATED_FILES)
-
diff --git a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/AssemblyInfo.cs b/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/AssemblyInfo.cs
deleted file mode 100644
index ae93069a08..0000000000
--- a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/AssemblyInfo.cs
+++ /dev/null
@@ -1,9 +0,0 @@
-// Autogenerated from MonoDevelop.Profiling.HeapBuddy.addin.xml
-
-using System.Reflection;
-
-[assembly: AssemblyProduct ("MonoDevelop")]
-[assembly: AssemblyTitle ("HeapBuddy Profiler Add-in")]
-[assembly: AssemblyDescription ("HeapBuddy Profiler Add-in")]
-[assembly: AssemblyVersion ("0.2.0")]
-[assembly: AssemblyCopyright ("MIT X11")]
diff --git a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/ChangeLog b/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/ChangeLog
deleted file mode 100644
index 2a9d6fffb0..0000000000
--- a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/ChangeLog
+++ /dev/null
@@ -1,129 +0,0 @@
-2010-03-22 Lluis Sanchez Gual <lluis@novell.com>
-
- * MonoDevelop.Profiling.HeapBuddy.addin.xml: Bumped MD
- version.
-
-2010-03-17 Lluis Sanchez Gual <lluis@novell.com>
-
- * HeapBuddyProfiler.cs:
- * Gui/TypesNodeBuilder.cs:
- * Gui/HistoryNodeBuilder.cs:
- * Gui/BacktracesNodeBuilder.cs:
- * MonoDevelop.Profiling.HeapBuddy.mdp:
- * MonoDevelop.Profiling.HeapBuddy.addin.xml:
- * Gui/HeapBuddyProfilingSnapshotNodeBuilder.cs: Merged
- MD.Projects into MD.Core, and MD.Projects.Gui, MD.Core.Gui
- and MD.Components into MD.Ide.
-
-2009-10-30 Lluis Sanchez Gual <lluis@novell.com>
-
- * MonoDevelop.Profiling.HeapBuddy.addin.xml: Bump MD version.
-
-2009-10-07 Lluis Sanchez Gual <lluis@novell.com>
-
- * MonoDevelop.Profiling.HeapBuddy.addin.xml: Bump MD version.
-
-2009-04-15 Lluis Sanchez Gual <lluis@novell.com>
-
- * MonoDevelop.Profiling.HeapBuddy.addin.xml: Bump MD version.
-
-2009/02/03 Lluis Sanchez Gual <lluis@novell.com>
-
- * AssemblyInfo.cs:
- * MonoDevelop.Profiling.HeapBuddy.addin.xml: Bump MD version.
-
-2009-01-26 Michael Hutchinson <mhutchinson@novell.com>
-
- * MonoDevelop.Profiling.HeapBuddy.mdp: Flush project format changes.
-
-2008-12-02 Michael Hutchinson <mhutchinson@novell.com>
-
- * Makefile.am:
- * AssemblyInfo.cs:
- * MonoDevelop.Profiling.HeapBuddy.mdp: Add AssemblyInfo.cs files that
- are autogenerated from the addin manifests.
-
-2008-11-06 Michael Hutchinson <mhutchinson@novell.com>
-
- * Makefile.am: Fix build dependencies.
-
-2008-11-05 Lluis Sanchez Gual <lluis@novell.com>
-
- * MonoDevelop.Profiling.HeapBuddy.addin.xml: Bump MD version.
-
-2008-09-17 Lluis Sanchez Gual <lluis@novell.com>
-
- * MonoDevelop.Profiling.HeapBuddy.mdp: Updated projects.
-
-2008-09-04 Lluis Sanchez Gual <lluis@novell.com>
-
- * Gui/HeapBuddyProfilingSnapshotNodeBuilder.cs,
- Gui/HistoryNodeBuilder.cs, Gui/BacktracesNodeBuilder.cs,
- Gui/TypesNodeBuilder.cs: Moved the extensible tree view to its own
- directory.
-
-2008-08-18 Lluis Sanchez Gual <lluis@novell.com>
-
- * MonoDevelop.Profiling.HeapBuddy.mdp: Fix reference to
- Mono.TextEditor. The incorrect add-in version number causes
- problems in the makefile synchronization.
-
-2008-06-04 Lluis Sanchez Gual <lluis@novell.com>
-
- * MonoDevelop.Profiling.HeapBuddy.addin.xml: Bump MD version.
-
-2008-05-21 Lluis Sanchez Gual <lluis@novell.com>
-
- * Makefile.am: Fix makefiles.
-
-2008-05-21 Lluis Sanchez Gual <lluis@novell.com>
-
- * MonoDevelop.Profiling.HeapBuddy.mdp: New project model changes and
- updates.
-
-2008-03-10 Lluis Sanchez Gual <lluis@novell.com>
-
- * Gui/HeapBuddyProfilingSnapshotNodeBuilder.cs, HeapBuddyProfiler.cs:
- Track changes in the MessageService class.
-
-2008-02-20 Lluis Sanchez Gual <lluis@novell.com>
-
- * Gui/HeapBuddyProfilingSnapshotNodeBuilder.cs: Handle the delete key in
- TreeViewPad, so it will work event if the shortcut is not defined.
-
-2008-01-25 Lluis Sanchez Gual <lluis@novell.com>
-
- * MonoDevelop.Profiling.HeapBuddy.addin.xml: Update MD version.
-
-2008-01-22 Lluis Sanchez Gual <lluis@novell.com>
-
- * MonoDevelop.Profiling.HeapBuddy.addin.xml: Updated add-in category and
- description.
-
-2007-12-20 Ben Motmans <ben.motmans@gmail.com>
-
- * HeapBuddyProfiler.cs: show a warning message when trying to kill the
- profiler + handle snapshot failures
-
-2007-12-20 Ben Motmans <ben.motmans@gmail.com>
-
- * Makefile.am: automatic MD changes
-
-2007-12-19 Ben Motmans <ben.motmans@gmail.com>
-
- * Makefile.am: added missing makefiles
-
-2007-12-19 Ben Motmans <ben.motmans@gmail.com>
-
- * Snapshot, Snapshot/Util.cs, Snapshot/Backtrace.cs, Snapshot/Type.cs,
- Snapshot/Resize.cs, Snapshot/ObjectStats.cs, Snapshot/Gc.cs,
- Snapshot/OutfileReader.cs, Snapshot/Frame.cs,
- MonoDevelop.Profiling.HeapBuddy.addin.xml,
- MonoDevelop.Profiling.HeapBuddy.mdp, HeapBuddyProfilingSnapshot.cs, Gui,
- Gui/HeapBuddyProfilingSnapshotNodeBuilder.cs, Gui/HistoryView.cs,
- Gui/BacktracesView.cs, Gui/HistoryNodeBuilder.cs, Gui/FakeNodes.cs,
- Gui/BacktracesNodeBuilder.cs, Gui/TypesView.cs, Gui/TypesNodeBuilder.cs,
- ChangeLog, gtk-gui, gtk-gui/generated.cs, gtk-gui/gui.stetic,
- HeapBuddyProfiler.cs: Initial code commit
-
-
diff --git a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/Gui/BacktracesNodeBuilder.cs b/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/Gui/BacktracesNodeBuilder.cs
deleted file mode 100644
index 59f91e3a15..0000000000
--- a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/Gui/BacktracesNodeBuilder.cs
+++ /dev/null
@@ -1,84 +0,0 @@
-//
-// Authors:
-// Ben Motmans <ben.motmans@gmail.com>
-//
-// Copyright (C) 2007 Ben Motmans
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-using Gtk;
-using System;
-using MonoDevelop.Core;
-using MonoDevelop.Components.Commands;
-using MonoDevelop.Ide;
-using MonoDevelop.Ide.Gui;
-using MonoDevelop.Ide.Gui.Pads;
-using MonoDevelop.Ide.Gui.Components;
-
-namespace MonoDevelop.Profiling.HeapBuddy
-{
- public class BacktracesNodeBuilder : TypeNodeBuilder
- {
- public override System.Type NodeDataType {
- get { return typeof (BacktracesNode); }
- }
-
- public override string ContextMenuAddinPath {
- get { return "/MonoDevelop/Profiling/ContextMenu/ProfilingPad/HeapBuddyBacktracesNode"; }
- }
-
- public override System.Type CommandHandlerType {
- get { return typeof (BacktracesNodeCommandHandler); }
- }
-
- public override string GetNodeName (ITreeNavigator thisNode, object dataObject)
- {
- return GettextCatalog.GetString ("Backtraces");
- }
-
- public override void BuildNode (ITreeBuilder builder, object dataObject, ref string label, ref Gdk.Pixbuf icon, ref Gdk.Pixbuf closedIcon)
- {
- label = GettextCatalog.GetString ("Backtraces");
- icon = Context.GetIcon ("md-class");
- }
-
- public override bool HasChildNodes (ITreeBuilder builder, object dataObject)
- {
- return false;
- }
- }
-
- public class BacktracesNodeCommandHandler : NodeCommandHandler
- {
- public override DragOperation CanDragNode ()
- {
- return DragOperation.None;
- }
-
- public override void ActivateItem ()
- {
- BacktracesNode node = (BacktracesNode)CurrentNode.DataItem;
- BacktracesView view = new BacktracesView ();
- view.Load (node.Snapshot);
- IdeApp.Workbench.OpenDocument (view, true);
- }
- }
-} \ No newline at end of file
diff --git a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/Gui/BacktracesView.cs b/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/Gui/BacktracesView.cs
deleted file mode 100644
index 9dc6108eef..0000000000
--- a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/Gui/BacktracesView.cs
+++ /dev/null
@@ -1,178 +0,0 @@
-//
-// Authors:
-// Ben Maurer <bmaurer@ximian.com>
-// Jon Trowbridge <trow@novell.com>
-// Ben Motmans <ben.motmans@gmail.com>
-//
-// Copyright (C) 2005 Novell, Inc.
-// Copyright (C) 2007 Ben Motmans
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-using Gtk;
-using System;
-using MonoDevelop.Core;
-using MonoDevelop.Ide.Gui;
-using MonoDevelop.Ide.Gui.Pads;
-
-namespace MonoDevelop.Profiling.HeapBuddy
-{
- public class BacktracesView : AbstractViewContent
- {
- private HeapBuddyProfilingSnapshot snapshot;
-
- private ScrolledWindow window;
- private TreeView tree;
- private TreeStore store;
-
- public BacktracesView ()
- {
- window = new ScrolledWindow ();
- tree = new TreeView ();
- tree.RulesHint = true;
-
- // icon type count #bytes avg size avg age
- store = new TreeStore (typeof (string), typeof (string), typeof (string), typeof (string), typeof (string), typeof (string), typeof (object));
- tree.Model = store;
-
- CellRendererPixbuf pixbufRenderer = new CellRendererPixbuf ();
- CellRendererText typeRenderer = new CellRendererText ();
- CellRendererText countRenderer = new CellRendererText ();
- CellRendererText totalSizeRenderer = new CellRendererText ();
- CellRendererText avgSizeRenderer = new CellRendererText ();
- CellRendererText avgAgeRenderer = new CellRendererText ();
-
- TreeViewColumn columnType = new TreeViewColumn ();
- TreeViewColumn columnCount = new TreeViewColumn ();
- TreeViewColumn columnTotalSize = new TreeViewColumn ();
- TreeViewColumn columnAvgSize = new TreeViewColumn ();
- TreeViewColumn columnAvgAge = new TreeViewColumn ();
-
- columnType.Title = GettextCatalog.GetString ("Type");
- columnCount.Title = GettextCatalog.GetString ("Count");
- columnTotalSize.Title = GettextCatalog.GetString ("Total Size");
- columnAvgSize.Title = GettextCatalog.GetString ("Avg Size");
- columnAvgAge.Title = GettextCatalog.GetString ("Avg Age");
-
- columnType.PackStart (pixbufRenderer, false);
- columnType.PackStart (typeRenderer, true);
- columnCount.PackStart (countRenderer, true);
- columnTotalSize.PackStart (totalSizeRenderer, true);
- columnAvgSize.PackStart (avgSizeRenderer, true);
- columnAvgAge.PackStart (avgAgeRenderer, true);
-
- columnType.AddAttribute (pixbufRenderer, "stock-id", 0);
- columnType.AddAttribute (typeRenderer, "text", 1);
- columnCount.AddAttribute (countRenderer, "text", 2);
- columnTotalSize.AddAttribute (totalSizeRenderer, "text", 3);
- columnAvgSize.AddAttribute (avgSizeRenderer, "text", 4);
- columnAvgAge.AddAttribute (avgAgeRenderer, "text", 5);
-
- tree.AppendColumn (columnType);
- tree.AppendColumn (columnCount);
- tree.AppendColumn (columnTotalSize);
- tree.AppendColumn (columnAvgSize);
- tree.AppendColumn (columnAvgAge);
-
- int nc = 0;
- foreach (TreeViewColumn c in tree.Columns) {
- store.SetSortFunc (nc, CompareNodes);
- c.SortColumnId = nc++;
- }
- store.SetSortColumnId (1, SortType.Descending);
-
- window.Add (tree);
- window.ShowAll ();
- }
-
- public override bool IsDirty {
- get { return false; }
- set { }
- }
-
- public override string StockIconId {
- get { return "md-method"; }
- }
-
- public override string UntitledName {
- get { return snapshot.Name + " - " + GettextCatalog.GetString ("Backtraces"); }
- }
-
- public override Widget Control {
- get { return window; }
- }
-
- public override void Load (string fileName) {}
-
- public void Load (HeapBuddyProfilingSnapshot snapshot)
- {
- this.snapshot = snapshot;
-
- foreach (Backtrace bt in snapshot.Outfile.Backtraces) {
- TreeIter iter = store.AppendValues ("md-class", bt.Type.Name, bt.LastObjectStats.AllocatedCount.ToString (),
- ProfilingService.PrettySize (bt.LastObjectStats.AllocatedTotalBytes),
- String.Format ("{0:0.0}", bt.LastObjectStats.AllocatedAverageBytes),
- String.Format ("{0:0.0}", bt.LastObjectStats.AllocatedAverageAge), bt);
-
- foreach (Frame frame in bt.Frames) {
- if (!frame.MethodName.StartsWith ("(wrapper"))
- store.AppendValues (iter, "md-method", frame.MethodName, String.Empty, String.Empty,
- String.Empty, String.Empty, frame);
- }
- }
- }
-
- int CompareNodes (Gtk.TreeModel model, Gtk.TreeIter a, Gtk.TreeIter b)
- {
- int col;
- SortType type;
- store.GetSortColumnId (out col, out type);
-
- object o1 = model.GetValue (a, 6);
- object o2 = model.GetValue (b, 6);
-
- if (o1 is Backtrace && o2 is Backtrace) {
- Backtrace b1 = (Backtrace) o1;
- Backtrace b2 = (Backtrace) o2;
- switch (col) {
- case 0:
- return string.Compare (b1.Type.Name, b2.Type.Name);
- case 1:
- return b1.LastObjectStats.AllocatedCount.CompareTo (b2.LastObjectStats.AllocatedCount);
- case 2:
- return b1.LastObjectStats.AllocatedTotalBytes.CompareTo (b2.LastObjectStats.AllocatedTotalBytes);
- case 3:
- return b1.LastObjectStats.AllocatedAverageBytes.CompareTo (b2.LastObjectStats.AllocatedAverageBytes);
- case 4:
- return b1.LastObjectStats.AllocatedAverageAge.CompareTo (b2.LastObjectStats.AllocatedAverageAge);
- default:
- return 1;
- }
- } else if (o1 is Frame && o2 is Frame) {
- return ((Frame)o1).MethodName.CompareTo (((Frame)o2).MethodName);
- } else if (o1 is Frame) {
- return 1;
- } else {
- return -1;
- }
- }
- }
-}
diff --git a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/Gui/FakeNodes.cs b/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/Gui/FakeNodes.cs
deleted file mode 100644
index d061c77310..0000000000
--- a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/Gui/FakeNodes.cs
+++ /dev/null
@@ -1,68 +0,0 @@
-//
-// Authors:
-// Ben Motmans <ben.motmans@gmail.com>
-//
-// Copyright (C) 2007 Ben Motmans
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-using System;
-
-namespace MonoDevelop.Profiling.HeapBuddy
-{
- internal abstract class BaseNode
- {
- protected HeapBuddyProfilingSnapshot snapshot;
-
- public BaseNode (HeapBuddyProfilingSnapshot snapshot)
- {
- this.snapshot = snapshot;
- }
-
- public HeapBuddyProfilingSnapshot Snapshot {
- get { return snapshot; }
- }
- }
-
- internal class HistoryNode : BaseNode
- {
- public HistoryNode (HeapBuddyProfilingSnapshot snapshot)
- : base (snapshot)
- {
- }
- }
-
- internal class TypesNode : BaseNode
- {
- public TypesNode (HeapBuddyProfilingSnapshot snapshot)
- : base (snapshot)
- {
- }
- }
-
- internal class BacktracesNode : BaseNode
- {
- public BacktracesNode (HeapBuddyProfilingSnapshot snapshot)
- : base (snapshot)
- {
- }
- }
-} \ No newline at end of file
diff --git a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/Gui/HeapBuddyProfilingSnapshotNodeBuilder.cs b/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/Gui/HeapBuddyProfilingSnapshotNodeBuilder.cs
deleted file mode 100644
index 3e73a5307c..0000000000
--- a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/Gui/HeapBuddyProfilingSnapshotNodeBuilder.cs
+++ /dev/null
@@ -1,127 +0,0 @@
-//
-// Authors:
-// Ben Motmans <ben.motmans@gmail.com>
-//
-// Copyright (C) 2007 Ben Motmans
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-using Gtk;
-using System;
-using MonoDevelop.Core;
-using MonoDevelop.Components.Commands;
-using MonoDevelop.Ide;
-using MonoDevelop.Ide.Gui;
-using MonoDevelop.Ide.Gui.Pads;
-using MonoDevelop.Ide.Gui.Components;
-
-namespace MonoDevelop.Profiling.HeapBuddy
-{
- public class HeapBuddyProfilingSnapshotNodeBuilder : TypeNodeBuilder
- {
- private EventHandler nameChangedHandler;
-
- public HeapBuddyProfilingSnapshotNodeBuilder ()
- {
- nameChangedHandler = (EventHandler)DispatchService.GuiDispatch (new EventHandler (OnNameChanged));
- }
-
- public override System.Type NodeDataType {
- get { return typeof (HeapBuddyProfilingSnapshot); }
- }
-
- public override string ContextMenuAddinPath {
- get { return "/MonoDevelop/Profiling/ContextMenu/ProfilingPad/HeapBuddyProfilingSnapshotNode"; }
- }
-
- public override string GetNodeName (ITreeNavigator thisNode, object dataObject)
- {
- HeapBuddyProfilingSnapshot snapshot = (HeapBuddyProfilingSnapshot)dataObject;
- return snapshot.Name;
- }
-
- public override void GetNodeAttributes (ITreeNavigator treeNavigator, object dataObject, ref NodeAttributes attributes)
- {
- attributes |= NodeAttributes.AllowRename;
- }
-
- public override System.Type CommandHandlerType {
- get { return typeof (HeapBuddyProfilingSnapshotNodeCommandHandler); }
- }
-
- public override void BuildNode (ITreeBuilder builder, object dataObject, ref string label, ref Gdk.Pixbuf icon, ref Gdk.Pixbuf closedIcon)
- {
- HeapBuddyProfilingSnapshot snapshot = (HeapBuddyProfilingSnapshot)dataObject;
- label = snapshot.Name;
- icon = Context.GetIcon ("md-prof-gc");
- snapshot.NameChanged += nameChangedHandler;
- }
-
- public override void BuildChildNodes (ITreeBuilder builder, object dataObject)
- {
- HeapBuddyProfilingSnapshot snapshot = (HeapBuddyProfilingSnapshot)dataObject;
- builder.AddChild (new HistoryNode (snapshot));
- builder.AddChild (new TypesNode (snapshot));
- builder.AddChild (new BacktracesNode (snapshot));
- builder.Expanded = true;
- }
-
- public override bool HasChildNodes (ITreeBuilder builder, object dataObject)
- {
- return true;
- }
-
- protected void OnNameChanged (object sender, EventArgs args)
- {
- ITreeBuilder builder = Context.GetTreeBuilder (sender);
- builder.Update ();
- }
- }
-
- public class HeapBuddyProfilingSnapshotNodeCommandHandler : NodeCommandHandler
- {
- public override DragOperation CanDragNode ()
- {
- return DragOperation.None;
- }
-
- public override void RenameItem (string newName)
- {
- IProfilingSnapshot snapshot = (IProfilingSnapshot)CurrentNode.DataItem;
- if (FileService.IsValidFileName (newName))
- snapshot.Name = newName;
- else
- MessageService.ShowError (GettextCatalog.GetString ("Invalid filename"));
- }
-
- public override void DeleteItem ()
- {
- IProfilingSnapshot snapshot = (IProfilingSnapshot)CurrentNode.DataItem;
- ProfilingService.RemoveSnapshot (snapshot);
- }
-
- [CommandHandler (MonoDevelop.Ide.Commands.EditCommands.Rename)]
- public void OnRenameSnapshot ()
- {
- Tree.StartLabelEdit ();
- }
- }
-} \ No newline at end of file
diff --git a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/Gui/HistoryNodeBuilder.cs b/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/Gui/HistoryNodeBuilder.cs
deleted file mode 100644
index 578dcb034a..0000000000
--- a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/Gui/HistoryNodeBuilder.cs
+++ /dev/null
@@ -1,84 +0,0 @@
-//
-// Authors:
-// Ben Motmans <ben.motmans@gmail.com>
-//
-// Copyright (C) 2007 Ben Motmans
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-using Gtk;
-using System;
-using MonoDevelop.Core;
-using MonoDevelop.Components.Commands;
-using MonoDevelop.Ide;
-using MonoDevelop.Ide.Gui;
-using MonoDevelop.Ide.Gui.Pads;
-using MonoDevelop.Ide.Gui.Components;
-
-namespace MonoDevelop.Profiling.HeapBuddy
-{
- public class HistoryNodeBuilder : TypeNodeBuilder
- {
- public override System.Type NodeDataType {
- get { return typeof (HistoryNode); }
- }
-
- public override string ContextMenuAddinPath {
- get { return "/MonoDevelop/Profiling/ContextMenu/ProfilingPad/HeapBuddyHistoryNode"; }
- }
-
- public override System.Type CommandHandlerType {
- get { return typeof (HistoryNodeCommandHandler); }
- }
-
- public override string GetNodeName (ITreeNavigator thisNode, object dataObject)
- {
- return GettextCatalog.GetString ("History");
- }
-
- public override void BuildNode (ITreeBuilder builder, object dataObject, ref string label, ref Gdk.Pixbuf icon, ref Gdk.Pixbuf closedIcon)
- {
- label = GettextCatalog.GetString ("History");
- icon = Context.GetIcon ("md-prof-history");
- }
-
- public override bool HasChildNodes (ITreeBuilder builder, object dataObject)
- {
- return false;
- }
- }
-
- public class HistoryNodeCommandHandler : NodeCommandHandler
- {
- public override DragOperation CanDragNode ()
- {
- return DragOperation.None;
- }
-
- public override void ActivateItem ()
- {
- HistoryNode node = (HistoryNode)CurrentNode.DataItem;
- HistoryView view = new HistoryView ();
- view.Load (node.Snapshot);
- IdeApp.Workbench.OpenDocument (view, true);
- }
- }
-} \ No newline at end of file
diff --git a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/Gui/HistoryView.cs b/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/Gui/HistoryView.cs
deleted file mode 100644
index c4a40505d3..0000000000
--- a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/Gui/HistoryView.cs
+++ /dev/null
@@ -1,180 +0,0 @@
-//
-// Authors:
-// Ben Maurer <bmaurer@ximian.com>
-// Jon Trowbridge <trow@novell.com>
-// Ben Motmans <ben.motmans@gmail.com>
-//
-// Copyright (C) 2005 Novell, Inc.
-// Copyright (C) 2007 Ben Motmans
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-using Gtk;
-using System;
-using MonoDevelop.Core;
-using MonoDevelop.Ide.Gui;
-using MonoDevelop.Ide.Gui.Pads;
-
-namespace MonoDevelop.Profiling.HeapBuddy
-{
- public class HistoryView : AbstractViewContent
- {
- private HeapBuddyProfilingSnapshot snapshot;
-
- private ScrolledWindow window;
- private TreeView list;
- private ListStore store;
-
- public HistoryView ()
- {
- window = new ScrolledWindow ();
- list = new TreeView ();
- list.RulesHint = true;
-
- store = new ListStore (typeof (string), typeof (string), typeof (string));
- list.Model = store;
-
- CellRendererText timeRenderer = new CellRendererText ();
- CellRendererText eventRenderer = new CellRendererText ();
- CellRendererText descRenderer = new CellRendererText ();
-
- TreeViewColumn columnTime = new TreeViewColumn ();
- TreeViewColumn columnEvent = new TreeViewColumn ();
- TreeViewColumn columnDesc = new TreeViewColumn ();
-
- columnTime.Title = GettextCatalog.GetString ("Time");
- columnEvent.Title = GettextCatalog.GetString ("Event");
- columnDesc.Title = GettextCatalog.GetString ("Description");
-
- columnTime.PackStart (timeRenderer, true);
- columnEvent.PackStart (eventRenderer, true);
- columnDesc.PackStart (descRenderer, true);
-
- columnTime.AddAttribute (timeRenderer, "text", 0);
- columnEvent.AddAttribute (eventRenderer, "text", 1);
- columnDesc.AddAttribute (descRenderer, "text", 2);
-
- list.AppendColumn (columnTime);
- list.AppendColumn (columnEvent);
- list.AppendColumn (columnDesc);
-
- window.Add (list);
- window.ShowAll ();
- }
-
- public override bool IsDirty {
- get { return false; }
- set { }
- }
-
- public override string StockIconId {
- get { return "md-prof-history"; }
- }
-
- public override string UntitledName {
- get { return snapshot.Name + " - " + GettextCatalog.GetString ("History"); }
- }
-
- public override Widget Control {
- get { return window; }
- }
-
- public override void Load (string fileName) {}
-
- public void Load (HeapBuddyProfilingSnapshot snapshot)
- {
- this.snapshot = snapshot;
- OutfileReader reader = snapshot.Outfile;
-
- Resize[] resizes = reader.Resizes;
- Gc[] gcs = reader.Gcs;
-
- int i_resize = 0;
- int i_gc = 0;
- long heap_size = 0;
-
- while (i_resize < resizes.Length || i_gc < gcs.Length) {
-
- Resize r = null;
- if (i_resize < resizes.Length)
- r = resizes [i_resize];
-
- Gc gc = null;
- if (i_gc < gcs.Length)
- gc = gcs [i_gc];
-
- string timestamp, tag, message;
-
- if (r != null && (gc == null || r.Generation <= gc.Generation)) {
- timestamp = string.Format ("{0:HH:mm:ss}", r.Timestamp);
-
- if (r.PreviousSize == 0) {
- tag = GettextCatalog.GetString ("Init");
- message = String.Format (GettextCatalog.GetString ("Initialized heap to {0}"),
- ProfilingService.PrettySize (r.NewSize));
- } else {
- tag = GettextCatalog.GetString ("Resize");
- message = String.Format (GettextCatalog.GetString ("Grew heap from {0} to {1}") +
- Environment.NewLine +
- GettextCatalog.GetString ("{2} in {3} live objects") +
- Environment.NewLine +
- GettextCatalog.GetString ("Heap went from {4:0.0}% to {5:0.0}% capacity"),
- ProfilingService.PrettySize (r.PreviousSize),
- ProfilingService.PrettySize (r.NewSize),
- ProfilingService.PrettySize (r.TotalLiveBytes),
- r.TotalLiveObjects,
- r.PreResizeCapacity, r.PostResizeCapacity);
- }
-
- heap_size = r.NewSize;
- ++i_resize;
-
- } else {
- timestamp = String.Format ("{0:HH:mm:ss}", gc.Timestamp);
- if (gc.Generation >= 0) {
- tag = GettextCatalog.GetString ("GC ") + gc.Generation;
- message = String.Format (GettextCatalog.GetString ("Collected {0} of {1} objects ({2:0.0}%)") +
- Environment.NewLine +
- GettextCatalog.GetString ("Collected {3} of {4} ({5:0.0}%)") +
- Environment.NewLine +
- GettextCatalog.GetString ("Heap went from {6:0.0}% to {7:0.0}% capacity"),
- gc.FreedObjects,
- gc.PreGcLiveObjects,
- gc.FreedObjectsPercentage,
- ProfilingService.PrettySize (gc.FreedBytes),
- ProfilingService.PrettySize (gc.PreGcLiveBytes),
- gc.FreedBytesPercentage,
- 100.0 * gc.PreGcLiveBytes / heap_size,
- 100.0 * gc.PostGcLiveBytes / heap_size);
- } else {
- tag = GettextCatalog.GetString ("Exit");
- message = String.Format (GettextCatalog.GetString ("{0} live objects using {1}"),
- gc.PreGcLiveObjects,
- ProfilingService.PrettySize (gc.PreGcLiveBytes));
- }
- ++i_gc;
- }
-
- store.AppendValues (timestamp, tag, message);
- }
- }
- }
-}
diff --git a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/Gui/TypesNodeBuilder.cs b/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/Gui/TypesNodeBuilder.cs
deleted file mode 100644
index 1121503758..0000000000
--- a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/Gui/TypesNodeBuilder.cs
+++ /dev/null
@@ -1,84 +0,0 @@
-//
-// Authors:
-// Ben Motmans <ben.motmans@gmail.com>
-//
-// Copyright (C) 2007 Ben Motmans
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-using Gtk;
-using System;
-using MonoDevelop.Core;
-using MonoDevelop.Components.Commands;
-using MonoDevelop.Ide;
-using MonoDevelop.Ide.Gui;
-using MonoDevelop.Ide.Gui.Pads;
-using MonoDevelop.Ide.Gui.Components;
-
-namespace MonoDevelop.Profiling.HeapBuddy
-{
- public class TypesNodeBuilder : TypeNodeBuilder
- {
- public override System.Type NodeDataType {
- get { return typeof (TypesNode); }
- }
-
- public override string ContextMenuAddinPath {
- get { return "/MonoDevelop/Profiling/ContextMenu/ProfilingPad/HeapBuddyTypesNode"; }
- }
-
- public override System.Type CommandHandlerType {
- get { return typeof (TypesNodeCommandHandler); }
- }
-
- public override string GetNodeName (ITreeNavigator thisNode, object dataObject)
- {
- return GettextCatalog.GetString ("Types");
- }
-
- public override void BuildNode (ITreeBuilder builder, object dataObject, ref string label, ref Gdk.Pixbuf icon, ref Gdk.Pixbuf closedIcon)
- {
- label = GettextCatalog.GetString ("Types");
- icon = Context.GetIcon ("md-method");
- }
-
- public override bool HasChildNodes (ITreeBuilder builder, object dataObject)
- {
- return false;
- }
- }
-
- public class TypesNodeCommandHandler : NodeCommandHandler
- {
- public override DragOperation CanDragNode ()
- {
- return DragOperation.None;
- }
-
- public override void ActivateItem ()
- {
- TypesNode node = (TypesNode)CurrentNode.DataItem;
- TypesView view = new TypesView ();
- view.Load (node.Snapshot);
- IdeApp.Workbench.OpenDocument (view, true);
- }
- }
-} \ No newline at end of file
diff --git a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/Gui/TypesView.cs b/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/Gui/TypesView.cs
deleted file mode 100644
index b7d5efb1a9..0000000000
--- a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/Gui/TypesView.cs
+++ /dev/null
@@ -1,179 +0,0 @@
-//
-// Authors:
-// Ben Maurer <bmaurer@ximian.com>
-// Jon Trowbridge <trow@novell.com>
-// Ben Motmans <ben.motmans@gmail.com>
-//
-// Copyright (C) 2005 Novell, Inc.
-// Copyright (C) 2007 Ben Motmans
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-using Gtk;
-using System;
-using MonoDevelop.Core;
-using MonoDevelop.Ide.Gui;
-using MonoDevelop.Ide.Gui.Pads;
-
-namespace MonoDevelop.Profiling.HeapBuddy
-{
- public class TypesView : AbstractViewContent
- {
- private HeapBuddyProfilingSnapshot snapshot;
-
- private ScrolledWindow window;
- private TreeView list;
- private ListStore store;
-
- public TypesView ()
- {
- window = new ScrolledWindow ();
- list = new TreeView ();
- list.RulesHint = true;
-
- // icon type count #bytes avg size avg age # backtraces
- store = new ListStore (typeof (string), typeof (string), typeof (string), typeof (string), typeof (string), typeof (string), typeof (string), typeof (object));
- list.Model = store;
-
- CellRendererPixbuf pixbufRenderer = new CellRendererPixbuf ();
- CellRendererText typeRenderer = new CellRendererText ();
- CellRendererText countRenderer = new CellRendererText ();
- CellRendererText totalSizeRenderer = new CellRendererText ();
- CellRendererText avgSizeRenderer = new CellRendererText ();
- CellRendererText avgAgeRenderer = new CellRendererText ();
- CellRendererText backtracesRenderer = new CellRendererText ();
-
- TreeViewColumn columnType = new TreeViewColumn ();
- TreeViewColumn columnCount = new TreeViewColumn ();
- TreeViewColumn columnTotalSize = new TreeViewColumn ();
- TreeViewColumn columnAvgSize = new TreeViewColumn ();
- TreeViewColumn columnAvgAge = new TreeViewColumn ();
- TreeViewColumn columnBacktraces = new TreeViewColumn ();
-
- columnType.Title = GettextCatalog.GetString ("Type");
- columnCount.Title = GettextCatalog.GetString ("Count");
- columnTotalSize.Title = GettextCatalog.GetString ("Total Size");
- columnAvgSize.Title = GettextCatalog.GetString ("Avg Size");
- columnAvgAge.Title = GettextCatalog.GetString ("Avg Age");
- columnBacktraces.Title = GettextCatalog.GetString ("Backtraces");
-
- columnType.PackStart (pixbufRenderer, false);
- columnType.PackStart (typeRenderer, true);
- columnCount.PackStart (countRenderer, true);
- columnTotalSize.PackStart (totalSizeRenderer, true);
- columnAvgSize.PackStart (avgSizeRenderer, true);
- columnAvgAge.PackStart (avgAgeRenderer, true);
- columnBacktraces.PackStart (backtracesRenderer, true);
-
- columnType.AddAttribute (pixbufRenderer, "stock-id", 0);
- columnType.AddAttribute (typeRenderer, "text", 1);
- columnCount.AddAttribute (countRenderer, "text", 2);
- columnTotalSize.AddAttribute (totalSizeRenderer, "text", 3);
- columnAvgSize.AddAttribute (avgSizeRenderer, "text", 4);
- columnAvgAge.AddAttribute (avgAgeRenderer, "text", 5);
- columnBacktraces.AddAttribute (backtracesRenderer, "text", 6);
-
- list.AppendColumn (columnType);
- list.AppendColumn (columnCount);
- list.AppendColumn (columnTotalSize);
- list.AppendColumn (columnAvgSize);
- list.AppendColumn (columnAvgAge);
- list.AppendColumn (columnBacktraces);
-
- int nc = 0;
- foreach (TreeViewColumn c in list.Columns) {
- store.SetSortFunc (nc, CompareNodes);
- c.SortColumnId = nc++;
- }
- store.SetSortColumnId (1, SortType.Descending);
-
- window.Add (list);
- window.ShowAll ();
- }
-
- public override bool IsDirty {
- get { return false; }
- set { }
- }
-
- public override string StockIconId {
- get { return "md-class"; }
- }
-
- public override string UntitledName {
- get { return snapshot.Name + " - " + GettextCatalog.GetString ("Types"); }
- }
-
- public override Widget Control {
- get { return window; }
- }
-
- public override void Load (string fileName) {}
-
- public void Load (HeapBuddyProfilingSnapshot snapshot)
- {
- this.snapshot = snapshot;
-
- foreach (Type type in snapshot.Outfile.Types) {
- store.AppendValues ("md-class", type.Name, type.LastObjectStats.AllocatedCount.ToString (),
- ProfilingService.PrettySize (type.LastObjectStats.AllocatedTotalBytes),
- String.Format ("{0:0.0}", type.LastObjectStats.AllocatedAverageBytes),
- String.Format ("{0:0.0}", type.LastObjectStats.AllocatedAverageAge),
- type.BacktraceCount.ToString (), type);
- }
- }
-
- int CompareNodes (Gtk.TreeModel model, Gtk.TreeIter a, Gtk.TreeIter b)
- {
- int col;
- SortType type;
- store.GetSortColumnId (out col, out type);
-
- object o1 = model.GetValue (a, 7);
- object o2 = model.GetValue (b, 7);
-
- if (o1 is Type && o2 is Type) {
- Type t1 = (Type) o1;
- Type t2 = (Type) o2;
- switch (col) {
- case 0:
- return string.Compare (t1.Name, t2.Name);
- case 1:
- return t1.LastObjectStats.AllocatedCount.CompareTo (t2.LastObjectStats.AllocatedCount);
- case 2:
- return t1.LastObjectStats.AllocatedTotalBytes.CompareTo (t2.LastObjectStats.AllocatedTotalBytes);
- case 3:
- return t1.LastObjectStats.AllocatedAverageBytes.CompareTo (t2.LastObjectStats.AllocatedAverageBytes);
- case 4:
- return t1.LastObjectStats.AllocatedAverageAge.CompareTo (t2.LastObjectStats.AllocatedAverageAge);
- case 5:
- return t1.BacktraceCount.CompareTo (t2.BacktraceCount);
- default:
- return 1;
- }
- } else if (o1 is Type) {
- return 1;
- } else {
- return -1;
- }
- }
- }
-}
diff --git a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/HeapBuddyProfiler.cs b/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/HeapBuddyProfiler.cs
deleted file mode 100644
index 4df2808da1..0000000000
--- a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/HeapBuddyProfiler.cs
+++ /dev/null
@@ -1,181 +0,0 @@
-//
-// Authors:
-// Ben Motmans <ben.motmans@gmail.com>
-//
-// Copyright (C) 2007 Ben Motmans
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-using System;
-using System.IO;
-using System.Threading;
-using MonoDevelop.Core;
-using MonoDevelop.Ide;
-using MonoDevelop.Core.Execution;
-using MonoDevelop.Profiling;
-
-namespace MonoDevelop.Profiling.HeapBuddy
-{
- public class HeapBuddyProfiler : AbstractProfiler
- {
- public HeapBuddyProfiler()
- {
- CheckSupported ("libmono-profiler-heap-buddy");
- }
-
- public override string Identifier {
- get { return "heap-buddy"; }
- }
-
- public override string Name {
- get { return GettextCatalog.GetString ("Heap Buddy (Collect allocation statistics)"); }
- }
-
- public override string IconString {
- get { return "md-prof-gc"; }
- }
-
- public override string GetSnapshotFileName (string workingDirectory, string filename)
- {
- if (filename == null && workingDirectory == null)
- return "outfile";
- else if (filename == null)
- return Path.Combine (workingDirectory, "outfile");
- else
- return filename;
- }
-
- public override void TakeSnapshot ()
- {
- AlertButton button = new AlertButton (GettextCatalog.GetString ("Terminate"));
- bool terminate = MessageService.Confirm (
- GettextCatalog.GetString ("Heap-Buddy requires the application to terminate cleanly.\nAre you sure you want to terminate the application (this might result in the loss of some profiling data)?")
- , button
- );
-
- if (terminate) {
- lock (sync) {
- State = ProfilerState.TakingSnapshot;
-
- System.Diagnostics.Process.Start ("kill", "-PROF " + Context.AsyncOperation.ProcessId);
- ThreadPool.QueueUserWorkItem (new WaitCallback (AsyncTakeSnapshot));
- }
- }
- }
-
- private void AsyncTakeSnapshot (object state)
- {
- string dumpFile = null;
- lock (sync)
- dumpFile = Context.FileName;
-
- int attempts = 40;
- bool success = false;
-
- while (!success) {
- if (--attempts == 0) {
- OnSnapshotFailed (EventArgs.Empty);
- return;
- }
-
- Thread.Sleep (500);
- if (!File.Exists (dumpFile))
- continue;
-
- try {
- string destFile = GetSaveLocation ();
- if (destFile != null) { //ignore if Cancel is clicked in the save dialog
- File.Copy (dumpFile, destFile);
- File.Delete (dumpFile);
-
- IProfilingSnapshot snapshot = new HeapBuddyProfilingSnapshot (this, destFile);
- OnSnapshotTaken (new ProfilingSnapshotEventArgs (snapshot));
- }
- success = true;
- } catch (Exception ex) {
- LoggingService.LogError ("HeapBuddyProfiler", "AsyncTakeSnapshot", ex);
- }
- }
-
- Stop ();
- }
-
- public override void Start (ProfilingContext context)
- {
- base.Start (context);
-
- context.AsyncOperation.Completed += new OperationHandler (OnOperationCompleted);
- }
-
- private void OnOperationCompleted (IAsyncOperation op)
- {
- lock (sync) {
- if (State != ProfilerState.TakingSnapshot) {
- State = ProfilerState.TakingSnapshot;
- ThreadPool.QueueUserWorkItem (new WaitCallback (AsyncTakeSnapshot));
- } //else: ignore, the process is killed using TakeSnapshot and AsyncTakeSnapshot is already called
- }
- }
-
- public override void Stop ()
- {
- lock (sync) {
- if (State != ProfilerState.Inactive) {
- Context.AsyncOperation.Cancel ();
- State = ProfilerState.Inactive;
- }
- }
- }
-
- public override bool CanLoad (string filename)
- {
- if (filename == null)
- throw new ArgumentNullException ("filename");
-
- using (Stream stream = new FileStream (filename, FileMode.Open, FileAccess.Read)) {
- using (BinaryReader reader = new BinaryReader (stream)) {
- uint magic_number = reader.ReadUInt32 ();
- if (magic_number != 0x4eabbdd1)
- return false;
-
- reader.ReadInt32 (); //skip the version
- string label = reader.ReadString ();
-
- return label == "heap-buddy logfile" || label == "heap-buddy summary";
- }
- }
- }
-
- public override IProfilingSnapshot Load (string filename)
- {
- return new HeapBuddyProfilingSnapshot (this, filename);
- }
-
- public override string GetSaveLocation ()
- {
- string location = null;
- DispatchService.GuiSyncDispatch (new MessageHandler (delegate () {
- location = GetSaveLocation ("HeapBuddy Snapshots", null);
- }));
- return location;
- }
- }
-}
diff --git a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/HeapBuddyProfilingSnapshot.cs b/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/HeapBuddyProfilingSnapshot.cs
deleted file mode 100644
index 025d3569c5..0000000000
--- a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/HeapBuddyProfilingSnapshot.cs
+++ /dev/null
@@ -1,115 +0,0 @@
-//
-// Authors:
-// Ben Motmans <ben.motmans@gmail.com>
-//
-// Copyright (C) 2007 Ben Motmans
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-using System;
-using System.IO;
-using System.ComponentModel;
-using MonoDevelop.Profiling;
-
-namespace MonoDevelop.Profiling.HeapBuddy
-{
- public class HeapBuddyProfilingSnapshot : AbstractProfilingSnapshot
- {
- private OutfileReader outfile;
-
- public HeapBuddyProfilingSnapshot (HeapBuddyProfiler profiler, string filename)
- : base (profiler, filename)
- {
- }
-
- [Browsable (false)]
- public OutfileReader Outfile {
- get {
- if (outfile == null)
- outfile = new OutfileReader (filename);
- return outfile;
- }
- }
-
- [DefaultValue (false)]
- [Category ("Summary")]
- [DisplayName ("Allocated Objects Size")]
- [Description ("The size of the allocated objects.")]
- [Browsable (true)]
- public string AllocatedObjectsSize {
- get { return ProfilingService.PrettySize (outfile.TotalAllocatedBytes); }
- }
-
- [DefaultValue (false)]
- [Category ("Summary")]
- [DisplayName ("Allocated Objects Count")]
- [Description ("The number of the allocated objects.")]
- [Browsable (true)]
- public int AllocatedObjects {
- get { return outfile.TotalAllocatedObjects; }
- }
-
- [DefaultValue (false)]
- [Category ("Summary")]
- [DisplayName ("GCs")]
- [Description ("The number of times the garbage collector was executed.")]
- [Browsable (true)]
- public int GCs {
- get { return outfile.Gcs.Length; }
- }
-
- [DefaultValue (false)]
- [Category ("Summary")]
- [DisplayName ("Resizes")]
- [Description ("The number of times the heap was resized.")]
- [Browsable (true)]
- public int Resizes {
- get { return outfile.Resizes.Length; }
- }
-
- [DefaultValue (false)]
- [Category ("Summary")]
- [DisplayName ("Final Heap Size")]
- [Description ("The size of the heap when the application was closed.")]
- [Browsable (true)]
- public string FinalHeapSize {
- get { return ProfilingService.PrettySize (outfile.LastResize.NewSize); }
- }
-
- [DefaultValue (false)]
- [Category ("Summary")]
- [DisplayName ("Distinct Types")]
- [Description ("The number of unique types.")]
- [Browsable (true)]
- public int DistinctTypes {
- get { return outfile.Types.Length; }
- }
-
- [DefaultValue (false)]
- [Category ("Summary")]
- [DisplayName ("Backtraces")]
- [Description ("The number of backtraces.")]
- [Browsable (true)]
- public int Backtraces {
- get { return outfile.Backtraces.Length; }
- }
- }
-}
diff --git a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/Makefile.am b/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/Makefile.am
deleted file mode 100644
index 8a3c46d546..0000000000
--- a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/Makefile.am
+++ /dev/null
@@ -1,51 +0,0 @@
-ADDIN_BUILD = $(top_builddir)/build
-ASSEMBLY = $(ADDIN_BUILD)/MonoDevelop.Profiling.HeapBuddy.dll
-REFS = \
- $(GLIB_SHARP_LIBS) \
- $(GTK_SHARP_LIBS) \
- $(MONO_ADDINS_LIBS) \
- $(MONODEVELOP_LIBS) \
- -r:../build/MonoDevelop.Profiling.dll \
- -r:Mono.Posix \
- -r:System
-
-FILES = \
- AssemblyInfo.cs \
- gtk-gui/generated.cs \
- Gui/BacktracesNodeBuilder.cs \
- Gui/BacktracesView.cs \
- Gui/FakeNodes.cs \
- Gui/HeapBuddyProfilingSnapshotNodeBuilder.cs \
- Gui/HistoryNodeBuilder.cs \
- Gui/HistoryView.cs \
- Gui/TypesNodeBuilder.cs \
- Gui/TypesView.cs \
- HeapBuddyProfiler.cs \
- HeapBuddyProfilingSnapshot.cs \
- Snapshot/Backtrace.cs \
- Snapshot/Frame.cs \
- Snapshot/Gc.cs \
- Snapshot/ObjectStats.cs \
- Snapshot/OutfileReader.cs \
- Snapshot/Resize.cs \
- Snapshot/Type.cs \
- Snapshot/Util.cs
-
-RES = \
- gtk-gui/gui.stetic \
- MonoDevelop.Profiling.HeapBuddy.addin.xml
-
-all: $(ASSEMBLY)
-
-$(ASSEMBLY): $(build_sources) $(build_resources)
- mkdir -p $(ADDIN_BUILD)
- $(CSC) $(CSC_FLAGS) $(REFS) $(build_resources:%=/resource:%) $(build_sources) -out:$@ -target:library
-
-
-assemblydir = $(MD_ADDIN_DIR)/MonoDevelop.Profiling
-assembly_DATA = $(ASSEMBLY) $(ASSEMBLY).mdb
-
-CLEANFILES = $(ASSEMBLY) $(ASSEMBLY).mdb
-EXTRA_DIST = $(FILES) $(RES)
-
-include $(top_srcdir)/Makefile.include
diff --git a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/MonoDevelop.Profiling.HeapBuddy.addin.xml b/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/MonoDevelop.Profiling.HeapBuddy.addin.xml
deleted file mode 100644
index fcdad0a303..0000000000
--- a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/MonoDevelop.Profiling.HeapBuddy.addin.xml
+++ /dev/null
@@ -1,57 +0,0 @@
-<Addin id = "Profiling.HeapBuddy"
- namespace = "MonoDevelop"
- name = "HeapBuddy Profiler Add-in"
- author = "Ben Motmans"
- copyright = "MIT X11"
- url = "http://www.monodevelop.com"
- description = "HeapBuddy Profiler Add-in"
- category = "Profiling"
- version = "4.2.3">
-
- <Runtime>
- <Import assembly="MonoDevelop.Profiling.HeapBuddy.dll"/>
- </Runtime>
-
- <Dependencies>
- <Addin id="Core" version="4.2.3"/>
- <Addin id="Ide" version="4.2.3"/>
- <Addin id="Profiling" version="4.2.3"/>
- </Dependencies>
-
- <ExtensionPoint path = "/MonoDevelop/Profiling/ContextMenu/ProfilingPad/HeapBuddyProfilingSnapshotNode" name = "HeapBuddy snapshot node context menu">
- <Description>HeapBuddy snapshot node context menu.</Description>
- <ExtensionNodeSet id="MonoDevelop.Components.Commands.ItemSet"/>
- </ExtensionPoint>
-
- <ExtensionPoint path = "/MonoDevelop/Profiling/ContextMenu/ProfilingPad/HeapBuddyTypesNode" name = "HeapBuddy Types node context menu">
- <Description>HeapBuddy Types node context menu.</Description>
- <ExtensionNodeSet id="MonoDevelop.Components.Commands.ItemSet"/>
- </ExtensionPoint>
-
- <ExtensionPoint path = "/MonoDevelop/Profiling/ContextMenu/ProfilingPad/HeapBuddyBacktracesNode" name = "HeapBuddy Backtraces node context menu">
- <Description>HeapBuddy Backtraces node context menu.</Description>
- <ExtensionNodeSet id="MonoDevelop.Components.Commands.ItemSet"/>
- </ExtensionPoint>
-
- <ExtensionPoint path = "/MonoDevelop/Profiling/ContextMenu/ProfilingPad/HeapBuddyHistoryNode" name = "HeapBuddy History node context menu">
- <Description>HeapBuddy History node context menu.</Description>
- <ExtensionNodeSet id="MonoDevelop.Components.Commands.ItemSet"/>
- </ExtensionPoint>
-
- <Extension path = "/MonoDevelop/Profiling/Profilers">
- <Profiler class="MonoDevelop.Profiling.HeapBuddy.HeapBuddyProfiler" />
- </Extension>
-
- <Extension path = "/MonoDevelop/Ide/Pads/MonoDevelop.Profiling.ProfilingPad">
- <NodeBuilder id = "HeapBuddyProfilingSnapshotNodeBuilder" class = "MonoDevelop.Profiling.HeapBuddy.HeapBuddyProfilingSnapshotNodeBuilder"/>
- <NodeBuilder id = "HistoryNodeBuilder" class = "MonoDevelop.Profiling.HeapBuddy.HistoryNodeBuilder"/>
- <NodeBuilder id = "BacktracesNodeBuilder" class = "MonoDevelop.Profiling.HeapBuddy.BacktracesNodeBuilder"/>
- <NodeBuilder id = "TypesNodeBuilder" class = "MonoDevelop.Profiling.HeapBuddy.TypesNodeBuilder"/>
- </Extension>
-
- <Extension path = "/MonoDevelop/Profiling/ContextMenu/ProfilingPad/HeapBuddyProfilingSnapshotNode">
- <CommandItem id = "MonoDevelop.Ide.Commands.EditCommands.Rename"/>
- <SeparatorItem id = "DeleteSeparator" />
- <CommandItem id = "MonoDevelop.Ide.Commands.EditCommands.Delete" />
- </Extension>
-</Addin>
diff --git a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/MonoDevelop.Profiling.HeapBuddy.mdp b/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/MonoDevelop.Profiling.HeapBuddy.mdp
deleted file mode 100644
index 76b8630e15..0000000000
--- a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/MonoDevelop.Profiling.HeapBuddy.mdp
+++ /dev/null
@@ -1,68 +0,0 @@
-<Project name="MonoDevelop.Profiling.HeapBuddy" fileversion="2.0" DefaultNamespace="MonoDevelop.Profiling.HeapBuddy" language="C#" clr-version="Net_2_0" targetFramework=".NETFramework,Version=v4.0" ctype="DotNetProject">
- <MonoDevelop.Autotools.MakefileInfo IntegrationEnabled="True" RelativeMakefileName="Makefile.am" CleanTargetName="" SyncReferences="True" IsAutotoolsProject="True" RelativeConfigureInPath="..">
- <BuildFilesVar Sync="True" Name="FILES" />
- <DeployFilesVar />
- <ResourcesVar Sync="True" Name="RES" />
- <OthersVar />
- <GacRefVar Sync="True" Name="REFS" Prefix="-r:" />
- <AsmRefVar Sync="True" Name="REFS" Prefix="-r:" />
- <ProjectRefVar Sync="True" Name="REFS" Prefix="-r:" />
- </MonoDevelop.Autotools.MakefileInfo>
- <Configurations active="Debug">
- <Configuration name="Debug" ctype="DotNetProjectConfiguration">
- <Output directory="../build" assembly="MonoDevelop.Profiling.HeapBuddy" />
- <Build debugmode="True" target="Library" />
- <Execution consolepause="True" runwithwarnings="True" runtime="MsNet" clr-version="Net_2_0" />
- <CodeGeneration compiler="Mcs" warninglevel="4" optimize="True" unsafecodeallowed="False" generateoverflowchecks="True" generatexmldocumentation="False" ctype="CSharpCompilerParameters" />
- </Configuration>
- <Configuration name="Release" ctype="DotNetProjectConfiguration">
- <Output directory="../build" assembly="MonoDevelop.Profiling.HeapBuddy" />
- <Build debugmode="False" target="Library" />
- <Execution consolepause="True" runwithwarnings="True" runtime="MsNet" clr-version="Net_2_0" />
- <CodeGeneration compiler="Mcs" warninglevel="4" optimize="True" unsafecodeallowed="False" generateoverflowchecks="True" generatexmldocumentation="False" ctype="CSharpCompilerParameters" />
- </Configuration>
- </Configurations>
- <Contents>
- <File subtype="Code" buildaction="EmbedAsResource" name="gtk-gui/gui.stetic" />
- <File subtype="Code" buildaction="Compile" name="gtk-gui/generated.cs" />
- <File subtype="Code" buildaction="Compile" name="HeapBuddyProfiler.cs" />
- <File subtype="Code" buildaction="Compile" name="HeapBuddyProfilingSnapshot.cs" />
- <File subtype="Code" buildaction="Compile" name="Gui/BacktracesNodeBuilder.cs" />
- <File subtype="Code" buildaction="Compile" name="Gui/BacktracesView.cs" />
- <File subtype="Code" buildaction="Compile" name="Gui/FakeNodes.cs" />
- <File subtype="Code" buildaction="Compile" name="Gui/HeapBuddyProfilingSnapshotNodeBuilder.cs" />
- <File subtype="Code" buildaction="Compile" name="Gui/HistoryNodeBuilder.cs" />
- <File subtype="Code" buildaction="Compile" name="Gui/HistoryView.cs" />
- <File subtype="Code" buildaction="Compile" name="Gui/TypesNodeBuilder.cs" />
- <File subtype="Code" buildaction="Compile" name="Gui/TypesView.cs" />
- <File subtype="Code" buildaction="Compile" name="Snapshot/Backtrace.cs" />
- <File subtype="Code" buildaction="Compile" name="Snapshot/Frame.cs" />
- <File subtype="Code" buildaction="Compile" name="Snapshot/Gc.cs" />
- <File subtype="Code" buildaction="Compile" name="Snapshot/ObjectStats.cs" />
- <File subtype="Code" buildaction="Compile" name="Snapshot/OutfileReader.cs" />
- <File subtype="Code" buildaction="Compile" name="Snapshot/Resize.cs" />
- <File subtype="Code" buildaction="Compile" name="Snapshot/Type.cs" />
- <File subtype="Code" buildaction="Compile" name="Snapshot/Util.cs" />
- <File subtype="Code" buildaction="EmbedAsResource" name="MonoDevelop.Profiling.HeapBuddy.addin.xml" />
- <File subtype="Code" buildaction="Compile" name="AssemblyInfo.cs" />
- </Contents>
- <References>
- <ProjectReference type="Gac" localcopy="True" refto="MonoDevelop.Core, Version=0.18.0.0, Culture=neutral" />
- <ProjectReference type="Gac" localcopy="True" refto="MonoDevelop.Ide, Version=0.18.0.0, Culture=neutral" />
- <ProjectReference type="Gac" localcopy="True" refto="Mono.Addins, Version=0.3.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756" />
- <ProjectReference type="Project" localcopy="True" refto="MonoDevelop.Profiling" />
- <ProjectReference type="Gac" localcopy="True" refto="NRefactory, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null" />
- <ProjectReference type="Gac" localcopy="True" refto="Mono.Cecil, Version=0.6.8.8607, Culture=neutral, PublicKeyToken=null" />
- <ProjectReference type="Gac" localcopy="True" refto="glib-sharp, Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
- <ProjectReference type="Gac" localcopy="True" refto="pango-sharp, Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
- <ProjectReference type="Gac" localcopy="True" refto="atk-sharp, Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
- <ProjectReference type="Gac" localcopy="True" refto="gdk-sharp, Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
- <ProjectReference type="Gac" localcopy="True" refto="gtk-sharp, Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
- <ProjectReference type="Gac" localcopy="True" refto="Mono.TextEditor, Version=1.0.0.0, Culture=neutral" />
- <ProjectReference type="Custom" localcopy="True" Include="MonoDevelop.Core,2.2" refto="MonoDevelop.Core,2.2" ctype="AddinReference" />
- <ProjectReference type="Custom" localcopy="True" Include="MonoDevelop.Ide,2.2" refto="MonoDevelop.Ide,2.2" ctype="AddinReference" />
- <ProjectReference type="Gac" localcopy="True" refto="Mono.Debugging, Version=0.0.0.0, Culture=neutral, PublicKeyToken=5e9ce85b0923c84f" />
- <ProjectReference type="Gac" localcopy="True" refto="System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
- <ProjectReference type="Gac" localcopy="True" refto="Mono.Posix, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756" />
- </References>
-</Project> \ No newline at end of file
diff --git a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/Snapshot/Backtrace.cs b/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/Snapshot/Backtrace.cs
deleted file mode 100644
index 468233c09d..0000000000
--- a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/Snapshot/Backtrace.cs
+++ /dev/null
@@ -1,88 +0,0 @@
-//
-// Backtrace.cs
-//
-// Copyright (C) 2005 Novell, Inc.
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-using System;
-
-namespace MonoDevelop.Profiling.HeapBuddy
-{
- public class Backtrace
- {
-
- public Type Type;
-
- public int LastGeneration;
-
- public ObjectStats LastObjectStats;
-
- public Frame [] frames;
-
- uint code;
- OutfileReader reader;
-
- public Backtrace (uint code, OutfileReader reader)
- {
- this.code = code;
- this.reader = reader;
- }
-
- public uint Code {
- get { return code; }
- set { code = value; }
- }
-
- public Frame [] Frames {
-
- get {
- if (frames == null)
- frames = reader.GetFrames (code);
- return frames;
- }
-
- set {
- frames = value;
- }
- }
-
- public bool MatchesType (string pattern)
- {
- return Type.Matches (pattern);
- }
-
- public bool MatchesMethod (string pattern)
- {
- int n = Frames.Length;
- for (int i = 0; i < n; ++i)
- if (Util.ContainsNoCase (frames [i].MethodName, pattern))
- return true;
- return false;
- }
-
- public bool Matches (string pattern)
- {
- return MatchesType (pattern) || MatchesMethod (pattern);
- }
- }
-
-} \ No newline at end of file
diff --git a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/Snapshot/Frame.cs b/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/Snapshot/Frame.cs
deleted file mode 100644
index e9e2c5acca..0000000000
--- a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/Snapshot/Frame.cs
+++ /dev/null
@@ -1,38 +0,0 @@
-//
-// Frame.cs
-//
-// Copyright (C) 2005 Novell, Inc.
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-
-using System;
-using System.IO;
-
-namespace MonoDevelop.Profiling.HeapBuddy
-{
- public struct Frame
- {
- public uint MethodCode;
- public string MethodName;
- public string MethodArguments;
- public uint IlOffset;
- }
-
-} \ No newline at end of file
diff --git a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/Snapshot/Gc.cs b/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/Snapshot/Gc.cs
deleted file mode 100644
index 3894167f95..0000000000
--- a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/Snapshot/Gc.cs
+++ /dev/null
@@ -1,87 +0,0 @@
-//
-// Gc.cs
-//
-// Copyright (C) 2005 Novell, Inc.
-//
-
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-
-using System;
-using System.IO;
-
-namespace MonoDevelop.Profiling.HeapBuddy
-{
- public struct GcData
- {
- public Backtrace Backtrace;
- public ObjectStats ObjectStats;
- }
-
- public class Gc
- {
- public int Generation;
-
- public long TimeT;
- public DateTime Timestamp;
-
- public long PreGcLiveBytes;
- public int PreGcLiveObjects;
- public long PostGcLiveBytes;
- public int PostGcLiveObjects;
-
- private GcData [] gc_data;
- OutfileReader reader;
-
- /////////////////////////////////////////////////////////////////
-
- public Gc (OutfileReader reader)
- {
- this.reader = reader;
- }
-
- /////////////////////////////////////////////////////////////////
-
- public long FreedBytes {
- get { return PreGcLiveBytes - PostGcLiveBytes; }
- }
-
- public int FreedObjects {
- get { return PreGcLiveObjects - PostGcLiveObjects; }
- }
-
- public double FreedBytesPercentage {
- get { return PreGcLiveBytes == 0 ? 0 : 100.0 * FreedBytes / PreGcLiveBytes; }
- }
-
- public double FreedObjectsPercentage {
- get { return PreGcLiveObjects == 0 ? 0 : 100.0 * FreedObjects / PreGcLiveObjects; }
- }
-
- public GcData [] GcData {
- get {
- if (gc_data == null)
- gc_data = reader.GetGcData (Generation);
- return gc_data;
- }
-
- set { gc_data = value; }
- }
- }
-} \ No newline at end of file
diff --git a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/Snapshot/ObjectStats.cs b/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/Snapshot/ObjectStats.cs
deleted file mode 100644
index 76c30fefa4..0000000000
--- a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/Snapshot/ObjectStats.cs
+++ /dev/null
@@ -1,156 +0,0 @@
-//
-// ObjectStats.cs
-//
-// Copyright (C) 2005 Novell, Inc.
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-
-using System.IO;
-
-namespace MonoDevelop.Profiling.HeapBuddy
-{
- public struct ObjectStats
- {
- public uint AllocatedCount;
- public uint AllocatedTotalBytes;
- public uint AllocatedTotalAge;
- public uint AllocatedTotalWeight;
-
- public double AllocatedAverageBytes {
- get { return AllocatedCount != 0 ? AllocatedTotalBytes / (double) AllocatedCount : 0; }
- }
-
- public double AllocatedAverageAge {
- get { return AllocatedCount != 0 ? AllocatedTotalAge / (double) AllocatedCount : 0; }
- }
-
- public uint LiveCount;
- public uint LiveTotalBytes;
- public uint LiveTotalAge;
- public uint LiveTotalWeight;
-
- public double LiveAverageBytes {
- get { return LiveCount != 0 ? LiveTotalBytes / (double) LiveCount : 0; }
- }
-
- public double LiveAverageAge {
- get { return LiveCount != 0 ? LiveTotalAge / (double) LiveCount : 0; }
- }
-
-
- public uint DeadCount {
- get { return AllocatedCount - LiveCount; }
- }
-
- public uint DeadTotalBytes {
- get { return AllocatedTotalBytes - LiveTotalBytes; }
- }
-
- public uint DeadTotalAge {
- get { return AllocatedTotalAge - LiveTotalAge; }
- }
-
- public double DeadAverageBytes {
- get { return DeadCount != 0 ? DeadTotalBytes / (double) DeadCount : 0; }
- }
-
- public double DeadAverageAge {
- get { return DeadCount != 0 ? DeadTotalAge / (double) DeadCount : 0; }
- }
-
- public uint DeadTotalWeight {
- get { return AllocatedTotalWeight - LiveTotalWeight; }
- }
-
- /////////////////////////////////////////////////////
-
- public void Read (BinaryReader reader)
- {
- AllocatedCount = reader.ReadUInt32 ();
- AllocatedTotalBytes = reader.ReadUInt32 ();
- AllocatedTotalAge = reader.ReadUInt32 ();
- AllocatedTotalWeight = reader.ReadUInt32 ();
-
- LiveCount = reader.ReadUInt32 ();
- LiveTotalBytes = reader.ReadUInt32 ();
- LiveTotalAge = reader.ReadUInt32 ();
- LiveTotalWeight = reader.ReadUInt32 ();
- }
-
- public void Write (BinaryWriter writer)
- {
- writer.Write (AllocatedCount);
- writer.Write (AllocatedTotalBytes);
- writer.Write (AllocatedTotalAge);
- writer.Write (AllocatedTotalWeight);
-
- writer.Write (LiveCount);
- writer.Write (LiveTotalBytes);
- writer.Write (LiveTotalAge);
- writer.Write (LiveTotalWeight);
- }
-
- /////////////////////////////////////////////////////
-
- public void AddAllocatedOnly (ObjectStats other)
- {
- this.AllocatedCount += other.AllocatedCount;
- this.AllocatedTotalBytes += other.AllocatedTotalBytes;
- this.AllocatedTotalAge += other.AllocatedTotalAge;
- this.AllocatedTotalWeight += other.AllocatedTotalWeight;
- }
-
- /////////////////////////////////////////////////////
-
- static public ObjectStats operator + (ObjectStats a, ObjectStats b)
- {
- ObjectStats c = new ObjectStats ();
-
- c.AllocatedCount = a.AllocatedCount + b.AllocatedCount;
- c.AllocatedTotalBytes = a.AllocatedTotalBytes + b.AllocatedTotalBytes;
- c.AllocatedTotalAge = a.AllocatedTotalAge + b.AllocatedTotalAge;
- c.AllocatedTotalWeight = a.AllocatedTotalWeight + b.AllocatedTotalWeight;
-
- c.LiveCount = a.LiveCount + b.LiveCount;
- c.LiveTotalBytes = a.LiveTotalBytes + b.LiveTotalBytes;
- c.LiveTotalAge = a.LiveTotalAge + b.LiveTotalAge;
- c.LiveTotalWeight = a.LiveTotalWeight + b.LiveTotalWeight;
-
- return c;
- }
-
- static public ObjectStats operator - (ObjectStats a, ObjectStats b)
- {
- ObjectStats c = new ObjectStats ();
-
- c.AllocatedCount = a.AllocatedCount - b.AllocatedCount;
- c.AllocatedTotalBytes = a.AllocatedTotalBytes - b.AllocatedTotalBytes;
- c.AllocatedTotalAge = a.AllocatedTotalAge - b.AllocatedTotalAge;
- c.AllocatedTotalWeight = a.AllocatedTotalWeight - b.AllocatedTotalWeight;
-
- c.LiveCount = a.LiveCount - b.LiveCount;
- c.LiveTotalBytes = a.LiveTotalBytes - b.LiveTotalBytes;
- c.LiveTotalAge = a.LiveTotalAge - b.LiveTotalAge;
- c.LiveTotalWeight = a.LiveTotalWeight - b.LiveTotalWeight;
-
- return c;
- }
- }
-} \ No newline at end of file
diff --git a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/Snapshot/OutfileReader.cs b/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/Snapshot/OutfileReader.cs
deleted file mode 100644
index 8a74f0f132..0000000000
--- a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/Snapshot/OutfileReader.cs
+++ /dev/null
@@ -1,1179 +0,0 @@
-//
-// OutfileReader.cs
-//
-// Copyright (C) 2005 Novell, Inc.
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-
-using System;
-using System.Collections;
-using System.IO;
-using System.Text.RegularExpressions;
-
-namespace MonoDevelop.Profiling.HeapBuddy
-{
- public class OutfileReader
- {
- public bool Debug = false;
-
- const uint magic_number = 0x4eabbdd1;
- const int expected_log_version = 6;
- const int expected_summary_version = 2;
- const string log_file_label = "heap-buddy logfile";
- const string summary_file_label = "heap-buddy summary";
-
- //
- // Data from the outfile's header
- //
-
- bool terminated_normally;
-
- // Object counts
- int n_gcs;
- int n_types;
- int n_methods;
- int n_backtraces;
- int n_resizes;
-
- public long TotalAllocatedBytes;
- public int TotalAllocatedObjects;
-
- // Offsets in the summary file
- long type_name_data_offset = -1;
- long method_name_data_offset = -1;
- long backtrace_data_offset = -1;
- long gc_data_offset = -1;
- long resize_data_offset = -1;
- long types_by_code_offset = -1;
- long methods_by_code_offset = -1;
- long backtrace_index_offset = -1;
- long gc_index_offset = -1;
-
- // The reader to use for lazy lookups of names, etc.
- BinaryReader lazy_reader = null;
-
- ///////////////////////////////////////////////////////////////////
-
- private struct Method {
- public string Name;
- public string Arguments;
- public long Position; // of the name in the summary file
- }
-
- private struct RawGcData {
- public uint BacktraceCode;
- public ObjectStats ObjectStats;
- }
-
- string filename;
-
- Type [] types;
- Method [] methods;
- Backtrace [] backtraces;
- long [] backtrace_pos;
- Gc [] gcs;
- long [] gc_pos;
- Resize [] resizes;
-
- // These are only needed for log files
- uint [] type_codes_old;
- uint [] type_codes_new;
- uint [] method_codes_old;
- uint [] method_codes_new;
- uint [] backtrace_codes;
- uint [] backtrace_type_codes;
- RawGcData [] [] raw_gc_data;
-
- ///////////////////////////////////////////////////////////////////
-
- public OutfileReader (string filename)
- {
- this.filename = filename;
-
- Stream stream;
- stream = new FileStream (filename, FileMode.Open, FileAccess.Read);
-
- BinaryReader reader;
- reader = new BinaryReader (stream);
-
- bool is_summary;
- is_summary = ReadPreamble (reader);
-
- Spew ("This is a {0} file", is_summary ? "summary" : "log");
-
- ReadHeader (reader);
-
- if (is_summary) {
- lazy_reader = reader;
- ReadSummaryFile (reader);
- } else {
-
- type_codes_old = new uint [n_types];
- type_codes_new = new uint [n_types];
- method_codes_old = new uint [n_methods];
- method_codes_new = new uint [n_methods];
- backtrace_codes = new uint [n_backtraces];
- backtrace_type_codes = new uint [n_backtraces];
- raw_gc_data = new RawGcData [n_gcs] [];
-
- ReadLogFile (reader);
- reader.Close ();
-
- RemapAllCodes ();
-
- CollectFinalBacktraceAndTypeStats ();
-
- string tmp_filename;
- tmp_filename = Path.GetTempFileName ();
- stream = new FileStream (tmp_filename, FileMode.Open, FileAccess.Write);
-
- BinaryWriter writer;
- writer = new BinaryWriter (stream);
- WriteSummaryFile (writer);
- writer.Close ();
-
- // Replace the log file with the summary file.
- File.Copy (tmp_filename, filename, true /* allow overwrite */);
- File.Delete (tmp_filename);
-
- // Fix up the method names
- for (int i = 0; i < methods.Length; ++i) {
- int j = methods [i].Name.IndexOf (" (");
- methods [i].Arguments = methods [i].Name.Substring (j+1);
- methods [i].Name = methods [i].Name.Substring (0, j);
- }
-
- // Put the right method names in the frames
- for (int i = 0; i < backtraces.Length; ++i)
- for (int j = 0; j < backtraces [i].Frames.Length; ++j)
- GetMethod (backtraces [i].Frames [j].MethodCode,
- out backtraces [i].Frames [j].MethodName,
- out backtraces [i].Frames [j].MethodArguments);
-
- // Re-open the file for use as a lazy reader.
- stream = new FileStream (filename, FileMode.Open, FileAccess.Read);
- lazy_reader = new BinaryReader (stream);
- }
- }
-
- ///////////////////////////////////////////////////////////////////
-
- public string Filename {
- get { return filename; }
- }
-
- ///////////////////////////////////////////////////////////////////
-
- private void Spew (string format, params object [] args)
- {
- if (Debug) {
- string message;
- message = String.Format (format, args);
- Console.WriteLine (message);
- }
- }
-
- ///////////////////////////////////////////////////////////////////
-
- // Return true if this is a summary file, false if it is a log file.
- private bool ReadPreamble (BinaryReader reader)
- {
- uint this_magic;
- this_magic = reader.ReadUInt32 ();
- if (this_magic != magic_number) {
- string msg;
- msg = String.Format ("Bad magic number: expected {0}, found {1}",
- magic_number, this_magic);
- throw new Exception (msg);
- }
-
- int this_version;
- this_version = reader.ReadInt32 ();
-
- string this_label;
- bool is_summary;
- int expected_version;
-
- this_label = reader.ReadString ();
- if (this_label == log_file_label) {
- is_summary = false;
- expected_version = expected_log_version;
- } else if (this_label == summary_file_label) {
- is_summary = true;
- expected_version = expected_summary_version;
- } else
- throw new Exception ("Unknown file label in heap-buddy outfile");
-
- if (this_version != expected_version) {
- string msg;
- msg = String.Format ("Version error in {0}: expected {1}, found {2}",
- this_label, expected_version, this_version);
- throw new Exception (msg);
- }
-
- return is_summary;
- }
-
- private void WritePreamble (BinaryWriter writer)
- {
- writer.Write (magic_number);
- writer.Write (expected_summary_version);
- writer.Write (summary_file_label); // we only write summary files from C#
- }
-
- ///////////////////////////////////////////////////////////////////
-
- private void ReadHeader (BinaryReader reader)
- {
- Spew ("Reading header");
-
- byte termination_byte;
- termination_byte = reader.ReadByte ();
- if (termination_byte == 1)
- terminated_normally = true;
- else if (termination_byte != 0)
- throw new Exception ("Unexpected termination status byte: " + termination_byte);
-
- Spew ("Log is {0}", terminated_normally ? "complete" : "truncated");
-
- n_gcs = reader.ReadInt32 ();
- n_types = reader.ReadInt32 ();
- n_methods = reader.ReadInt32 ();
- n_backtraces = reader.ReadInt32 ();
- n_resizes = reader.ReadInt32 ();
-
- TotalAllocatedBytes = reader.ReadInt64 ();
- TotalAllocatedObjects = reader.ReadInt32 ();
-
- Spew ("GCs = {0}", n_gcs);
- Spew ("Types = {0}", n_types);
- Spew ("Methods = {0}", n_methods);
- Spew ("Backtraces = {0}", n_backtraces);
- Spew ("Resizes = {0}", n_resizes);
-
- types = new Type [n_types];
- methods = new Method [n_methods];
- backtraces = new Backtrace [n_backtraces];
- backtrace_pos = new long [n_backtraces];
- gcs = new Gc [n_gcs];
- gc_pos = new long [n_gcs];
- resizes = new Resize [n_resizes];
-
- Spew ("Finished reading header");
- }
-
- private void WriteHeader (BinaryWriter writer)
- {
- Spew ("Writing header");
-
- // We only write out summary files, which
- // are never truncated.
- writer.Write ((byte) 1);
-
- writer.Write (n_gcs);
- writer.Write (n_types);
- writer.Write (n_methods);
- writer.Write (n_backtraces);
- writer.Write (n_resizes);
- writer.Write (TotalAllocatedBytes);
- writer.Write (TotalAllocatedObjects);
-
- Spew ("Finished writing header");
- }
-
- ///////////////////////////////////////////////////////////////////
-
- //
- // Code to read the log files generated at runtime
- //
-
- // These need to agree w/ the definitions in outfile-writer.c
- const byte TAG_TYPE = 0x01;
- const byte TAG_METHOD = 0x02;
- const byte TAG_BACKTRACE = 0x03;
- const byte TAG_GC = 0x04;
- const byte TAG_RESIZE = 0x05;
- const byte TAG_EOS = 0xff;
-
- int i_type = 0, i_method = 0, i_backtrace = 0, i_gc = 0, i_resize = 0;
-
- private void ReadLogFile (BinaryReader reader)
- {
- int chunk_count = 0;
-
- try {
- while (ReadLogFileChunk (reader))
- ++chunk_count;
-
- } catch (System.IO.EndOfStreamException) {
- // This means that the outfile was truncated.
- // In that case, just do nothing --- except if the file
- // claimed that things terminated normally.
- if (terminated_normally)
- throw new Exception ("The heap log did not contain TAG_EOS, "
- + "but the outfile was marked as having been terminated normally, so "
- + "something must be terribly wrong.");
- }
- Spew ("Processed {0} chunks", chunk_count);
-
- if (i_type != n_types)
- throw new Exception (String.Format ("Found {0} types, expected {1}", i_type, n_types));
-
- if (i_method != n_methods)
- throw new Exception (String.Format ("Found {0} methods, expected {1}", i_method, n_methods));
-
- if (i_backtrace != n_backtraces)
- throw new Exception (String.Format ("Found {0} backtraces, expected {1}", i_backtrace, n_backtraces));
-
- if (i_gc != n_gcs)
- throw new Exception (String.Format ("Found {0} GCs, expected {1}", i_gc, n_gcs));
-
- if (i_resize != n_resizes)
- throw new Exception (String.Format ("Found {0} resizes, expected {1}", i_resize, n_resizes));
- }
-
- private bool ReadLogFileChunk (BinaryReader reader)
- {
-
- // FIXME: This will fail on truncated outfiles
-
- byte tag = reader.ReadByte ();
-
- switch (tag) {
- case TAG_TYPE:
- ReadLogFileChunk_Type (reader);
- break;
-
- case TAG_METHOD:
- ReadLogFileChunk_Method (reader);
- break;
-
- case TAG_BACKTRACE:
- ReadLogFileChunk_Backtrace (reader);
- break;
-
- case TAG_GC:
- ReadLogFileChunk_Gc (reader);
- break;
-
- case TAG_RESIZE:
- ReadLogFileChunk_Resize (reader);
- break;
-
- case TAG_EOS:
- //Spew ("Found EOS");
- return false;
-
- default:
- throw new Exception ("Unknown tag! " + tag);
- }
-
- return true;
- }
-
- private void ReadLogFileChunk_Type (BinaryReader reader)
- {
- uint code;
- code = reader.ReadUInt32 ();
-
- string name;
- name = reader.ReadString ();
-
- if (i_type >= n_types)
- return;
-
- //Spew ("Found type '{0}'", name);
-
- type_codes_old [i_type] = code;
-
- Type type;
- type = new Type ();
- type.Name = name;
- types [i_type] = type;
-
- ++i_type;
- }
-
- private void ReadLogFileChunk_Method (BinaryReader reader)
- {
- uint code;
- code = reader.ReadUInt32 ();
-
- string name;
- name = reader.ReadString ();
-
- if (i_method >= n_methods)
- return;
-
- //Spew ("Found method '{0}' with code {1}", name, code);
-
- method_codes_old [i_method] = code;
- methods [i_method].Name = name;
-
- ++i_method;
- }
-
- private void ReadLogFileChunk_Backtrace (BinaryReader reader)
- {
- uint code;
- code = reader.ReadUInt32 ();
-
- uint type_code;
- type_code = reader.ReadUInt32 ();
-
- int n_frames;
- n_frames = reader.ReadInt16 ();
-
- if (i_backtrace >= n_backtraces) {
- for (int i = 0; i < n_frames; ++i) {
- reader.ReadUInt32 (); // skip method code
- reader.ReadUInt32 (); // skip native offset
- }
- return;
- }
-
- Backtrace backtrace;
- backtrace = new Backtrace (code, this);
- backtraces [i_backtrace] = backtrace;
-
- backtrace_codes [i_backtrace] = code;
- backtrace_type_codes [i_backtrace] = type_code;
-
- Frame [] frames = new Frame [n_frames];
- backtrace.Frames = frames;
-
- for (int i = 0; i < n_frames; ++i) {
- frames [i].MethodCode = reader.ReadUInt32 ();
- frames [i].IlOffset = reader.ReadUInt32 ();
- }
-
- ++i_backtrace;
- }
-
- private void ReadLogFileChunk_Gc (BinaryReader reader)
- {
- Gc gc;
- gc = new Gc (this);
-
- gc.Generation = reader.ReadInt32 ();
- gc.TimeT = reader.ReadInt64 ();
- gc.Timestamp = Util.ConvertTimeT (gc.TimeT);
- gc.PreGcLiveBytes = reader.ReadInt64 ();
- gc.PreGcLiveObjects = reader.ReadInt32 ();
-
- int n;
- n = reader.ReadInt32 ();
-
- RawGcData [] raw;
- raw = new RawGcData [n];
- for (int i = 0; i < n; ++i) {
- raw [i].BacktraceCode = reader.ReadUInt32 ();
- raw [i].ObjectStats.Read (reader);
- }
- combsort_raw_gc_data (raw);
-
- gc.PostGcLiveBytes = reader.ReadInt64 ();
- gc.PostGcLiveObjects = reader.ReadInt32 ();
-
- gcs [i_gc] = gc;
- raw_gc_data [i_gc] = raw;
- ++i_gc;
-
- if (gc.Generation >= 0)
- Spew ("GC {0}: collected {1} bytes, {2} to {3}",
- gc.Generation,
- gc.FreedBytes,
- gc.PreGcLiveBytes,
- gc.PostGcLiveBytes);
- }
-
- private void ReadLogFileChunk_Resize (BinaryReader reader)
- {
- Resize r;
- r = new Resize ();
- r.Read (reader, i_gc);
- if (i_resize > 0)
- r.PreviousSize = resizes [i_resize-1].NewSize;
- Spew ("Resize to {0}, {1} live bytes, {2} live objects", r.NewSize, r.TotalLiveBytes, r.TotalLiveObjects);
- resizes [i_resize] = r;
- ++i_resize;
- }
-
- ///////////////////////////////////////////////////////////////////
-
- // This is copied from mono 1.1.8.3's implementation of System.Array
-
- static int new_gap (int gap)
- {
- gap = (gap * 10) / 13;
- if (gap == 9 || gap == 10)
- return 11;
- if (gap < 1)
- return 1;
- return gap;
- }
-
- private enum SortOrder {
- ByCode,
- ByName
- }
-
- void combsort_types (SortOrder order)
- {
- int start = 0;
- int size = types.Length;
- int gap = size;
- while (true) {
- gap = new_gap (gap);
-
- bool swapped = false;
- int end = start + size - gap;
- for (int i = start; i < end; i++) {
- int j = i + gap;
-
- bool out_of_order;
- if (order == SortOrder.ByCode)
- out_of_order = type_codes_old [i] > type_codes_old [j];
- else
- out_of_order = String.Compare (types [i].Name, types [j].Name) > 0;
-
- if (out_of_order) {
-
- uint tmp_code;
- Type tmp;
-
- tmp_code = type_codes_old [i];
- type_codes_old [i] = type_codes_old [j];
- type_codes_old [j] = tmp_code;
-
- tmp_code = type_codes_new [i];
- type_codes_new [i] = type_codes_new [j];
- type_codes_new [j] = tmp_code;
-
- tmp = types [i];
- types [i] = types [j];
- types [j] = tmp;
-
- swapped = true;
- }
- }
- if (gap == 1 && !swapped)
- break;
- }
- }
-
- void combsort_methods (SortOrder order)
- {
- int start = 0;
- int size = methods.Length;
- int gap = size;
- while (true) {
- gap = new_gap (gap);
-
- bool swapped = false;
- int end = start + size - gap;
- for (int i = start; i < end; i++) {
- int j = i + gap;
-
- bool out_of_order;
- if (order == SortOrder.ByCode)
- out_of_order = method_codes_old [i] > method_codes_old [j];
- else
- out_of_order = String.Compare (methods [i].Name, methods [j].Name) > 0;
-
- if (out_of_order) {
-
- uint tmp_code;
- Method tmp;
-
- tmp_code = method_codes_old [i];
- method_codes_old [i] = method_codes_old [j];
- method_codes_old [j] = tmp_code;
-
- tmp_code = method_codes_new [i];
- method_codes_new [i] = method_codes_new [j];
- method_codes_new [j] = tmp_code;
-
- tmp = methods [i];
- methods [i] = methods [j];
- methods [j] = tmp;
-
- swapped = true;
- }
- }
- if (gap == 1 && !swapped)
- break;
- }
- }
-
- void combsort_backtraces ()
- {
- int start = 0;
- int size = backtraces.Length;
- int gap = size;
- while (true) {
- gap = new_gap (gap);
-
- bool swapped = false;
- int end = start + size - gap;
- for (int i = start; i < end; i++) {
- int j = i + gap;
- if (backtrace_codes [i] > backtrace_codes [j]) {
-
- uint tmp_code;
- tmp_code = backtrace_codes [i];
- backtrace_codes [i] = backtrace_codes [j];
- backtrace_codes [j] = tmp_code;
-
- tmp_code = backtrace_type_codes [i];
- backtrace_type_codes [i] = backtrace_type_codes [j];
- backtrace_type_codes [j] = tmp_code;
-
- long tmp_pos;
- tmp_pos = backtrace_pos [i];
- backtrace_pos [i] = backtrace_pos [j];
- backtrace_pos [j] = tmp_pos;
-
- Backtrace tmp;
- tmp = backtraces [i];
- backtraces [i] = backtraces [j];
- backtraces [j] = tmp;
-
- swapped = true;
- }
- }
- if (gap == 1 && !swapped)
- break;
- }
- }
-
- static void combsort_raw_gc_data (RawGcData [] data)
- {
- int start = 0;
- int size = data.Length;
- int gap = size;
- while (true) {
- gap = new_gap (gap);
-
- bool swapped = false;
- int end = start + size - gap;
- for (int i = start; i < end; i++) {
- int j = i + gap;
- if (data [i].BacktraceCode > data [j].BacktraceCode) {
- RawGcData tmp;
- tmp = data [i];
- data [i] = data [j];
- data [j] = tmp;
-
- swapped = true;
- }
- }
- if (gap == 1 && !swapped)
- break;
- }
- }
-
- ///////////////////////////////////////////////////////////////////
-
- private uint TranslateTypeCode (uint code)
- {
- int i, i0, i1;
- i0 = 0;
- i1 = types.Length-1;
-
- while (i0 <= i1) {
- i = (i0 + i1) / 2;
- if (type_codes_old [i] == code)
- return type_codes_new [i];
- else if (type_codes_old [i] < code)
- i0 = i+1;
- else
- i1 = i-1;
- }
-
- throw new Exception ("Couldn't resolve type code " + code);
- }
-
- private uint TranslateMethodCode (uint code)
- {
- int i, i0, i1;
- i0 = 0;
- i1 = methods.Length-1;
-
- while (i0 <= i1) {
- i = (i0 + i1) / 2;
- if (method_codes_old [i] == code)
- return method_codes_new [i];
- else if (method_codes_old [i] < code)
- i0 = i+1;
- else
- i1 = i-1;
- }
-
- throw new Exception ("Couldn't resolve method code " + code);
- }
-
- private uint TranslateBacktraceCode (uint code)
- {
- int i, i0, i1;
- i0 = 0;
- i1 = backtraces.Length-1;
-
- while (i0 <= i1) {
- i = (i0 + i1) / 2;
- if (backtrace_codes [i] == code)
- return (uint) i;
- else if (backtrace_codes [i] < code)
- i0 = i+1;
- else
- i1 = i-1;
- }
-
- throw new Exception ("Couldn't resolve backtrace code " + code);
- }
-
- private void RemapAllCodes ()
- {
- combsort_types (SortOrder.ByName);
- for (int i = 0; i < type_codes_new.Length; ++i)
- type_codes_new [i] = (uint) i;
- combsort_types (SortOrder.ByCode); // this sorts by the old codes
-
- combsort_methods (SortOrder.ByName);
- for (int i = 0; i < method_codes_new.Length; ++i)
- method_codes_new [i] = (uint) i;
- combsort_methods (SortOrder.ByCode); // again, this sorts by the old codes
-
- combsort_backtraces ();
-
- // Remap the backtrace codes in the GCs
- for (int i = 0; i < gcs.Length; ++i) {
- for (int j = 0; j < raw_gc_data [i].Length; ++j) {
- uint code;
- code = raw_gc_data [i] [j].BacktraceCode;
- code = TranslateBacktraceCode (code);
- raw_gc_data [i] [j].BacktraceCode = code;
- }
- }
-
- // Remap the type and method codes in the backtrace,
- // and replace the backtrace codes.
- for (int i = 0; i < backtraces.Length; ++i) {
- backtrace_type_codes [i] = TranslateTypeCode (backtrace_type_codes [i]);
- for (int j = 0; j < backtraces [i].Frames.Length; ++j) {
- uint code;
- code = backtraces [i].Frames [j].MethodCode;
- code = TranslateMethodCode (code);
- backtraces [i].Frames [j].MethodCode = code;
- }
- }
-
- // Re-sort them back into name order, which is the same as sorting by the new
- // codes. This puts everything into the correct order for when we write
- // them out to the summary file.
- combsort_types (SortOrder.ByName);
- combsort_methods (SortOrder.ByName);
-
- // Populate the backtrace types and codes
- for (int i = 0; i < backtraces.Length; ++i) {
- backtraces [i].Code = TranslateBacktraceCode (backtraces [i].Code);
- backtraces [i].Type = types [backtrace_type_codes [i]];
- }
-
- // After remapping the codes, we don't need these any more.
- type_codes_old = null;
- type_codes_new = null;
- method_codes_old = null;
- method_codes_new = null;
- backtrace_codes = null;
- }
-
- ///////////////////////////////////////////////////////////////////
-
- private void CollectFinalBacktraceAndTypeStats ()
- {
- for (int i = 0; i < backtraces.Length; ++i)
- backtraces [i].LastGeneration = int.MaxValue;
-
- for (int i = 0; i < types.Length; ++i)
- types [i].LastGeneration = int.MaxValue;
-
- int count;
- count = backtraces.Length;
-
- for (int i = gcs.Length - 1; i >= 0; --i) {
- for (int j = 0; j < raw_gc_data [i].Length; ++j) {
- RawGcData raw;
- raw = raw_gc_data [i] [j];
-
- uint bt_code;
- bt_code = raw.BacktraceCode;
- if (backtraces [bt_code].LastGeneration == int.MaxValue) {
- backtraces [bt_code].LastGeneration = gcs [i].Generation;
- backtraces [bt_code].LastObjectStats = raw.ObjectStats;
- --count;
-
- // Add this backtrace to our per-type totals
- uint type_code;
- type_code = backtrace_type_codes [bt_code];
- types [type_code].BacktraceCount++;
- if (types [type_code].LastGeneration == int.MaxValue) {
- types [type_code].LastGeneration = backtraces [bt_code].LastGeneration;
- types [type_code].LastObjectStats = backtraces [bt_code].LastObjectStats;
- } else if (types [type_code].LastGeneration == backtraces [bt_code].LastGeneration) {
- types [type_code].LastObjectStats += backtraces [bt_code].LastObjectStats;
- } else {
- types [type_code].LastObjectStats.AddAllocatedOnly (backtraces [bt_code].LastObjectStats);
- }
- }
- }
-
- // If we've found stats for every backtrace, bail out of the loop early.
- if (count == 0)
- break;
- }
- }
-
- ///////////////////////////////////////////////////////////////////
-
- private void ReadSummary_TableOfContents (BinaryReader reader)
- {
- type_name_data_offset = reader.ReadInt64 ();
- method_name_data_offset = reader.ReadInt64 ();
- backtrace_data_offset = reader.ReadInt64 ();
- gc_data_offset = reader.ReadInt64 ();
- resize_data_offset = reader.ReadInt64 ();
- types_by_code_offset = reader.ReadInt64 ();
- methods_by_code_offset = reader.ReadInt64 ();
- backtrace_index_offset = reader.ReadInt64 ();
- gc_index_offset = reader.ReadInt64 ();
- }
-
- private void WriteSummary_TableOfContents (BinaryWriter writer)
- {
- writer.Write (type_name_data_offset);
- writer.Write (method_name_data_offset);
- writer.Write (backtrace_data_offset);
- writer.Write (gc_data_offset);
- writer.Write (resize_data_offset);
- writer.Write (types_by_code_offset);
- writer.Write (methods_by_code_offset);
- writer.Write (backtrace_index_offset);
- writer.Write (gc_index_offset);
- }
-
- ///////////////////////////////////////////////////////////////////
-
- //
- // Summary file reader
- //
-
- private void ReadSummaryFile (BinaryReader reader)
- {
- ReadSummary_TableOfContents (reader);
- ReadSummary_Methods (reader);
- ReadSummary_Types (reader);
- ReadSummary_Backtraces (reader);
- ReadSummary_Resizes (reader);
- ReadSummary_Gcs (reader);
- }
-
- private void ReadSummary_Methods (BinaryReader reader)
- {
- reader.BaseStream.Seek (methods_by_code_offset, SeekOrigin.Begin);
- for (int i = 0; i < methods.Length; ++i)
- methods [i].Position = reader.ReadInt64 ();
-
- }
-
- private void ReadSummary_Types (BinaryReader reader)
- {
- reader.BaseStream.Seek (type_name_data_offset, SeekOrigin.Begin);
- for (int i = 0; i < types.Length; ++i) {
- Type type;
- type = new Type ();
- type.Name = reader.ReadString ();
- types [i] = type;
- }
-
- reader.BaseStream.Seek (types_by_code_offset, SeekOrigin.Begin);
- for (int i = 0; i < types.Length; ++i) {
- Type type;
- type = types [i];
- type.BacktraceCount = reader.ReadInt32 ();
- type.LastGeneration = reader.ReadInt32 ();
- type.LastObjectStats.Read (reader);
- }
- }
-
- private void ReadSummary_Backtraces (BinaryReader reader)
- {
- reader.BaseStream.Seek (backtrace_index_offset, SeekOrigin.Begin);
- for (int i = 0; i < backtraces.Length; ++i) {
- Backtrace backtrace;
- backtrace = new Backtrace ((uint) i, this);
- backtraces [i] = backtrace;
-
- uint type_code;
- type_code = reader.ReadUInt32 ();
- backtrace.Type = types [type_code];
- backtrace.LastGeneration = reader.ReadInt32 ();
- backtrace.LastObjectStats.Read (reader);
- backtrace_pos [i] = reader.ReadInt64 ();
- }
-
- }
-
- private void ReadSummary_Resizes (BinaryReader reader)
- {
- reader.BaseStream.Seek (resize_data_offset, SeekOrigin.Begin);
- for (int i = 0; i < resizes.Length; ++i) {
- Resize r;
- r = new Resize ();
- r.Read (reader, -1);
- if (i > 0)
- r.PreviousSize = resizes [i-1].NewSize;
- resizes [i] = r;
- }
- }
-
- private void ReadSummary_Gcs (BinaryReader reader)
- {
- reader.BaseStream.Seek (gc_index_offset, SeekOrigin.Begin);
- for (int i = 0; i < gcs.Length; ++i) {
- Gc gc;
- gc = new Gc (this);
-
- gc.Generation = reader.ReadInt32 ();
- gc.TimeT = reader.ReadInt64 ();
- gc.Timestamp = Util.ConvertTimeT (gc.TimeT);
- gc.PreGcLiveBytes = reader.ReadInt64 ();
- gc.PreGcLiveObjects = reader.ReadInt32 ();
- gc.PostGcLiveBytes = reader.ReadInt64 ();
- gc.PostGcLiveObjects = reader.ReadInt32 ();
-
- gcs [i] = gc;
- gc_pos [i] = reader.ReadInt64 ();
- }
- }
-
- ///////////////////////////////////////////////////////////////////
-
- //
- // Summary file writer
- //
-
- private void WriteSummaryFile (BinaryWriter writer)
- {
- WritePreamble (writer);
- WriteHeader (writer);
-
- long toc_offset;
- toc_offset = writer.BaseStream.Position;
- WriteSummary_TableOfContents (writer); // writes placeholder data
-
- WriteSummary_Data (writer);
-
- WriteSummary_Indexes (writer);
-
- WriteSummary_Types (writer);
-
- writer.BaseStream.Seek (toc_offset, SeekOrigin.Begin);
- WriteSummary_TableOfContents (writer); // writes the actual data
- }
-
- private void WriteSummary_Data (BinaryWriter writer)
- {
- // Write out the name strings.
- type_name_data_offset = writer.BaseStream.Position;
- for (int i = 0; i < types.Length; ++i)
- writer.Write (types [i].Name);
-
-
- // Write out the method names, and remember the position
- // of each in the file.
- method_name_data_offset = writer.BaseStream.Position;
- for (int i = 0; i < methods.Length; ++i) {
- methods [i].Position = writer.BaseStream.Position;
- writer.Write (methods [i].Name);
- }
-
-
- // Write out all of the backtrace frame data, and remember the position
- // of each in the file.
- backtrace_data_offset = writer.BaseStream.Position;
- for (int i = 0; i < backtraces.Length; ++i) {
- backtrace_pos [i] = writer.BaseStream.Position;
- writer.Write (backtraces [i].Frames.Length);
- for (int j = 0; j < backtraces [i].Frames.Length; ++j) {
- writer.Write (backtraces [i].Frames [j].MethodCode);
- writer.Write (backtraces [i].Frames [j].IlOffset);
- }
- }
-
-
- // Write out all of the GC data, and remember the position of
- // each in the file.
- gc_data_offset = writer.BaseStream.Position;
- for (int i = 0; i < gcs.Length; ++i) {
- gc_pos [i] = writer.BaseStream.Position;
-
- writer.Write (raw_gc_data [i].Length);
- for (int j = 0; j < raw_gc_data [i].Length; ++j) {
- writer.Write (raw_gc_data [i] [j].BacktraceCode);
- raw_gc_data [i] [j].ObjectStats.Write (writer);
- }
- }
- raw_gc_data = null; // We don't need these anymore
-
-
- // Write out all the resizes.
- resize_data_offset = writer.BaseStream.Position;
- for (int i = 0; i < resizes.Length; ++i)
- resizes [i].Write (writer);
- }
-
- private void WriteSummary_Indexes (BinaryWriter writer)
- {
- methods_by_code_offset = writer.BaseStream.Position;
- for (int i = 0; i < methods.Length; ++i)
- writer.Write (methods [i].Position);
-
- // backtraces were sorted in WriteSummary
- backtrace_index_offset = writer.BaseStream.Position;
- for (int i = 0; i < backtraces.Length; ++i) {
- writer.Write (backtrace_type_codes [i]);
- writer.Write (backtraces [i].LastGeneration);
- backtraces [i].LastObjectStats.Write (writer);
- writer.Write (backtrace_pos [i]);
- }
-
- gc_index_offset = writer.BaseStream.Position;
- for (int i = 0; i < gcs.Length; ++i) {
- writer.Write (gcs [i].Generation);
- writer.Write (gcs [i].TimeT);
- writer.Write (gcs [i].PreGcLiveBytes);
- writer.Write (gcs [i].PreGcLiveObjects);
- writer.Write (gcs [i].PostGcLiveBytes);
- writer.Write (gcs [i].PostGcLiveObjects);
- writer.Write (gc_pos [i]);
- }
- }
-
- private void WriteSummary_Types (BinaryWriter writer)
- {
- types_by_code_offset = writer.BaseStream.Position;
- for (int i = 0; i < types.Length; ++i) {
- Type type;
- type = types [i];
- writer.Write (type.BacktraceCount);
- writer.Write (type.LastGeneration);
- type.LastObjectStats.Write (writer);
- }
- }
-
- ///////////////////////////////////////////////////////////////////
-
- public Resize [] Resizes {
- get { return resizes; }
- }
-
- public Resize LastResize {
- get { return resizes [resizes.Length-1]; }
- }
-
- public Gc [] Gcs {
- get { return gcs; }
- }
-
- public Gc LastGc {
- get { return gcs [gcs.Length-1]; }
- }
-
- public Backtrace [] Backtraces {
- get { return backtraces; }
- }
-
- public Type [] Types {
- get { return types; }
- }
-
- ///////////////////////////////////////////////////////////////////
-
- private void GetMethod (uint code, out string name, out string args)
- {
- if (methods [code].Name == null) {
- lazy_reader.BaseStream.Seek (methods [code].Position, SeekOrigin.Begin);
-
- string method;
- method = lazy_reader.ReadString ();
-
- int i = method.IndexOf (" (");
- methods [code].Name = method.Substring (0, i);
- methods [code].Arguments = method.Substring (i+1);
- }
-
- name = methods [code].Name;
- args = methods [code].Arguments;
- }
-
- public Frame [] GetFrames (uint backtrace_code)
- {
- lazy_reader.BaseStream.Seek (backtrace_pos [backtrace_code], SeekOrigin.Begin);
-
- int length;
- length = lazy_reader.ReadInt32 ();
-
- Frame [] frames;
- frames = new Frame [length];
- for (int i = 0; i < length; ++i) {
- frames [i].MethodCode = lazy_reader.ReadUInt32 ();
- frames [i].IlOffset = lazy_reader.ReadUInt32 ();
- }
-
- for (int i = 0; i < length; ++i)
- GetMethod (frames [i].MethodCode,
- out frames [i].MethodName,
- out frames [i].MethodArguments);
-
-
- return frames;
- }
-
- public GcData [] GetGcData (int generation)
- {
- lazy_reader.BaseStream.Seek (gc_pos [generation], SeekOrigin.Begin);
-
- int length;
- length = lazy_reader.ReadInt32 ();
-
- GcData [] gc_data;
- gc_data = new GcData [length];
- for (int i = 0; i < length; ++i) {
- uint bt_code;
- bt_code = lazy_reader.ReadUInt32 ();
- gc_data [i].Backtrace = backtraces [bt_code];
- gc_data [i].ObjectStats.Read (lazy_reader);
- }
-
- return gc_data;
- }
- }
-} \ No newline at end of file
diff --git a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/Snapshot/Resize.cs b/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/Snapshot/Resize.cs
deleted file mode 100644
index 927fb0aabf..0000000000
--- a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/Snapshot/Resize.cs
+++ /dev/null
@@ -1,79 +0,0 @@
-//
-// HeapResize.cs
-//
-// Copyright (C) 2005 Novell, Inc.
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-using System;
-using System.IO;
-
-namespace MonoDevelop.Profiling.HeapBuddy
-{
- public class Resize
- {
- // The GC Generation during which the resize happened
- public int Generation;
-
- private long time_t;
- public DateTime Timestamp;
-
- public long PreviousSize;
-
- public long NewSize;
-
- public long TotalLiveBytes;
-
- public int TotalLiveObjects;
-
- public double PreResizeCapacity {
- get { return PreviousSize == 0 ? 0 : 100.0 * TotalLiveBytes / PreviousSize; }
- }
-
- public double PostResizeCapacity {
- get { return PreviousSize == 0 ? 0 : 100.0 * TotalLiveBytes / NewSize; }
- }
-
-
- // You need to set PreviousSize by hand.
- public void Read (BinaryReader reader, int generation)
- {
- if (generation < 0)
- Generation = reader.ReadInt32 ();
- else
- Generation = generation;
- time_t = reader.ReadInt64 ();
- Timestamp = Util.ConvertTimeT (time_t);
- NewSize = reader.ReadInt64 ();
- TotalLiveBytes = reader.ReadInt64 ();
- TotalLiveObjects = reader.ReadInt32 ();
- }
-
- public void Write (BinaryWriter writer)
- {
- writer.Write (Generation);
- writer.Write (time_t);
- writer.Write (NewSize);
- writer.Write (TotalLiveBytes);
- writer.Write (TotalLiveObjects);
- }
- }
-} \ No newline at end of file
diff --git a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/Snapshot/Type.cs b/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/Snapshot/Type.cs
deleted file mode 100644
index f698a17e86..0000000000
--- a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/Snapshot/Type.cs
+++ /dev/null
@@ -1,50 +0,0 @@
-//
-// Type.cs
-//
-// Copyright (C) 2005 Novell, Inc.
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-
-using System;
-using System.IO;
-
-namespace MonoDevelop.Profiling.HeapBuddy
-{
- public class Type
- {
- public string Name;
-
- // How many different backtraces allocate this type?
- public int BacktraceCount;
-
- // What is the last generation in which there are
- // live objects of this type?
- public int LastGeneration;
-
- // Total allocation stats for this type as of the
- // last generation in which there were live objects.
- public ObjectStats LastObjectStats;
-
- public bool Matches (string pattern)
- {
- return Util.ContainsNoCase (Name, pattern);
- }
- }
-} \ No newline at end of file
diff --git a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/Snapshot/Util.cs b/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/Snapshot/Util.cs
deleted file mode 100644
index 1cba44d6c5..0000000000
--- a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/Snapshot/Util.cs
+++ /dev/null
@@ -1,44 +0,0 @@
-//
-// Util.cs
-//
-// Copyright (C) 2005 Novell, Inc.
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-
-using System;
-using System.IO;
-
-namespace MonoDevelop.Profiling.HeapBuddy
-{
- public static class Util
- {
- static DateTime base_time = new DateTime (1970, 1, 1, 0, 0, 0);
- public static DateTime ConvertTimeT (long time_t)
- {
- return base_time.AddSeconds (time_t);
- }
-
- public static bool ContainsNoCase (string haystack, string needle)
- {
- // FIXME: This could be much more efficient
- return haystack.ToLower ().IndexOf (needle.ToLower ()) >= 0;
- }
- }
-} \ No newline at end of file
diff --git a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/gtk-gui/ChangeLog b/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/gtk-gui/ChangeLog
deleted file mode 100644
index dba2c192e1..0000000000
--- a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/gtk-gui/ChangeLog
+++ /dev/null
@@ -1,11 +0,0 @@
-2010-03-17 Lluis Sanchez Gual <lluis@novell.com>
-
- * gui.stetic:
- * generated.cs: Merged MD.Projects into MD.Core, and
- MD.Projects.Gui, MD.Core.Gui and MD.Components into MD.Ide.
-
-2009-08-26 Lluis Sanchez Gual <lluis@novell.com>
-
- * gui.stetic: We now depend on gtk# 2.12.8, Mono 2.4, and
- Mono.Addins 0.4.
-
diff --git a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/gtk-gui/generated.cs b/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/gtk-gui/generated.cs
deleted file mode 100755
index 8463caae89..0000000000
--- a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/gtk-gui/generated.cs
+++ /dev/null
@@ -1,29 +0,0 @@
-
-// This file has been generated by the GUI designer. Do not modify.
-namespace Stetic
-{
- internal class Gui
- {
- private static bool initialized;
-
- static internal void Initialize (Gtk.Widget iconRenderer)
- {
- if ((Stetic.Gui.initialized == false)) {
- Stetic.Gui.initialized = true;
- }
- }
- }
-
- internal class ActionGroups
- {
- public static Gtk.ActionGroup GetActionGroup (System.Type type)
- {
- return Stetic.ActionGroups.GetActionGroup (type.FullName);
- }
-
- public static Gtk.ActionGroup GetActionGroup (string name)
- {
- return null;
- }
- }
-}
diff --git a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/gtk-gui/gui.stetic b/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/gtk-gui/gui.stetic
deleted file mode 100755
index 0dd98eae73..0000000000
--- a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy/gtk-gui/gui.stetic
+++ /dev/null
@@ -1,12 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<stetic-interface>
- <configuration>
- <images-root-path>../</images-root-path>
- </configuration>
- <import>
- <widget-library name="MonoDevelop.Components, Version=0.16.0.0, Culture=neutral" />
- <widget-library name="MonoDevelop.Ide, Version=0.16.0.0, Culture=neutral" />
- <widget-library name="MonoDevelop.Projects.Gui, Version=0.16.0.0, Culture=neutral" />
- <widget-library name="../bin/Debug/MonoDevelop.Profiling.HeapBuddy.dll" internal="true" />
- </import>
-</stetic-interface> \ No newline at end of file
diff --git a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapShot/AssemblyInfo.cs b/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapShot/AssemblyInfo.cs
deleted file mode 100644
index 1a5bf06d58..0000000000
--- a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapShot/AssemblyInfo.cs
+++ /dev/null
@@ -1,9 +0,0 @@
-// Autogenerated from MonoDevelop.Profiling.HeapShot.addin.xml
-
-using System.Reflection;
-
-[assembly: AssemblyProduct ("MonoDevelop")]
-[assembly: AssemblyTitle ("HeapShot Profiler Add-in")]
-[assembly: AssemblyDescription ("HeapShot Profiler Add-in")]
-[assembly: AssemblyVersion ("0.2.0")]
-[assembly: AssemblyCopyright ("MIT X11")]
diff --git a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapShot/ChangeLog b/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapShot/ChangeLog
deleted file mode 100644
index ca36a3c30d..0000000000
--- a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapShot/ChangeLog
+++ /dev/null
@@ -1,128 +0,0 @@
-2010-03-22 Lluis Sanchez Gual <lluis@novell.com>
-
- * MonoDevelop.Profiling.HeapShot.addin.xml: Bumped MD version.
-
-2010-03-17 Lluis Sanchez Gual <lluis@novell.com>
-
- * gtk-gui/objects.xml:
- * HeapShotProfiler.cs:
- * gtk-gui/generated.cs:
- * MonoDevelop.Profiling.HeapShot.mdp:
- * Gui/HeapShotProfilingSnapshotView.cs:
- * MonoDevelop.Profiling.HeapShot.addin.xml:
- * Gui/HeapShotProfilingSnapshotNodeBuilder.cs:
- * gtk-gui/MonoDevelop.Profiling.HeapShot.ReferenceTreeViewer.cs:
- Merged MD.Projects into MD.Core, and MD.Projects.Gui,
- MD.Core.Gui and MD.Components into MD.Ide.
-
-2009-10-30 Lluis Sanchez Gual <lluis@novell.com>
-
- * MonoDevelop.Profiling.HeapShot.addin.xml: Bump MD version.
-
-2009-10-07 Lluis Sanchez Gual <lluis@novell.com>
-
- * MonoDevelop.Profiling.HeapShot.addin.xml: Bump MD version.
-
-2009-04-15 Lluis Sanchez Gual <lluis@novell.com>
-
- * MonoDevelop.Profiling.HeapShot.addin.xml: Bump MD version.
-
-2009/02/03 Lluis Sanchez Gual <lluis@novell.com>
-
- * AssemblyInfo.cs:
- * MonoDevelop.Profiling.HeapShot.addin.xml: Bump MD version.
-
-2009-01-26 Michael Hutchinson <mhutchinson@novell.com>
-
- * MonoDevelop.Profiling.HeapShot.mdp: Flush project format changes.
-
-2008-12-02 Michael Hutchinson <mhutchinson@novell.com>
-
- * Makefile.am:
- * AssemblyInfo.cs:
- * MonoDevelop.Profiling.HeapShot.mdp: Add AssemblyInfo.cs files that are
- autogenerated from the addin manifests.
-
-2008-11-06 Michael Hutchinson <mhutchinson@novell.com>
-
- * Makefile.am: Fix build dependencies.
-
-2008-11-05 Lluis Sanchez Gual <lluis@novell.com>
-
- * MonoDevelop.Profiling.HeapShot.addin.xml: Bump MD version.
-
-2008-09-17 Lluis Sanchez Gual <lluis@novell.com>
-
- * MonoDevelop.Profiling.HeapShot.mdp: Updated projects.
-
-2008-09-04 Lluis Sanchez Gual <lluis@novell.com>
-
- * Gui/HeapShotProfilingSnapshotNodeBuilder.cs: Moved the extensible
- tree view to its own directory.
-
-2008-08-18 Lluis Sanchez Gual <lluis@novell.com>
-
- * MonoDevelop.Profiling.HeapShot.mdp: Fix reference to Mono.TextEditor.
- The incorrect add-in version number causes problems in the makefile
- synchronization.
-
-2008-06-04 Lluis Sanchez Gual <lluis@novell.com>
-
- * MonoDevelop.Profiling.HeapShot.addin.xml: Bump MD version.
-
-2008-05-21 Lluis Sanchez Gual <lluis@novell.com>
-
- * Makefile.am: Fix makefiles.
-
-2008-05-21 Lluis Sanchez Gual <lluis@novell.com>
-
- * MonoDevelop.Profiling.HeapShot.mdp: New project model changes and
- updates.
-
-2008-03-10 Lluis Sanchez Gual <lluis@novell.com>
-
- * Gui/HeapShotProfilingSnapshotNodeBuilder.cs: Track changes in the
- MessageService class.
-
-2008-02-20 Lluis Sanchez Gual <lluis@novell.com>
-
- * Gui/HeapShotProfilingSnapshotNodeBuilder.cs: Handle the delete key in
- TreeViewPad, so it will work event if the shortcut is not defined.
-
-2008-01-25 Lluis Sanchez Gual <lluis@novell.com>
-
- * MonoDevelop.Profiling.HeapShot.addin.xml: Update MD version.
-
-2008-01-22 Lluis Sanchez Gual <lluis@novell.com>
-
- * MonoDevelop.Profiling.HeapShot.addin.xml: Updated add-in category and
- description.
-
-2007-12-20 Ben Motmans <ben.motmans@gmail.com>
-
- * HeapShotProfiler.cs: handle snapshot failures
-
-2007-12-20 Ben Motmans <ben.motmans@gmail.com>
-
- * HeapShotProfiler.cs: send the -PROF signal instead of -9
- * Makefile.am: automatic MD changes
-
-2007-12-19 Ben Motmans <ben.motmans@gmail.com>
-
- * Makefile.am: added missing makefiles
-
-2007-12-19 Ben Motmans <ben.motmans@gmail.com>
-
- * Snapshot, Snapshot/TypeInfo.cs, Snapshot/FieldInfo.cs,
- Snapshot/ObjectInfo.cs, Snapshot/ReferenceNode.cs,
- Snapshot/ObjectReference.cs, Snapshot/ObjectMapReader.cs,
- HeapShotProfiler.cs, Gui, Gui/ReferenceTreeViewer.cs,
- Gui/HeapShotProfilingSnapshotView.cs,
- Gui/HeapShotProfilingSnapshotNodeBuilder.cs,
- MonoDevelop.Profiling.HeapShot.addin.xml, ChangeLog, gtk-gui,
- gtk-gui/generated.cs, gtk-gui/objects.xml,
- gtk-gui/MonoDevelop.Profiling.HeapShot.ReferenceTreeViewer.cs,
- gtk-gui/gui.stetic, MonoDevelop.Profiling.HeapShot.mdp,
- HeapShotProfilingSnapshot.cs: Initial code commit
-
-
diff --git a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapShot/Gui/HeapShotProfilingSnapshotNodeBuilder.cs b/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapShot/Gui/HeapShotProfilingSnapshotNodeBuilder.cs
deleted file mode 100644
index 866dd68edd..0000000000
--- a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapShot/Gui/HeapShotProfilingSnapshotNodeBuilder.cs
+++ /dev/null
@@ -1,126 +0,0 @@
-//
-// Authors:
-// Ben Motmans <ben.motmans@gmail.com>
-//
-// Copyright (C) 2007 Ben Motmans
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-using Gtk;
-using System;
-using MonoDevelop.Core;
-using MonoDevelop.Components.Commands;
-using MonoDevelop.Ide;
-using MonoDevelop.Ide.Gui;
-using MonoDevelop.Ide.Gui.Pads;
-using MonoDevelop.Ide.Gui.Components;
-
-namespace MonoDevelop.Profiling.HeapShot
-{
- public class HeapShotProfilingSnapshotNodeBuilder : TypeNodeBuilder
- {
- private EventHandler nameChangedHandler;
-
- public HeapShotProfilingSnapshotNodeBuilder ()
- {
- nameChangedHandler = (EventHandler)DispatchService.GuiDispatch (new EventHandler (OnNameChanged));
- }
-
- public override Type NodeDataType {
- get { return typeof (HeapShotProfilingSnapshot); }
- }
-
- public override string ContextMenuAddinPath {
- get { return "/MonoDevelop/Profiling/ContextMenu/ProfilingPad/HeapShotProfilingSnapshotNode"; }
- }
-
- public override string GetNodeName (ITreeNavigator thisNode, object dataObject)
- {
- HeapShotProfilingSnapshot snapshot = (HeapShotProfilingSnapshot)dataObject;
- return snapshot.Name;
- }
-
- public override void GetNodeAttributes (ITreeNavigator treeNavigator, object dataObject, ref NodeAttributes attributes)
- {
- attributes |= NodeAttributes.AllowRename;
- }
-
- public override Type CommandHandlerType {
- get { return typeof (HeapShotProfilingSnapshotNodeCommandHandler); }
- }
-
- public override void BuildNode (ITreeBuilder builder, object dataObject, ref string label, ref Gdk.Pixbuf icon, ref Gdk.Pixbuf closedIcon)
- {
- HeapShotProfilingSnapshot snapshot = (HeapShotProfilingSnapshot)dataObject;
- label = snapshot.Name;
- icon = Context.GetIcon ("md-prof-snapshot");
- snapshot.NameChanged += nameChangedHandler;
- }
-
- public override bool HasChildNodes (ITreeBuilder builder, object dataObject)
- {
- return false;
- }
-
- protected void OnNameChanged (object sender, EventArgs args)
- {
- ITreeBuilder builder = Context.GetTreeBuilder (sender);
- builder.Update ();
- }
- }
-
- public class HeapShotProfilingSnapshotNodeCommandHandler : NodeCommandHandler
- {
- public override DragOperation CanDragNode ()
- {
- return DragOperation.None;
- }
-
- public override void ActivateItem ()
- {
- HeapShotProfilingSnapshot snapshot = (HeapShotProfilingSnapshot)CurrentNode.DataItem;
- HeapShotProfilingSnapshotView view = new HeapShotProfilingSnapshotView ();
- view.Load (snapshot, false);
- IdeApp.Workbench.OpenDocument (view, true);
- }
-
- public override void RenameItem (string newName)
- {
- IProfilingSnapshot snapshot = (IProfilingSnapshot)CurrentNode.DataItem;
- if (FileService.IsValidFileName (newName))
- snapshot.Name = newName;
- else
- MessageService.ShowError (GettextCatalog.GetString ("Invalid filename"));
- }
-
- public override void DeleteItem ()
- {
- IProfilingSnapshot snapshot = (IProfilingSnapshot)CurrentNode.DataItem;
- ProfilingService.RemoveSnapshot (snapshot);
- }
-
- [CommandHandler (MonoDevelop.Ide.Commands.EditCommands.Rename)]
- public void OnRenameSnapshot ()
- {
- Tree.StartLabelEdit ();
- }
- }
-} \ No newline at end of file
diff --git a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapShot/Gui/HeapShotProfilingSnapshotView.cs b/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapShot/Gui/HeapShotProfilingSnapshotView.cs
deleted file mode 100644
index ade75f7c32..0000000000
--- a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapShot/Gui/HeapShotProfilingSnapshotView.cs
+++ /dev/null
@@ -1,105 +0,0 @@
-//
-// Authors:
-// Ben Motmans <ben.motmans@gmail.com>
-//
-// Copyright (C) 2007 Ben Motmans
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-using Gtk;
-using System;
-using MonoDevelop.Core;
-using MonoDevelop.Ide;
-using MonoDevelop.Ide.Gui;
-using MonoDevelop.Ide.Gui.Pads;
-
-namespace MonoDevelop.Profiling.HeapShot
-{
- public class HeapShotProfilingSnapshotView : AbstractViewContent
- {
- private bool allObjects;
- private string typeName;
- private ReferenceTreeViewer viewer;
- private HeapShotProfilingSnapshot snapshot;
-
- public HeapShotProfilingSnapshotView ()
- {
- allObjects = true;
- typeName = GettextCatalog.GetString ("All Objects");
-
- Initialize ();
- }
-
- public HeapShotProfilingSnapshotView (string typeName)
- {
- allObjects = false;
- this.typeName = typeName;
-
- Initialize ();
- }
-
- private void Initialize ()
- {
- viewer = new ReferenceTreeViewer ();
- viewer.TypeActivated += delegate {
- ShowTypeTreeInView (viewer.SelectedType, viewer.InverseReferences);
- };
- }
-
- public override bool IsDirty {
- get { return false; }
- set { }
- }
-
- public override string StockIconId {
- get { return "md-prof-snapshot"; }
- }
-
- public override string UntitledName {
- get { return snapshot.Name + " - " + typeName; }
- }
-
- public override Widget Control {
- get { return viewer; }
- }
-
- public override void Load (string fileName) {}
-
- public void Load (HeapShotProfilingSnapshot snapshot, bool inverse)
- {
- this.snapshot = snapshot;
-
- if (allObjects)
- viewer.FillAllTypes (snapshot.ObjectMap);//viewer.FillType (snapshot.ObjectMap, viewer.SelectedType);
- else
- viewer.FillType (snapshot.ObjectMap, typeName);
- viewer.Show ();
- //TODO: toggle 'inverse' on all child views when toggled in the 'all objects' view
- }
-
- private void ShowTypeTreeInView (string typeName, bool inverse)
- {
- HeapShotProfilingSnapshotView view = new HeapShotProfilingSnapshotView (typeName);
- view.Load (snapshot, inverse);
- IdeApp.Workbench.OpenDocument (view, true);
- }
- }
-}
diff --git a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapShot/Gui/ReferenceTreeViewer.cs b/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapShot/Gui/ReferenceTreeViewer.cs
deleted file mode 100644
index 37bda24950..0000000000
--- a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapShot/Gui/ReferenceTreeViewer.cs
+++ /dev/null
@@ -1,564 +0,0 @@
-//
-// Author:
-// Lluis Sanchez Gual
-//
-// Copyright (C) 2005 Novell, Inc (http://www.novell.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-using Gdk;
-using Gtk;
-using System;
-using MonoDevelop.Profiling;
-
-namespace MonoDevelop.Profiling.HeapShot
-{
- public delegate void ProgressEventHandler (int current, int max, string message);
-
- public partial class ReferenceTreeViewer : Gtk.Bin
- {
- Gtk.TreeStore store;
- const int ReferenceCol = 0;
- const int ImageCol = 1;
- const int TypeCol = 2;
- const int FilledCol = 3;
- const int SizeCol = 4;
- const int AvgSizeCol = 5;
- const int InstancesCol = 6;
- const int RefsCol = 7;
- const int RootRefsCol = 8;
- const int RootMemCol = 9;
- int TreeColRefs;
- bool reloadRequested;
- bool loading;
- Gtk.Tooltips tips = new Gtk.Tooltips ();
- TipWindow tipWindow;
- bool showTipScheduled;
- uint tipTimeoutId;
- const int TipTimer = 800;
-
- ObjectMapReader file;
- string typeName;
-
- public event ProgressEventHandler ProgressEvent;
-
- public ReferenceTreeViewer()
- {
- Build ();
- store = new Gtk.TreeStore (typeof(object), typeof(string), typeof(string), typeof(bool), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string));
- treeview.Model = store;
- treeview.HeadersClickable = true;
-
- Gtk.TreeViewColumn complete_column = new Gtk.TreeViewColumn ();
- complete_column.Title = "Type";
- complete_column.Resizable = true;
-
- Gtk.CellRendererPixbuf pix_render = new Gtk.CellRendererPixbuf ();
- complete_column.PackStart (pix_render, false);
- complete_column.AddAttribute (pix_render, "stock-id", ImageCol);
-
- Gtk.CellRendererText text_render = new Gtk.CellRendererText ();
- complete_column.PackStart (text_render, true);
-
- complete_column.AddAttribute (text_render, "text", TypeCol);
- complete_column.Clickable = true;
-
- treeview.AppendColumn (complete_column);
-
- AddColumn ("Instances", InstancesCol, "Number of instances of a type. Only instances that contain references are included.");
- TreeColRefs = treeview.Columns.Length;
- AddColumn ("References", RefsCol, "Number of references to the parent type.");
- AddColumn ("Root Refs", RootRefsCol, "Number of indirect references to instances of the tree root type.");
- AddColumn ("Root Mem", RootMemCol, "Amount of memory of the root instances indirectly referenced.");
- AddColumn ("Memory Size", SizeCol, "Memory allocated by instances of the type.");
- AddColumn ("Avg. Size", AvgSizeCol, "Average size of the instances.");
-
- treeview.TestExpandRow += new Gtk.TestExpandRowHandler (OnTestExpandRow);
- treeview.RowActivated += new Gtk.RowActivatedHandler (OnNodeActivated);
- treeview.AppendColumn (new Gtk.TreeViewColumn());
-
- int nc = 0;
- foreach (TreeViewColumn c in treeview.Columns) {
- store.SetSortFunc (nc, CompareNodes);
- c.SortColumnId = nc++;
- }
- store.SetSortColumnId (1, Gtk.SortType.Descending);
- treeview.RulesHint = true;
- tips.Enable ();
- }
-
- void AddColumn (string title, int ncol, string desc)
- {
- Gtk.TreeViewColumn col = new Gtk.TreeViewColumn ();
- Gtk.Label lab = new Gtk.Label (title);
- lab.Xalign = 1;
- EventBox bx = new EventBox ();
- bx.Add (lab);
- bx.ShowAll ();
- col.Widget = bx;
-
- CellRendererText crt = new CellRendererText ();
- crt.Xalign = 1;
- col.PackStart (crt, true);
- col.AddAttribute (crt, "text", ncol);
-
- treeview.AppendColumn (col);
- tips.SetTip (bx, desc, desc);
- }
-
- public void Clear ()
- {
- entryFilter.Text = "";
- store.Clear ();
- }
-
- public bool InverseReferences {
- get { return checkInverse.Active; }
- set { checkInverse.Active = value; }
- }
-
- public string RootTypeName {
- get { return typeName; }
- }
-
- public string SelectedType {
- get {
- Gtk.TreeModel foo;
- Gtk.TreeIter iter;
- if (!treeview.Selection.GetSelected (out foo, out iter))
- return null;
- ReferenceNode nod = store.GetValue (iter, 0) as ReferenceNode;
- if (nod != null)
- return nod.TypeName;
- else
- return null;
- }
- }
-
- public void FillAllTypes (ObjectMapReader file)
- {
- this.file = file;
- this.typeName = null;
- boxFilter.Visible = true;
- treeview.Columns [TreeColRefs].Visible = InverseReferences;
- treeview.Columns [TreeColRefs+1].Visible = InverseReferences;
- treeview.Columns [TreeColRefs+2].Visible = InverseReferences;
-
- if (loading) {
- // If the tree is already being loaded, notify that loading
- // has to start again, since the file has changed.
- reloadRequested = true;
- return;
- }
-
- loading = true;
- store.Clear ();
- int n=0;
- foreach (int t in file.GetTypes ()) {
- if (++n == 20) {
- if (ProgressEvent != null) {
- ProgressEvent (n, file.GetTypeCount (), null);
- }
- while (Gtk.Application.EventsPending ())
- Gtk.Application.RunIteration ();
- if (reloadRequested) {
- loading = false;
- reloadRequested = false;
- FillAllTypes (this.file);
- return;
- }
- n = 0;
- }
- if (file.GetObjectCountForType (t) > 0)
- InternalFillType (file, t);
- }
- loading = false;
- }
-
- public void FillType (ObjectMapReader file, string typeName)
- {
- this.typeName = typeName;
- this.file = file;
- store.Clear ();
- boxFilter.Visible = false;
- treeview.Columns [TreeColRefs].Visible = InverseReferences;
- treeview.Columns [TreeColRefs+1].Visible = InverseReferences;
- treeview.Columns [TreeColRefs+2].Visible = InverseReferences;
- TreeIter iter = InternalFillType (file, file.GetTypeFromName (typeName));
- treeview.ExpandRow (store.GetPath (iter), false);
- }
-
- TreeIter InternalFillType (ObjectMapReader file, int type)
- {
- ReferenceNode node = file.GetReferenceTree (type, checkInverse.Active);
- return AddNode (TreeIter.Zero, node);
- }
-
- void Refill ()
- {
- if (typeName != null)
- FillType (file, typeName);
- else
- FillAllTypes (file);
- }
-
- TreeIter AddNode (TreeIter parent, ReferenceNode node)
- {
- if (entryFilter.Text.Length > 0 && node.TypeName.IndexOf (entryFilter.Text) == -1)
- return TreeIter.Zero;
-
- TreeIter iter;
- if (parent.Equals (TreeIter.Zero)) {
- iter = store.AppendValues (node, "md-class", node.TypeName, !node.HasReferences, node.TotalMemory.ToString("n0"), node.AverageSize.ToString("n0"), node.RefCount.ToString ("n0"), "", "", "");
- } else {
- string refs = (InverseReferences ? node.RefsToParent.ToString ("n0") : "");
- string rootRefs = (InverseReferences ? node.RefsToRoot.ToString ("n0") : "");
- string rootMem = (InverseReferences ? node.RootMemory.ToString ("n0") : "");
- iter = store.AppendValues (parent, node, "md-class", node.TypeName, !node.HasReferences, node.TotalMemory.ToString("n0"), node.AverageSize.ToString("n0"), node.RefCount.ToString ("n0"), refs, rootRefs, rootMem);
- }
-
- if (node.HasReferences) {
- // Add a dummy element to make the expansion icon visible
- store.AppendValues (iter, null, "", "", true, "", "", "", "", "", "");
- }
- return iter;
- }
-
- TreeIter AddNode (TreeIter parent, FieldReference node)
- {
- if (parent.Equals (TreeIter.Zero))
- return store.AppendValues (node, "md-field", node.FiledName, true, "", "", node.RefCount.ToString ("n0"), "", "");
- else
- return store.AppendValues (parent, node, "md-field", node.FiledName, true, "", "", node.RefCount.ToString ("n0"), "", "");
- }
-
- private void OnTestExpandRow (object sender, Gtk.TestExpandRowArgs args)
- {
- bool filled = (bool) store.GetValue (args.Iter, FilledCol);
- ReferenceNode parent = (ReferenceNode) store.GetValue (args.Iter, ReferenceCol);
- if (!filled) {
- store.SetValue (args.Iter, FilledCol, true);
- TreeIter iter;
- store.IterChildren (out iter, args.Iter);
- store.Remove (ref iter);
- if (parent.References.Count > 0 || parent.FieldReferences.Count > 0) {
- int nr = 0;
- foreach (ReferenceNode nod in parent.References)
- if (!AddNode (args.Iter, nod).Equals (TreeIter.Zero))
- nr++;
- foreach (FieldReference fref in parent.FieldReferences)
- if (!AddNode (args.Iter, fref).Equals (TreeIter.Zero))
- nr++;
- if (nr == 0)
- args.RetVal = true;
- } else
- args.RetVal = true;
- }
- }
-
- protected virtual void OnNodeActivated (object sender, Gtk.RowActivatedArgs args)
- {
- if (TypeActivated != null && SelectedType != null)
- TypeActivated (this, EventArgs.Empty);
- }
-
- protected virtual void OnCheckInverseClicked(object sender, System.EventArgs e)
- {
- Refill ();
- }
-
- protected virtual void OnButtonFilterClicked(object sender, System.EventArgs e)
- {
- Refill ();
- }
-
- protected virtual void OnEntryFilterActivated(object sender, System.EventArgs e)
- {
- Refill ();
- }
-
- int CompareNodes (Gtk.TreeModel model, Gtk.TreeIter a, Gtk.TreeIter b)
- {
- int col;
- SortType type;
- store.GetSortColumnId (out col, out type);
-
- object o1 = model.GetValue (a, ReferenceCol);
- object o2 = model.GetValue (b, ReferenceCol);
-
- if (o1 is ReferenceNode && o2 is ReferenceNode) {
- ReferenceNode nod1 = (ReferenceNode) o1;
- ReferenceNode nod2 = (ReferenceNode) o2;
- switch (col) {
- case 0:
- return string.Compare (nod1.TypeName, nod2.TypeName);
- case 1:
- return nod1.RefCount.CompareTo (nod2.RefCount);
- case 2:
- return nod1.RefsToParent.CompareTo (nod2.RefsToParent);
- case 3:
- return nod1.RefsToRoot.CompareTo (nod2.RefsToRoot);
- case 4:
- return nod1.RootMemory.CompareTo (nod2.RootMemory);
- case 5:
- return nod1.TotalMemory.CompareTo (nod2.TotalMemory);
- case 6:
- return nod1.AverageSize.CompareTo (nod2.AverageSize);
- default:
- return 1;
- // throw new InvalidOperationException ();
- }
- } else if (o1 is FieldReference && o2 is FieldReference) {
- return ((FieldReference)o1).FiledName.CompareTo (((FieldReference)o2).FiledName);
- } else if (o1 is FieldReference) {
- return 1;
- } else {
- return -1;
- }
- }
-
- [GLib.ConnectBefore]
- protected void OnTreeviewMotionNotifyEvent(object o, Gtk.MotionNotifyEventArgs args)
- {
- UpdateTipWindow ((int)args.Event.X, (int)args.Event.Y);
- }
-
- void UpdateTipWindow (int x, int y)
- {
- if (tipWindow != null) {
- // Tip already being shown. Update it.
- ShowTooltip (x, y);
- }
- else if (showTipScheduled) {
- // Tip already scheduled. Reset the timer.
- GLib.Source.Remove (tipTimeoutId);
- tipTimeoutId = GLib.Timeout.Add (TipTimer, delegate { return ShowTooltip (x,y);} );
- }
- else {
- // Start a timer to show the tip
- showTipScheduled = true;
- tipTimeoutId = GLib.Timeout.Add (TipTimer, delegate { return ShowTooltip (x,y);} );
- }
- }
-
- string lastTipTxt;
-
- bool ShowTooltip (int xloc, int yloc)
- {
- ModifierType mask; // ignored
- int mxloc, myloc;
-
- showTipScheduled = false;
-
- treeview.GdkWindow.GetPointer (out mxloc, out myloc, out mask);
-
- Gtk.TreePath path;
- Gtk.TreeViewColumn col;
-
- treeview.GetPathAtPos (xloc, yloc, out path, out col);
- if (col == null) {
- HideTipWindow ();
- return false;
- }
-
- Gtk.TreeIter iter;
- if (!store.GetIter (out iter, path)) {
- HideTipWindow ();
- return false;
- }
-
- object ob = store.GetValue (iter, ReferenceCol);
- string txt = GetTipText (iter, col.SortColumnId, ob);
- if (lastTipTxt != txt) {
- HideTipWindow ();
- tipWindow = new TipWindow (txt);
- tipWindow.ShowAll ();
- }
- lastTipTxt = txt;
-
- int ox, oy;
- treeview.GdkWindow.GetOrigin (out ox, out oy);
- int w = tipWindow.Child.SizeRequest().Width;
- tipWindow.Move (mxloc + ox - (w/2), myloc + oy + 20);
- tipWindow.ShowAll ();
-
- return false;
- }
-
- string GetTipText (Gtk.TreeIter iter, int col, object ob)
- {
- ReferenceNode node = ob as ReferenceNode;
- if (node != null) {
- switch (col) {
- case 0:
- return "Type " + node.TypeName;
- case 1: {
- string pname = GetParentType (iter);
- if (pname != null) {
- if (InverseReferences)
- return string.Format ("There are <b>{0:n0}</b> instances of type <b>{1}</b> which contain references to objects of type <b>{2}</b>", node.RefCount, GetShortName (node.TypeName), pname);
- else
- return string.Format ("There are <b>{0:n0}</b> instances of type <b>{1}</b> referenced by objects of type <b>{2}</b>", node.RefCount, GetShortName (node.TypeName), pname);
- } else
- return string.Format ("There are <b>{0:n0}</b> instances of type <b>{1}</b>.", node.RefCount, GetShortName (node.TypeName));
- }
- case 2: {
- string pname = GetParentType (iter);
- if (pname != null)
- return string.Format ("There are <b>{0:n0}</b> distinct references from objects of type <b>{1}</b> to objects of type <b>{2}</b>", node.RefsToParent, GetShortName (node.TypeName), pname);
- else
- return "";
- }
- case 3: {
- string rname = GetRootType (iter);
- if (rname != null)
- return string.Format ("There are <b>{0:n0}</b> indirect references from objects of type <b>{1}</b> to objects of type <b>{2}</b>", node.RefsToRoot, GetShortName (node.TypeName), rname);
- else
- return "";
- }
- case 4: {
- string rname = GetRootType (iter);
- if (rname != null)
- return string.Format ("There are <b>{0:n0}</b> bytes of <b>{1}</b> objects indirectly referenced by <b>{2}</b> objects", node.RootMemory, rname, GetShortName (node.TypeName));
- else
- return "";
- }
- case 5: {
- string pname = GetParentType (iter);
- if (pname != null) {
- if (InverseReferences)
- return string.Format ("There are <b>{0:n0}</b> bytes of <b>{1}</b> objects which have references to <b>{2}</b> objects", node.TotalMemory, GetShortName (node.TypeName), pname);
- else
- return string.Format ("There are <b>{0:n0}</b> bytes of <b>{1}</b> objects referenced by <b>{2}</b> objects", node.TotalMemory, GetShortName (node.TypeName), pname);
- } else
- return string.Format ("There are <b>{0:n0}</b> bytes of <b>{1}</b> objects", node.TotalMemory, GetShortName (node.TypeName));
- }
- case 6:
- string pname = GetParentType (iter);
- if (pname != null) {
- if (InverseReferences)
- return string.Format ("Objects of type <b>{0}</b> which have references to <b>{2}</b> objects have an average size of <b>{1:n0}</b> bytes", GetShortName (node.TypeName), node.AverageSize, pname);
- else
- return string.Format ("Objects of type <b>{0}</b> referenced by <b>{2}</b> objects have an average size of <b>{1:n0}</b> bytes", GetShortName (node.TypeName), node.AverageSize, pname);
- } else
- return string.Format ("Objects of type <b>{0}</b> have an average size of <b>{1:n0}</b> bytes", GetShortName (node.TypeName), node.AverageSize);
- }
- } else {
- FieldReference fr = (FieldReference) ob;
- return fr.FiledName;
- }
-
- return "";
- }
-
- string GetShortName (string typeName)
- {
- int i = typeName.LastIndexOf ('.');
- if (i != -1)
- return typeName.Substring (i+1);
- else
- return typeName;
- }
-
- string GetParentType (Gtk.TreeIter it)
- {
- if (store.IterParent (out it, it))
- return GetShortName ((string) store.GetValue (it, TypeCol));
- else
- return null;
- }
-
- string GetRootType (Gtk.TreeIter it)
- {
- Gtk.TreeIter rit;
- while (store.IterParent (out rit, it)) {
- it = rit;
- }
- return GetShortName ((string) store.GetValue (it, TypeCol));
- }
-
- protected override bool OnScrollEvent (Gdk.EventScroll evnt)
- {
- HideTipWindow ();
- return base.OnScrollEvent (evnt);
- }
-
- protected override bool OnLeaveNotifyEvent (Gdk.EventCrossing evnt)
- {
- HideTipWindow ();
- return base.OnLeaveNotifyEvent (evnt);
- }
- protected override bool OnButtonPressEvent (Gdk.EventButton e)
- {
- HideTipWindow ();
- return base.OnButtonPressEvent (e);
- }
-
- protected override bool OnKeyPressEvent (Gdk.EventKey evnt)
- {
- HideTipWindow ();
- return base.OnKeyPressEvent (evnt);
- }
-
- void HideTipWindow ()
- {
- lastTipTxt = null;
- if (showTipScheduled) {
- GLib.Source.Remove (tipTimeoutId);
- showTipScheduled = false;
- }
- if (tipWindow != null) {
- tipWindow.Destroy ();
- tipWindow = null;
- }
- }
-
- [GLib.ConnectBefore]
- protected void OnTreeviewLeaveNotifyEvent(object o, Gtk.LeaveNotifyEventArgs args)
- {
- HideTipWindow ();
- }
-
- public event EventHandler TypeActivated;
- }
-
- class TipWindow: Gtk.Window
- {
- public TipWindow (string txt) : base (Gtk.WindowType.Popup)
- {
- Label lab = new Label ();
- lab.Markup = txt;
- lab.Xalign = 0.5f;
- lab.Xpad = 3;
- lab.Ypad = 3;
- lab.Wrap = true;
- Add (lab);
- }
-
- protected override bool OnExposeEvent (Gdk.EventExpose ev)
- {
- base.OnExposeEvent (ev);
- Gtk.Requisition req = SizeRequest ();
- Gtk.Style.PaintFlatBox (this.Style, this.GdkWindow, Gtk.StateType.Normal, Gtk.ShadowType.Out, Gdk.Rectangle.Zero, this, "tooltip", 0, 0, req.Width, req.Height);
- return true;
- }
- }
-}
diff --git a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapShot/HeapShotProfiler.cs b/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapShot/HeapShotProfiler.cs
deleted file mode 100644
index f51cdd65b2..0000000000
--- a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapShot/HeapShotProfiler.cs
+++ /dev/null
@@ -1,164 +0,0 @@
-//
-// Authors:
-// Ben Motmans <ben.motmans@gmail.com>
-//
-// Copyright (C) 2007 Ben Motmans
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-using System;
-using System.IO;
-using System.Threading;
-using MonoDevelop.Core;
-using MonoDevelop.Ide;
-using MonoDevelop.Profiling;
-
-namespace MonoDevelop.Profiling.HeapShot
-{
- public sealed class HeapShotProfiler : AbstractProfiler
- {
- private int dumpCount;
-
- public HeapShotProfiler ()
- {
- CheckSupported ("libmono-profiler-heap-shot");
- }
-
- public override string Identifier {
- get { return "heap-shot"; }
- }
-
- public override string Name {
- get { return GettextCatalog.GetString ("Heap Shot (Explore memory allocation patterns)"); }
- }
-
- public override string IconString {
- get { return "md-prof-snapshot"; }
- }
-
- public override string GetSnapshotFileName (string workingDirectory, string filename)
- {
- if (filename == null && workingDirectory == null)
- return "outfile_" + dumpCount.ToString () + ".omap";
- else if (filename == null)
- return Path.Combine (workingDirectory, "outfile_" + dumpCount.ToString () + ".omap");
- else
- return filename + "_" + dumpCount + ".omap";
- }
-
- public override void TakeSnapshot ()
- {
- lock (sync) {
- State = ProfilerState.TakingSnapshot;
-
- System.Diagnostics.Process.Start ("kill", "-PROF " + Context.AsyncOperation.ProcessId);
- ThreadPool.QueueUserWorkItem (new WaitCallback (AsyncTakeSnapshot));
- }
- }
-
- private void AsyncTakeSnapshot (object state)
- {
- string dumpFile = null;
- lock (sync)
- dumpFile = Context.FileName;
-
- int attempts = 40;
- bool success = false;
-
- while (!success) {
- if (--attempts == 0) {
- OnSnapshotFailed (EventArgs.Empty);
- return;
- }
-
- Thread.Sleep (500);
- if (!File.Exists (dumpFile))
- continue;
-
- try {
- string destFile = GetSaveLocation ();
- if (destFile != null) { //ignore if Cancel is clicked in the save dialog
- File.Copy (dumpFile, destFile);
- File.Delete (dumpFile);
-
- IProfilingSnapshot snapshot = new HeapShotProfilingSnapshot (this, destFile);
- OnSnapshotTaken (new ProfilingSnapshotEventArgs (snapshot));
- }
- success = true;
- } catch (Exception ex) {
- LoggingService.LogError ("HeapShotProfiler", "AsyncTakeSnapshot", ex);
- }
- }
-
- lock (sync)
- State = ProfilerState.Profiling;
- }
-
- public override void Start (ProfilingContext context)
- {
- base.Start (context);
- dumpCount = 0;
- }
-
- public override void Stop ()
- {
- lock (sync) {
- if (State != ProfilerState.Inactive) {
- Context.AsyncOperation.Cancel ();
- State = ProfilerState.Inactive;
- }
- }
- }
-
- public override bool CanLoad (string filename)
- {
- if (filename == null)
- throw new ArgumentNullException ("filename");
-
- using (Stream stream = new FileStream (filename, FileMode.Open, FileAccess.Read)) {
- using (BinaryReader reader = new BinaryReader (stream)) {
- uint magic_number = reader.ReadUInt32 ();
- if (magic_number != 0x4eabbdd1)
- return false;
-
- reader.ReadInt32 (); //skip the version
- string label = reader.ReadString ();
-
- return label == "heap-shot logfile";
- }
- }
- }
-
- public override IProfilingSnapshot Load (string filename)
- {
- return new HeapShotProfilingSnapshot (this, filename);
- }
-
- public override string GetSaveLocation ()
- {
- string location = null;
- DispatchService.GuiSyncDispatch (new MessageHandler (delegate () {
- location = GetSaveLocation ("HeapShot Snapshots", "omap");
- }));
- return location;
- }
- }
-} \ No newline at end of file
diff --git a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapShot/HeapShotProfilingSnapshot.cs b/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapShot/HeapShotProfilingSnapshot.cs
deleted file mode 100644
index fe828c3318..0000000000
--- a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapShot/HeapShotProfilingSnapshot.cs
+++ /dev/null
@@ -1,70 +0,0 @@
-//
-// Authors:
-// Ben Motmans <ben.motmans@gmail.com>
-//
-// Copyright (C) 2007 Ben Motmans
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-using System;
-using System.IO;
-using System.ComponentModel;
-using MonoDevelop.Profiling;
-
-namespace MonoDevelop.Profiling.HeapShot
-{
- public sealed class HeapShotProfilingSnapshot : AbstractProfilingSnapshot
- {
- private ObjectMapReader objectMap;
-
- public HeapShotProfilingSnapshot (HeapShotProfiler profiler, string filename)
- : base (profiler, filename)
- {
- }
-
- [Browsable (false)]
- public ObjectMapReader ObjectMap {
- get {
- if (objectMap == null)
- objectMap = new ObjectMapReader (filename);
- return objectMap;
- }
- }
-
- [DefaultValue (false)]
- [Category ("Summary")]
- [DisplayName ("Total Memory")]
- [Description ("Memory usage.")]
- [Browsable (true)]
- public string TotalMemory {
- get { return ProfilingService.PrettySize (objectMap.TotalMemory); }
- }
-
- [DefaultValue (false)]
- [Category ("Summary")]
- [DisplayName ("Object Count")]
- [Description ("The number of allocated objects.")]
- [Browsable (true)]
- public uint NumObjects {
- get { return objectMap.NumObjects; }
- }
- }
-}
diff --git a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapShot/Makefile.am b/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapShot/Makefile.am
deleted file mode 100644
index 6f2544c5b8..0000000000
--- a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapShot/Makefile.am
+++ /dev/null
@@ -1,45 +0,0 @@
-ADDIN_BUILD = $(top_builddir)/build
-ASSEMBLY = $(ADDIN_BUILD)/MonoDevelop.Profiling.HeapShot.dll
-REFS = \
- $(GLIB_SHARP_LIBS) \
- $(GTK_SHARP_LIBS) \
- $(MONO_ADDINS_LIBS) \
- $(MONODEVELOP_LIBS) \
- -r:../build/MonoDevelop.Profiling.dll \
- -r:Mono.Posix \
- -r:System
-
-FILES = \
- AssemblyInfo.cs \
- gtk-gui/generated.cs \
- gtk-gui/MonoDevelop.Profiling.HeapShot.ReferenceTreeViewer.cs \
- Gui/HeapShotProfilingSnapshotNodeBuilder.cs \
- Gui/HeapShotProfilingSnapshotView.cs \
- Gui/ReferenceTreeViewer.cs \
- HeapShotProfiler.cs \
- HeapShotProfilingSnapshot.cs \
- Snapshot/FieldInfo.cs \
- Snapshot/ObjectInfo.cs \
- Snapshot/ObjectMapReader.cs \
- Snapshot/ObjectReference.cs \
- Snapshot/ReferenceNode.cs \
- Snapshot/TypeInfo.cs
-
-RES = \
- gtk-gui/gui.stetic \
- MonoDevelop.Profiling.HeapShot.addin.xml
-
-all: $(ASSEMBLY)
-
-$(ASSEMBLY): $(build_sources) $(build_resources)
- mkdir -p $(ADDIN_BUILD)
- $(CSC) $(CSC_FLAGS) $(REFS) $(build_resources:%=/resource:%) $(build_sources) -out:$@ -target:library
-
-
-assemblydir = $(MD_ADDIN_DIR)/MonoDevelop.Profiling
-assembly_DATA = $(ASSEMBLY) $(ASSEMBLY).mdb
-
-CLEANFILES = $(ASSEMBLY) $(ASSEMBLY).mdb
-EXTRA_DIST = $(FILES) $(RES)
-
-include $(top_srcdir)/Makefile.include
diff --git a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapShot/MonoDevelop.Profiling.HeapShot.addin.xml b/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapShot/MonoDevelop.Profiling.HeapShot.addin.xml
deleted file mode 100644
index c253f2a8ac..0000000000
--- a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapShot/MonoDevelop.Profiling.HeapShot.addin.xml
+++ /dev/null
@@ -1,43 +0,0 @@
-<Addin id = "Profiling.HeapShot"
- namespace = "MonoDevelop"
- name = "HeapShot Profiler Add-in"
- author = "Ben Motmans, Lluis Sanchez Gual"
- copyright = "MIT X11"
- url = "http://www.monodevelop.com"
- description = "HeapShot Profiler Add-in"
- category = "Profiling"
- version = "4.2.3">
-
- <Runtime>
- <Import assembly="MonoDevelop.Profiling.HeapShot.dll"/>
- </Runtime>
-
- <Dependencies>
- <Addin id="Core" version="4.2.3"/>
- <Addin id="Ide" version="4.2.3"/>
- <Addin id="Profiling" version="4.2.3"/>
- </Dependencies>
-
- <ExtensionPoint path = "/MonoDevelop/Profiling/ContextMenu/ProfilingPad/HeapShotProfilingSnapshotNode" name = "HeapShot snapshot node context menu">
- <Description>HeapShot snapshot node context menu.</Description>
- <ExtensionNodeSet id="MonoDevelop.Components.Commands.ItemSet"/>
- </ExtensionPoint>
-
- <Extension path = "/MonoDevelop/Profiling/Profilers">
- <Profiler class="MonoDevelop.Profiling.HeapShot.HeapShotProfiler" />
- </Extension>
-
- <Extension path = "/MonoDevelop/Profiling/FileFilters">
- <FileFilter id = "OMAP" insertbefore = "AllFiles" _label = "HeapShot Snapshots" extensions = "*.omap"/>
- </Extension>
-
- <Extension path = "/MonoDevelop/Ide/Pads/MonoDevelop.Profiling.ProfilingPad">
- <NodeBuilder id = "HeapShotProfilingSnapshotNodeBuilder" class = "MonoDevelop.Profiling.HeapShot.HeapShotProfilingSnapshotNodeBuilder"/>
- </Extension>
-
- <Extension path = "/MonoDevelop/Profiling/ContextMenu/ProfilingPad/HeapShotProfilingSnapshotNode">
- <CommandItem id = "MonoDevelop.Ide.Commands.EditCommands.Rename"/>
- <SeparatorItem id = "DeleteSeparator" />
- <CommandItem id = "MonoDevelop.Ide.Commands.EditCommands.Delete" />
- </Extension>
-</Addin>
diff --git a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapShot/MonoDevelop.Profiling.HeapShot.mdp b/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapShot/MonoDevelop.Profiling.HeapShot.mdp
deleted file mode 100644
index 863c4eb4a1..0000000000
--- a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapShot/MonoDevelop.Profiling.HeapShot.mdp
+++ /dev/null
@@ -1,62 +0,0 @@
-<Project name="MonoDevelop.Profiling.HeapShot" fileversion="2.0" DefaultNamespace="MonoDevelop.Profiling.HeapShot" language="C#" clr-version="Net_2_0" targetFramework=".NETFramework,Version=v4.0" ctype="DotNetProject">
- <MonoDevelop.Autotools.MakefileInfo IntegrationEnabled="True" RelativeMakefileName="Makefile.am" CleanTargetName="" SyncReferences="True" IsAutotoolsProject="True" RelativeConfigureInPath="..">
- <BuildFilesVar Sync="True" Name="FILES" />
- <DeployFilesVar />
- <ResourcesVar Sync="True" Name="RES" />
- <OthersVar />
- <GacRefVar Sync="True" Name="REFS" Prefix="-r:" />
- <AsmRefVar Sync="True" Name="REFS" Prefix="-r:" />
- <ProjectRefVar Sync="True" Name="REFS" Prefix="-r:" />
- </MonoDevelop.Autotools.MakefileInfo>
- <Configurations active="Debug">
- <Configuration name="Debug" ctype="DotNetProjectConfiguration">
- <Output directory="../build" assembly="MonoDevelop.Profiling.HeapShot" />
- <Build debugmode="True" target="Library" />
- <Execution consolepause="True" runwithwarnings="True" runtime="MsNet" clr-version="Net_2_0" />
- <CodeGeneration compiler="Mcs" warninglevel="4" optimize="True" unsafecodeallowed="False" generateoverflowchecks="True" generatexmldocumentation="False" ctype="CSharpCompilerParameters" />
- </Configuration>
- <Configuration name="Release" ctype="DotNetProjectConfiguration">
- <Output directory="../build" assembly="MonoDevelop.Profiling.HeapShot" />
- <Build debugmode="False" target="Library" />
- <Execution consolepause="True" runwithwarnings="True" runtime="MsNet" clr-version="Net_2_0" />
- <CodeGeneration compiler="Mcs" warninglevel="4" optimize="True" unsafecodeallowed="False" generateoverflowchecks="True" generatexmldocumentation="False" ctype="CSharpCompilerParameters" />
- </Configuration>
- </Configurations>
- <Contents>
- <File subtype="Code" buildaction="EmbedAsResource" name="gtk-gui/gui.stetic" />
- <File subtype="Code" buildaction="Compile" name="gtk-gui/generated.cs" />
- <File subtype="Code" buildaction="Compile" name="HeapShotProfiler.cs" />
- <File subtype="Code" buildaction="Compile" name="HeapShotProfilingSnapshot.cs" />
- <File subtype="Code" buildaction="EmbedAsResource" name="MonoDevelop.Profiling.HeapShot.addin.xml" />
- <File subtype="Code" buildaction="Compile" name="Snapshot/FieldInfo.cs" />
- <File subtype="Code" buildaction="Compile" name="Snapshot/ObjectInfo.cs" />
- <File subtype="Code" buildaction="Compile" name="Snapshot/ObjectMapReader.cs" />
- <File subtype="Code" buildaction="Compile" name="Snapshot/ObjectReference.cs" />
- <File subtype="Code" buildaction="Compile" name="Snapshot/ReferenceNode.cs" />
- <File subtype="Code" buildaction="Compile" name="Snapshot/TypeInfo.cs" />
- <File subtype="Code" buildaction="Compile" name="Gui/HeapShotProfilingSnapshotNodeBuilder.cs" />
- <File subtype="Code" buildaction="Compile" name="Gui/HeapShotProfilingSnapshotView.cs" />
- <File subtype="Code" buildaction="Compile" name="Gui/ReferenceTreeViewer.cs" />
- <File subtype="Code" buildaction="Compile" name="gtk-gui/MonoDevelop.Profiling.HeapShot.ReferenceTreeViewer.cs" />
- <File subtype="Code" buildaction="Compile" name="AssemblyInfo.cs" />
- </Contents>
- <References>
- <ProjectReference type="Gac" localcopy="True" refto="Mono.Addins, Version=0.4.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756" />
- <ProjectReference type="Gac" localcopy="True" refto="MonoDevelop.Core, Version=0.18.0.0, Culture=neutral" />
- <ProjectReference type="Gac" localcopy="True" refto="MonoDevelop.Ide, Version=0.18.0.0, Culture=neutral" />
- <ProjectReference type="Project" localcopy="True" refto="MonoDevelop.Profiling" />
- <ProjectReference type="Gac" localcopy="True" refto="NRefactory, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null" />
- <ProjectReference type="Gac" localcopy="True" refto="Mono.Cecil, Version=0.6.8.8607, Culture=neutral, PublicKeyToken=null" />
- <ProjectReference type="Gac" localcopy="True" refto="glib-sharp, Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
- <ProjectReference type="Gac" localcopy="True" refto="pango-sharp, Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
- <ProjectReference type="Gac" localcopy="True" refto="atk-sharp, Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
- <ProjectReference type="Gac" localcopy="True" refto="gdk-sharp, Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
- <ProjectReference type="Gac" localcopy="True" refto="gtk-sharp, Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
- <ProjectReference type="Gac" localcopy="True" refto="Mono.TextEditor, Version=1.0.0.0, Culture=neutral" />
- <ProjectReference type="Custom" localcopy="True" Include="MonoDevelop.Core,2.2" refto="MonoDevelop.Core,2.2" ctype="AddinReference" />
- <ProjectReference type="Custom" localcopy="True" Include="MonoDevelop.Ide,2.2" refto="MonoDevelop.Ide,2.2" ctype="AddinReference" />
- <ProjectReference type="Gac" localcopy="True" refto="Mono.Debugging, Version=0.0.0.0, Culture=neutral, PublicKeyToken=5e9ce85b0923c84f" />
- <ProjectReference type="Gac" localcopy="True" refto="Mono.Posix, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756" />
- <ProjectReference type="Gac" localcopy="True" refto="System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
- </References>
-</Project> \ No newline at end of file
diff --git a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapShot/Snapshot/FieldInfo.cs b/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapShot/Snapshot/FieldInfo.cs
deleted file mode 100644
index 7a35b1c268..0000000000
--- a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapShot/Snapshot/FieldInfo.cs
+++ /dev/null
@@ -1,39 +0,0 @@
-//
-// Author:
-// Lluis Sanchez Gual
-//
-// Copyright (C) 2005 Novell, Inc (http://www.novell.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-using System;
-using System.Collections;
-using System.IO;
-using System.Text.RegularExpressions;
-
-namespace MonoDevelop.Profiling.HeapShot
-{
- public struct FieldInfo
- {
- public ulong Code;
- public string Name;
- }
-} \ No newline at end of file
diff --git a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapShot/Snapshot/ObjectInfo.cs b/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapShot/Snapshot/ObjectInfo.cs
deleted file mode 100644
index 86c0e857d5..0000000000
--- a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapShot/Snapshot/ObjectInfo.cs
+++ /dev/null
@@ -1,44 +0,0 @@
-//
-// Author:
-// Lluis Sanchez Gual
-//
-// Copyright (C) 2005 Novell, Inc (http://www.novell.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-using System;
-using System.Collections;
-using System.IO;
-using System.Text.RegularExpressions;
-
-namespace MonoDevelop.Profiling.HeapShot
-{
- public struct ObjectInfo
- {
- public uint Code;
- public int Type;
- public uint Size;
- public int RefsIndex;
- public int RefsCount;
- public int InverseRefsIndex;
- public int InverseRefsCount;
- }
-} \ No newline at end of file
diff --git a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapShot/Snapshot/ObjectMapReader.cs b/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapShot/Snapshot/ObjectMapReader.cs
deleted file mode 100644
index 4dd4be46ca..0000000000
--- a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapShot/Snapshot/ObjectMapReader.cs
+++ /dev/null
@@ -1,605 +0,0 @@
-//
-// Author:
-// Lluis Sanchez Gual
-//
-// Copyright (C) 2005 Novell, Inc (http://www.novell.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-using System;
-using System.Collections;
-using System.Collections.Generic;
-using System.IO;
-using System.Text.RegularExpressions;
-
-namespace MonoDevelop.Profiling.HeapShot
-{
- public class ObjectMapReader
- {
- const uint magic_number = 0x4eabfdd1;
- const int expected_log_version = 6;
- const int expected_summary_version = 2;
- const string log_file_label = "heap-shot logfile";
-
- bool terminated_normally = true;
- string name;
- DateTime timestamp;
- uint numTypes;
- uint numObjects;
- uint numReferences;
- uint numFields;
- uint totalMemory;
- uint objectCount;
-
- int curObject;
- int curType;
- int curField;
- int curRef;
-
- ObjectInfo[] objects;
- TypeInfo[] types;
- string[] fieldNames;
- int[] objectIndices;
- int[] typeIndices;
- int[] references;
- int[] inverseRefs;
- int[] fieldReferences;
- bool[] filteredObjects;
-
- uint[] referenceCodes;
- uint[] objectTypeCodes;
- uint[] fieldCodes;
- uint[] fieldReferenceCodes;
- uint[] objectCodes;
-
- internal ObjectMapReader ()
- {
- }
-
- public ObjectMapReader (string filename)
- {
- this.name = filename;
-
- Stream stream;
- stream = new FileStream (filename, FileMode.Open, FileAccess.Read);
-
- BinaryReader reader;
- reader = new BinaryReader (stream);
-
- ReadPreamble (reader);
- ReadLogFile (reader);
-
- reader.Close ();
-
- timestamp = File.GetLastWriteTime (filename);
- }
-
- public string Name {
- get { return name; }
- }
-
- public DateTime Timestamp {
- get { return timestamp; }
- }
-
- public uint TotalMemory {
- get { return totalMemory; }
- }
-
- public uint NumObjects {
- get { return objectCount; }
- }
-
- public static ObjectMapReader CreateProcessSnapshot (int pid)
- {
- string dumpFile = "/tmp/heap-shot-dump";
- if (File.Exists (dumpFile))
- File.Delete (dumpFile);
- System.Diagnostics.Process.Start ("kill", "-PROF " + pid);
-
- string fileName = null;
- int tries = 40;
-
- while (fileName == null) {
- if (--tries == 0)
- return null;
-
- System.Threading.Thread.Sleep (500);
- if (!File.Exists (dumpFile))
- continue;
-
- StreamReader freader = null;
- try {
- freader = new StreamReader (dumpFile);
- fileName = freader.ReadToEnd ();
- freader.Close ();
- } catch {
- if (freader != null)
- freader.Close ();
- }
- }
- return new ObjectMapReader (fileName);
- }
-
- ///////////////////////////////////////////////////////////////////
-
- private void Spew (string format, params object [] args)
- {
- string message;
- message = String.Format (format, args);
- Console.WriteLine (message);
- }
-
- ///////////////////////////////////////////////////////////////////
-
- private void ReadPreamble (BinaryReader reader)
- {
- uint this_magic;
- this_magic = reader.ReadUInt32 ();
- if (this_magic != magic_number) {
- string msg;
- msg = String.Format ("Bad magic number: expected {0}, found {1}",
- magic_number, this_magic);
- throw new Exception (msg);
- }
-
- int this_version;
- this_version = reader.ReadInt32 ();
-
- string this_label;
- int expected_version;
-
- this_label = reader.ReadString ();
- if (this_label == log_file_label) {
- expected_version = expected_log_version;
- } else
- throw new Exception ("Unknown file label in heap-shot outfile");
-
- if (this_version != expected_version) {
- string msg;
- msg = String.Format ("Version error in {0}: expected {1}, found {2}",
- this_label, expected_version, this_version);
- throw new Exception (msg);
- }
- numTypes = reader.ReadUInt32 ();
- numObjects = reader.ReadUInt32 ();
- numReferences = reader.ReadUInt32 ();
- numFields = reader.ReadUInt32 ();
- objectCount = numObjects;
- }
-
- //
- // Code to read the log files generated at runtime
- //
-
- // These need to agree w/ the definitions in outfile-writer.c
- const byte TAG_TYPE = 0x01;
- const byte TAG_OBJECT = 0x02;
- const byte TAG_EOS = 0xff;
-
- private void ReadLogFile (BinaryReader reader)
- {
- int chunk_count = 0;
-
- objects = new ObjectInfo [numObjects];
- types = new TypeInfo [numTypes];
- objectTypeCodes = new uint [numObjects];
- referenceCodes = new uint [numReferences];
- fieldReferenceCodes = new uint [numReferences];
- fieldCodes = new uint [numFields];
- fieldNames = new string [numFields];
-
- try {
- while (ReadLogFileChunk (reader))
- ++chunk_count;
-
- } catch (System.IO.EndOfStreamException) {
- // This means that the outfile was truncated.
- // In that case, just do nothing --- except if the file
- // claimed that things terminated normally.
- if (terminated_normally)
- throw new Exception ("The heap log did not contain TAG_EOS, "
- + "but the outfile was marked as having been terminated normally, so "
- + "something must be terribly wrong.");
- }
- BuildMap ();
- Spew ("Processed {0} chunks", chunk_count);
-
- objectTypeCodes = null;
- referenceCodes = null;
- fieldReferenceCodes = null;
- fieldCodes = null;
- }
-
- private bool ReadLogFileChunk (BinaryReader reader)
- {
- byte tag = reader.ReadByte ();
-
- switch (tag) {
- case TAG_TYPE:
- ReadLogFileChunk_Type (reader);
- break;
-
- case TAG_OBJECT:
- ReadLogFileChunk_Object (reader);
- break;
-
- case TAG_EOS:
- //Spew ("Found EOS");
- return false;
-
- default:
- throw new Exception ("Unknown tag! " + tag);
- }
-
- return true;
- }
-
- private void ReadLogFileChunk_Type (BinaryReader reader)
- {
- uint code = reader.ReadUInt32 ();
- string name = reader.ReadString ();
-
- types [curType].Code = code;
- types [curType].Name = name;
- types [curType].FieldsIndex = curField;
-
- int nf = 0;
- uint fcode;
- while ((fcode = reader.ReadUInt32 ()) != 0) {
- fieldCodes [curField] = fcode;
- fieldNames [curField] = reader.ReadString ();
- curField++;
- nf++;
- }
- types [curType].FieldsCount = nf;
- curType++;
- }
-
- private void ReadLogFileChunk_Object (BinaryReader reader)
- {
- objects [curObject].Code = reader.ReadUInt32 ();
- objectTypeCodes [curObject] = reader.ReadUInt32 ();
- objects [curObject].Size = reader.ReadUInt32 ();
- objects [curObject].RefsIndex = curRef;
- totalMemory += objects [curObject].Size;
-
- // Read referenceCodes
-
- int nr = 0;
- uint oref;
- while ((oref = reader.ReadUInt32 ()) != 0) {
- referenceCodes [curRef] = oref;
- fieldReferenceCodes [curRef] = reader.ReadUInt32 ();
- nr++;
- curRef++;
- }
- objects [curObject].RefsCount = nr;
- curObject++;
- }
-
- void BuildMap ()
- {
- // Build an array of object indices and sort it
-
- RefComparer objectComparer = new RefComparer ();
- objectComparer.objects = objects;
-
- objectIndices = new int [numObjects];
- for (int n=0; n < numObjects; n++)
- objectIndices [n] = n;
- Array.Sort<int> (objectIndices, objectComparer);
- // Sorted array of codes needed for the binary search
- objectCodes = new uint [numObjects];
- for (int n=0; n < numObjects; n++)
- objectCodes [n] = objects [objectIndices[n]].Code;
-
- // Build an array of type indices and sort it
-
- TypeComparer typeComparer = new TypeComparer ();
- typeComparer.types = types;
-
- typeIndices = new int [numTypes];
- for (int n=0; n < numTypes; n++)
- typeIndices [n] = n;
- Array.Sort<int> (typeIndices, typeComparer);
- // Sorted array of codes needed for the binary search
- uint[] typeCodes = new uint [numTypes];
- for (int n=0; n < numTypes; n++) {
- typeCodes [n] = types [typeIndices[n]].Code;
- }
-
- // Assign the type index to each object
-
- for (int n=0; n<numObjects; n++) {
- int i = Array.BinarySearch<uint> (typeCodes, objectTypeCodes [n]);
- if (i >= 0) {
- objects [n].Type = typeIndices [i];
- types [objects [n].Type].ObjectCount++;
- types [objects [n].Type].TotalSize += objects [n].Size;
- }
- }
-
- // Build the array of referenceCodes, but using indexes
- references = new int [numReferences];
-
- for (int n=0; n<numReferences; n++) {
- int i = Array.BinarySearch (objectCodes, referenceCodes[n]);
- if (i >= 0) {
- references[n] = objectIndices [i];
- objects [objectIndices [i]].InverseRefsCount++;
- } else
- references[n] = -1;
- }
-
- // Calculate the array index of inverse referenceCodes for each object
-
- int[] invPositions = new int [numObjects]; // Temporary array to hold reference positions
- int rp = 0;
- for (int n=0; n<numObjects; n++) {
- objects [n].InverseRefsIndex = rp;
- invPositions [n] = rp;
- rp += objects [n].InverseRefsCount;
- }
-
- // Build the array of inverse referenceCodes
- // Also calculate the index of each field name
-
- inverseRefs = new int [numReferences];
- fieldReferences = new int [numReferences];
-
- for (int ob=0; ob < numObjects; ob++) {
- int fi = types [objects [ob].Type].FieldsIndex;
- int nf = fi + types [objects [ob].Type].FieldsCount;
- int sr = objects [ob].RefsIndex;
- int er = sr + objects [ob].RefsCount;
- for (; sr<er; sr++) {
- int i = references [sr];
- if (i != -1) {
- inverseRefs [invPositions [i]] = ob;
- invPositions [i]++;
- }
- // If the reference is bound to a field, locate the field
- uint fr = fieldReferenceCodes [sr];
- if (fr != 0) {
- for (int k=fi; k<nf; k++) {
- if (fieldCodes [k] == fr) {
- fieldReferences [sr] = k;
- break;
- }
- }
- }
- }
- }
- }
-
- class RefComparer: IComparer <int> {
- public ObjectInfo[] objects;
-
- public int Compare (int x, int y) {
- return objects [x].Code.CompareTo (objects [y].Code);
- }
- }
-
- class TypeComparer: IComparer <int> {
- public TypeInfo[] types;
-
- public int Compare (int x, int y) {
- return types [x].Code.CompareTo (types [y].Code);
- }
- }
-
- public ReferenceNode GetReferenceTree (string typeName, bool inverse)
- {
- int type = GetTypeFromName (typeName);
- if (type != -1)
- return GetReferenceTree (type, inverse);
- else
- return new ReferenceNode (this, type, inverse);
- }
-
- public ReferenceNode GetReferenceTree (int type, bool inverse)
- {
- ReferenceNode nod = new ReferenceNode (this, type, inverse);
- nod.AddGlobalReferences ();
- nod.Flush ();
- return nod;
- }
-
- public List<List<int>> GetRoots (int type)
- {
- List<int> path = new List<int> ();
- Dictionary<int,List<int>> roots = new Dictionary<int,List<int>> ();
- Dictionary<int,int> visited = new Dictionary<int,int> ();
-
- foreach (int obj in GetObjectsByType (type)) {
- FindRoot (visited, path, roots, obj);
- visited.Clear ();
- }
-
- List<List<int>> res = new List<List<int>> ();
- res.AddRange (roots.Values);
- return res;
- }
-
- void FindRoot (Dictionary<int,int> visited, List<int> path, Dictionary<int,List<int>> roots, int obj)
- {
- if (visited.ContainsKey (obj))
- return;
- visited [obj] = obj;
- path.Add (obj);
-
- bool hasrefs = false;
- foreach (int oref in GetReferencers (obj)) {
- hasrefs = true;
- FindRoot (visited, path, roots, oref);
- }
-
- if (!hasrefs) {
- // A root
- if (!roots.ContainsKey (obj)) {
- roots [obj] = new List<int> (path);
- } else {
- List<int> ep = roots [obj];
- if (ep.Count > path.Count)
- roots [obj] = new List<int> (path);
- }
- }
- path.RemoveAt (path.Count - 1);
- }
-
- public int GetTypeCount ()
- {
- return (int) numTypes;
- }
-
- public int GetTypeFromName (string name)
- {
- for (int n=0; n<numTypes; n++) {
- if (name == types [n].Name)
- return n;
- }
- return -1;
- }
-
- public IEnumerable<int> GetObjectsByType (int type)
- {
- for (int n=0; n<numObjects; n++) {
- if (objects [n].Type == type && (filteredObjects == null || !filteredObjects[n])) {
- yield return n;
- }
- }
- }
-
- public static ObjectMapReader GetDiff (ObjectMapReader oldMap, ObjectMapReader newMap)
- {
- ObjectMapReader dif = new ObjectMapReader ();
- dif.fieldNames = newMap.fieldNames;
- dif.fieldReferences = newMap.fieldReferences;
- dif.inverseRefs = newMap.inverseRefs;
- dif.numFields = newMap.numFields;
- dif.numObjects = newMap.numObjects;
- dif.numReferences = newMap.numReferences;
- dif.numTypes = newMap.numTypes;
- dif.objectCount = newMap.objectCount;
- dif.objectIndices = newMap.objectIndices;
- dif.objects = newMap.objects;
- dif.objectCodes = newMap.objectCodes;
- dif.references = newMap.references;
- dif.totalMemory = newMap.totalMemory;
- dif.typeIndices = newMap.typeIndices;
- dif.types = newMap.types;
- dif.RemoveData (oldMap);
- return dif;
- }
-
- public void RemoveData (ObjectMapReader otherReader)
- {
- types = (TypeInfo[]) types.Clone ();
- filteredObjects = new bool [numObjects];
- for (int n=0; n<otherReader.numObjects; n++) {
- int i = Array.BinarySearch (objectCodes, otherReader.objects[n].Code);
- if (i >= 0) {
- i = objectIndices [i];
- filteredObjects [i] = true;
- int t = objects[i].Type;
- types [t].ObjectCount--;
- types [t].TotalSize -= objects[i].Size;
- this.objectCount--;
- this.totalMemory -= objects[i].Size;
- }
- }
- }
-
- public IEnumerable<int> GetReferencers (int obj)
- {
- int n = objects [obj].InverseRefsIndex;
- int end = n + objects [obj].InverseRefsCount;
- for (; n<end; n++) {
- int ro = inverseRefs [n];
- if (filteredObjects == null || !filteredObjects [ro])
- yield return ro;
- }
- }
-
- public IEnumerable<int> GetReferences (int obj)
- {
- int n = objects [obj].RefsIndex;
- int end = n + objects [obj].RefsCount;
- for (; n<end; n++) {
- int ro = references [n];
- if (filteredObjects == null || !filteredObjects [ro])
- yield return ro;
- }
- }
-
- public string GetReferencerField (int obj, int refObj)
- {
- int n = objects [obj].RefsIndex;
- int end = n + objects [obj].RefsCount;
- for (; n<end; n++) {
- if (references [n] == refObj) {
- if (fieldReferences [n] != 0)
- return fieldNames [fieldReferences [n]];
- else
- return null;
- }
- }
- return null;
- }
-
- public string GetObjectTypeName (int obj)
- {
- return types [objects [obj].Type].Name;
- }
-
- public int GetObjectType (int obj)
- {
- return objects [obj].Type;
- }
-
- public uint GetObjectSize (int obj)
- {
- return objects [obj].Size;
- }
-
- public IEnumerable<int> GetTypes ()
- {
- for (int n=0; n<numTypes; n++)
- yield return n;
- }
-
- public string GetTypeName (int type)
- {
- return types [type].Name;
- }
-
- public int GetObjectCountForType (int type)
- {
- return types [type].ObjectCount;
- }
-
- public uint GetObjectSizeForType (int type)
- {
- return types [type].TotalSize;
- }
- }
-} \ No newline at end of file
diff --git a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapShot/Snapshot/ObjectReference.cs b/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapShot/Snapshot/ObjectReference.cs
deleted file mode 100644
index e3e5aced5f..0000000000
--- a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapShot/Snapshot/ObjectReference.cs
+++ /dev/null
@@ -1,40 +0,0 @@
-//
-// Author:
-// Lluis Sanchez Gual
-//
-// Copyright (C) 2005 Novell, Inc (http://www.novell.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-using System;
-using System.Collections;
-using System.IO;
-using System.Text.RegularExpressions;
-
-namespace MonoDevelop.Profiling.HeapShot
-{
- public struct ObjectReference
- {
- internal uint FieldCode;
- internal uint ObjectCode;
- public ObjectInfo Object;
- }
-} \ No newline at end of file
diff --git a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapShot/Snapshot/ReferenceNode.cs b/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapShot/Snapshot/ReferenceNode.cs
deleted file mode 100644
index 5657298ce9..0000000000
--- a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapShot/Snapshot/ReferenceNode.cs
+++ /dev/null
@@ -1,245 +0,0 @@
-//
-// Author:
-// Lluis Sanchez Gual
-//
-// Copyright (C) 2005 Novell, Inc (http://www.novell.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-using System;
-using System.Collections;
-using System.Collections.Generic;
-using System.IO;
-using System.Text.RegularExpressions;
-
-namespace MonoDevelop.Profiling.HeapShot
-{
- public class ReferenceNode
- {
- bool inverse;
- ObjectMapReader map;
-
- public string TypeName;
- public int RefCount;
- public int RefsToParent;
- public int RefsToRoot;
- public uint RootMemory;
- public uint TotalMemory;
- int type;
- bool globalRefs;
-
- public ArrayList references;
- public ArrayList fieldReferences;
- public Dictionary<int,RootRefInfo> refObjects = new Dictionary<int,RootRefInfo> ();
- public Dictionary<int,int> parentObjects = new Dictionary<int,int> ();
-
- public ReferenceNode (ObjectMapReader map, int type, bool inverse)
- {
- this.map = map;
- this.type = type;
- TypeName = map.GetTypeName (type);
- this.inverse = inverse;
- }
-
- public uint AverageSize {
- get { return RefCount != 0 ? (uint) (TotalMemory / RefCount) : 0; }
- }
-
- public ICollection FieldReferences {
- get { return fieldReferences != null ? fieldReferences : (ICollection) Type.EmptyTypes; }
- }
-
- public void AddGlobalReferences ()
- {
- RefCount = map.GetObjectCountForType (type);
- RefsToParent = 0;
- TotalMemory = map.GetObjectSizeForType (type);
- globalRefs = true;
- }
-
- public void AddReference (int obj)
- {
- AddReference (-1, obj, 1, map.GetObjectSize (obj), null);
- }
-
- void AddReference (int parentObject, int obj, int refsToRoot, uint rootMem, string fieldName)
- {
- if (parentObject != -1 && !parentObjects.ContainsKey (parentObject)) {
- parentObjects [parentObject] = parentObject;
- RefsToParent++;
- RefsToRoot += refsToRoot;
- RootMemory += rootMem;
- }
-
- if (fieldName != null) {
- // Update field reference count
- bool ffound = false;
- if (fieldReferences != null) {
- foreach (FieldReference f in fieldReferences) {
- if (f.FiledName == fieldName) {
- f.RefCount++;
- ffound = true;
- break;
- }
- }
- }
- if (!ffound) {
- FieldReference f = new FieldReference ();
- f.FiledName = fieldName;
- f.RefCount = 1;
- if (fieldReferences == null)
- fieldReferences = new ArrayList ();
- fieldReferences.Add (f);
- }
- }
-
- if (refObjects.ContainsKey (obj)) {
- RootRefInfo ri = refObjects [obj];
- ri.References += refsToRoot;
- ri.Memory += rootMem;
- refObjects [obj] = ri;
- return;
- }
-
- RefCount++;
-
- RootRefInfo rr = new RootRefInfo ();
- rr.References = refsToRoot;
- rr.Memory = rootMem;
- refObjects.Add (obj, rr);
- TotalMemory += map.GetObjectSize (obj);
- }
-
- public bool HasReferences {
- get {
- return true;
- }
- }
-
- public ArrayList References {
- get {
- if (references != null)
- return references;
-
- if (globalRefs) {
- RefsToParent = 0;
- RefCount = 0;
- TotalMemory = 0;
- foreach (int obj in map.GetObjectsByType (type))
- AddReference (obj);
- globalRefs = false;
- }
-
- references = new ArrayList ();
- foreach (KeyValuePair<int,RootRefInfo> entry in refObjects) {
- int obj = entry.Key;
- if (inverse) {
- foreach (int oref in map.GetReferencers (obj)) {
- ReferenceNode cnode = GetReferenceNode (oref);
- string fname = map.GetReferencerField (oref, obj);
- cnode.AddReference (obj, oref, entry.Value.References, entry.Value.Memory, fname);
- }
- } else {
- foreach (int oref in map.GetReferences (obj)) {
- ReferenceNode cnode = GetReferenceNode (oref);
- string fname = map.GetReferencerField (obj, oref);
- cnode.AddReference (obj, oref, 0, 0, fname);
- }
- }
- }
- foreach (ReferenceNode r in references)
- r.Flush ();
-
- refObjects = null;
- return references;
- }
- }
-
- public void Flush ()
- {
- parentObjects = null;
- }
-
- public ReferenceNode GetReferenceNode (int obj)
- {
- string name = map.GetObjectTypeName (obj);
- foreach (ReferenceNode cnode in references) {
- if (cnode.TypeName == name)
- return cnode;
- }
- ReferenceNode nod = new ReferenceNode (map, map.GetObjectType (obj), inverse);
- references.Add (nod);
- return nod;
- }
-
- public void Print (int maxLevels)
- {
- Print (0, maxLevels);
- }
-
- void Print (int level, int maxLevels)
- {
- Console.Write (new string (' ', level*3));
- Console.WriteLine (RefCount + " " + TypeName);
- if (fieldReferences != null && fieldReferences.Count != 0) {
- Console.Write (new string (' ', level*3) + new string (' ', RefCount.ToString().Length) + " ");
- Console.Write ("(");
- for (int n=0; n<fieldReferences.Count; n++) {
- if (n > 0) Console.Write (", ");
- FieldReference f = (FieldReference) fieldReferences [n];
- Console.Write (f.FiledName + ":" + f.RefCount);
- }
- Console.WriteLine (")");
- }
- if (level < maxLevels) {
- foreach (ReferenceNode cnode in References)
- cnode.Print (level + 1, maxLevels);
- }
- }
- }
-
- public class FieldReference
- {
- public int RefCount;
- public string FiledName;
- }
-
- public struct RootRefInfo
- {
- public int References;
- public uint Memory;
- }
-
- class ReferenceSorter: IComparer
- {
- public int Compare (object x, object y)
- {
- ReferenceNode t1 = (ReferenceNode) x;
- ReferenceNode t2 = (ReferenceNode) y;
- if (t1.RefCount == t2.RefCount)
- return 0;
- else if (t1.RefCount > t2.RefCount)
- return -1;
- else
- return 1;
- }
- }
-}
diff --git a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapShot/Snapshot/TypeInfo.cs b/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapShot/Snapshot/TypeInfo.cs
deleted file mode 100644
index 6a9a823ddb..0000000000
--- a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapShot/Snapshot/TypeInfo.cs
+++ /dev/null
@@ -1,43 +0,0 @@
-//
-// Author:
-// Lluis Sanchez Gual
-//
-// Copyright (C) 2005 Novell, Inc (http://www.novell.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-using System;
-using System.Collections;
-using System.IO;
-using System.Text.RegularExpressions;
-
-namespace MonoDevelop.Profiling.HeapShot
-{
- public struct TypeInfo
- {
- public uint Code;
- public string Name;
- public int FieldsIndex;
- public int FieldsCount;
- public int ObjectCount;
- public uint TotalSize;
- }
-} \ No newline at end of file
diff --git a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapShot/gtk-gui/MonoDevelop.Profiling.HeapShot.ReferenceTreeViewer.cs b/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapShot/gtk-gui/MonoDevelop.Profiling.HeapShot.ReferenceTreeViewer.cs
deleted file mode 100644
index 4d6a2f0eee..0000000000
--- a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapShot/gtk-gui/MonoDevelop.Profiling.HeapShot.ReferenceTreeViewer.cs
+++ /dev/null
@@ -1,107 +0,0 @@
-
-// This file has been generated by the GUI designer. Do not modify.
-namespace MonoDevelop.Profiling.HeapShot
-{
- public partial class ReferenceTreeViewer
- {
- private global::Gtk.VBox vbox1;
-
- private global::Gtk.ScrolledWindow scrolledwindow1;
-
- private global::Gtk.TreeView treeview;
-
- private global::Gtk.HBox hbox1;
-
- private global::Gtk.HBox boxFilter;
-
- private global::Gtk.Entry entryFilter;
-
- private global::Gtk.Button buttonFilter;
-
- private global::Gtk.CheckButton checkInverse;
-
- protected virtual void Build ()
- {
- global::Stetic.Gui.Initialize (this);
- // Widget MonoDevelop.Profiling.HeapShot.ReferenceTreeViewer
- global::Stetic.BinContainer.Attach (this);
- this.Events = ((global::Gdk.EventMask)(256));
- this.Name = "MonoDevelop.Profiling.HeapShot.ReferenceTreeViewer";
- // Container child MonoDevelop.Profiling.HeapShot.ReferenceTreeViewer.Gtk.Container+ContainerChild
- this.vbox1 = new global::Gtk.VBox ();
- this.vbox1.Name = "vbox1";
- this.vbox1.Spacing = 6;
- this.vbox1.BorderWidth = ((uint)(6));
- // Container child vbox1.Gtk.Box+BoxChild
- this.scrolledwindow1 = new global::Gtk.ScrolledWindow ();
- this.scrolledwindow1.CanFocus = true;
- this.scrolledwindow1.Name = "scrolledwindow1";
- this.scrolledwindow1.ShadowType = ((global::Gtk.ShadowType)(1));
- // Container child scrolledwindow1.Gtk.Container+ContainerChild
- this.treeview = new global::Gtk.TreeView ();
- this.treeview.CanFocus = true;
- this.treeview.Events = ((global::Gdk.EventMask)(8196));
- this.treeview.Name = "treeview";
- this.scrolledwindow1.Add (this.treeview);
- this.vbox1.Add (this.scrolledwindow1);
- global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.vbox1[this.scrolledwindow1]));
- w2.Position = 0;
- // Container child vbox1.Gtk.Box+BoxChild
- this.hbox1 = new global::Gtk.HBox ();
- this.hbox1.Name = "hbox1";
- this.hbox1.Spacing = 6;
- // Container child hbox1.Gtk.Box+BoxChild
- this.boxFilter = new global::Gtk.HBox ();
- this.boxFilter.Name = "boxFilter";
- this.boxFilter.Spacing = 3;
- // Container child boxFilter.Gtk.Box+BoxChild
- this.entryFilter = new global::Gtk.Entry ();
- this.entryFilter.CanFocus = true;
- this.entryFilter.Name = "entryFilter";
- this.entryFilter.IsEditable = true;
- this.entryFilter.InvisibleChar = '●';
- this.boxFilter.Add (this.entryFilter);
- global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.boxFilter[this.entryFilter]));
- w3.Position = 0;
- // Container child boxFilter.Gtk.Box+BoxChild
- this.buttonFilter = new global::Gtk.Button ();
- this.buttonFilter.CanFocus = true;
- this.buttonFilter.Name = "buttonFilter";
- this.buttonFilter.Label = "Filter";
- this.boxFilter.Add (this.buttonFilter);
- global::Gtk.Box.BoxChild w4 = ((global::Gtk.Box.BoxChild)(this.boxFilter[this.buttonFilter]));
- w4.Position = 1;
- w4.Expand = false;
- w4.Fill = false;
- this.hbox1.Add (this.boxFilter);
- global::Gtk.Box.BoxChild w5 = ((global::Gtk.Box.BoxChild)(this.hbox1[this.boxFilter]));
- w5.Position = 0;
- // Container child hbox1.Gtk.Box+BoxChild
- this.checkInverse = new global::Gtk.CheckButton ();
- this.checkInverse.CanFocus = true;
- this.checkInverse.Name = "checkInverse";
- this.checkInverse.Label = "Inverse references";
- this.checkInverse.DrawIndicator = true;
- this.hbox1.Add (this.checkInverse);
- global::Gtk.Box.BoxChild w6 = ((global::Gtk.Box.BoxChild)(this.hbox1[this.checkInverse]));
- w6.Position = 1;
- w6.Expand = false;
- w6.Fill = false;
- this.vbox1.Add (this.hbox1);
- global::Gtk.Box.BoxChild w7 = ((global::Gtk.Box.BoxChild)(this.vbox1[this.hbox1]));
- w7.Position = 1;
- w7.Expand = false;
- w7.Fill = false;
- this.Add (this.vbox1);
- if ((this.Child != null)) {
- this.Child.ShowAll ();
- }
- this.Show ();
- this.treeview.MotionNotifyEvent += new global::Gtk.MotionNotifyEventHandler (this.OnTreeviewMotionNotifyEvent);
- this.treeview.LeaveNotifyEvent += new global::Gtk.LeaveNotifyEventHandler (this.OnTreeviewLeaveNotifyEvent);
- this.entryFilter.Activated += new global::System.EventHandler (this.OnEntryFilterActivated);
- this.buttonFilter.Clicked += new global::System.EventHandler (this.OnButtonFilterClicked);
- this.checkInverse.Clicked += new global::System.EventHandler (this.OnCheckInverseClicked);
- }
- }
-}
diff --git a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapShot/gtk-gui/generated.cs b/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapShot/gtk-gui/generated.cs
deleted file mode 100755
index aa96390c4a..0000000000
--- a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapShot/gtk-gui/generated.cs
+++ /dev/null
@@ -1,82 +0,0 @@
-
-// This file has been generated by the GUI designer. Do not modify.
-namespace Stetic
-{
- internal class Gui
- {
- private static bool initialized;
-
- static internal void Initialize (Gtk.Widget iconRenderer)
- {
- if ((Stetic.Gui.initialized == false)) {
- Stetic.Gui.initialized = true;
- }
- }
- }
-
- internal class BinContainer
- {
- private Gtk.Widget child;
-
- private Gtk.UIManager uimanager;
-
- public static BinContainer Attach (Gtk.Bin bin)
- {
- BinContainer bc = new BinContainer ();
- bin.SizeRequested += new Gtk.SizeRequestedHandler (bc.OnSizeRequested);
- bin.SizeAllocated += new Gtk.SizeAllocatedHandler (bc.OnSizeAllocated);
- bin.Added += new Gtk.AddedHandler (bc.OnAdded);
- return bc;
- }
-
- private void OnSizeRequested (object sender, Gtk.SizeRequestedArgs args)
- {
- if ((this.child != null)) {
- args.Requisition = this.child.SizeRequest ();
- }
- }
-
- private void OnSizeAllocated (object sender, Gtk.SizeAllocatedArgs args)
- {
- if ((this.child != null)) {
- this.child.Allocation = args.Allocation;
- }
- }
-
- private void OnAdded (object sender, Gtk.AddedArgs args)
- {
- this.child = args.Widget;
- }
-
- public void SetUiManager (Gtk.UIManager uim)
- {
- this.uimanager = uim;
- this.child.Realized += new System.EventHandler (this.OnRealized);
- }
-
- private void OnRealized (object sender, System.EventArgs args)
- {
- if ((this.uimanager != null)) {
- Gtk.Widget w;
- w = this.child.Toplevel;
- if (((w != null) && typeof(Gtk.Window).IsInstanceOfType (w))) {
- ((Gtk.Window)(w)).AddAccelGroup (this.uimanager.AccelGroup);
- this.uimanager = null;
- }
- }
- }
- }
-
- internal class ActionGroups
- {
- public static Gtk.ActionGroup GetActionGroup (System.Type type)
- {
- return Stetic.ActionGroups.GetActionGroup (type.FullName);
- }
-
- public static Gtk.ActionGroup GetActionGroup (string name)
- {
- return null;
- }
- }
-}
diff --git a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapShot/gtk-gui/gui.stetic b/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapShot/gtk-gui/gui.stetic
deleted file mode 100755
index 59a454edee..0000000000
--- a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapShot/gtk-gui/gui.stetic
+++ /dev/null
@@ -1,113 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<stetic-interface>
- <configuration>
- <images-root-path>..</images-root-path>
- <target-gtk-version>2.10.2</target-gtk-version>
- </configuration>
- <import>
- <widget-library name="MonoDevelop.Components, Version=0.18.0.0, Culture=neutral" />
- <widget-library name="MonoDevelop.Ide, Version=0.18.0.0, Culture=neutral" />
- <widget-library name="MonoDevelop.Projects.Gui, Version=0.18.0.0, Culture=neutral" />
- <widget-library name="../../build/MonoDevelop.Profiling.dll" />
- </import>
- <widget class="Gtk.Bin" id="MonoDevelop.Profiling.HeapShot.ReferenceTreeViewer" design-size="480 300">
- <property name="MemberName" />
- <property name="Events">ButtonPressMask</property>
- <child>
- <widget class="Gtk.VBox" id="vbox1">
- <property name="MemberName" />
- <property name="Spacing">6</property>
- <property name="BorderWidth">6</property>
- <child>
- <widget class="Gtk.ScrolledWindow" id="scrolledwindow1">
- <property name="MemberName" />
- <property name="CanFocus">True</property>
- <property name="VscrollbarPolicy">Automatic</property>
- <property name="HscrollbarPolicy">Automatic</property>
- <property name="ShadowType">In</property>
- <child>
- <widget class="Gtk.TreeView" id="treeview">
- <property name="MemberName">treeview</property>
- <property name="CanFocus">True</property>
- <property name="Events">PointerMotionMask, LeaveNotifyMask</property>
- <property name="HeadersClickable">True</property>
- <signal name="MotionNotifyEvent" handler="OnTreeviewMotionNotifyEvent" />
- <signal name="LeaveNotifyEvent" handler="OnTreeviewLeaveNotifyEvent" />
- </widget>
- </child>
- </widget>
- <packing>
- <property name="Position">0</property>
- <property name="AutoSize">True</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.HBox" id="hbox1">
- <property name="MemberName" />
- <property name="Spacing">6</property>
- <child>
- <widget class="Gtk.HBox" id="boxFilter">
- <property name="MemberName">boxFilter</property>
- <property name="Spacing">3</property>
- <child>
- <widget class="Gtk.Entry" id="entryFilter">
- <property name="MemberName">entryFilter</property>
- <property name="CanFocus">True</property>
- <property name="IsEditable">True</property>
- <property name="InvisibleChar">●</property>
- <signal name="Activated" handler="OnEntryFilterActivated" />
- </widget>
- <packing>
- <property name="Position">0</property>
- <property name="AutoSize">True</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Button" id="buttonFilter">
- <property name="MemberName" />
- <property name="CanFocus">True</property>
- <property name="Type">TextOnly</property>
- <property name="Label">Filter</property>
- <signal name="Clicked" handler="OnButtonFilterClicked" />
- </widget>
- <packing>
- <property name="Position">1</property>
- <property name="AutoSize">True</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="Position">0</property>
- <property name="AutoSize">True</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.CheckButton" id="checkInverse">
- <property name="MemberName">checkInverse</property>
- <property name="CanFocus">True</property>
- <property name="Label">Inverse references</property>
- <property name="DrawIndicator">True</property>
- <property name="HasLabel">True</property>
- <signal name="Clicked" handler="OnCheckInverseClicked" />
- </widget>
- <packing>
- <property name="Position">1</property>
- <property name="AutoSize">False</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="Position">1</property>
- <property name="AutoSize">True</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- </widget>
- </child>
- </widget>
-</stetic-interface> \ No newline at end of file
diff --git a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapShot/gtk-gui/objects.xml b/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapShot/gtk-gui/objects.xml
deleted file mode 100644
index 2c33b19d32..0000000000
--- a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapShot/gtk-gui/objects.xml
+++ /dev/null
@@ -1,2 +0,0 @@
-<objects attr-sync="on">
-</objects> \ No newline at end of file
diff --git a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.mds b/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.mds
deleted file mode 100644
index 39d8431958..0000000000
--- a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling.mds
+++ /dev/null
@@ -1,28 +0,0 @@
-<Combine fileversion="2.0">
- <Policies>
- <VersionControlPolicy inheritsSet="Mono" />
- <ChangeLogPolicy UpdateMode="None" VcsIntegration="None" inheritsSet="Mono" />
- </Policies>
- <Configurations active="Debug">
- <Configuration name="Debug" ctype="CombineConfiguration">
- <Entry build="True" name="MonoDevelop.Profiling" configuration="Debug" />
- <Entry build="True" name="MonoDevelop.Profiling.HeapBuddy" configuration="Debug" />
- <Entry build="True" name="MonoDevelop.Profiling.HeapShot" configuration="Debug" />
- </Configuration>
- <Configuration name="Release" ctype="CombineConfiguration">
- <Entry build="True" name="MonoDevelop.Profiling" configuration="Release" />
- <Entry build="True" name="MonoDevelop.Profiling.HeapBuddy" configuration="Release" />
- <Entry build="True" name="MonoDevelop.Profiling.HeapShot" configuration="Release" />
- </Configuration>
- </Configurations>
- <StartMode startupentry="MonoDevelop.Profiling" single="True">
- <Execute type="None" entry="MonoDevelop.Profiling" />
- <Execute type="None" entry="MonoDevelop.Profiling.HeapBuddy" />
- <Execute type="None" entry="MonoDevelop.Profiling.HeapShot" />
- </StartMode>
- <Entries>
- <Entry filename="MonoDevelop.Profiling/MonoDevelop.Profiling.mdp" />
- <Entry filename="MonoDevelop.Profiling.HeapBuddy/MonoDevelop.Profiling.HeapBuddy.mdp" />
- <Entry filename="MonoDevelop.Profiling.HeapShot/MonoDevelop.Profiling.HeapShot.mdp" />
- </Entries>
-</Combine> \ No newline at end of file
diff --git a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/AbstractProfiler.cs b/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/AbstractProfiler.cs
deleted file mode 100644
index 11421fe8a2..0000000000
--- a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/AbstractProfiler.cs
+++ /dev/null
@@ -1,263 +0,0 @@
-//
-// Authors:
-// Ben Motmans <ben.motmans@gmail.com>
-//
-// Copyright (C) 2007 Ben Motmans
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-using Gtk;
-using System;
-using System.IO;
-using System.Reflection;
-using System.Diagnostics;
-using System.Collections.Generic;
-using MonoDevelop.Core;
-using MonoDevelop.Core.Execution;
-using MonoDevelop.Ide;
-
-namespace MonoDevelop.Profiling
-{
- public abstract class AbstractProfiler : IProfiler
- {
- protected ProfilerState state;
- protected ProfilingContext context;
- protected bool isSupported;
-
- protected object sync = new object ();
-
- public event ProfilingSnapshotEventHandler SnapshotTaken;
- public event EventHandler SnapshotFailed;
- public event ProfilerStateEventHandler StateChanged;
-
- public event EventHandler Started;
- public event EventHandler Stopped;
-
- public abstract string Identifier { get; }
- public abstract string Name { get; }
- public abstract string IconString { get; }
-
- public ProfilerState State {
- get { return state; }
- protected internal set {
- if (state != value) {
- state = value;
- OnStateChanged (new ProfilerStateEventArgs (value));
- }
- }
- }
-
- public ProfilingContext Context {
- get { return context; }
- }
-
- public virtual bool IsSupported {
- get { return isSupported; }
- }
-
- public virtual IExecutionHandler GetDefaultExecutionHandlerFactory ()
- {
- return new ApplicationExecutionHandlerFactory (this);
- }
-
- public virtual IExecutionHandler GetProcessExecutionHandlerFactory (Process process)
- {
- return new ProcessExecutionHandlerFactory (this, process);
- }
-
- public abstract string GetSnapshotFileName (string workingDirectory, string filename);
-
- public virtual void Start (ProfilingContext context)
- {
- if (context == null)
- throw new ArgumentNullException ("context");
-
- lock (sync) {
- if (State != ProfilerState.Inactive)
- throw new InvalidOperationException ("The profiler is already running.");
- State = ProfilerState.Profiling;
- }
-
- this.context = context;
- }
-
- public abstract void Stop ();
-
- public abstract void TakeSnapshot ();
-
- protected virtual void OnSnapshotTaken (ProfilingSnapshotEventArgs args)
- {
- if (SnapshotTaken != null)
- SnapshotTaken (this, args);
- }
-
- protected virtual void OnSnapshotFailed (EventArgs args)
- {
- if (SnapshotFailed != null)
- SnapshotFailed (this, args);
- }
-
- protected virtual void OnStateChanged (ProfilerStateEventArgs args)
- {
- if (StateChanged != null)
- StateChanged (this, args);
- }
-
- protected virtual void OnStarted (EventArgs args)
- {
- if (Started != null)
- Started (this, args);
- }
-
- protected virtual void OnStopped (EventArgs args)
- {
- if (Stopped != null)
- Stopped (this, args);
- }
-
- public virtual bool CanLoad (string fileName)
- {
- return false;
- }
-
- public virtual IProfilingSnapshot Load (string filename)
- {
- return null;
- }
-
- public abstract string GetSaveLocation ();
-
- protected virtual string GetSaveLocation (string name, string extension)
- {
- FileChooserDialog dlg = new FileChooserDialog (
- GettextCatalog.GetString ("Save Snapshot"), null, FileChooserAction.Save,
- "gtk-cancel", ResponseType.Cancel,
- "gtk-save", ResponseType.Accept
- );
- dlg.SelectMultiple = false;
- dlg.LocalOnly = true;
- dlg.Modal = true;
-
- if (IdeApp.ProjectOperations.CurrentSelectedSolution != null)
- dlg.SetCurrentFolder (IdeApp.ProjectOperations.CurrentSelectedSolution.BaseDirectory);
- else
- dlg.SetCurrentFolder (Environment.GetFolderPath (Environment.SpecialFolder.Personal));
-
- if (extension != null) {
- FileFilter filterExt = new FileFilter ();
- filterExt.AddPattern ("*." + extension);
- filterExt.Name = GettextCatalog.GetString (name);
- dlg.AddFilter (filterExt);
- }
- FileFilter filterAll = new FileFilter ();
- filterAll.AddPattern ("*");
- filterAll.Name = GettextCatalog.GetString ("All files");
- dlg.AddFilter (filterAll);
-
- string filename = null;
- if (dlg.Run () == (int)ResponseType.Accept)
- filename = dlg.Filename;
- dlg.Destroy ();
- return filename;
- }
-
- protected virtual void CheckSupported (string profilerName)
- {
- string prefix = GetMonoPrefix ();
- if (prefix == null) {
- isSupported = false;
- return;
- }
- string dir = Path.Combine (prefix, "lib");
-
- string[] exts = new string[] {".so", ".dylib", ".dll"};
- foreach (string ext in exts) {
- string file = Path.Combine (dir, profilerName + ext);
- if (File.Exists (file)) {
- isSupported = true;
- return;
- }
- }
-
- isSupported = false;
- }
-
- //code taken from mono->Managed.Windows.Forms/System.Windows.Forms/Application.cs
- private static string GetMonoPrefix ()
- {
- PropertyInfo gac = typeof (Environment).GetProperty ("GacPath", BindingFlags.Static | BindingFlags.NonPublic);
- MethodInfo get_gac = null;
- if (gac != null)
- get_gac = gac.GetGetMethod (true);
-
- if (get_gac != null) {
- string gac_path = Path.GetDirectoryName ((string)get_gac.Invoke (null, null));
- return Path.GetDirectoryName (Path.GetDirectoryName (gac_path));
- }
-
- return null;
- }
-
- protected internal class ApplicationExecutionHandlerFactory : IExecutionHandler
- {
- IProfiler profiler;
-
- public ApplicationExecutionHandlerFactory (IProfiler profiler)
- {
- this.profiler = profiler;
- }
-
- public bool CanExecute (ExecutionCommand command)
- {
- return command is DotNetExecutionCommand;
- }
-
- public IProcessAsyncOperation Execute (ExecutionCommand command, IConsole console)
- {
- MonoProfilerExecutionHandler h = new MonoProfilerExecutionHandler (profiler);
- return h.Execute (command, console);
- }
- }
-
- protected internal class ProcessExecutionHandlerFactory : IExecutionHandler
- {
- IProfiler profiler;
- Process process;
-
- public ProcessExecutionHandlerFactory (IProfiler profiler, Process process)
- {
- this.profiler = profiler;
- this.process = process;
- }
-
- public bool CanExecute (ExecutionCommand command)
- {
- return true;
- }
-
- public IProcessAsyncOperation Execute (ExecutionCommand command, IConsole console)
- {
- ProcessProfilerExecutionHandler h = new ProcessProfilerExecutionHandler (profiler, process);
- return h.Execute (command, console);
- }
- }
- }
-} \ No newline at end of file
diff --git a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/AbstractProfilerSnapshot.cs b/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/AbstractProfilerSnapshot.cs
deleted file mode 100644
index f7cebec9ad..0000000000
--- a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/AbstractProfilerSnapshot.cs
+++ /dev/null
@@ -1,84 +0,0 @@
-//
-// Authors:
-// Ben Motmans <ben.motmans@gmail.com>
-//
-// Copyright (C) 2007 Ben Motmans
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-using System;
-using System.IO;
-using System.ComponentModel;
-
-using MonoDevelop.Core;
-
-namespace MonoDevelop.Profiling
-{
- public abstract class AbstractProfilingSnapshot : IProfilingSnapshot
- {
- public event EventHandler NameChanged;
-
- protected IProfiler profiler;
- protected string filename;
-
- protected AbstractProfilingSnapshot (IProfiler profiler, string filename)
- {
- this.profiler = profiler;
- this.filename = filename;
- }
-
- public IProfiler Profiler {
- get { return profiler; }
- }
-
- public virtual string Name {
- get { return Path.GetFileNameWithoutExtension (filename); }
- set {
- if (value == null)
- throw new ArgumentNullException ("Name");
-
- string ext = Path.GetExtension (filename);
- string dir = Path.GetDirectoryName (filename);
- string dest = Path.Combine (dir, value + ext);
-
- FileService.MoveFile (filename, dest);
- filename = dest;
-
- OnNameChanged (EventArgs.Empty);
- }
- }
-
- [DefaultValue (false)]
- [Category ("Summary")]
- [DisplayName ("Filename")]
- [Description ("The location of the snapshot.")]
- [Browsable (true)]
- public string FileName {
- get { return filename; }
- }
-
- protected virtual void OnNameChanged (EventArgs args)
- {
- if (NameChanged != null)
- NameChanged (this, args);
- }
- }
-} \ No newline at end of file
diff --git a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/AssemblyInfo.cs b/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/AssemblyInfo.cs
deleted file mode 100644
index e14aa43291..0000000000
--- a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/AssemblyInfo.cs
+++ /dev/null
@@ -1,9 +0,0 @@
-// Autogenerated from MonoDevelop.Profiling.addin.xml
-
-using System.Reflection;
-
-[assembly: AssemblyProduct ("MonoDevelop")]
-[assembly: AssemblyTitle ("MonoDevelop Profiling Addin")]
-[assembly: AssemblyDescription ("MonoDevelop Profiling Addin")]
-[assembly: AssemblyVersion ("0.2.0")]
-[assembly: AssemblyCopyright ("MIT X11")]
diff --git a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/ChangeLog b/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/ChangeLog
deleted file mode 100644
index 1c79faa39e..0000000000
--- a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/ChangeLog
+++ /dev/null
@@ -1,202 +0,0 @@
-2010-05-03 Lluis Sanchez Gual <lluis@novell.com>
-
- * MonoDevelop.Profiling.addin.xml: On Windows, show the global
- options command in the Tools menu.
-
-2010-04-28 Lluis Sanchez Gual <lluis@novell.com>
-
- * DummyProcessAsyncOperation.cs: Track api changes.
-
-2010-03-22 Lluis Sanchez Gual <lluis@novell.com>
-
- * MonoDevelop.Profiling.addin.xml: Bumped MD version.
-
-2010-03-17 Lluis Sanchez Gual <lluis@novell.com>
-
- * gtk-gui/gui.stetic:
- * ProfilingContext.cs:
- * ProfilingService.cs:
- * AbstractProfiler.cs:
- * gtk-gui/generated.cs:
- * ProfilingOperations.cs:
- * Commands/PadCommands.cs:
- * Commands/ToolCommands.cs:
- * MonoDevelop.Profiling.mdp:
- * Commands/ProjectCommands.cs:
- * Dialogs/SelectProcessDialog.cs:
- * MonoDevelop.Profiling.addin.xml:
- * Commands/AbstractProfilerList.cs:
- * gtk-gui/MonoDevelop.Profiling.SelectProcessDialog.cs:
- * gtk-gui/MonoDevelop.Profiling.SelectExecutableDialog.cs:
- Merged MD.Projects into MD.Core, and MD.Projects.Gui,
- MD.Core.Gui and MD.Components into MD.Ide.
-
-2009-10-30 Lluis Sanchez Gual <lluis@novell.com>
-
- * MonoDevelop.Profiling.addin.xml: Bump MD version.
-
-2009-10-07 Lluis Sanchez Gual <lluis@novell.com>
-
- * MonoDevelop.Profiling.addin.xml: Bump MD version.
-
-2009-05-19 Lluis Sanchez Gual <lluis@novell.com>
-
- * MonoDevelop.Profiling.mdp: Flush.
-
-2009-04-20 Lluis Sanchez Gual <lluis@novell.com>
-
- * AbstractProfiler.cs:
- * ProfilingOperations.cs:
- * MonoProfilerExecutionHandler.cs:
- * ProcessProfilerExecutionHandler.cs: Track api changes done
- in IExecutionHandler.
-
-2009-04-15 Lluis Sanchez Gual <lluis@novell.com>
-
- * MonoDevelop.Profiling.addin.xml: Bump MD version.
-
-2009-03-04 Lluis Sanchez Gual <lluis@novell.com>
-
- * IProfiler.cs:
- * AbstractProfiler.cs:
- * ProfilingOperations.cs: Changed the way execution handlers
- work. We are not using platform ids anymore. Instead, we use
- command strings when looking for execution handlers.
- IExecutionHandlerFactory has been removed and now everything
- is handled by IExecutionHandler, which has a new CanExecute
- method. This model is more simple and more generic.
-
-2009/02/03 Lluis Sanchez Gual <lluis@novell.com>
-
- * AssemblyInfo.cs:
- * MonoDevelop.Profiling.addin.xml: Bump MD version.
-
-2009-01-26 Michael Hutchinson <mhutchinson@novell.com>
-
- * MonoDevelop.Profiling.mdp: Flush project format changes.
-
-2008-12-04 Lluis Sanchez Gual <lluis@novell.com>
-
- * DummyProcessAsyncOperation.cs: Track api changes.
-
-2008-12-02 Michael Hutchinson <mhutchinson@novell.com>
-
- * Makefile.am:
- * AssemblyInfo.cs:
- * MonoDevelop.Profiling.mdp: Add AssemblyInfo.cs files that are
- autogenerated from the addin manifests.
-
-2008-11-25 Michael Hutchinson <mhutchinson@novell.com>
-
- * MonoDevelop.Profiling.addin.xml: Track extension point changes.
-
-2008-11-06 Michael Hutchinson <mhutchinson@novell.com>
-
- * Makefile.am: Fix build dependencies.
-
-2008-11-05 Lluis Sanchez Gual <lluis@novell.com>
-
- * MonoDevelop.Profiling.addin.xml: Bump MD version.
-
-2008-09-17 Lluis Sanchez Gual <lluis@novell.com>
-
- * MonoDevelop.Profiling.mdp: Updated projects.
-
-2008-09-04 Lluis Sanchez Gual <lluis@novell.com>
-
- * Pads/ProfilingPad.cs, Pads/ProfilingSnapshotCollectionNodeBuilder.cs:
- Moved the extensible tree view to its own directory.
-
-2008-08-18 Lluis Sanchez Gual <lluis@novell.com>
-
- * MonoDevelop.Profiling.mdp: Fix reference to Mono.TextEditor. The
- incorrect add-in version number causes problems in the makefile
- synchronization.
-
-2008-06-17 Lluis Sanchez Gual <lluis@novell.com>
-
- * ProfilingOperations.cs: Switch workbench layouts instead of contexts,
- which are not very well supported.
-
-2008-06-04 Lluis Sanchez Gual <lluis@novell.com>
-
- * MonoDevelop.Profiling.addin.xml: Bump MD version.
-
-2008-06-03 Lluis Sanchez Gual <lluis@novell.com>
-
- * AbstractProfiler.cs: Track api changes.
-
-2008-05-21 Lluis Sanchez Gual <lluis@novell.com>
-
- * Makefile.am: Fix makefiles.
-
-2008-05-21 Lluis Sanchez Gual <lluis@novell.com>
-
- * MonoDevelop.Profiling.mdp, ProfilingOperations.cs,
- Commands/AbstractProfilerList.cs, Commands/ProjectCommands.cs,
- AbstractProfiler.cs: New project model changes and updates.
-
-2008-03-10 Lluis Sanchez Gual <lluis@novell.com>
-
- * ProfilingService.cs: Track changes in the MessageService class.
-
-2008-02-08 Lluis Sanchez Gual <lluis@novell.com>
-
- * Pads/ProfilingPad.cs, MonoDevelop.Profiling.addin.xml: Track api changes.
-
-2008-01-25 Lluis Sanchez Gual <lluis@novell.com>
-
- * MonoDevelop.Profiling.addin.xml: Update MD version.
-
-2008-01-22 Lluis Sanchez Gual <lluis@novell.com>
-
- * MonoDevelop.Profiling.addin.xml: Updated add-in category and description.
-
-2007-12-27 Ben Motmans <ben.motmans@gmail.com>
-
- * Makefile.am: patch from Zach Lute to fix a compilation problem when
- monodevelop isn't installed [fixes #350769]
-
-2007-12-20 Ben Motmans <ben.motmans@gmail.com>
-
- * IProfiler.cs, AbstractProfiler.cs, ProfilingService.cs: handle snapshot
- failures
-
-2007-12-20 Ben Motmans <ben.motmans@gmail.com>
-
- * MonoDevelop.Profiling.addin.xml: removed the 'defaultVisible' attribute
- from all ContextPad nodes since it no longer exists
- * ProfilingOperations.cs: show the profiling pad when switching to the
- 'Profile' context
- * Makefile.am: automatic changes by MD
-
-2007-12-19 Ben Motmans <ben.motmans@gmail.com>
-
- * Makefile.am: added missing makefiles
-
-2007-12-19 Ben Motmans <ben.motmans@gmail.com>
-
- * Dialogs, Dialogs/SelectProcessDialog.cs,
- Dialogs/SelectExecutableDialog.cs, Codons, Codons/ProfilerCodon.cs,
- IProfilingSnapshot.cs, ProfilerState.cs, Pads, Pads/ProfilingPad.cs,
- Pads/ProfilingSnapshotCollectionNodeBuilder.cs, ChangeLog,
- ProfilingSnapshotCollection.cs, AbstractProfilerSnapshot.cs,
- ProfilingSnapshotEventArgs.cs, MonoDevelop.Profiling.addin.xml,
- MonoDevelop.Profiling.mdp, IProfiler.cs,
- MonoProfilerExecutionHandler.cs, ProfilingOperations.cs, Commands,
- Commands/ToolCommands.cs, Commands/AbstractProfilerList.cs,
- Commands/PadCommands.cs, Commands/ProjectCommands.cs,
- ProfilingContext.cs, ProfilerEventArgs.cs, ProfilerStateEventArgs.cs,
- gtk-gui, gtk-gui/MonoDevelop.Profiling.SelectProcessDialog.cs,
- gtk-gui/generated.cs,
- gtk-gui/MonoDevelop.Profiling.SelectExecutableDialog.cs,
- gtk-gui/objects.xml, gtk-gui/gui.stetic,
- ProcessProfilerExecutionHandler.cs, AbstractProfiler.cs, icons,
- icons/Icons.16x16.Profiling.GC.png,
- icons/Icons.16x16.Profiling.Summary.png,
- icons/Icons.16x16.Profiling.Snapshot.png,
- icons/Icons.16x16.Profiling.History.png,
- icons/Icons.16x16.Profiling.Filter.png, DummyProcessAsyncOperation.cs,
- ProfilingService.cs: Initial code commit
-
-
diff --git a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/Codons/ProfilerCodon.cs b/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/Codons/ProfilerCodon.cs
deleted file mode 100644
index 7da9e5b7a1..0000000000
--- a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/Codons/ProfilerCodon.cs
+++ /dev/null
@@ -1,38 +0,0 @@
-//
-// Authors:
-// Ben Motmans <ben.motmans@gmail.com>
-//
-// Copyright (c) 2007 Ben Motmans
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-//
-
-using System;
-using System.Collections.Generic;
-using Mono.Addins;
-
-namespace MonoDevelop.Profiling
-{
- public class ProfilerCodon : TypeExtensionNode
- {
- public IProfiler Profiler {
- get { return (IProfiler)base.CreateInstance (); }
- }
- }
-} \ No newline at end of file
diff --git a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/Commands/AbstractProfilerList.cs b/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/Commands/AbstractProfilerList.cs
deleted file mode 100644
index d4480e9e45..0000000000
--- a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/Commands/AbstractProfilerList.cs
+++ /dev/null
@@ -1,66 +0,0 @@
-//
-// Authors:
-// Ben Motmans <ben.motmans@gmail.com>
-//
-// Copyright (C) 2007 Ben Motmans
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-using System;
-using System.IO;
-using System.Threading;
-using System.Diagnostics;
-using MonoDevelop.Core;
-using MonoDevelop.Core.Execution;
-using MonoDevelop.Components;
-using MonoDevelop.Ide;
-using MonoDevelop.Components.Commands;
-
-namespace MonoDevelop.Profiling
-{
- internal class AbstractProfilerList : CommandHandler
- {
- protected override void Update (CommandArrayInfo info)
- {
- if (ProfilingService.ProfilerCount > 0) {
- foreach (IProfiler prof in ProfilingService.Profilers) {
- CommandInfo cmd = new CommandInfo (GettextCatalog.GetString (prof.Name));
- cmd.UseMarkup = true;
- cmd.Icon = prof.IconString;
- if (prof.IsSupported) {
- if (IdeApp.Workspace.IsOpen)
- cmd.Enabled = IdeApp.ProjectOperations.CurrentRunOperation.IsCompleted;
- else
- cmd.Enabled = (IdeApp.Workbench.ActiveDocument != null && IdeApp.Workbench.ActiveDocument.IsBuildTarget);
- } else {
- cmd.Enabled = false;
- }
-
- info.Add (cmd, prof);
- }
- } else {
- CommandInfo cmd = new CommandInfo (GettextCatalog.GetString ("No profilers detected."));
- cmd.Enabled = false;
- info.Add (cmd, null);
- }
- }
- }
-} \ No newline at end of file
diff --git a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/Commands/PadCommands.cs b/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/Commands/PadCommands.cs
deleted file mode 100644
index c65deef07c..0000000000
--- a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/Commands/PadCommands.cs
+++ /dev/null
@@ -1,101 +0,0 @@
-//
-// Authors:
-// Ben Motmans <ben.motmans@gmail.com>
-//
-// Copyright (C) 2007 Ben Motmans
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-using Gtk;
-using System;
-using System.IO;
-using MonoDevelop.Core;
-
-using MonoDevelop.Components.Commands;
-
-namespace MonoDevelop.Profiling
-{
- public enum PadCommands
- {
- StopProfiling,
- TakeSnapshot,
- OpenSnapshot
- }
-
- internal class StopProfilingHandler : CommandHandler
- {
- protected override void Run ()
- {
- if (ProfilingService.IsProfilerActive) {
- ProfilingService.ActiveProfiler.Stop ();
- ProfilingService.ActiveProfiler = null;
- }
- }
-
- protected override void Update (CommandInfo info)
- {
- info.Enabled = ProfilingService.IsProfilerActive &&
- ProfilingService.ActiveProfiler.State != ProfilerState.Inactive;
- }
- }
-
- internal class TakeSnapshotHandler : CommandHandler
- {
- protected override void Run ()
- {
- if (ProfilingService.IsProfilerActive)
- ProfilingService.ActiveProfiler.TakeSnapshot ();
- }
-
- protected override void Update (CommandInfo info)
- {
- info.Enabled = ProfilingService.IsProfilerActive &&
- ProfilingService.ActiveProfiler.State == ProfilerState.Profiling;
- }
- }
-
- internal class OpenSnapshotHandler : CommandHandler
- {
- protected override void Run ()
- {
- //TODO: patch the FileSelectorDialog to allow specific addin paths to be used ?
-
- FileChooserDialog dlg = new FileChooserDialog (
- GettextCatalog.GetString ("Select Executable"), null, FileChooserAction.Open,
- "gtk-cancel", ResponseType.Cancel,
- "gtk-open", ResponseType.Accept
- );
- dlg.SelectMultiple = false;
- dlg.LocalOnly = true;
- dlg.Modal = true;
- dlg.SetCurrentFolder (Environment.GetFolderPath (Environment.SpecialFolder.Personal));
-
- FileFilter filterAll = new FileFilter ();
- filterAll.AddPattern ("*");
- filterAll.Name = GettextCatalog.GetString ("All files");
- dlg.AddFilter (filterAll);
-
- if (dlg.Run () == (int)ResponseType.Accept)
- ProfilingService.LoadSnapshot (dlg.Filename);
- dlg.Destroy ();
- }
- }
-} \ No newline at end of file
diff --git a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/Commands/ProjectCommands.cs b/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/Commands/ProjectCommands.cs
deleted file mode 100644
index 07ec916425..0000000000
--- a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/Commands/ProjectCommands.cs
+++ /dev/null
@@ -1,89 +0,0 @@
-//
-// Authors:
-// Ben Motmans <ben.motmans@gmail.com>
-//
-// Copyright (C) 2007 Ben Motmans
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-using System;
-using System.IO;
-using System.Threading;
-using System.Diagnostics;
-using MonoDevelop.Core;
-using MonoDevelop.Core.Execution;
-
-using MonoDevelop.Projects;
-using MonoDevelop.Components;
-using MonoDevelop.Ide;
-using MonoDevelop.Ide.Gui;
-using MonoDevelop.Components.Commands;
-
-namespace MonoDevelop.Profiling
-{
- public enum ProjectCommands
- {
- RunProfiledList
- }
-
- internal class RunProfiledListHandler : AbstractProfilerList
- {
- protected IProfiler profiler;
- protected Document doc;
-
- protected override void Run (object ob)
- {
- profiler = (IProfiler)ob;
-
- Solution sol = IdeApp.ProjectOperations.CurrentSelectedSolution;
- if (sol != null) {
- IAsyncOperation op = IdeApp.ProjectOperations.Build (sol);
- op.Completed += delegate {
- if (op.Success)
- ProfilingOperations.Profile (profiler, sol);
- };
- } else {
- doc = IdeApp.Workbench.ActiveDocument;
- if (doc != null) {
- IAsyncOperation op = doc.Build ();
- op.Completed += new OperationHandler (ExecuteFile);
- }
- }
- }
-
- protected override void Update (CommandInfo info)
- {
- if (IdeApp.Workspace.IsOpen)
- info.Enabled = IdeApp.ProjectOperations.CurrentSelectedSolution != null && IdeApp.ProjectOperations.CurrentRunOperation.IsCompleted;
- else
- info.Enabled = (IdeApp.Workbench.ActiveDocument != null && IdeApp.Workbench.ActiveDocument.IsBuildTarget);
- }
-
- protected void ExecuteFile (IAsyncOperation op)
- {
-// if (op.Success)
-// ProfilingOperations.Profile (profiler, doc);
-
- //if (op.Success)
- // doc.Run ();
- }
- }
-} \ No newline at end of file
diff --git a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/Commands/ToolCommands.cs b/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/Commands/ToolCommands.cs
deleted file mode 100644
index 3c0e4770c2..0000000000
--- a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/Commands/ToolCommands.cs
+++ /dev/null
@@ -1,91 +0,0 @@
-//
-// Authors:
-// Ben Motmans <ben.motmans@gmail.com>
-//
-// Copyright (C) 2007 Ben Motmans
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-using Gtk;
-using System;
-using System.IO;
-using System.Threading;
-using System.Diagnostics;
-using MonoDevelop.Core;
-using MonoDevelop.Core.Execution;
-
-using MonoDevelop.Projects;
-using MonoDevelop.Components;
-using MonoDevelop.Ide.Gui;
-using MonoDevelop.Components.Commands;
-
-namespace MonoDevelop.Profiling
-{
- public enum ToolCommands
- {
- ProfileExecutable,
- ProfileProcess
- }
-
- internal class ProfileExecutableHandler : CommandHandler
- {
- protected override void Run ()
- {
- SelectExecutableDialog dlg = new SelectExecutableDialog ();
- if (dlg.Run () == (int)ResponseType.Ok) {
- IProfiler profiler = dlg.Profiler;
- string executable = dlg.Executable;
- string arguments = dlg.Arguments;
- string workingDir = Path.GetDirectoryName (executable);
-
- ProfilingOperations.ProfileApplication (profiler, executable, workingDir, arguments);
- }
- dlg.Destroy ();
- }
-
- protected override void Update (CommandInfo info)
- {
- //TODO: disable when currently running/building a project or when already profiling
- info.Enabled = ProfilingService.SupportedProfilerCount > 0;
- }
- }
-
- internal class ProfileProcessHandler : CommandHandler
- {
- protected override void Run ()
- {
- SelectProcessDialog dlg = new SelectProcessDialog ();
- if (dlg.Run () == (int)ResponseType.Ok) {
- IProfiler profiler = dlg.Profiler;
- Process process = dlg.Process;
-
- ProfilingOperations.ProfileProcess (profiler, process);
- }
- dlg.Destroy ();
- }
-
- protected override void Update (CommandInfo info)
- {
- //TODO: disable when currently running/building a project or when already profiling
- info.Enabled = ProfilingService.SupportedProfilerCount > 0;
- }
- }
-} \ No newline at end of file
diff --git a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/Dialogs/SelectExecutableDialog.cs b/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/Dialogs/SelectExecutableDialog.cs
deleted file mode 100644
index d2b3dbfa4c..0000000000
--- a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/Dialogs/SelectExecutableDialog.cs
+++ /dev/null
@@ -1,100 +0,0 @@
-//
-// Authors:
-// Ben Motmans <ben.motmans@gmail.com>
-//
-// Copyright (C) 2007 Ben Motmans
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-using Gtk;
-using System;
-using MonoDevelop.Core;
-
-namespace MonoDevelop.Profiling
-{
- public partial class SelectExecutableDialog : Gtk.Dialog
- {
- private ListStore storeProfilers;
-
- public SelectExecutableDialog()
- {
- this.Build();
-
- storeProfilers = new ListStore (typeof (string), typeof (string));
- comboProfilers.Model = storeProfilers;
-
- foreach (IProfiler profiler in ProfilingService.Profilers)
- if (profiler.IsSupported)
- storeProfilers.AppendValues (profiler.Name, profiler.Identifier);
- comboProfilers.Active = 0;
- }
-
- public string Executable {
- get { return entryExecutable.Text; }
- }
-
- public string Arguments {
- get { return entryArguments.Text; }
- }
-
- public IProfiler Profiler {
- get {
- TreeIter iter;
- if (comboProfilers.GetActiveIter (out iter)) {
- string identifier = (string)storeProfilers.GetValue (iter, 1);
- return MonoDevelop.Profiling.ProfilingService.GetProfiler (identifier);
- }
- return null;
- }
- }
-
- protected virtual void OpenClicked (object sender, System.EventArgs e)
- {
- FileChooserDialog dlg = new FileChooserDialog (
- GettextCatalog.GetString ("Select Executable"), null, FileChooserAction.Open,
- "gtk-cancel", ResponseType.Cancel,
- "gtk-open", ResponseType.Accept
- );
- dlg.SelectMultiple = false;
- dlg.LocalOnly = true;
- dlg.Modal = true;
- dlg.SetCurrentFolder (Environment.GetFolderPath (Environment.SpecialFolder.Personal));
-
- FileFilter filterExe = new FileFilter ();
- filterExe.AddPattern ("*.exe");
- filterExe.Name = GettextCatalog.GetString ("Executables");
- FileFilter filterAll = new FileFilter ();
- filterAll.AddPattern ("*");
- filterAll.Name = GettextCatalog.GetString ("All files");
- dlg.AddFilter (filterExe);
- dlg.AddFilter (filterAll);
-
- if (dlg.Run () == (int)ResponseType.Accept)
- entryExecutable.Text = dlg.Filename;
- dlg.Destroy ();
- }
-
- protected virtual void ExecutableChanged (object sender, System.EventArgs e)
- {
- buttonOk.Sensitive = entryExecutable.Text.Length > 0 && System.IO.File.Exists (entryExecutable.Text);
- }
- }
-}
diff --git a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/Dialogs/SelectProcessDialog.cs b/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/Dialogs/SelectProcessDialog.cs
deleted file mode 100644
index 8702e24954..0000000000
--- a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/Dialogs/SelectProcessDialog.cs
+++ /dev/null
@@ -1,143 +0,0 @@
-//
-// Authors:
-// Ben Motmans <ben.motmans@gmail.com>
-//
-// Copyright (C) 2007 Ben Motmans
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-using Gtk;
-using System;
-using System.Diagnostics;
-using MonoDevelop.Core;
-using MonoDevelop.Ide;
-
-namespace MonoDevelop.Profiling
-{
- public partial class SelectProcessDialog : Gtk.Dialog
- {
- private ListStore store;
-
- private const int colName = 0;
- private const int colProfiler = 1;
- private const int colProfilerIdentifier = 2;
- private const int colPid = 3;
- private const int colProcess = 4;
-
- private Process process;
- private string profiler;
-
- public SelectProcessDialog()
- {
- this.Build();
-
- store = new ListStore (typeof (string), typeof (string), typeof (string), typeof (string), typeof (object));
- list.Model = store;
- list.RulesHint = true;
-
- CellRendererText nameRenderer = new CellRendererText ();
- CellRendererText profilerRenderer = new CellRendererText ();
- CellRendererText pidRenderer = new CellRendererText ();
-
- TreeViewColumn columnName = new TreeViewColumn ();
- TreeViewColumn columnProfiler = new TreeViewColumn ();
- TreeViewColumn columnPid = new TreeViewColumn ();
-
- columnName.Title = GettextCatalog.GetString ("Name");
- columnProfiler.Title = GettextCatalog.GetString ("Profiler");
- columnPid.Title = GettextCatalog.GetString ("Pid");
-
- columnName.PackStart (nameRenderer, true);
- columnProfiler.PackStart (profilerRenderer, true);
- columnPid.PackStart (pidRenderer, true);
-
- columnName.AddAttribute (nameRenderer, "text", colName);
- columnProfiler.AddAttribute (profilerRenderer, "text", colProfiler);
- columnPid.AddAttribute (pidRenderer, "text", colPid);
-
- list.AppendColumn (columnName);
- list.AppendColumn (columnProfiler);
- list.AppendColumn (columnPid);
-
- list.Selection.Changed += new EventHandler (OnSelectionChanged);
- list.ShowAll ();
-
- ListProcesses ();
- }
-
- public Process Process {
- get { return process; }
- }
-
- public string ProfilerIdentifier {
- get { return profiler; }
- }
-
- public IProfiler Profiler {
- get { return ProfilingService.GetProfiler (profiler); }
- }
-
- private void ListProcesses ()
- {
- System.Threading.ThreadPool.QueueUserWorkItem (new System.Threading.WaitCallback (ListProcessesAsync));
- }
-
- private void ListProcessesAsync (object state)
- {
- foreach (Process proc in Process.GetProcesses ()) {
- string profiler;
- string filename;
- if (ProfilingService.GetProfilerInformation (proc.Id, out profiler, out filename)) {
- IProfiler prof = ProfilingService.GetProfiler (profiler);
- if (prof != null && prof.IsSupported) {
- DispatchService.GuiDispatch (delegate () {
- store.AppendValues (proc.ProcessName, prof.Name, profiler, proc.Id.ToString (), proc);
- });
- }
- }
- }
- }
-
- private void OnSelectionChanged (object sender, EventArgs e)
- {
- TreeIter iter;
- if (list.Selection.GetSelected (out iter)) {
- process = (Process)store.GetValue (iter, colProcess);
- profiler = (string)store.GetValue (iter, colProfilerIdentifier);
- buttonOk.Sensitive = true;
- } else {
- buttonOk.Sensitive = false;
- }
- }
-
- protected virtual void OkClicked (object sender, EventArgs e)
- {
- Respond (ResponseType.Ok);
- this.Hide ();
- }
-
- protected virtual void CancelClicked (object sender, EventArgs e)
- {
- Respond (ResponseType.Cancel);
- this.Hide ();
- }
- }
-}
diff --git a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/DummyProcessAsyncOperation.cs b/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/DummyProcessAsyncOperation.cs
deleted file mode 100644
index f88f813297..0000000000
--- a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/DummyProcessAsyncOperation.cs
+++ /dev/null
@@ -1,91 +0,0 @@
-//
-// Authors:
-// Ben Motmans <ben.motmans@gmail.com>
-//
-// Copyright (C) 2007 Ben Motmans
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-using System;
-using System.Diagnostics;
-using MonoDevelop.Core;
-using MonoDevelop.Core.Execution;
-
-namespace MonoDevelop.Profiling
-{
- public class DummyProcessAsyncOperation : IProcessAsyncOperation
- {
- public event OperationHandler Completed;
-
- private Process process;
- private bool done;
-
- public DummyProcessAsyncOperation (Process process)
- {
- this.process = process;
-
- process.Exited += new EventHandler (OnExited);
- }
-
- public int ExitCode {
- get { return process.ExitCode; }
- }
-
- public int ProcessId {
- get { return process.Id; }
- }
-
- public bool Success {
- get { return done ? ExitCode == 0 : false; }
- }
-
- public bool SuccessWithWarnings {
- get { return false; }
- }
-
- public bool IsCompleted {
- get { return done; }
- }
-
- public void Cancel ()
- {
- //do nothing, we don't actually want to kill the running process
- OnExited (null, EventArgs.Empty);
- }
-
- public void WaitForCompleted ()
- {
- //do nothing
- }
-
- void OnExited (object sender, EventArgs args)
- {
- done = true;
- if (Completed != null)
- Completed (this);
- }
-
- public void Dispose ()
- {
- process.Dispose ();
- }
- }
-} \ No newline at end of file
diff --git a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/IProfiler.cs b/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/IProfiler.cs
deleted file mode 100644
index 88ff0aa723..0000000000
--- a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/IProfiler.cs
+++ /dev/null
@@ -1,66 +0,0 @@
-//
-// Authors:
-// Ben Motmans <ben.motmans@gmail.com>
-//
-// Copyright (C) 2007 Ben Motmans
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-using System;
-using System.Diagnostics;
-using MonoDevelop.Core;
-using MonoDevelop.Core.Execution;
-
-namespace MonoDevelop.Profiling
-{
- public interface IProfiler
- {
- string Identifier { get; }
- string Name { get; }
- string IconString { get; }
-
- bool IsSupported { get; }
-
- string GetSnapshotFileName (string workingDirectory, string filename);
-
- IExecutionHandler GetDefaultExecutionHandlerFactory ();
- IExecutionHandler GetProcessExecutionHandlerFactory (Process process);
-
- event ProfilingSnapshotEventHandler SnapshotTaken;
- event EventHandler SnapshotFailed;
- event ProfilerStateEventHandler StateChanged;
-
- event EventHandler Started;
- event EventHandler Stopped;
-
- ProfilerState State { get; }
- ProfilingContext Context { get; }
-
- void Start (ProfilingContext context);
- void Stop ();
-
- void TakeSnapshot ();
-
- bool CanLoad (string fileName);
- IProfilingSnapshot Load (string filename);
- string GetSaveLocation ();
- }
-} \ No newline at end of file
diff --git a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/IProfilingSnapshot.cs b/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/IProfilingSnapshot.cs
deleted file mode 100644
index 958c129089..0000000000
--- a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/IProfilingSnapshot.cs
+++ /dev/null
@@ -1,40 +0,0 @@
-//
-// Authors:
-// Ben Motmans <ben.motmans@gmail.com>
-//
-// Copyright (C) 2007 Ben Motmans
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-using System;
-
-namespace MonoDevelop.Profiling
-{
- public interface IProfilingSnapshot
- {
- event EventHandler NameChanged;
-
- IProfiler Profiler { get; }
-
- string Name { get; set; }
- string FileName { get; }
- }
-} \ No newline at end of file
diff --git a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/Makefile.am b/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/Makefile.am
deleted file mode 100644
index 717971dec4..0000000000
--- a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/Makefile.am
+++ /dev/null
@@ -1,67 +0,0 @@
-ADDIN_BUILD = $(top_builddir)/build
-ASSEMBLY = $(ADDIN_BUILD)/MonoDevelop.Profiling.dll
-REFS = \
- $(GLIB_SHARP_LIBS) \
- $(GTK_SHARP_LIBS) \
- $(MONO_ADDINS_LIBS) \
- $(MONODEVELOP_CORE_ADDINS_LIBS) \
- $(MONODEVELOP_LIBS) \
- -r:Mono.Debugger.Soft \
- -r:Mono.Posix \
- -r:System \
- -r:System.Xml
-
-FILES = \
- AbstractProfiler.cs \
- AbstractProfilerSnapshot.cs \
- AssemblyInfo.cs \
- Codons/ProfilerCodon.cs \
- Commands/AbstractProfilerList.cs \
- Commands/PadCommands.cs \
- Commands/ProjectCommands.cs \
- Commands/ToolCommands.cs \
- Dialogs/SelectExecutableDialog.cs \
- Dialogs/SelectProcessDialog.cs \
- DummyProcessAsyncOperation.cs \
- gtk-gui/generated.cs \
- gtk-gui/MonoDevelop.Profiling.SelectExecutableDialog.cs \
- gtk-gui/MonoDevelop.Profiling.SelectProcessDialog.cs \
- IProfiler.cs \
- IProfilingSnapshot.cs \
- MonoProfilerExecutionHandler.cs \
- Pads/ProfilingPad.cs \
- Pads/ProfilingSnapshotCollectionNodeBuilder.cs \
- ProcessProfilerExecutionHandler.cs \
- ProfilerEventArgs.cs \
- ProfilerState.cs \
- ProfilerStateEventArgs.cs \
- ProfilingContext.cs \
- ProfilingOperations.cs \
- ProfilingService.cs \
- ProfilingSnapshotCollection.cs \
- ProfilingSnapshotEventArgs.cs
-
-RES = \
- gtk-gui/gui.stetic \
- gtk-gui/objects.xml \
- icons/Icons.16x16.Profiling.Filter.png \
- icons/Icons.16x16.Profiling.GC.png \
- icons/Icons.16x16.Profiling.History.png \
- icons/Icons.16x16.Profiling.Snapshot.png \
- icons/Icons.16x16.Profiling.Summary.png \
- MonoDevelop.Profiling.addin.xml
-
-all: $(ASSEMBLY)
-
-$(ASSEMBLY): $(build_sources) $(build_resources)
- mkdir -p $(ADDIN_BUILD)
- $(CSC) $(CSC_FLAGS) $(REFS) $(build_resources:%=/resource:%) $(build_sources) -out:$@ -target:library
-
-
-assemblydir = $(MD_ADDIN_DIR)/MonoDevelop.Profiling
-assembly_DATA = $(ASSEMBLY) $(ASSEMBLY).mdb
-
-CLEANFILES = $(ASSEMBLY) $(ASSEMBLY).mdb
-EXTRA_DIST = $(FILES) $(RES)
-
-include $(top_srcdir)/Makefile.include
diff --git a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/MonoDevelop.Profiling.addin.xml b/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/MonoDevelop.Profiling.addin.xml
deleted file mode 100644
index 686fde0b3f..0000000000
--- a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/MonoDevelop.Profiling.addin.xml
+++ /dev/null
@@ -1,134 +0,0 @@
-<Addin id = "Profiling"
- namespace = "MonoDevelop"
- name = "MonoDevelop Profiling Addin"
- author = "Ben Motmans"
- copyright = "MIT X11"
- url = "http://www.monodevelop.com"
- description = "MonoDevelop Profiling Addin"
- category = "Profiling"
- version = "4.2.3">
-
- <Runtime>
- <Import assembly="MonoDevelop.Profiling.dll"/>
- </Runtime>
-
- <Dependencies>
- <Addin id="Core" version="4.2.3"/>
- <Addin id="Ide" version="4.2.3"/>
- </Dependencies>
-
- <ExtensionPoint path = "/MonoDevelop/Profiling/ToolBar/ProfilingPad" name = "Profiling pad toolbar">
- <Description>Profiling pad toolbar items.</Description>
- <ExtensionNodeSet id="MonoDevelop.Components.Commands.ItemSet"/>
- </ExtensionPoint>
-
- <ExtensionPoint path = "/MonoDevelop/Profiling/ContextMenu/ProfilingPad/ProfilingSnapshotNodes" name = "Profiling pad 'Profiling Snapshots' node">
- <Description>Profiling pad root node.</Description>
- <ExtensionNodeSet id="MonoDevelop.Components.Commands.ItemSet"/>
- </ExtensionPoint>
-
- <ExtensionPoint path = "/MonoDevelop/Profiling/Profilers" name = "Profilers">
- <Description>Profilers addins.</Description>
- <ExtensionNode name="Profiler" type="MonoDevelop.Profiling.ProfilerCodon" />
- </ExtensionPoint>
-
- <ExtensionPoint path = "/MonoDevelop/Profiling/FileFilters" name = "File filters">
- <Description>File filters to be shown in the Profiling Snapshot Open dialog.</Description>
- <ExtensionNode name="FileFilter" type="MonoDevelop.Ide.Codons.FileFilterCodon"/>
- </ExtensionPoint>
-
- <Extension path = "/MonoDevelop/Core/StockIcons">
- <StockIcon stockid = "md-prof-filter" resource = "Icons.16x16.Profiling.Filter.png" />
- <StockIcon stockid = "md-prof-snapshot" resource = "Icons.16x16.Profiling.Snapshot.png" />
- <StockIcon stockid = "md-prof-gc" resource = "Icons.16x16.Profiling.GC.png" />
- <StockIcon stockid = "md-prof-history" resource = "Icons.16x16.Profiling.History.png" />
- <StockIcon stockid = "md-prof-summary" resource = "Icons.16x16.Profiling.Summary.png" />
- </Extension>
-
- <Extension path = "/MonoDevelop/Ide/WorkbenchContexts">
- <WorkbenchContext id = "Profile">
- <ContextPad id = "ProjectPad"/>
- <ContextPad id = "ClassPad"/>
- <ContextPad id = "MonoDevelop.Ide.Gui.Pads.FileScout"/>
- <ContextPad id = "MonoDevelop.Ide.Gui.Pads.HelpTree"/>
- <ContextPad id = "MonoDevelop.Ide.Gui.Pads.ErrorListPad"/>
- <ContextPad id = "MonoDevelop.Ide.Gui.Pads.TaskListPad"/>
- <ContextPad id = "MonoDevelop.Profiling.ProfilingPad"/>
- </WorkbenchContext>
- </Extension>
-
- <Extension path = "/MonoDevelop/Ide/WorkbenchContexts/Edit">
- <ContextPad id = "MonoDevelop.Profiling.ProfilingPad"/>
- </Extension>
-
- <Extension path = "/MonoDevelop/Ide/Commands">
- <Category _name = "Profiling" id = "Profiling">
- <!-- MainMenu/Project -->
- <Command id = "MonoDevelop.Profiling.ProjectCommands.RunProfiledList"
- defaultHandler = "MonoDevelop.Profiling.RunProfiledListHandler"
- type = "array"
- _label = "Profiler List" />
-
- <!-- MainMenu/Tools -->
- <Command id = "MonoDevelop.Profiling.ToolCommands.ProfileExecutable"
- defaultHandler = "MonoDevelop.Profiling.ProfileExecutableHandler"
- _label = "Profile Executable..."
- _description = "Profile Executable..."
- icon = "gtk-execute" />
- <Command id = "MonoDevelop.Profiling.ToolCommands.ProfileProcess"
- defaultHandler = "MonoDevelop.Profiling.ProfileProcessHandler"
- _label = "Profile Process..."
- _description = "Profile Process..."
- icon = "gtk-execute" />
-
- <!-- Profiling pad -->
- <Command id = "MonoDevelop.Profiling.PadCommands.StopProfiling"
- defaultHandler = "MonoDevelop.Profiling.StopProfilingHandler"
- _label = "Stop Profiling"
- _description = "Stop Profiling"
- icon = "gtk-stop" />
- <Command id = "MonoDevelop.Profiling.PadCommands.TakeSnapshot"
- defaultHandler = "MonoDevelop.Profiling.TakeSnapshotHandler"
- _label = "Take Profiling Snapshoty"
- _description = "Take Profiling Snapshot"
- icon = "md-prof-snapshot" />
- <Command id = "MonoDevelop.Profiling.PadCommands.OpenSnapshot"
- defaultHandler = "MonoDevelop.Profiling.OpenSnapshotHandler"
- _label = "Open Snapshot"
- _description = "Open Snapshot"
- icon = "gtk-open" />
- </Category>
- </Extension>
-
- <Extension path = "/MonoDevelop/Ide/MainMenu/Run">
- <ItemSet id = "MonoDevelop.Profiling.ProjectCommands.RunProfiled" _label = "Run Profiled" insertafter="MonoDevelop.Ide.Commands.ProjectCommands.Run">
- <CommandItem id = "MonoDevelop.Profiling.ProjectCommands.RunProfiledList" />
- </ItemSet>
- </Extension>
-
- <Extension path = "/MonoDevelop/Ide/MainMenu/Tools">
- <!--<CommandItem id = "MonoDevelop.Profiling.ToolCommands.ProfileExecutable" />-->
- <CommandItem id = "MonoDevelop.Profiling.ToolCommands.ProfileProcess" insertbefore="OptionsSection" />
- </Extension>
-
- <Extension path = "/MonoDevelop/Profiling/ToolBar/ProfilingPad">
- <CommandItem id = "MonoDevelop.Profiling.PadCommands.TakeSnapshot" />
- <CommandItem id = "MonoDevelop.Profiling.PadCommands.StopProfiling" />
- <SeparatorItem id = "Separator1" />
- <CommandItem id = "MonoDevelop.Profiling.PadCommands.OpenSnapshot" />
- </Extension>
-
- <Extension path = "/MonoDevelop/Ide/Pads">
- <SolutionPad id = "MonoDevelop.Profiling.ProfilingPad" class = "MonoDevelop.Profiling.ProfilingPad" defaultPlacement = "Left" _label = "Profiling Snapshots" icon = "md-prof-snapshot">
- <NodeBuilder id = "ProfilingSnapshotCollectionNodeBuilder" class = "MonoDevelop.Profiling.ProfilingSnapshotCollectionNodeBuilder"/>
- </SolutionPad>
- </Extension>
-
- <Extension path = "/MonoDevelop/Profiling/ContextMenu/ProfilingPad/ProfilingSnapshotNodes">
- <CommandItem id = "MonoDevelop.Profiling.PadCommands.OpenSnapshot" />
- </Extension>
-
- <Extension path = "/MonoDevelop/Core/UserDataMigration">
- <Migration sourceVersion="2.4" kind="Config" sourcePath="MonoDevelop.Profiling.xml" />
- </Extension>
-</Addin>
diff --git a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/MonoDevelop.Profiling.mdp b/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/MonoDevelop.Profiling.mdp
deleted file mode 100644
index 8cc290b6ce..0000000000
--- a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/MonoDevelop.Profiling.mdp
+++ /dev/null
@@ -1,101 +0,0 @@
-<Project name="MonoDevelop.Profiling" fileversion="2.0" DefaultNamespace="MonoDevelop.Profiling" language="C#" clr-version="Net_2_0" targetFramework=".NETFramework,Version=v4.0" ctype="DotNetProject">
- <MonoDevelop.Autotools.MakefileInfo IntegrationEnabled="True" RelativeMakefileName="Makefile.am" SyncReferences="True" IsAutotoolsProject="True" RelativeConfigureInPath="..">
- <BuildFilesVar Sync="True" Name="FILES" />
- <DeployFilesVar />
- <ResourcesVar Sync="True" Name="RES" />
- <OthersVar />
- <GacRefVar Sync="True" Name="REFS" Prefix="-r:" />
- <AsmRefVar Sync="True" Name="REFS" Prefix="-r:" />
- <ProjectRefVar Sync="True" Name="REFS" Prefix="-r:" />
- </MonoDevelop.Autotools.MakefileInfo>
- <Configurations active="Debug">
- <Configuration name="Debug" ctype="DotNetProjectConfiguration">
- <Output directory="../build" assembly="MonoDevelop.Profiling" />
- <Build debugmode="True" target="Library" />
- <Execution consolepause="True" runwithwarnings="True" runtime="MsNet" clr-version="Net_2_0" />
- <CodeGeneration compiler="Mcs" warninglevel="4" optimize="True" unsafecodeallowed="False" generateoverflowchecks="True" generatexmldocumentation="False" ctype="CSharpCompilerParameters" />
- </Configuration>
- <Configuration name="Release" ctype="DotNetProjectConfiguration">
- <Output directory="../build" assembly="MonoDevelop.Profiling" assemblyKeyFile="." />
- <Build debugmode="False" target="Library" />
- <Execution consolepause="True" runwithwarnings="True" runtime="MsNet" clr-version="Net_2_0" />
- <CodeGeneration compiler="Mcs" warninglevel="4" optimize="True" unsafecodeallowed="False" generateoverflowchecks="True" generatexmldocumentation="False" ctype="CSharpCompilerParameters" />
- </Configuration>
- </Configurations>
- <Contents>
- <File subtype="Code" buildaction="Compile" name="AbstractProfiler.cs" />
- <File subtype="Code" buildaction="Compile" name="AbstractProfilerSnapshot.cs" />
- <File subtype="Code" buildaction="Compile" name="DummyProcessAsyncOperation.cs" />
- <File subtype="Code" buildaction="Compile" name="IProfiler.cs" />
- <File subtype="Code" buildaction="Compile" name="IProfilingSnapshot.cs" />
- <File subtype="Code" buildaction="Compile" name="MonoProfilerExecutionHandler.cs" />
- <File subtype="Code" buildaction="Compile" name="ProcessProfilerExecutionHandler.cs" />
- <File subtype="Code" buildaction="Compile" name="ProfilerEventArgs.cs" />
- <File subtype="Code" buildaction="Compile" name="ProfilerState.cs" />
- <File subtype="Code" buildaction="Compile" name="ProfilerStateEventArgs.cs" />
- <File subtype="Code" buildaction="Compile" name="ProfilingContext.cs" />
- <File subtype="Code" buildaction="Compile" name="ProfilingOperations.cs" />
- <File subtype="Code" buildaction="Compile" name="ProfilingService.cs" />
- <File subtype="Code" buildaction="Compile" name="ProfilingSnapshotCollection.cs" />
- <File subtype="Code" buildaction="Compile" name="ProfilingSnapshotEventArgs.cs" />
- <File subtype="Code" buildaction="EmbedAsResource" name="MonoDevelop.Profiling.addin.xml" />
- <File subtype="Code" buildaction="EmbedAsResource" name="icons/Icons.16x16.Profiling.Filter.png" />
- <File subtype="Code" buildaction="EmbedAsResource" name="icons/Icons.16x16.Profiling.GC.png" />
- <File subtype="Code" buildaction="EmbedAsResource" name="icons/Icons.16x16.Profiling.History.png" />
- <File subtype="Code" buildaction="EmbedAsResource" name="icons/Icons.16x16.Profiling.Snapshot.png" />
- <File subtype="Code" buildaction="EmbedAsResource" name="icons/Icons.16x16.Profiling.Summary.png" />
- <File subtype="Code" buildaction="Compile" name="Codons/ProfilerCodon.cs" />
- <File subtype="Code" buildaction="Compile" name="Commands/AbstractProfilerList.cs" />
- <File subtype="Code" buildaction="Compile" name="Commands/PadCommands.cs" />
- <File subtype="Code" buildaction="Compile" name="Commands/ProjectCommands.cs" />
- <File subtype="Code" buildaction="Compile" name="Commands/ToolCommands.cs" />
- <File subtype="Code" buildaction="Compile" name="Dialogs/SelectExecutableDialog.cs" />
- <File subtype="Code" buildaction="Compile" name="Dialogs/SelectProcessDialog.cs" />
- <File subtype="Code" buildaction="Compile" name="Pads/ProfilingPad.cs" />
- <File subtype="Code" buildaction="Compile" name="Pads/ProfilingSnapshotCollectionNodeBuilder.cs" />
- <File subtype="Code" buildaction="EmbedAsResource" name="gtk-gui/gui.stetic" />
- <File subtype="Code" buildaction="Compile" name="gtk-gui/generated.cs" />
- <File subtype="Code" buildaction="EmbedAsResource" name="gtk-gui/objects.xml" />
- <File subtype="Code" buildaction="Compile" name="gtk-gui/MonoDevelop.Profiling.SelectProcessDialog.cs" />
- <File subtype="Code" buildaction="Compile" name="gtk-gui/MonoDevelop.Profiling.SelectExecutableDialog.cs" />
- <File subtype="Code" buildaction="Compile" name="AssemblyInfo.cs" />
- </Contents>
- <References>
- <ProjectReference type="Gac" localcopy="True" refto="Mono.Addins, Version=0.4.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756" />
- <ProjectReference type="Gac" localcopy="True" refto="MonoDevelop.Core, Version=0.18.0.0, Culture=neutral" />
- <ProjectReference type="Gac" localcopy="True" refto="MonoDevelop.Ide, Version=0.18.0.0, Culture=neutral" />
- <ProjectReference type="Gac" localcopy="True" refto="MonoDevelop.DesignerSupport, Version=0.0.0.0, Culture=neutral" />
- <ProjectReference type="Gac" localcopy="True" refto="MonoDevelop.VersionControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null" />
- <ProjectReference type="Gac" localcopy="True" refto="MonoDevelop.NUnit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null" />
- <ProjectReference type="Gac" localcopy="True" refto="MonoDevelop.AspNet, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null" />
- <ProjectReference type="Gac" localcopy="True" refto="MonoDevelop.Gettext, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" />
- <ProjectReference type="Gac" localcopy="True" refto="MonoDevelop.Deployment, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" />
- <ProjectReference type="Gac" localcopy="True" refto="MonoDevelop.Deployment.Linux, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" />
- <ProjectReference type="Gac" localcopy="True" refto="MonoDevelop.GtkCore, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null" />
- <ProjectReference type="Gac" localcopy="True" refto="MonoDevelop.VBNetBinding, Version=1.0.1.1649, Culture=neutral, PublicKeyToken=null" />
- <ProjectReference type="Gac" localcopy="True" refto="MonoDevelop.CBinding, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null" />
- <ProjectReference type="Gac" localcopy="True" refto="MonoDevelop.CSharpBinding, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null" />
- <ProjectReference type="Gac" localcopy="True" refto="MonoDevelop.Autotools, Version=0.1.0.0, Culture=neutral, PublicKeyToken=null" />
- <ProjectReference type="Gac" localcopy="True" refto="NRefactory, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null" />
- <ProjectReference type="Gac" localcopy="True" refto="Mono.Cecil, Version=0.6.8.8607, Culture=neutral, PublicKeyToken=null" />
- <ProjectReference type="Gac" localcopy="True" refto="glib-sharp, Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
- <ProjectReference type="Gac" localcopy="True" refto="pango-sharp, Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
- <ProjectReference type="Gac" localcopy="True" refto="atk-sharp, Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
- <ProjectReference type="Gac" localcopy="True" refto="gdk-sharp, Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
- <ProjectReference type="Gac" localcopy="True" refto="gtk-sharp, Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
- <ProjectReference type="Gac" localcopy="True" refto="MonoDevelop.XmlEditor, Version=0.6.0.0, Culture=neutral, PublicKeyToken=null" />
- <ProjectReference type="Gac" localcopy="True" refto="MonoDevelop.SourceEditor2, Version=2.1.0.0, Culture=neutral" />
- <ProjectReference type="Gac" localcopy="True" refto="MonoDevelop.Debugger, Version=2.1.0.0, Culture=neutral" />
- <ProjectReference type="Gac" localcopy="True" refto="MonoDevelop.Refactoring, Version=2.2.0.0, Culture=neutral" />
- <ProjectReference type="Gac" localcopy="True" refto="MonoDevelop.Debugger.Soft, Version=2.2.0.0, Culture=neutral" />
- <ProjectReference type="Gac" localcopy="True" refto="Mono.TextEditor, Version=1.0.0.0, Culture=neutral" />
- <ProjectReference type="Gac" localcopy="True" refto="Mono.Debugger.Soft, Version=0.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756" />
- <ProjectReference type="Custom" localcopy="True" Include="MonoDevelop.Core,2.2" refto="MonoDevelop.Core,2.2" ctype="AddinReference" />
- <ProjectReference type="Custom" localcopy="True" Include="MonoDevelop.Ide,2.2" refto="MonoDevelop.Ide,2.2" ctype="AddinReference" />
- <ProjectReference type="Gac" localcopy="True" refto="Mono.Debugging.Soft, Version=0.0.0.0, Culture=neutral, PublicKeyToken=5e9ce85b0923c84f" />
- <ProjectReference type="Gac" localcopy="True" refto="Mono.Debugging, Version=0.0.0.0, Culture=neutral, PublicKeyToken=5e9ce85b0923c84f" />
- <ProjectReference type="Gac" localcopy="True" refto="System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
- <ProjectReference type="Gac" localcopy="True" refto="Mono.Posix, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756" />
- <ProjectReference type="Gac" localcopy="True" refto="System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
- </References>
-</Project>
diff --git a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/MonoProfilerExecutionHandler.cs b/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/MonoProfilerExecutionHandler.cs
deleted file mode 100644
index 65def31c69..0000000000
--- a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/MonoProfilerExecutionHandler.cs
+++ /dev/null
@@ -1,71 +0,0 @@
-//
-// Authors:
-// Ben Motmans <ben.motmans@gmail.com>
-//
-// Copyright (C) 2007 Ben Motmans
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-using System;
-using System.IO;
-using System.Collections.Generic;
-using MonoDevelop.Core;
-using MonoDevelop.Core.Execution;
-
-namespace MonoDevelop.Profiling
-{
- public class MonoProfilerExecutionHandler : NativePlatformExecutionHandler
- {
- private IProfiler profiler;
-
- public MonoProfilerExecutionHandler (IProfiler profiler)
- {
- if (profiler == null)
- throw new ArgumentNullException ("profiler");
-
- this.profiler = profiler;
- }
-
- public override IProcessAsyncOperation Execute (ExecutionCommand command, IConsole console)
- {
- DotNetExecutionCommand dotcmd = (DotNetExecutionCommand) command;
-
- string tempFile = Path.GetTempFileName ();
- string snapshotFile = profiler.GetSnapshotFileName (dotcmd.Command, tempFile);
-
- string args = string.Format ("--profile={2}:{3} --debug \"{0}\" {1}", dotcmd.Command, dotcmd.Arguments, profiler.Identifier, tempFile);
- NativeExecutionCommand cmd = new NativeExecutionCommand ("mono", args, dotcmd.WorkingDirectory, dotcmd.EnvironmentVariables);
-
- IProcessAsyncOperation pao = base.Execute (cmd, console);
-
- ProfilingService.ActiveProfiler = profiler;
- ProfilingContext profContext = new ProfilingContext (pao, snapshotFile);
- profiler.Start (profContext);
- return pao;
- }
-
- public override bool CanExecute (ExecutionCommand command)
- {
- return command is DotNetExecutionCommand;
- }
-
- }
-} \ No newline at end of file
diff --git a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/Pads/ChangeLog b/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/Pads/ChangeLog
deleted file mode 100644
index 41d5784d69..0000000000
--- a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/Pads/ChangeLog
+++ /dev/null
@@ -1,15 +0,0 @@
-2010-03-17 Lluis Sanchez Gual <lluis@novell.com>
-
- * ProfilingPad.cs:
- * ProfilingSnapshotCollectionNodeBuilder.cs: Merged
- MD.Projects into MD.Core, and MD.Projects.Gui, MD.Core.Gui
- and MD.Components into MD.Ide.
-
-2009-07-24 Lluis Sanchez Gual <lluis@novell.com>
-
- * ProfilingPad.cs: Track api changes.
-
-2009-02-26 Lluis Sanchez Gual <lluis@novell.com>
-
- * ProfilingPad.cs: Track api changes.
-
diff --git a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/Pads/ProfilingPad.cs b/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/Pads/ProfilingPad.cs
deleted file mode 100644
index ed9ddc92bd..0000000000
--- a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/Pads/ProfilingPad.cs
+++ /dev/null
@@ -1,86 +0,0 @@
-//
-// Authors:
-// Ben Motmans <ben.motmans@gmail.com>
-//
-// Copyright (C) 2007 Ben Motmans
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-using Gtk;
-using System;
-using System.Resources;
-
-using MonoDevelop.Core;
-using Stock = MonoDevelop.Ide.Gui.Stock;
-using MonoDevelop.Core.Execution;
-using MonoDevelop.Ide;
-using MonoDevelop.Ide.Gui;
-using MonoDevelop.Ide.Gui.Pads;
-using MonoDevelop.Projects;
-using MonoDevelop.DesignerSupport;
-using MonoDevelop.Ide.Gui.Components;
-
-namespace MonoDevelop.Profiling
-{
- public class ProfilingPad : TreeViewPad, IPropertyPadProvider
- {
- private VBox vbox;
-
- public ProfilingPad ()
- {
- vbox = new VBox ();
-
- Toolbar toolbar = IdeApp.CommandService.CreateToolbar ("/MonoDevelop/Profiling/ToolBar/ProfilingPad");
- toolbar.ToolbarStyle = ToolbarStyle.Icons;
-
- vbox.PackStart (toolbar, false, true, 0);
- }
-
- public override void Initialize (NodeBuilder[] builders, TreePadOption[] options, string menuPath)
- {
- base.Initialize (builders, options, menuPath);
- vbox.PackStart (base.Control, true, true, 0);
- vbox.ShowAll ();
-
- TreeView.LoadTree (ProfilingService.ProfilingSnapshots);
- }
-
- public override Widget Control {
- get { return vbox; }
- }
-
- public object GetActiveComponent ()
- {
- ITreeNavigator nav = TreeView.GetSelectedNode ();
- if (nav != null)
- return nav.DataItem;
- return null;
- }
-
- public object GetProvider ()
- {
- return null;
- }
-
- public void OnEndEditing (object obj) {}
- public void OnChanged (object obj) {}
- }
-}
diff --git a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/Pads/ProfilingSnapshotCollectionNodeBuilder.cs b/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/Pads/ProfilingSnapshotCollectionNodeBuilder.cs
deleted file mode 100644
index 9907ecbdee..0000000000
--- a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/Pads/ProfilingSnapshotCollectionNodeBuilder.cs
+++ /dev/null
@@ -1,92 +0,0 @@
-//
-// Authors:
-// Ben Motmans <ben.motmans@gmail.com>
-//
-// Copyright (C) 2007 Ben Motmans
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-using System;
-using MonoDevelop.Core;
-using MonoDevelop.Ide.Gui.Components;
-using MonoDevelop.Ide;
-
-namespace MonoDevelop.Profiling
-{
- public class ProfilingSnapshotCollectionNodeBuilder : TypeNodeBuilder
- {
- private ITreeBuilder builder;
-
- public ProfilingSnapshotCollectionNodeBuilder ()
- : base ()
- {
- ProfilingService.ProfilingSnapshots.SnapshotAdded += (ProfilingSnapshotEventHandler)DispatchService.GuiDispatch (new ProfilingSnapshotEventHandler (OnSnapshotAdded));
- ProfilingService.ProfilingSnapshots.SnapshotRemoved += (ProfilingSnapshotEventHandler)DispatchService.GuiDispatch (new ProfilingSnapshotEventHandler (OnSnapshotRemoved));
- }
-
- public override Type NodeDataType {
- get { return typeof (ProfilingSnapshotCollection); }
- }
-
- public override string ContextMenuAddinPath {
- get { return "/MonoDevelop/Profiling/ContextMenu/ProfilingPad/ProfilingSnapshotNodes"; }
- }
-
- public override string GetNodeName (ITreeNavigator thisNode, object dataObject)
- {
- return GettextCatalog.GetString ("Profiling Summaries");
- }
-
- public override void BuildNode (ITreeBuilder builder, object dataObject, ref string label, ref Gdk.Pixbuf icon, ref Gdk.Pixbuf closedIcon)
- {
- label = GettextCatalog.GetString ("Profiling Snapshots");
- icon = Context.GetIcon ("md-prof-snapshot");
- this.builder = builder;
- }
-
- public override void BuildChildNodes (ITreeBuilder builder, object dataObject)
- {
- ProfilingSnapshotCollection collection = (ProfilingSnapshotCollection) dataObject;
-
- foreach (IProfilingSnapshot snapshot in collection)
- builder.AddChild (snapshot);
- builder.Expanded = true;
- }
-
- public override bool HasChildNodes (ITreeBuilder builder, object dataObject)
- {
- ProfilingSnapshotCollection collection = (ProfilingSnapshotCollection) dataObject;
- return collection.Count > 0;
- }
-
- private void OnSnapshotAdded (object sender, ProfilingSnapshotEventArgs args)
- {
- builder.AddChild (args.Snapshot);
- builder.Expanded = true;
- }
-
- private void OnSnapshotRemoved (object sender, ProfilingSnapshotEventArgs args)
- {
- builder.UpdateChildren ();
- builder.Expanded = true;
- }
- }
-}
diff --git a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/ProcessProfilerExecutionHandler.cs b/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/ProcessProfilerExecutionHandler.cs
deleted file mode 100644
index f799c8ce6f..0000000000
--- a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/ProcessProfilerExecutionHandler.cs
+++ /dev/null
@@ -1,72 +0,0 @@
-//
-// Authors:
-// Ben Motmans <ben.motmans@gmail.com>
-//
-// Copyright (C) 2007 Ben Motmans
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-using System;
-using System.IO;
-using System.Collections.Generic;
-using System.Diagnostics;
-using MonoDevelop.Core;
-using MonoDevelop.Core.Execution;
-
-namespace MonoDevelop.Profiling
-{
- public class ProcessProfilerExecutionHandler : NativePlatformExecutionHandler
- {
- private IProfiler profiler;
- private Process process;
-
- public ProcessProfilerExecutionHandler (IProfiler profiler, Process process)
- {
- if (profiler == null)
- throw new ArgumentNullException ("profiler");
- if (process == null)
- throw new ArgumentNullException ("process");
-
- this.profiler = profiler;
- this.process = process;
- }
-
- public override IProcessAsyncOperation Execute (ExecutionCommand command, IConsole console)
- {
- DummyProcessAsyncOperation dpao = new DummyProcessAsyncOperation (process);
- string profilerIdentifier, tempFile, snapshotFile;
- ProfilingService.GetProfilerInformation (process.Id, out profilerIdentifier, out tempFile);
- DotNetExecutionCommand dotcmd = (DotNetExecutionCommand) command;
- snapshotFile = profiler.GetSnapshotFileName (dotcmd.WorkingDirectory, tempFile);
-
- ProfilingService.ActiveProfiler = profiler;
- ProfilingContext profContext = new ProfilingContext (dpao, snapshotFile);
- profiler.Start (profContext);
-
- return dpao;
- }
-
- public override bool CanExecute (ExecutionCommand command)
- {
- return command is DotNetExecutionCommand;
- }
- }
-} \ No newline at end of file
diff --git a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/ProfilerEventArgs.cs b/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/ProfilerEventArgs.cs
deleted file mode 100755
index c236fd6a8a..0000000000
--- a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/ProfilerEventArgs.cs
+++ /dev/null
@@ -1,47 +0,0 @@
-//
-// Authors:
-// Ben Motmans <ben.motmans@gmail.com>
-//
-// Copyright (C) 2007 Ben Motmans
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-using System;
-
-namespace MonoDevelop.Profiling
-{
- public delegate void ProfilerEventHandler (object sender, ProfilerEventArgs args);
-
- public class ProfilerEventArgs : EventArgs
- {
- private IProfiler profiler;
-
- public ProfilerEventArgs (IProfiler profiler)
- {
- this.profiler = profiler;
- }
-
- public IProfiler Profiler
- {
- get { return profiler; }
- }
- }
-} \ No newline at end of file
diff --git a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/ProfilerState.cs b/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/ProfilerState.cs
deleted file mode 100644
index baf4c0bf01..0000000000
--- a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/ProfilerState.cs
+++ /dev/null
@@ -1,37 +0,0 @@
-//
-// Authors:
-// Ben Motmans <ben.motmans@gmail.com>
-//
-// Copyright (C) 2007 Ben Motmans
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-using System;
-
-namespace MonoDevelop.Profiling
-{
- public enum ProfilerState
- {
- Inactive = 0,
- Profiling,
- TakingSnapshot
- }
-} \ No newline at end of file
diff --git a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/ProfilerStateEventArgs.cs b/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/ProfilerStateEventArgs.cs
deleted file mode 100755
index 6a5448b01b..0000000000
--- a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/ProfilerStateEventArgs.cs
+++ /dev/null
@@ -1,47 +0,0 @@
-//
-// Authors:
-// Ben Motmans <ben.motmans@gmail.com>
-//
-// Copyright (C) 2007 Ben Motmans
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-using System;
-
-namespace MonoDevelop.Profiling
-{
- public delegate void ProfilerStateEventHandler (object sender, ProfilerStateEventArgs args);
-
- public class ProfilerStateEventArgs : EventArgs
- {
- private ProfilerState state;
-
- public ProfilerStateEventArgs (ProfilerState state)
- {
- this.state = state;
- }
-
- public ProfilerState State
- {
- get { return state; }
- }
- }
-} \ No newline at end of file
diff --git a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/ProfilingContext.cs b/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/ProfilingContext.cs
deleted file mode 100644
index 04ce8ec241..0000000000
--- a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/ProfilingContext.cs
+++ /dev/null
@@ -1,64 +0,0 @@
-//
-// Authors:
-// Ben Motmans <ben.motmans@gmail.com>
-//
-// Copyright (C) 2007 Ben Motmans
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-using System;
-using System.IO;
-using System.Collections.Generic;
-
-using MonoDevelop.Core;
-using MonoDevelop.Core.AddIns;
-using MonoDevelop.Core.Execution;
-
-using MonoDevelop.Ide.Gui;
-using MonoDevelop.Projects;
-
-namespace MonoDevelop.Profiling
-{
- public sealed class ProfilingContext
- {
- private string filename;
- private IProcessAsyncOperation asyncOperation;
-
- public ProfilingContext (IProcessAsyncOperation asyncOperation, string filename)
- {
- if (asyncOperation == null)
- throw new ArgumentNullException ("asyncOperation");
- if (filename == null)
- throw new ArgumentNullException ("filename");
-
- this.asyncOperation = asyncOperation;
- this.filename = filename;
- }
-
- public IProcessAsyncOperation AsyncOperation {
- get { return asyncOperation; }
- }
-
- public string FileName {
- get { return filename; }
- }
- }
-} \ No newline at end of file
diff --git a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/ProfilingOperations.cs b/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/ProfilingOperations.cs
deleted file mode 100644
index 99a158fba0..0000000000
--- a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/ProfilingOperations.cs
+++ /dev/null
@@ -1,122 +0,0 @@
-//
-// Authors:
-// Ben Motmans <ben.motmans@gmail.com>
-//
-// Copyright (C) 2007 Ben Motmans
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-using System;
-using System.IO;
-using System.Diagnostics;
-using System.Collections.Generic;
-
-using MonoDevelop.Core;
-using MonoDevelop.Ide;
-using MonoDevelop.Ide.ProgressMonitoring;
-using MonoDevelop.Core.AddIns;
-using MonoDevelop.Core.Execution;
-using MonoDevelop.Core.ProgressMonitoring;
-using MonoDevelop.Ide.Gui;
-using MonoDevelop.Projects;
-
-namespace MonoDevelop.Profiling
-{
- public static class ProfilingOperations
- {
- private static string previousContext;
-
- public static IAsyncOperation Profile (IProfiler profiler, IBuildTarget entry)
- {
- if (IdeApp.ProjectOperations.CurrentRunOperation != null
- && !IdeApp.ProjectOperations.CurrentRunOperation.IsCompleted)
- return IdeApp.ProjectOperations.CurrentRunOperation;
-
- SwitchWorkbenchContext (ProfileWorkbenchContext);
- ExecutionContext context = new ExecutionContext (profiler.GetDefaultExecutionHandlerFactory (), IdeApp.Workbench.ProgressMonitors);
-
- return IdeApp.ProjectOperations.Execute (entry, context);
- }
-
- public static IAsyncOperation ProfileFile (IProfiler profiler, string fileName)
- {
- if (IdeApp.ProjectOperations.CurrentRunOperation != null
- && !IdeApp.ProjectOperations.CurrentRunOperation.IsCompleted)
- return IdeApp.ProjectOperations.CurrentRunOperation;
-
- SwitchWorkbenchContext (ProfileWorkbenchContext);
- ExecutionContext context = new ExecutionContext (profiler.GetDefaultExecutionHandlerFactory (), IdeApp.Workbench.ProgressMonitors);
-
- return IdeApp.ProjectOperations.ExecuteFile (fileName, context);
- }
-
- public static IAsyncOperation ProfileApplication (IProfiler profiler, string executable, string workingDirectory, string args)
- {
- if (IdeApp.ProjectOperations.CurrentRunOperation != null
- && !IdeApp.ProjectOperations.CurrentRunOperation.IsCompleted)
- return IdeApp.ProjectOperations.CurrentRunOperation;
-
- SwitchWorkbenchContext (ProfileWorkbenchContext);
- ExecutionContext context = new ExecutionContext (profiler.GetDefaultExecutionHandlerFactory (), IdeApp.Workbench.ProgressMonitors);
-
- //TODO:
- return NullAsyncOperation.Failure;
- }
-
- public static IAsyncOperation ProfileProcess (IProfiler profiler, Process process)
- {
- if (IdeApp.ProjectOperations.CurrentRunOperation != null
- && !IdeApp.ProjectOperations.CurrentRunOperation.IsCompleted)
- return IdeApp.ProjectOperations.CurrentRunOperation;
-
- SwitchWorkbenchContext (ProfileWorkbenchContext);
-
- string workingDir = ProfilingService.GetProcessDirectory (process.Id);
- IExecutionHandler handler = profiler.GetProcessExecutionHandlerFactory (process);
- DotNetExecutionCommand cmd = new DotNetExecutionCommand ();
- cmd.WorkingDirectory = workingDir;
- return handler.Execute (cmd, null /*context.ConsoleFactory.CreateConsole (true)*/);
- }
-
- public static void RestoreWorkbenchContext ()
- {
- if (previousContext != null)
- SwitchWorkbenchContext (previousContext);
- }
-
- private static string ProfileWorkbenchContext {
- get { return "Profile"; }
- }
-
- private static void SwitchWorkbenchContext (string context)
- {
- if (IdeApp.Workbench.CurrentLayout != context)
- previousContext = IdeApp.Workbench.CurrentLayout;
-
- DispatchService.GuiDispatch (delegate () {
- IdeApp.Workbench.CurrentLayout = context;
-
- Pad pad = IdeApp.Workbench.GetPad<ProfilingPad> ();
- pad.Visible = true;
- });
- }
- }
-} \ No newline at end of file
diff --git a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/ProfilingService.cs b/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/ProfilingService.cs
deleted file mode 100644
index c21ff823e3..0000000000
--- a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/ProfilingService.cs
+++ /dev/null
@@ -1,282 +0,0 @@
-//
-// Authors:
-// Ben Motmans <ben.motmans@gmail.com>
-//
-// Copyright (C) 2007 Ben Motmans
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-using System;
-using System.IO;
-using System.Diagnostics;
-using System.Collections.Generic;
-
-using Mono.Addins;
-using MonoDevelop.Core;
-using MonoDevelop.Core.AddIns;
-using MonoDevelop.Core.Execution;
-using MonoDevelop.Ide;
-using MonoDevelop.Ide.Gui;
-using MonoDevelop.Ide.Gui.Dialogs;
-
-namespace MonoDevelop.Profiling
-{
- public static class ProfilingService
- {
- public static event ProfilerEventHandler ActiveProfilerChanged;
- public static event ProfilingSnapshotEventHandler SnapshotTaken;
- public static event EventHandler SnapshotFailed;
-
- private static IProfiler activeProfiler;
- private static Dictionary<string, IProfiler> profilers;
- private static ProfilingSnapshotCollection profilingSnapshots;
-
- private static ProfilingSnapshotEventHandler snapshotHandler;
- private static EventHandler snapshotFailedHandler;
- private static ProfilerStateEventHandler stateHandler;
-
- static ProfilingService ()
- {
- profilers = new Dictionary<string, IProfiler> ();
-
- foreach (ProfilerCodon codon in AddinManager.GetExtensionNodes ("/MonoDevelop/Profiling/Profilers")) {
- IProfiler prof = codon.Profiler;
- profilers.Add (prof.Identifier, prof);
- }
-
- snapshotHandler = new ProfilingSnapshotEventHandler (HandleSnapshotTaken);
- stateHandler = new ProfilerStateEventHandler (HandleStateChanged);
- snapshotFailedHandler = new EventHandler (HandleSnapshotFailed);
-
- string configFile = Path.Combine (PropertyService.Locations.Config, "MonoDevelop.Profiling.xml");
- profilingSnapshots = new ProfilingSnapshotCollection (configFile);
- profilingSnapshots.Load ();
- }
-
- public static bool IsProfilerActive {
- get { return activeProfiler != null; }
- }
-
- public static IProfiler ActiveProfiler {
- get { return activeProfiler; }
- set {
- if (activeProfiler != value) {
- if (activeProfiler != null) {
- if (activeProfiler.State != ProfilerState.Inactive)
- activeProfiler.Stop ();
- activeProfiler.SnapshotTaken -= snapshotHandler;
- activeProfiler.SnapshotFailed -= snapshotFailedHandler;
- activeProfiler.StateChanged -= stateHandler;
- }
-
- activeProfiler = value;
- if (activeProfiler != null) {
- activeProfiler.SnapshotTaken += snapshotHandler;
- activeProfiler.SnapshotFailed += snapshotFailedHandler;
- activeProfiler.StateChanged += stateHandler;
- } else {
- ProfilingOperations.RestoreWorkbenchContext ();
- }
-
- ProfilerEventArgs args = new ProfilerEventArgs (value);
- if (ActiveProfilerChanged != null)
- ActiveProfilerChanged (null, args);
- }
- }
- }
-
- public static IEnumerable<IProfiler> Profilers {
- get { return profilers.Values; }
- }
-
- public static ProfilingSnapshotCollection ProfilingSnapshots {
- get { return profilingSnapshots; }
- }
-
- public static int ProfilerCount {
- get { return profilers.Count; }
- }
-
- public static int SupportedProfilerCount {
- get {
- int count = 0;
- foreach (IProfiler prof in profilers.Values)
- if (prof.IsSupported)
- count++;
- return count;
- }
- }
-
- public static IProfiler GetProfiler (string identifier)
- {
- if (identifier == null)
- throw new ArgumentNullException ("identifier");
-
- IProfiler prof = null;
- if (profilers.TryGetValue (identifier, out prof))
- return prof;
- return null;
- }
-
- public static void LoadSnapshot (string profilerIdentifier, string filename)
- {
- if (filename == null)
- throw new ArgumentNullException ("filename");
- if (profilerIdentifier == null)
- throw new ArgumentNullException ("profilerIdentifier");
-
- IProfiler prof = GetProfiler (profilerIdentifier);
- if (prof != null) {
- IProfilingSnapshot snapshot = prof.Load (filename);
- if (snapshot != null) {
- profilingSnapshots.Add (snapshot);
- return;
- }
- }
- MessageService.ShowError (GettextCatalog.GetString ("Unable to load profiling snapshot '{0}'."), filename);
- }
-
- public static IProfilingSnapshot LoadSnapshot (string filename)
- {
- if (filename == null)
- throw new ArgumentNullException ("filename");
-
- foreach (IProfiler prof in profilers.Values) {
- if (prof.CanLoad (filename)) {
- IProfilingSnapshot snapshot = prof.Load (filename);
- if (snapshot != null) {
- profilingSnapshots.Add (snapshot);
- return snapshot;
- }
- }
- }
-
- MessageService.ShowError (GettextCatalog.GetString ("Unable to load profiling snapshot '{0}'."), filename);
- return null;
- }
-
- public static void RemoveSnapshot (IProfilingSnapshot snapshot)
- {
- AlertButton removeFromProject = new AlertButton (GettextCatalog.GetString ("_Remove from Project"), Gtk.Stock.Remove);
- AlertButton result = MessageService.AskQuestion (GettextCatalog.GetString ("Are you sure you want to remove snapshot '{0}'?", snapshot.Name),
- GettextCatalog.GetString ("Delete physically removes the file from disc."),
- AlertButton.Delete, AlertButton.Cancel, removeFromProject);
-
- if (result != AlertButton.Cancel) {
- ProfilingService.ProfilingSnapshots.Remove (snapshot);
- if (result == AlertButton.Delete && File.Exists (snapshot.FileName))
- FileService.DeleteFile (snapshot.FileName);
- }
- }
-
- private static void HandleSnapshotTaken (object sender, ProfilingSnapshotEventArgs args)
- {
- profilingSnapshots.Add (args.Snapshot);
-
- if (SnapshotTaken != null)
- SnapshotTaken (sender, args);
- }
-
- private static void HandleSnapshotFailed (object sender, EventArgs args)
- {
- MessageService.ShowError (GettextCatalog.GetString ("Unable to take a profiling snapshot."));
-
- if (SnapshotFailed != null)
- SnapshotFailed (sender, args);
- }
-
- private static void HandleStateChanged (object sender, ProfilerStateEventArgs args)
- {
- if (args.State == ProfilerState.Inactive)
- ActiveProfiler = null;
- }
-
- internal static bool GetProfilerInformation (int pid, out string profiler, out string filename)
- {
- //TODO: make sure this works on mac+windows
- string fn = "/proc/" + pid.ToString () + "/cmdline";
- using (FileStream stream = new FileStream (fn, FileMode.Open, FileAccess.Read)) {
- using (StreamReader reader = new StreamReader(stream)) {
- string[] args = reader.ReadToEnd ().Split (new char[]{'\0'}, StringSplitOptions.RemoveEmptyEntries);
-
- if (args[0].EndsWith ("mono")) {
- //a process launched with mono, either "mono" or something like "/usr/bin/mono
-
- for (int i=1; i<args.Length; i++) {
- if (args[i].StartsWith ("--profile=")) {
- int index = args[i].IndexOf (':');
-
- if (index >= 0) {
- profiler = args[i].Substring (10, index);
- filename = args[i].Substring (index + 1);
- } else {
- profiler = args[i].Substring (10);
- filename = null;
- }
- return true;
- }
- }
- }
- }
- }
-
- profiler = null;
- filename = null;
- return false;
- }
-
- internal static string GetProcessDirectory (int pid)
- {
- string fn = "/proc/" + pid.ToString () + "/environ";
- using (FileStream stream = new FileStream (fn, FileMode.Open, FileAccess.Read)) {
- using (StreamReader reader = new StreamReader(stream)) {
- string[] args = reader.ReadToEnd ().Split (new char[]{'\0'}, StringSplitOptions.RemoveEmptyEntries);
-
- for (int i=0; i<args.Length; i++) {
- if (args[i].StartsWith ("PWD=")) {
- return args[i].Substring (4);
- }
- }
- }
- }
- return null;
- }
-
- public static string PrettySize (uint num_bytes)
- {
- if (num_bytes < 1024)
- return String.Format ("{0}b", num_bytes);
-
- if (num_bytes < 1024*10)
- return String.Format ("{0:0.0}k", num_bytes / 1024.0);
-
- if (num_bytes < 1024*1024)
- return String.Format ("{0}k", num_bytes / 1024);
-
- return String.Format ("{0:0.0}M", num_bytes / (1024 * 1024.0));
- }
-
- public static string PrettySize (long num_bytes)
- {
- return PrettySize ((uint)num_bytes);
- }
- }
-}
diff --git a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/ProfilingSnapshotCollection.cs b/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/ProfilingSnapshotCollection.cs
deleted file mode 100644
index 7d09d0458d..0000000000
--- a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/ProfilingSnapshotCollection.cs
+++ /dev/null
@@ -1,163 +0,0 @@
-//
-// Authors:
-// Ben Motmans <ben.motmans@gmail.com>
-//
-// Copyright (C) 2007 Ben Motmans
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-using System;
-using System.IO;
-using System.Xml;
-using System.Collections;
-using System.Collections.Generic;
-using MonoDevelop.Core;
-
-namespace MonoDevelop.Profiling
-{
- public class ProfilingSnapshotCollection : IEnumerable<IProfilingSnapshot>
- {
- public event ProfilingSnapshotEventHandler SnapshotAdded;
- public event ProfilingSnapshotEventHandler SnapshotRemoved;
-
- private string filename;
-
- private List<IProfilingSnapshot> summaries;
- private EventHandler nameChangedHandler;
-
- public ProfilingSnapshotCollection (string filename)
- {
- if (filename == null)
- throw new ArgumentNullException ("filename");
-
- this.filename = filename;
-
- summaries = new List<IProfilingSnapshot> ();
- nameChangedHandler = new EventHandler (OnNameChanged);
- }
-
- public IProfilingSnapshot this[int index] {
- get { return summaries[index]; }
- }
-
- public void Add (IProfilingSnapshot item)
- {
- summaries.Add (item);
- item.NameChanged += nameChangedHandler;
- Save ();
- OnSnapshotAdded (new ProfilingSnapshotEventArgs (item));
- }
-
- public int Count {
- get { return summaries.Count; }
- }
-
- public int IndexOf (IProfilingSnapshot item)
- {
- return summaries.IndexOf (item);
- }
-
- public void Insert (int index, IProfilingSnapshot item)
- {
- summaries.Insert (index, item);
- item.NameChanged += nameChangedHandler;
- Save ();
- OnSnapshotAdded (new ProfilingSnapshotEventArgs (item));
- }
-
- public void Remove (IProfilingSnapshot item)
- {
- summaries.Remove (item);
- item.NameChanged -= nameChangedHandler;
- Save ();
- OnSnapshotRemoved (new ProfilingSnapshotEventArgs (item));
- }
-
- public bool Contains (IProfilingSnapshot item)
- {
- return summaries.Contains (item);
- }
-
- public IEnumerator<IProfilingSnapshot> GetEnumerator ()
- {
- return summaries.GetEnumerator ();
- }
-
- IEnumerator IEnumerable.GetEnumerator ()
- {
- return (summaries as IEnumerable).GetEnumerator ();
- }
-
- protected virtual void OnSnapshotAdded (ProfilingSnapshotEventArgs args)
- {
- if (SnapshotAdded != null )
- SnapshotAdded (this, args);
- }
-
- protected virtual void OnSnapshotRemoved (ProfilingSnapshotEventArgs args)
- {
- if (SnapshotRemoved != null )
- SnapshotRemoved (this, args);
- }
-
- public void Load ()
- {
- XmlDocument doc = new XmlDocument ();
- if (!File.Exists (filename))
- return;
-
- try {
- doc.Load (filename);
-
- foreach (XmlNode node in doc.DocumentElement.SelectNodes ("ProfilingSnapshot")) {
- if (node.NodeType != XmlNodeType.Element)
- continue;
-
- XmlElement element = node as XmlElement;
- ProfilingService.LoadSnapshot (element.GetAttribute ("profiler"), element.GetAttribute ("filename"));
- }
- } catch (Exception e) {
- LoggingService.LogError ("ProfilingSnapshotCollection", "Load Profiling Snapshots", e);
- }
- }
-
- public void Save ()
- {
- XmlDocument doc = new XmlDocument ();
-
- XmlElement root = doc.CreateElement ("ProfilingSnapshots");
- doc.AppendChild (root);
-
- foreach (IProfilingSnapshot snapshot in this) {
- XmlElement snapshotElement = doc.CreateElement ("ProfilingSnapshot");
- snapshotElement.SetAttribute ("profiler", snapshot.Profiler.Identifier);
- snapshotElement.SetAttribute ("filename", snapshot.FileName);
- root.AppendChild (snapshotElement);
- }
- doc.Save (filename);
- }
-
- protected void OnNameChanged (object sender, EventArgs args)
- {
- Save ();
- }
- }
-}
diff --git a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/ProfilingSnapshotEventArgs.cs b/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/ProfilingSnapshotEventArgs.cs
deleted file mode 100644
index 4624902bf8..0000000000
--- a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/ProfilingSnapshotEventArgs.cs
+++ /dev/null
@@ -1,47 +0,0 @@
-//
-// Authors:
-// Ben Motmans <ben.motmans@gmail.com>
-//
-// Copyright (C) 2007 Ben Motmans
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-using System;
-
-namespace MonoDevelop.Profiling
-{
- public delegate void ProfilingSnapshotEventHandler (object sender, ProfilingSnapshotEventArgs args);
-
- public class ProfilingSnapshotEventArgs : EventArgs
- {
- private IProfilingSnapshot snapshot;
-
- public ProfilingSnapshotEventArgs (IProfilingSnapshot snapshot)
- {
- this.snapshot = snapshot;
- }
-
- public IProfilingSnapshot Snapshot
- {
- get { return snapshot; }
- }
- }
-} \ No newline at end of file
diff --git a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/gtk-gui/MonoDevelop.Profiling.SelectExecutableDialog.cs b/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/gtk-gui/MonoDevelop.Profiling.SelectExecutableDialog.cs
deleted file mode 100644
index 4ee02abc45..0000000000
--- a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/gtk-gui/MonoDevelop.Profiling.SelectExecutableDialog.cs
+++ /dev/null
@@ -1,168 +0,0 @@
-
-// This file has been generated by the GUI designer. Do not modify.
-namespace MonoDevelop.Profiling
-{
- public partial class SelectExecutableDialog
- {
- private global::Gtk.Table table;
-
- private global::Gtk.Button buttonOpen;
-
- private global::Gtk.ComboBox comboProfilers;
-
- private global::Gtk.Entry entryArguments;
-
- private global::Gtk.Entry entryExecutable;
-
- private global::Gtk.Label label1;
-
- private global::Gtk.Label label2;
-
- private global::Gtk.Label label3;
-
- private global::Gtk.Button buttonCancel;
-
- private global::Gtk.Button buttonOk;
-
- protected virtual void Build ()
- {
- global::Stetic.Gui.Initialize (this);
- // Widget MonoDevelop.Profiling.SelectExecutableDialog
- this.Name = "MonoDevelop.Profiling.SelectExecutableDialog";
- this.Title = global::Mono.Unix.Catalog.GetString ("Select Executable");
- this.WindowPosition = ((global::Gtk.WindowPosition)(4));
- // Internal child MonoDevelop.Profiling.SelectExecutableDialog.VBox
- global::Gtk.VBox w1 = this.VBox;
- w1.Name = "dialog1_VBox";
- w1.BorderWidth = ((uint)(2));
- // Container child dialog1_VBox.Gtk.Box+BoxChild
- this.table = new global::Gtk.Table (((uint)(3)), ((uint)(3)), false);
- this.table.Name = "table";
- this.table.RowSpacing = ((uint)(6));
- this.table.ColumnSpacing = ((uint)(6));
- // Container child table.Gtk.Table+TableChild
- this.buttonOpen = new global::Gtk.Button ();
- this.buttonOpen.CanFocus = true;
- this.buttonOpen.Name = "buttonOpen";
- this.buttonOpen.UseStock = true;
- this.buttonOpen.UseUnderline = true;
- this.buttonOpen.Label = "gtk-open";
- this.table.Add (this.buttonOpen);
- global::Gtk.Table.TableChild w2 = ((global::Gtk.Table.TableChild)(this.table[this.buttonOpen]));
- w2.LeftAttach = ((uint)(2));
- w2.RightAttach = ((uint)(3));
- w2.XOptions = ((global::Gtk.AttachOptions)(4));
- w2.YOptions = ((global::Gtk.AttachOptions)(4));
- // Container child table.Gtk.Table+TableChild
- this.comboProfilers = global::Gtk.ComboBox.NewText ();
- this.comboProfilers.Name = "comboProfilers";
- this.table.Add (this.comboProfilers);
- global::Gtk.Table.TableChild w3 = ((global::Gtk.Table.TableChild)(this.table[this.comboProfilers]));
- w3.TopAttach = ((uint)(2));
- w3.BottomAttach = ((uint)(3));
- w3.LeftAttach = ((uint)(1));
- w3.RightAttach = ((uint)(3));
- w3.YOptions = ((global::Gtk.AttachOptions)(4));
- // Container child table.Gtk.Table+TableChild
- this.entryArguments = new global::Gtk.Entry ();
- this.entryArguments.CanFocus = true;
- this.entryArguments.Name = "entryArguments";
- this.entryArguments.IsEditable = true;
- this.entryArguments.InvisibleChar = '●';
- this.table.Add (this.entryArguments);
- global::Gtk.Table.TableChild w4 = ((global::Gtk.Table.TableChild)(this.table[this.entryArguments]));
- w4.TopAttach = ((uint)(1));
- w4.BottomAttach = ((uint)(2));
- w4.LeftAttach = ((uint)(1));
- w4.RightAttach = ((uint)(3));
- w4.YOptions = ((global::Gtk.AttachOptions)(4));
- // Container child table.Gtk.Table+TableChild
- this.entryExecutable = new global::Gtk.Entry ();
- this.entryExecutable.CanFocus = true;
- this.entryExecutable.Name = "entryExecutable";
- this.entryExecutable.IsEditable = true;
- this.entryExecutable.InvisibleChar = '●';
- this.table.Add (this.entryExecutable);
- global::Gtk.Table.TableChild w5 = ((global::Gtk.Table.TableChild)(this.table[this.entryExecutable]));
- w5.LeftAttach = ((uint)(1));
- w5.RightAttach = ((uint)(2));
- w5.YOptions = ((global::Gtk.AttachOptions)(4));
- // Container child table.Gtk.Table+TableChild
- this.label1 = new global::Gtk.Label ();
- this.label1.Name = "label1";
- this.label1.Xalign = 0f;
- this.label1.LabelProp = global::Mono.Unix.Catalog.GetString ("Executable");
- this.table.Add (this.label1);
- global::Gtk.Table.TableChild w6 = ((global::Gtk.Table.TableChild)(this.table[this.label1]));
- w6.XOptions = ((global::Gtk.AttachOptions)(4));
- w6.YOptions = ((global::Gtk.AttachOptions)(4));
- // Container child table.Gtk.Table+TableChild
- this.label2 = new global::Gtk.Label ();
- this.label2.Name = "label2";
- this.label2.Xalign = 0f;
- this.label2.LabelProp = global::Mono.Unix.Catalog.GetString ("Arguments");
- this.table.Add (this.label2);
- global::Gtk.Table.TableChild w7 = ((global::Gtk.Table.TableChild)(this.table[this.label2]));
- w7.TopAttach = ((uint)(1));
- w7.BottomAttach = ((uint)(2));
- w7.XOptions = ((global::Gtk.AttachOptions)(4));
- w7.YOptions = ((global::Gtk.AttachOptions)(4));
- // Container child table.Gtk.Table+TableChild
- this.label3 = new global::Gtk.Label ();
- this.label3.Name = "label3";
- this.label3.Xalign = 0f;
- this.label3.LabelProp = global::Mono.Unix.Catalog.GetString ("Profiler");
- this.table.Add (this.label3);
- global::Gtk.Table.TableChild w8 = ((global::Gtk.Table.TableChild)(this.table[this.label3]));
- w8.TopAttach = ((uint)(2));
- w8.BottomAttach = ((uint)(3));
- w8.XOptions = ((global::Gtk.AttachOptions)(4));
- w8.YOptions = ((global::Gtk.AttachOptions)(4));
- w1.Add (this.table);
- global::Gtk.Box.BoxChild w9 = ((global::Gtk.Box.BoxChild)(w1[this.table]));
- w9.Position = 0;
- w9.Expand = false;
- w9.Fill = false;
- // Internal child MonoDevelop.Profiling.SelectExecutableDialog.ActionArea
- global::Gtk.HButtonBox w10 = this.ActionArea;
- w10.Name = "dialog1_ActionArea";
- w10.Spacing = 6;
- w10.BorderWidth = ((uint)(5));
- w10.LayoutStyle = ((global::Gtk.ButtonBoxStyle)(4));
- // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
- this.buttonCancel = new global::Gtk.Button ();
- this.buttonCancel.CanDefault = true;
- this.buttonCancel.CanFocus = true;
- this.buttonCancel.Name = "buttonCancel";
- this.buttonCancel.UseStock = true;
- this.buttonCancel.UseUnderline = true;
- this.buttonCancel.Label = "gtk-cancel";
- this.AddActionWidget (this.buttonCancel, -6);
- global::Gtk.ButtonBox.ButtonBoxChild w11 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w10[this.buttonCancel]));
- w11.Expand = false;
- w11.Fill = false;
- // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
- this.buttonOk = new global::Gtk.Button ();
- this.buttonOk.Sensitive = false;
- this.buttonOk.CanDefault = true;
- this.buttonOk.CanFocus = true;
- this.buttonOk.Name = "buttonOk";
- this.buttonOk.UseStock = true;
- this.buttonOk.UseUnderline = true;
- this.buttonOk.Label = "gtk-ok";
- this.AddActionWidget (this.buttonOk, -5);
- global::Gtk.ButtonBox.ButtonBoxChild w12 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w10[this.buttonOk]));
- w12.Position = 1;
- w12.Expand = false;
- w12.Fill = false;
- if ((this.Child != null)) {
- this.Child.ShowAll ();
- }
- this.DefaultWidth = 488;
- this.DefaultHeight = 185;
- this.Show ();
- this.entryExecutable.Changed += new global::System.EventHandler (this.ExecutableChanged);
- this.buttonOpen.Clicked += new global::System.EventHandler (this.OpenClicked);
- }
- }
-}
diff --git a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/gtk-gui/MonoDevelop.Profiling.SelectProcessDialog.cs b/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/gtk-gui/MonoDevelop.Profiling.SelectProcessDialog.cs
deleted file mode 100644
index c49af5f26a..0000000000
--- a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/gtk-gui/MonoDevelop.Profiling.SelectProcessDialog.cs
+++ /dev/null
@@ -1,102 +0,0 @@
-
-// This file has been generated by the GUI designer. Do not modify.
-namespace MonoDevelop.Profiling
-{
- public partial class SelectProcessDialog
- {
- private global::Gtk.VBox vbox1;
-
- private global::Gtk.Label label1;
-
- private global::Gtk.ScrolledWindow scrolledwindow1;
-
- private global::Gtk.TreeView list;
-
- private global::Gtk.Button buttonCancel;
-
- private global::Gtk.Button buttonOk;
-
- protected virtual void Build ()
- {
- global::Stetic.Gui.Initialize (this);
- // Widget MonoDevelop.Profiling.SelectProcessDialog
- this.Name = "MonoDevelop.Profiling.SelectProcessDialog";
- this.Title = global::Mono.Unix.Catalog.GetString ("Select process");
- this.TypeHint = ((global::Gdk.WindowTypeHint)(1));
- this.WindowPosition = ((global::Gtk.WindowPosition)(4));
- // Internal child MonoDevelop.Profiling.SelectProcessDialog.VBox
- global::Gtk.VBox w1 = this.VBox;
- w1.Name = "dialog1_VBox";
- w1.BorderWidth = ((uint)(2));
- // Container child dialog1_VBox.Gtk.Box+BoxChild
- this.vbox1 = new global::Gtk.VBox ();
- this.vbox1.Name = "vbox1";
- this.vbox1.Spacing = 6;
- this.vbox1.BorderWidth = ((uint)(12));
- // Container child vbox1.Gtk.Box+BoxChild
- this.label1 = new global::Gtk.Label ();
- this.label1.Name = "label1";
- this.label1.Xalign = 0f;
- this.label1.LabelProp = "Select a process:";
- this.vbox1.Add (this.label1);
- global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.vbox1[this.label1]));
- w2.Position = 0;
- w2.Expand = false;
- w2.Fill = false;
- // Container child vbox1.Gtk.Box+BoxChild
- this.scrolledwindow1 = new global::Gtk.ScrolledWindow ();
- this.scrolledwindow1.CanFocus = true;
- this.scrolledwindow1.Name = "scrolledwindow1";
- this.scrolledwindow1.ShadowType = ((global::Gtk.ShadowType)(1));
- // Container child scrolledwindow1.Gtk.Container+ContainerChild
- this.list = new global::Gtk.TreeView ();
- this.list.CanFocus = true;
- this.list.Name = "list";
- this.scrolledwindow1.Add (this.list);
- this.vbox1.Add (this.scrolledwindow1);
- global::Gtk.Box.BoxChild w4 = ((global::Gtk.Box.BoxChild)(this.vbox1[this.scrolledwindow1]));
- w4.Position = 1;
- w1.Add (this.vbox1);
- global::Gtk.Box.BoxChild w5 = ((global::Gtk.Box.BoxChild)(w1[this.vbox1]));
- w5.Position = 0;
- // Internal child MonoDevelop.Profiling.SelectProcessDialog.ActionArea
- global::Gtk.HButtonBox w6 = this.ActionArea;
- w6.Name = "dialog1_ActionArea";
- w6.Spacing = 6;
- w6.BorderWidth = ((uint)(5));
- w6.LayoutStyle = ((global::Gtk.ButtonBoxStyle)(4));
- // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
- this.buttonCancel = new global::Gtk.Button ();
- this.buttonCancel.CanDefault = true;
- this.buttonCancel.CanFocus = true;
- this.buttonCancel.Name = "buttonCancel";
- this.buttonCancel.UseStock = true;
- this.buttonCancel.UseUnderline = true;
- this.buttonCancel.Label = "gtk-cancel";
- this.AddActionWidget (this.buttonCancel, -6);
- global::Gtk.ButtonBox.ButtonBoxChild w7 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w6[this.buttonCancel]));
- w7.Expand = false;
- w7.Fill = false;
- // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
- this.buttonOk = new global::Gtk.Button ();
- this.buttonOk.Sensitive = false;
- this.buttonOk.CanDefault = true;
- this.buttonOk.CanFocus = true;
- this.buttonOk.Name = "buttonOk";
- this.buttonOk.UseStock = true;
- this.buttonOk.UseUnderline = true;
- this.buttonOk.Label = "gtk-ok";
- this.AddActionWidget (this.buttonOk, -5);
- global::Gtk.ButtonBox.ButtonBoxChild w8 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w6[this.buttonOk]));
- w8.Position = 1;
- w8.Expand = false;
- w8.Fill = false;
- if ((this.Child != null)) {
- this.Child.ShowAll ();
- }
- this.DefaultWidth = 582;
- this.DefaultHeight = 313;
- this.Show ();
- }
- }
-}
diff --git a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/gtk-gui/generated.cs b/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/gtk-gui/generated.cs
deleted file mode 100755
index 8463caae89..0000000000
--- a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/gtk-gui/generated.cs
+++ /dev/null
@@ -1,29 +0,0 @@
-
-// This file has been generated by the GUI designer. Do not modify.
-namespace Stetic
-{
- internal class Gui
- {
- private static bool initialized;
-
- static internal void Initialize (Gtk.Widget iconRenderer)
- {
- if ((Stetic.Gui.initialized == false)) {
- Stetic.Gui.initialized = true;
- }
- }
- }
-
- internal class ActionGroups
- {
- public static Gtk.ActionGroup GetActionGroup (System.Type type)
- {
- return Stetic.ActionGroups.GetActionGroup (type.FullName);
- }
-
- public static Gtk.ActionGroup GetActionGroup (string name)
- {
- return null;
- }
- }
-}
diff --git a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/gtk-gui/gui.stetic b/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/gtk-gui/gui.stetic
deleted file mode 100755
index 2efae195eb..0000000000
--- a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/gtk-gui/gui.stetic
+++ /dev/null
@@ -1,348 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<stetic-interface>
- <configuration>
- <images-root-path>..</images-root-path>
- <target-gtk-version>2.8</target-gtk-version>
- </configuration>
- <import>
- <widget-library name="MonoDevelop.Ide, Version=2.2.0.0, Culture=neutral" />
- <widget-library name="MonoDevelop.Components, Version=2.2.0.0, Culture=neutral" />
- <widget-library name="MonoDevelop.Core.Gui, Version=2.2.0.0, Culture=neutral" />
- <widget-library name="MonoDevelop.DesignerSupport, Version=2.2.0.0, Culture=neutral" />
- <widget-library name="MonoDevelop.VersionControl, Version=2.2.0.0, Culture=neutral" />
- <widget-library name="MonoDevelop.NUnit, Version=2.2.0.0, Culture=neutral" />
- <widget-library name="MonoDevelop.AspNet, Version=2.2.0.0, Culture=neutral" />
- <widget-library name="MonoDevelop.Gettext, Version=2.2.0.0, Culture=neutral" />
- <widget-library name="MonoDevelop.Deployment, Version=2.2.0.0, Culture=neutral" />
- <widget-library name="MonoDevelop.Deployment.Linux, Version=2.2.0.0, Culture=neutral" />
- <widget-library name="MonoDevelop.GtkCore, Version=2.2.0.0, Culture=neutral" />
- <widget-library name="MonoDevelop.VBNetBinding, Version=2.2.0.0, Culture=neutral" />
- <widget-library name="MonoDevelop.CBinding, Version=2.2.0.0, Culture=neutral" />
- <widget-library name="MonoDevelop.CSharpBinding, Version=2.2.0.0, Culture=neutral" />
- <widget-library name="MonoDevelop.Autotools, Version=2.2.0.0, Culture=neutral" />
- <widget-library name="MonoDevelop.XmlEditor, Version=2.2.0.0, Culture=neutral" />
- <widget-library name="MonoDevelop.Projects.Gui, Version=2.2.0.0, Culture=neutral" />
- <widget-library name="MonoDevelop.SourceEditor2, Version=2.2.0.0, Culture=neutral" />
- <widget-library name="MonoDevelop.Debugger, Version=2.2.0.0, Culture=neutral" />
- <widget-library name="MonoDevelop.Refactoring, Version=2.2.0.0, Culture=neutral" />
- <widget-library name="MonoDevelop.Debugger.Soft, Version=2.2.0.0, Culture=neutral" />
- <widget-library name="Mono.TextEditor, Version=1.0.0.0, Culture=neutral" />
- <widget-library name="../../build/MonoDevelop.Profiling.dll" internal="true" />
- </import>
- <widget class="Gtk.Dialog" id="MonoDevelop.Profiling.SelectProcessDialog" design-size="582 313">
- <property name="MemberName" />
- <property name="Title" translatable="yes">Select process</property>
- <property name="TypeHint">Dialog</property>
- <property name="WindowPosition">CenterOnParent</property>
- <property name="Buttons">2</property>
- <property name="HelpButton">False</property>
- <child internal-child="VBox">
- <widget class="Gtk.VBox" id="dialog1_VBox">
- <property name="MemberName" />
- <property name="BorderWidth">2</property>
- <child>
- <widget class="Gtk.VBox" id="vbox1">
- <property name="MemberName" />
- <property name="Spacing">6</property>
- <property name="BorderWidth">12</property>
- <child>
- <widget class="Gtk.Label" id="label1">
- <property name="MemberName" />
- <property name="Xalign">0</property>
- <property name="LabelProp">Select a process:</property>
- </widget>
- <packing>
- <property name="Position">0</property>
- <property name="AutoSize">True</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.ScrolledWindow" id="scrolledwindow1">
- <property name="MemberName" />
- <property name="CanFocus">True</property>
- <property name="ShadowType">In</property>
- <child>
- <widget class="Gtk.TreeView" id="list">
- <property name="MemberName">list</property>
- <property name="CanFocus">True</property>
- </widget>
- </child>
- </widget>
- <packing>
- <property name="Position">1</property>
- <property name="AutoSize">True</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="Position">0</property>
- <property name="AutoSize">True</property>
- </packing>
- </child>
- </widget>
- </child>
- <child internal-child="ActionArea">
- <widget class="Gtk.HButtonBox" id="dialog1_ActionArea">
- <property name="MemberName" />
- <property name="Spacing">6</property>
- <property name="BorderWidth">5</property>
- <property name="Size">2</property>
- <property name="LayoutStyle">End</property>
- <child>
- <widget class="Gtk.Button" id="buttonCancel">
- <property name="MemberName" />
- <property name="CanDefault">True</property>
- <property name="CanFocus">True</property>
- <property name="UseStock">True</property>
- <property name="Type">StockItem</property>
- <property name="StockId">gtk-cancel</property>
- <property name="ResponseId">-6</property>
- <property name="label">gtk-cancel</property>
- </widget>
- <packing>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Button" id="buttonOk">
- <property name="MemberName" />
- <property name="Sensitive">False</property>
- <property name="CanDefault">True</property>
- <property name="CanFocus">True</property>
- <property name="UseStock">True</property>
- <property name="Type">StockItem</property>
- <property name="StockId">gtk-ok</property>
- <property name="ResponseId">-5</property>
- <property name="label">gtk-ok</property>
- </widget>
- <packing>
- <property name="Position">1</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- </widget>
- </child>
- </widget>
- <widget class="Gtk.Dialog" id="MonoDevelop.Profiling.SelectExecutableDialog" design-size="488 185">
- <property name="MemberName" />
- <property name="Title" translatable="yes">Select Executable</property>
- <property name="WindowPosition">CenterOnParent</property>
- <property name="Buttons">2</property>
- <property name="HelpButton">False</property>
- <property name="HasSeparator">False</property>
- <child internal-child="VBox">
- <widget class="Gtk.VBox" id="dialog1_VBox">
- <property name="MemberName" />
- <property name="BorderWidth">2</property>
- <child>
- <widget class="Gtk.Table" id="table">
- <property name="MemberName" />
- <property name="NRows">3</property>
- <property name="NColumns">3</property>
- <property name="RowSpacing">6</property>
- <property name="ColumnSpacing">6</property>
- <child>
- <widget class="Gtk.Button" id="buttonOpen">
- <property name="MemberName" />
- <property name="CanFocus">True</property>
- <property name="UseStock">True</property>
- <property name="Type">StockItem</property>
- <property name="StockId">gtk-open</property>
- <signal name="Clicked" handler="OpenClicked" />
- <property name="label">gtk-open</property>
- </widget>
- <packing>
- <property name="LeftAttach">2</property>
- <property name="RightAttach">3</property>
- <property name="AutoSize">True</property>
- <property name="XOptions">Fill</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">False</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.ComboBox" id="comboProfilers">
- <property name="MemberName" />
- <property name="IsTextCombo">True</property>
- <property name="Items" translatable="yes" />
- </widget>
- <packing>
- <property name="TopAttach">2</property>
- <property name="BottomAttach">3</property>
- <property name="LeftAttach">1</property>
- <property name="RightAttach">3</property>
- <property name="AutoSize">False</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">True</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Entry" id="entryArguments">
- <property name="MemberName" />
- <property name="CanFocus">True</property>
- <property name="IsEditable">True</property>
- <property name="InvisibleChar">●</property>
- </widget>
- <packing>
- <property name="TopAttach">1</property>
- <property name="BottomAttach">2</property>
- <property name="LeftAttach">1</property>
- <property name="RightAttach">3</property>
- <property name="AutoSize">False</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">True</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Entry" id="entryExecutable">
- <property name="MemberName" />
- <property name="CanFocus">True</property>
- <property name="IsEditable">True</property>
- <property name="InvisibleChar">●</property>
- <signal name="Changed" handler="ExecutableChanged" />
- </widget>
- <packing>
- <property name="LeftAttach">1</property>
- <property name="RightAttach">2</property>
- <property name="AutoSize">False</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">True</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Label" id="label1">
- <property name="MemberName" />
- <property name="Xalign">0</property>
- <property name="LabelProp" translatable="yes">Executable</property>
- </widget>
- <packing>
- <property name="AutoSize">True</property>
- <property name="XOptions">Fill</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">False</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Label" id="label2">
- <property name="MemberName" />
- <property name="Xalign">0</property>
- <property name="LabelProp" translatable="yes">Arguments</property>
- </widget>
- <packing>
- <property name="TopAttach">1</property>
- <property name="BottomAttach">2</property>
- <property name="AutoSize">True</property>
- <property name="XOptions">Fill</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">False</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Label" id="label3">
- <property name="MemberName" />
- <property name="Xalign">0</property>
- <property name="LabelProp" translatable="yes">Profiler</property>
- </widget>
- <packing>
- <property name="TopAttach">2</property>
- <property name="BottomAttach">3</property>
- <property name="AutoSize">True</property>
- <property name="XOptions">Fill</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">False</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="Position">0</property>
- <property name="AutoSize">True</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- </widget>
- </child>
- <child internal-child="ActionArea">
- <widget class="Gtk.HButtonBox" id="dialog1_ActionArea">
- <property name="MemberName" />
- <property name="Spacing">6</property>
- <property name="BorderWidth">5</property>
- <property name="Size">2</property>
- <property name="LayoutStyle">End</property>
- <child>
- <widget class="Gtk.Button" id="buttonCancel">
- <property name="MemberName" />
- <property name="CanDefault">True</property>
- <property name="CanFocus">True</property>
- <property name="UseStock">True</property>
- <property name="Type">StockItem</property>
- <property name="StockId">gtk-cancel</property>
- <property name="ResponseId">-6</property>
- <property name="label">gtk-cancel</property>
- </widget>
- <packing>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Button" id="buttonOk">
- <property name="MemberName" />
- <property name="Sensitive">False</property>
- <property name="CanDefault">True</property>
- <property name="CanFocus">True</property>
- <property name="UseStock">True</property>
- <property name="Type">StockItem</property>
- <property name="StockId">gtk-ok</property>
- <property name="ResponseId">-5</property>
- <property name="label">gtk-ok</property>
- </widget>
- <packing>
- <property name="Position">1</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- </widget>
- </child>
- </widget>
-</stetic-interface>
diff --git a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/gtk-gui/objects.xml b/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/gtk-gui/objects.xml
deleted file mode 100644
index 80fe7a3a36..0000000000
--- a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/gtk-gui/objects.xml
+++ /dev/null
@@ -1 +0,0 @@
-<objects attr-sync="on" /> \ No newline at end of file
diff --git a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/icons/Icons.16x16.Profiling.Filter.png b/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/icons/Icons.16x16.Profiling.Filter.png
deleted file mode 100755
index 1bc8c49e5f..0000000000
--- a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/icons/Icons.16x16.Profiling.Filter.png
+++ /dev/null
Binary files differ
diff --git a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/icons/Icons.16x16.Profiling.GC.png b/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/icons/Icons.16x16.Profiling.GC.png
deleted file mode 100644
index f12d452538..0000000000
--- a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/icons/Icons.16x16.Profiling.GC.png
+++ /dev/null
Binary files differ
diff --git a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/icons/Icons.16x16.Profiling.History.png b/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/icons/Icons.16x16.Profiling.History.png
deleted file mode 100644
index f6978d7d3b..0000000000
--- a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/icons/Icons.16x16.Profiling.History.png
+++ /dev/null
Binary files differ
diff --git a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/icons/Icons.16x16.Profiling.Snapshot.png b/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/icons/Icons.16x16.Profiling.Snapshot.png
deleted file mode 100755
index bd93bc705b..0000000000
--- a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/icons/Icons.16x16.Profiling.Snapshot.png
+++ /dev/null
Binary files differ
diff --git a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/icons/Icons.16x16.Profiling.Summary.png b/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/icons/Icons.16x16.Profiling.Summary.png
deleted file mode 100644
index 8851b99ba1..0000000000
--- a/extras/MonoDevelop.Profiling/MonoDevelop.Profiling/icons/Icons.16x16.Profiling.Summary.png
+++ /dev/null
Binary files differ
diff --git a/extras/MonoDevelop.Profiling/NEWS b/extras/MonoDevelop.Profiling/NEWS
deleted file mode 100644
index e69de29bb2..0000000000
--- a/extras/MonoDevelop.Profiling/NEWS
+++ /dev/null
diff --git a/extras/MonoDevelop.Profiling/README b/extras/MonoDevelop.Profiling/README
deleted file mode 100644
index 7044245440..0000000000
--- a/extras/MonoDevelop.Profiling/README
+++ /dev/null
@@ -1,11 +0,0 @@
-Profiler detection
-------------------
-
-MonoDevelop.Profiling currently supports heap-shot and heap-buddy.
-They are both detected at runtime, and must be installed in the same prefix as monodevelop.
-
-see:
-http://www.mono-project.com/HeapShot
-http://www.mono-project.com/HeapBuddy
-
-for more information about the specific profilers
diff --git a/extras/MonoDevelop.Profiling/autogen.sh b/extras/MonoDevelop.Profiling/autogen.sh
deleted file mode 100755
index 8aed1cc2e7..0000000000
--- a/extras/MonoDevelop.Profiling/autogen.sh
+++ /dev/null
@@ -1,79 +0,0 @@
-#!/bin/sh
-# Run this to generate all the initial makefiles, etc.
-# Ripped off from GNOME macros version
-
-DIE=0
-
-PKG_NAME=MonoDevelop.Profiling
-WANT_AUTOCONF="2.5"
-srcdir=`dirname $0`
-test -z "$srcdir" && srcdir=.
-
-(autoconf --version) < /dev/null > /dev/null 2>&1 || {
- echo
- echo "**Error**: You must have \`autoconf' installed to compile $(PKG_NAME)."
- echo "Download the appropriate package for your distribution,"
- echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
- DIE=1
-}
-
-(automake --version) < /dev/null > /dev/null 2>&1 || {
- echo
- echo "**Error**: You must have \`automake' installed to compile $(PKG_NAME)."
- echo "Get ftp://ftp.gnu.org/pub/gnu/automake-1.3.tar.gz"
- echo "(or a newer version if it is available)"
- DIE=1
- NO_AUTOMAKE=yes
-}
-
-# if no automake, don't bother testing for aclocal
-test -n "$NO_AUTOMAKE" || (aclocal --version) < /dev/null > /dev/null 2>&1 || {
- echo
- echo "**Error**: Missing \`aclocal'."
- DIE=1
-}
-
-if test "$DIE" -eq 1; then
- exit 1
-fi
-
-if test -z "$*"; then
- echo "**Warning**: I am going to run \`configure' with no arguments."
- echo "If you wish to pass any to it, please specify them on the"
- echo \`$0\'" command line."
- echo
-fi
-
-case $CC in
-xlc )
- am_opt=--include-deps;;
-esac
-
-echo "Running aclocal $ACLOCAL_FLAGS ..."
-aclocal $ACLOCAL_FLAGS || {
- echo
- echo "**Error**: aclocal failed. This may mean that you have not"
- echo "installed all of the packages you need, or you may need to"
- echo "set ACLOCAL_FLAGS to include \"-I \$prefix/share/aclocal\""
- echo "for the prefix where you installed the packages whose"
- echo "macros were not found"
- exit 1
-}
-
-echo "Running automake --gnu $am_opt ..."
-automake --add-missing --gnu $am_opt ||
- { echo "**Error**: automake failed."; exit 1; }
-
-echo "Running autoconf ..."
-WANT_AUTOCONF="2.5" autoconf || { echo "**Error**: autoconf failed."; exit 1; }
-
-
-conf_flags="--enable-maintainer-mode --enable-compile-warnings"
-
-if test x$NOCONFIGURE = x; then
- echo Running $srcdir/configure $conf_flags "$@" ...
- $srcdir/configure $conf_flags "$@" \
- && echo Now type \`make\' to compile $PKG_NAME || exit 1
-else
- echo Skipping configure process.
-fi
diff --git a/extras/MonoDevelop.Profiling/configure.in b/extras/MonoDevelop.Profiling/configure.in
deleted file mode 100644
index 60ad3eb871..0000000000
--- a/extras/MonoDevelop.Profiling/configure.in
+++ /dev/null
@@ -1,96 +0,0 @@
-AC_INIT([monodevelop-profiling], 4.2.3, [monodevelop-list@lists.ximian.com])
-AC_PREREQ(2.53)
-AM_INIT_AUTOMAKE([1.9 tar-ustar])
-AM_MAINTAINER_MODE
-
-ASSEMBLY_VERSION=4.0.0.0
-
-AC_PATH_PROG(MONO, mono)
-AC_PATH_PROG(MCS, dmcs)
-
-if test "x$MONO" = "x" ; then
- AC_MSG_ERROR([Can't find "mono" in your PATH])
-fi
-
-if test "x$MCS" = "x" ; then
- AC_MSG_ERROR([Can't find "dmcs" in your PATH])
-fi
-AC_SUBST(PATH)
-AC_SUBST(LD_LIBRARY_PATH)
-
-MONO_REQUIRED_VERSION=2.6
-PKG_CHECK_MODULES(UNMANAGED_DEPENDENCIES_MONO,mono >= $MONO_REQUIRED_VERSION, has_mono=true, has_mono=false)
-
-if test "x$has_mono" = "xfalse"; then
- AC_MSG_ERROR([Please install mono version $MONO_REQUIRED_VERSION or later to install MonoDevelop.
-Please see http://www.mono-project.org/ to download latest mono sources or packages])
-fi
-
-if test "x$has_mono" = "xtrue"; then
- if test `uname -s` = "Darwin"; then
- AC_PATH_PROG(RUNTIME, mono, no)
- AC_PATH_PROG(CSC, dmcs, no)
- LIB_PREFIX=
- LIB_SUFFIX=.dylib
- else
- AC_PATH_PROG(RUNTIME, mono, no)
- AC_PATH_PROG(CSC, dmcs, no)
- LIB_PREFIX=.so
- LIB_SUFFIX=
- fi
-fi
-
-dnl hard dependencies
-MONOADDINS_REQUIRED_VERSION=0.3
-MONODEVELOP_REQUIRED_VERSION=4.2.3
-GTKSHARP_REQUIRED_VERSION=2.12.8
-
-PKG_CHECK_MODULES(MONO_ADDINS, mono-addins >= $MONOADDINS_REQUIRED_VERSION)
-AC_SUBST(MONO_ADDINS_LIBS)
-PKG_CHECK_MODULES(MONO_ADDINS_SETUP, mono-addins-setup >= $MONOADDINS_REQUIRED_VERSION)
-AC_SUBST(MONO_ADDINS_SETUP_LIBS)
-PKG_CHECK_MODULES(MONO_ADDINS_GUI, mono-addins-gui >= $MONOADDINS_REQUIRED_VERSION)
-AC_SUBST(MONO_ADDINS_GUI_LIBS)
-PKG_CHECK_MODULES(GLIB_SHARP, glib-sharp-2.0 >= $GTKSHARP_REQUIRED_VERSION)
-AC_SUBST(GLIB_SHARP_LIBS)
-PKG_CHECK_MODULES(GTK_SHARP, gtk-sharp-2.0 >= $GTKSHARP_REQUIRED_VERSION)
-AC_SUBST(GTK_SHARP_LIBS)
-PKG_CHECK_MODULES(MONODEVELOP, monodevelop >= $MONODEVELOP_REQUIRED_VERSION)
-AC_SUBST(MONODEVELOP_LIBS)
-PKG_CHECK_MODULES(MONODEVELOP_CORE_ADDINS, monodevelop-core-addins >= $MONODEVELOP_REQUIRED_VERSION)
-AC_SUBST(MONODEVELOP_CORE_ADDINS_LIBS)
-
-gtksharp_prefix="`$PKG_CONFIG --variable=prefix gtk-sharp-2.0`"
-AC_SUBST(gtksharp_prefix)
-
-
-CSC_FLAGS="-debug -codepage:utf8"
-
-AC_SUBST(LIB_SUFFIX)
-AC_SUBST(LIB_PREFIX)
-AC_SUBST(ASSEMBLY_VERSION)
-AC_SUBST(CSC_FLAGS)
-
-MD_DIR='$(prefix)/lib/monodevelop'
-MD_ASSEMBLY_DIR="$MD_DIR/bin"
-MD_ADDIN_DIR="$MD_DIR/AddIns"
-
-AC_SUBST(MD_ASSEMBLY_DIR)
-AC_SUBST(MD_ADDIN_DIR)
-AC_SUBST(MD_DIR)
-
-AC_OUTPUT([
-Makefile
-monodevelop-profiling.pc
-MonoDevelop.Profiling/Makefile
-MonoDevelop.Profiling.HeapBuddy/Makefile
-MonoDevelop.Profiling.HeapShot/Makefile
-po/Makefile
-])
-
-echo ""
-echo "Configuration summary"
-echo ""
-echo " * Installation prefix = $prefix"
-echo " * C# compiler = $CSC"
-echo ""
diff --git a/extras/MonoDevelop.Profiling/monodevelop-profiling.pc.in b/extras/MonoDevelop.Profiling/monodevelop-profiling.pc.in
deleted file mode 100644
index 9da04e96cd..0000000000
--- a/extras/MonoDevelop.Profiling/monodevelop-profiling.pc.in
+++ /dev/null
@@ -1,8 +0,0 @@
-Name: monodevelop-profiling
-Description: MonoDevelop.Profiling Add-in
-Version: 0.2
-
-libdir=@prefix@/lib/monodevelop
-
-Requires:
-Libs: -r:${libdir}/AddIns/MonoDevelop.Profiling/MonoDevelop.Profiling.dll -r:${libdir}/AddIns/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapShot.dll -r:${libdir}/AddIns/MonoDevelop.Profiling/MonoDevelop.Profiling.HeapBuddy.dll
diff --git a/extras/MonoDevelop.Profiling/po/Makefile.am b/extras/MonoDevelop.Profiling/po/Makefile.am
deleted file mode 100644
index e69de29bb2..0000000000
--- a/extras/MonoDevelop.Profiling/po/Makefile.am
+++ /dev/null
diff --git a/extras/NemerleBinding/ChangeLog b/extras/NemerleBinding/ChangeLog
deleted file mode 100644
index 74004df69e..0000000000
--- a/extras/NemerleBinding/ChangeLog
+++ /dev/null
@@ -1,303 +0,0 @@
-2008-01-25 Lluis Sanchez Gual <lluis@novell.com>
-
- * NemerleBinding.addin.xml: Update MD version.
-
-2008-01-15 Michael Hutchinson <mhutchinson@novell.com>
-
- * NemerleGtkSharpWindow.xft.xml, NemerleGtkSharpProject.xpt.xml,
- EmptyNemerleFile.xft.xml, NemerleEmptyProject.xpt.xml,
- NemerleGnomeSharpProject.xpt.xml: Make template categories translatable.
-
-2007-12-12 Lluis Sanchez Gual <lluis@novell.com>
-
- * NemerleBinding.addin.xml: Bump add-in versions.
-
-2007-10-29 Lluis Sanchez Gual <lluis@novell.com>
-
- * NemerleBinding.addin.xml: Bump MD version.
-
-2007-10-29 Lluis Sanchez Gual <lluis@novell.com>
-
- * NemerleBinding.addin.xml: Track changes in the Icon extension node.
-
-2007-10-23 Lluis Sanchez Gual <lluis@novell.com>
-
- * NemerleBinding.mdp: Project file names updated by change in MD path
- functions.
-
-2007-09-21 Lluis Sanchez Gual <lluis@novell.com>
-
- * NemerleBinding.addin.xml: Bump MD version.
-
-2007-08-31 Mike Krüger <mkrueger@novell.com>
-
- * NemerleAmbience.cs, Gui/CodeGenerationPanel.cs,
- FormattingStrategy/NemerleFormattingStrategy.cs: Changes due to new
- property infrastructure.
-
-2007-08-09 Lluis Sanchez Gual <lluis@novell.com>
-
- * NemerleBinding.addin.xml, NemerleBinding.mdp, Makefile.am: Reorganized the
- extension point hierarchy. Embedded all add-in manifests as resources.
-
-2007-07-27 Jeffrey Stedfast <fejj@novell.com>
-
- * FormattingStrategy/NemerleFormattingStrategy.cs: This code was
- pretty broken (as had been the original CSharpBinding code it was
- copied verbatim from). Also don't think it would have compiled
- because the FormatLine method signature did not match what it was
- supposed to be overriding. Make it use the default formatter for
- now.
-
-2007-05-04 Lluis Sanchez Gual <lluis@novell.com>
-
- * Gui/CodeGenerationPanel.cs, NemerleBinding.addin.xml: Migration to
- Mono.Addins.
-
-2007-04-26 Lluis Sanchez Gual <lluis@novell.com>
-
- * NemerleBinding.mdp: Don't copy referenced assemblies.
-
-2007-02-16 Lluis Sanchez Gual <lluis@novell.com>
-
- * NemerleBinding.addin.xml: Change add-in versions to 0.13.
- * NemerleBinding.mdp: Flush.
-
-2006-12-17 Lluis Sanchez Gual <lluis@novell.com>
-
- * NemerleBindingCompilerServices.cs: Removed unused var.
-
-2006-12-14 Lluis Sanchez Gual <lluis@novell.com>
-
- * Parser/Parser.cs, Parser/SharpDevelopTree/Indexer.cs,
- Parser/SharpDevelopTree/Method.cs,
- Parser/SharpDevelopTree/Parameter.cs,
- Parser/SharpDevelopTree/Event.cs,
- Parser/SharpDevelopTree/ReturnType.cs,
- Parser/SharpDevelopTree/Field.cs,
- Parser/SharpDevelopTree/Property.cs,
- Parser/SharpDevelopTree/Constructor.cs,
- Parser/SharpDevelopTree/Class.cs, Parser/SharpDevelopTree/Local.cs:
- Renamed Abstract* classes to Default*. Removed some unnecessary
- Default* subclasses.
- * Parser/SharpDevelopTree/CompilationUnit.cs,
- Parser/SharpDevelopTree/AttributeSection.cs, NemerleBinding.mdp,
- Makefile.am: Removed some unnecessary Default* subclasses.
-
-2006-09-19 Jacob Ilsø Christensen <jacobilsoe@gmail.com>
-
- * NemerleBinding.mdp: Updated.
- * .: Added svn:ignore for NemerleBinding.pidb.
-
-2006-09-12 Jacob Ilsø Christensen <jacobilsoe@gmail.com>
-
- * NemerleAmbience.cs: Track changes in Ambience.
-
-2006-08-07 Lluis Sanchez Gual <lluis@novell.com>
-
- * NemerleAmbience.cs: Track API changes in Ambience.
-
-2006-07-23 Matej Urbas <matej.urbas@gmail.com>
-
- * Parser/SharpDevelopTree/Class.cs: A change in GenericParameter allowed to
- merely copy an attribute (when converting from Nemerle's parsed type-info
- to MonoDevelop's completion-info).
-
-2006-07-10 Alejandro Serrano <trupill@yahoo.es>
-
- * Parser/SharpDevelopTree/Class.cs:
- * Parser/SharpDevelopTree/ReturnType.cs:
- * Parser/SharpDevelopTree/Method.cs: Updated to show generic parameters or arguments.
- * Parser/SharpDevelopTree/Local.cs: First approach to show local
- variables on Completion Window.
- * Makefile.am: Add Parser/SharpDevelopTree/Local.cs to compilation.
-
-2006-07-05 Matej Urbas <matej.urbas@gmail.com>
-
- * Parser/SharpDevelopTree/Class.cs: Updated to use ReturnType as BaseTypes.
-
-2006-07-03 Lluis Sanchez Gual <lluis@novell.com>
-
- * NemerleLanguageBinding.cs:
- * NemerleBindingCompilerServices.cs: Track changes in ProjectReference.
- Removed obsolete GenerateMakefile method.
-
- * NemerleBinding.addin.xml: Updated versions.
-
-2006-06-15 Lluis Sanchez Gual <lluis@novell.com>
-
- * NemerleBinding.addin.xml: Use DataType instead of class to
- declare serializable types.
-
-2006-05-26 Alejandro Serrano <trupill@yahoo.es>
-
- * Total reestructuration of the Nemerle add-in to use the new Nemerle Completion Engine
-
-2006-05-04 Lluis Sanchez Gual <lluis@novell.com>
-
- * NemerleBinding.addin.xml: Updated versions.
- * NemerleBinding.mdp: Updated.
-
-2006-04-21 Lluis Sanchez Gual <lluis@novell.com>
-
- * NemerleLanguageBinding.cs: Implement GetSupportedClrVersions.
-
-2006-04-07 David Makovský (Yakeen) <yakeen@sannyas-on.net>
-
- * NemerleBinding.addin.xml: renamed attribute in FileFilter Extension
-
-2006-03-30 Lluis Sanchez Gual <lluis@novell.com>
-
- * Makefile.am:
- * NemerleBinding.addin.xml: Updated references.
-
-2006-03-24 Lluis Sanchez Gual <lluis@novell.com>
-
- * NemerleBinding.mdp: Updated.
- * Makefile.am: Use an unified format. Patch by Matze Braun.
- * NemerleBinding.addin.xml: Updated add-in versions.
-
-2006-03-12 David Makovský (Yakeen) <yakeen@sannyas-on.net>
-
- * Nemerle.glade: Marking some strings not to be translated. Not include balast in pot file.
-
-2005-12-13 Lluis Sanchez Gual <lluis@novell.com>
-
- * NemerleLanguageBinding.cs: Implemented the new methods in
- IDotNetLanguageBinding.
-
-2005-10-11 Lluis Sanchez Gual <lluis@novell.com>
-
- * NemerleBinding.addin.xml: Fixed addin header information.
- Use "id" attribuet instead of "name" to identify addins.
-
-2005-10-06 Lluis Sanchez Gual <lluis@novell.com>
-
- * NemerleBinding.addin.xml:
- * NemerleLanguageBinding.cs: Register serializable types in the addin
- configuration file.
-
-2005-10-04 Lluis Sanchez Gual <lluis@novell.com>
-
- * NemerleBinding.addin.xml: Added addin dependencies.
-
-2005-08-12 Lluis Sanchez Gual <lluis@novell.com>
-
- * NemerleGnomeSharpProject.xpt.xml:
- * NemerleGtkSharpProject.xpt.xml:
- * NemerleEmptyProject.xpt.xml:
- * EmptyNemerleFile.xft.xml:
- * NemerleGtkSharpWindow.xft.xml:
- * NemerleBinding.addin.xml: Properly reference resource icons and
- templates.
- * Makefile.am: Embed icon and templates as resources.
-
-2005-07-11 Lluis Sanchez Gual <lluis@novell.com>
-
- * Project/NemerleParameters.cs: Implement ICloneable.
- * NemerleLanguageBinding.cs: CreateCompilationParameters now returns an
- ICloneable.
-
-2005-04-17 John Luke <john.luke@gmail.com>
-
- * Makefile.am: fix distcheck
-
-2005-01-27 John Luke <john.luke@gmail.com>
-
- * Nemerle.glade:
- * Gui/CodeGenerationPanel.cs:
- * NemerleBindingCompilerServices.cs: fix some warnings,
- use ComboBox instead of OptionMenu
-
-2005-01-24 Lluis Sanchez Gual <lluis@novell.com>
-
- * NemerleBindingCompilerServices.cs:
- * NemerleLanguageBinding.cs: Use the new progress monitor API.
-
-2005-01-11 Lluis Sanchez Gual <lluis@novell.com>
-
- * NemerleBinding.addin.xml:
- * Gui/CodeGenerationPanel.cs:
- * NemerleLanguageBinding.cs:
- * NemerleBindingCompilerServices.cs: Follow architecture changes.
-
- * Project/NemerleParameters.cs: Moved some common parameters to
- DotNetProjectConfiguration.
-
- * Gui/OutputPanel.cs:
- * Nemerle.glade: Removed dialog now implemented in Monodevelop.Base.
-
- * Project/NemerleProject.cs:
- * NemerleBindingExecutionServices.cs.in: Removed.
- * Makefile.am: Updated.
-
-2004-12-13 Lluis Sanchez Gual <lluis@novell.com>
-
- * NemerleBindingCompilerServices.cs: StatusBarService.ProgressMonitor is
- not a StatusBar widget any more.
-
-2004-12-07 Alexandre Gomes <alexmipego@hotmail.com>
-
- * NemerleLanguageBinding.cs: Added CommentTag to be used by (Un)CommentCode
-
-2004-07-06 Todd Berman <tberman@off.net>
-
- * NemerleBindingExecutionServices.cs: removed.
- * NemerleBindingExecutionServices.cs.in: Added.
- * Makefile.am: adjusted.
- This patch is from Marcin Krzyzanowski <krzak@pld-linux.org> and it
- fixes mint vs mono issues at runtime.
-
-2004-06-26 Pawel Rozanski <tokugawa@afn.no-ip.org>
-
- * NemerleBindingCompilerServices.cs: add GenerateMakefile method.
- * NemerleLanguageBinding.cs: runs GenerateMakefile
-
-2004-06-23 Pawel Rozanski <tokugawa@afn.no-ip.org>
-
- * NemerleBindingCompilerServices.cs: one line fix for ProcessStartInfo.
-
-2004-06-17 John Luke <jluke@cfl.rr.com>
-
- * Gui/OutputPanel.cs: use MonoDevelop.Gui.Widgets.FileSelector
- instead of Gtk.FileSelection
-
-2004-05-25 Todd Berman <tberman@sevenl.net>
-
- * NemerleLanguageBinding.cs: signature change for Generate Makefile.
-
-2004-05-20 Pawel Rozanski <tokugawa@afn.no-ip.org>
-
- * NemerleBindingCompilerServices.cs: updated ncc output parser.
-
-2004-05-04 Pawel Rozanski <tokugawa@afn.no-ip.org>
-
- * NemerleBindingExecutionServices.cs: use xterm to run project
-
-2004-04-28 Todd Berman <tberman@sevenl.net>
-
- * NemerleLanguageBinding.cs: stubbing GenerateMakefile
-
-2004-04-28 Pawel Rozanski <tokugawa@afn.no-ip.org>
-
- * Gui/OutputPanel.cs:
- * Gui/CodeGenerationPanel.cs:
- * NemerleBindingCompilerServices.cs:
- * Project/NemerleParameters.cs:
- * Project/NemerleProject.cs:
- * NemerleBindingExecutionServices.cs:
- NemerleParameters uses more from inherited AbstractProjectConfiguration
- class
-
-2004-04-16 Pawel Rozanski <tokugawa@afn.no-ip.org>
-
- * NemerleBindingCompilerServices.cs: without temp files now,
- Process.StandardOutput based interface
-
-2004-04-14 Pawel Rozanski <tokugawa@afn.no-ip.org>
-
- * NemerleBindingCompilerServices.cs: uses the StatusBarService
-
-2004-04-13 Pawel Rozanski <tokugawa@afn.no-ip.org>
-
- stripped DOS '\r' from newlines
diff --git a/extras/NemerleBinding/EmptyNemerleFile.xft.xml b/extras/NemerleBinding/EmptyNemerleFile.xft.xml
deleted file mode 100644
index ef7622a3d5..0000000000
--- a/extras/NemerleBinding/EmptyNemerleFile.xft.xml
+++ /dev/null
@@ -1,23 +0,0 @@
-<?xml version="1.0"?>
-<Template Originator = "Pawel Rozanski"
- Language = "Nemerle"
- Created = "04/04/2004"
- LastModified = "05/04/2004">
-
- <TemplateConfiguration>
- <_Name>Empty file</_Name>
- <Icon>res:Nemerle.File.EmptyFile</Icon>
- <_Category>Nemerle</_Category>
- <LanguageName>Nemerle</LanguageName>
- <_Description>Creates an empty Nemerle file</_Description>
- </TemplateConfiguration>
-
- <TemplateFiles>
- <File DefaultExtension=".n" DefaultName="EmptyNemerlefile">
- <![CDATA[// created on ${Date} at ${Time}]]>
- </File>
- </TemplateFiles>
-
- <FileOptions/>
-
-</Template>
diff --git a/extras/NemerleBinding/FormattingStrategy/NemerleFormattingStrategy.cs b/extras/NemerleBinding/FormattingStrategy/NemerleFormattingStrategy.cs
deleted file mode 100644
index c3775d9360..0000000000
--- a/extras/NemerleBinding/FormattingStrategy/NemerleFormattingStrategy.cs
+++ /dev/null
@@ -1,41 +0,0 @@
-// NemerleFormattingStrategy.cs
-//
-// This file was derived from a file from #Develop.
-//
-// Copyright (C) 2001-2007 Mike Krüger <mkrueger@novell.com>
-//
-// This program is free software; you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation; either version 2 of the License, or
-// (at your option) any later version.
-//
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with this program; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-
-using System;
-using System.Collections;
-using System.Diagnostics;
-using System.Drawing;
-using System.Text;
-
-using MonoDevelop.SourceEditor;
-using MonoDevelop.SourceEditor.Document;
-using MonoDevelop.SourceEditor.FormattingStrategy;
-using MonoDevelop.Core;
-using MonoDevelop.Core;
-
-namespace NemerleBinding.FormattingStrategy {
- /// <summary>
- /// This class handles the auto and smart indenting in the textbuffer while
- /// you type.
- /// </summary>
- public class NemerleFormattingStrategy : DefaultFormattingStrategy {
- // Simply uses the default formatting scheme for now
- }
-}
diff --git a/extras/NemerleBinding/Gui/CodeGenerationPanel.cs b/extras/NemerleBinding/Gui/CodeGenerationPanel.cs
deleted file mode 100644
index 6f7cd25321..0000000000
--- a/extras/NemerleBinding/Gui/CodeGenerationPanel.cs
+++ /dev/null
@@ -1,71 +0,0 @@
-using System;
-using System.IO;
-using System.Drawing;
-
-using MonoDevelop.Projects;
-using MonoDevelop.Core.Gui.Dialogs;
-using MonoDevelop.Core;
-using MonoDevelop.Core;
-using Mono.Addins;
-
-using Gtk;
-using MonoDevelop.Components;
-
-namespace NemerleBinding
-{
- public class CodeGenerationPanel : AbstractOptionPanel
- {
- class CodeGenerationPanelWidget : GladeWidgetExtract
- {
- [Glade.Widget] ComboBox target;
- [Glade.Widget] CheckButton nostdmacros;
- [Glade.Widget] CheckButton nostdlib;
- [Glade.Widget] CheckButton ignorewarnings;
- [Glade.Widget] CheckButton ot;
- [Glade.Widget] CheckButton greedy;
- [Glade.Widget] CheckButton pedantic;
-
- NemerleParameters compilerParameters = null;
- DotNetProjectConfiguration configuration;
-
- public CodeGenerationPanelWidget(Properties CustomizationObject) : base ("Nemerle.glade", "CodeGenerationPanel")
- {
- configuration = (DotNetProjectConfiguration) ((Properties)CustomizationObject).Get("Config");
- compilerParameters = (NemerleParameters) configuration.CompilationParameters;
-
- target.Active = (int) configuration.CompileTarget;
-
- nostdmacros.Active = compilerParameters.Nostdmacros;
- nostdlib.Active = compilerParameters.Nostdlib;
- ignorewarnings.Active = configuration.RunWithWarnings;
- ot.Active = compilerParameters.Ot;
- greedy.Active = compilerParameters.Greedy;
- pedantic.Active = compilerParameters.Pedantic;
- }
-
- public bool Store ()
- {
- configuration.CompileTarget = (CompileTarget) target.Active;
- compilerParameters.Nostdmacros = nostdmacros.Active;
- compilerParameters.Nostdlib = nostdlib.Active;
- configuration.RunWithWarnings = ignorewarnings.Active;
- compilerParameters.Ot = ot.Active;
- compilerParameters.Greedy = greedy.Active;
- compilerParameters.Pedantic = pedantic.Active;
- return true;
- }
- }
-
- CodeGenerationPanelWidget widget;
-
- public override void LoadPanelContents()
- {
- Add (widget = new CodeGenerationPanelWidget ((Properties) CustomizationObject));
- }
-
- public override bool StorePanelContents()
- {
- return widget.Store ();
- }
- }
-}
diff --git a/extras/NemerleBinding/Makefile.am b/extras/NemerleBinding/Makefile.am
deleted file mode 100644
index 1e93a2bfca..0000000000
--- a/extras/NemerleBinding/Makefile.am
+++ /dev/null
@@ -1,73 +0,0 @@
-
-ADDIN_BUILD = $(top_builddir)/build/AddIns/BackendBindings
-ASSEMBLY = $(ADDIN_BUILD)/NemerleBinding.dll
-
-REFS = -r:System \
- -r:System.Xml \
- -r:System.Drawing \
- -r:$(top_builddir)/build/bin/MonoDevelop.Core.dll \
- -r:$(top_builddir)/build/bin/MonoDevelop.Core.Gui.dll \
- -r:$(top_builddir)/build/bin/MonoDevelop.Projects.dll \
- -r:$(top_builddir)/build/bin/MonoDevelop.Ide.dll \
- -r:$(top_builddir)/build/bin/MonoDevelop.Components.dll \
- $(GTK_SHARP_LIBS) \
- $(GLADE_SHARP_LIBS) \
- $(NEMERLE_LIBS)
-
-FILES = \
-Gui/CodeGenerationPanel.cs \
-Project/NemerleParameters.cs \
-NemerleBindingCompilerServices.cs \
-NemerleLanguageBinding.cs \
-NemerleAmbience.cs \
-Parser/SharpDevelopTree/Event.cs \
-Parser/SharpDevelopTree/Indexer.cs \
-Parser/SharpDevelopTree/Constructor.cs \
-Parser/SharpDevelopTree/Method.cs \
-Parser/SharpDevelopTree/Class.cs \
-Parser/SharpDevelopTree/Parameter.cs \
-Parser/SharpDevelopTree/Property.cs \
-Parser/SharpDevelopTree/Field.cs \
-Parser/SharpDevelopTree/Local.cs \
-Parser/SharpDevelopTree/ReturnType.cs \
-Parser/SharpDevelopTree/Modifier.cs \
-Parser/Parser.cs \
-Parser/ExpressionFinder.cs \
-Parser/CodeGeneration.cs
-
-RES = \
-NemerleBinding.addin.xml \
-Nemerle.glade \
-NemerleEmptyProject.xpt.xml \
-NemerleGnomeSharpProject.xpt.xml \
-NemerleGtkSharpProject.xpt.xml \
-NemerleGtkSharpWindow.xft.xml \
-EmptyNemerleFile.xft.xml \
-icons/Nemerle.File.EmptyFile \
-icons/Nemerle.File.Form \
-icons/Nemerle.FileIcon \
-icons/Nemerle.Project.EmptyProject \
-icons/Nemerle.Project.Form \
-icons/Nemerle.ProjectIcon
-
-if ENABLE_NEMERLE
-all: $(ASSEMBLY)
-else
-all:
-endif
-
-$(ASSEMBLY): $(build_sources) $(build_resources)
- mkdir -p $(ADDIN_BUILD)
- $(CSC) $(CSC_FLAGS) $(REFS) $(build_resources:%=/resource:%) \
- $(build_sources) -out:$@ -target:library
-
-if ENABLE_NEMERLE
-assemblydir = $(MD_ADDIN_DIR)/BackendBindings/
-assembly_DATA = $(ASSEMBLY) $(ASSEMBLY).mdb
-
-endif
-
-CLEANFILES = $(ASSEMBLY) $(ASSEMBLY).mdb
-EXTRA_DIST = $(FILES) $(RES)
-include $(top_srcdir)/Makefile.include
-
diff --git a/extras/NemerleBinding/Nemerle.glade b/extras/NemerleBinding/Nemerle.glade
deleted file mode 100644
index 47b8e23073..0000000000
--- a/extras/NemerleBinding/Nemerle.glade
+++ /dev/null
@@ -1,359 +0,0 @@
-<?xml version="1.0" standalone="no"?> <!--*- mode: xml -*-->
-<!DOCTYPE glade-interface SYSTEM "http://glade.gnome.org/glade-2.0.dtd">
-
-<glade-interface>
-
-<widget class="GtkWindow" id="CodeGenerationPanel">
- <property name="visible">True</property>
- <property name="title">CodeGenerationPanel</property>
- <property name="type">GTK_WINDOW_TOPLEVEL</property>
- <property name="window_position">GTK_WIN_POS_NONE</property>
- <property name="modal">False</property>
- <property name="resizable">True</property>
- <property name="destroy_with_parent">False</property>
- <property name="decorated">True</property>
- <property name="skip_taskbar_hint">False</property>
- <property name="skip_pager_hint">False</property>
- <property name="type_hint">GDK_WINDOW_TYPE_HINT_NORMAL</property>
- <property name="gravity">GDK_GRAVITY_NORTH_WEST</property>
- <property name="focus_on_map">True</property>
- <property name="urgency_hint">False</property>
-
- <child>
- <widget class="GtkVBox" id="vbox62">
- <property name="visible">True</property>
- <property name="homogeneous">False</property>
- <property name="spacing">12</property>
-
- <child>
- <widget class="GtkLabel" id="label82">
- <property name="visible">True</property>
- <property name="label" translatable="yes">&lt;b&gt;Code Generation&lt;/b&gt;</property>
- <property name="use_underline">False</property>
- <property name="use_markup">True</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- <property name="width_chars">-1</property>
- <property name="single_line_mode">False</property>
- <property name="angle">0</property>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">False</property>
- <property name="fill">False</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkHBox" id="hbox56">
- <property name="visible">True</property>
- <property name="homogeneous">False</property>
- <property name="spacing">0</property>
-
- <child>
- <widget class="GtkLabel" id="label81">
- <property name="visible">True</property>
- <property name="label" translatable="yes"> </property>
- <property name="use_underline">False</property>
- <property name="use_markup">False</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0.5</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- <property name="width_chars">-1</property>
- <property name="single_line_mode">False</property>
- <property name="angle">0</property>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">False</property>
- <property name="fill">False</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkVBox" id="vbox65">
- <property name="visible">True</property>
- <property name="homogeneous">False</property>
- <property name="spacing">6</property>
-
- <child>
- <widget class="GtkTable" id="table7">
- <property name="visible">True</property>
- <property name="n_rows">1</property>
- <property name="n_columns">2</property>
- <property name="homogeneous">False</property>
- <property name="row_spacing">6</property>
- <property name="column_spacing">6</property>
-
- <child>
- <widget class="GtkLabel" id="label86">
- <property name="visible">True</property>
- <property name="label" translatable="yes">Compile _Target</property>
- <property name="use_underline">True</property>
- <property name="use_markup">False</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0.5</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- <property name="mnemonic_widget">target</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- <property name="width_chars">-1</property>
- <property name="single_line_mode">False</property>
- <property name="angle">0</property>
- </widget>
- <packing>
- <property name="left_attach">0</property>
- <property name="right_attach">1</property>
- <property name="top_attach">0</property>
- <property name="bottom_attach">1</property>
- <property name="x_options">fill</property>
- <property name="y_options"></property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkComboBox" id="target">
- <property name="visible">True</property>
- <property name="items" translatable="yes">Executable
-Library</property>
- <property name="add_tearoffs">False</property>
- <property name="focus_on_click">True</property>
- </widget>
- <packing>
- <property name="left_attach">1</property>
- <property name="right_attach">2</property>
- <property name="top_attach">0</property>
- <property name="bottom_attach">1</property>
- <property name="y_options">fill</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">False</property>
- <property name="fill">True</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkCheckButton" id="nostdmacros">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label" translatable="yes">Do not load standard macros</property>
- <property name="use_underline">True</property>
- <property name="relief">GTK_RELIEF_NORMAL</property>
- <property name="focus_on_click">True</property>
- <property name="active">False</property>
- <property name="inconsistent">False</property>
- <property name="draw_indicator">True</property>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">False</property>
- <property name="fill">False</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkCheckButton" id="nostdlib">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label" translatable="yes">Do not load standard library</property>
- <property name="use_underline">True</property>
- <property name="relief">GTK_RELIEF_NORMAL</property>
- <property name="focus_on_click">True</property>
- <property name="active">False</property>
- <property name="inconsistent">False</property>
- <property name="draw_indicator">True</property>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">False</property>
- <property name="fill">False</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkCheckButton" id="ignorewarnings">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label" translatable="yes">Ignore warnings</property>
- <property name="use_underline">True</property>
- <property name="relief">GTK_RELIEF_NORMAL</property>
- <property name="focus_on_click">True</property>
- <property name="active">False</property>
- <property name="inconsistent">False</property>
- <property name="draw_indicator">True</property>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">False</property>
- <property name="fill">False</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">True</property>
- <property name="fill">True</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">False</property>
- <property name="fill">True</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="label101">
- <property name="visible">True</property>
- <property name="label" translatable="yes">&lt;b&gt;Optimizations&lt;/b&gt;</property>
- <property name="use_underline">False</property>
- <property name="use_markup">True</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- <property name="width_chars">-1</property>
- <property name="single_line_mode">False</property>
- <property name="angle">0</property>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">False</property>
- <property name="fill">False</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkHBox" id="hbox59">
- <property name="visible">True</property>
- <property name="homogeneous">False</property>
- <property name="spacing">0</property>
-
- <child>
- <widget class="GtkLabel" id="label102">
- <property name="visible">True</property>
- <property name="label" translatable="yes"> </property>
- <property name="use_underline">False</property>
- <property name="use_markup">False</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0.5</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- <property name="width_chars">-1</property>
- <property name="single_line_mode">False</property>
- <property name="angle">0</property>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">False</property>
- <property name="fill">False</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkVBox" id="vbox70">
- <property name="visible">True</property>
- <property name="homogeneous">False</property>
- <property name="spacing">6</property>
-
- <child>
- <widget class="GtkCheckButton" id="ot">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label" translatable="yes">General tail call optimization</property>
- <property name="use_underline">True</property>
- <property name="relief">GTK_RELIEF_NORMAL</property>
- <property name="focus_on_click">True</property>
- <property name="active">False</property>
- <property name="inconsistent">False</property>
- <property name="draw_indicator">True</property>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">False</property>
- <property name="fill">False</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkCheckButton" id="greedy">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label" translatable="yes">Recursive loading references of assemblies</property>
- <property name="use_underline">True</property>
- <property name="relief">GTK_RELIEF_NORMAL</property>
- <property name="focus_on_click">True</property>
- <property name="active">False</property>
- <property name="inconsistent">False</property>
- <property name="draw_indicator">True</property>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">False</property>
- <property name="fill">False</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkCheckButton" id="pedantic">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label" translatable="yes">Enable pedantic checks for illegal characters</property>
- <property name="use_underline">True</property>
- <property name="relief">GTK_RELIEF_NORMAL</property>
- <property name="focus_on_click">True</property>
- <property name="active">False</property>
- <property name="inconsistent">False</property>
- <property name="draw_indicator">True</property>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">False</property>
- <property name="fill">False</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">True</property>
- <property name="fill">True</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">False</property>
- <property name="fill">True</property>
- </packing>
- </child>
- </widget>
- </child>
-</widget>
-
-</glade-interface>
diff --git a/extras/NemerleBinding/NemerleAmbience.cs b/extras/NemerleBinding/NemerleAmbience.cs
deleted file mode 100644
index f4a95380a2..0000000000
--- a/extras/NemerleBinding/NemerleAmbience.cs
+++ /dev/null
@@ -1,577 +0,0 @@
-// NemerleAmbience.cs
-//
-// This file was derived from a file from #Develop.
-//
-// Copyright (C) 2001-2007 Mike Krüger <mkrueger@novell.com>
-//
-// This program is free software; you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation; either version 2 of the License, or
-// (at your option) any later version.
-//
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with this program; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-
-using System;
-using System.Collections;
-using System.Text;
-
-using MonoDevelop.Projects.Parser;
-using MonoDevelop.Core;
-using MonoDevelop.Core;
-using MonoDevelop.Projects.Ambience;
-
-namespace NemerleBinding
-{
- public class NemerleAmbience : Ambience
- {
- static string[,] typeConversionList = new string[,] {
- {"System.Void", "void"},
- {"System.Object", "object"},
- {"System.Boolean", "bool"},
- {"System.Byte", "byte"},
- {"System.SByte", "sbyte"},
- {"System.Char", "char"},
- {"System.Enum", "enum"},
- {"System.Int16", "short"},
- {"System.Int32", "int"},
- {"System.Int64", "long"},
- {"System.UInt16", "ushort"},
- {"System.UInt32", "uint"},
- {"System.UInt64", "ulong"},
- {"System.Single", "float"},
- {"System.Double", "double"},
- {"System.Decimal", "decimal"},
- {"System.String", "string"}
- };
-
- static Hashtable typeConversionTable = new Hashtable();
-
- public static Hashtable TypeConversionTable {
- get {
- return typeConversionTable;
- }
- }
-
- static NemerleAmbience()
- {
- for (int i = 0; i < typeConversionList.GetLength(0); ++i) {
- typeConversionTable[typeConversionList[i, 0]] = typeConversionList[i, 1];
- }
- }
-
- bool ModifierIsSet(ModifierEnum modifier, ModifierEnum query)
- {
- return (modifier & query) == query;
- }
-
- public override string Convert(ModifierEnum modifier, ConversionFlags conversionFlags)
- {
- if (ShowAccessibility(conversionFlags)) {
- if (ModifierIsSet(modifier, ModifierEnum.Public)) {
- return "public ";
- } else if (ModifierIsSet(modifier, ModifierEnum.Private)) {
- return "private ";
- } else if (ModifierIsSet(modifier, ModifierEnum.ProtectedAndInternal)) {
- return "protected internal ";
- } else if (ModifierIsSet(modifier, ModifierEnum.ProtectedOrInternal)) {
- return "internal protected ";
- } else if (ModifierIsSet(modifier, ModifierEnum.Internal)) {
- return "internal ";
- } else if (ModifierIsSet(modifier, ModifierEnum.Protected)) {
- return "protected ";
- }
- }
-
- return string.Empty;
- }
-
- string GetModifier(IDecoration decoration, ConversionFlags conversionFlags)
- {
- string mod;
-
- if (decoration.IsStatic) mod = "static ";
- else if (decoration.IsFinal) mod = "final ";
- else if (decoration.IsVirtual) mod = "virtual ";
- else if (decoration.IsOverride) mod = "override ";
- else if (decoration.IsNew) mod = "new ";
- else return "";
-
- if (IncludeHTMLMarkup(conversionFlags) | IncludePangoMarkup(conversionFlags))
- return "<i>" + mod + "</i>";
- else
- return mod;
- }
-
-
- public override string Convert(IClass c, ConversionFlags conversionFlags)
- {
- StringBuilder builder = new StringBuilder();
-
- builder.Append(Convert(c.Modifiers, conversionFlags));
-
- if (ShowClassModifiers(conversionFlags)) {
- if (c.IsSealed) {
- switch (c.ClassType) {
- case ClassType.Delegate:
- case ClassType.Struct:
- case ClassType.Enum:
- break;
-
- default:
- AppendPangoHtmlTag (builder, "sealed ", "i", conversionFlags);
- break;
- }
- } else if (c.IsAbstract && c.ClassType != ClassType.Interface) {
- AppendPangoHtmlTag (builder, "abstract ", "i", conversionFlags);
- }
- }
-
- if (ShowClassModifiers(conversionFlags)) {
- switch (c.ClassType) {
- case ClassType.Delegate:
- builder.Append("delegate");
- // Only display the return type when modifiers are to be
- // shown - this fixes the vay delegates are shown in the
- // popup window
- if (c.Methods.Count > 0) {
- foreach(IMethod m in c.Methods) {
- if (m.Name != "Invoke") continue;
- builder.Append (' ');
- builder.Append (Convert(m.ReturnType));
- }
- }
- break;
- case ClassType.Class:
- builder.Append("class");
- break;
- case ClassType.Struct:
- builder.Append("struct");
- break;
- case ClassType.Interface:
- builder.Append("interface");
- break;
- case ClassType.Enum:
- builder.Append("enum");
- break;
- }
- builder.Append(' ');
- }
-
- if (UseFullyQualifiedMemberNames(conversionFlags)) {
- AppendPangoHtmlTag (builder, c.FullyQualifiedName, "b", conversionFlags);
- } else {
- AppendPangoHtmlTag (builder, c.Name, "b", conversionFlags);
- }
-
- // Display generic parameters only if told so
- if (ShowGenericParameters(conversionFlags) && c.GenericParameters != null && c.GenericParameters.Count > 0) {
- bool includeMarkup = IncludeHTMLMarkup(conversionFlags) || IncludePangoMarkup(conversionFlags);
- builder.Append ("[");
- // Since we know that there is at least one generic parameter in
- // the list, we can add it outside the loop - so, we don't have
- // to check whether we may append a comma or not
- builder.Append (c.GenericParameters[0].Name);
- // Now continue with the others, if there are any
- for (int i = 1; i < c.GenericParameters.Count; i++) {
- builder.Append (", ");
- builder.Append (c.GenericParameters[i].Name);
- }
- builder.Append ("]");
- }
-
- if (c.ClassType == ClassType.Delegate) {
-
- foreach(IMethod m in c.Methods) {
- if (m.Name != "Invoke") continue;
-
- builder.Append(" (");
- if (IncludeHTMLMarkup(conversionFlags)) builder.Append("<br>");
-
- for (int i = 0; i < m.Parameters.Count; ++i) {
- // if (IncludeHTMLMarkup(conversionFlags)) builder.Append("&nbsp;&nbsp;&nbsp;");
-
- builder.Append(Convert(m.Parameters[i], conversionFlags));
- if (i + 1 < m.Parameters.Count) builder.Append(", ");
-
- if (IncludeHTMLMarkup(conversionFlags)) builder.Append("<br>");
- }
-
- builder.Append(") : ");
-
- builder.Append(Convert(m.ReturnType, conversionFlags));
- builder.Append(' ');
- }
-
- } else if (ShowInheritanceList(conversionFlags) && c.ClassType != ClassType.Enum) {
- if (c.BaseTypes.Count > 0) {
- builder.Append (" : ");
- builder.Append (Convert(c.BaseTypes[0]));
- for (int i = 1; i < c.BaseTypes.Count; ++i) {
- builder.Append (", ");
- builder.Append (Convert(c.BaseTypes[i]));
- }
- }
- }
-
- if (IncludeBodies(conversionFlags)) {
- builder.Append("\n{");
- }
-
- return builder.ToString();
- }
-
- public override string ConvertEnd(IClass c, ConversionFlags conversionFlags)
- {
- return "}";
- }
-
- public override string Convert(IField field, ConversionFlags conversionFlags)
- {
- StringBuilder builder = new StringBuilder();
-
- builder.Append(Convert(field.Modifiers, conversionFlags));
-
- if (ShowMemberModifiers(conversionFlags)) {
- if (field.IsStatic && field.IsLiteral)
- AppendPangoHtmlTag (builder, "const ", "i", conversionFlags);
- else if (field.IsStatic)
- AppendPangoHtmlTag (builder, "static ", "i", conversionFlags);
-
- if (!field.IsReadonly) {
- AppendPangoHtmlTag (builder, "mutable ", "i", conversionFlags);
- }
- }
-
- if (UseFullyQualifiedMemberNames(conversionFlags))
- AppendPangoHtmlTag (builder, field.FullyQualifiedName, "b", conversionFlags);
- else
- AppendPangoHtmlTag (builder, field.Name, "b", conversionFlags);
-
- if (field.ReturnType != null) {
- builder.Append(" : ");
- builder.Append(Convert(field.ReturnType, conversionFlags));
- builder.Append(' ');
- }
-
- if (IncludeBodies(conversionFlags))
- builder.Append(";");
-
- return builder.ToString();
- }
-
- public override string Convert(IProperty property, ConversionFlags conversionFlags)
- {
- StringBuilder builder = new StringBuilder();
-
- builder.Append(Convert(property.Modifiers, conversionFlags));
-
- if (ShowMemberModifiers(conversionFlags)) {
- builder.Append(GetModifier(property, conversionFlags));
- }
-
- if (UseFullyQualifiedMemberNames(conversionFlags))
- AppendPangoHtmlTag (builder, property.FullyQualifiedName, "b", conversionFlags);
- else
- AppendPangoHtmlTag (builder, property.Name, "b", conversionFlags);
-
- if (property.Parameters.Count > 0) {
- builder.Append(" (");
-
- if (IncludeHTMLMarkup(conversionFlags)) builder.Append("<br>");
- builder.Append (Convert (property.Parameters[0], conversionFlags));
-
- for (int i = 0; i < property.Parameters.Count; ++i) {
- if (IncludeHTMLMarkup(conversionFlags)) builder.Append("<br>");
- builder.Append(", ");
- builder.Append(Convert(property.Parameters[i], conversionFlags));
- }
- if (IncludeHTMLMarkup(conversionFlags)) builder.Append("<br>");
-
- builder.Append(')');
- }
-
- if (property.ReturnType != null) {
- builder.Append(" : ");
- builder.Append(Convert(property.ReturnType, conversionFlags));
- builder.Append(' ');
- }
-
- builder.Append(" { ");
-
- if (property.CanGet) {
- builder.Append("get; ");
- }
- if (property.CanSet) {
- builder.Append("set; ");
- }
-
- builder.Append(" } ");
-
- return builder.ToString();
- }
-
- public override string Convert(IEvent e, ConversionFlags conversionFlags)
- {
- StringBuilder builder = new StringBuilder();
-
- builder.Append(Convert(e.Modifiers, conversionFlags));
-
- if (ShowMemberModifiers(conversionFlags)) {
- builder.Append(GetModifier(e, conversionFlags));
- }
-
- if (UseFullyQualifiedMemberNames(conversionFlags))
- AppendPangoHtmlTag (builder, e.FullyQualifiedName, "b", conversionFlags);
- else
- AppendPangoHtmlTag (builder, e.Name, "b", conversionFlags);
-
- if (e.ReturnType != null) {
- builder.Append(" : ");
- builder.Append(Convert(e.ReturnType, conversionFlags));
- builder.Append(' ');
- }
-
- if (IncludeBodies(conversionFlags)) builder.Append(";");
-
- return builder.ToString();
- }
-
- public override string Convert(IIndexer m, ConversionFlags conversionFlags)
- {
- StringBuilder builder = new StringBuilder();
- builder.Append(Convert(m.Modifiers, conversionFlags));
-
- if (ShowMemberModifiers(conversionFlags) && m.IsStatic)
- AppendPangoHtmlTag (builder, "static", "i", conversionFlags);
-
- if (UseFullyQualifiedMemberNames (conversionFlags))
- AppendPangoHtmlTag (builder, m.FullyQualifiedName, "b", conversionFlags);
- else
- AppendPangoHtmlTag (builder, m.Name, "b", conversionFlags);
-
- builder.Append(" [");
-
- if (m.Parameters.Count > 0) {
- if (IncludeHTMLMarkup(conversionFlags)) builder.Append ("<br>");
- builder.Append (Convert (m.Parameters[0], conversionFlags));
- for (int i = 1; i < m.Parameters.Count; ++i) {
- builder.Append (", ");
- if (IncludeHTMLMarkup(conversionFlags)) builder.Append("<br>");
- builder.Append(Convert(m.Parameters[i], conversionFlags));
- }
- if (IncludeHTMLMarkup(conversionFlags)) builder.Append("<br>");
- }
-
- builder.Append(']');
-
- if (m.ReturnType != null) {
- builder.Append(" : ");
- builder.Append(Convert(m.ReturnType, conversionFlags));
- builder.Append(' ');
- }
-
- if (IncludeBodies(conversionFlags)) builder.Append(";");
-
- return builder.ToString();
- }
-
- public override string Convert(IMethod m, ConversionFlags conversionFlags)
- {
- StringBuilder builder = new StringBuilder();
- builder.Append(Convert(m.Modifiers, conversionFlags));
- if (ShowMemberModifiers(conversionFlags)) {
- builder.Append(GetModifier(m, conversionFlags));
- }
-
- if (m.IsConstructor) {
- AppendPangoHtmlTag (builder, "this", "b", conversionFlags);
- } else {
- if (UseFullyQualifiedMemberNames(conversionFlags))
- AppendPangoHtmlTag (builder, m.FullyQualifiedName, "b", conversionFlags);
- else
- AppendPangoHtmlTag (builder, m.Name, "b", conversionFlags);
- }
-
- // Display generic parameters only if told so
- if (ShowGenericParameters(conversionFlags) && m.GenericParameters != null && m.GenericParameters.Count > 0) {
- bool includeMarkup = IncludeHTMLMarkup(conversionFlags) || IncludePangoMarkup(conversionFlags);
- builder.Append ("[");
- // Since we know that there is at least one generic parameter in
- // the list, we can add it outside the loop - so, we don't have
- // to check whether we may append a comma or not
- builder.Append (m.GenericParameters[0].Name);
- // Now continue with the others, if there are any
- for (int i = 1; i < m.GenericParameters.Count; i++) {
- builder.Append (", ");
- builder.Append (m.GenericParameters[i].Name);
- }
- builder.Append ("]");
- }
-
- builder.Append(" (");
-
- if (m.Parameters.Count > 0) {
- if (IncludeHTMLMarkup(conversionFlags)) builder.Append ("<br>");
- builder.Append (Convert (m.Parameters[0], conversionFlags));
- for (int i = 1; i < m.Parameters.Count; ++i) {
- builder.Append (", ");
- if (IncludeHTMLMarkup(conversionFlags)) builder.Append("<br>");
- builder.Append(Convert(m.Parameters[i], conversionFlags));
- }
- if (IncludeHTMLMarkup(conversionFlags)) builder.Append("<br>");
- }
- builder.Append(')');
-
- if (m.ReturnType != null) {
- builder.Append(" : ");
- builder.Append(Convert(m.ReturnType, conversionFlags));
- builder.Append(' ');
- }
-
- if (IncludeBodies(conversionFlags)) {
- if (m.DeclaringType != null) {
- if (m.DeclaringType.ClassType == ClassType.Interface) {
- builder.Append(";");
- } else {
- builder.Append(" {");
- }
- } else {
- builder.Append(" {");
- }
- }
- return builder.ToString();
- }
-
- public override string ConvertEnd(IMethod m, ConversionFlags conversionFlags)
- {
- return "}";
- }
-
- public override string Convert(IReturnType returnType, ConversionFlags conversionFlags)
- {
- if (returnType == null) {
- return String.Empty;
- }
- StringBuilder builder = new StringBuilder();
-
- //bool linkSet = false;
-
- //if (UseLinkArrayList(conversionFlags)) {
- //SharpAssemblyReturnType ret = returnType as SharpAssemblyReturnType;
- //if (ret != null) {
- // if (ret.UnderlyingClass != null) {
- // builder.Append("<a href='as://" + linkArrayList.Add(ret.UnderlyingClass) + "'>");
- // linkSet = true;
- // }
- //}
- //}
-
- if (typeConversionTable[returnType.FullyQualifiedName] != null) {
- builder.Append(typeConversionTable[returnType.FullyQualifiedName].ToString());
- } else {
- if (UseFullyQualifiedMemberNames(conversionFlags)) {
- builder.Append (returnType.FullyQualifiedName);
- } else {
- builder.Append (returnType.Name);
- }
- }
-
- // Display generic parameters only if told so
- if (ShowGenericParameters(conversionFlags) && returnType.GenericArguments != null && returnType.GenericArguments.Count > 0) {
- bool includeMarkup = IncludeHTMLMarkup(conversionFlags) || IncludePangoMarkup(conversionFlags);
- builder.Append ("[");
- // Since we know that there is at least one generic argument in
- // the list, we can add it outside the loop - so, we don't have
- // to check whether we may append a comma or not
- builder.Append (Convert(returnType.GenericArguments[0], conversionFlags));
- // Now continue with the others, if there are any
- for (int i = 1; i < returnType.GenericArguments.Count; i++) {
- builder.Append (", ");
- builder.Append ( Convert(returnType.GenericArguments[i], conversionFlags));
- }
- builder.Append ("]");
- }
-
-// if (linkSet) {
-// builder.Append("</a>");
-// }
-
- if (returnType.ArrayCount > 0)
- return "array[" + builder.ToString() + "]";
- else
- return builder.ToString();
- }
-
- public override string Convert(IParameter param, ConversionFlags conversionFlags)
- {
- StringBuilder builder = new StringBuilder();
-
- if (param.IsRef)
- AppendPangoHtmlTag (builder, "ref ", "i", conversionFlags);
- else if (param.IsOut)
- AppendPangoHtmlTag (builder, "out ", "i", conversionFlags);
- else if (param.IsParams)
- AppendPangoHtmlTag (builder, "params ", "i", conversionFlags);
-
- if (ShowParameterNames(conversionFlags)) {
- builder.Append(' ');
- builder.Append(param.Name);
- }
-
- builder.Append(" : ");
- builder.Append(Convert(param.ReturnType, conversionFlags));
-
- return builder.ToString();
- }
-
- public override string Convert(LocalVariable localVariable, ConversionFlags conversionFlags)
- {
- StringBuilder builder = new StringBuilder();
-
- builder.Append(localVariable.Name);
- builder.Append(" : ");
- builder.Append(Convert(localVariable.ReturnType, conversionFlags));
-
- return builder.ToString();
- }
-
- // pango has some problems with
- // <i>static </i>bool <b>Equals</b> (<i></i>object a, <i></i>object b)
- // it will make "object a" italics. so rather tan appending a markup
- // tag if there might be a modifier, we only do it if there is.
- void AppendPangoHtmlTag (StringBuilder sb, string str, string tag, ConversionFlags conversionFlags)
- {
- if (IncludeHTMLMarkup(conversionFlags) | IncludePangoMarkup(conversionFlags)) sb.Append ('<').Append (tag).Append ('>');
-
- sb.Append (str);
-
- if (IncludeHTMLMarkup(conversionFlags) | IncludePangoMarkup(conversionFlags)) sb.Append ("</").Append (tag).Append ('>');
- }
-
- public override string WrapAttribute(string attribute)
- {
- return "[" + attribute + "]";
- }
-
- public override string WrapComment(string comment)
- {
- return "// " + comment;
- }
-
- public override string GetIntrinsicTypeName(string dotNetTypeName)
- {
- if (typeConversionTable[dotNetTypeName] != null) {
- return (string)typeConversionTable[dotNetTypeName];
- }
- return dotNetTypeName;
- }
-
- }
-}
diff --git a/extras/NemerleBinding/NemerleBinding.addin.xml b/extras/NemerleBinding/NemerleBinding.addin.xml
deleted file mode 100644
index c1d5348b6b..0000000000
--- a/extras/NemerleBinding/NemerleBinding.addin.xml
+++ /dev/null
@@ -1,73 +0,0 @@
-<Addin id = "NemerleBinding"
- namespace = "MonoDevelop"
- name = "Nemerle Language Binding"
- author = "Todd Berman and Alejandro Serrano"
- copyright = "GPL"
- url = "http://www.monodevelop.com"
- description = "Nemerle Language Binding"
- category = "Language bindings"
- version = "4.2.3">
-
- <Runtime>
- <Import assembly = "NemerleBinding.dll"/>
- </Runtime>
-
- <Dependencies>
- <Addin id="Core" version="4.2.3"/>
- <Addin id="Ide" version="4.2.3"/>
- </Dependencies>
-
- <Extension path = "/MonoDevelop/ProjectModel/Ambiences">
- <Class id = "Nemerle"
- class = "NemerleBinding.NemerleAmbience" />
- </Extension>
-
- <Extension path = "/MonoDevelop/Ide/FileFilters">
- <FileFilter id = "Nemerle"
- insertbefore = "AllFiles"
- _label = "Nemerle Files"
- extensions = "*.n" />
- </Extension>
-
- <Extension path = "/MonoDevelop/Ide/FileTemplates">
- <FileTemplate id = "EmptyNemerleFile" resource = "EmptyNemerleFile.xft.xml"/>
- <FileTemplate id = "NemerleGtkSharpWindow" resource = "NemerleGtkSharpWindow.xft.xml"/>
- </Extension>
-
- <Extension path = "/MonoDevelop/Ide/ProjectTemplates">
- <ProjectTemplate id = "EmptyNemerleProject" resource = "NemerleEmptyProject.xpt.xml"/>
- <ProjectTemplate id = "NemerleGtkSharpProject" resource = "NemerleGtkSharpProject.xpt.xml"/>
- <ProjectTemplate id = "NemerleGnomeSharpProject" resource = "NemerleGnomeSharpProject.xpt.xml"/>
- </Extension>
-
- <Extension path = "/MonoDevelop/ProjectModel/SerializableClasses">
- <DataType class = "NemerleBinding.NemerleParameters" />
- </Extension>
-
- <Extension path = "/MonoDevelop/ProjectModel/Gui/ItemOptionPanels">
- <Condition id="activelanguage" value = "Nemerle">
- <DialogPanel id = "NemerleCodeGenerationPanel"
- _label = "Code Generation"
- class = "NemerleBinding.CodeGenerationPanel"/>
- <DialogPanel id = "NemerleOutputPanel"
- _label = "Output"
- class = "NemerleBinding.OutputPanel"/>
- </Condition>
- </Extension>
-
- <Extension path = "/MonoDevelop/ProjectModel/Gui/Icons">
- <Icon language = "Nemerle" icon = "res:Nemerle.ProjectIcon"/>
- <Icon extensions = ".n" icon = "res:Nemerle.FileIcon"/>
- </Extension>
-
- <Extension path = "/MonoDevelop/ProjectModel/LanguageBindings">
- <LanguageBinding id = "Nemerle"
- supportedextensions = ".n"
- class = "NemerleBinding.NemerleLanguageBinding" />
- </Extension>
-
- <Extension path = "/AddIns/DefaultTextEditor/Formatter/Nemerle">
- <Class id ="NemerleFormattingStrategy" class = "NemerleBinding.FormattingStrategy.NemerleFormattingStrategy" />
- </Extension>
-
-</Addin>
diff --git a/extras/NemerleBinding/NemerleBinding.mdp b/extras/NemerleBinding/NemerleBinding.mdp
deleted file mode 100644
index f261cbe00a..0000000000
--- a/extras/NemerleBinding/NemerleBinding.mdp
+++ /dev/null
@@ -1,68 +0,0 @@
-<Project name="NemerleBinding" fileversion="2.0" language="C#" clr-version="Net_2_0" ctype="DotNetProject">
- <Configurations active="Debug">
- <Configuration name="Debug" ctype="DotNetProjectConfiguration">
- <Output directory="../../build/AddIns/BackendBindings/" assembly="NemerleBinding" />
- <Build debugmode="True" target="Library" />
- <Execution runwithwarnings="True" consolepause="True" runtime="MsNet" clr-version="Net_2_0" />
- <CodeGeneration compiler="Csc" warninglevel="4" optimize="False" unsafecodeallowed="False" generateoverflowchecks="True" mainclass="" generatexmldocumentation="False" ctype="CSharpCompilerParameters" />
- </Configuration>
- <Configuration name="Release" ctype="DotNetProjectConfiguration">
- <Output directory="../../build/AddIns/BackendBindings/" assembly="NemerleBinding" />
- <Build debugmode="False" target="Library" />
- <Execution runwithwarnings="True" consolepause="True" runtime="MsNet" clr-version="Net_2_0" />
- <CodeGeneration compiler="Csc" warninglevel="4" optimize="True" unsafecodeallowed="False" generateoverflowchecks="True" mainclass="" generatexmldocumentation="False" ctype="CSharpCompilerParameters" />
- </Configuration>
- </Configurations>
- <Contents>
- <File name="Nemerle.glade" subtype="Code" buildaction="EmbedAsResource" />
- <File name="NemerleEmptyProject.xpt.xml" subtype="Code" buildaction="EmbedAsResource" />
- <File name="NemerleGnomeSharpProject.xpt.xml" subtype="Code" buildaction="EmbedAsResource" />
- <File name="NemerleGtkSharpProject.xpt.xml" subtype="Code" buildaction="EmbedAsResource" />
- <File name="NemerleGtkSharpWindow.xft.xml" subtype="Code" buildaction="EmbedAsResource" />
- <File name="EmptyNemerleFile.xft.xml" subtype="Code" buildaction="EmbedAsResource" />
- <File name="icons/Nemerle.File.EmptyFile" subtype="Code" buildaction="EmbedAsResource" />
- <File name="icons/Nemerle.File.Form" subtype="Code" buildaction="EmbedAsResource" />
- <File name="icons/Nemerle.FileIcon" subtype="Code" buildaction="EmbedAsResource" />
- <File name="icons/Nemerle.Project.EmptyProject" subtype="Code" buildaction="EmbedAsResource" />
- <File name="icons/Nemerle.Project.Form" subtype="Code" buildaction="EmbedAsResource" />
- <File name="icons/Nemerle.ProjectIcon" subtype="Code" buildaction="EmbedAsResource" />
- <File name="Gui/CodeGenerationPanel.cs" subtype="Code" buildaction="Compile" />
- <File name="Project/NemerleParameters.cs" subtype="Code" buildaction="Compile" />
- <File name="NemerleBindingCompilerServices.cs" subtype="Code" buildaction="Compile" />
- <File name="NemerleLanguageBinding.cs" subtype="Code" buildaction="Compile" />
- <File name="NemerleAmbience.cs" subtype="Code" buildaction="Compile" />
- <File name="NemerleBinding.addin.xml" subtype="Code" buildaction="EmbedAsResource" />
- <File name="Parser/CodeGeneration.cs" subtype="Code" buildaction="Compile" />
- <File name="Parser/ExpressionFinder.cs" subtype="Code" buildaction="Compile" />
- <File name="Parser/Parser.cs" subtype="Code" buildaction="Compile" />
- <File name="Parser/SharpDevelopTree/Class.cs" subtype="Code" buildaction="Compile" />
- <File name="Parser/SharpDevelopTree/Constructor.cs" subtype="Code" buildaction="Compile" />
- <File name="Parser/SharpDevelopTree/Event.cs" subtype="Code" buildaction="Compile" />
- <File name="Parser/SharpDevelopTree/Field.cs" subtype="Code" buildaction="Compile" />
- <File name="Parser/SharpDevelopTree/Indexer.cs" subtype="Code" buildaction="Compile" />
- <File name="Parser/SharpDevelopTree/Method.cs" subtype="Code" buildaction="Compile" />
- <File name="Parser/SharpDevelopTree/Modifier.cs" subtype="Code" buildaction="Compile" />
- <File name="Parser/SharpDevelopTree/Parameter.cs" subtype="Code" buildaction="Compile" />
- <File name="Parser/SharpDevelopTree/Property.cs" subtype="Code" buildaction="Compile" />
- <File name="Parser/SharpDevelopTree/ReturnType.cs" subtype="Code" buildaction="Compile" />
- <File name="FormattingStrategy/NemerleFormattingStrategy.cs" subtype="Code" buildaction="Compile" />
- <File name="Makefile.am" subtype="Code" buildaction="Nothing" />
- </Contents>
- <References>
- <ProjectReference type="Project" localcopy="False" refto="MonoDevelop.Core" />
- <ProjectReference type="Project" localcopy="False" refto="MonoDevelop.Core.Gui" />
- <ProjectReference type="Project" localcopy="False" refto="MonoDevelop.Projects" />
- <ProjectReference type="Project" localcopy="False" refto="MonoDevelop.SourceEditor" />
- <ProjectReference type="Project" localcopy="False" refto="MonoDevelop.Ide" />
- <ProjectReference type="Project" localcopy="False" refto="MonoDevelop.Components" />
- <ProjectReference type="Gac" localcopy="False" refto="System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
- <ProjectReference type="Gac" localcopy="False" refto="System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
- <ProjectReference type="Gac" localcopy="False" refto="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
- <ProjectReference type="Gac" localcopy="False" refto="Nemerle, Version=0.9.3.34383, Culture=neutral, PublicKeyToken=e080a9c724e2bfcd" />
- <ProjectReference type="Gac" localcopy="False" refto="Nemerle.Compiler, Version=0.9.3.34397, Culture=neutral, PublicKeyToken=5291d186334f6101" />
- <ProjectReference type="Gac" localcopy="False" refto="Nemerle.Macros, Version=0.9.3.34404, Culture=neutral, PublicKeyToken=5291d186334f6101" />
- <ProjectReference type="Gac" localcopy="False" refto="gtk-sharp, Version=2.4.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
- <ProjectReference type="Gac" localcopy="False" refto="glade-sharp, Version=2.4.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
- <ProjectReference type="Project" localcopy="True" refto="Mono.Addins" />
- </References>
-</Project> \ No newline at end of file
diff --git a/extras/NemerleBinding/NemerleBindingCompilerServices.cs b/extras/NemerleBinding/NemerleBindingCompilerServices.cs
deleted file mode 100644
index c16893e7f6..0000000000
--- a/extras/NemerleBinding/NemerleBindingCompilerServices.cs
+++ /dev/null
@@ -1,207 +0,0 @@
-using System;
-using System.Collections;
-using System.Diagnostics;
-using System.IO;
-using System.CodeDom.Compiler;
-using System.Threading;
-
-using MonoDevelop.Core;
-using MonoDevelop.Projects;
-using MonoDevelop.Core.Gui.Components;
-
-namespace NemerleBinding
-{
- public class NemerleBindingCompilerServices
- {
- class CompilerResultsParser : CompilerResults
- {
- public CompilerResultsParser() : base (new TempFileCollection ())
- {
- }
-
- bool SetErrorType(CompilerError error, string t)
- {
- switch(t.Trim ())
- {
- case "error":
- error.IsWarning = false;
- return true;
- case "warning":
- error.IsWarning = true;
- return true;
- case "hint":
- error.IsWarning = true;
- return true;
- default:
- return false;
- }
- }
-
- public void Parse(string l)
- {
- CompilerError error = new CompilerError();
- error.ErrorNumber = String.Empty;
-
- char [] delim = {':'};
- string [] s = l.Split(delim, 7);
-
- try
- {
- SetErrorType (error, s[5]);
- if (s[6].StartsWith ("N") && s[6].Contains (": "))
- {
- string[] e = s[6].Split (delim, 2);
- error.ErrorNumber = s[0];
- error.ErrorText = s[1].Trim ();
- }
- else
- error.ErrorText = s[6].Trim ();
- error.FileName = s[0];
- error.Line = int.Parse(s[1]);
- error.Column = int.Parse(s[2]);
- }
- catch
- {
- SetErrorType (error, s[0]);
- error.ErrorText = s[1].Trim ();
- error.FileName = "";
- error.Line = 0;
- error.Column = 0;
- }
-
- /*if (SetErrorType(error, s[5]))
- {
- error.ErrorText = s[6]; // l.Substring(l.IndexOf(s[0]+": ") + s[0].Length+2);
- error.FileName = "";
- error.Line = 0;
- error.Column = 0;
- } else
- if ((s.Length >= 4) && SetErrorType(error, s[3].Substring(1)))
- {
- error.ErrorText = l.Substring(l.IndexOf(s[3]+": ") + s[3].Length+2);
- error.FileName = s[0];
- error.Line = int.Parse(s[1]);
- error.Column = int.Parse(s[2]);
- } else
- {
- error.ErrorText = l;
- error.FileName = "";
- error.Line = 0;
- error.Column = 0;
- error.IsWarning = false;
- }*/
- Errors.Add(error);
- }
-
- public BuildResult GetResult()
- {
- return new BuildResult(this, "");
- }
- }
-
- static string ncc = "ncc";
-
- private string GetOptionsString (DotNetProjectConfiguration configuration, NemerleParameters cp)
- {
- string options = " ";
- if (cp.Nostdmacros)
- options += " -no-stdmacros";
- if (cp.Nostdlib)
- options += " -no-stdlib";
- if (cp.Ot)
- options += " -Ot";
- if (cp.Greedy)
- options += " -greedy";
- if (cp.Pedantic)
- options += " -pedantic-lexer";
- if (configuration.CompileTarget == CompileTarget.Library)
- options += " -tdll";
-
- return options;
- }
-
- public bool CanCompile(string fileName)
- {
- return (System.IO.Path.GetExtension(fileName).ToLower() == ".n");
- }
-
- public BuildResult Compile (ProjectFileCollection projectFiles, ProjectReferenceCollection projectReferences, DotNetProjectConfiguration configuration, IProgressMonitor monitor)
- {
- NemerleParameters cp = (NemerleParameters) configuration.CompilationParameters;
- if (cp == null) cp = new NemerleParameters ();
-
- string references = "";
- string files = "";
-
- foreach (ProjectReference lib in projectReferences)
- foreach (string a in lib.GetReferencedFileNames())
- references += " -r \"" + a + "\"";
-
- foreach (ProjectFile f in projectFiles)
- if (f.Subtype != Subtype.Directory)
- switch (f.BuildAction)
- {
- case BuildAction.Compile:
- files += " \"" + f.Name + "\"";
- break;
- }
-
- if (!Directory.Exists (configuration.OutputDirectory))
- Directory.CreateDirectory (configuration.OutputDirectory);
-
- string args = "-q -no-color " + GetOptionsString (configuration, cp) + references + files + " -o " + configuration.CompiledOutputName;
- return DoCompilation (args);
- }
-
- // This enables check if we have output without blocking
- class VProcess : Process
- {
- Thread t = null;
- public void thr()
- {
- while (StandardOutput.Peek() == -1){};
- }
- public void OutWatch()
- {
- t = new Thread(new ThreadStart(thr));
- t.Start();
- }
- public bool HasNoOut()
- {
- return t.IsAlive;
- }
- }
-
- private BuildResult DoCompilation(string arguments)
- {
- string l;
- ProcessStartInfo si = new ProcessStartInfo(ncc, arguments);
- si.RedirectStandardOutput = true;
- si.RedirectStandardError = true;
- si.UseShellExecute = false;
- VProcess p = new VProcess();
- p.StartInfo = si;
- p.Start();
-
- p.OutWatch();
- while ((!p.HasExited) && p.HasNoOut())
-// while ((!p.HasExited) && (p.StandardOutput.Peek() == -1)) // this could eliminate VProcess outgrowth
- {
- System.Threading.Thread.Sleep (100);
- }
-
- CompilerResultsParser cr = new CompilerResultsParser();
- while ((l = p.StandardOutput.ReadLine()) != null)
- {
- cr.Parse(l);
- }
-
- if ((l = p.StandardError.ReadLine()) != null)
- {
- cr.Parse("error: " + ncc + " execution problem");
- }
-
- return cr.GetResult();
- }
- }
-}
diff --git a/extras/NemerleBinding/NemerleEmptyProject.xpt.xml b/extras/NemerleBinding/NemerleEmptyProject.xpt.xml
deleted file mode 100644
index 2d75452574..0000000000
--- a/extras/NemerleBinding/NemerleEmptyProject.xpt.xml
+++ /dev/null
@@ -1,18 +0,0 @@
-<?xml version="1.0"?>
-<Template originator = "Pawel Rozanski"
- created = "04/04/2004"
- lastModified = "05/04/2004">
-
- <!-- Template Header -->
- <TemplateConfiguration>
- <_Name>Empty Project</_Name>
- <_Category>Nemerle</_Category>
- <Icon>res:Nemerle.Project.EmptyProject</Icon>
- <LanguageName>Nemerle</LanguageName>
- <_Description>Creates an empty Nemerle project</_Description>
- </TemplateConfiguration>
-
- <Combine name = "${ProjectName}" directory = ".">
- <Project name = "${ProjectName}" directory = "."/>
- </Combine>
-</Template>
diff --git a/extras/NemerleBinding/NemerleGnomeSharpProject.xpt.xml b/extras/NemerleBinding/NemerleGnomeSharpProject.xpt.xml
deleted file mode 100644
index e52b0f0e25..0000000000
--- a/extras/NemerleBinding/NemerleGnomeSharpProject.xpt.xml
+++ /dev/null
@@ -1,96 +0,0 @@
-<?xml version="1.0"?>
-<Template originator = "John Luke"
- created = "01/03/2004"
- lastModified = "03/08/2004">
-
- <!-- Template Header -->
- <TemplateConfiguration>
- <_Name>Gnome# Project</_Name>
- <_Category>Nemerle</_Category>
- <Icon>res:Nemerle.Project.Form</Icon>
- <LanguageName>Nemerle</LanguageName>
- <_Description>Creates a Nemerle/Gnome# project</_Description>
- </TemplateConfiguration>
-
- <!-- Actions -->
- <Actions>
- <Open filename = "Main.n"/>
- </Actions>
-
- <!-- Template Content -->
- <Combine name = "${ProjectName}" directory = ".">
- <Options>
- <StartupProject>${ProjectName}</StartupProject>
- </Options>
-
- <Project name = "${ProjectName}" directory = ".">
- <Options/>
-
- <References>
- <Reference type="Gac" refto="gnome-sharp, Version=1.0.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
- </References>
-
- <Files>
- <File name="Main.n"><![CDATA[// project created on ${Date} at ${Time}
-using System;
-
-public class MainClass
-{
- public static Main (args : array[string]) : void
- {
- _ = MyProgram (args);
- }
-}]]></File>
- <File name="MyProgram.n"><![CDATA[using System;
-using Gtk;
-using Gnome;
-
-public class MyProgram
-{
- public this (args : array[string])
- {
- def program = Program ("MyProgram", "0.0", Modules.UI, args);
- def app = App ("MyProgram", "MyWindow");
- app.SetDefaultSize (400, 300);
- app.DeleteEvent += (fun (_) { Application.Quit ();} );
- app.ShowAll ();
- program.Run ();
- }
-}]]></File>
- <File name="AssemblyInfo.n"><![CDATA[using System.Reflection;
-using System.Runtime.CompilerServices;
-
-// Information about this assembly is defined by the following
-// attributes.
-//
-// change them to the information which is associated with the assembly
-// you compile.
-
-[assembly: AssemblyTitle("")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("")]
-[assembly: AssemblyProduct("")]
-[assembly: AssemblyCopyright("")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-
-// The assembly version has following format :
-//
-// Major.Minor.Build.Revision
-//
-// You can specify all values by your own or you can build default build and revision
-// numbers with the '*' character (the default):
-
-[assembly: AssemblyVersion("1.0.*")]
-
-// The following attributes specify the key for the sign of your assembly. See the
-// .NET Framework documentation for more information about signing.
-// This is not required, if you don't want signing let these attributes like they're.
-[assembly: AssemblyDelaySign(false)]
-[assembly: AssemblyKeyFile("")]
-]]></File>
- </Files>
- </Project>
- </Combine>
-</Template>
diff --git a/extras/NemerleBinding/NemerleGtkSharpProject.xpt.xml b/extras/NemerleBinding/NemerleGtkSharpProject.xpt.xml
deleted file mode 100644
index 38ffe14f41..0000000000
--- a/extras/NemerleBinding/NemerleGtkSharpProject.xpt.xml
+++ /dev/null
@@ -1,92 +0,0 @@
-<?xml version="1.0"?>
-<Template originator = "Pawel Rozanski"
- created = "07/08/2004"
- lastModified = "11/20/2004">
-
- <!-- Template Header -->
- <TemplateConfiguration>
- <_Name>Gtk# Project</_Name>
- <_Category>Nemerle</_Category>
- <Icon>res:Nemerle.Project.Form</Icon>
- <LanguageName>Nemerle</LanguageName>
- <_Description>Creates a Nemerle/Gtk# project</_Description>
- </TemplateConfiguration>
-
- <Actions>
- <Open filename = "Main.n"/>
- </Actions>
-
- <Combine name = "${ProjectName}" directory = ".">
- <Options>
- <StartupProject>${ProjectName}</StartupProject>
- </Options>
-
- <Project name = "${ProjectName}" directory = ".">
- <References>
- <Reference type="Gac" refto="gtk-sharp, Version=1.0.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
- </References>
- <Files>
- <File name="Main.n"><![CDATA[// project created on ${Date} at ${Time}
-using System;
-using Gtk;
-
-module Main
-{
- public Main() : void
- {
- Application.Init();
- _ = MyWindow();
- Application.Run();
- }
-}]]></File>
- <File name="MyWindow.n"><![CDATA[using System;
-using Gtk;
-
-public class MyWindow : Window
-{
- public this()
- {
- base("MyWindow");
- SetDefaultSize(400, 300);
- this.DeleteEvent += (fun (_) { Application.Quit ();} );
- ShowAll();
- }
-}]]></File>
- <File name="AssemblyInfo.n"><![CDATA[using System.Reflection;
-using System.Runtime.CompilerServices;
-
-// Information about this assembly is defined by the following
-// attributes.
-//
-// change them to the information which is associated with the assembly
-// you compile.
-
-[assembly: AssemblyTitle("")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("")]
-[assembly: AssemblyProduct("")]
-[assembly: AssemblyCopyright("")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-
-// The assembly version has following format :
-//
-// Major.Minor.Build.Revision
-//
-// You can specify all values by your own or you can build default build and revision
-// numbers with the '*' character (the default):
-
-[assembly: AssemblyVersion("1.0.*")]
-
-// The following attributes specify the key for the sign of your assembly. See the
-// .NET Framework documentation for more information about signing.
-// This is not required, if you don't want signing let these attributes like they're.
-[assembly: AssemblyDelaySign(false)]
-[assembly: AssemblyKeyFile("")]
-]]></File>
- </Files>
-
- </Project>
- </Combine>
-</Template>
diff --git a/extras/NemerleBinding/NemerleGtkSharpWindow.xft.xml b/extras/NemerleBinding/NemerleGtkSharpWindow.xft.xml
deleted file mode 100644
index b88ea93f6a..0000000000
--- a/extras/NemerleBinding/NemerleGtkSharpWindow.xft.xml
+++ /dev/null
@@ -1,33 +0,0 @@
-<?xml version="1.0"?>
-<Template Originator = "Pawel Rozanski"
- Language = "Nemerle"
- Created = "07/08/2004"
- LastModified = "07/08/2004">
-
- <TemplateConfiguration>
- <_Name>Gtk# Window</_Name>
- <Icon>res:Nemerle.File.Form</Icon>
- <_Category>Nemerle</_Category>
- <LanguageName>Nemerle</LanguageName>
- <_Description>Creates a top-level Gtk# window</_Description>
- </TemplateConfiguration>
-
- <TemplateFiles>
- <File DefaultExtension=".n" DefaultName="MyWindow">
-<![CDATA[// created on ${Date} at ${Time}
-using System;
-using Gtk;
-
-public class CreatedWindow : Window
-{
- public this()
- {
- base ("MyWindow");
- }
-}
-]]></File>
- </TemplateFiles>
-
- <FileOptions/>
-
-</Template>
diff --git a/extras/NemerleBinding/NemerleLanguageBinding.cs b/extras/NemerleBinding/NemerleLanguageBinding.cs
deleted file mode 100644
index 35d3459bde..0000000000
--- a/extras/NemerleBinding/NemerleLanguageBinding.cs
+++ /dev/null
@@ -1,81 +0,0 @@
-using System;
-using System.IO;
-using System.Diagnostics;
-using System.Collections;
-using System.Reflection;
-using System.Resources;
-using System.Xml;
-using System.CodeDom.Compiler;
-
-using MonoDevelop.Projects;
-using MonoDevelop.Core;
-using MonoDevelop.Projects.Parser;
-using MonoDevelop.Projects.CodeGeneration;
-
-using NemerleBinding.Parser;
-using Nemerle.Compiler;
-
-namespace NemerleBinding
-{
- /// <summary>
- /// This class describes the main functionalaty of a language binding
- /// </summary>
- public class NemerleLanguageBinding : IDotNetLanguageBinding
- {
- public const string LanguageName = "Nemerle";
- NemerleCodeProvider provider = new NemerleCodeProvider();
-
- NemerleBindingCompilerServices compilerServices = new NemerleBindingCompilerServices();
-
- public string Language {
- get { return LanguageName; }
- }
-
- public bool IsSourceCodeFile (string fileName)
- {
- return compilerServices.CanCompile(fileName);
- }
-
- public BuildResult Compile (ProjectFileCollection projectFiles, ProjectReferenceCollection references, DotNetProjectConfiguration configuration, IProgressMonitor monitor)
- {
- return compilerServices.Compile (projectFiles, references, configuration, monitor);
- }
-
- public ICloneable CreateCompilationParameters (XmlElement projectOptions)
- {
- return new NemerleParameters ();
- }
-
- // http://nemerle.org/csharp-diff.html
- public string CommentTag
- {
- get { return "//"; }
- }
-
- public CodeDomProvider GetCodeDomProvider ()
- {
- return provider;
- }
-
- public string GetFileName (string baseName)
- {
- return baseName + ".n";
- }
-
- TParser parser = new TParser();
- NemerleRefactorer refactorer = new NemerleRefactorer();
-
- public IParser Parser {
- get { return parser; }
- }
-
- public IRefactorer Refactorer {
- get { return refactorer; }
- }
-
- public ClrVersion[] GetSupportedClrVersions ()
- {
- return new ClrVersion[] { ClrVersion.Net_1_1, ClrVersion.Net_2_0 };
- }
- }
-}
diff --git a/extras/NemerleBinding/Parser/CodeGeneration.cs b/extras/NemerleBinding/Parser/CodeGeneration.cs
deleted file mode 100644
index 33cc9f6cf3..0000000000
--- a/extras/NemerleBinding/Parser/CodeGeneration.cs
+++ /dev/null
@@ -1,88 +0,0 @@
-//
-// CodeGenerator.cs
-//
-// Author:
-// Lluis Sanchez Gual
-//
-// Copyright (C) 2005 Novell, Inc (http://www.novell.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-using System;
-using System.CodeDom;
-using System.CodeDom.Compiler;
-using NemerleBinding.Parser;
-using nemerle = Nemerle.Compiler;
-using System.IO;
-using MonoDevelop.Projects.Parser;
-using MonoDevelop.Projects.Text;
-using MonoDevelop.Projects.CodeGeneration;
-using System.Drawing;
-using System.Text.RegularExpressions;
-
-namespace NemerleBinding.Parser
-{
- class NemerleRefactorer: BaseRefactorer
- {
- nemerle.NemerleCodeProvider nemerleProvider = new nemerle.NemerleCodeProvider ();
-
- public override RefactorOperations SupportedOperations {
- get { return RefactorOperations.All; }
- }
-
- protected override ICodeGenerator GetGenerator ()
- {
- return nemerleProvider.CreateGenerator ();
- }
-
- public override IClass RenameClass (RefactorerContext ctx, IClass cls, string newName)
- {
- IEditableTextFile file = ctx.GetFile (cls.Region.FileName);
- if (file == null)
- return null;
-
- int pos1 = file.GetPositionFromLineColumn (cls.Region.BeginLine, cls.Region.BeginColumn);
- int pos2 = file.GetPositionFromLineColumn (cls.Region.EndLine, cls.Region.EndColumn);
- string txt = file.GetText (pos1, pos2);
-
- Regex targetExp = new Regex(@"\sclass\s*(" + cls.Name + @")\s", RegexOptions.Multiline);
- Match match = targetExp.Match (" " + txt + " ");
- if (!match.Success)
- return null;
-
- int pos = pos1 + match.Groups [1].Index - 1;
- file.DeleteText (pos, cls.Name.Length);
- file.InsertText (pos, newName);
-
- return GetGeneratedClass (ctx, file, cls);
- }
-
- public override MemberReferenceCollection FindClassReferences (RefactorerContext ctx, string fileName, IClass cls)
- {
- return null;
- }
-
- public override MemberReferenceCollection FindMemberReferences (RefactorerContext ctx, string fileName, IClass cls, IMember member)
- {
- return null;
- }
- }
-}
diff --git a/extras/NemerleBinding/Parser/ExpressionFinder.cs b/extras/NemerleBinding/Parser/ExpressionFinder.cs
deleted file mode 100644
index c022c9056b..0000000000
--- a/extras/NemerleBinding/Parser/ExpressionFinder.cs
+++ /dev/null
@@ -1,825 +0,0 @@
-// ExpressionFinder.cs
-//
-// This file was derived from a file from #Develop.
-//
-// Copyright (C) 2001-2007 Daniel Grunwald <daniel@danielgrunwald.de>
-//
-// This program is free software; you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation; either version 2 of the License, or
-// (at your option) any later version.
-//
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with this program; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-
-using System;
-using System.Text;
-using MonoDevelop.Projects.Parser;
-
-namespace NemerleBinding.Parser
-{
- /// <summary>
- /// Description of ExpressionFinder.
- /// </summary>
- public class ExpressionFinder : IExpressionFinder
- {
- string fileName;
-
- public ExpressionFinder(string fileName)
- {
- this.fileName = fileName;
- }
-
- #region Capture Context
- ExpressionResult CreateResult(string expression, string inText, int offset)
- {
- if (expression == null)
- return new ExpressionResult(null);
- if (expression.StartsWith("using "))
- return new ExpressionResult(expression.Substring(6).TrimStart(), ExpressionContext.Namespace, null);
- if (IsInAttribute(inText, offset))
- return new ExpressionResult(expression, ExpressionContext.Attribute);
- return new ExpressionResult(expression);
- }
-
- ExpressionContext GetCreationContext()
- {
- return null;
- }
-
- bool IsInAttribute(string txt, int offset)
- {
- // Get line start:
- int lineStart = offset;
- while (--lineStart > 0 && txt[lineStart] != '\n');
-
- bool inAttribute = false;
- int parens = 0;
- for (int i = lineStart + 1; i < offset; i++) {
- char ch = txt[i];
- if (char.IsWhiteSpace(ch))
- continue;
- if (!inAttribute) {
- // outside attribute
- if (ch == '[')
- inAttribute = true;
- else
- return false;
- } else if (parens == 0) {
- // inside attribute, outside parameter list
- if (ch == ']')
- inAttribute = false;
- else if (ch == '(')
- parens = 1;
- else if (!char.IsLetterOrDigit(ch) && ch != ',')
- return false;
- } else {
- // inside attribute, inside parameter list
- if (ch == '(')
- parens++;
- else if (ch == ')')
- parens--;
- }
- }
- return inAttribute && parens == 0;
- }
- #endregion
-
- #region RemoveLastPart
- /// <summary>
- /// Removed the last part of the expression.
- /// </summary>
- /// <example>
- /// "arr[i]" => "arr"
- /// "obj.Field" => "obj"
- /// "obj.Method(args,...)" => "obj.Method"
- /// </example>
- public string RemoveLastPart(string expression)
- {
- text = expression;
- offset = text.Length - 1;
- ReadNextToken();
- if (curTokenType == Ident && Peek() == '.')
- GetNext();
- return text.Substring(0, offset + 1);
- }
- #endregion
-
- #region Find Expression
- public ExpressionResult FindExpression(string inText, int offset)
- {
- inText = FilterComments(inText, ref offset);
- return CreateResult(FindExpressionInternal(inText, offset), inText, offset);
- }
-
- public string FindExpressionInternal(string inText, int offset)
- {
- // warning: Do not confuse this.offset and offset
- this.text = inText;
- this.offset = this.lastAccept = offset;
- this.state = START;
- hadParenthesis = false;
- if (this.text == null) {
- return null;
- }
-
- while (state != ERROR) {
- ReadNextToken();
- state = stateTable[state, curTokenType];
-
- if (state == ACCEPT || state == ACCEPT2) {
- lastAccept = this.offset;
- }
- if (state == ACCEPTNOMORE) {
- lastExpressionStartPosition = this.offset + 1;
- return this.text.Substring(this.offset + 1, offset - this.offset);
- }
- }
-
- if (lastAccept < 0)
- return null;
-
- lastExpressionStartPosition = this.lastAccept + 1;
-
- return this.text.Substring(this.lastAccept + 1, offset - this.lastAccept);
- }
-
- int lastExpressionStartPosition;
-
- internal int LastExpressionStartPosition {
- get {
- return lastExpressionStartPosition;
- }
- }
- #endregion
-
- #region FindFullExpression
- public ExpressionResult FindFullExpression(string inText, int offset)
- {
- int offsetWithoutComments = offset;
- string textWithoutComments = FilterComments(inText, ref offsetWithoutComments);
- string expressionBeforeOffset = FindExpressionInternal(textWithoutComments, offsetWithoutComments);
- if (expressionBeforeOffset == null || expressionBeforeOffset.Length == 0)
- return CreateResult(null, textWithoutComments, offsetWithoutComments);
- StringBuilder b = new StringBuilder(expressionBeforeOffset);
- // append characters after expression
- bool wordFollowing = false;
- int i;
- for (i = offset + 1; i < inText.Length; ++i) {
- char c = inText[i];
- if (char.IsLetterOrDigit(c) || c == '_') {
- if (char.IsWhiteSpace(inText, i - 1)) {
- wordFollowing = true;
- break;
- }
- b.Append(c);
- } else if (char.IsWhiteSpace(c)) {
- // ignore whitespace
- } else if (c == '(' || c == '[') {
- int otherBracket = SearchBracketForward(inText, i + 1, c, (c == '(') ? ')' : ']');
- if (otherBracket < 0)
- break;
- if (c == '[') {
- // do not include [] when it is an array declaration (versus indexer call)
- bool ok = false;
- for (int j = i + 1; j < otherBracket; j++) {
- if (inText[j] != ',' && !char.IsWhiteSpace(inText, j)) {
- ok = true;
- break;
- }
- }
- if (!ok) {
- break;
- }
- }
- b.Append(inText, i, otherBracket - i + 1);
- break;
- } else if (c == '<') {
- // accept only if this is a generic type reference
- int typeParameterEnd = FindEndOfTypeParameters(inText, i);
- if (typeParameterEnd < 0)
- break;
- b.Append(inText, i, typeParameterEnd - i + 1);
- i = typeParameterEnd;
- } else {
- break;
- }
- }
- ExpressionResult res = CreateResult(b.ToString(), textWithoutComments, offsetWithoutComments);
- if (res.Context == ExpressionContext.Default && wordFollowing) {
- b = new StringBuilder();
- for (; i < inText.Length; ++i) {
- char c = inText[i];
- if (char.IsLetterOrDigit(c) || c == '_')
- b.Append(c);
- else
- break;
- }
- if (b.Length > 0) {
- res.Context = ExpressionContext.Type;
- }
- }
- return res;
- }
-
- int FindEndOfTypeParameters(string inText, int offset)
- {
- int level = 0;
- for (int i = offset; i < inText.Length; ++i) {
- char c = inText[i];
- if (char.IsLetterOrDigit(c) || char.IsWhiteSpace(c)) {
- // ignore identifiers and whitespace
- } else if (c == ',' || c == '?' || c == '[' || c == ']') {
- // , : seperating generic type parameters
- // ? : nullable types
- // [] : arrays
- } else if (c == '<') {
- ++level;
- } else if (c == '>') {
- --level;
- } else {
- return -1;
- }
- if (level == 0)
- return i;
- }
- return -1;
- }
- #endregion
-
- #region SearchBracketForward
- // like CSharpFormattingStrategy.SearchBracketForward, but operates on a string.
- private int SearchBracketForward(string text, int offset, char openBracket, char closingBracket)
- {
- bool inString = false;
- bool inChar = false;
- bool verbatim = false;
-
- bool lineComment = false;
- bool blockComment = false;
-
- if (offset < 0) return -1;
-
- int brackets = 1;
-
- for (; offset < text.Length; ++offset) {
- char ch = text[offset];
- switch (ch) {
- case '\r':
- case '\n':
- lineComment = false;
- inChar = false;
- if (!verbatim) inString = false;
- break;
- case '/':
- if (blockComment) {
- if (offset > 0 && text[offset - 1] == '*') {
- blockComment = false;
- }
- }
- if (!inString && !inChar && offset + 1 < text.Length) {
- if (!blockComment && text[offset + 1] == '/') {
- lineComment = true;
- }
- if (!lineComment && text[offset + 1] == '*') {
- blockComment = true;
- }
- }
- break;
- case '"':
- if (!(inChar || lineComment || blockComment)) {
- if (inString && verbatim) {
- if (offset + 1 < text.Length && text[offset + 1] == '"') {
- ++offset; // skip escaped quote
- inString = false; // let the string go on
- } else {
- verbatim = false;
- }
- } else if (!inString && offset > 0 && text[offset - 1] == '@') {
- verbatim = true;
- }
- inString = !inString;
- }
- break;
- case '\'':
- if (!(inString || lineComment || blockComment)) {
- inChar = !inChar;
- }
- break;
- case '\\':
- if ((inString && !verbatim) || inChar)
- ++offset; // skip next character
- break;
- default:
- if (ch == openBracket) {
- if (!(inString || inChar || lineComment || blockComment)) {
- ++brackets;
- }
- } else if (ch == closingBracket) {
- if (!(inString || inChar || lineComment || blockComment)) {
- --brackets;
- if (brackets == 0) {
- return offset;
- }
- }
- }
- break;
- }
- }
- return -1;
- }
- #endregion
-
- #region Comment Filter and 'inside string watcher'
- int initialOffset;
- public string FilterComments(string text, ref int offset)
- {
- if (text.Length <= offset)
- return null;
- this.initialOffset = offset;
- StringBuilder outText = new StringBuilder();
- int curOffset = 0;
-
- while (curOffset <= initialOffset) {
- char ch = text[curOffset];
-
- switch (ch) {
- case '@':
- if (curOffset + 1 < text.Length && text[curOffset + 1] == '"') {
- outText.Append(text[curOffset++]); // @
- outText.Append(text[curOffset++]); // "
- if (!ReadVerbatimString(outText, text, ref curOffset)) {
- return null;
- }
- }else{
- outText.Append(ch);
- ++curOffset;
- }
- break;
- case '\'':
- outText.Append(ch);
- curOffset++;
- if(! ReadChar(outText, text, ref curOffset)) {
- return null;
- }
- break;
- case '"':
- outText.Append(ch);
- curOffset++;
- if (!ReadString(outText, text, ref curOffset)) {
- return null;
- }
- break;
- case '/':
- if (curOffset + 1 < text.Length && text[curOffset + 1] == '/') {
- offset -= 2;
- curOffset += 2;
- if (!ReadToEOL(text, ref curOffset, ref offset)) {
- return null;
- }
- } else if (curOffset + 1 < text.Length && text[curOffset + 1] == '*') {
- offset -= 2;
- curOffset += 2;
- if (!ReadMultiLineComment(text, ref curOffset, ref offset)) {
- return null;
- }
- } else {
- goto default;
- }
- break;
- case '#':
- if (!ReadToEOL(text, ref curOffset, ref offset)) {
- return null;
- }
- break;
- default:
- outText.Append(ch);
- ++curOffset;
- break;
- }
- }
-
- return outText.ToString();
- }
-
- bool ReadToEOL(string text, ref int curOffset, ref int offset)
- {
- while (curOffset <= initialOffset) {
- char ch = text[curOffset++];
- --offset;
- if (ch == '\n') {
- return true;
- }
- }
- return false;
- }
-
- bool ReadChar(StringBuilder outText, string text, ref int curOffset)
- {
- if (curOffset > initialOffset)
- return false;
- char first = text[curOffset++];
- outText.Append(first);
- if (curOffset > initialOffset)
- return false;
- char second = text[curOffset++];
- outText.Append(second);
- if (first == '\\') {
- // character is escape sequence, so read one char more
- char next;
- do {
- if (curOffset > initialOffset)
- return false;
- next = text[curOffset++];
- outText.Append(next);
- // unicode or hexadecimal character literals can have more content characters
- } while((second == 'u' || second == 'x') && char.IsLetterOrDigit(next));
- }
- return text[curOffset - 1] == '\'';
- }
-
- bool ReadString(StringBuilder outText, string text, ref int curOffset)
- {
- while (curOffset <= initialOffset) {
- char ch = text[curOffset++];
- outText.Append(ch);
- if (ch == '"') {
- return true;
- } else if (ch == '\\') {
- if (curOffset <= initialOffset)
- outText.Append(text[curOffset++]);
- }
- }
- return false;
- }
-
- bool ReadVerbatimString(StringBuilder outText, string text, ref int curOffset)
- {
- while (curOffset <= initialOffset) {
- char ch = text[curOffset++];
- outText.Append(ch);
- if (ch == '"') {
- if (curOffset < text.Length && text[curOffset] == '"') {
- outText.Append(text[curOffset++]);
- } else {
- return true;
- }
- }
- }
- return false;
- }
-
- bool ReadMultiLineComment(string text, ref int curOffset, ref int offset)
- {
- while (curOffset <= initialOffset) {
- char ch = text[curOffset++];
- --offset;
- if (ch == '*') {
- if (curOffset < text.Length && text[curOffset] == '/') {
- ++curOffset;
- --offset;
- return true;
- }
- }
- }
- return false;
- }
- #endregion
-
- #region mini backward lexer
- string text;
- int offset;
-
- char GetNext()
- {
- if (offset >= 0) {
- return text[offset--];
- }
- return '\0';
- }
-
- char GetNextNonWhiteSpace()
- {
- char ch;
- do {
- ch = GetNext();
- } while (char.IsWhiteSpace(ch));
- return ch;
- }
-
- char Peek(int n)
- {
- if (offset - n >= 0) {
- return text[offset - n];
- }
- return '\0';
- }
-
- char Peek()
- {
- if (offset >= 0) {
- return text[offset];
- }
- return '\0';
- }
-
- void UnGet()
- {
- ++offset;
- }
-
- void UnGetToken()
- {
- do {
- UnGet();
- } while (char.IsLetterOrDigit(Peek()));
- }
-
- // tokens for our lexer
- static int Err = 0;
- static int Dot = 1;
- static int StrLit = 2;
- static int Ident = 3;
- static int New = 4;
- static int Bracket = 5;
- static int Parent = 6;
- static int Curly = 7;
- static int Using = 8;
- static int Digit = 9;
- int curTokenType;
-
- readonly static string[] tokenStateName = new string[] {
- "Err", "Dot", "StrLit", "Ident", "New", "Bracket", "Paren", "Curly", "Using", "Digit"
- };
-
- string GetTokenName(int state)
- {
- return tokenStateName[state];
- }
-
- /// <summary>
- /// used to control whether an expression is in a ObjectCreation context (new *expr*),
- /// or is in the default context (e.g. "new MainForm().Show()", 'new ' is there part of the expression
- /// </summary>
- bool hadParenthesis;
-
- string lastIdentifier;
-
- void ReadNextToken()
- {
- curTokenType = Err;
- char ch = GetNextNonWhiteSpace();
- if (ch == '\0') {
- return;
- }
-
- switch (ch) {
- case '}':
- if (ReadBracket('{', '}')) {
- curTokenType = Curly;
- }
- break;
- case ')':
- if (ReadBracket('(', ')')) {
- hadParenthesis = true;
- curTokenType = Parent;
- }
- break;
- case ']':
- if (ReadBracket('[', ']')) {
- curTokenType = Bracket;
- }
- break;
- case '>':
- if (ReadTypeParameters()) {
- // hack: ignore type parameters and continue reading without changing state
- ReadNextToken();
- }
- break;
- case '.':
- curTokenType = Dot;
- break;
- case ':':
- if (GetNext() == ':') {
- // treat :: like dot
- curTokenType = Dot;
- }
- break;
- case '\'':
- case '"':
- if (ReadStringLiteral(ch)) {
- curTokenType = StrLit;
- }
- break;
- default:
- if (IsNumber(ch)) {
- ReadDigit(ch);
- curTokenType = Digit;
- } else if (IsIdentifierPart(ch)) {
- string ident = ReadIdentifier(ch);
- if (ident != null) {
- switch (ident) {
- case "new":
- curTokenType = New;
- break;
- case "using":
- curTokenType = Using;
- break;
- case "return":
- case "throw":
- case "in":
- case "else":
- // treat as error / end of expression
- break;
- default:
- curTokenType = Ident;
- lastIdentifier = ident;
- break;
- }
- }
- }
-
- break;
- }
- }
- bool IsNumber(char ch)
- {
- if (!char.IsDigit(ch))
- return false;
- int n = 0;
- while (true) {
- ch = Peek(n);
- if (char.IsDigit(ch)) {
- n++;
- continue;
- }
- return n > 0 && !char.IsLetter(ch);
- }
- }
- bool ReadStringLiteral(char litStart)
- {
- while (true) {
- char ch = GetNext();
- if (ch == '\0') {
- return false;
- }
- if (ch == litStart) {
- if (Peek() == '@' && litStart == '"') {
- GetNext();
- }
- return true;
- }
- }
- }
-
- bool ReadTypeParameters()
- {
- int level = 1;
- while (level > 0) {
- char ch = GetNext();
- switch (ch) {
- case '?':
- case '[':
- case ',':
- case ']':
- break;
- case '<':
- --level;
- break;
- case '>':
- ++level;
- break;
- default:
- if (!char.IsWhiteSpace(ch) && !char.IsLetterOrDigit(ch))
- return false;
- break;
- }
- }
- return true;
- }
-
- bool ReadBracket(char openBracket, char closingBracket)
- {
- int curlyBraceLevel = 0;
- int squareBracketLevel = 0;
- int parenthesisLevel = 0;
- switch (openBracket) {
- case '(':
- parenthesisLevel++;
- break;
- case '[':
- squareBracketLevel++;
- break;
- case '{':
- curlyBraceLevel++;
- break;
- }
-
- while (parenthesisLevel != 0 || squareBracketLevel != 0 || curlyBraceLevel != 0) {
- char ch = GetNext();
- switch (ch) {
- case '\0':
- return false;
- case '(':
- parenthesisLevel--;
- break;
- case '[':
- squareBracketLevel--;
- break;
- case '{':
- curlyBraceLevel--;
- break;
- case ')':
- parenthesisLevel++;
- break;
- case ']':
- squareBracketLevel++;
- break;
- case '}':
- curlyBraceLevel++;
- break;
- }
- }
- return true;
- }
-
- string ReadIdentifier(char ch)
- {
- string identifier = ch.ToString();
- while (IsIdentifierPart(Peek())) {
- identifier = GetNext() + identifier;
- }
- return identifier;
- }
-
- void ReadDigit(char ch)
- {
- //string digit = ch.ToString();
- while (char.IsDigit(Peek()) || Peek() == '.') {
- GetNext();
- //digit = GetNext() + digit;
- }
- //return digit;
- }
-
- bool IsIdentifierPart(char ch)
- {
- return char.IsLetterOrDigit(ch) || ch == '_' || ch == '@';
- }
- #endregion
-
- #region finite state machine
- readonly static int ERROR = 0;
- readonly static int START = 1;
- readonly static int DOT = 2;
- readonly static int MORE = 3;
- readonly static int CURLY = 4;
- readonly static int CURLY2 = 5;
- readonly static int CURLY3 = 6;
-
- readonly static int ACCEPT = 7;
- readonly static int ACCEPTNOMORE = 8;
- readonly static int ACCEPT2 = 9;
-
- readonly static string[] stateName = new string[] {
- "ERROR",
- "START",
- "DOT",
- "MORE",
- "CURLY",
- "CURLY2",
- "CURLY3",
- "ACCEPT",
- "ACCEPTNOMORE",
- "ACCEPT2"
- };
-
- string GetStateName(int state)
- {
- return stateName[state];
- }
-
- int state = 0;
- int lastAccept = 0;
- static int[,] stateTable = new int[,] {
- // Err, Dot, Str, ID, New, Brk, Par, Cur, Using, digit
- /*ERROR*/ { ERROR, ERROR, ERROR, ERROR, ERROR, ERROR, ERROR, ERROR, ERROR, ERROR},
- /*START*/ { ERROR, DOT, ACCEPT, ACCEPT, ERROR, MORE, ACCEPT2, CURLY, ACCEPTNOMORE, ERROR},
- /*DOT*/ { ERROR, ERROR, ACCEPT, ACCEPT, ERROR, MORE, ACCEPT, CURLY, ERROR, ACCEPT},
- /*MORE*/ { ERROR, ERROR, ACCEPT, ACCEPT, ERROR, MORE, ACCEPT2, CURLY, ERROR, ACCEPT},
- /*CURLY*/ { ERROR, ERROR, ERROR, ERROR, ERROR, CURLY2, ERROR, ERROR, ERROR, ERROR},
- /*CURLY2*/ { ERROR, ERROR, ERROR, CURLY3, ERROR, ERROR, ERROR, ERROR, ERROR, CURLY3},
- /*CURLY3*/ { ERROR, ERROR, ERROR, ERROR, ACCEPTNOMORE, ERROR, ERROR, ERROR, ERROR, ERROR},
- /*ACCEPT*/ { ERROR, MORE, ERROR, ERROR, ACCEPT, ERROR, ERROR, ERROR, ACCEPTNOMORE, ERROR},
- /*ACCEPTNOMORE*/ { ERROR, ERROR, ERROR, ERROR, ERROR, ERROR, ERROR, ERROR, ERROR, ERROR},
- /*ACCEPT2*/ { ERROR, MORE, ERROR, ACCEPT, ACCEPT, ERROR, ERROR, ERROR, ERROR, ACCEPT},
- };
- #endregion
- }
-}
diff --git a/extras/NemerleBinding/Parser/Parser.cs b/extras/NemerleBinding/Parser/Parser.cs
deleted file mode 100644
index d31036fe72..0000000000
--- a/extras/NemerleBinding/Parser/Parser.cs
+++ /dev/null
@@ -1,522 +0,0 @@
-// Parser.cs
-//
-// This file was derived from a file from #Develop.
-//
-// Copyright (C) 2001-2007 Andrea Paatz <andrea@icsharpcode.net>
-//
-// This program is free software; you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation; either version 2 of the License, or
-// (at your option) any later version.
-//
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with this program; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-using System;
-using System.Text;
-using System.Drawing;
-using System.Collections;
-using System.Collections.Generic;
-using MonoDevelop.Ide.Gui;
-using MonoDevelop.Core;
-using MonoDevelop.Projects.Parser;
-using MonoDevelop.Projects;
-using NemerleBinding.Parser.SharpDevelopTree;
-using Nemerle.Completion;
-using NCC = Nemerle.Compiler;
-using System.Xml;
-
-namespace NemerleBinding.Parser
-{
- public class TParser : IParser
- {
- Engine engine;
- internal static Dictionary<string, XmlDocument> xmlCache;
-
- public TParser ()
- {
- lock (syncObject)
- {
- engine = new Engine ();
- xmlCache = new Dictionary<string, XmlDocument> ();
- }
- }
-
- ///<summary>IParser Interface</summary>
- string[] lexerTags;
- public string[] LexerTags {
- get {
- return lexerTags;
- }
- set {
- lexerTags = value;
- }
- }
-
- public IExpressionFinder CreateExpressionFinder(string fileName)
- {
- return new ExpressionFinder(fileName);
- }
-
- public bool CanParse(string fileName)
- {
- return System.IO.Path.GetExtension(fileName).ToUpper() == ".N";
- }
-
- private void ReloadReferences ()
- {
- Project currentProj = IdeApp.ProjectOperations.CurrentSelectedProject;
- foreach (ProjectReference refer in currentProj.ProjectReferences)
- {
- if (!engine.References.ContainsKey (refer.Reference))
- engine.References.Add (refer.Reference, refer.Reference);
- }
- foreach (string s in engine.References.GetKeys ())
- {
- bool deleteReference = true;
- foreach (ProjectReference refer in currentProj.ProjectReferences)
- {
- if (refer.Reference == s)
- {
- deleteReference = false;
- break;
- }
- }
- if (deleteReference)
- engine.References.Remove (s);
- }
- }
-
- private void ReloadFiles (string reload, string newContents)
- {
- Project currentProj = IdeApp.ProjectOperations.CurrentSelectedProject;
- foreach (ProjectFile file in currentProj.ProjectFiles)
- {
- if (file.Name.EndsWith (".N") || file.Name.EndsWith (".n"))
- {
- if (!engine.Sources.ContainsKey (file.Name) ||
- file.Name == reload)
- engine.Sources.Add (file.Name, newContents ?? file.Data);
- }
- }
- foreach (string s in engine.Sources.GetKeys ())
- {
- bool deleteFile = true;
- foreach (ProjectFile file in currentProj.ProjectFiles)
- {
- if (file.Name == s)
- {
- deleteFile = false;
- break;
- }
- }
- if (deleteFile)
- engine.Sources.Remove (s);
- }
- }
-
- static object syncObject = new object ();
- DefaultCompilationUnit cu;
- private ICompilationUnitBase parse_the_file (string fileName, string contents)
- {
- if (IdeApp.ProjectOperations.CurrentSelectedProject == null)
- return null;
-
- lock (syncObject)
- {
- try
- {
- ReloadReferences ();
- ReloadFiles (fileName, contents);
-
- CompletionStageHandler handler = new CompletionStageHandler (make_type);
- cu = new DefaultCompilationUnit ();
- engine.GetTypeTree (handler);
- return cu;
- }
- catch (Exception ex)
- {
- System.Console.WriteLine ("ERROR");
- System.Console.WriteLine (ex.Message);
- System.Console.WriteLine (ex.StackTrace);
- return null;
- }
- }
- }
-
- public ICompilationUnitBase Parse(string fileName)
- {
- return parse_the_file (fileName, null);
- }
-
- public ICompilationUnitBase Parse(string fileName, string fileContent)
- {
- return parse_the_file (fileName, fileContent);
- }
-
- void make_type (NCC.TypeInfo ti)
- {
- cu.Classes.Add (new Class (ti, cu));
- }
-
- public LanguageItemCollection CtrlSpace(IParserContext parserContext, int caretLine, int caretColumn, string fileName)
- {
- Project currentProj = IdeApp.ProjectOperations.CurrentSelectedProject;
- string fileContent = "";
- foreach (ProjectFile file in currentProj.ProjectFiles)
- {
- if (file.Name == fileName)
- {
- fileContent = file.Data;
- break;
- }
- }
- ResolveResult res = real_resolve (parserContext, caretLine, caretColumn, fileName, fileContent, true);
- return res.Members;
- }
-
- public LanguageItemCollection IsAsResolve (IParserContext parserContext, string expression, int caretLineNumber, int caretColumn, string fileName, string fileContent)
- {
- return null;
- }
-
- public ResolveResult Resolve (IParserContext parserContext, string expression, int caretLineNumber, int caretColumn, string fileName, string fileContent)
- {
- return real_resolve (parserContext, caretLineNumber, caretColumn, fileName, fileContent, false);
- }
-
- public ResolveResult real_resolve (IParserContext parserContext, int caretLineNumber, int caretColumn, string fileName, string fileContent, bool completeLocals)
- {
- try
- {
- DefaultCompilationUnit comp = (DefaultCompilationUnit)parserContext.GetParseInformation (fileName).MostRecentCompilationUnit;
- Class the_class = null;
- foreach (DefaultClass cl in comp.Classes)
- {
- if (cl.BodyRegion.BeginLine <= caretLineNumber &&
- cl.BodyRegion.EndLine >= caretLineNumber)
- {
- the_class = (Class)cl;
- }
- foreach (DefaultClass nc in cl.InnerClasses)
- {
- if (nc.BodyRegion.BeginLine <= caretLineNumber &&
- nc.BodyRegion.EndLine >= caretLineNumber)
- {
- the_class = (Class)nc;
- }
- }
- if (the_class != null) break;
- }
-
- if (the_class == null)
- return null;
- else
- {
- INemerleMethod the_method = null;
- int line = 0, column = 0, end_line = 0, end_column = 0;
- foreach (DefaultMethod m in the_class.Methods)
- {
- if (m.BodyRegion.BeginLine <= caretLineNumber &&
- m.BodyRegion.EndLine >= caretLineNumber &&
- m.BodyRegion.BeginLine != the_class.BodyRegion.BeginLine)
- {
- the_method = (INemerleMethod)m;
- line = m.BodyRegion.BeginLine;
- column = m.BodyRegion.BeginColumn;
- end_line = m.BodyRegion.EndLine;
- end_column = m.BodyRegion.EndColumn;
- break;
- }
- }
-
- if (the_method == null)
- {
- // Try with properties
- foreach (Property p in the_class.Properties)
- {
- if (p.GetterRegion != null)
- {
- if (p.GetterRegion.BeginLine <= caretLineNumber &&
- p.GetterRegion.EndLine >= caretLineNumber)
- {
- the_method = (INemerleMethod)p.Getter;
- line = p.GetterRegion.BeginLine;
- column = p.GetterRegion.BeginColumn;
- end_line = p.BodyRegion.EndLine;
- end_column = p.BodyRegion.EndColumn;
- break;
- }
- }
-
- if (p.SetterRegion != null)
- {
- if (p.SetterRegion.BeginLine <= caretLineNumber &&
- p.SetterRegion.EndLine >= caretLineNumber)
- {
- the_method = (INemerleMethod)p.Setter;
- line = p.SetterRegion.BeginLine;
- column = p.SetterRegion.BeginColumn;
- end_line = p.BodyRegion.EndLine;
- end_column = p.BodyRegion.EndColumn;
- break;
- }
- }
- }
-
- foreach (Indexer p in the_class.Indexer)
- {
- if (p.GetterRegion != null)
- {
- if (p.GetterRegion.BeginLine <= caretLineNumber &&
- p.GetterRegion.EndLine >= caretLineNumber)
- {
- the_method = (INemerleMethod)p.Getter;
- line = p.GetterRegion.BeginLine;
- column = p.GetterRegion.BeginColumn;
- end_line = p.BodyRegion.EndLine;
- end_column = p.BodyRegion.EndColumn;
- break;
- }
- }
-
- if (p.SetterRegion != null)
- {
- if (p.SetterRegion.BeginLine <= caretLineNumber &&
- p.SetterRegion.EndLine >= caretLineNumber)
- {
- the_method = (INemerleMethod)p.Setter;
- line = p.SetterRegion.BeginLine;
- column = p.SetterRegion.BeginColumn;
- end_line = p.BodyRegion.EndLine;
- end_column = p.BodyRegion.EndColumn;
- break;
- }
- }
- }
- }
-
- if (the_method == null)
- return null;
- else
- {
- // Recover the text from the start of the method to cursor
- string method_start = Crop (fileContent, line, column, caretLineNumber, caretColumn);
- string method_end = Crop (fileContent, caretLineNumber, caretColumn, end_line, end_column) + "}";
- // System.Console.WriteLine (method_start + method_end);
- NCC.CompletionResult infox = engine.RunCompletionEngine ((NCC.MethodBuilder)the_method.Member,
- method_start + method_end, method_start.Length);
-
- return GetResults (infox, comp, completeLocals);
- }
- }
- }
- catch(Exception ex)
- {
- Console.WriteLine (ex.Message);
- Console.WriteLine (ex.StackTrace);
- return null;
- }
- }
-
- ResolveResult GetResults (NCC.CompletionResult results, DefaultCompilationUnit cu, bool completeLocals)
- {
- try
- {
- if (results == null || results.Elems.Count == 0)
- return null;
-
- if (results.Elems [0] is NCC.Elem.Node)
- {
- List<string> alreadyAdded = new List<string> ();
- List<string> namespaces = new List<string> ();
- LanguageItemCollection lang = new LanguageItemCollection ();
-
- foreach (NCC.Elem elem in results.Elems)
- {
- if (!(elem is NCC.Elem.Node))
- continue;
-
- NCC.Elem.Node enode = (NCC.Elem.Node)elem;
- if (enode.node.Value is NCC.NamespaceTree.TypeInfoCache.NamespaceReference)
- {
- namespaces.Add (enode.Name);
- }
- else if (enode.node.Value is NCC.NamespaceTree.TypeInfoCache.Cached)
- {
- if (!alreadyAdded.Contains (enode.Name))
- {
- alreadyAdded.Add (enode.Name);
- lang.Add (new Class (((NCC.NamespaceTree.TypeInfoCache.Cached)enode.node.Value).tycon, cu, false));
- }
- }
- }
- return new ResolveResult (namespaces.ToArray (), lang);
- }
- else
- {
- Class declaring = GetTheRealType (results.ObjectType, cu);
-
- /*if (declaring.FullyQualifiedName == "System.Object")
- {
- // Try with any other member
- NCC.TypeInfo found = null;
- foreach (NCC.OverloadPossibility ov in results.Overloads)
- {
- if (ov.Member.DeclaringType.FrameworkTypeName != "System.Object")
- {
- found = ov.Member.DeclaringType;
- break;
- }
- }
- if (found != null)
- declaring = new Class (found, cu, false);
- }*/
-
- LanguageItemCollection lang = new LanguageItemCollection ();
-
- foreach (NCC.Elem elem in results.Elems)
- {
- if (elem is NCC.Elem.Local)
- {
- if (!completeLocals)
- continue;
-
- NCC.Elem.Local lvalue = (NCC.Elem.Local)elem;
-/* lang.Add (new NemerleBinding.Parser.SharpDevelopTree.Local
- (new Class ("LOCALS", cu), lvalue.Value));
-*/ }
- else if (elem is NCC.Elem.Overloads)
- {
- NCC.Elem.Overloads lvalue = (NCC.Elem.Overloads)elem;
- foreach (NCC.OverloadPossibility ov in lvalue.Values)
- AddMember (declaring, lang, ov.Member);
- }
- else if (elem is NCC.Elem.Overload)
- {
- NCC.Elem.Overload lvalue = (NCC.Elem.Overload)elem;
- AddMember (declaring, lang, lvalue.Value.Member);
- }
- else if (elem is NCC.Elem.Member)
- {
- NCC.Elem.Member lvalue = (NCC.Elem.Member)elem;
- AddMember (declaring, lang, lvalue.member);
- }
- }
-
- return new ResolveResult (declaring, lang);
- }
- }
- catch (Exception ex)
- {
- System.Console.WriteLine (ex.GetType().FullName);
- System.Console.WriteLine (ex.Message);
- System.Console.WriteLine (ex.StackTrace);
- if (ex.InnerException != null)
- {
- System.Console.WriteLine (ex.InnerException.GetType().FullName);
- System.Console.WriteLine (ex.InnerException.Message);
- System.Console.WriteLine (ex.InnerException.StackTrace);
- }
- return null;
- }
- }
-
- private void AddMember (Class declaring, LanguageItemCollection lang, NCC.IMember member)
- {
- // Do not add property getters and setters, not events adders and removers,
- // nor overloaded operators, nor enum value__, not Nemerle internal methods
- if (member.Name.StartsWith("_N") || member.Name.StartsWith("get_") ||
- member.Name.StartsWith("set_") || member.Name == "value__" ||
- member.Name.StartsWith("op_") || member.Name.StartsWith("add_") ||
- member.Name.StartsWith("remove_"))
- return;
-
- try
- {
- if (member is NCC.IField)
- lang.Add (new NemerleBinding.Parser.SharpDevelopTree.Field (declaring, (NCC.IField)member));
- else if (member is NCC.IMethod)
- lang.Add (new Method (declaring, (NCC.IMethod)member));
- else if (member is NCC.IProperty)
- {
- NCC.IProperty prop = (NCC.IProperty)member;
- if (prop.IsIndexer)
- lang.Add (new Indexer (declaring, prop));
- else
- lang.Add (new Property (declaring, prop));
- }
- else if (member is NCC.IEvent)
- lang.Add (new Event (declaring, (NCC.IEvent)member));
- }
- catch (Exception e)
- {
- System.Console.WriteLine (e.Message);
- }
- }
-
- private Class GetTheRealType (NCC.MType objectType, DefaultCompilationUnit cu)
- {
- if (objectType is NCC.MType.Class)
- {
- return new Class (((NCC.MType.Class)objectType).tycon, cu, false);
- }
- else if (objectType is NCC.MType.Array)
- {
- return new Class ("System.Array", cu);
- }
- else if (objectType is NCC.MType.Fun)
- {
- return GetTheRealType (((NCC.MType.Fun)objectType).to.Fix (), cu);
- }
- else if (objectType is NCC.MType.Ref)
- {
- return GetTheRealType (((NCC.MType.Ref)objectType).t.Fix (), cu);
- }
- else if (objectType is NCC.MType.Out)
- {
- return GetTheRealType (((NCC.MType.Out)objectType).t.Fix (), cu);
- }
- else
- {
- return null;
- }
- }
-
- public ILanguageItem ResolveIdentifier (IParserContext parserContext, string id, int caretLineNumber, int caretColumn, string fileName, string fileContent)
- {
- return null;
- }
-
- string Crop (string content, int startLine, int startColumn, int endLine, int endColumn)
- {
- string[] lines = content.Split ('\n');
- StringBuilder sb = new StringBuilder ();
- for (int i = startLine - 1; i < endLine; i++)
- {
- if (i == (startLine - 1) && i == (endLine - 1))
- {
- sb.Append (lines[i].Substring (startColumn - 1, endColumn - startColumn));
- break;
- }
- else if (i == (startLine - 1))
- sb.Append (lines[i].Substring (startColumn - 1) + "\n");
- else if (i == (endLine - 1) || i >= lines.Length)
- {
- sb.Append (lines[i].Substring (0, endColumn - 1));
- break;
- }
- else
- sb.Append (lines[i] + "\n");
- }
- return sb.ToString (); //.TrimStart (' ', '{');
- }
-
- ///////// IParser Interface END
- }
-}
diff --git a/extras/NemerleBinding/Parser/SharpDevelopTree/Class.cs b/extras/NemerleBinding/Parser/SharpDevelopTree/Class.cs
deleted file mode 100644
index c8fd4dc3e6..0000000000
--- a/extras/NemerleBinding/Parser/SharpDevelopTree/Class.cs
+++ /dev/null
@@ -1,267 +0,0 @@
-// created on 06.08.2003 at 12:37
-
-using System;
-using System.Diagnostics;
-using System.Collections;
-using SR = System.Reflection;
-using System.Collections.Generic;
-
-using MonoDevelop.Projects;
-using System.Xml;
-
-using MonoDevelop.Projects.Parser;
-using Nemerle.Completion;
-using NCC = Nemerle.Compiler;
-using NemerleBinding.Parser;
-
-namespace NemerleBinding.Parser.SharpDevelopTree
-{
- public class Class : DefaultClass
- {
- NCC.TypeInfo tinfo;
- internal XmlDocument xmlHelp;
-
- public Class(string name, DefaultCompilationUnit cu): base (cu)
- {
- this.FullyQualifiedName = name;
- this.modifiers = (ModifierEnum)0;
- }
-
- void LoadXml ()
- {
- if (TParser.xmlCache.ContainsKey (this.FullyQualifiedName))
- xmlHelp = TParser.xmlCache [this.FullyQualifiedName];
- else
- {
- xmlHelp = Services.DocumentationService != null ?
- Services.DocumentationService.GetHelpXml (this.FullyQualifiedName) : null;
- if (xmlHelp != null)
- {
- TParser.xmlCache.Add (this.FullyQualifiedName, xmlHelp);
- XmlNode node = xmlHelp.SelectSingleNode ("/Type/Docs/summary");
- if (node != null)
- {
- this.Documentation = node.InnerXml;
- }
- }
- }
- }
-
- public Class(System.Type tinfo, DefaultCompilationUnit cu): base (cu)
- {
- this.tinfo = null;
- this.FullyQualifiedName = tinfo.FullName.TrimEnd('*');
- if (this.FullyQualifiedName.Contains("`"))
- this.FullyQualifiedName = this.FullyQualifiedName.TrimEnd ('1', '2', '3', '4').TrimEnd('`');
-
- if (tinfo.IsEnum)
- classType = ClassType.Enum;
- else if (tinfo.IsInterface)
- classType = ClassType.Interface;
- else if (tinfo.IsValueType)
- classType = ClassType.Struct;
- else if (tinfo.IsSubclassOf(typeof(System.Delegate)) ||
- tinfo.IsSubclassOf(typeof(System.MulticastDelegate)))
- classType = ClassType.Delegate;
- else
- classType = ClassType.Class;
-
- this.region = GetRegion ();
- this.bodyRegion = GetRegion ();
-
- ModifierEnum mod = (ModifierEnum)0;
- if (tinfo.IsNotPublic)
- mod |= ModifierEnum.Private;
- if (tinfo.IsPublic)
- mod |= ModifierEnum.Public;
- if (tinfo.IsAbstract)
- mod |= ModifierEnum.Abstract;
- if (tinfo.IsSealed)
- mod |= ModifierEnum.Sealed;
-
- modifiers = mod;
-
- if (tinfo.IsEnum)
- {
- foreach (SR.FieldInfo field in tinfo.GetFields())
- {
- if (field.Name != "value__" && !field.Name.StartsWith("_N"))
- fields.Add (new Field (this, field));
- }
- }
- else
- {
- foreach (SR.FieldInfo field in tinfo.GetFields())
- {
- if (!field.Name.StartsWith("_N"))
- fields.Add (new Field (this, field));
- }
- }
- foreach (SR.MethodInfo method in tinfo.GetMethods())
- {
- if (method.Name.StartsWith("_N") || method.Name.StartsWith("get_") || method.Name.StartsWith("set_") ||
- method.Name.StartsWith("add_") || method.Name.StartsWith("remove_"))
- continue;
- if (method.IsConstructor)
- continue; //methods.Add (new Constructor (this, method));
- else
- methods.Add (new Method (this, method));
- }
- foreach (SR.PropertyInfo prop in tinfo.GetProperties())
- {
- properties.Add (new Property (this, prop));
- }
- foreach (SR.EventInfo ev in tinfo.GetEvents())
- {
- events.Add (new Event (this, ev));
- }
-
- foreach (System.Type i in tinfo.GetNestedTypes())
- {
- Class nested = new Class (i, cu);
- innerClasses.Add (nested);
- }
-
- LoadXml ();
- }
-
- public Class(NCC.TypeInfo tinfo, DefaultCompilationUnit cu)
- : this (tinfo, cu, true)
- { }
-
- public Class(NCC.TypeInfo tinfo, DefaultCompilationUnit cu, bool addMembers): base (cu)
- {
- this.tinfo = tinfo;
-
- this.FullyQualifiedName = tinfo.FrameworkTypeName.TrimEnd('*');
- if (this.FullyQualifiedName.Contains("`"))
- this.FullyQualifiedName = this.FullyQualifiedName.TrimEnd ('1', '2', '3', '4').TrimEnd('`');
-
-
- if (tinfo.IsEnum)
- classType = ClassType.Enum;
- else if (tinfo.IsInterface)
- classType = ClassType.Interface;
- else if (tinfo.IsValueType)
- classType = ClassType.Struct;
- else if (tinfo.IsDelegate)
- classType = ClassType.Delegate;
- else
- classType = ClassType.Class;
-
- this.region = GetRegion (tinfo.Location);
- this.bodyRegion = GetRegion (tinfo.Location);
-
- ModifierEnum mod = (ModifierEnum)0;
- if ((tinfo.Attributes & NCC.NemerleAttributes.Private) != 0)
- mod |= ModifierEnum.Private;
- if ((tinfo.Attributes & NCC.NemerleAttributes.Internal) != 0)
- mod |= ModifierEnum.Internal;
- if ((tinfo.Attributes & NCC.NemerleAttributes.Protected) != 0)
- mod |= ModifierEnum.Protected;
- if ((tinfo.Attributes & NCC.NemerleAttributes.Public) != 0)
- mod |= ModifierEnum.Public;
- if ((tinfo.Attributes & NCC.NemerleAttributes.Abstract) != 0)
- mod |= ModifierEnum.Abstract;
- if ((tinfo.Attributes & NCC.NemerleAttributes.Sealed) != 0)
- mod |= ModifierEnum.Sealed;
-
- modifiers = mod;
-
- if (tinfo.Typarms.Length > 0)
- {
- this.genericParamters = new GenericParameterList ();
- foreach (NCC.StaticTyVar typarm in tinfo.Typarms)
- {
- genericParamters.Add (GetGenericParameter (typarm));
- }
- }
-
- if (addMembers || tinfo.IsDelegate)
- {
- foreach (NCC.IMember member in tinfo.GetMembers ())
- {
- if (member.Name.StartsWith ("_N") || member.Location.Line == tinfo.Location.Line)
- continue;
-
- NCC.MemberKind m = member.GetKind ();
-
- if (m is NCC.MemberKind.Field)
- {
- NCC.MemberKind.Field f = (NCC.MemberKind.Field)m;
- if (f.field.Name != "value__")
- fields.Add (new Field (this, f.field));
- }
- else if (m is NCC.MemberKind.Method)
- {
- NCC.MemberKind.Method mt = (NCC.MemberKind.Method)m;
- if (mt.method.Name.StartsWith ("get_") || mt.method.Name.StartsWith ("set_") ||
- mt.method.Name.StartsWith ("add_") || mt.method.Name.StartsWith ("remove_"))
- continue;
-
- NCC.FunKind fk = mt.method.GetFunKind ();
- if (fk is NCC.FunKind.Constructor || fk is NCC.FunKind.StaticConstructor)
- methods.Add (new Constructor (this, mt.method));
- else
- methods.Add (new Method (this, mt.method));
- }
- else if (m is NCC.MemberKind.Property)
- {
- NCC.MemberKind.Property px = (NCC.MemberKind.Property)m;
- if (px.prop.IsIndexer)
- indexer.Add (new Indexer (this, px.prop));
- else
- properties.Add (new Property (this, px.prop));
- }
- else if (m is NCC.MemberKind.Event)
- events.Add (new Event (this, ((NCC.MemberKind.Event)m).body));
- else if (m is NCC.MemberKind.Type)
- innerClasses.Add (new Class ( ((NCC.MemberKind.Type)m).tycon, cu));
- }
- }
-
- foreach (NCC.MType.Class mt in tinfo.GetDirectSuperTypes ())
- {
- if (mt.tycon.FrameworkTypeName != "System.Object" &&
- mt.tycon.FrameworkTypeName != "System.ValueType" &&
- mt.tycon.FrameworkTypeName != "System.Enum" &&
- mt.tycon.FrameworkTypeName != "System.Delegate" &&
- mt.tycon.FrameworkTypeName != "System.MulticastDelegate")
- baseTypes.Add (new ReturnType(mt));
- }
-
- LoadXml ();
- }
-
- public static DefaultRegion GetRegion (NCC.Location cloc)
- {
- try
- {
- DefaultRegion reg = new DefaultRegion (cloc.Line, cloc.Column,
- cloc.EndLine, cloc.EndColumn);
- reg.FileName = cloc.File;
- return reg;
- }
- catch
- {
- return GetRegion ();
- }
- }
-
- public static DefaultRegion GetRegion ()
- {
- DefaultRegion rd = new DefaultRegion (0, 0, 0, 0);
- rd.FileName = "";
- return rd;
- }
-
- internal static GenericParameter GetGenericParameter (NCC.StaticTyVar tyvar)
- {
- ReturnTypeList constraints = new ReturnTypeList ();
- foreach (NCC.MType constraint in tyvar.Constraints)
- constraints.Add (new ReturnType (constraint));
-
- return new GenericParameter (tyvar.Name, constraints, tyvar.SpecialConstraints);
- }
- }
-}
diff --git a/extras/NemerleBinding/Parser/SharpDevelopTree/Constructor.cs b/extras/NemerleBinding/Parser/SharpDevelopTree/Constructor.cs
deleted file mode 100644
index 753f34da30..0000000000
--- a/extras/NemerleBinding/Parser/SharpDevelopTree/Constructor.cs
+++ /dev/null
@@ -1,97 +0,0 @@
-// created on 06.08.2003 at 12:35
-
-using MonoDevelop.Projects.Parser;
-using Nemerle.Completion;
-using SR = System.Reflection;
-using NCC = Nemerle.Compiler;
-using Nemerle.Compiler.Typedtree;
-
-namespace NemerleBinding.Parser.SharpDevelopTree
-{
- public class Constructor : DefaultMethod, INemerleMethod
- {
- NCC.IMethod _member;
- public NCC.IMethod Member
- {
- get { return _member; }
- }
-
- public Constructor (IClass declaringType, SR.MethodInfo tinfo)
- {
- this.declaringType = declaringType;
-
- ModifierEnum mod = (ModifierEnum)0;
- if (tinfo.IsPrivate)
- mod |= ModifierEnum.Private;
- if (tinfo.IsAssembly)
- mod |= ModifierEnum.Internal;
- if (tinfo.IsFamily)
- mod |= ModifierEnum.Protected;
- if (tinfo.IsPublic)
- mod |= ModifierEnum.Public;
- if (tinfo.IsAbstract)
- mod |= ModifierEnum.Abstract;
- if (tinfo.IsFinal)
- mod |= ModifierEnum.Sealed;
- if (tinfo.IsStatic)
- mod |= ModifierEnum.Static;
- if (tinfo.IsVirtual)
- mod |= ModifierEnum.Virtual;
-
- modifiers = mod;
-
- this.FullyQualifiedName = tinfo.Name;
- this.region = Class.GetRegion();
- this.bodyRegion = Class.GetRegion();
- this._member = null;
-
- // Add parameters
- foreach (SR.ParameterInfo pinfo in tinfo.GetParameters())
- parameters.Add(new Parameter(this, pinfo, null));
- }
-
- public Constructor (IClass declaringType, NCC.IMethod tinfo)
- {
- this.declaringType = declaringType;
-
- ModifierEnum mod = (ModifierEnum)0;
- if ((tinfo.Attributes & NCC.NemerleAttributes.Private) != 0)
- mod |= ModifierEnum.Private;
- if ((tinfo.Attributes & NCC.NemerleAttributes.Internal) != 0)
- mod |= ModifierEnum.Internal;
- if ((tinfo.Attributes & NCC.NemerleAttributes.Protected) != 0)
- mod |= ModifierEnum.Protected;
- if ((tinfo.Attributes & NCC.NemerleAttributes.Public) != 0)
- mod |= ModifierEnum.Public;
- if ((tinfo.Attributes & NCC.NemerleAttributes.Abstract) != 0)
- mod |= ModifierEnum.Abstract;
- if ((tinfo.Attributes & NCC.NemerleAttributes.Sealed) != 0)
- mod |= ModifierEnum.Sealed;
- if ((tinfo.Attributes & NCC.NemerleAttributes.Static) != 0)
- mod |= ModifierEnum.Static;
- if ((tinfo.Attributes & NCC.NemerleAttributes.Override) != 0)
- mod |= ModifierEnum.Override;
- if ((tinfo.Attributes & NCC.NemerleAttributes.Virtual) != 0)
- mod |= ModifierEnum.Virtual;
- if ((tinfo.Attributes & NCC.NemerleAttributes.New) != 0)
- mod |= ModifierEnum.New;
- if ((tinfo.Attributes & NCC.NemerleAttributes.Extern) != 0)
- mod |= ModifierEnum.Extern;
-
- modifiers = mod;
- this.FullyQualifiedName = "this";
-
- returnType = new ReturnType ((NCC.MType)tinfo.ReturnType);
- this.region = Class.GetRegion (tinfo.Location);
- if (tinfo is NCC.MemberBuilder)
- this.bodyRegion = Class.GetRegion (((NCC.MemberBuilder)tinfo).BodyLocation);
- else
- this.bodyRegion = Class.GetRegion (tinfo.Location);
- this._member = tinfo;
-
- // Add parameters
- foreach (Fun_parm pinfo in tinfo.GetParameters ())
- parameters.Add(new Parameter(this, pinfo, null));
- }
- }
-}
diff --git a/extras/NemerleBinding/Parser/SharpDevelopTree/Event.cs b/extras/NemerleBinding/Parser/SharpDevelopTree/Event.cs
deleted file mode 100644
index 563231a88a..0000000000
--- a/extras/NemerleBinding/Parser/SharpDevelopTree/Event.cs
+++ /dev/null
@@ -1,85 +0,0 @@
-// created on 06.08.2003 at 12:30
-
-using MonoDevelop.Projects.Parser;
-using Nemerle.Completion;
-using SR = System.Reflection;
-using NCC = Nemerle.Compiler;
-
-using System.Xml;
-
-namespace NemerleBinding.Parser.SharpDevelopTree
-{
- public class Event : DefaultEvent
- {
- public void AddModifier(ModifierEnum m)
- {
- modifiers = modifiers | m;
- }
-
- void LoadXml (Class declaring)
- {
- if (declaring.xmlHelp != null) {
- XmlNode node = declaring.xmlHelp.SelectSingleNode ("/Type/Members/Member[@MemberName='" + FullyQualifiedName + "']/Docs/summary");
- if (node != null) {
- Documentation = node.InnerXml;
- }
- }
- }
-
- public Event (Class declaringType, SR.EventInfo tinfo)
- {
- this.declaringType = declaringType;
-
- ModifierEnum mod = (ModifierEnum)0;
- modifiers = mod;
-
- this.FullyQualifiedName = tinfo.Name;
- returnType = new ReturnType(tinfo.EventHandlerType);
- this.region = Class.GetRegion();
- this.bodyRegion = Class.GetRegion();
-
- LoadXml (declaringType);
- }
-
- public Event (Class declaringType, NCC.IEvent tinfo)
- {
- this.declaringType = declaringType;
-
- ModifierEnum mod = (ModifierEnum)0;
- if ((tinfo.Attributes & NCC.NemerleAttributes.Private) != 0)
- mod |= ModifierEnum.Private;
- if ((tinfo.Attributes & NCC.NemerleAttributes.Internal) != 0)
- mod |= ModifierEnum.Internal;
- if ((tinfo.Attributes & NCC.NemerleAttributes.Protected) != 0)
- mod |= ModifierEnum.Protected;
- if ((tinfo.Attributes & NCC.NemerleAttributes.Public) != 0)
- mod |= ModifierEnum.Public;
- if ((tinfo.Attributes & NCC.NemerleAttributes.Abstract) != 0)
- mod |= ModifierEnum.Abstract;
- if ((tinfo.Attributes & NCC.NemerleAttributes.Sealed) != 0)
- mod |= ModifierEnum.Sealed;
- if ((tinfo.Attributes & NCC.NemerleAttributes.Static) != 0)
- mod |= ModifierEnum.Static;
- if ((tinfo.Attributes & NCC.NemerleAttributes.Override) != 0)
- mod |= ModifierEnum.Override;
- if ((tinfo.Attributes & NCC.NemerleAttributes.Virtual) != 0)
- mod |= ModifierEnum.Virtual;
- if ((tinfo.Attributes & NCC.NemerleAttributes.New) != 0)
- mod |= ModifierEnum.New;
- if ((tinfo.Attributes & NCC.NemerleAttributes.Extern) != 0)
- mod |= ModifierEnum.Extern;
-
- modifiers = mod;
-
- this.FullyQualifiedName = tinfo.Name;
- returnType = new ReturnType (tinfo.GetMemType ());
- this.region = Class.GetRegion (tinfo.Location);
- if (tinfo is NCC.MemberBuilder)
- this.bodyRegion = Class.GetRegion (((NCC.MemberBuilder)tinfo).BodyLocation);
- else
- this.bodyRegion = Class.GetRegion (tinfo.Location);
-
- LoadXml (declaringType);
- }
- }
-}
diff --git a/extras/NemerleBinding/Parser/SharpDevelopTree/Field.cs b/extras/NemerleBinding/Parser/SharpDevelopTree/Field.cs
deleted file mode 100644
index fca8bfeef5..0000000000
--- a/extras/NemerleBinding/Parser/SharpDevelopTree/Field.cs
+++ /dev/null
@@ -1,95 +0,0 @@
-// created on 04.08.2003 at 18:06
-
-using MonoDevelop.Projects.Parser;
-using Nemerle.Completion;
-using SR = System.Reflection;
-using NCC = Nemerle.Compiler;
-
-using System.Xml;
-
-namespace NemerleBinding.Parser.SharpDevelopTree
-{
- public class Field : DefaultField
- {
- void LoadXml (Class declaring)
- {
- if (declaring.xmlHelp != null) {
- XmlNode node = declaring.xmlHelp.SelectSingleNode ("/Type/Members/Member[@MemberName='" + FullyQualifiedName + "']/Docs/summary");
- if (node != null) {
- Documentation = node.InnerXml;
- }
- }
- }
-
- public Field (Class declaringType, SR.FieldInfo tinfo)
- {
- this.declaringType = declaringType;
-
- ModifierEnum mod = (ModifierEnum)0;
- if (tinfo.IsPrivate)
- mod |= ModifierEnum.Private;
- if (tinfo.IsAssembly)
- mod |= ModifierEnum.Internal;
- if (tinfo.IsFamily)
- mod |= ModifierEnum.Protected;
- if (tinfo.IsPublic)
- mod |= ModifierEnum.Public;
- if (tinfo.IsStatic)
- mod |= ModifierEnum.Static;
- if (tinfo.IsLiteral)
- mod |= ModifierEnum.Const;
-
- modifiers = mod;
-
- this.FullyQualifiedName = tinfo.Name;
- returnType = new ReturnType(tinfo.FieldType);
- this.region = Class.GetRegion();
-
- LoadXml (declaringType);
- }
-
- public Field (Class declaringType, NCC.IField tinfo)
- {
- this.declaringType = declaringType;
-
- ModifierEnum mod = (ModifierEnum)0;
- if ((tinfo.Attributes & NCC.NemerleAttributes.Private) != 0)
- mod |= ModifierEnum.Private;
- if ((tinfo.Attributes & NCC.NemerleAttributes.Internal) != 0)
- mod |= ModifierEnum.Internal;
- if ((tinfo.Attributes & NCC.NemerleAttributes.Protected) != 0)
- mod |= ModifierEnum.Protected;
- if ((tinfo.Attributes & NCC.NemerleAttributes.Public) != 0)
- mod |= ModifierEnum.Public;
- if ((tinfo.Attributes & NCC.NemerleAttributes.Abstract) != 0)
- mod |= ModifierEnum.Abstract;
- if ((tinfo.Attributes & NCC.NemerleAttributes.Sealed) != 0)
- mod |= ModifierEnum.Sealed;
- if ((tinfo.Attributes & NCC.NemerleAttributes.Static) != 0)
- mod |= ModifierEnum.Static;
- if ((tinfo.Attributes & NCC.NemerleAttributes.Override) != 0)
- mod |= ModifierEnum.Override;
- if ((tinfo.Attributes & NCC.NemerleAttributes.Virtual) != 0)
- mod |= ModifierEnum.Virtual;
- if ((tinfo.Attributes & NCC.NemerleAttributes.New) != 0)
- mod |= ModifierEnum.New;
- if ((tinfo.Attributes & NCC.NemerleAttributes.Extern) != 0)
- mod |= ModifierEnum.Extern;
-
- if (!tinfo.IsMutable)
- mod |= ModifierEnum.Readonly;
- if (tinfo.IsVolatile)
- mod |= ModifierEnum.Volatile;
- if (tinfo.IsLiteral)
- mod |= ModifierEnum.Const;
-
- modifiers = mod;
-
- this.FullyQualifiedName = tinfo.Name;
- returnType = new ReturnType (tinfo.GetMemType ());
- this.region = Class.GetRegion (tinfo.Location);
-
- LoadXml (declaringType);
- }
- }
-}
diff --git a/extras/NemerleBinding/Parser/SharpDevelopTree/Indexer.cs b/extras/NemerleBinding/Parser/SharpDevelopTree/Indexer.cs
deleted file mode 100644
index 9d698249fb..0000000000
--- a/extras/NemerleBinding/Parser/SharpDevelopTree/Indexer.cs
+++ /dev/null
@@ -1,129 +0,0 @@
-// created on 06.08.2003 at 12:34
-
-using MonoDevelop.Projects.Parser;
-using Nemerle.Completion;
-using SR = System.Reflection;
-using NCC = Nemerle.Compiler;
-using Nemerle.Compiler.Typedtree;
-
-using System.Xml;
-
-namespace NemerleBinding.Parser.SharpDevelopTree
-{
- public class Indexer : DefaultIndexer
- {
- XmlNode node;
-
- void LoadXml (Class declaring)
- {
- if (declaring.xmlHelp != null) {
- node = declaring.xmlHelp.SelectSingleNode ("/Type/Members/Member[@MemberName='" + FullyQualifiedName + "']");
- if (node != null) {
- XmlNode docNode = node.SelectSingleNode ("Docs/summary");
- if (docNode != null) {
- Documentation = node.InnerXml;
- }
- }
- }
- }
-
- internal Method Getter;
- internal Method Setter;
-
- public Indexer (Class declaringType, SR.PropertyInfo tinfo)
- {
- this.declaringType = declaringType;
-
- ModifierEnum mod = (ModifierEnum)0;
- modifiers = mod;
-
- this.FullyQualifiedName = tinfo.Name;
- returnType = new ReturnType(tinfo.PropertyType);
- this.region = Class.GetRegion();
- this.bodyRegion = Class.GetRegion();
-
- LoadXml (declaringType);
-
- // Add parameters
- foreach (SR.ParameterInfo pinfo in tinfo.GetIndexParameters())
- parameters.Add(new Parameter(this, pinfo, node));
- }
-
- public Indexer (Class declaringType, NCC.IProperty tinfo)
- {
- this.declaringType = declaringType;
-
- ModifierEnum mod = (ModifierEnum)0;
- if ((tinfo.Attributes & NCC.NemerleAttributes.Private) != 0)
- mod |= ModifierEnum.Private;
- if ((tinfo.Attributes & NCC.NemerleAttributes.Internal) != 0)
- mod |= ModifierEnum.Internal;
- if ((tinfo.Attributes & NCC.NemerleAttributes.Protected) != 0)
- mod |= ModifierEnum.Protected;
- if ((tinfo.Attributes & NCC.NemerleAttributes.Public) != 0)
- mod |= ModifierEnum.Public;
- if ((tinfo.Attributes & NCC.NemerleAttributes.Abstract) != 0)
- mod |= ModifierEnum.Abstract;
- if ((tinfo.Attributes & NCC.NemerleAttributes.Sealed) != 0)
- mod |= ModifierEnum.Sealed;
- if ((tinfo.Attributes & NCC.NemerleAttributes.Static) != 0)
- mod |= ModifierEnum.Static;
- if ((tinfo.Attributes & NCC.NemerleAttributes.Override) != 0)
- mod |= ModifierEnum.Override;
- if ((tinfo.Attributes & NCC.NemerleAttributes.Virtual) != 0)
- mod |= ModifierEnum.Virtual;
- if ((tinfo.Attributes & NCC.NemerleAttributes.New) != 0)
- mod |= ModifierEnum.New;
- if ((tinfo.Attributes & NCC.NemerleAttributes.Extern) != 0)
- mod |= ModifierEnum.Extern;
-
- modifiers = mod;
-
- this.FullyQualifiedName = tinfo.Name;
- returnType = new ReturnType (tinfo.GetMemType ());
- this.region = Class.GetRegion (tinfo.Location);
- if (tinfo is NCC.MemberBuilder)
- this.bodyRegion = Class.GetRegion (((NCC.MemberBuilder)tinfo).BodyLocation);
- else
- this.bodyRegion = Class.GetRegion (tinfo.Location);
-
- NCC.IMethod getter = tinfo.GetGetter ();
- NCC.IMethod setter = tinfo.GetSetter ();
- if (getter != null)
- {
- this.Getter = new Method(declaringType, getter);
- if (getter is NCC.MemberBuilder)
- getterRegion = Class.GetRegion (((NCC.MemberBuilder)getter).BodyLocation);
- else
- getterRegion = Class.GetRegion(getter.Location);
- }
- if (setter != null)
- {
- this.Setter = new Method(declaringType, setter);
- if (setter is NCC.MemberBuilder)
- setterRegion = Class.GetRegion (((NCC.MemberBuilder)setter).BodyLocation);
- else
- setterRegion = Class.GetRegion(setter.Location);
- }
-
- LoadXml (declaringType);
-
- // Add parameters
- if (getter != null)
- {
- foreach (Fun_parm pinfo in getter.GetParameters ())
- parameters.Add(new Parameter(this, pinfo, node));
- }
- }
-
- public new IRegion GetterRegion {
- get { return getterRegion; }
- set { getterRegion = value; }
- }
-
- public new IRegion SetterRegion {
- get { return setterRegion; }
- set { setterRegion = value; }
- }
- }
-}
diff --git a/extras/NemerleBinding/Parser/SharpDevelopTree/Local.cs b/extras/NemerleBinding/Parser/SharpDevelopTree/Local.cs
deleted file mode 100644
index 14ae8f3afe..0000000000
--- a/extras/NemerleBinding/Parser/SharpDevelopTree/Local.cs
+++ /dev/null
@@ -1,35 +0,0 @@
-// created on 04.08.2003 at 18:06
-
-using MonoDevelop.Projects.Parser;
-using Nemerle.Completion;
-using SR = System.Reflection;
-using NCC = Nemerle.Compiler;
-
-using System.Xml;
-
-namespace NemerleBinding.Parser.SharpDevelopTree
-{
- public class Local : DefaultField
- {
- public void AddModifier(ModifierEnum m)
- {
- modifiers = modifiers | m;
- }
-
- public Local (Class declaringType, NCC.LocalValue tinfo)
- {
- this.declaringType = declaringType;
-
- ModifierEnum mod = ModifierEnum.Public;
-
- if (!tinfo.IsMutable)
- mod |= ModifierEnum.Readonly;
-
- modifiers = mod;
-
- this.FullyQualifiedName = tinfo.Name;
- returnType = new ReturnType (tinfo.Type.Fix ());
- this.region = Class.GetRegion ();
- }
- }
-}
diff --git a/extras/NemerleBinding/Parser/SharpDevelopTree/Method.cs b/extras/NemerleBinding/Parser/SharpDevelopTree/Method.cs
deleted file mode 100644
index 5f4ef56cf6..0000000000
--- a/extras/NemerleBinding/Parser/SharpDevelopTree/Method.cs
+++ /dev/null
@@ -1,318 +0,0 @@
-// created on 06.08.2003 at 12:35
-using System;
-using MonoDevelop.Projects.Parser;
-using Nemerle.Completion;
-using SR = System.Reflection;
-using NCC = Nemerle.Compiler;
-using Nemerle.Compiler.Typedtree;
-
-using System.Xml;
-
-namespace NemerleBinding.Parser.SharpDevelopTree
-{
- public interface INemerleMethod
- {
- NCC.IMethod Member { get; }
- }
-
- public class Method : DefaultMethod, INemerleMethod
- {
- NCC.IMethod _member;
- public NCC.IMethod Member
- {
- get { return _member; }
- }
-
- XmlNode node;
- void LoadXml (Class declaring, SR.MethodInfo methodBase)
- {
- if (declaring.xmlHelp != null) {
- XmlNodeList nodes = declaring.xmlHelp.SelectNodes ("/Type/Members/Member[@MemberName='" + FullyQualifiedName + "']");
- if (nodes != null && nodes.Count > 0) {
- if (nodes.Count == 1) {
- node = nodes[0];
- } else {
- node = FindMatch (nodes, methodBase);
- }
- if (node != null) {
- XmlNode docNode = node.SelectSingleNode ("Docs/summary");
- if (docNode != null) {
- Documentation = docNode.InnerXml;
- }
- }
- }
- }
- }
-
- XmlNode FindMatch (XmlNodeList nodes, SR.MethodInfo methodBase)
- {
- SR.ParameterInfo[] p = methodBase.GetParameters ();
- string s = "";
- foreach (XmlNode node in nodes) {
- XmlNodeList paramList = node.SelectNodes ("Parameters/*");
- s += paramList.Count + " - " + p.Length + "\n";
- if (p.Length == 0 && paramList.Count == 0) return node;
- if (p.Length != paramList.Count) continue;
- bool matched = true;
- for (int i = 0; i < p.Length; i++) {
- if (p[i].ParameterType.ToString () != paramList[i].Attributes["Type"].Value) {
- matched = false;
- }
- }
- if (matched)
- return node;
- }
- return null;
- }
-
- void LoadXml (Class declaring, NCC.IMethod methodBase)
- {
- if (declaring.xmlHelp != null) {
- XmlNodeList nodes = declaring.xmlHelp.SelectNodes ("/Type/Members/Member[@MemberName='" + methodBase.Name.ToString () + "']");
- if (nodes != null && nodes.Count > 0) {
- if (nodes.Count == 1) {
- node = nodes[0];
- } else {
- node = FindMatch (nodes, methodBase);
- }
- if (node != null) {
- XmlNode docNode = node.SelectSingleNode ("Docs/summary");
- if (docNode != null) {
- Documentation = docNode.InnerXml;
- }
- }
- }
- }
- }
-
- XmlNode FindMatch (XmlNodeList nodes, NCC.IMethod methodBase)
- {
- Nemerle.Core.list<Fun_parm> p = methodBase.GetParameters ();
- foreach (XmlNode node in nodes) {
- XmlNodeList paramList = node.SelectNodes ("Parameters/*");
- if (p.Length == 0 && paramList.Count == 0) return node;
- if (p.Length != paramList.Count) continue;
- try
- {
- bool matched = true;
- for (int i = 0; i < paramList.Count; i++) {
- Fun_parm k = p.Nth(i);
- if (k.ty is NCC.MType.Class)
- {
- string pname = ((NCC.MType.Class)k.ty).tycon.FrameworkTypeName;
- if (pname != paramList[i].Attributes["Type"].Value) {
- matched = false;
- break;
- }
- }
- else if (k.ty is NCC.MType.Array)
- {
- NCC.MType.Array zas = (NCC.MType.Array)k.ty;
- if (zas.t is NCC.MType.Class)
- {
- string pname = ((NCC.MType.Class)zas.t).tycon.FrameworkTypeName + "[]";
- if (pname != paramList[i].Attributes["Type"].Value) {
- matched = false;
- break;
- }
- }
- }
- else if (k.ty is NCC.MType.Ref)
- {
- NCC.MType.Ref zas = (NCC.MType.Ref)k.ty;
- if (zas.t is NCC.MType.Class)
- {
- string pname = ((NCC.MType.Class)zas.t).tycon.FrameworkTypeName + "&";
- if (pname != paramList[i].Attributes["Type"].Value) {
- matched = false;
- break;
- }
- }
- }
- else
- {
- matched = false;
- break;
- }
- }
- if (matched)
- return node;
- }
- catch { }
- }
- return null;
- }
-
- public Method (Class declaringType, SR.MethodInfo tinfo)
- {
- this.declaringType = declaringType;
-
- ModifierEnum mod = (ModifierEnum)0;
- if (tinfo.IsPrivate)
- mod |= ModifierEnum.Private;
- if (tinfo.IsAssembly)
- mod |= ModifierEnum.Internal;
- if (tinfo.IsFamily)
- mod |= ModifierEnum.Protected;
- if (tinfo.IsPublic)
- mod |= ModifierEnum.Public;
- if (tinfo.IsAbstract)
- mod |= ModifierEnum.Abstract;
- if (tinfo.IsFinal)
- mod |= ModifierEnum.Sealed;
- if (tinfo.IsStatic)
- mod |= ModifierEnum.Static;
- if (tinfo.IsVirtual)
- mod |= ModifierEnum.Virtual;
-
- modifiers = mod;
-
- this.FullyQualifiedName = tinfo.Name;
-
- if (tinfo.Name == "op_Addition") this.FullyQualifiedName = "@+";
- else if (tinfo.Name == "op_Subtraction") this.FullyQualifiedName = "@-";
- else if (tinfo.Name == "op_Multiply") this.FullyQualifiedName = "@*";
- else if (tinfo.Name == "op_Division") this.FullyQualifiedName = "@/";
- else if (tinfo.Name == "op_Modulus") this.FullyQualifiedName = "@%";
- else if (tinfo.Name == "op_ExclusiveOr") this.FullyQualifiedName = "@^";
- else if (tinfo.Name == "op_BitwiseAnd") this.FullyQualifiedName = "@&";
- else if (tinfo.Name == "op_BitwiseOr") this.FullyQualifiedName = "@|";
- else if (tinfo.Name == "op_LogicalAnd") this.FullyQualifiedName = "@&&";
- else if (tinfo.Name == "op_LogicalOr") this.FullyQualifiedName = "@||";
- else if (tinfo.Name == "op_Assign") this.FullyQualifiedName = "@=";
- else if (tinfo.Name == "op_LeftShift") this.FullyQualifiedName = "@<<";
- else if (tinfo.Name == "op_RightShift") this.FullyQualifiedName = "@>>";
- else if (tinfo.Name == "op_Equality") this.FullyQualifiedName = "@==";
- else if (tinfo.Name == "op_GreaterThan") this.FullyQualifiedName = "@>";
- else if (tinfo.Name == "op_LessThan") this.FullyQualifiedName = "@<";
- else if (tinfo.Name == "op_Inequality") this.FullyQualifiedName = "@!=";
- else if (tinfo.Name == "op_GreaterThanOrEqual") this.FullyQualifiedName = "@>=";
- else if (tinfo.Name == "op_LessThanOrEqual") this.FullyQualifiedName = "@<=";
- else if (tinfo.Name == "op_MultiplicationAssignment") this.FullyQualifiedName = "@*=";
- else if (tinfo.Name == "op_SubtractionAssignment") this.FullyQualifiedName = "@-=";
- else if (tinfo.Name == "op_ExclusiveOrAssignment") this.FullyQualifiedName = "@^=";
- else if (tinfo.Name == "op_LeftShiftAssignment") this.FullyQualifiedName = "@<<=";
- else if (tinfo.Name == "op_ModulusAssignment") this.FullyQualifiedName = "@%=";
- else if (tinfo.Name == "op_AdditionAssignment") this.FullyQualifiedName = "@+=";
- else if (tinfo.Name == "op_BitwiseAndAssignment") this.FullyQualifiedName = "@&=";
- else if (tinfo.Name == "op_BitwiseOrAssignment") this.FullyQualifiedName = "@|=";
- else if (tinfo.Name == "op_Comma") this.FullyQualifiedName = "@,";
- else if (tinfo.Name == "op_DivisionAssignment") this.FullyQualifiedName = "@/=";
- else if (tinfo.Name == "op_Implicit") this.FullyQualifiedName = "@:";
- else if (tinfo.Name == "op_Explicit") this.FullyQualifiedName = "@:>";
- else if (tinfo.Name == "op_UnaryPlus") this.FullyQualifiedName = "@+";
- else if (tinfo.Name == "op_UnaryNegation") this.FullyQualifiedName = "@-";
- else if (tinfo.Name == "op_Decrement") this.FullyQualifiedName = "@--";
- else if (tinfo.Name == "op_Increment") this.FullyQualifiedName = "@++";
- else if (tinfo.Name == "op_OnesComplement") this.FullyQualifiedName = "@~";
- else if (tinfo.Name == "op_LogicalNot") this.FullyQualifiedName = "@!";
-
- returnType = new ReturnType(tinfo.ReturnType);
- this.region = Class.GetRegion();
- this.bodyRegion = Class.GetRegion();
- this._member = null;
-
- LoadXml (declaringType, tinfo);
-
- // Add parameters
- foreach (SR.ParameterInfo pinfo in tinfo.GetParameters())
- parameters.Add(new Parameter(this, pinfo, node));
- }
-
- public Method (Class declaringType, NCC.IMethod tinfo)
- {
- this.declaringType = declaringType;
-
- ModifierEnum mod = (ModifierEnum)0;
- if ((tinfo.Attributes & NCC.NemerleAttributes.Private) != 0)
- mod |= ModifierEnum.Private;
- if ((tinfo.Attributes & NCC.NemerleAttributes.Internal) != 0)
- mod |= ModifierEnum.Internal;
- if ((tinfo.Attributes & NCC.NemerleAttributes.Protected) != 0)
- mod |= ModifierEnum.Protected;
- if ((tinfo.Attributes & NCC.NemerleAttributes.Public) != 0)
- mod |= ModifierEnum.Public;
- if ((tinfo.Attributes & NCC.NemerleAttributes.Abstract) != 0)
- mod |= ModifierEnum.Abstract;
- if ((tinfo.Attributes & NCC.NemerleAttributes.Sealed) != 0)
- mod |= ModifierEnum.Sealed;
- if ((tinfo.Attributes & NCC.NemerleAttributes.Static) != 0)
- mod |= ModifierEnum.Static;
- if ((tinfo.Attributes & NCC.NemerleAttributes.Override) != 0)
- mod |= ModifierEnum.Override;
- if ((tinfo.Attributes & NCC.NemerleAttributes.Virtual) != 0)
- mod |= ModifierEnum.Virtual;
- if ((tinfo.Attributes & NCC.NemerleAttributes.New) != 0)
- mod |= ModifierEnum.New;
- if ((tinfo.Attributes & NCC.NemerleAttributes.Extern) != 0)
- mod |= ModifierEnum.Extern;
-
- modifiers = mod;
- this.FullyQualifiedName = tinfo.Name;
-
- if (tinfo.GetHeader().typarms.Length > 0)
- {
- this.genericParameters = new GenericParameterList ();
- foreach (NCC.StaticTyVar typarm in tinfo.GetHeader().typarms)
- {
- genericParameters.Add (Class.GetGenericParameter (typarm));
- }
- }
-
- if (tinfo.Name == "op_Addition") this.FullyQualifiedName = "@+";
- else if (tinfo.Name == "op_Subtraction") this.FullyQualifiedName = "@-";
- else if (tinfo.Name == "op_Multiply") this.FullyQualifiedName = "@*";
- else if (tinfo.Name == "op_Division") this.FullyQualifiedName = "@/";
- else if (tinfo.Name == "op_Modulus") this.FullyQualifiedName = "@%";
- else if (tinfo.Name == "op_ExclusiveOr") this.FullyQualifiedName = "@^";
- else if (tinfo.Name == "op_BitwiseAnd") this.FullyQualifiedName = "@&";
- else if (tinfo.Name == "op_BitwiseOr") this.FullyQualifiedName = "@|";
- else if (tinfo.Name == "op_LogicalAnd") this.FullyQualifiedName = "@&&";
- else if (tinfo.Name == "op_LogicalOr") this.FullyQualifiedName = "@||";
- else if (tinfo.Name == "op_Assign") this.FullyQualifiedName = "@=";
- else if (tinfo.Name == "op_LeftShift") this.FullyQualifiedName = "@<<";
- else if (tinfo.Name == "op_RightShift") this.FullyQualifiedName = "@>>";
- else if (tinfo.Name == "op_Equality") this.FullyQualifiedName = "@==";
- else if (tinfo.Name == "op_GreaterThan") this.FullyQualifiedName = "@>";
- else if (tinfo.Name == "op_LessThan") this.FullyQualifiedName = "@<";
- else if (tinfo.Name == "op_Inequality") this.FullyQualifiedName = "@!=";
- else if (tinfo.Name == "op_GreaterThanOrEqual") this.FullyQualifiedName = "@>=";
- else if (tinfo.Name == "op_LessThanOrEqual") this.FullyQualifiedName = "@<=";
- else if (tinfo.Name == "op_MultiplicationAssignment") this.FullyQualifiedName = "@*=";
- else if (tinfo.Name == "op_SubtractionAssignment") this.FullyQualifiedName = "@-=";
- else if (tinfo.Name == "op_ExclusiveOrAssignment") this.FullyQualifiedName = "@^=";
- else if (tinfo.Name == "op_LeftShiftAssignment") this.FullyQualifiedName = "@<<=";
- else if (tinfo.Name == "op_ModulusAssignment") this.FullyQualifiedName = "@%=";
- else if (tinfo.Name == "op_AdditionAssignment") this.FullyQualifiedName = "@+=";
- else if (tinfo.Name == "op_BitwiseAndAssignment") this.FullyQualifiedName = "@&=";
- else if (tinfo.Name == "op_BitwiseOrAssignment") this.FullyQualifiedName = "@|=";
- else if (tinfo.Name == "op_Comma") this.FullyQualifiedName = "@,";
- else if (tinfo.Name == "op_DivisionAssignment") this.FullyQualifiedName = "@/=";
- else if (tinfo.Name == "op_Implicit") this.FullyQualifiedName = "@:";
- else if (tinfo.Name == "op_Explicit") this.FullyQualifiedName = "@:>";
- else if (tinfo.Name == "op_UnaryPlus") this.FullyQualifiedName = "@+";
- else if (tinfo.Name == "op_UnaryNegation") this.FullyQualifiedName = "@-";
- else if (tinfo.Name == "op_Decrement") this.FullyQualifiedName = "@--";
- else if (tinfo.Name == "op_Increment") this.FullyQualifiedName = "@++";
- else if (tinfo.Name == "op_OnesComplement") this.FullyQualifiedName = "@~";
- else if (tinfo.Name == "op_LogicalNot") this.FullyQualifiedName = "@!";
-
- returnType = new ReturnType ((NCC.MType)tinfo.ReturnType);
- this.region = Class.GetRegion (tinfo.Location);
- if (tinfo is NCC.MemberBuilder)
- this.bodyRegion = Class.GetRegion (((NCC.MemberBuilder)tinfo).BodyLocation);
- else
- this.bodyRegion = Class.GetRegion (tinfo.Location);
- this._member = tinfo;
-
- LoadXml (declaringType, tinfo);
-
- // Add parameters
- foreach (Fun_parm pinfo in tinfo.GetParameters ())
- {
- try { parameters.Add(new Parameter(this, pinfo, node)); }
- catch { }
- }
- }
- }
-}
diff --git a/extras/NemerleBinding/Parser/SharpDevelopTree/Modifier.cs b/extras/NemerleBinding/Parser/SharpDevelopTree/Modifier.cs
deleted file mode 100644
index 2698006aba..0000000000
--- a/extras/NemerleBinding/Parser/SharpDevelopTree/Modifier.cs
+++ /dev/null
@@ -1,53 +0,0 @@
-// created on 07.08.2003 at 20:12
-using System;
-using MonoDevelop.Projects.Parser;
-using MonoDevelop.Projects;
-
-namespace NemerleBinding.Parser.SharpDevelopTree
-{
- [Flags]
- public enum Modifier
- {
- // Access
- Private = 0x0001,
- Internal = 0x0002,
- Protected = 0x0004,
- Public = 0x0008,
-
- // Scope
- Abstract = 0x0010,
- Virtual = 0x0020,
- Sealed = 0x0040,
- Static = 0x0080,
- Override = 0x0100,
- Readonly = 0x0200,
- Const = 0X0400,
- New = 0x0800,
-
- // Special
- Extern = 0x1000,
- Volatile = 0x2000,
- Unsafe = 0x4000,
- Mutable = 0x8000,
-
- // Modifier scopes
- None = 0x0000,
-
- Classes = New | Public | Protected | Internal | Private | Abstract | Sealed | Static | Unsafe,
- Fields = New | Public | Protected | Internal | Private | Static | Readonly | Volatile | Unsafe | Mutable,
- PropertysEventsMethods = New | Public | Protected | Internal | Private | Static | Virtual | Sealed | Override | Abstract | Extern | Unsafe,
- Indexers = New | Public | Protected | Internal | Private | Virtual | Sealed | Override | Abstract | Extern,
- Operators = Public | Static | Extern,
- Constants = New | Public | Protected | Internal | Private,
- // FIXME: unsafe is not valid for enums
- StructsInterfacesEnumsDelegates = New | Public | Protected | Internal | Private | Unsafe,
- StaticConstructors = Extern | Static | Unsafe,
- Constructors = Public | Protected | Internal | Private | Extern,
-
- All = Private | Internal | Protected | Public |
- Abstract | Virtual | Sealed | Static |
- Override | Readonly | Const | New |
- Extern | Volatile | Unsafe | Mutable
- }
-
-}
diff --git a/extras/NemerleBinding/Parser/SharpDevelopTree/Parameter.cs b/extras/NemerleBinding/Parser/SharpDevelopTree/Parameter.cs
deleted file mode 100644
index 1b5c3e3e5c..0000000000
--- a/extras/NemerleBinding/Parser/SharpDevelopTree/Parameter.cs
+++ /dev/null
@@ -1,59 +0,0 @@
-// created on 07.08.2003 at 20:12
-
-using MonoDevelop.Projects.Parser;
-using Nemerle.Completion;
-using SR = System.Reflection;
-using NCC = Nemerle.Compiler;
-using Nemerle.Compiler.Typedtree;
-
-using System.Xml;
-
-namespace NemerleBinding.Parser.SharpDevelopTree
-{
- public class Parameter : DefaultParameter
- {
- void LoadXml(XmlNode methodNode)
- {
- if (methodNode != null) {
- XmlNode paramDocu = methodNode.SelectSingleNode("Docs/param[@name='" + name + "']");
- if (paramDocu != null) {
- documentation = paramDocu.InnerXml;
- }
- }
- }
-
- public Parameter (IMember declaringMember, Fun_parm pinfo, XmlNode docNode)
- {
- this.name = pinfo.Name;
- NCC.MType realType = (NCC.MType)pinfo.ty;
- if (realType is NCC.MType.Ref)
- {
- NCC.MType.Ref rt = (NCC.MType.Ref)realType;
- returnType = new ReturnType ((NCC.MType)rt.t.Fix ());
- modifier |= ParameterModifier.Ref;
- }
- else if (realType is NCC.MType.Out)
- {
- NCC.MType.Out rt = (NCC.MType.Out)realType;
- returnType = new ReturnType ((NCC.MType)rt.t.Fix ());
- modifier |= ParameterModifier.Out;
- }
- else
- {
- returnType = new ReturnType (realType);
- }
- this.declaringMember = declaringMember;
-
- try { LoadXml (docNode); } catch { }
- }
-
- public Parameter (IMember declaringMember, SR.ParameterInfo pinfo, XmlNode docNode)
- {
- this.name = pinfo.Name;
- returnType = new ReturnType(pinfo.ParameterType);
- this.declaringMember = declaringMember;
-
- try { LoadXml (docNode); } catch { }
- }
- }
-}
diff --git a/extras/NemerleBinding/Parser/SharpDevelopTree/Property.cs b/extras/NemerleBinding/Parser/SharpDevelopTree/Property.cs
deleted file mode 100644
index d7b3134a75..0000000000
--- a/extras/NemerleBinding/Parser/SharpDevelopTree/Property.cs
+++ /dev/null
@@ -1,103 +0,0 @@
-// created on 06.08.2003 at 12:36
-
-using MonoDevelop.Projects.Parser;
-using Nemerle.Completion;
-using SR = System.Reflection;
-using NCC = Nemerle.Compiler;
-
-using System.Xml;
-
-namespace NemerleBinding.Parser.SharpDevelopTree
-{
- public class Property : DefaultProperty
- {
- internal Method Getter;
- internal Method Setter;
-
- void LoadXml (Class declaring)
- {
- if (declaring.xmlHelp != null)
- {
- XmlNode node = declaring.xmlHelp.SelectSingleNode ("/Type/Members/Member[@MemberName='" + FullyQualifiedName + "']/Docs/summary");
- if (node != null) {
- Documentation = node.InnerXml;
- }
- }
- }
-
- public Property (Class declaringType, SR.PropertyInfo tinfo)
- {
- this.declaringType = declaringType;
-
- ModifierEnum mod = (ModifierEnum)0;
- modifiers = mod;
-
- this.FullyQualifiedName = tinfo.Name;
- returnType = new ReturnType(tinfo.PropertyType);
- this.region = Class.GetRegion();
- this.bodyRegion = Class.GetRegion();
-
- LoadXml (declaringType);
- }
-
- public Property (Class declaringType, NCC.IProperty tinfo)
- {
- this.declaringType = declaringType;
-
- ModifierEnum mod = (ModifierEnum)0;
- if ((tinfo.Attributes & NCC.NemerleAttributes.Private) != 0)
- mod |= ModifierEnum.Private;
- if ((tinfo.Attributes & NCC.NemerleAttributes.Internal) != 0)
- mod |= ModifierEnum.Internal;
- if ((tinfo.Attributes & NCC.NemerleAttributes.Protected) != 0)
- mod |= ModifierEnum.Protected;
- if ((tinfo.Attributes & NCC.NemerleAttributes.Public) != 0)
- mod |= ModifierEnum.Public;
- if ((tinfo.Attributes & NCC.NemerleAttributes.Abstract) != 0)
- mod |= ModifierEnum.Abstract;
- if ((tinfo.Attributes & NCC.NemerleAttributes.Sealed) != 0)
- mod |= ModifierEnum.Sealed;
- if ((tinfo.Attributes & NCC.NemerleAttributes.Static) != 0)
- mod |= ModifierEnum.Static;
- if ((tinfo.Attributes & NCC.NemerleAttributes.Override) != 0)
- mod |= ModifierEnum.Override;
- if ((tinfo.Attributes & NCC.NemerleAttributes.Virtual) != 0)
- mod |= ModifierEnum.Virtual;
- if ((tinfo.Attributes & NCC.NemerleAttributes.New) != 0)
- mod |= ModifierEnum.New;
- if ((tinfo.Attributes & NCC.NemerleAttributes.Extern) != 0)
- mod |= ModifierEnum.Extern;
-
- modifiers = mod;
-
- this.FullyQualifiedName = tinfo.Name;
- returnType = new ReturnType (tinfo.GetMemType ());
- this.region = Class.GetRegion (tinfo.Location);
- if (tinfo is NCC.MemberBuilder)
- this.bodyRegion = Class.GetRegion (((NCC.MemberBuilder)tinfo).BodyLocation);
- else
- this.bodyRegion = Class.GetRegion (tinfo.Location);
-
- NCC.IMethod getter = tinfo.GetGetter ();
- NCC.IMethod setter = tinfo.GetSetter ();
- if (getter != null)
- {
- this.Getter = new Method(declaringType, getter);
- if (getter is NCC.MemberBuilder)
- getterRegion = Class.GetRegion (((NCC.MemberBuilder)getter).BodyLocation);
- else
- getterRegion = Class.GetRegion(getter.Location);
- }
- if (setter != null)
- {
- this.Setter = new Method(declaringType, setter);
- if (setter is NCC.MemberBuilder)
- setterRegion = Class.GetRegion (((NCC.MemberBuilder)setter).BodyLocation);
- else
- setterRegion = Class.GetRegion(setter.Location);
- }
-
- LoadXml (declaringType);
- }
- }
-}
diff --git a/extras/NemerleBinding/Parser/SharpDevelopTree/ReturnType.cs b/extras/NemerleBinding/Parser/SharpDevelopTree/ReturnType.cs
deleted file mode 100644
index e000bc5faa..0000000000
--- a/extras/NemerleBinding/Parser/SharpDevelopTree/ReturnType.cs
+++ /dev/null
@@ -1,129 +0,0 @@
-// created on 04.08.2003 at 18:08
-
-using MonoDevelop.Projects.Parser;
-using Nemerle.Completion;
-using NCC = Nemerle.Compiler;
-
-namespace NemerleBinding.Parser.SharpDevelopTree
-{
- public class ReturnType : DefaultReturnType
- {
- public ReturnType (string fullyQualifiedName): base (fullyQualifiedName)
- {
- }
-
- public ReturnType(NCC.MType type)
- {
- base.arrayDimensions = new int[0];
- base.pointerNestingLevel = 0;
-
- if (type is NCC.MType.Class)
- {
- NCC.MType.Class t = (NCC.MType.Class)type;
- base.FullyQualifiedName = t.tycon.FrameworkTypeName
- .Replace ("`1", "")
- .Replace ("`2", "")
- .Replace ("`3", "")
- .Replace ("`4", "");
-
- if (t.args.Length > 0)
- {
- base.genericArguments = new ReturnTypeList ();
- foreach (NCC.TyVar tyvar in t.args)
- {
- base.genericArguments.Add (new ReturnType (tyvar.Fix ()));
- }
- }
- }
- else if (type is NCC.MType.TyVarRef)
- {
- base.FullyQualifiedName = ((NCC.MType.TyVarRef)type).tyvar.Name;
- }
- else if (type is NCC.MType.Fun)
- {
- // Use the plain type until Ambience works correctly
- base.FullyQualifiedName = Engine.GetNameFromType (type);
- }
- else if (type is NCC.MType.Tuple)
- {
- // Use the plain type until Ambience works correctly
- base.FullyQualifiedName = Engine.GetNameFromType (type);
- }
- else if (type is NCC.MType.Array)
- {
- NCC.MType.Array a = (NCC.MType.Array)type;
- ReturnType rtx = new ReturnType (a.t.Fix ());
- this.FullyQualifiedName = rtx.FullyQualifiedName;
- this.arrayDimensions = new int[rtx.ArrayDimensions.Length + 1];
- this.arrayDimensions[0] = a.rank;
- for (int i = 0; i < rtx.ArrayDimensions.Length; i++)
- this.arrayDimensions[i+1] = rtx.ArrayDimensions[i];
- }
- else if (type is NCC.MType.Void)
- {
- base.FullyQualifiedName = "System.Void";
- }
- else if (type is NCC.MType.Ref)
- {
- ReturnType rtx = new ReturnType (((NCC.MType.Ref)type).t.Fix ());
- this.FullyQualifiedName = rtx.FullyQualifiedName;
- this.arrayDimensions = rtx.ArrayDimensions;
- }
- else if (type is NCC.MType.Out)
- {
- ReturnType rtx = new ReturnType (((NCC.MType.Out)type).t.Fix ());
- this.FullyQualifiedName = rtx.FullyQualifiedName;
- this.arrayDimensions = rtx.ArrayDimensions;
- }
- }
-
- public ReturnType(System.Type type)
- {
- try
- {
- if (type.IsGenericParameter)
- {
- base.FullyQualifiedName = type.Name;
- }
- else
- {
- base.FullyQualifiedName = type.FullName
- .Replace ("`1", "")
- .Replace ("`2", "")
- .Replace ("`3", "")
- .Replace ("`4", "");
- }
- if (type.IsArray)
- base.arrayDimensions = new int[] { 1 };
-
- if (type.GetGenericArguments().Length > 0)
- {
- base.genericArguments = new ReturnTypeList ();
- foreach (System.Type gt in type.GetGenericArguments())
- {
- base.genericArguments.Add (new ReturnType (gt));
- }
- }
- }
- catch (System.Exception ex)
- {
- System.Console.WriteLine (ex.Message);
- System.Console.WriteLine (ex.StackTrace);
- base.FullyQualifiedName = "??";
- }
- }
-
- public ReturnType(string fullyQualifiedName, int[] arrayDimensions, int pointerNestingLevel)
- {
- this.FullyQualifiedName = fullyQualifiedName;
- this.arrayDimensions = arrayDimensions;
- this.pointerNestingLevel = pointerNestingLevel;
- }
-
- public ReturnType Clone()
- {
- return new ReturnType(FullyQualifiedName, arrayDimensions, pointerNestingLevel);
- }
-
- }
-}
diff --git a/extras/NemerleBinding/Project/NemerleParameters.cs b/extras/NemerleBinding/Project/NemerleParameters.cs
deleted file mode 100644
index e1a0de326f..0000000000
--- a/extras/NemerleBinding/Project/NemerleParameters.cs
+++ /dev/null
@@ -1,67 +0,0 @@
-using System;
-using System.Xml;
-using System.Diagnostics;
-
-using MonoDevelop.Projects;
-using MonoDevelop.Core.Serialization;
-
-namespace NemerleBinding
-{
- public class NemerleParameters: ICloneable
- {
- [ItemProperty("nostdmacros")]
- public bool nostdmacros = false;
-
- [ItemProperty("nostdlib")]
- public bool nostdlib = false;
-
- [ItemProperty("ot")]
- public bool ot = false;
-
- [ItemProperty("greedy")]
- public bool greedy = true;
-
- [ItemProperty("pedantic")]
- public bool pedantic = true;
-
- [ItemProperty("parameters")]
- public string parameters = String.Empty;
-
- public object Clone ()
- {
- return MemberwiseClone ();
- }
-
- public bool Nostdmacros
- {
- get { return nostdmacros; }
- set { nostdmacros = value; }
- }
- public bool Nostdlib
- {
- get { return nostdlib; }
- set { nostdlib = value; }
- }
- public bool Ot
- {
- get { return ot; }
- set { ot = value; }
- }
- public bool Greedy
- {
- get { return greedy; }
- set { greedy = value; }
- }
- public bool Pedantic
- {
- get { return pedantic; }
- set { pedantic = value; }
- }
-
- public string Parameters
- {
- get { return parameters; }
- set { parameters = value; }
- }
- }
-}
diff --git a/extras/NemerleBinding/icons/Nemerle.File.EmptyFile b/extras/NemerleBinding/icons/Nemerle.File.EmptyFile
deleted file mode 100644
index 217e541507..0000000000
--- a/extras/NemerleBinding/icons/Nemerle.File.EmptyFile
+++ /dev/null
Binary files differ
diff --git a/extras/NemerleBinding/icons/Nemerle.File.Form b/extras/NemerleBinding/icons/Nemerle.File.Form
deleted file mode 100644
index be72d03601..0000000000
--- a/extras/NemerleBinding/icons/Nemerle.File.Form
+++ /dev/null
Binary files differ
diff --git a/extras/NemerleBinding/icons/Nemerle.FileIcon b/extras/NemerleBinding/icons/Nemerle.FileIcon
deleted file mode 100644
index 37a44e5bf0..0000000000
--- a/extras/NemerleBinding/icons/Nemerle.FileIcon
+++ /dev/null
Binary files differ
diff --git a/extras/NemerleBinding/icons/Nemerle.Project.EmptyProject b/extras/NemerleBinding/icons/Nemerle.Project.EmptyProject
deleted file mode 100644
index 98a53fe6b5..0000000000
--- a/extras/NemerleBinding/icons/Nemerle.Project.EmptyProject
+++ /dev/null
Binary files differ
diff --git a/extras/NemerleBinding/icons/Nemerle.Project.Form b/extras/NemerleBinding/icons/Nemerle.Project.Form
deleted file mode 100644
index 7acb99fb6d..0000000000
--- a/extras/NemerleBinding/icons/Nemerle.Project.Form
+++ /dev/null
Binary files differ
diff --git a/extras/NemerleBinding/icons/Nemerle.ProjectIcon b/extras/NemerleBinding/icons/Nemerle.ProjectIcon
deleted file mode 100644
index cad5e35be7..0000000000
--- a/extras/NemerleBinding/icons/Nemerle.ProjectIcon
+++ /dev/null
Binary files differ
diff --git a/extras/OpenOfficeSamples/COPYING b/extras/OpenOfficeSamples/COPYING
deleted file mode 100644
index b1e3f5a263..0000000000
--- a/extras/OpenOfficeSamples/COPYING
+++ /dev/null
@@ -1,504 +0,0 @@
- GNU LESSER GENERAL PUBLIC LICENSE
- Version 2.1, February 1999
-
- Copyright (C) 1991, 1999 Free Software Foundation, Inc.
- 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- Everyone is permitted to copy and distribute verbatim copies
- of this license document, but changing it is not allowed.
-
-[This is the first released version of the Lesser GPL. It also counts
- as the successor of the GNU Library Public License, version 2, hence
- the version number 2.1.]
-
- Preamble
-
- The licenses for most software are designed to take away your
-freedom to share and change it. By contrast, the GNU General Public
-Licenses are intended to guarantee your freedom to share and change
-free software--to make sure the software is free for all its users.
-
- This license, the Lesser General Public License, applies to some
-specially designated software packages--typically libraries--of the
-Free Software Foundation and other authors who decide to use it. You
-can use it too, but we suggest you first think carefully about whether
-this license or the ordinary General Public License is the better
-strategy to use in any particular case, based on the explanations below.
-
- When we speak of free software, we are referring to freedom of use,
-not price. Our General Public Licenses are designed to make sure that
-you have the freedom to distribute copies of free software (and charge
-for this service if you wish); that you receive source code or can get
-it if you want it; that you can change the software and use pieces of
-it in new free programs; and that you are informed that you can do
-these things.
-
- To protect your rights, we need to make restrictions that forbid
-distributors to deny you these rights or to ask you to surrender these
-rights. These restrictions translate to certain responsibilities for
-you if you distribute copies of the library or if you modify it.
-
- For example, if you distribute copies of the library, whether gratis
-or for a fee, you must give the recipients all the rights that we gave
-you. You must make sure that they, too, receive or can get the source
-code. If you link other code with the library, you must provide
-complete object files to the recipients, so that they can relink them
-with the library after making changes to the library and recompiling
-it. And you must show them these terms so they know their rights.
-
- We protect your rights with a two-step method: (1) we copyright the
-library, and (2) we offer you this license, which gives you legal
-permission to copy, distribute and/or modify the library.
-
- To protect each distributor, we want to make it very clear that
-there is no warranty for the free library. Also, if the library is
-modified by someone else and passed on, the recipients should know
-that what they have is not the original version, so that the original
-author's reputation will not be affected by problems that might be
-introduced by others.
-
- Finally, software patents pose a constant threat to the existence of
-any free program. We wish to make sure that a company cannot
-effectively restrict the users of a free program by obtaining a
-restrictive license from a patent holder. Therefore, we insist that
-any patent license obtained for a version of the library must be
-consistent with the full freedom of use specified in this license.
-
- Most GNU software, including some libraries, is covered by the
-ordinary GNU General Public License. This license, the GNU Lesser
-General Public License, applies to certain designated libraries, and
-is quite different from the ordinary General Public License. We use
-this license for certain libraries in order to permit linking those
-libraries into non-free programs.
-
- When a program is linked with a library, whether statically or using
-a shared library, the combination of the two is legally speaking a
-combined work, a derivative of the original library. The ordinary
-General Public License therefore permits such linking only if the
-entire combination fits its criteria of freedom. The Lesser General
-Public License permits more lax criteria for linking other code with
-the library.
-
- We call this license the "Lesser" General Public License because it
-does Less to protect the user's freedom than the ordinary General
-Public License. It also provides other free software developers Less
-of an advantage over competing non-free programs. These disadvantages
-are the reason we use the ordinary General Public License for many
-libraries. However, the Lesser license provides advantages in certain
-special circumstances.
-
- For example, on rare occasions, there may be a special need to
-encourage the widest possible use of a certain library, so that it becomes
-a de-facto standard. To achieve this, non-free programs must be
-allowed to use the library. A more frequent case is that a free
-library does the same job as widely used non-free libraries. In this
-case, there is little to gain by limiting the free library to free
-software only, so we use the Lesser General Public License.
-
- In other cases, permission to use a particular library in non-free
-programs enables a greater number of people to use a large body of
-free software. For example, permission to use the GNU C Library in
-non-free programs enables many more people to use the whole GNU
-operating system, as well as its variant, the GNU/Linux operating
-system.
-
- Although the Lesser General Public License is Less protective of the
-users' freedom, it does ensure that the user of a program that is
-linked with the Library has the freedom and the wherewithal to run
-that program using a modified version of the Library.
-
- The precise terms and conditions for copying, distribution and
-modification follow. Pay close attention to the difference between a
-"work based on the library" and a "work that uses the library". The
-former contains code derived from the library, whereas the latter must
-be combined with the library in order to run.
-
- GNU LESSER GENERAL PUBLIC LICENSE
- TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
-
- 0. This License Agreement applies to any software library or other
-program which contains a notice placed by the copyright holder or
-other authorized party saying it may be distributed under the terms of
-this Lesser General Public License (also called "this License").
-Each licensee is addressed as "you".
-
- A "library" means a collection of software functions and/or data
-prepared so as to be conveniently linked with application programs
-(which use some of those functions and data) to form executables.
-
- The "Library", below, refers to any such software library or work
-which has been distributed under these terms. A "work based on the
-Library" means either the Library or any derivative work under
-copyright law: that is to say, a work containing the Library or a
-portion of it, either verbatim or with modifications and/or translated
-straightforwardly into another language. (Hereinafter, translation is
-included without limitation in the term "modification".)
-
- "Source code" for a work means the preferred form of the work for
-making modifications to it. For a library, complete source code means
-all the source code for all modules it contains, plus any associated
-interface definition files, plus the scripts used to control compilation
-and installation of the library.
-
- Activities other than copying, distribution and modification are not
-covered by this License; they are outside its scope. The act of
-running a program using the Library is not restricted, and output from
-such a program is covered only if its contents constitute a work based
-on the Library (independent of the use of the Library in a tool for
-writing it). Whether that is true depends on what the Library does
-and what the program that uses the Library does.
-
- 1. You may copy and distribute verbatim copies of the Library's
-complete source code as you receive it, in any medium, provided that
-you conspicuously and appropriately publish on each copy an
-appropriate copyright notice and disclaimer of warranty; keep intact
-all the notices that refer to this License and to the absence of any
-warranty; and distribute a copy of this License along with the
-Library.
-
- You may charge a fee for the physical act of transferring a copy,
-and you may at your option offer warranty protection in exchange for a
-fee.
-
- 2. You may modify your copy or copies of the Library or any portion
-of it, thus forming a work based on the Library, and copy and
-distribute such modifications or work under the terms of Section 1
-above, provided that you also meet all of these conditions:
-
- a) The modified work must itself be a software library.
-
- b) You must cause the files modified to carry prominent notices
- stating that you changed the files and the date of any change.
-
- c) You must cause the whole of the work to be licensed at no
- charge to all third parties under the terms of this License.
-
- d) If a facility in the modified Library refers to a function or a
- table of data to be supplied by an application program that uses
- the facility, other than as an argument passed when the facility
- is invoked, then you must make a good faith effort to ensure that,
- in the event an application does not supply such function or
- table, the facility still operates, and performs whatever part of
- its purpose remains meaningful.
-
- (For example, a function in a library to compute square roots has
- a purpose that is entirely well-defined independent of the
- application. Therefore, Subsection 2d requires that any
- application-supplied function or table used by this function must
- be optional: if the application does not supply it, the square
- root function must still compute square roots.)
-
-These requirements apply to the modified work as a whole. If
-identifiable sections of that work are not derived from the Library,
-and can be reasonably considered independent and separate works in
-themselves, then this License, and its terms, do not apply to those
-sections when you distribute them as separate works. But when you
-distribute the same sections as part of a whole which is a work based
-on the Library, the distribution of the whole must be on the terms of
-this License, whose permissions for other licensees extend to the
-entire whole, and thus to each and every part regardless of who wrote
-it.
-
-Thus, it is not the intent of this section to claim rights or contest
-your rights to work written entirely by you; rather, the intent is to
-exercise the right to control the distribution of derivative or
-collective works based on the Library.
-
-In addition, mere aggregation of another work not based on the Library
-with the Library (or with a work based on the Library) on a volume of
-a storage or distribution medium does not bring the other work under
-the scope of this License.
-
- 3. You may opt to apply the terms of the ordinary GNU General Public
-License instead of this License to a given copy of the Library. To do
-this, you must alter all the notices that refer to this License, so
-that they refer to the ordinary GNU General Public License, version 2,
-instead of to this License. (If a newer version than version 2 of the
-ordinary GNU General Public License has appeared, then you can specify
-that version instead if you wish.) Do not make any other change in
-these notices.
-
- Once this change is made in a given copy, it is irreversible for
-that copy, so the ordinary GNU General Public License applies to all
-subsequent copies and derivative works made from that copy.
-
- This option is useful when you wish to copy part of the code of
-the Library into a program that is not a library.
-
- 4. You may copy and distribute the Library (or a portion or
-derivative of it, under Section 2) in object code or executable form
-under the terms of Sections 1 and 2 above provided that you accompany
-it with the complete corresponding machine-readable source code, which
-must be distributed under the terms of Sections 1 and 2 above on a
-medium customarily used for software interchange.
-
- If distribution of object code is made by offering access to copy
-from a designated place, then offering equivalent access to copy the
-source code from the same place satisfies the requirement to
-distribute the source code, even though third parties are not
-compelled to copy the source along with the object code.
-
- 5. A program that contains no derivative of any portion of the
-Library, but is designed to work with the Library by being compiled or
-linked with it, is called a "work that uses the Library". Such a
-work, in isolation, is not a derivative work of the Library, and
-therefore falls outside the scope of this License.
-
- However, linking a "work that uses the Library" with the Library
-creates an executable that is a derivative of the Library (because it
-contains portions of the Library), rather than a "work that uses the
-library". The executable is therefore covered by this License.
-Section 6 states terms for distribution of such executables.
-
- When a "work that uses the Library" uses material from a header file
-that is part of the Library, the object code for the work may be a
-derivative work of the Library even though the source code is not.
-Whether this is true is especially significant if the work can be
-linked without the Library, or if the work is itself a library. The
-threshold for this to be true is not precisely defined by law.
-
- If such an object file uses only numerical parameters, data
-structure layouts and accessors, and small macros and small inline
-functions (ten lines or less in length), then the use of the object
-file is unrestricted, regardless of whether it is legally a derivative
-work. (Executables containing this object code plus portions of the
-Library will still fall under Section 6.)
-
- Otherwise, if the work is a derivative of the Library, you may
-distribute the object code for the work under the terms of Section 6.
-Any executables containing that work also fall under Section 6,
-whether or not they are linked directly with the Library itself.
-
- 6. As an exception to the Sections above, you may also combine or
-link a "work that uses the Library" with the Library to produce a
-work containing portions of the Library, and distribute that work
-under terms of your choice, provided that the terms permit
-modification of the work for the customer's own use and reverse
-engineering for debugging such modifications.
-
- You must give prominent notice with each copy of the work that the
-Library is used in it and that the Library and its use are covered by
-this License. You must supply a copy of this License. If the work
-during execution displays copyright notices, you must include the
-copyright notice for the Library among them, as well as a reference
-directing the user to the copy of this License. Also, you must do one
-of these things:
-
- a) Accompany the work with the complete corresponding
- machine-readable source code for the Library including whatever
- changes were used in the work (which must be distributed under
- Sections 1 and 2 above); and, if the work is an executable linked
- with the Library, with the complete machine-readable "work that
- uses the Library", as object code and/or source code, so that the
- user can modify the Library and then relink to produce a modified
- executable containing the modified Library. (It is understood
- that the user who changes the contents of definitions files in the
- Library will not necessarily be able to recompile the application
- to use the modified definitions.)
-
- b) Use a suitable shared library mechanism for linking with the
- Library. A suitable mechanism is one that (1) uses at run time a
- copy of the library already present on the user's computer system,
- rather than copying library functions into the executable, and (2)
- will operate properly with a modified version of the library, if
- the user installs one, as long as the modified version is
- interface-compatible with the version that the work was made with.
-
- c) Accompany the work with a written offer, valid for at
- least three years, to give the same user the materials
- specified in Subsection 6a, above, for a charge no more
- than the cost of performing this distribution.
-
- d) If distribution of the work is made by offering access to copy
- from a designated place, offer equivalent access to copy the above
- specified materials from the same place.
-
- e) Verify that the user has already received a copy of these
- materials or that you have already sent this user a copy.
-
- For an executable, the required form of the "work that uses the
-Library" must include any data and utility programs needed for
-reproducing the executable from it. However, as a special exception,
-the materials to be distributed need not include anything that is
-normally distributed (in either source or binary form) with the major
-components (compiler, kernel, and so on) of the operating system on
-which the executable runs, unless that component itself accompanies
-the executable.
-
- It may happen that this requirement contradicts the license
-restrictions of other proprietary libraries that do not normally
-accompany the operating system. Such a contradiction means you cannot
-use both them and the Library together in an executable that you
-distribute.
-
- 7. You may place library facilities that are a work based on the
-Library side-by-side in a single library together with other library
-facilities not covered by this License, and distribute such a combined
-library, provided that the separate distribution of the work based on
-the Library and of the other library facilities is otherwise
-permitted, and provided that you do these two things:
-
- a) Accompany the combined library with a copy of the same work
- based on the Library, uncombined with any other library
- facilities. This must be distributed under the terms of the
- Sections above.
-
- b) Give prominent notice with the combined library of the fact
- that part of it is a work based on the Library, and explaining
- where to find the accompanying uncombined form of the same work.
-
- 8. You may not copy, modify, sublicense, link with, or distribute
-the Library except as expressly provided under this License. Any
-attempt otherwise to copy, modify, sublicense, link with, or
-distribute the Library is void, and will automatically terminate your
-rights under this License. However, parties who have received copies,
-or rights, from you under this License will not have their licenses
-terminated so long as such parties remain in full compliance.
-
- 9. You are not required to accept this License, since you have not
-signed it. However, nothing else grants you permission to modify or
-distribute the Library or its derivative works. These actions are
-prohibited by law if you do not accept this License. Therefore, by
-modifying or distributing the Library (or any work based on the
-Library), you indicate your acceptance of this License to do so, and
-all its terms and conditions for copying, distributing or modifying
-the Library or works based on it.
-
- 10. Each time you redistribute the Library (or any work based on the
-Library), the recipient automatically receives a license from the
-original licensor to copy, distribute, link with or modify the Library
-subject to these terms and conditions. You may not impose any further
-restrictions on the recipients' exercise of the rights granted herein.
-You are not responsible for enforcing compliance by third parties with
-this License.
-
- 11. If, as a consequence of a court judgment or allegation of patent
-infringement or for any other reason (not limited to patent issues),
-conditions are imposed on you (whether by court order, agreement or
-otherwise) that contradict the conditions of this License, they do not
-excuse you from the conditions of this License. If you cannot
-distribute so as to satisfy simultaneously your obligations under this
-License and any other pertinent obligations, then as a consequence you
-may not distribute the Library at all. For example, if a patent
-license would not permit royalty-free redistribution of the Library by
-all those who receive copies directly or indirectly through you, then
-the only way you could satisfy both it and this License would be to
-refrain entirely from distribution of the Library.
-
-If any portion of this section is held invalid or unenforceable under any
-particular circumstance, the balance of the section is intended to apply,
-and the section as a whole is intended to apply in other circumstances.
-
-It is not the purpose of this section to induce you to infringe any
-patents or other property right claims or to contest validity of any
-such claims; this section has the sole purpose of protecting the
-integrity of the free software distribution system which is
-implemented by public license practices. Many people have made
-generous contributions to the wide range of software distributed
-through that system in reliance on consistent application of that
-system; it is up to the author/donor to decide if he or she is willing
-to distribute software through any other system and a licensee cannot
-impose that choice.
-
-This section is intended to make thoroughly clear what is believed to
-be a consequence of the rest of this License.
-
- 12. If the distribution and/or use of the Library is restricted in
-certain countries either by patents or by copyrighted interfaces, the
-original copyright holder who places the Library under this License may add
-an explicit geographical distribution limitation excluding those countries,
-so that distribution is permitted only in or among countries not thus
-excluded. In such case, this License incorporates the limitation as if
-written in the body of this License.
-
- 13. The Free Software Foundation may publish revised and/or new
-versions of the Lesser General Public License from time to time.
-Such new versions will be similar in spirit to the present version,
-but may differ in detail to address new problems or concerns.
-
-Each version is given a distinguishing version number. If the Library
-specifies a version number of this License which applies to it and
-"any later version", you have the option of following the terms and
-conditions either of that version or of any later version published by
-the Free Software Foundation. If the Library does not specify a
-license version number, you may choose any version ever published by
-the Free Software Foundation.
-
- 14. If you wish to incorporate parts of the Library into other free
-programs whose distribution conditions are incompatible with these,
-write to the author to ask for permission. For software which is
-copyrighted by the Free Software Foundation, write to the Free
-Software Foundation; we sometimes make exceptions for this. Our
-decision will be guided by the two goals of preserving the free status
-of all derivatives of our free software and of promoting the sharing
-and reuse of software generally.
-
- NO WARRANTY
-
- 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
-WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
-EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
-OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
-KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
-LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
-THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
-
- 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
-WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
-AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
-FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
-CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
-LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
-RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
-FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
-SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
-DAMAGES.
-
- END OF TERMS AND CONDITIONS
-
- How to Apply These Terms to Your New Libraries
-
- If you develop a new library, and you want it to be of the greatest
-possible use to the public, we recommend making it free software that
-everyone can redistribute and change. You can do so by permitting
-redistribution under these terms (or, alternatively, under the terms of the
-ordinary General Public License).
-
- To apply these terms, attach the following notices to the library. It is
-safest to attach them to the start of each source file to most effectively
-convey the exclusion of warranty; and each file should have at least the
-"copyright" line and a pointer to where the full notice is found.
-
- <one line to give the library's name and a brief idea of what it does.>
- Copyright (C) <year> <name of author>
-
- This library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- This library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with this library; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-
-Also add information on how to contact you by electronic and paper mail.
-
-You should also get your employer (if you work as a programmer) or your
-school, if any, to sign a "copyright disclaimer" for the library, if
-necessary. Here is a sample; alter the names:
-
- Yoyodyne, Inc., hereby disclaims all copyright interest in the
- library `Frob' (a library for tweaking knobs) written by James Random Hacker.
-
- <signature of Ty Coon>, 1 April 1990
- Ty Coon, President of Vice
-
-That's all there is to it!
-
-
diff --git a/extras/OpenOfficeSamples/ChangeLog b/extras/OpenOfficeSamples/ChangeLog
deleted file mode 100644
index 61e113c07f..0000000000
--- a/extras/OpenOfficeSamples/ChangeLog
+++ /dev/null
@@ -1,4 +0,0 @@
-2009-06-05 Michael Hutchinson <mhutchinson@novell.com>
-
- * OpenOfficeSamples.addin.xml: Update version numbers for MD 2.0.
-
diff --git a/extras/OpenOfficeSamples/OpenOfficeSamples.addin.xml b/extras/OpenOfficeSamples/OpenOfficeSamples.addin.xml
deleted file mode 100644
index 84f1a00cd4..0000000000
--- a/extras/OpenOfficeSamples/OpenOfficeSamples.addin.xml
+++ /dev/null
@@ -1,38 +0,0 @@
-<Addin id = "OpenOfficeSamples"
- namespace = "MonoDevelop"
- name = "OpenOffice Automation Samples"
- author = "Michael Hutchinson"
- copyright = "LGPL 2.1"
- url = "http://www.monodevelop.com/"
- description = "Samples for automating OpenOffice using Mono."
- category = "Templates"
- version = "4.2.3">
-
- <Runtime>
- <Import file = "OpenOfficeSpreadsheetSample.xpt.xml"/>
- <Import file = "OpenOfficeSpreadsheetTableSample.xpt.xml"/>
- <Import file = "OpenOfficeSpreadsheetViewSample.xpt.xml"/>
- <Import file = "OpenOfficeSpreadsheetDocHelper.xft.xml"/>
- <Import file = "COPYING" />
- <Import file = "README" />
- </Runtime>
-
- <Dependencies>
- <Addin id = "Ide" version="4.2.3"/>
- <Addin id = "CSharpBinding" version = "4.2.3" />
- </Dependencies>
-
- <Extension path = "/MonoDevelop/Ide/ProjectTemplates">
- <ProjectTemplate id = "OpenOfficeSpreadsheetSample"
- file = "OpenOfficeSpreadsheetSample.xpt.xml"/>
- <ProjectTemplate id = "OpenOfficeSpreadsheetTableSample"
- file = "OpenOfficeSpreadsheetTableSample.xpt.xml"/>
- <ProjectTemplate id = "OpenOfficeSpreadsheetViewSample"
- file = "OpenOfficeSpreadsheetViewSample.xpt.xml"/>
- </Extension>
-
- <Extension path = "/MonoDevelop/Ide/FileTemplates">
- <FileTemplate id = "OpenOfficeSpreadsheetDocHelper"
- file = "OpenOfficeSpreadsheetDocHelper.xft.xml"/>
- </Extension>
-</Addin>
diff --git a/extras/OpenOfficeSamples/OpenOfficeSpreadsheetDocHelper.xft.xml b/extras/OpenOfficeSamples/OpenOfficeSpreadsheetDocHelper.xft.xml
deleted file mode 100644
index df2c818a40..0000000000
--- a/extras/OpenOfficeSamples/OpenOfficeSpreadsheetDocHelper.xft.xml
+++ /dev/null
@@ -1,303 +0,0 @@
-<?xml version="1.0"?>
-<Template Originator = "Michael Hutchinson"
- Language = "C#"
- Created = "2008/05/30"
- LastModified = "2008/05/30">
-
- <TemplateConfiguration>
- <_Name>SpreadsheetDocHelper</_Name>
- <Icon>md-text-file-icon</Icon>
- <_Category>OpenOffice Samples</_Category>
- <LanguageName>C#</LanguageName>
- <_Description>Spreadsheet helper class for the OpenOffice samples.</_Description>
- </TemplateConfiguration>
-
- <Conditions>
- <ParentProject PermittedCreationPaths="" ExcludedFiles="/SpreadsheetDocHelper.cs" />
- </Conditions>
-
- <TemplateFiles>
- <File Name="SpreadsheetDocHelper.cs" AddStandardHeader="False"><![CDATA[//
-// This library is free software; you can redistribute it and/or
-// modify it under the terms of the GNU Lesser General Public
-// License as published by the Free Software Foundation; either
-// version 2.1 of the License, or (at your option) any later version.
-//
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-// Lesser General Public License for more details.
-//
-// You should have received a copy of the GNU Lesser General Public
-// License along with this library. If not, see <http://www.gnu.org/licenses/>.
-
-
-using System;
-using unoidl.com.sun.star.lang;
-using unoidl.com.sun.star.uno;
-using unoidl.com.sun.star.bridge;
-using unoidl.com.sun.star.frame;
-using unoidl.com.sun.star.sheet;
-using unoidl.com.sun.star.container;
-using unoidl.com.sun.star.util;
-using unoidl.com.sun.star.table;
-using unoidl.com.sun.star.beans;
-
-namespace OpenOffice.Samples
-{
-
- /// <summary>
- /// This is a helper class for the spreadsheet and table samples.
- /// It connects to a running office and creates a spreadsheet document.
- /// Additionally it contains various helper functions.
- /// </summary>
- public class SpreadsheetDocHelper : IDisposable
- {
- XComponentContext componentContext;
- XMultiServiceFactory multiServiceFactory;
- XSpreadsheetDocument document;
-
- public SpreadsheetDocHelper (string[] args)
- {
- // Connect to a running office and get the service manager
- multiServiceFactory = Connect (args);
- // Create a new spreadsheet document
- document = InitDocument ();
- }
-
- #region Helper methods
-
- /// <summary>Returns the service manager.</summary>
- /// <returns> The <see cref="XMultiServiceFactory"/> interface of the service manager.</returns>
- public XMultiServiceFactory ServiceManager {
- get { return multiServiceFactory; }
- }
-
- /// <summary>Returns the whole spreadsheet document.</summary>
- /// <returns> The <see cref="XSpreadsheetDocument"/> interface of the document.</returns>
- public XSpreadsheetDocument Document {
- get { return document; }
- }
-
- /// <summary> Returns the spreadsheet with the specified index. </summary>
- /// <param name="index">The index of the sheet (0-based). </param>
- /// <returns> The <see cref="XSpreadsheet"/> interface of the sheet. </returns>
- public XSpreadsheet GetSpreadsheet (int index)
- {
- XSpreadsheets sheets = document.getSheets ();
- XIndexAccess sheetsIA = (XIndexAccess) sheets;
- return (XSpreadsheet) sheetsIA.getByIndex (index).Value;
- }
-
- /// <summary> Inserts a new empty spreadsheet with the specified name. </summary>
- /// <param name="name"> The name of the new sheet. </param>
- /// <param name="index"> The insertion index. </param>
- /// <returns> The <see cref="XSpreadsheet"/> interface of the new sheet. </returns>
- public XSpreadsheet InsertSpreadsheet (string name, short index)
- {
- XSpreadsheets sheets = document.getSheets ();
- sheets.insertNewByName (name, index);
- return (XSpreadsheet) sheets.getByName (name).Value;
- }
-
- #endregion
-
- #region Methods to fill values into cells.
-
- /// <summary> Writes a double value into a spreadsheet. </summary>
- /// <param name="sheet"> The <see cref="XSpreadsheet"/> interface of the spreadsheet. </param>
- /// <param name="cellName"> The address of the cell (or a named range). </param>
- /// <param name="cellValue"> The value to write into the cell.</param>
- public void SetCellValue (XSpreadsheet sheet, string cellName, double cellValue)
- {
- sheet.getCellRangeByName (cellName).getCellByPosition (0, 0).setValue (cellValue);
- }
-
- /// <summary> Writes a formula into a spreadsheet. </summary>
- /// <param name="sheet"> The <see cref="XSpreadsheet"/> interface of the spreadsheet. </param>
- /// <param name="cellName"> The address of the cell (or a named range). </param>
- /// <param name="formula"> The formula to write into the cell. </param>
- public void SetCellFormula (XSpreadsheet sheet, string cellName, string formula)
- {
- sheet.getCellRangeByName (cellName).getCellByPosition (0, 0).setFormula (formula);
- }
-
- /// <summary> Writes a date with standard date format into a spreadsheet. </summary>
- /// <param name="sheet"> The <see cref="XSpreadsheet"/> interface of the spreadsheet. </param>
- /// <param name="cellName"> The address of the cell (or a named range). </param>
- /// <param name="day"> The day of the date. </param>
- /// <param name="month"> The month of the date. </param>
- /// <param name="year">The year of the date. </param>
- public void SetCellDate (XSpreadsheet sheet, string cellName, int day, int month, int year)
- {
- // Set the date value.
- XCell cell = sheet.getCellRangeByName (cellName).getCellByPosition (0, 0);
- cell.setFormula (month + "/" + day + "/" + year);
-
- // Set standard date format.
- XNumberFormatsSupplier formatsSupplier = (XNumberFormatsSupplier) Document;
- XNumberFormatTypes formatTypes = (XNumberFormatTypes) formatsSupplier.getNumberFormats ();
- int numberFormat = formatTypes.getStandardFormat (NumberFormat.DATE, new Locale ());
- XPropertySet propSet = (unoidl.com.sun.star.beans.XPropertySet) cell;
- propSet.setPropertyValue ("NumberFormat", new uno.Any (numberFormat));
- }
-
- /// <summary>Draws a colored border around the range and writes the headline in the first cell. </summary>
- /// <param name="sheet"> The <see cref="XSpreadsheet"/> interface of the spreadsheet. </param>
- /// <param name="range"> The address of the cell range (or a named range). </param>
- /// <param name="headline"> The headline text. </param>
- public void PrepareRange (XSpreadsheet sheet, string range, string headline)
- {
- XPropertySet propSet = null;
- XCellRange cellRange = null;
-
- // draw border
- cellRange = sheet.getCellRangeByName (range);
- propSet = (XPropertySet) cellRange;
- BorderLine aLine = new BorderLine ();
- aLine.Color = 0x99CCFF;
- aLine.InnerLineWidth = aLine.LineDistance = 0;
- aLine.OuterLineWidth = 100;
- TableBorder border = new TableBorder ();
- border.TopLine = border.BottomLine = border.LeftLine = border.RightLine = aLine;
- border.IsTopLineValid = border.IsBottomLineValid = true;
- border.IsLeftLineValid = border.IsRightLineValid = true;
- propSet.setPropertyValue ("TableBorder", new uno.Any (typeof (TableBorder), border));
-
- // draw headline
- XCellRangeAddressable xAddr = (XCellRangeAddressable) cellRange;
- CellRangeAddress aAddr = xAddr.getRangeAddress ();
-
- cellRange = sheet.getCellRangeByPosition (
- aAddr.StartColumn,
- aAddr.StartRow, aAddr.EndColumn, aAddr.StartRow);
-
- propSet = (XPropertySet) cellRange;
- propSet.setPropertyValue ("CellBackColor", new uno.Any ((int) 0x99CCFF));
-
- // write headline
- XCell cell = cellRange.getCellByPosition (0, 0);
- cell.setFormula (headline);
- propSet = (XPropertySet) cell;
- propSet.setPropertyValue ("CharColor", new uno.Any ((int) 0x003399));
- propSet.setPropertyValue ("CharWeight",
- new uno.Any ((Single) unoidl.com.sun.star.awt.FontWeight.BOLD));
- }
-
- #endregion
-
- #region Methods to create cell addresses and range addresses.
-
- /// <summary> Creates a CellAddress and initializes it with the given range </summary>
- /// <param name="sheet"> The <see cref="XSpreadsheet"/> interface of the spreadsheet. </param>
- /// <param name="cellName"> The address of the cell (or a named cell). </param>
- public CellAddress CreateCellAddress (XSpreadsheet sheet, string cellName)
- {
- XCellAddressable addr = (XCellAddressable) sheet.getCellRangeByName (cellName).getCellByPosition (0, 0);
- return addr.getCellAddress ();
- }
-
- /// <summary> Creates a CellRangeAddress and initializes it with the given range. </summary>
- /// <param name="sheet"> The <see cref="XSpreadsheet"/> interface of the spreadsheet. </param>
- /// <param name="range"> The address of the cell range (or a named range). </param>
- public CellRangeAddress CreateCellRangeAddress (XSpreadsheet sheet, string range)
- {
- XCellRangeAddressable addr = (XCellRangeAddressable) sheet.getCellRangeByName (range);
- return addr.getRangeAddress ();
- }
-
- #endregion
-
- #region Methods to convert cell addresses and range addresses to strings.
-
- /// <summary> Returns the text address of the cell. </summary>
- /// <param name="column"> The column index. </param>
- /// <param name="row"> The row index. </param>
- /// <returns> A string containing the cell address. </returns>
- public string GetCellAddressString (int column, int row)
- {
- return ((column > 25)? new string ((char) ('A' + column / 26 - 1), 1) : string.Empty)
- + new string ((char) ('A' + column % 26), 1)
- + (row + 1);
- }
-
- /// <summary> Returns the text address of the cell range. </summary>
- /// <param name="cellRange"> The cell range address. </param>
- /// <returns> A string containing the cell range address. </returns>
- public string GetCellRangeAddressString (CellRangeAddress cellRange)
- {
- return GetCellAddressString (cellRange.StartColumn, cellRange.StartRow)
- + ":"
- + GetCellAddressString (cellRange.EndColumn, cellRange.EndRow);
- }
-
- /// <summary> Returns the text address of the cell range. </summary>
- /// <param name="cellRange"> The XSheetCellRange interface of the cell range. </param>
- /// <param name="withSheetName"> Whether to include the sheet name. </param>
- /// <returns> A string containing the cell range address. </returns>
- public string GetCellRangeAddressString (XSheetCellRange cellRange, bool withSheetName)
- {
- XCellRangeAddressable addr = (XCellRangeAddressable) cellRange;
- string str = GetCellRangeAddressString (addr.getRangeAddress ());
-
- if (withSheetName) {
- XSpreadsheet sheet = cellRange.getSpreadsheet ();
- XNamed xNamed = (XNamed) sheet;
- return xNamed.getName () + "." + str;
- } else {
- return str;
- }
-
- }
-
- /// <summary>Returns a list of addresses of all cell ranges contained in the collection. </summary>
- /// <param name="rangesIA"> The <see cref="XIndexAccess"/> XIndexAccess interface of the collection. </param>
- /// <returns> A string containing the cell range address list. </returns>
- public string GetCellRangeListString (XIndexAccess rangesIA)
- {
- System.Text.StringBuilder sb = new System.Text.StringBuilder ();
- int count = rangesIA.getCount ();
- for (int i = 0; i < count; ++i)
- {
- if (i > 0)
- sb.Append (" ");
- uno.Any rangeObj = rangesIA.getByIndex (i);
- XSheetCellRange cellRange =
- (XSheetCellRange) rangeObj.Value;
- sb.Append (GetCellRangeAddressString (cellRange, false));
- }
- return sb.ToString ();
- }
-
- #endregion
-
- /// <summary> Connect to a running office that is accepting connections. </summary>
- /// <returns> The ServiceManager to instantiate office components. </returns>
- XMultiServiceFactory Connect (string [] args)
- {
- componentContext = uno.util.Bootstrap.bootstrap ();
- return (XMultiServiceFactory) componentContext.getServiceManager ();
- }
-
- public void Dispose ()
- {
- }
-
- /// <summary> Creates an empty spreadsheet document. </summary>
- /// <returns>The <see cref="XSpreadsheetDocument"/> interface of the document. </returns>
- XSpreadsheetDocument InitDocument ()
- {
- XComponentLoader loader
- = (XComponentLoader) multiServiceFactory.createInstance ("com.sun.star.frame.Desktop");
- return (XSpreadsheetDocument) loader.loadComponentFromURL
- ("private:factory/scalc", "_blank", 0, new PropertyValue[0]);
- }
- }
-
-}]]>
- </File>
- </TemplateFiles>
-
- <FileOptions/>
-
-</Template>
diff --git a/extras/OpenOfficeSamples/OpenOfficeSpreadsheetSample.xpt.xml b/extras/OpenOfficeSamples/OpenOfficeSpreadsheetSample.xpt.xml
deleted file mode 100644
index 7472126885..0000000000
--- a/extras/OpenOfficeSamples/OpenOfficeSpreadsheetSample.xpt.xml
+++ /dev/null
@@ -1,1469 +0,0 @@
-<?xml version="1.0"?>
-<Template originator = "Michael Hutchinson"
- created = "2008/05/30"
- lastModified = "2008/05/30">
-
- <!-- Template Header -->
- <TemplateConfiguration>
- <_Name>Spreadsheet Sample</_Name>
- <_Category>C#/OpenOffice Samples</_Category>
- <Icon>md-project</Icon>
- <LanguageName>C#</LanguageName>
- <_Description>Creates a new C# OpenOffice integration sample project.</_Description>
- </TemplateConfiguration>
-
- <!-- Actions -->
- <Actions>
- <Open filename = "Main.cs"/>
- </Actions>
-
- <!-- Template Content -->
- <Combine name = "${ProjectName}" directory = ".">
- <Options>
- <StartupProject>${ProjectName}</StartupProject>
- </Options>
-
- <Project name = "${ProjectName}" directory = ".">
- <Options/>
- <References>
- <Reference type="Gac" refto="System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
- <Reference type="Gac" refto="System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
- <Reference type="Gac" refto="cli_basetypes, Version=1.0.9.0, Culture=neutral, PublicKeyToken=ce2cb7e279207b9e" />
- <Reference type="Gac" refto="cli_uno_bridge, Version=0.0.0.0, Culture=neutral, PublicKeyToken=ce2cb7e279207b9e" />
- <Reference type="Gac" refto="cli_ure, Version=1.0.12.0, Culture=neutral, PublicKeyToken=ce2cb7e279207b9e" />
- <Reference type="Gac" refto="cli_types, Version=1.1.12.0, Culture=neutral, PublicKeyToken=ce2cb7e279207b9e" />
- <Reference type="Gac" refto="cli_cppuhelper, Version=1.0.12.0, Culture=neutral, PublicKeyToken=ce2cb7e279207b9e" />
- </References>
-
- <Files>
- <FileTemplateReference TemplateID="CSharpAssemblyInfo" name="AssemblyInfo.cs" />
- <FileTemplateReference TemplateID="OpenOfficeSpreadsheetDocHelper" name="SpreadsheetDocHelper.cs" />
- <File name="Main.cs" AddStandardHeader="False"><![CDATA[//
-// This library is free software; you can redistribute it and/or
-// modify it under the terms of the GNU Lesser General Public
-// License as published by the Free Software Foundation; either
-// version 2.1 of the License, or (at your option) any later version.
-//
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-// Lesser General Public License for more details.
-//
-// You should have received a copy of the GNU Lesser General Public
-// License along with this library. If not, see <http://www.gnu.org/licenses/>.
-
-using System;
-using unoidl.com.sun.star.sheet;
-using unoidl.com.sun.star.lang;
-
-namespace OpenOffice.Samples
-{
-
- ///<summary> Create and modify a spreadsheet document.</summary>
- public class SpreadsheetSample : SpreadsheetDocHelper
- {
-
- public static void Main (string [] args)
- {
- try {
- using (SpreadsheetSample aSample = new SpreadsheetSample (args)) {
- aSample.doSampleFunctions ();
- }
- Console.WriteLine ("\nSamples done.");
- } catch (Exception ex) {
- Console.WriteLine ("Sample caught exception! " + ex);
- }
- }
-
- public SpreadsheetSample (string[] args)
- : base (args)
- {
- }
-
- /// <summary>This sample function performs all changes on the document.</summary>
- public void doSampleFunctions ()
- {
- doCellSamples ();
- doCellRangeSamples ();
- doCellRangesSamples ();
- doCellCursorSamples ();
- doFormattingSamples ();
- doDocumentSamples ();
- doDatabaseSamples ();
- doDataPilotSamples ();
- doNamedRangesSamples ();
- doFunctionAccessSamples ();
- doApplicationSettingsSamples ();
- }
-
- /// <summary>All samples regarding the service com.sun.star.sheet.SheetCell. </summary>
- void doCellSamples ()
- {
- Console.WriteLine ("\n*** Samples for service sheet.SheetCell ***\n");
- XSpreadsheet xSheet = GetSpreadsheet (0);
- unoidl.com.sun.star.table.XCell xCell = null;
- unoidl.com.sun.star.beans.XPropertySet xPropSet = null;
- string aText;
- PrepareRange (xSheet, "A1:C7", "Cells and Cell Ranges");
-
- // --- Get cell B3 by position - (column, row) ---
- xCell = xSheet.getCellByPosition (1, 2);
-
- // --- Insert two text paragraphs into the cell. ---
- unoidl.com.sun.star.text.XText xText =
- (unoidl.com.sun.star.text.XText) xCell;
- unoidl.com.sun.star.text.XTextCursor xTextCursor =
- xText.createTextCursor ();
-
- xText.insertString (xTextCursor, "Text in first line.", false);
- xText.insertControlCharacter (xTextCursor,
- unoidl.com.sun.star.text.ControlCharacter.PARAGRAPH_BREAK, false);
- xText.insertString (xTextCursor, "And a ", false);
-
- // create a hyperlink
- XMultiServiceFactory xServiceMan = (XMultiServiceFactory) Document;
- object aHyperlinkObj =
- xServiceMan.createInstance ("com.sun.star.text.TextField.URL");
- xPropSet = (unoidl.com.sun.star.beans.XPropertySet) aHyperlinkObj;
- xPropSet.setPropertyValue (
- "URL", new uno.Any ("http://www.example.org"));
- xPropSet.setPropertyValue (
- "Representation", new uno.Any ("hyperlink"));
- // ... and insert
- unoidl.com.sun.star.text.XTextContent xContent =
- (unoidl.com.sun.star.text.XTextContent) aHyperlinkObj;
- xText.insertTextContent (xTextCursor, xContent, false);
-
- // --- Query the separate paragraphs. ---
- unoidl.com.sun.star.container.XEnumerationAccess xParaEA =
- (unoidl.com.sun.star.container.XEnumerationAccess) xCell;
- unoidl.com.sun.star.container.XEnumeration xParaEnum =
- xParaEA.createEnumeration ();
- // Go through the paragraphs
- while (xParaEnum.hasMoreElements())
- {
- uno.Any aPortionObj = xParaEnum.nextElement ();
- unoidl.com.sun.star.container.XEnumerationAccess xPortionEA =
- (unoidl.com.sun.star.container.XEnumerationAccess)
- aPortionObj.Value;
- unoidl.com.sun.star.container.XEnumeration xPortionEnum =
- xPortionEA.createEnumeration ();
- aText = "";
- // Go through all text portions of a paragraph and construct string.
- while (xPortionEnum.hasMoreElements())
- {
- unoidl.com.sun.star.text.XTextRange xRange =
- (unoidl.com.sun.star.text.XTextRange)
- xPortionEnum.nextElement().Value;
- aText += xRange.getString ();
- }
- Console.WriteLine ("Paragraph text: " + aText);
- }
-
-
- // --- Change cell properties. ---
- xPropSet = (unoidl.com.sun.star.beans.XPropertySet) xCell;
- // from styles.CharacterProperties
- xPropSet.setPropertyValue (
- "CharColor", new uno.Any ((Int32) 0x003399));
- xPropSet.setPropertyValue (
- "CharHeight", new uno.Any ((Single) 20.0));
- // from styles.ParagraphProperties
- xPropSet.setPropertyValue (
- "ParaLeftMargin", new uno.Any ((Int32) 500));
- // from table.CellProperties
- xPropSet.setPropertyValue (
- "IsCellBackgroundTransparent", new uno.Any (false));
- xPropSet.setPropertyValue (
- "CellBackColor", new uno.Any ((Int32) 0x99CCFF));
-
-
- // --- Get cell address. ---
- XCellAddressable xCellAddr =
- (XCellAddressable) xCell;
- unoidl.com.sun.star.table.CellAddress aAddress =
- xCellAddr.getCellAddress ();
- aText = "Address of this cell: Column=" + aAddress.Column;
- aText += "; Row=" + aAddress.Row;
- aText += "; Sheet=" + aAddress.Sheet;
- Console.WriteLine (aText);
-
-
- // --- Insert an annotation ---
- XSheetAnnotationsSupplier xAnnotationsSupp =
- (XSheetAnnotationsSupplier) xSheet;
- XSheetAnnotations xAnnotations =
- xAnnotationsSupp.getAnnotations ();
- xAnnotations.insertNew (aAddress, "This is an annotation");
-
- XSheetAnnotationAnchor xAnnotAnchor =
- (XSheetAnnotationAnchor) xCell;
- XSheetAnnotation xAnnotation =
- xAnnotAnchor.getAnnotation ();
- xAnnotation.setIsVisible (true);
- }
-
- /// <summary>All samples regarding the service com.sun.star.sheet.SheetCellRange.</summary>
- void doCellRangeSamples()
- {
- Console.WriteLine ("\n*** Samples for service sheet.SheetCellRange ***\n");
- XSpreadsheet xSheet = GetSpreadsheet (0);
- unoidl.com.sun.star.table.XCellRange xCellRange = null;
- unoidl.com.sun.star.beans.XPropertySet xPropSet = null;
- unoidl.com.sun.star.table.CellRangeAddress aRangeAddress = null;
-
- // Preparation
- SetCellFormula (xSheet, "B5", "First cell");
- SetCellFormula (xSheet, "B6", "Second cell");
- // Get cell range B5:B6 by position - (column, row, column, row)
- xCellRange = xSheet.getCellRangeByPosition (1, 4, 1, 5);
-
-
- // --- Change cell range properties. ---
- xPropSet = (unoidl.com.sun.star.beans.XPropertySet) xCellRange;
- // from com.sun.star.styles.CharacterProperties
- xPropSet.setPropertyValue (
- "CharColor", new uno.Any ((Int32) 0x003399));
- xPropSet.setPropertyValue (
- "CharHeight", new uno.Any ((Single) 20.0));
- // from com.sun.star.styles.ParagraphProperties
- xPropSet.setPropertyValue (
- "ParaLeftMargin", new uno.Any ((Int32) 500));
- // from com.sun.star.table.CellProperties
- xPropSet.setPropertyValue (
- "IsCellBackgroundTransparent", new uno.Any (false));
- xPropSet.setPropertyValue (
- "CellBackColor", new uno.Any ((Int32) 0x99CCFF));
-
-
- // --- Replace text in all cells. ---
- unoidl.com.sun.star.util.XReplaceable xReplace =
- (unoidl.com.sun.star.util.XReplaceable) xCellRange;
- unoidl.com.sun.star.util.XReplaceDescriptor xReplaceDesc =
- xReplace.createReplaceDescriptor ();
- xReplaceDesc.setSearchString ("cell");
- xReplaceDesc.setReplaceString ("text");
- // property SearchWords searches for whole cells!
- xReplaceDesc.setPropertyValue ("SearchWords", new uno.Any (false));
- int nCount = xReplace.replaceAll (xReplaceDesc);
- Console.WriteLine ("Search text replaced " + nCount + " times.");
-
-
- // --- Merge cells. ---
- xCellRange = xSheet.getCellRangeByName ("F3:G6");
- PrepareRange (xSheet, "E1:H7", "XMergeable");
- unoidl.com.sun.star.util.XMergeable xMerge =
- (unoidl.com.sun.star.util.XMergeable) xCellRange;
- xMerge.merge (true);
-
-
- // --- Change indentation. ---
- /* does not work (bug in XIndent implementation)
- PrepareRange (xSheet, "I20:I23", "XIndent");
- setValue (xSheet, "I21", 1);
- setValue (xSheet, "I22", 1);
- setValue (xSheet, "I23", 1);
-
- xCellRange = xSheet.getCellRangeByName ("I21:I22");
- unoidl.com.sun.star.util.XIndent xIndent =
- (unoidl.com.sun.star.util.XIndent) xCellRange;
- xIndent.incrementIndent ();
-
- xCellRange = xSheet.getCellRangeByName ("I22:I23");
- xIndent = (unoidl.com.sun.star.util.XIndent) xCellRange;
- xIndent.incrementIndent ();
- */
-
-
- // --- Column properties. ---
- xCellRange = xSheet.getCellRangeByName ("B1");
- unoidl.com.sun.star.table.XColumnRowRange xColRowRange =
- (unoidl.com.sun.star.table.XColumnRowRange) xCellRange;
- unoidl.com.sun.star.table.XTableColumns xColumns =
- xColRowRange.getColumns ();
-
- uno.Any aColumnObj = xColumns.getByIndex (0);
- xPropSet = (unoidl.com.sun.star.beans.XPropertySet) aColumnObj.Value;
- xPropSet.setPropertyValue ("Width", new uno.Any ((Int32) 6000));
-
- unoidl.com.sun.star.container.XNamed xNamed =
- (unoidl.com.sun.star.container.XNamed) aColumnObj.Value;
- Console.WriteLine (
- "The name of the wide column is " + xNamed.getName() + ".");
-
-
- // --- Cell range data ---
- PrepareRange (xSheet, "A9:C30", "XCellRangeData");
-
- xCellRange = xSheet.getCellRangeByName ("A10:C30");
- XCellRangeData xData =
- (XCellRangeData) xCellRange;
- uno.Any [][] aValues =
- {
- new uno.Any [] { new uno.Any ("Name"),
- new uno.Any ("Fruit"),
- new uno.Any ("Quantity") },
- new uno.Any [] { new uno.Any ("Alice"),
- new uno.Any ("Apples"),
- new uno.Any ((double) 3.0) },
- new uno.Any [] { new uno.Any ("Alice"),
- new uno.Any ("Oranges"),
- new uno.Any ((double) 7.0) },
- new uno.Any [] { new uno.Any ("Bob"),
- new uno.Any ("Apples"),
- new uno.Any ((double) 3.0) },
- new uno.Any [] { new uno.Any ("Alice"),
- new uno.Any ("Apples"),
- new uno.Any ((double) 9.0) },
- new uno.Any [] { new uno.Any ("Bob"),
- new uno.Any ("Apples"),
- new uno.Any ((double) 5.0) },
- new uno.Any [] { new uno.Any ("Bob"),
- new uno.Any ("Oranges"),
- new uno.Any ((double) 6.0) },
- new uno.Any [] { new uno.Any ("Alice"),
- new uno.Any ("Oranges"),
- new uno.Any ((double) 3.0) },
- new uno.Any [] { new uno.Any ("Alice"),
- new uno.Any ("Apples"),
- new uno.Any ((double) 8.0) },
- new uno.Any [] { new uno.Any ("Alice"),
- new uno.Any ("Oranges"),
- new uno.Any ((double) 1.0) },
- new uno.Any [] { new uno.Any ("Bob"),
- new uno.Any ("Oranges"),
- new uno.Any ((double) 2.0) },
- new uno.Any [] { new uno.Any ("Bob"),
- new uno.Any ("Oranges"),
- new uno.Any ((double) 7.0) },
- new uno.Any [] { new uno.Any ("Bob"),
- new uno.Any ("Apples"),
- new uno.Any ((double) 1.0) },
- new uno.Any [] { new uno.Any ("Alice"),
- new uno.Any ("Apples"),
- new uno.Any ((double) 8.0) },
- new uno.Any [] { new uno.Any ("Alice"),
- new uno.Any ("Oranges"),
- new uno.Any ((double) 8.0) },
- new uno.Any [] { new uno.Any ("Alice"),
- new uno.Any ("Apples"),
- new uno.Any ((double) 7.0) },
- new uno.Any [] { new uno.Any ("Bob"),
- new uno.Any ("Apples"),
- new uno.Any ((double) 1.0) },
- new uno.Any [] { new uno.Any ("Bob"),
- new uno.Any ("Oranges"),
- new uno.Any ((double) 9.0) },
- new uno.Any [] { new uno.Any ("Bob"),
- new uno.Any ("Oranges"),
- new uno.Any ((double) 3.0) },
- new uno.Any [] { new uno.Any ("Alice"),
- new uno.Any ("Oranges"),
- new uno.Any ((double) 4.0) },
- new uno.Any [] { new uno.Any ("Alice"),
- new uno.Any ("Apples"),
- new uno.Any ((double) 9.0) }
- };
- xData.setDataArray (aValues);
-
-
- // --- Get cell range address. ---
- XCellRangeAddressable xRangeAddr =
- (XCellRangeAddressable) xCellRange;
- aRangeAddress = xRangeAddr.getRangeAddress ();
- Console.WriteLine (
- "Address of this range: Sheet=" + aRangeAddress.Sheet);
- Console.WriteLine (
- "Start column=" + aRangeAddress.StartColumn + "; Start row=" +
- aRangeAddress.StartRow);
- Console.WriteLine (
- "End column =" + aRangeAddress.EndColumn + "; End row =" +
- aRangeAddress.EndRow);
-
-
- // --- Sheet operation. ---
- // uses the range filled with XCellRangeData
- XSheetOperation xSheetOp = (XSheetOperation) xData;
- double fResult = xSheetOp.computeFunction (GeneralFunction.AVERAGE);
- Console.WriteLine ("Average value of the data table A10:C30: " + fResult);
-
-
- // --- Fill series ---
- // Prepare the example
- SetCellValue (xSheet, "E10", 1);
- SetCellValue (xSheet, "E11", 4);
- SetCellDate (xSheet, "E12", 30, 1, 2002);
- SetCellFormula (xSheet, "I13", "Text 10");
- SetCellFormula (xSheet, "E14", "Jan");
- SetCellValue (xSheet, "K14", 10);
- SetCellValue (xSheet, "E16", 1);
- SetCellValue (xSheet, "F16", 2);
- SetCellDate (xSheet, "E17", 28, 2, 2002);
- SetCellDate (xSheet, "F17", 28, 1, 2002);
- SetCellValue (xSheet, "E18", 6);
- SetCellValue (xSheet, "F18", 4);
-
- XCellSeries xSeries = null;
- // Fill 2 rows linear with end value
- // -> 2nd series is not filled completely
- xSeries = getCellSeries (xSheet, "E10:I11");
- xSeries.fillSeries (
- FillDirection.TO_RIGHT,
- FillMode.LINEAR,
- FillDateMode.FILL_DATE_DAY, 2, 9);
- // Add months to a date
- xSeries = getCellSeries (xSheet, "E12:I12");
- xSeries.fillSeries (
- FillDirection.TO_RIGHT,
- FillMode.DATE,
- FillDateMode.FILL_DATE_MONTH,
- 1, 0x7FFFFFFF);
- // Fill right to left with a text containing a value
- xSeries = getCellSeries (xSheet, "E13:I13");
- xSeries.fillSeries (
- FillDirection.TO_LEFT,
- FillMode.LINEAR,
- FillDateMode.FILL_DATE_DAY,
- 10, 0x7FFFFFFF);
- // Fill with an user defined list
- xSeries = getCellSeries (xSheet, "E14:I14");
- xSeries.fillSeries (
- FillDirection.TO_RIGHT,
- FillMode.AUTO,
- FillDateMode.FILL_DATE_DAY,
- 1, 0x7FFFFFFF);
- // Fill bottom to top with a geometric series
- xSeries = getCellSeries (xSheet, "K10:K14");
- xSeries.fillSeries (
- FillDirection.TO_TOP,
- FillMode.GROWTH,
- FillDateMode.FILL_DATE_DAY,
- 2, 0x7FFFFFFF);
- // Auto fill
- xSeries = getCellSeries (xSheet, "E16:K18");
- xSeries.fillAuto (
- FillDirection.TO_RIGHT, 2);
- // Fill series copies cell formats -> draw border here
- PrepareRange (xSheet, "E9:K18", "XCellSeries");
-
-
- // --- Array formulas ---
- xCellRange = xSheet.getCellRangeByName ("E21:G23");
- PrepareRange (xSheet, "E20:G23", "XArrayFormulaRange");
- XArrayFormulaRange xArrayFormula =
- (XArrayFormulaRange) xCellRange;
- // Insert a 3x3 unit matrix.
- xArrayFormula.setArrayFormula ("=A10:C12");
- Console.WriteLine ("Array formula is: " + xArrayFormula.getArrayFormula());
-
-
- // --- Multiple operations ---
- SetCellFormula (xSheet, "E26", "=E27^F26");
- SetCellValue (xSheet, "E27", 1);
- SetCellValue (xSheet, "F26", 1);
- getCellSeries (xSheet, "E27:E31").fillAuto (FillDirection.TO_BOTTOM, 1);
- getCellSeries (xSheet, "F26:J26").fillAuto (FillDirection.TO_RIGHT, 1);
- SetCellFormula (xSheet, "F33", "=SIN(E33)");
- SetCellFormula (xSheet, "G33", "=COS(E33)");
- SetCellFormula (xSheet, "H33", "=TAN(E33)");
- SetCellValue (xSheet, "E34", 0);
- SetCellValue (xSheet, "E35", 0.2);
- getCellSeries (xSheet, "E34:E38").fillAuto (FillDirection.TO_BOTTOM, 2);
- PrepareRange (xSheet, "E25:J38", "XMultipleOperation");
-
- unoidl.com.sun.star.table.CellRangeAddress aFormulaRange = CreateCellRangeAddress (xSheet, "E26");
- unoidl.com.sun.star.table.CellAddress aColCell = CreateCellAddress (xSheet, "E27");
- unoidl.com.sun.star.table.CellAddress aRowCell = CreateCellAddress (xSheet, "F26");
-
- xCellRange = xSheet.getCellRangeByName ("E26:J31");
- XMultipleOperation xMultOp = (XMultipleOperation) xCellRange;
- xMultOp.setTableOperation (
- aFormulaRange, TableOperationMode.BOTH,
- aColCell, aRowCell);
-
- aFormulaRange = CreateCellRangeAddress (xSheet, "F33:H33");
- aColCell = CreateCellAddress (xSheet, "E33");
- // Row cell not needed
-
- xCellRange = xSheet.getCellRangeByName ("E34:H38");
- xMultOp = (XMultipleOperation) xCellRange;
- xMultOp.setTableOperation (
- aFormulaRange, TableOperationMode.COLUMN,
- aColCell, aRowCell);
-
-
- // --- Cell Ranges Query ---
- xCellRange = xSheet.getCellRangeByName ("A10:C30");
- XCellRangesQuery xRangesQuery =
- (XCellRangesQuery) xCellRange;
- XSheetCellRanges xCellRanges =
- xRangesQuery.queryContentCells (
- (short) CellFlags.STRING);
- Console.WriteLine (
- "Cells in A10:C30 containing text: "
- + xCellRanges.getRangeAddressesAsString());
- }
-
- /** Returns the XCellSeries interface of a cell range.
- @param xSheet The spreadsheet containing the cell range.
- @param aRange The address of the cell range.
- @return The XCellSeries interface. */
- XCellSeries getCellSeries (
- XSpreadsheet xSheet, string aRange)
- {
- return (XCellSeries)
- xSheet.getCellRangeByName (aRange);
- }
-
- // ________________________________________________________________
-
- /** All samples regarding cell range collections. */
- void doCellRangesSamples ()
- {
- Console.WriteLine ("\n*** Samples for cell range collections ***\n");
-
- // Create a new cell range container
- XMultiServiceFactory xDocFactory = (XMultiServiceFactory) Document;
- XSheetCellRangeContainer xRangeCont =
- (XSheetCellRangeContainer)
- xDocFactory.createInstance (
- "com.sun.star.sheet.SheetCellRanges");
-
-
- // --- Insert ranges ---
- insertRange (xRangeCont, 0, 0, 0, 0, 0, false); // A1:A1
- insertRange (xRangeCont, 0, 0, 1, 0, 2, true); // A2:A3
- insertRange (xRangeCont, 0, 1, 0, 1, 2, false); // B1:B3
-
-
- // --- Query the list of filled cells ---
- Console.WriteLine ("All filled cells: ");
- unoidl.com.sun.star.container.XEnumerationAccess xCellsEA =
- xRangeCont.getCells ();
- unoidl.com.sun.star.container.XEnumeration xEnum =
- xCellsEA.createEnumeration ();
- while (xEnum.hasMoreElements())
- {
- uno.Any aCellObj = xEnum.nextElement ();
- XCellAddressable xAddr =
- (XCellAddressable) aCellObj.Value;
- unoidl.com.sun.star.table.CellAddress aAddr =
- xAddr.getCellAddress ();
- Console.WriteLine (
- GetCellAddressString (aAddr.Column, aAddr.Row) + " ");
- }
- Console.WriteLine ();
- }
-
- /** Inserts a cell range address into a cell range container and prints
- a message.
- @param xContainer XSheetCellRangeContainer
- interface of the container.
- @param nSheet Index of sheet of the range.
- @param nStartCol Index of first column of the range.
- @param nStartRow Index of first row of the range.
- @param nEndCol Index of last column of the range.
- @param nEndRow Index of last row of the range.
- @param bMerge Determines whether the new range should be merged
- with the existing ranges.
- */
- void insertRange (
- XSheetCellRangeContainer xContainer,
- int nSheet, int nStartCol, int nStartRow, int nEndCol, int nEndRow,
- bool bMerge)
- {
- unoidl.com.sun.star.table.CellRangeAddress aAddress =
- new unoidl.com.sun.star.table.CellRangeAddress ();
- aAddress.Sheet = (short)nSheet;
- aAddress.StartColumn = nStartCol;
- aAddress.StartRow = nStartRow;
- aAddress.EndColumn = nEndCol;
- aAddress.EndRow = nEndRow;
- xContainer.addRangeAddress (aAddress, bMerge);
- Console.WriteLine (
- "Inserting " + GetCellRangeAddressString (aAddress)
- + " " + (bMerge ? " with" : "without") + " merge,"
- + " resulting list: " + xContainer.getRangeAddressesAsString());
- }
-
- // ________________________________________________________________
-
- /** All samples regarding cell cursors. */
- void doCellCursorSamples ()
- {
- Console.WriteLine ("\n*** Samples for cell cursor ***\n");
- XSpreadsheet xSheet = GetSpreadsheet (0);
-
-
- // --- Find the array formula using a cell cursor ---
- unoidl.com.sun.star.table.XCellRange xRange =
- xSheet.getCellRangeByName ("F22");
- XSheetCellRange xCellRange =
- (XSheetCellRange) xRange;
- XSheetCellCursor xCursor =
- xSheet.createCursorByRange (xCellRange);
-
- xCursor.collapseToCurrentArray ();
- XArrayFormulaRange xArray =
- (XArrayFormulaRange) xCursor;
- Console.WriteLine (
- "Array formula in " + GetCellRangeAddressString (xCursor, false)
- + " contains formula " + xArray.getArrayFormula());
-
-
- // --- Find the used area ---
- XUsedAreaCursor xUsedCursor =
- (XUsedAreaCursor) xCursor;
- xUsedCursor.gotoStartOfUsedArea (false);
- xUsedCursor.gotoEndOfUsedArea (true);
- // xUsedCursor and xCursor are interfaces of the same object -
- // so modifying xUsedCursor takes effect on xCursor:
- Console.WriteLine ("The used area is: " + GetCellRangeAddressString (xCursor, true));
- }
-
- // ________________________________________________________________
-
- /** All samples regarding the formatting of cells and ranges. */
- void doFormattingSamples ()
- {
- Console.WriteLine ("\n*** Formatting samples ***\n");
- XSpreadsheet xSheet = GetSpreadsheet (1);
- unoidl.com.sun.star.table.XCellRange xCellRange;
- unoidl.com.sun.star.beans.XPropertySet xPropSet = null;
- unoidl.com.sun.star.container.XIndexAccess xRangeIA = null;
- XMultiServiceFactory xServiceManager;
-
-
- // --- Cell styles ---
- // get the cell style container
- unoidl.com.sun.star.style.XStyleFamiliesSupplier xFamiliesSupplier =
- (unoidl.com.sun.star.style.XStyleFamiliesSupplier) Document;
- unoidl.com.sun.star.container.XNameAccess xFamiliesNA =
- xFamiliesSupplier.getStyleFamilies ();
- uno.Any aCellStylesObj = xFamiliesNA.getByName ("CellStyles");
- unoidl.com.sun.star.container.XNameContainer xCellStylesNA =
- (unoidl.com.sun.star.container.XNameContainer) aCellStylesObj.Value;
-
- // create a new cell style
- xServiceManager =
- (XMultiServiceFactory) Document;
- object aCellStyle = xServiceManager.createInstance (
- "com.sun.star.style.CellStyle");
- string aStyleName = "MyNewCellStyle";
- xCellStylesNA.insertByName (
- aStyleName, new uno.Any (typeof (object), aCellStyle));
-
- // modify properties of the new style
- xPropSet = (unoidl.com.sun.star.beans.XPropertySet) aCellStyle;
- xPropSet.setPropertyValue (
- "CellBackColor", new uno.Any ((Int32) 0x888888));
- xPropSet.setPropertyValue (
- "IsCellBackgroundTransparent", new uno.Any (false));
-
-
-
- // --- Query equal-formatted cell ranges ---
- // prepare example, use the new cell style
- xCellRange = xSheet.getCellRangeByName ("D2:F2");
- xPropSet = (unoidl.com.sun.star.beans.XPropertySet) xCellRange;
- xPropSet.setPropertyValue ("CellStyle", new uno.Any (aStyleName));
-
- xCellRange = xSheet.getCellRangeByName ("A3:G3");
- xPropSet = (unoidl.com.sun.star.beans.XPropertySet) xCellRange;
- xPropSet.setPropertyValue ("CellStyle", new uno.Any (aStyleName));
-
- // All ranges in one container
- xCellRange = xSheet.getCellRangeByName ("A1:G3");
- Console.WriteLine ("Service CellFormatRanges:");
- XCellFormatRangesSupplier xFormatSupp =
- (XCellFormatRangesSupplier) xCellRange;
- xRangeIA = xFormatSupp.getCellFormatRanges ();
- Console.WriteLine (GetCellRangeListString (xRangeIA));
-
- // Ranges sorted in SheetCellRanges containers
- Console.WriteLine ("\nService UniqueCellFormatRanges:");
- XUniqueCellFormatRangesSupplier
- xUniqueFormatSupp =
- (XUniqueCellFormatRangesSupplier)
- xCellRange;
- unoidl.com.sun.star.container.XIndexAccess xRangesIA =
- xUniqueFormatSupp.getUniqueCellFormatRanges ();
- int nCount = xRangesIA.getCount ();
- for (int nIndex = 0; nIndex < nCount; ++nIndex)
- {
- uno.Any aRangesObj = xRangesIA.getByIndex (nIndex);
- xRangeIA =
- (unoidl.com.sun.star.container.XIndexAccess) aRangesObj.Value;
- Console.WriteLine (
- "Container " + (nIndex + 1) + ": " +
- GetCellRangeListString (xRangeIA));
- }
-
-
- // --- Table auto formats ---
- // get the global collection of table auto formats,
- // use global service manager
- xServiceManager = ServiceManager;
- object aAutoFormatsObj = xServiceManager.createInstance (
- "com.sun.star.sheet.TableAutoFormats");
- unoidl.com.sun.star.container.XNameContainer xAutoFormatsNA =
- (unoidl.com.sun.star.container.XNameContainer) aAutoFormatsObj;
-
- // create a new table auto format and insert into the container
- string aAutoFormatName = "Temp_Example";
- bool bExistsAlready = xAutoFormatsNA.hasByName (aAutoFormatName);
- uno.Any aAutoFormatObj;
- if (bExistsAlready)
- // auto format already exists -> use it
- aAutoFormatObj = xAutoFormatsNA.getByName (aAutoFormatName);
- else
- {
- // create a new auto format (with document service manager!)
- xServiceManager =
- (XMultiServiceFactory) Document;
- aAutoFormatObj = new uno.Any (
- typeof (object),
- xServiceManager.createInstance (
- "com.sun.star.sheet.TableAutoFormat"));
- xAutoFormatsNA.insertByName (aAutoFormatName, aAutoFormatObj);
- }
- // index access to the auto format fields
- unoidl.com.sun.star.container.XIndexAccess xAutoFormatIA =
- (unoidl.com.sun.star.container.XIndexAccess) aAutoFormatObj.Value;
-
- // set properties of all auto format fields
- for (int nRow = 0; nRow < 4; ++nRow)
- {
- int nRowColor = 0;
- switch (nRow)
- {
- case 0: nRowColor = 0x999999; break;
- case 1: nRowColor = 0xFFFFCC; break;
- case 2: nRowColor = 0xEEEEEE; break;
- case 3: nRowColor = 0x999999; break;
- }
-
- for (int nColumn = 0; nColumn < 4; ++nColumn)
- {
- int nColor = nRowColor;
- if ((nColumn == 0) || (nColumn == 3))
- nColor -= 0x333300;
-
- // get the auto format field and apply properties
- uno.Any aFieldObj = xAutoFormatIA.getByIndex (
- 4 * nRow + nColumn);
- xPropSet =
- (unoidl.com.sun.star.beans.XPropertySet) aFieldObj.Value;
- xPropSet.setPropertyValue (
- "CellBackColor", new uno.Any ((Int32) nColor));
- }
- }
-
- // set the auto format to the spreadsheet
- xCellRange = xSheet.getCellRangeByName ("A5:H25");
- unoidl.com.sun.star.table.XAutoFormattable xAutoForm =
- (unoidl.com.sun.star.table.XAutoFormattable) xCellRange;
- xAutoForm.autoFormat (aAutoFormatName);
-
- // remove the auto format
- if (!bExistsAlready)
- xAutoFormatsNA.removeByName (aAutoFormatName);
-
-
- // --- Conditional formats ---
- xSheet = GetSpreadsheet (0);
- PrepareRange (xSheet, "K20:K23", "Cond. Format");
- SetCellValue (xSheet, "K21", 1);
- SetCellValue (xSheet, "K22", 2);
- SetCellValue (xSheet, "K23", 3);
-
- // get the conditional format object of the cell range
- xCellRange = xSheet.getCellRangeByName ("K21:K23");
- xPropSet = (unoidl.com.sun.star.beans.XPropertySet) xCellRange;
- XSheetConditionalEntries xEntries =
- (XSheetConditionalEntries)
- xPropSet.getPropertyValue ("ConditionalFormat").Value;
-
- // create a condition and apply it to the range
- unoidl.com.sun.star.beans.PropertyValue[] aCondition =
- new unoidl.com.sun.star.beans.PropertyValue[3];
- aCondition[0] = new unoidl.com.sun.star.beans.PropertyValue ();
- aCondition[0].Name = "Operator";
- aCondition[0].Value =
- new uno.Any (
- typeof (ConditionOperator),
- ConditionOperator.GREATER);
- aCondition[1] = new unoidl.com.sun.star.beans.PropertyValue ();
- aCondition[1].Name = "Formula1";
- aCondition[1].Value = new uno.Any ("1");
- aCondition[2] = new unoidl.com.sun.star.beans.PropertyValue ();
- aCondition[2].Name = "StyleName";
- aCondition[2].Value = new uno.Any (aStyleName);
- xEntries.addNew (aCondition);
- xPropSet.setPropertyValue (
- "ConditionalFormat",
- new uno.Any (
- typeof (XSheetConditionalEntries),
- xEntries));
- }
-
- // ________________________________________________________________
-
- /** All samples regarding the spreadsheet document. */
- void doDocumentSamples ()
- {
- Console.WriteLine ("\n*** Samples for spreadsheet document ***\n");
-
-
- // --- Insert a new spreadsheet ---
- XSpreadsheet xSheet = InsertSpreadsheet ("A new sheet", (short) 0x7FFF);
-
-
- // --- Copy a cell range ---
- PrepareRange (xSheet, "A1:B3", "Copy from");
- PrepareRange (xSheet, "D1:E3", "To");
- SetCellValue (xSheet, "A2", 123);
- SetCellValue (xSheet, "B2", 345);
- SetCellFormula (xSheet, "A3", "=SUM(A2:B2)");
- SetCellFormula (xSheet, "B3", "=FORMULA(A3)");
-
- XCellRangeMovement xMovement =
- (XCellRangeMovement) xSheet;
- unoidl.com.sun.star.table.CellRangeAddress aSourceRange =
- CreateCellRangeAddress (xSheet, "A2:B3");
- unoidl.com.sun.star.table.CellAddress aDestCell =
- CreateCellAddress (xSheet, "D2");
- xMovement.copyRange (aDestCell, aSourceRange);
-
-
- // --- Print automatic column page breaks ---
- XSheetPageBreak xPageBreak =
- (XSheetPageBreak) xSheet;
- TablePageBreakData[] aPageBreakArray =
- xPageBreak.getColumnPageBreaks ();
-
- Console.Write ("Automatic column page breaks:");
- for (int nIndex = 0; nIndex < aPageBreakArray.Length; ++nIndex)
- if (!aPageBreakArray[nIndex].ManualBreak)
- Console.Write (" " + aPageBreakArray[nIndex].Position);
- Console.WriteLine ();
-
-
- // --- Document properties ---
- unoidl.com.sun.star.beans.XPropertySet xPropSet =
- (unoidl.com.sun.star.beans.XPropertySet) Document;
-
- string aText = "Value of property IsIterationEnabled: ";
- aText +=
- (Boolean) xPropSet.getPropertyValue ("IsIterationEnabled").Value;
- Console.WriteLine (aText);
- aText = "Value of property IterationCount: ";
- aText += (Int32) xPropSet.getPropertyValue ("IterationCount").Value;
- Console.WriteLine (aText);
- aText = "Value of property NullDate: ";
- unoidl.com.sun.star.util.Date aDate = (unoidl.com.sun.star.util.Date)
- xPropSet.getPropertyValue ("NullDate").Value;
- aText += aDate.Year + "-" + aDate.Month + "-" + aDate.Day;
- Console.WriteLine (aText);
-
-
- // --- Data validation ---
- PrepareRange (xSheet, "A5:C7", "Validation");
- SetCellFormula (xSheet, "A6", "Insert values between 0.0 and 5.0 below:");
-
- unoidl.com.sun.star.table.XCellRange xCellRange =
- xSheet.getCellRangeByName ("A7:C7");
- unoidl.com.sun.star.beans.XPropertySet xCellPropSet =
- (unoidl.com.sun.star.beans.XPropertySet) xCellRange;
- // validation properties
- unoidl.com.sun.star.beans.XPropertySet xValidPropSet =
- (unoidl.com.sun.star.beans.XPropertySet)
- xCellPropSet.getPropertyValue ("Validation").Value;
- xValidPropSet.setPropertyValue (
- "Type",
- new uno.Any (
- typeof (ValidationType),
- ValidationType.DECIMAL));
- xValidPropSet.setPropertyValue (
- "ShowErrorMessage", new uno.Any (true));
- xValidPropSet.setPropertyValue (
- "ErrorMessage", new uno.Any ("This is an invalid value!"));
- xValidPropSet.setPropertyValue (
- "ErrorAlertStyle",
- new uno.Any (
- typeof (ValidationAlertStyle),
- ValidationAlertStyle.STOP));
- // condition
- XSheetCondition xCondition =
- (XSheetCondition) xValidPropSet;
- xCondition.setOperator (
- ConditionOperator.BETWEEN);
- xCondition.setFormula1 ("0.0");
- xCondition.setFormula2 ("5.0");
- // apply on cell range
- xCellPropSet.setPropertyValue (
- "Validation",
- new uno.Any (
- typeof (unoidl.com.sun.star.beans.XPropertySet),
- xValidPropSet));
-
-
- // --- Scenarios ---
- uno.Any [][] aValues = {
- new uno.Any [] { uno.Any.VOID, uno.Any.VOID },
- new uno.Any [] { uno.Any.VOID, uno.Any.VOID }
- };
-
- aValues[ 0 ][ 0 ] = new uno.Any ((double) 11);
- aValues[ 0 ][ 1 ] = new uno.Any ((double) 12);
- aValues[ 1 ][ 0 ] = new uno.Any ("Test13");
- aValues[ 1 ][ 1 ] = new uno.Any ("Test14");
- insertScenario (
- xSheet, "B10:C11", aValues,
- "First Scenario", "The first scenario.");
-
- aValues[ 0 ][ 0 ] = new uno.Any ("Test21");
- aValues[ 0 ][ 1 ] = new uno.Any ("Test22");
- aValues[ 1 ][ 0 ] = new uno.Any ((double) 23);
- aValues[ 1 ][ 1 ] = new uno.Any ((double) 24);
- insertScenario (
- xSheet, "B10:C11", aValues,
- "Second Scenario", "The visible scenario.");
-
- aValues[ 0 ][ 0 ] = new uno.Any ((double) 31);
- aValues[ 0 ][ 1 ] = new uno.Any ((double) 32);
- aValues[ 1 ][ 0 ] = new uno.Any ("Test33");
- aValues[ 1 ][ 1 ] = new uno.Any ("Test34");
- insertScenario (
- xSheet, "B10:C11", aValues,
- "Third Scenario", "The last scenario.");
-
- // show second scenario
- showScenario (xSheet, "Second Scenario");
- }
-
- /** Inserts a scenario containing one cell range into a sheet and
- applies the value array.
- @param xSheet The XSpreadsheet interface of the spreadsheet.
- @param aRange The range address for the scenario.
- @param aValueArray The array of cell contents.
- @param aScenarioName The name of the new scenario.
- @param aScenarioComment The user comment for the scenario. */
- void insertScenario (
- XSpreadsheet xSheet,
- string aRange,
- uno.Any [][] aValueArray,
- string aScenarioName,
- string aScenarioComment)
- {
- // get the cell range with the given address
- unoidl.com.sun.star.table.XCellRange xCellRange =
- xSheet.getCellRangeByName (aRange);
-
- // create the range address sequence
- XCellRangeAddressable xAddr =
- (XCellRangeAddressable) xCellRange;
- unoidl.com.sun.star.table.CellRangeAddress[] aRangesSeq =
- new unoidl.com.sun.star.table.CellRangeAddress[1];
- aRangesSeq[0] = xAddr.getRangeAddress ();
-
- // create the scenario
- XScenariosSupplier xScenSupp =
- (XScenariosSupplier) xSheet;
- XScenarios xScenarios =
- xScenSupp.getScenarios ();
- xScenarios.addNewByName (aScenarioName, aRangesSeq, aScenarioComment);
-
- // insert the values into the range
- XCellRangeData xData =
- (XCellRangeData) xCellRange;
- xData.setDataArray (aValueArray);
- }
-
- /** Activates a scenario.
- @param xSheet The XSpreadsheet interface of the spreadsheet.
- @param aScenarioName The name of the scenario. */
- void showScenario (
- XSpreadsheet xSheet,
- string aScenarioName)
- {
- // get the scenario set
- XScenariosSupplier xScenSupp =
- (XScenariosSupplier) xSheet;
- XScenarios xScenarios =
- xScenSupp.getScenarios ();
-
- // get the scenario and activate it
- uno.Any aScenarioObj = xScenarios.getByName (aScenarioName);
- XScenario xScenario =
- (XScenario) aScenarioObj.Value;
- xScenario.apply ();
- }
-
- // ________________________________________________________________
-
- void doNamedRangesSamples ()
- {
- Console.WriteLine ("\n*** Samples for named ranges ***\n");
- XSpreadsheetDocument xDocument = Document;
- XSpreadsheet xSheet = GetSpreadsheet (0);
-
-
- // --- Named ranges ---
- PrepareRange (xSheet, "G42:H45", "Named ranges");
- xSheet.getCellByPosition (6, 42).setValue (1);
- xSheet.getCellByPosition (6, 43).setValue (2);
- xSheet.getCellByPosition (7, 42).setValue (3);
- xSheet.getCellByPosition (7, 43).setValue (4);
-
- // insert a named range
- unoidl.com.sun.star.beans.XPropertySet xDocProp =
- (unoidl.com.sun.star.beans.XPropertySet) xDocument;
- uno.Any aRangesObj = xDocProp.getPropertyValue ("NamedRanges");
- XNamedRanges xNamedRanges =
- (XNamedRanges) aRangesObj.Value;
- unoidl.com.sun.star.table.CellAddress aRefPos =
- new unoidl.com.sun.star.table.CellAddress ();
- aRefPos.Sheet = 0;
- aRefPos.Column = 6;
- aRefPos.Row = 44;
- xNamedRanges.addNewByName ("ExampleName", "SUM(G43:G44)", aRefPos, 0);
-
- // use the named range in formulas
- xSheet.getCellByPosition (6, 44).setFormula ("=ExampleName");
- xSheet.getCellByPosition (7, 44).setFormula ("=ExampleName");
-
-
- // --- Label ranges ---
- PrepareRange (xSheet, "G47:I50", "Label ranges");
- unoidl.com.sun.star.table.XCellRange xRange =
- xSheet.getCellRangeByPosition (6, 47, 7, 49);
- XCellRangeData xData =
- (XCellRangeData) xRange;
- uno.Any [][] aValues =
- {
- new uno.Any [] { new uno.Any ("Apples"),
- new uno.Any ("Oranges") },
- new uno.Any [] { new uno.Any ((double) 5),
- new uno.Any ((double) 7) },
- new uno.Any [] { new uno.Any ((double) 6),
- new uno.Any ((double) 8) }
- };
- xData.setDataArray (aValues);
-
- // insert a column label range
- uno.Any aLabelsObj = xDocProp.getPropertyValue ("ColumnLabelRanges");
- XLabelRanges xLabelRanges =
- (XLabelRanges) aLabelsObj.Value;
- unoidl.com.sun.star.table.CellRangeAddress aLabelArea =
- new unoidl.com.sun.star.table.CellRangeAddress ();
- aLabelArea.Sheet = 0;
- aLabelArea.StartColumn = 6;
- aLabelArea.StartRow = 47;
- aLabelArea.EndColumn = 7;
- aLabelArea.EndRow = 47;
- unoidl.com.sun.star.table.CellRangeAddress aDataArea =
- new unoidl.com.sun.star.table.CellRangeAddress ();
- aDataArea.Sheet = 0;
- aDataArea.StartColumn = 6;
- aDataArea.StartRow = 48;
- aDataArea.EndColumn = 7;
- aDataArea.EndRow = 49;
- xLabelRanges.addNew (aLabelArea, aDataArea);
-
- // use the label range in formulas
- xSheet.getCellByPosition (8, 48).setFormula ("=Apples+Oranges");
- xSheet.getCellByPosition (8, 49).setFormula ("=Apples+Oranges");
- }
-
- // ________________________________________________________________
-
- /** Helper for doDatabaseSamples: get name of first database. */
- string getFirstDatabaseName ()
- {
- string aDatabase = null;
- XMultiServiceFactory xServiceManager = ServiceManager;
- unoidl.com.sun.star.container.XNameAccess xContext =
- (unoidl.com.sun.star.container.XNameAccess)
- xServiceManager.createInstance (
- "com.sun.star.sdb.DatabaseContext");
- string[] aNames = xContext.getElementNames ();
- if (aNames.Length > 0)
- aDatabase = aNames[0];
- return aDatabase;
- }
-
- /** Helper for doDatabaseSamples: get name of first table in a database. */
- string getFirstTableName (string aDatabase)
- {
- if (aDatabase == null)
- return null;
-
- string aTable = null;
- XMultiServiceFactory xServiceManager = ServiceManager;
- unoidl.com.sun.star.container.XNameAccess xContext =
- (unoidl.com.sun.star.container.XNameAccess)
- xServiceManager.createInstance (
- "com.sun.star.sdb.DatabaseContext");
- unoidl.com.sun.star.sdb.XCompletedConnection xSource =
- (unoidl.com.sun.star.sdb.XCompletedConnection)
- xContext.getByName (aDatabase).Value;
- unoidl.com.sun.star.task.XInteractionHandler xHandler =
- (unoidl.com.sun.star.task.XInteractionHandler)
- xServiceManager.createInstance (
- "com.sun.star.sdb.InteractionHandler");
- unoidl.com.sun.star.sdbcx.XTablesSupplier xSupplier =
- (unoidl.com.sun.star.sdbcx.XTablesSupplier)
- xSource.connectWithCompletion (xHandler);
- unoidl.com.sun.star.container.XNameAccess xTables =
- xSupplier.getTables ();
- string[] aNames = xTables.getElementNames ();
- if (aNames.Length > 0)
- aTable = aNames[0];
- return aTable;
- }
-
- void doDatabaseSamples ()
- {
- Console.WriteLine ("\n*** Samples for database operations ***\n");
- XSpreadsheet xSheet = GetSpreadsheet (2);
-
-
- // --- put some example data into the sheet ---
- unoidl.com.sun.star.table.XCellRange xRange =
- xSheet.getCellRangeByName ("B3:D24");
- XCellRangeData xData =
- (XCellRangeData) xRange;
- uno.Any [][] aValues =
- {
- new uno.Any [] { new uno.Any ("Name"),
- new uno.Any ("Year"),
- new uno.Any ("Sales") },
- new uno.Any [] { new uno.Any ("Alice"),
- new uno.Any ((double) 2001),
- new uno.Any ((double) 4.0) },
- new uno.Any [] { new uno.Any ("Carol"),
- new uno.Any ((double) 1997),
- new uno.Any ((double) 3.0) },
- new uno.Any [] { new uno.Any ("Carol"),
- new uno.Any ((double) 1998),
- new uno.Any ((double) 8.0) },
- new uno.Any [] { new uno.Any ("Bob"),
- new uno.Any ((double) 1997),
- new uno.Any ((double) 8.0) },
- new uno.Any [] { new uno.Any ("Alice"),
- new uno.Any ((double) 2002),
- new uno.Any ((double) 9.0) },
- new uno.Any [] { new uno.Any ("Alice"),
- new uno.Any ((double) 1999),
- new uno.Any ((double) 7.0) },
- new uno.Any [] { new uno.Any ("Alice"),
- new uno.Any ((double) 1996),
- new uno.Any ((double) 3.0) },
- new uno.Any [] { new uno.Any ("Bob"),
- new uno.Any ((double) 2000),
- new uno.Any ((double) 1.0) },
- new uno.Any [] { new uno.Any ("Carol"),
- new uno.Any ((double) 1999),
- new uno.Any ((double) 5.0) },
- new uno.Any [] { new uno.Any ("Bob"),
- new uno.Any ((double) 2002),
- new uno.Any ((double) 1.0) },
- new uno.Any [] { new uno.Any ("Carol"),
- new uno.Any ((double) 2001),
- new uno.Any ((double) 5.0) },
- new uno.Any [] { new uno.Any ("Carol"),
- new uno.Any ((double) 2000),
- new uno.Any ((double) 1.0) },
- new uno.Any [] { new uno.Any ("Carol"),
- new uno.Any ((double) 1996),
- new uno.Any ((double) 8.0) },
- new uno.Any [] { new uno.Any ("Bob"),
- new uno.Any ((double) 1996),
- new uno.Any ((double) 7.0) },
- new uno.Any [] { new uno.Any ("Alice"),
- new uno.Any ((double) 1997),
- new uno.Any ((double) 3.0) },
- new uno.Any [] { new uno.Any ("Alice"),
- new uno.Any ((double) 2000),
- new uno.Any ((double) 9.0) },
- new uno.Any [] { new uno.Any ("Bob"),
- new uno.Any ((double) 1998),
- new uno.Any ((double) 1.0) },
- new uno.Any [] { new uno.Any ("Bob"),
- new uno.Any ((double) 1999),
- new uno.Any ((double) 6.0) },
- new uno.Any [] { new uno.Any ("Carol"),
- new uno.Any ((double) 2002),
- new uno.Any ((double) 8.0) },
- new uno.Any [] { new uno.Any ("Alice"),
- new uno.Any ((double) 1998),
- new uno.Any ((double) 5.0) },
- new uno.Any [] { new uno.Any ("Bob"),
- new uno.Any ((double) 2001),
- new uno.Any ((double) 6.0) }
- };
- xData.setDataArray (aValues);
-
-
- // --- filter for second column >= 1998 ---
- XSheetFilterable xFilter =
- (XSheetFilterable) xRange;
- XSheetFilterDescriptor xFilterDesc =
- xFilter.createFilterDescriptor (true);
- TableFilterField[] aFilterFields =
- new TableFilterField[1];
- aFilterFields[0] = new TableFilterField ();
- aFilterFields[0].Field = 1;
- aFilterFields[0].IsNumeric = true;
- aFilterFields[0].Operator =
- FilterOperator.GREATER_EQUAL;
- aFilterFields[0].NumericValue = 1998;
- xFilterDesc.setFilterFields (aFilterFields);
- unoidl.com.sun.star.beans.XPropertySet xFilterProp =
- (unoidl.com.sun.star.beans.XPropertySet) xFilterDesc;
- xFilterProp.setPropertyValue (
- "ContainsHeader", new uno.Any (true));
- xFilter.filter (xFilterDesc);
-
-
- // --- do the same filter as above, using criteria from a cell range ---
- unoidl.com.sun.star.table.XCellRange xCritRange =
- xSheet.getCellRangeByName ("B27:B28");
- XCellRangeData xCritData =
- (XCellRangeData) xCritRange;
- uno.Any [][] aCritValues =
- {
- new uno.Any [] { new uno.Any ("Year") },
- new uno.Any [] { new uno.Any (">= 1998") }
- };
- xCritData.setDataArray (aCritValues);
- XSheetFilterableEx xCriteria =
- (XSheetFilterableEx) xCritRange;
- xFilterDesc = xCriteria.createFilterDescriptorByObject (xFilter);
- if (xFilterDesc != null)
- xFilter.filter (xFilterDesc);
-
-
- // --- sort by second column, ascending ---
- unoidl.com.sun.star.util.SortField[] aSortFields =
- new unoidl.com.sun.star.util.SortField[1];
- aSortFields[0] = new unoidl.com.sun.star.util.SortField ();
- aSortFields[0].Field = 1;
- aSortFields[0].SortAscending = true;
-
- unoidl.com.sun.star.beans.PropertyValue[] aSortDesc =
- new unoidl.com.sun.star.beans.PropertyValue[2];
- aSortDesc[0] = new unoidl.com.sun.star.beans.PropertyValue ();
- aSortDesc[0].Name = "SortFields";
- aSortDesc[0].Value =
- new uno.Any (
- typeof (unoidl.com.sun.star.util.SortField []),
- aSortFields);
- aSortDesc[1] = new unoidl.com.sun.star.beans.PropertyValue ();
- aSortDesc[1].Name = "ContainsHeader";
- aSortDesc[1].Value = new uno.Any (true);
-
- unoidl.com.sun.star.util.XSortable xSort =
- (unoidl.com.sun.star.util.XSortable) xRange;
- xSort.sort (aSortDesc);
-
-
- // --- insert subtotals ---
- XSubTotalCalculatable xSub =
- (XSubTotalCalculatable) xRange;
- XSubTotalDescriptor xSubDesc =
- xSub.createSubTotalDescriptor (true);
- SubTotalColumn[] aColumns =
- new SubTotalColumn[1];
- // calculate sum of third column
- aColumns[0] = new SubTotalColumn ();
- aColumns[0].Column = 2;
- aColumns[0].Function = GeneralFunction.SUM;
- // group by first column
- xSubDesc.addNew (aColumns, 0);
- xSub.applySubTotals (xSubDesc, true);
-
- string aDatabase = getFirstDatabaseName ();
- string aTableName = getFirstTableName (aDatabase);
- if (aDatabase != null && aTableName != null)
- {
- // --- import from database ---
- unoidl.com.sun.star.beans.PropertyValue[] aImportDesc =
- new unoidl.com.sun.star.beans.PropertyValue[3];
- aImportDesc[0] = new unoidl.com.sun.star.beans.PropertyValue ();
- aImportDesc[0].Name = "DatabaseName";
- aImportDesc[0].Value = new uno.Any (aDatabase);
- aImportDesc[1] = new unoidl.com.sun.star.beans.PropertyValue ();
- aImportDesc[1].Name = "SourceType";
- aImportDesc[1].Value =
- new uno.Any (
- typeof (DataImportMode),
- DataImportMode.TABLE);
- aImportDesc[2] = new unoidl.com.sun.star.beans.PropertyValue ();
- aImportDesc[2].Name = "SourceObject";
- aImportDesc[2].Value = new uno.Any (aTableName);
-
- unoidl.com.sun.star.table.XCellRange xImportRange =
- xSheet.getCellRangeByName ("B35:B35");
- unoidl.com.sun.star.util.XImportable xImport =
- (unoidl.com.sun.star.util.XImportable) xImportRange;
- xImport.doImport (aImportDesc);
-
-
- // --- use the temporary database range to find the
- // imported data's size ---
- unoidl.com.sun.star.beans.XPropertySet xDocProp =
- (unoidl.com.sun.star.beans.XPropertySet) Document;
- uno.Any aRangesObj = xDocProp.getPropertyValue ("DatabaseRanges");
- unoidl.com.sun.star.container.XNameAccess xRanges =
- (unoidl.com.sun.star.container.XNameAccess) aRangesObj.Value;
- string[] aNames = xRanges.getElementNames ();
- for (int i=0; i<aNames.Length; i++)
- {
- uno.Any aRangeObj = xRanges.getByName (aNames[i]);
- unoidl.com.sun.star.beans.XPropertySet xRangeProp =
- (unoidl.com.sun.star.beans.XPropertySet) aRangeObj.Value;
- bool bUser = (Boolean)
- xRangeProp.getPropertyValue ("IsUserDefined").Value;
- if (!bUser) {
- // this is the temporary database range -
- // get the cell range and format it
- XCellRangeReferrer xRef =
- (XCellRangeReferrer)
- aRangeObj.Value;
- unoidl.com.sun.star.table.XCellRange xResultRange =
- xRef.getReferredCells ();
- unoidl.com.sun.star.beans.XPropertySet xResultProp =
- (unoidl.com.sun.star.beans.XPropertySet) xResultRange;
- xResultProp.setPropertyValue (
- "IsCellBackgroundTransparent", new uno.Any (false));
- xResultProp.setPropertyValue (
- "CellBackColor", new uno.Any ((int) 0xFFFFCC));
- }
- }
- }
- else
- Console.WriteLine("can't get database");
- }
-
- // ________________________________________________________________
-
- void doDataPilotSamples ()
- {
- Console.WriteLine ("\n*** Samples for Data Pilot ***\n");
- XSpreadsheet xSheet = GetSpreadsheet (0);
-
-
- // --- Create a new DataPilot table ---
- PrepareRange (xSheet, "A38:C38", "Data Pilot");
- XDataPilotTablesSupplier xDPSupp = (XDataPilotTablesSupplier) xSheet;
- XDataPilotTables xDPTables = xDPSupp.getDataPilotTables ();
- XDataPilotDescriptor xDPDesc = xDPTables.createDataPilotDescriptor ();
-
- // set source range (use data range from CellRange test)
- unoidl.com.sun.star.table.CellRangeAddress aSourceAddress = CreateCellRangeAddress (xSheet, "A10:C30");
- xDPDesc.setSourceRange (aSourceAddress);
-
- // settings for fields
- unoidl.com.sun.star.container.XIndexAccess xFields = xDPDesc.getDataPilotFields ();
- uno.Any aFieldObj;
- unoidl.com.sun.star.beans.XPropertySet xFieldProp;
-
- // use first column as column field
- aFieldObj = xFields.getByIndex(0);
- xFieldProp = (unoidl.com.sun.star.beans.XPropertySet) aFieldObj.Value;
- xFieldProp.setPropertyValue ("Orientation",
- new uno.Any (typeof (DataPilotFieldOrientation), DataPilotFieldOrientation.COLUMN));
-
- // use second column as row field
- aFieldObj = xFields.getByIndex(1);
- xFieldProp = (unoidl.com.sun.star.beans.XPropertySet) aFieldObj.Value;
- xFieldProp.setPropertyValue ("Orientation",
- new uno.Any (typeof (DataPilotFieldOrientation),DataPilotFieldOrientation.ROW));
-
- // use third column as data field, calculating the sum
- aFieldObj = xFields.getByIndex(2);
- xFieldProp = (unoidl.com.sun.star.beans.XPropertySet) aFieldObj.Value;
- xFieldProp.setPropertyValue ("Orientation",
- new uno.Any (typeof (DataPilotFieldOrientation), DataPilotFieldOrientation.DATA));
- xFieldProp.setPropertyValue ("Function",
- new uno.Any (typeof (GeneralFunction), GeneralFunction.SUM));
-
- // select output position
- unoidl.com.sun.star.table.CellAddress aDestAddress = CreateCellAddress (xSheet, "A40");
- xDPTables.insertNewByName ("DataPilotExample", aDestAddress, xDPDesc);
-
-
- // --- Modify the DataPilot table ---
- uno.Any aDPTableObj = xDPTables.getByName ("DataPilotExample");
- xDPDesc = (XDataPilotDescriptor) aDPTableObj.Value;
- xFields = xDPDesc.getDataPilotFields ();
-
- // add a second data field from the third column,
- // calculating the average
- aFieldObj = xFields.getByIndex(2);
- xFieldProp = (unoidl.com.sun.star.beans.XPropertySet) aFieldObj.Value;
- xFieldProp.setPropertyValue ("Orientation",
- new uno.Any (typeof (DataPilotFieldOrientation), DataPilotFieldOrientation.DATA));
- xFieldProp.setPropertyValue ("Function",
- new uno.Any (typeof (GeneralFunction), GeneralFunction.AVERAGE));
- }
-
- void doFunctionAccessSamples ()
- {
- Console.WriteLine ("\n*** Samples for function handling ***\n");
- XMultiServiceFactory xServiceManager = ServiceManager;
-
- // --- Calculate a function ---
- object aFuncInst = xServiceManager.createInstance ("com.sun.star.sheet.FunctionAccess");
- XFunctionAccess xFuncAcc = (XFunctionAccess) aFuncInst;
-
- // put the data in a two-dimensional array
- double [][] aData = { new double [] { 1.0, 2.0, 3.0 } };
-
- // construct the array of function arguments
- uno.Any [] aArgs = new uno.Any [2];
- aArgs[0] = new uno.Any (typeof (double [][]), aData);
- aArgs[1] = new uno.Any ((double) 2.0);
- uno.Any aResult = xFuncAcc.callFunction ("ZTEST", aArgs);
- Console.WriteLine ("ZTEST result for data {1,2,3} and value 2 is " + aResult.Value);
-
- // --- Get the list of recently used functions ---
- object aRecInst = xServiceManager.createInstance ("com.sun.star.sheet.RecentFunctions");
- XRecentFunctions xRecFunc = (XRecentFunctions) aRecInst;
- int[] nRecentIds = xRecFunc.getRecentFunctionIds ();
-
- // --- Get the names for these functions ---
- object aDescInst = xServiceManager.createInstance ("com.sun.star.sheet.FunctionDescriptions");
- XFunctionDescriptions xFuncDesc = (XFunctionDescriptions) aDescInst;
- Console.Write("Recently used functions: ");
- for (int nFunction=0; nFunction<nRecentIds.Length; nFunction++)
- {
- unoidl.com.sun.star.beans.PropertyValue[] aProperties = xFuncDesc.getById (nRecentIds[nFunction]);
- for (int nProp=0; nProp<aProperties.Length; nProp++)
- if (aProperties[nProp].Name.Equals ("Name"))
- Console.Write (aProperties[nProp].Value + " ");
- }
- Console.WriteLine ();
- }
-
- void doApplicationSettingsSamples ()
- {
- Console.WriteLine ("\n*** Samples for application settings ***\n");
- XMultiServiceFactory xServiceManager = ServiceManager;
-
- // --- Get the user defined sort lists ---
- object aSettings = xServiceManager.createInstance ("com.sun.star.sheet.GlobalSheetSettings");
- unoidl.com.sun.star.beans.XPropertySet xPropSet = (unoidl.com.sun.star.beans.XPropertySet) aSettings;
- string[] aEntries = (string []) xPropSet.getPropertyValue ("UserLists").Value;
- Console.WriteLine("User defined sort lists:");
- for (int i=0; i<aEntries.Length; i++)
- Console.WriteLine (aEntries[i]);
- }
- }
-}]]></File>
- </Files>
- </Project>
- </Combine>
-</Template>
diff --git a/extras/OpenOfficeSamples/OpenOfficeSpreadsheetTableSample.xpt.xml b/extras/OpenOfficeSamples/OpenOfficeSpreadsheetTableSample.xpt.xml
deleted file mode 100644
index 3e47e2bbfe..0000000000
--- a/extras/OpenOfficeSamples/OpenOfficeSpreadsheetTableSample.xpt.xml
+++ /dev/null
@@ -1,263 +0,0 @@
-<?xml version="1.0"?>
-<Template originator = "Michael Hutchinson"
- created = "2008/05/30"
- lastModified = "2008/05/30">
-
- <!-- Template Header -->
- <TemplateConfiguration>
- <_Name>Spreadsheet Table Sample</_Name>
- <_Category>C#/OpenOffice Samples</_Category>
- <Icon>md-project</Icon>
- <LanguageName>C#</LanguageName>
- <_Description>Creates a new C# OpenOffice integration sample project.</_Description>
- </TemplateConfiguration>
-
- <!-- Actions -->
- <Actions>
- <Open filename = "Main.cs"/>
- </Actions>
-
- <!-- Template Content -->
- <Combine name = "${ProjectName}" directory = ".">
- <Options>
- <StartupProject>${ProjectName}</StartupProject>
- </Options>
-
- <Project name = "${ProjectName}" directory = ".">
- <Options/>
- <References>
- <Reference type="Gac" refto="System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
- <Reference type="Gac" refto="System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
- <Reference type="Gac" refto="cli_basetypes, Version=1.0.9.0, Culture=neutral, PublicKeyToken=ce2cb7e279207b9e" />
- <Reference type="Gac" refto="cli_uno_bridge, Version=0.0.0.0, Culture=neutral, PublicKeyToken=ce2cb7e279207b9e" />
- <Reference type="Gac" refto="cli_ure, Version=1.0.12.0, Culture=neutral, PublicKeyToken=ce2cb7e279207b9e" />
- <Reference type="Gac" refto="cli_types, Version=1.1.12.0, Culture=neutral, PublicKeyToken=ce2cb7e279207b9e" />
- <Reference type="Gac" refto="cli_cppuhelper, Version=1.0.12.0, Culture=neutral, PublicKeyToken=ce2cb7e279207b9e" />
- </References>
-
- <Files>
- <FileTemplateReference TemplateID="CSharpAssemblyInfo" name="AssemblyInfo.cs" />
- <FileTemplateReference TemplateID="OpenOfficeSpreadsheetDocHelper" name="SpreadsheetDocHelper.cs" />
- <File name="Main.cs" AddStandardHeader="False"><![CDATA[//
-// This library is free software; you can redistribute it and/or
-// modify it under the terms of the GNU Lesser General Public
-// License as published by the Free Software Foundation; either
-// version 2.1 of the License, or (at your option) any later version.
-//
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-// Lesser General Public License for more details.
-//
-// You should have received a copy of the GNU Lesser General Public
-// License along with this library. If not, see <http://www.gnu.org/licenses/>.
-
-using System;
-using unoidl.com.sun.star.table;
-using unoidl.com.sun.star.container;
-using unoidl.com.sun.star.sheet;
-using unoidl.com.sun.star.beans;
-
-namespace OpenOffice.Samples
-{
-
- /// <summary>
- /// Creates a spreadsheet document and provides access to table contents.
- /// </summary>
- public class GeneralTableSample : SpreadsheetDocHelper
- {
-
- public static void Main (string[] args)
- {
- try {
- //get a spreadsheet handle and run through the samples
- using (GeneralTableSample sample = new GeneralTableSample (args)) {
- XSpreadsheet sheet = sample.GetSpreadsheet (0);
- sample.SetCellValues (sheet);
- sample.WriteFormulaWithValidityMessage (sheet);
- sample.AlterCellRanges (sheet);
- sample.WriteUsingCellCursor (sheet);
- sample.ModifyColumnsAndRows (sheet);
- sample.InsertChart (sheet);
-
- }
- Console.WriteLine ("Samples done.");
- } catch (Exception ex) {
- Console.WriteLine ("Sample caught exception! " + ex);
- }
- }
-
- public GeneralTableSample (string[] args) : base (args)
- {
- }
-
- public void SetCellValues (XSpreadsheet sheet)
- {
- Console.WriteLine ("Setting cell values.");
-
- // Get cell and set cell value.
- XCell cell = sheet.getCellByPosition (0, 0);
- cell.setValue (1234);
-
- // Get cell value, modify, and write to another cell
- double cellValue = cell.getValue () * 2;
- sheet.getCellByPosition (0, 1).setValue (cellValue);
- }
-
- public void WriteFormulaWithValidityMessage (XSpreadsheet sheet)
- {
- Console.WriteLine ("Writing cell formula and validity message.");
-
- // Get cell and set formula string.
- XCell cell = sheet.getCellByPosition (0, 2);
- cell.setFormula ("=1/0");
-
- //Create a message saying if it's valid
- bool valid = (cell.getError () == 0);
- string text = string.Format ("The formula {0} is {1}",
- cell.getFormula(), valid ? "valid." : "erroneous.");
-
- // Insert the message into a text cell using the XText interface
- cell = sheet.getCellByPosition (0, 3);
- unoidl.com.sun.star.text.XText cellText = (unoidl.com.sun.star.text.XText) cell;
- unoidl.com.sun.star.text.XTextCursor textCursor = cellText.createTextCursor();
- cellText.insertString (textCursor, text, false);
-
- // Change cell properties, so that the color depends on the formula's validity
- int color = valid ? 0x00FF00 : 0xFF4040;
- XPropertySet propSet = (XPropertySet) cell;
- propSet.setPropertyValue ("CellBackColor", new uno.Any (color));
- }
-
- /// <summary>
- /// Sample for service table.CellRange.
- /// </summary>
- public void AlterCellRanges (XSpreadsheet sheet)
- {
- Console.WriteLine("Altering cell ranges.");
-
- // Accessing a cell range over its position.
- XCellRange cellRange = sheet.getCellRangeByPosition (2, 0, 3, 1);
-
- // Change properties of the range.
- XPropertySet propSet = (XPropertySet) cellRange;
- propSet.setPropertyValue ("CellBackColor", new uno.Any ((int)0x8080FF));
-
- // Accessing a cell range over its name.
- cellRange = sheet.getCellRangeByName ("C4:D5");
-
- // Change properties of the range.
- propSet = (XPropertySet) cellRange;
- propSet.setPropertyValue ("CellBackColor", new uno.Any ((int)0xFFFF80));
- }
-
- /// <summary>
- /// Sample for service table.CellCursor
- /// </summary>
- public void WriteUsingCellCursor (XSpreadsheet sheet)
- {
- Console.WriteLine ("Writing cell value using a cell cursor.");
-
- // Create a cursor using the XSpreadsheet method createCursorByRange()
- XCellRange cellRange = sheet.getCellRangeByName ("A1");
- XSheetCellRange sheetCellRange = (XSheetCellRange) cellRange;
- XSheetCellCursor sheetCellCursor = sheet.createCursorByRange (sheetCellRange);
- XCellCursor cursor = (XCellCursor) sheetCellCursor;
-
- // Move to the last filled cell.
- cursor.gotoEnd ();
-
- // Move one row down.
- cursor.gotoOffset (0, 1);
- cursor.getCellByPosition (0, 0).setFormula ("Beyond of the last filled cell.");
- }
-
- /// <summary>
- /// Sample for services table.TableRows and table.TableColumns
- /// </summary>
- public void ModifyColumnsAndRows (XSpreadsheet sheet)
- {
- Console.WriteLine ("Modifying Columns and Rows");
-
- XColumnRowRange colRowRange = (XColumnRowRange) sheet;
- XTableColumns columns = colRowRange.getColumns();
- XTableRows rows = colRowRange.getRows();
-
- // Get column C by index (interface XIndexAccess).
- uno.Any columnObj = columns.getByIndex (2);
- XPropertySet propSet = (XPropertySet) columnObj.Value;
- propSet.setPropertyValue ("Width", new uno.Any (5000));
-
- // Get the name of the column.
- XNamed xNamed = (XNamed) columnObj.Value;
- string text = "The name of this column is " + xNamed.getName() + ".";
- sheet.getCellByPosition (2, 2).setFormula (text);
-
- // Get column D by name (interface XNameAccess).
- XNameAccess columnsName = (XNameAccess) columns;
-
- columnObj = columnsName.getByName ("D");
- propSet = (XPropertySet) columnObj.Value;
- propSet.setPropertyValue ("IsVisible", new uno.Any (false));
-
- // Get row 7 by index (interface XIndexAccess)
- uno.Any aRowObj = rows.getByIndex (6);
- propSet = (XPropertySet) aRowObj.Value;
- propSet.setPropertyValue ("Height", new uno.Any (5000));
-
- sheet.getCellByPosition (2, 6).setFormula ("What a big cell.");
-
- // Create a cell series with the values 1 ... 7.
- for (int row = 8; row < 15; ++row)
- sheet.getCellByPosition (0, row).setValue (row - 7);
-
- // Insert a row between 1 and 2
- rows.insertByIndex (9, 1);
-
- // Delete the rows with the values 3 and 4.
- rows.removeByIndex (11, 2);
-
- }
-
- /// <summary>
- /// Sample for service table.TableCharts
- /// </summary>
- public void InsertChart (XSpreadsheet sheet)
- {
- Console.WriteLine ("Inserting chart.");
-
- XTableChartsSupplier chartsSupp = (XTableChartsSupplier) sheet;
- XTableCharts charts = chartsSupp.getCharts();
-
- // The chart will base on the last cell series, initializing all values.
- string name = "newChart";
- unoidl.com.sun.star.awt.Rectangle rect = new unoidl.com.sun.star.awt.Rectangle();
- rect.X = 10000;
- rect.Y = 3000;
- rect.Width = rect.Height = 5000;
- CellRangeAddress[] ranges = new CellRangeAddress[1];
- ranges[0] = CreateCellRangeAddress (sheet, "A9:A14");
-
- // Create the chart.
- charts.addNewByName (name, rect, ranges, false, false);
-
- // Get the chart by name.
- uno.Any chartObj = charts.getByName (name);
- XTableChart chart = (XTableChart) chartObj.Value;
-
- // Query the state of row and column headers.
- sheet.getCellByPosition (2, 8).setFormula (
- "Chart has column headers: " + (
- chart.getHasColumnHeaders () ? "yes" : "no"));
- sheet.getCellByPosition (2, 9).setFormula (
- "Chart has row headers: " + (
- chart.getHasRowHeaders () ? "yes" : "no"));
-
- }
- }
-
-}]]></File>
- </Files>
- </Project>
- </Combine>
-</Template>
diff --git a/extras/OpenOfficeSamples/OpenOfficeSpreadsheetViewSample.xpt.xml b/extras/OpenOfficeSamples/OpenOfficeSpreadsheetViewSample.xpt.xml
deleted file mode 100644
index e49f0d4e98..0000000000
--- a/extras/OpenOfficeSamples/OpenOfficeSpreadsheetViewSample.xpt.xml
+++ /dev/null
@@ -1,186 +0,0 @@
-<?xml version="1.0"?>
-<Template originator = "Michael Hutchinson"
- created = "2008/05/30"
- lastModified = "2008/05/30">
-
- <!-- Template Header -->
- <TemplateConfiguration>
- <_Name>Spreadsheet View Sample</_Name>
- <_Category>C#/OpenOffice Samples</_Category>
- <Icon>md-project</Icon>
- <LanguageName>C#</LanguageName>
- <_Description>Creates a new C# OpenOffice integration sample project.</_Description>
- </TemplateConfiguration>
-
- <!-- Actions -->
- <Actions>
- <Open filename = "Main.cs"/>
- </Actions>
-
- <!-- Template Content -->
- <Combine name = "${ProjectName}" directory = ".">
- <Options>
- <StartupProject>${ProjectName}</StartupProject>
- </Options>
-
- <Project name = "${ProjectName}" directory = ".">
- <Options/>
- <References>
- <Reference type="Gac" refto="System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
- <Reference type="Gac" refto="System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
- <Reference type="Gac" refto="cli_basetypes, Version=1.0.9.0, Culture=neutral, PublicKeyToken=ce2cb7e279207b9e" />
- <Reference type="Gac" refto="cli_uno_bridge, Version=0.0.0.0, Culture=neutral, PublicKeyToken=ce2cb7e279207b9e" />
- <Reference type="Gac" refto="cli_ure, Version=1.0.12.0, Culture=neutral, PublicKeyToken=ce2cb7e279207b9e" />
- <Reference type="Gac" refto="cli_types, Version=1.1.12.0, Culture=neutral, PublicKeyToken=ce2cb7e279207b9e" />
- <Reference type="Gac" refto="cli_cppuhelper, Version=1.0.12.0, Culture=neutral, PublicKeyToken=ce2cb7e279207b9e" />
- </References>
-
- <Files>
- <FileTemplateReference TemplateID="CSharpAssemblyInfo" name="AssemblyInfo.cs" />
- <FileTemplateReference TemplateID="OpenOfficeSpreadsheetDocHelper" name="SpreadsheetDocHelper.cs" />
- <File name="Main.cs" AddStandardHeader="False"><![CDATA[//
-// This library is free software; you can redistribute it and/or
-// modify it under the terms of the GNU Lesser General Public
-// License as published by the Free Software Foundation; either
-// version 2.1 of the License, or (at your option) any later version.
-//
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-// Lesser General Public License for more details.
-//
-// You should have received a copy of the GNU Lesser General Public
-// License along with this library. If not, see <http://www.gnu.org/licenses/>.
-
-using System;
-using System.Threading;
-using unoidl.com.sun.star.sheet;
-using unoidl.com.sun.star.beans;
-using unoidl.com.sun.star.container;
-using unoidl.com.sun.star.table;
-using unoidl.com.sun.star.view;
-using unoidl.com.sun.star.frame;
-
-namespace OpenOffice.Samples
-{
- /// <summary> Create and modify a spreadsheet view. </summary>
- public class ViewSample : SpreadsheetDocHelper
- {
-
- public static void Main (String [] args)
- {
- try {
- using (ViewSample sample = new ViewSample (args)) {
- sample.doSampleFunction ();
- }
- Console.WriteLine ("\nSamples done.");
- } catch (Exception ex) {
- Console.WriteLine ("Sample caught exception! " + ex);
- }
- }
-
- public ViewSample (string[] args)
- : base (args)
- {
- }
-
- /// <summary>
- /// This sample function performs all changes on the view.
- /// </summary>
- public void doSampleFunction()
- {
- XModel model = (XModel) Document;
- XController xController = model.getCurrentController();
-
- // --- Spreadsheet view ---
- // freeze the first column and first two rows
- XViewFreezable xFreeze = (XViewFreezable) xController;
- if (null != xFreeze)
- Console.WriteLine ("got xFreeze");
- xFreeze.freezeAtPosition (1, 2);
-
- // --- View pane ---
- // get the cell range shown in the second pane and assign
- // a cell background to them
- XIndexAccess xIndex = (XIndexAccess) xController;
- uno.Any aPane = xIndex.getByIndex(1);
- XCellRangeReferrer xRefer = (XCellRangeReferrer) aPane.Value;
- XCellRange xRange = xRefer.getReferredCells();
- XPropertySet xRangeProp = (XPropertySet) xRange;
- xRangeProp.setPropertyValue("IsCellBackgroundTransparent", new uno.Any (false));
- xRangeProp.setPropertyValue("CellBackColor", new uno.Any ((int) 0xFFFFCC));
-
- // --- View settings ---
- // change the view to display green grid lines
- XPropertySet xProp = (XPropertySet) xController;
- xProp.setPropertyValue ("ShowGrid", new uno.Any (true));
- xProp.setPropertyValue ("GridColor", new uno.Any ((int) 0x00CC00));
-
- // --- Range selection ---
- // let the user select a range and use it as the view's selection
- XRangeSelection xRngSel = (XRangeSelection) xController;
- ExampleRangeListener aListener = new ExampleRangeListener();
- xRngSel.addRangeSelectionListener (aListener);
- PropertyValue[] aArguments = new PropertyValue[2];
- aArguments[0] = new PropertyValue ();
- aArguments[0].Name = "Title";
- aArguments[0].Value = new uno.Any ("Please select a range");
- aArguments[1] = new PropertyValue();
- aArguments[1].Name = "CloseOnMouseRelease";
- aArguments[1].Value = new uno.Any (true);
- xRngSel.startRangeSelection (aArguments);
-
- Monitor.Enter (aListener);
- try {
- // wait until the selection is done
- Monitor.Wait (aListener);
- } finally {
- Monitor.Exit (aListener);
- }
-
- xRngSel.removeRangeSelectionListener (aListener);
- if (aListener.aResult != null && aListener.aResult.Length != 0) {
- XSelectionSupplier xSel = (XSelectionSupplier) xController;
- XSpreadsheetView xView = (XSpreadsheetView) xController;
- XSpreadsheet xSheet = xView.getActiveSheet();
- XCellRange xResultRange = xSheet.getCellRangeByName (aListener.aResult);
- xSel.select (new uno.Any (typeof (XCellRange), xResultRange));
- }
- }
-
- // listener to react on finished selection
- private class ExampleRangeListener : XRangeSelectionListener
- {
- public string aResult;
-
- public void done (RangeSelectionEvent evt)
- {
- aResult = evt.RangeDescriptor;
- Monitor.Enter (this);
- try {
- Monitor.Pulse (this);
- } finally {
- Monitor.Exit (this);
- }
- }
-
- public void aborted (RangeSelectionEvent aEvent)
- {
- Monitor.Enter (this);
- try {
- Monitor.Pulse (this);
- } finally {
- Monitor.Exit (this);
- }
- }
-
- public void disposing (unoidl.com.sun.star.lang.EventObject aObj)
- {
- }
- }
- }
-}]]></File>
- </Files>
- </Project>
- </Combine>
-</Template>
diff --git a/extras/OpenOfficeSamples/README b/extras/OpenOfficeSamples/README
deleted file mode 100644
index cc23ac7fa8..0000000000
--- a/extras/OpenOfficeSamples/README
+++ /dev/null
@@ -1,26 +0,0 @@
-This directory includes a small sample to test the mono bridge. It opens OOo
-Calc and puts some stuff into the first sheet. It should be enough to call:
-
- make
-
-The .cs files are taken from the OOo sources:
-
- odk/examples/CLI/CSharp/Spreadsheet/*.cs
-
-
-You can redistribute it and/or modify it under the terms of
-the GNU Lesser General Public License version 2.1,
-as published by the Free Software Foundation.
-
-This library is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-Lesser General Public License for more details.
-
-You should have received a copy of the GNU Lesser General Public
-License along with this library; if not, write to the Free Software
-Foundation, Inc., 59 Temple Place, Suite 330, Boston,
-MA 02111-1307 USA
-
-
- Happy testing!
diff --git a/extras/PyBinding/ChangeLog b/extras/PyBinding/ChangeLog
deleted file mode 100644
index 78b7100bd8..0000000000
--- a/extras/PyBinding/ChangeLog
+++ /dev/null
@@ -1,130 +0,0 @@
-2010-06-14 Lluis Sanchez Gual <lluis@novell.com>
-
- * configure: Bump MD version.
-
-2010-05-20 Lluis Sanchez Gual <lluis@novell.com>
-
- * configure: Bump MD version.
-
-2010-03-22 Lluis Sanchez Gual <lluis@novell.com>
-
- * configure: Bumped MD version.
-
-2010-03-01 Lluis Sanchez Gual <lluis@novell.com>
-
- * PyBinding.sln: Flush.
-
-2009-10-30 Lluis Sanchez Gual <lluis@novell.com>
-
- * configure: Bump MD version.
-
-2009-10-07 Lluis Sanchez Gual <lluis@novell.com>
-
- * configure: Bump MD version.
-
-2009-08-26 Lluis Sanchez Gual <lluis@novell.com>
-
- * configure: We now depend on gtk# 2.12.8, Mono 2.4, and
- Mono.Addins 0.4.
-
-2009-06-17 Lluis Sanchez Gual <lluis@novell.com>
-
- * PyBinding.sln: Remove obsolete extension.
-
-2009-04-15 Lluis Sanchez Gual <lluis@novell.com>
-
- * configure: Bump MD version.
-
-2009-02-26 Lluis Sanchez Gual <lluis@novell.com>
-
- * PyBinding.sln: Flush.
-
-2009-02-25 Michael Hutchinson <mhutchinson@novell.com>
-
- * PyBinding.sln: Set policies. Remove unused name attribute.
-
-2009/02/06 Lluis Sanchez Gual <lluis@novell.com>
-
- * PyBinding.sln: Add missing file.
-
-2009/02/06 Lluis Sanchez Gual <lluis@novell.com>
-
- * PyBinding.mds: Migrated to MSBuild file format.
-
-2009/02/03 Lluis Sanchez Gual <lluis@novell.com>
-
- * configure: Bump MD version.
-
-2009/02/03 Lluis Sanchez Gual <lluis@novell.com>
-
- * PyBinding.mds: Flush.
-
-2008-11-05 Lluis Sanchez Gual <lluis@novell.com>
-
- * configure:
- * PyBinding/Resources/PyBinding.addin.xml: Bump MD version.
-
-2008-11-04 Michael Hutchinson <mhutchinson@novell.com>
-
- * PyBinding/Resources/PyBinding.addin.xml: Track movement of parser
- extension point.
-
-2008-10-17 Michael Hutchinson <mhutchinson@novell.com>
-
- * PyBinding/Makefile: Fix install path.
-
-2008-10-16 Michael Hutchinson <mhutchinson@novell.com>
-
- * configure: Fix tarball name.
-
-2008-10-10 Michael Hutchinson <mhutchinson@novell.com>
-
- * PyBinding/PyBinding.Gui/PythonEditorIndentation.cs: Don't break the
- text editor extension chain for non-python files.
-
-2008-10-09 Christian Hergert <chris@dronelabs.com>
-
- * PyBinding/PyBinding.Gui/PythonEditorIndentation.cs: Only indent if
- the file is python.
-
-2008-10-09 Michael Hutchinson <mhutchinson@novell.com>
-
- * PyBinding/PyBinding.Gui/PythonEditorCompletion.cs:
- * PyBinding/PyBinding.Completion/PythonCompletionDataProvider.cs: Track
- APIs.
-
- * PyBinding/Makefile:
- * PyBinding/PyBinding.mdp: Updated.
-
-2008-10-09 Christian Hergert <chris@dronelabs.com>
-
- * PyBinding/PyBinding.Parser.Dom/PythonParsedDocument.cs:
- * PyBinding/PyBinding/PythonHelper.cs: Handle null/empty directories and
- filenames.
-
-2008-10-09 Michael Hutchinson <mhutchinson@novell.com>
-
- * PyBinding/PyBinding.Completion/PythonCompletionDataProvider.cs: Track
- CompletionData API.
-
-2008-10-09 Michael Hutchinson <mhutchinson@novell.com>
-
- * PyBinding/Makefile:
- * PyBinding/PyBinding.mdp: Fix output directory.
-
-2008-10-09 Michael Hutchinson <mhutchinson@novell.com>
-
- * Makefile:
- * configure:
- * rules.make:
- * Makefile.include:
- * PyBinding/Makefile:
- * PyBinding/PyBinding.mdp:
- * PyBinding/gtk-gui/gui.stetic:
- * PyBinding/monodevelop-pybinding.pc.in: Add makefile build system. Set
- GTK# version to 2.8.
-
-2008-10-08 Christian Hergert <chris@dronelabs.com>
-
- * .: Initial import
-
diff --git a/extras/PyBinding/Makefile b/extras/PyBinding/Makefile
deleted file mode 100644
index 32d56f11de..0000000000
--- a/extras/PyBinding/Makefile
+++ /dev/null
@@ -1,71 +0,0 @@
-
-EXTRA_DIST = rules.make configure Makefile.include
-
-all: all-recursive
-
-top_srcdir=.
-include $(top_srcdir)/config.make
-include $(top_srcdir)/Makefile.include
-include $(top_srcdir)/rules.make
-
-#include $(top_srcdir)/custom-hooks.make
-
-#Warning: This is an automatically generated file, do not edit!
-ifeq ($(CONFIG),DEBUG)
- SUBDIRS = PyBinding
-endif
-ifeq ($(CONFIG),RELEASE)
- SUBDIRS = PyBinding
-endif
-
-
-CONFIG_MAKE=$(top_srcdir)/config.make
-
-%-recursive: $(CONFIG_MAKE)
- @set . $$MAKEFLAGS; final_exit=:; \
- case $$2 in --unix) shift ;; esac; \
- case $$2 in *=*) dk="exit 1" ;; *k*) dk=: ;; *) dk="exit 1" ;; esac; \
- make pre-$*-hook prefix=$(prefix) ; \
- for dir in $(call quote_each,$(SUBDIRS)); do \
- case "$$dir" in \
- .) make $*-local || { final_exit="exit 1"; $$dk; };;\
- *) (cd "$$dir" && make $*) || { final_exit="exit 1"; $$dk; };;\
- esac \
- done; \
- make post-$*-hook prefix=$(prefix) ; \
- $$final_exit
-
-$(CONFIG_MAKE):
- echo "You must run configure first"
- exit 1
-
-clean: clean-recursive
-install: install-recursive
-uninstall: uninstall-recursive
-
-dist: $(CONFIG_MAKE)
- rm -rf $(PACKAGE)-$(VERSION)
- mkdir $(PACKAGE)-$(VERSION)
- make pre-dist-hook distdir=$$distdir
- for dir in $(call quote_each,$(SUBDIRS)); do \
- pkgdir=`pwd`/$(PACKAGE)-$(VERSION); \
- mkdir "$$pkgdir/$$dir" || true; \
- case $$dir in \
- .) make dist-local "distdir=$$pkgdir" || exit 1;; \
- *) (cd "$$dir"; make dist-local "distdir=$$pkgdir/$$dir") || exit 1;; \
- esac \
- done
- (make dist-local distdir=$(PACKAGE)-$(VERSION))
- make post-dist-hook "distsir=$$distdir"
- tar czvf $(PACKAGE)-$(VERSION).tar.gz $(PACKAGE)-$(VERSION)
- rm -rf $(PACKAGE)-$(VERSION)
- @echo "=========================================="
- @echo "$(PACKAGE)-$(VERSION) has been packaged > $(PACKAGE)-$(VERSION).tar.gz"
- @echo "=========================================="
-
-distcheck: dist
- (mkdir test; cd test; \
- tar xzvf ../$(PACKAGE)-$(VERSION).tar.gz; cd $(PACKAGE)-$(VERSION); \
- ./configure --prefix=$$(cd `pwd`/..; pwd); \
- make && make install && make dist);
- rm -rf test
diff --git a/extras/PyBinding/Makefile.include b/extras/PyBinding/Makefile.include
deleted file mode 100644
index c35d8b2ebc..0000000000
--- a/extras/PyBinding/Makefile.include
+++ /dev/null
@@ -1,110 +0,0 @@
-VALID_CULTURES = ar bg ca zh-CHS cs da de el en es fi fr he hu is it ja ko nl no pl pt ro ru hr sk sq sv th tr id uk be sl et lv lt fa vi hy eu mk af fo hi sw gu ta te kn mr gl kok ar-SA bg-BG ca-ES zh-TW cs-CZ da-DK de-DE el-GR en-US fi-FI fr-FR he-IL hu-HU is-IS it-IT ja-JP ko-KR nl-NL nb-NO pl-PL pt-BR ro-RO ru-RU hr-HR sk-SK sq-AL sv-SE th-TH tr-TR id-ID uk-UA be-BY sl-SI et-EE lv-LV lt-LT fa-IR vi-VN hy-AM eu-ES mk-MK af-ZA fo-FO hi-IN sw-KE gu-IN ta-IN te-IN kn-IN mr-IN gl-ES kok-IN ar-IQ zh-CN de-CH en-GB es-MX fr-BE it-CH nl-BE nn-NO pt-PT sv-FI ar-EG zh-HK de-AT en-AU es-ES fr-CA ar-LY zh-SG de-LU en-CA es-GT fr-CH ar-DZ zh-MO en-NZ es-CR fr-LU ar-MA en-IE es-PA ar-TN en-ZA es-DO ar-OM es-VE ar-YE es-CO ar-SY es-PE ar-JO es-AR ar-LB en-ZW es-EC ar-KW en-PH es-CL ar-AE es-UY ar-BH es-PY ar-QA es-BO es-SV es-HN es-NI es-PR zh-CHT
-
-s2q=$(subst \ ,?,$1)
-q2s=$(subst ?,\ ,$1)
-# use this when result will be quoted
-unesc2=$(subst ?, ,$1)
-
-build_sources = $(FILES) $(GENERATED_FILES)
-build_sources_esc= $(call s2q,$(build_sources))
-# use unesc2, as build_sources_embed is quoted
-build_sources_embed= $(call unesc2,$(build_sources_esc:%='$(srcdir)/%'))
-
-comma__=,
-get_resource_name = $(firstword $(subst $(comma__), ,$1))
-get_culture = $(lastword $(subst ., ,$(basename $1)))
-is_cultured_resource = $(and $(word 3,$(subst ., ,$1)), $(filter $(VALID_CULTURES),$(lastword $(subst ., ,$(basename $1)))))
-
-RESOURCES_ESC=$(call s2q,$(RESOURCES))
-
-build_resx_list = $(foreach res, $(RESOURCES_ESC), $(if $(filter %.resx, $(call get_resource_name,$(res))),$(res),))
-build_non_culture_resx_list = $(foreach res, $(build_resx_list),$(if $(call is_cultured_resource,$(call get_resource_name,$(res))),,$(res)))
-build_non_culture_others_list = $(foreach res, $(filter-out $(build_resx_list),$(RESOURCES_ESC)),$(if $(call is_cultured_resource,$(call get_resource_name,$(res))),,$(res)))
-build_others_list = $(build_non_culture_others_list)
-build_xamlg_list = $(filter %.xaml.g.cs, $(FILES))
-
-# resgen all .resx resources
-build_resx_files = $(foreach res, $(build_resx_list), $(call get_resource_name,$(res)))
-build_resx_resources_esc = $(build_resx_files:.resx=.resources)
-build_resx_resources = $(call q2s,$(build_resx_resources_esc))
-
-# embed resources for the main assembly
-build_resx_resources_hack = $(subst .resx,.resources, $(build_non_culture_resx_list))
-# use unesc2, as build_resx_resources_embed is quoted
-build_resx_resources_embed = $(call unesc2,$(build_resx_resources_hack:%='-resource:%'))
-build_others_files = $(call q2s,$(foreach res, $(build_others_list),$(call get_resource_name,$(res))))
-build_others_resources = $(build_others_files)
-# use unesc2, as build_others_resources_embed is quoted
-build_others_resources_embed = $(call unesc2,$(build_others_list:%='-resource:$(srcdir)/%'))
-
-build_resources = $(build_resx_resources) $(build_others_resources)
-build_resources_embed = $(build_resx_resources_embed) $(build_others_resources_embed)
-
-# -usesourcepath is available only for resgen2
-emit_resgen_target_1=$(call q2s,$1) : $(call q2s,$(subst .resources,.resx,$1)); cd '$$(shell dirname '$$<')' && MONO_IOMAP=drive $$(RESGEN) '$$(shell basename '$$<')' '$$(shell basename '$$@')'
-emit_resgen_target_2=$(call q2s,$1) : $(call q2s,$(subst .resources,.resx,$1)); MONO_IOMAP=drive $$(RESGEN) -usesourcepath '$$<' '$$@'
-
-emit_resgen_target=$(if $(filter resgen2,$(RESGEN)),$(emit_resgen_target_2),$(emit_resgen_target_1))
-emit_resgen_targets=$(foreach res,$(build_resx_resources_esc),$(eval $(call emit_resgen_target,$(res))))
-
-build_references_ref = $(call q2s,$(foreach ref, $(call s2q,$(REFERENCES)), $(if $(filter -pkg:%, $(ref)), $(ref), $(if $(filter -r:%, $(ref)), $(ref), -r:$(ref)))))
-build_references_ref += $(call q2s,$(foreach ref, $(call s2q,$(DLL_REFERENCES)), -r:$(ref)))
-build_references_ref += $(call q2s,$(foreach ref, $(call s2q,$(PROJECT_REFERENCES)), -r:$(ref)))
-
-s2q2s=$(call unesc2,$(call s2q,$1))
-cp_actual=test -z $1 || cp $1 $2
-cp=$(call cp_actual,'$(call s2q2s,$1)','$(call s2q2s,$2)')
-
-rm_actual=test -z '$1' || rm -f '$2'
-rm=$(call rm_actual,$(call s2q2s,$1),$(call s2q2s,$2)/$(shell basename '$(call s2q2s,$1)'))
-
-EXTRA_DIST += $(build_sources) $(build_resx_files) $(build_others_files) $(ASSEMBLY_WRAPPER_IN) $(EXTRAS) $(DATA_FILES) $(build_culture_res_files)
-CLEANFILES += $(ASSEMBLY) $(ASSEMBLY).mdb $(BINARIES) $(build_resx_resources) $(build_satellite_assembly_list)
-DISTCLEANFILES = $(GENERATED_FILES) $(pc_files) $(BUILD_DIR)/*
-
-pkglib_SCRIPTS = $(ASSEMBLY)
-bin_SCRIPTS = $(BINARIES)
-
-programfilesdir = @libdir@/@PACKAGE@
-programfiles_DATA = $(PROGRAMFILES)
-linuxpkgconfigdir = @libdir@/pkgconfig
-linuxpkgconfig_DATA = $(LINUX_PKGCONFIG)
-
-
-# macros
-
-# $(call emit-deploy-target,deploy-variable-name)
-define emit-deploy-target
-$($1): $($1_SOURCE)
- mkdir -p '$$(shell dirname '$$@')'
- cp '$$<' '$$@'
-endef
-
-# $(call emit-deploy-wrapper,wrapper-variable-name,wrapper-sourcefile,x)
-# assumes that for a wrapper foo.pc its source template is foo.pc.in
-# if $3 is non-empty then wrapper is marked exec
-define emit-deploy-wrapper
-$($1): $2 $(top_srcdir)/config.make
- mkdir -p '$$(shell dirname '$$@')'
- cp '$$<' '$$@'
- $(if $3,chmod +x '$$@')
-
-$2: $2.in $(top_srcdir)/config.make
- sed -e "s,@prefix@,$(prefix)," -e "s,@PACKAGE@,$(PACKAGE)," -e "s,@expanded_libdir@,$(libdir)," -e "s,@expanded_bindir@,$(bindir)," -e "s,@expanded_datadir@,$(datadir)," < $2.in > $2
-endef
-
-# generating satellite assemblies
-
-culture_resources = $(foreach res, $(RESOURCES_ESC), $(if $(call is_cultured_resource,$(call get_resource_name, $(res))),$(res)))
-cultures = $(sort $(foreach res, $(culture_resources), $(call get_culture,$(call get_resource_name,$(res)))))
-culture_resource_dependencies = $(call q2s,$(BUILD_DIR)/$1/$(SATELLITE_ASSEMBLY_NAME): $(subst .resx,.resources,$2))
-culture_resource_commandlines = $(call unesc2,cmd_line_satellite_$1 += '/embed:$(subst .resx,.resources,$2)')
-build_satellite_assembly_list = $(call q2s,$(cultures:%=$(BUILD_DIR)/%/$(SATELLITE_ASSEMBLY_NAME)))
-build_culture_res_files = $(call q2s,$(foreach res, $(culture_resources),$(call get_resource_name,$(res))))
-
-$(eval $(foreach res, $(culture_resources), $(eval $(call culture_resource_dependencies,$(call get_culture,$(call get_resource_name,$(res))),$(call get_resource_name,$(res))))))
-$(eval $(foreach res, $(culture_resources), $(eval $(call culture_resource_commandlines,$(call get_culture,$(call get_resource_name,$(res))),$(res)))))
-
-$(build_satellite_assembly_list): $(BUILD_DIR)/%/$(SATELLITE_ASSEMBLY_NAME):
- mkdir -p '$(@D)'
- $(AL) -out:'$@' -culture:$* -t:lib $(cmd_line_satellite_$*) \ No newline at end of file
diff --git a/extras/PyBinding/PyBinding.sln b/extras/PyBinding/PyBinding.sln
deleted file mode 100644
index 262deb0b4e..0000000000
--- a/extras/PyBinding/PyBinding.sln
+++ /dev/null
@@ -1,38 +0,0 @@
-
-Microsoft Visual Studio Solution File, Format Version 11.00
-# Visual Studio 2010
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PyBinding", "PyBinding\PyBinding.csproj", "{EE5BA96B-4FA5-41ED-88BC-E8FD07EB62FE}"
-EndProject
-Global
- GlobalSection(SolutionConfigurationPlatforms) = preSolution
- Debug|Any CPU = Debug|Any CPU
- Release|Any CPU = Release|Any CPU
- EndGlobalSection
- GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {EE5BA96B-4FA5-41ED-88BC-E8FD07EB62FE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {EE5BA96B-4FA5-41ED-88BC-E8FD07EB62FE}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {EE5BA96B-4FA5-41ED-88BC-E8FD07EB62FE}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {EE5BA96B-4FA5-41ED-88BC-E8FD07EB62FE}.Release|Any CPU.Build.0 = Release|Any CPU
- EndGlobalSection
- GlobalSection(MonoDevelopProperties) = preSolution
- StartupItem = PyBinding\PyBinding.csproj
- Policies = $0
- $0.DotNetNamingPolicy = $1
- $1.DirectoryNamespaceAssociation = Flat
- $1.ResourceNamePolicy = FileName
- $0.StandardHeader = $2
- $2.Text = @\n${FileName}\n \nAuthor:\n ${AuthorName} <${AuthorEmail}>\n\nCopyright (c) ${Year} ${CopyrightHolder}\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the "Software"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.
- $2.IncludeInNewFiles = True
- $0.TextStylePolicy = $3
- $3.FileWidth = 120
- $3.TabWidth = 4
- $3.inheritsSet = Mono
- $3.inheritsScope = text/plain
- $0.VersionControlPolicy = $4
- $4.inheritsSet = Mono
- $0.ChangeLogPolicy = $5
- $5.UpdateMode = None
- $5.VcsIntegration = None
- $5.inheritsSet = Mono
- EndGlobalSection
-EndGlobal
diff --git a/extras/PyBinding/PyBinding/AssemblyInfo.cs b/extras/PyBinding/PyBinding/AssemblyInfo.cs
deleted file mode 100644
index 6329fde00d..0000000000
--- a/extras/PyBinding/PyBinding/AssemblyInfo.cs
+++ /dev/null
@@ -1,9 +0,0 @@
-// Autogenerated from PyBinding.addin.xml
-
-using System.Reflection;
-
-[assembly: AssemblyProduct ("MonoDevelop")]
-[assembly: AssemblyTitle ("Python Language Binding")]
-[assembly: AssemblyDescription ("Python Language binding")]
-[assembly: AssemblyVersion ("2.6")]
-[assembly: AssemblyCopyright ("MIT X11")]
diff --git a/extras/PyBinding/PyBinding/ChangeLog b/extras/PyBinding/PyBinding/ChangeLog
deleted file mode 100644
index f0fe30e21d..0000000000
--- a/extras/PyBinding/PyBinding/ChangeLog
+++ /dev/null
@@ -1,512 +0,0 @@
-2010-07-12 Michael Hutchinson <mhutchinson@novell.com>
-
- * PyBinding.addin.xml:
- * PyBinding.Parser/PythonParser.cs: Track
- ProjectDomService/Parser API.
-
-2010-05-11 Michael Hutchinson <mhutchinson@novell.com>
-
- * PyBinding.Gui/PythonEditorOutline.cs:
- * PyBinding.Gui/PythonEditorCompletion.cs:
- * PyBinding.Gui/PythonEditorIndentation.cs: Remove unneeded
- filename checks, now it's handled by the addin tree.
-
-2010-05-11 Michael Hutchinson <mhutchinson@novell.com>
-
- * PyBinding.addin.xml: Restrict editor extensions by file
- type.
-
- * PyBinding.Gui/PythonEditorCompletion.cs: Track API.
-
-2010-05-03 Lluis Sanchez Gual <lluis@novell.com>
-
- * PyBinding.csproj: Updated. Text style policy doesn't inherit
- python policy anymore.
-
-2010-03-22 Lluis Sanchez Gual <lluis@novell.com>
-
- * AssemblyInfo.cs:
- * PyBinding.addin.xml: Bumped MD version.
-
-2010-03-19 Lluis Sanchez Gual <lluis@novell.com>
-
- * PyBinding.Gui/PythonEditorCompletion.cs: Fix build.
-
-2010-03-17 Lluis Sanchez Gual <lluis@novell.com>
-
- * PyBinding.csproj: Remove mono.addins.targets import.
-
-2010-03-17 Lluis Sanchez Gual <lluis@novell.com>
-
- * PyBinding.csproj:
- * gtk-gui/gui.stetic:
- * PyBinding.addin.xml:
- * gtk-gui/generated.cs:
- * PyBinding/PythonSite.cs:
- * PyBinding/PythonProject.cs:
- * PyBinding.Parser/ParserDatabase.cs:
- * PyBinding.Gui/PythonOptionsPanel.cs:
- * PyBinding.Gui/PythonOptionsWidget.cs:
- * PyBinding.Gui/PythonEditorOutline.cs:
- * PyBinding.Gui/PythonEditorCompletion.cs:
- * PyBinding.Gui.Navigation/ClassNodeBuilder.cs:
- * gtk-gui/PyBinding.Gui.PythonOptionsWidget.cs:
- * PyBinding.Gui.Navigation/PackageNodeBuilder.cs:
- * PyBinding.Gui.Navigation/PackagesNodeBuilder.cs:
- * PyBinding.Gui.Navigation/FunctionNodeBuilder.cs:
- * PyBinding.Gui.Navigation/AttributeNodeBuilder.cs: Merged
- MD.Projects into MD.Core, and MD.Projects.Gui, MD.Core.Gui
- and MD.Components into MD.Ide.
-
-2010-02-18 Lluis Sanchez Gual <lluis@novell.com>
-
- * PyBinding.Parser.Dom/PythonCompilationUnit.cs: Track api
- changes.
-
-2009-12-01 Lluis Sanchez Gual <lluis@novell.com>
-
- * PyBinding/PythonProject.cs: Introduced the
- ConfigurationSelector class to all methods that previously
- took a configuration name as string. This eliminates the
- ambiguity between solution configuration names and project
- configuration names.
-
-2009-11-20 Michael Hutchinson <mhutchinson@novell.com>
-
- * PyBinding/PythonProject.cs: Track API.
-
-2009-10-30 Lluis Sanchez Gual <lluis@novell.com>
-
- * AssemblyInfo.cs:
- * PyBinding.addin.xml: Bump MD version.
-
-2009-10-07 Lluis Sanchez Gual <lluis@novell.com>
-
- * AssemblyInfo.cs:
- * PyBinding.addin.xml: Bump MD version.
-
-2009-09-18 Christian Hergert <chris@dronelabs.com>
-
- * PyBinding.Gui/PythonEditorCompletion.cs: Be less annoying with
- completion after '='.
-
-2009-09-02 Christian Hergert <chris@dronelabs.com>
-
- * Resources/completion.py: Only catch TypeError
-
- * PyBinding.Parser/PythonResolver.cs: Flush
-
-2009-09-01 Christian Hergert <chris@dronelabs.com>
-
- * Resources/completion.py: Log catastrophic errors and include
- fallback for poll_interval= not being supported before 2.6.
-
-2009-09-01 Christian Hergert <chris@dronelabs.com>
-
- * Resources/completion.py: Watch our parent pid if it was
- specified and kill ourself when the process has died.
-
- * PyBinding.Parser/PythonParserInternal.cs: Implement
- IDisposable and notify the subprocess that we want to be
- watched for death to enforce cleanup.
-
-2009-09-01 Christian Hergert <chris@dronelabs.com>
-
- * PyBinding.Parser/PythonParser.cs: Make sure the
- configuration is a python configuration before we try to
- reuse the config's IPythonRuntime. This allows non-python
- projects with python files to still have global code
- completion.
-
-2009-09-01 Christian Hergert <chris@dronelabs.com>
-
- * PyBinding.csproj: Add new files and header policy.
-
- * Makefile:
-
- * PyBinding.Parser/PythonParser.cs: Add PythonResolver and
- PythonExpressionFinder.
-
- * PyBinding.Parser/PythonResolver.cs: Beginnings of a simple
- python resolver using PythonExpressionResult.
-
- * PyBinding.Parser/PythonExpressionFinder.cs: A simple
- expression finder that currently looks at the current word
- and a word backwards to determine context for the resolver.
-
-2009-09-01 Christian Hergert <chris@dronelabs.com>
-
- * PyBinding/PythonHelper.cs: Add helper to get python package
- name.
-
-2009-09-01 Christian Hergert <chris@dronelabs.com>
-
- * PyBinding.Gui.Navigation/PackagesNodeBuilder.cs: Use the
- proper package name
-
- * PyBinding.Gui.Navigation/ProjectNodeBuilderExtension.cs:
- Just use the default ClassData builders for now.
-
-2009-09-01 Christian Hergert <chris@dronelabs.com>
-
- * PyBinding.Parser.Dom/PythonCompilationUnit.cs: Use proper
- package name and do not add class a second time.
-
-2009-09-01 Christian Hergert <chris@dronelabs.com>
-
- * PyBinding.Gui.Navigation/PackageNodeBuilder.cs:
- * PyBinding.Gui.Navigation/PackagesNodeBuilder.cs: Use
- "md-package" stock icon to be consistent.
-
-2009-09-01 Christian Hergert <chris@dronelabs.com>
-
- * PyBinding.Parser.Dom/PythonCompilationUnit.cs: Use
- "md-package" for the python package icon. Add some FIXME's.
- Keep a copy of instantiated DomType, DomField, and DomMethod
- for later use by resolver.
-
-2009-09-01 Christian Hergert <chris@dronelabs.com>
-
- * PyBinding.Parser/ParserDatabase.cs: Handle the case where
- there is no completion database created.
-
-2009-08-28 Christian Hergert <chris@dronelabs.com>
-
- * Resources/EmptyPyProject.xpt.xml: Open main.py by default
- during project creation.
-
-2009-08-28 Christian Hergert <chris@dronelabs.com>
-
- * PyBinding.Gui/PythonEditorCompletion.cs: Do completion on \t
- and \n. Keep track of the number of "." in the query and
- limit our search depth to save us a huge amount of object
- creations and deserializations.
-
- * Resources/Schema.sql: Add a Depth field that includes
- precalculated number of "." in the FullName and Index it. We
- can then search on this during resolve time.
-
- * PyBinding.Parser/ParserItem.cs: Add Depth field.
-
- * PyBinding.Parser/ParserDatabase.cs: Add Depth field and
- upgrade database if old format is discovered. Also allow for
- searching with a specific depth to limit the result set.
-
-2009-08-27 Christian Hergert <chris@dronelabs.com>
-
- * PyBinding.Parser/ParserDatabase.cs: Use shared timespan for
- lock timeouts.
-
-2009-08-27 Christian Hergert <chris@dronelabs.com>
-
- * PyBinding.Parser/ParserItem.cs: Add ParserIteypType.Any.
-
- * PyBinding.Parser/ParserDatabase.cs: Ignore item type if its
- ParserItemType.Any.
-
-2009-08-27 Christian Hergert <chris@dronelabs.com>
-
- * PyBinding.Gui/PythonEditorCompletion.cs: Cleanup
- GetTriggerWord to be a bit more accurate.
-
-2009-08-27 Christian Hergert <chris@dronelabs.com>
-
- * PyBinding.Gui/PythonEditorCompletion.cs: Do not prematurely complete within the "from " completion entry.
-
-2009-08-27 Christian Hergert <chris@dronelabs.com>
-
- * PyBinding.Gui/PythonEditorCompletion.cs: Make sure we dont limit the completion results to pakcages only if we have a trigger word.
-
-2009-08-26 Lluis Sanchez Gual <lluis@novell.com>
-
- * PyBinding.csproj:
- * gtk-gui/gui.stetic: We now depend on gtk# 2.12.8, Mono 2.4,
- and Mono.Addins 0.4.
-
-2009-08-25 Christian Hergert <chris@dronelabs.com>
-
- * PyBinding.Compiler/Python25Compiler.cs: Only compile .py files.
-
-2009-08-25 Christian Hergert <chris@dronelabs.com>
-
- * PyBinding/PyBinding.csproj:
- * PyBinding/PyBinding.addin.xml:
- * PyBinding/Resources/PythonStylePolicy.xml:
- * PyBinding/Makefile: Add python style policy, however it is not
- actually hooked up yet. That will require some changes in
- MonoDevelop.Gui.Projects.
-
-2009-08-25 Christian Hergert <chris@dronelabs.com>
-
- * PyBinding/PyBinding.csproj:
- * PyBinding/PyBinding.Gui/PythonEditorCompletion.cs: Make completion
- a little more friendly by not poping up so much when we know we dont
- know how to do anything anyway. Also be a bit smarter with class
- and def lines.
-
-2009-08-24 Christian Hergert <chris@dronelabs.com>
-
- * PyBinding.Gui/PythonEditorCompletion.cs: Add support for context
- specific completion on "from blah import blah" style lines. Completion
- is aware of import prefix.
-
-2009-08-24 Christian Hergert <chris@dronelabs.com>
-
- * PyBinding/PythonSite.cs: Use background progress monitor for python
- site module indexing.
- * PyBinding.Gui/PythonOptionsPanel.cs: Add support for removing paths
- from PYTHONPATH and truncating the database.
-
-2009-08-24 Christian Hergert <chris@dronelabs.com>
-
- * PyBinding.Gui/PythonEditorCompletion.cs: Allow completion even when
- the current file parse is in an inconsistent state.
-
-2009-08-24 Christian Hergert <chris@dronelabs.com>
-
- * PyBinding/Makefile:
- * PyBinding/PyBinding.csproj:
- * PyBinding/PyBinding/PythonSite.cs: Save PYTHONPATH to disk so we can
- reload it at next startup. Store paths and the completion database in
- ~/.config/MonoDevelop/PyBinding/Sites/<SiteName>/.
-
-2009-08-24 Christian Hergert <chris@dronelabs.com>
-
- * PyBinding.Gui/PythonEditorCompletion.cs:
- * PyBinding.Parser/PythonParser.cs: Add support for completion on files
- that are not attached to a project.
-
-2009-08-24 Christian Hergert <chris@dronelabs.com>
-
- * PyBinding.Parser/ParserDatabase.cs: No need for MaxValue. OS X (and
- probably 32-bit in general) don't seem to like this.
-
-2009-08-24 Christian Hergert <chris@dronelabs.com>
-
- * PyBinding.csproj:
- * PyBinding/PythonSite.cs:
- * PyBinding/PythonConfiguration.cs:
- * PyBinding.Parser.Dom/PythonParsedDocument.cs:
- * PyBinding.Runtime/IPythonRuntime.cs:
- * PyBinding.Runtime/AbstractPythonRuntime.cs:
- * PyBinding.Gui/PythonOptionsPanel.cs:
- * PyBinding.Gui/PythonOptionsWidget.cs:
- * PyBinding.Gui/PythonEditorCompletion.cs:
- * gtk-gui/PyBinding.Gui.PythonOptionsWidget.cs:
- * gtk-gui/gui.stetic:
- * Resources/completion.py:
- * Resources/Schema.sql:
- * Makefile:
- * PyBinding.Parser/PythonParserInternal.cs:
- * PyBinding.Parser/ParserItem.cs:
- * PyBinding.Parser/PythonParser.cs:
- * PyBinding.Parser/ParserDatabase.cs:
- * PyBinding.Parser/ParserManager.cs:
-
- This commit is the first push towards making the PyBinding more stable.
- Code completion data for python site-modules can now be indexed and is
- stored in Sqlite using Mono.Data.Sqlite. This sqlite library requires
- 3.5 from everything I can gather.
-
- The Python editor widget has been updated to support adding/removing
- custom PYTHONPATH directories.
-
- A bit of refactoring has also occurred to make managing the parser
- database instances easier.
-
-2009-08-20 Christian Hergert <chris@dronelabs.com>
-
- * PyBinding/PyBinding.addin.xml: Add description for python mime type.
- * PyBinding/PyBinding.Gui/PythonEditorIndentation.cs: Do not try to
- workaround the editor any more. It works as expected.
-
-2009-08-20 Christian Hergert <chris@dronelabs.com>
-
- * PyBinding/Resources/EmptyPySourceFile.xft.xml: Fix template
- description to properly check for Python project type.
-
-2009-08-20 Christian Hergert <chris@dronelabs.com>
-
- * PyBinding.csproj:
- * PyBinding/PythonHelper.cs: Use Python26Runtime.
- * PyBinding/PythonExecutionHandler.cs: Make sure we respect environment
- variables.
- * PyBinding/PythonConfiguration.cs: Make sure we allow the parent class
- to copy values over on Clone(). Adds PythonOptions for specifying
- options directly to the python interpriter.
- * PyBinding.Compiler/Python25Compiler.cs: Flush
- * PyBinding.addin.xml:
- * PyBinding.Runtime/Python25Runtime.cs: Respect module arguments
- that have been set and allow for passing custom arguments to the python
- interpriter during execution.
- * PyBinding.Runtime/Python26Runtime.cs: New runtime class for
- Python 2.6.
- * PyBinding.Runtime/AbstractPythonRuntime.cs:
- * PyBinding.Gui/PythonOptionsPanel.cs:
- * PyBinding.Gui/PythonOptionsWidget.cs:
- * gtk-gui/PyBinding.Gui.PythonOptionsWidget.cs:
- * gtk-gui/gui.stetic: Add GtkEntry for specifying options to the
- python runtime directly.
- * Makefile:
-
-2009-08-19 Christian Hergert <chris@dronelabs.com>
-
- * PyBinding/PyBinding.csproj:
- * PyBinding/PyBinding.addin.xml:
- * PyBinding/Resources/PyClutterProject.xpt.xml:
- * PyBinding/Makefile: Add a pyclutter example program.
-
-2009-08-19 Christian Hergert <chris@dronelabs.com>
-
- * PyBinding/PyBinding.csproj:
- * PyBinding/PyBinding/PythonHelper.cs:
- * PyBinding/PyBinding/PythonProject.cs:
- * PyBinding/PyBinding/PythonConfiguration.cs:
- * PyBinding/PyBinding.Compiler/Python25Compiler.cs:
- * PyBinding/PyBinding.addin.xml:
- * PyBinding/PyBinding.Runtime/Python25Runtime.cs:
- * PyBinding/gtk-gui/gui.stetic:
- * PyBinding/Resources/PyGtkProject.xpt.xml:
- * PyBinding/Makefile:
- * PyBinding/PyBinding.Parser/PythonParserInternal.cs: Update python
- binding to work with python2.6 by reusing the python25 infrastructure.
- This will eventually change, but should help those that are currently
- stuck without python2.5.
-
-2009-08-17 John Tindell <john@yeticode.co.uk>
-
- * Resources/DjangoProject.xpt.xml: template that creates same
- files as "django-admin startproject ${projectname}"
-
-2009-08-13 Lluis Sanchez Gual <lluis@novell.com>
-
- * PyBinding/PythonProjectBinding.cs: Implement
- CanCreateSingleFileProject.
-
-2009-07-24 Lluis Sanchez Gual <lluis@novell.com>
-
- * PyBinding/PythonProjectBinding.cs: Track api changes.
-
-2009-06-17 Lluis Sanchez Gual <lluis@novell.com>
-
- * PyBinding.addin.xml: Remove obsolete extension.
-
-2009-05-19 Lluis Sanchez Gual <lluis@novell.com>
-
- * PyBinding.csproj: Flush.
-
-2009-05-19 Lluis Sanchez Gual <lluis@novell.com>
-
- * PyBinding.Compiler/IPythonCompiler.cs:
- * PyBinding.Compiler/Python25Compiler.cs: Track api changes.
-
-2009-04-27 Lluis Sanchez Gual <lluis@novell.com>
-
- * PyBinding.Gui/PythonEditorOutline.cs: Track api changes.
-
-2009-04-20 Michael Hutchinson <mhutchinson@novell.com>
-
- * PyBinding/PythonLanguageBinding.cs: Track comment tag API.
-
-2009-04-20 Lluis Sanchez Gual <lluis@novell.com>
-
- * Makefile:
- * PyBinding.csproj:
- * PyBinding.addin.xml:
- * PyBinding/PythonProject.cs:
- * PyBinding/PythonExecutionHandler.cs:
- * PyBinding/PythonExecutionCommand.cs: Use an
- IExecutionHandler and an ExecutionCommand to handle the
- execution of python projects. This will allow supporting
- special execution modes such as debug or profile.
-
-2009-04-15 Lluis Sanchez Gual <lluis@novell.com>
-
- * AssemblyInfo.cs:
- * PyBinding.addin.xml: Bump MD version.
-
-2009-03-19 Michael Hutchinson <mhutchinson@novell.com>
-
- * PyBinding.csproj:
- * PyBinding.Parser/PythonParser.cs:
- * PyBinding.Gui.Navigation/PackageNodeBuilder.cs: Track API.
-
-2009-03-04 Lluis Sanchez Gual <lluis@novell.com>
-
- * PyBinding/PythonProject.cs: Changed the way execution
- handlers work. We are not using platform ids anymore.
- Instead, we use command strings when looking for execution
- handlers. IExecutionHandlerFactory has been removed and now
- everything is handled by IExecutionHandler, which has a new
- CanExecute method. This model is more simple and more
- generic.
-
-2009-02-20 Lluis Sanchez Gual <lluis@novell.com>
-
- * PyBinding.csproj: Updated references.
-
-2009/02/06 Lluis Sanchez Gual <lluis@novell.com>
-
- * PyBinding.mdp:
- * PyBinding.csproj: Migrated to MSBuild file format.
-
-2009/02/03 Lluis Sanchez Gual <lluis@novell.com>
-
- * AssemblyInfo.cs:
- * PyBinding.addin.xml: Bump MD version.
-
-2009/02/03 Lluis Sanchez Gual <lluis@novell.com>
-
- * PyBinding.mdp:
- * gtk-gui/generated.cs:
- * gtk-gui/PyBinding.Gui.PythonOptionsWidget.cs: Flush.
-
-2009-01-27 Lluis Sanchez Gual <lluis@novell.com>
-
- * PyBinding.mdp: Update target framework.
-
-2009-01-26 Michael Hutchinson <mhutchinson@novell.com>
-
- * PyBinding.mdp: Flush project format changes.
-
-2008-12-09 Michael Hutchinson <mhutchinson@novell.com>
-
- * PyBinding.Gui/PythonEditorOutline.cs:
- * PyBinding.Gui/PythonEditorCompletion.cs: Bind to doc name instead of
- filename, so they work with unsaved files.
-
-2008-12-09 Lluis Sanchez Gual <lluis@novell.com>
-
- * PyBinding.mdp: Don't require a specific version of Mono.Addins.
-
-2008-12-08 Andrés G. Aragoneses <aaragoneses@novell.com>
-
- * PyBinding.Gui/PythonEditorIndentation.cs: Completing r121006 (track
- API changes to fix the build).
-
- * PyBinding.Gui/PythonEditorOutline.cs: Completing r121006 (track API
- changes to fix the build). Spaces to tabs.
-
-2008-12-08 Andrés G. Aragoneses <aaragoneses@novell.com>
-
- * PyBinding.Gui/PythonEditorIndentation.cs: Track API changes (fixes
- build).
-
-2008-12-02 Michael Hutchinson <mhutchinson@novell.com>
-
- * Makefile:
- * PyBinding.mdp:
- * AssemblyInfo.cs:
- * PyBinding.addin.xml:
- * Resources/PyBinding.addin.xml: Add AssemblyInfo.cs files that are
- autogenerated from the addin manifests.
-
-2008-11-20 Lluis Sanchez Gual <lluis@novell.com>
-
- * PyBinding.mdp: Set changelog policy.
-
- * PyBinding/PythonProject.cs: Allow executing the project.
-
- * gtk-gui/gui.stetic:
- * gtk-gui/PyBinding.Gui.PythonOptionsWidget.cs: Flush.
-
diff --git a/extras/PyBinding/PyBinding/Makefile b/extras/PyBinding/PyBinding/Makefile
deleted file mode 100644
index c01d00f6ed..0000000000
--- a/extras/PyBinding/PyBinding/Makefile
+++ /dev/null
@@ -1,193 +0,0 @@
-
-EXTRA_DIST = Makefile
-
-# Warning: This is an automatically generated file, do not edit!
-
-srcdir=.
-top_srcdir=..
-
-include $(top_srcdir)/config.make
-
-ifeq ($(CONFIG),DEBUG)
-ASSEMBLY_COMPILER_COMMAND = dmcs
-ASSEMBLY_COMPILER_FLAGS = -noconfig -codepage:utf8 -warn:4 -optimize+ -debug "-define:DEBUG"
-ASSEMBLY = ../build/PyBinding.dll
-ASSEMBLY_MDB = $(ASSEMBLY).mdb
-COMPILE_TARGET = library
-PROJECT_REFERENCES =
-BUILD_DIR = ../build
-
-PYBINDING_DLL_MDB_SOURCE=bin/Debug/PyBinding.dll.mdb
-PYBINDING_DLL_MDB=$(BUILD_DIR)/PyBinding.dll.mdb
-
-endif
-
-ifeq ($(CONFIG),RELEASE)
-ASSEMBLY_COMPILER_COMMAND = dmcs
-ASSEMBLY_COMPILER_FLAGS = -noconfig -codepage:utf8 -warn:4 -optimize+
-ASSEMBLY = ../build/PyBinding.dll
-ASSEMBLY_MDB =
-COMPILE_TARGET = library
-PROJECT_REFERENCES =
-BUILD_DIR = ../build
-
-PYBINDING_DLL_MDB=
-
-endif
-
-AL=al2
-SATELLITE_ASSEMBLY_NAME=.resources.dll
-
-PROGRAMFILES = \
- $(PYBINDING_DLL_MDB)
-
-LINUX_PKGCONFIG = \
- $(PYBINDING_PC)
-
-
-RESGEN=resgen2
-
-INSTALL_DIR = $(DESTDIR)$(prefix)/lib/monodevelop/AddIns/PyBinding
-
-PYBINDING_PC = $(BUILD_DIR)/monodevelop-pybinding.pc
-
-FILES = \
- AssemblyInfo.cs \
- gtk-gui/generated.cs \
- gtk-gui/PyBinding.Gui.PythonOptionsWidget.cs \
- PyBinding.Compiler/IPythonCompiler.cs \
- PyBinding.Compiler/Python25Compiler.cs \
- PyBinding.Gui.Navigation/AttributeNodeBuilder.cs \
- PyBinding.Gui.Navigation/ClassNodeBuilder.cs \
- PyBinding.Gui.Navigation/FunctionNodeBuilder.cs \
- PyBinding.Gui.Navigation/PackageNodeBuilder.cs \
- PyBinding.Gui.Navigation/PackagesNodeBuilder.cs \
- PyBinding.Gui.Navigation/ProjectNodeBuilderExtension.cs \
- PyBinding.Gui/CompilationUnitDataProvider.cs \
- PyBinding.Gui/DataProvider.cs \
- PyBinding.Gui/PythonEditorCompletion.cs \
- PyBinding.Gui/PythonEditorIndentation.cs \
- PyBinding.Gui/PythonEditorOutline.cs \
- PyBinding.Gui/PythonOptionsPanel.cs \
- PyBinding.Gui/PythonOptionsWidget.cs \
- PyBinding.Parser.Dom/PythonArgument.cs \
- PyBinding.Parser.Dom/PythonAttribute.cs \
- PyBinding.Parser.Dom/PythonClass.cs \
- PyBinding.Parser.Dom/PythonComment.cs \
- PyBinding.Parser.Dom/PythonCompilationUnit.cs \
- PyBinding.Parser.Dom/PythonFunction.cs \
- PyBinding.Parser.Dom/PythonImport.cs \
- PyBinding.Parser.Dom/PythonLocal.cs \
- PyBinding.Parser.Dom/PythonModule.cs \
- PyBinding.Parser.Dom/PythonNode.cs \
- PyBinding.Parser.Dom/PythonParsedDocument.cs \
- PyBinding.Parser/ParserDatabase.cs \
- PyBinding.Parser/ParserItem.cs \
- PyBinding.Parser/ParserManager.cs \
- PyBinding.Parser/PythonExpressionFinder.cs \
- PyBinding.Parser/PythonParser.cs \
- PyBinding.Parser/PythonParserInternal.cs \
- PyBinding.Parser/PythonResolver.cs \
- PyBinding.Runtime/AbstractPythonRuntime.cs \
- PyBinding.Runtime/IPythonRuntime.cs \
- PyBinding.Runtime/IronPythonRuntime.cs \
- PyBinding.Runtime/Python25Runtime.cs \
- PyBinding.Runtime/Python26Runtime.cs \
- PyBinding.Runtime/Python27Runtime.cs \
- PyBinding/IronPythonExecutionHandler.cs \
- PyBinding/PythonConfiguration.cs \
- PyBinding/PythonExecutionCommand.cs \
- PyBinding/PythonExecutionHandler.cs \
- PyBinding/PythonHelper.cs \
- PyBinding/PythonLanguageBinding.cs \
- PyBinding/PythonProject.cs \
- PyBinding/PythonProjectBinding.cs \
- PyBinding/PythonSite.cs
-
-DATA_FILES =
-
-RESOURCES = \
- gtk-gui/gui.stetic \
- PyBinding.addin.xml \
- Resources/BasicScriptPySourceFile.xft.xml \
- Resources/completion.py \
- Resources/EmptyDjangoProject.xpt.xml \
- Resources/EmptyPyProject.xpt.xml \
- Resources/EmptyPySourceFile.xft.xml \
- Resources/PyClutterProject.xpt.xml \
- Resources/PyGtkProject.xpt.xml \
- Resources/py-icon-32.png \
- Resources/PythonStylePolicy.xml \
- Resources/Schema.sql \
- Resources/text-x-pysrc.16x16.png
-
-EXTRAS = \
- monodevelop-pybinding.pc.in
-
-REFERENCES = \
- Mono.Data.Sqlite \
- Mono.Posix \
- -pkg:glib-sharp-2.0 \
- -pkg:gtk-sharp-2.0 \
- -pkg:mono-addins \
- -pkg:monodevelop \
- -pkg:monodevelop-core-addins \
- System \
- System.Core \
- System.Data \
- System.Xml
-
-DLL_REFERENCES =
-
-CLEANFILES = $(PROGRAMFILES) $(LINUX_PKGCONFIG)
-
-#Targets
-all: $(ASSEMBLY) $(PROGRAMFILES) $(LINUX_PKGCONFIG) $(top_srcdir)/config.make
-
-include $(top_srcdir)/Makefile.include
-#include $(srcdir)/custom-hooks.make
-
-
-
-$(eval $(call emit-deploy-wrapper,PYBINDING_PC,monodevelop-pybinding.pc))
-
-
-$(eval $(call emit_resgen_targets))
-$(build_xamlg_list): %.xaml.g.cs: %.xaml
- xamlg '$<'
-
-
-LOCAL_PKGCONFIG=PKG_CONFIG_PATH=../../../local-config:$$PKG_CONFIG_PATH
-
-
-$(ASSEMBLY) $(ASSEMBLY_MDB): $(build_sources) $(build_resources) $(build_datafiles) $(DLL_REFERENCES) $(PROJECT_REFERENCES) $(build_xamlg_list) $(build_satellite_assembly_list)
- make pre-all-local-hook prefix=$(prefix)
- mkdir -p $(shell dirname $(ASSEMBLY))
- make $(CONFIG)_BeforeBuild
- $(LOCAL_PKGCONFIG) $(ASSEMBLY_COMPILER_COMMAND) $(ASSEMBLY_COMPILER_FLAGS) -out:$(ASSEMBLY) -target:$(COMPILE_TARGET) $(build_sources_embed) $(build_resources_embed) $(build_references_ref)
- make $(CONFIG)_AfterBuild
- make post-all-local-hook prefix=$(prefix)
-
-install-local: $(ASSEMBLY) $(ASSEMBLY_MDB)
- make pre-install-local-hook prefix=$(prefix)
- mkdir -p $(INSTALL_DIR)
- $(call cp,$(ASSEMBLY),$(INSTALL_DIR))
- $(call cp,$(ASSEMBLY_MDB),$(INSTALL_DIR))
- mkdir -p '$(DESTDIR)$(libdir)/pkgconfig'
- $(call cp,$(PYBINDING_PC),$(DESTDIR)$(libdir)/pkgconfig)
- $(call cp,$(PYBINDING_DLL_MDB),$(INSTALL_DIR))
- make post-install-local-hook prefix=$(prefix)
-
-uninstall-local: $(ASSEMBLY) $(ASSEMBLY_MDB)
- make pre-uninstall-local-hook prefix=$(prefix)
- $(call rm,$(ASSEMBLY),$(INSTALL_DIR))
- $(call rm,$(ASSEMBLY_MDB),$(INSTALL_DIR))
- $(call rm,$(PYBINDING_PC),$(DESTDIR)$(libdir)/pkgconfig)
- $(call rm,$(PYBINDING_DLL_MDB),$(INSTALL_DIR))
- make post-uninstall-local-hook prefix=$(prefix)
-
-install: install-local
-uninstall: uninstall-local
-clean: clean-local
-
-include $(top_srcdir)/rules.make
diff --git a/extras/PyBinding/PyBinding/PyBinding.Compiler/IPythonCompiler.cs b/extras/PyBinding/PyBinding/PyBinding.Compiler/IPythonCompiler.cs
deleted file mode 100644
index b1f5be5afb..0000000000
--- a/extras/PyBinding/PyBinding/PyBinding.Compiler/IPythonCompiler.cs
+++ /dev/null
@@ -1,37 +0,0 @@
-// IPythonCompiler.cs
-//
-// Copyright (c) 2008 Christian Hergert <chris@dronelabs.com>
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-using MonoDevelop.Projects;
-using MonoDevelop.Core;
-
-using PyBinding;
-
-namespace PyBinding.Compiler
-{
- public interface IPythonCompiler
- {
- void Compile (PythonProject project,
- FilePath fileName,
- PythonConfiguration config,
- BuildResult result);
- }
-}
diff --git a/extras/PyBinding/PyBinding/PyBinding.Compiler/Python25Compiler.cs b/extras/PyBinding/PyBinding/PyBinding.Compiler/Python25Compiler.cs
deleted file mode 100644
index a504fe1ba6..0000000000
--- a/extras/PyBinding/PyBinding/PyBinding.Compiler/Python25Compiler.cs
+++ /dev/null
@@ -1,132 +0,0 @@
-// Python25Compiler.cs
-//
-// Copyright (c) 2008 Christian Hergert <chris@dronelabs.com>
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-using System;
-using System.Diagnostics;
-using System.IO;
-using System.Text.RegularExpressions;
-
-using MonoDevelop.Core;
-using MonoDevelop.Projects;
-using MonoDevelop.Projects.CodeGeneration;
-
-using PyBinding.Runtime;
-
-namespace PyBinding.Compiler
-{
- public class Python25Compiler : IPythonCompiler
- {
- static readonly string s_CompileFormat = "-c \"import py_compile; py_compile.compile('{0}','{1}c');\"";
- static readonly string s_OptimizedCompileFormat = "-O -c \"import py_compile; py_compile.compile('{0}','{1}o');\"";
-
- IPythonRuntime m_Runtime = null;
- Regex m_WarningRegex;
- Regex m_ErrorRegex;
-
- public IPythonRuntime Runtime {
- get {
- return this.m_Runtime;
- }
- set {
- this.m_Runtime = value;
- }
- }
-
- public Python25Compiler ()
- {
- m_WarningRegex = new Regex ("(?<file>.*):(?<line>\\d+): Warning: (?<message>.*)");
- m_ErrorRegex = new Regex (" File \"(?<file>.*)\", line (?<line>\\d+)");
- }
-
- public void Compile (PythonProject project,
- FilePath fileName,
- PythonConfiguration config,
- BuildResult result)
- {
- if (String.IsNullOrEmpty (fileName))
- throw new ArgumentNullException ("fileName");
- else if (config == null)
- throw new ArgumentNullException ("config");
- else if (result == null)
- throw new ArgumentNullException ("result");
- else if (Runtime == null)
- throw new InvalidOperationException ("No supported runtime!");
-
- // Get our relative path within the project
- if (!fileName.IsChildPathOf (project.BaseDirectory)) {
- Console.WriteLine ("File is not within our project!");
- return;
- }
-
- FilePath relName = fileName.ToRelative (project.BaseDirectory);
- string outFile = relName.ToAbsolute (config.OutputDirectory);
-
- if (!outFile.EndsWith (".py"))
- return;
-
- // Create the destination directory
- FileInfo fileInfo = new FileInfo (outFile);
- if (!fileInfo.Directory.Exists)
- fileInfo.Directory.Create ();
-
- // Create and start our process to generate the byte code
- Process process = BuildCompileProcess (fileName, outFile, config.Optimize);
- process.Start ();
- process.WaitForExit ();
-
- // Parse errors and warnings
- string output = process.StandardError.ReadToEnd ();
-
- // Extract potential Warnings
- foreach (Match m in m_WarningRegex.Matches (output)) {
- string lineNum = m.Groups[m_WarningRegex.GroupNumberFromName ("line")].Value;
- string message = m.Groups[m_WarningRegex.GroupNumberFromName ("message")].Value;
-
- result.AddWarning (fileName, Int32.Parse (lineNum), 0, String.Empty, message);
- }
-
- // Extract potential SyntaxError
- foreach (Match m in m_ErrorRegex.Matches (output)) {
- string lineNum = m.Groups[m_ErrorRegex.GroupNumberFromName ("line")].Value;
- result.AddError (fileName, Int32.Parse (lineNum), 0, String.Empty, "SyntaxError");
- }
- }
-
- Process BuildCompileProcess (string fileName, string outFile, bool optimize)
- {
- ProcessStartInfo startInfo = new ProcessStartInfo ();
- startInfo.FileName = this.Runtime.Path;
- startInfo.RedirectStandardError = true;
- startInfo.UseShellExecute = false;
-
- if (optimize)
- startInfo.Arguments = String.Format (s_OptimizedCompileFormat, fileName, outFile);
- else
- startInfo.Arguments = String.Format (s_CompileFormat, fileName, outFile);
-
- Process process = new Process ();
- process.StartInfo = startInfo;
-
- return process;
- }
- }
-}
diff --git a/extras/PyBinding/PyBinding/PyBinding.Gui.Navigation/AttributeNodeBuilder.cs b/extras/PyBinding/PyBinding/PyBinding.Gui.Navigation/AttributeNodeBuilder.cs
deleted file mode 100644
index 2e38e88cf0..0000000000
--- a/extras/PyBinding/PyBinding/PyBinding.Gui.Navigation/AttributeNodeBuilder.cs
+++ /dev/null
@@ -1,80 +0,0 @@
-// AttributeNodeBuilder.cs
-//
-// Copyright (c) 2008 Christian Hergert <chris@dronelabs.com>
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-using System;
-using System.Collections.Generic;
-
-using MonoDevelop.Core;
-
-using MonoDevelop.Ide.Gui.Components;
-using MonoDevelop.Projects;
-using MonoDevelop.Projects.Dom;
-using MonoDevelop.Projects.Dom.Parser;
-
-using PyBinding;
-using PyBinding.Parser;
-using PyBinding.Parser.Dom;
-
-namespace PyBinding.Gui.Navigation
-{
- public class AttributeNodeBuilder : TypeNodeBuilder
- {
- public override Type NodeDataType {
- get {
- return typeof (PythonAttribute);
- }
- }
-
- public override bool HasChildNodes (ITreeBuilder builder, object dataObject)
- {
- return false;
- }
-
- public override string GetNodeName (ITreeNavigator thisNode, object dataObject)
- {
- PythonNode pyNode = dataObject as PythonNode;
- return pyNode.Name;
- }
-
- public override void BuildNode (ITreeBuilder treeBuilder,
- object dataObject,
- ref string label,
- ref Gdk.Pixbuf icon,
- ref Gdk.Pixbuf closedIcon)
- {
- PythonNode pyNode = dataObject as PythonNode;
- label = pyNode.Name;
- icon = Context.GetIcon (MonoDevelop.Ide.Gui.Stock.Property);
- }
-
- public override int CompareObjects (ITreeNavigator thisNode, ITreeNavigator otherNode)
- {
- PythonNode x = thisNode.DataItem as PythonNode;
- PythonNode y = otherNode.DataItem as PythonNode;
-
- if (x == null || y == null)
- return 1;
-
- return x.Region.Start.Line.CompareTo (y.Region.Start.Line);
- }
- }
-}
diff --git a/extras/PyBinding/PyBinding/PyBinding.Gui.Navigation/ClassNodeBuilder.cs b/extras/PyBinding/PyBinding/PyBinding.Gui.Navigation/ClassNodeBuilder.cs
deleted file mode 100644
index c3601eae15..0000000000
--- a/extras/PyBinding/PyBinding/PyBinding.Gui.Navigation/ClassNodeBuilder.cs
+++ /dev/null
@@ -1,97 +0,0 @@
-// ClassNodeBuilder.cs
-//
-// Copyright (c) 2008 Christian Hergert <chris@dronelabs.com>
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-using System;
-using System.Collections.Generic;
-using System.IO;
-
-using MonoDevelop.Core;
-
-using MonoDevelop.Ide.Gui.Components;
-using MonoDevelop.Projects;
-using MonoDevelop.Projects.Dom;
-using MonoDevelop.Projects.Dom.Parser;
-
-using PyBinding;
-using PyBinding.Parser;
-using PyBinding.Parser.Dom;
-
-namespace PyBinding.Gui.Navigation
-{
- public class ClassNodeBuilder : TypeNodeBuilder
- {
- public override Type NodeDataType {
- get {
- return typeof (PythonClass);
- }
- }
-
- public override bool HasChildNodes (ITreeBuilder builder, object dataObject)
- {
- return true;
- }
-
- public override string GetNodeName (ITreeNavigator thisNode, object dataObject)
- {
- PythonClass pyClass = dataObject as PythonClass;
- return pyClass.Name;
- }
-
- public override void BuildNode (ITreeBuilder treeBuilder,
- object dataObject,
- ref string label,
- ref Gdk.Pixbuf icon,
- ref Gdk.Pixbuf closedIcon)
- {
- PythonClass pyClass = dataObject as PythonClass;
-
- label = pyClass.Name;
- icon = Context.GetIcon (MonoDevelop.Ide.Gui.Stock.Class);
- }
-
- public override void BuildChildNodes (ITreeBuilder treeBuilder,
- object dataObject)
- {
- PythonClass pyClass = dataObject as PythonClass;
-
- if (pyClass == null)
- return;
-
- foreach (PythonAttribute pyAttr in pyClass.Attributes)
- treeBuilder.AddChild (pyAttr);
-
- foreach (PythonFunction pyFunc in pyClass.Functions)
- treeBuilder.AddChild (pyFunc);
- }
-
- public override int CompareObjects (ITreeNavigator thisNode, ITreeNavigator otherNode)
- {
- PythonNode x = thisNode.DataItem as PythonNode;
- PythonNode y = otherNode.DataItem as PythonNode;
-
- if (x == null || y == null)
- return 1;
-
- return x.Region.Start.Line.CompareTo (y.Region.Start.Line);
- }
- }
-}
diff --git a/extras/PyBinding/PyBinding/PyBinding.Gui.Navigation/FunctionNodeBuilder.cs b/extras/PyBinding/PyBinding/PyBinding.Gui.Navigation/FunctionNodeBuilder.cs
deleted file mode 100644
index f7c5b3d211..0000000000
--- a/extras/PyBinding/PyBinding/PyBinding.Gui.Navigation/FunctionNodeBuilder.cs
+++ /dev/null
@@ -1,83 +0,0 @@
-// FunctionNodeBuilder.cs
-//
-// Copyright (c) 2008 Christian Hergert <chris@dronelabs.com>
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-using System;
-using System.Collections.Generic;
-
-using MonoDevelop.Core;
-
-using MonoDevelop.Ide.Gui.Components;
-using MonoDevelop.Projects;
-using MonoDevelop.Projects.Dom;
-using MonoDevelop.Projects.Dom.Parser;
-
-using PyBinding;
-using PyBinding.Parser;
-using PyBinding.Parser.Dom;
-
-namespace PyBinding.Gui.Navigation
-{
- public class FunctionNodeBuilder : TypeNodeBuilder
- {
- public override Type NodeDataType {
- get {
- return typeof (PythonFunction);
- }
- }
-
- public override bool HasChildNodes (ITreeBuilder builder, object dataObject)
- {
- return false;
- }
-
- public override string GetNodeName (ITreeNavigator thisNode, object dataObject)
- {
- PythonFunction pyNode = dataObject as PythonFunction;
-
- List<string> args = new List<string> ();
- foreach (PythonArgument pyArg in pyNode.Arguments)
- args.Add (pyArg.Name);
- return pyNode.Name + "(" + String.Join (", ", args.ToArray ()) + ")";
- }
-
- public override void BuildNode (ITreeBuilder treeBuilder,
- object dataObject,
- ref string label,
- ref Gdk.Pixbuf icon,
- ref Gdk.Pixbuf closedIcon)
- {
- label = GetNodeName (null, dataObject);
- icon = Context.GetIcon (MonoDevelop.Ide.Gui.Stock.Method);
- }
-
- public override int CompareObjects (ITreeNavigator thisNode, ITreeNavigator otherNode)
- {
- PythonNode x = thisNode.DataItem as PythonNode;
- PythonNode y = otherNode.DataItem as PythonNode;
-
- if (x == null || y == null)
- return 1;
-
- return x.Region.Start.Line.CompareTo (y.Region.Start.Line);
- }
- }
-}
diff --git a/extras/PyBinding/PyBinding/PyBinding.Gui.Navigation/PackageNodeBuilder.cs b/extras/PyBinding/PyBinding/PyBinding.Gui.Navigation/PackageNodeBuilder.cs
deleted file mode 100644
index 448318c566..0000000000
--- a/extras/PyBinding/PyBinding/PyBinding.Gui.Navigation/PackageNodeBuilder.cs
+++ /dev/null
@@ -1,100 +0,0 @@
-// PackageNodeBuilder.cs
-//
-// Copyright (c) 2008 Christian Hergert <chris@dronelabs.com>
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-using System;
-using System.Collections.Generic;
-using System.IO;
-
-using MonoDevelop.Core;
-
-using MonoDevelop.Ide.Gui.Components;
-using MonoDevelop.Projects;
-using MonoDevelop.Projects.Dom;
-using MonoDevelop.Projects.Dom.Parser;
-
-using PyBinding;
-using PyBinding.Parser;
-using PyBinding.Parser.Dom;
-
-namespace PyBinding.Gui.Navigation
-{
- public class PackageNode
- {
- public string Name {
- get;
- set;
- }
-
- public ProjectFile ProjectFile {
- get;
- set;
- }
- }
-
- public class PackageNodeBuilder : TypeNodeBuilder
- {
- public override Type NodeDataType {
- get {
- return typeof (PackageNode);
- }
- }
-
- public override bool HasChildNodes (ITreeBuilder builder, object dataObject)
- {
- return true;
- }
-
- public override string GetNodeName (ITreeNavigator thisNode, object dataObject)
- {
- PackageNode node = dataObject as PackageNode;
- return node.Name;
- }
-
- public override void BuildNode (ITreeBuilder treeBuilder,
- object dataObject,
- ref string label,
- ref Gdk.Pixbuf icon,
- ref Gdk.Pixbuf closedIcon)
- {
- PackageNode packageNode = dataObject as PackageNode;
-
- label = packageNode.Name;
- icon = Context.GetIcon ("md-package");
- }
-
- public override void BuildChildNodes (ITreeBuilder treeBuilder,
- object dataObject)
- {
- PackageNode packageNode = dataObject as PackageNode;
- PythonParsedDocument parsed = ProjectDomService.ParseFile (null, packageNode.ProjectFile.Name) as PythonParsedDocument;
-
- if (parsed != null && parsed.Module != null) {
- foreach (PythonClass pyClass in parsed.Module.Classes)
- treeBuilder.AddChild (pyClass);
- foreach (PythonAttribute pyAttr in parsed.Module.Attributes)
- treeBuilder.AddChild (pyAttr);
- foreach (PythonFunction pyFunc in parsed.Module.Functions)
- treeBuilder.AddChild (pyFunc);
- }
- }
- }
-}
diff --git a/extras/PyBinding/PyBinding/PyBinding.Gui.Navigation/PackagesNodeBuilder.cs b/extras/PyBinding/PyBinding/PyBinding.Gui.Navigation/PackagesNodeBuilder.cs
deleted file mode 100644
index 3340a22cd0..0000000000
--- a/extras/PyBinding/PyBinding/PyBinding.Gui.Navigation/PackagesNodeBuilder.cs
+++ /dev/null
@@ -1,102 +0,0 @@
-// PackagesNodeBuilder.cs
-//
-// Copyright (c) 2008 Christian Hergert <chris@dronelabs.com>
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-using System;
-using System.Collections.Generic;
-using System.IO;
-
-using MonoDevelop.Core;
-
-using MonoDevelop.Ide.Gui.Components;
-using MonoDevelop.Projects;
-
-using PyBinding;
-using PyBinding.Parser;
-using PyBinding.Parser.Dom;
-
-namespace PyBinding.Gui.Navigation
-{
- public class PackagesNode
- {
- public PythonProject Project {
- get;
- set;
- }
- }
-
- public class PackagesNodeBuilder : TypeNodeBuilder
- {
- public override Type NodeDataType {
- get {
- return typeof (PackagesNode);
- }
- }
-
- public override string GetNodeName (ITreeNavigator thisNode, object dataObject)
- {
- return GettextCatalog.GetString ("Packages");
- }
-
- public override void BuildNode (ITreeBuilder treeBuilder,
- object dataObject,
- ref string label,
- ref Gdk.Pixbuf icon,
- ref Gdk.Pixbuf closedIcon)
- {
- label = GettextCatalog.GetString ("Packages");
- icon = Context.GetIcon ("md-package");
- }
-
- public override bool HasChildNodes (ITreeBuilder builder, object dataObject)
- {
- return true;
- }
-
- public override void BuildChildNodes (ITreeBuilder treeBuilder,
- object dataObject)
- {
- PackagesNode packages = dataObject as PackagesNode;
-
- foreach (ProjectFile projectFile in packages.Project.Files)
- {
- if (projectFile.BuildAction == BuildAction.Compile)
- {
- if (Path.GetExtension (projectFile.Name).ToLower () == ".py")
- {
- var name = PythonHelper.ModuleFromFilename (projectFile.Name);
-
- // It's only a module unless there is a "." in the name
- // or its the __init__.py inside the package folder.
- if (name.Contains (".") || Path.GetFileName (projectFile.Name).ToLower () == "__init__.py")
- {
- name = PythonHelper.PackageFromFilename (projectFile.Name);
- treeBuilder.AddChild (new PackageNode () {
- Name = name,
- ProjectFile = projectFile,
- });
- }
- }
- }
- }
- }
- }
-}
diff --git a/extras/PyBinding/PyBinding/PyBinding.Gui.Navigation/ProjectNodeBuilderExtension.cs b/extras/PyBinding/PyBinding/PyBinding.Gui.Navigation/ProjectNodeBuilderExtension.cs
deleted file mode 100644
index 5989db420a..0000000000
--- a/extras/PyBinding/PyBinding/PyBinding.Gui.Navigation/ProjectNodeBuilderExtension.cs
+++ /dev/null
@@ -1,61 +0,0 @@
-// ProjectNodeBuilderExtension.cs
-//
-// Copyright (c) 2008 Christian Hergert <chris@dronelabs.com>
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-using System;
-
-using MonoDevelop.Core;
-using MonoDevelop.Ide.Gui;
-using MonoDevelop.Ide.Gui.Pads;
-using MonoDevelop.Ide.Gui.Components;
-using MonoDevelop.Projects;
-using MonoDevelop.Projects.Dom;
-using MonoDevelop.Projects.Dom.Parser;
-
-using PyBinding;
-
-namespace PyBinding.Gui.Navigation
-{
- public class ProjectNodeBuilderExtension : NodeBuilderExtension
- {
- public override bool CanBuildNode (Type dataType)
- {
- return typeof (PythonProject).IsAssignableFrom (dataType);
- }
-
- public override bool HasChildNodes (ITreeBuilder builder, object dataObject)
- {
- return true;
- }
-
- public override void BuildChildNodes (ITreeBuilder builder, object dataObject)
- {
-// PythonProject pyProject = dataObject as PythonProject;
-//
-// if (pyProject == null)
-// return;
-//
-// builder.AddChild (new PackagesNode () {
-// Project = pyProject
-// });
- }
- }
-}
diff --git a/extras/PyBinding/PyBinding/PyBinding.Gui/CompilationUnitDataProvider.cs b/extras/PyBinding/PyBinding/PyBinding.Gui/CompilationUnitDataProvider.cs
deleted file mode 100644
index d99f8b2755..0000000000
--- a/extras/PyBinding/PyBinding/PyBinding.Gui/CompilationUnitDataProvider.cs
+++ /dev/null
@@ -1,98 +0,0 @@
-//
-// CompilationUnitDataProvider.cs
-//
-// Author:
-// Levi Bard <taktaktaktaktaktaktaktaktaktak@gmail.com>
-//
-// Copyright (c) 2010 Levi Bard
-//
-// This source code is licenced under The MIT License:
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-using System;
-using System.Linq;
-
-using MonoDevelop.Ide;
-using MonoDevelop.Ide.Gui;
-using MonoDevelop.Ide.Gui.Content;
-using MonoDevelop.Ide.CodeCompletion;
-using MonoDevelop.Components;
-using MonoDevelop.Projects.Dom;
-
-using Gtk;
-
-namespace PyBinding
-{
- // Yoinked from C# binding
- public class CompilationUnitDataProvider : DropDownBoxListWindow.IListDataProvider
- {
- Document Document { get; set; }
-
- public CompilationUnitDataProvider (Document document)
- {
- this.Document = document;
- }
-
- #region IListDataProvider implementation
- public void Reset () { }
-
- public string GetMarkup (int n)
- {
- return Document.ParsedDocument.UserRegions.ElementAt (n).Name;
- }
-
- internal static Gdk.Pixbuf Pixbuf
- {
- get { return ImageService.GetPixbuf (Gtk.Stock.Add, IconSize.Menu); }
- }
-
- public Gdk.Pixbuf GetIcon (int n)
- {
- return Pixbuf;
- }
-
- public object GetTag (int n)
- {
- return Document.ParsedDocument.UserRegions.ElementAt (n);
- }
-
-
- public void ActivateItem (int n)
- {
- var reg = Document.ParsedDocument.UserRegions.ElementAt (n);
- MonoDevelop.Ide.Gui.Content.IExtensibleTextEditor extEditor = Document.GetContent<MonoDevelop.Ide.Gui.Content.IExtensibleTextEditor> ();
- if (extEditor != null)
- extEditor.SetCaretTo (Math.Max (1, reg.Region.Start.Line), reg.Region.Start.Column);
- }
-
- public int IconCount
- {
- get {
- if (Document.ParsedDocument == null)
- return 0;
- return Document.ParsedDocument.UserRegions.Count ();
- }
- }
-
- #endregion
- }
-}
-
diff --git a/extras/PyBinding/PyBinding/PyBinding.Gui/DataProvider.cs b/extras/PyBinding/PyBinding/PyBinding.Gui/DataProvider.cs
deleted file mode 100644
index 66b572d983..0000000000
--- a/extras/PyBinding/PyBinding/PyBinding.Gui/DataProvider.cs
+++ /dev/null
@@ -1,118 +0,0 @@
-//
-// DataProvider.cs
-//
-// Author:
-// Levi Bard <taktaktaktaktaktaktaktaktaktak@gmail.com>
-//
-// Copyright (c) 2010 Levi Bard
-//
-// This source code is licenced under The MIT License:
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-using System;
-using System.Collections.Generic;
-
-using MonoDevelop.Ide;
-using MonoDevelop.Ide.Gui;
-using MonoDevelop.Ide.Gui.Content;
-using MonoDevelop.Ide.CodeCompletion;
-using MonoDevelop.Components;
-using MonoDevelop.Projects.Dom;
-using MonoDevelop.Projects.Dom.Output;
-
-using Gtk;
-
-namespace PyBinding
-{
- // Yoinked from C# binding
- public class DataProvider : DropDownBoxListWindow.IListDataProvider
- {
- object tag;
- Ambience amb;
- List<IMember> memberList = new List<IMember> ();
-
- Document Document { get; set; }
-
- public DataProvider (Document doc, object tag, Ambience amb)
- {
- this.Document = doc;
- this.tag = ((INode)tag).Parent;
- this.amb = amb;
- Reset ();
- }
-
- #region IListDataProvider implementation
- public void Reset ()
- {
- memberList.Clear ();
- if (tag is ICompilationUnit) {
- Stack<IType> types = new Stack<IType> (((ICompilationUnit)tag).Types);
- while (types.Count > 0) {
- IType type = types.Pop ();
- memberList.Add (type);
- foreach (IType innerType in type.InnerTypes)
- types.Push (innerType);
- }
- } else if (tag is IType) {
- memberList.AddRange (((IType)tag).Members);
- }
- memberList.Sort ((x, y) => String.Compare (GetString (amb, x), GetString (amb, y), StringComparison.OrdinalIgnoreCase));
- }
-
- string GetString (Ambience amb, IMember x)
- {
- if (tag is ICompilationUnit)
- return amb.GetString (x, OutputFlags.IncludeGenerics | OutputFlags.IncludeParameters | OutputFlags.UseFullInnerTypeName | OutputFlags.ReformatDelegates);
- return amb.GetString (x, OutputFlags.IncludeGenerics | OutputFlags.IncludeParameters | OutputFlags.ReformatDelegates);
- }
-
- public string GetMarkup (int n)
- {
- return GetString (amb, memberList[n]);
- }
-
- public Gdk.Pixbuf GetIcon (int n)
- {
- return ImageService.GetPixbuf (memberList[n].StockIcon, IconSize.Menu);
- }
-
- public object GetTag (int n)
- {
- return memberList[n];
- }
-
- public void ActivateItem (int n)
- {
- var member = memberList[n];
- MonoDevelop.Ide.Gui.Content.IExtensibleTextEditor extEditor = Document.GetContent<MonoDevelop.Ide.Gui.Content.IExtensibleTextEditor> ();
- if (extEditor != null)
- extEditor.SetCaretTo (Math.Max (1, member.Location.Line), Math.Max (1, member.Location.Column));
- }
-
- public int IconCount {
- get {
- return memberList.Count;
- }
- }
- #endregion
- }
-}
-
diff --git a/extras/PyBinding/PyBinding/PyBinding.Gui/PythonEditorCompletion.cs b/extras/PyBinding/PyBinding/PyBinding.Gui/PythonEditorCompletion.cs
deleted file mode 100644
index 720237f675..0000000000
--- a/extras/PyBinding/PyBinding/PyBinding.Gui/PythonEditorCompletion.cs
+++ /dev/null
@@ -1,378 +0,0 @@
-// PythonEditorCompletion.cs
-//
-// Copyright (c) 2008 Christian Hergert <chris@dronelabs.com>
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-using System;
-using System.Collections.Generic;
-using System.IO;
-using System.Linq;
-
-using Mono.TextEditor;
-using MonoDevelop.Core;
-using MonoDevelop.Ide.Gui;
-using MonoDevelop.Ide.Gui.Content;
-using MonoDevelop.Projects.Dom;
-using MonoDevelop.Projects.Dom.Parser;
-using MonoDevelop.Ide.CodeCompletion;
-
-using PyBinding;
-using PyBinding.Parser;
-using PyBinding.Parser.Dom;
-using MonoDevelop.Components;
-using MonoDevelop.Projects.Dom.Output;
-using MonoDevelop.Ide;
-
-namespace PyBinding.Gui
-{
- public class PythonEditorCompletion : CompletionTextEditorExtension, IPathedDocument
- {
- const string s_ImgModule = "md-package";
- const string s_ImgAttr = "md-property";
- const string s_ImgFunc = "md-method";
- const string s_ImgClass = "md-class";
-
- PythonSite m_site = null;
-
- public override void Initialize ()
- {
- base.Initialize ();
-
- if (this.Document.HasProject) {
- var config = this.Document.Project.DefaultConfiguration as PythonConfiguration;
- if (config != null)
- m_site = new PythonSite (config.Runtime);
- }
-
- if (m_site == null)
- m_site = new PythonSite (PythonHelper.FindPreferedRuntime ());
-
- UpdatePath (null, null);
- Document.Editor.Caret.PositionChanged += UpdatePath;
- Document.DocumentParsed += delegate { UpdatePath (null, null); };
- }
-
- public override ICompletionDataList HandleCodeCompletion (CodeCompletionContext completionContext, char completionChar)
- {
- switch (completionChar) {
- case '(':
- case ' ':
- case '=':
- case '\t':
- case '\n':
- case '.':
- PythonParsedDocument doc = Document.ParsedDocument as PythonParsedDocument;
- if (doc != null)
- return GenerateCompletionData (completionContext, doc, Editor, completionChar);
- return null;
- default:
- return null;
- }
- }
-
- public IEnumerable<CompletionData> SelfDotCompletionData (PythonClass klass)
- {
- foreach (var attr in klass.Attributes)
- yield return new CompletionData (attr.Name, s_ImgAttr, attr.Documentation);
- foreach (var func in klass.Functions)
- yield return new CompletionData (func.Name, s_ImgFunc, func.Documentation);
- }
-
- ICompletionDataList GenerateCompletionData (CodeCompletionContext completionContext, PythonParsedDocument document, TextEditorData editor, char completionChar)
- {
- if (document == null)
- return null;
-
- var triggerWord = GetTriggerWord (editor, completionContext);
-
- // Its annoying when the data is poped up during an assignment such as:
- // abc = _
- if (completionChar == '=' && String.IsNullOrEmpty (triggerWord))
- return null;
-
- var triggerLine = editor.GetLineText (completionContext.TriggerLine);
-
- // if completionChar is ' ' and it is not a known completion type
- // that we can handle, return as early as possible
- if (completionChar == ' ') {
- if (!triggerWord.Contains ('.') &&
- !triggerLine.StartsWith ("class") &&
- !triggerLine.StartsWith ("def") &&
- !triggerLine.StartsWith ("from") &&
- !triggerLine.StartsWith ("import"))
- return null;
- }
-
- // "self."
- if (document.Module != null && triggerWord == "self" && completionChar == '.') {
- var klass = GetClass (document.Module, completionContext.TriggerLine);
- if (klass == null)
- return null; // nothing to complete, self not in a class
- return new CompletionDataList (SelfDotCompletionData (klass));
- }
-
- var inFrom = triggerLine.StartsWith ("from ");
- var inClass = triggerLine.StartsWith ("class ") || (triggerLine.StartsWith ("class") && completionChar == ' ');
- var inDef = triggerLine.StartsWith ("def ") || (triggerLine.StartsWith ("def") && completionChar == ' ');
- var parts = triggerLine.Split (' ');
-
- // "from blah "
- if (inFrom && parts.Length == 2 && parts [parts.Length-1].Trim ().Length > 0 && completionChar == ' ') {
- return new CompletionDataList (new CompletionData[] { new CompletionData ("import") });
- }
- // "from blah import "
- else if (inFrom && parts.Length > 2) {
- triggerWord = parts [1] + ".";
- return new CompletionDataList (
- from ParserItem item in m_site.Database.Find (triggerWord)
- where !item.FullName.Substring (triggerWord.Length).Contains ('.')
- select CreateCompletionData (item, triggerWord))
- ;
- }
-
- // if we are in a new class line and not to '(' yet
- // we cannot complete anything at this time, finish now
- if (inClass && parts.Length < 2)
- return null;
-
- // if we are in a new def line, the only time we can complete
- // is after an equal '='. so ignore space trigger
- if (inDef && completionChar == ' ')
- return null;
- else if (inDef && completionChar == '=')
- triggerWord = "";
-
- if (inClass) {
- if (completionChar == '(')
- triggerWord = "";
- else
- triggerWord = triggerLine.Substring (triggerLine.LastIndexOf ('(') + 1);
- }
-
- // limit the depth of search to number of "." in trigger
- // "xml." has depth of 1 so anything matching ^xml. and no more . with match
- int depth = 0;
- foreach (var c in triggerWord)
- if (c == '.')
- depth++;
-
- // anything in the sqlite store
- if (!String.IsNullOrEmpty (triggerWord)) {
- // todo: try to complete on class/module/func/attr data
-
- return new CompletionDataList (
- from ParserItem item in m_site.Database.Find (triggerWord, ParserItemType.Any, depth)
- select CreateCompletionData (item, triggerWord))
- ;
- }
-
- ParserItemType itemType = String.IsNullOrEmpty (triggerWord) ? ParserItemType.Module : ParserItemType.Any;
-
- return new CompletionDataList (
- from ParserItem item in m_site.Database.Find ("", itemType, depth)
- select CreateCompletionData (item, triggerWord))
- ;
- }
-
- static CompletionData CreateCompletionData (ParserItem item, string triggerWord)
- {
- return CreateCompletionData (item, triggerWord, "");
- }
-
- static CompletionData CreateCompletionData (ParserItem item, string triggerWord, string suffix)
- {
- var name = item.FullName.Substring (triggerWord.Length);
- return new CompletionData (name, IconForType (item), item.Documentation, name + suffix);
- }
-
- static string IconForType (ParserItem item)
- {
- switch (item.ItemType) {
- case ParserItemType.Module:
- return s_ImgModule;
- case ParserItemType.Class:
- return s_ImgClass;
- case ParserItemType.Function:
- return s_ImgFunc;
- case ParserItemType.Attribute:
- case ParserItemType.Local:
- return s_ImgAttr;
- default:
- return String.Empty;
- }
- }
-
- static PythonClass GetClass (PythonModule module, int line)
- {
- foreach (PythonClass pyClass in module.Classes)
- if (InRegion (pyClass.Region, line))
- return pyClass;
- // todo: classes in functions?
- return null;
- }
-
-// static PythonFunction GetFunc (PythonModule module, int line)
-// {
-// foreach (PythonFunction pyFunc in module.Functions)
-// if (InRegion (pyFunc.Region, line))
-// return pyFunc;
-//
-// foreach (PythonClass pyClass in module.Classes)
-// foreach (PythonFunction pyFunc in pyClass.Functions)
-// if (InRegion (pyFunc.Region, line))
-// return pyFunc;
-//
-// return null;
-// }
-
- static bool InRegion (DomRegion region, int lineNumber)
- {
- return region.Start.Line <= lineNumber && region.End.Line >= lineNumber;
- }
-
- static string GetTriggerWord (TextEditorData editor, CodeCompletionContext completionContext)
- {
- // Get the line of text for our current line
- // and trim off everything after the cursor
- var line = editor.GetLineText (completionContext.TriggerLine);
- line = line.Substring (0, completionContext.TriggerLineOffset - 1);
-
- // Walk backwards looking for split chars and then trim the
- // beginning of the line off
- for (int i = line.Length - 1; i >= 0; i--) {
- switch (line [i]) {
- case ' ':
- case '(':
- case '\t':
- case '=':
- return line.Substring (i + 1, line.Length - 1 - i);
- default:
- break;
- }
- }
-
- return line;
- }
-
- #region IPathedDocument implementation
- public event EventHandler<DocumentPathChangedEventArgs> PathChanged;
-
- public Gtk.Widget CreatePathWidget (int index)
- {
- PathEntry[] path = CurrentPath;
- if (null == path || 0 > index || path.Length <= index) {
- return null;
- }
-
- object tag = path[index].Tag;
- DropDownBoxListWindow.IListDataProvider provider = null;
- if (tag is ICompilationUnit) {
- provider = new CompilationUnitDataProvider (Document);
- } else {
- provider = new DataProvider (Document, tag, GetAmbience ());
- }
-
- DropDownBoxListWindow window = new DropDownBoxListWindow (provider);
- window.SelectItem (tag);
- return window;
- }
-
- public PathEntry[] CurrentPath {
- get;
- private set;
- }
-
- protected virtual void OnPathChanged (object sender, DocumentPathChangedEventArgs args)
- {
- if (PathChanged != null)
- PathChanged (sender, args);
- }
- #endregion
-
- // Yoinked from C# binding
- void UpdatePath (object sender, Mono.TextEditor.DocumentLocationEventArgs e)
- {
- var unit = Document.CompilationUnit;
- var textEditorData = Document.Editor;
-
- if (unit == null)
- return;
-
- var loc = textEditorData.Caret.Location;
- IType type = unit.GetTypeAt (loc.Line, loc.Column);
- List<PathEntry> result = new List<PathEntry> ();
- Ambience amb = GetAmbience ();
- IMember member = null;
- INode node = (INode)unit;
-
- if (type != null && type.ClassType != ClassType.Delegate) {
- member = type.GetMemberAt (loc.Line, loc.Column);
- }
-
- if (null != member) {
- node = member;
- } else if (null != type) {
- node = type;
- }
-
- while (node != null) {
- PathEntry entry;
- if (node is ICompilationUnit) {
- if (!Document.ParsedDocument.UserRegions.Any ())
- break;
- FoldingRegion reg = Document.ParsedDocument.UserRegions.LastOrDefault (r => r.Region.Contains (loc.Line, loc.Column));
- if (reg == null) {
- entry = new PathEntry (GettextCatalog.GetString ("No region"));
- } else {
- entry = new PathEntry (CompilationUnitDataProvider.Pixbuf, reg.Name);
- }
- entry.Position = EntryPosition.Right;
- } else {
- entry = new PathEntry (ImageService.GetPixbuf (((IMember)node).StockIcon, Gtk.IconSize.Menu), amb.GetString ((IMember)node, OutputFlags.IncludeGenerics | OutputFlags.IncludeParameters | OutputFlags.ReformatDelegates));
- }
- entry.Tag = node;
- result.Insert (0, entry);
- node = node.Parent;
- }
-
- PathEntry noSelection = null;
- if (type == null) {
- noSelection = new PathEntry (GettextCatalog.GetString ("No selection")) { Tag = new CustomNode (Document.CompilationUnit) };
- } else if (member == null && type.ClassType != ClassType.Delegate)
- noSelection = new PathEntry (GettextCatalog.GetString ("No selection")) { Tag = new CustomNode (type) };
- if (noSelection != null) {
- result.Add (noSelection);
- }
-
- var prev = CurrentPath;
- CurrentPath = result.ToArray ();
- OnPathChanged (this, new DocumentPathChangedEventArgs (prev));
- }
-
- // Yoinked from C# binding
- class CustomNode : MonoDevelop.Projects.Dom.AbstractNode
- {
- public CustomNode (INode parent)
- {
- this.Parent = parent;
- }
- }
- }
-}
diff --git a/extras/PyBinding/PyBinding/PyBinding.Gui/PythonEditorIndentation.cs b/extras/PyBinding/PyBinding/PyBinding.Gui/PythonEditorIndentation.cs
deleted file mode 100644
index 51bce7e9dc..0000000000
--- a/extras/PyBinding/PyBinding/PyBinding.Gui/PythonEditorIndentation.cs
+++ /dev/null
@@ -1,99 +0,0 @@
-// PythonEditorIndentation.cs
-//
-// Copyright (c) 2008 Christian Hergert <chris@dronelabs.com>
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-using System;
-using System.Collections.Generic;
-using System.IO;
-
-using MonoDevelop.Core;
-using MonoDevelop.Ide.Gui;
-using MonoDevelop.Ide.Gui.Content;
-using MonoDevelop.Projects;
-using MonoDevelop.Projects.Dom;
-using MonoDevelop.Projects.Dom.Output;
-using MonoDevelop.Projects.Dom.Parser;
-
-namespace PyBinding.Gui
-{
- public class PythonEditorIndentation : TextEditorExtension
- {
- public override bool KeyPress (Gdk.Key key, char keyChar, Gdk.ModifierType modifier)
- {
- if (key == Gdk.Key.Return)
- {
- string lastLine = Editor.GetLineText (Editor.Caret.Line);
- string trimmed = lastLine.Trim ();
- bool indent = false;
-
- if ((modifier & Gdk.ModifierType.ControlMask) != 0)
- {
- Editor.Insert (Editor.Caret.Offset, "\n");
-
- string endTrim = lastLine.TrimEnd ();
- if (!String.IsNullOrEmpty (endTrim))
- {
- int i = 0;
- while (Char.IsWhiteSpace (endTrim[i]))
- i++;
-
- if (i > 4)
- i -= 4;
-
- for (int j = 0; j < i; j++)
- Editor.Insert (Editor.Caret.Offset, " ");
-
- return false;
- }
- else if (lastLine.Length > 4)
- {
- // get the last line, remove 4 chars from it if we can
- Editor.Insert (Editor.Caret.Offset, lastLine.Substring (0, lastLine.Length - 4));
- return false;
- }
- }
-
- if (trimmed.EndsWith (":"))
- {
- indent = true;
- }
- else if (trimmed.StartsWith ("if ") ||
- trimmed.StartsWith ("def "))
- {
- int openCount = lastLine.Split ('(').Length;
- int closeCount = lastLine.Split (')').Length;
-
- if (openCount > closeCount)
- indent = true;
- }
-
- if (indent)
- {
- base.KeyPress (key, keyChar, modifier);
- Editor.Insert (Editor.Caret.Offset, " ");
- return false;
- }
- }
-
- return base.KeyPress (key, keyChar, modifier);
- }
- }
-}
diff --git a/extras/PyBinding/PyBinding/PyBinding.Gui/PythonEditorOutline.cs b/extras/PyBinding/PyBinding/PyBinding.Gui/PythonEditorOutline.cs
deleted file mode 100644
index bc04f35729..0000000000
--- a/extras/PyBinding/PyBinding/PyBinding.Gui/PythonEditorOutline.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-// PythonEditorOutline.cs
-//
-// Copyright (c) 2008 Christian Hergert <chris@dronelabs.com>
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-using System;
-
-using MonoDevelop.DesignerSupport;
-using MonoDevelop.Ide.Gui;
-using MonoDevelop.Ide.Gui.Content;
-
-using PyBinding;
-
-namespace PyBinding.Gui
-{
- public class PythonEditorOutline : ClassOutlineTextEditorExtension
- {
- }
-}
diff --git a/extras/PyBinding/PyBinding/PyBinding.Gui/PythonOptionsPanel.cs b/extras/PyBinding/PyBinding/PyBinding.Gui/PythonOptionsPanel.cs
deleted file mode 100644
index 88258c98b5..0000000000
--- a/extras/PyBinding/PyBinding/PyBinding.Gui/PythonOptionsPanel.cs
+++ /dev/null
@@ -1,83 +0,0 @@
-// OutputOptionsPanel.cs
-//
-// Copyright (c) 2008 Christian Hergert <chris@dronelabs.com>
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-using System;
-using System.Collections.Generic;
-using Gtk;
-using MonoDevelop.Ide.Gui.Dialogs;
-
-namespace PyBinding.Gui
-{
- public class OutputOptionsPanel : MultiConfigItemOptionsPanel
- {
- PythonOptionsWidget widget;
-
- public override Gtk.Widget CreatePanelWidget ()
- {
- widget = new PythonOptionsWidget ();
- widget.Show ();
- return widget;
- }
-
- public override void LoadConfigData ()
- {
- PythonConfiguration config = CurrentConfiguration as PythonConfiguration;
-
- widget.DefaultModule = config.Module;
- widget.Optimize = config.Optimize;
- widget.Runtime = config.Runtime;
- widget.PythonOptions = config.PythonOptions;
- widget.PythonPaths = config.Runtime.Site.Paths;
- }
-
- public override void ApplyChanges ()
- {
- PythonConfiguration config = CurrentConfiguration as PythonConfiguration;
-
- var runtime = widget.Runtime;
- runtime.Path = widget.RuntimePath;
-
- config.Runtime = runtime;
- config.Module = widget.DefaultModule;
- config.Optimize = widget.Optimize;
- config.PythonOptions = widget.PythonOptions;
-
- var paths = new List<string> (widget.PythonPaths);
-
- // look for added modules
- foreach (var path in paths) {
- if (!config.Runtime.Site.ContainsPath (path)) {
- Console.WriteLine ("Adding path {0}", path);
- config.Runtime.Site.AddPath (path);
- }
- }
-
- // look for removed
- foreach (var path in config.Runtime.Site.Paths) {
- if (!paths.Contains (path)) {
- Console.WriteLine ("Removing path {0}", path);
- config.Runtime.Site.RemovePath (path);
- }
- }
- }
- }
-}
diff --git a/extras/PyBinding/PyBinding/PyBinding.Gui/PythonOptionsWidget.cs b/extras/PyBinding/PyBinding/PyBinding.Gui/PythonOptionsWidget.cs
deleted file mode 100644
index 06fda7b544..0000000000
--- a/extras/PyBinding/PyBinding/PyBinding.Gui/PythonOptionsWidget.cs
+++ /dev/null
@@ -1,178 +0,0 @@
-// PythonOptionsWidget.cs
-//
-// Copyright (c) 2008 Christian Hergert <chris@dronelabs.com>
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-using System;
-using System.Collections.Generic;
-
-using Gtk;
-
-using MonoDevelop.Gettext;
-using MonoDevelop.Ide;
-
-using PyBinding.Runtime;
-
-namespace PyBinding.Gui
-{
- public partial class PythonOptionsWidget : Gtk.Bin
- {
- ListStore m_PathsListStore;
- ListStore m_RuntimeListStore;
-
- public PythonOptionsWidget ()
- {
- this.Build();
-
- // Python paths
- m_PathsListStore = new ListStore (typeof (string));
- m_PathsTreeView.Model = this.m_PathsListStore;
- m_PathsTreeView.HeadersVisible = false;
- TreeViewColumn column = new TreeViewColumn ();
- CellRendererText ctext = new CellRendererText ();
- column.PackStart (ctext, true);
- column.AddAttribute (ctext, "text", 0);
- m_PathsTreeView.AppendColumn (column);
- m_PathsTreeView.Selection.Changed += delegate {
- this.m_RemovePathButton.Sensitive = m_PathsTreeView.Selection.CountSelectedRows () == 1;
- };
-
- // Setup Python Runtime Version
- m_RuntimeListStore = new ListStore (typeof (string), typeof (Type));
- m_RuntimeCombo.Model = this.m_RuntimeListStore;
- m_RuntimeListStore.AppendValues ("Python 2.5", typeof (Python25Runtime));
- m_RuntimeListStore.AppendValues ("Python 2.6", typeof (Python26Runtime));
- m_RuntimeListStore.AppendValues ("Python 2.7", typeof (Python27Runtime));
- m_RuntimeListStore.AppendValues ("IronPython", typeof (IronPythonRuntime));
-
- m_RuntimeCombo.Changed += delegate {
- m_RuntimeFileEntry.Path = String.Empty;
- };
- }
-
- public string DefaultModule {
- get {
- return this.m_ModuleEntry.Text;
- }
- set {
- this.m_ModuleEntry.Text = value;
- }
- }
-
- public bool Optimize {
- get {
- return this.m_OptimizeCheckBox.Active;
- }
- set {
- this.m_OptimizeCheckBox.Active = value;
- }
- }
-
- public string PythonOptions {
- get {
- return m_PythonOptions.Text;
- }
- set {
- m_PythonOptions.Text = value;
- }
- }
-
- public string[] PythonPaths {
- get {
- List<string> paths = new List<string> ();
- TreeIter iter;
-
- if (m_PathsListStore.GetIterFirst (out iter)) {
- do {
- var path = (string)m_PathsListStore.GetValue (iter, 0);
- paths.Add (path);
- } while (m_PathsListStore.IterNext (ref iter));
- }
-
- return paths.ToArray ();
- }
- set {
- m_PathsListStore.Clear ();
-
- foreach (var path in value) {
- m_PathsListStore.AppendValues (path);
- }
- }
- }
-
- public IPythonRuntime Runtime {
- get {
- Type runtimeType;
- Gtk.TreeIter iter;
-
- if (!this.m_RuntimeCombo.GetActiveIter (out iter))
- throw new Exception ("No selected runtime!");
-
- runtimeType = this.m_RuntimeListStore.GetValue (iter, 1) as Type;
- return Activator.CreateInstance (runtimeType) as IPythonRuntime;
- }
- set {
- Gtk.TreeIter iter;
-
- if (this.m_RuntimeListStore.GetIterFirst (out iter)) {
- do {
- Type t = this.m_RuntimeListStore.GetValue (iter, 1) as Type;
- if (t == value.GetType ()) {
- this.m_RuntimeCombo.SetActiveIter (iter);
- this.m_RuntimeFileEntry.Path = value.Path;
- break;
- }
- } while (m_RuntimeListStore.IterNext (ref iter));
- }
- }
- }
-
- public string RuntimePath {
- get {
- return m_RuntimeFileEntry.Path;
- }
- }
-
- protected virtual void AddPath_Clicked (object sender, System.EventArgs e)
- {
- var dialog = new FileChooserDialog ("Add Path",
- IdeApp.Workbench.RootWindow,
- FileChooserAction.SelectFolder,
- Gtk.Stock.Cancel, Gtk.ResponseType.Cancel,
- Gtk.Stock.Open, Gtk.ResponseType.Ok);
-
- if (dialog.Run () == (int)Gtk.ResponseType.Ok) {
- m_PathsListStore.AppendValues (dialog.Filename);
- }
-
- dialog.Destroy ();
- }
-
- protected virtual void RemovePath_Clicked (object sender, System.EventArgs e)
- {
- TreeModel model;
- TreeIter iter;
-
- if (m_PathsTreeView.Selection.GetSelected (out model, out iter)) {
- (model as ListStore).Remove (ref iter);
- }
- }
- }
-}
diff --git a/extras/PyBinding/PyBinding/PyBinding.Parser.Dom/PythonArgument.cs b/extras/PyBinding/PyBinding/PyBinding.Parser.Dom/PythonArgument.cs
deleted file mode 100644
index eb2bb95d8a..0000000000
--- a/extras/PyBinding/PyBinding/PyBinding.Parser.Dom/PythonArgument.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-// PythonArgument.cs
-//
-// Copyright (c) 2008 Christian Hergert <chris@dronelabs.com>
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-using System;
-using System.Collections.Generic;
-
-namespace PyBinding.Parser.Dom
-{
- [Serializable]
- public class PythonArgument : PythonNode
- {
- public int Position {
- get;
- set;
- }
- }
-}
diff --git a/extras/PyBinding/PyBinding/PyBinding.Parser.Dom/PythonAttribute.cs b/extras/PyBinding/PyBinding/PyBinding.Parser.Dom/PythonAttribute.cs
deleted file mode 100644
index 88fe39bff6..0000000000
--- a/extras/PyBinding/PyBinding/PyBinding.Parser.Dom/PythonAttribute.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-// PythonAttribute.cs
-//
-// Copyright (c) 2008 Christian Hergert <chris@dronelabs.com>
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-using System;
-using System.Collections.Generic;
-
-namespace PyBinding.Parser.Dom
-{
- [Serializable]
- public class PythonAttribute : PythonNode
- {
- public string Default {
- get;
- set;
- }
- }
-}
diff --git a/extras/PyBinding/PyBinding/PyBinding.Parser.Dom/PythonClass.cs b/extras/PyBinding/PyBinding/PyBinding.Parser.Dom/PythonClass.cs
deleted file mode 100644
index 1b16877ba6..0000000000
--- a/extras/PyBinding/PyBinding/PyBinding.Parser.Dom/PythonClass.cs
+++ /dev/null
@@ -1,46 +0,0 @@
-// PythonClass.cs
-//
-// Copyright (c) 2008 Christian Hergert <chris@dronelabs.com>
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-using System;
-using System.Collections.Generic;
-
-namespace PyBinding.Parser.Dom
-{
- [Serializable]
- public class PythonClass : PythonNode
- {
- List<PythonFunction> m_Functions = new List<PythonFunction> ();
- List<PythonAttribute> m_Attributes = new List<PythonAttribute> ();
-
- public IList<PythonFunction> Functions {
- get {
- return m_Functions;
- }
- }
-
- public IList<PythonAttribute> Attributes {
- get {
- return m_Attributes;
- }
- }
- }
-} \ No newline at end of file
diff --git a/extras/PyBinding/PyBinding/PyBinding.Parser.Dom/PythonComment.cs b/extras/PyBinding/PyBinding/PyBinding.Parser.Dom/PythonComment.cs
deleted file mode 100644
index 32504c213f..0000000000
--- a/extras/PyBinding/PyBinding/PyBinding.Parser.Dom/PythonComment.cs
+++ /dev/null
@@ -1,40 +0,0 @@
-// PythonComment.cs
-//
-// Copyright (c) 2008 Christian Hergert <chris@dronelabs.com>
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-using System;
-
-namespace PyBinding.Parser.Dom
-{
- [Serializable]
- public class PythonComment : PythonNode
- {
- public string Text {
- get;
- set;
- }
-
- public bool MultiLine {
- get;
- set;
- }
- }
-}
diff --git a/extras/PyBinding/PyBinding/PyBinding.Parser.Dom/PythonCompilationUnit.cs b/extras/PyBinding/PyBinding/PyBinding.Parser.Dom/PythonCompilationUnit.cs
deleted file mode 100644
index c585fc6ec2..0000000000
--- a/extras/PyBinding/PyBinding/PyBinding.Parser.Dom/PythonCompilationUnit.cs
+++ /dev/null
@@ -1,165 +0,0 @@
-// PythonCompilationUnit.cs
-//
-// Copyright (c) 2008 Christian Hergert <chris@dronelabs.com>
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-using System;
-using System.Collections.Generic;
-
-using MonoDevelop.Core;
-using MonoDevelop.Projects.Dom;
-using MonoDevelop.Projects.Dom.Parser;
-
-namespace PyBinding.Parser.Dom
-{
- [Serializable]
- public class PythonCompilationUnit : CompilationUnit
- {
- List<IBaseMember> m_AllWrapped = new List<IBaseMember> ();
-
- public PythonCompilationUnit (string fileName) : base (fileName)
- {
- }
-
- public PythonModule Module {
- get;
- set;
- }
-
- internal List<IBaseMember> AllWrapped {
- get { return m_AllWrapped; }
- }
-
- public void Build ()
- {
- if (Module == null)
- return;
-
- // fake class containing modules funcs
- var module = new PackageDomType () {
- Name = PythonHelper.PackageFromFilename (FileName),
- ClassType = ClassType.Unknown,
- Location = new DomLocation (0, 0),
- BodyRegion = Module.Region,
- };
- m_AllWrapped.Add (module);
- Add (module);
-
- // module functions
- foreach (IMethod method in BuildFunctions (Module.Functions))
- module.Add (method);
-
- // module attributes
- foreach (IField field in BuildAttributes (Module.Attributes))
- module.Add (field);
-
- // module classes
- foreach (IType type in BuildClasses (Module.Classes))
- module.Add (type);
- }
-
- IEnumerable<IType> BuildClasses (IEnumerable<PythonClass> classes)
- {
- foreach (PythonClass pyClass in classes)
- {
- var domType = new DomType () {
- Name = pyClass.Name,
- Documentation = pyClass.Documentation,
- ClassType = ClassType.Class,
- BodyRegion = pyClass.Region,
- Location = new DomLocation (pyClass.Region.Start.Line - 1, 0),
- };
- m_AllWrapped.Add (domType);
-
- // class functions
- foreach (IMethod method in BuildFunctions (pyClass.Functions))
- domType.Add (method);
-
- // class attributes
- foreach (IField field in BuildAttributes (pyClass.Attributes))
- domType.Add (field);
-
- yield return domType;
- }
- }
-
- IEnumerable<IField> BuildAttributes (IEnumerable<PythonAttribute> attributes)
- {
- foreach (PythonAttribute pyAttr in attributes)
- {
- var domAttr = new DomField () {
- Name = pyAttr.Name,
- BodyRegion = pyAttr.Region,
- Location = pyAttr.Region.Start,
- ReturnType = new DomReturnType () {
- Name = pyAttr.Name, // FIXME: Get inferred type
- Namespace = Module.FullName,
- },
- };
- m_AllWrapped.Add (domAttr);
- yield return domAttr;
- }
- }
-
- IEnumerable<IMethod> BuildFunctions (IEnumerable<PythonFunction> functions)
- {
- if (functions == null)
- yield break;
-
- foreach (PythonFunction pyFunc in functions)
- {
- var domFunc = new DomMethod () {
- Name = pyFunc.Name,
- Documentation = pyFunc.Documentation,
- BodyRegion = pyFunc.Region,
- Location = new DomLocation (pyFunc.Region.Start.Line - 1, 0),
- ReturnType = new DomReturnType () {
- Name = pyFunc.Name, // FIXME: Get inferred type
- Namespace = Module.FullName,
- },
- };
- m_AllWrapped.Add (domFunc);
-
- foreach (PythonArgument pyArg in pyFunc.Arguments)
- {
- var domArg = new DomParameter () {
- Name = pyArg.Name,
- ReturnType = new DomReturnType () {
- Name = pyArg.Name, // FIXME: Get inferred type
- Namespace = Module.FullName,
- },
- };
- m_AllWrapped.Add (domArg);
- domFunc.Add (domArg);
- }
-
- yield return domFunc;
- }
- }
-
- class PackageDomType: DomType
- {
-
- public override IconId StockIcon {
- get { return "md-package"; }
- }
- }
- }
-} \ No newline at end of file
diff --git a/extras/PyBinding/PyBinding/PyBinding.Parser.Dom/PythonFunction.cs b/extras/PyBinding/PyBinding/PyBinding.Parser.Dom/PythonFunction.cs
deleted file mode 100644
index 0d5b86496e..0000000000
--- a/extras/PyBinding/PyBinding/PyBinding.Parser.Dom/PythonFunction.cs
+++ /dev/null
@@ -1,46 +0,0 @@
-// PythonFunction.cs
-//
-// Copyright (c) 2008 Christian Hergert <chris@dronelabs.com>
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-using System;
-using System.Collections.Generic;
-
-namespace PyBinding.Parser.Dom
-{
- [Serializable]
- public class PythonFunction : PythonNode
- {
- List<PythonLocal> m_Locals = new List<PythonLocal> ();
- List<PythonArgument> m_Arguments = new List<PythonArgument> ();
-
- public IList<PythonLocal> Locals {
- get {
- return m_Locals;
- }
- }
-
- public IList<PythonArgument> Arguments {
- get {
- return m_Arguments;
- }
- }
- }
-} \ No newline at end of file
diff --git a/extras/PyBinding/PyBinding/PyBinding.Parser.Dom/PythonImport.cs b/extras/PyBinding/PyBinding/PyBinding.Parser.Dom/PythonImport.cs
deleted file mode 100644
index 999229007e..0000000000
--- a/extras/PyBinding/PyBinding/PyBinding.Parser.Dom/PythonImport.cs
+++ /dev/null
@@ -1,35 +0,0 @@
-// PythonImport.cs
-//
-// Copyright (c) 2008 Christian Hergert <chris@dronelabs.com>
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-using System;
-
-namespace PyBinding.Parser.Dom
-{
- [Serializable]
- public class PythonImport : PythonNode
- {
- public string Module {
- get;
- set;
- }
- }
-} \ No newline at end of file
diff --git a/extras/PyBinding/PyBinding/PyBinding.Parser.Dom/PythonLocal.cs b/extras/PyBinding/PyBinding/PyBinding.Parser.Dom/PythonLocal.cs
deleted file mode 100644
index eb5d4e34cc..0000000000
--- a/extras/PyBinding/PyBinding/PyBinding.Parser.Dom/PythonLocal.cs
+++ /dev/null
@@ -1,32 +0,0 @@
-// PythonLocal.cs
-//
-// Copyright (c) 2008 Christian Hergert <chris@dronelabs.com>
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-using System;
-using System.Collections.Generic;
-
-namespace PyBinding.Parser.Dom
-{
- [Serializable]
- public class PythonLocal : PythonNode
- {
- }
-}
diff --git a/extras/PyBinding/PyBinding/PyBinding.Parser.Dom/PythonModule.cs b/extras/PyBinding/PyBinding/PyBinding.Parser.Dom/PythonModule.cs
deleted file mode 100644
index 0451cb0e71..0000000000
--- a/extras/PyBinding/PyBinding/PyBinding.Parser.Dom/PythonModule.cs
+++ /dev/null
@@ -1,72 +0,0 @@
-// PythonModule.cs
-//
-// Copyright (c) 2008 Christian Hergert <chris@dronelabs.com>
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-using System;
-using System.Collections.Generic;
-
-namespace PyBinding.Parser.Dom
-{
- [Serializable]
- public class PythonModule : PythonNode
- {
- List<PythonImport> m_Imports = new List<PythonImport> ();
- List<PythonClass> m_Classes = new List<PythonClass> ();
- List<PythonFunction> m_Functions = new List<PythonFunction> ();
- List<PythonAttribute> m_Attributes = new List<PythonAttribute> ();
- List<PythonComment> m_Comments = new List<PythonComment> ();
-
- public string FullName {
- get;
- set;
- }
-
- public IList<PythonImport> Imports {
- get {
- return m_Imports;
- }
- }
-
- public IList<PythonClass> Classes {
- get {
- return m_Classes;
- }
- }
-
- public IList<PythonFunction> Functions {
- get {
- return m_Functions;
- }
- }
-
- public IList<PythonAttribute> Attributes {
- get {
- return m_Attributes;
- }
- }
-
- public IList<PythonComment> Comments {
- get {
- return m_Comments;
- }
- }
- }
-} \ No newline at end of file
diff --git a/extras/PyBinding/PyBinding/PyBinding.Parser.Dom/PythonNode.cs b/extras/PyBinding/PyBinding/PyBinding.Parser.Dom/PythonNode.cs
deleted file mode 100644
index 45820b0d43..0000000000
--- a/extras/PyBinding/PyBinding/PyBinding.Parser.Dom/PythonNode.cs
+++ /dev/null
@@ -1,54 +0,0 @@
-// PythonNode.cs
-//
-// Copyright (c) 2008 Christian Hergert <chris@dronelabs.com>
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-using System;
-using System.Runtime.Serialization;
-
-using MonoDevelop.Projects.Dom;
-
-namespace PyBinding.Parser.Dom
-{
- [Serializable]
- public class PythonNode
- {
- public PythonNode ()
- {
- Documentation = String.Empty;
- Name = String.Empty;
- }
-
- public string Name {
- get;
- set;
- }
-
- public DomRegion Region {
- get;
- set;
- }
-
- public string Documentation {
- get;
- set;
- }
- }
-}
diff --git a/extras/PyBinding/PyBinding/PyBinding.Parser.Dom/PythonParsedDocument.cs b/extras/PyBinding/PyBinding/PyBinding.Parser.Dom/PythonParsedDocument.cs
deleted file mode 100644
index 897cdf3852..0000000000
--- a/extras/PyBinding/PyBinding/PyBinding.Parser.Dom/PythonParsedDocument.cs
+++ /dev/null
@@ -1,387 +0,0 @@
-// PythonParsedDocument.cs
-//
-// Copyright (c) 2008 Christian Hergert <chris@dronelabs.com>
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-using System;
-using System.Collections.Generic;
-using System.Diagnostics;
-using System.IO;
-using System.Text;
-using System.Xml;
-
-using MonoDevelop.Projects.Dom;
-using MonoDevelop.Projects.Dom.Parser;
-
-namespace PyBinding.Parser.Dom
-{
- public class PythonParsedDocument : ParsedDocument
- {
- public PythonParsedDocument (string fileName) : base (fileName)
- {
- }
-
- public PythonModule Module {
- get;
- set;
- }
-
- public void Parse (XmlTextReader reader, string content)
- {
- this.CompilationUnit = new PythonCompilationUnit (this.FileName);
- var streamContent = new StringReader (content);
- ReadFromXml (reader, streamContent);
- ReadComments (content);
- (this.CompilationUnit as PythonCompilationUnit).Build ();
- }
-
- public void ReadComments (string content)
- {
- if (Module == null)
- return;
-
- string[] parts = content.Split ('\n');
- int blockStart = -1;
- StringBuilder text = new StringBuilder ();
-
- for (int i = 0; i < parts.Length; i++)
- {
- if (parts[i].Trim ().StartsWith ("#"))
- {
- text.AppendLine (parts[i]);
- if (blockStart < 0)
- {
- blockStart = i + 1;
- }
- }
- else
- {
- if (blockStart >= 0)
- {
- var region = new DomRegion (blockStart + 1, 0, i, parts[i - 1].Length);
-
- Module.Comments.Add (new PythonComment () {
- Region = region,
- Text = text.ToString (),
- MultiLine = i - 1 > blockStart,
- });
-
- text = new StringBuilder ();
- blockStart = -1;
- }
- }
- }
- }
-
- /// <summary>
- /// This method will convert the xml output from the parsing
- /// python process and add it to the parsed document.
- /// </summary>
- /// <param name="xml">
- /// A <see cref="XmlTextReader"/>
- /// </param>
- public void ReadFromXml (XmlTextReader xml, StringReader content)
- {
- if (xml == null)
- throw new ArgumentNullException ("xml cannot be null");
-
- XmlDocument xmlDoc = new XmlDocument ();
-
- xmlDoc.Load (xml);
- XmlElement root = xmlDoc.DocumentElement;
-
- if (root.LocalName == "error") {
- ExtractError (root);
- }
- else if (root.LocalName == "module") {
- BuildFromXmlElement (root, content);
- }
- else {
- Console.WriteLine (root.LocalName);
- Debug.Assert (false, "Assert not reached");
- }
-
- (this.CompilationUnit as PythonCompilationUnit).Module = Module;
- }
-
- void ExtractError (XmlElement element)
- {
- int line = 0;
- int column = 0;
-
- Int32.TryParse (element.GetAttribute ("line"), out line);
- Int32.TryParse (element.GetAttribute ("column"), out column);
-
- Add (new Error (ErrorType.Error, line, column, element.InnerText));
- }
-
- /// <summary>
- /// Walks the xml element tree to build a result. This expects
- /// rootElement to be a &lt;module /&gt; element.
- /// <param name="rootElement">
- /// A <see cref="XmlElement"/>
- /// </param>
- /// </summary>
- /// <param name="rootElement">
- /// A <see cref="XmlElement"/>
- /// </param>
- void BuildFromXmlElement (XmlElement rootElement, StringReader content)
- {
- Debug.Assert (rootElement.LocalName == "module");
- string moduleName = String.Empty;
-
- if (!String.IsNullOrEmpty (FileName))
- moduleName = PythonHelper.ModuleFromFilename (FileName);
-
- Module = new PythonModule () {
- FullName = moduleName,
- Region = GetDomRegion (rootElement),
- };
-
- foreach (XmlElement child in rootElement) {
- switch (child.LocalName) {
- case "import":
- BuildImport (child);
- break;
- case "class":
- BuildClass (child);
- break;
- case "attribute":
- BuildAttribute (child);
- break;
- case "function":
- BuildFunction (child);
- break;
- case "warning":
- BuildWarning (child);
- break;
- default:
- Debug.Assert (false, "Assert not reached");
- break;
- }
- }
- }
-
- DomRegion GetDomRegion (XmlElement element)
- {
- int lineNumber = Int32.Parse (element.GetAttribute ("line"));
- int endLine = lineNumber;
- if (element.HasAttribute ("endline"))
- endLine = Int32.Parse (element.GetAttribute ("endline"));
- return new DomRegion (lineNumber + 1, endLine + 1);
- }
-
- void BuildWarning (XmlElement element)
- {
- Add (new Error (ErrorType.Warning,
- Int32.Parse (element.GetAttribute ("line")), 0,
- element.InnerText));
- }
-
- void BuildImport (XmlElement element)
- {
- Module.Imports.Add (new PythonImport () {
- Region = GetDomRegion (element),
- Name = element.GetAttribute ("name")
- });
- }
-
- void BuildAttribute (XmlElement element)
- {
- Module.Attributes.Add (new PythonAttribute () {
- Name = element.GetAttribute ("name"),
- Region = GetDomRegion (element)
- });
- }
-
- void BuildAttribute (XmlElement element, PythonClass pyClass)
- {
- pyClass.Attributes.Add (new PythonAttribute () {
- Name = element.GetAttribute ("name"),
- Region = GetDomRegion (element)
- });
- }
-
- void BuildFunction (XmlElement element)
- {
- PythonFunction pyFunc;
-
- Module.Functions.Add (pyFunc = new PythonFunction () {
- Name = element.GetAttribute ("name"),
- Region = GetDomRegion (element),
- });
-
- foreach (XmlElement child in element)
- {
- if (child.LocalName == "doc")
- {
- pyFunc.Documentation = element.InnerText.Trim ();
- }
- else if (child.LocalName == "local")
- {
- BuildLocal (child, pyFunc);
- }
- else if (child.LocalName == "argument")
- {
- BuildArgument (child, pyFunc);
- }
- }
- }
-
- void BuildArgument (XmlElement element, PythonFunction pyFunc)
- {
- pyFunc.Arguments.Add (new PythonArgument () {
- Name = element.GetAttribute("name"),
- Region = pyFunc.Region,
- });
- }
-
- void BuildLocal (XmlElement element, PythonFunction pyFunc)
- {
- pyFunc.Locals.Add (new PythonLocal () {
- Name = element.GetAttribute ("name"),
- Region = GetDomRegion (element)
- });
- }
-
- void BuildFunction (XmlElement element, PythonClass pyClass)
- {
- PythonFunction pyFunc;
-
- pyClass.Functions.Add (pyFunc = new PythonFunction () {
- Name = element.GetAttribute ("name"),
- Region = GetDomRegion (element),
- });
-
- foreach (XmlElement child in element)
- if (child.LocalName == "doc")
- pyFunc.Documentation = element.InnerText.Trim ();
- else if (child.LocalName == "argument")
- BuildArgument (child, pyFunc);
- }
-
- void BuildClass (XmlElement element)
- {
- PythonClass pyClass;
-
- Module.Classes.Add (pyClass = new PythonClass () {
- Name = element.GetAttribute ("name"),
- Region = GetDomRegion (element)
- });
-
- // PythonClasses can have Attributes or Functions directly
- // inside them. They can also have doc elements which we
- // we can set.
-
- foreach (XmlElement child in element) {
- switch (child.LocalName) {
- case "doc":
- pyClass.Documentation = child.InnerText;
- break;
- case "attribute":
- BuildAttribute (child, pyClass);
- break;
- case "function":
- BuildFunction (child, pyClass);
- break;
- default:
- Debug.Assert (false, "Assert not reached");
- break;
- }
- }
- }
-
- public override IEnumerable<FoldingRegion> GenerateFolds ()
- {
- if (Module == null)
- yield break;
-
- foreach (FoldingRegion region in GenerateImportFolds ())
- yield return region;
-
- foreach (PythonComment pyComment in Module.Comments)
- if (pyComment.MultiLine)
- yield return new FoldingRegion (pyComment.Region);
-
- foreach (FoldingRegion region in GenerateClassFolds ())
- yield return region;
-
- foreach (PythonFunction pyFunc in Module.Functions)
- yield return new FoldingRegion (pyFunc.Region);
- }
-
- IEnumerable<FoldingRegion> GenerateImportFolds ()
- {
- if (Module == null)
- yield break;
-
- var en = Module.Imports.GetEnumerator ();
-
- if (!en.MoveNext ())
- yield break;
-
- var first = en.Current;
- var last = first;
-
- while (en.MoveNext ())
- {
- if (first == null)
- {
- first = last;
- }
- else if (en.Current.Region.Start.Line - 1 != last.Region.End.Line)
- {
- yield return new FoldingRegion (new DomRegion (first.Region.Start, last.Region.End));
- first = null;
- }
- last = en.Current;
- }
-
- if (first != null && last != null)
- yield return new FoldingRegion (new DomRegion (first.Region.Start, last.Region.End));
- }
-
- IEnumerable<FoldingRegion> GenerateClassFolds ()
- {
- if (Module == null)
- yield break;
-
- foreach (PythonClass pyClass in Module.Classes)
- {
- yield return new FoldingRegion (pyClass.Region);
-
- foreach (FoldingRegion region in GenerateFunctionFolds (pyClass))
- yield return region;
- }
- }
-
- IEnumerable<FoldingRegion> GenerateFunctionFolds (PythonClass pyClass)
- {
- if (Module == null)
- yield break;
-
- foreach (PythonFunction pyFunc in pyClass.Functions)
- {
- yield return new FoldingRegion (pyFunc.Region);
- // TODO: Look for inner classes
- }
- }
- }
-} \ No newline at end of file
diff --git a/extras/PyBinding/PyBinding/PyBinding.Parser/ParserDatabase.cs b/extras/PyBinding/PyBinding/PyBinding.Parser/ParserDatabase.cs
deleted file mode 100644
index bb2ef51cf7..0000000000
--- a/extras/PyBinding/PyBinding/PyBinding.Parser/ParserDatabase.cs
+++ /dev/null
@@ -1,314 +0,0 @@
-//
-// ParserDatabase.cs
-//
-// Author:
-// Christian Hergert <chris@dronelabs.com>
-//
-// Copyright (c) 2009 Christian Hergert
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-using System;
-using System.Collections.Generic;
-using System.Data;
-using System.IO;
-using System.Reflection;
-using System.Threading;
-using MonoDevelop.Ide;
-
-using Mono.Data.Sqlite;
-
-namespace PyBinding.Parser
-{
- public delegate void ParserItemCallback (ParserItem item);
-
- /// <summary>
- /// This is a crappy little storage system for the parsed data from python
- /// source files.
- /// </summary>
- public class ParserDatabase
- {
- static readonly TimeSpan s_lockTimeout = TimeSpan.FromSeconds (60);
- static readonly int s_version = 1;
- static SqliteCommand s_RemoveByFilePrefix;
- static SqliteCommand s_Find;
- static SqliteCommand s_FindWithType;
-
- ReaderWriterLock m_rwLock;
- string m_FileName;
- SqliteConnection m_conn;
-
- public ParserDatabase (string fileName)
- {
- m_FileName = fileName;
- m_rwLock = new ReaderWriterLock ();
- }
-
- public string FileName {
- get { return m_FileName; }
- }
-
- string VersionFile {
- get {
- return m_FileName + ".version";
- }
- }
-
- bool NeedsUpgrade {
- get {
- if (!File.Exists (m_FileName))
- return false;
- else if (!File.Exists (VersionFile))
- return true;
- int version;
- string content = File.ReadAllText (VersionFile).Trim ();
- if (!Int32.TryParse (content, out version))
- return true;
- return version != s_version;
- }
- }
-
- string ConnStrForFile (string filename)
- {
- return String.Format ("Data Source={0}", filename);
- }
-
- public void Open ()
- {
- string connString = ConnStrForFile (m_FileName);
-
- var dirInfo = new FileInfo (m_FileName).Directory;
- if (!dirInfo.Exists)
- dirInfo.Create ();
-
- m_rwLock.AcquireWriterLock (s_lockTimeout);
-
- try {
- // Backup if needed
- var backup = m_FileName + ".bak";
- var needsUpgrade = NeedsUpgrade;
- if (needsUpgrade && File.Exists (m_FileName))
- File.Move (m_FileName, backup);
- else if (!File.Exists (m_FileName))
- File.WriteAllText (VersionFile, String.Format ("{0}", s_version));
-
- // Build
- m_conn = new SqliteConnection (connString);
- m_conn.Open ();
- EnsureTables ();
-
- if (needsUpgrade) {
- File.WriteAllText (VersionFile, String.Format ("{0}", s_version));
-
- // Open backup database
- var conn = new SqliteConnection (ConnStrForFile (backup));
- conn.Open ();
-
- // Copy the database in a thread
- ThreadPool.QueueUserWorkItem (delegate {
- try {
- this.CopyDatabase (conn);
- } catch (Exception ex) {
- Console.WriteLine (ex.ToString ());
- }
-
- conn.Close ();
- conn.Dispose ();
-
- if (File.Exists (backup))
- File.Delete (backup);
- });
- }
- }
- finally {
- m_rwLock.ReleaseWriterLock ();
- }
- }
-
- public void Close ()
- {
- m_rwLock.AcquireWriterLock (s_lockTimeout);
- try {
- m_conn.Close ();
- }
- finally {
- m_rwLock.ReleaseWriterLock ();
- }
- }
-
- public void Add (ParserItem item)
- {
- m_rwLock.AcquireWriterLock (s_lockTimeout);
- try {
- item.Serialize (m_conn);
- }
- finally {
- m_rwLock.ReleaseWriterLock ();
- }
- }
-
- public void AddRange (IEnumerable<ParserItem> items)
- {
- m_rwLock.AcquireWriterLock (s_lockTimeout);
- try {
- foreach (var item in items)
- item.Serialize (m_conn);
- } finally {
- m_rwLock.ReleaseWriterLock ();
- }
- }
-
- public IEnumerable<ParserItem> Find (string prefix)
- {
- if (s_Find == null) {
- var command = new SqliteCommand ();
- command.CommandText = "SELECT " + s_ItemColumns + " FROM Items WHERE FullName LIKE @FullName;";
- command.CommandType = CommandType.Text;
- command.Parameters.Add ("FullName", DbType.String);
- s_Find = command;
- }
-
- var find = s_Find.Clone () as SqliteCommand;
- find.Connection = m_conn;
- find.Parameters ["FullName"].Value = prefix.Replace ("%", "\\%") + "%";
-
- using (var reader = find.ExecuteReader ())
- {
- while (reader.Read ())
- {
- ParserItem item = new ParserItem ();
- item.Deserialize (reader);
- yield return item;
- }
- }
- }
-
- const string s_ItemColumns = "FullName, FileName, LineNumber, ItemType, PyDoc, Extra";
-
- public IEnumerable<ParserItem> Find (string prefix, ParserItemType itemType)
- {
- foreach (var item in Find (prefix, itemType, -1))
- yield return item;
- }
-
- public IEnumerable<ParserItem> Find (string prefix, ParserItemType itemType, int depth)
- {
- if (s_FindWithType == null) {
- var command = new SqliteCommand ();
- command.CommandText = "SELECT " + s_ItemColumns + " FROM Items WHERE FullName LIKE @FullName";
- command.CommandType = CommandType.Text;
- command.Parameters.Add ("FullName", DbType.String);
- command.Parameters.Add ("ItemType", DbType.Int32);
- s_FindWithType = command; // Race condition shouldn't matter
- }
-
- var findWithType = s_FindWithType.Clone () as SqliteCommand;
-
- if (itemType != ParserItemType.Any) {
- findWithType.CommandText += " AND ItemType == @ItemType";
- findWithType.Parameters.Add ("ItemType", DbType.Int32);
- findWithType.Parameters ["ItemType"].Value = (int)itemType;
- }
-
- if (depth >= 0) {
- findWithType.CommandText += " AND Depth == @Depth";
- findWithType.Parameters.Add ("Depth", DbType.Int32);
- findWithType.Parameters ["Depth"].Value = depth;
- }
-
- findWithType.Connection = m_conn;
- findWithType.Parameters ["FullName"].Value = prefix.Replace ("%", "\\%") + "%";
-
- using (var reader = findWithType.ExecuteReader ())
- {
- while (reader.Read ())
- {
- ParserItem item = new ParserItem ();
- item.Deserialize (reader);
- yield return item;
- }
- }
- }
-
- public void RemoveByFilePrefix (string prefix)
- {
- if (s_RemoveByFilePrefix == null) {
- var command = new SqliteCommand ();
- command.CommandText = "DELETE FROM Items WHERE FileName LIKE @FileName;";
- command.CommandType = CommandType.Text;
- command.Parameters.Add ("FileName", DbType.String);
- s_RemoveByFilePrefix = command;
- }
-
- var copyCommand = s_RemoveByFilePrefix.Clone () as SqliteCommand;
- copyCommand.Connection = m_conn;
- copyCommand.Parameters ["FileName"].Value = prefix + "%";
- copyCommand.ExecuteNonQuery ();
- }
-
- void EnsureTables ()
- {
- string schemaSql;
-
- using (var stream = Assembly.GetExecutingAssembly().GetManifestResourceStream ("Schema.sql"))
- using (var reader = new StreamReader (stream))
- schemaSql = reader.ReadToEnd ();
-
- foreach (string commandText in schemaSql.Split (';'))
- new SqliteCommand (commandText, m_conn).ExecuteNonQuery ();
- }
-
- void CopyDatabase (SqliteConnection src)
- {
- Console.WriteLine ("Migrating python completion database to version {0}", s_version);
-
- int batchSize = 100;
- var cmd = new SqliteCommand ("SELECT " + s_ItemColumns + " FROM Items;", src);
- var reader = cmd.ExecuteReader ();
- int i = 0;
- var items = new List<ParserItem> ();
-
- var rowsCommand = new SqliteCommand ("SELECT count(*) FROM Items;", src);
- var count = (long)rowsCommand.ExecuteScalar ();
-
- var progress = IdeApp.Workbench.ProgressMonitors.GetBackgroundProgressMonitor ("Python Completion Database", Gtk.Stock.Execute);
- progress.BeginTask ("Migrating completion database", (int)count);
-
- while (reader.Read ())
- {
- var item = new ParserItem ();
- item.Deserialize (reader);
- items.Add (item);
- i++;
- if (i % batchSize == 0) {
- AddRange (items);
- progress.Step (items.Count);
- items.Clear ();
- }
- }
-
- if (items.Count > 0)
- AddRange (items);
- progress.Step (items.Count);
- items.Clear ();
-
- progress.Dispose ();
- }
- }
-}
diff --git a/extras/PyBinding/PyBinding/PyBinding.Parser/ParserItem.cs b/extras/PyBinding/PyBinding/PyBinding.Parser/ParserItem.cs
deleted file mode 100644
index e42a9a1b20..0000000000
--- a/extras/PyBinding/PyBinding/PyBinding.Parser/ParserItem.cs
+++ /dev/null
@@ -1,140 +0,0 @@
-//
-// ParserItem.cs
-//
-// Author:
-// Christian Hergert <chris@dronelabs.com>
-//
-// Copyright (c) 2009 Christian Hergert
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-using System;
-using System.Data;
-
-using Mono.Data.Sqlite;
-
-namespace PyBinding.Parser
-{
- public enum ParserItemType
- {
- Module,
- Class,
- Function,
- Attribute,
- Local,
- Any,
- }
-
- public class ParserItem
- {
- public string FileName {
- get;
- set;
- }
-
- public int LineNumber {
- get;
- set;
- }
-
- public ParserItemType ItemType {
- get;
- set;
- }
-
- public string FullName {
- get;
- set;
- }
-
- public int Depth {
- get {
- int i = 0;
- foreach (var c in FullName)
- if (c == '.')
- i++;
- return i;
- }
- }
-
- public string Documentation {
- get;
- set;
- }
-
- public string Extra {
- get;
- set;
- }
-
- static SqliteCommand s_InsertCommand;
-
- SqliteCommand GetInsertCommand ()
- {
- if (s_InsertCommand == null) {
- var command = new SqliteCommand ();
- command.CommandText =
- "INSERT OR REPLACE into Items (" +
- "FullName, Depth, FileName, LineNumber, ItemType, Pydoc, Extra) " +
- "VALUES (@FullName, @Depth, @FileName, @LineNumber, @ItemType, @Pydoc, @Extra)";
- command.Parameters.Add ("FullName", DbType.String);
- command.Parameters.Add ("Depth", DbType.Int32);
- command.Parameters.Add ("FileName", DbType.String);
- command.Parameters.Add ("LineNumber", DbType.Int32);
- command.Parameters.Add ("ItemType", DbType.Int32);
- command.Parameters.Add ("Pydoc", DbType.String);
- command.Parameters.Add ("Extra", DbType.String);
- s_InsertCommand = command;
- }
-
- var copyCommand = s_InsertCommand.Clone () as SqliteCommand;
- return copyCommand;
- }
-
- public void Serialize (SqliteConnection conn)
- {
- using (var command = GetInsertCommand ())
- {
- command.Connection = conn;
- command.Parameters["FullName"].Value = FullName;
- command.Parameters["Depth"].Value = Depth;
- command.Parameters["FileName"].Value = FileName;
- command.Parameters["LineNumber"].Value = LineNumber;
- command.Parameters["ItemType"].Value = (int)ItemType;
- command.Parameters["Pydoc"].Value = Documentation;
- command.Parameters["Extra"].Value = Extra;
- command.ExecuteNonQuery ();
- }
- }
-
- public void Deserialize (SqliteDataReader reader)
- {
- this.FullName = reader.GetString (0) as String;
- this.FileName = reader.GetString (1) as String;
- this.LineNumber = reader.GetInt32 (2);
- this.ItemType = (ParserItemType)reader.GetInt32 (3);
- var docValue = reader.GetValue (4);
- if (docValue.GetType () == typeof (String))
- this.Documentation = (string)docValue;
- var extraValue = reader.GetValue (5);
- if (extraValue.GetType () == typeof (string))
- this.Extra = (string)extraValue;
- }
- }
-} \ No newline at end of file
diff --git a/extras/PyBinding/PyBinding/PyBinding.Parser/ParserManager.cs b/extras/PyBinding/PyBinding/PyBinding.Parser/ParserManager.cs
deleted file mode 100644
index 492e762561..0000000000
--- a/extras/PyBinding/PyBinding/PyBinding.Parser/ParserManager.cs
+++ /dev/null
@@ -1,57 +0,0 @@
-//
-// ParserManager.cs
-//
-// Author:
-// Christian Hergert <chris@dronelabs.com>
-//
-// Copyright (c) 2009 Christian Hergert
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-using System;
-using System.Collections.Generic;
-using System.Threading;
-
-using PyBinding.Runtime;
-
-namespace PyBinding.Parser
-{
- /// <summary>
- /// Manage the parser subprocesses and access to them.
- /// </summary>
- internal static class ParserManager
- {
- static Dictionary<Type,PythonParserInternal> s_parsers = new Dictionary<Type, PythonParserInternal> ();
- static object s_syncRoot = new object ();
-
- internal static PythonParserInternal GetParser (IPythonRuntime runtime)
- {
- if (runtime == null)
- throw new ArgumentNullException ("runtime");
-
- lock (s_syncRoot) {
- if (!s_parsers.ContainsKey (runtime.GetType ())) {
- s_parsers [runtime.GetType ()] = new PythonParserInternal (runtime);
- }
- }
-
- return s_parsers [runtime.GetType ()];
- }
- }
-}
diff --git a/extras/PyBinding/PyBinding/PyBinding.Parser/PythonExpressionFinder.cs b/extras/PyBinding/PyBinding/PyBinding.Parser/PythonExpressionFinder.cs
deleted file mode 100644
index 108b1db433..0000000000
--- a/extras/PyBinding/PyBinding/PyBinding.Parser/PythonExpressionFinder.cs
+++ /dev/null
@@ -1,170 +0,0 @@
-// PythonExpressionFinder.cs
-//
-// Copyright (c) 2009 Christian Hergert <chris@dronelabs.com>
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-using System;
-using System.Collections.Generic;
-using System.Text;
-
-using Mono.TextEditor;
-using MonoDevelop.Projects.Dom;
-using MonoDevelop.Projects.Dom.Parser;
-
-namespace PyBinding.Parser
-{
- public class PythonExpressionFinder: IExpressionFinder
- {
-// ProjectDom m_dom;
-
- public PythonExpressionFinder (ProjectDom dom)
- {
-// m_dom = dom;
- }
-
- #region IExpressionFinder implementation
- bool IExpressionFinder.IsExpression (string text)
- {
- return true;
- }
-
- ExpressionResult IExpressionFinder.FindExpression (object textEditorData, int offset)
- {
- int begin, typebegin;
- TextEditorData data = (TextEditorData)textEditorData;
- var word = GetWordAtOffset (data, offset, out begin);
- var type = GetWordAtOffset (data, begin, out typebegin);
-
-// Console.WriteLine ("Expression word: {0}", word);
-// Console.WriteLine ("Expression type: {0}", type);
-
- return new PythonExpressionResult (word, type);
- }
-
- ExpressionResult IExpressionFinder.FindFullExpression (object textEditorData, int offset)
- {
- throw new System.NotImplementedException();
- }
- #endregion
-
- string GetWordAtOffset (TextEditorData text, int offset, out int begin)
- {
- if (offset < 0 || offset >= text.Length)
- {
- begin = offset;
- return String.Empty;
- }
-
- StringBuilder sb = new StringBuilder ();
- int i = offset;
- char c;
-
- // Look forward for break char
- for (i = offset; i < text.Length; i++)
- {
- c = text.GetCharAt (i);
-
- if (Char.IsWhiteSpace (c))
- break;
-
- bool needsBreak = false;
-
- switch (c) {
- case '(':
- case ')':
- case '[':
- case ']':
- case '{':
- case '}':
- case ':':
- case ',':
- case '@':
- case '.':
- needsBreak = true;
- break;
- default:
- sb.Append (c);
- break;
- }
-
- if (Char.IsWhiteSpace (c) || needsBreak)
- break;
- }
-
- if (offset > 0)
- {
- // look backwards for break char
- for (i = offset - 1; i > 0; i--)
- {
- c = text.GetCharAt (i);
-
- if (Char.IsWhiteSpace (c))
- break;
-
- bool needsBreak = false;
-
- switch (c) {
- case '(':
- case ')':
- case '[':
- case ']':
- case '{':
- case '}':
- case ':':
- case ',':
- case '@':
- case '.':
- needsBreak = true;
- break;
- default:
- sb.Insert (0, c);
- break;
- }
-
- if (needsBreak)
- break;
- }
- }
-
- begin = i;
-
- return sb.ToString ();
- }
- }
-
- public class PythonExpressionResult: ExpressionResult
- {
- public string Word {
- get;
- set;
- }
-
- public string Type {
- get;
- set;
- }
-
- public PythonExpressionResult (string word, string type) : base (word)
- {
- Word = word;
- Type = type;
- }
- }
-}
diff --git a/extras/PyBinding/PyBinding/PyBinding.Parser/PythonParsedDocument.cs b/extras/PyBinding/PyBinding/PyBinding.Parser/PythonParsedDocument.cs
deleted file mode 100644
index 73d34e22f9..0000000000
--- a/extras/PyBinding/PyBinding/PyBinding.Parser/PythonParsedDocument.cs
+++ /dev/null
@@ -1,324 +0,0 @@
-// PythonParsedDocument.cs
-//
-// Copyright (c) 2008 Christian Hergert <chris@dronelabs.com>
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-using System;
-using System.Collections.Generic;
-using System.Diagnostics;
-using System.IO;
-using System.Text;
-using System.Xml;
-
-using MonoDevelop.Projects.Dom;
-using MonoDevelop.Projects.Dom.Parser;
-
-using PyBinding.Parser.Dom;
-
-namespace PyBinding.Parser
-{
- public class PythonParsedDocument : ParsedDocument
- {
- public PythonParsedDocument (string fileName) : base (fileName)
- {
- }
-
- public void Parse (XmlTextReader reader, string content)
- {
- var streamContent = new StringReader (content);
- ReadComments (content);
- ReadFromXml (reader, streamContent);
- }
-
- public void ReadComments (string content)
- {
- string[] parts = content.Split ('\n');
- int blockStart = -1;
- int offset = 0;
- StringBuilder text = new StringBuilder ();
-
- for (int i = 0; i < parts.Length; i++)
- {
- if (parts[i].Trim ().StartsWith ("#"))
- {
- text.AppendLine (parts[i]);
- if (blockStart < 0)
- {
- offset = parts[i].IndexOf ("#");
- blockStart = i + 1;
- }
- }
- else
- {
- if (blockStart >= 0)
- {
- Console.WriteLine ("Offset {0}", offset);
- var region = new DomRegion (blockStart + 1, 0, i, parts[i - 1].Length);
-
- Add (new Comment () {
- Region = region,
- Text = text.ToString (),
- OpenTag = "#",
- ClosingTag = String.Empty,
- CommentStartsLine = true,
- CommentType = i - 1 > blockStart ? CommentType.MultiLine : CommentType.SingleLine,
- });
-
- text = new StringBuilder ();
- blockStart = -1;
- offset = 0;
- }
- }
- }
- }
-
- /// <summary>
- /// This method will convert the xml output from the parsing
- /// python process and add it to the parsed document.
- /// </summary>
- /// <param name="xml">
- /// A <see cref="XmlTextReader"/>
- /// </param>
- public void ReadFromXml (XmlTextReader xml, StringReader content)
- {
- if (xml == null)
- throw new ArgumentNullException ("xml cannot be null");
-
- XmlDocument xmlDoc = new XmlDocument ();
- this.CompilationUnit = new PythonCompilationUnit (this.FileName);
-
- xmlDoc.Load (xml);
- XmlElement root = xmlDoc.DocumentElement;
-
- if (root.LocalName == "error") {
- Console.WriteLine ("found an error");
- }
- else if (root.LocalName == "module") {
- BuildFromXmlElement (root, content);
- }
- else {
- Console.WriteLine (root.LocalName);
- Debug.Assert (false, "Assert not reached");
- }
- }
-
- /// <summary>
- /// Walks the xml element tree to build a result. This expects
- /// rootElement to be a &lt;module /&gt; element.
- /// <param name="rootElement">
- /// A <see cref="XmlElement"/>
- /// </param>
- /// </summary>
- /// <param name="rootElement">
- /// A <see cref="XmlElement"/>
- /// </param>
- void BuildFromXmlElement (XmlElement rootElement, StringReader content)
- {
- Debug.Assert (rootElement.LocalName == "module");
-
- foreach (XmlElement child in rootElement) {
- switch (child.LocalName) {
- case "import":
- BuildImport (child);
- break;
- case "class":
- BuildClass (child, content);
- break;
- case "attribute":
- BuildAttribute (child);
- break;
- case "function":
- BuildFunction (child);
- break;
- default:
- Debug.Assert (false, "Assert not reached");
- break;
- }
- }
- }
-
- DomRegion GetDomRegion (XmlElement element)
- {
- int lineNumber = Int32.Parse (element.GetAttribute ("line"));
- int endLine = lineNumber;
- if (element.HasAttribute ("endline"))
- endLine = Int32.Parse (element.GetAttribute ("endline"));
- return new DomRegion (lineNumber + 1, endLine + 1);
- }
-
- DomLocation GetDomLocation (XmlElement element)
- {
- int lineNumber = Int32.Parse (element.GetAttribute ("line"));
- return new DomLocation (lineNumber + 1, 0);
- }
-
- void BuildImport (XmlElement element)
- {
- var compUnit = this.CompilationUnit as PythonCompilationUnit;
- Console.WriteLine ("Import({0})", element.GetAttribute ("name"));
-
- var region = GetDomRegion (element);
- var domUsing = new DomUsing (region, element.GetAttribute ("name"));
- compUnit.Add (domUsing);
- }
-
- void BuildAttribute (XmlElement element)
- {
- var compUnit = this.CompilationUnit as PythonCompilationUnit;
- Console.WriteLine ("Attribute({0})", element.GetAttribute ("name"));
-
- var location = GetDomLocation (element);
- var field = new DomField ();
- field.Location = location;
- field.Name = element.GetAttribute ("name");
-
- var mod = Modifiers.None;
- if (field.Name.StartsWith ("_"))
- mod |= Modifiers.Private;
- else
- mod |= Modifiers.Public;
- field.Modifiers = mod;
-
- compUnit.Add (field);
- }
-
- void BuildFunction (XmlElement element)
- {
- var compUnit = this.CompilationUnit as PythonCompilationUnit;
- Console.WriteLine ("Function({0})", element.GetAttribute ("name"));
-
- var name = element.GetAttribute ("name");
- var mod = Modifiers.None;
- if (name.StartsWith ("_"))
- mod |= Modifiers.Private;
- else
- mod |= Modifiers.Public;
-
- var start = GetDomLocation (element);
- var region = GetDomRegion (element);
- var func = new DomMethod (name, mod, MethodModifier.None,
- start, region);
-
- compUnit.Add (func);
- }
-
- void BuildClass (XmlElement element, StringReader content)
- {
- var compUnit = this.CompilationUnit as PythonCompilationUnit;
- Console.WriteLine ("Class({0})", element.GetAttribute ("name"));
-
- var name = element.GetAttribute ("name");
- var start = GetDomLocation (element);
- var region = GetDomRegion (element);
-
- var fullName = PythonHelper.ModuleFromFilename (FileName);
- var klass = new DomType (fullName) {
- Name = name,
- Location = start,
- BodyRegion = region,
- Modifiers = Modifiers.Public,
- CompilationUnit = compUnit
- };
-
- compUnit.Add (klass);
- }
-
- //
- // -----------------------------------------------------
- // Borrowed from ParsedDocument and overridden
- // -----------------------------------------------------
- //
-
- public override IEnumerable<FoldingRegion> GenerateFolds ()
- {
- foreach (FoldingRegion fold in AdditionalFolds)
- yield return fold;
-
- foreach (FoldingRegion fold in ConditionalRegions.ToFolds ())
- yield return fold;
-
- IEnumerable<FoldingRegion> commentFolds = Comments.ToPythonFolds ();
- if (CompilationUnit != null && CompilationUnit.Types != null && CompilationUnit.Types.Count > 0) {
- commentFolds = commentFolds.FlagIfInsideMembers (CompilationUnit.Types, delegate (FoldingRegion f) {
- f.Type = FoldType.CommentInsideMember;
- });
- }
- foreach (FoldingRegion fold in commentFolds)
- yield return fold;
-
- if (CompilationUnit == null)
- yield break;
-
- FoldingRegion usingFold = CompilationUnit.Usings.ToFold ();
- if (usingFold != null)
- yield return usingFold;
-
- foreach (FoldingRegion fold in CompilationUnit.Types.ToFolds ())
- yield return fold;
-
- PythonCompilationUnit pyUnit = CompilationUnit as PythonCompilationUnit;
- foreach (IMember m in pyUnit.Members)
- {
- var fold = new FoldingRegion (m.Name, m.BodyRegion, FoldType.Member);
- yield return fold;
- }
- }
- }
-
- public static class FoldingUtilities
- {
- public static IEnumerable<FoldingRegion> ToPythonFolds (this IList<Comment> comments)
- {
- for (int i = 0; i < comments.Count; i++) {
- Comment comment = comments[i];
-
- if (comment.CommentType == CommentType.MultiLine) {
- yield return new FoldingRegion ("...", comment.Region, FoldType.Comment);
- continue;
- }
-
- if (!comment.CommentStartsLine)
- continue;
- int j = i;
- int curLine = comment.Region.Start.Line - 1;
- DomLocation end = comment.Region.End;
-
- for (; j < comments.Count; j++) {
- Comment curComment = comments[j];
- if (curComment == null || !curComment.CommentStartsLine
- || curComment.CommentType != comment.CommentType
- || curLine + 1 != curComment.Region.Start.Line)
- break;
- end = curComment.Region.End;
- curLine = curComment.Region.Start.Line;
- }
-
- if (j - i > 1) {
- yield return new FoldingRegion (
- comment.IsDocumentation ? "/// " : "// " + comment.Text + "...",
- new DomRegion (comment.Region.Start.Line,
- comment.Region.Start.Column, end.Line, end.Column),
- FoldType.Comment);
- i = j - 1;
- }
- }
- }
- }
-} \ No newline at end of file
diff --git a/extras/PyBinding/PyBinding/PyBinding.Parser/PythonParser.cs b/extras/PyBinding/PyBinding/PyBinding.Parser/PythonParser.cs
deleted file mode 100644
index 2fe8f12c2c..0000000000
--- a/extras/PyBinding/PyBinding/PyBinding.Parser/PythonParser.cs
+++ /dev/null
@@ -1,73 +0,0 @@
-// PythonParser.cs
-//
-// Copyright (c) 2008 Christian Hergert <chris@dronelabs.com>
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-using System;
-using System.IO;
-
-using MonoDevelop.Projects.Dom;
-using MonoDevelop.Projects.Dom.Parser;
-
-using PyBinding.Runtime;
-
-namespace PyBinding.Parser
-{
- public class PythonParser : AbstractParser
- {
- IPythonRuntime m_defaultRuntime;
-
- public PythonParser ()
- {
- m_defaultRuntime = PythonHelper.FindPreferedRuntime ();
- }
-
- public override ParsedDocument Parse (ProjectDom dom, string fileName, string content)
- {
- IPythonRuntime runtime;
-
- if (dom != null && dom.Project != null && dom.Project.DefaultConfiguration is PythonConfiguration)
- runtime = (dom.Project.DefaultConfiguration as PythonConfiguration).Runtime;
- else
- runtime = m_defaultRuntime;
-
- var parser = ParserManager.GetParser (runtime);
-
- try {
- return parser.Parse (fileName, content);
- }
- catch (Exception ex) {
- Console.WriteLine ("Python parser exception:");
- Console.WriteLine (ex.ToString ());
- throw;
- }
- }
-
- public override IResolver CreateResolver (ProjectDom dom, object editor, string fileName)
- {
- return new PythonResolver (dom, fileName);
- }
-
- public override IExpressionFinder CreateExpressionFinder (ProjectDom dom)
- {
- return new PythonExpressionFinder (dom);
- }
- }
-} \ No newline at end of file
diff --git a/extras/PyBinding/PyBinding/PyBinding.Parser/PythonParserInternal.cs b/extras/PyBinding/PyBinding/PyBinding.Parser/PythonParserInternal.cs
deleted file mode 100644
index 405059df65..0000000000
--- a/extras/PyBinding/PyBinding/PyBinding.Parser/PythonParserInternal.cs
+++ /dev/null
@@ -1,210 +0,0 @@
-// PythonParserInternal.cs
-//
-// Copyright (c) 2008 Christian Hergert <chris@dronelabs.com>
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-using System;
-using System.Collections.Generic;
-using System.Diagnostics;
-using System.IO;
-using System.Net;
-using System.Reflection;
-using System.Text;
-using System.Threading;
-using System.Xml;
-
-using MonoDevelop.Core;
-using MonoDevelop.Projects.Dom;
-using MonoDevelop.Projects.Dom.Parser;
-
-using PyBinding.Parser.Dom;
-using PyBinding.Runtime;
-
-namespace PyBinding.Parser
-{
- internal class PythonParserInternal: IDisposable
- {
- bool m_Initialized = false;
- int m_Port = 0;
- bool m_ProcessSuccess = false;
- Process m_Process = null;
- IPythonRuntime m_Runtime = null;
- object m_syncRoot = new object ();
- int m_sinceCycle = 0;
-
- public PythonParserInternal (IPythonRuntime runtime)
- {
- if (runtime == null)
- throw new ArgumentNullException ("runtime");
- m_Runtime = runtime;
- }
-
- ~PythonParserInternal ()
- {
- Dispose ();
- }
-
- public IPythonRuntime Runtime {
- get { return m_Runtime; }
- }
-
- public void Dispose ()
- {
- if (m_Process != null && !m_Process.HasExited)
- m_Process.Kill ();
- m_Process = null;
- }
-
- public PythonParsedDocument Parse (string fileName, string content)
- {
- if (!m_Initialized)
- Initialize ();
-
- PythonParsedDocument doc = new PythonParsedDocument (fileName);
-
- if (m_ProcessSuccess)
- doc.Parse (GetXml (content), content);
-
- return doc;
- }
-
- XmlTextReader GetXml (string content)
- {
- if (Interlocked.Increment (ref m_sinceCycle) == 100)
- CycleProcess ();
-
- var uri = String.Format ("http://127.0.0.1:{0}/", m_Port);
- var r = WebRequest.Create (uri);
- r.Method = "POST";
- r.ContentLength = content.Length;
- r.ContentType = "text/plain";
-
- using (var s = r.GetRequestStream ()) {
- var b = Encoding.ASCII.GetBytes (content);
- s.Write (b, 0, b.Length);
- }
-
- var ms = new MemoryStream ();
-
- using (var rs = r.GetResponse ()) {
- Stream rss = rs.GetResponseStream ();
- int read = 0;
- byte[] buffer = new byte[1024];
- while (0 < (read = rss.Read (buffer, 0, buffer.Length)))
- ms.Write (buffer, 0, read);
- }
-
- ms.Seek (0, SeekOrigin.Begin);
-
- return new XmlTextReader (ms);
- }
-
- Process BuildProcess ()
- {
- string pypath;
-
- try {
- pypath = PythonHelper.FindPreferredPython ();
- }
- catch {
- LoggingService.LogError ("Cannot locate python executable. Disabling python parsing.");
- return null;
- }
-
- var process = new Process ();
- process.StartInfo.FileName = pypath;
- process.StartInfo.EnvironmentVariables ["WATCH_PID"] = Process.GetCurrentProcess ().Id.ToString ();
- process.StartInfo.Arguments = "-u -";
- process.StartInfo.UseShellExecute = false;
- process.StartInfo.RedirectStandardError = true;
- process.StartInfo.RedirectStandardInput = true;
- process.StartInfo.RedirectStandardOutput = true;
- var started = false;
- process.OutputDataReceived += delegate (object o, DataReceivedEventArgs e) {
- if (!started) {
- if (e.Data.Trim ().StartsWith ("Listening on port ")) {
- Monitor.Enter (m_syncRoot);
- m_Port = Int32.Parse (e.Data.Substring (18).Trim ());
- started = true;
- m_ProcessSuccess = true;
- Monitor.Pulse (m_syncRoot);
- Monitor.Exit (m_syncRoot);
-
- Process oldProcess = null;
-
- // Cycle to the new process
- do {
- oldProcess = m_Process;
- } while (Interlocked.CompareExchange<Process> (ref m_Process, process, oldProcess) != oldProcess);
-
- Interlocked.Exchange (ref m_sinceCycle, 0);
-
- // kill old process after 5 seconds
- if (oldProcess != null) {
- GLib.Timeout.Add (5000, delegate {
- oldProcess.Kill ();
- return false;
- });
- }
- }
- }
- };
-
- return process;
- }
-
- void CycleProcess ()
- {
- Assembly asm = Assembly.GetExecutingAssembly ();
- Stream src = asm.GetManifestResourceStream ("completion.py");
-
- if (src == null)
- throw new InvalidOperationException ("Missing completion.py");
-
- Console.WriteLine ("Cycling Python Completion Process");
-
- var process = BuildProcess ();
- process.Start ();
-
- // write completion.py to stdin
- using (TextReader reader = new StreamReader (src))
- {
- string line = String.Empty;
- while (null != (line = reader.ReadLine ()))
- process.StandardInput.WriteLine (line);
- process.StandardInput.Flush ();
- process.StandardInput.Close ();
- }
-
- // start async read of stdout
- process.BeginOutputReadLine ();
- }
-
- void Initialize ()
- {
- m_Initialized = true;
- CycleProcess ();
- Monitor.Enter (m_syncRoot);
- if (m_Port == 0)
- Monitor.Wait (m_syncRoot);
- Monitor.Exit (m_syncRoot);
- }
- }
-}
diff --git a/extras/PyBinding/PyBinding/PyBinding.Parser/PythonResolver.cs b/extras/PyBinding/PyBinding/PyBinding.Parser/PythonResolver.cs
deleted file mode 100644
index 79d178c4dc..0000000000
--- a/extras/PyBinding/PyBinding/PyBinding.Parser/PythonResolver.cs
+++ /dev/null
@@ -1,160 +0,0 @@
-// PythonResolver.cs
-//
-// Copyright (c) 2009 Christian Hergert <chris@dronelabs.com>
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-using System;
-using System.Collections.Generic;
-
-using MonoDevelop.Projects.Dom;
-using MonoDevelop.Projects.Dom.Parser;
-
-using PyBinding;
-using PyBinding.Parser.Dom;
-
-namespace PyBinding.Parser
-{
- public class PythonResolver: IResolver
- {
- ProjectDom m_dom;
- string m_filename;
-
- public PythonResolver (ProjectDom dom, string filename)
- {
- m_filename = filename;
- m_dom = dom;
- }
-
- ResolveResult IResolver.Resolve (ExpressionResult expressionResult, DomLocation resolvePosition)
- {
- var expr = expressionResult as PythonExpressionResult;
- if (expr == null)
- return null;
-
- var doc = ProjectDomService.GetParsedDocument (m_dom, m_filename) as PythonParsedDocument;
- if (doc == null)
- return null;
-
- var unit = doc.CompilationUnit as PythonCompilationUnit;
- if (unit == null)
- return null;
-
- if (expr.Type == "def")
- {
- var type = unit.GetTypeAt (resolvePosition);
- if (type != null)
- {
- // resolving a method
- foreach (var func in type.Methods)
- {
- if (func.Name == expr.Word)
- {
- var l = new List<IMember> ();
- l.Add (func);
- return new MethodResolveResult (l);
- }
- }
- }
- }
-
- else if (expr.Type == "class")
- {
- var type = unit.GetTypeAt (resolvePosition);
- if (type != null && type.Name == expr.Word)
- return new MemberResolveResult (type);
- }
-
- else if (expr.Word == "self")
- {
- var type = unit.GetTypeAt (resolvePosition);
- if (type != null)
- return new MemberResolveResult (type);
- }
-
- else if (expr.Type == "self")
- {
- // looking for a member of self
- var type = unit.GetTypeAt (resolvePosition);
- if (type != null)
- {
- foreach (var attr in type.Fields)
- {
- if (attr.Name == expr.Word)
- return new MemberResolveResult (attr);
- }
-
- foreach (var method in type.Methods)
- {
- if (method.Name == expr.Word)
- return CreateMethodResult (method);
- }
- }
- }
-
- return null;
- }
-
- MethodResolveResult CreateMethodResult (IMethod method)
- {
- var l = new List<IMember> ();
- l.Add (method);
- return new MethodResolveResult (l);
- }
-
-// IBaseMember NearestTo (IEnumerable<IBaseMember> items, DomLocation location)
-// {
-// int lineOffset = -1, columnOffset = -1;
-// IBaseMember nearest = null;
-//
-// foreach (var member in items)
-// {
-// if (location < member.Location)
-// continue;
-//
-// DomRegion region = DomRegion.Empty;
-//
-// if (member is DomType)
-// region = (member as DomType).BodyRegion;
-// else if (member is DomMethod)
-// region = (member as DomMethod).BodyRegion;
-//
-// if (!region.IsEmpty && region.End < location)
-// continue;
-//
-// int curLineOffset = Math.Abs (member.Location.Line - location.Line);
-// int curColumnOffset = Math.Abs (member.Location.Column - location.Column);
-//
-// if (lineOffset == -1 || curLineOffset < lineOffset)
-// {
-// lineOffset = curLineOffset;
-// columnOffset = curColumnOffset;
-// nearest = member;
-// }
-// else if (columnOffset == -1 || (lineOffset == curLineOffset && curColumnOffset < columnOffset))
-// {
-// columnOffset = curColumnOffset;
-// nearest = member;
-// }
-// }
-//
-// return nearest;
-// }
- }
-}
diff --git a/extras/PyBinding/PyBinding/PyBinding.Runtime/AbstractPythonRuntime.cs b/extras/PyBinding/PyBinding/PyBinding.Runtime/AbstractPythonRuntime.cs
deleted file mode 100644
index 417748f03c..0000000000
--- a/extras/PyBinding/PyBinding/PyBinding.Runtime/AbstractPythonRuntime.cs
+++ /dev/null
@@ -1,92 +0,0 @@
-// AbstractPythonRuntime.cs
-//
-// Copyright (c) 2008 Christian Hergert <chris@dronelabs.com>
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-using System;
-using System.Collections.Generic;
-using System.Diagnostics;
-using System.IO;
-using System.Text;
-
-using MonoDevelop.Core;
-using MonoDevelop.Core.Serialization;
-using MonoDevelop.Core.Execution;
-using MonoDevelop.Projects;
-
-using PyBinding;
-using PyBinding.Compiler;
-
-namespace PyBinding.Runtime
-{
- public abstract class AbstractPythonRuntime : IPythonRuntime
- {
- // XXX: This pretty much ignores the fact that volume separators on
- // windows are also :. Someone should fix this at some point.
- static readonly char[] m_PathSeparators = new char[] {';', ':'};
-
- PythonSite m_Site;
-
- public abstract string Name {
- get;
- }
-
- public abstract string Path {
- get;
- set;
- }
-
- public PythonSite Site {
- get {
- if (m_Site == null)
- m_Site = new PythonSite (this);
- return m_Site;
- }
- }
-
- public abstract IPythonCompiler Compiler {
- get;
- }
-
- public abstract object Clone ();
- public abstract string[] GetArguments (PythonConfiguration config);
- public abstract IExecutionHandler GetExecutionHandler ();
-
- protected virtual string Resolve (string commandName)
- {
- List<string> paths;
-
- paths = new List<string> ();
- paths.Add (".");
-
- paths.AddRange (Environment.GetEnvironmentVariable ("PATH").Split (m_PathSeparators));
-
- foreach (string dirName in paths) {
- string absPath = System.IO.Path.Combine (dirName, commandName);
-
- if (System.IO.File.Exists (absPath)) {
- return absPath;
- }
- }
-
- throw new FileNotFoundException ("Could not locate executable");
- }
- }
-}
diff --git a/extras/PyBinding/PyBinding/PyBinding.Runtime/IPythonRuntime.cs b/extras/PyBinding/PyBinding/PyBinding.Runtime/IPythonRuntime.cs
deleted file mode 100644
index 7a93c7b31b..0000000000
--- a/extras/PyBinding/PyBinding/PyBinding.Runtime/IPythonRuntime.cs
+++ /dev/null
@@ -1,79 +0,0 @@
-// IPythonRuntime.cs
-//
-// Copyright (c) 2008 Christian Hergert <chris@dronelabs.com>
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-using System;
-using MonoDevelop.Core.Execution;
-
-using PyBinding.Compiler;
-
-namespace PyBinding.Runtime
-{
- public interface IPythonRuntime : ICloneable
- {
- /// <value>
- /// The unique name of the python runtime (ex: Python25)
- /// </value>
- string Name {
- get;
- }
-
- /// <value>
- /// The path to the python runtime (ex: /usr/bin/python)
- /// </value>
- string Path {
- get;
- set;
- }
-
- /// <value>
- /// The compiler (if available) for the python runtime. This can
- /// be used to pre-compile all the source before runtime.
- /// </value>
- IPythonCompiler Compiler {
- get;
- }
-
- /// <summary>
- /// The PythonSite containing information on the host.
- /// </summary>
- PythonSite Site {
- get;
- }
-
- /// <summary>
- /// Gets the associated execution handler for this specific runtime.
- /// </summary>
- IExecutionHandler GetExecutionHandler ();
-
- /// <summary>
- /// Builds a list of arguments to pass to the runtime for running
- /// a project with the passed configuration.
- /// </summary>
- /// <param name="configuration">
- /// A <see cref="PythonConfiguration"/>
- /// </param>
- /// <returns>
- /// A <see cref="System.String"/>
- /// </returns>
- string[] GetArguments (PythonConfiguration configuration);
- }
-}
diff --git a/extras/PyBinding/PyBinding/PyBinding.Runtime/IronPythonRuntime.cs b/extras/PyBinding/PyBinding/PyBinding.Runtime/IronPythonRuntime.cs
deleted file mode 100644
index cc937b1928..0000000000
--- a/extras/PyBinding/PyBinding/PyBinding.Runtime/IronPythonRuntime.cs
+++ /dev/null
@@ -1,96 +0,0 @@
-// IronPythonRuntime.cs
-//
-// Copyright (c) 2011 Carlos Alberto Cortez <calberto.cortez@gmail.com>
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-using System;
-using System.Collections.Generic;
-using MonoDevelop.Core;
-using MonoDevelop.Core.Execution;
-using MonoDevelop.Core.Serialization;
-using MonoDevelop.Projects;
-
-using PyBinding.Compiler;
-
-namespace PyBinding.Runtime
-{
- public class IronPythonRuntime : AbstractPythonRuntime
- {
- static readonly string RuntimeName = "IronPython";
-
- [ItemProperty ("path")]
- string path = String.Empty;
-
- public override IPythonCompiler Compiler {
- get {
- return null;
- }
- }
-
- public override string Name {
- get {
- return RuntimeName;
- }
- }
-
- public override string Path {
- get {
- if (String.IsNullOrEmpty (path))
- path = Resolve ("ipy.exe");
-
- return path;
- }
- set {
- path = value;
- }
- }
-
- public override object Clone ()
- {
- return new IronPythonRuntime () {
- Path = path
- };
- }
-
- IExecutionHandler handler;
-
- public override IExecutionHandler GetExecutionHandler ()
- {
- if (handler == null)
- handler = new IronPythonExecutionHandler ();
-
- return handler;
- }
-
-
- public override string[] GetArguments (PythonConfiguration config)
- {
- var args = new List<string> ();
-
- if (!String.IsNullOrEmpty (config.Module))
- args.Add (System.IO.Path.ChangeExtension (config.Module, "py"));
-
- if (!String.IsNullOrEmpty (config.CommandLineParameters))
- args.Add (config.CommandLineParameters);
-
- return args.ToArray ();
- }
- }
-}
-
diff --git a/extras/PyBinding/PyBinding/PyBinding.Runtime/Python25Runtime.cs b/extras/PyBinding/PyBinding/PyBinding.Runtime/Python25Runtime.cs
deleted file mode 100644
index 0813ef9722..0000000000
--- a/extras/PyBinding/PyBinding/PyBinding.Runtime/Python25Runtime.cs
+++ /dev/null
@@ -1,127 +0,0 @@
-// Python25Runtime.cs
-//
-// Copyright (c) 2008 Christian Hergert <chris@dronelabs.com>
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-using System;
-using System.Collections.Generic;
-using System.IO;
-
-using MonoDevelop.Core;
-using MonoDevelop.Core.Execution;
-using MonoDevelop.Projects;
-using MonoDevelop.Core.Serialization;
-using MonoDevelop.Projects.CodeGeneration;
-
-using PyBinding.Compiler;
-
-namespace PyBinding.Runtime
-{
- public class Python25Runtime : AbstractPythonRuntime
- {
- static readonly string m_Name = "Python25";
- static readonly string m_DefaultPath = "python2.5";
-
- [ItemProperty("path")]
- string m_Path = String.Empty;
-
- [ItemProperty("compiler", ValueType = typeof (IPythonCompiler))]
- IPythonCompiler m_Compiler = null;
-
- public override IPythonCompiler Compiler {
- get {
- if (this.m_Compiler == null)
- this.m_Compiler = new Python25Compiler ();
-
- // Give compiler a reference to this instance
- (this.m_Compiler as Python25Compiler).Runtime = this;
-
- return this.m_Compiler;
- }
- }
-
- public override string Name {
- get {
- return m_Name;
- }
- }
-
- public override string Path {
- get {
- if (String.IsNullOrEmpty (this.m_Path))
- this.m_Path = this.Resolve (m_DefaultPath);
-
- return this.m_Path;
- }
- set {
- this.m_Path = value;
- }
- }
-
- public override object Clone ()
- {
- return new Python25Runtime () {
- Path = this.Path
- };
- }
-
- IExecutionHandler handler;
-
- public override IExecutionHandler GetExecutionHandler ()
- {
- if (handler == null)
- handler = new CPythonExecutionHandler ();
-
- return handler;
- }
-
- public override string[] GetArguments (PythonConfiguration config)
- {
- List<string> args = new List<string> ();
-
- if (config.Optimize)
- args.Add ("-O");
-
- if (config.DebugMode)
- args.Add ("-d");
-
- // Make sure python uses unbuffered files for stdin and stdout
- // so that we can get updates to the console immediately.
- args.Add ("-u");
-
- // Add custom configuration arguments
- if (!String.IsNullOrEmpty (config.PythonOptions))
- args.Add (config.PythonOptions);
-
- // The -m argument prevents any more argument passing to
- // python. Therefore, it must be at the end of the list.
- if (!String.IsNullOrEmpty (config.Module)) {
- args.Add ("-m");
- args.Add (config.Module);
- }
-
- // Append the user runtime options
- if (!String.IsNullOrEmpty (config.CommandLineParameters))
- args.Add (config.CommandLineParameters);
-
- return args.ToArray ();
- }
- }
-}
diff --git a/extras/PyBinding/PyBinding/PyBinding.Runtime/Python26Runtime.cs b/extras/PyBinding/PyBinding/PyBinding.Runtime/Python26Runtime.cs
deleted file mode 100644
index f044fb4fa5..0000000000
--- a/extras/PyBinding/PyBinding/PyBinding.Runtime/Python26Runtime.cs
+++ /dev/null
@@ -1,128 +0,0 @@
-// Python26Runtime.cs
-//
-// Copyright (c) 2009 Christian Hergert <chris@dronelabs.com>
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-using System;
-using System.Collections.Generic;
-using System.IO;
-
-using MonoDevelop.Core;
-using MonoDevelop.Core.Execution;
-using MonoDevelop.Projects;
-using MonoDevelop.Core.Serialization;
-using MonoDevelop.Projects.CodeGeneration;
-
-using PyBinding.Compiler;
-
-namespace PyBinding.Runtime
-{
- public class Python26Runtime : AbstractPythonRuntime
- {
- static readonly string m_Name = "Python26";
- static readonly string m_DefaultPath = "python2.6";
-
- [ItemProperty("path")]
- string m_Path = String.Empty;
-
- [ItemProperty("compiler", ValueType = typeof (IPythonCompiler))]
- IPythonCompiler m_Compiler = null;
-
- public override IPythonCompiler Compiler {
- get {
- if (this.m_Compiler == null)
- this.m_Compiler = new Python25Compiler ();
-
- // Give compiler a reference to this instance
- // Reusing 2.5 compiler for now
- (this.m_Compiler as Python25Compiler).Runtime = this;
-
- return this.m_Compiler;
- }
- }
-
- public override string Name {
- get {
- return m_Name;
- }
- }
-
- public override string Path {
- get {
- if (String.IsNullOrEmpty (this.m_Path))
- this.m_Path = this.Resolve (m_DefaultPath);
-
- return this.m_Path;
- }
- set {
- this.m_Path = value;
- }
- }
-
- public override object Clone ()
- {
- return new Python26Runtime () {
- Path = this.Path
- };
- }
-
- IExecutionHandler handler;
-
- public override IExecutionHandler GetExecutionHandler ()
- {
- if (handler == null)
- handler = new CPythonExecutionHandler ();
-
- return handler;
- }
-
- public override string[] GetArguments (PythonConfiguration config)
- {
- List<string> args = new List<string> ();
-
- if (config.Optimize)
- args.Add ("-O");
-
- if (config.DebugMode)
- args.Add ("-d");
-
- // Make sure python uses unbuffered files for stdin and stdout
- // so that we can get updates to the console immediately.
- args.Add ("-u");
-
- // Add custom configuration arguments
- if (!String.IsNullOrEmpty (config.PythonOptions))
- args.Add (config.PythonOptions);
-
- // The -m argument prevents any more argument passing to
- // python. Therefore, it must be at the end of the list.
- if (!String.IsNullOrEmpty (config.Module)) {
- args.Add ("-m");
- args.Add (config.Module);
- }
-
- // Append the user runtime options
- if (!String.IsNullOrEmpty (config.CommandLineParameters))
- args.Add (config.CommandLineParameters);
-
- return args.ToArray ();
- }
- }
-}
diff --git a/extras/PyBinding/PyBinding/PyBinding.Runtime/Python27Runtime.cs b/extras/PyBinding/PyBinding/PyBinding.Runtime/Python27Runtime.cs
deleted file mode 100644
index 860aed7120..0000000000
--- a/extras/PyBinding/PyBinding/PyBinding.Runtime/Python27Runtime.cs
+++ /dev/null
@@ -1,129 +0,0 @@
-// Python27Runtime.cs
-//
-// Copyright (c) 2009 Christian Hergert <chris@dronelabs.com>
-// Python 2.7 Runtime Support by Jose.Torres <Jose@RampageRobotics.com>
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-using System;
-using System.Collections.Generic;
-using System.IO;
-
-using MonoDevelop.Core;
-using MonoDevelop.Core.Execution;
-using MonoDevelop.Projects;
-using MonoDevelop.Core.Serialization;
-using MonoDevelop.Projects.CodeGeneration;
-
-using PyBinding.Compiler;
-
-namespace PyBinding.Runtime
-{
- public class Python27Runtime : AbstractPythonRuntime
- {
- static readonly string m_Name = "Python27";
- static readonly string m_DefaultPath = "python2.7";
-
- [ItemProperty("path")]
- string m_Path = String.Empty;
-
- [ItemProperty("compiler", ValueType = typeof (IPythonCompiler))]
- IPythonCompiler m_Compiler = null;
-
- public override IPythonCompiler Compiler {
- get {
- if (this.m_Compiler == null)
- this.m_Compiler = new Python25Compiler ();
-
- // Give compiler a reference to this instance
- // Reusing 2.5 compiler for now
- (this.m_Compiler as Python25Compiler).Runtime = this;
-
- return this.m_Compiler;
- }
- }
-
- public override string Name {
- get {
- return m_Name;
- }
- }
-
- public override string Path {
- get {
- if (String.IsNullOrEmpty (this.m_Path))
- this.m_Path = this.Resolve (m_DefaultPath);
-
- return this.m_Path;
- }
- set {
- this.m_Path = value;
- }
- }
-
- public override object Clone ()
- {
- return new Python27Runtime () {
- Path = this.Path
- };
- }
-
- IExecutionHandler handler;
-
- public override IExecutionHandler GetExecutionHandler ()
- {
- if (handler == null)
- handler = new CPythonExecutionHandler ();
-
- return handler;
- }
-
- public override string[] GetArguments (PythonConfiguration config)
- {
- List<string> args = new List<string> ();
-
- if (config.Optimize)
- args.Add ("-O");
-
- if (config.DebugMode)
- args.Add ("-d");
-
- // Make sure python uses unbuffered files for stdin and stdout
- // so that we can get updates to the console immediately.
- args.Add ("-u");
-
- // Add custom configuration arguments
- if (!String.IsNullOrEmpty (config.PythonOptions))
- args.Add (config.PythonOptions);
-
- // The -m argument prevents any more argument passing to
- // python. Therefore, it must be at the end of the list.
- if (!String.IsNullOrEmpty (config.Module)) {
- args.Add ("-m");
- args.Add (config.Module);
- }
-
- // Append the user runtime options
- if (!String.IsNullOrEmpty (config.CommandLineParameters))
- args.Add (config.CommandLineParameters);
-
- return args.ToArray ();
- }
- }
-}
diff --git a/extras/PyBinding/PyBinding/PyBinding.addin.xml b/extras/PyBinding/PyBinding/PyBinding.addin.xml
deleted file mode 100644
index 6705e88ecb..0000000000
--- a/extras/PyBinding/PyBinding/PyBinding.addin.xml
+++ /dev/null
@@ -1,123 +0,0 @@
-<Addin id = "PyBinding"
- name = "Python Language Binding"
- namespace = "MonoDevelop"
- author = "Christian Hergert"
- copyright = "MIT X11"
- url = "http://www.monodevelop.com"
- description = "Python Language binding"
- category = "Language bindings"
- version = "4.2.3">
-
- <Runtime>
- <Import assembly = "PyBinding.dll"/>
- </Runtime>
-
- <Dependencies>
- <Addin id = "Core" version = "4.2.3"/>
- <Addin id = "Ide" version = "4.2.3"/>
- <Addin id = "SourceEditor2" version = "4.2.3"/>
- </Dependencies>
-
- <Extension path = "/MonoDevelop/Core/StockIcons">
- <StockIcon stockid = "md-py-file" resource = "py-icon-32.png"/>
- </Extension>
-
- <Extension path = "/MonoDevelop/Ide/FileFilters">
- <FileFilter
- id = "Python"
- insertbefore = "AllFiles"
- _label = "Python Files"
- extensions = "*.py"/>
- </Extension>
-
- <Extension path = "/MonoDevelop/Ide/FileTemplates">
- <FileTemplate
- id = "EmptyPySourceFile"
- resource = "EmptyPySourceFile.xft.xml"/>
- <FileTemplate
- id = "BasicScriptPySourceFile"
- resource = "BasicScriptPySourceFile.xft.xml"/>
- </Extension>
-
- <Extension path = "/MonoDevelop/Ide/ProjectTemplates">
- <ProjectTemplate
- id = "EmptyPyProject"
- resource = "EmptyPyProject.xpt.xml"/>
- <ProjectTemplate
- id = "EmptyDjangoPyProject"
- resource = "EmptyDjangoProject.xpt.xml"/>
- <ProjectTemplate
- id = "PyGtkProject"
- resource = "PyGtkProject.xpt.xml"/>
- <ProjectTemplate
- id = "PyClutterProject"
- resource = "PyClutterProject.xpt.xml"/>
- </Extension>
-
- <Extension path = "/MonoDevelop/Core/MimeTypes">
- <MimeType id="text/x-python" _description="Python source code" icon="md-py-file" isText="true">
- <File pattern="*.py" />
- </MimeType>
- </Extension>
-
- <Extension path = "/MonoDevelop/ProjectModel/ProjectBindings">
- <ProjectBinding
- id = "PyProject"
- class = "PyBinding.PythonProjectBinding"/>
- </Extension>
-
- <Extension path = "/MonoDevelop/ProjectModel/LanguageBindings">
- <LanguageBinding
- id = "Python"
- supportedextensions = ".py"
- class = "PyBinding.PythonLanguageBinding"/>
- </Extension>
-
- <Extension path = "/MonoDevelop/ProjectModel/Gui/ItemOptionPanels/Run">
- <Condition id="ItemType" value="PyBinding.PythonProject">
- <Section
- id = "PythonOptionsPanel"
- _label = "Python"
- insertafter = "General"
- class = "PyBinding.Gui.OutputOptionsPanel"/>
- </Condition>
- </Extension>
-
- <Extension path = "/MonoDevelop/Ide/TextEditorExtensions">
- <Class fileExtensions = ".py" id = "PyBinding.Gui.PythonEditorCompletion" class = "PyBinding.Gui.PythonEditorCompletion" />
- <Class fileExtensions = ".py" id = "PyBinding.Gui.PythonEditorIndentation" class = "PyBinding.Gui.PythonEditorIndentation" />
- <Class fileExtensions = ".py" id = "PyBinding.Gui.PythonEditorOutline" class = "PyBinding.Gui.PythonEditorOutline" />
- </Extension>
-
- <Extension path = "/MonoDevelop/ProjectModel/DomParser">
- <Parser class = "PyBinding.Parser.PythonParser" fileExtensions=".py" />
- </Extension>
-
- <Extension path = "/MonoDevelop/ProjectModel/SerializableClasses">
- <DataType class = "PyBinding.PythonProject"/>
- <DataType class = "PyBinding.PythonConfiguration"/>
- <DataType class = "PyBinding.Runtime.Python25Runtime"/>
- <DataType class = "PyBinding.Runtime.Python26Runtime"/>
- <DataType class = "PyBinding.Runtime.Python27Runtime"/>
- <DataType class = "PyBinding.Runtime.IronPythonRuntime"/>
- <DataType class = "PyBinding.Compiler.Python25Compiler"/>
- </Extension>
-
- <Extension path = "/MonoDevelop/Ide/Pads/ClassPad">
- <NodeBuilder id = "PyBinding.Gui.Navigation.ProjectNodeBuilderExtension" class = "PyBinding.Gui.Navigation.ProjectNodeBuilderExtension" />
- <NodeBuilder id = "PyBinding.Gui.Navigation.PackagesNodeBuilder" class = "PyBinding.Gui.Navigation.PackagesNodeBuilder" />
- <NodeBuilder id = "PyBinding.Gui.Navigation.PackageNodeBuilder" class = "PyBinding.Gui.Navigation.PackageNodeBuilder" />
- <NodeBuilder id = "PyBinding.Gui.Navigation.ClassNodeBuilder" class = "PyBinding.Gui.Navigation.ClassNodeBuilder" />
- <NodeBuilder id = "PyBinding.Gui.Navigation.AttributeNodeBuilder" class = "PyBinding.Gui.Navigation.AttributeNodeBuilder" />
- <NodeBuilder id = "PyBinding.Gui.Navigation.FunctionNodeBuilder" class = "PyBinding.Gui.Navigation.FunctionNodeBuilder" />
- </Extension>
-
- <Extension path = "/MonoDevelop/Core/ExecutionHandlers">
- <ExecutionHandler id="Python" class = "PyBinding.PythonExecutionHandler"/>
- </Extension>
-
- <Extension path = "/MonoDevelop/ProjectModel/PolicySets/Mono">
- <Policies resource="PythonStylePolicy.xml" />
- </Extension>
-
-</Addin>
diff --git a/extras/PyBinding/PyBinding/PyBinding.csproj b/extras/PyBinding/PyBinding/PyBinding.csproj
deleted file mode 100644
index d285c9f8ea..0000000000
--- a/extras/PyBinding/PyBinding/PyBinding.csproj
+++ /dev/null
@@ -1,240 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <ProductVersion>9.0.21022</ProductVersion>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{EE5BA96B-4FA5-41ED-88BC-E8FD07EB62FE}</ProjectGuid>
- <OutputType>Library</OutputType>
- <AssemblyName>PyBinding</AssemblyName>
- <RootNamespace>PyBinding</RootNamespace>
- <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- <DebugSymbols>true</DebugSymbols>
- <DebugType>full</DebugType>
- <Optimize>true</Optimize>
- <OutputPath>..\build</OutputPath>
- <DefineConstants>DEBUG</DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- <CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
- <ConsolePause>false</ConsolePause>
- <Execution>
- <Execution clr-version="Net_2_0" />
- </Execution>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- <DebugType>none</DebugType>
- <Optimize>true</Optimize>
- <OutputPath>..\build</OutputPath>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- <ConsolePause>false</ConsolePause>
- <CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
- <Execution>
- <Execution clr-version="Net_2_0" />
- </Execution>
- </PropertyGroup>
- <ItemGroup>
- <Reference Include="System" />
- <Reference Include="System.Xml" />
- <Reference Include="Mono.Addins, Version=0.4.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756">
- <SpecificVersion>False</SpecificVersion>
- </Reference>
- <Reference Include="Mono.Posix" />
- <Reference Include="Mono.Cecil, Version=0.6.8.8607, Culture=neutral">
- <Package>monodevelop</Package>
- </Reference>
- <Reference Include="Mono.TextEditor, Version=1.0.0.0, Culture=neutral">
- <Package>monodevelop</Package>
- </Reference>
- <Reference Include="MonoDevelop.Core, Version=1.9.2.0, Culture=neutral">
- <Package>monodevelop</Package>
- </Reference>
- <Reference Include="MonoDevelop.Gettext, Version=1.9.2.0, Culture=neutral">
- <Package>monodevelop-core-addins</Package>
- </Reference>
- <Reference Include="MonoDevelop.Ide, Version=1.9.2.0, Culture=neutral">
- <Package>monodevelop</Package>
- </Reference>
- <Reference Include="MonoDevelop.GtkCore, Version=1.9.2.0, Culture=neutral">
- <Package>monodevelop-core-addins</Package>
- </Reference>
- <Reference Include="MonoDevelop.Autotools, Version=1.9.2.0, Culture=neutral">
- <Package>monodevelop-core-addins</Package>
- </Reference>
- <Reference Include="gtk-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f">
- </Reference>
- <Reference Include="System.Core">
- </Reference>
- <Reference Include="MonoDevelop.SourceEditor2, Version=2.1.0.0, Culture=neutral">
- <Package>monodevelop-core-addins</Package>
- </Reference>
- <Reference Include="MonoDevelop.Debugger, Version=2.1.0.0, Culture=neutral">
- <Package>monodevelop-core-addins</Package>
- </Reference>
- <Reference Include="MonoDevelop.Refactoring, Version=2.1.0.0, Culture=neutral">
- <Package>monodevelop-core-addins</Package>
- </Reference>
- <Reference Include="Mono.Data.Sqlite" />
- <Reference Include="NRefactory, Version=2.1.0.0, Culture=neutral">
- <Package>monodevelop</Package>
- </Reference>
- <Reference Include="MonoDevelop.VersionControl, Version=2.1.0.0, Culture=neutral">
- <Package>monodevelop-core-addins</Package>
- </Reference>
- <Reference Include="MonoDevelop.NUnit, Version=2.1.0.0, Culture=neutral">
- <Package>monodevelop-core-addins</Package>
- </Reference>
- <Reference Include="MonoDevelop.XmlEditor, Version=2.1.0.0, Culture=neutral">
- <Package>monodevelop-core-addins</Package>
- </Reference>
- <Reference Include="MonoDevelop.AspNet, Version=2.1.0.0, Culture=neutral">
- <Package>monodevelop-core-addins</Package>
- </Reference>
- <Reference Include="MonoDevelop.Deployment, Version=2.1.0.0, Culture=neutral">
- <Package>monodevelop-core-addins</Package>
- </Reference>
- <Reference Include="MonoDevelop.Deployment.Linux, Version=2.1.0.0, Culture=neutral">
- <Package>monodevelop-core-addins</Package>
- </Reference>
- <Reference Include="MonoDevelop.DesignerSupport, Version=2.1.0.0, Culture=neutral">
- <Package>monodevelop-core-addins</Package>
- </Reference>
- <Reference Include="MonoDevelop.VBNetBinding, Version=2.1.0.0, Culture=neutral">
- <Package>monodevelop-core-addins</Package>
- </Reference>
- <Reference Include="MonoDevelop.CBinding, Version=2.1.0.0, Culture=neutral">
- <Package>monodevelop-core-addins</Package>
- </Reference>
- <Reference Include="MonoDevelop.CSharpBinding, Version=2.1.0.0, Culture=neutral">
- <Package>monodevelop-core-addins</Package>
- </Reference>
- <Reference Include="System.Data" />
- <Reference Include="glib-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f">
- </Reference>
- <Reference Include="MonoDevelop.Debugger.Soft, Version=2.2.0.0, Culture=neutral">
- <Package>monodevelop-core-addins</Package>
- </Reference>
- <Reference Include="Mono.Debugging, Version=0.0.0.0, Culture=neutral, PublicKeyToken=5e9ce85b0923c84f">
- <Package>monodevelop</Package>
- </Reference>
- <Reference Include="Mono.Debugging.Soft, Version=0.0.0.0, Culture=neutral, PublicKeyToken=5e9ce85b0923c84f">
- <Package>monodevelop-core-addins</Package>
- </Reference>
- <Reference Include="gdk-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f">
- </Reference>
- <Reference Include="pango-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
- <Reference Include="atk-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
- <Reference Include="Mono.Debugger.Soft, Version=0.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756">
- <Package>monodevelop-core-addins</Package>
- </Reference>
- </ItemGroup>
- <ItemGroup>
- <Compile Include="AssemblyInfo.cs" />
- <Compile Include="PyBinding\PythonLanguageBinding.cs" />
- <Compile Include="PyBinding.Compiler\Python25Compiler.cs" />
- <Compile Include="PyBinding.Runtime\Python25Runtime.cs" />
- <Compile Include="PyBinding\PythonProject.cs" />
- <Compile Include="PyBinding\PythonConfiguration.cs" />
- <Compile Include="PyBinding.Runtime\IPythonRuntime.cs" />
- <Compile Include="PyBinding.Runtime\AbstractPythonRuntime.cs" />
- <Compile Include="PyBinding.Runtime\Python26Runtime.cs" />
- <Compile Include="PyBinding.Compiler\IPythonCompiler.cs" />
- <Compile Include="PyBinding\PythonProjectBinding.cs" />
- <Compile Include="PyBinding.Gui\PythonOptionsWidget.cs" />
- <Compile Include="PyBinding.Parser\PythonParser.cs" />
- <Compile Include="PyBinding\PythonHelper.cs" />
- <Compile Include="gtk-gui\generated.cs" />
- <Compile Include="gtk-gui\PyBinding.Gui.PythonOptionsWidget.cs" />
- <Compile Include="PyBinding.Gui\PythonEditorCompletion.cs" />
- <Compile Include="PyBinding.Parser\PythonParserInternal.cs" />
- <Compile Include="PyBinding.Parser.Dom\PythonCompilationUnit.cs" />
- <Compile Include="PyBinding.Parser.Dom\PythonParsedDocument.cs" />
- <Compile Include="PyBinding.Parser.Dom\PythonModule.cs" />
- <Compile Include="PyBinding.Parser.Dom\PythonNode.cs" />
- <Compile Include="PyBinding.Parser.Dom\PythonClass.cs" />
- <Compile Include="PyBinding.Parser.Dom\PythonFunction.cs" />
- <Compile Include="PyBinding.Parser.Dom\PythonAttribute.cs" />
- <Compile Include="PyBinding.Parser.Dom\PythonArgument.cs" />
- <Compile Include="PyBinding.Parser.Dom\PythonLocal.cs" />
- <Compile Include="PyBinding.Parser.Dom\PythonComment.cs" />
- <Compile Include="PyBinding.Parser.Dom\PythonImport.cs" />
- <Compile Include="PyBinding.Gui.Navigation\ProjectNodeBuilderExtension.cs" />
- <Compile Include="PyBinding.Gui.Navigation\PackagesNodeBuilder.cs" />
- <Compile Include="PyBinding.Gui.Navigation\PackageNodeBuilder.cs" />
- <Compile Include="PyBinding.Gui.Navigation\ClassNodeBuilder.cs" />
- <Compile Include="PyBinding.Gui.Navigation\AttributeNodeBuilder.cs" />
- <Compile Include="PyBinding.Gui.Navigation\FunctionNodeBuilder.cs" />
- <Compile Include="PyBinding.Gui\PythonEditorIndentation.cs" />
- <Compile Include="PyBinding.Gui\PythonEditorOutline.cs" />
- <Compile Include="PyBinding.Gui\PythonOptionsPanel.cs" />
- <Compile Include="PyBinding.Gui\DataProvider.cs" />
- <Compile Include="PyBinding.Gui\CompilationUnitDataProvider.cs" />
- <Compile Include="PyBinding\PythonExecutionCommand.cs" />
- <Compile Include="PyBinding\PythonExecutionHandler.cs" />
- <Compile Include="PyBinding\PythonSite.cs" />
- <Compile Include="PyBinding.Parser\ParserDatabase.cs" />
- <Compile Include="PyBinding.Parser\ParserItem.cs" />
- <Compile Include="PyBinding.Parser\ParserManager.cs" />
- <Compile Include="PyBinding.Parser\PythonResolver.cs" />
- <Compile Include="PyBinding.Parser\PythonExpressionFinder.cs" />
- <Compile Include="PyBinding.Runtime\Python27Runtime.cs" />
- <Compile Include="PyBinding.Runtime\IronPythonRuntime.cs" />
- <Compile Include="PyBinding\IronPythonExecutionHandler.cs" />
- </ItemGroup>
- <ItemGroup>
- <EmbeddedResource Include="Resources\EmptyPyProject.xpt.xml">
- <LogicalName>EmptyPyProject.xpt.xml</LogicalName>
- </EmbeddedResource>
- <EmbeddedResource Include="Resources\EmptyPySourceFile.xft.xml">
- <LogicalName>EmptyPySourceFile.xft.xml</LogicalName>
- </EmbeddedResource>
- <EmbeddedResource Include="Resources\py-icon-32.png">
- <LogicalName>py-icon-32.png</LogicalName>
- </EmbeddedResource>
- <EmbeddedResource Include="Resources\text-x-pysrc.16x16.png">
- <LogicalName>text-x-pysrc.16x16.png</LogicalName>
- </EmbeddedResource>
- <EmbeddedResource Include="Resources\completion.py">
- <LogicalName>completion.py</LogicalName>
- </EmbeddedResource>
- <EmbeddedResource Include="gtk-gui\gui.stetic">
- <LogicalName>gui.stetic</LogicalName>
- </EmbeddedResource>
- <EmbeddedResource Include="Resources\BasicScriptPySourceFile.xft.xml">
- <LogicalName>BasicScriptPySourceFile.xft.xml</LogicalName>
- </EmbeddedResource>
- <EmbeddedResource Include="PyBinding.addin.xml">
- <LogicalName>PyBinding.addin.xml</LogicalName>
- </EmbeddedResource>
- <EmbeddedResource Include="Resources\EmptyDjangoProject.xpt.xml">
- <LogicalName>EmptyDjangoProject.xpt.xml</LogicalName>
- </EmbeddedResource>
- <EmbeddedResource Include="Resources\PyGtkProject.xpt.xml">
- <LogicalName>PyGtkProject.xpt.xml</LogicalName>
- </EmbeddedResource>
- <EmbeddedResource Include="Resources\PyClutterProject.xpt.xml">
- <LogicalName>PyClutterProject.xpt.xml</LogicalName>
- </EmbeddedResource>
- <EmbeddedResource Include="Resources\Schema.sql">
- <LogicalName>Schema.sql</LogicalName>
- </EmbeddedResource>
- <EmbeddedResource Include="Resources\PythonStylePolicy.xml">
- <LogicalName>PythonStylePolicy.xml</LogicalName>
- </EmbeddedResource>
- </ItemGroup>
- <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
- <ProjectExtensions>
- <MonoDevelop>
- <Properties>
- <Policies>
- <StandardHeader Text="${FileName}&#xA;&#xA;Copyright (c) ${Year} ${CopyrightHolder}&#xA;&#xA;Permission is hereby granted, free of charge, to any person obtaining a copy&#xA;of this software and associated documentation files (the &quot;Software&quot;), to deal&#xA;in the Software without restriction, including without limitation the rights&#xA;to use, copy, modify, merge, publish, distribute, sublicense, and/or sell&#xA;copies of the Software, and to permit persons to whom the Software is&#xA;furnished to do so, subject to the following conditions:&#xA;&#xA;The above copyright notice and this permission notice shall be included in&#xA;all copies or substantial portions of the Software.&#xA;&#xA;THE SOFTWARE IS PROVIDED &quot;AS IS&quot;, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR&#xA;IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,&#xA;FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE&#xA;AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER&#xA;LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,&#xA;OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN&#xA;THE SOFTWARE." IncludeInNewFiles="True" />
- <TextStylePolicy NoTabsAfterNonTabs="True" RemoveTrailingWhitespace="True" inheritsSet="VisualStudio" inheritsScope="text/plain" scope="text/x-python" />
- </Policies>
- </Properties>
- </MonoDevelop>
- </ProjectExtensions>
-</Project>
diff --git a/extras/PyBinding/PyBinding/PyBinding/IronPythonExecutionHandler.cs b/extras/PyBinding/PyBinding/PyBinding/IronPythonExecutionHandler.cs
deleted file mode 100644
index 2d066bc59c..0000000000
--- a/extras/PyBinding/PyBinding/PyBinding/IronPythonExecutionHandler.cs
+++ /dev/null
@@ -1,51 +0,0 @@
-// IronPythonExecutionHandler.cs
-//
-// Copyright (c) 2011 Carlos Alberto Cortez <calberto.cortez@gmail.com>
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-using System;
-using System.IO;
-using MonoDevelop.Core;
-using MonoDevelop.Core.Execution;
-
-using PyBinding.Runtime;
-
-namespace PyBinding
-{
- public class IronPythonExecutionHandler : IExecutionHandler
- {
- public bool CanExecute (ExecutionCommand command)
- {
- return command is PythonExecutionCommand;
- }
-
- public IProcessAsyncOperation Execute (ExecutionCommand command, IConsole console)
- {
- var config = ((PythonExecutionCommand)command).Configuration;
- var runtime = (IronPythonRuntime)config.Runtime;
-
- var args = runtime.GetArguments (config);
- string dir = Path.GetFullPath (config.ParentItem.BaseDirectory);
-
- var cmd = new DotNetExecutionCommand (runtime.Path, String.Join (" ", args), dir, config.EnvironmentVariables);
- return cmd.TargetRuntime.GetExecutionHandler ().Execute (cmd, console);
- }
- }
-}
diff --git a/extras/PyBinding/PyBinding/PyBinding/PythonConfiguration.cs b/extras/PyBinding/PyBinding/PyBinding/PythonConfiguration.cs
deleted file mode 100644
index 56962c59e3..0000000000
--- a/extras/PyBinding/PyBinding/PyBinding/PythonConfiguration.cs
+++ /dev/null
@@ -1,108 +0,0 @@
-// PythonConfiguration.cs
-//
-// Copyright (c) 2008 Christian Hergert <chris@dronelabs.com>
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-using System;
-using System.Collections.Generic;
-using System.IO;
-
-using MonoDevelop.Core;
-using MonoDevelop.Projects;
-using MonoDevelop.Core.Serialization;
-
-using PyBinding.Runtime;
-
-namespace PyBinding
-{
- public class PythonConfiguration : ProjectConfiguration
- {
- static readonly string s_DefaultModule = "main";
-
- [ItemProperty("Runtime/Interpreter")]
- IPythonRuntime m_Runtime;
-
- [ItemProperty("Runtime/Module")]
- string m_Module = String.Empty;
-
- [ItemProperty("Runtime/PythonOptions")]
- string m_PythonOptions = String.Empty;
-
- [ItemProperty("Build/Optimize")]
- bool m_Optimize = false;
-
- public PythonConfiguration ()
- {
- this.m_Runtime = PythonHelper.FindPreferedRuntime ();
- this.m_Module = s_DefaultModule;
- }
-
- public string PythonOptions {
- get {
- return this.m_PythonOptions;
- }
- set {
- this.m_PythonOptions = value;
- }
- }
-
- public string Module {
- get {
- return this.m_Module;
- }
- set {
- this.m_Module = value;
- }
- }
-
- public bool Optimize {
- get {
- return this.m_Optimize;
- }
- set {
- this.m_Optimize = value;
- }
- }
-
- public IPythonRuntime Runtime {
- get {
- return this.m_Runtime;
- }
- set {
- this.m_Runtime = value;
- }
- }
-
- public override void CopyFrom (ItemConfiguration config)
- {
- PythonConfiguration pyConfig = config as PythonConfiguration;
-
- if (pyConfig == null)
- throw new ArgumentException ("not a PythonConfiguration");
-
- base.CopyFrom (config);
-
- this.m_Module = pyConfig.Module;
- this.m_Runtime = (IPythonRuntime) pyConfig.Runtime.Clone ();
- this.m_Optimize = pyConfig.Optimize;
- this.m_PythonOptions = pyConfig.PythonOptions;
- }
- }
-}
diff --git a/extras/PyBinding/PyBinding/PyBinding/PythonExecutionCommand.cs b/extras/PyBinding/PyBinding/PyBinding/PythonExecutionCommand.cs
deleted file mode 100644
index cfe3f51737..0000000000
--- a/extras/PyBinding/PyBinding/PyBinding/PythonExecutionCommand.cs
+++ /dev/null
@@ -1,49 +0,0 @@
-//
-// PytonExecutionCommand.cs
-//
-// Author:
-// Lluis Sanchez Gual <lluis@novell.com>
-//
-// Copyright (c) 2009 Novell, Inc (http://www.novell.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-using System;
-using MonoDevelop.Core.Execution;
-
-namespace PyBinding
-{
- public class PythonExecutionCommand: ExecutionCommand
- {
- public override string CommandString {
- get { return ""; }
- }
-
- public PythonConfiguration Configuration { get; set; }
-
- public PythonExecutionCommand ()
- {
- }
-
- public PythonExecutionCommand (PythonConfiguration config)
- {
- Configuration = config;
- }
- }
-}
diff --git a/extras/PyBinding/PyBinding/PyBinding/PythonExecutionHandler.cs b/extras/PyBinding/PyBinding/PyBinding/PythonExecutionHandler.cs
deleted file mode 100644
index dd718f880b..0000000000
--- a/extras/PyBinding/PyBinding/PyBinding/PythonExecutionHandler.cs
+++ /dev/null
@@ -1,68 +0,0 @@
-//
-// PythonExecutionHandler.cs
-//
-// Author:
-// Lluis Sanchez Gual <lluis@novell.com>
-//
-// Copyright (c) 2009 Novell, Inc (http://www.novell.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-using System;
-using System.IO;
-using MonoDevelop.Core.Execution;
-
-namespace PyBinding
-{
- public class PythonExecutionHandler: IExecutionHandler
- {
- public bool CanExecute (ExecutionCommand command)
- {
- return command is PythonExecutionCommand;
- }
-
- public IProcessAsyncOperation Execute (ExecutionCommand command, IConsole console)
- {
- var config = ((PythonExecutionCommand)command).Configuration;
- return config.Runtime.GetExecutionHandler ().Execute (command, console);
- }
-
- }
-
- // This is our default handler (used by Python2.5/2.6/2.7)
- public class CPythonExecutionHandler : NativePlatformExecutionHandler
- {
- public override bool CanExecute (ExecutionCommand command)
- {
- return command is PythonExecutionCommand;
- }
-
- public override IProcessAsyncOperation Execute (ExecutionCommand command, IConsole console)
- {
- PythonExecutionCommand cmd = (PythonExecutionCommand) command;
-
- string[] args = cmd.Configuration.Runtime.GetArguments (cmd.Configuration);
- string dir = Path.GetFullPath (cmd.Configuration.OutputDirectory);
-
- NativeExecutionCommand ncmd = new NativeExecutionCommand (cmd.Configuration.Runtime.Path, string.Join (" ", args), dir, cmd.Configuration.EnvironmentVariables);
- return base.Execute (ncmd, console);
- }
-
- }
-}
diff --git a/extras/PyBinding/PyBinding/PyBinding/PythonHelper.cs b/extras/PyBinding/PyBinding/PyBinding/PythonHelper.cs
deleted file mode 100644
index 7fb3cb575d..0000000000
--- a/extras/PyBinding/PyBinding/PyBinding/PythonHelper.cs
+++ /dev/null
@@ -1,155 +0,0 @@
-// PythonHelper.cs
-//
-// Copyright (c) 2008 Christian Hergert <chris@dronelabs.com>
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-using System;
-using System.Collections.Generic;
-using System.IO;
-
-using PyBinding.Runtime;
-
-namespace PyBinding
-{
- public class PythonHelper
- {
- static readonly char[] s_PathSeparators = new char[] {';', ':'};
- static Dictionary<string,string> m_ModuleCache = new Dictionary<string, string> ();
-
- public static string Which (string commandName)
- {
- List<string> paths = new List<string> ();
-
- foreach (string dirName in Environment.GetEnvironmentVariable ("PATH").Split (s_PathSeparators))
- paths.Add (dirName);
-
- foreach (string dirName in paths) {
- string absPath = System.IO.Path.Combine (dirName, commandName);
-
- if (System.IO.File.Exists (absPath))
- return absPath;
- }
-
- throw new FileNotFoundException ("Could not locate executable");
- }
-
- public static string ModuleFromFilename (string fileName)
- {
- if (String.IsNullOrEmpty (fileName))
- return String.Empty;
- else if (!fileName.ToLower ().EndsWith (".py"))
- return String.Empty;
-
- if (!m_ModuleCache.ContainsKey (fileName))
- {
- string[] parts = fileName.Split (Path.DirectorySeparatorChar);
- string module = parts[parts.Length - 1];
- module = module.Substring (0, module.Length - 3);
- string dirname = Path.GetDirectoryName (fileName);
- if (!String.IsNullOrEmpty (dirname)) {
- DirectoryInfo dirInfo = new DirectoryInfo (Path.GetDirectoryName (fileName));
- m_ModuleCache[fileName] = RecursiveModuleFromFile (dirInfo, module);
- }
- else {
- m_ModuleCache[fileName] = module;
- }
- }
-
- return m_ModuleCache[fileName];
- }
-
- public static string PackageFromFilename (string fileName)
- {
- var modName = ModuleFromFilename (fileName);
- if (modName.EndsWith (".__init__"))
- return modName.Substring (0, modName.Length - 9);
- return modName;
- }
-
- static string RecursiveModuleFromFile (DirectoryInfo dirInfo, string modName)
- {
- bool matched = false;
-
- foreach (FileInfo fileInfo in dirInfo.GetFiles ("*.py"))
- {
- if (fileInfo.Name.Equals ("__init__.py")) {
- modName = modName.Insert (0, dirInfo.Name + ".");
- matched = true;
- break;
- }
- }
-
- if (!matched)
- return modName;
-
- return RecursiveModuleFromFile (dirInfo.Parent, modName);
- }
-
- public static IPythonRuntime FindPreferedRuntime ()
- {
- // We look explicity for the executable here so that
- // we know when it doesn't exist and can find the
- // next preferred type.
-
- try {
- return new Python27Runtime () {
- Path = Which ("python2.7")
- };
- }
- catch {}
-
- try {
- return new Python26Runtime () {
- Path = Which ("python2.6")
- };
- }
- catch {}
-
- try {
- return new Python25Runtime () {
- Path = Which ("python2.5")
- };
- }
- catch {}
-
- try {
- return new IronPythonRuntime () {
- Path = Which ("ipy.exe")
- };
- }
- catch {}
-
- // look for "python" and what version it is
-
- return null;
- }
-
- public static string FindPreferredPython ()
- {
- try { return Which ("python2.7"); } catch {}
- try { return Which ("python2.6"); } catch {}
- try { return Which ("python2.5"); } catch {}
- try { return Which ("python2"); } catch {}
- try { return Which ("python"); } catch {}
-
- throw new FileNotFoundException ("Could not locate python executable");
- }
- }
-}
diff --git a/extras/PyBinding/PyBinding/PyBinding/PythonLanguageBinding.cs b/extras/PyBinding/PyBinding/PyBinding/PythonLanguageBinding.cs
deleted file mode 100644
index 01e62ce4c2..0000000000
--- a/extras/PyBinding/PyBinding/PyBinding/PythonLanguageBinding.cs
+++ /dev/null
@@ -1,77 +0,0 @@
-// PythonLanguage.cs
-//
-// Copyright (c) 2008 Christian Hergert <chris@dronelabs.com>
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-using System;
-using System.IO;
-
-using MonoDevelop.Core;
-using MonoDevelop.Projects;
-using MonoDevelop.Projects.Dom.Parser;
-using MonoDevelop.Projects.CodeGeneration;
-
-using PyBinding.Parser;
-
-namespace PyBinding
-{
- public class PythonLanguageBinding : ILanguageBinding
- {
- static readonly string s_Language = "Python";
- static readonly string s_CommentTag = "#";
- static readonly string s_PythonExt = ".py";
-
- PythonParser m_Parser;
-
- public string Language {
- get {
- return s_Language;
- }
- }
-
- public string SingleLineCommentTag { get { return s_CommentTag; } }
- public string BlockCommentStartTag { get { return null; } }
- public string BlockCommentEndTag { get { return null; } }
-
- public IParser Parser {
- get {
- if (m_Parser == null)
- m_Parser = new PythonParser ();
- return m_Parser;
- }
- }
-
- public IRefactorer Refactorer {
- get {
- return null;
- }
- }
-
- public string GetFileName (string baseName)
- {
- return String.Concat (baseName, s_PythonExt);
- }
-
- public bool IsSourceCodeFile (string fileName)
- {
- return Path.GetExtension (fileName).ToLower () == s_PythonExt;
- }
- }
-}
diff --git a/extras/PyBinding/PyBinding/PyBinding/PythonProject.cs b/extras/PyBinding/PyBinding/PyBinding/PythonProject.cs
deleted file mode 100644
index 623a71a0b8..0000000000
--- a/extras/PyBinding/PyBinding/PyBinding/PythonProject.cs
+++ /dev/null
@@ -1,180 +0,0 @@
-// PythonProject.cs
-//
-// Copyright (c) 2008 Christian Hergert <chris@dronelabs.com>
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-using System;
-using System.IO;
-using System.Text;
-using System.Xml;
-
-using MonoDevelop.Core;
-using MonoDevelop.Core.Execution;
-using MonoDevelop.Ide;
-using MonoDevelop.Core.ProgressMonitoring;
-using MonoDevelop.Gettext;
-using MonoDevelop.Ide.Gui;
-using MonoDevelop.Projects;
-using MonoDevelop.Projects.CodeGeneration;
-
-using PyBinding.Compiler;
-
-namespace PyBinding
-{
- public class PythonProject : Project
- {
- static readonly string s_ProjectType = "Python";
-
- public override string ProjectType {
- get {
- return s_ProjectType;
- }
- }
-
- public PythonProject ()
- {
- }
-
- public PythonProject (string languageName,
- ProjectCreateInformation info,
- XmlElement projectOptions)
- {
- PythonConfiguration defaultConfig;
- string binPath;
-
- if (!String.Equals (s_ProjectType, languageName)) {
- throw new ArgumentException ("Not Python Project");
- }
-
- if (info != null) {
- binPath = info.BinPath;
- this.Name = info.ProjectName;
- }
- else {
- binPath = ".";
- }
-
- // Setup our Debug configuration
- defaultConfig = CreateConfiguration ("Debug") as PythonConfiguration;
- this.Configurations.Add (defaultConfig);
-
- // Setup our Release configuration
- defaultConfig = CreateConfiguration ("Release") as PythonConfiguration;
- defaultConfig.Optimize = true;
- this.Configurations.Add (defaultConfig);
-
- // Setup proper paths for all configurations
- foreach (PythonConfiguration config in this.Configurations) {
- config.OutputDirectory = Path.Combine (binPath, config.Name);
- }
- }
-
- public override SolutionItemConfiguration CreateConfiguration (string configName)
- {
- PythonConfiguration config = new PythonConfiguration ();
- config.Name = configName;
- return config;
- }
-
- protected override BuildResult DoBuild (IProgressMonitor monitor, ConfigurationSelector configuration)
- {
- BuildResult result;
- PythonConfiguration config;
-
- config = (PythonConfiguration) GetConfiguration (configuration);
- result = new BuildResult ();
-
- if (config.Runtime != null && config.Runtime.Compiler != null) {
- IPythonCompiler compiler = config.Runtime.Compiler;
-
- foreach (ProjectFile projectFile in Files) {
- if (projectFile.BuildAction != BuildAction.Compile)
- continue;
-
- compiler.Compile (this, projectFile.FilePath, config, result);
- }
- }
-
- return result;
- }
-
- protected override bool OnGetCanExecute (MonoDevelop.Projects.ExecutionContext context, ConfigurationSelector solutionConfiguration)
- {
- PythonConfiguration config = (PythonConfiguration) GetConfiguration (solutionConfiguration);
- return config.Runtime != null && context.ExecutionHandler.CanExecute (new PythonExecutionCommand (config));
- }
-
-
- protected override void DoExecute (IProgressMonitor monitor,
- ExecutionContext context,
- ConfigurationSelector configuration)
- {
- PythonConfiguration config;
- IConsole console;
-
- config = (PythonConfiguration) GetConfiguration (configuration);
-
- // Make sure we have a module to execute
- if (config.Runtime == null || String.IsNullOrEmpty (config.Module)) {
- MessageService.ShowMessage ("No target module specified!");
- return;
- }
-
- monitor.Log.WriteLine ("Running project...");
-
- // Create a console, external if needed
- if (config.ExternalConsole) {
- console = context.ExternalConsoleFactory.CreateConsole (!config.PauseConsoleOutput);
- }
- else {
- console = context.ConsoleFactory.CreateConsole (!config.PauseConsoleOutput);
- }
-
- AggregatedOperationMonitor operationMonitor = new AggregatedOperationMonitor (monitor);
-
- try {
- PythonExecutionCommand cmd = new PythonExecutionCommand (config);
-
- if (!context.ExecutionHandler.CanExecute (cmd)) {
- monitor.ReportError ("The selected execution mode is not supported for Python projects.", null);
- return;
- }
-
- IProcessAsyncOperation op = context.ExecutionHandler.Execute (cmd, console);
- operationMonitor.AddOperation (op);
- op.WaitForCompleted ();
-
- monitor.Log.WriteLine ("The operation exited with code: {0}", op.ExitCode);
- }
- catch (Exception ex) {
- monitor.ReportError ("Cannot execute \"" + config.Runtime.Path + "\"", ex);
- }
- finally {
- operationMonitor.Dispose ();
- console.Dispose ();
- }
- }
-
- public override bool IsCompileable (string fileName)
- {
- return Path.GetExtension (fileName) == ".py";
- }
- }
-}
diff --git a/extras/PyBinding/PyBinding/PyBinding/PythonProjectBinding.cs b/extras/PyBinding/PyBinding/PyBinding/PythonProjectBinding.cs
deleted file mode 100644
index e8dbdf76f4..0000000000
--- a/extras/PyBinding/PyBinding/PyBinding/PythonProjectBinding.cs
+++ /dev/null
@@ -1,65 +0,0 @@
-// PythonProjectBinding.cs
-//
-// Copyright (c) 2008 Christian Hergert <chris@dronelabs.com>
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-using System;
-using System.IO;
-using System.Xml;
-
-using MonoDevelop.Projects;
-
-namespace PyBinding
-{
- public class PythonProjectBinding : IProjectBinding
- {
- static readonly string m_Name = "Python";
- static readonly string m_Language = "Python";
-
- public string Name {
- get {
- return m_Name;
- }
- }
-
- public Project CreateProject (ProjectCreateInformation info,
- XmlElement projectOptions)
- {
- return new PythonProject (m_Language, null, projectOptions);
- }
-
- public Project CreateSingleFileProject (string sourceFile)
- {
- ProjectCreateInformation info = new ProjectCreateInformation ();
- info.ProjectName = Path.GetFileNameWithoutExtension (sourceFile);
- info.SolutionPath = Path.GetDirectoryName (sourceFile);
- info.ProjectBasePath = Path.GetDirectoryName (sourceFile);
-
- PythonProject project = new PythonProject (m_Language, info, null);
- project.Files.Add (new ProjectFile (sourceFile));
- return project;
- }
-
- public bool CanCreateSingleFileProject (string sourceFile)
- {
- return Path.GetExtension (sourceFile) == ".py";
- }
- }
-}
diff --git a/extras/PyBinding/PyBinding/PyBinding/PythonSite.cs b/extras/PyBinding/PyBinding/PyBinding/PythonSite.cs
deleted file mode 100644
index 7e1003c128..0000000000
--- a/extras/PyBinding/PyBinding/PyBinding/PythonSite.cs
+++ /dev/null
@@ -1,291 +0,0 @@
-//
-// PythonSite.cs
-//
-// Author:
-// Christian Hergert <chris@dronelabs.com>
-//
-// Copyright (c) 2009 Christian Hergert
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-using System;
-using System.Collections.Generic;
-using System.IO;
-using System.Threading;
-
-using MonoDevelop.Ide;
-
-using PyBinding.Parser;
-using PyBinding.Runtime;
-
-namespace PyBinding
-{
- public class PythonSite
- {
- static Dictionary<Type,PythonSiteImpl> s_Sites = new Dictionary<Type, PythonSiteImpl> ();
- static object s_syncRoot = new object ();
-
- IPythonRuntime m_runtime;
- Type m_runtimeType;
-
- public PythonSite (IPythonRuntime runtime)
- {
- m_runtime = runtime;
- m_runtimeType = runtime.GetType ();
- }
-
- public ParserDatabase Database {
- get {
- return GetImpl (m_runtimeType).Database;
- }
- }
-
- public string[] Paths {
- get {
- return GetImpl (m_runtimeType).Paths;
- }
- }
-
- public bool ContainsPath (string path)
- {
- return GetImpl (m_runtimeType).ContainsPath (path);
- }
-
- public void AddPath (string path)
- {
- GetImpl (m_runtimeType).AddPath (path);
- }
-
- public void RemovePath (string path)
- {
- GetImpl (m_runtimeType).RemovePath (path);
- }
-
- PythonSiteImpl GetImpl (Type runtimeType)
- {
- lock (s_syncRoot) {
- if (!s_Sites.ContainsKey (runtimeType))
- s_Sites [runtimeType] = new PythonSiteImpl (m_runtime);
- return s_Sites [runtimeType];
- }
- }
- }
-
- class PythonSiteImpl
- {
- List<string> m_Paths = new List<string> ();
- ParserDatabase m_Database;
- PythonParserInternal m_parser;
- uint m_saveHandle = 0;
- string m_pathsPath;
-
- public ParserDatabase Database {
- get { return m_Database; }
- }
-
- public string[] Paths {
- get { return m_Paths.ToArray (); }
- }
-
- public PythonSiteImpl (IPythonRuntime runtime)
- {
- string name = runtime.GetType ().Name;
- string configPath = Environment.GetFolderPath (Environment.SpecialFolder.ApplicationData);
- string dbPath = PathCombine (configPath, "MonoDevelop", "PyBinding", "Sites", name, "completion.db");
- m_pathsPath = PathCombine (configPath, "MonoDevelop", "PyBinding", "Sites", name, "paths");
-
- if (File.Exists (m_pathsPath)) {
- foreach (var line in File.ReadAllLines (m_pathsPath)) {
- string trimmed = line.Trim ();
- if (!String.IsNullOrEmpty (line))
- m_Paths.Add (trimmed);
- }
- }
-
- m_Database = new ParserDatabase (dbPath);
- m_Database.Open ();
- m_parser = ParserManager.GetParser (runtime);
- }
-
- public bool ContainsPath (string path)
- {
- return m_Paths.Contains (path);
- }
-
- bool OnSave ()
- {
- m_saveHandle = 0; // runs in main thread, no lock needed
- string[] paths = m_Paths.ToArray ();
-
- ThreadPool.QueueUserWorkItem (delegate {
- using (var writer = new StreamWriter (File.OpenWrite (m_pathsPath)))
- {
- foreach (var path in paths)
- writer.WriteLine (path);
- }
- });
-
- return false;
- }
-
- public void AddPath (string path)
- {
- m_Paths.Add (path);
-
- // add timeout to save the file to disk in a few seconds if not scheduled yet
- if (m_saveHandle == 0)
- m_saveHandle = GLib.Timeout.Add (5000, OnSave);
-
- if (!Directory.Exists (path))
- return;
-
- ThreadPool.QueueUserWorkItem (delegate {
- List<string> toParse = new List<string> ();
- FindAll (path, toParse);
- var count = toParse.Count;
- var i = 0;
-
- var progress = IdeApp.Workbench.ProgressMonitors.GetBackgroundProgressMonitor ("Indexing python modules", Gtk.Stock.Execute);
- progress.BeginTask (String.Format ("Indexing {0}", path), count);
-
- foreach (var file in toParse) {
- progress.Log.WriteLine ("Parsing {0} of {1}: {2}", ++i, count, file);
- try {
- ParseFile (file);
- }
- catch (Exception ex) {
- progress.Log.WriteLine (ex.ToString ());
- }
- finally {
- progress.Step (1);
- }
- }
-
- progress.EndTask ();
- progress.Dispose ();
- });
- }
-
- public void RemovePath (string path)
- {
- m_Paths.Remove (path);
-
- ThreadPool.QueueUserWorkItem (delegate {
- m_Database.RemoveByFilePrefix (path);
- });
- }
-
- string PathCombine (params string[] chunks)
- {
- string retval = String.Empty;
- foreach (string chunk in chunks)
- retval = System.IO.Path.Combine (retval, chunk);
- return retval;
- }
-
- void ParseFile (string name)
- {
- var p = m_parser.Parse (name, File.ReadAllText (name));
-
- if (p == null || p.Module == null)
- return;
-
- // Do all of our creation and data storage work
- // from the thread pool as it isn't critical path
- ThreadPool.QueueUserWorkItem (delegate {
- List<ParserItem> items = new List<ParserItem> ();
-
- string module = p.Module.FullName;
- if (module.EndsWith (".__init__"))
- module = module.Substring (0, module.Length - ".__init__".Length);
-
- items.Add (new ParserItem () {
- FileName = name,
- FullName = module,
- ItemType = ParserItemType.Module,
- Documentation = p.Module.Documentation,
- });
-
- if (p.Module.Classes != null) {
- foreach (var klass in p.Module.Classes) {
- string klassname = String.Format ("{0}.{1}", module, klass.Name);
- items.Add (new ParserItem () {
- FileName = name,
- FullName = klassname,
- ItemType = ParserItemType.Class,
- Documentation = klass.Documentation,
- });
-
- foreach (var attr in klass.Attributes) {
- string attrname = String.Format ("{0}.{1}", klassname, attr.Name);
- items.Add (new ParserItem () {
- FileName = name,
- FullName = attrname,
- ItemType = ParserItemType.Attribute,
- Documentation = attr.Documentation,
- });
- }
-
- foreach (var func in klass.Functions) {
- string funcname = String.Format ("{0}.{1}", klassname, func.Name);
- items.Add (new ParserItem () {
- FileName = name,
- FullName = funcname,
- ItemType = ParserItemType.Function,
- Documentation = func.Documentation,
- });
- }
- }
-
- if (p.Module.Functions != null) {
- foreach (var func in p.Module.Functions) {
- string funcname = String.Format ("{0}.{1}", module, func.Name);
- items.Add (new ParserItem () {
- FileName = name,
- FullName = funcname,
- ItemType = ParserItemType.Function,
- Documentation = func.Documentation,
- });
- }
- }
- }
-
- m_Database.AddRange (items);
- });
- }
-
- void FindAll (string name, List<string> toParse)
- {
- if (toParse == null)
- throw new ArgumentNullException ("toParse");
-
- foreach (string filename in Directory.GetFiles (name, "*.py"))
- {
- string absPath = PathCombine (name, filename);
- toParse.Insert (0, absPath);
- }
-
- foreach (string dirname in Directory.GetDirectories (name))
- {
- string absPath = PathCombine (name, dirname);
- FindAll (absPath, toParse);
- }
- }
- }
-}
diff --git a/extras/PyBinding/PyBinding/Resources/BasicScriptPySourceFile.xft.xml b/extras/PyBinding/PyBinding/Resources/BasicScriptPySourceFile.xft.xml
deleted file mode 100644
index 7e32311926..0000000000
--- a/extras/PyBinding/PyBinding/Resources/BasicScriptPySourceFile.xft.xml
+++ /dev/null
@@ -1,56 +0,0 @@
-<?xml version="1.0"?>
-<Template
- Originator="Christian Hergert"
- Language="Python"
- Created="10/1/2008"
- LastModified="10/1/2008">
-
- <TemplateConfiguration>
- <_Name>Basic Python Script</_Name>
- <Icon>res:py-icon-32.png</Icon>
- <_Category>General</_Category>
- <_Description>Creates an Python script that can parse command line options.</_Description>
- <LanguageName>Python</LanguageName>
- </TemplateConfiguration>
-
- <TemplateFiles>
-<File DefaultExtension=".py" DefaultName="EmptyPySourceFile" AddStandardHeader="True">
-import getopt
-import sys
-
-def usage(stream = sys.stdout, args = sys.argv):
- """Prints application usage to @stream."""
- print >> stream, 'usage: %s [OPTIONS]' % args[0]
- print >> stream, ''
- print >> stream, 'options'
- print >> stream, ''
- print >> stream, ' -h, --help Show this help menu'
- print >> stream, ''
-
-def main(args = sys.argv):
- """Script entry point.
-
- @args: command line arguments to the script.
-
- Returns: int of the shell exit code"""
- try:
- _opts, _args = getopt.getopt(args[1:], 'h', ['help'])
- except getopt.GetoptError:
- usage()
- return 1
-
- for o,a in _opts:
- if o in ('--help', '-h'):
- usage()
- return 0
-
- print >> sys.stdout, 'Remaining args ... "' + ' '.join(_args) + '"'
-
-if __name__ == '__main__':
- sys.exit(main(sys.argv))
-</File>
- </TemplateFiles>
-
- <FileOptions/>
-
-</Template> \ No newline at end of file
diff --git a/extras/PyBinding/PyBinding/Resources/EmptyDjangoProject.xpt.xml b/extras/PyBinding/PyBinding/Resources/EmptyDjangoProject.xpt.xml
deleted file mode 100644
index 6b7e3d5f52..0000000000
--- a/extras/PyBinding/PyBinding/Resources/EmptyDjangoProject.xpt.xml
+++ /dev/null
@@ -1,140 +0,0 @@
-<?xml version="1.0"?>
-<Template
- originator = "John Tindell"
- created = "2009/08/16"
- lastModified = "2009/08/16">
-
- <!-- Template Header -->
- <TemplateConfiguration>
- <_Name>Empty Django Project</_Name>
- <_Category>Python</_Category>
- <Icon>md-project|res:py-icon-32.png</Icon>
- <LanguageName>Python</LanguageName>
- <_Description>Creates an empty django solution.</_Description>
- </TemplateConfiguration>
-
- <!-- Template Content -->
- <Combine name = "${ProjectName}" directory = ".">
- <Project name = "${ProjectName}" directory = "." type = "Python">
- <Files>
- <File name="__init__.py" AddStandardHeader="False"></File>
- <File name="manage.py" AddStandardHeader="True">
- <![CDATA[
-#!/usr/bin/env python
-from django.core.management import execute_manager
-try:
- import settings # Assumed to be in the same directory.
-except ImportError:
- import sys
- sys.stderr.write("Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized things.\nYou'll have to run django-admin.py, passing it your settings module.\n(If the file settings.py does indeed exist, it's causing an ImportError somehow.)\n" % __file__)
- sys.exit(1)
-
-if __name__ == "__main__":
- execute_manager(settings)]]>
- </File>
-
- <File name="settings.py" AddStandardHeader="True">
- <![CDATA[
-# Django settings for ${ProjectName} project.
-
-DEBUG = True
-TEMPLATE_DEBUG = DEBUG
-
-ADMINS = (
- # ('Your Name', 'your_email@domain.com'),
-)
-
-MANAGERS = ADMINS
-
-DATABASE_ENGINE = '' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
-DATABASE_NAME = '' # Or path to database file if using sqlite3.
-DATABASE_USER = '' # Not used with sqlite3.
-DATABASE_PASSWORD = '' # Not used with sqlite3.
-DATABASE_HOST = '' # Set to empty string for localhost. Not used with sqlite3.
-DATABASE_PORT = '' # Set to empty string for default. Not used with sqlite3.
-
-# Local time zone for this installation. Choices can be found here:
-# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
-# although not all choices may be available on all operating systems.
-# If running in a Windows environment this must be set to the same as your
-# system time zone.
-TIME_ZONE = 'America/Chicago'
-
-# Language code for this installation. All choices can be found here:
-# http://www.i18nguy.com/unicode/language-identifiers.html
-LANGUAGE_CODE = 'en-us'
-
-SITE_ID = 1
-
-# If you set this to False, Django will make some optimizations so as not
-# to load the internationalization machinery.
-USE_I18N = True
-
-# Absolute path to the directory that holds media.
-# Example: "/home/media/media.lawrence.com/"
-MEDIA_ROOT = ''
-
-# URL that handles the media served from MEDIA_ROOT. Make sure to use a
-# trailing slash if there is a path component (optional in other cases).
-# Examples: "http://media.lawrence.com", "http://example.com/media/"
-MEDIA_URL = ''
-
-# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
-# trailing slash.
-# Examples: "http://foo.com/media/", "/media/".
-ADMIN_MEDIA_PREFIX = '/media/'
-
-# Make this unique, and don't share it with anybody.
-SECRET_KEY = 'iqd&3-gfyu6^dodgo7q&^&%-ba9^h3xge^r5ewn#)$igm=bzr5'
-
-# List of callables that know how to import templates from various sources.
-TEMPLATE_LOADERS = (
- 'django.template.loaders.filesystem.load_template_source',
- 'django.template.loaders.app_directories.load_template_source',
-# 'django.template.loaders.eggs.load_template_source',
-)
-
-MIDDLEWARE_CLASSES = (
- 'django.middleware.common.CommonMiddleware',
- 'django.contrib.sessions.middleware.SessionMiddleware',
- 'django.contrib.auth.middleware.AuthenticationMiddleware',
-)
-
-ROOT_URLCONF = '${ProjectName}.urls'
-
-TEMPLATE_DIRS = (
- # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
- # Always use forward slashes, even on Windows.
- # Don't forget to use absolute paths, not relative paths.
-)
-
-INSTALLED_APPS = (
- 'django.contrib.auth',
- 'django.contrib.contenttypes',
- 'django.contrib.sessions',
- 'django.contrib.sites',
-)]]>
- </File>
- <File name="urls.py" AddStandardHeader="True">
- <![CDATA[from django.conf.urls.defaults import *
-
-# Uncomment the next two lines to enable the admin:
-# from django.contrib import admin
-# admin.autodiscover()
-
-urlpatterns = patterns('',
- # Example:
- # (r'^${ProjectName}/', include('${ProjectName}.foo.urls')),
-
- # Uncomment the admin/doc line below and add 'django.contrib.admindocs'
- # to INSTALLED_APPS to enable admin documentation:
- # (r'^admin/doc/', include('django.contrib.admindocs.urls')),
-
- # Uncomment the next line to enable the admin:
- # (r'^admin/(.*)', admin.site.root),
-)]]>
- </File>
- </Files>
- </Project>
- </Combine>
-</Template>
diff --git a/extras/PyBinding/PyBinding/Resources/EmptyPyProject.xpt.xml b/extras/PyBinding/PyBinding/Resources/EmptyPyProject.xpt.xml
deleted file mode 100644
index 4fb1fe1555..0000000000
--- a/extras/PyBinding/PyBinding/Resources/EmptyPyProject.xpt.xml
+++ /dev/null
@@ -1,33 +0,0 @@
-<?xml version="1.0"?>
-<Template
- originator = "Christian Hergert"
- created = "03/21/2008"
- lastModified = "03/21/2008">
-
- <!-- Template Header -->
- <TemplateConfiguration>
- <_Name>Empty Python Project</_Name>
- <_Category>Python</_Category>
- <Icon>md-project|res:py-icon-32.png</Icon>
- <LanguageName>Python</LanguageName>
- <_Description>Creates an empty Python solution.</_Description>
- </TemplateConfiguration>
-
- <!-- Actions -->
- <Actions>
- <Open filename = "main.py"/>
- </Actions>
-
- <!-- Template Content -->
- <Combine name = "${ProjectName}" directory = ".">
- <Project name = "${ProjectName}" directory = "." type = "Python">
- <Files>
- <File name="main.py" AddStandardHeader="True">
- <![CDATA[
-if __name__ == '__main__':
- print 'Hello, World!']]>
- </File>
- </Files>
- </Project>
- </Combine>
-</Template>
diff --git a/extras/PyBinding/PyBinding/Resources/EmptyPySourceFile.xft.xml b/extras/PyBinding/PyBinding/Resources/EmptyPySourceFile.xft.xml
deleted file mode 100644
index 1117406f68..0000000000
--- a/extras/PyBinding/PyBinding/Resources/EmptyPySourceFile.xft.xml
+++ /dev/null
@@ -1,21 +0,0 @@
-<?xml version="1.0"?>
-<Template
- Originator = "Christian Hergert"
- Created = "03/21/2008"
- LastModified = "08/20/2009">
-
- <TemplateConfiguration>
- <_Name>Empty Python File</_Name>
- <Icon>res:py-icon-32.png</Icon>
- <_Category>Python</_Category>
- <ProjectType>Python</ProjectType>
- <_Description>Creates an empty Python source file.</_Description>
- </TemplateConfiguration>
-
- <TemplateFiles>
- <File DefaultExtension=".py" DefaultName="EmptyPySourceFile"/>
- </TemplateFiles>
-
- <FileOptions/>
-
-</Template> \ No newline at end of file
diff --git a/extras/PyBinding/PyBinding/Resources/PyClutterProject.xpt.xml b/extras/PyBinding/PyBinding/Resources/PyClutterProject.xpt.xml
deleted file mode 100644
index 253c347049..0000000000
--- a/extras/PyBinding/PyBinding/Resources/PyClutterProject.xpt.xml
+++ /dev/null
@@ -1,51 +0,0 @@
-<?xml version="1.0"?>
-<Template
- originator = "Christian Hergert"
- created = "08/19/2008"
- lastModified = "08/19/2008">
-
- <!-- Template Header -->
- <TemplateConfiguration>
- <_Name>PyClutter Project</_Name>
- <_Category>Python</_Category>
- <Icon>md-project|res:py-icon-32.png</Icon>
- <LanguageName>Python</LanguageName>
- <_Description>Creates a Clutter application using Python.</_Description>
- </TemplateConfiguration>
-
- <!-- Template Content -->
- <Combine name = "${ProjectName}" directory = ".">
- <Project name = "${ProjectName}" directory = "." type = "Python">
- <Files>
- <File name="main.py" AddStandardHeader="True">
- <![CDATA[
-import clutter
-
-def main():
- stage = clutter.stage_get_default()
- stage.props.title = '${ProjectName}'
- stage.show()
-
- button = clutter.Rectangle()
- button.props.color = clutter.Color(0xff, 0x00, 0x00, 0xff)
- button.set_size(150, 75)
- button.set_position(100, 100)
- button.set_reactive(True)
- def onButtonPress(actor, event):
- w = actor.get_width()
- if w != 150:
- actor.animate(clutter.EASE_OUT_QUAD, 300, 'width', 150, 'height', 75)
- else:
- actor.animate(clutter.EASE_OUT_QUAD, 300, 'width', 300, 'height', 150)
- button.connect('button-press-event', onButtonPress)
- stage.add(button)
- button.show()
-
-if __name__ == '__main__':
- main()
-]]>
- </File>
- </Files>
- </Project>
- </Combine>
-</Template>
diff --git a/extras/PyBinding/PyBinding/Resources/PyGtkProject.xpt.xml b/extras/PyBinding/PyBinding/Resources/PyGtkProject.xpt.xml
deleted file mode 100644
index f9351a5ccf..0000000000
--- a/extras/PyBinding/PyBinding/Resources/PyGtkProject.xpt.xml
+++ /dev/null
@@ -1,40 +0,0 @@
-<?xml version="1.0"?>
-<Template
- originator = "Christian Hergert"
- created = "08/19/2008"
- lastModified = "08/19/2008">
-
- <!-- Template Header -->
- <TemplateConfiguration>
- <_Name>PyGtk Project</_Name>
- <_Category>Python</_Category>
- <Icon>md-project|res:py-icon-32.png</Icon>
- <LanguageName>Python</LanguageName>
- <_Description>Creates a Gtk application using Python.</_Description>
- </TemplateConfiguration>
-
- <!-- Template Content -->
- <Combine name = "${ProjectName}" directory = ".">
- <Project name = "${ProjectName}" directory = "." type = "Python">
- <Files>
- <File name="main.py" AddStandardHeader="True">
- <![CDATA[
-import pygtk; pygtk.require('2.0')
-import gtk
-
-def main():
- win = gtk.Window()
- win.props.title = '${ProjectName}'
- win.connect('delete-event', lambda *_: gtk.main_quit())
- win.show()
-
- gtk.main()
-
-if __name__ == '__main__':
- main()
-]]>
- </File>
- </Files>
- </Project>
- </Combine>
-</Template>
diff --git a/extras/PyBinding/PyBinding/Resources/PythonStylePolicy.xml b/extras/PyBinding/PyBinding/Resources/PythonStylePolicy.xml
deleted file mode 100644
index 2f9c51df72..0000000000
--- a/extras/PyBinding/PyBinding/Resources/PythonStylePolicy.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-<TextStylePolicy scope="text/x-python">
- <FileWidth>80</FileWidth>
- <TabWidth>4</TabWidth>
- <TabsToSpaces>True</TabsToSpaces>
- <NoTabsAfterNonTabs>True</NoTabsAfterNonTabs>
- <RemoveTrailingWhitespace>True</RemoveTrailingWhitespace>
- <EolMarker>Native</EolMarker>
-</TextStylePolicy> \ No newline at end of file
diff --git a/extras/PyBinding/PyBinding/Resources/Schema.sql b/extras/PyBinding/PyBinding/Resources/Schema.sql
deleted file mode 100644
index b26928aa12..0000000000
--- a/extras/PyBinding/PyBinding/Resources/Schema.sql
+++ /dev/null
@@ -1,11 +0,0 @@
-CREATE TABLE IF NOT EXISTS Items (
- FullName varchar PRIMARY KEY,
- Depth integer,
- FileName varchar,
- LineNumber integer,
- ItemType integer,
- Pydoc varchar,
- Extra varchar
-);
-
-CREATE INDEX IF NOT EXISTS Items_Depth_Index ON Items (Depth);
diff --git a/extras/PyBinding/PyBinding/Resources/completion.py b/extras/PyBinding/PyBinding/Resources/completion.py
deleted file mode 100755
index 3faaffe84b..0000000000
--- a/extras/PyBinding/PyBinding/Resources/completion.py
+++ /dev/null
@@ -1,334 +0,0 @@
-#!/usr/bin/python -u
-#
-# Copyright (c) 2008 Christian Hergert <chris@dronelabs.com>
-#
-# Permission is hereby granted, free of charge, to any person obtaining a copy
-# of this software and associated documentation files (the "Software"), to deal
-# in the Software without restriction, including without limitation the rights
-# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-# copies of the Software, and to permit persons to whom the Software is
-# furnished to do so, subject to the following conditions:
-#
-# The above copyright notice and this permission notice shall be included in
-# all copies or substantial portions of the Software.
-#
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-# THE SOFTWARE.
-
-"""
-This module provides a simple xml serialization of the file parsed
-so that we may use it to fill code completion data within MonoDevelop.
-
-<module>
- <import name="os" from=""/>
- <class name="MyClass">
- <doc>This is a method that does something</doc>
- <attribute name="frobnicate" />
- <function name="do_something">
- <argument name="fork_off" />
- <argument name="*args" />
- <argument name="**kwargs" />
- <local name="tmp" />
- </function>
- </class>parent, node.attrname
- <function name="module_func"/>
- <attribute name="MODULE_ATTR"/>
-</module>
-"""
-
-try:
- from cStringIO import StringIO
-except ImportError:
- from StringIO import StringIO
-
-from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer
-import cgi
-import compiler
-import os
-import sys
-import threading
-import time
-from xml.etree.ElementTree import ElementTree, Element
-
-POLL_INTERVAL = 5.0
-
-class XmlASTVisitor(compiler.visitor.ASTVisitor):
- """
- XmlASTVisitor is a simple visitor that will build an xml hierarchy
- representing the code being parsed. This is intended to be the basic
- IPC so that we might add python code completion to MonoDevelop.
- """
-
- def __init__(self):
- """
- Initializes the visitor and sets the stream to be used for
- outputing xml data.
- """
- compiler.visitor.ASTVisitor.__init__(self)
-
- self.tree = ElementTree(element = Element('module'))
- self.root = self.tree.getroot()
-
- def append(self, parent, child):
- if parent is None:
- parent = self.root
- parent.append(child)
-
- def walkChildren(self, node, parent = None):
- for child in node.getChildNodes():
- child.parent = node
- self.dispatch(child, parent)
-
- def default(self, node, parent = None):
- self.walkChildren(node, parent)
-
- def _haschildattr(self, element, key, value):
- for child in element.getiterator():
- if child.get(key, None) == value:
- return True
- return False
-
- def visitAssAttr(self, node, parent=None):
- if hasattr(node.expr, 'name'):
- if node.expr.name == 'self' and parent:
- # walk up until we reach the parent class
- while parent:
- # add attriute child if one does not exist for attrname
- if parent.tag == 'class' \
- and not self._haschildattr(parent, 'name', node.attrname):
- element = Element('attribute')
- element.set('name', node.attrname)
- element.set('line', str(node.lineno - 1)) # convert to md base
- self.append(parent, element)
- break
- parent = self.getParent(parent)
-
- def visitAssName(self, node, parent = None):
- element = Element('attribute')
- element.set('name', node.name)
- element.set('line', str(node.lineno - 1))
- self.append(parent, element)
-
- def visitClass(self, node, parent = None):
- # build the class element
- element = Element('class')
- element.set('name', node.name)
- element.set('line', str(node.lineno))
-
- # get the end of the class
- def walk(n,e):
- for c in n.getChildNodes():
- if c.lineno > e:
- e = c.lineno
- e = walk(c,e)
- return e
- endline = walk(node, node.lineno)
- element.set('endline', str(endline))
-
- # add class docs
- if node.doc:
- docElement = Element('doc')
- docElement.text = node.doc
- element.append(docElement)
-
- # add ourselves to the hierarchy
- self.append(parent, element)
-
- # walk our children, now we are the parent
- self.walkChildren(node, element)
-
- def visitFrom(self, node, parent = None):
- for name in node.names:
- element = Element('import')
- element.set('line', str(node.lineno))
- element.set('module', node.modname + '.' + name[0])
- element.set('name', name[1] or name[0])
- self.append(parent, element)
-
- def visitFunction(self, node, parent = None):
- element = Element('function')
- element.set('name', node.name)
- element.set('line', str(node.lineno))
-
- # get the end of the function
- def walk(n,e):
- for c in n.getChildNodes():
- if c.lineno > e:
- e = c.lineno
- e = walk(c,e)
- return e
- endline = walk(node, node.lineno)
- element.set('endline', str(endline))
-
- # add our function arguments
- for pos, name in zip(range(len(node.argnames)), node.argnames):
- argElement = Element('argument')
- argElement.set('pos', str(pos))
- argElement.set('name', name)
- element.append(argElement)
-
- if node.kwargs and node.varargs:
- element[-1].set('name', '**' + element[-1].get('name'))
- element[-2].set('name', '*' + element[-2].get('name'))
- elif node.varargs:
- element[-1].set('name', '*' + element[-1].get('name'))
- elif node.kwargs:
- element[-1].set('name', '**' + element[-1].get('name'))
-
- # add function docs
- if node.doc:
- docElement = Element('doc')
- docElement.text = node.doc
- element.append(docElement)
-
- # add ourselves to the hierarchy
- self.append(parent, element)
-
- # walk our children, now we are the parent
- self.walkChildren(node, element)
-
- def visitImport(self, node, parent = None):
- for name in node.names:
- element = Element('import')
- element.set('line', str(node.lineno))
- element.set('name', name[1] or name[0])
- element.set('module', name[0])
- self.append(parent, element)
-
- def getParent(self, element):
- for parent in self.tree.getiterator():
- for child in parent:
- if child == element:
- return parent
-
-class ParseHandler(BaseHTTPRequestHandler):
- """
- This handler will take in an HTTP request containing the body
- of a python program and return an HTTP response with an xml
- encoding of the AST.
- """
- def do_POST(self):
- length, _ = cgi.parse_header(self.headers.getheader('content-length'))
- inContent = self.rfile.read(int(length))
- outContent = ""
-
- try:
- tmpStream = StringIO()
- self.parse(inContent, tmpStream)
- tmpStream.seek(0)
-
- self.send_response(200)
- outContent = tmpStream.read()
- except Exception, ex:
- self.send_response(200)
- outContent = '<error>%s</error>' % str(ex)
-
- self.send_header('Content-type', 'application/xml')
- self.end_headers()
- self.wfile.write(outContent)
-
- def parse(self, content, outStream):
- parse(content, outStream)
-
-def parse(content, outStream):
- visitor = XmlASTVisitor()
-
- try:
- # get our AST for the file
- mod = compiler.parse(content)
-
- # build our xml heirarchy of data
- visitor.preorder(mod, visitor, None)
-
- # add our total line count. we should have a better
- # way to do this. but oh well, we are a subprocess
- # so it shouldnt hurt us too bad
- root = visitor.tree.getroot()
- root.set('line', '0')
- root.set('endline', str(len(content.split('\n'))))
-
- # use pyflakes for warnings
- try:
- from pyflakes import checker
- pyChecker = checker.Checker(mod)
- root = visitor.tree.getroot()
- for warning in pyChecker.messages:
- element = Element('warning')
- element.set('line', str(warning.lineno))
- element.text = warning.message % warning.message_args
- root.append(element)
- except ImportError:
- pass
-
- visitor.tree.write(outStream)
- except SyntaxError, ex:
- lineno = hasattr(ex, 'lineno') and ex.lineno or 0
- offset = hasattr(ex, 'offset') and ex.offset or 0
- outStream.write('<error line="%d" column="%d">%s</error>' % (lineno, offset, str(ex)))
- except TypeError, ex:
- outStream.write('<error line="0" column="0">Invalid characters were found in the file. Could not parse.</error>')
-
-def main():
- if len(sys.argv[1:]) and sys.argv[1] == "MAGIC_TEST":
- if len(sys.argv[2:]):
- fName = sys.argv[2]
- else:
- fName = 'completion.py'
- parse(file(fName).read(), sys.stdout)
- print
- sys.exit(0)
-
- # generate a random port by opening a socket, and then closing it
- import socket
- s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
- s.bind(('127.0.0.1', 0))
- _, port = s.getsockname()
- s.close()
-
- # create a thread to watch the parent process if needed
- if 'WATCH_PID' in os.environ:
- try:
- pid = int(os.environ['WATCH_PID'])
- def watcher():
- def pid_exists(pid):
- import errno
- try:
- os.kill(pid, 0)
- return 1
- except OSError, err:
- return err.errno == errno.EPERM
-
- # poll on the same timeout as our http server.
- # i dont like forcing wake-ups in applications, but
- # i think its acceptable in the case of an IDE.
- while True:
- if not pid_exists(pid):
- sys.exit()
- time.sleep(POLL_INTERVAL)
- t = threading.Thread(target=watcher)
- t.daemon = True
- t.start()
- except:
- pass
-
- server = HTTPServer(('', port), ParseHandler)
- print >> sys.stdout, 'Listening on port %d' % port
- try:
- # requires python2.6
- server.serve_forever(poll_interval=POLL_INTERVAL)
- except TypeError:
- server.serve_forever()
-
-if __name__ == '__main__':
- try:
- main()
- except Exception, ex:
- logfile = os.path.expanduser('~/.config/MonoDevelop/PyBinding/completion.log')
- log = file(logfile, 'a')
- log.write(str(ex) + '\n')
- log.close()
diff --git a/extras/PyBinding/PyBinding/Resources/py-icon-32.png b/extras/PyBinding/PyBinding/Resources/py-icon-32.png
deleted file mode 100644
index f108497f68..0000000000
--- a/extras/PyBinding/PyBinding/Resources/py-icon-32.png
+++ /dev/null
Binary files differ
diff --git a/extras/PyBinding/PyBinding/Resources/text-x-pysrc.16x16.png b/extras/PyBinding/PyBinding/Resources/text-x-pysrc.16x16.png
deleted file mode 100644
index bb4552c7b3..0000000000
--- a/extras/PyBinding/PyBinding/Resources/text-x-pysrc.16x16.png
+++ /dev/null
Binary files differ
diff --git a/extras/PyBinding/PyBinding/gtk-gui/PyBinding.Gui.PythonOptionsWidget.cs b/extras/PyBinding/PyBinding/gtk-gui/PyBinding.Gui.PythonOptionsWidget.cs
deleted file mode 100644
index ac6a20136c..0000000000
--- a/extras/PyBinding/PyBinding/gtk-gui/PyBinding.Gui.PythonOptionsWidget.cs
+++ /dev/null
@@ -1,240 +0,0 @@
-
-// This file has been generated by the GUI designer. Do not modify.
-namespace PyBinding.Gui
-{
- public partial class PythonOptionsWidget
- {
- private global::Gtk.VBox vbox1;
- private global::Gtk.Label label1;
- private global::Gtk.Alignment alignment1;
- private global::Gtk.Table table1;
- private global::Gtk.Label label2;
- private global::Gtk.Label label4;
- private global::Gtk.Label label5;
- private global::Gtk.Entry m_ModuleEntry;
- private global::Gtk.CheckButton m_OptimizeCheckBox;
- private global::Gtk.Entry m_PythonOptions;
- private global::Gtk.ComboBox m_RuntimeCombo;
- private global::MonoDevelop.Components.FileEntry m_RuntimeFileEntry;
- private global::Gtk.Label label3;
- private global::Gtk.Alignment alignment2;
- private global::Gtk.HBox hbox1;
- private global::Gtk.ScrolledWindow scrolledwindow1;
- private global::Gtk.TreeView m_PathsTreeView;
- private global::Gtk.VBox vbox2;
- private global::Gtk.Button m_AddPathButton;
- private global::Gtk.Button m_RemovePathButton;
-
- protected virtual void Build ()
- {
- global::Stetic.Gui.Initialize (this);
- // Widget PyBinding.Gui.PythonOptionsWidget
- global::Stetic.BinContainer.Attach (this);
- this.Name = "PyBinding.Gui.PythonOptionsWidget";
- // Container child PyBinding.Gui.PythonOptionsWidget.Gtk.Container+ContainerChild
- this.vbox1 = new global::Gtk.VBox ();
- this.vbox1.Name = "vbox1";
- this.vbox1.Spacing = 6;
- // Container child vbox1.Gtk.Box+BoxChild
- this.label1 = new global::Gtk.Label ();
- this.label1.Name = "label1";
- this.label1.Xalign = 0F;
- this.label1.LabelProp = global::Mono.Unix.Catalog.GetString ("<span weight=\"bold\">Runtime</span>");
- this.label1.UseMarkup = true;
- this.vbox1.Add (this.label1);
- global::Gtk.Box.BoxChild w1 = ((global::Gtk.Box.BoxChild)(this.vbox1 [this.label1]));
- w1.Position = 0;
- w1.Expand = false;
- w1.Fill = false;
- // Container child vbox1.Gtk.Box+BoxChild
- this.alignment1 = new global::Gtk.Alignment (0.5F, 0.5F, 1F, 1F);
- this.alignment1.Name = "alignment1";
- this.alignment1.LeftPadding = ((uint)(12));
- // Container child alignment1.Gtk.Container+ContainerChild
- this.table1 = new global::Gtk.Table (((uint)(6)), ((uint)(2)), false);
- this.table1.Name = "table1";
- this.table1.RowSpacing = ((uint)(6));
- this.table1.ColumnSpacing = ((uint)(6));
- // Container child table1.Gtk.Table+TableChild
- this.label2 = new global::Gtk.Label ();
- this.label2.Name = "label2";
- this.label2.LabelProp = global::Mono.Unix.Catalog.GetString ("Runtime location:");
- this.table1.Add (this.label2);
- global::Gtk.Table.TableChild w2 = ((global::Gtk.Table.TableChild)(this.table1 [this.label2]));
- w2.TopAttach = ((uint)(1));
- w2.BottomAttach = ((uint)(2));
- w2.XOptions = ((global::Gtk.AttachOptions)(4));
- w2.YOptions = ((global::Gtk.AttachOptions)(4));
- // Container child table1.Gtk.Table+TableChild
- this.label4 = new global::Gtk.Label ();
- this.label4.Name = "label4";
- this.label4.LabelProp = global::Mono.Unix.Catalog.GetString ("Python _Options:");
- this.label4.UseUnderline = true;
- this.table1.Add (this.label4);
- global::Gtk.Table.TableChild w3 = ((global::Gtk.Table.TableChild)(this.table1 [this.label4]));
- w3.TopAttach = ((uint)(2));
- w3.BottomAttach = ((uint)(3));
- w3.XOptions = ((global::Gtk.AttachOptions)(4));
- w3.YOptions = ((global::Gtk.AttachOptions)(4));
- // Container child table1.Gtk.Table+TableChild
- this.label5 = new global::Gtk.Label ();
- this.label5.Name = "label5";
- this.label5.LabelProp = global::Mono.Unix.Catalog.GetString ("Default _Module:");
- this.label5.UseUnderline = true;
- this.table1.Add (this.label5);
- global::Gtk.Table.TableChild w4 = ((global::Gtk.Table.TableChild)(this.table1 [this.label5]));
- w4.TopAttach = ((uint)(3));
- w4.BottomAttach = ((uint)(4));
- w4.XOptions = ((global::Gtk.AttachOptions)(4));
- w4.YOptions = ((global::Gtk.AttachOptions)(4));
- // Container child table1.Gtk.Table+TableChild
- this.m_ModuleEntry = new global::Gtk.Entry ();
- this.m_ModuleEntry.CanFocus = true;
- this.m_ModuleEntry.Name = "m_ModuleEntry";
- this.m_ModuleEntry.IsEditable = true;
- this.m_ModuleEntry.InvisibleChar = '●';
- this.table1.Add (this.m_ModuleEntry);
- global::Gtk.Table.TableChild w5 = ((global::Gtk.Table.TableChild)(this.table1 [this.m_ModuleEntry]));
- w5.TopAttach = ((uint)(3));
- w5.BottomAttach = ((uint)(4));
- w5.LeftAttach = ((uint)(1));
- w5.RightAttach = ((uint)(2));
- w5.YOptions = ((global::Gtk.AttachOptions)(4));
- // Container child table1.Gtk.Table+TableChild
- this.m_OptimizeCheckBox = new global::Gtk.CheckButton ();
- this.m_OptimizeCheckBox.CanFocus = true;
- this.m_OptimizeCheckBox.Name = "m_OptimizeCheckBox";
- this.m_OptimizeCheckBox.Label = global::Mono.Unix.Catalog.GetString ("Optimize byte-code output");
- this.m_OptimizeCheckBox.DrawIndicator = true;
- this.m_OptimizeCheckBox.UseUnderline = true;
- this.table1.Add (this.m_OptimizeCheckBox);
- global::Gtk.Table.TableChild w6 = ((global::Gtk.Table.TableChild)(this.table1 [this.m_OptimizeCheckBox]));
- w6.TopAttach = ((uint)(4));
- w6.BottomAttach = ((uint)(5));
- w6.RightAttach = ((uint)(2));
- w6.YOptions = ((global::Gtk.AttachOptions)(4));
- // Container child table1.Gtk.Table+TableChild
- this.m_PythonOptions = new global::Gtk.Entry ();
- this.m_PythonOptions.CanFocus = true;
- this.m_PythonOptions.Name = "m_PythonOptions";
- this.m_PythonOptions.IsEditable = true;
- this.m_PythonOptions.InvisibleChar = '●';
- this.table1.Add (this.m_PythonOptions);
- global::Gtk.Table.TableChild w7 = ((global::Gtk.Table.TableChild)(this.table1 [this.m_PythonOptions]));
- w7.TopAttach = ((uint)(2));
- w7.BottomAttach = ((uint)(3));
- w7.LeftAttach = ((uint)(1));
- w7.RightAttach = ((uint)(2));
- w7.XOptions = ((global::Gtk.AttachOptions)(4));
- w7.YOptions = ((global::Gtk.AttachOptions)(4));
- // Container child table1.Gtk.Table+TableChild
- this.m_RuntimeCombo = global::Gtk.ComboBox.NewText ();
- this.m_RuntimeCombo.Name = "m_RuntimeCombo";
- this.table1.Add (this.m_RuntimeCombo);
- global::Gtk.Table.TableChild w8 = ((global::Gtk.Table.TableChild)(this.table1 [this.m_RuntimeCombo]));
- w8.RightAttach = ((uint)(2));
- w8.XOptions = ((global::Gtk.AttachOptions)(4));
- w8.YOptions = ((global::Gtk.AttachOptions)(4));
- // Container child table1.Gtk.Table+TableChild
- this.m_RuntimeFileEntry = new global::MonoDevelop.Components.FileEntry ();
- this.m_RuntimeFileEntry.Name = "m_RuntimeFileEntry";
- this.table1.Add (this.m_RuntimeFileEntry);
- global::Gtk.Table.TableChild w9 = ((global::Gtk.Table.TableChild)(this.table1 [this.m_RuntimeFileEntry]));
- w9.TopAttach = ((uint)(1));
- w9.BottomAttach = ((uint)(2));
- w9.LeftAttach = ((uint)(1));
- w9.RightAttach = ((uint)(2));
- w9.XOptions = ((global::Gtk.AttachOptions)(4));
- w9.YOptions = ((global::Gtk.AttachOptions)(4));
- this.alignment1.Add (this.table1);
- this.vbox1.Add (this.alignment1);
- global::Gtk.Box.BoxChild w11 = ((global::Gtk.Box.BoxChild)(this.vbox1 [this.alignment1]));
- w11.Position = 1;
- w11.Expand = false;
- // Container child vbox1.Gtk.Box+BoxChild
- this.label3 = new global::Gtk.Label ();
- this.label3.Name = "label3";
- this.label3.Xalign = 0F;
- this.label3.LabelProp = global::Mono.Unix.Catalog.GetString ("<span weight=\"bold\">Module Paths</span>");
- this.label3.UseMarkup = true;
- this.vbox1.Add (this.label3);
- global::Gtk.Box.BoxChild w12 = ((global::Gtk.Box.BoxChild)(this.vbox1 [this.label3]));
- w12.Position = 2;
- w12.Expand = false;
- w12.Fill = false;
- // Container child vbox1.Gtk.Box+BoxChild
- this.alignment2 = new global::Gtk.Alignment (0.5F, 0.5F, 1F, 1F);
- this.alignment2.Name = "alignment2";
- this.alignment2.LeftPadding = ((uint)(12));
- // Container child alignment2.Gtk.Container+ContainerChild
- this.hbox1 = new global::Gtk.HBox ();
- this.hbox1.Name = "hbox1";
- this.hbox1.Spacing = 6;
- // Container child hbox1.Gtk.Box+BoxChild
- this.scrolledwindow1 = new global::Gtk.ScrolledWindow ();
- this.scrolledwindow1.CanFocus = true;
- this.scrolledwindow1.Name = "scrolledwindow1";
- this.scrolledwindow1.ShadowType = ((global::Gtk.ShadowType)(1));
- // Container child scrolledwindow1.Gtk.Container+ContainerChild
- global::Gtk.Viewport w13 = new global::Gtk.Viewport ();
- w13.ShadowType = ((global::Gtk.ShadowType)(0));
- // Container child GtkViewport.Gtk.Container+ContainerChild
- this.m_PathsTreeView = new global::Gtk.TreeView ();
- this.m_PathsTreeView.CanFocus = true;
- this.m_PathsTreeView.Name = "m_PathsTreeView";
- w13.Add (this.m_PathsTreeView);
- this.scrolledwindow1.Add (w13);
- this.hbox1.Add (this.scrolledwindow1);
- global::Gtk.Box.BoxChild w16 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.scrolledwindow1]));
- w16.Position = 0;
- // Container child hbox1.Gtk.Box+BoxChild
- this.vbox2 = new global::Gtk.VBox ();
- this.vbox2.Name = "vbox2";
- this.vbox2.Spacing = 6;
- // Container child vbox2.Gtk.Box+BoxChild
- this.m_AddPathButton = new global::Gtk.Button ();
- this.m_AddPathButton.CanFocus = true;
- this.m_AddPathButton.Name = "m_AddPathButton";
- this.m_AddPathButton.UseStock = true;
- this.m_AddPathButton.UseUnderline = true;
- this.m_AddPathButton.Label = "gtk-add";
- this.vbox2.Add (this.m_AddPathButton);
- global::Gtk.Box.BoxChild w17 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.m_AddPathButton]));
- w17.Position = 0;
- w17.Expand = false;
- w17.Fill = false;
- // Container child vbox2.Gtk.Box+BoxChild
- this.m_RemovePathButton = new global::Gtk.Button ();
- this.m_RemovePathButton.Sensitive = false;
- this.m_RemovePathButton.CanFocus = true;
- this.m_RemovePathButton.Name = "m_RemovePathButton";
- this.m_RemovePathButton.UseStock = true;
- this.m_RemovePathButton.UseUnderline = true;
- this.m_RemovePathButton.Label = "gtk-remove";
- this.vbox2.Add (this.m_RemovePathButton);
- global::Gtk.Box.BoxChild w18 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.m_RemovePathButton]));
- w18.Position = 1;
- w18.Expand = false;
- w18.Fill = false;
- this.hbox1.Add (this.vbox2);
- global::Gtk.Box.BoxChild w19 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.vbox2]));
- w19.Position = 1;
- w19.Expand = false;
- w19.Fill = false;
- this.alignment2.Add (this.hbox1);
- this.vbox1.Add (this.alignment2);
- global::Gtk.Box.BoxChild w21 = ((global::Gtk.Box.BoxChild)(this.vbox1 [this.alignment2]));
- w21.Position = 3;
- this.Add (this.vbox1);
- if ((this.Child != null)) {
- this.Child.ShowAll ();
- }
- this.label2.MnemonicWidget = this.alignment2;
- this.label4.MnemonicWidget = this.m_PythonOptions;
- this.label5.MnemonicWidget = this.m_ModuleEntry;
- this.Show ();
- this.m_AddPathButton.Clicked += new global::System.EventHandler (this.AddPath_Clicked);
- this.m_RemovePathButton.Clicked += new global::System.EventHandler (this.RemovePath_Clicked);
- }
- }
-}
diff --git a/extras/PyBinding/PyBinding/gtk-gui/generated.cs b/extras/PyBinding/PyBinding/gtk-gui/generated.cs
deleted file mode 100644
index aa96390c4a..0000000000
--- a/extras/PyBinding/PyBinding/gtk-gui/generated.cs
+++ /dev/null
@@ -1,82 +0,0 @@
-
-// This file has been generated by the GUI designer. Do not modify.
-namespace Stetic
-{
- internal class Gui
- {
- private static bool initialized;
-
- static internal void Initialize (Gtk.Widget iconRenderer)
- {
- if ((Stetic.Gui.initialized == false)) {
- Stetic.Gui.initialized = true;
- }
- }
- }
-
- internal class BinContainer
- {
- private Gtk.Widget child;
-
- private Gtk.UIManager uimanager;
-
- public static BinContainer Attach (Gtk.Bin bin)
- {
- BinContainer bc = new BinContainer ();
- bin.SizeRequested += new Gtk.SizeRequestedHandler (bc.OnSizeRequested);
- bin.SizeAllocated += new Gtk.SizeAllocatedHandler (bc.OnSizeAllocated);
- bin.Added += new Gtk.AddedHandler (bc.OnAdded);
- return bc;
- }
-
- private void OnSizeRequested (object sender, Gtk.SizeRequestedArgs args)
- {
- if ((this.child != null)) {
- args.Requisition = this.child.SizeRequest ();
- }
- }
-
- private void OnSizeAllocated (object sender, Gtk.SizeAllocatedArgs args)
- {
- if ((this.child != null)) {
- this.child.Allocation = args.Allocation;
- }
- }
-
- private void OnAdded (object sender, Gtk.AddedArgs args)
- {
- this.child = args.Widget;
- }
-
- public void SetUiManager (Gtk.UIManager uim)
- {
- this.uimanager = uim;
- this.child.Realized += new System.EventHandler (this.OnRealized);
- }
-
- private void OnRealized (object sender, System.EventArgs args)
- {
- if ((this.uimanager != null)) {
- Gtk.Widget w;
- w = this.child.Toplevel;
- if (((w != null) && typeof(Gtk.Window).IsInstanceOfType (w))) {
- ((Gtk.Window)(w)).AddAccelGroup (this.uimanager.AccelGroup);
- this.uimanager = null;
- }
- }
- }
- }
-
- internal class ActionGroups
- {
- public static Gtk.ActionGroup GetActionGroup (System.Type type)
- {
- return Stetic.ActionGroups.GetActionGroup (type.FullName);
- }
-
- public static Gtk.ActionGroup GetActionGroup (string name)
- {
- return null;
- }
- }
-}
diff --git a/extras/PyBinding/PyBinding/gtk-gui/gui.stetic b/extras/PyBinding/PyBinding/gtk-gui/gui.stetic
deleted file mode 100644
index fbcc958a92..0000000000
--- a/extras/PyBinding/PyBinding/gtk-gui/gui.stetic
+++ /dev/null
@@ -1,350 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<stetic-interface>
- <configuration>
- <images-root-path>..</images-root-path>
- <target-gtk-version>2.12</target-gtk-version>
- </configuration>
- <import>
- <widget-library name="Mono.TextEditor, Version=1.0.0.0, Culture=neutral" />
- <widget-library name="MonoDevelop.Gettext, Version=2.6.0.0, Culture=neutral" />
- <widget-library name="MonoDevelop.Ide, Version=2.6.0.0, Culture=neutral" />
- <widget-library name="MonoDevelop.GtkCore, Version=2.6.0.0, Culture=neutral" />
- <widget-library name="MonoDevelop.SourceEditor2, Version=2.6.0.0, Culture=neutral" />
- <widget-library name="MonoDevelop.Debugger, Version=2.6.0.0, Culture=neutral" />
- <widget-library name="MonoDevelop.Refactoring, Version=2.6.0.0, Culture=neutral" />
- <widget-library name="MonoDevelop.VersionControl, Version=2.6.0.0, Culture=neutral" />
- <widget-library name="MonoDevelop.NUnit, Version=2.6.0.0, Culture=neutral" />
- <widget-library name="MonoDevelop.XmlEditor, Version=2.6.0.0, Culture=neutral" />
- <widget-library name="MonoDevelop.AspNet, Version=2.6.0.0, Culture=neutral" />
- <widget-library name="MonoDevelop.Deployment, Version=2.6.0.0, Culture=neutral" />
- <widget-library name="MonoDevelop.Deployment.Linux, Version=2.6.0.0, Culture=neutral" />
- <widget-library name="MonoDevelop.DesignerSupport, Version=2.6.0.0, Culture=neutral" />
- <widget-library name="MonoDevelop.VBNetBinding, Version=2.6.0.0, Culture=neutral" />
- <widget-library name="MonoDevelop.CBinding, Version=2.6.0.0, Culture=neutral" />
- <widget-library name="MonoDevelop.CSharpBinding, Version=2.6.0.0, Culture=neutral" />
- <widget-library name="MonoDevelop.Debugger.Soft, Version=2.6.0.0, Culture=neutral" />
- <widget-library name="../../build/PyBinding.dll" internal="true" />
- </import>
- <widget class="Gtk.Bin" id="PyBinding.Gui.PythonOptionsWidget" design-size="491 382">
- <property name="MemberName" />
- <child>
- <widget class="Gtk.VBox" id="vbox1">
- <property name="MemberName" />
- <property name="Spacing">6</property>
- <child>
- <widget class="Gtk.Label" id="label1">
- <property name="MemberName" />
- <property name="Xalign">0</property>
- <property name="LabelProp" translatable="yes">&lt;span weight="bold"&gt;Runtime&lt;/span&gt;</property>
- <property name="UseMarkup">True</property>
- </widget>
- <packing>
- <property name="Position">0</property>
- <property name="AutoSize">True</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Alignment" id="alignment1">
- <property name="MemberName" />
- <property name="LeftPadding">12</property>
- <child>
- <widget class="Gtk.Table" id="table1">
- <property name="MemberName" />
- <property name="NRows">6</property>
- <property name="NColumns">2</property>
- <property name="RowSpacing">6</property>
- <property name="ColumnSpacing">6</property>
- <child>
- <placeholder />
- </child>
- <child>
- <placeholder />
- </child>
- <child>
- <widget class="Gtk.Label" id="label2">
- <property name="MemberName" />
- <property name="LabelProp" translatable="yes">Runtime location:</property>
- <property name="MnemonicWidget">alignment2</property>
- </widget>
- <packing>
- <property name="TopAttach">1</property>
- <property name="BottomAttach">2</property>
- <property name="AutoSize">True</property>
- <property name="XOptions">Fill</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">False</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Label" id="label4">
- <property name="MemberName" />
- <property name="LabelProp" translatable="yes">Python _Options:</property>
- <property name="UseUnderline">True</property>
- <property name="MnemonicWidget">m_PythonOptions</property>
- </widget>
- <packing>
- <property name="TopAttach">2</property>
- <property name="BottomAttach">3</property>
- <property name="AutoSize">True</property>
- <property name="XOptions">Fill</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">False</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Label" id="label5">
- <property name="MemberName" />
- <property name="LabelProp" translatable="yes">Default _Module:</property>
- <property name="UseUnderline">True</property>
- <property name="MnemonicWidget">m_ModuleEntry</property>
- </widget>
- <packing>
- <property name="TopAttach">3</property>
- <property name="BottomAttach">4</property>
- <property name="AutoSize">False</property>
- <property name="XOptions">Fill</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">False</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Entry" id="m_ModuleEntry">
- <property name="MemberName" />
- <property name="CanFocus">True</property>
- <property name="IsEditable">True</property>
- <property name="InvisibleChar">●</property>
- </widget>
- <packing>
- <property name="TopAttach">3</property>
- <property name="BottomAttach">4</property>
- <property name="LeftAttach">1</property>
- <property name="RightAttach">2</property>
- <property name="AutoSize">False</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">True</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.CheckButton" id="m_OptimizeCheckBox">
- <property name="MemberName" />
- <property name="CanFocus">True</property>
- <property name="Label" translatable="yes">Optimize byte-code output</property>
- <property name="DrawIndicator">True</property>
- <property name="HasLabel">True</property>
- <property name="UseUnderline">True</property>
- </widget>
- <packing>
- <property name="TopAttach">4</property>
- <property name="BottomAttach">5</property>
- <property name="RightAttach">2</property>
- <property name="AutoSize">False</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">True</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Entry" id="m_PythonOptions">
- <property name="MemberName" />
- <property name="CanFocus">True</property>
- <property name="IsEditable">True</property>
- <property name="InvisibleChar">●</property>
- </widget>
- <packing>
- <property name="TopAttach">2</property>
- <property name="BottomAttach">3</property>
- <property name="LeftAttach">1</property>
- <property name="RightAttach">2</property>
- <property name="AutoSize">True</property>
- <property name="XOptions">Fill</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">False</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.ComboBox" id="m_RuntimeCombo">
- <property name="MemberName" />
- <property name="IsTextCombo">True</property>
- <property name="Items" translatable="yes" />
- </widget>
- <packing>
- <property name="RightAttach">2</property>
- <property name="AutoSize">True</property>
- <property name="XOptions">Fill</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">False</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="MonoDevelop.Components.FileEntry" id="m_RuntimeFileEntry">
- <property name="MemberName" />
- </widget>
- <packing>
- <property name="TopAttach">1</property>
- <property name="BottomAttach">2</property>
- <property name="LeftAttach">1</property>
- <property name="RightAttach">2</property>
- <property name="AutoSize">True</property>
- <property name="XOptions">Fill</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">False</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- </widget>
- </child>
- </widget>
- <packing>
- <property name="Position">1</property>
- <property name="AutoSize">False</property>
- <property name="Expand">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Label" id="label3">
- <property name="MemberName" />
- <property name="Xalign">0</property>
- <property name="LabelProp" translatable="yes">&lt;span weight="bold"&gt;Module Paths&lt;/span&gt;</property>
- <property name="UseMarkup">True</property>
- </widget>
- <packing>
- <property name="Position">2</property>
- <property name="AutoSize">True</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Alignment" id="alignment2">
- <property name="MemberName" />
- <property name="LeftPadding">12</property>
- <child>
- <widget class="Gtk.HBox" id="hbox1">
- <property name="MemberName" />
- <property name="Spacing">6</property>
- <child>
- <widget class="Gtk.ScrolledWindow" id="scrolledwindow1">
- <property name="MemberName" />
- <property name="CanFocus">True</property>
- <property name="ShadowType">In</property>
- <child>
- <widget class="Gtk.Viewport" id="GtkViewport">
- <property name="MemberName" />
- <property name="ShadowType">None</property>
- <child>
- <widget class="Gtk.TreeView" id="m_PathsTreeView">
- <property name="MemberName" />
- <property name="CanFocus">True</property>
- <property name="ShowScrollbars">True</property>
- </widget>
- </child>
- </widget>
- </child>
- </widget>
- <packing>
- <property name="Position">0</property>
- <property name="AutoSize">True</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.VBox" id="vbox2">
- <property name="MemberName" />
- <property name="Spacing">6</property>
- <child>
- <widget class="Gtk.Button" id="m_AddPathButton">
- <property name="MemberName" />
- <property name="CanFocus">True</property>
- <property name="UseStock">True</property>
- <property name="Type">StockItem</property>
- <property name="StockId">gtk-add</property>
- <signal name="Clicked" handler="AddPath_Clicked" />
- <property name="label">gtk-add</property>
- </widget>
- <packing>
- <property name="Position">0</property>
- <property name="AutoSize">True</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Button" id="m_RemovePathButton">
- <property name="MemberName" />
- <property name="Sensitive">False</property>
- <property name="CanFocus">True</property>
- <property name="UseStock">True</property>
- <property name="Type">StockItem</property>
- <property name="StockId">gtk-remove</property>
- <signal name="Clicked" handler="RemovePath_Clicked" />
- <property name="label">gtk-remove</property>
- </widget>
- <packing>
- <property name="Position">1</property>
- <property name="AutoSize">True</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <placeholder />
- </child>
- </widget>
- <packing>
- <property name="Position">1</property>
- <property name="AutoSize">True</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- </widget>
- </child>
- </widget>
- <packing>
- <property name="Position">3</property>
- <property name="AutoSize">False</property>
- </packing>
- </child>
- </widget>
- </child>
- </widget>
-</stetic-interface>
diff --git a/extras/PyBinding/PyBinding/gtk-gui/objects.xml b/extras/PyBinding/PyBinding/gtk-gui/objects.xml
deleted file mode 100644
index 2c33b19d32..0000000000
--- a/extras/PyBinding/PyBinding/gtk-gui/objects.xml
+++ /dev/null
@@ -1,2 +0,0 @@
-<objects attr-sync="on">
-</objects> \ No newline at end of file
diff --git a/extras/PyBinding/PyBinding/monodevelop-pybinding.pc.in b/extras/PyBinding/PyBinding/monodevelop-pybinding.pc.in
deleted file mode 100644
index e94879eb3b..0000000000
--- a/extras/PyBinding/PyBinding/monodevelop-pybinding.pc.in
+++ /dev/null
@@ -1,6 +0,0 @@
-Name: PyBinding
-Description: PyBinding
-Version:
-
-Requires:
-Libs: -r:@expanded_libdir@/@PACKAGE@/PyBinding.dll
diff --git a/extras/PyBinding/README b/extras/PyBinding/README
deleted file mode 100644
index 170a73bded..0000000000
--- a/extras/PyBinding/README
+++ /dev/null
@@ -1,7 +0,0 @@
-This addin provides support for the standard cPython runtime. It is in no
-way supporting IronPython. If you wish to have IronPython support, look
-at bringing PythonBinding up to date. The reason for this is that an
-IronPython binding would want to inherit DotNetProject and that makes no
-sense for cPython.
-
--- Christian Hergert
diff --git a/extras/PyBinding/TODO b/extras/PyBinding/TODO
deleted file mode 100644
index 34ff52ee7a..0000000000
--- a/extras/PyBinding/TODO
+++ /dev/null
@@ -1,50 +0,0 @@
-The following list are ideas that we should look into supporting in
-this addin.
-
-Code Completion
-
- * Complete items in modules
-
-Parser
-
- * Index installed system modules
-
-Gui
-
- * Support project based space settings so python projects
- can have 4 spaces instead of tab. [MonoDevelop.Projects]
- - Support the MonoDevelop Class Pad
- - Auto Indentation
- * Interactive Python Console (Terminal)
- - Integrate with the Text Editor region combo boxes
- * Setuptools support (like autotools)
- - Support the Document pad
-
-Refactoring / Code Coverage
-
- * Extract method
- * Rename method
- * Rename class
- * Code Coverage of methods during runtime
- * UML diagrams
-
-Debugger / Profiler
-
- * Integrate pdb to the Debugger engine
- * Add python profiler as well
- * Remote debugging
-
-Templates
-
- - Basic Shell Script
- * Gtk app
- * Gnome app
- * Clutter app
- * PyQT app
- * Twisted python
-
-Unit Testing
-
- * Twisted trial unit tests
- * PyUnit
-
diff --git a/extras/PyBinding/configure b/extras/PyBinding/configure
deleted file mode 100755
index be22b989f0..0000000000
--- a/extras/PyBinding/configure
+++ /dev/null
@@ -1,161 +0,0 @@
-#!/usr/bin/env bash
-VERSION=4.2.3
-PACKAGE=monodevelop-python
-prefix=/usr/local
-config=DEBUG
-configurations=" RELEASE DEBUG"
-common_packages=" gtk-sharp-2.0;2.12.8 mono-addins;0.3 monodevelop;4.2.3 monodevelop-core-addins;2.7"
-
-
-usage ()
-{
- echo "Usage : configure [OPTION]... [--config=CONFIG]"
- echo
- echo "Options:"
- echo " --prefix=PREFIX install architecture-independent files in PREFIX"
- echo " [/usr/local]"
- echo " --bindir=DIR user executables [PREFIX/bin]"
- echo " --datadir=DIR read-only architecture-independent data [PREFIX/share]"
- echo " --libdir=DIR object code libraries [PREFIX/lib]"
- echo
- echo "Configurations available :"
- for c in $configurations; do
- if [ "$c" = "$config" ]; then
- echo " $c (Default)"
- else
- echo " $c"
- fi
- done
-}
-
-validate_config ()
-{
- test -z "$1" && return 0
- for c in $configurations; do
- if [ "$c" = "$1" ]; then
- return 1
- fi
- done
- return 0
-}
-
-check_package ()
-{
- name=`echo $1 | cut -d\; -f1`
- version=`echo $1 | cut -d\; -f2`
-
- echo -n "Checking for package '$name'.." | tee -a config.log
- pkg-config --atleast-version=$version $name
- if [ $? -ne 0 ]; then
- echo " ERROR: Package named '$name' >= $version not found." | tee -a config.log
- echo "Try adjusting your PKG_CONFIG_PATH environment variable." | tee -a config.log
- return 1
- fi
- echo " found." | tee -a config.log
-}
-
-check_required_packages ()
-{
- echo "Looking for required packages" | tee config.log
- var=required_packages_$config
- for pkg in $common_packages ${!var}; do
- check_package $pkg
- retval=$?
- [ $retval -ne 0 ] && return $retval
- done
- return 0
-}
-
-while test x$1 != x; do
- case $1 in
- --prefix=*)
- prefix=`echo $1 | sed 's/--prefix=//'`
- ;;
- --prefix)
- shift
- prefix=$1
- ;;
- --libdir=*)
- libdir=`echo $1 | sed 's/--libdir=//'`
- ;;
- --libdir)
- shift
- libdir=$1
- ;;
- --bindir=*)
- bindir=`echo $1 | sed 's/--bindir=//'`
- ;;
- --bindir)
- shift
- bindir=$1
- ;;
- --datadir=*)
- datadir=`echo $1 | sed 's/--datadir=//'`
- ;;
- --datadir)
- shift
- datadir=$1
- ;;
- --config=*)
- conf=`echo $1 | sed 's/--config=//'`
- validate_config "$conf"
- if [ $? -eq 1 ]; then
- config=$conf
- else
- echo "Invalid config name - $conf"
- usage
- exit 1
- fi
- ;;
- --help)
- usage
- exit
- ;;
- *)
- echo Unknown argument $1 >&2
- usage
- exit 1
- ;;
- esac
- shift
-done
-
-check_required_packages
-[ $? -eq 1 ] && exit 1
-
-if [ -z "$libdir" ]; then
- libdir=$prefix/lib
-fi
-if [ -z "$bindir" ]; then
- bindir=$prefix/bin
-fi
-if [ -z "$datadir" ]; then
- datadir=$prefix/share
-fi
-
-sed -e "s,@VERSION@,$VERSION," < monodevelop-python.spec.in > monodevelop-python.spec
-
-echo "prefix=$prefix" > config.make
-echo "libdir=$libdir" >> config.make
-echo "bindir=$bindir" >> config.make
-echo "datadir=$datadir" >> config.make
-echo "RUNTIME=mono" >> config.make
-echo "ASSEMBLY_VERSION=$VERSION.0.0" >> config.make
-echo "VERSION=$VERSION" >> config.make
-echo "PACKAGE=$PACKAGE" >> config.make
-echo "CONFIG=$config" >> config.make
-
-echo
-echo "$PACKAGE has been configured with "
-echo " prefix = $prefix"
-if [ "$libdir" != "$prefix/lib" ]; then
- echo " libdir = $libdir"
-fi
-if [ "$bindir" != "$prefix/bin" ]; then
- echo " bindir = $bindir"
-fi
-if [ "$datadir" != "$prefix/share" ]; then
- echo " datadir = $datadir"
-fi
-echo " config = $config"
-echo
diff --git a/extras/PyBinding/monodevelop-python.spec.in b/extras/PyBinding/monodevelop-python.spec.in
deleted file mode 100644
index 5e172ff073..0000000000
--- a/extras/PyBinding/monodevelop-python.spec.in
+++ /dev/null
@@ -1,75 +0,0 @@
-#
-# spec file for package monodevelop-python
-#
-# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
-#
-# All modifications and additions to the file contributed by third parties
-# remain the property of their copyright owners, unless otherwise agreed
-# upon. The license for this file, and modifications and additions to the
-# file, is the same license as for the pristine package itself (unless the
-# license for the pristine package is not an Open Source License, in which
-# case the license is the MIT License). An "Open Source License" is a
-# license that conforms to the Open Source Definition (Version 1.9)
-# published by the Open Source Initiative.
-
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
-#
-
-# norootforbuild
-
-
-Name: monodevelop-python
-Version: @VERSION@
-Release: 1
-License: MIT/X11
-AutoReqProv: on
-BuildArch: noarch
-Url: http://www.monodevelop.com
-Source: %{name}-%{version}.tar.bz2
-BuildRoot: %{_tmppath}/%{name}-%{version}-build
-BuildRequires: mono-devel monodevelop >= %{version}
-Requires: monodevelop >= %{version}
-Requires: python
-Summary: Monodevelop Python Addin
-Group: Development/Tools
-
-%if 0%{?fedora_version}
-%define env_options export MONO_SHARED_DIR=/tmp
-%endif
-
-%description
-Python support for MonoDevelop.
-
-%files
-%defattr(-, root, root)
-%_prefix/lib/monodevelop/AddIns/PyBinding/
-%_prefix/share/pkgconfig/monodevelop-pybinding.pc
-
-%prep
-%setup -q
-
-%build
-%{?env_options}
-./configure --prefix=%_prefix
-make
-
-%install
-%{?env_options}
-make install DESTDIR=${RPM_BUILD_ROOT}
-
-mkdir -p $RPM_BUILD_ROOT%_prefix/share/pkgconfig
-mv $RPM_BUILD_ROOT%_prefix/lib/pkgconfig/*.pc $RPM_BUILD_ROOT%_prefix/share/pkgconfig
-
-#%find_lang %{name}
-
-%clean
-rm -rf "$RPM_BUILD_ROOT"
-
-%if 0%{?fedora_version} || 0%{?rhel_version}
-# Allows overrides of __find_provides in fedora distros... (already set to zero on newer suse distros)
-%define _use_internal_dependency_generator 0
-%endif
-%define __find_provides env sh -c 'filelist=($(cat)) && { printf "%s\\n" "${filelist[@]}" | /usr/lib/rpm/find-provides && printf "%s\\n" "${filelist[@]}" | /usr/bin/mono-find-provides ; } | sort | uniq'
-%define __find_requires env sh -c 'filelist=($(cat)) && { printf "%s\\n" "${filelist[@]}" | /usr/lib/rpm/find-requires && printf "%s\\n" "${filelist[@]}" | /usr/bin/mono-find-requires ; } | sort | uniq'
-
-%changelog
diff --git a/extras/PyBinding/rules.make b/extras/PyBinding/rules.make
deleted file mode 100644
index a4f37a1fd1..0000000000
--- a/extras/PyBinding/rules.make
+++ /dev/null
@@ -1,42 +0,0 @@
-clean-local:
- make pre-clean-local-hook
- make $(CONFIG)_BeforeClean
- -rm -f $(call quote_each,$(CLEANFILES))
- make $(CONFIG)_AfterClean
- make post-clean-local-hook
-
-install-local:
-uninstall-local:
-
-q2quote = '$(subst ?, ,$1)'
-quote_each = $(foreach f,$(call s2q,$1),$(call q2quote,$f))
-
-dist-local:
- make pre-dist-local-hook "distdir=$$distdir"
- for f in Makefile $(call quote_each,$(EXTRA_DIST)); do \
- d=`dirname "$$f"`; \
- test -d "$(distdir)/$$d" || \
- mkdir -p "$(distdir)/$$d"; \
- cp -p "$$f" "$(distdir)/$$d" || exit 1; \
- done
- make post-dist-local-hook "distdir=$$distdir"
-
-dist-local-recursive:
- for dir in $(call quote_each,$(SUBDIRS)); do \
- mkdir -p "$(distdir)/$$dir" || true; \
- case "$$dir" in \
- .) make dist-local "distdir=$(distdir)" || exit 1;; \
- *) (cd "$$dir"; make dist-local "distdir=$(distdir)/$$dir") || exit 1; \
- esac \
- done
-
-#hooks: Available hooks - all, clean, install, uninstall and dist
-# and their *-local variants
-pre-%-hook: ; @:
-post-%-hook: ; @:
-
-#targets for custom commands
-%_BeforeBuild: ; @:
-%_AfterBuild: ; @:
-%_BeforeClean: ; @:
-%_AfterClean: ; @:
diff --git a/extras/PythonBinding/AssemblyInfo.cs b/extras/PythonBinding/AssemblyInfo.cs
deleted file mode 100644
index 1b47f14101..0000000000
--- a/extras/PythonBinding/AssemblyInfo.cs
+++ /dev/null
@@ -1,14 +0,0 @@
-using System.Reflection;
-using System.Runtime.CompilerServices;
-
-[assembly: AssemblyTitle("PythonBinding")]
-[assembly: AssemblyDescription("Python binding for MonoDevelop")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("")]
-[assembly: AssemblyProduct("")]
-[assembly: AssemblyCopyright("(c) 2004 John Luke")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-[assembly: AssemblyVersion("0.0.0.0")]
-[assembly: AssemblyDelaySign(false)]
-[assembly: AssemblyKeyFile("")]
diff --git a/extras/PythonBinding/ChangeLog b/extras/PythonBinding/ChangeLog
deleted file mode 100644
index ac87094fba..0000000000
--- a/extras/PythonBinding/ChangeLog
+++ /dev/null
@@ -1,19 +0,0 @@
-2008-01-15 Michael Hutchinson <mhutchinson@novell.com>
-
- * templates/PythonConsoleProject.xpt.xml,
- templates/PythonGtkProject.xpt.xml: Make template categories
- translatable.
-
-2007-11-21 Lluis Sanchez Gual <lluis@novell.com>
-
- * Project/PythonCompilerParameters.cs: Removed some obsolete attributes.
-
-2007-08-09 Lluis Sanchez Gual <lluis@novell.com>
-
- * PythonBinding.addin.xml: Reorganized the extension point hierarchy.
- Embedded all add-in manifests as resources.
-
-2006-04-07 David Makovský (Yakeen) <yakeen@sannyas-on.net>
-
- * PythonBinding.addin.xml: Added "/SharpDevelop/Workbench/FileFilter" extension
-
diff --git a/extras/PythonBinding/Gui/CompilerParametersPanel.cs b/extras/PythonBinding/Gui/CompilerParametersPanel.cs
deleted file mode 100644
index 3f01476814..0000000000
--- a/extras/PythonBinding/Gui/CompilerParametersPanel.cs
+++ /dev/null
@@ -1,81 +0,0 @@
-using System;
-using System.IO;
-using Gtk;
-
-using MonoDevelop.Projects;
-using MonoDevelop.Internal.ExternalTool;
-using MonoDevelop.Core.Gui.Dialogs;
-using MonoDevelop.Core;
-using MonoDevelop.Core.Properties;
-using MonoDevelop.Core;
-
-namespace PythonBinding
-{
- public class CompilerParametersPanel : AbstractOptionPanel
- {
- PythonCompilerParameters compilerParameters = null;
- Entry outputPath = new Entry ();
- Entry assemblyName = new Entry ();
- RadioButton exeTarget = new RadioButton ("exe");
- RadioButton dllTarget;
- CheckButton debug = new CheckButton (GettextCatalog.GetString ("Include debug information"));
-
- public override void LoadPanelContents()
- {
- this.compilerParameters = (PythonCompilerParameters)((IProperties)CustomizationObject).GetProperty("Config");
-
- dllTarget = new RadioButton (exeTarget, "dll");
- SetupUI ();
- RestoreValues ();
- this.ShowAll ();
- }
-
- public override bool StorePanelContents()
- {
- compilerParameters.AssemblyName = assemblyName.Text;
- compilerParameters.OutputPath = outputPath.Text;
- compilerParameters.IncludeDebugInformation = debug.Active;
- if (exeTarget.Active)
- compilerParameters.CompilationTarget = CompilationTarget.Exe;
- else
- compilerParameters.CompilationTarget = CompilationTarget.Dll;
-
- return true;
- }
-
- void SetupUI ()
- {
- VBox vbox = new VBox (false, 6);
-
- Label outputLabel = new Label ();
- outputLabel.Markup = String.Format ("<b>{0}</b>", GettextCatalog.GetString ("Output path"));
- vbox.PackStart (outputLabel, false, true, 0);
- vbox.PackStart (outputPath, false, true, 0);
-
- Label assemblyLabel = new Label ();
- assemblyLabel.Markup = String.Format ("<b>{0}</b>", GettextCatalog.GetString ("Assembly name"));
- vbox.PackStart (assemblyLabel, false, true, 0);
- vbox.PackStart (assemblyName, false, true, 0);
-
- Label targetLabel = new Label ();
- targetLabel.Markup = String.Format ("<b>{0}</b>", GettextCatalog.GetString ("Target options"));
- vbox.PackStart (targetLabel, false, true, 0);
- vbox.PackStart (exeTarget, false, true, 0);
- vbox.PackStart (dllTarget, false, true, 0);
- vbox.PackStart (debug, false, true, 0);
-
- this.Add (vbox);
- }
-
- void RestoreValues ()
- {
- assemblyName.Text = compilerParameters.AssemblyName;
- outputPath.Text = compilerParameters.OutputPath;
- if (compilerParameters.CompilationTarget == CompilationTarget.Exe)
- exeTarget.Active = true;
- else
- dllTarget.Active = true;
- debug.Active = compilerParameters.IncludeDebugInformation;
- }
- }
-}
diff --git a/extras/PythonBinding/Makefile b/extras/PythonBinding/Makefile
deleted file mode 100644
index 2807a84215..0000000000
--- a/extras/PythonBinding/Makefile
+++ /dev/null
@@ -1,45 +0,0 @@
-
-CSC = mcs /debug
-ASSEMBLY = PythonBinding.dll
-ADDIN = PythonBinding.addin.xml
-
-TEMPLATE1 = templates/PythonConsoleProject.xpt.xml
-TEMPLATE2 = templates/PythonGtkProject.xpt.xml
-
-DLLS = /r:../../Core/build/bin/MonoDevelop.Core.dll \
- /r:../../Core/build/bin/MonoDevelop.Base.dll \
- /r:../../Core/build/bin/MonoDevelop.SourceEditor.dll \
- /r:../../Core/build/bin/MonoDevelop.Gui.Widgets.dll \
- -pkg:gtk-sharp-2.0
-
-# $(BASE_DEPENDENCIES_LIBS)
-
-FILES = \
-./Gui/CompilerParametersPanel.cs \
-./Project/CompilationTarget.cs \
-./Project/PythonProject.cs \
-./Project/PythonCompilerParameters.cs \
-./PythonCompilerManager.cs \
-./AssemblyInfo.cs \
-./PythonLanguageBinding.cs \
-./PythonExecutionManager.cs
-
-#build_sources = $(addprefix $(srcdir)/, $(FILES))
-
-#assemblydir = $(libdir)/monodevelop/AddIns/AddIns/BackendBindings
-#assembly_DATA = $(ASSEMBLY)
-
-all: $(ASSEMBLY)
-
-$(ASSEMBLY): $(FILES)
- $(CSC) $(FILES) $(DLLS) /out:$(ASSEMBLY) /target:library \
- && cp $(ASSEMBLY) ../../Core/build/AddIns/AddIns/BackendBindings/. \
- && cp $(ADDIN) ../../Core/build/AddIns/AddIns/BackendBindings/. \
- && cp $(TEMPLATE1) ../../Core/build/AddIns/AddIns/BackendBindings/templates/. \
- && cp $(TEMPLATE2) ../../Core/build/AddIns/AddIns/BackendBindings/templates/.
-
-#CLEANFILES = $(ASSEMBLY)
-#EXTRA_DIST = $(FILES)
-
-clean:
- rm -f $(ASSEMBLY)
diff --git a/extras/PythonBinding/Project/CompilationTarget.cs b/extras/PythonBinding/Project/CompilationTarget.cs
deleted file mode 100644
index 95f1bfeaff..0000000000
--- a/extras/PythonBinding/Project/CompilationTarget.cs
+++ /dev/null
@@ -1,11 +0,0 @@
-using System;
-
-namespace PythonBinding
-{
- public enum CompilationTarget
- {
- Exe,
- Dll,
- }
-}
-
diff --git a/extras/PythonBinding/Project/PythonCompilerParameters.cs b/extras/PythonBinding/Project/PythonCompilerParameters.cs
deleted file mode 100644
index d7033c9d3f..0000000000
--- a/extras/PythonBinding/Project/PythonCompilerParameters.cs
+++ /dev/null
@@ -1,103 +0,0 @@
-using System;
-using System.ComponentModel;
-using System.IO;
-using System.Text;
-using System.Xml;
-
-using MonoDevelop.Core.Gui.Components;
-using MonoDevelop.Projects;
-
-namespace PythonBinding
-{
- /// <summary>
- /// This class handles project specific compiler parameters
- /// </summary>
- public class PythonCompilerParameters : ProjectConfiguration
- {
- CompilerOptions compilerOptions = new CompilerOptions ();
-
- public CompilerOptions CurrentCompilerOptions {
- get {
- return compilerOptions;
- }
- }
-
- public string OutputPath {
- get {
- return OutputDirectory;
- }
- set {
- OutputDirectory = value;
- }
- }
-
- public string AssemblyName {
- get {
- return OutputAssembly;
- }
- set {
- OutputAssembly = value;
- }
- }
-
- [DefaultValue(CompilationTarget.Exe)]
- public CompilationTarget CompilationTarget {
- get {
- return compilerOptions.compilationTarget;
- }
- set {
- compilerOptions.compilationTarget = value;
- }
- }
-
- [DefaultValue(false)]
- public bool IncludeDebugInformation {
- get {
- return compilerOptions.includeDebugInformation;
- }
- set {
- compilerOptions.includeDebugInformation = value;
- }
- }
-
- public PythonCompilerParameters ()
- {
- }
-
- public PythonCompilerParameters (string name)
- {
- this.name = name;
- }
-
- [XmlNodeName("CompilerOptions")]
- public class CompilerOptions
- {
- [XmlAttribute("compilationTarget")]
- public CompilationTarget compilationTarget = CompilationTarget.Exe;
-
- [XmlAttribute("includeDebugInformation")]
- internal bool includeDebugInformation = false;
-
- public string GenerateOptions ()
- {
- StringBuilder options = new StringBuilder ();
- switch (compilationTarget) {
- case PythonBinding.CompilationTarget.Dll:
- options.Append ("/dll ");
- break;
- case PythonBinding.CompilationTarget.Exe:
- options.Append ("/exe ");
- break;
- default:
- throw new System.NotSupportedException ("Unsupported compilation target : " + compilationTarget);
- }
-
- if (includeDebugInformation) {
- options.Append ("/DEBUG ");
- }
-
- return options.ToString ();
- }
- }
- }
-}
diff --git a/extras/PythonBinding/Project/PythonProject.cs b/extras/PythonBinding/Project/PythonProject.cs
deleted file mode 100644
index e8674c143a..0000000000
--- a/extras/PythonBinding/Project/PythonProject.cs
+++ /dev/null
@@ -1,41 +0,0 @@
-using System;
-using System.IO;
-using System.Collections;
-using System.Xml;
-
-using MonoDevelop.Projects;
-
-namespace PythonBinding
-{
- public class PythonProject : AbstractProject
- {
- public override string ProjectType {
- get {
- return PythonLanguageBinding.LanguageName;
- }
- }
-
- public override SolutionItemConfiguration CreateConfiguration ()
- {
- return new PythonCompilerParameters ();
- }
-
- public PythonProject ()
- {
- }
-
- public PythonProject (ProjectCreateInformation info, XmlElement projectOptions)
- {
- if (info != null) {
- Name = info.ProjectName;
- Configurations.Add (CreateConfiguration ("Debug"));
- Configurations.Add (CreateConfiguration ("Release"));
- foreach (PythonCompilerParameters parameter in Configurations) {
- parameter.OutputDirectory = Path.Combine (info.BinPath, parameter.Name);
- parameter.OutputAssembly = Name;
- }
- }
- }
- }
-}
-
diff --git a/extras/PythonBinding/PythonBinding.addin.xml b/extras/PythonBinding/PythonBinding.addin.xml
deleted file mode 100644
index 2eba5e13a9..0000000000
--- a/extras/PythonBinding/PythonBinding.addin.xml
+++ /dev/null
@@ -1,45 +0,0 @@
-<AddIn id = "PythonBinding"
- name = "Python Language Binding"
- author = "John Luke"
- copyright = "GPL"
- url = "http://www.monodevelop.com"
- description = "Python Language Binding"
- category = "Language bindings"
- version = "0.7">
-
- <Runtime>
- <Import assembly = "PythonBinding.dll"/>
- </Runtime>
-
- <Dependencies>
- <AddIn id="MonoDevelop.Ide" version="0.9.0"/>
- </Dependencies>
-
- <Extension path = "/MonoDevelop/Ide/FileFilters">
- <FileFilter id = "Python"
- _label = "Python Files"
- extensions = "*.py"/>
- </Extension>
-
- <Extension path = "/MonoDevelop/Ide/ProjectTemplates">
- <ProjectTemplate id = "PythonConsoleProject"
- resource = "templates/PythonConsoleProject.xpt.xml"/>
- <ProjectTemplate id = "PythonGtkProject"
- resource = "templates/PythonGtkProject.xpt.xml"/>
- </Extension>
-
- <Extension path = "/MonoDevelop/ProjectModel/Gui/ProjectOptions">
- <Conditional activeproject = "Python">
- <DialogPanel id = "PythonCompilerParametersPanel"
- _label = "Compiler"
- class = "PythonBinding.CompilerParametersPanel"/>
- </Conditional>
- </Extension>
-
- <Extension path = "/MonoDevelop/ProjectModel/LanguageBindings">
- <LanguageBinding id = "Python"
- supportedextensions = ".py"
- class = "PythonBinding.PythonLanguageBinding"/>
- </Extension>
-
-</AddIn>
diff --git a/extras/PythonBinding/PythonCompilerManager.cs b/extras/PythonBinding/PythonCompilerManager.cs
deleted file mode 100644
index e14b371404..0000000000
--- a/extras/PythonBinding/PythonCompilerManager.cs
+++ /dev/null
@@ -1,67 +0,0 @@
-using System;
-using System.IO;
-using System.CodeDom.Compiler;
-using Gtk;
-
-using MonoDevelop.Core.Gui.Components;
-using MonoDevelop.Core;
-using MonoDevelop.Core;
-using MonoDevelop.Projects;
-
-
-namespace PythonBinding
-{
- public class PythonCompilerManager
- {
- public string GetCompiledOutputName (string fileName)
- {
- return Path.ChangeExtension (fileName, ".exe");
- }
-
- public string GetCompiledOutputName (IProject project)
- {
- PythonProject p = (PythonProject) project;
- PythonCompilerParameters compilerparameters = (PythonCompilerParameters) p.ActiveConfiguration;
- string exe = Runtime.FileService.GetDirectoryNameWithSeparator (compilerparameters.OutputDirectory) + compilerparameters.OutputAssembly + ".exe";
- return exe;
- }
-
- public bool CanCompile (string fileName)
- {
- return Path.GetExtension (fileName).ToLower () == ".py";
- }
-
- BuildResult Compile (PythonCompilerParameters compilerparameters, string[] fileNames)
- {
- // just pretend we compiled
- // and leave it to the runtime for now
- return new BuildResult (new CompilerResults (new TempFileCollection ()), "");
- }
-
- public BuildResult CompileFile (string fileName, PythonCompilerParameters compilerparameters)
- {
- // just pretend we compiled
- // and leave it to the runtime for now
- return new BuildResult (new CompilerResults (new TempFileCollection ()), "");
- }
-
- public BuildResult CompileProject (IProject project)
- {
- // just pretend we compiled
- // and leave it to the runtime for now
- return new BuildResult (new CompilerResults (new TempFileCollection ()), "");
- }
-
- string GetCompilerName ()
- {
- return "IronPythonConsole";
- }
-
- BuildResult ParseOutput (TempFileCollection tf, StreamReader sr)
- {
- // just pretend we compiled
- // and leave it to the runtime for now
- return new BuildResult (new CompilerResults (new TempFileCollection ()), "");
- }
- }
-}
diff --git a/extras/PythonBinding/PythonExecutionManager.cs b/extras/PythonBinding/PythonExecutionManager.cs
deleted file mode 100644
index 59926754c9..0000000000
--- a/extras/PythonBinding/PythonExecutionManager.cs
+++ /dev/null
@@ -1,52 +0,0 @@
-using System;
-using System.IO;
-using System.Diagnostics;
-using System.Collections;
-using System.Reflection;
-using System.Xml;
-using System.CodeDom.Compiler;
-using Gtk;
-
-using MonoDevelop.Projects;
-
-using MonoDevelop.Core;
-using MonoDevelop.Core;
-
-namespace PythonBinding
-{
- public class PythonExecutionManager
- {
- public void Execute (string filename, bool debug)
- {
- ProcessStartInfo psi = new ProcessStartInfo ("IronPythonConsole", filename);
- psi.WorkingDirectory = Path.GetDirectoryName (filename);
- psi.UseShellExecute = false;
- }
-
- public void Execute(IProject project, bool debug)
- {
- //PythonCompilerParameters parameters = (PythonCompilerParameters) project.ActiveConfiguration;
- //FileUtilityService fileUtilityService = (FileUtilityService) ServiceManager.GetService (typeof (FileUtilityService));
-
- string files = "";
-
- foreach (ProjectFile finfo in project.ProjectFiles) {
- if (finfo.Subtype != Subtype.Directory) {
- switch (finfo.BuildAction) {
- case BuildAction.Compile:
- files += String.Format ("{0} ", finfo.Name);
- break;
- }
- }
- }
- Console.WriteLine (files);
-
- string fullCommand = String.Format ("-e \"IronPythonConsole {0};read -p 'press any key to continue...' -n1\"", files);
- ProcessStartInfo psi = new ProcessStartInfo ("xterm", fullCommand);
- //psi.WorkingDirectory = Path.GetDirectoryName (exe);
- psi.UseShellExecute = false;
- Process p = Process.Start (psi);
- p.WaitForExit ();
- }
- }
-}
diff --git a/extras/PythonBinding/PythonLanguageBinding.cs b/extras/PythonBinding/PythonLanguageBinding.cs
deleted file mode 100644
index 5030ca3327..0000000000
--- a/extras/PythonBinding/PythonLanguageBinding.cs
+++ /dev/null
@@ -1,129 +0,0 @@
-// PythonLanguageBinding.cs
-//
-// This file was derived from a file from #Develop.
-//
-// Copyright (C) 2001-2007 Mike Krüger <mkrueger@novell.com>
-//
-// This program is free software; you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation; either version 2 of the License, or
-// (at your option) any later version.
-//
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with this program; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-
-using System;
-using System.IO;
-using System.Diagnostics;
-using System.Collections;
-using System.Reflection;
-using System.Resources;
-using System.Xml;
-using System.CodeDom.Compiler;
-using System.Threading;
-using Gtk;
-
-using MonoDevelop.Projects;
-
-
-namespace PythonBinding
-{
- public class PythonLanguageBinding : IDotNetLanguageBinding
- {
- public const string LanguageName = "Python";
-
- PythonExecutionManager executionManager = new PythonExecutionManager();
- PythonCompilerManager compilerManager = new PythonCompilerManager();
-
- public string Language {
- get {
- return LanguageName;
- }
- }
-
- public void Execute(string filename)
- {
- Execute (filename, false);
- }
-
- public void Execute(string filename, bool debug)
- {
- Debug.Assert(executionManager != null);
- executionManager.Execute(filename, debug);
- }
-
- public void Execute (IProject project)
- {
- Execute (project, false);
- }
-
- public void DebugProject (IProject project)
- {
- Execute (project, true);
- }
-
- public void Execute(IProject project, bool debug)
- {
- Debug.Assert(executionManager != null);
- executionManager.Execute(project, debug);
- }
-
- public string GetCompiledOutputName(string fileName)
- {
- Debug.Assert(compilerManager != null);
- return compilerManager.GetCompiledOutputName(fileName);
- }
-
- public string GetCompiledOutputName(IProject project)
- {
- Debug.Assert(compilerManager != null);
- return compilerManager.GetCompiledOutputName(project);
- }
-
- public bool IsSourceCodeFile (string fileName)
- {
- Debug.Assert(compilerManager != null);
- return compilerManager.CanCompile(fileName);
- }
-
- public BuildResult CompileFile(string fileName)
- {
- Debug.Assert(compilerManager != null);
- PythonCompilerParameters param = new PythonCompilerParameters();
- param.OutputAssembly = Path.ChangeExtension(fileName, ".exe");
- return compilerManager.CompileFile(fileName, param);
- }
-
- public BuildResult CompileProject(IProject project)
- {
- Debug.Assert(compilerManager != null);
- return compilerManager.CompileProject(project);
- }
-
- public BuildResult RecompileProject(IProject project)
- {
- return CompileProject(project);
- }
-
- public IProject CreateProject(ProjectCreateInformation info, XmlElement projectOptions)
- {
- return new PythonProject(info, projectOptions);
- }
-
- public void GenerateMakefile (IProject project, Combine parentCombine)
- {
- throw new NotImplementedException ();
- }
-
- public string CommentTag
- {
- get { return "#"; }
- }
- }
-}
diff --git a/extras/PythonBinding/README b/extras/PythonBinding/README
deleted file mode 100644
index f27a3547dd..0000000000
--- a/extras/PythonBinding/README
+++ /dev/null
@@ -1,7 +0,0 @@
-
-This is a binding for IronPython and MonoDevelop.
-See http://ironpython.com
-
-You will need to have IronPythonConsole an executable in
-your path that executes the interpreter correctly.
-
diff --git a/extras/PythonBinding/TODO b/extras/PythonBinding/TODO
deleted file mode 100644
index 0d52865b9b..0000000000
--- a/extras/PythonBinding/TODO
+++ /dev/null
@@ -1,3 +0,0 @@
-
-- allow compile & run instead of fake compile & run
-- options and stuff
diff --git a/extras/PythonBinding/templates/PythonConsoleProject.xpt.xml b/extras/PythonBinding/templates/PythonConsoleProject.xpt.xml
deleted file mode 100644
index 463411cdd8..0000000000
--- a/extras/PythonBinding/templates/PythonConsoleProject.xpt.xml
+++ /dev/null
@@ -1,33 +0,0 @@
-<?xml version="1.0"?>
-<Template originator = "John Luke"
- created = "04/25/2004"
- lastModified = "04/25/2004">
-
- <!-- Template Header -->
- <TemplateConfiguration>
- <_Name>Python Console Project</_Name>
- <_Category>Python</_Category>
- <Icon>C#.Project.DOSProject</Icon>
- <LanguageName>Python</LanguageName>
- <_Description>Python Console Project</_Description>
- </TemplateConfiguration>
-
- <!-- Actions -->
- <Actions>
- <Open filename = "main.py"/>
- </Actions>
-
- <!-- Template Content -->
- <Combine name = "${ProjectName}" directory = ".">
- <Options>
- <StartupProject>${ProjectName}</StartupProject>
- </Options>
-
- <Project name = "${ProjectName}" directory = ".">
- <Options/>
- <Files>
- <File name="main.py"><![CDATA[print "hello"]]></File>
- </Files>
- </Project>
- </Combine>
-</Template>
diff --git a/extras/PythonBinding/templates/PythonGtkProject.xpt.xml b/extras/PythonBinding/templates/PythonGtkProject.xpt.xml
deleted file mode 100644
index a9e2a56b93..0000000000
--- a/extras/PythonBinding/templates/PythonGtkProject.xpt.xml
+++ /dev/null
@@ -1,48 +0,0 @@
-<?xml version="1.0"?>
-<Template originator = "John Luke"
- created = "04/25/2004"
- lastModified = "04/25/2004">
-
- <!-- Template Header -->
- <TemplateConfiguration>
- <_Name>Python Gtk Project</_Name>
- <_Category>Python</_Category>
- <Icon>C#.Project.DOSProject</Icon>
- <LanguageName>Python</LanguageName>
- <_Description>Python Gtk Project</_Description>
- </TemplateConfiguration>
-
- <!-- Actions -->
- <Actions>
- <Open filename = "main.py"/>
- </Actions>
-
- <!-- Template Content -->
- <Combine name = "${ProjectName}" directory = ".">
- <Options>
- <StartupProject>${ProjectName}</StartupProject>
- </Options>
-
- <Project name = "${ProjectName}" directory = ".">
- <Options/>
- <Files>
- <!-- this is the included IronPython example -->
- <File name="main.py"><![CDATA[import Gtk
-
-Gtk.Application.Init()
-w = Gtk.Window("hello world")
-w.DeleteEvent += lambda *ignore: Gtk.Application.Quit()
-
-b = Gtk.Button("click me")
-
-def say_hello(o, args): print "hello"
-
-b.Clicked += say_hello
-
-w.Add(b)
-w.ShowAll()
-Gtk.Application.Run()]]></File>
- </Files>
- </Project>
- </Combine>
-</Template>
diff --git a/extras/ValaBinding/AUTHORS b/extras/ValaBinding/AUTHORS
deleted file mode 100644
index bb8ffddcba..0000000000
--- a/extras/ValaBinding/AUTHORS
+++ /dev/null
@@ -1,2 +0,0 @@
-Levi Bard <taktaktaktaktaktaktaktaktaktak@gmail.com>
-Jerome Haltom <wasabi@larvalstage.net>
diff --git a/extras/ValaBinding/AssemblyInfo.cs b/extras/ValaBinding/AssemblyInfo.cs
deleted file mode 100644
index 32180f7659..0000000000
--- a/extras/ValaBinding/AssemblyInfo.cs
+++ /dev/null
@@ -1,9 +0,0 @@
-// Autogenerated from ValaBinding.addin.xml
-
-using System.Reflection;
-
-[assembly: AssemblyProduct ("MonoDevelop")]
-[assembly: AssemblyTitle ("Vala Language Binding")]
-[assembly: AssemblyDescription ("Vala Language binding")]
-[assembly: AssemblyVersion ("2.6")]
-[assembly: AssemblyCopyright ("MIT/X11")]
diff --git a/extras/ValaBinding/COPYING b/extras/ValaBinding/COPYING
deleted file mode 100644
index 7b89c47e75..0000000000
--- a/extras/ValaBinding/COPYING
+++ /dev/null
@@ -1,19 +0,0 @@
-Copyright (c) 2008 Levi Bard
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/extras/ValaBinding/ChangeLog b/extras/ValaBinding/ChangeLog
deleted file mode 100644
index 5fc82de1b8..0000000000
--- a/extras/ValaBinding/ChangeLog
+++ /dev/null
@@ -1,628 +0,0 @@
-2010-07-21 Mike Krüger <mkrueger@novell.com>
-
- * Gui/DataProvider.cs:
- * Gui/ValaTextEditorExtension.cs: Track API changes.
-
-2010-07-12 Michael Hutchinson <mhutchinson@novell.com>
-
- * ValaBinding.addin.xml:
- * Parser/ValaDocumentParser.cs: Track ProjectDomService/Parser
- API.
-
-2010-06-14 Lluis Sanchez Gual <lluis@novell.com>
-
- * configure.in: Bump MD version.
-
-2010-05-20 Lluis Sanchez Gual <lluis@novell.com>
-
- * configure.in: Bump MD version.
-
-2010-05-11 Michael Hutchinson <mhutchinson@novell.com>
-
- * Gui/ValaTextEditorExtension.cs: Remove unneeded filename
- checks, now it's handled by the addin tree.
-
-2010-05-11 Michael Hutchinson <mhutchinson@novell.com>
-
- * ValaBinding.addin.xml: Restrict editor extensions by file
- type.
-
-2010-03-22 Lluis Sanchez Gual <lluis@novell.com>
-
- * configure.in:
- * AssemblyInfo.cs:
- * ValaBinding.addin.xml: Bumped MD version.
-
-2010-03-22 Mike Krüger <mkrueger@novell.com>
-
- * templates/ValaTestFixture.xpt.xml:
- * templates/ConsoleValaProject.xpt.xml:
- * templates/EmptyValaSourceFile.xft.xml:
- * templates/SharedLibraryValaProject.xpt.xml: Fixed 'Bug
- 589786 - new vala files don't include the standard header'.
-
-2010-03-17 Lluis Sanchez Gual <lluis@novell.com>
-
- * ValaBinding.csproj: Flush.
-
-2010-03-17 Lluis Sanchez Gual <lluis@novell.com>
-
- * Parser/Afrodite.cs:
- * gtk-gui/gui.stetic:
- * Gui/DataProvider.cs:
- * ValaBinding.addin.xml:
- * Project/ValaProject.cs:
- * Compiler/ValaCompiler.cs:
- * Gui/EditPackagesDialog.cs:
- * Gui/OutputOptionsPanel.cs:
- * Gui/CodeGenerationPanel.cs:
- * Gui/GeneralOptionsPanel.cs:
- * Parser/ProjectInformation.cs:
- * Gui/ValaTextEditorExtension.cs:
- * Navigation/LanguageItemNodeBuilder.cs:
- * ProjectPad/ProjectPackageNodeBuilder.cs:
- * Navigation/LanguageItemCommandHandler.cs:
- * Navigation/ProjectNodeBuilderExtension.cs:
- * ProjectPad/ProjectPackagesFolderNodeBuilder.cs: Merged
- MD.Projects into MD.Core, and MD.Projects.Gui, MD.Core.Gui
- and MD.Components into MD.Ide.
-
-2010-03-12 Levi Bard <taktaktaktaktaktaktaktaktaktak@gmail.com>
-
- * configure.in: Change autofoo to check for afrodite.
-
-2010-03-03 Michael Hutchinson <mhutchinson@novell.com>
-
- * Project/ValaProject.cs: Track ProjectFile Link API.
-
-2010-03-01 Levi Bard <taktaktaktaktaktaktaktaktaktak@gmail.com>
-
- * Gui/DataProvider.cs:
- * Parser/ProjectInformation.cs:
- * Gui/ValaTextEditorExtension.cs: Populate completion list
- asynchronously again.
-
-2010-03-01 Lluis Sanchez Gual <lluis@novell.com>
-
- * ValaBinding.sln: The invariant policy can't be used anymore
- as base policy set.
-
-2010-02-23 Levi Bard <taktaktaktaktaktaktaktaktaktak@gmail.com>
-
- * Compiler/ValaCompiler.cs: Support gcc note, translated error
- levels.
-
-2010-02-18 Levi Bard <taktaktaktaktaktaktaktaktaktak@gmail.com>
-
- * Parser/ProjectInformation.cs: Add sibling types.
-
-2010-02-18 Levi Bard <taktaktaktaktaktaktaktaktaktak@gmail.com>
-
- * Parser/ValaDocumentParser.cs: Avoid occasional parser
- exceptions.
-
-2010-02-18 Levi Bard <taktaktaktaktaktaktaktaktaktak@gmail.com>
-
- * Project/ValaProject.cs: Add project packages to parse list.
-
-2010-02-18 Levi Bard <taktaktaktaktaktaktaktaktaktak@gmail.com>
-
- * Makefile.am:
- * Parser/Afrodite.cs:
- * ValaBinding.csproj:
- * Parser/Function.cs:
- * Parser/CodeNode.cs:
- * Gui/DataProvider.cs:
- * Parser/ValaDocumentParser.cs:
- * Parser/ProjectInformation.cs:
- * Gui/ValaTextEditorExtension.cs:
- * Navigation/LanguageItemEventArgs.cs:
- * Navigation/LanguageItemNodeBuilder.cs:
- * Navigation/LanguageItemCommandHandler.cs:
- * Navigation/ProjectNodeBuilderExtension.cs: Rework code completion based on libafrodite.
-
-2010-02-18 Lluis Sanchez Gual <lluis@novell.com>
-
- * Gui/DataProvider.cs: Track api changes.
-
-2010-02-16 Lluis Sanchez Gual <lluis@novell.com>
-
- * ValaBinding.addin.xml: Load the project service extension
- only for the vala project.
-
- * ValaBinding.sln:
- * ValaBinding.csproj: Flush.
-
-2010-02-02 Lluis Sanchez Gual <lluis@novell.com>
-
- * ValaBinding.sln:
- * gtk-gui/generated.cs:
- * gtk-gui/MonoDevelop.ValaBinding.AddPathDialog.cs:
- * gtk-gui/MonoDevelop.ValaBinding.PackageDetails.cs:
- * gtk-gui/MonoDevelop.ValaBinding.AddLibraryDialog.cs:
- * gtk-gui/MonoDevelop.ValaBinding.OutputOptionsPanel.cs:
- * gtk-gui/MonoDevelop.ValaBinding.EditPackagesDialog.cs:
- * gtk-gui/MonoDevelop.ValaBinding.CodeGenerationPanel.cs:
- * gtk-gui/MonoDevelop.ValaBinding.GeneralOptionsPanel.cs:
- Flush.
-
-2010-02-02 Lluis Sanchez Gual <lluis@novell.com>
-
- * Gui/DataProvider.cs: Track api changes.
-
-2009-12-01 Lluis Sanchez Gual <lluis@novell.com>
-
- * Project/ValaProject.cs:
- * Gui/EditPackagesDialog.cs:
- * Project/ValaProjectServiceExtension.cs: Introduced the
- ConfigurationSelector class to all methods that previously
- took a configuration name as string. This eliminates the
- ambiguity between solution configuration names and project
- configuration names.
-
-2009-11-20 Michael Hutchinson <mhutchinson@novell.com>
-
- * Project/ValaProject.cs: Track API.
-
-2009-10-30 Lluis Sanchez Gual <lluis@novell.com>
-
- * configure.in:
- * AssemblyInfo.cs:
- * ValaBinding.addin.xml: Bump MD version.
-
-2009-10-07 Lluis Sanchez Gual <lluis@novell.com>
-
- * configure.in:
- * AssemblyInfo.cs:
- * ValaBinding.addin.xml: Bump MD version.
-
-2009-09-12 Levi Bard <taktaktaktaktaktaktaktaktaktak@gmail.com>
-
- * Gui/DataProvider.cs:
- * Parser/ValaDocumentParser.cs:
- * Parser/ProjectInformation.cs: Track completion window API.
-
-2009-09-11 Levi Bard <taktaktaktaktaktaktaktaktaktak@gmail.com>
-
- * Parser/ProjectInformation.cs: Allow vala files to be edited
- without a vsc-shell installation. Reported by Andy Selvig.
-
-2009-08-26 Lluis Sanchez Gual <lluis@novell.com>
-
- * configure.in:
- * ValaBinding.csproj:
- * gtk-gui/gui.stetic: We now depend on gtk# 2.12.8, Mono 2.4,
- and Mono.Addins 0.4.
-
-2009-07-24 Lluis Sanchez Gual <lluis@novell.com>
-
- * Project/ValaProjectBinding.cs: Track api changes.
-
-2009-06-23 Lluis Sanchez Gual <lluis@novell.com>
-
- * Project/ValaProject.cs: Track api changes.
-
-2009-06-17 Lluis Sanchez Gual <lluis@novell.com>
-
- * ValaBinding.sln:
- * ValaBinding.addin.xml:
- * gtk-gui/MonoDevelop.ValaBinding.PackageDetails.cs: Remove
- obsolete extension.
-
-2009-05-19 Lluis Sanchez Gual <lluis@novell.com>
-
- * ValaBinding.sln:
- * ValaBinding.csproj: Flush.
-
-2009-04-28 Levi Bard <taktaktaktaktaktaktaktaktaktak@gmail.com>
-
- * Parser/CodeNode.cs:
- * Parser/ProjectInformation.cs: Make document type extraction
- more robust.
-
-2009-04-28 Levi Bard <taktaktaktaktaktaktaktaktaktak@gmail.com>
-
- * Parser/ProjectInformation.cs: Force reparse on file update.
-
-2009-04-23 Levi Bard <taktaktaktaktaktaktaktaktaktak@gmail.com>
-
- * Gui/ValaTextEditorExtension.cs:
- * Parser/ValaDocumentParser.cs:
- * Parser/ProjectInformation.cs: Improve completion robustness.
-
-2009-04-23 Levi Bard <taktaktaktaktaktaktaktaktaktak@gmail.com>
-
- * Parser/ProjectInformation.cs: Keep parser from blocking project load.
-
-2009-04-20 Michael Hutchinson <mhutchinson@novell.com>
-
- * ValaLanguageBinding.cs: Track comment tag API.
-
-2009-04-20 Lluis Sanchez Gual <lluis@novell.com>
-
- * Project/ValaProject.cs: Track api changes done in
- IExecutionHandler.
-
-2009-04-16 Levi Bard <taktaktaktaktaktaktaktaktaktak@gmail.com>
-
- * Parser/ValaDocumentParser.cs: Allow non-project files
- to be parsed.
-
-2009-04-15 Lluis Sanchez Gual <lluis@novell.com>
-
- * configure.in:
- * AssemblyInfo.cs:
- * ValaBinding.addin.xml: Bump MD version.
-
-2009-04-14 Levi Bard <taktaktaktaktaktaktaktaktaktak@gmail.com>
-
- * Parser/*: Improvements to dom interaction.
-
-2009-04-13 Levi Bard <taktaktaktaktaktaktaktaktaktak@gmail.com>
-
- * Parser/*:
- * Navigation/*: Make more parser communication asynchronous,
- drop reliance on parser restarts.
-
-2009-04-13 Levi Bard <taktaktaktaktaktaktaktaktaktak@gmail.com>
-
- * Parser/ProjectInformation.cs: Parser adjustments.
-
-2009-04-10 Levi Bard <taktaktaktaktaktaktaktaktaktak@gmail.com>
-
- * Parser/ProjectInformation.cs: Handle it more gracefully
- when vsc-shell is not installed.
-
-2009-04-09 Levi Bard <taktaktaktaktaktaktaktaktaktak@gmail.com>
-
- * Project/ValaProject.cs: Auto-add C compiler options
- when there are no package dependencies.
-
-2009-04-09 Levi Bard <taktaktaktaktaktaktaktaktaktak@gmail.com>
-
- * *: Populate quick finder.
-
-2009-04-08 Levi Bard <taktaktaktaktaktaktaktaktaktak@gmail.com>
-
- * Parser/ProjectInformation.cs: Increase parser robustness.
-
-2009-04-08 Levi Bard <taktaktaktaktaktaktaktaktaktak@gmail.com>
-
- * Gui/DataProvider.cs: Increase responsiveness on
- parameter completion.
-
-2009-04-08 Levi Bard <taktaktaktaktaktaktaktaktaktak@gmail.com>
-
- * Gui/ValaTextEditorExtension.cs: Increase responsiveness on
- parameter completion.
-
-2009-04-07 Levi Bard <taktaktaktaktaktaktaktaktaktak@gmail.com>
-
- * Compiler/ValaCompiler.cs: Update for Vala 0.7.0.
-
-2009-03-25 Levi Bard <taktaktaktaktaktaktaktaktaktak@gmail.com>
-
- * Parser/*:
- * Navigation/LanguageItemCommandHandler.cs: Use file
- positions from VSC.
-
-2009-03-20 Levi Bard <taktaktaktaktaktaktaktaktaktak@gmail.com>
-
- * Gui/ValaTextEditorExtension.cs: Tweak completion
- aggressiveness.
-
-2009-03-13 Levi Bard <taktaktaktaktaktaktaktaktaktak@gmail.com>
-
- * Gui/ValaTextEditorExtension.cs: Make completion more
- aggressive.
-
-2009-03-13 Levi Bard <taktaktaktaktaktaktaktaktaktak@gmail.com>
-
- * Parser/ProjectInformation.cs: Reduce parser latency on
- bad match.
-
-2009-03-13 Levi Bard <taktaktaktaktaktaktaktaktaktak@gmail.com>
-
- * Parser/ProjectInformation.cs: Fix intermittent exception.
-
-2009-03-10 Levi Bard <taktaktaktaktaktaktaktaktaktak@gmail.com>
-
- * *: Implement basic Makefile generation.
-
-2009-03-04 Lluis Sanchez Gual <lluis@novell.com>
-
- * Project/ValaProject.cs: Changed the way execution handlers
- work. We are not using platform ids anymore. Instead, we use
- command strings when looking for execution handlers.
- IExecutionHandlerFactory has been removed and now everything
- is handled by IExecutionHandler, which has a new CanExecute
- method. This model is more simple and more generic.
-
-2009-02-27 Levi Bard <taktaktaktaktaktaktaktaktaktak@gmail.com>
-
- * *: Change to vsc-based completion.
-
-2009-02-26 Michael Hutchinson <mhutchinson@novell.com>
-
- * ValaLanguageBinding.cs: Ordinal compare.
-
- * Project/ValaProjectBinding.cs: Only create projects for vala
- files. Fixes nasty crash on xml files.
-
-2009-02-26 Michael Hutchinson <mhutchinson@novell.com>
-
- * ValaBinding.csproj: Remove bad property value.
-
-2009-02-26 Lluis Sanchez Gual <lluis@novell.com>
-
- * ValaBinding.sln: Flush.
-
-2009-02-26 Lluis Sanchez Gual <lluis@novell.com>
-
- * ValaBinding.csproj: Flush.
-
-2009-02-25 Michael Hutchinson <mhutchinson@novell.com>
-
- * ValaBinding.sln: Set policies. Remove unused name attribute.
-
-2009-02-20 Lluis Sanchez Gual <lluis@novell.com>
-
- * ValaBinding.csproj: Updated references.
-
-2009/02/06 Lluis Sanchez Gual <lluis@novell.com>
-
- * ValaBinding.mds:
- * ValaBinding.sln:
- * ValaBinding.mdp:
- * ValaBinding.csproj: Migrated to MSBuild file format.
-
-2009/02/03 Lluis Sanchez Gual <lluis@novell.com>
-
- * configure.in:
- * AssemblyInfo.cs:
- * ValaBinding.addin.xml: Bump MD version.
-
-2009/02/03 Lluis Sanchez Gual <lluis@novell.com>
-
- * ValaBinding.mds:
- * gtk-gui/generated.cs:
- * gtk-gui/MonoDevelop.ValaBinding.AddPathDialog.cs:
- * gtk-gui/MonoDevelop.ValaBinding.PackageDetails.cs:
- * gtk-gui/MonoDevelop.ValaBinding.AddLibraryDialog.cs:
- * gtk-gui/MonoDevelop.ValaBinding.EditPackagesDialog.cs:
- * gtk-gui/MonoDevelop.ValaBinding.OutputOptionsPanel.cs:
- * gtk-gui/MonoDevelop.ValaBinding.CodeGenerationPanel.cs:
- * gtk-gui/MonoDevelop.ValaBinding.GeneralOptionsPanel.cs: Flush.
-
-2009-01-26 Michael Hutchinson <mhutchinson@novell.com>
-
- * ValaBinding.mdp: Flush project format changes.
-
-2009-01-12 Levi Bard <taktaktaktaktaktaktaktaktaktak@gmail.com>
-
- * Gui/EditPackagesDialog.cs: Move package list population into idle handler.
-
-2009-01-12 Levi Bard <taktaktaktaktaktaktaktaktaktak@gmail.com>
-
- * Project/ProjectPackage.cs:
- * Project/ProjectPackageCollection.cs: Use relative path
- for project package references.
-
-2009-01-05 Levi Bard <taktaktaktaktaktaktaktaktaktak@gmail.com>
-
- * ValaBinding.sln:
- * ValaBinding.csproj: Add MSBuild project files.
-
-2009-01-05 Levi Bard <taktaktaktaktaktaktaktaktaktak@gmail.com>
-
- * gtk-gui/gui.stetic: Tooltip cleanup.
-
-2009-01-05 Levi Bard <taktaktaktaktaktaktaktaktaktak@gmail.com>
-
- * Gui/CodeGenerationPanel.cs:
- * Compiler/ValaCompiler.cs:
- * Project/ValaCompilationParameters.cs: Add support for valac --thread flag.
-
-2008-12-09 Lluis Sanchez Gual <lluis@novell.com>
-
- * ValaBinding.mdp: Don't require a specific version of Mono.Addins.
-
-2008-12-05 Lluis Sanchez Gual <lluis@novell.com>
-
- * Gui/ValaTextEditorExtension.cs: Track api changes.
-
-2008-12-02 Michael Hutchinson <mhutchinson@novell.com>
-
- * Makefile.am:
- * AssemblyInfo.cs:
- * ValaBinding.mdp: Add AssemblyInfo.cs files that are autogenerated from
- the addin manifests.
-
-2008-11-21 Levi Bard <taktaktaktaktaktaktaktaktaktak@gmail.com>
-
- * Compiler/ValaCompiler.cs: Display errors originating from gcc.
-
-2008-11-18 Lluis Sanchez Gual <lluis@novell.com>
-
- * Project/ValaProject.cs: Allow executing Vala projects.
-
-2008-11-18 Levi Bard <taktaktaktaktaktaktaktaktaktak@gmail.com>
-
- * Compiler/ValaCompiler.cs: valac no longer supports -D.
-
-2008-11-05 Lluis Sanchez Gual <lluis@novell.com>
-
- * configure.in:
- * ValaBinding.addin.xml: Bump MD version.
-
-2008-10-16 Michael Hutchinson <mhutchinson@novell.com>
-
- * configure.in: Fix tarball name.
-
-2008-10-09 Michael Hutchinson <mhutchinson@novell.com>
-
- * Gui/DataProvider.cs:
- * Gui/ValaTextEditorExtension.cs: Track APIs.
-
-2008-10-09 Michael Hutchinson <mhutchinson@novell.com>
-
- * Gui/DataProvider.cs: Track CompletionData API.
-
-2008-10-07 Michael Hutchinson <mhutchinson@novell.com>
-
- * Gui/DataProvider.cs: Track API.
-
-2008-10-01 Michael Hutchinson <mhutchinson@novell.com>
-
- * Project/ValaProject.cs: Track API.
-
-2008-09-29 Michael Hutchinson <mhutchinson@novell.com>
-
- * Gui/DataProvider.cs: Track API.
-
-2008-09-23 Levi Bard <taktaktaktaktaktaktaktaktaktak@gmail.com>
-
- * Gui/DataProvider.cs: Track changes in completion API.
-
-2008-09-17 Lluis Sanchez Gual <lluis@novell.com>
-
- * ValaBinding.mdp: Updated projects.
-
-2008-09-17 Lluis Sanchez Gual <lluis@novell.com>
-
- * ValaLanguageBinding.cs: Fix build.
-
-2008-09-11 Levi Bard <taktaktaktaktaktaktaktaktaktak@gmail.com>
-
- * Project/ValaProject.cs: More compiler flags tweaking
- for project packages.
-
-2008-09-04 Lluis Sanchez Gual <lluis@novell.com>
-
- * ProjectPad/ProjectPackagesFolderNodeBuilder.cs,
- ProjectPad/ProjectPackageNodeBuilder.cs,
- ProjectPad/ProjectReferencesExtension.cs,
- ProjectPad/ProjectNodeExtension.cs,
- Navigation/StructureNodeBuilder.cs,
- Navigation/TypedefNodeBuilder.cs, Navigation/MacroNodeBuilder.cs,
- Navigation/ProjectNodeBuilderExtension.cs,
- Navigation/ClassNodeBuilder.cs, Navigation/MemberNodeBuilder.cs,
- Navigation/EnumeratorNodeBuilder.cs,
- Navigation/LanguageItemCommandHandler.cs,
- Navigation/GlobalsNodeBuilder.cs,
- Navigation/VariableNodeBuilder.cs,
- Navigation/FunctionNodeBuilder.cs,
- Navigation/EnumerationNodeBuilder.cs,
- Navigation/UnionNodeBuilder.cs, Navigation/NamespaceNodeBuilder.cs,
- Navigation/MacroDefinitionsNodeBuilder.cs: Moved the extensible
- tree view to its own directory.
-
-2008-09-03 Levi Bard <taktaktaktaktaktaktaktaktaktak@gmail.com>
-
- * Project/ValaProject.cs: Add output directory to library path
- for project packages.
-
-2008-09-03 Levi Bard <taktaktaktaktaktaktaktaktaktak@gmail.com>
-
- * Compiler/ValaCompiler.cs: Only generate .deps file
- for shared library targets.
-
-2008-08-28 Levi Bard <taktaktaktaktaktaktaktaktaktak@gmail.com>
-
- * Compiler/ValaCompiler.cs: Generate .deps file on library compilation.
-
-2008-08-21 Lluis Sanchez Gual <lluis@novell.com>
-
- * ProjectPad/ProjectResourcesExtension.cs, ValaBinding.addin.xml,
- ValaBinding.mdp, gtk-gui/objects.xml, Makefile.am: Resources folder
- has been removed.
-
-2008-08-18 Lluis Sanchez Gual <lluis@novell.com>
-
- * ValaBinding.mdp: Fix reference to Mono.TextEditor. The incorrect
- add-in version number causes problems in the makefile
- synchronization.
-
-2008-08-12 Levi Bard <taktaktaktaktaktaktaktaktaktak@gmail.com>
-
- * Compiler/ValaCompiler.cs: Fix error parsing for recent valac.
-
-2008-08-12 Levi Bard <taktaktaktaktaktaktaktaktaktak@gmail.com>
-
- * Compiler/ValaCompiler.cs, Project/ProjectPackage.cs,
- Project/ValaProject.cs, Gui/EditPackagesDialog.cs:
- Improve dependency and project package handling.
- * templates/ValaTestFixture.xpt.xml, ValaBinding.addin.xml,
- Makefile.am: Add text fixture project template.
- * templates/ConsoleValaProject.xpt.xml: Cleanup.
-
-2008-08-11 Levi Bard <taktaktaktaktaktaktaktaktaktak@gmail.com>
-
- * Project/ValaProject.cs, Compiler/ValaCompiler.cs,
- Project/ProjectPackageCollection.cs, templates/ConsoleValaProject.xpt.xml,
- templates/EmptyValaProject.xpt.xml,
- templates/SharedLibraryValaProject.xpt.xml: Add glib-2.0 package
- to new projects by default. Track changes in valac.
-
-2008-07-21 Lluis Sanchez Gual <lluis@novell.com>
-
- * Project/ProjectPackage.cs, Project/ValaCompilationParameters.cs,
- Project/ValaProject.cs, Project/ValaProjectConfiguration.cs: Moved
- serialization engine to MonoDevelop.Core. Use new syntax for
- specifying attribute scope.
-
-2008-06-26 Levi Bard <taktaktaktaktaktaktaktaktaktak@gmail.com>
-
- * Project/ValaProject.cs: Actually turn on debug mode.
-
-2008-06-18 Levi Bard <taktaktaktaktaktaktaktaktaktak@gmail.com>
-
- * Project/ProjectPackage.cs: Search more thoroughly for corresponding
- .pc files.
-
-2008-06-18 Jerome Haltom <wasabi@larvalstage.net>
-
- * Gui/EditPackagesDialog.cs: Attempt to detect vapidir.
-
-2008-06-12 Lluis Sanchez Gual <lluis@novell.com>
-
- * ValaBinding.mdp, Makefile.am: More makefile fixes.
-
-2008-06-12 Lluis Sanchez Gual <lluis@novell.com>
-
- * configure.in, Makefile.am: Fix makefile so that it does not directly
- depend on MD core and it can always be built standalone.
- * ValaBinding.mdp: Enable makefile synchronization.
-
-2008-06-12 Lluis Sanchez Gual <lluis@novell.com>
-
- * ValaBinding.mdp: Fix gtk-sharp dependency versions.
-
-2008-06-09 Levi Bard <taktaktaktaktaktaktaktaktaktak@gmail.com>
-
- * Project/ValaProject.cs, Navigation/ProjectNodeBuilderExtension.cs:
- Add tags from packages to class pad and code completion.
-
-2008-06-09 Levi Bard <taktaktaktaktaktaktaktaktaktak@gmail.com>
-
- * Parser/*: Update parse data on file removal.
-
-2008-06-09 Levi Bard <taktaktaktaktaktaktaktaktaktak@gmail.com>
-
- * Project/ValaProject.cs: Fix define syntax in generated .pc files.
-
-2008-06-09 Levi Bard <taktaktaktaktaktaktaktaktaktak@gmail.com>
-
- * *: Add package support.
-
-2008-06-04 Levi Bard <taktaktaktaktaktaktaktaktaktak@gmail.com>
-
- * *: Add classpad support
-
-2008-06-04 Lluis Sanchez Gual <lluis@novell.com>
-
- * Project/ValaProject.cs: Track api changes.
-
-2008-03-11 Levi Bard <taktaktaktaktaktaktaktaktaktak@gmail.com>
-
- * *: Ported from CBinding
diff --git a/extras/ValaBinding/Compiler/ICompiler.cs b/extras/ValaBinding/Compiler/ICompiler.cs
deleted file mode 100644
index bd36bf6921..0000000000
--- a/extras/ValaBinding/Compiler/ICompiler.cs
+++ /dev/null
@@ -1,63 +0,0 @@
-//
-// ICompiler.cs: interface that must be implemented by any class that wants
-// to provide a compiler for the ValaBinding addin.
-//
-// Authors:
-// Levi Bard <taktaktaktaktaktaktaktaktaktak@gmail.com>
-//
-// Copyright (C) 2008 Levi Bard
-// Based on CBinding by Marcos David Marin Amador <MarcosMarin@gmail.com>
-//
-// This source code is licenced under The MIT License:
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-using Mono.Addins;
-
-using MonoDevelop.Core;
-using MonoDevelop.Projects;
-
-namespace MonoDevelop.ValaBinding
-{
- [TypeExtensionPoint ("/ValaBinding/Compilers")]
- public interface ICompiler
- {
- string Name {
- get;
- }
-
- string CompilerCommand {
- get;
- }
-
- string GetCompilerFlags (ValaProjectConfiguration configuration);
-
- string GetDefineFlags (ValaProjectConfiguration configuration);
-
- BuildResult Compile (
- ProjectFileCollection projectFiles,
- ProjectPackageCollection packages,
- ValaProjectConfiguration configuration,
- IProgressMonitor monitor);
-
- void Clean (ProjectFileCollection projectFiles, ValaProjectConfiguration configuration, IProgressMonitor monitor);
- }
-}
diff --git a/extras/ValaBinding/Compiler/ValaCompiler.cs b/extras/ValaBinding/Compiler/ValaCompiler.cs
deleted file mode 100644
index f4d397e281..0000000000
--- a/extras/ValaBinding/Compiler/ValaCompiler.cs
+++ /dev/null
@@ -1,644 +0,0 @@
-//
-// ValaCompiler.cs: abstract class that provides some basic implementation for ICompiler
-//
-// Authors:
-// Levi Bard <taktaktaktaktaktaktaktaktaktak@gmail.com>
-//
-// Copyright (C) 2008 Levi Bard
-// Based on CBinding by Marcos David Marin Amador <MarcosMarin@gmail.com>
-//
-// This source code is licenced under The MIT License:
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-
-using System;
-using System.IO;
-using System.Text;
-using System.CodeDom.Compiler;
-using System.Text.RegularExpressions;
-using System.Collections.Generic;
-using System.Diagnostics;
-
-using Mono.Addins;
-
-using MonoDevelop.Core;
-
-using MonoDevelop.Core.Execution;
-using MonoDevelop.Ide.Gui;
-using MonoDevelop.Projects;
-using MonoDevelop.Core.ProgressMonitoring;
-
-namespace MonoDevelop.ValaBinding
-{
- [Extension ("/ValaBinding/Compilers")]
- public class ValaCompiler : ICompiler
- {
- protected string compilerCommand;
-
- bool compilerFound;
- bool appsChecked;
-
- public ValaCompiler ()
- {
- compilerCommand = "valac";
- }
-
- public string Name {
- get{ return "valac"; }
- }
-
- public string CompilerCommand {
- get { return compilerCommand; }
- }
-
- /// <summary>
- /// Generates compiler args for depended packages
- /// </summary>
- /// <param name="packages">
- /// The collection of packages for this project
- /// <see cref="ProjectPackageCollection"/>
- /// </param>
- /// <returns>
- /// The string needed by the compiler to reference the necessary packages
- /// <see cref="System.String"/>
- /// </returns>
- public static string GeneratePkgCompilerArgs (ProjectPackageCollection packages)
- {
- if (packages == null || packages.Count < 1)
- return string.Empty;
-
- StringBuilder libs = new StringBuilder ();
-
- foreach (ProjectPackage p in packages) {
- if (p.IsProject) {
- libs.AppendFormat (" \"{0}\" ", p.File);
- } else {
- libs.AppendFormat (" --pkg \"{0}\" ", p.Name);
- }
- }
-
- return libs.ToString ();
- }
-
- /// <summary>
- /// Compile the project
- /// </summary>
- /// <param name="projectFiles">
- /// Collection of project files
- /// <see cref="ProjectFileCollection"/>
- /// </param>
- /// <param name="packages">
- /// Collection of depended packages
- /// <see cref="ProjectPackageCollection"/>
- /// </param>
- /// <param name="configuration">
- /// Project configuration
- /// <see cref="ValaProjectConfiguration"/>
- /// </param>
- /// <param name="monitor">
- /// Progress monitor to be used
- /// <see cref="IProgressMonitor"/>
- /// </param>
- /// <returns>
- /// Result of the compilation
- /// <see cref="ICompilerResult"/>
- /// </returns>
- public BuildResult Compile (
- ProjectFileCollection projectFiles,
- ProjectPackageCollection packages,
- ValaProjectConfiguration configuration,
- IProgressMonitor monitor)
- {
-
- if (!appsChecked) {
- appsChecked = true;
- compilerFound = CheckApp (compilerCommand);
- }/// Check for compiler
-
-
- if (!compilerFound) {
- BuildResult cres = new BuildResult ();
- cres.AddError ("Compiler not found: " + compilerCommand);
- return cres;
- }/// No compiler!
-
- CompilerResults cr = new CompilerResults (new TempFileCollection ());
- bool success = true;
-
- /// Build compiler params string
- string compilerArgs = GetCompilerFlags (configuration) + " " + GeneratePkgCompilerArgs (packages);
-
- /// Build executable name
- string outputName = Path.Combine (configuration.OutputDirectory,
- configuration.CompiledOutputName);
-
- monitor.BeginTask (GettextCatalog.GetString ("Compiling source"), 1);
-
- success = DoCompilation (projectFiles, compilerArgs, outputName, monitor, cr);
-
- GenerateDepfile (configuration, packages);
-
- if (success)
- monitor.Step (1);
- monitor.EndTask ();
-
- return new BuildResult (cr, "");
- }
-
- string ICompiler.GetCompilerFlags (ValaProjectConfiguration configuration)
- {
- return ValaCompiler.GetCompilerFlags (configuration);
- }
-
- /// <summary>
- /// Generates compiler args for the current settings
- /// </summary>
- /// <param name="configuration">
- /// Project configuration
- /// <see cref="ValaProjectConfiguration"/>
- /// </param>
- /// <returns>
- /// A compiler-interpretable string
- /// <see cref="System.String"/>
- /// </returns>
- public static string GetCompilerFlags (ValaProjectConfiguration configuration)
- {
- List<string> args = new List<string> ();
-
-
- ValaCompilationParameters cp =
- (ValaCompilationParameters)configuration.CompilationParameters;
-
- args.Add (string.Format ("-d '{0}'", configuration.OutputDirectory));
-
- if (configuration.DebugMode)
- args.Add ("-g");
-
- switch (configuration.CompileTarget) {
- case ValaBinding.CompileTarget.Bin:
- if (cp.EnableMultithreading) {
- args.Add ("--thread");
- }
- break;
- case ValaBinding.CompileTarget.SharedLibrary:
- args.Add (string.Format ("--Xcc=\"-shared\" --Xcc=\"-fPIC\" --Xcc=\"-I'{0}'\" -H \"{1}.h\" --library \"{1}\"", configuration.OutputDirectory, configuration.Output));
- break;
- }
-
-// Valac will get these sooner or later
-// switch (cp.WarningLevel)
-// {
-// case WarningLevel.None:
-// args.Append ("-w ");
-// break;
-// case WarningLevel.Normal:
-// // nothing
-// break;
-// case WarningLevel.All:
-// args.Append ("-Wall ");
-// break;
-// }
-//
-// if (cp.WarningsAsErrors)
-// args.Append ("-Werror ");
-//
- if (0 < cp.OptimizationLevel) {
- args.Add ("--Xcc=\"-O" + cp.OptimizationLevel + "\"");
- }
-
- if (cp.ExtraCompilerArguments != null && cp.ExtraCompilerArguments.Length > 0) {
- args.Add (ExpandBacktickedParameters (cp.ExtraCompilerArguments.Replace (Environment.NewLine, " ")));
- }
-
- if (cp.DefineSymbols != null && cp.DefineSymbols.Length > 0) {
- args.Add (ProcessDefineSymbols (cp.DefineSymbols));
- }
-
- if (configuration.Includes != null)
- foreach (string inc in configuration.Includes)
- args.Add ("--vapidir \"" + inc + "\"");
-
- if (configuration.Libs != null)
- foreach (string lib in configuration.Libs)
- args.Add ("--pkg \"" + lib + "\"");
-
- return string.Join (" ", args.ToArray ());
- }
-
- /// <summary>
- /// Generates compilers flags for selected defines
- /// </summary>
- /// <param name="configuration">
- /// Project configuration
- /// <see cref="ValaProjectConfiguration"/>
- /// </param>
- /// <returns>
- /// A compiler-interpretable string
- /// <see cref="System.String"/>
- /// </returns>
- public string GetDefineFlags (ValaProjectConfiguration configuration)
- {
- string defines = ((ValaCompilationParameters)configuration.CompilationParameters).DefineSymbols;
- return ProcessDefineSymbols (defines);
- }
-
- /// <summary>
- /// Determines whether a file needs to be compiled
- /// </summary>
- /// <param name="file">
- /// The file in question
- /// <see cref="ProjectFile"/>
- /// </param>
- /// <returns>
- /// true if the file needs to be compiled
- /// <see cref="System.Boolean"/>
- /// </returns>
- private bool NeedsCompiling (ProjectFile file)
- {
- return true;
- }
-
- /// <summary>
- /// Executes a build command
- /// </summary>
- /// <param name="command">
- /// The executable to be launched
- /// <see cref="System.String"/>
- /// </param>
- /// <param name="args">
- /// The arguments to command
- /// <see cref="System.String"/>
- /// </param>
- /// <param name="baseDirectory">
- /// The directory in which the command will be executed
- /// <see cref="System.String"/>
- /// </param>
- /// <param name="monitor">
- /// The progress monitor to be used
- /// <see cref="IProgressMonitor"/>
- /// </param>
- /// <param name="errorOutput">
- /// Error output will be stored here
- /// <see cref="System.String"/>
- /// </param>
- /// <returns>
- /// The exit code of the command
- /// <see cref="System.Int32"/>
- /// </returns>
- int ExecuteCommand (string command, string args, string baseDirectory, IProgressMonitor monitor, out string errorOutput)
- {
- errorOutput = string.Empty;
- int exitCode = -1;
-
- StringWriter swError = new StringWriter ();
- LogTextWriter chainedError = new LogTextWriter ();
- chainedError.ChainWriter (monitor.Log);
- chainedError.ChainWriter (swError);
-
- monitor.Log.WriteLine ("{0} {1}", command, args);
-
- AggregatedOperationMonitor operationMonitor = new AggregatedOperationMonitor (monitor);
-
- try {
- ProcessWrapper p = Runtime.ProcessService.StartProcess (command, args, baseDirectory, monitor.Log, chainedError, null);
- operationMonitor.AddOperation (p); //handles cancellation
-
- p.WaitForOutput ();
- errorOutput = swError.ToString ();
- exitCode = p.ExitCode;
- p.Dispose ();
-
- if (monitor.IsCancelRequested) {
- monitor.Log.WriteLine (GettextCatalog.GetString ("Build cancelled"));
- monitor.ReportError (GettextCatalog.GetString ("Build cancelled"), null);
- if (exitCode == 0)
- exitCode = -1;
- }
- } finally {
- chainedError.Close ();
- swError.Close ();
- operationMonitor.Dispose ();
- }
-
- return exitCode;
- }
-
- /// <summary>
- /// Transforms a whitespace-delimited string of
- /// symbols into a set of compiler flags
- /// </summary>
- /// <param name="symbols">
- /// A whitespace-delimited string of symbols,
- /// e.g., "DEBUG MONODEVELOP"
- /// <see cref="System.String"/>
- /// </param>
- /// <returns>
- /// A <see cref="System.String"/>
- /// </returns>
- private static string ProcessDefineSymbols (string symbols)
- {
- return ((null == symbols) || (0 == symbols.Length))?
- string.Empty:
- "-D " + Regex.Replace (symbols, " +", " -D ");
- }
-
- /// <summary>
- /// Compiles the project
- /// </summary>
- private bool DoCompilation (ProjectFileCollection projectFiles, string args,
- string outputName,
- IProgressMonitor monitor,
- CompilerResults cr)
- {
- StringBuilder filelist = new StringBuilder ();
- foreach (ProjectFile f in projectFiles) {
- if (f.Subtype != Subtype.Directory && f.BuildAction == BuildAction.Compile) {
- filelist.AppendFormat ("\"{0}\" ", f.FilePath);
- }
- }/// Build file list
-
- string compiler_args = string.Format ("{0} {1} -o \"{2}\"",
- args, filelist.ToString (), Path.GetFileName (outputName));
-
- string errorOutput = string.Empty;
- int exitCode = ExecuteCommand (compilerCommand, compiler_args, Path.GetDirectoryName (outputName), monitor, out errorOutput);
-
- ParseCompilerOutput (errorOutput, cr, projectFiles);
- return exitCode == 0;
- }
-
- /// <summary>
- /// Cleans up intermediate files
- /// </summary>
- /// <param name="projectFiles">
- /// The project's files
- /// <see cref="ProjectFileCollection"/>
- /// </param>
- /// <param name="configuration">
- /// Project configuration
- /// <see cref="ValaProjectConfiguration"/>
- /// </param>
- /// <param name="monitor">
- /// The progress monitor to be used
- /// <see cref="IProgressMonitor"/>
- /// </param>
- public void Clean (ProjectFileCollection projectFiles, ValaProjectConfiguration configuration, IProgressMonitor monitor)
- {
- /// Clean up intermediate files
- /// These should only be generated for libraries, but we'll check for them in all cases
- foreach (ProjectFile file in projectFiles) {
- if (file.BuildAction == BuildAction.Compile) {
- string cFile = Path.Combine (configuration.OutputDirectory, Path.GetFileNameWithoutExtension (file.Name) + ".c");
- if (File.Exists (cFile)){ File.Delete (cFile); }
-
- string hFile = Path.Combine (configuration.OutputDirectory, Path.GetFileNameWithoutExtension (file.Name) + ".h");
- if (File.Exists (hFile)){ File.Delete (hFile); }
- }
- }
-
- string vapiFile = Path.Combine (configuration.OutputDirectory, configuration.Output + ".vapi");
- if (File.Exists (vapiFile)){ File.Delete (vapiFile); }
- }
-
- /// <summary>
- /// Determines whether the target needs to be updated
- /// </summary>
- /// <param name="projectFiles">
- /// The project's files
- /// <see cref="ProjectFileCollection"/>
- /// </param>
- /// <param name="target">
- /// The target
- /// <see cref="System.String"/>
- /// </param>
- /// <returns>
- /// true if target needs to be updated
- /// <see cref="System.Boolean"/>
- /// </returns>
- private bool NeedsUpdate (ProjectFileCollection projectFiles,
- string target)
- {
- return true;
- }
-
- /// <summary>
- /// Parses a compiler output string into CompilerResults
- /// </summary>
- /// <param name="errorString">
- /// The string output by the compiler
- /// <see cref="System.String"/>
- /// </param>
- /// <param name="cr">
- /// The CompilerResults into which to parse errorString
- /// <see cref="CompilerResults"/>
- /// </param>
- protected void ParseCompilerOutput (string errorString, CompilerResults cr, ProjectFileCollection projectFiles)
- {
- TextReader reader = new StringReader (errorString);
- string next;
-
- while ((next = reader.ReadLine ()) != null) {
- CompilerError error = CreateErrorFromErrorString (next, projectFiles);
- // System.Console.WriteLine ("Creating error from string \"{0}\"", next);
- if (error != null) {
- cr.Errors.Insert (0, error);
- // System.Console.WriteLine ("Adding error");
- }
- }
-
- reader.Close ();
- }
-
- /// Error regex for valac
- /// Sample output: "/home/user/project/src/blah.vala:23.5-23.5: error: syntax error, unexpected }, expecting ;"
- private static Regex errorRegex = new Regex (
- @"^\s*(?<file>.*):(?<line>\d*)\.(?<column>\d*)-\d*\.\d*: (?<level>[^:]*): (?<message>.*)",
- RegexOptions.Compiled | RegexOptions.ExplicitCapture);
-
- private static Regex gccRegex = new Regex (
- @"^\s*(?<file>.*):(?<line>\d*):((?<column>\d*):)?\s*(?<level>.*)\s*:\s(?<message>.*)",
- RegexOptions.Compiled | RegexOptions.ExplicitCapture);
-
- /// Error regex for gnu linker - this could still be pertinent for vala
- private static Regex linkerRegex = new Regex (
- @"^\s*(?<file>[^:]*):(?<line>\d*):\s*(?<message>[^:]*)",
- RegexOptions.Compiled | RegexOptions.ExplicitCapture);
-
- /// <summary>
- /// Creates a compiler error from an output string
- /// </summary>
- /// <param name="errorString">
- /// The error string to be parsed
- /// <see cref="System.String"/>
- /// </param>
- /// <returns>
- /// A newly created CompilerError
- /// <see cref="CompilerError"/>
- /// </returns>
- private CompilerError CreateErrorFromErrorString (string errorString, ProjectFileCollection projectFiles)
- {
- Match errorMatch = null;
- foreach (Regex regex in new Regex[]{errorRegex, gccRegex})
- if ((errorMatch = regex.Match (errorString)).Success)
- break;
-
- if (!errorMatch.Success)
- return null;
-
- CompilerError error = new CompilerError ();
-
- foreach (ProjectFile pf in projectFiles) {
- if (Path.GetFileName (pf.Name) == errorMatch.Groups["file"].Value) {
- error.FileName = pf.FilePath;
- break;
- }
- }// check for fully pathed file
- if (string.Empty == error.FileName) {
- error.FileName = errorMatch.Groups["file"].Value;
- }// fallback to exact match
- error.Line = int.Parse (errorMatch.Groups["line"].Value);
- if (errorMatch.Groups["column"].Success)
- error.Column = int.Parse (errorMatch.Groups["column"].Value);
- error.IsWarning = !errorMatch.Groups["level"].Value.Equals (GettextCatalog.GetString ("error"), StringComparison.Ordinal);
- error.ErrorText = errorMatch.Groups["message"].Value;
-
- return error;
- }
-
- /// <summary>
- /// Parses linker output into compiler results
- /// </summary>
- /// <param name="errorString">
- /// The linker output to be parsed
- /// <see cref="System.String"/>
- /// </param>
- /// <param name="cr">
- /// Results will be stored here
- /// <see cref="CompilerResults"/>
- /// </param>
- protected void ParseLinkerOutput (string errorString, CompilerResults cr)
- {
- TextReader reader = new StringReader (errorString);
- string next;
-
- while ((next = reader.ReadLine ()) != null) {
- CompilerError error = CreateLinkerErrorFromErrorString (next);
- if (error != null)
- cr.Errors.Add (error);
- }
-
- reader.Close ();
- }
-
- /// <summary>
- /// Creates a linker error from an output string
- /// </summary>
- /// <param name="errorString">
- /// The error string to be parsed
- /// <see cref="System.String"/>
- /// </param>
- /// <returns>
- /// A newly created LinkerError
- /// <see cref="LinkerError"/>
- /// </returns>
- private CompilerError CreateLinkerErrorFromErrorString (string errorString)
- {
- CompilerError error = new CompilerError ();
-
- Match linkerMatch = linkerRegex.Match (errorString);
-
- if (linkerMatch.Success)
- {
- error.FileName = linkerMatch.Groups["file"].Value;
- error.Line = int.Parse (linkerMatch.Groups["line"].Value);
- error.ErrorText = linkerMatch.Groups["message"].Value;
-
- return error;
- }
-
- return null;
- }
-
- /// <summary>
- /// Expands backticked portions of the parameter-list using "sh" and "echo"
- /// </summary>
- /// <param name="tmp">
- /// The string to expand
- /// <see cref="System.String"/>
- /// </param>
- /// <returns>
- /// The result of the expansion
- /// <see cref="System.String"/>
- /// </returns>
- // TODO: Portability, although otoh, probably someone who doesn't have sh
- // isn't going to put backticks in the compiler flags
- public static string ExpandBacktickedParameters (string tmp)
- {
- string parameters = "-c \"echo -n " + tmp + "\"";
- Process p = new Process ();
-
- p.StartInfo.FileName = "sh";
- p.StartInfo.Arguments = parameters;
- p.StartInfo.UseShellExecute = false;
- p.StartInfo.RedirectStandardOutput = true;
- p.Start ();
- p.WaitForExit ();
-
- return p.StandardOutput.ReadToEnd ();
- }
-
- /// <summary>
- /// Check to see if we have a given app
- /// </summary>
- /// <param name="app">
- /// The app to check
- /// <see cref="System.String"/>
- /// </param>
- /// <returns>
- /// true if the app is found
- /// <see cref="System.Boolean"/>
- /// </returns>
- bool CheckApp (string app)
- {
- try {
- ProcessWrapper p = Runtime.ProcessService.StartProcess (app, "--version", null, null);
- p.WaitForOutput ();
- return true;
- } catch {
- return false;
- }
- }
-
- public void GenerateDepfile (ValaProjectConfiguration configuration, ProjectPackageCollection packages)
- {
- try {
- if (configuration.CompileTarget != CompileTarget.SharedLibrary){ return; }
-
- using (StreamWriter writer = new StreamWriter (Path.Combine (configuration.OutputDirectory, Path.ChangeExtension (configuration.Output, ".deps")))) {
- foreach (ProjectPackage package in packages) {
- writer.WriteLine (package.Name);
- }
- }
- } catch { /* Don't care */ }
- }
- }
-}
diff --git a/extras/ValaBinding/Gui/AddLibraryDialog.cs b/extras/ValaBinding/Gui/AddLibraryDialog.cs
deleted file mode 100644
index ed2fa570dc..0000000000
--- a/extras/ValaBinding/Gui/AddLibraryDialog.cs
+++ /dev/null
@@ -1,79 +0,0 @@
-//
-// AddLibraryDialog.cs: A simple open file dialog to add libraries to the project (using vapi files)
-//
-// Authors:
-// Levi Bard <taktaktaktaktaktaktaktaktaktak@gmail.com>
-//
-// Copyright (C) 2008 Levi Bard
-// Based on CBinding by Marcos David Marin Amador <MarcosMarin@gmail.com>
-//
-// This source code is licenced under The MIT License:
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-
-using System;
-using System.IO;
-
-using Mono.Addins;
-
-namespace MonoDevelop.ValaBinding
-{
- public partial class AddLibraryDialog : Gtk.Dialog
- {
- private string lib = string.Empty;
-
- public AddLibraryDialog()
- {
- this.Build();
-
- Gtk.FileFilter libs = new Gtk.FileFilter ();
- Gtk.FileFilter all = new Gtk.FileFilter ();
-
- libs.AddPattern ("*.vapi");
- libs.Name = "Libraries";
-
- all.AddPattern ("*.*");
- all.Name = "All Files";
-
- file_chooser_widget.AddFilter (libs);
- file_chooser_widget.AddFilter (all);
- file_chooser_widget.SetCurrentFolder ("/usr/share/vala/vapi");
- }
-
- private void OnOkButtonClick (object sender, EventArgs e)
- {
- lib = System.IO.Path.GetFileNameWithoutExtension (
- file_chooser_widget.Filename);
-
- Destroy ();
- }
-
- private void OnCancelButtonClick (object sender, EventArgs e)
- {
- Destroy ();
- }
-
- public string Library {
- get { return lib; }
- }
- }
-}
diff --git a/extras/ValaBinding/Gui/AddPathDialog.cs b/extras/ValaBinding/Gui/AddPathDialog.cs
deleted file mode 100644
index 1d4f99477b..0000000000
--- a/extras/ValaBinding/Gui/AddPathDialog.cs
+++ /dev/null
@@ -1,74 +0,0 @@
-//
-// AddPathDialog.cs: A simple open file dialog to add paths to the project
-// for includes and libraries (mime type: x-directory/normal)
-//
-// Authors:
-// Levi Bard <taktaktaktaktaktaktaktaktaktak@gmail.com>
-//
-// Copyright (C) 2008 Levi Bard
-// Based on CBinding by Marcos David Marin Amador <MarcosMarin@gmail.com>
-//
-// This source code is licenced under The MIT License:
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-
-
-using System;
-using System.IO;
-
-using Mono.Addins;
-
-namespace MonoDevelop.ValaBinding
-{
- public partial class AddPathDialog : Gtk.Dialog
- {
- string path;
-
- public AddPathDialog (string currentDir)
- {
- this.Build ();
-
- Gtk.FileFilter filter = new Gtk.FileFilter ();
-
- filter.AddMimeType ("x-directory/normal");
- filter.Name = "Folders";
-
- file_chooser_widget.SetCurrentFolder (currentDir);
- file_chooser_widget.AddFilter (filter);
- }
-
- private void OnOkButtonClick (object sender, EventArgs e)
- {
- path = file_chooser_widget.Filename;
- Destroy ();
- }
-
- private void OnCancelButtonClick (object sender, EventArgs e)
- {
- Destroy ();
- }
-
- public string SelectedPath {
- get { return path; }
- }
- }
-}
diff --git a/extras/ValaBinding/Gui/CodeGenerationPanel.cs b/extras/ValaBinding/Gui/CodeGenerationPanel.cs
deleted file mode 100644
index 72d177005f..0000000000
--- a/extras/ValaBinding/Gui/CodeGenerationPanel.cs
+++ /dev/null
@@ -1,292 +0,0 @@
-//
-// CodeGenerationPanel.cs: Code generation panel to configure project
-//
-// Authors:
-// Levi Bard <taktaktaktaktaktaktaktaktaktak@gmail.com>
-//
-// Copyright (C) 2008 Levi Bard
-// Based on CBinding by Marcos David Marin Amador <MarcosMarin@gmail.com>
-//
-// This source code is licenced under The MIT License:
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-
-using System;
-using System.IO;
-using System.Collections;
-
-using Mono.Addins;
-using MonoDevelop.Core;
-using MonoDevelop.Ide.Projects;
-using MonoDevelop.Ide.Gui.Dialogs;
-
-namespace MonoDevelop.ValaBinding
-{
- public partial class CodeGenerationPanel : Gtk.Bin
- {
- private ValaProjectConfiguration configuration;
- private ValaCompilationParameters compilationParameters;
- private Gtk.ListStore libStore = new Gtk.ListStore (typeof(string));
- private Gtk.ListStore includePathStore = new Gtk.ListStore (typeof(string));
-
- public CodeGenerationPanel ()
- {
- this.Build ();
-
- Gtk.CellRendererText textRenderer = new Gtk.CellRendererText ();
-
- libTreeView.Model = libStore;
- libTreeView.HeadersVisible = false;
- libTreeView.AppendColumn ("Library", textRenderer, "text", 0);
-
- includePathTreeView.Model = includePathStore;
- includePathTreeView.HeadersVisible = false;
- includePathTreeView.AppendColumn ("Include", textRenderer, "text", 0);
- }
-
- public void Load (ValaProjectConfiguration config)
- {
- configuration = config;
- compilationParameters = (ValaCompilationParameters)configuration.CompilationParameters;
-
- switch (compilationParameters.WarningLevel)
- {
- case WarningLevel.None:
- noWarningRadio.Active = true;
- break;
- case WarningLevel.Normal:
- normalWarningRadio.Active = true;
- break;
- case WarningLevel.All:
- allWarningRadio.Active = true;
- break;
- }
-
- warningsAsErrorsCheckBox.Active = compilationParameters.WarningsAsErrors;
- threadingCheckbox.Sensitive = (config.CompileTarget == CompileTarget.Bin);
- threadingCheckbox.Active = (threadingCheckbox.Sensitive && compilationParameters.EnableMultithreading);
-
- optimizationSpinButton.Value = compilationParameters.OptimizationLevel;
-
- switch (configuration.CompileTarget)
- {
- case ValaBinding.CompileTarget.Bin:
- targetComboBox.Active = 0;
- break;
- case ValaBinding.CompileTarget.StaticLibrary:
- targetComboBox.Active = 1;
- break;
- case ValaBinding.CompileTarget.SharedLibrary:
- targetComboBox.Active = 2;
- break;
- }
-
- extraCompilerTextView.Buffer.Text = compilationParameters.ExtraCompilerArguments;
-
- defineSymbolsTextEntry.Text = compilationParameters.DefineSymbols;
-
- foreach (string lib in configuration.Libs)
- libStore.AppendValues (lib);
-
- foreach (string includePath in configuration.Includes)
- includePathStore.AppendValues (includePath);
- }
-
- private void OnIncludePathAdded (object sender, EventArgs e)
- {
- if (includePathEntry.Text.Length > 0) {
- includePathStore.AppendValues (includePathEntry.Text);
- includePathEntry.Text = string.Empty;
- }
- }
-
- private void OnIncludePathRemoved (object sender, EventArgs e)
- {
- Gtk.TreeIter iter;
- includePathTreeView.Selection.GetSelected (out iter);
- includePathStore.Remove (ref iter);
- }
-
- private void OnLibAdded (object sender, EventArgs e)
- {
- if (libAddEntry.Text.Length > 0) {
- libStore.AppendValues (libAddEntry.Text);
- libAddEntry.Text = string.Empty;
- }
- }
-
- private void OnLibRemoved (object sender, EventArgs e)
- {
- Gtk.TreeIter iter;
- libTreeView.Selection.GetSelected (out iter);
- libStore.Remove (ref iter);
- }
-
- private void OnBrowseButtonClick (object sender, EventArgs e)
- {
- AddLibraryDialog dialog = new AddLibraryDialog ();
- dialog.Run ();
- libAddEntry.Text = dialog.Library;
- }
-
- private void OnIncludePathBrowseButtonClick (object sender, EventArgs e)
- {
- AddPathDialog dialog = new AddPathDialog (configuration.SourceDirectory);
- dialog.Run ();
- includePathEntry.Text = dialog.SelectedPath;
- }
-
- public bool Store ()
- {
- if (compilationParameters == null || configuration == null)
- return false;
-
- string line;
- Gtk.TreeIter iter;
-
- if (noWarningRadio.Active)
- compilationParameters.WarningLevel = WarningLevel.None;
- else if (normalWarningRadio.Active)
- compilationParameters.WarningLevel = WarningLevel.Normal;
- else
- compilationParameters.WarningLevel = WarningLevel.All;
-
- compilationParameters.WarningsAsErrors = warningsAsErrorsCheckBox.Active;
-
- compilationParameters.OptimizationLevel = (int)optimizationSpinButton.Value;
-
- switch (targetComboBox.Active)
- {
- case 0:
- configuration.CompileTarget = ValaBinding.CompileTarget.Bin;
- compilationParameters.EnableMultithreading = threadingCheckbox.Active;
- break;
- case 1:
- configuration.CompileTarget = ValaBinding.CompileTarget.StaticLibrary;
- break;
- case 2:
- configuration.CompileTarget = ValaBinding.CompileTarget.SharedLibrary;
- break;
- }
-
- compilationParameters.ExtraCompilerArguments = extraCompilerTextView.Buffer.Text;
-
- compilationParameters.DefineSymbols = defineSymbolsTextEntry.Text;
-
- libStore.GetIterFirst (out iter);
- configuration.Libs.Clear ();
- while (libStore.IterIsValid (iter)) {
- line = (string)libStore.GetValue (iter, 0);
- configuration.Libs.Add (line);
- libStore.IterNext (ref iter);
- }
-
- includePathStore.GetIterFirst (out iter);
- configuration.Includes.Clear ();
- while (includePathStore.IterIsValid (iter)) {
- line = (string)includePathStore.GetValue (iter, 0);
- configuration.Includes.Add (line);
- includePathStore.IterNext (ref iter);
- }
-
- return true;
- }
-
- protected virtual void OnLibAddEntryChanged (object sender, EventArgs e)
- {
- if (string.IsNullOrEmpty (libAddEntry.Text))
- addLibButton.Sensitive = false;
- else
- addLibButton.Sensitive = true;
- }
-
- protected virtual void OnLibTreeViewCursorChanged (object sender, System.EventArgs e)
- {
- removeLibButton.Sensitive = true;
- }
-
- protected virtual void OnRemoveLibButtonClicked (object sender, System.EventArgs e)
- {
- removeLibButton.Sensitive = false;
- }
-
- protected virtual void OnIncludePathEntryChanged (object sender, System.EventArgs e)
- {
- if (string.IsNullOrEmpty (includePathEntry.Text))
- includePathAddButton.Sensitive = false;
- else
- includePathAddButton.Sensitive = true;
- }
-
- protected virtual void OnIncludePathTreeViewCursorChanged (object sender, System.EventArgs e)
- {
- includePathRemoveButton.Sensitive = true;
- }
-
- protected virtual void OnIncludePathRemoveButtonClicked (object sender, System.EventArgs e)
- {
- includePathRemoveButton.Sensitive = false;
- }
-
- protected virtual void OnLibAddEntryActivated (object sender, System.EventArgs e)
- {
- OnLibAdded (this, new EventArgs ());
- }
-
- protected virtual void OnIncludePathEntryActivated (object sender, System.EventArgs e)
- {
- OnIncludePathAdded (this, new EventArgs ());
- }
-
- /// <summary>
- /// Set sensitivity and activity of multithreading checkbox on target change
- /// </summary>
- protected virtual void OnTargetComboBoxChanged (object sender, System.EventArgs e)
- {
- threadingCheckbox.Sensitive = (0 == targetComboBox.Active);
- threadingCheckbox.Active = (threadingCheckbox.Active && threadingCheckbox.Sensitive);
- }
- }
-
- public class CodeGenerationPanelBinding : MultiConfigItemOptionsPanel
- {
- private CodeGenerationPanel panel;
-
- public override Gtk.Widget CreatePanelWidget ()
- {
- return panel = new CodeGenerationPanel ();
- }
-
- public override void LoadConfigData ()
- {
- panel.Load((ValaProjectConfiguration) CurrentConfiguration);
-// panel = new CodeGenerationPanel ((Properties)CustomizationObject);
-// Add (panel);
- }
-
-
- public override void ApplyChanges ()
- {
- panel.Store ();
- }
- }
-}
diff --git a/extras/ValaBinding/Gui/CompilationUnitDataProvider.cs b/extras/ValaBinding/Gui/CompilationUnitDataProvider.cs
deleted file mode 100644
index 582a8b3b48..0000000000
--- a/extras/ValaBinding/Gui/CompilationUnitDataProvider.cs
+++ /dev/null
@@ -1,98 +0,0 @@
-//
-// CompilationUnitDataProvider.cs
-//
-// Author:
-// Levi Bard <taktaktaktaktaktaktaktaktaktak@gmail.com>
-//
-// Copyright (c) 2010 Levi Bard
-//
-// This source code is licenced under The MIT License:
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-using System;
-using System.Linq;
-
-using MonoDevelop.Ide;
-using MonoDevelop.Ide.Gui;
-using MonoDevelop.Ide.Gui.Content;
-using MonoDevelop.Ide.CodeCompletion;
-using MonoDevelop.Components;
-using MonoDevelop.Projects.Dom;
-
-using Gtk;
-
-namespace MonoDevelop.ValaBinding
-{
- // Yoinked from C# binding
- public class CompilationUnitDataProvider : DropDownBoxListWindow.IListDataProvider
- {
- Document Document { get; set; }
-
- public CompilationUnitDataProvider (Document document)
- {
- this.Document = document;
- }// constructor
-
- #region IListDataProvider implementation
- public void Reset () { }
-
- public string GetMarkup (int n)
- {
- return Document.ParsedDocument.UserRegions.ElementAt (n).Name;
- }// GetText
-
- internal static Gdk.Pixbuf Pixbuf
- {
- get { return ImageService.GetPixbuf (Gtk.Stock.Add, IconSize.Menu); }
- }// Pixbuf
-
- public Gdk.Pixbuf GetIcon (int n)
- {
- return Pixbuf;
- }// GetIcon
-
- public object GetTag (int n)
- {
- return Document.ParsedDocument.UserRegions.ElementAt (n);
- }// GetTag
-
-
- public void ActivateItem (int n)
- {
- var reg = Document.ParsedDocument.UserRegions.ElementAt (n);
- MonoDevelop.Ide.Gui.Content.IExtensibleTextEditor extEditor = Document.GetContent<MonoDevelop.Ide.Gui.Content.IExtensibleTextEditor> ();
- if (extEditor != null)
- extEditor.SetCaretTo (Math.Max (1, reg.Region.Start.Line), reg.Region.Start.Column);
- }// ActivateItem
-
- public int IconCount
- {
- get {
- if (Document.ParsedDocument == null)
- return 0;
- return Document.ParsedDocument.UserRegions.Count ();
- }
- }// IconCount
-
- #endregion
- }// CompilationUnitDataProvider
-}
-
diff --git a/extras/ValaBinding/Gui/DataProvider.cs b/extras/ValaBinding/Gui/DataProvider.cs
deleted file mode 100644
index 9671c79cbd..0000000000
--- a/extras/ValaBinding/Gui/DataProvider.cs
+++ /dev/null
@@ -1,118 +0,0 @@
-//
-// DataProvider.cs
-//
-// Author:
-// Levi Bard <taktaktaktaktaktaktaktaktaktak@gmail.com>
-//
-// Copyright (c) 2010 Levi Bard
-//
-// This source code is licenced under The MIT License:
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-using System;
-using System.Collections.Generic;
-
-using MonoDevelop.Ide;
-using MonoDevelop.Ide.Gui;
-using MonoDevelop.Ide.Gui.Content;
-using MonoDevelop.Ide.CodeCompletion;
-using MonoDevelop.Components;
-using MonoDevelop.Projects.Dom;
-using MonoDevelop.Projects.Dom.Output;
-
-using Gtk;
-
-namespace MonoDevelop.ValaBinding
-{
- // Yoinked from C# binding
- public class DataProvider : DropDownBoxListWindow.IListDataProvider
- {
- object tag;
- Ambience amb;
- List<IMember> memberList = new List<IMember> ();
-
- Document Document { get; set; }
-
- public DataProvider (Document doc, object tag, Ambience amb)
- {
- this.Document = doc;
- this.tag = ((INode)tag).Parent;
- this.amb = amb;
- Reset ();
- }// constructor
-
- #region IListDataProvider implementation
- public void Reset ()
- {
- memberList.Clear ();
- if (tag is ICompilationUnit) {
- Stack<IType> types = new Stack<IType> (((ICompilationUnit)tag).Types);
- while (types.Count > 0) {
- IType type = types.Pop ();
- memberList.Add (type);
- foreach (IType innerType in type.InnerTypes)
- types.Push (innerType);
- }
- } else if (tag is IType) {
- memberList.AddRange (((IType)tag).Members);
- }
- memberList.Sort ((x, y) => String.Compare (GetString (amb, x), GetString (amb, y), StringComparison.OrdinalIgnoreCase));
- }// Reset
-
- string GetString (Ambience amb, IMember x)
- {
- if (tag is ICompilationUnit)
- return amb.GetString (x, OutputFlags.IncludeGenerics | OutputFlags.IncludeParameters | OutputFlags.UseFullInnerTypeName | OutputFlags.ReformatDelegates);
- return amb.GetString (x, OutputFlags.IncludeGenerics | OutputFlags.IncludeParameters | OutputFlags.ReformatDelegates);
- }// GetString
-
- public string GetMarkup (int n)
- {
- return GetString (amb, memberList[n]);
- }// GetText
-
- public Gdk.Pixbuf GetIcon (int n)
- {
- return ImageService.GetPixbuf (memberList[n].StockIcon, IconSize.Menu);
- }// GetIcon
-
- public object GetTag (int n)
- {
- return memberList[n];
- }// GetTag
-
- public void ActivateItem (int n)
- {
- var member = memberList[n];
- MonoDevelop.Ide.Gui.Content.IExtensibleTextEditor extEditor = Document.GetContent<MonoDevelop.Ide.Gui.Content.IExtensibleTextEditor> ();
- if (extEditor != null)
- extEditor.SetCaretTo (Math.Max (1, member.Location.Line), member.Location.Column);
- }// ActivateItem
-
- public int IconCount {
- get {
- return memberList.Count;
- }
- }// IconCount
- #endregion
- }// DataProvider
-}
-
diff --git a/extras/ValaBinding/Gui/EditPackagesDialog.cs b/extras/ValaBinding/Gui/EditPackagesDialog.cs
deleted file mode 100644
index 3fb2df10d8..0000000000
--- a/extras/ValaBinding/Gui/EditPackagesDialog.cs
+++ /dev/null
@@ -1,498 +0,0 @@
-//
-// EditPackagesDialog.cs: Allows you to add and remove pkg-config packages to the project
-//
-// Authors:
-// Marcos David Marin Amador <MarcosMarin@gmail.com>
-//
-// Copyright (C) 2007 Marcos David Marin Amador
-//
-//
-// This source code is licenced under The MIT License:
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-using System;
-using System.IO;
-using System.Collections.Generic;
-
-using Mono.Addins;
-
-using MonoDevelop.Projects;
-using MonoDevelop.Ide;
-
-namespace MonoDevelop.ValaBinding
-{
- public partial class EditPackagesDialog : Gtk.Dialog
- {
- private Gtk.ListStore normalPackageListStore = new Gtk.ListStore (typeof(bool), typeof(string), typeof(string));
- private Gtk.ListStore projectPackageListStore = new Gtk.ListStore (typeof(bool), typeof(string), typeof(string));
- private Gtk.ListStore selectedPackageListStore = new Gtk.ListStore (typeof(string), typeof(string));
- private ValaProject project;
- private ProjectPackageCollection selectedPackages = new ProjectPackageCollection ();
- private List<ProjectPackage> packagesOfProjects;
- private List<ProjectPackage> packages = new List<ProjectPackage> ();
-
- // Column IDs
- const int NormalPackageToggleID = 0;
- const int NormalPackageNameID = 1;
- const int NormalPackageVersionID = 2;
-
- const int ProjectPackageToggleID = 0;
- const int ProjectPackageNameID = 1;
- const int ProjectPackageVersionID = 2;
-
- const int SelectedPackageNameID = 0;
- const int SelectedPackageVersionID = 1;
-
- public EditPackagesDialog(ValaProject project)
- {
- this.Build();
-
- this.project = project;
-
- selectedPackages.Project = project;
- selectedPackages.AddRange (project.Packages);
-
- Gtk.CellRendererText textRenderer = new Gtk.CellRendererText ();
-
- Gtk.CellRendererPixbuf pixbufRenderer = new Gtk.CellRendererPixbuf ();
- pixbufRenderer.StockId = "md-package";
-
- normalPackageListStore.DefaultSortFunc = NormalPackageCompareNodes;
- projectPackageListStore.DefaultSortFunc = ProjectPackageCompareNodes;
- selectedPackageListStore.DefaultSortFunc = SelectedPackageCompareNodes;
-
- normalPackageListStore.SetSortColumnId (NormalPackageNameID, Gtk.SortType.Ascending);
- projectPackageListStore.SetSortColumnId (ProjectPackageNameID, Gtk.SortType.Ascending);
- selectedPackageListStore.SetSortColumnId (SelectedPackageNameID, Gtk.SortType.Ascending);
-
- normalPackageTreeView.SearchColumn = NormalPackageNameID;
- projectPackageTreeView.SearchColumn = ProjectPackageNameID;
- selectedPackageTreeView.SearchColumn = SelectedPackageNameID;
-
- // <!-- Normal packages -->
-
- Gtk.CellRendererToggle normalPackageToggleRenderer = new Gtk.CellRendererToggle ();
- normalPackageToggleRenderer.Activatable = true;
- normalPackageToggleRenderer.Toggled += OnNormalPackageToggled;
- normalPackageToggleRenderer.Xalign = 0;
-
- Gtk.TreeViewColumn normalPackageColumn = new Gtk.TreeViewColumn ();
- normalPackageColumn.Title = "Package";
- normalPackageColumn.PackStart (pixbufRenderer, false);
- normalPackageColumn.PackStart (textRenderer, true);
- normalPackageColumn.AddAttribute (textRenderer, "text", NormalPackageNameID);
-
- normalPackageTreeView.Model = normalPackageListStore;
- normalPackageTreeView.HeadersVisible = true;
- normalPackageTreeView.AppendColumn ("", normalPackageToggleRenderer, "active", NormalPackageToggleID);
- normalPackageTreeView.AppendColumn (normalPackageColumn);
- normalPackageTreeView.AppendColumn ("Version", textRenderer, "text", NormalPackageVersionID);
-
- // <!-- Project packages -->
-
- Gtk.CellRendererToggle projectPackageToggleRenderer = new Gtk.CellRendererToggle ();
- projectPackageToggleRenderer.Activatable = true;
- projectPackageToggleRenderer.Toggled += OnProjectPackageToggled;
- projectPackageToggleRenderer.Xalign = 0;
-
- Gtk.TreeViewColumn projectPackageColumn = new Gtk.TreeViewColumn ();
- projectPackageColumn.Title = "Package";
- projectPackageColumn.PackStart (pixbufRenderer, false);
- projectPackageColumn.PackStart (textRenderer, true);
- projectPackageColumn.AddAttribute (textRenderer, "text", ProjectPackageNameID);
-
- projectPackageTreeView.Model = projectPackageListStore;
- projectPackageTreeView.HeadersVisible = true;
- projectPackageTreeView.AppendColumn ("", projectPackageToggleRenderer, "active", ProjectPackageToggleID);
- projectPackageTreeView.AppendColumn (projectPackageColumn);
- projectPackageTreeView.AppendColumn ("Version", textRenderer, "text", ProjectPackageVersionID);
-
-
- // <!-- Selected packages -->
-
- Gtk.TreeViewColumn selectedPackageColumn = new Gtk.TreeViewColumn ();
- selectedPackageColumn.Title = "Package";
- selectedPackageColumn.PackStart (pixbufRenderer, false);
- selectedPackageColumn.PackStart (textRenderer, true);
- selectedPackageColumn.AddAttribute (textRenderer, "text", SelectedPackageNameID);
-
- selectedPackageTreeView.Model = selectedPackageListStore;
- selectedPackageTreeView.HeadersVisible = true;
- selectedPackageTreeView.AppendColumn (selectedPackageColumn);
- selectedPackageTreeView.AppendColumn ("Version", textRenderer, "text", SelectedPackageVersionID);
-
- // Fill up the project tree view
- packagesOfProjects = GetPackagesOfProjects (project);
-
- foreach (ProjectPackage p in packagesOfProjects) {
- if (p.Name == project.Name) continue;
-
- packages.Add (p);
- string version = p.Version;
- bool inProject = selectedPackages.Contains (p);
-
- if (!IsPackageInStore (projectPackageListStore, p.Name, version, ProjectPackageNameID, ProjectPackageVersionID)) {
- projectPackageListStore.AppendValues (inProject, p.Name, version);
-
- if (inProject)
- selectedPackageListStore.AppendValues (p.Name, version);
- }
- }
-
- // Fill up the normal tree view
- foreach (string dir in ScanDirs ()) {
- if (Directory.Exists (dir)) {
- DirectoryInfo di = new DirectoryInfo (dir);
- FileInfo[] availablePackages = di.GetFiles ("*.vapi");
-
- foreach (FileInfo f in availablePackages) {
- if (!IsValidPackage (f.FullName)) {
- continue;
- }
-
- string packagename = f.FullName;
-
- GLib.Idle.Add (delegate {
- ProjectPackage package = new ProjectPackage (packagename);
-
- packages.Add (package);
-
- string name = package.Name;
- string version = package.Version;
- bool inProject = selectedPackages.Contains (package);
-
- if (!IsPackageInStore (normalPackageListStore, name, version, NormalPackageNameID, NormalPackageVersionID)) {
- normalPackageListStore.AppendValues (inProject, name, version);
-
- if (inProject)
- selectedPackageListStore.AppendValues (name, version);
- }
- return false;
- });
- }
- }
- }
- }
-
- private List<ProjectPackage> GetPackagesOfProjects (Project project)
- {
- List<ProjectPackage> packages = new List<ProjectPackage>();
- ProjectPackage package;
-
- foreach (Project c in IdeApp.Workspace.GetAllProjects()) {
- if (c is ValaProject) {
- ValaProject proj = c as ValaProject;
- ValaProjectConfiguration conf = proj.GetConfiguration (IdeApp.Workspace.ActiveConfiguration) as ValaProjectConfiguration;
- if (conf.CompileTarget != CompileTarget.Bin) {
- proj.WriteMDPkgPackage (conf.Selector);
- package = new ProjectPackage (proj);
- packages.Add (package);
- }
- }
- }
-
- return packages;
- }
-
- private bool IsPackageInStore (Gtk.ListStore store, string pname, string pversion, int pname_col, int pversion_col)
- {
- Gtk.TreeIter search_iter;
- bool has_elem = store.GetIterFirst (out search_iter);
-
- if (has_elem) {
- while (true) {
- string name = (string)store.GetValue (search_iter, pname_col);
- string version = (string)store.GetValue (search_iter, pversion_col);
-
- if (name == pname && version == pversion)
- return true;
-
- if (!store.IterNext (ref search_iter))
- break;
- }
- }
-
- return false;
- }
-
- private string[] ScanDirs ()
- {
- return new string[]{ ValaProject.vapidir };
- }
-
- private void OnOkButtonClick (object sender, EventArgs e)
- {
- // Use this instead of clear, since clear seems to not update the packages tree
- while (project.Packages.Count > 0) {
- project.Packages.RemoveAt (0);
- }
-
- project.Packages.AddRange (selectedPackages);
-
- Destroy ();
- }
-
- private void OnCancelButtonClick (object sender, EventArgs e)
- {
- Destroy ();
- }
-
- private void OnRemoveButtonClick (object sender, EventArgs e)
- {
- Gtk.TreeIter iter;
-
- selectedPackageTreeView.Selection.GetSelected (out iter);
-
- if (!selectedPackageListStore.IterIsValid (iter)) return;
-
- string package = (string)selectedPackageListStore.GetValue (iter, SelectedPackageNameID);
- bool isProject = false;
-
- foreach (ProjectPackage p in selectedPackages) {
- if (p.Name == package) {
- isProject = p.IsProject;
- selectedPackages.Remove (p);
- break;
- }
- }
-
- selectedPackageListStore.Remove (ref iter);
-
- if (!isProject) {
- Gtk.TreeIter search_iter;
- bool has_elem = normalPackageListStore.GetIterFirst (out search_iter);
-
- if (has_elem) {
- while (true) {
- string current = (string)normalPackageListStore.GetValue (search_iter, NormalPackageNameID);
-
- if (current.Equals (package)) {
- normalPackageListStore.SetValue (search_iter, NormalPackageToggleID, false);
- break;
- }
-
- if (!normalPackageListStore.IterNext (ref search_iter))
- break;
- }
- }
- } else {
- Gtk.TreeIter search_iter;
- bool has_elem = projectPackageListStore.GetIterFirst (out search_iter);
-
- if (has_elem) {
- while (true) {
- string current = (string)projectPackageListStore.GetValue (search_iter, ProjectPackageNameID);
-
- if (current.Equals (package)) {
- projectPackageListStore.SetValue (search_iter, ProjectPackageToggleID, false);
- break;
- }
-
- if (!projectPackageListStore.IterNext (ref search_iter))
- break;
- }
- }
- }
- }
-
- private void OnNormalPackageToggled (object sender, Gtk.ToggledArgs args)
- {
- Gtk.TreeIter iter;
- bool old = true;
- string name;
- string version;
-
- if (normalPackageListStore.GetIter (out iter, new Gtk.TreePath (args.Path))) {
- old = (bool)normalPackageListStore.GetValue (iter, NormalPackageToggleID);
- normalPackageListStore.SetValue (iter, NormalPackageToggleID, !old);
- }
-
- name = (string)normalPackageListStore.GetValue (iter, NormalPackageNameID);
- version = (string)normalPackageListStore.GetValue(iter, NormalPackageVersionID);
-
- if (old == false) {
- selectedPackageListStore.AppendValues (name, version);
-
- foreach (ProjectPackage package in packages) {
- if (package.Name == name /* && package.Version == version */) {
- selectedPackages.Add (package);
- break;
- }
- }
-
- } else {
- Gtk.TreeIter search_iter;
- bool has_elem = selectedPackageListStore.GetIterFirst (out search_iter);
-
- if (has_elem) {
- while (true) {
- string current = (string)selectedPackageListStore.GetValue (search_iter, SelectedPackageNameID);
-
- if (current.Equals (name)) {
- selectedPackageListStore.Remove (ref search_iter);
- foreach (ProjectPackage p in selectedPackages) {
- if (p.Name == name) {
- selectedPackages.Remove (p);
- break;
- }
- }
-
- break;
- }
-
- if (!selectedPackageListStore.IterNext (ref search_iter))
- break;
- }
- }
- }
- }
-
- private void OnProjectPackageToggled (object sender, Gtk.ToggledArgs args)
- {
- Gtk.TreeIter iter;
- bool old = true;
- string name;
- string version;
-
- if (projectPackageListStore.GetIter (out iter, new Gtk.TreePath (args.Path))) {
- old = (bool)projectPackageListStore.GetValue (iter, ProjectPackageToggleID);
- projectPackageListStore.SetValue (iter, ProjectPackageToggleID, !old);
- }
-
- name = (string)projectPackageListStore.GetValue (iter, ProjectPackageNameID);
- version = (string)projectPackageListStore.GetValue(iter, ProjectPackageVersionID);
-
- if (old == false) {
- selectedPackageListStore.AppendValues (name, version);
-
- foreach (ProjectPackage p in packagesOfProjects) {
- if (p.Name == name) {
- selectedPackages.Add (p);
- break;
- }
- }
- } else {
- Gtk.TreeIter search_iter;
- bool has_elem = selectedPackageListStore.GetIterFirst (out search_iter);
-
- if (has_elem)
- {
- while (true) {
- string current = (string)selectedPackageListStore.GetValue (search_iter, SelectedPackageNameID);
-
- if (current.Equals (name)) {
- selectedPackageListStore.Remove (ref search_iter);
- foreach (ProjectPackage p in selectedPackages) {
- if (p.Name == name) {
- selectedPackages.Remove (p);
- break;
- }
- }
-
- break;
- }
-
- if (!selectedPackageListStore.IterNext (ref search_iter))
- break;
- }
- }
- }
- }
-
- private bool IsValidPackage (string package)
- {
- return true;
- }
-
- int NormalPackageCompareNodes (Gtk.TreeModel model, Gtk.TreeIter a, Gtk.TreeIter b)
- {
- string name1 = (string)model.GetValue (a, NormalPackageNameID);
- string name2 = (string)model.GetValue (b, NormalPackageNameID);
- return string.Compare (name1, name2, true);
- }
-
- int ProjectPackageCompareNodes (Gtk.TreeModel model, Gtk.TreeIter a, Gtk.TreeIter b)
- {
- string name1 = (string)model.GetValue (a, ProjectPackageNameID);
- string name2 = (string)model.GetValue (b, ProjectPackageNameID);
- return string.Compare (name1, name2, true);
- }
-
- int SelectedPackageCompareNodes (Gtk.TreeModel model, Gtk.TreeIter a, Gtk.TreeIter b)
- {
- string name1 = (string)model.GetValue (a, SelectedPackageNameID);
- string name2 = (string)model.GetValue (b, SelectedPackageNameID);
- return string.Compare (name1, name2, true);
- }
-
- protected virtual void OnSelectedPackagesTreeViewCursorChanged (object sender, System.EventArgs e)
- {
- removeButton.Sensitive = true;
- }
-
- protected virtual void OnRemoveButtonClicked (object sender, System.EventArgs e)
- {
- removeButton.Sensitive = false;
- }
-
- protected virtual void OnDetailsButtonClicked (object sender, System.EventArgs e)
- {
- Gtk.TreeIter iter;
- Gtk.Widget active_tab = notebook1.Children [notebook1.Page];
- string tab_label = notebook1.GetTabLabelText (active_tab);
- string name = string.Empty;
- // string version = string.Empty;
- ProjectPackage package = null;
-
- if (tab_label == "System Packages") {
- normalPackageTreeView.Selection.GetSelected (out iter);
- name = (string)normalPackageListStore.GetValue (iter, NormalPackageNameID);
- // version = (string)normalPackageListStore.GetValue (iter, NormalPackageVersionID);
- } else if (tab_label == "Project Packages") {
- projectPackageTreeView.Selection.GetSelected (out iter);
- name = (string)projectPackageListStore.GetValue (iter, ProjectPackageNameID);
- // version = (string)projectPackageListStore.GetValue (iter, ProjectPackageVersionID);
- } else {
- return;
- }
-
- foreach (ProjectPackage p in packages) {
- if (p.Name == name /* && p.Version == version */) {
- package = p;
- break;
- }
- }
-
- if (package == null)
- return;
-
- PackageDetails details = new PackageDetails (package);
- details.Modal = true;
- details.Show ();
- }
-
- protected virtual void OnNonSelectedPackageCursorChanged (object o, EventArgs e)
- {
- detailsButton.Sensitive = true;
- }
- }
-}
diff --git a/extras/ValaBinding/Gui/GeneralOptionsPanel.cs b/extras/ValaBinding/Gui/GeneralOptionsPanel.cs
deleted file mode 100644
index c9a53385a4..0000000000
--- a/extras/ValaBinding/Gui/GeneralOptionsPanel.cs
+++ /dev/null
@@ -1,128 +0,0 @@
-//
-// GeneralOptionsPanel.cs
-//
-// Authors:
-// Levi Bard <taktaktaktaktaktaktaktaktaktak@gmail.com>
-//
-// Copyright (C) 2008 Levi Bard
-// Based on CBinding by Marcos David Marin Amador <MarcosMarin@gmail.com>
-//
-// This source code is licenced under The MIT License:
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-
-using System;
-using System.Collections.Generic;
-
-using Mono.Addins;
-
-using MonoDevelop.Core;
-using MonoDevelop.Ide.Gui.Dialogs;
-
-namespace MonoDevelop.ValaBinding
-{
- public partial class GeneralOptionsPanel : Gtk.Bin
- {
- ICompiler default_vala_compiler;
- List<ICompiler> vala_compilers = new List<ICompiler> ();
-
- public GeneralOptionsPanel ()
- {
- this.Build ();
-
- object[] compilers = AddinManager.GetExtensionObjects ("/ValaBinding/Compilers");
-
- foreach (ICompiler compiler in compilers) {
- vala_compilers.Add (compiler);
- }
-
- foreach (ICompiler compiler in vala_compilers)
- valaCombo.AppendText (compiler.Name);
-
- string vala_compiler = PropertyService.Get<string> ("ValaBinding.DefaultValaCompiler", new ValaCompiler ().Name);
-
- foreach (ICompiler compiler in vala_compilers) {
- if (compiler.Name == vala_compiler) {
- default_vala_compiler = compiler;
- }
- }
-
- if (default_vala_compiler == null)
- default_vala_compiler = new ValaCompiler ();
-
- int active;
- Gtk.TreeIter iter;
- Gtk.ListStore store;
-
- active = 0;
- store = (Gtk.ListStore)valaCombo.Model;
- store.GetIterFirst (out iter);
-
- while (store.IterIsValid (iter)) {
- if ((string)store.GetValue (iter, 0) == default_vala_compiler.Name) {
- break;
- }
- store.IterNext (ref iter);
- active++;
- }
-
- valaCombo.Active = active;
- }
-
- public bool Store ()
- {
- PropertyService.Set ("ValaBinding.DefaultValaCompiler", default_vala_compiler.Name);
- PropertyService.SaveProperties ();
- return true;
- }
-
- protected virtual void OnValaComboChanged (object sender, System.EventArgs e)
- {
- string activeCompiler = valaCombo.ActiveText;
-
- foreach (ICompiler compiler in vala_compilers) {
- if (compiler.Name == activeCompiler) {
- default_vala_compiler = compiler;
- }
- }
-
- if (default_vala_compiler == null)
- default_vala_compiler = new ValaCompiler ();
- }
- }
-
- public class GeneralOptionsPanelBinding : OptionsPanel
- {
- private GeneralOptionsPanel panel;
-
- public override Gtk.Widget CreatePanelWidget ()
- {
- panel = new GeneralOptionsPanel ();
- return panel;
- }
-
- public override void ApplyChanges ()
- {
- panel.Store ();
- }
- }
-}
diff --git a/extras/ValaBinding/Gui/OutputOptionsPanel.cs b/extras/ValaBinding/Gui/OutputOptionsPanel.cs
deleted file mode 100644
index 29b68bf81a..0000000000
--- a/extras/ValaBinding/Gui/OutputOptionsPanel.cs
+++ /dev/null
@@ -1,114 +0,0 @@
-//
-// OutputOptionsPanel.cs: configure output options
-//
-// Authors:
-// Levi Bard <taktaktaktaktaktaktaktaktaktak@gmail.com>
-//
-// Copyright (C) 2008 Levi Bard
-// Based on CBinding by Marcos David Marin Amador <MarcosMarin@gmail.com>
-//
-// This source code is licenced under The MIT License:
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-using System;
-using MonoDevelop.Ide.Gui.Dialogs;
-
-namespace MonoDevelop.ValaBinding
-{
- public partial class OutputOptionsPanel : Gtk.Bin
- {
- private ValaProjectConfiguration configuration;
-
- public OutputOptionsPanel ()
- {
- this.Build ();
-
- table1.RowSpacing = 3;
- }
-
- public void Load (ValaProjectConfiguration config)
- {
- configuration = config;
-
- outputNameTextEntry.Text = configuration.Output;
- outputPathTextEntry.Text = configuration.OutputDirectory;
- parametersTextEntry.Text = configuration.CommandLineParameters;
-
- externalConsoleCheckbox.Active = configuration.ExternalConsole;
- pauseCheckbox.Active = configuration.PauseConsoleOutput;
- }
-
- private void OnBrowseButtonClick (object sender, EventArgs e)
- {
- AddPathDialog dialog = new AddPathDialog (configuration.OutputDirectory);
- dialog.Run ();
- outputPathTextEntry.Text = dialog.SelectedPath;
- }
-
- public bool Store ()
- {
- if (configuration == null)
- return false;
-
- if (outputNameTextEntry != null && outputNameTextEntry.Text.Length > 0)
- configuration.Output = outputNameTextEntry.Text.Trim ();
-
- if (outputPathTextEntry.Text != null && outputPathTextEntry.Text.Length > 0)
- configuration.OutputDirectory = outputPathTextEntry.Text.Trim ();
-
- if (parametersTextEntry.Text != null && parametersTextEntry.Text.Length > 0)
- configuration.CommandLineParameters = parametersTextEntry.Text.Trim ();
-
- configuration.ExternalConsole = externalConsoleCheckbox.Active;
- configuration.PauseConsoleOutput = pauseCheckbox.Active;
-
- return true;
- }
-
- protected virtual void OnExternalConsoleCheckboxClicked (object sender, System.EventArgs e)
- {
- pauseCheckbox.Sensitive = externalConsoleCheckbox.Active;
- }
- }
-
- public class OutputOptionsPanelBinding : MultiConfigItemOptionsPanel
- {
- private OutputOptionsPanel panel;
-
- public override Gtk.Widget CreatePanelWidget ()
- {
- return panel = new OutputOptionsPanel ();
- }
-
- public override void LoadConfigData ()
- {
- panel.Load((ValaProjectConfiguration) CurrentConfiguration);
-// panel = new OutputOptionsPanel ((Properties)CustomizationObject);
-// Add (panel);
- }
-
- public override void ApplyChanges ()
- {
- panel.Store ();
- }
- }
-}
diff --git a/extras/ValaBinding/Gui/PackageDetails.cs b/extras/ValaBinding/Gui/PackageDetails.cs
deleted file mode 100644
index 26e881d592..0000000000
--- a/extras/ValaBinding/Gui/PackageDetails.cs
+++ /dev/null
@@ -1,90 +0,0 @@
-//
-// PackageDetails.cs
-//
-// Authors:
-// Marcos David Marin Amador <MarcosMarin@gmail.com>
-//
-// Copyright (C) 2007 Marcos David Marin Amador
-//
-//
-// This source code is licenced under The MIT License:
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-using System;
-
-namespace MonoDevelop.ValaBinding
-{
- public partial class PackageDetails : Gtk.Dialog
- {
- Gtk.ListStore requiresStore = new Gtk.ListStore (typeof(string));
-// Gtk.ListStore libPathsStore = new Gtk.ListStore (typeof(string));
-// Gtk.ListStore libsStore = new Gtk.ListStore (typeof(string));
-// Gtk.ListStore cflagsStore = new Gtk.ListStore (typeof(string));
-
- public PackageDetails (ProjectPackage package)
- {
- this.Build();
-
- package = new ProjectPackage(package.File);
-
- Gtk.CellRendererText textRenderer = new Gtk.CellRendererText ();
-
- requiresTreeView.Model = requiresStore;
- requiresTreeView.AppendColumn ("Requires", textRenderer, "text", 0);
- requiresTreeView.HeadersVisible = false;
-
-// libPathsTreeView.Model = libPathsStore;
-// libPathsTreeView.AppendColumn ("LibPaths", textRenderer, "text", 0);
-// libPathsTreeView.HeadersVisible = false;
-//
-// libsTreeView.Model = libsStore;
-// libsTreeView.AppendColumn ("Libs", textRenderer, "text", 0);
-// libsTreeView.HeadersVisible = false;
-//
-// cflagsTreeView.Model = cflagsStore;
-// cflagsTreeView.AppendColumn ("CFlags", textRenderer, "text", 0);
-// cflagsTreeView.HeadersVisible = false;
-//
- nameLabel.Text = package.Name;
-
- descriptionLabel.Text = package.Description;
- versionLabel.Text = package.Version;
-
- foreach (string req in package.Requires)
- requiresStore.AppendValues (req);
-
-// foreach (string libpath in package.LibPaths)
-// libPathsStore.AppendValues (libpath);
-//
-// foreach (string lib in package.Libs)
-// libsStore.AppendValues (lib);
-//
-// foreach (string cflag in package.CFlags)
-// cflagsStore.AppendValues (cflag);
- }
-
- protected virtual void OnButtonOkClicked (object sender, System.EventArgs e)
- {
- Destroy ();
- }
- }
-}
diff --git a/extras/ValaBinding/Gui/ParameterDataProvider.cs b/extras/ValaBinding/Gui/ParameterDataProvider.cs
deleted file mode 100644
index 26105ed851..0000000000
--- a/extras/ValaBinding/Gui/ParameterDataProvider.cs
+++ /dev/null
@@ -1,286 +0,0 @@
-//
-// DataProvider.cs
-//
-// Authors:
-// Levi Bard <taktaktaktaktaktaktaktaktaktak@gmail.com>
-//
-// Copyright (C) 2008 Levi Bard
-// Based on CBinding by Marcos David Marin Amador <MarcosMarin@gmail.com>
-//
-// This source code is licenced under The MIT License:
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-
-using System;
-using System.Collections;
-using System.Collections.Generic;
-using System.Text.RegularExpressions;
-using System.Threading;
-
-using MonoDevelop.Core;
-
-using MonoDevelop.Ide.Gui;
-using MonoDevelop.Ide.CodeCompletion;
-
-using MonoDevelop.ValaBinding.Parser;
-using MonoDevelop.ValaBinding.Parser.Afrodite;
-
-namespace MonoDevelop.ValaBinding
-{
- public class ParameterDataProvider : IParameterDataProvider
- {
- Document document;
- private IList<Symbol> functions;
- private string functionName;
-
- public ParameterDataProvider (Document document, ProjectInformation info, string functionName)
- {
- this.document = document;
- this.functionName = functionName;
-
- functions = new List<Symbol> ();
- Symbol function = info.GetFunction (functionName, document.FileName, document.Editor.Caret.Line + 1, document.Editor.Caret.Column + 1);
- if (null != function){ functions.Add (function); }
- }// member function constructor
-
- /// <summary>
- /// Create a ParameterDataProvider for a constructor
- /// </summary>
- /// <param name="constructorOverload">
- /// A <see cref="System.String"/>: The named of the pertinent constructor overload
- /// </param>
- public ParameterDataProvider (Document document, ProjectInformation info, string typename, string constructorOverload)
- {
- this.functionName = constructorOverload;
- this.document = document;
-
- List<Symbol> myfunctions = info.GetConstructorsForType (typename, document.FileName, document.Editor.Caret.Line + 1, document.Editor.Caret.Column + 1, null); // bottleneck
- if (1 < myfunctions.Count) {
- foreach (Symbol function in myfunctions) {
- if (functionName.Equals (function.Name, StringComparison.Ordinal)) {
- functions = new List<Symbol> () {function};
- return;
- }
- }
- }
-
- functions = myfunctions;
- }// constructor constructor
-
- /// <summary>
- /// The number of overloads for this method
- /// </summary>
- public int OverloadCount {
- get { return functions.Count; }
- }
-
- /// <summary>
- /// Get the index of the parameter where the cursor is currently positioned.
- /// </summary>
- /// <param name="ctx">
- /// A <see cref="CodeCompletionContext"/>
- /// </param>
- /// <returns>
- /// A <see cref="System.Int32"/>: The index of the parameter,
- /// 0 for no parameter entered,
- /// -1 for outside the list
- /// </returns>
- public int GetCurrentParameterIndex (ICompletionWidget widget, CodeCompletionContext ctx)
- {
- int cursor = document.Editor.Caret.Offset;
- int i = ctx.TriggerOffset;
-
- if (i > cursor)
- return -1;
- else if (i == cursor)
- return 1;
-
- int parameterIndex = 1;
-
- while (i++ < cursor) {
- char ch = document.Editor.GetCharAt (i-1);
- if (ch == ',')
- parameterIndex++;
- else if (ch == ')')
- return -1;
- }
-
- return parameterIndex;
- }
-
- /// <summary>
- /// Get the markup to use to represent the specified method overload
- /// in the parameter information window.
- /// </summary>
- public string GetMethodMarkup (int overload, string[] parameterMarkup, int currentParameter)
- {
- string paramTxt = string.Join (", ", parameterMarkup);
- Symbol function = functions[overload];
-
- int len = function.FullyQualifiedName.LastIndexOf (".");
- string prename = null;
- string returnType = (function.ReturnType == null)? string.Empty: function.ReturnType.TypeName;
-
- if (len > 0)
- prename = function.FullyQualifiedName.Substring (0, len + 1);
-
-// string cons = string.Empty;
-
-// if (function.IsConst)
-// cons = " const";
-
- return string.Format ("{2} {3}<b>{0}</b>({1})", GLib.Markup.EscapeText (function.Name),
- paramTxt,
- GLib.Markup.EscapeText (returnType),
- GLib.Markup.EscapeText (prename));
- // return prename + "<b>" + function.Name + "</b>" + " (" + paramTxt + ")" + cons;
- }
-
- /// <summary>
- /// Get the text to use to represent the specified parameter
- /// </summary>
- public string GetParameterMarkup (int overload, int paramIndex)
- {
- Symbol function = functions[overload];
-
- if (null != function && null != function.Parameters[paramIndex]) {
- string name = function.Parameters[paramIndex].Name;
- string type = function.Parameters[paramIndex].TypeName;
- return GLib.Markup.EscapeText (string.Format ("{1} {0}", name, type));
- }
-
- return string.Empty;
- }
-
- /// <summary>
- /// Get the number of parameters of the specified method
- /// </summary>
- public int GetParameterCount (int overload)
- {
- if (null != functions && null != functions[overload] && null != functions[overload].Parameters) {
- return functions[overload].Parameters.Count;
- }
- return 0;
- }
- }
-
- /// <summary>
- /// Data for Vala completion
- /// </summary>
- internal class CompletionData : MonoDevelop.Ide.CodeCompletion.CompletionData
- {
- private string image;
- private string text;
- private string description;
- private string completion_string;
-
- public CompletionData (Symbol item)
- {
- this.text = item.Name;
- this.completion_string = item.Name;
- this.description = item.DisplayText;
- this.image = item.Icon;
- DisplayFlags = DisplayFlags.None;
- CompletionCategory = new ValaCompletionCategory (text, image);
- }
-
- public override IconId Icon {
- get { return image; }
- }
-
- public override string DisplayText {
- get { return text; }
- }
-
- public override string Description {
- get { return description; }
- }
-
- public override string CompletionText {
- get { return completion_string; }
- }
- }
-
- internal class ValaCompletionDataList: CompletionDataList, IMutableCompletionDataList
- {
- public ValaCompletionDataList (): base ()
- {
- IsChanging = true;
- Add (string.Empty);
- }
-
- internal virtual void AddRange (IEnumerable<CompletionData> vals)
- {
- foreach (CompletionData item in vals) {
- Add (item);
- }
- }
-
- #region IMutableCompletionDataList implementation
-
- public event EventHandler Changed;
- public event EventHandler Changing;
-
-
- public bool IsChanging {
- get { return isChanging; }
- set {
- isChanging = value;
- if (value){ OnChanging (this, null); }
- else{ OnChanged (this, null); }
- }
- }
- private bool isChanging;
-
- #endregion
-
- protected virtual void OnChanging (object sender, EventArgs args)
- {
- if (null != Changing) {
- Changing (sender, args);
- }
- }
-
- protected virtual void OnChanged (object sender, EventArgs args)
- {
- if (null != Changed) {
- Changed (sender, args);
- }
- }
-
- public void Dispose ()
- {
- }
- }// ValaCompletionDataList
-
- internal class ValaCompletionCategory: CompletionCategory
- {
- public ValaCompletionCategory (string text, string image): base (text, image)
- {
- }
-
- public override int CompareTo (CompletionCategory other)
- {
- return DisplayText.CompareTo (other.DisplayText);
- }
- }
-}
diff --git a/extras/ValaBinding/Gui/ValaTextEditorExtension.cs b/extras/ValaBinding/Gui/ValaTextEditorExtension.cs
deleted file mode 100644
index 39a1525500..0000000000
--- a/extras/ValaBinding/Gui/ValaTextEditorExtension.cs
+++ /dev/null
@@ -1,424 +0,0 @@
-//
-// ValaTextEditorExtension.cs
-//
-// Authors:
-// Levi Bard <taktaktaktaktaktaktaktaktaktak@gmail.com>
-//
-// Copyright (C) 2008 Levi Bard
-// Based on CBinding by Marcos David Marin Amador <MarcosMarin@gmail.com>
-//
-// This source code is licenced under The MIT License:
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-
-using System;
-using System.IO;
-using System.Text;
-using System.Linq;
-using System.Text.RegularExpressions;
-using System.Collections.Generic;
-using System.Threading;
-
-using MonoDevelop.Ide;
-using MonoDevelop.Ide.Gui;
-using MonoDevelop.Ide.Gui.Content;
-using MonoDevelop.Ide.CodeCompletion;
-using MonoDevelop.Projects.Dom;
-using MonoDevelop.Projects.Dom.Output;
-
-using MonoDevelop.Core;
-using MonoDevelop.Components;
-
-using Gtk;
-
-using MonoDevelop.ValaBinding.Parser;
-
-namespace MonoDevelop.ValaBinding
-{
- public class ValaTextEditorExtension : CompletionTextEditorExtension, IPathedDocument
- {
- // Allowed chars to be next to an identifier
- private static char[] allowedChars = new char[] { ' ', '\t', '\r', '\n',
- ':', '=', '*', '+', '-', '/', '%', ',', '&',
- '|', '^', '{', '}', '[', ']', '(', ')', '\n', '!', '?', '<', '>'
- };
-
- private static char[] operators = new char[] {
- '=', '+', '-', ',', '&', '|',
- '^', '[', '!', '?', '<', '>', ':'
- };
-
- private ProjectInformation Parser {
- get {
- ValaProject project = Document.Project as ValaProject;
- return (null == project)? null: ProjectInformationManager.Instance.Get (project);
- }
- }// Parser
-
- protected Mono.TextEditor.TextEditorData textEditorData{ get; set; }
-
- public override bool KeyPress (Gdk.Key key, char keyChar, Gdk.ModifierType modifier)
- {
- string lineText = Editor.GetLineText (Editor.Caret.Line);
-
- // smart formatting strategy
- if (TextEditorProperties.IndentStyle == IndentStyle.Smart) {
- if (key == Gdk.Key.Return) {
- if (lineText.TrimEnd ().EndsWith ("{")) {
- Editor.InsertAtCaret ("\n" + TextEditorProperties.IndentString + Editor.Document.GetLineIndent (Editor.Caret.Line));
- return false;
- }
- } else if (key == Gdk.Key.braceright && AllWhiteSpace (lineText)
- && lineText.StartsWith (TextEditorProperties.IndentString)) {
- if (lineText.Length > 0)
- lineText = lineText.Substring (TextEditorProperties.IndentString.Length);
- var lineSegment = Editor.Document.GetLine (Editor.Caret.Line);
- Editor.Replace (lineSegment.Offset, lineSegment.EditableLength, lineText + "}");
- return false;
- }
- }
-
- return base.KeyPress (key, keyChar, modifier);
- }
-
- /// <summary>
- /// Expression to match instance construction/initialization
- /// </summary>
- private static Regex initializationRegex = new Regex (@"(((?<typename>\w[\w\d\.<>]*)\s+)?(?<variable>\w[\w\d]*)\s*=\s*)?new\s*(?<constructor>\w[\w\d\.<>]*)?", RegexOptions.Compiled);
-
- public override ICompletionDataList HandleCodeCompletion (
- CodeCompletionContext completionContext, char completionChar)
- {
- string lineText = null;
- ProjectInformation parser = Parser;
- var loc = Editor.Document.OffsetToLocation (completionContext.TriggerOffset);
- int line = loc.Line, column = loc.Column;
- switch (completionChar) {
- case '.': // foo.[complete]
- lineText = Editor.GetLineText (line);
- if (column > lineText.Length){ column = lineText.Length; }
- lineText = lineText.Substring (0, column - 1);
-
- string itemName = GetTrailingSymbol (lineText);
-
- if (string.IsNullOrEmpty (itemName))
- return null;
-
- return GetMembersOfItem (itemName, line, column);
- case '\t':
- case ' ':
- lineText = Editor.GetLineText (line);
- if (0 == lineText.Length){ return null; }
- if (column > lineText.Length){ column = lineText.Length; }
- lineText = lineText.Substring (0, column-1).Trim ();
-
- if (lineText.EndsWith ("new")) {
- return CompleteConstructor (lineText, line, column);
- } else if (lineText.EndsWith ("is")) {
- ValaCompletionDataList list = new ValaCompletionDataList ();
- ThreadPool.QueueUserWorkItem (delegate {
- parser.GetTypesVisibleFrom (Document.FileName, line, column, list);
- });
- return list;
- } else if (0 < lineText.Length) {
- char lastNonWS = lineText[lineText.Length-1];
- if (0 <= Array.IndexOf (operators, lastNonWS) ||
- (1 == lineText.Length && 0 > Array.IndexOf (allowedChars, lastNonWS))) {
- return GlobalComplete (completionContext);
- }
- }
-
- break;
- default:
- if (0 <= Array.IndexOf (operators, completionChar)) {
- return GlobalComplete (completionContext);
- }
- break;
- }
-
- return null;
- }
-
- static string GetTrailingSymbol (string text)
- {
- // remove the trailing '.'
- if (text.EndsWith (".", StringComparison.Ordinal))
- text = text.Substring (0, text.Length-1);
-
- int nameStart = text.LastIndexOfAny (allowedChars);
- return text.Substring (nameStart+1).Trim ();
- }
-
- /// <summary>
- /// Perform constructor-specific completion
- /// </summary>
- private ValaCompletionDataList CompleteConstructor (string lineText, int line, int column)
- {
- ProjectInformation parser = Parser;
- Match match = initializationRegex.Match (lineText);
- ValaCompletionDataList list = new ValaCompletionDataList ();
-
- ThreadPool.QueueUserWorkItem (delegate {
- if (match.Success) {
- // variable initialization
- if (match.Groups["typename"].Success || "var" != match.Groups["typename"].Value) {
- // simultaneous declaration and initialization
- parser.GetConstructorsForType (match.Groups["typename"].Value, Document.FileName, line, column, list);
- } else if (match.Groups["variable"].Success) {
- // initialization of previously declared variable
- parser.GetConstructorsForExpression (match.Groups["variable"].Value, Document.FileName, line, column, list);
- }
- if (0 == list.Count) {
- // Fallback to known types
- parser.GetTypesVisibleFrom (Document.FileName, line, column, list);
- }
- }
- });
-
- return list;
- }// CompleteConstructor
-
- public override ICompletionDataList CodeCompletionCommand (
- CodeCompletionContext completionContext)
- {
- if (null == (Document.Project as ValaProject)){ return null; }
-
- int pos = completionContext.TriggerOffset;
-
- ICompletionDataList list = HandleCodeCompletion(completionContext, Editor.GetTextBetween (pos - 1, pos)[0]);
- if (null == list) {
- list = GlobalComplete (completionContext);
- }
- return list;
- }
-
- /// <summary>
- /// Get the members of a symbol
- /// </summary>
- private ValaCompletionDataList GetMembersOfItem (string itemFullName, int line, int column)
- {
- ProjectInformation info = Parser;
- if (null == info){ return null; }
-
- ValaCompletionDataList list = new ValaCompletionDataList ();
- ThreadPool.QueueUserWorkItem (delegate {
- info.Complete (itemFullName, Document.FileName, line, column, list);
- });
- return list;
- }
-
- /// <summary>
- /// Complete all symbols visible from a given location
- /// </summary>
- private ValaCompletionDataList GlobalComplete (CodeCompletionContext context)
- {
- ProjectInformation info = Parser;
- if (null == info){ return null; }
-
- ValaCompletionDataList list = new ValaCompletionDataList ();
- var loc = Editor.Document.OffsetToLocation (context.TriggerOffset);
- ThreadPool.QueueUserWorkItem (delegate {
- info.GetSymbolsVisibleFrom (Document.FileName, loc.Line + 1, loc.Column + 1, list);
- });
- return list;
- }
-
- public override IParameterDataProvider HandleParameterCompletion (
- CodeCompletionContext completionContext, char completionChar)
- {
- if (completionChar != '(')
- return null;
-
- ProjectInformation info = Parser;
- if (null == info){ return null; }
-
- int position = Editor.Document.GetLine (Editor.Caret.Line).Offset;
- string lineText = Editor.GetTextBetween (position, Editor.Caret.Offset - 1).TrimEnd ();
- string functionName = string.Empty;
-
- Match match = initializationRegex.Match (lineText);
- if (match.Success && match.Groups["constructor"].Success) {
- string[] tokens = match.Groups["constructor"].Value.Split('.');
- string overload = tokens[tokens.Length-1];
- string typename = (match.Groups["typename"].Success? match.Groups["typename"].Value: null);
- int index = 0;
-
- if (1 == tokens.Length || null == typename) {
- // Ideally if typename is null and token length is longer than 1,
- // we have an expression like: var w = new x.y.z(); and
- // we would check whether z is the type or if y.z is an overload for type y
- typename = overload;
- } else if ("var".Equals (typename, StringComparison.Ordinal)) {
- typename = match.Groups["constructor"].Value;
- } else {
- // Foo.Bar bar = new Foo.Bar.blah( ...
- for (string[] typeTokens = typename.Split ('.'); index < typeTokens.Length && index < tokens.Length; ++index) {
- if (!typeTokens[index].Equals (tokens[index], StringComparison.Ordinal)) {
- break;
- }
- }
- List<string> overloadTokens = new List<string> ();
- for (int i=index; i<tokens.Length; ++i) {
- overloadTokens.Add (tokens[i]);
- }
- overload = string.Join (".", overloadTokens.ToArray ());
- }
-
- // HACK: Generics
- if (0 < (index = overload.IndexOf ("<", StringComparison.Ordinal))) {
- overload = overload.Substring (0, index);
- }
- if (0 < (index = typename.IndexOf ("<", StringComparison.Ordinal))) {
- typename = typename.Substring (0, index);
- }
-
- // Console.WriteLine ("Constructor: type {0}, overload {1}", typename, overload);
- return new ParameterDataProvider (Document, info, typename, overload);
- }
-
- int nameStart = lineText.LastIndexOfAny (allowedChars) + 1;
- functionName = lineText.Substring (nameStart).Trim ();
- return (string.IsNullOrEmpty (functionName)? null: new ParameterDataProvider (Document, info, functionName));
- }
-
- private bool AllWhiteSpace (string lineText)
- {
- foreach (char c in lineText)
- if (!char.IsWhiteSpace (c))
- return false;
-
- return true;
- }
-
- #region IPathedDocument implementation
- public event EventHandler<DocumentPathChangedEventArgs> PathChanged;
-
- public Gtk.Widget CreatePathWidget (int index)
- {
- PathEntry[] path = CurrentPath;
- if (null == path || 0 > index || path.Length <= index) {
- return null;
- }
-
- object tag = path[index].Tag;
- DropDownBoxListWindow.IListDataProvider provider = null;
- if (tag is ICompilationUnit) {
- provider = new CompilationUnitDataProvider (Document);
- } else {
- provider = new DataProvider (Document, tag, GetAmbience ());
- }
-
- DropDownBoxListWindow window = new DropDownBoxListWindow (provider);
- window.SelectItem (tag);
- return window;
- }
-
- public PathEntry[] CurrentPath {
- get;
- private set;
- }
-
- protected virtual void OnPathChanged (DocumentPathChangedEventArgs args)
- {
- if (null != PathChanged) {
- PathChanged (this, args);
- }
- }
- #endregion
-
- // Yoinked from C# binding
- void UpdatePath (object sender, Mono.TextEditor.TextDocumentLocationEventArgs e)
- {
- var unit = Document.CompilationUnit;
- if (unit == null)
- return;
-
- var loc = textEditorData.Caret.Location;
- IType type = unit.GetTypeAt (loc.Line, loc.Column);
- List<PathEntry> result = new List<PathEntry> ();
- Ambience amb = GetAmbience ();
- IMember member = null;
- INode node = (INode)unit;
-
- if (type != null && type.ClassType != ClassType.Delegate) {
- member = type.GetMemberAt (loc.Line, loc.Column);
- }
-
- if (null != member) {
- node = member;
- } else if (null != type) {
- node = type;
- }
-
- while (node != null) {
- PathEntry entry;
- if (node is ICompilationUnit) {
- if (!Document.ParsedDocument.UserRegions.Any ())
- break;
- FoldingRegion reg = Document.ParsedDocument.UserRegions.Where (r => r.Region.Contains (loc.Line, loc.Column)).LastOrDefault ();
- if (reg == null) {
- entry = new PathEntry (GettextCatalog.GetString ("No region"));
- } else {
- entry = new PathEntry (CompilationUnitDataProvider.Pixbuf, reg.Name);
- }
- entry.Position = EntryPosition.Right;
- } else {
- entry = new PathEntry (ImageService.GetPixbuf (((IMember)node).StockIcon, IconSize.Menu), amb.GetString ((IMember)node, OutputFlags.IncludeGenerics | OutputFlags.IncludeParameters | OutputFlags.ReformatDelegates));
- }
- entry.Tag = node;
- result.Insert (0, entry);
- node = node.Parent;
- }
-
- PathEntry noSelection = null;
- if (type == null) {
- noSelection = new PathEntry (GettextCatalog.GetString ("No selection")) { Tag = new CustomNode (Document.CompilationUnit) };
- } else if (member == null && type.ClassType != ClassType.Delegate)
- noSelection = new PathEntry (GettextCatalog.GetString ("No selection")) { Tag = new CustomNode (type) };
- if (noSelection != null) {
- result.Add (noSelection);
- }
-
- var prev = CurrentPath;
- CurrentPath = result.ToArray ();
- OnPathChanged (new DocumentPathChangedEventArgs (prev));
- }
-
- public override void Initialize ()
- {
- base.Initialize ();
- textEditorData = Document.Editor;
- UpdatePath (null, null);
- textEditorData.Caret.PositionChanged += UpdatePath;
- Document.DocumentParsed += delegate { UpdatePath (null, null); };
- }
-
- // Yoinked from C# binding
- class CustomNode : MonoDevelop.Projects.Dom.AbstractNode
- {
- public CustomNode (INode parent)
- {
- this.Parent = parent;
- }
- }
- }
-}
diff --git a/extras/ValaBinding/Makefile.am b/extras/ValaBinding/Makefile.am
deleted file mode 100644
index eb50d3c406..0000000000
--- a/extras/ValaBinding/Makefile.am
+++ /dev/null
@@ -1,106 +0,0 @@
-ADDIN_BUILD = $(top_builddir)/build
-ASSEMBLY = $(ADDIN_BUILD)/MonoDevelop.ValaBinding.dll
-ASSEMBLY_CONFIG = MonoDevelop.ValaBinding.dll.config
-
-REFS = \
- $(GLIB_SHARP_LIBS) \
- $(GTK_SHARP_LIBS) \
- $(MONO_ADDINS_LIBS) \
- $(MONODEVELOP_CORE_ADDINS_LIBS) \
- $(MONODEVELOP_LIBS) \
- -r:Mono.Posix \
- -r:System \
- -r:System.Xml
-
-
-FILES = \
- AssemblyInfo.cs \
- Compiler/ICompiler.cs \
- Compiler/ValaCompiler.cs \
- gtk-gui/generated.cs \
- gtk-gui/MonoDevelop.ValaBinding.AddLibraryDialog.cs \
- gtk-gui/MonoDevelop.ValaBinding.AddPathDialog.cs \
- gtk-gui/MonoDevelop.ValaBinding.CodeGenerationPanel.cs \
- gtk-gui/MonoDevelop.ValaBinding.EditPackagesDialog.cs \
- gtk-gui/MonoDevelop.ValaBinding.GeneralOptionsPanel.cs \
- gtk-gui/MonoDevelop.ValaBinding.OutputOptionsPanel.cs \
- gtk-gui/MonoDevelop.ValaBinding.PackageDetails.cs \
- Gui/AddLibraryDialog.cs \
- Gui/AddPathDialog.cs \
- Gui/CodeGenerationPanel.cs \
- Gui/CompilationUnitDataProvider.cs \
- Gui/DataProvider.cs \
- Gui/EditPackagesDialog.cs \
- Gui/GeneralOptionsPanel.cs \
- Gui/OutputOptionsPanel.cs \
- Gui/PackageDetails.cs \
- Gui/ParameterDataProvider.cs \
- Gui/ValaTextEditorExtension.cs \
- Navigation/ClassPadEventArgs.cs \
- Navigation/LanguageItemCommandHandler.cs \
- Navigation/LanguageItemEventArgs.cs \
- Navigation/LanguageItemNodeBuilder.cs \
- Navigation/ProjectNodeBuilderExtension.cs \
- Parser/Afrodite.cs \
- Parser/ProjectInformation.cs \
- Parser/ProjectInformationManager.cs \
- Parser/ValaDocumentParser.cs \
- Project/MakefileHandler.cs \
- Project/ProjectPackage.cs \
- Project/ProjectPackageCollection.cs \
- Project/ProjectPackageEventArgs.cs \
- Project/ValaCompilationParameters.cs \
- Project/ValaProject.cs \
- Project/ValaProjectBinding.cs \
- Project/ValaProjectConfiguration.cs \
- Project/ValaProjectServiceExtension.cs \
- ProjectPad/ProjectNodeExtension.cs \
- ProjectPad/ProjectPackageNodeBuilder.cs \
- ProjectPad/ProjectPackagesFolderNodeBuilder.cs \
- ProjectPad/ProjectReferencesExtension.cs \
- ValaLanguageBinding.cs
-
-RES = \
- gtk-gui/gui.stetic \
- gtk-gui/objects.xml \
- icons/Icons.16x16.PrivateUnion \
- icons/Icons.16x16.ProjectReference \
- icons/Icons.16x16.ProtectedUnion \
- icons/Icons.16x16.Union \
- icons/text-x-vala.16x16.png \
- icons/text-x-vala.24x24.png \
- icons/text-x-vala.32x32.png \
- icons/text-x-vala.48x48.png \
- icons/vala-icon-32.png \
- templates/ConsoleValaProject.xpt.xml \
- templates/EmptyValaProject.xpt.xml \
- templates/EmptyValaSourceFile.xft.xml \
- templates/SharedLibraryValaProject.xpt.xml \
- templates/ValaTestFixture.xpt.xml \
- templates/Makefile.am.template \
- templates/Makefile.template \
- ValaBinding.addin.xml
-
-all: $(ASSEMBLY)
-
-LOCAL_PKGCONFIG=PKG_CONFIG_PATH=../../local-config:$$PKG_CONFIG_PATH
-
-$(ASSEMBLY): $(build_sources) $(build_resources)
- mkdir -p $(ADDIN_BUILD)
- $(LOCAL_PKGCONFIG) $(CSC) $(CSC_FLAGS) -debug -out:$@ -target:library $(REFS) \
- $(build_resources:%=/resource:%) $(build_sources)
- cp $(ASSEMBLY_CONFIG) $(ADDIN_BUILD)
-
-valabindinglibdir = $(prefix)/lib/monodevelop/AddIns/BackendBindings
-valabindinglib_DATA = $(ASSEMBLY) $(ASSEMBLY_CONFIG)
-
-CLEANFILES = $(ASSEMBLY) $(ASSEMBLY).mdb
-
-EXTRA_DIST = $(FILES) $(RES) $(ASSEMBLY_CONFIG)
-
-# include $(top_srcdir)/Makefile.include
-
-build_sources = $(addprefix $(srcdir)/, $(FILES)) $(GENERATED_FILES)
-build_resources = $(addprefix $(srcdir)/, $(RES))
-build_test_sources = $(addprefix $(srcdir)/, $(TESTFILES)) $(GENERATED_FILES)
-
diff --git a/extras/ValaBinding/Makefile.am.intree b/extras/ValaBinding/Makefile.am.intree
deleted file mode 100644
index a9947bf808..0000000000
--- a/extras/ValaBinding/Makefile.am.intree
+++ /dev/null
@@ -1,86 +0,0 @@
-# This Makefile.am can be used to build ValaBinding as part of the MonoDevelop tree
-# in main/src/addins/
-
-ADDIN_BUILD = $(top_builddir)/build/AddIns/BackendBindings
-ASSEMBLY = $(ADDIN_BUILD)/MonoDevelop.ValaBinding.dll
-
-REFS = \
- $(GLIB_SHARP_LIBS) \
- $(GTK_SHARP_LIBS) \
- $(MONO_ADDINS_LIBS) \
- -r:$(top_srcdir)/build/AddIns/MonoDevelop.Deployment/MonoDevelop.Deployment.dll \
- -r:$(top_srcdir)/build/AddIns/MonoDevelop.Deployment/MonoDevelop.Deployment.Linux.dll \
- -r:$(top_srcdir)/build/bin/MonoDevelop.Components.dll \
- -r:$(top_srcdir)/build/bin/MonoDevelop.Core.dll \
- -r:$(top_srcdir)/build/bin/MonoDevelop.Core.Gui.dll \
- -r:$(top_srcdir)/build/bin/MonoDevelop.Ide.dll \
- -r:$(top_srcdir)/build/bin/MonoDevelop.Projects.dll \
- -r:$(top_srcdir)/build/bin/MonoDevelop.Projects.Gui.dll \
- -r:Mono.Posix \
- -r:System \
- -r:System.Xml
-
-
-FILES = \
- Compiler/ICompiler.cs \
- Compiler/ValaCompiler.cs \
- gtk-gui/generated.cs \
- gtk-gui/ValaBinding.AddLibraryDialog.cs \
- gtk-gui/ValaBinding.AddPathDialog.cs \
- gtk-gui/ValaBinding.CodeGenerationPanel.cs \
- gtk-gui/ValaBinding.GeneralOptionsPanel.cs \
- gtk-gui/ValaBinding.OutputOptionsPanel.cs \
- Gui/AddLibraryDialog.cs \
- Gui/AddPathDialog.cs \
- Gui/CodeGenerationPanel.cs \
- Gui/GeneralOptionsPanel.cs \
- Gui/OutputOptionsPanel.cs \
- Project/ProjectPackage.cs \
- Project/ProjectPackageCollection.cs \
- Project/ProjectPackageEventArgs.cs \
- Project/ValaCompilationParameters.cs \
- Project/ValaProject.cs \
- Project/ValaProjectBinding.cs \
- Project/ValaProjectConfiguration.cs \
- Project/ValaProjectServiceExtension.cs \
- ValaLanguageBinding.cs
-
-RES = \
- gtk-gui/gui.stetic \
- gtk-gui/objects.xml \
- icons/Icons.16x16.PrivateUnion \
- icons/Icons.16x16.ProjectReference \
- icons/Icons.16x16.ProtectedUnion \
- icons/Icons.16x16.Union \
- icons/text-x-vala.16x16.png \
- icons/text-x-vala.24x24.png \
- icons/text-x-vala.32x32.png \
- icons/text-x-vala.48x48.png \
- icons/vala-icon-32.png \
- templates/ConsoleValaProject.xpt.xml \
- templates/EmptyValaProject.xpt.xml \
- templates/EmptyValaSourceFile.xft.xml \
- templates/SharedLibraryValaProject.xpt.xml \
- ValaBinding.addin.xml
-
-if ENABLE_VALA
-all: $(ASSEMBLY)
-else
-all:
-endif
-
-$(ASSEMBLY): $(build_sources) $(build_resources)
- mkdir -p $(ADDIN_BUILD)
- $(CSC) $(CSC_FLAGS) -debug -out:$@ -target:library $(REFS) \
- $(build_resources:%=/resource:%) $(build_sources)
-
-if ENABLE_VALA
-valabindinglibdir = $(MD_ADDIN_DIR)/BackendBindings
-valabindinglib_DATA = $(ASSEMBLY)
-endif
-
-CLEANFILES = $(ASSEMBLY) $(ASSEMBLY).mdb
-
-EXTRA_DIST = $(FILES) $(RES)
-
-include $(top_srcdir)/Makefile.include
diff --git a/extras/ValaBinding/MonoDevelop.ValaBinding.dll.config b/extras/ValaBinding/MonoDevelop.ValaBinding.dll.config
deleted file mode 100644
index c1544076d7..0000000000
--- a/extras/ValaBinding/MonoDevelop.ValaBinding.dll.config
+++ /dev/null
@@ -1,4 +0,0 @@
-<configuration>
- <dllmap dll="vala" target="vala-0.12" />
- <dllmap dll="afrodite" target="afrodite-0.12" />
-</configuration>
diff --git a/extras/ValaBinding/NEWS b/extras/ValaBinding/NEWS
deleted file mode 100644
index e69de29bb2..0000000000
--- a/extras/ValaBinding/NEWS
+++ /dev/null
diff --git a/extras/ValaBinding/Navigation/ClassPadEventArgs.cs b/extras/ValaBinding/Navigation/ClassPadEventArgs.cs
deleted file mode 100644
index 8e46665ed4..0000000000
--- a/extras/ValaBinding/Navigation/ClassPadEventArgs.cs
+++ /dev/null
@@ -1,53 +0,0 @@
-//
-// ClassPadEventHandler.cs
-//
-// Authors:
-// Marcos David Marin Amador <MarcosMarin@gmail.com>
-//
-// Copyright (C) 2007 Marcos David Marin Amador
-//
-//
-// This source code is licenced under The MIT License:
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-using System;
-
-using MonoDevelop.Projects;
-
-namespace MonoDevelop.ValaBinding.Navigation
-{
- public delegate void ClassPadEventHandler (ClassPadEventArgs e);
-
- public class ClassPadEventArgs : EventArgs
- {
- private Project project;
-
- public ClassPadEventArgs (Project project)
- {
- this.project = project;
- }
-
- public Project Project {
- get { return project; }
- }
- }
-}
diff --git a/extras/ValaBinding/Navigation/LanguageItemCommandHandler.cs b/extras/ValaBinding/Navigation/LanguageItemCommandHandler.cs
deleted file mode 100644
index ba4a622a51..0000000000
--- a/extras/ValaBinding/Navigation/LanguageItemCommandHandler.cs
+++ /dev/null
@@ -1,62 +0,0 @@
-//
-// LanguageItemCommandHandler.cs
-//
-// Authors:
-// Marcos David Marin Amador <MarcosMarin@gmail.com>
-//
-// Copyright (C) 2007 Marcos David Marin Amador
-//
-//
-// This source code is licenced under The MIT License:
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-using System;
-using System.IO;
-
-using Mono.Addins;
-
-using MonoDevelop.Ide;
-using MonoDevelop.Ide.Gui.Pads;
-using MonoDevelop.Projects;
-using MonoDevelop.Ide.Gui.Components;
-
-using MonoDevelop.ValaBinding.Parser;
-using MonoDevelop.ValaBinding.Parser.Afrodite;
-
-namespace MonoDevelop.ValaBinding.Navigation
-{
- public class LanguageItemCommandHandler : NodeCommandHandler
- {
- /// <summary>
- /// Jump to a node's declaration when it's activated
- /// </summary>
- public override void ActivateItem ()
- {
- Symbol item = (Symbol)CurrentNode.DataItem;
-
- if (null != item && 0 < item.SourceReferences.Count) {
- SourceReference reference = item.SourceReferences[0];
- IdeApp.Workbench.OpenDocument (reference.File, reference.FirstLine, reference.FirstColumn);
- }
- }
- }
-}
diff --git a/extras/ValaBinding/Navigation/LanguageItemEventArgs.cs b/extras/ValaBinding/Navigation/LanguageItemEventArgs.cs
deleted file mode 100644
index 00e804cf91..0000000000
--- a/extras/ValaBinding/Navigation/LanguageItemEventArgs.cs
+++ /dev/null
@@ -1,54 +0,0 @@
-//
-// LanguageItemEventArgs.cs
-//
-// Authors:
-// Marcos David Marin Amador <MarcosMarin@gmail.com>
-//
-// Copyright (C) 2007 Marcos David Marin Amador
-//
-//
-// This source code is licenced under The MIT License:
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-using System;
-
-using MonoDevelop.ValaBinding.Parser;
-using MonoDevelop.ValaBinding.Parser.Afrodite;
-
-namespace MonoDevelop.ValaBinding.Navigation
-{
- public delegate void LanguageItemEventHandler (object sender, LanguageItemEventArgs e);
-
- public class LanguageItemEventArgs : EventArgs
- {
- Symbol item;
-
- internal LanguageItemEventArgs (Symbol item)
- {
- this.item = item;
- }
-
- internal Symbol Item {
- get { return item; }
- }
- }
-}
diff --git a/extras/ValaBinding/Navigation/LanguageItemNodeBuilder.cs b/extras/ValaBinding/Navigation/LanguageItemNodeBuilder.cs
deleted file mode 100644
index 12fd10b0c1..0000000000
--- a/extras/ValaBinding/Navigation/LanguageItemNodeBuilder.cs
+++ /dev/null
@@ -1,113 +0,0 @@
-//
-// LanguageItemNodeBuilder.cs
-//
-// Authors:
-// Levi Bard <taktaktaktaktaktaktaktaktaktak@gmail.com>
-//
-// Copyright (C) 2009 Levi Bard
-//
-// This source code is licenced under The MIT License:
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-using System;
-using System.Collections.Generic;
-using System.Threading;
-
-using Mono.Addins;
-
-using MonoDevelop.Ide.Gui;
-using MonoDevelop.Ide.Gui.Pads;
-
-using MonoDevelop.Projects;
-using MonoDevelop.Ide.Gui.Components;
-
-using MonoDevelop.ValaBinding.Parser;
-using MonoDevelop.ValaBinding.Parser.Afrodite;
-
-namespace MonoDevelop.ValaBinding.Navigation
-{
- /// <summary>
- /// Class pad node builder for all Vala language items
- /// </summary>
- public class LanguageItemNodeBuilder: TypeNodeBuilder
- {
- //// <value>
- /// Sort order for nodes
- /// </value>
- private static string[] types = { "namespace", "class", "struct", "interface", "property", "method", "signal", "field", "constant", "enum", "other" };
-
- public override Type NodeDataType {
- get { return typeof(Symbol); }
- }
-
- public override Type CommandHandlerType {
- get { return typeof(LanguageItemCommandHandler); }
- }
-
- public override string GetNodeName (ITreeNavigator thisNode, object dataObject)
- {
- return ((Symbol)dataObject).Name;
- }
-
- public override void BuildNode (ITreeBuilder treeBuilder,
- object dataObject,
- ref string label,
- ref Gdk.Pixbuf icon,
- ref Gdk.Pixbuf closedIcon)
- {
- Symbol c = (Symbol)dataObject;
- label = c.DisplayText;
- icon = Context.GetIcon (c.Icon);
- }
-
- public override void BuildChildNodes (ITreeBuilder treeBuilder, object dataObject)
- {
- // bool publicOnly = treeBuilder.Options["PublicApiOnly"];
- Symbol thisSymbol = (Symbol)dataObject;
-
- foreach (Symbol child in thisSymbol.Children) {
- treeBuilder.AddChild (child);
- }
- }
-
- public override bool HasChildNodes (ITreeBuilder builder, object dataObject)
- {
- Symbol symbol = (Symbol)dataObject;
- return (null != symbol.Children && 0 < symbol.Children.Count);
- }
-
- public override int CompareObjects (ITreeNavigator thisNode, ITreeNavigator otherNode)
- {
- if (null != thisNode && null != otherNode) {
- Symbol thisCN = thisNode.DataItem as Symbol,
- otherCN = otherNode.DataItem as Symbol;
-
- if (null != thisCN && null != otherCN) {
- return Array.IndexOf<string>(types, thisCN.MemberType) -
- Array.IndexOf<string>(types, otherCN.MemberType);
- }
- }
-
- return -1;
- }
- }
-}
diff --git a/extras/ValaBinding/Navigation/ProjectNodeBuilderExtension.cs b/extras/ValaBinding/Navigation/ProjectNodeBuilderExtension.cs
deleted file mode 100644
index 00dc156310..0000000000
--- a/extras/ValaBinding/Navigation/ProjectNodeBuilderExtension.cs
+++ /dev/null
@@ -1,141 +0,0 @@
-//
-// ProjectNodeBuilderExtension.cs
-//
-// Authors:
-// Marcos David Marin Amador <MarcosMarin@gmail.com>
-//
-// Copyright (C) 2007 Marcos David Marin Amador
-//
-//
-// This source code is licenced under The MIT License:
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-using System;
-using System.IO;
-using System.Threading;
-
-using Mono.Addins;
-
-using MonoDevelop.Projects;
-using MonoDevelop.Ide.Gui;
-using MonoDevelop.Ide.Gui.Pads;
-using MonoDevelop.Core.Execution;
-using MonoDevelop.Core;
-using MonoDevelop.Components.Commands;
-using MonoDevelop.Ide.Gui.Components;
-using MonoDevelop.Ide;
-
-using MonoDevelop.ValaBinding;
-using MonoDevelop.ValaBinding.Parser;
-using MonoDevelop.ValaBinding.Parser.Afrodite;
-
-namespace MonoDevelop.ValaBinding.Navigation
-{
- public class ProjectNodeBuilderExtension : NodeBuilderExtension
- {
- public ClassPadEventHandler finishedBuildingTreeHandler;
-
- public override bool CanBuildNode (Type dataType)
- {
- return typeof(ValaProject).IsAssignableFrom (dataType);
- }
-
- public override Type CommandHandlerType {
- get { return typeof(ProjectNodeBuilderExtensionHandler); }
- }
-
- protected override void Initialize ()
- {
- finishedBuildingTreeHandler = (ClassPadEventHandler)DispatchService.GuiDispatch (new ClassPadEventHandler (OnFinishedBuildingTree));
- }
-
- public override void Dispose ()
- {
- }
-
- public static void CreatePadTree (object o)
- {
- ValaProject p = o as ValaProject;
- if (o == null) return;
- ProjectInformation pi = ProjectInformationManager.Instance.Get (p);
-
- try {
- foreach (ProjectFile f in p.Files) {
- if (f.BuildAction == BuildAction.Compile)
- pi.AddFile (f.FilePath);
- }
- foreach (ProjectPackage package in p.Packages) {
- if(!package.IsProject){ pi.AddPackage (p.Name); }
- }
- } catch (IOException) {
- return;
- }
- }
-
- public override void BuildNode (ITreeBuilder treeBuilder,
- object dataObject,
- ref string label,
- ref Gdk.Pixbuf icon,
- ref Gdk.Pixbuf closedIcon)
- {
- }
-
-
- public override void BuildChildNodes (ITreeBuilder builder, object dataObject)
- {
- ValaProject p = dataObject as ValaProject;
- if (p == null) return;
-
- // bool nestedNamespaces = builder.Options["NestedNamespaces"];
-
- ProjectInformation info = ProjectInformationManager.Instance.Get (p);
-
- // Namespaces
- foreach (ProjectFile file in p.Files) {
- foreach (Symbol child in info.GetNamespacesForFile (file.FilePath.FullPath)) {
- builder.AddChild (child);
- }
- }
- }
-
- public override bool HasChildNodes (ITreeBuilder builder, object dataObject)
- {
- return true;
- }
-
- private void OnFinishedBuildingTree (ClassPadEventArgs e)
- {
- ITreeBuilder builder = Context.GetTreeBuilder (e.Project);
- if (null != builder)
- builder.UpdateChildren ();
- }
- }
-
- public class ProjectNodeBuilderExtensionHandler : NodeCommandHandler
- {
- [CommandHandler (ValaProjectCommands.UpdateClassPad)]
- public void UpdateClassPad ()
- {
- ProjectNodeBuilderExtension.CreatePadTree (CurrentNode.DataItem);
- }
- }
-}
diff --git a/extras/ValaBinding/Parser/Afrodite.cs b/extras/ValaBinding/Parser/Afrodite.cs
deleted file mode 100644
index 6eaeec2d5c..0000000000
--- a/extras/ValaBinding/Parser/Afrodite.cs
+++ /dev/null
@@ -1,1176 +0,0 @@
-//
-// Afrodite.cs
-//
-// Author:
-// Levi Bard <levi.bard@emhartglass.com>
-//
-// Copyright (c) 2010 Levi Bard
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-using System;
-using System.IO;
-using System.Text;
-using System.Collections;
-using System.Collections.Generic;
-using System.Runtime.InteropServices;
-using MonoDevelop.Ide.Gui;
-
-/// <summary>
-/// Wrappers for Afrodite completion library
-/// </summary>
-namespace MonoDevelop.ValaBinding.Parser.Afrodite
-{
- /// <summary>
- /// Afrodite completion engine - interface for queueing source and getting CodeDOMs
- /// </summary>
- internal class CompletionEngine
- {
- public CompletionEngine (string id)
- {
- instance = afrodite_completion_engine_new (id);
- }
-
- /// <summary>
- /// Queue a new source file for parsing
- /// </summary>
- public void QueueSourcefile (string path)
- {
- QueueSourcefile (path, !string.IsNullOrEmpty (path) && path.EndsWith (".vapi", StringComparison.OrdinalIgnoreCase), false);
- }
-
- /// <summary>
- /// Queue a new source file for parsing
- /// </summary>
- public void QueueSourcefile (string path, bool isVapi, bool isGlib)
- {
- afrodite_completion_engine_queue_sourcefile (instance, path, null, isVapi, isGlib);
- }
-
- /// <summary>
- /// Attempt to acquire the current CodeDOM
- /// </summary>
- /// <returns>
- /// A <see cref="CodeDom"/>: null if unable to acquire
- /// </returns>
- public CodeDom TryAcquireCodeDom ()
- {
- IntPtr codeDom = afrodite_completion_engine_get_codedom (instance);
- return (codeDom == IntPtr.Zero)? null: new CodeDom (codeDom, this);
- }
-
- /// <summary>
- /// Release the given CodeDOM (required for continued parsing)
- /// </summary>
- public void ReleaseCodeDom (CodeDom codeDom)
- {
- // Obsolete
- }
-
- #region P/Invokes
-
- IntPtr instance;
-
- [DllImport("afrodite")]
- static extern IntPtr afrodite_completion_engine_new (string id);
-
- [DllImport("afrodite")]
- static extern void afrodite_completion_engine_queue_sourcefile (IntPtr instance, string path, string content,
- bool is_vapi, bool is_glib);
-
- [DllImport("afrodite")]
- static extern IntPtr afrodite_completion_engine_get_codedom (IntPtr instance);
-
- #endregion
- }
-
- /// <summary>
- /// Represents a Vala symbol
- /// </summary>
- internal class Symbol
- {
- public Symbol (IntPtr instance)
- {
- this.instance = instance;
- }
-
- /// <summary>
- /// Children of this symbol
- /// </summary>
- public List<Symbol> Children {
- get {
- List<Symbol> list = new List<Symbol> ();
- IntPtr children = afrodite_symbol_get_children (instance);
-
- if (IntPtr.Zero != children) {
- list = new ValaList (children).ToTypedList (item => new Symbol (item));
- }
-
- return list;
- }
- }
-
- /// <summary>
- /// The type of this symbol
- /// </summary>
- public DataType SymbolType {
- get {
- IntPtr datatype = afrodite_symbol_get_symbol_type (instance);
- return (IntPtr.Zero == datatype)? null: new DataType (afrodite_symbol_get_symbol_type (instance));
- }
- }
-
- /// <summary>
- /// The return type of this symbol, if applicable
- /// </summary>
- public DataType ReturnType {
- get {
- IntPtr datatype = afrodite_symbol_get_return_type (instance);
- return (IntPtr.Zero == datatype)? null: new DataType (afrodite_symbol_get_return_type (instance));
- }
- }
-
- /// <summary>
- /// The name of this symbol
- /// </summary>
- public string Name {
- get{ return Marshal.PtrToStringAuto (afrodite_symbol_get_display_name (instance)); }
- }
-
- /// <summary>
- /// The fully qualified name of this symbol
- /// </summary>
- public string FullyQualifiedName {
- get { return Marshal.PtrToStringAuto (afrodite_symbol_get_fully_qualified_name (instance)); }
- }
-
- /// <summary>
- /// The parent of this symbol
- /// </summary>
- public Symbol Parent {
- get {
- IntPtr parent = afrodite_symbol_get_parent (instance);
- return (IntPtr.Zero == parent)? null: new Symbol (parent);
- }
- }
-
- /// <summary>
- /// The places where this symbol is declared/defined
- /// </summary>
- public List<SourceReference> SourceReferences {
- get {
- List<SourceReference> list = new List<SourceReference> ();
- IntPtr refs = afrodite_symbol_get_source_references (instance);
-
- if (IntPtr.Zero != refs) {
- list = new ValaList (refs).ToTypedList (item => new SourceReference (item));
- }
-
- return list;
- }
- }
-
- /// <summary>
- /// The symbol type (class, method, ...) of this symbol
- /// </summary>
- public string MemberType {
- get{ return Utils.GetMemberType (afrodite_symbol_get_member_type (instance)); }
- }
-
- /// <summary>
- /// The accessibility (public, private, ...) of this symbol
- /// </summary>
- public SymbolAccessibility Accessibility {
- get{ return (SymbolAccessibility)afrodite_symbol_get_access (instance); }
- }
-
- /// <summary>
- /// The parameters this symbol accepts, if applicable
- /// </summary>
- public List<DataType> Parameters {
- get {
- List<DataType> list = new List<DataType> ();
- IntPtr parameters = afrodite_symbol_get_parameters (instance);
-
- if (IntPtr.Zero != parameters) {
- list = new ValaList (parameters).ToTypedList (delegate (IntPtr item){ return new DataType (item); });
- }
-
- return list;
- }
- }
-
- /// <summary>
- /// The icon to be used for this symbol
- /// </summary>
- public string Icon {
- get{ return GetIconForType (MemberType, Accessibility); }
- }
-
- /// <summary>
- /// Descriptive text for this symbol
- /// </summary>
- public string DisplayText {
- get {
- StringBuilder text = new StringBuilder (Name);
- List<DataType> parameters = Parameters;
- if (0 < parameters.Count) {
- text.AppendFormat ("({0} {1}", parameters[0].TypeName, Parameters[0].Name);
- for (int i = 1; i < parameters.Count; i++) {
- text.AppendFormat (", {0} {1}", parameters[i].TypeName, Parameters[i].Name);
- }
- text.AppendFormat (")");
- }
- if (null != ReturnType && !string.IsNullOrEmpty (ReturnType.TypeName)) {
- text.AppendFormat (": {0}", ReturnType.TypeName);
- }
-
- return text.ToString ();
- }
- }
-
- #region Icons
-
- private static Dictionary<string,string> publicIcons = new Dictionary<string, string> () {
- { "namespace", Stock.NameSpace },
- { "class", Stock.Class },
- { "struct", Stock.Struct },
- { "enum", Stock.Enum },
- { "error domain", Stock.Enum },
- { "field", Stock.Field },
- { "method", Stock.Method },
- { "constructor", Stock.Method },
- { "creationmethod", Stock.Method },
- { "property", Stock.Property },
- { "constant", Stock.Literal },
- { "enum value", Stock.Literal },
- { "error code", Stock.Literal },
- { "signal", Stock.Event },
- { "delegate", Stock.Delegate },
- { "interface", Stock.Interface },
- { "other", Stock.Delegate }
- };
-
- private static Dictionary<string,string> privateIcons = new Dictionary<string, string> () {
- { "namespace", Stock.NameSpace },
- { "class", Stock.PrivateClass },
- { "struct", Stock.PrivateStruct },
- { "enum", Stock.PrivateEnum },
- { "error domain", Stock.PrivateEnum },
- { "field", Stock.PrivateField },
- { "method", Stock.PrivateMethod },
- { "constructor", Stock.PrivateMethod },
- { "creationmethod", Stock.PrivateMethod },
- { "property", Stock.PrivateProperty },
- { "constant", Stock.Literal },
- { "enum value", Stock.Literal },
- { "error code", Stock.Literal },
- { "signal", Stock.PrivateEvent },
- { "delegate", Stock.PrivateDelegate },
- { "interface", Stock.PrivateInterface },
- { "other", Stock.PrivateDelegate }
- };
-
- private static Dictionary<string,string> protectedIcons = new Dictionary<string, string> () {
- { "namespace", Stock.NameSpace },
- { "class", Stock.ProtectedClass },
- { "struct", Stock.ProtectedStruct },
- { "enum", Stock.ProtectedEnum },
- { "error domain", Stock.ProtectedEnum },
- { "field", Stock.ProtectedField },
- { "method", Stock.ProtectedMethod },
- { "constructor", Stock.ProtectedMethod },
- { "creationmethod", Stock.ProtectedMethod },
- { "property", Stock.ProtectedProperty },
- { "constant", Stock.Literal },
- { "enum value", Stock.Literal },
- { "error code", Stock.Literal },
- { "signal", Stock.ProtectedEvent },
- { "delegate", Stock.ProtectedDelegate },
- { "interface", Stock.ProtectedInterface },
- { "other", Stock.ProtectedDelegate }
- };
-
- private static Dictionary<SymbolAccessibility,Dictionary<string,string>> iconTable = new Dictionary<SymbolAccessibility, Dictionary<string, string>> () {
- { SymbolAccessibility.Public, publicIcons },
- { SymbolAccessibility.Internal, publicIcons },
- { SymbolAccessibility.Private, privateIcons },
- { SymbolAccessibility.Protected, protectedIcons }
- };
-
- public static string GetIconForType (string nodeType, SymbolAccessibility visibility)
- {
- string icon = null;
- iconTable[visibility].TryGetValue (nodeType.ToLower (), out icon);
- return icon;
- }
-
- #endregion
-
- #region P/Invokes
-
- IntPtr instance;
-
- [DllImport("afrodite")]
- static extern IntPtr afrodite_symbol_get_type_name (IntPtr instance);
-
- [DllImport("afrodite")]
- static extern IntPtr afrodite_symbol_get_display_name (IntPtr instance);
-
- [DllImport("afrodite")]
- static extern IntPtr afrodite_symbol_get_children (IntPtr instance);
-
- [DllImport("afrodite")]
- static extern IntPtr afrodite_symbol_get_parent (IntPtr instance);
-
- [DllImport("afrodite")]
- static extern IntPtr afrodite_symbol_get_fully_qualified_name (IntPtr instance);
-
- [DllImport("afrodite")]
- static extern IntPtr afrodite_symbol_get_source_references (IntPtr instance);
-
- [DllImport("afrodite")]
- static extern int afrodite_symbol_get_access (IntPtr instance);
-
- [DllImport("afrodite")]
- static extern IntPtr afrodite_symbol_get_parameters (IntPtr instance);
-
- [DllImport("afrodite")]
- static extern int afrodite_symbol_get_member_type (IntPtr instance);
-
- [DllImport("afrodite")]
- static extern IntPtr afrodite_symbol_get_symbol_type (IntPtr instance);
-
- [DllImport("afrodite")]
- static extern IntPtr afrodite_symbol_get_return_type (IntPtr instance);
-
- #endregion
- }
-
- /// <summary>
- /// Represents a Vala CodeDOM
- /// </summary>
- /// <remarks>
- /// MUST be disposed for parsing to continue
- /// </remarks>
- internal class CodeDom: IDisposable
- {
- CompletionEngine engine;
-
- /// <summary>
- /// Create a new CodeDOM wrapper
- /// </summary>
- /// <param name="instance">
- /// A <see cref="IntPtr"/>: The native pointer for this CodeDOM
- /// </param>
- /// <param name="engine">
- /// A <see cref="CompletionEngine"/>: The completion engine to which this CodeDOM belongs
- /// </param>
- public CodeDom (IntPtr instance, CompletionEngine engine)
- {
- this.instance = instance;
- this.engine = engine;
- }
-
- public QueryResult GetSymbolsForPath (string path)
- {
- return new QueryResult (afrodite_code_dom_get_symbols_for_path (instance, new QueryOptions ().Instance, path));
- }
-
- /// <summary>
- /// Lookup the symbol at a given location
- /// </summary>
- public Symbol LookupSymbolAt (string filename, int line, int column)
- {
- IntPtr symbol = afrodite_code_dom_lookup_symbol_at (instance, filename, line, column);
- return (IntPtr.Zero == symbol)? null: new Symbol (symbol);
- }
-
- /// <summary>
- /// Lookup a symbol and its parent by fully qualified name
- /// </summary>
- public Symbol Lookup (string fully_qualified_name, out Symbol parent)
- {
- IntPtr parentInstance = IntPtr.Zero,
- result = IntPtr.Zero;
-
- result = afrodite_code_dom_lookup (instance, fully_qualified_name, out parentInstance);
- parent = (IntPtr.Zero == parentInstance)? null: new Symbol (parentInstance);
- return (IntPtr.Zero == result)? null: new Symbol (result);
- }
-
- /// <summary>
- /// Lookup a symbol, given a name and source location
- /// </summary>
- public Symbol GetSymbolForNameAndPath (string name, string path, int line, int column)
- {
- IntPtr result = afrodite_code_dom_get_symbol_for_name_and_path (instance, QueryOptions.Standard ().Instance,
- name, path, line, column);
- if (IntPtr.Zero != result) {
- QueryResult qresult = new QueryResult (result);
- if (null != qresult.Children && 0 < qresult.Children.Count)
- return qresult.Children[0].Symbol;
- }
-
- return null;
- }
-
- /// <summary>
- /// Get the source files used to create this CodeDOM
- /// </summary>
- public List<SourceFile> SourceFiles {
- get {
- List<SourceFile> files = new List<SourceFile> ();
- IntPtr sourceFiles = afrodite_code_dom_get_source_files (instance);
-
- if (IntPtr.Zero != sourceFiles) {
- ValaList list = new ValaList (sourceFiles);
- files = list.ToTypedList (delegate (IntPtr item){ return new SourceFile (item); });
- }
-
- return files;
- }
- }
-
- /// <summary>
- /// Lookup a source file by filename
- /// </summary>
- public SourceFile LookupSourceFile (string filename)
- {
- IntPtr sourceFile = afrodite_code_dom_lookup_source_file (instance, filename);
- return (IntPtr.Zero == sourceFile)? null: new SourceFile (sourceFile);
- }
-
- #region P/Invokes
-
- IntPtr instance;
-
- internal IntPtr Instance {
- get{ return instance; }
- }
-
- [DllImport("afrodite")]
- static extern IntPtr afrodite_code_dom_get_symbols_for_path (IntPtr instance, IntPtr options, string path);
-
- [DllImport("afrodite")]
- static extern IntPtr afrodite_code_dom_lookup_symbol_at (IntPtr instance, string filename, int line, int column);
-
- [DllImport("afrodite")]
- static extern IntPtr afrodite_code_dom_lookup (IntPtr instance, string fully_qualified_name, out IntPtr parent);
-
- [DllImport("afrodite")]
- static extern IntPtr afrodite_code_dom_get_symbol_for_name_and_path (IntPtr instance, IntPtr options,
- string symbol_qualified_name, string path,
- int line, int column);
-
- [DllImport("afrodite")]
- static extern IntPtr afrodite_code_dom_get_source_files (IntPtr instance);
-
- [DllImport("afrodite")]
- static extern IntPtr afrodite_code_dom_lookup_source_file (IntPtr instance, string filename);
-
- #endregion
-
- #region IDisposable implementation
-
- /// <summary>
- /// Release this CodeDOM for reuse
- /// </summary>
- public void Dispose ()
- {
- engine.ReleaseCodeDom (this);
- }
-
- #endregion
- }
-
- /// <summary>
- /// Utility class for dumping a CodeDOM to Console.Out
- /// </summary>
- internal class CodeDomDumper
- {
- public CodeDomDumper ()
- {
- instance = afrodite_ast_dumper_new ();
- }
-
- public void Dump (CodeDom codeDom, string filterSymbol)
- {
- afrodite_ast_dumper_dump (instance, codeDom.Instance, filterSymbol);
- }
-
- #region P/Invokes
-
- IntPtr instance;
-
- [DllImport("afrodite")]
- static extern IntPtr afrodite_ast_dumper_new ();
-
- [DllImport("afrodite")]
- static extern void afrodite_ast_dumper_dump (IntPtr instance, IntPtr codeDom, string filterSymbol);
-
- #endregion
- }
-
- /// <summary>
- /// Wrapper class for Afrodite query results
- /// </summary>
- internal class QueryResult
- {
- public QueryResult (IntPtr instance)
- {
- this.instance = instance;
- }
-
- /// <summary>
- /// ResultItems contained in this query result
- /// </summary>
- public List<ResultItem> Children {
- get {
- List<ResultItem> list = new List<ResultItem> ();
- IntPtr children = afrodite_query_result_get_children (instance);
-
- if (IntPtr.Zero != children) {
- list = new ValaList (children).ToTypedList (delegate (IntPtr item){ return new ResultItem (item); });
- }
-
- return list;
- }
- }
-
- #region P/Invokes
-
- IntPtr instance;
-
- internal IntPtr Instance {
- get{ return instance; }
- }
-
- [DllImport("afrodite")]
- static extern IntPtr afrodite_query_result_get_children (IntPtr instance);
-
- #endregion
- }
-
- /// <summary>
- /// A single result from a query
- /// </summary>
- internal class ResultItem
- {
- public ResultItem (IntPtr instance)
- {
- this.instance = instance;
- }
-
- public Symbol Symbol {
- get {
- IntPtr symbol = afrodite_result_item_get_symbol (instance);
- return (IntPtr.Zero == symbol)? null: new Symbol (symbol);
- }
- }
-
- #region P/Invokes
-
- IntPtr instance;
-
- internal IntPtr Instance {
- get{ return instance; }
- }
-
- [DllImport("afrodite")]
- static extern IntPtr afrodite_result_item_get_symbol (IntPtr instance);
-
- #endregion
- }
-
- /// <summary>
- /// Options for querying a CodeDOM
- /// </summary>
- internal class QueryOptions
- {
- public QueryOptions (): this (afrodite_query_options_new ())
- {
- }
-
- public QueryOptions (IntPtr instance)
- {
- this.instance = instance;
- }
-
- public static QueryOptions Standard ()
- {
- return new QueryOptions (afrodite_query_options_standard ());
- }
-
- #region P/Invokes
-
- IntPtr instance;
-
- internal IntPtr Instance {
- get{ return instance; }
- }
-
- [DllImport("afrodite")]
- static extern IntPtr afrodite_query_options_new ();
-
- [DllImport("afrodite")]
- static extern IntPtr afrodite_query_options_standard ();
-
- #endregion
- }
-
- /// <summary>
- /// IEnumerator wrapper for (Gee|Vala).Iterator
- /// </summary>
- internal class ValaEnumerator: IEnumerator<IntPtr>
- {
- public ValaEnumerator (IntPtr instance)
- {
- this.instance = instance;
- }
-
- #region IDisposable implementation
-
- public void Dispose ()
- {
- }
-
- #endregion
-
- #region IEnumerator implementation
-
- object IEnumerator.Current {
- get { return ((IEnumerator<IntPtr>)this).Current; }
- }
-
-
- public bool MoveNext ()
- {
- return vala_iterator_next (instance);
- }
-
-
- public void Reset ()
- {
- throw new System.NotImplementedException();
- }
-
- #endregion
-
- #region IEnumerator[System.IntPtr] implementation
-
- IntPtr IEnumerator<IntPtr>.Current {
- get { return vala_iterator_get (instance); }
- }
-
- #endregion
-
- #region P/Invoke
-
- IntPtr instance;
-
- [DllImport("vala")]
- static extern bool vala_iterator_next (IntPtr instance);
-
- [DllImport("vala")]
- static extern IntPtr vala_iterator_get (IntPtr instance);
-
- #endregion
- }
-
- /// <summary>
- /// IList wrapper for (Gee|Vala).List
- /// </summary>
- internal class ValaList: IList<IntPtr>
- {
- public ValaList (IntPtr instance)
- {
- this.instance = instance;
- }
-
- #region ICollection[System.IntPtr] implementation
-
- public void Add (IntPtr item)
- {
- vala_collection_add (instance, item);
- }
-
-
- public void Clear ()
- {
- vala_collection_clear (instance);
- }
-
-
- public bool Contains (IntPtr item)
- {
- return vala_collection_contains (instance, item);
- }
-
-
- public void CopyTo (IntPtr[] array, int arrayIndex)
- {
- if (Count < array.Length - arrayIndex)
- throw new ArgumentException ("Destination array too small", "array");
- for (int i=0; i<Count; ++i)
- array[i+arrayIndex] = this[i];
- }
-
-
- public int Count {
- get {
- return vala_collection_get_size (instance);
- }
- }
-
-
- public bool IsReadOnly {
- get { return false; }
- }
-
-
- public bool Remove (IntPtr item)
- {
- return vala_collection_remove (instance, item);
- }
-
- #endregion
-
- #region IEnumerable implementation
-
- IEnumerator IEnumerable.GetEnumerator ()
- {
- return ((IEnumerable<IntPtr>)this).GetEnumerator ();
- }
-
- #endregion
-
- #region IList[System.IntPtr] implementation
-
- public int IndexOf (IntPtr item)
- {
- return vala_list_index_of (instance, item);
- }
-
-
- public void Insert (int index, IntPtr item)
- {
- vala_list_insert (instance, index, item);
- }
-
-
- public IntPtr this[int index] {
- get { return vala_list_get (instance, index); }
- set { vala_list_set (instance, index, value); }
- }
-
-
- public void RemoveAt (int index)
- {
- vala_list_remove_at (instance, index);
- }
-
- #endregion
-
- #region IEnumerable[System.IntPtr] implementation
- IEnumerator<IntPtr> IEnumerable<IntPtr>.GetEnumerator ()
- {
- return new ValaEnumerator (vala_iterable_iterator (instance));
- }
-
- #endregion
-
- internal List<T> ToTypedList<T> (Func<IntPtr,T> factory)
- {
- List<T> list = new List<T> (Math.Max (0, Count));
- foreach (IntPtr item in this) {
- list.Add (factory (item));
- }
- return list;
- }
-
- #region P/Invoke
-
- IntPtr instance;
-
- [DllImport("vala")]
- static extern bool vala_collection_add (IntPtr instance, IntPtr item);
-
- [DllImport("vala")]
- static extern void vala_collection_clear (IntPtr instance);
-
- [DllImport("vala")]
- static extern bool vala_collection_contains (IntPtr instance, IntPtr item);
-
- [DllImport("vala")]
- static extern int vala_collection_get_size (IntPtr instance);
-
- [DllImport("vala")]
- static extern bool vala_collection_remove (IntPtr instance, IntPtr item);
-
- [DllImport("vala")]
- static extern IntPtr vala_iterable_iterator (IntPtr instance);
-
- [DllImport("vala")]
- static extern int vala_list_index_of (IntPtr instance, IntPtr item);
-
- [DllImport("vala")]
- static extern void vala_list_insert (IntPtr instance, int index, IntPtr item);
-
- [DllImport("vala")]
- static extern IntPtr vala_list_get (IntPtr instance, int index);
-
- [DllImport("vala")]
- static extern void vala_list_set (IntPtr instance, int index, IntPtr item);
-
- [DllImport("vala")]
- static extern void vala_list_remove_at (IntPtr instance, int index);
-
- #endregion
- }
-
- /// <summary>
- /// Class to represent a CodeDOM source file
- /// </summary>
- internal class SourceFile
- {
- public SourceFile (string filename)
- :this (afrodite_source_file_new (filename))
- {
- }
-
- public SourceFile (IntPtr instance)
- {
- this.instance = instance;
- }
-
- /// <summary>
- /// Symbols declared in this source file
- /// </summary>
- public List<Symbol> Symbols {
- get {
- List<Symbol> list = new List<Symbol> ();
- IntPtr symbols = afrodite_source_file_get_symbols (instance);
-
- if (IntPtr.Zero != symbols) {
- list = new ValaList (symbols).ToTypedList (delegate (IntPtr item){ return new Symbol (item); });
- }
-
- return list;
- }
- }
-
- /// <summary>
- /// Using directives in this source file
- /// </summary>
- public List<DataType> UsingDirectives {
- get {
- List<DataType> list = new List<DataType> ();
- IntPtr symbols = afrodite_source_file_get_using_directives (instance);
-
- if (IntPtr.Zero != symbols) {
- list = new ValaList (symbols).ToTypedList (item => new DataType (item));
- }
-
- return list;
- }
- }
-
- /// <summary>
- /// The name of this source file
- /// </summary>
- public string Name {
- get{ return Marshal.PtrToStringAuto (afrodite_source_file_get_filename (instance)); }
- }
-
- #region P/Invoke
-
- IntPtr instance;
-
- [DllImport("afrodite")]
- static extern IntPtr afrodite_source_file_new (string filename);
-
- [DllImport("afrodite")]
- static extern IntPtr afrodite_source_file_get_filename (IntPtr instance);
-
- [DllImport("afrodite")]
- static extern IntPtr afrodite_source_file_get_symbols (IntPtr instance);
-
- [DllImport("afrodite")]
- static extern IntPtr afrodite_source_file_get_using_directives (IntPtr instance);
-
-
- #endregion
- }
-
- /// <summary>
- /// Represents an Afrodite symbol data type
- /// </summary>
- internal class DataType
- {
- public DataType (IntPtr instance)
- {
- this.instance = instance;
- }
-
- /// <summary>
- /// Get the raw name of this datatype
- /// </summary>
- public string Name {
- get{ return Marshal.PtrToStringAuto (afrodite_data_type_get_name (instance)); }
- }
-
- /// <summary>
- /// Get the descriptive type name (ref Gee.List<string>[]?) for this datatype
- /// </summary>
- public string TypeName {
- get {
- StringBuilder text = new StringBuilder ();
-
- // prefix out/ref
- if (IsOut) {
- text.Append ("out ");
- } else if (IsRef) {
- text.Append ("ref ");
- }
-
- text.Append (Marshal.PtrToStringAuto (afrodite_data_type_get_type_name (instance)));
-
- if (IsGeneric) {
- text.Append ("<");
- List<DataType> parameters = GenericTypes;
- if (parameters != null && parameters.Count > 0) {
- text.Append (parameters[0].TypeName);
- for (int i = 0; i < parameters.Count; i++) {
- text.AppendFormat (",{0}", parameters[i].TypeName);
- }
- }
- text.Append (">");
- }
-
- if (IsArray) { text.Append ("[]"); }
- if (IsNullable){ text.Append ("?"); }
- if (IsPointer){ text.Append ("*"); }
-
- return text.ToString ();
- }
- }
-
- /// <summary>
- /// Get the symbol for this datatype
- /// </summary>
- public Symbol Symbol {
- get {
- IntPtr symbol = afrodite_data_type_get_symbol (instance);
- return (IntPtr.Zero == symbol)? null: new Symbol (symbol);
- }
- }
-
- /// <summary>
- /// Whether this datatype is an array
- /// </summary>
- public bool IsArray {
- get{ return afrodite_data_type_get_is_array (instance); }
- }
-
- /// <summary>
- /// Whether this datatype is a pointer
- /// </summary>
- public bool IsPointer {
- get{ return afrodite_data_type_get_is_pointer (instance); }
- }
-
- /// <summary>
- /// Whether this datatype is nullable
- /// </summary>
- public bool IsNullable {
- get{ return afrodite_data_type_get_is_nullable (instance); }
- }
-
- /// <summary>
- /// Whether this is an out datatype
- /// </summary>
- public bool IsOut {
- get{ return afrodite_data_type_get_is_out (instance); }
- }
-
- /// <summary>
- /// Whether this is a ref datatype
- /// </summary>
- public bool IsRef {
- get{ return afrodite_data_type_get_is_ref (instance); }
- }
-
- /// <summary>
- /// Whether this datatype is generic
- /// </summary>
- public bool IsGeneric {
- get{ return afrodite_data_type_get_is_generic (instance); }
- }
-
- /// <summary>
- /// Type list for generic datatypes (e.g. HashMap<KeyType,ValueType>)
- /// </summary>
- public List<DataType> GenericTypes {
- get {
- List<DataType> list = new List<DataType> ();
- IntPtr types = afrodite_data_type_get_generic_types (instance);
-
- if (IntPtr.Zero != types) {
- list = new ValaList (types).ToTypedList (item => new DataType (item));
- }
-
- return list;
- }
- }
-
- #region P/Invoke
-
- IntPtr instance;
-
- [DllImport("afrodite")]
- static extern IntPtr afrodite_data_type_get_type_name (IntPtr instance);
-
- [DllImport("afrodite")]
- static extern IntPtr afrodite_data_type_get_name (IntPtr instance);
-
- [DllImport("afrodite")]
- static extern IntPtr afrodite_data_type_get_symbol (IntPtr instance);
-
- [DllImport("afrodite")]
- static extern IntPtr afrodite_data_type_get_generic_types (IntPtr instance);
-
- [DllImport("afrodite")]
- static extern bool afrodite_data_type_get_is_array (IntPtr instance);
-
- [DllImport("afrodite")]
- static extern bool afrodite_data_type_get_is_pointer (IntPtr instance);
-
- [DllImport("afrodite")]
- static extern bool afrodite_data_type_get_is_nullable (IntPtr instance);
-
- [DllImport("afrodite")]
- static extern bool afrodite_data_type_get_is_out (IntPtr instance);
-
- [DllImport("afrodite")]
- static extern bool afrodite_data_type_get_is_ref (IntPtr instance);
-
- [DllImport("afrodite")]
- static extern bool afrodite_data_type_get_is_generic (IntPtr instance);
-
-
- #endregion
- }
-
- /// <summary>
- /// Class to represent a reference area in a source file
- /// </summary>
- internal class SourceReference
- {
- public SourceReference (IntPtr instance)
- {
- this.instance = instance;
- }
-
- public string File {
- get {
- IntPtr sourcefile = afrodite_source_reference_get_file (instance);
- return (IntPtr.Zero == sourcefile)? string.Empty: new SourceFile (sourcefile).Name;
- }
- }
-
- public int FirstLine {
- get{ return afrodite_source_reference_get_first_line (instance); }
- }
-
- public int LastLine {
- get{ return afrodite_source_reference_get_last_line (instance); }
- }
-
- public int FirstColumn {
- get{ return afrodite_source_reference_get_first_column (instance); }
- }
-
- public int LastColumn {
- get{ return afrodite_source_reference_get_last_column (instance); }
- }
-
- #region P/Invoke
-
- IntPtr instance;
-
- [DllImport("afrodite")]
- static extern IntPtr afrodite_source_reference_get_file (IntPtr instance);
-
- [DllImport("afrodite")]
- static extern int afrodite_source_reference_get_first_line (IntPtr instance);
-
- [DllImport("afrodite")]
- static extern int afrodite_source_reference_get_last_line (IntPtr instance);
-
- [DllImport("afrodite")]
- static extern int afrodite_source_reference_get_first_column (IntPtr instance);
-
- [DllImport("afrodite")]
- static extern int afrodite_source_reference_get_last_column (IntPtr instance);
-
-
- #endregion
- }
-
- // From afrodite.vapi
- public enum SymbolAccessibility {
- Private = 0x1,
- Internal = 0x2,
- Protected = 0x4,
- Public = 0x8,
- Any = 0x10
- }
-
- /// <summary>
- /// Wrapper class for Afrodite.Utils namespace
- /// </summary>
- internal static class Utils
- {
- /// <summary>
- /// Get a list of vapi files for a given package
- /// </summary>
- public static List<string> GetPackagePaths (string package)
- {
- List<string> list = new List<string> ();
- IntPtr paths = afrodite_utils_get_package_paths (package, IntPtr.Zero, null);
- if (IntPtr.Zero != paths)
- list = new ValaList (paths).ToTypedList (delegate(IntPtr item){ return Marshal.PtrToStringAuto (item); });
-
- return list;
- }
-
- public static string GetMemberType (int memberType)
- {
- return Marshal.PtrToStringAuto (afrodite_utils_symbols_get_symbol_type_description (memberType));
- }
-
- [DllImport("afrodite")]
- static extern IntPtr afrodite_utils_get_package_paths (string package, IntPtr codeContext, string[] vapiDirs);
-
- [DllImport("afrodite")]
- static extern IntPtr afrodite_utils_symbols_get_symbol_type_description (int memberType);
- }
-}
-
diff --git a/extras/ValaBinding/Parser/ProjectInformation.cs b/extras/ValaBinding/Parser/ProjectInformation.cs
deleted file mode 100644
index 31b0baee80..0000000000
--- a/extras/ValaBinding/Parser/ProjectInformation.cs
+++ /dev/null
@@ -1,416 +0,0 @@
-//
-// ProjectInformation.cs
-//
-// Authors:
-// Levi Bard <taktaktaktaktaktaktaktaktaktak@gmail.com>
-//
-// Copyright (C) 2008 Levi Bard
-// Based on CBinding by Marcos David Marin Amador <MarcosMarin@gmail.com>
-//
-// This source code is licenced under The MIT License:
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-
-using System;
-using System.Collections.Generic;
-using System.Diagnostics;
-using System.IO;
-using System.Threading;
-using System.Text;
-using System.Text.RegularExpressions;
-
-using MonoDevelop.Projects;
-using MonoDevelop.Core;
-using MonoDevelop.Ide;
-using MonoDevelop.Core.Execution;
-using MonoDevelop.Ide.CodeCompletion;
-
-namespace MonoDevelop.ValaBinding.Parser
-{
- /// <summary>
- /// Class to obtain parse information for a project
- /// </summary>
- public class ProjectInformation
- {
- private bool vtgInstalled = false;
- private bool checkedVtgInstalled = false;
-
- private Afrodite.CompletionEngine engine;
-
- static readonly string[] containerTypes = new string[]{ "class", "struct", "interface" };
-
- public Project Project{ get; set; }
-
- //// <value>
- /// Checks whether <see cref="http://code.google.com/p/vtg/">Vala Toys for GEdit</see>
- /// is installed.
- /// </value>
- bool DepsInstalled {
- get {
- if (!checkedVtgInstalled) {
- checkedVtgInstalled = true;
- vtgInstalled = false;
- try {
- Afrodite.Utils.GetPackagePaths ("glib-2.0");
- return (vtgInstalled = true);
- } catch (DllNotFoundException) {
- LoggingService.LogWarning ("Cannot update Vala parser database because libafrodite (VTG) is not installed: {0}{1}{2}{3}",
- Environment.NewLine, "http://code.google.com/p/vtg/",
- Environment.NewLine, "Note: If you're using Vala 0.10 or higher, you may need to symlink libvala-YOUR_VERSION.so to libvala.so");
- } catch (Exception ex) {
- LoggingService.LogError ("ValaBinding: Error while checking for libafrodite", ex);
- }
- }
- return vtgInstalled;
- }
- set {
- //don't assume that the caller is correct :-)
- if (value)
- checkedVtgInstalled = false; //will re-determine on next getting
- else
- vtgInstalled = false;
- }
- }
-
- public ProjectInformation (Project project)
- {
- this.Project = project;
- string projectName = (null == project)? "NoExistingProject": project.Name;
-
- if (DepsInstalled) {
- engine = new Afrodite.CompletionEngine (projectName);
- }
- }
-
- /// <summary>
- /// Gets the completion list for a given type name in a given file
- /// </summary>
- internal List<Afrodite.Symbol> CompleteType (string typename, string filename, int linenum, int column, ValaCompletionDataList results)
- {
- List<Afrodite.Symbol> nodes = new List<Afrodite.Symbol> ();
- if (!DepsInstalled){ return nodes; }
-
- using (Afrodite.CodeDom parseTree = engine.TryAcquireCodeDom ()) {
- if (null != parseTree) {
- Afrodite.Symbol symbol = parseTree.GetSymbolForNameAndPath (typename, filename, linenum, column);
- if (null == symbol){ LoggingService.LogDebug ("CompleteType: Unable to lookup {0} in {1} at {2}:{3}", typename, filename, linenum, column); }
- else{ nodes = symbol.Children; }
- } else {
- LoggingService.LogDebug ("CompleteType: Unable to acquire codedom");
- }
- }
-
- return nodes;
- }
-
- /// <summary>
- /// Adds a file to be parsed
- /// </summary>
- public void AddFile (string filename)
- {
- if (vtgInstalled) {
- LoggingService.LogDebug ("Adding file {0}", filename);
- engine.QueueSourcefile (filename, filename.EndsWith (".vapi", StringComparison.OrdinalIgnoreCase), false);
- }
- }// AddFile
-
- /// <summary>
- /// Removes a file from the parse list
- /// </summary>
- public void RemoveFile (string filename)
- {
- // Not currently possible with Afrodite completion engine
- }// RemoveFile
-
- /// <summary>
- /// Adds a package to be parsed
- /// </summary>
- public void AddPackage (string packagename)
- {
- if (!DepsInstalled){ return; }
-
- if ("glib-2.0".Equals (packagename, StringComparison.Ordinal)) {
- LoggingService.LogDebug ("AddPackage: Skipping {0}", packagename);
- return;
- } else {
- LoggingService.LogDebug ("AddPackage: Adding package {0}", packagename);
- }
-
- foreach (string path in Afrodite.Utils.GetPackagePaths (packagename)) {
- LoggingService.LogDebug ("AddPackage: Queueing {0} for package {1}", path, packagename);
- engine.QueueSourcefile (path, true, false);
- }
- }// AddPackage
-
- /// <summary>
- /// Gets the completion list for a given symbol at a given location
- /// </summary>
- internal List<Afrodite.Symbol> Complete (string symbol, string filename, int line, int column, ValaCompletionDataList results)
- {
- List<Afrodite.Symbol> nodes = new List<Afrodite.Symbol> ();
- if (!DepsInstalled){ return nodes; }
-
-
- using (Afrodite.CodeDom parseTree = engine.TryAcquireCodeDom ()) {
- if (null != parseTree) {
- LoggingService.LogDebug ("Complete: Looking up symbol at {0}:{1}:{2}", filename, line, column);
- Afrodite.Symbol sym = parseTree.GetSymbolForNameAndPath (symbol, filename, line, column);
- LoggingService.LogDebug ("Complete: Got {0}", (null == sym)? "null": sym.Name);
- if (null != sym) {
- nodes = sym.Children;
- AddResults (nodes, results);
- }
- } else {
- LoggingService.LogDebug ("Complete: Unable to acquire codedom");
- }
- }
-
- return nodes;
- }// Complete
-
- internal Afrodite.Symbol GetFunction (string name, string filename, int line, int column)
- {
- if (!DepsInstalled){ return null; }
-
- using (Afrodite.CodeDom parseTree = engine.TryAcquireCodeDom ()) {
- if (null != parseTree) {
- LoggingService.LogDebug ("GetFunction: Looking up symbol at {0}:{1}:{2}", filename, line, column);
- Afrodite.Symbol symbol = parseTree.GetSymbolForNameAndPath (name, filename, line, column);
- LoggingService.LogDebug ("GetFunction: Got {0}", (null == symbol)? "null": symbol.Name);
- return symbol;
- } else {
- LoggingService.LogDebug ("GetFunction: Unable to acquire codedom");
- }
- }
-
- return null;
- }
-
- /// <summary>
- /// Get the type of a given expression
- /// </summary>
- public string GetExpressionType (string symbol, string filename, int line, int column)
- {
- if (!DepsInstalled){ return symbol; }
-
- using (Afrodite.CodeDom parseTree = engine.TryAcquireCodeDom ()) {
- if (null != parseTree) {
- LoggingService.LogDebug ("GetExpressionType: Looking up symbol at {0}:{1}:{2}", filename, line, column);
- Afrodite.Symbol sym = parseTree.LookupSymbolAt (filename, line, column);
- if (null != sym) {
- LoggingService.LogDebug ("Got {0}", sym.SymbolType.TypeName);
- return sym.SymbolType.TypeName;
- }
- } else {
- LoggingService.LogDebug ("GetExpressionType: Unable to acquire codedom");
- }
- }
-
- return symbol;
- }// GetExpressionType
-
- /// <summary>
- /// Get overloads for a method
- /// </summary>
- internal List<Afrodite.Symbol> GetOverloads (string name, string filename, int line, int column)
- {
- List<Afrodite.Symbol> overloads = new List<Afrodite.Symbol> ();
- if (!DepsInstalled){ return overloads; }
-
- using (Afrodite.CodeDom parseTree = engine.TryAcquireCodeDom ()) {
- if (null != parseTree) {
- Afrodite.Symbol symbol = parseTree.GetSymbolForNameAndPath (name, filename, line, column);
- overloads = new List<Afrodite.Symbol> (){ symbol };
- } else {
- LoggingService.LogDebug ("GetOverloads: Unable to acquire codedom");
- }
- }
-
- return overloads;
- }// GetOverloads
-
- /// <summary>
- /// Get constructors for a given type
- /// </summary>
- internal List<Afrodite.Symbol> GetConstructorsForType (string typename, string filename, int line, int column, ValaCompletionDataList results)
- {
- List<Afrodite.Symbol> functions = new List<Afrodite.Symbol> ();
- foreach (Afrodite.Symbol node in CompleteType (typename, filename, line, column, null)) {
- if ("constructor".Equals (node.MemberType, StringComparison.OrdinalIgnoreCase) ||
- "creationmethod".Equals (node.MemberType, StringComparison.OrdinalIgnoreCase)) {
- functions.Add (node);
- }
- }
-
- AddResults ((IList<Afrodite.Symbol>)functions, results);
-
- return functions;
- }// GetConstructorsForType
-
- /// <summary>
- /// Get constructors for a given expression
- /// </summary>
- internal List<Afrodite.Symbol> GetConstructorsForExpression (string expression, string filename, int line, int column, ValaCompletionDataList results)
- {
- string typename = GetExpressionType (expression, filename, line, column);
- return GetConstructorsForType (typename, filename, line, column, results);
- }// GetConstructorsForExpression
-
- /// <summary>
- /// Get types visible from a given source location
- /// </summary>
- internal void GetTypesVisibleFrom (string filename, int line, int column, ValaCompletionDataList results)
- {
- if (!DepsInstalled){ return; }
-
- // Add contents of parents
- ICollection<Afrodite.Symbol> containers = GetClassesForFile (filename);
- AddResults (containers, results);
- foreach (Afrodite.Symbol klass in containers) {
- // TODO: check source references once afrodite reliably captures the entire range
- for (Afrodite.Symbol parent = klass.Parent;
- parent != null;
- parent = parent.Parent)
- {
- AddResults (parent.Children.FindAll (delegate (Afrodite.Symbol sym){
- return 0 <= Array.IndexOf (containerTypes, sym.MemberType.ToLower ());
- }), results);
- }
- }
-
- using (Afrodite.CodeDom parseTree = engine.TryAcquireCodeDom ()) {
- if (null == parseTree){ return; }
-
- AddResults (GetNamespacesForFile (filename), results);
- AddResults (GetClassesForFile (filename), results);
- Afrodite.SourceFile file = parseTree.LookupSourceFile (filename);
- if (null != file) {
- Afrodite.Symbol parent;
- foreach (Afrodite.DataType directive in file.UsingDirectives) {
- if (directive.Symbol == null) { continue; }
- Afrodite.Symbol ns = parseTree.Lookup (directive.Symbol.FullyQualifiedName, out parent);
- if (null != ns) {
- containers = new List<Afrodite.Symbol> ();
- AddResults (new Afrodite.Symbol[]{ ns }, results);
- foreach (Afrodite.Symbol child in ns.Children) {
- foreach (string containerType in containerTypes) {
- if (containerType.Equals (child.MemberType, StringComparison.OrdinalIgnoreCase))
- containers.Add (child);
- }
- }
- AddResults (containers, results);
- }
- }
- }
- }
- }// GetTypesVisibleFrom
-
- /// <summary>
- /// Get symbols visible from a given source location
- /// </summary>
- internal void GetSymbolsVisibleFrom (string filename, int line, int column, ValaCompletionDataList results)
- {
- GetTypesVisibleFrom (filename, line, column, results);
- Complete ("this", filename, line, column, results);
- }// GetSymbolsVisibleFrom
-
- /// <summary>
- /// Add results to a ValaCompletionDataList on the GUI thread
- /// </summary>
- private static void AddResults (IEnumerable<Afrodite.Symbol> list, ValaCompletionDataList results)
- {
- if (null == list || null == results)
- {
- LoggingService.LogDebug ("AddResults: null list or results!");
- return;
- }
-
- List<CompletionData> data = new List<CompletionData> ();
- foreach (Afrodite.Symbol symbol in list) {
- data.Add (new CompletionData (symbol));
- }
-
- DispatchService.GuiDispatch (delegate {
- results.IsChanging = true;
- results.AddRange (data);
- results.IsChanging = false;
- });
- }// AddResults
-
- /// <summary>
- /// Get a list of classes declared in a given file
- /// </summary>
- internal List<Afrodite.Symbol> GetClassesForFile (string file)
- {
- return GetSymbolsForFile (file, containerTypes);
- }// GetClassesForFile
-
- /// <summary>
- /// Get a list of namespaces declared in a given file
- /// </summary>
- internal List<Afrodite.Symbol> GetNamespacesForFile (string file)
- {
- return GetSymbolsForFile (file, new string[]{ "namespace" });
- }
-
- /// <summary>
- /// Get a list of symbols declared in a given file
- /// </summary>
- /// <param name="file">
- /// A <see cref="System.String"/>: The file to check
- /// </param>
- /// <param name="desiredTypes">
- /// A <see cref="IEnumerable<System.String>"/>: The types of symbols to allow
- /// </param>
- List<Afrodite.Symbol> GetSymbolsForFile (string file, IEnumerable<string> desiredTypes)
- {
- List<Afrodite.Symbol> symbols = null;
- List<Afrodite.Symbol> classes = new List<Afrodite.Symbol> ();
-
- if (!DepsInstalled){ return classes; }
-
- using (Afrodite.CodeDom parseTree = engine.TryAcquireCodeDom ()) {
- if (null != parseTree){
- Afrodite.SourceFile sourceFile = parseTree.LookupSourceFile (file);
- if (null != sourceFile) {
- symbols = sourceFile.Symbols;
- if (null != symbols) {
- foreach (Afrodite.Symbol symbol in symbols) {
- foreach (string containerType in desiredTypes) {
- if (containerType.Equals (symbol.MemberType, StringComparison.OrdinalIgnoreCase))
- classes.Add (symbol);
- }
- }
- }
- } else {
- LoggingService.LogDebug ("GetClassesForFile: Unable to lookup source file {0}", file);
- }
- } else {
- LoggingService.LogDebug ("GetClassesForFile: Unable to acquire codedom");
- }
-
- }
-
- return classes;
- }
- }
-}
diff --git a/extras/ValaBinding/Parser/ProjectInformationManager.cs b/extras/ValaBinding/Parser/ProjectInformationManager.cs
deleted file mode 100644
index e4cd1be210..0000000000
--- a/extras/ValaBinding/Parser/ProjectInformationManager.cs
+++ /dev/null
@@ -1,78 +0,0 @@
-//
-// ProjectInformationManager.cs
-//
-// Authors:
-// Levi Bard <taktaktaktaktaktaktaktaktaktak@gmail.com>
-//
-// Copyright (C) 2008 Levi Bard
-// Based on CBinding by Marcos David Marin Amador <MarcosMarin@gmail.com>
-//
-// This source code is licenced under The MIT License:
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-
-using System;
-using System.Collections.Generic;
-
-using MonoDevelop.Projects;
-
-namespace MonoDevelop.ValaBinding.Parser
-{
- /// <summary>
- /// Singleton class to manage the navigation information of each project
- /// </summary>
- public class ProjectInformationManager
- {
- private static ProjectInformationManager instance;
- private List<ProjectInformation> projects = new List<ProjectInformation> ();
-
- private ProjectInformationManager ()
- {
- }
-
- /// <summary>
- /// Gets or creates the ProjectInformation for a given project
- /// </summary>
- public ProjectInformation Get (Project project)
- {
- foreach (ProjectInformation p in projects) {
- if (project == p.Project || (null != project && project.Equals (p.Project))) {
- return p;
- }
- }
-
- ProjectInformation newinfo = new ProjectInformation (project);
- projects.Add (newinfo);
-
- return newinfo;
- }
-
- public static ProjectInformationManager Instance {
- get {
- if (instance == null)
- instance = new ProjectInformationManager ();
-
- return instance;
- }
- }
- }
-}
diff --git a/extras/ValaBinding/Parser/ValaDocumentParser.cs b/extras/ValaBinding/Parser/ValaDocumentParser.cs
deleted file mode 100644
index adae51b34a..0000000000
--- a/extras/ValaBinding/Parser/ValaDocumentParser.cs
+++ /dev/null
@@ -1,117 +0,0 @@
-//
-// ValaDocumentParser.cs
-//
-// Author:
-// Levi Bard <taktaktaktaktaktaktaktaktaktak@gmail.com>
-//
-// Copyright (c) 2009 Levi Bard
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-using System;
-using System.IO;
-using System.Collections.Generic;
-using System.Threading;
-
-using MonoDevelop.Projects.Dom;
-using MonoDevelop.Projects.Dom.Parser;
-
-using MonoDevelop.ValaBinding.Parser.Afrodite;
-
-namespace MonoDevelop.ValaBinding.Parser
-{
- /// <summary>
- /// Parser for Vala source and vapi files
- /// </summary>
- public class ValaDocumentParser: AbstractParser
- {
- private ParsedDocument lastGood;
-
- public override ParsedDocument Parse (ProjectDom dom, string fileName, string content)
- {
- ParsedDocument doc = new ParsedDocument (fileName);
- ProjectInformation pi = ProjectInformationManager.Instance.Get ((null == dom)? null: dom.Project);
- if(null == doc.CompilationUnit){ doc.CompilationUnit = new CompilationUnit (fileName); }
- CompilationUnit cu = (CompilationUnit)doc.CompilationUnit;
- int lastLine = 0;
- ICollection<Symbol> classes = pi.GetClassesForFile (fileName);
-
- if (null == classes || 0 == classes.Count) {
- return lastGood;
- }
-
- foreach (Symbol node in classes) {
- if (null == node){ continue; }
- List<IMember> members = new List<IMember> ();
- lastLine = node.SourceReferences[0].LastLine;
-
- foreach (Symbol child in node.Children) {
- if (1 > child.SourceReferences.Count ||
- child.SourceReferences[0].File != node.SourceReferences[0].File){ continue; }
- lastLine = Math.Max (lastLine, child.SourceReferences[0].LastLine+1);
-
- switch (child.MemberType.ToLower ()) {
- case "class":
- members.Add (new DomType (new CompilationUnit (fileName), ClassType.Class, child.Name, new DomLocation (child.SourceReferences[0].FirstLine, 1), string.Empty, new DomRegion (child.SourceReferences[0].FirstLine, int.MaxValue, child.SourceReferences[0].LastLine, int.MaxValue), new List<IMember> ()));
- break;
- case "interface":
- members.Add (new DomType (new CompilationUnit (fileName), ClassType.Interface, child.Name, new DomLocation (child.SourceReferences[0].FirstLine, 1), string.Empty, new DomRegion (child.SourceReferences[0].FirstLine, int.MaxValue, child.SourceReferences[0].LastLine, int.MaxValue), new List<IMember> ()));
- break;
- case "delegate":
- members.Add (new DomType (new CompilationUnit (fileName), ClassType.Delegate, child.Name, new DomLocation (child.SourceReferences[0].FirstLine, 1), string.Empty, new DomRegion (child.SourceReferences[0].FirstLine, int.MaxValue, child.SourceReferences[0].LastLine, int.MaxValue), new List<IMember> ()));
- break;
- case "struct":
- members.Add (new DomType (new CompilationUnit (fileName), ClassType.Struct, child.Name, new DomLocation (child.SourceReferences[0].FirstLine, 1), string.Empty, new DomRegion (child.SourceReferences[0].FirstLine, int.MaxValue, child.SourceReferences[0].LastLine, int.MaxValue), new List<IMember> ()));
- break;
- case "enum":
- members.Add (new DomType (new CompilationUnit (fileName), ClassType.Enum, child.Name, new DomLocation (child.SourceReferences[0].FirstLine, 1), string.Empty, new DomRegion (child.SourceReferences[0].FirstLine, int.MaxValue, child.SourceReferences[0].LastLine, int.MaxValue), new List<IMember> ()));
- break;
- case "method":
- case "creationmethod":
- case "constructor":
- DomMethod method = new DomMethod (child.Name, Modifiers.None, MethodModifier.None, new DomLocation (child.SourceReferences[0].FirstLine, 1), new DomRegion (child.SourceReferences[0].FirstLine, int.MaxValue, child.SourceReferences[0].LastLine, int.MaxValue), new DomReturnType (child.ReturnType.TypeName));
- foreach (DataType param in child.Parameters) {
- method.Add (new DomParameter (method, param.Name, new DomReturnType (param.TypeName)));
- }
- members.Add (method);
- break;
- case "property":
- members.Add (new DomProperty (child.Name, Modifiers.None, new DomLocation (child.SourceReferences[0].FirstLine, 1), new DomRegion (child.SourceReferences[0].FirstLine, int.MaxValue, child.SourceReferences[0].LastLine, int.MaxValue), new DomReturnType ()));
- break;
- case "field":
- case "constant":
- case "errorcode":
- members.Add (new DomField (child.Name, Modifiers.None, new DomLocation (child.SourceReferences[0].FirstLine, 1), new DomReturnType ()));
- break;
- case "signal":
- members.Add (new DomEvent (child.Name, Modifiers.None, new DomLocation (child.SourceReferences[0].FirstLine, 1), new DomReturnType ()));
- break;
- default:
- MonoDevelop.Core.LoggingService.LogDebug ("ValaDocumentParser: Unsupported member type: {0}", child.MemberType);
- break;
- }// Switch on node type
- }// Collect members
-
- cu.Add (new DomType (new CompilationUnit (fileName), ClassType.Class, node.Name, new DomLocation (node.SourceReferences[0].FirstLine, 1), string.Empty, new DomRegion (node.SourceReferences[0].FirstLine, int.MaxValue, lastLine, int.MaxValue), members));
- }// Add each class in file
-
- return (lastGood = doc);
- }// Parse
- }// ValaDocumentParser
-}
diff --git a/extras/ValaBinding/Parser/ValaParsedDocument.cs b/extras/ValaBinding/Parser/ValaParsedDocument.cs
deleted file mode 100644
index 52587d81a6..0000000000
--- a/extras/ValaBinding/Parser/ValaParsedDocument.cs
+++ /dev/null
@@ -1,46 +0,0 @@
-//
-// ValaParsedDocument.cs
-//
-// Author:
-// Levi Bard <taktaktaktaktaktaktaktaktaktak@gmail.com>
-//
-// Copyright (c) 2009 Levi Bard
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-using System;
-using System.Collections.Generic;
-
-using MonoDevelop.Projects.Dom;
-
-namespace MonoDevelop.ValaBinding.Parser
-{
- /// <summary>
- /// Parsed Vala source file
- /// </summary>
- public class ValaParsedDocument: ParsedDocument
- {
- public ValaParsedDocument (string file): base(file) {}
-
- public override IEnumerable<FoldingRegion> GenerateFolds ()
- {
- return new List<FoldingRegion> ();
- }// No folds for now
- }// ValaParsedDocument
-}
diff --git a/extras/ValaBinding/Project/MakefileHandler.cs b/extras/ValaBinding/Project/MakefileHandler.cs
deleted file mode 100644
index 8b6e039281..0000000000
--- a/extras/ValaBinding/Project/MakefileHandler.cs
+++ /dev/null
@@ -1,77 +0,0 @@
-using System;
-using System.IO;
-using System.Text;
-
-using MonoDevelop.Core;
-using MonoDevelop.Autotools;
-using MonoDevelop.Projects;
-using MonoDevelop.Deployment;
-
-namespace MonoDevelop.ValaBinding
-{
- /// <summary>
- /// Handler for makefile generation
- /// </summary>
- public class MakefileHandler: IMakefileHandler
- {
-
- #region IMakefileHandler implementation
- public bool CanDeploy (MonoDevelop.Projects.SolutionItem entry, MakefileType type)
- {
- return entry is ValaProject;
- }
-
- /// <summary>
- /// Deploys a makefile to build the default configuration.
- /// </summary>
- /// <remarks>
- /// TODO: Make configuration-based targets as advertised.
- /// </remarks>
- public Makefile Deploy (AutotoolsContext ctx, MonoDevelop.Projects.SolutionItem entry, MonoDevelop.Core.IProgressMonitor monitor)
- {
- Makefile mkfile = new Makefile ();
- ValaProject project = (ValaProject) entry;
- ValaProjectConfiguration conf = (ValaProjectConfiguration)project.DefaultConfiguration;
-
- StringBuilder files = new StringBuilder ();
- foreach (ProjectFile t in project.Files) {
- if(BuildAction.Compile == t.BuildAction) {
- files.Append ("\\\n\t" + FileService.AbsoluteToRelativePath(project.BaseDirectory, t.FilePath));
- }
- }
-
- string dir = ctx.DeployContext.GetResolvedPath (TargetDirectory.ProgramFiles, FileService.AbsoluteToRelativePath(conf.OutputDirectory, ctx.TargetSolution.BaseDirectory));
- dir = dir.Replace ("@prefix@", "$(prefix)");
- dir = dir.Replace ("@PACKAGE@", "$(PACKAGE)");
-
- TemplateEngine templateEngine = new TemplateEngine ();
- templateEngine.Variables ["TOP_SRCDIR"] = FileService.AbsoluteToRelativePath (project.BaseDirectory, ctx.TargetSolution.BaseDirectory);
- templateEngine.Variables ["FILES"] = files.ToString ();
- templateEngine.Variables ["BUILD_DIR"] = ".";
- templateEngine.Variables ["INSTALL_DIR"] = "$(DESTDIR)" + dir;
- templateEngine.Variables ["ALL_TARGET"] = string.Format("all-{0}", conf.Name);
- templateEngine.Variables ["VFLAGS"] = string.Format("{0} {1}", ValaCompiler.GetCompilerFlags(conf), ValaCompiler.GeneratePkgCompilerArgs(project.Packages));
- templateEngine.Variables ["VTARGET"] = conf.CompiledOutputName;
-
- StringWriter sw = new StringWriter ();
-
- string mt;
- if (ctx.MakefileType == MakefileType.AutotoolsMakefile)
- mt = "Makefile.am.template";
- else
- mt = "Makefile.template";
-
- using (Stream stream = GetType().Assembly.GetManifestResourceStream (mt)) {
- StreamReader reader = new StreamReader (stream);
-
- templateEngine.Process (reader, sw);
- reader.Close ();
- }
-
- mkfile.Append (sw.ToString ());
-
- return mkfile;
- }
- #endregion
- }
-}
diff --git a/extras/ValaBinding/Project/ProjectPackage.cs b/extras/ValaBinding/Project/ProjectPackage.cs
deleted file mode 100644
index 2bc4de18b4..0000000000
--- a/extras/ValaBinding/Project/ProjectPackage.cs
+++ /dev/null
@@ -1,294 +0,0 @@
-//
-// ProjectPackage.cs: A pkg-config package
-//
-// Authors:
-// Levi Bard <taktaktaktaktaktaktaktaktaktak@gmail.com>
-//
-// Copyright (C) 2008 Levi Bard
-// Based on CBinding by Marcos David Marin Amador <MarcosMarin@gmail.com>
-//
-// This source code is licenced under The MIT License:
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-
-using System;
-using System.IO;
-using System.Text;
-using System.Text.RegularExpressions;
-using System.Collections.Generic;
-
-using Mono.Addins;
-
-using MonoDevelop.Core.Serialization;
-
-namespace MonoDevelop.ValaBinding
-{
- public class ProjectPackage
- {
- [ItemProperty ("file")]
- private string file;
-
- [ItemProperty ("name")]
- private string name;
-
- [ItemProperty ("IsProject")]
- private bool is_project;
-
- public string Description {
- get{ return description; }
- set{ description = value; }
- }
- private string description;
-
- public string Version {
- get{ return version; }
- set{ version = value; }
- }
- private string version;
-
- public List<string> Requires {
- get { return requires; }
- }
- private List<string> requires;
-
- private static string[] packagePaths;
-
- static ProjectPackage () {
- packagePaths = ScanPackageDirs ();
- }
-
- protected ProjectPackage() {
- requires = new List<string>();
- description = string.Empty;
- version = string.Empty;
- }
-
- public ProjectPackage (string file): this()
- {
- this.file = file;
- this.name = Path.GetFileNameWithoutExtension(file);
- this.is_project = false;
- ParsePackage();
- ParseRequires();
- }
-
- public ProjectPackage (ValaProject project): this()
- {
- name = project.Name;
- ValaProjectConfiguration vpc = (ValaProjectConfiguration)(project.DefaultConfiguration);
- file = Path.Combine (vpc.OutputDirectory, name + ".vapi");
- is_project = true;
- }
-
- public string File {
- get { return file; }
- set { file = value; }
- }
-
- public string Name {
- get { return name; }
- set { name = value; }
- }
-
- public bool IsProject {
- get { return is_project; }
- set { is_project = value; }
- }
-
- public override bool Equals (object o)
- {
- ProjectPackage other = o as ProjectPackage;
-
- if (other == null) return false;
-
- return other.File.Equals (file);
- }
-
- public override int GetHashCode ()
- {
- return (file + name).GetHashCode ();
- }
-
- /// <summary>
- /// Insert '\n's to make sure string isn't too long.
- /// </summary>
- /// <param name="desc">
- /// The unprocessed description.
- /// A <see cref="System.String"/>
- /// </param>
- /// <returns>
- /// The processed description.
- /// A <see cref="System.String"/>
- /// </returns>
- public static string ProcessDescription (string desc)
- {
- return Regex.Replace(desc, @"(.{1,80} )", "$&" + Environment.NewLine, RegexOptions.Compiled);
- }
-
- /// <summary>
- /// Search for a .pc file for this package, and parse its relevant attributes
- /// </summary>
- protected void ParsePackage ()
- {
- string line, pcfile;
-
- try {
- foreach(string path in packagePaths) {
- pcfile = Path.Combine (path, Path.ChangeExtension (Path.GetFileName (file), ".pc"));
- if (!System.IO.File.Exists (pcfile)){ continue; }
- using (StreamReader reader = new StreamReader (pcfile)) {
- if (null == reader){ continue; }
-
- while ((line = reader.ReadLine ()) != null) {
- if (Regex.IsMatch(line, @"^\s*#", RegexOptions.Compiled))
- continue;
-
- // if (line.IndexOf ('=') >= 0)
- // ParseVar (line);
-
- if (line.IndexOf (':') >= 0)
- ParseProperty (line);
- }
- return;
- }
- }
- } catch (FileNotFoundException) {
- // We just won't populate some fields
- } catch (IOException) {
- // We just won't populate some fields
- }
- }
-
- protected void ParseProperty (string line)
- {
- string[] tokens = line.Split(new char[]{':'}, 2);
-
- if(2 != tokens.Length){ return; }
-
- string key = tokens[0];
- string value = tokens[1].Trim();
-
- if (value.Length <= 0)
- return;
-
- switch (key) {
- case "Description":;
- description = ProcessDescription (value);
- break;
- case "Version":
- version = value;
- break;
- }
- }
-
- protected void ParseRequires ()
- {
- string line;
-
- try {
- using (StreamReader reader = new StreamReader (Path.ChangeExtension(file, ".deps"))) {
- if(null == reader){ return; }
- for(; null != (line = reader.ReadLine()); requires.Add(line));
- }
- } catch (FileNotFoundException) {
- // We just won't populate requires
- } catch (IOException) {
- // We just won't populate requires
- }
- }
-
- /// <summary>
- /// Scans PKG_CONFIG_PATH and a few static directories
- /// for potential pkg-config repositories
- /// </summary>
- /// <returns>
- /// A <see cref="System.String"/> array: The potential directories
- /// </returns>
- private static string[] ScanPackageDirs ()
- {
- List<string> dirs = new List<string> ();
- string pkg_var = Environment.GetEnvironmentVariable ("PKG_CONFIG_PATH");
- string[] staticPaths = { "/usr/lib/pkgconfig",
- "/usr/lib64/pkgconfig",
- "/usr/share/pkgconfig",
- "/usr/local/lib/pkgconfig",
- "/usr/local/share/pkgconfig"
- };
-
- if (null != pkg_var){ dirs.AddRange(pkg_var.Split(new char[]{System.IO.Path.PathSeparator}, StringSplitOptions.RemoveEmptyEntries)); }
-
- foreach(string dir in staticPaths) {
- if(!dirs.Contains(dir)){ dirs.Add(dir); }
- }
-
- return dirs.ToArray ();
- }
-
- /// <summary>
- /// Converts an absolute path to a relative one
- /// </summary>
- /// <param name="absolutePath">
- /// A <see cref="System.String"/>: The absolute path
- /// </param>
- /// <param name="relativeTo">
- /// A <see cref="System.String"/>: The path to which the output path shall be relative
- /// </param>
- /// <returns>
- /// A <see cref="System.String"/>: The relative path from relativeTo to absolutePath
- /// </returns>
- public static string ToRelativePath (string absolutePath, string relativeTo) {
- List<string> fileTokens = new List<string> (absolutePath.Split (Path.DirectorySeparatorChar)),
- anchorTokens = new List<string> (relativeTo.Split (Path.DirectorySeparatorChar));
- StringBuilder builder = new StringBuilder ();
- int length = 0;
-
- if (!Path.IsPathRooted(absolutePath)){ return absolutePath; }
- if (absolutePath == relativeTo){ return Path.GetFileName (absolutePath); }
-
- if (absolutePath.StartsWith (relativeTo) && Directory.Exists (relativeTo)) {
- builder.AppendFormat (".{0}", Path.DirectorySeparatorChar);
- }// if absolutePath is inside relativeTo
-
- for (;0 != fileTokens.Count && 0 != anchorTokens.Count;) {
- if (fileTokens[0] == anchorTokens[0]) {
- fileTokens.RemoveAt (0);
- anchorTokens.RemoveAt (0);
- } else { break; }
- }// strip identical leading path
-
- for (int i=0; i < anchorTokens.Count-1; ++i) {
- builder.AppendFormat ("..{0}", Path.DirectorySeparatorChar);
- }// navigate out of anchor subdir
-
- foreach (string token in fileTokens) {
- builder.AppendFormat ("{0}{1}", token, Path.DirectorySeparatorChar);
- }// append filepath
-
- length = builder.Length;
- if (0 < builder.Length && Path.DirectorySeparatorChar == builder[builder.Length-1]) {
- --length;
- }// check for trailing separator
-
- return builder.ToString (0, length);
- }// ToRelativePath
- }
-}
diff --git a/extras/ValaBinding/Project/ProjectPackageCollection.cs b/extras/ValaBinding/Project/ProjectPackageCollection.cs
deleted file mode 100644
index 7365922bef..0000000000
--- a/extras/ValaBinding/Project/ProjectPackageCollection.cs
+++ /dev/null
@@ -1,127 +0,0 @@
-//
-// ProjectPackageCollection.cs: Collection of pkg-config packages for the project
-//
-// Authors:
-// Levi Bard <taktaktaktaktaktaktaktaktaktak@gmail.com>
-//
-// Copyright (C) 2008 Levi Bard
-// Based on CBinding by Marcos David Marin Amador <MarcosMarin@gmail.com>
-//
-// This source code is licenced under The MIT License:
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-
-using System;
-using System.IO;
-using System.Collections;
-using System.Collections.Generic;
-using System.Collections.ObjectModel;
-
-using Mono.Addins;
-
-namespace MonoDevelop.ValaBinding
-{
- [Serializable()]
- public class ProjectPackageCollection : Collection<ProjectPackage>
- {
- private ValaProject project;
-
- internal ValaProject Project {
- get { return project; }
- set { project = value; }
- }
-
- public ProjectPackageCollection ()
- {
- }
-
- public void AddRange (IEnumerable<ProjectPackage> packages)
- {
- foreach (ProjectPackage p in packages) {
- bool found = false;
- foreach (ProjectPackage item in Items) {
- if (item.File == p.File) {
- found = true;
- }
- }
- if (!found) { Add (p); }
- }
- }
-
- protected override void ClearItems()
- {
- if (project != null) {
- List<ProjectPackage> list = new List<ProjectPackage> (Items);
- base.ClearItems ();
- foreach (ProjectPackage p in list) {
- project.NotifyPackageRemovedFromProject (p);
- }
- }
- }
-
- protected override void InsertItem (int index, ProjectPackage value)
- {
- if(value.IsProject && null != project) {
- ValaProjectConfiguration vpc = (ValaProjectConfiguration)project.DefaultConfiguration;
- value.File = ProjectPackage.ToRelativePath(value.File, Path.Combine(vpc.OutputDirectory, vpc.CompiledOutputName));
- }
- base.InsertItem (index, value);
- if (project != null) {
- project.NotifyPackageAddedToProject (value);
- }
- }
-
- protected override void RemoveItem (int index)
- {
- ProjectPackage p = Items [index];
- base.RemoveItem (index);
- if (project != null) {
- project.NotifyPackageRemovedFromProject (p);
- }
- }
-
- protected override void SetItem (int index, ProjectPackage item)
- {
- ProjectPackage oldValue = Items [index];
- if(item.IsProject && null != project) {
- ValaProjectConfiguration vpc = (ValaProjectConfiguration)project.DefaultConfiguration;
- item.File = ProjectPackage.ToRelativePath(item.File, Path.Combine(vpc.OutputDirectory, vpc.CompiledOutputName));
- }
- base.SetItem (index, item);
- if (project != null) {
- project.NotifyPackageRemovedFromProject (oldValue);
- project.NotifyPackageAddedToProject (item);
- }
- }
-
- public string[] ToStringArray ()
- {
- string[] array = new string[Count];
- int i = 0;
-
- foreach (ProjectPackage p in Items)
- array[i++] = p.Name;
-
- return array;
- }
- }
-}
diff --git a/extras/ValaBinding/Project/ProjectPackageEventArgs.cs b/extras/ValaBinding/Project/ProjectPackageEventArgs.cs
deleted file mode 100644
index 8c156b399e..0000000000
--- a/extras/ValaBinding/Project/ProjectPackageEventArgs.cs
+++ /dev/null
@@ -1,58 +0,0 @@
-//
-// ProjectPackageEventArgs.cs
-//
-// Authors:
-// Levi Bard <taktaktaktaktaktaktaktaktaktak@gmail.com>
-//
-// Copyright (C) 2008 Levi Bard
-// Based on CBinding by Marcos David Marin Amador <MarcosMarin@gmail.com>
-//
-// This source code is licenced under The MIT License:
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-
-using System;
-
-namespace MonoDevelop.ValaBinding
-{
- public delegate void ProjectPackageEventHandler (object sender, ProjectPackageEventArgs e);
-
- public class ProjectPackageEventArgs
- {
- ValaProject project;
- ProjectPackage package;
-
- public ProjectPackageEventArgs(ValaProject project, ProjectPackage package)
- {
- this.project = project;
- this.package = package;
- }
-
- public ValaProject Project {
- get { return project; }
- }
-
- public ProjectPackage Package {
- get { return package; }
- }
- }
-}
diff --git a/extras/ValaBinding/Project/ValaCompilationParameters.cs b/extras/ValaBinding/Project/ValaCompilationParameters.cs
deleted file mode 100644
index 49509576e8..0000000000
--- a/extras/ValaBinding/Project/ValaCompilationParameters.cs
+++ /dev/null
@@ -1,111 +0,0 @@
-//
-// ValaCompilationParameters.cs: Project compilation parameters
-//
-// Authors:
-// Levi Bard <taktaktaktaktaktaktaktaktaktak@gmail.com>
-//
-// Copyright (C) 2008 Levi Bard
-// Based on CBinding by Marcos David Marin Amador <MarcosMarin@gmail.com>
-//
-// This source code is licenced under The MIT License:
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-
-using System;
-using System.Xml;
-using System.Diagnostics;
-using System.Collections;
-
-using Mono.Addins;
-
-using MonoDevelop.Projects;
-using MonoDevelop.Core.Serialization;
-
-namespace MonoDevelop.ValaBinding
-{
- public enum WarningLevel {
- None,
- Normal,
- All
- }
-
- public class ValaCompilationParameters : ICloneable
- {
- [ItemProperty ("WarningLevel")]
- private WarningLevel warning_level = WarningLevel.Normal;
-
- [ItemProperty ("WarningsAsErrors")]
- private bool warnings_as_errors = false;
-
- [ItemProperty ("OptimizationLevel")]
- private int optimization = 0;
-
- [ItemProperty ("ExtraCompilerArguments")]
- private string extra_compiler_args = string.Empty;
-
- [ItemProperty ("DefineSymbols")]
- private string define_symbols = string.Empty;
-
- [ItemProperty ("EnableMultithreading")]
- private bool enable_multithreading = false;
-
- public object Clone ()
- {
- return MemberwiseClone ();
- }
-
- public WarningLevel WarningLevel {
- get { return warning_level; }
- set { warning_level = value; }
- }
-
- public bool WarningsAsErrors {
- get { return warnings_as_errors; }
- set { warnings_as_errors = value; }
- }
-
- public int OptimizationLevel {
- get { return optimization; }
- set {
- if (value >= 0 && value <= 3)
- optimization = value;
- else
- optimization = 0;
- }
- }
-
- public string ExtraCompilerArguments {
- get { return extra_compiler_args; }
- set { extra_compiler_args = value; }
- }
-
- public string DefineSymbols {
- get { return define_symbols; }
- set { define_symbols = value; }
- }
-
- public bool EnableMultithreading {
- get { return enable_multithreading; }
- set { enable_multithreading = value; }
- }
- }
-}
diff --git a/extras/ValaBinding/Project/ValaProject.cs b/extras/ValaBinding/Project/ValaProject.cs
deleted file mode 100644
index 0ca84697e4..0000000000
--- a/extras/ValaBinding/Project/ValaProject.cs
+++ /dev/null
@@ -1,547 +0,0 @@
-//
-// ValaProject.cs: Vala Project
-//
-// Authors:
-// Levi Bard <taktaktaktaktaktaktaktaktaktak@gmail.com>
-//
-// Copyright (C) 2008 Levi Bard
-// Based on CBinding by Marcos David Marin Amador <MarcosMarin@gmail.com>
-//
-// This source code is licenced under The MIT License:
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-
-using System;
-using System.IO;
-using System.Xml;
-using System.Collections;
-using System.Collections.Generic;
-using System.ComponentModel;
-using System.CodeDom.Compiler;
-using System.Text.RegularExpressions;
-using System.Diagnostics;
-
-using Mono.Addins;
-
-using MonoDevelop.Core;
-using MonoDevelop.Ide;
-using MonoDevelop.Core.Execution;
-using MonoDevelop.Core.ProgressMonitoring;
-using MonoDevelop.Projects;
-using MonoDevelop.Core.Serialization;
-using MonoDevelop.Ide.Gui;
-using MonoDevelop.Deployment;
-using MonoDevelop.Deployment.Linux;
-
-using MonoDevelop.ValaBinding.Parser;
-
-namespace MonoDevelop.ValaBinding
-{
- public enum ValaProjectCommands {
- AddPackage,
- ShowPackageDetails,
- UpdateClassPad
- }
-
- [DataInclude(typeof(ValaProjectConfiguration))]
- public class ValaProject : Project, IDeployable
- {
- [ItemProperty ("compiler", ValueType = typeof(ValaCompiler))]
- private ICompiler compiler_manager;
-
- private ProjectPackageCollection packages = new ProjectPackageCollection ();
- public static string vapidir;
-
- public event ProjectPackageEventHandler PackageAddedToProject;
- public event ProjectPackageEventHandler PackageRemovedFromProject;
-
- private void Init ()
- {
- packages.Project = this;
- this.PackageAddedToProject += AddDependencies; // Special handling for project packages
- //IdeApp.ProjectOperations.EntryAddedToCombine += OnEntryAddedToCombine;
- }
-
- static ValaProject()
- {
- try {
- Process pkgconfig = new Process();
- pkgconfig.StartInfo.FileName = "pkg-config";
- pkgconfig.StartInfo.Arguments = "--variable=vapidir vala-1.0";
- pkgconfig.StartInfo.CreateNoWindow = true;
- pkgconfig.StartInfo.RedirectStandardOutput = true;
- pkgconfig.StartInfo.UseShellExecute = false;
- pkgconfig.Start();
- vapidir = pkgconfig.StandardOutput.ReadToEnd().Trim();
- pkgconfig.WaitForExit();
- pkgconfig.Dispose();
- } catch(Exception e) {
- MessageService.ShowError("Unable to detect VAPI path", string.Format("{0}{1}{2}", e.Message, Environment.NewLine, e.StackTrace));
- }
-
- if(!Directory.Exists(vapidir)){ vapidir = "/usr/share/vala/vapi"; }
- }
-
-
-
- public ValaProject ()
- {
- Init ();
- }
-
- public ValaProject (ProjectCreateInformation info,
- XmlElement projectOptions, string language)
- {
- Init ();
- string binPath = ".";
-
- if (info != null) {
- Name = info.ProjectName;
- binPath = info.BinPath;
- }
-
- Compiler = null;
-
- ValaProjectConfiguration configuration =
- (ValaProjectConfiguration)CreateConfiguration ("Debug");
-
- configuration.DebugMode = true;
- ((ValaCompilationParameters)configuration.CompilationParameters).DefineSymbols = "DEBUG MONODEVELOP";
-
- Configurations.Add (configuration);
-
- configuration =
- (ValaProjectConfiguration)CreateConfiguration ("Release");
-
- configuration.DebugMode = false;
- ((ValaCompilationParameters)configuration.CompilationParameters).OptimizationLevel = 3;
- ((ValaCompilationParameters)configuration.CompilationParameters).DefineSymbols = "MONODEVELOP";
- Configurations.Add (configuration);
-
- foreach (ValaProjectConfiguration c in Configurations) {
- c.OutputDirectory = Path.Combine (binPath, c.Name);
- c.SourceDirectory = info.ProjectBasePath;
- c.Output = Name;
- ValaCompilationParameters parameters = c.CompilationParameters as ValaCompilationParameters;
-
- if (projectOptions != null) {
- if (projectOptions.Attributes["Target"] != null) {
- c.CompileTarget = (ValaBinding.CompileTarget)Enum.Parse (
- typeof(ValaBinding.CompileTarget),
- projectOptions.Attributes["Target"].InnerText);
- }
- if (projectOptions.Attributes["PauseConsoleOutput"] != null) {
- c.PauseConsoleOutput = bool.Parse (
- projectOptions.Attributes["PauseConsoleOutput"].InnerText);
- }
- if (projectOptions.Attributes["CompilerArgs"].InnerText != null) {
- if (parameters != null) {
- parameters.ExtraCompilerArguments = projectOptions.Attributes["CompilerArgs"].InnerText;
- }
- }
- if (projectOptions.Attributes["Packages"].InnerText != null) {
- List<ProjectPackage> packs = new List<ProjectPackage>();
- foreach(string pack in projectOptions.Attributes["Packages"].InnerText.Split('|')) {
- packs.Add(new ProjectPackage(
- string.Format("{0}{1}{2}.vapi",
- vapidir,
- Path.DirectorySeparatorChar,
- pack)));
- }
- packages.AddRange(packs);
- }
- }
- }
- }
-
- public override string ProjectType {
- get { return "Vala"; }
- }
-
- public override string[] SupportedLanguages {
- get { return new string[] { "Vala" }; }
- }
-
- public override bool IsCompileable (string fileName)
- {
- string ext = Path.GetExtension(fileName);
- return (ext.Equals(".vala", StringComparison.CurrentCultureIgnoreCase) ||
- ext.Equals(".vapi", StringComparison.CurrentCultureIgnoreCase));
- }
-
- public List<ValaProject> DependedOnProjects ()
- {
- List<string> project_names = new List<string> ();
- List<ValaProject> projects = new List<ValaProject> ();
-
- foreach (ProjectPackage p in Packages) {
- if (p.IsProject && p.Name != Name) {
- project_names.Add (p.Name);
- }
- }
-
- foreach (SolutionItem e in ParentFolder.Items) {
- if (e is ValaProject && project_names.Contains (e.Name)) {
- projects.Add ((ValaProject)e);
- }
- }
-
- return projects;
- }
-
- /// <summary>
- /// Ths pkg-config package is for internal MonoDevelop use only, it is not deployed.
- /// </summary>
- public void WriteMDPkgPackage (ConfigurationSelector configuration)
- {
- string pkgfile = Path.Combine (BaseDirectory, Name + ".md.pc");
-
- ValaProjectConfiguration config = (ValaProjectConfiguration)GetConfiguration(configuration);
-
- using (StreamWriter writer = new StreamWriter (pkgfile)) {
- writer.WriteLine ("Name: {0}", Name);
- writer.WriteLine ("Description: {0}", Description);
- writer.WriteLine ("Version: {0}", Version);
- writer.WriteLine ("Libs: -L{0} -l{1}", config.OutputDirectory, config.Output);
-// writer.WriteLine ("Cflags: -I{0}", BaseDirectory);
- }
-
- // If this project compiles into a shared object we need to
- // export the output path to the LD_LIBRARY_PATH
- string literal = "LD_LIBRARY_PATH";
- string ld_library_path = Environment.GetEnvironmentVariable (literal);
-
- if (string.IsNullOrEmpty (ld_library_path)) {
- Environment.SetEnvironmentVariable (literal, config.OutputDirectory);
- } else if (!ld_library_path.Contains (config.OutputDirectory)) {
- ld_library_path = string.Format ("{0}:{1}", config.OutputDirectory, ld_library_path);
- Environment.SetEnvironmentVariable (literal, ld_library_path);
- }
- }
-
- /// <summary>
- /// This is the pkg-config package that gets deployed.
- /// <returns>The pkg-config package's filename</returns>
- /// </summary>
- private string WriteDeployablePkgPackage (ConfigurationSelector configuration)
- {
- // FIXME: This should probably be grabed from somewhere.
- string prefix = "/usr/local";
- string pkgfile = Path.Combine (BaseDirectory, Name + ".pc");
- ValaProjectConfiguration config = (ValaProjectConfiguration)GetConfiguration(configuration);
-
- using (StreamWriter writer = new StreamWriter (pkgfile)) {
- writer.WriteLine ("prefix={0}", prefix);
- writer.WriteLine ("exec_prefix=${prefix}");
- writer.WriteLine ("libdir=${exec_prefix}/lib");
- writer.WriteLine ("includedir=${prefix}/include");
- writer.WriteLine ();
- writer.WriteLine ("Name: {0}", Name);
- writer.WriteLine ("Description: {0}", Description);
- writer.WriteLine ("Version: {0}", Version);
- writer.WriteLine ("Requires: {0}", string.Join (" ", Packages.ToStringArray ()));
- // TODO: How should I get this?
- writer.WriteLine ("Conflicts: {0}", string.Empty);
- writer.Write ("Libs: -L${libdir} ");
- writer.WriteLine ("-l{0}", config.Output);
- writer.Write ("Cflags: -I${includedir}/");
- writer.WriteLine ("{0} {1}", Name, Regex.Replace(((ValaCompilationParameters)config.CompilationParameters).DefineSymbols, @"(^|\s+)(\w+)", "-D$2 ", RegexOptions.Compiled));
- }
-
- return pkgfile;
- }
-
- protected override BuildResult DoBuild (IProgressMonitor monitor, ConfigurationSelector configuration)
- {
- ValaProjectConfiguration pc = (ValaProjectConfiguration)GetConfiguration(configuration);
- pc.SourceDirectory = BaseDirectory;
-
- return compiler_manager.Compile (
- Files, packages,
- pc,
- monitor);
- }
-
- ExecutionCommand CreateExecutionCommand (ValaProjectConfiguration conf)
- {
- NativeExecutionCommand cmd = new NativeExecutionCommand ();
- cmd.Command = Path.Combine (conf.OutputDirectory, conf.Output);
- cmd.Arguments = conf.CommandLineParameters;
- cmd.WorkingDirectory = Path.GetFullPath (conf.OutputDirectory);
- return cmd;
- }
-
- protected override bool OnGetCanExecute (MonoDevelop.Projects.ExecutionContext context, ConfigurationSelector solutionConfiguration)
- {
- ValaProjectConfiguration conf = (ValaProjectConfiguration)GetConfiguration(solutionConfiguration);
- ExecutionCommand cmd = CreateExecutionCommand (conf);
- return (conf.CompileTarget == ValaBinding.CompileTarget.Bin) &&
- context.ExecutionHandler.CanExecute (cmd);
- }
-
- protected override void DoExecute (IProgressMonitor monitor,
- ExecutionContext context,
- ConfigurationSelector configuration)
- {
- ValaProjectConfiguration conf = (ValaProjectConfiguration) GetConfiguration (configuration);
- bool pause = conf.PauseConsoleOutput;
- IConsole console;
-
- if (conf.CompileTarget != ValaBinding.CompileTarget.Bin) {
- MessageService.ShowMessage ("Compile target is not an executable!");
- return;
- }
-
- ExecutionCommand cmd = CreateExecutionCommand (conf);
-
- monitor.Log.WriteLine ("Running project...");
-
- if (conf.ExternalConsole)
- console = context.ExternalConsoleFactory.CreateConsole (!pause);
- else
- console = context.ConsoleFactory.CreateConsole (!pause);
-
- AggregatedOperationMonitor operationMonitor = new AggregatedOperationMonitor (monitor);
-
- try {
- if (!context.ExecutionHandler.CanExecute (cmd)) {
- monitor.ReportError ("Cannot execute \"" + conf.Output + "\". The selected execution mode is not supported for Vala projects.", null);
- return;
- }
-
- IProcessAsyncOperation op = context.ExecutionHandler.Execute (cmd, console);
-
- operationMonitor.AddOperation (op);
- op.WaitForCompleted ();
-
- monitor.Log.WriteLine ("The operation exited with code: {0}", op.ExitCode);
- } catch (Exception ex) {
- monitor.ReportError ("Cannot execute \"" + conf.Output + "\"", ex);
- } finally {
- operationMonitor.Dispose ();
- console.Dispose ();
- }
- }
-
- public override FilePath GetOutputFileName (ConfigurationSelector configuration)
- {
- ValaProjectConfiguration conf = (ValaProjectConfiguration)GetConfiguration(configuration);
- return conf.OutputDirectory.Combine (conf.CompiledOutputName);
- }
-
- public override SolutionItemConfiguration CreateConfiguration (string name)
- {
- ValaProjectConfiguration conf = new ValaProjectConfiguration ();
-
- conf.Name = name;
- conf.CompilationParameters = new ValaCompilationParameters ();
-
- return conf;
- }
-
- public ICompiler Compiler {
- get { return compiler_manager; }
- set {
- if (value != null) {
- compiler_manager = value;
- } else {
- object[] compilers = AddinManager.GetExtensionObjects ("/ValaBinding/Compilers");
- string compiler = PropertyService.Get ("ValaBinding.DefaultValaCompiler", new ValaCompiler().Name);
-
- foreach (ICompiler c in compilers) {
- if (compiler == c.Name) {
- compiler_manager = c;
- }
- }
- }
- }
- }
-
- [Browsable(false)]
- [ItemProperty ("Packages")]
- public ProjectPackageCollection Packages {
- get { return packages; }
- set {
- packages = value;
- packages.Project = this;
- ProjectInformation pi = ProjectInformationManager.Instance.Get (this);
- ValaProjectConfiguration configuration = (ValaProjectConfiguration)DefaultConfiguration;
-
- foreach(ProjectPackage p in packages) {
- if (p.IsProject) {
- string file = Path.GetFullPath (Path.Combine (configuration.OutputDirectory, p.File));
- LoggingService.LogDebug ("Adding {0} for project package {1}", file, p.Name);
- pi.AddFile (file);
- } else {
- pi.AddPackage (p.Name);
- }
- }
- }
- }
-
- protected override void OnFileAddedToProject (ProjectFileEventArgs args)
- {
- base.OnFileAddedToProject (args);
-
- foreach (ProjectFileEventInfo e in args) {
- if (!IsCompileable (e.ProjectFile.Name) &&
- e.ProjectFile.BuildAction == BuildAction.Compile) {
- e.ProjectFile.BuildAction = BuildAction.None;
- }
-
- if (e.ProjectFile.BuildAction == BuildAction.Compile)
- ProjectInformationManager.Instance.Get (this).AddFile (e.ProjectFile.FilePath);
- }
- }
-
- protected override void OnFileChangedInProject (ProjectFileEventArgs args)
- {
- base.OnFileChangedInProject (args);
- foreach (ProjectFileEventInfo e in args) {
- // ProjectInformationManager.Instance.Get (this).Reparse ();
- ProjectInformationManager.Instance.Get (this).AddFile (e.ProjectFile.FilePath);
- }
- }
-
- protected override void OnFileRemovedFromProject (ProjectFileEventArgs args)
- {
- base.OnFileRemovedFromProject(args);
- foreach (ProjectFileEventInfo e in args)
- ProjectInformationManager.Instance.Get (this).RemoveFile (e.ProjectFile.FilePath);
- }
-
- private static void OnEntryAddedToCombine (object sender, SolutionItemEventArgs e)
- {
- ValaProject p = e.SolutionItem as ValaProject;
-
- if (p == null)
- return;
-
- foreach (ProjectPackage package in p.Packages)
- if (!package.IsProject){ ProjectInformationManager.Instance.Get (p).AddPackage (package.Name); }
- foreach (ProjectFile f in p.Files)
- ProjectInformationManager.Instance.Get (p).AddFile (f.FilePath);
- }
-
- internal void NotifyPackageRemovedFromProject (ProjectPackage package)
- {
- if (null != PackageRemovedFromProject) {
- PackageRemovedFromProject (this, new ProjectPackageEventArgs (this, package));
- }
- }
-
- internal void NotifyPackageAddedToProject (ProjectPackage package)
- {
- if(null != PackageAddedToProject) {
- PackageAddedToProject (this, new ProjectPackageEventArgs (this, package));
- }
- if (!package.IsProject){ ProjectInformationManager.Instance.Get (this).AddPackage (package.Name); }
- }
-
- public DeployFileCollection GetDeployFiles (ConfigurationSelector configuration)
- {
- DeployFileCollection deployFiles = new DeployFileCollection ();
-
- CompileTarget target = ((ValaProjectConfiguration)GetConfiguration(configuration)).CompileTarget;
-
- // Headers and resources
- foreach (ProjectFile f in Files) {
- if (f.BuildAction == BuildAction.Content) {
- string targetDirectory =
- (/*IsHeaderFile (f.Name) ? TargetDirectory.Include :*/ TargetDirectory.ProgramFiles);
-
- deployFiles.Add (new DeployFile (this, f.FilePath, f.ProjectVirtualPath, targetDirectory));
- }
- }
-
- // Output
- string output = GetOutputFileName (configuration);
- if (!string.IsNullOrEmpty (output)) {
- string targetDirectory = string.Empty;
-
- switch (target) {
- case CompileTarget.Bin:
- targetDirectory = TargetDirectory.ProgramFiles;
- break;
- case CompileTarget.SharedLibrary:
- targetDirectory = TargetDirectory.ProgramFiles;
- break;
- case CompileTarget.StaticLibrary:
- targetDirectory = TargetDirectory.ProgramFiles;
- break;
- }
-
- deployFiles.Add (new DeployFile (this, output, Path.GetFileName (output), targetDirectory));
- }
-
- // PkgPackage
- if (target != CompileTarget.Bin) {
- string pkgfile = WriteDeployablePkgPackage (configuration);
- deployFiles.Add (new DeployFile (this, Path.Combine (BaseDirectory, pkgfile), pkgfile, LinuxTargetDirectory.PkgConfig));
- }
-
- return deployFiles;
- }
-
- /// <summary>
- /// Add dependencies of project packages to current project,
- /// and add cflags for project package and LD_LIBRARY_PATH
- /// </summary>
- private void AddDependencies (object obj, ProjectPackageEventArgs args) {
- ProjectPackage package = args.Package;
- if (!package.IsProject){ return; }
-
- string depsfile = Path.ChangeExtension (package.File, ".deps");
- try {
- if (File.Exists (depsfile)) {
- string[] lines = File.ReadAllLines (depsfile);
- List<ProjectPackage> deps = new List<ProjectPackage>();
- foreach (string line in lines) {
- deps.Add(new ProjectPackage(Path.Combine(vapidir, line) + ".vapi"));
- }// add package for each dep
- packages.AddRange(deps);
- }
-
- // Currently, we need to add include directory and linker flags - this should be obsoleted
- string ccargs = string.Format (" --Xcc=\\\\\\\"-I{0}\\\\\\\" --Xcc=\\\\\\\"-L{0}\\\\\\\" --Xcc=\\\\\\\"-l{1}\\\\\\\" ", Path.GetDirectoryName (depsfile), package.Name);
- string ldpath = string.Empty;
- string packagePath = Path.GetDirectoryName(package.File);
-
- foreach (ItemConfiguration pc in Configurations) {
- ValaProjectConfiguration valapc = pc as ValaProjectConfiguration;
- if (null == valapc){ continue; }
-
- ValaCompilationParameters vcp = (ValaCompilationParameters)valapc.CompilationParameters;
- if (!vcp.ExtraCompilerArguments.Contains (ccargs)){ vcp.ExtraCompilerArguments += ccargs; }
-
- if(valapc.EnvironmentVariables.TryGetValue ("LD_LIBRARY_PATH", out ldpath)) {
- if (!ldpath.Contains (packagePath)){ ldpath += Path.PathSeparator + packagePath; }
- } else {
- ldpath = packagePath;
- }
-
- valapc.EnvironmentVariables["LD_LIBRARY_PATH"] = ldpath;
- }// add compilation parameters and LD_LIBRARY_PATH
- } catch { /* Do anything here? */ }
- }// AddDependencies
- }
-}
diff --git a/extras/ValaBinding/Project/ValaProjectBinding.cs b/extras/ValaBinding/Project/ValaProjectBinding.cs
deleted file mode 100644
index 59988b0d4a..0000000000
--- a/extras/ValaBinding/Project/ValaProjectBinding.cs
+++ /dev/null
@@ -1,74 +0,0 @@
-//
-// ValaProjectBinding.cs: binding for a ValaProject
-//
-// Authors:
-// Levi Bard <taktaktaktaktaktaktaktaktaktak@gmail.com>
-//
-// Copyright (C) 2008 Levi Bard
-// Based on CBinding by Marcos David Marin Amador <MarcosMarin@gmail.com>
-//
-// This source code is licenced under The MIT License:
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-using System;
-using System.Xml;
-using System.IO;
-
-using Mono.Addins;
-
-using MonoDevelop.Projects;
-
-namespace MonoDevelop.ValaBinding
-{
- public class ValaProjectBinding : IProjectBinding
- {
- public string Name {
- get { return "Vala"; }
- }
-
- public Project CreateProject (ProjectCreateInformation info,
- XmlElement projectOptions)
- {
- string language = projectOptions.GetAttribute ("language");
- return new ValaProject (info, projectOptions, language);
- }
-
- public Project CreateSingleFileProject (string sourceFile)
- {
- ProjectCreateInformation info = new ProjectCreateInformation ();
- info.ProjectName = Path.GetFileNameWithoutExtension (sourceFile);
- info.SolutionPath = Path.GetDirectoryName (sourceFile);
- info.ProjectBasePath = Path.GetDirectoryName (sourceFile);
-
- string language = "Vala";
-
- Project project = new ValaProject (info, null, language);
- project.Files.Add (new ProjectFile (sourceFile));
- return project;
- }
-
- public bool CanCreateSingleFileProject (string sourceFile)
- {
- return sourceFile.EndsWith (".vala", StringComparison.OrdinalIgnoreCase);
- }
- }
-}
diff --git a/extras/ValaBinding/Project/ValaProjectConfiguration.cs b/extras/ValaBinding/Project/ValaProjectConfiguration.cs
deleted file mode 100644
index 11834f4189..0000000000
--- a/extras/ValaBinding/Project/ValaProjectConfiguration.cs
+++ /dev/null
@@ -1,166 +0,0 @@
-//
-// ValaProjectConfiguration.cs: Configuration for Vala projects
-//
-// Authors:
-// Levi Bard <taktaktaktaktaktaktaktaktaktak@gmail.com>
-//
-// Copyright (C) 2008 Levi Bard
-// Based on CBinding by Marcos David Marin Amador <MarcosMarin@gmail.com>
-//
-// This source code is licenced under The MIT License:
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-
-using System;
-using System.Collections;
-
-using Mono.Addins;
-
-using MonoDevelop.Projects;
-using MonoDevelop.Core.Serialization;
-
-namespace MonoDevelop.ValaBinding
-{
- public enum CompileTarget {
- Bin,
- StaticLibrary,
- SharedLibrary
- };
-
- public class ValaProjectConfiguration : ProjectConfiguration
- {
- [ItemProperty("Output/output")]
- string output = string.Empty;
-
- [ItemProperty("Build/target")]
- ValaBinding.CompileTarget target = ValaBinding.CompileTarget.Bin;
-
- [ItemProperty ("Includes")]
- [ProjectPathItemProperty ("Include", Scope = "*", ValueType = typeof(string))]
- private ArrayList includes = new ArrayList ();
-
-// [ItemProperty ("LibPaths")]
-// [ProjectPathItemProperty ("LibPath", Scope = 1, ValueType = typeof(string))]
-// private ArrayList libpaths = new ArrayList ();
-//
- [ItemProperty ("Libs")]
- [ItemProperty ("Lib", Scope = "*", ValueType = typeof(string))]
- private ArrayList libs = new ArrayList ();
-
- [ItemProperty ("CodeGeneration",
- FallbackType = typeof(UnknownCompilationParameters))]
- ICloneable compilationParameters;
-
- [ProjectPathItemProperty ("SourceDirectory")]
- private string source_directory_path;
-
- public string Output {
- get { return output; }
- set { output = value; }
- }
-
- public CompileTarget CompileTarget {
- get { return target; }
- set { target = value; }
- }
-
- public ICloneable CompilationParameters {
- get { return compilationParameters; }
- set { compilationParameters = value; }
- }
-
- // TODO: This should be revised to use the naming conventions depending on OS
- public string CompiledOutputName {
- get {
- string suffix = string.Empty;
- string prefix = string.Empty;
-
- switch (target)
- {
- case CompileTarget.Bin:
- break;
- case CompileTarget.StaticLibrary:
- if (!Output.StartsWith ("lib"))
- prefix = "lib";
- if (!Output.EndsWith (".a"))
- suffix = ".a";
- break;
- case CompileTarget.SharedLibrary:
- if (!Output.StartsWith ("lib"))
- prefix = "lib";
- if (!Output.EndsWith (".so"))
- suffix = ".so";
- break;
- }
-
- return string.Format("{0}{1}{2}", prefix, Output, suffix);
- }
- }
-
- public string SourceDirectory {
- get { return source_directory_path; }
- set { source_directory_path = value; }
- }
-
- public ArrayList Includes {
- get { return includes; }
- set { includes = value; }
- }
-
- public ArrayList Libs {
- get { return libs; }
- set { libs = value; }
- }
-
- public override void CopyFrom (ItemConfiguration configuration)
- {
- base.CopyFrom (configuration);
- ValaProjectConfiguration conf = (ValaProjectConfiguration)configuration;
-
- output = conf.output;
- target = conf.target;
- includes = conf.includes;
- libs = conf.libs;
- source_directory_path = conf.source_directory_path;
-
- if (conf.CompilationParameters == null) {
- compilationParameters = null;
- } else {
- compilationParameters = (ICloneable)conf.compilationParameters.Clone ();
- }
- }
- }
-
- public class UnknownCompilationParameters : ICloneable, IExtendedDataItem
- {
- Hashtable table = new Hashtable ();
-
- public IDictionary ExtendedProperties {
- get { return table; }
- }
-
- public object Clone ()
- {
- return MemberwiseClone ();
- }
- }
-}
diff --git a/extras/ValaBinding/Project/ValaProjectServiceExtension.cs b/extras/ValaBinding/Project/ValaProjectServiceExtension.cs
deleted file mode 100644
index 490823ccba..0000000000
--- a/extras/ValaBinding/Project/ValaProjectServiceExtension.cs
+++ /dev/null
@@ -1,77 +0,0 @@
-//
-// ValaProjectServiceExtension.cs
-//
-// Authors:
-// Levi Bard <taktaktaktaktaktaktaktaktaktak@gmail.com>
-//
-// Copyright (C) 2008 Levi Bard
-// Based on CBinding by Marcos David Marin Amador <MarcosMarin@gmail.com>
-//
-// This source code is licenced under The MIT License:
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-
-using System;
-using System.IO;
-using System.Text;
-
-using Mono.Addins;
-
-using MonoDevelop.Core;
-using MonoDevelop.Projects;
-using MonoDevelop.Core.Execution;
-
-namespace MonoDevelop.ValaBinding
-{
- public class ValaProjectServiceExtension : ProjectServiceExtension
- {
- protected override BuildResult Build (IProgressMonitor monitor, SolutionEntityItem entry, ConfigurationSelector configuration)
- {
- ValaProject project = entry as ValaProject;
-
- if (project == null)
- return base.Build (monitor, entry, configuration);
-
- foreach (ValaProject p in project.DependedOnProjects ()) {
- p.Build (monitor, configuration, true);
- }
-
- ValaProjectConfiguration conf = (ValaProjectConfiguration)project.GetConfiguration(configuration);
-
- if (conf.CompileTarget != CompileTarget.Bin)
- project.WriteMDPkgPackage (configuration);
-
- return base.Build (monitor, entry, configuration);
- }
-
- protected override void Clean (IProgressMonitor monitor, SolutionEntityItem entry, ConfigurationSelector configuration)
- {
- base.Clean (monitor, entry, configuration);
-
- ValaProject project = entry as ValaProject;
- if (project == null)
- return;
-
- project.Compiler.Clean (project.Files, (ValaProjectConfiguration) project.GetConfiguration(configuration), monitor);
- }
- }
-}
diff --git a/extras/ValaBinding/ProjectPad/ProjectNodeExtension.cs b/extras/ValaBinding/ProjectPad/ProjectNodeExtension.cs
deleted file mode 100644
index 6b174dfb49..0000000000
--- a/extras/ValaBinding/ProjectPad/ProjectNodeExtension.cs
+++ /dev/null
@@ -1,59 +0,0 @@
-//
-// ProjectNodeExtension.cs: Adds the packages node to a ValaProject
-//
-// Authors:
-// Marcos David Marin Amador <MarcosMarin@gmail.com>
-//
-// Copyright (C) 2007 Marcos David Marin Amador
-//
-//
-// This source code is licenced under The MIT License:
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-using System;
-using System.Collections;
-
-using Mono.Addins;
-
-using MonoDevelop.Projects;
-using MonoDevelop.Ide.Gui.Pads;
-using MonoDevelop.Ide.Gui.Components;
-
-namespace MonoDevelop.ValaBinding.ProjectPad
-{
- public class ProjectNodeExtension : NodeBuilderExtension
- {
- public override bool CanBuildNode (Type dataType)
- {
- return typeof(ValaProject).IsAssignableFrom (dataType);
- }
-
- public override void BuildChildNodes (ITreeBuilder builder, object dataObject)
- {
- ValaProject p = dataObject as ValaProject;
-
- if (p == null) return;
-
- builder.AddChild (p.Packages);
- }
- }
-}
diff --git a/extras/ValaBinding/ProjectPad/ProjectPackageNodeBuilder.cs b/extras/ValaBinding/ProjectPad/ProjectPackageNodeBuilder.cs
deleted file mode 100644
index 32c852bef3..0000000000
--- a/extras/ValaBinding/ProjectPad/ProjectPackageNodeBuilder.cs
+++ /dev/null
@@ -1,108 +0,0 @@
-//
-// ProjectPackageNodeBuilder.cs
-//
-// Authors:
-// Marcos David Marin Amador <MarcosMarin@gmail.com>
-//
-// Copyright (C) 2007 Marcos David Marin Amador
-//
-//
-// This source code is licenced under The MIT License:
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-using System;
-using System.Reflection;
-using Mono.Addins;
-
-using MonoDevelop.Ide.Gui;
-using MonoDevelop.Ide;
-using MonoDevelop.Ide.Gui.Pads;
-using MonoDevelop.Components.Commands;
-using MonoDevelop.Ide.Commands;
-using MonoDevelop.Ide.Gui.Components;
-
-namespace MonoDevelop.ValaBinding.ProjectPad
-{
- public class ProjectPackageNodeBuilder : TypeNodeBuilder
- {
- public override Type NodeDataType {
- get { return typeof(ProjectPackage); }
- }
-
- public override Type CommandHandlerType {
- get { return typeof(PackageNodeCommandHandler); }
- }
-
- public override string GetNodeName (ITreeNavigator thisNode, object dataObject)
- {
- return ((ProjectPackage)dataObject).File;
- }
-
- public override string ContextMenuAddinPath {
- get { return "/MonoDevelop/ValaBinding/Views/ProjectBrowser/ContextMenu/PackageNode"; }
- }
-
- public override void BuildNode (ITreeBuilder treeBuilder,
- object dataObject,
- ref string label,
- ref Gdk.Pixbuf icon,
- ref Gdk.Pixbuf closedIcon)
- {
- label = ((ProjectPackage)dataObject).Name;
-
- if (((ProjectPackage)dataObject).IsProject)
- icon = new Gdk.Pixbuf (Assembly.GetExecutingAssembly (), "Icons.16x16.ProjectReference");
- else
- icon = Context.GetIcon (Stock.Reference);
- }
- }
-
- public class PackageNodeCommandHandler : NodeCommandHandler
- {
- public override void DeleteItem ()
- {
- ProjectPackage package = CurrentNode.DataItem as ProjectPackage;
- ValaProject project = CurrentNode.GetParentDataItem (
- typeof(ValaProject), false) as ValaProject;
-
- project.Packages.Remove (package);
-
- IdeApp.ProjectOperations.Save (project);
- }
-
- public override DragOperation CanDragNode ()
- {
- return DragOperation.Copy;
- }
-
- [CommandHandler (MonoDevelop.ValaBinding.ValaProjectCommands.ShowPackageDetails)]
- public void ShowPackageDetails ()
- {
- ProjectPackage package = (ProjectPackage)CurrentNode.DataItem;
-
- // package.ParsePackage ();
-
- PackageDetails details = new PackageDetails (package);
- details.Show ();
- }
- }
-}
diff --git a/extras/ValaBinding/ProjectPad/ProjectPackagesFolderNodeBuilder.cs b/extras/ValaBinding/ProjectPad/ProjectPackagesFolderNodeBuilder.cs
deleted file mode 100644
index c11c74eae1..0000000000
--- a/extras/ValaBinding/ProjectPad/ProjectPackagesFolderNodeBuilder.cs
+++ /dev/null
@@ -1,204 +0,0 @@
-//
-// ProjectPackagesFolderNodeBuilder.cs: Node to control the packages in the project
-//
-// Authors:
-// Marcos David Marin Amador <MarcosMarin@gmail.com>
-//
-// Copyright (C) 2007 Marcos David Marin Amador
-//
-//
-// This source code is licenced under The MIT License:
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-using System;
-using System.Collections;
-
-using Mono.Addins;
-
-using MonoDevelop.Components.Commands;
-using MonoDevelop.Projects;
-using MonoDevelop.Ide;
-using MonoDevelop.Ide.Gui.Pads;
-using MonoDevelop.Ide.Gui.Pads.ProjectPad;
-using MonoDevelop.Ide.Gui;
-using MonoDevelop.Ide.Gui.Components;
-
-namespace MonoDevelop.ValaBinding.ProjectPad
-{
- public class ProjectPackagesFolderNodeBuilder : TypeNodeBuilder
- {
- ProjectPackageEventHandler addedHandler;
- ProjectPackageEventHandler removedHandler;
-
- public override Type NodeDataType {
- get { return typeof(ProjectPackageCollection); }
- }
-
- public override void OnNodeAdded (object dataObject)
- {
- ValaProject project = ((ProjectPackageCollection)dataObject).Project;
- if (project == null) return;
- project.PackageAddedToProject += addedHandler;
- project.PackageRemovedFromProject += removedHandler;
- }
-
- public override void OnNodeRemoved (object dataObject)
- {
- ValaProject project = ((ProjectPackageCollection)dataObject).Project;
- if (project == null) return;
- project.PackageAddedToProject -= addedHandler;
- project.PackageRemovedFromProject -= removedHandler;
- }
-
- public override Type CommandHandlerType {
- get { return typeof(ProjectPackagesFolderNodeCommandHandler); }
- }
-
- protected override void Initialize ()
- {
- addedHandler = (ProjectPackageEventHandler)DispatchService.GuiDispatch (new ProjectPackageEventHandler (OnAddPackage));
- removedHandler = (ProjectPackageEventHandler)DispatchService.GuiDispatch (new ProjectPackageEventHandler (OnRemovePackage));
- }
-
- public override string GetNodeName (ITreeNavigator thisNode, object dataObject)
- {
- return "Packages";
- }
-
- public override void BuildNode (ITreeBuilder treeBuilder, object dataObject, ref string label, ref Gdk.Pixbuf icon, ref Gdk.Pixbuf closedIcon)
- {
- label = "Packages";
- icon = Context.GetIcon (Stock.OpenReferenceFolder);
- closedIcon = Context.GetIcon (Stock.ClosedReferenceFolder);
- }
-
- public override bool HasChildNodes (ITreeBuilder builder, object dataObject)
- {
- return ((ProjectPackageCollection)dataObject).Count > 0;
- }
-
- public override void BuildChildNodes (ITreeBuilder treeBuilder, object dataObject)
- {
- ProjectPackageCollection packages = (ProjectPackageCollection)dataObject;
-
- foreach (ProjectPackage p in packages)
- treeBuilder.AddChild (p);
- }
-
- public override string ContextMenuAddinPath {
- get { return "/MonoDevelop/ValaBinding/Views/ProjectBrowser/ContextMenu/PackagesFolderNode"; }
- }
-
- public override int CompareObjects (ITreeNavigator thisNode, ITreeNavigator otherNode)
- {
- return -1;
- }
-
- private void OnAddPackage (object sender, ProjectPackageEventArgs e)
- {
- ITreeBuilder builder = Context.GetTreeBuilder (e.Project.Packages);
- if (builder != null)
- builder.UpdateAll ();
- }
-
- private void OnRemovePackage (object sender, ProjectPackageEventArgs e)
- {
- ITreeBuilder builder = Context.GetTreeBuilder (e.Project.Packages);
- if (builder != null)
- builder.UpdateAll ();
- }
- }
-
- public class ProjectPackagesFolderNodeCommandHandler : NodeCommandHandler
- {
- [CommandHandler (MonoDevelop.ValaBinding.ValaProjectCommands.AddPackage)]
- public void AddPackageToProject ()
- {
- ValaProject project = (ValaProject)CurrentNode.GetParentDataItem (
- typeof(ValaProject), false);
-
- EditPackagesDialog dialog = new EditPackagesDialog (project);
- dialog.Run ();
-
- IdeApp.ProjectOperations.Save (project);
- CurrentNode.Expanded = true;
- }
-
- // Currently only accepts packages and projects that compile into a static library
- public override bool CanDropNode (object dataObject, DragOperation operation)
- {
- if (dataObject is ProjectPackage)
- return true;
-
- if (dataObject is ValaProject) {
- ValaProject project = (ValaProject)dataObject;
-
- if (((ProjectPackageCollection)CurrentNode.DataItem).Project.Equals (project))
- return false;
-
- ValaProjectConfiguration config = (ValaProjectConfiguration)project.GetConfiguration (IdeApp.Workspace.ActiveConfiguration);
-
- if (config.CompileTarget != ValaBinding.CompileTarget.Bin)
- return true;
- }
-
- return false;
- }
-
- public override DragOperation CanDragNode ()
- {
- return DragOperation.Copy | DragOperation.Move;
- }
-
- public override void OnNodeDrop (object dataObject, DragOperation operation)
- {
- if (dataObject is ProjectPackage) {
- ProjectPackage package = (ProjectPackage)dataObject;
- ITreeNavigator nav = CurrentNode;
-
- ValaProject dest = nav.GetParentDataItem (typeof(ValaProject), true) as ValaProject;
- nav.MoveToObject (dataObject);
- ValaProject source = nav.GetParentDataItem (typeof(ValaProject), true) as ValaProject;
-
- dest.Packages.Add (package);
- IdeApp.ProjectOperations.Save (dest);
-
- if (operation == DragOperation.Move) {
- source.Packages.Remove (package);
- IdeApp.ProjectOperations.Save (source);
- }
- } else if (dataObject is ValaProject) {
- ValaProject draggedProject = (ValaProject)dataObject;
- ValaProject destProject = (CurrentNode.DataItem as ProjectPackageCollection).Project;
-
- draggedProject.WriteMDPkgPackage (IdeApp.Workspace.ActiveConfiguration);
-
- ProjectPackage package = new ProjectPackage (draggedProject);
-
- if (!destProject.Packages.Contains (package)) {
- destProject.Packages.Add (package);
- IdeApp.ProjectOperations.Save (destProject);
- }
- }
- }
- }
-}
diff --git a/extras/ValaBinding/ProjectPad/ProjectReferencesExtension.cs b/extras/ValaBinding/ProjectPad/ProjectReferencesExtension.cs
deleted file mode 100644
index 1c7545a989..0000000000
--- a/extras/ValaBinding/ProjectPad/ProjectReferencesExtension.cs
+++ /dev/null
@@ -1,57 +0,0 @@
-//
-// ProjectReferencesExtension.cs: Hides the ProjectReferencesNode if this is a Vala project
-//
-// Authors:
-// Marcos David Marin Amador <MarcosMarin@gmail.com>
-//
-// Copyright (C) 2007 Marcos David Marin Amador
-//
-//
-// This source code is licenced under The MIT License:
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-using System;
-
-using Mono.Addins;
-
-using MonoDevelop.Projects;
-using MonoDevelop.Ide.Gui.Pads;
-using MonoDevelop.Ide.Gui.Components;
-
-namespace MonoDevelop.ValaBinding.ProjectPad
-{
- public class ProjectReferencesExtension : NodeBuilderExtension
- {
- public override bool CanBuildNode (Type dataType)
- {
- return typeof(ProjectReferenceCollection).IsAssignableFrom (dataType);
- }
-
- public override void GetNodeAttributes (ITreeNavigator parentNode, object dataObject, ref NodeAttributes attributes)
- {
- Project p = parentNode.DataItem as Project;
-
- if (p is ValaProject)
- attributes |= NodeAttributes.Hidden;
- }
- }
-}
diff --git a/extras/ValaBinding/README b/extras/ValaBinding/README
deleted file mode 100644
index f6e0dba21f..0000000000
--- a/extras/ValaBinding/README
+++ /dev/null
@@ -1,8 +0,0 @@
-ValaBinding is a Vala language binding for MonoDevelop.
-
-Current features:
- * Vala project support for executable projects, libraries, and unit test projects (using GTest).
- * Reference other Vala libraries and projects from within the IDE.
- * Class browser.
- * Basic Makefile integration.
- * Context-sensitive code completion using VTG ( http://code.google.com/p/vtg ).
diff --git a/extras/ValaBinding/ValaBinding.addin.xml b/extras/ValaBinding/ValaBinding.addin.xml
deleted file mode 100644
index 295eb75326..0000000000
--- a/extras/ValaBinding/ValaBinding.addin.xml
+++ /dev/null
@@ -1,156 +0,0 @@
-<Addin id = "ValaBinding"
- namespace = "MonoDevelop"
- name = "Vala Language Binding"
- author = "Levi Bard"
- copyright = "MIT/X11"
- url = "http://www.monodevelop.com"
- description = "Vala Language binding"
- category = "Language bindings"
- version = "4.2.3">
-
- <Dependencies>
- <Addin id = "Core" version = "4.2.3"/>
- <Addin id = "Ide" version = "4.2.3"/>
- <Addin id = "Deployment" version = "4.2.3"/>
- <Addin id = "Deployment.Linux" version = "4.2.3"/>
- <Addin id = "Autotools" version = "4.2.3"/>
- </Dependencies>
-
- <Extension path = "/MonoDevelop/Core/StockIcons">
- <StockIcon stockid = "md-union" resource = "Icons.16x16.Union"/>
- <StockIcon stockid = "md-protected-union" resource = "Icons.16x16.ProtectedUnion"/>
- <StockIcon stockid = "md-private-union" resource = "Icons.16x16.PrivateUnion"/>
- <StockIcon stockid = "md-vala-file" resource = "text-x-vala.16x16.png" />
- </Extension>
-
- <Extension path = "/MonoDevelop/Ide/FileFilters">
- <FileFilter
- id = "Vala"
- insertbefore = "AllFiles"
- _label = "Vala Files"
- extensions = "*.vala,*.vapi" />
- </Extension>
-
- <Extension path = "/MonoDevelop/Ide/FileTemplates">
- <FileTemplate id = "EmptyValaSourceFile" resource = "EmptyValaSourceFile.xft.xml"/>
- </Extension>
-
- <Extension path = "/MonoDevelop/Ide/ProjectTemplates">
- <ProjectTemplate id = "EmptyValaProject" resource = "EmptyValaProject.xpt.xml"/>
- <ProjectTemplate id = "ConsoleValaProject" resource = "ConsoleValaProject.xpt.xml"/>
- <ProjectTemplate id = "SharedLibraryValaProject" resource = "SharedLibraryValaProject.xpt.xml"/>
- <ProjectTemplate id = "ValaTestFixture" resource = "ValaTestFixture.xpt.xml"/>
- </Extension>
-
- <Extension path = "/MonoDevelop/Core/MimeTypes">
- <MimeType id="text/x-vala" icon="md-vala-file">
- <File pattern="*.vala" />
- <File pattern="*.vapi" />
- </MimeType>
- </Extension>
-
- <Extension path = "/MonoDevelop/ProjectModel/ProjectBindings">
- <ProjectBinding id = "ValaProject" class = "MonoDevelop.ValaBinding.ValaProjectBinding"/>
- </Extension>
-
- <Extension path = "/MonoDevelop/ProjectModel/LanguageBindings">
- <LanguageBinding
- id = "Vala"
- supportedextensions = ".vala,.vapi"
- class = "MonoDevelop.ValaBinding.ValaLanguageBinding"/>
- </Extension>
-
- <Extension path = "/MonoDevelop/Ide/GlobalOptionsDialog/Other">
- <Section
- id = "ValaBindingOptions"
- _label = "Vala"
- class = "MonoDevelop.ValaBinding.GeneralOptionsPanelBinding"/>
- </Extension>
-
- <Extension path = "/MonoDevelop/ProjectModel/Gui/ItemOptionPanels/Build">
- <Condition id = "ItemType" value = "MonoDevelop.ValaBinding.ValaProject">
- <Section
- id = "CodeGenerationPanel"
- _label = "Code Generation"
- insertafter = "Compile"
- class = "MonoDevelop.ValaBinding.CodeGenerationPanelBinding"/>
- <Section
- id = "OutputOptionsPanel"
- _label = "Output"
- class = "MonoDevelop.ValaBinding.OutputOptionsPanelBinding"/>
- </Condition>
- </Extension>
-
- <ExtensionPoint path = "/MonoDevelop/ValaBinding/Views/ProjectBrowser/ContextMenu/PackagesFolderNode" name = "Packages folder context menu">
- <Description>Context menu for packages folder in the solution pad.</Description>
- <ExtensionNodeSet id = "MonoDevelop.Components.Commands.ItemSet"/>
- </ExtensionPoint>
-
- <ExtensionPoint path = "/MonoDevelop/ValaBinding/Views/ProjectBrowser/ContextMenu/PackageNode" name = "ProjectPackage context menu">
- <Description>Context menu for a package in the solution pad.</Description>
- <ExtensionNodeSet id = "MonoDevelop.Components.Commands.ItemSet"/>
- </ExtensionPoint>
-
- <Extension path = "/MonoDevelop/Ide/Pads/ProjectPad">
- <NodeBuilder id = "MonoDevelop.ValaBinding.ProjectPad.ProjectReferencesExtension" class = "MonoDevelop.ValaBinding.ProjectPad.ProjectReferencesExtension"/>
- <NodeBuilder id = "MonoDevelop.ValaBinding.ProjectPad.ProjectPackagesFolderNodeBuilder" class = "MonoDevelop.ValaBinding.ProjectPad.ProjectPackagesFolderNodeBuilder"/>
- <NodeBuilder id = "MonoDevelop.ValaBinding.ProjectPad.ProjectPackageNodeBuilder" class = "MonoDevelop.ValaBinding.ProjectPad.ProjectPackageNodeBuilder"/>
- <NodeBuilder id = "MonoDevelop.ValaBinding.ProjectPad.ProjectNodeExtension" class = "MonoDevelop.ValaBinding.ProjectPad.ProjectNodeExtension"/>
- </Extension>
-
- <Extension path = "/MonoDevelop/Ide/Pads/ClassPad">
- <NodeBuilder id = "MonoDevelop.ValaBinding.Navigation.ProjectNodeBuilderExtension" class = "MonoDevelop.ValaBinding.Navigation.ProjectNodeBuilderExtension"/>
- <NodeBuilder id = "MonoDevelop.ValaBinding.Navigation.LanguageItemNodeBuilder" class = "MonoDevelop.ValaBinding.Navigation.LanguageItemNodeBuilder"/>
- </Extension>
-
- <Extension path = "/MonoDevelop/Ide/Commands">
- <Category _name = "Vala" id = "Vala">
- <Command id = "MonoDevelop.ValaBinding.ValaProjectCommands.UpdateClassPad" _label = "Update class pad" icon = "res:update" />
- <Command id = "MonoDevelop.ValaBinding.ValaProjectCommands.AddPackage" _label = "Edit Packages..." />
- <Command id = "MonoDevelop.ValaBinding.ValaProjectCommands.ShowPackageDetails" _label = "Details..." />
- </Category>
- </Extension>
-
- <Extension path = "/MonoDevelop/ValaBinding/Views/ProjectBrowser/ContextMenu/PackagesFolderNode">
- <CommandItem id = "MonoDevelop.ValaBinding.ValaProjectCommands.AddPackage"/>
- <CommandItem id = "MonoDevelop.Ide.Commands.EditCommands.Paste"/>
- </Extension>
-
- <Extension path = "/MonoDevelop/Ide/ContextMenu/ClassPad/Project">
- <CommandItem id = "MonoDevelop.ValaBinding.ValaProjectCommands.UpdateClassPad"/>
- </Extension>
-
- <Extension path = "/MonoDevelop/ValaBinding/Views/ProjectBrowser/ContextMenu/PackageNode">
- <CommandItem id = "MonoDevelop.ValaBinding.ValaProjectCommands.ShowPackageDetails"/>
- <SeparatorItem id = "Separator1" />
- <CommandItem id = "MonoDevelop.Ide.Commands.EditCommands.Copy"/>
- <CommandItem id = "MonoDevelop.Ide.Commands.EditCommands.Delete"/>
- </Extension>
-
- <Extension path = "/MonoDevelop/Ide/TextEditorExtensions">
- <Class fileExtensions = ".vala,.vapi" class = "MonoDevelop.ValaBinding.ValaTextEditorExtension" />
- </Extension>
-
- <Extension path = "/MonoDevelop/ProjectModel/ProjectServiceExtensions">
- <Condition id="ItemType" value="MonoDevelop.ValaBinding.ValaProject">
- <Class id = "ExtraSteps" class = "MonoDevelop.ValaBinding.ValaProjectServiceExtension"/>
- </Condition>
- </Extension>
-
- <Extension path = "/MonoDevelop/ProjectModel/SerializableClasses">
- <DataType class = "MonoDevelop.ValaBinding.ValaCompilationParameters"/>
- <DataType class = "MonoDevelop.ValaBinding.ValaProjectConfiguration"/>
- <DataType class = "MonoDevelop.ValaBinding.ValaProject"/>
- <DataType class = "MonoDevelop.ValaBinding.ValaCompiler"/>
- <DataType class = "MonoDevelop.ValaBinding.ProjectPackage"/>
- </Extension>
-
- <Extension path = "/MonoDevelop/Autotools/MakefileHandlers">
- <Class class = "MonoDevelop.ValaBinding.MakefileHandler"/>
- </Extension>
-
- <Extension path = "/MonoDevelop/ProjectModel/DomParser">
- <Parser fileExtensions=".vala, .vapi" class = "MonoDevelop.ValaBinding.Parser.ValaDocumentParser"
- id = "ValaDocumentParser" />
- </Extension>
-</Addin>
diff --git a/extras/ValaBinding/ValaBinding.csproj b/extras/ValaBinding/ValaBinding.csproj
deleted file mode 100644
index 46a3373882..0000000000
--- a/extras/ValaBinding/ValaBinding.csproj
+++ /dev/null
@@ -1,237 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <ProductVersion>9.0.21022</ProductVersion>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{B94D7749-EA5C-48DD-8849-B3924A860DDC}</ProjectGuid>
- <OutputType>Library</OutputType>
- <AssemblyName>MonoDevelop.ValaBinding</AssemblyName>
- <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
- <ApplicationIcon>.</ApplicationIcon>
- <RootNamespace>MonoDevelop.ValaBinding</RootNamespace>
- <AssemblyOriginatorKeyFile>.</AssemblyOriginatorKeyFile>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- <DebugSymbols>true</DebugSymbols>
- <DebugType>full</DebugType>
- <Optimize>false</Optimize>
- <OutputPath>build</OutputPath>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- <CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
- <ConsolePause>false</ConsolePause>
- <Execution>
- <Execution clr-version="Net_2_0" />
- </Execution>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- <DebugType>none</DebugType>
- <Optimize>true</Optimize>
- <OutputPath>build</OutputPath>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- <CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
- <ConsolePause>false</ConsolePause>
- <Execution>
- <Execution clr-version="Net_2_0" />
- </Execution>
- </PropertyGroup>
- <ItemGroup>
- <Reference Include="System" />
- <Reference Include="System.Xml" />
- <Reference Include="Mono.Posix" />
- <Reference Include="atk-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
- <Reference Include="gdk-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
- <Reference Include="glib-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
- <Reference Include="gtk-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
- <Reference Include="pango-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
- <Reference Include="Mono.Addins, Version=0.3.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756" />
- <Reference Include="MonoDevelop.VersionControl, Version=1.9.2.0, Culture=neutral">
- <Package>monodevelop-core-addins</Package>
- </Reference>
- <Reference Include="MonoDevelop.NUnit, Version=1.9.2.0, Culture=neutral">
- <Package>monodevelop-core-addins</Package>
- </Reference>
- <Reference Include="MonoDevelop.XmlEditor, Version=1.9.2.0, Culture=neutral">
- <Package>monodevelop-core-addins</Package>
- </Reference>
- <Reference Include="MonoDevelop.AspNet, Version=1.9.2.0, Culture=neutral">
- <Package>monodevelop-core-addins</Package>
- </Reference>
- <Reference Include="MonoDevelop.Gettext, Version=1.9.2.0, Culture=neutral">
- <Package>monodevelop-core-addins</Package>
- </Reference>
- <Reference Include="MonoDevelop.Deployment, Version=1.9.2.0, Culture=neutral">
- <Package>monodevelop-core-addins</Package>
- </Reference>
- <Reference Include="MonoDevelop.Deployment.Linux, Version=1.9.2.0, Culture=neutral">
- <Package>monodevelop-core-addins</Package>
- </Reference>
- <Reference Include="MonoDevelop.GtkCore, Version=1.9.2.0, Culture=neutral">
- <Package>monodevelop-core-addins</Package>
- </Reference>
- <Reference Include="MonoDevelop.DesignerSupport, Version=1.9.2.0, Culture=neutral">
- <Package>monodevelop-core-addins</Package>
- </Reference>
- <Reference Include="MonoDevelop.VBNetBinding, Version=1.9.2.0, Culture=neutral">
- <Package>monodevelop-core-addins</Package>
- </Reference>
- <Reference Include="MonoDevelop.CBinding, Version=1.9.2.0, Culture=neutral">
- <Package>monodevelop-core-addins</Package>
- </Reference>
- <Reference Include="MonoDevelop.CSharpBinding, Version=1.9.2.0, Culture=neutral">
- <Package>monodevelop-core-addins</Package>
- </Reference>
- <Reference Include="MonoDevelop.Autotools, Version=1.9.2.0, Culture=neutral">
- <Package>monodevelop-core-addins</Package>
- </Reference>
- <Reference Include="MonoDevelop.Core, Version=1.9.2.0, Culture=neutral">
- <Package>monodevelop</Package>
- </Reference>
- <Reference Include="MonoDevelop.Ide, Version=1.9.2.0, Culture=neutral">
- <Package>monodevelop</Package>
- </Reference>
- <Reference Include="NRefactory, Version=0.0.0.0, Culture=neutral">
- <Package>monodevelop</Package>
- </Reference>
- <Reference Include="Mono.Cecil, Version=0.6.8.8607, Culture=neutral">
- <Package>monodevelop</Package>
- </Reference>
- <Reference Include="Mono.TextEditor, Version=1.0.0.0, Culture=neutral">
- <Package>monodevelop</Package>
- </Reference>
- <Reference Include="MonoDevelop.SourceEditor2, Version=2.1.0.0, Culture=neutral">
- <Package>monodevelop-core-addins</Package>
- </Reference>
- <Reference Include="MonoDevelop.Debugger, Version=2.1.0.0, Culture=neutral">
- <Package>monodevelop-core-addins</Package>
- </Reference>
- <Reference Include="MonoDevelop.Refactoring, Version=2.1.0.0, Culture=neutral">
- <Package>monodevelop-core-addins</Package>
- </Reference>
- <Reference Include="MonoDevelop.Debugger.Soft, Version=2.2.0.0, Culture=neutral">
- <Package>monodevelop-core-addins</Package>
- </Reference>
- <Reference Include="Mono.Debugger.Soft, Version=0.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756">
- <Package>monodevelop-core-addins</Package>
- </Reference>
- <Reference Include="Mono.Debugging.Soft, Version=0.0.0.0, Culture=neutral, PublicKeyToken=5e9ce85b0923c84f">
- <Package>monodevelop-core-addins</Package>
- </Reference>
- <Reference Include="Mono.Debugging, Version=0.0.0.0, Culture=neutral, PublicKeyToken=5e9ce85b0923c84f">
- <Package>monodevelop</Package>
- </Reference>
- </ItemGroup>
- <ItemGroup>
- <None Include="Makefile.am" />
- <None Include="ChangeLog" />
- <None Include="README" />
- </ItemGroup>
- <ItemGroup>
- <EmbeddedResource Include="ValaBinding.addin.xml" />
- <EmbeddedResource Include="templates\EmptyValaProject.xpt.xml">
- <LogicalName>EmptyValaProject.xpt.xml</LogicalName>
- </EmbeddedResource>
- <EmbeddedResource Include="templates\EmptyValaSourceFile.xft.xml">
- <LogicalName>EmptyValaSourceFile.xft.xml</LogicalName>
- </EmbeddedResource>
- <EmbeddedResource Include="gtk-gui\gui.stetic">
- <LogicalName>gui.stetic</LogicalName>
- </EmbeddedResource>
- <EmbeddedResource Include="icons\Icons.16x16.PrivateUnion">
- <LogicalName>Icons.16x16.PrivateUnion</LogicalName>
- </EmbeddedResource>
- <EmbeddedResource Include="icons\Icons.16x16.ProtectedUnion">
- <LogicalName>Icons.16x16.ProtectedUnion</LogicalName>
- </EmbeddedResource>
- <EmbeddedResource Include="icons\Icons.16x16.Union">
- <LogicalName>Icons.16x16.Union</LogicalName>
- </EmbeddedResource>
- <EmbeddedResource Include="icons\Icons.16x16.ProjectReference">
- <LogicalName>Icons.16x16.ProjectReference</LogicalName>
- </EmbeddedResource>
- <EmbeddedResource Include="templates\ConsoleValaProject.xpt.xml">
- <LogicalName>ConsoleValaProject.xpt.xml</LogicalName>
- </EmbeddedResource>
- <EmbeddedResource Include="gtk-gui\objects.xml">
- <LogicalName>objects.xml</LogicalName>
- </EmbeddedResource>
- <EmbeddedResource Include="icons\text-x-vala.16x16.png">
- <LogicalName>text-x-vala.16x16.png</LogicalName>
- </EmbeddedResource>
- <EmbeddedResource Include="icons\text-x-vala.24x24.png">
- <LogicalName>text-x-vala.24x24.png</LogicalName>
- </EmbeddedResource>
- <EmbeddedResource Include="icons\text-x-vala.32x32.png">
- <LogicalName>text-x-vala.32x32.png</LogicalName>
- </EmbeddedResource>
- <EmbeddedResource Include="icons\text-x-vala.48x48.png">
- <LogicalName>text-x-vala.48x48.png</LogicalName>
- </EmbeddedResource>
- <EmbeddedResource Include="icons\vala-icon-32.png">
- <LogicalName>vala-icon-32.png</LogicalName>
- </EmbeddedResource>
- <EmbeddedResource Include="templates\SharedLibraryValaProject.xpt.xml">
- <LogicalName>SharedLibraryValaProject.xpt.xml</LogicalName>
- </EmbeddedResource>
- <EmbeddedResource Include="templates\ValaTestFixture.xpt.xml">
- <LogicalName>ValaTestFixture.xpt.xml</LogicalName>
- </EmbeddedResource>
- <EmbeddedResource Include="templates\Makefile.am.template">
- <LogicalName>Makefile.am.template</LogicalName>
- </EmbeddedResource>
- <EmbeddedResource Include="templates\Makefile.template">
- <LogicalName>Makefile.template</LogicalName>
- </EmbeddedResource>
- </ItemGroup>
- <ItemGroup>
- <Compile Include="Project\ValaCompilationParameters.cs" />
- <Compile Include="Project\ValaProject.cs" />
- <Compile Include="Project\ValaProjectBinding.cs" />
- <Compile Include="Project\ValaProjectConfiguration.cs" />
- <Compile Include="gtk-gui\generated.cs" />
- <Compile Include="Gui\CodeGenerationPanel.cs" />
- <Compile Include="Compiler\ValaCompiler.cs" />
- <Compile Include="Gui\AddLibraryDialog.cs" />
- <Compile Include="Compiler\ICompiler.cs" />
- <Compile Include="Gui\AddPathDialog.cs" />
- <Compile Include="Project\ProjectPackageCollection.cs" />
- <Compile Include="ValaLanguageBinding.cs" />
- <Compile Include="Project\ProjectPackage.cs" />
- <Compile Include="Project\ProjectPackageEventArgs.cs" />
- <Compile Include="Gui\OutputOptionsPanel.cs" />
- <Compile Include="Project\ValaProjectServiceExtension.cs" />
- <Compile Include="Gui\GeneralOptionsPanel.cs" />
- <Compile Include="Parser\ProjectInformation.cs" />
- <Compile Include="Parser\ProjectInformationManager.cs" />
- <Compile Include="Gui\ValaTextEditorExtension.cs" />
- <Compile Include="gtk-gui\MonoDevelop.ValaBinding.AddLibraryDialog.cs" />
- <Compile Include="gtk-gui\MonoDevelop.ValaBinding.CodeGenerationPanel.cs" />
- <Compile Include="gtk-gui\MonoDevelop.ValaBinding.AddPathDialog.cs" />
- <Compile Include="gtk-gui\MonoDevelop.ValaBinding.GeneralOptionsPanel.cs" />
- <Compile Include="gtk-gui\MonoDevelop.ValaBinding.OutputOptionsPanel.cs" />
- <Compile Include="Navigation\ClassPadEventArgs.cs" />
- <Compile Include="Navigation\LanguageItemCommandHandler.cs" />
- <Compile Include="Navigation\LanguageItemEventArgs.cs" />
- <Compile Include="ProjectPad\ProjectReferencesExtension.cs" />
- <Compile Include="Gui\EditPackagesDialog.cs" />
- <Compile Include="Gui\PackageDetails.cs" />
- <Compile Include="gtk-gui\MonoDevelop.ValaBinding.EditPackagesDialog.cs" />
- <Compile Include="gtk-gui\MonoDevelop.ValaBinding.PackageDetails.cs" />
- <Compile Include="ProjectPad\ProjectPackageNodeBuilder.cs" />
- <Compile Include="ProjectPad\ProjectPackagesFolderNodeBuilder.cs" />
- <Compile Include="ProjectPad\ProjectNodeExtension.cs" />
- <Compile Include="AssemblyInfo.cs" />
- <Compile Include="Project\MakefileHandler.cs" />
- <Compile Include="Parser\Afrodite.cs" />
- <Compile Include="Navigation\LanguageItemNodeBuilder.cs" />
- <Compile Include="Navigation\ProjectNodeBuilderExtension.cs" />
- <Compile Include="Parser\ValaDocumentParser.cs" />
- <Compile Include="Gui\ParameterDataProvider.cs" />
- <Compile Include="Gui\CompilationUnitDataProvider.cs" />
- <Compile Include="Gui\DataProvider.cs" />
- </ItemGroup>
- <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
-</Project>
diff --git a/extras/ValaBinding/ValaBinding.sln b/extras/ValaBinding/ValaBinding.sln
deleted file mode 100644
index 2aeb4d8425..0000000000
--- a/extras/ValaBinding/ValaBinding.sln
+++ /dev/null
@@ -1,39 +0,0 @@
-
-Microsoft Visual Studio Solution File, Format Version 11.00
-# Visual Studio 2010
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ValaBinding", "ValaBinding.csproj", "{B94D7749-EA5C-48DD-8849-B3924A860DDC}"
-EndProject
-Global
- GlobalSection(SolutionConfigurationPlatforms) = preSolution
- Debug|Any CPU = Debug|Any CPU
- Release|Any CPU = Release|Any CPU
- EndGlobalSection
- GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {B94D7749-EA5C-48DD-8849-B3924A860DDC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {B94D7749-EA5C-48DD-8849-B3924A860DDC}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {B94D7749-EA5C-48DD-8849-B3924A860DDC}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {B94D7749-EA5C-48DD-8849-B3924A860DDC}.Release|Any CPU.Build.0 = Release|Any CPU
- EndGlobalSection
- GlobalSection(MonoDevelopProperties) = preSolution
- StartupItem = ValaBinding.csproj
- Policies = $0
- $0.DotNetNamingPolicy = $1
- $1.DirectoryNamespaceAssociation = Flat
- $1.ResourceNamePolicy = FileName
- $0.StandardHeader = $2
- $2.Text = @\n${FileName}\n \nAuthor:\n ${AuthorName} <${AuthorEmail}>\n\nCopyright (c) ${Year} ${CopyrightHolder}\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the "Software"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.
- $2.IncludeInNewFiles = True
- $0.TextStylePolicy = $3
- $3.FileWidth = 120
- $3.TabWidth = 4
- $3.inheritsSet = Mono
- $3.inheritsScope = text/plain
- $0.VersionControlPolicy = $4
- $4.inheritsSet = Mono
- $0.ChangeLogPolicy = $5
- $5.UpdateMode = None
- $5.VcsIntegration = None
- $5.inheritsSet = Mono
- name = ValaBinding
- EndGlobalSection
-EndGlobal
diff --git a/extras/ValaBinding/ValaLanguageBinding.cs b/extras/ValaBinding/ValaLanguageBinding.cs
deleted file mode 100644
index 21dfcb113b..0000000000
--- a/extras/ValaBinding/ValaLanguageBinding.cs
+++ /dev/null
@@ -1,75 +0,0 @@
-//
-// ValaLanguageBinding.cs
-//
-// Authors:
-// Levi Bard <taktaktaktaktaktaktaktaktaktak@gmail.com>
-//
-// Copyright (C) 2008 Levi Bard
-// Based on CBinding by Marcos David Marin Amador <MarcosMarin@gmail.com>
-//
-// This source code is licenced under The MIT License:
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-
-using System;
-using System.IO;
-
-using Mono.Addins;
-
-using MonoDevelop.Projects;
-using MonoDevelop.Core;
-using MonoDevelop.Projects.Dom.Parser;
-using MonoDevelop.Projects.CodeGeneration;
-
-namespace MonoDevelop.ValaBinding
-{
- public class ValaLanguageBinding : ILanguageBinding
- {
- public string Language {
- get { return "Vala"; }
- }
-
- public string SingleLineCommentTag { get { return "//"; } }
- public string BlockCommentStartTag { get { return "/*"; } }
- public string BlockCommentEndTag { get { return "*/"; } }
-
- public bool IsSourceCodeFile (string fileName)
- {
- string ext = Path.GetExtension(fileName);
- return (ext.Equals(".vala", StringComparison.OrdinalIgnoreCase) ||
- ext.Equals(".vapi", StringComparison.OrdinalIgnoreCase));
- }
-
- public IParser Parser {
- get { return null; }
- }
-
- public IRefactorer Refactorer {
- get { return null; }
- }
-
- public string GetFileName (string baseName)
- {
- return baseName + ".vala";
- }
- }
-}
diff --git a/extras/ValaBinding/autogen.sh b/extras/ValaBinding/autogen.sh
deleted file mode 100755
index 4ca0ef19a5..0000000000
--- a/extras/ValaBinding/autogen.sh
+++ /dev/null
@@ -1,81 +0,0 @@
-#!/bin/sh
-# Run this to generate all the initial makefiles, etc.
-# Ripped off from GNOME macros version
-
-DIE=0
-
-PKG_NAME=ValaBinding
-WANT_AUTOCONF="2.5"
-srcdir=`dirname $0`
-test -z "$srcdir" && srcdir=.
-
-(autoconf --version) < /dev/null > /dev/null 2>&1 || {
- echo
- echo "**Error**: You must have \`autoconf' installed to compile ValaBinding."
- echo "Download the appropriate package for your distribution, or get the "
- echo "source at ftp://ftp.gnu.org/pub/gnu/autoconf/autoconf-2.61.tar.bz2 "
- echo "(or a newer version if it is available)"
- DIE=1
-}
-
-(automake --version) < /dev/null > /dev/null 2>&1 || {
- echo
- echo "**Error**: You must have \`automake' installed to compile ValaBinding."
- echo "Download the appropriate package for your distribution, or get the "
- echo "source at ftp://ftp.gnu.org/pub/gnu/automake/automake-1.10.1.tar.bz2 "
- echo "(or a newer version if it is available)"
- DIE=1
- NO_AUTOMAKE=yes
-}
-
-# if no automake, don't bother testing for aclocal
-test -n "$NO_AUTOMAKE" || (aclocal --version) < /dev/null > /dev/null 2>&1 || {
- echo
- echo "**Error**: Missing \`aclocal'."
- DIE=1
-}
-
-if test "$DIE" -eq 1; then
- exit 1
-fi
-
-if test -z "$*"; then
- echo "**Warning**: I am going to run \`configure' with no arguments."
- echo "If you wish to pass any to it, please specify them on the"
- echo \`$0\'" command line."
- echo
-fi
-
-case $CC in
-xlc )
- am_opt=--include-deps;;
-esac
-
-echo "Running aclocal $ACLOCAL_FLAGS ..."
-aclocal $ACLOCAL_FLAGS || {
- echo
- echo "**Error**: aclocal failed. This may mean that you have not"
- echo "installed all of the packages you need, or you may need to"
- echo "set ACLOCAL_FLAGS to include \"-I \$prefix/share/aclocal\""
- echo "for the prefix where you installed the packages whose"
- echo "macros were not found"
- exit 1
-}
-
-echo "Running automake --gnu $am_opt ..."
-automake --add-missing --gnu -Wno-portability -Wno-syntax $am_opt ||
- { echo "**Error**: automake failed."; exit 1; }
-
-echo "Running autoconf ..."
-WANT_AUTOCONF="2.5" autoconf || { echo "**Error**: autoconf failed."; exit 1; }
-
-
-conf_flags="--enable-maintainer-mode --enable-compile-warnings"
-
-if test x$NOCONFIGURE = x; then
- echo Running $srcdir/configure $conf_flags "$@" ...
- $srcdir/configure $conf_flags "$@" \
- && echo Now type \`make\' to compile $PKG_NAME || exit 1
-else
- echo Skipping configure process.
-fi
diff --git a/extras/ValaBinding/configure.in b/extras/ValaBinding/configure.in
deleted file mode 100644
index f33b7e0e5d..0000000000
--- a/extras/ValaBinding/configure.in
+++ /dev/null
@@ -1,111 +0,0 @@
-AC_INIT([monodevelop-vala], 4.2.3, [taktaktaktaktaktaktaktaktaktak@gmail.com])
-AC_PREREQ(2.53)
-AM_INIT_AUTOMAKE(1.9 tar-ustar)
-AM_MAINTAINER_MODE
-
-ASSEMBLY_VERSION=4.0.0.0
-
-AC_PATH_PROG(MONO, mono)
-AC_PATH_PROG(MCS, dmcs)
-
-if test "x$MONO" = "x" ; then
- AC_MSG_ERROR([Can't find "mono" in your PATH])
-fi
-
-if test "x$MCS" = "x" ; then
- AC_MSG_ERROR([Can't find "dmcs" in your PATH])
-fi
-AC_SUBST(PATH)
-AC_SUBST(LD_LIBRARY_PATH)
-
-dnl Find pkg-config
-AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
-if test "x$PKG_CONFIG" = "xno"; then
- AC_MSG_ERROR([You need to install pkg-config])
-fi
-
-export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}:../../local-config/"
-
-MONO_REQUIRED_VERSION=2.4
-PKG_CHECK_MODULES(UNMANAGED_DEPENDENCIES_MONO,mono >= $MONO_REQUIRED_VERSION, has_mono=true, has_mono=false)
-
-if test "x$has_mono" = "xfalse"; then
- AC_MSG_ERROR([Please install mono version $MONO_REQUIRED_VERSION or later to install ValaBinding.
-Please see http://www.mono-project.org/ to download latest mono sources or packages])
-fi
-
-if test "x$has_mono" = "xtrue"; then
- if test `uname -s` = "Darwin"; then
- AC_PATH_PROG(RUNTIME, mono, no)
- AC_PATH_PROG(CSC, dmcs, no)
- LIB_PREFIX=
- LIB_SUFFIX=.dylib
- else
- AC_PATH_PROG(RUNTIME, mono, no)
- AC_PATH_PROG(CSC, dmcs, no)
- LIB_PREFIX=.so
- LIB_SUFFIX=
- fi
-fi
-
-
-dnl hard dependencies
-MONOADDINS_REQUIRED_VERSION=0.3
-GTKSHARP_REQUIRED_VERSION=2.12.8
-MONODEVELOP_REQUIRED_VERSION=4.2.3
-LIBVALA_REQUIRED_VERSION=0.12.0
-
-PKG_CHECK_MODULES(MONO_ADDINS, mono-addins >= $MONOADDINS_REQUIRED_VERSION)
-AC_SUBST(MONO_ADDINS_LIBS)
-PKG_CHECK_MODULES(MONO_ADDINS_SETUP, mono-addins-setup >= $MONOADDINS_REQUIRED_VERSION)
-AC_SUBST(MONO_ADDINS_SETUP_LIBS)
-PKG_CHECK_MODULES(MONO_ADDINS_GUI, mono-addins-gui >= $MONOADDINS_REQUIRED_VERSION)
-AC_SUBST(MONO_ADDINS_GUI_LIBS)
-PKG_CHECK_MODULES(GLIB_SHARP, glib-sharp-2.0 >= $GTKSHARP_REQUIRED_VERSION)
-AC_SUBST(GLIB_SHARP_LIBS)
-PKG_CHECK_MODULES(GTK_SHARP, gtk-sharp-2.0 >= $GTKSHARP_REQUIRED_VERSION)
-AC_SUBST(GTK_SHARP_LIBS)
-PKG_CHECK_MODULES(GLADE_SHARP, glade-sharp-2.0 >= $GTKSHARP_REQUIRED_VERSION)
-AC_SUBST(GLADE_SHARP_LIBS)
-PKG_CHECK_MODULES(MONODEVELOP, monodevelop >= $MONODEVELOP_REQUIRED_VERSION)
-AC_SUBST(MONODEVELOP_LIBS)
-PKG_CHECK_MODULES(MONODEVELOP_CORE_ADDINS, monodevelop-core-addins >= $MONODEVELOP_REQUIRED_VERSION)
-AC_SUBST(MONODEVELOP_CORE_ADDINS_LIBS)
-
-dnl soft dependencies
-PKG_CHECK_MODULES(GNOME_SHARP, gnome-sharp-2.0 >= $GTKSHARP_REQUIRED_VERSION, [gnome_sharp=yes], [gnome_sharp=no])
-AC_SUBST(GNOME_SHARP_LIBS)
-AM_CONDITIONAL(HAVE_GNOME_SHARP, test x$gnome_sharp = xyes)
-PKG_CHECK_MODULES(GNOME_VFS_SHARP, gnome-vfs-sharp-2.0 >= $GTKSHARP_REQUIRED_VERSION, [gnome_vfs_sharp=yes], [gnome_vfs_sharp=no])
-AC_SUBST(GNOME_VFS_SHARP_LIBS)
-AM_CONDITIONAL(HAVE_GNOME_VFS_SHARP, test x$gnome_vfs_sharp = xyes)
-PKG_CHECK_MODULES(GCONF_SHARP, gconf-sharp-2.0 >= $GTKSHARP_REQUIRED_VERSION, [gconf_sharp=yes], [gconf_sharp=no])
-AC_SUBST(GCONF_SHARP_LIBS)
-AM_CONDITIONAL(HAVE_GCONF_SHARP, test x$gconf_sharp = xyes)
-PKG_CHECK_MODULES(LIBVALA, libvala-0.12 >= $LIBVALA_REQUIRED_VERSION)
-AC_SUBST(LIBVALA_LIBS)
-
-AC_SEARCH_LIBS(afrodite_utils_get_package_paths, afrodite-0.12, [], [
- echo ""
- echo "libafrodite is required for Vala code completion."
- echo "libafrodite is part of the VTG package, available from: "
- echo "http://code.google.com/p/vtg/"
- echo ""
-])
-
-gtksharp_prefix="`$PKG_CONFIG --variable=prefix gtk-sharp-2.0`"
-AC_SUBST(gtksharp_prefix)
-
-platform_bindings=""
-
-CSC_FLAGS="-debug -codepage:utf8"
-
-AC_SUBST(LIB_SUFFIX)
-AC_SUBST(LIB_PREFIX)
-AC_SUBST(ASSEMBLY_VERSION)
-AC_SUBST(CSC_FLAGS)
-
-AC_OUTPUT([
-Makefile
-monodevelop-vala.spec
-])
diff --git a/extras/ValaBinding/gtk-gui/MonoDevelop.ValaBinding.AddLibraryDialog.cs b/extras/ValaBinding/gtk-gui/MonoDevelop.ValaBinding.AddLibraryDialog.cs
deleted file mode 100644
index 1efe82cf84..0000000000
--- a/extras/ValaBinding/gtk-gui/MonoDevelop.ValaBinding.AddLibraryDialog.cs
+++ /dev/null
@@ -1,72 +0,0 @@
-
-// This file has been generated by the GUI designer. Do not modify.
-namespace MonoDevelop.ValaBinding
-{
- public partial class AddLibraryDialog
- {
- private global::Gtk.FileChooserWidget file_chooser_widget;
-
- private global::Gtk.Button buttonCancel;
-
- private global::Gtk.Button buttonOk;
-
- protected virtual void Build ()
- {
- global::Stetic.Gui.Initialize (this);
- // Widget MonoDevelop.ValaBinding.AddLibraryDialog
- this.Name = "MonoDevelop.ValaBinding.AddLibraryDialog";
- this.Title = global::Mono.Unix.Catalog.GetString ("Add Library");
- this.Modal = true;
- // Internal child MonoDevelop.ValaBinding.AddLibraryDialog.VBox
- global::Gtk.VBox w1 = this.VBox;
- w1.Name = "dialog1_VBox";
- w1.Spacing = 6;
- w1.BorderWidth = ((uint)(2));
- // Container child dialog1_VBox.Gtk.Box+BoxChild
- this.file_chooser_widget = new global::Gtk.FileChooserWidget (((global::Gtk.FileChooserAction)(0)));
- this.file_chooser_widget.Name = "file_chooser_widget";
- w1.Add (this.file_chooser_widget);
- global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(w1[this.file_chooser_widget]));
- w2.Position = 0;
- // Internal child MonoDevelop.ValaBinding.AddLibraryDialog.ActionArea
- global::Gtk.HButtonBox w3 = this.ActionArea;
- w3.Name = "dialog1_ActionArea";
- w3.Spacing = 6;
- w3.BorderWidth = ((uint)(5));
- w3.LayoutStyle = ((global::Gtk.ButtonBoxStyle)(4));
- // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
- this.buttonCancel = new global::Gtk.Button ();
- this.buttonCancel.CanDefault = true;
- this.buttonCancel.CanFocus = true;
- this.buttonCancel.Name = "buttonCancel";
- this.buttonCancel.UseStock = true;
- this.buttonCancel.UseUnderline = true;
- this.buttonCancel.Label = "gtk-cancel";
- this.AddActionWidget (this.buttonCancel, -6);
- global::Gtk.ButtonBox.ButtonBoxChild w4 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w3[this.buttonCancel]));
- w4.Expand = false;
- w4.Fill = false;
- // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
- this.buttonOk = new global::Gtk.Button ();
- this.buttonOk.CanDefault = true;
- this.buttonOk.CanFocus = true;
- this.buttonOk.Name = "buttonOk";
- this.buttonOk.UseStock = true;
- this.buttonOk.UseUnderline = true;
- this.buttonOk.Label = "gtk-ok";
- this.AddActionWidget (this.buttonOk, -5);
- global::Gtk.ButtonBox.ButtonBoxChild w5 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w3[this.buttonOk]));
- w5.Position = 1;
- w5.Expand = false;
- w5.Fill = false;
- if ((this.Child != null)) {
- this.Child.ShowAll ();
- }
- this.DefaultWidth = 648;
- this.DefaultHeight = 439;
- this.Show ();
- this.buttonCancel.Clicked += new global::System.EventHandler (this.OnCancelButtonClick);
- this.buttonOk.Clicked += new global::System.EventHandler (this.OnOkButtonClick);
- }
- }
-}
diff --git a/extras/ValaBinding/gtk-gui/MonoDevelop.ValaBinding.AddPathDialog.cs b/extras/ValaBinding/gtk-gui/MonoDevelop.ValaBinding.AddPathDialog.cs
deleted file mode 100644
index 6155c93ecc..0000000000
--- a/extras/ValaBinding/gtk-gui/MonoDevelop.ValaBinding.AddPathDialog.cs
+++ /dev/null
@@ -1,73 +0,0 @@
-
-// This file has been generated by the GUI designer. Do not modify.
-namespace MonoDevelop.ValaBinding
-{
- public partial class AddPathDialog
- {
- private global::Gtk.FileChooserWidget file_chooser_widget;
-
- private global::Gtk.Button buttonCancel;
-
- private global::Gtk.Button buttonOk;
-
- protected virtual void Build ()
- {
- global::Stetic.Gui.Initialize (this);
- // Widget MonoDevelop.ValaBinding.AddPathDialog
- this.Name = "MonoDevelop.ValaBinding.AddPathDialog";
- this.Title = global::Mono.Unix.Catalog.GetString ("Add Path");
- this.Modal = true;
- // Internal child MonoDevelop.ValaBinding.AddPathDialog.VBox
- global::Gtk.VBox w1 = this.VBox;
- w1.Name = "dialog1_VBox";
- w1.Spacing = 6;
- w1.BorderWidth = ((uint)(2));
- // Container child dialog1_VBox.Gtk.Box+BoxChild
- this.file_chooser_widget = new global::Gtk.FileChooserWidget (((global::Gtk.FileChooserAction)(0)));
- this.file_chooser_widget.Name = "file_chooser_widget";
- this.file_chooser_widget.ShowHidden = true;
- w1.Add (this.file_chooser_widget);
- global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(w1[this.file_chooser_widget]));
- w2.Position = 0;
- // Internal child MonoDevelop.ValaBinding.AddPathDialog.ActionArea
- global::Gtk.HButtonBox w3 = this.ActionArea;
- w3.Name = "dialog1_ActionArea";
- w3.Spacing = 6;
- w3.BorderWidth = ((uint)(5));
- w3.LayoutStyle = ((global::Gtk.ButtonBoxStyle)(4));
- // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
- this.buttonCancel = new global::Gtk.Button ();
- this.buttonCancel.CanDefault = true;
- this.buttonCancel.CanFocus = true;
- this.buttonCancel.Name = "buttonCancel";
- this.buttonCancel.UseStock = true;
- this.buttonCancel.UseUnderline = true;
- this.buttonCancel.Label = "gtk-cancel";
- this.AddActionWidget (this.buttonCancel, -6);
- global::Gtk.ButtonBox.ButtonBoxChild w4 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w3[this.buttonCancel]));
- w4.Expand = false;
- w4.Fill = false;
- // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
- this.buttonOk = new global::Gtk.Button ();
- this.buttonOk.CanDefault = true;
- this.buttonOk.CanFocus = true;
- this.buttonOk.Name = "buttonOk";
- this.buttonOk.UseStock = true;
- this.buttonOk.UseUnderline = true;
- this.buttonOk.Label = "gtk-ok";
- this.AddActionWidget (this.buttonOk, -5);
- global::Gtk.ButtonBox.ButtonBoxChild w5 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w3[this.buttonOk]));
- w5.Position = 1;
- w5.Expand = false;
- w5.Fill = false;
- if ((this.Child != null)) {
- this.Child.ShowAll ();
- }
- this.DefaultWidth = 649;
- this.DefaultHeight = 436;
- this.Show ();
- this.buttonCancel.Clicked += new global::System.EventHandler (this.OnCancelButtonClick);
- this.buttonOk.Clicked += new global::System.EventHandler (this.OnOkButtonClick);
- }
- }
-}
diff --git a/extras/ValaBinding/gtk-gui/MonoDevelop.ValaBinding.CodeGenerationPanel.cs b/extras/ValaBinding/gtk-gui/MonoDevelop.ValaBinding.CodeGenerationPanel.cs
deleted file mode 100644
index d2597cd314..0000000000
--- a/extras/ValaBinding/gtk-gui/MonoDevelop.ValaBinding.CodeGenerationPanel.cs
+++ /dev/null
@@ -1,588 +0,0 @@
-
-// This file has been generated by the GUI designer. Do not modify.
-namespace MonoDevelop.ValaBinding
-{
- public partial class CodeGenerationPanel
- {
- private global::Gtk.Notebook notebook1;
-
- private global::Gtk.VBox vbox6;
-
- private global::Gtk.Table table1;
-
- private global::Gtk.Label label10;
-
- private global::Gtk.Label label4;
-
- private global::Gtk.Label label5;
-
- private global::Gtk.Label label6;
-
- private global::Gtk.SpinButton optimizationSpinButton;
-
- private global::Gtk.ComboBox targetComboBox;
-
- private global::Gtk.CheckButton threadingCheckbox;
-
- private global::Gtk.VBox vbox1;
-
- private global::Gtk.RadioButton noWarningRadio;
-
- private global::Gtk.RadioButton normalWarningRadio;
-
- private global::Gtk.RadioButton allWarningRadio;
-
- private global::Gtk.CheckButton warningsAsErrorsCheckBox;
-
- private global::Gtk.HBox hbox1;
-
- private global::Gtk.Label label12;
-
- private global::Gtk.Entry defineSymbolsTextEntry;
-
- private global::Gtk.Frame frame2;
-
- private global::Gtk.Alignment GtkAlignment;
-
- private global::Gtk.Table table5;
-
- private global::Gtk.Label label7;
-
- private global::Gtk.ScrolledWindow scrolledwindow4;
-
- private global::Gtk.TextView extraCompilerTextView;
-
- private global::Gtk.Label GtkLabel12;
-
- private global::Gtk.Label label1;
-
- private global::Gtk.Table table2;
-
- private global::Gtk.Button addLibButton;
-
- private global::Gtk.Label label8;
-
- private global::Gtk.Entry libAddEntry;
-
- private global::Gtk.ScrolledWindow scrolledwindow1;
-
- private global::Gtk.TreeView libTreeView;
-
- private global::Gtk.VBox vbox4;
-
- private global::Gtk.Button browseButton;
-
- private global::Gtk.Button removeLibButton;
-
- private global::Gtk.Label label2;
-
- private global::Gtk.VBox vbox7;
-
- private global::Gtk.Table table3;
-
- private global::Gtk.Button includePathAddButton;
-
- private global::Gtk.Entry includePathEntry;
-
- private global::Gtk.Label label9;
-
- private global::Gtk.ScrolledWindow scrolledwindow2;
-
- private global::Gtk.TreeView includePathTreeView;
-
- private global::Gtk.VBox vbox5;
-
- private global::Gtk.Button includePathBrowseButton;
-
- private global::Gtk.Button includePathRemoveButton;
-
- private global::Gtk.Label label3;
-
- protected virtual void Build ()
- {
- global::Stetic.Gui.Initialize (this);
- // Widget MonoDevelop.ValaBinding.CodeGenerationPanel
- global::Stetic.BinContainer.Attach (this);
- this.Name = "MonoDevelop.ValaBinding.CodeGenerationPanel";
- // Container child MonoDevelop.ValaBinding.CodeGenerationPanel.Gtk.Container+ContainerChild
- this.notebook1 = new global::Gtk.Notebook ();
- this.notebook1.CanFocus = true;
- this.notebook1.Name = "notebook1";
- this.notebook1.CurrentPage = 0;
- // Container child notebook1.Gtk.Notebook+NotebookChild
- this.vbox6 = new global::Gtk.VBox ();
- this.vbox6.Name = "vbox6";
- this.vbox6.Spacing = 3;
- // Container child vbox6.Gtk.Box+BoxChild
- this.table1 = new global::Gtk.Table (((uint)(4)), ((uint)(2)), false);
- this.table1.Name = "table1";
- this.table1.RowSpacing = ((uint)(5));
- this.table1.ColumnSpacing = ((uint)(5));
- this.table1.BorderWidth = ((uint)(2));
- // Container child table1.Gtk.Table+TableChild
- this.label10 = new global::Gtk.Label ();
- this.label10.Name = "label10";
- this.label10.Xpad = 10;
- this.label10.Xalign = 0f;
- this.label10.LabelProp = global::Mono.Unix.Catalog.GetString ("Warning Level:");
- this.table1.Add (this.label10);
- global::Gtk.Table.TableChild w1 = ((global::Gtk.Table.TableChild)(this.table1[this.label10]));
- w1.XOptions = ((global::Gtk.AttachOptions)(4));
- w1.YOptions = ((global::Gtk.AttachOptions)(4));
- // Container child table1.Gtk.Table+TableChild
- this.label4 = new global::Gtk.Label ();
- this.label4.Name = "label4";
- this.label4.Xpad = 10;
- this.label4.Xalign = 0f;
- this.label4.LabelProp = global::Mono.Unix.Catalog.GetString ("Multithreading:");
- this.table1.Add (this.label4);
- global::Gtk.Table.TableChild w2 = ((global::Gtk.Table.TableChild)(this.table1[this.label4]));
- w2.TopAttach = ((uint)(3));
- w2.BottomAttach = ((uint)(4));
- w2.XOptions = ((global::Gtk.AttachOptions)(4));
- w2.YOptions = ((global::Gtk.AttachOptions)(4));
- // Container child table1.Gtk.Table+TableChild
- this.label5 = new global::Gtk.Label ();
- this.label5.Name = "label5";
- this.label5.Xpad = 10;
- this.label5.Xalign = 0f;
- this.label5.LabelProp = global::Mono.Unix.Catalog.GetString ("Optimization Level:");
- this.table1.Add (this.label5);
- global::Gtk.Table.TableChild w3 = ((global::Gtk.Table.TableChild)(this.table1[this.label5]));
- w3.TopAttach = ((uint)(1));
- w3.BottomAttach = ((uint)(2));
- w3.XOptions = ((global::Gtk.AttachOptions)(4));
- w3.YOptions = ((global::Gtk.AttachOptions)(4));
- // Container child table1.Gtk.Table+TableChild
- this.label6 = new global::Gtk.Label ();
- this.label6.Name = "label6";
- this.label6.Xpad = 10;
- this.label6.Xalign = 0f;
- this.label6.LabelProp = global::Mono.Unix.Catalog.GetString ("Target:");
- this.table1.Add (this.label6);
- global::Gtk.Table.TableChild w4 = ((global::Gtk.Table.TableChild)(this.table1[this.label6]));
- w4.TopAttach = ((uint)(2));
- w4.BottomAttach = ((uint)(3));
- w4.XOptions = ((global::Gtk.AttachOptions)(4));
- w4.YOptions = ((global::Gtk.AttachOptions)(4));
- // Container child table1.Gtk.Table+TableChild
- this.optimizationSpinButton = new global::Gtk.SpinButton (0, 3, 1);
- this.optimizationSpinButton.Sensitive = false;
- this.optimizationSpinButton.CanFocus = true;
- this.optimizationSpinButton.Name = "optimizationSpinButton";
- this.optimizationSpinButton.Adjustment.PageIncrement = 10;
- this.optimizationSpinButton.ClimbRate = 1;
- this.optimizationSpinButton.Numeric = true;
- this.table1.Add (this.optimizationSpinButton);
- global::Gtk.Table.TableChild w5 = ((global::Gtk.Table.TableChild)(this.table1[this.optimizationSpinButton]));
- w5.TopAttach = ((uint)(1));
- w5.BottomAttach = ((uint)(2));
- w5.LeftAttach = ((uint)(1));
- w5.RightAttach = ((uint)(2));
- w5.XOptions = ((global::Gtk.AttachOptions)(4));
- w5.YOptions = ((global::Gtk.AttachOptions)(4));
- // Container child table1.Gtk.Table+TableChild
- this.targetComboBox = global::Gtk.ComboBox.NewText ();
- this.targetComboBox.AppendText (global::Mono.Unix.Catalog.GetString ("Executable"));
- this.targetComboBox.AppendText (global::Mono.Unix.Catalog.GetString ("Static Library"));
- this.targetComboBox.AppendText (global::Mono.Unix.Catalog.GetString ("Shared Object"));
- this.targetComboBox.Name = "targetComboBox";
- this.table1.Add (this.targetComboBox);
- global::Gtk.Table.TableChild w6 = ((global::Gtk.Table.TableChild)(this.table1[this.targetComboBox]));
- w6.TopAttach = ((uint)(2));
- w6.BottomAttach = ((uint)(3));
- w6.LeftAttach = ((uint)(1));
- w6.RightAttach = ((uint)(2));
- w6.XOptions = ((global::Gtk.AttachOptions)(4));
- w6.YOptions = ((global::Gtk.AttachOptions)(4));
- // Container child table1.Gtk.Table+TableChild
- this.threadingCheckbox = new global::Gtk.CheckButton ();
- this.threadingCheckbox.CanFocus = true;
- this.threadingCheckbox.Name = "threadingCheckbox";
- this.threadingCheckbox.Label = global::Mono.Unix.Catalog.GetString ("Enable multithreading");
- this.threadingCheckbox.DrawIndicator = true;
- this.threadingCheckbox.UseUnderline = true;
- this.table1.Add (this.threadingCheckbox);
- global::Gtk.Table.TableChild w7 = ((global::Gtk.Table.TableChild)(this.table1[this.threadingCheckbox]));
- w7.TopAttach = ((uint)(3));
- w7.BottomAttach = ((uint)(4));
- w7.LeftAttach = ((uint)(1));
- w7.RightAttach = ((uint)(2));
- w7.XOptions = ((global::Gtk.AttachOptions)(4));
- w7.YOptions = ((global::Gtk.AttachOptions)(4));
- // Container child table1.Gtk.Table+TableChild
- this.vbox1 = new global::Gtk.VBox ();
- this.vbox1.Name = "vbox1";
- this.vbox1.Spacing = 1;
- // Container child vbox1.Gtk.Box+BoxChild
- this.noWarningRadio = new global::Gtk.RadioButton (global::Mono.Unix.Catalog.GetString ("no warnings"));
- this.noWarningRadio.CanFocus = true;
- this.noWarningRadio.Name = "noWarningRadio";
- this.noWarningRadio.Active = true;
- this.noWarningRadio.DrawIndicator = true;
- this.noWarningRadio.UseUnderline = true;
- this.noWarningRadio.Group = new global::GLib.SList (global::System.IntPtr.Zero);
- this.vbox1.Add (this.noWarningRadio);
- global::Gtk.Box.BoxChild w8 = ((global::Gtk.Box.BoxChild)(this.vbox1[this.noWarningRadio]));
- w8.Position = 0;
- w8.Expand = false;
- w8.Fill = false;
- // Container child vbox1.Gtk.Box+BoxChild
- this.normalWarningRadio = new global::Gtk.RadioButton (global::Mono.Unix.Catalog.GetString ("normal"));
- this.normalWarningRadio.CanFocus = true;
- this.normalWarningRadio.Name = "normalWarningRadio";
- this.normalWarningRadio.DrawIndicator = true;
- this.normalWarningRadio.UseUnderline = true;
- this.normalWarningRadio.Group = this.noWarningRadio.Group;
- this.vbox1.Add (this.normalWarningRadio);
- global::Gtk.Box.BoxChild w9 = ((global::Gtk.Box.BoxChild)(this.vbox1[this.normalWarningRadio]));
- w9.Position = 1;
- w9.Expand = false;
- w9.Fill = false;
- // Container child vbox1.Gtk.Box+BoxChild
- this.allWarningRadio = new global::Gtk.RadioButton (global::Mono.Unix.Catalog.GetString ("all"));
- this.allWarningRadio.CanFocus = true;
- this.allWarningRadio.Name = "allWarningRadio";
- this.allWarningRadio.DrawIndicator = true;
- this.allWarningRadio.UseUnderline = true;
- this.allWarningRadio.Group = this.noWarningRadio.Group;
- this.vbox1.Add (this.allWarningRadio);
- global::Gtk.Box.BoxChild w10 = ((global::Gtk.Box.BoxChild)(this.vbox1[this.allWarningRadio]));
- w10.Position = 2;
- w10.Expand = false;
- w10.Fill = false;
- // Container child vbox1.Gtk.Box+BoxChild
- this.warningsAsErrorsCheckBox = new global::Gtk.CheckButton ();
- this.warningsAsErrorsCheckBox.Sensitive = false;
- this.warningsAsErrorsCheckBox.CanFocus = true;
- this.warningsAsErrorsCheckBox.Name = "warningsAsErrorsCheckBox";
- this.warningsAsErrorsCheckBox.Label = global::Mono.Unix.Catalog.GetString ("Treat warnings as errors");
- this.warningsAsErrorsCheckBox.DrawIndicator = true;
- this.warningsAsErrorsCheckBox.UseUnderline = true;
- this.vbox1.Add (this.warningsAsErrorsCheckBox);
- global::Gtk.Box.BoxChild w11 = ((global::Gtk.Box.BoxChild)(this.vbox1[this.warningsAsErrorsCheckBox]));
- w11.Position = 3;
- w11.Expand = false;
- w11.Fill = false;
- this.table1.Add (this.vbox1);
- global::Gtk.Table.TableChild w12 = ((global::Gtk.Table.TableChild)(this.table1[this.vbox1]));
- w12.LeftAttach = ((uint)(1));
- w12.RightAttach = ((uint)(2));
- w12.XOptions = ((global::Gtk.AttachOptions)(4));
- w12.YOptions = ((global::Gtk.AttachOptions)(4));
- this.vbox6.Add (this.table1);
- global::Gtk.Box.BoxChild w13 = ((global::Gtk.Box.BoxChild)(this.vbox6[this.table1]));
- w13.Position = 0;
- w13.Expand = false;
- w13.Fill = false;
- // Container child vbox6.Gtk.Box+BoxChild
- this.hbox1 = new global::Gtk.HBox ();
- this.hbox1.Name = "hbox1";
- this.hbox1.Spacing = 6;
- // Container child hbox1.Gtk.Box+BoxChild
- this.label12 = new global::Gtk.Label ();
- this.label12.Name = "label12";
- this.label12.Xpad = 13;
- this.label12.Xalign = 0f;
- this.label12.LabelProp = global::Mono.Unix.Catalog.GetString ("Define Symbols:");
- this.hbox1.Add (this.label12);
- global::Gtk.Box.BoxChild w14 = ((global::Gtk.Box.BoxChild)(this.hbox1[this.label12]));
- w14.Position = 0;
- w14.Expand = false;
- w14.Fill = false;
- // Container child hbox1.Gtk.Box+BoxChild
- this.defineSymbolsTextEntry = new global::Gtk.Entry ();
- this.defineSymbolsTextEntry.TooltipMarkup = "A space-separated list of symbols to define.";
- this.defineSymbolsTextEntry.CanFocus = true;
- this.defineSymbolsTextEntry.Name = "defineSymbolsTextEntry";
- this.defineSymbolsTextEntry.IsEditable = true;
- this.defineSymbolsTextEntry.InvisibleChar = '●';
- this.hbox1.Add (this.defineSymbolsTextEntry);
- global::Gtk.Box.BoxChild w15 = ((global::Gtk.Box.BoxChild)(this.hbox1[this.defineSymbolsTextEntry]));
- w15.Position = 1;
- w15.Padding = ((uint)(14));
- this.vbox6.Add (this.hbox1);
- global::Gtk.Box.BoxChild w16 = ((global::Gtk.Box.BoxChild)(this.vbox6[this.hbox1]));
- w16.Position = 1;
- w16.Expand = false;
- w16.Fill = false;
- // Container child vbox6.Gtk.Box+BoxChild
- this.frame2 = new global::Gtk.Frame ();
- this.frame2.Name = "frame2";
- this.frame2.ShadowType = ((global::Gtk.ShadowType)(0));
- this.frame2.LabelYalign = 0f;
- // Container child frame2.Gtk.Container+ContainerChild
- this.GtkAlignment = new global::Gtk.Alignment (0f, 0f, 1f, 1f);
- this.GtkAlignment.Name = "GtkAlignment";
- this.GtkAlignment.LeftPadding = ((uint)(12));
- // Container child GtkAlignment.Gtk.Container+ContainerChild
- this.table5 = new global::Gtk.Table (((uint)(2)), ((uint)(1)), false);
- this.table5.Name = "table5";
- this.table5.RowSpacing = ((uint)(6));
- this.table5.ColumnSpacing = ((uint)(9));
- this.table5.BorderWidth = ((uint)(6));
- // Container child table5.Gtk.Table+TableChild
- this.label7 = new global::Gtk.Label ();
- this.label7.Name = "label7";
- this.label7.Xalign = 0f;
- this.label7.LabelProp = global::Mono.Unix.Catalog.GetString ("Extra Compiler Options");
- this.table5.Add (this.label7);
- global::Gtk.Table.TableChild w17 = ((global::Gtk.Table.TableChild)(this.table5[this.label7]));
- w17.XOptions = ((global::Gtk.AttachOptions)(4));
- w17.YOptions = ((global::Gtk.AttachOptions)(4));
- // Container child table5.Gtk.Table+TableChild
- this.scrolledwindow4 = new global::Gtk.ScrolledWindow ();
- this.scrolledwindow4.CanFocus = true;
- this.scrolledwindow4.Name = "scrolledwindow4";
- this.scrolledwindow4.ShadowType = ((global::Gtk.ShadowType)(1));
- // Container child scrolledwindow4.Gtk.Container+ContainerChild
- this.extraCompilerTextView = new global::Gtk.TextView ();
- this.extraCompilerTextView.TooltipMarkup = "A newline-separated list of extra options to send to the compiler.\nOne option can be in more than one line.\nExample:\n\t`--pkg\n\tcairo`";
- this.extraCompilerTextView.CanFocus = true;
- this.extraCompilerTextView.Name = "extraCompilerTextView";
- this.scrolledwindow4.Add (this.extraCompilerTextView);
- this.table5.Add (this.scrolledwindow4);
- global::Gtk.Table.TableChild w19 = ((global::Gtk.Table.TableChild)(this.table5[this.scrolledwindow4]));
- w19.TopAttach = ((uint)(1));
- w19.BottomAttach = ((uint)(2));
- this.GtkAlignment.Add (this.table5);
- this.frame2.Add (this.GtkAlignment);
- this.GtkLabel12 = new global::Gtk.Label ();
- this.GtkLabel12.Name = "GtkLabel12";
- this.GtkLabel12.LabelProp = global::Mono.Unix.Catalog.GetString ("<b>Extra Options</b>");
- this.GtkLabel12.UseMarkup = true;
- this.frame2.LabelWidget = this.GtkLabel12;
- this.vbox6.Add (this.frame2);
- global::Gtk.Box.BoxChild w22 = ((global::Gtk.Box.BoxChild)(this.vbox6[this.frame2]));
- w22.Position = 2;
- this.notebook1.Add (this.vbox6);
- // Notebook tab
- this.label1 = new global::Gtk.Label ();
- this.label1.Name = "label1";
- this.label1.LabelProp = global::Mono.Unix.Catalog.GetString ("Code Generation");
- this.notebook1.SetTabLabel (this.vbox6, this.label1);
- this.label1.ShowAll ();
- // Container child notebook1.Gtk.Notebook+NotebookChild
- this.table2 = new global::Gtk.Table (((uint)(2)), ((uint)(3)), false);
- this.table2.Name = "table2";
- this.table2.RowSpacing = ((uint)(10));
- this.table2.ColumnSpacing = ((uint)(10));
- this.table2.BorderWidth = ((uint)(3));
- // Container child table2.Gtk.Table+TableChild
- this.addLibButton = new global::Gtk.Button ();
- this.addLibButton.Sensitive = false;
- this.addLibButton.CanFocus = true;
- this.addLibButton.Name = "addLibButton";
- this.addLibButton.UseUnderline = true;
- this.addLibButton.Label = global::Mono.Unix.Catalog.GetString ("Add");
- this.table2.Add (this.addLibButton);
- global::Gtk.Table.TableChild w24 = ((global::Gtk.Table.TableChild)(this.table2[this.addLibButton]));
- w24.LeftAttach = ((uint)(2));
- w24.RightAttach = ((uint)(3));
- w24.XOptions = ((global::Gtk.AttachOptions)(4));
- w24.YOptions = ((global::Gtk.AttachOptions)(4));
- // Container child table2.Gtk.Table+TableChild
- this.label8 = new global::Gtk.Label ();
- this.label8.Name = "label8";
- this.label8.LabelProp = global::Mono.Unix.Catalog.GetString ("Library:");
- this.table2.Add (this.label8);
- global::Gtk.Table.TableChild w25 = ((global::Gtk.Table.TableChild)(this.table2[this.label8]));
- w25.XOptions = ((global::Gtk.AttachOptions)(4));
- w25.YOptions = ((global::Gtk.AttachOptions)(4));
- // Container child table2.Gtk.Table+TableChild
- this.libAddEntry = new global::Gtk.Entry ();
- this.libAddEntry.CanFocus = true;
- this.libAddEntry.Name = "libAddEntry";
- this.libAddEntry.IsEditable = true;
- this.libAddEntry.InvisibleChar = '●';
- this.table2.Add (this.libAddEntry);
- global::Gtk.Table.TableChild w26 = ((global::Gtk.Table.TableChild)(this.table2[this.libAddEntry]));
- w26.LeftAttach = ((uint)(1));
- w26.RightAttach = ((uint)(2));
- w26.YOptions = ((global::Gtk.AttachOptions)(4));
- // Container child table2.Gtk.Table+TableChild
- this.scrolledwindow1 = new global::Gtk.ScrolledWindow ();
- this.scrolledwindow1.CanFocus = true;
- this.scrolledwindow1.Name = "scrolledwindow1";
- this.scrolledwindow1.ShadowType = ((global::Gtk.ShadowType)(1));
- // Container child scrolledwindow1.Gtk.Container+ContainerChild
- this.libTreeView = new global::Gtk.TreeView ();
- this.libTreeView.CanFocus = true;
- this.libTreeView.Name = "libTreeView";
- this.scrolledwindow1.Add (this.libTreeView);
- this.table2.Add (this.scrolledwindow1);
- global::Gtk.Table.TableChild w28 = ((global::Gtk.Table.TableChild)(this.table2[this.scrolledwindow1]));
- w28.TopAttach = ((uint)(1));
- w28.BottomAttach = ((uint)(2));
- w28.LeftAttach = ((uint)(1));
- w28.RightAttach = ((uint)(2));
- // Container child table2.Gtk.Table+TableChild
- this.vbox4 = new global::Gtk.VBox ();
- this.vbox4.Name = "vbox4";
- this.vbox4.Spacing = 6;
- // Container child vbox4.Gtk.Box+BoxChild
- this.browseButton = new global::Gtk.Button ();
- this.browseButton.CanFocus = true;
- this.browseButton.Name = "browseButton";
- this.browseButton.UseUnderline = true;
- this.browseButton.Label = global::Mono.Unix.Catalog.GetString ("Browse...");
- this.vbox4.Add (this.browseButton);
- global::Gtk.Box.BoxChild w29 = ((global::Gtk.Box.BoxChild)(this.vbox4[this.browseButton]));
- w29.Position = 0;
- w29.Expand = false;
- w29.Fill = false;
- // Container child vbox4.Gtk.Box+BoxChild
- this.removeLibButton = new global::Gtk.Button ();
- this.removeLibButton.Sensitive = false;
- this.removeLibButton.CanFocus = true;
- this.removeLibButton.Name = "removeLibButton";
- this.removeLibButton.UseUnderline = true;
- this.removeLibButton.Label = global::Mono.Unix.Catalog.GetString ("Remove");
- this.vbox4.Add (this.removeLibButton);
- global::Gtk.Box.BoxChild w30 = ((global::Gtk.Box.BoxChild)(this.vbox4[this.removeLibButton]));
- w30.Position = 1;
- w30.Expand = false;
- w30.Fill = false;
- this.table2.Add (this.vbox4);
- global::Gtk.Table.TableChild w31 = ((global::Gtk.Table.TableChild)(this.table2[this.vbox4]));
- w31.TopAttach = ((uint)(1));
- w31.BottomAttach = ((uint)(2));
- w31.LeftAttach = ((uint)(2));
- w31.RightAttach = ((uint)(3));
- w31.XOptions = ((global::Gtk.AttachOptions)(4));
- this.notebook1.Add (this.table2);
- global::Gtk.Notebook.NotebookChild w32 = ((global::Gtk.Notebook.NotebookChild)(this.notebook1[this.table2]));
- w32.Position = 1;
- // Notebook tab
- this.label2 = new global::Gtk.Label ();
- this.label2.Name = "label2";
- this.label2.LabelProp = global::Mono.Unix.Catalog.GetString ("Libraries");
- this.notebook1.SetTabLabel (this.table2, this.label2);
- this.label2.ShowAll ();
- // Container child notebook1.Gtk.Notebook+NotebookChild
- this.vbox7 = new global::Gtk.VBox ();
- this.vbox7.Name = "vbox7";
- this.vbox7.Spacing = 6;
- this.vbox7.BorderWidth = ((uint)(3));
- // Container child vbox7.Gtk.Box+BoxChild
- this.table3 = new global::Gtk.Table (((uint)(2)), ((uint)(3)), false);
- this.table3.Name = "table3";
- this.table3.RowSpacing = ((uint)(10));
- this.table3.ColumnSpacing = ((uint)(10));
- // Container child table3.Gtk.Table+TableChild
- this.includePathAddButton = new global::Gtk.Button ();
- this.includePathAddButton.Sensitive = false;
- this.includePathAddButton.CanFocus = true;
- this.includePathAddButton.Name = "includePathAddButton";
- this.includePathAddButton.UseUnderline = true;
- this.includePathAddButton.Label = global::Mono.Unix.Catalog.GetString ("Add");
- this.table3.Add (this.includePathAddButton);
- global::Gtk.Table.TableChild w33 = ((global::Gtk.Table.TableChild)(this.table3[this.includePathAddButton]));
- w33.LeftAttach = ((uint)(2));
- w33.RightAttach = ((uint)(3));
- w33.XOptions = ((global::Gtk.AttachOptions)(4));
- w33.YOptions = ((global::Gtk.AttachOptions)(4));
- // Container child table3.Gtk.Table+TableChild
- this.includePathEntry = new global::Gtk.Entry ();
- this.includePathEntry.CanFocus = true;
- this.includePathEntry.Name = "includePathEntry";
- this.includePathEntry.IsEditable = true;
- this.includePathEntry.InvisibleChar = '●';
- this.table3.Add (this.includePathEntry);
- global::Gtk.Table.TableChild w34 = ((global::Gtk.Table.TableChild)(this.table3[this.includePathEntry]));
- w34.LeftAttach = ((uint)(1));
- w34.RightAttach = ((uint)(2));
- w34.YOptions = ((global::Gtk.AttachOptions)(4));
- // Container child table3.Gtk.Table+TableChild
- this.label9 = new global::Gtk.Label ();
- this.label9.Name = "label9";
- this.label9.LabelProp = global::Mono.Unix.Catalog.GetString ("Vapi Paths:");
- this.table3.Add (this.label9);
- global::Gtk.Table.TableChild w35 = ((global::Gtk.Table.TableChild)(this.table3[this.label9]));
- w35.XOptions = ((global::Gtk.AttachOptions)(4));
- w35.YOptions = ((global::Gtk.AttachOptions)(4));
- // Container child table3.Gtk.Table+TableChild
- this.scrolledwindow2 = new global::Gtk.ScrolledWindow ();
- this.scrolledwindow2.CanFocus = true;
- this.scrolledwindow2.Name = "scrolledwindow2";
- this.scrolledwindow2.ShadowType = ((global::Gtk.ShadowType)(1));
- // Container child scrolledwindow2.Gtk.Container+ContainerChild
- this.includePathTreeView = new global::Gtk.TreeView ();
- this.includePathTreeView.CanFocus = true;
- this.includePathTreeView.Name = "includePathTreeView";
- this.scrolledwindow2.Add (this.includePathTreeView);
- this.table3.Add (this.scrolledwindow2);
- global::Gtk.Table.TableChild w37 = ((global::Gtk.Table.TableChild)(this.table3[this.scrolledwindow2]));
- w37.TopAttach = ((uint)(1));
- w37.BottomAttach = ((uint)(2));
- w37.LeftAttach = ((uint)(1));
- w37.RightAttach = ((uint)(2));
- // Container child table3.Gtk.Table+TableChild
- this.vbox5 = new global::Gtk.VBox ();
- this.vbox5.Name = "vbox5";
- this.vbox5.Spacing = 6;
- // Container child vbox5.Gtk.Box+BoxChild
- this.includePathBrowseButton = new global::Gtk.Button ();
- this.includePathBrowseButton.CanFocus = true;
- this.includePathBrowseButton.Name = "includePathBrowseButton";
- this.includePathBrowseButton.UseUnderline = true;
- this.includePathBrowseButton.Label = global::Mono.Unix.Catalog.GetString ("Browse...");
- this.vbox5.Add (this.includePathBrowseButton);
- global::Gtk.Box.BoxChild w38 = ((global::Gtk.Box.BoxChild)(this.vbox5[this.includePathBrowseButton]));
- w38.Position = 0;
- w38.Expand = false;
- w38.Fill = false;
- // Container child vbox5.Gtk.Box+BoxChild
- this.includePathRemoveButton = new global::Gtk.Button ();
- this.includePathRemoveButton.Sensitive = false;
- this.includePathRemoveButton.CanFocus = true;
- this.includePathRemoveButton.Name = "includePathRemoveButton";
- this.includePathRemoveButton.UseUnderline = true;
- this.includePathRemoveButton.Label = global::Mono.Unix.Catalog.GetString ("Remove");
- this.vbox5.Add (this.includePathRemoveButton);
- global::Gtk.Box.BoxChild w39 = ((global::Gtk.Box.BoxChild)(this.vbox5[this.includePathRemoveButton]));
- w39.Position = 1;
- w39.Expand = false;
- w39.Fill = false;
- this.table3.Add (this.vbox5);
- global::Gtk.Table.TableChild w40 = ((global::Gtk.Table.TableChild)(this.table3[this.vbox5]));
- w40.TopAttach = ((uint)(1));
- w40.BottomAttach = ((uint)(2));
- w40.LeftAttach = ((uint)(2));
- w40.RightAttach = ((uint)(3));
- w40.XOptions = ((global::Gtk.AttachOptions)(4));
- this.vbox7.Add (this.table3);
- global::Gtk.Box.BoxChild w41 = ((global::Gtk.Box.BoxChild)(this.vbox7[this.table3]));
- w41.Position = 0;
- this.notebook1.Add (this.vbox7);
- global::Gtk.Notebook.NotebookChild w42 = ((global::Gtk.Notebook.NotebookChild)(this.notebook1[this.vbox7]));
- w42.Position = 2;
- // Notebook tab
- this.label3 = new global::Gtk.Label ();
- this.label3.Name = "label3";
- this.label3.LabelProp = global::Mono.Unix.Catalog.GetString ("Paths");
- this.notebook1.SetTabLabel (this.vbox7, this.label3);
- this.label3.ShowAll ();
- this.Add (this.notebook1);
- if ((this.Child != null)) {
- this.Child.ShowAll ();
- }
- this.Show ();
- this.targetComboBox.Changed += new global::System.EventHandler (this.OnTargetComboBoxChanged);
- this.browseButton.Clicked += new global::System.EventHandler (this.OnBrowseButtonClick);
- this.removeLibButton.Clicked += new global::System.EventHandler (this.OnRemoveLibButtonClicked);
- this.removeLibButton.Clicked += new global::System.EventHandler (this.OnLibRemoved);
- this.libTreeView.CursorChanged += new global::System.EventHandler (this.OnLibTreeViewCursorChanged);
- this.libAddEntry.Changed += new global::System.EventHandler (this.OnLibAddEntryChanged);
- this.libAddEntry.Activated += new global::System.EventHandler (this.OnLibAddEntryActivated);
- this.addLibButton.Clicked += new global::System.EventHandler (this.OnLibAdded);
- this.includePathBrowseButton.Clicked += new global::System.EventHandler (this.OnIncludePathBrowseButtonClick);
- this.includePathRemoveButton.Clicked += new global::System.EventHandler (this.OnIncludePathRemoveButtonClicked);
- this.includePathRemoveButton.Clicked += new global::System.EventHandler (this.OnIncludePathRemoved);
- this.includePathTreeView.CursorChanged += new global::System.EventHandler (this.OnIncludePathTreeViewCursorChanged);
- this.includePathEntry.Changed += new global::System.EventHandler (this.OnIncludePathEntryChanged);
- this.includePathEntry.Activated += new global::System.EventHandler (this.OnIncludePathEntryActivated);
- this.includePathAddButton.Clicked += new global::System.EventHandler (this.OnIncludePathAdded);
- }
- }
-}
diff --git a/extras/ValaBinding/gtk-gui/MonoDevelop.ValaBinding.EditPackagesDialog.cs b/extras/ValaBinding/gtk-gui/MonoDevelop.ValaBinding.EditPackagesDialog.cs
deleted file mode 100644
index 2487884894..0000000000
--- a/extras/ValaBinding/gtk-gui/MonoDevelop.ValaBinding.EditPackagesDialog.cs
+++ /dev/null
@@ -1,268 +0,0 @@
-
-// This file has been generated by the GUI designer. Do not modify.
-namespace MonoDevelop.ValaBinding
-{
- public partial class EditPackagesDialog
- {
- private global::Gtk.VPaned vpaned1;
-
- private global::Gtk.HBox hbox1;
-
- private global::Gtk.Notebook notebook1;
-
- private global::Gtk.ScrolledWindow scrolledwindow1;
-
- private global::Gtk.TreeView normalPackageTreeView;
-
- private global::Gtk.Label label1;
-
- private global::Gtk.ScrolledWindow scrolledwindow3;
-
- private global::Gtk.TreeView projectPackageTreeView;
-
- private global::Gtk.Label label2;
-
- private global::Gtk.VBox vbox3;
-
- private global::Gtk.Fixed fixed1;
-
- private global::Gtk.Button detailsButton;
-
- private global::Gtk.Table table1;
-
- private global::Gtk.Label label3;
-
- private global::Gtk.ScrolledWindow scrolledwindow2;
-
- private global::Gtk.TreeView selectedPackageTreeView;
-
- private global::Gtk.VBox vbox2;
-
- private global::Gtk.Button removeButton;
-
- private global::Gtk.Button buttonCancel;
-
- private global::Gtk.Button buttonOk;
-
- protected virtual void Build ()
- {
- global::Stetic.Gui.Initialize (this);
- // Widget MonoDevelop.ValaBinding.EditPackagesDialog
- this.Name = "MonoDevelop.ValaBinding.EditPackagesDialog";
- this.Title = global::Mono.Unix.Catalog.GetString ("Edit packages");
- this.Modal = true;
- // Internal child MonoDevelop.ValaBinding.EditPackagesDialog.VBox
- global::Gtk.VBox w1 = this.VBox;
- w1.Name = "dialog1_VBox";
- w1.BorderWidth = ((uint)(2));
- // Container child dialog1_VBox.Gtk.Box+BoxChild
- this.vpaned1 = new global::Gtk.VPaned ();
- this.vpaned1.CanFocus = true;
- this.vpaned1.Name = "vpaned1";
- this.vpaned1.Position = 183;
- this.vpaned1.BorderWidth = ((uint)(6));
- // Container child vpaned1.Gtk.Paned+PanedChild
- this.hbox1 = new global::Gtk.HBox ();
- this.hbox1.Name = "hbox1";
- this.hbox1.Spacing = 6;
- // Container child hbox1.Gtk.Box+BoxChild
- this.notebook1 = new global::Gtk.Notebook ();
- this.notebook1.CanFocus = true;
- this.notebook1.Name = "notebook1";
- this.notebook1.CurrentPage = 0;
- // Container child notebook1.Gtk.Notebook+NotebookChild
- this.scrolledwindow1 = new global::Gtk.ScrolledWindow ();
- this.scrolledwindow1.CanFocus = true;
- this.scrolledwindow1.Name = "scrolledwindow1";
- this.scrolledwindow1.ShadowType = ((global::Gtk.ShadowType)(1));
- // Container child scrolledwindow1.Gtk.Container+ContainerChild
- this.normalPackageTreeView = new global::Gtk.TreeView ();
- this.normalPackageTreeView.CanFocus = true;
- this.normalPackageTreeView.Name = "normalPackageTreeView";
- this.scrolledwindow1.Add (this.normalPackageTreeView);
- this.notebook1.Add (this.scrolledwindow1);
- // Notebook tab
- this.label1 = new global::Gtk.Label ();
- this.label1.Name = "label1";
- this.label1.LabelProp = global::Mono.Unix.Catalog.GetString ("System Packages");
- this.notebook1.SetTabLabel (this.scrolledwindow1, this.label1);
- this.label1.ShowAll ();
- // Container child notebook1.Gtk.Notebook+NotebookChild
- this.scrolledwindow3 = new global::Gtk.ScrolledWindow ();
- this.scrolledwindow3.CanFocus = true;
- this.scrolledwindow3.Name = "scrolledwindow3";
- this.scrolledwindow3.ShadowType = ((global::Gtk.ShadowType)(1));
- // Container child scrolledwindow3.Gtk.Container+ContainerChild
- this.projectPackageTreeView = new global::Gtk.TreeView ();
- this.projectPackageTreeView.CanFocus = true;
- this.projectPackageTreeView.Name = "projectPackageTreeView";
- this.scrolledwindow3.Add (this.projectPackageTreeView);
- this.notebook1.Add (this.scrolledwindow3);
- global::Gtk.Notebook.NotebookChild w5 = ((global::Gtk.Notebook.NotebookChild)(this.notebook1[this.scrolledwindow3]));
- w5.Position = 1;
- // Notebook tab
- this.label2 = new global::Gtk.Label ();
- this.label2.Name = "label2";
- this.label2.LabelProp = global::Mono.Unix.Catalog.GetString ("Project Packages");
- this.notebook1.SetTabLabel (this.scrolledwindow3, this.label2);
- this.label2.ShowAll ();
- this.hbox1.Add (this.notebook1);
- global::Gtk.Box.BoxChild w6 = ((global::Gtk.Box.BoxChild)(this.hbox1[this.notebook1]));
- w6.Position = 0;
- // Container child hbox1.Gtk.Box+BoxChild
- this.vbox3 = new global::Gtk.VBox ();
- this.vbox3.Name = "vbox3";
- this.vbox3.Spacing = 6;
- // Container child vbox3.Gtk.Box+BoxChild
- this.fixed1 = new global::Gtk.Fixed ();
- this.fixed1.HeightRequest = 21;
- this.fixed1.Name = "fixed1";
- this.fixed1.HasWindow = false;
- this.vbox3.Add (this.fixed1);
- global::Gtk.Box.BoxChild w7 = ((global::Gtk.Box.BoxChild)(this.vbox3[this.fixed1]));
- w7.Position = 0;
- w7.Expand = false;
- w7.Fill = false;
- // Container child vbox3.Gtk.Box+BoxChild
- this.detailsButton = new global::Gtk.Button ();
- this.detailsButton.WidthRequest = 33;
- this.detailsButton.HeightRequest = 33;
- this.detailsButton.Sensitive = false;
- this.detailsButton.CanFocus = true;
- this.detailsButton.Name = "detailsButton";
- this.detailsButton.UseUnderline = true;
- this.detailsButton.Label = global::Mono.Unix.Catalog.GetString ("...");
- this.vbox3.Add (this.detailsButton);
- global::Gtk.Box.BoxChild w8 = ((global::Gtk.Box.BoxChild)(this.vbox3[this.detailsButton]));
- w8.Position = 1;
- w8.Expand = false;
- w8.Fill = false;
- this.hbox1.Add (this.vbox3);
- global::Gtk.Box.BoxChild w9 = ((global::Gtk.Box.BoxChild)(this.hbox1[this.vbox3]));
- w9.Position = 1;
- w9.Expand = false;
- w9.Fill = false;
- this.vpaned1.Add (this.hbox1);
- global::Gtk.Paned.PanedChild w10 = ((global::Gtk.Paned.PanedChild)(this.vpaned1[this.hbox1]));
- w10.Resize = false;
- // Container child vpaned1.Gtk.Paned+PanedChild
- this.table1 = new global::Gtk.Table (((uint)(2)), ((uint)(2)), false);
- this.table1.Name = "table1";
- this.table1.RowSpacing = ((uint)(6));
- this.table1.ColumnSpacing = ((uint)(6));
- // Container child table1.Gtk.Table+TableChild
- this.label3 = new global::Gtk.Label ();
- this.label3.Name = "label3";
- this.label3.Xalign = 0f;
- this.label3.Yalign = 0f;
- this.label3.LabelProp = global::Mono.Unix.Catalog.GetString ("Selected packages:");
- this.table1.Add (this.label3);
- global::Gtk.Table.TableChild w11 = ((global::Gtk.Table.TableChild)(this.table1[this.label3]));
- w11.YOptions = ((global::Gtk.AttachOptions)(4));
- // Container child table1.Gtk.Table+TableChild
- this.scrolledwindow2 = new global::Gtk.ScrolledWindow ();
- this.scrolledwindow2.CanFocus = true;
- this.scrolledwindow2.Name = "scrolledwindow2";
- this.scrolledwindow2.ShadowType = ((global::Gtk.ShadowType)(1));
- // Container child scrolledwindow2.Gtk.Container+ContainerChild
- this.selectedPackageTreeView = new global::Gtk.TreeView ();
- this.selectedPackageTreeView.CanFocus = true;
- this.selectedPackageTreeView.Name = "selectedPackageTreeView";
- this.scrolledwindow2.Add (this.selectedPackageTreeView);
- this.table1.Add (this.scrolledwindow2);
- global::Gtk.Table.TableChild w13 = ((global::Gtk.Table.TableChild)(this.table1[this.scrolledwindow2]));
- w13.TopAttach = ((uint)(1));
- w13.BottomAttach = ((uint)(2));
- w13.XOptions = ((global::Gtk.AttachOptions)(4));
- // Container child table1.Gtk.Table+TableChild
- this.vbox2 = new global::Gtk.VBox ();
- this.vbox2.Name = "vbox2";
- this.vbox2.Spacing = 6;
- // Container child vbox2.Gtk.Box+BoxChild
- this.removeButton = new global::Gtk.Button ();
- this.removeButton.TooltipMarkup = "Remove selected package from the project.";
- this.removeButton.WidthRequest = 33;
- this.removeButton.HeightRequest = 33;
- this.removeButton.Sensitive = false;
- this.removeButton.CanFocus = true;
- this.removeButton.Name = "removeButton";
- this.removeButton.UseUnderline = true;
- // Container child removeButton.Gtk.Container+ContainerChild
- global::Gtk.Alignment w14 = new global::Gtk.Alignment (0.5f, 0.5f, 0f, 0f);
- // Container child GtkAlignment.Gtk.Container+ContainerChild
- global::Gtk.HBox w15 = new global::Gtk.HBox ();
- w15.Spacing = 2;
- // Container child GtkHBox.Gtk.Container+ContainerChild
- global::Gtk.Image w16 = new global::Gtk.Image ();
- w16.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-remove", global::Gtk.IconSize.Menu);
- w15.Add (w16);
- // Container child GtkHBox.Gtk.Container+ContainerChild
- global::Gtk.Label w18 = new global::Gtk.Label ();
- w15.Add (w18);
- w14.Add (w15);
- this.removeButton.Add (w14);
- this.vbox2.Add (this.removeButton);
- global::Gtk.Box.BoxChild w22 = ((global::Gtk.Box.BoxChild)(this.vbox2[this.removeButton]));
- w22.Position = 0;
- w22.Expand = false;
- w22.Fill = false;
- this.table1.Add (this.vbox2);
- global::Gtk.Table.TableChild w23 = ((global::Gtk.Table.TableChild)(this.table1[this.vbox2]));
- w23.TopAttach = ((uint)(1));
- w23.BottomAttach = ((uint)(2));
- w23.LeftAttach = ((uint)(1));
- w23.RightAttach = ((uint)(2));
- w23.XOptions = ((global::Gtk.AttachOptions)(4));
- this.vpaned1.Add (this.table1);
- w1.Add (this.vpaned1);
- global::Gtk.Box.BoxChild w25 = ((global::Gtk.Box.BoxChild)(w1[this.vpaned1]));
- w25.Position = 0;
- w25.Padding = ((uint)(3));
- // Internal child MonoDevelop.ValaBinding.EditPackagesDialog.ActionArea
- global::Gtk.HButtonBox w26 = this.ActionArea;
- w26.Name = "dialog1_ActionArea";
- w26.Spacing = 6;
- w26.BorderWidth = ((uint)(5));
- w26.LayoutStyle = ((global::Gtk.ButtonBoxStyle)(4));
- // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
- this.buttonCancel = new global::Gtk.Button ();
- this.buttonCancel.CanDefault = true;
- this.buttonCancel.CanFocus = true;
- this.buttonCancel.Name = "buttonCancel";
- this.buttonCancel.UseStock = true;
- this.buttonCancel.UseUnderline = true;
- this.buttonCancel.Label = "gtk-cancel";
- this.AddActionWidget (this.buttonCancel, -6);
- global::Gtk.ButtonBox.ButtonBoxChild w27 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w26[this.buttonCancel]));
- w27.Expand = false;
- w27.Fill = false;
- // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
- this.buttonOk = new global::Gtk.Button ();
- this.buttonOk.CanDefault = true;
- this.buttonOk.CanFocus = true;
- this.buttonOk.Name = "buttonOk";
- this.buttonOk.UseStock = true;
- this.buttonOk.UseUnderline = true;
- this.buttonOk.Label = "gtk-ok";
- this.AddActionWidget (this.buttonOk, -5);
- global::Gtk.ButtonBox.ButtonBoxChild w28 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w26[this.buttonOk]));
- w28.Position = 1;
- w28.Expand = false;
- w28.Fill = false;
- if ((this.Child != null)) {
- this.Child.ShowAll ();
- }
- this.DefaultWidth = 580;
- this.DefaultHeight = 449;
- this.Show ();
- this.normalPackageTreeView.CursorChanged += new global::System.EventHandler (this.OnNonSelectedPackageCursorChanged);
- this.projectPackageTreeView.CursorChanged += new global::System.EventHandler (this.OnNonSelectedPackageCursorChanged);
- this.detailsButton.Clicked += new global::System.EventHandler (this.OnDetailsButtonClicked);
- this.removeButton.Clicked += new global::System.EventHandler (this.OnRemoveButtonClicked);
- this.removeButton.Clicked += new global::System.EventHandler (this.OnRemoveButtonClick);
- this.selectedPackageTreeView.CursorChanged += new global::System.EventHandler (this.OnSelectedPackagesTreeViewCursorChanged);
- this.buttonCancel.Clicked += new global::System.EventHandler (this.OnCancelButtonClick);
- this.buttonOk.Clicked += new global::System.EventHandler (this.OnOkButtonClick);
- }
- }
-}
diff --git a/extras/ValaBinding/gtk-gui/MonoDevelop.ValaBinding.GeneralOptionsPanel.cs b/extras/ValaBinding/gtk-gui/MonoDevelop.ValaBinding.GeneralOptionsPanel.cs
deleted file mode 100644
index abad2d4406..0000000000
--- a/extras/ValaBinding/gtk-gui/MonoDevelop.ValaBinding.GeneralOptionsPanel.cs
+++ /dev/null
@@ -1,52 +0,0 @@
-
-// This file has been generated by the GUI designer. Do not modify.
-namespace MonoDevelop.ValaBinding
-{
- public partial class GeneralOptionsPanel
- {
- private global::Gtk.Table table1;
-
- private global::Gtk.Label label1;
-
- private global::Gtk.ComboBox valaCombo;
-
- protected virtual void Build ()
- {
- global::Stetic.Gui.Initialize (this);
- // Widget MonoDevelop.ValaBinding.GeneralOptionsPanel
- global::Stetic.BinContainer.Attach (this);
- this.Name = "MonoDevelop.ValaBinding.GeneralOptionsPanel";
- // Container child MonoDevelop.ValaBinding.GeneralOptionsPanel.Gtk.Container+ContainerChild
- this.table1 = new global::Gtk.Table (((uint)(3)), ((uint)(3)), false);
- this.table1.Name = "table1";
- this.table1.RowSpacing = ((uint)(6));
- this.table1.ColumnSpacing = ((uint)(6));
- // Container child table1.Gtk.Table+TableChild
- this.label1 = new global::Gtk.Label ();
- this.label1.Name = "label1";
- this.label1.Xpad = 10;
- this.label1.Xalign = 0f;
- this.label1.LabelProp = global::Mono.Unix.Catalog.GetString ("Default Vala Compiler:");
- this.table1.Add (this.label1);
- global::Gtk.Table.TableChild w1 = ((global::Gtk.Table.TableChild)(this.table1[this.label1]));
- w1.XOptions = ((global::Gtk.AttachOptions)(4));
- w1.YOptions = ((global::Gtk.AttachOptions)(4));
- // Container child table1.Gtk.Table+TableChild
- this.valaCombo = global::Gtk.ComboBox.NewText ();
- this.valaCombo.TooltipMarkup = "Default compiler to use for new C projects.";
- this.valaCombo.Name = "valaCombo";
- this.table1.Add (this.valaCombo);
- global::Gtk.Table.TableChild w2 = ((global::Gtk.Table.TableChild)(this.table1[this.valaCombo]));
- w2.LeftAttach = ((uint)(1));
- w2.RightAttach = ((uint)(2));
- w2.XOptions = ((global::Gtk.AttachOptions)(4));
- w2.YOptions = ((global::Gtk.AttachOptions)(4));
- this.Add (this.table1);
- if ((this.Child != null)) {
- this.Child.ShowAll ();
- }
- this.Show ();
- this.valaCombo.Changed += new global::System.EventHandler (this.OnValaComboChanged);
- }
- }
-}
diff --git a/extras/ValaBinding/gtk-gui/MonoDevelop.ValaBinding.OutputOptionsPanel.cs b/extras/ValaBinding/gtk-gui/MonoDevelop.ValaBinding.OutputOptionsPanel.cs
deleted file mode 100644
index 674f5c4fb7..0000000000
--- a/extras/ValaBinding/gtk-gui/MonoDevelop.ValaBinding.OutputOptionsPanel.cs
+++ /dev/null
@@ -1,193 +0,0 @@
-
-// This file has been generated by the GUI designer. Do not modify.
-namespace MonoDevelop.ValaBinding
-{
- public partial class OutputOptionsPanel
- {
- private global::Gtk.VBox vbox2;
-
- private global::Gtk.Table table1;
-
- private global::Gtk.HBox hbox1;
-
- private global::Gtk.Entry outputPathTextEntry;
-
- private global::Gtk.Button browseButton;
-
- private global::Gtk.Label label1;
-
- private global::Gtk.Label label2;
-
- private global::Gtk.Label label3;
-
- private global::Gtk.Label label4;
-
- private global::Gtk.Entry outputNameTextEntry;
-
- private global::Gtk.Entry parametersTextEntry;
-
- private global::Gtk.CheckButton externalConsoleCheckbox;
-
- private global::Gtk.CheckButton pauseCheckbox;
-
- protected virtual void Build ()
- {
- global::Stetic.Gui.Initialize (this);
- // Widget MonoDevelop.ValaBinding.OutputOptionsPanel
- global::Stetic.BinContainer.Attach (this);
- this.Name = "MonoDevelop.ValaBinding.OutputOptionsPanel";
- // Container child MonoDevelop.ValaBinding.OutputOptionsPanel.Gtk.Container+ContainerChild
- this.vbox2 = new global::Gtk.VBox ();
- this.vbox2.Name = "vbox2";
- this.vbox2.Spacing = 6;
- this.vbox2.BorderWidth = ((uint)(3));
- // Container child vbox2.Gtk.Box+BoxChild
- this.table1 = new global::Gtk.Table (((uint)(4)), ((uint)(2)), false);
- this.table1.Name = "table1";
- this.table1.RowSpacing = ((uint)(6));
- this.table1.ColumnSpacing = ((uint)(6));
- this.table1.BorderWidth = ((uint)(3));
- // Container child table1.Gtk.Table+TableChild
- this.hbox1 = new global::Gtk.HBox ();
- this.hbox1.Name = "hbox1";
- this.hbox1.Spacing = 6;
- // Container child hbox1.Gtk.Box+BoxChild
- this.outputPathTextEntry = new global::Gtk.Entry ();
- this.outputPathTextEntry.CanFocus = true;
- this.outputPathTextEntry.Name = "outputPathTextEntry";
- this.outputPathTextEntry.IsEditable = true;
- this.outputPathTextEntry.InvisibleChar = '●';
- this.hbox1.Add (this.outputPathTextEntry);
- global::Gtk.Box.BoxChild w1 = ((global::Gtk.Box.BoxChild)(this.hbox1[this.outputPathTextEntry]));
- w1.Position = 0;
- // Container child hbox1.Gtk.Box+BoxChild
- this.browseButton = new global::Gtk.Button ();
- this.browseButton.CanFocus = true;
- this.browseButton.Name = "browseButton";
- this.browseButton.UseUnderline = true;
- this.browseButton.Label = global::Mono.Unix.Catalog.GetString ("_Browse");
- this.hbox1.Add (this.browseButton);
- global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.hbox1[this.browseButton]));
- w2.Position = 1;
- w2.Expand = false;
- w2.Fill = false;
- this.table1.Add (this.hbox1);
- global::Gtk.Table.TableChild w3 = ((global::Gtk.Table.TableChild)(this.table1[this.hbox1]));
- w3.TopAttach = ((uint)(2));
- w3.BottomAttach = ((uint)(3));
- w3.LeftAttach = ((uint)(1));
- w3.RightAttach = ((uint)(2));
- w3.YOptions = ((global::Gtk.AttachOptions)(4));
- // Container child table1.Gtk.Table+TableChild
- this.label1 = new global::Gtk.Label ();
- this.label1.Name = "label1";
- this.label1.Xalign = 0f;
- this.label1.LabelProp = global::Mono.Unix.Catalog.GetString ("<b>Output</b>");
- this.label1.UseMarkup = true;
- this.table1.Add (this.label1);
- global::Gtk.Table.TableChild w4 = ((global::Gtk.Table.TableChild)(this.table1[this.label1]));
- w4.XOptions = ((global::Gtk.AttachOptions)(4));
- w4.YOptions = ((global::Gtk.AttachOptions)(4));
- // Container child table1.Gtk.Table+TableChild
- this.label2 = new global::Gtk.Label ();
- this.label2.Name = "label2";
- this.label2.Xalign = 0f;
- this.label2.LabelProp = global::Mono.Unix.Catalog.GetString ("Output Name:");
- this.table1.Add (this.label2);
- global::Gtk.Table.TableChild w5 = ((global::Gtk.Table.TableChild)(this.table1[this.label2]));
- w5.TopAttach = ((uint)(1));
- w5.BottomAttach = ((uint)(2));
- w5.XPadding = ((uint)(15));
- w5.XOptions = ((global::Gtk.AttachOptions)(4));
- w5.YOptions = ((global::Gtk.AttachOptions)(4));
- // Container child table1.Gtk.Table+TableChild
- this.label3 = new global::Gtk.Label ();
- this.label3.Name = "label3";
- this.label3.Xalign = 0f;
- this.label3.LabelProp = global::Mono.Unix.Catalog.GetString ("Output Path:");
- this.table1.Add (this.label3);
- global::Gtk.Table.TableChild w6 = ((global::Gtk.Table.TableChild)(this.table1[this.label3]));
- w6.TopAttach = ((uint)(2));
- w6.BottomAttach = ((uint)(3));
- w6.XPadding = ((uint)(15));
- w6.XOptions = ((global::Gtk.AttachOptions)(4));
- w6.YOptions = ((global::Gtk.AttachOptions)(4));
- // Container child table1.Gtk.Table+TableChild
- this.label4 = new global::Gtk.Label ();
- this.label4.Name = "label4";
- this.label4.Xalign = 0f;
- this.label4.LabelProp = global::Mono.Unix.Catalog.GetString ("Parameters:");
- this.table1.Add (this.label4);
- global::Gtk.Table.TableChild w7 = ((global::Gtk.Table.TableChild)(this.table1[this.label4]));
- w7.TopAttach = ((uint)(3));
- w7.BottomAttach = ((uint)(4));
- w7.XPadding = ((uint)(15));
- w7.XOptions = ((global::Gtk.AttachOptions)(4));
- w7.YOptions = ((global::Gtk.AttachOptions)(4));
- // Container child table1.Gtk.Table+TableChild
- this.outputNameTextEntry = new global::Gtk.Entry ();
- this.outputNameTextEntry.CanFocus = true;
- this.outputNameTextEntry.Name = "outputNameTextEntry";
- this.outputNameTextEntry.IsEditable = true;
- this.outputNameTextEntry.InvisibleChar = '●';
- this.table1.Add (this.outputNameTextEntry);
- global::Gtk.Table.TableChild w8 = ((global::Gtk.Table.TableChild)(this.table1[this.outputNameTextEntry]));
- w8.TopAttach = ((uint)(1));
- w8.BottomAttach = ((uint)(2));
- w8.LeftAttach = ((uint)(1));
- w8.RightAttach = ((uint)(2));
- w8.YOptions = ((global::Gtk.AttachOptions)(4));
- // Container child table1.Gtk.Table+TableChild
- this.parametersTextEntry = new global::Gtk.Entry ();
- this.parametersTextEntry.CanFocus = true;
- this.parametersTextEntry.Name = "parametersTextEntry";
- this.parametersTextEntry.IsEditable = true;
- this.parametersTextEntry.InvisibleChar = '●';
- this.table1.Add (this.parametersTextEntry);
- global::Gtk.Table.TableChild w9 = ((global::Gtk.Table.TableChild)(this.table1[this.parametersTextEntry]));
- w9.TopAttach = ((uint)(3));
- w9.BottomAttach = ((uint)(4));
- w9.LeftAttach = ((uint)(1));
- w9.RightAttach = ((uint)(2));
- w9.YOptions = ((global::Gtk.AttachOptions)(4));
- this.vbox2.Add (this.table1);
- global::Gtk.Box.BoxChild w10 = ((global::Gtk.Box.BoxChild)(this.vbox2[this.table1]));
- w10.Position = 0;
- w10.Expand = false;
- w10.Fill = false;
- // Container child vbox2.Gtk.Box+BoxChild
- this.externalConsoleCheckbox = new global::Gtk.CheckButton ();
- this.externalConsoleCheckbox.CanFocus = true;
- this.externalConsoleCheckbox.Name = "externalConsoleCheckbox";
- this.externalConsoleCheckbox.Label = global::Mono.Unix.Catalog.GetString ("Run on e_xternal console");
- this.externalConsoleCheckbox.Active = true;
- this.externalConsoleCheckbox.DrawIndicator = true;
- this.externalConsoleCheckbox.UseUnderline = true;
- this.vbox2.Add (this.externalConsoleCheckbox);
- global::Gtk.Box.BoxChild w11 = ((global::Gtk.Box.BoxChild)(this.vbox2[this.externalConsoleCheckbox]));
- w11.Position = 1;
- w11.Expand = false;
- w11.Fill = false;
- // Container child vbox2.Gtk.Box+BoxChild
- this.pauseCheckbox = new global::Gtk.CheckButton ();
- this.pauseCheckbox.Sensitive = false;
- this.pauseCheckbox.CanFocus = true;
- this.pauseCheckbox.Name = "pauseCheckbox";
- this.pauseCheckbox.Label = global::Mono.Unix.Catalog.GetString ("Pause _console output");
- this.pauseCheckbox.DrawIndicator = true;
- this.pauseCheckbox.UseUnderline = true;
- this.vbox2.Add (this.pauseCheckbox);
- global::Gtk.Box.BoxChild w12 = ((global::Gtk.Box.BoxChild)(this.vbox2[this.pauseCheckbox]));
- w12.Position = 2;
- w12.Expand = false;
- w12.Fill = false;
- this.Add (this.vbox2);
- if ((this.Child != null)) {
- this.Child.ShowAll ();
- }
- this.Show ();
- this.browseButton.Clicked += new global::System.EventHandler (this.OnBrowseButtonClick);
- this.externalConsoleCheckbox.Clicked += new global::System.EventHandler (this.OnExternalConsoleCheckboxClicked);
- }
- }
-}
diff --git a/extras/ValaBinding/gtk-gui/MonoDevelop.ValaBinding.PackageDetails.cs b/extras/ValaBinding/gtk-gui/MonoDevelop.ValaBinding.PackageDetails.cs
deleted file mode 100644
index 1ebf59fcac..0000000000
--- a/extras/ValaBinding/gtk-gui/MonoDevelop.ValaBinding.PackageDetails.cs
+++ /dev/null
@@ -1,193 +0,0 @@
-
-// This file has been generated by the GUI designer. Do not modify.
-namespace MonoDevelop.ValaBinding
-{
- public partial class PackageDetails
- {
- private global::Gtk.VBox vbox3;
-
- private global::Gtk.Table table1;
-
- private global::Gtk.Label descriptionLabel;
-
- private global::Gtk.Label label7;
-
- private global::Gtk.Label label8;
-
- private global::Gtk.Label label9;
-
- private global::Gtk.Label nameLabel;
-
- private global::Gtk.Label versionLabel;
-
- private global::Gtk.VBox vbox4;
-
- private global::Gtk.Label label13;
-
- private global::Gtk.ScrolledWindow scrolledwindow1;
-
- private global::Gtk.TreeView requiresTreeView;
-
- private global::Gtk.Button buttonOk;
-
- protected virtual void Build ()
- {
- global::Stetic.Gui.Initialize (this);
- // Widget MonoDevelop.ValaBinding.PackageDetails
- this.Name = "MonoDevelop.ValaBinding.PackageDetails";
- this.Title = global::Mono.Unix.Catalog.GetString ("Package Details");
- this.WindowPosition = ((global::Gtk.WindowPosition)(4));
- // Internal child MonoDevelop.ValaBinding.PackageDetails.VBox
- global::Gtk.VBox w1 = this.VBox;
- w1.Name = "dialog1_VBox";
- w1.BorderWidth = ((uint)(2));
- // Container child dialog1_VBox.Gtk.Box+BoxChild
- this.vbox3 = new global::Gtk.VBox ();
- this.vbox3.Name = "vbox3";
- this.vbox3.Spacing = 6;
- this.vbox3.BorderWidth = ((uint)(3));
- // Container child vbox3.Gtk.Box+BoxChild
- this.table1 = new global::Gtk.Table (((uint)(3)), ((uint)(2)), false);
- this.table1.Name = "table1";
- this.table1.RowSpacing = ((uint)(6));
- this.table1.ColumnSpacing = ((uint)(6));
- // Container child table1.Gtk.Table+TableChild
- this.descriptionLabel = new global::Gtk.Label ();
- this.descriptionLabel.Name = "descriptionLabel";
- this.descriptionLabel.Xalign = 0f;
- this.descriptionLabel.Yalign = 0f;
- this.descriptionLabel.LabelProp = global::Mono.Unix.Catalog.GetString ("label12");
- this.table1.Add (this.descriptionLabel);
- global::Gtk.Table.TableChild w2 = ((global::Gtk.Table.TableChild)(this.table1[this.descriptionLabel]));
- w2.TopAttach = ((uint)(2));
- w2.BottomAttach = ((uint)(3));
- w2.LeftAttach = ((uint)(1));
- w2.RightAttach = ((uint)(2));
- w2.XOptions = ((global::Gtk.AttachOptions)(4));
- w2.YOptions = ((global::Gtk.AttachOptions)(4));
- // Container child table1.Gtk.Table+TableChild
- this.label7 = new global::Gtk.Label ();
- this.label7.Name = "label7";
- this.label7.Xalign = 0f;
- this.label7.LabelProp = global::Mono.Unix.Catalog.GetString ("Name:");
- this.table1.Add (this.label7);
- global::Gtk.Table.TableChild w3 = ((global::Gtk.Table.TableChild)(this.table1[this.label7]));
- w3.XOptions = ((global::Gtk.AttachOptions)(4));
- w3.YOptions = ((global::Gtk.AttachOptions)(4));
- // Container child table1.Gtk.Table+TableChild
- this.label8 = new global::Gtk.Label ();
- this.label8.Name = "label8";
- this.label8.Xalign = 0f;
- this.label8.LabelProp = global::Mono.Unix.Catalog.GetString ("Version:");
- this.table1.Add (this.label8);
- global::Gtk.Table.TableChild w4 = ((global::Gtk.Table.TableChild)(this.table1[this.label8]));
- w4.TopAttach = ((uint)(1));
- w4.BottomAttach = ((uint)(2));
- w4.XOptions = ((global::Gtk.AttachOptions)(4));
- w4.YOptions = ((global::Gtk.AttachOptions)(4));
- // Container child table1.Gtk.Table+TableChild
- this.label9 = new global::Gtk.Label ();
- this.label9.Name = "label9";
- this.label9.Xalign = 0f;
- this.label9.Yalign = 0f;
- this.label9.LabelProp = global::Mono.Unix.Catalog.GetString ("Description:");
- this.table1.Add (this.label9);
- global::Gtk.Table.TableChild w5 = ((global::Gtk.Table.TableChild)(this.table1[this.label9]));
- w5.TopAttach = ((uint)(2));
- w5.BottomAttach = ((uint)(3));
- w5.XOptions = ((global::Gtk.AttachOptions)(4));
- w5.YOptions = ((global::Gtk.AttachOptions)(4));
- // Container child table1.Gtk.Table+TableChild
- this.nameLabel = new global::Gtk.Label ();
- this.nameLabel.Name = "nameLabel";
- this.nameLabel.Xalign = 0f;
- this.nameLabel.LabelProp = global::Mono.Unix.Catalog.GetString ("label10");
- this.table1.Add (this.nameLabel);
- global::Gtk.Table.TableChild w6 = ((global::Gtk.Table.TableChild)(this.table1[this.nameLabel]));
- w6.LeftAttach = ((uint)(1));
- w6.RightAttach = ((uint)(2));
- w6.XOptions = ((global::Gtk.AttachOptions)(4));
- w6.YOptions = ((global::Gtk.AttachOptions)(4));
- // Container child table1.Gtk.Table+TableChild
- this.versionLabel = new global::Gtk.Label ();
- this.versionLabel.Name = "versionLabel";
- this.versionLabel.Xalign = 0f;
- this.versionLabel.LabelProp = global::Mono.Unix.Catalog.GetString ("label11");
- this.table1.Add (this.versionLabel);
- global::Gtk.Table.TableChild w7 = ((global::Gtk.Table.TableChild)(this.table1[this.versionLabel]));
- w7.TopAttach = ((uint)(1));
- w7.BottomAttach = ((uint)(2));
- w7.LeftAttach = ((uint)(1));
- w7.RightAttach = ((uint)(2));
- w7.XOptions = ((global::Gtk.AttachOptions)(4));
- w7.YOptions = ((global::Gtk.AttachOptions)(4));
- this.vbox3.Add (this.table1);
- global::Gtk.Box.BoxChild w8 = ((global::Gtk.Box.BoxChild)(this.vbox3[this.table1]));
- w8.Position = 0;
- w8.Expand = false;
- w8.Fill = false;
- // Container child vbox3.Gtk.Box+BoxChild
- this.vbox4 = new global::Gtk.VBox ();
- this.vbox4.Name = "vbox4";
- this.vbox4.Spacing = 6;
- // Container child vbox4.Gtk.Box+BoxChild
- this.label13 = new global::Gtk.Label ();
- this.label13.Name = "label13";
- this.label13.Xalign = 0f;
- this.label13.LabelProp = global::Mono.Unix.Catalog.GetString ("Requires:");
- this.vbox4.Add (this.label13);
- global::Gtk.Box.BoxChild w9 = ((global::Gtk.Box.BoxChild)(this.vbox4[this.label13]));
- w9.Position = 0;
- w9.Expand = false;
- w9.Fill = false;
- // Container child vbox4.Gtk.Box+BoxChild
- this.scrolledwindow1 = new global::Gtk.ScrolledWindow ();
- this.scrolledwindow1.CanFocus = true;
- this.scrolledwindow1.Name = "scrolledwindow1";
- this.scrolledwindow1.ShadowType = ((global::Gtk.ShadowType)(1));
- // Container child scrolledwindow1.Gtk.Container+ContainerChild
- global::Gtk.Viewport w10 = new global::Gtk.Viewport ();
- w10.ShadowType = ((global::Gtk.ShadowType)(0));
- // Container child GtkViewport.Gtk.Container+ContainerChild
- this.requiresTreeView = new global::Gtk.TreeView ();
- this.requiresTreeView.CanFocus = true;
- this.requiresTreeView.Name = "requiresTreeView";
- w10.Add (this.requiresTreeView);
- this.scrolledwindow1.Add (w10);
- this.vbox4.Add (this.scrolledwindow1);
- global::Gtk.Box.BoxChild w13 = ((global::Gtk.Box.BoxChild)(this.vbox4[this.scrolledwindow1]));
- w13.Position = 1;
- this.vbox3.Add (this.vbox4);
- global::Gtk.Box.BoxChild w14 = ((global::Gtk.Box.BoxChild)(this.vbox3[this.vbox4]));
- w14.Position = 1;
- w1.Add (this.vbox3);
- global::Gtk.Box.BoxChild w15 = ((global::Gtk.Box.BoxChild)(w1[this.vbox3]));
- w15.Position = 0;
- // Internal child MonoDevelop.ValaBinding.PackageDetails.ActionArea
- global::Gtk.HButtonBox w16 = this.ActionArea;
- w16.Name = "dialog1_ActionArea";
- w16.Spacing = 6;
- w16.BorderWidth = ((uint)(5));
- w16.LayoutStyle = ((global::Gtk.ButtonBoxStyle)(4));
- // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
- this.buttonOk = new global::Gtk.Button ();
- this.buttonOk.CanDefault = true;
- this.buttonOk.CanFocus = true;
- this.buttonOk.Name = "buttonOk";
- this.buttonOk.UseStock = true;
- this.buttonOk.UseUnderline = true;
- this.buttonOk.Label = "gtk-ok";
- this.AddActionWidget (this.buttonOk, -5);
- global::Gtk.ButtonBox.ButtonBoxChild w17 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w16[this.buttonOk]));
- w17.Expand = false;
- w17.Fill = false;
- if ((this.Child != null)) {
- this.Child.ShowAll ();
- }
- this.DefaultWidth = 608;
- this.DefaultHeight = 518;
- this.Show ();
- this.buttonOk.Clicked += new global::System.EventHandler (this.OnButtonOkClicked);
- }
- }
-}
diff --git a/extras/ValaBinding/gtk-gui/generated.cs b/extras/ValaBinding/gtk-gui/generated.cs
deleted file mode 100644
index 559a39ec59..0000000000
--- a/extras/ValaBinding/gtk-gui/generated.cs
+++ /dev/null
@@ -1,116 +0,0 @@
-
-// This file has been generated by the GUI designer. Do not modify.
-namespace Stetic
-{
- internal class Gui
- {
- private static bool initialized;
-
- static internal void Initialize (Gtk.Widget iconRenderer)
- {
- if ((Stetic.Gui.initialized == false)) {
- Stetic.Gui.initialized = true;
- }
- }
- }
-
- internal class BinContainer
- {
- private Gtk.Widget child;
-
- private Gtk.UIManager uimanager;
-
- public static BinContainer Attach (Gtk.Bin bin)
- {
- BinContainer bc = new BinContainer ();
- bin.SizeRequested += new Gtk.SizeRequestedHandler (bc.OnSizeRequested);
- bin.SizeAllocated += new Gtk.SizeAllocatedHandler (bc.OnSizeAllocated);
- bin.Added += new Gtk.AddedHandler (bc.OnAdded);
- return bc;
- }
-
- private void OnSizeRequested (object sender, Gtk.SizeRequestedArgs args)
- {
- if ((this.child != null)) {
- args.Requisition = this.child.SizeRequest ();
- }
- }
-
- private void OnSizeAllocated (object sender, Gtk.SizeAllocatedArgs args)
- {
- if ((this.child != null)) {
- this.child.Allocation = args.Allocation;
- }
- }
-
- private void OnAdded (object sender, Gtk.AddedArgs args)
- {
- this.child = args.Widget;
- }
-
- public void SetUiManager (Gtk.UIManager uim)
- {
- this.uimanager = uim;
- this.child.Realized += new System.EventHandler (this.OnRealized);
- }
-
- private void OnRealized (object sender, System.EventArgs args)
- {
- if ((this.uimanager != null)) {
- Gtk.Widget w;
- w = this.child.Toplevel;
- if (((w != null) && typeof(Gtk.Window).IsInstanceOfType (w))) {
- ((Gtk.Window)(w)).AddAccelGroup (this.uimanager.AccelGroup);
- this.uimanager = null;
- }
- }
- }
- }
-
- internal class IconLoader
- {
- public static Gdk.Pixbuf LoadIcon (Gtk.Widget widget, string name, Gtk.IconSize size)
- {
- Gdk.Pixbuf res = widget.RenderIcon (name, size, null);
- if ((res != null)) {
- return res;
- } else {
- int sz;
- int sy;
- global::Gtk.Icon.SizeLookup (size, out sz, out sy);
- try {
- return Gtk.IconTheme.Default.LoadIcon (name, sz, 0);
- } catch (System.Exception) {
- if ((name != "gtk-missing-image")) {
- return Stetic.IconLoader.LoadIcon (widget, "gtk-missing-image", size);
- } else {
- Gdk.Pixmap pmap = new Gdk.Pixmap (Gdk.Screen.Default.RootWindow, sz, sz);
- Gdk.GC gc = new Gdk.GC (pmap);
- gc.RgbFgColor = new Gdk.Color (255, 255, 255);
- pmap.DrawRectangle (gc, true, 0, 0, sz, sz);
- gc.RgbFgColor = new Gdk.Color (0, 0, 0);
- pmap.DrawRectangle (gc, false, 0, 0, (sz - 1), (sz - 1));
- gc.SetLineAttributes (3, Gdk.LineStyle.Solid, Gdk.CapStyle.Round, Gdk.JoinStyle.Round);
- gc.RgbFgColor = new Gdk.Color (255, 0, 0);
- pmap.DrawLine (gc, (sz / 4), (sz / 4), ((sz - 1) - (sz / 4)), ((sz - 1) - (sz / 4)));
- pmap.DrawLine (gc, ((sz - 1) - (sz / 4)), (sz / 4), (sz / 4), ((sz - 1) - (sz / 4)));
- return Gdk.Pixbuf.FromDrawable (pmap, pmap.Colormap, 0, 0, 0, 0, sz, sz);
- }
- }
- }
- }
- }
-
- internal class ActionGroups
- {
- public static Gtk.ActionGroup GetActionGroup (System.Type type)
- {
- return Stetic.ActionGroups.GetActionGroup (type.FullName);
- }
-
- public static Gtk.ActionGroup GetActionGroup (string name)
- {
- return null;
- }
- }
-}
diff --git a/extras/ValaBinding/gtk-gui/gui.stetic b/extras/ValaBinding/gtk-gui/gui.stetic
deleted file mode 100644
index a7a8be850d..0000000000
--- a/extras/ValaBinding/gtk-gui/gui.stetic
+++ /dev/null
@@ -1,1791 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<stetic-interface>
- <configuration>
- <images-root-path>..</images-root-path>
- <target-gtk-version>2.12</target-gtk-version>
- </configuration>
- <import>
- <widget-library name="MonoDevelop.VersionControl, Version=2.2.0.0, Culture=neutral" />
- <widget-library name="MonoDevelop.NUnit, Version=2.2.0.0, Culture=neutral" />
- <widget-library name="MonoDevelop.XmlEditor, Version=2.2.0.0, Culture=neutral" />
- <widget-library name="MonoDevelop.AspNet, Version=2.2.0.0, Culture=neutral" />
- <widget-library name="MonoDevelop.Gettext, Version=2.2.0.0, Culture=neutral" />
- <widget-library name="MonoDevelop.Deployment, Version=2.2.0.0, Culture=neutral" />
- <widget-library name="MonoDevelop.Deployment.Linux, Version=2.2.0.0, Culture=neutral" />
- <widget-library name="MonoDevelop.GtkCore, Version=2.2.0.0, Culture=neutral" />
- <widget-library name="MonoDevelop.DesignerSupport, Version=2.2.0.0, Culture=neutral" />
- <widget-library name="MonoDevelop.VBNetBinding, Version=2.2.0.0, Culture=neutral" />
- <widget-library name="MonoDevelop.CBinding, Version=2.2.0.0, Culture=neutral" />
- <widget-library name="MonoDevelop.CSharpBinding, Version=2.2.0.0, Culture=neutral" />
- <widget-library name="MonoDevelop.Autotools, Version=2.2.0.0, Culture=neutral" />
- <widget-library name="MonoDevelop.Ide, Version=2.2.0.0, Culture=neutral" />
- <widget-library name="Mono.TextEditor, Version=1.0.0.0, Culture=neutral" />
- <widget-library name="MonoDevelop.SourceEditor2, Version=2.2.0.0, Culture=neutral" />
- <widget-library name="MonoDevelop.Debugger, Version=2.2.0.0, Culture=neutral" />
- <widget-library name="MonoDevelop.Refactoring, Version=2.2.0.0, Culture=neutral" />
- <widget-library name="MonoDevelop.Debugger.Soft, Version=2.2.0.0, Culture=neutral" />
- <widget-library name="../build/MonoDevelop.ValaBinding.dll" internal="true" />
- </import>
- <widget class="Gtk.Bin" id="MonoDevelop.ValaBinding.CodeGenerationPanel" design-size="611 396">
- <property name="MemberName" />
- <child>
- <widget class="Gtk.Notebook" id="notebook1">
- <property name="MemberName" />
- <property name="CanFocus">True</property>
- <property name="CurrentPage">0</property>
- <child>
- <widget class="Gtk.VBox" id="vbox6">
- <property name="MemberName" />
- <property name="Spacing">3</property>
- <child>
- <widget class="Gtk.Table" id="table1">
- <property name="MemberName" />
- <property name="NRows">4</property>
- <property name="NColumns">2</property>
- <property name="RowSpacing">5</property>
- <property name="ColumnSpacing">5</property>
- <property name="BorderWidth">2</property>
- <child>
- <widget class="Gtk.Label" id="label10">
- <property name="MemberName" />
- <property name="Xpad">10</property>
- <property name="Xalign">0</property>
- <property name="LabelProp" translatable="yes">Warning Level:</property>
- </widget>
- <packing>
- <property name="AutoSize">True</property>
- <property name="XOptions">Fill</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">False</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Label" id="label4">
- <property name="MemberName" />
- <property name="Xpad">10</property>
- <property name="Xalign">0</property>
- <property name="LabelProp" translatable="yes">Multithreading:</property>
- </widget>
- <packing>
- <property name="TopAttach">3</property>
- <property name="BottomAttach">4</property>
- <property name="AutoSize">True</property>
- <property name="XOptions">Fill</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">False</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Label" id="label5">
- <property name="MemberName" />
- <property name="Xpad">10</property>
- <property name="Xalign">0</property>
- <property name="LabelProp" translatable="yes">Optimization Level:</property>
- </widget>
- <packing>
- <property name="TopAttach">1</property>
- <property name="BottomAttach">2</property>
- <property name="AutoSize">True</property>
- <property name="XOptions">Fill</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">False</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Label" id="label6">
- <property name="MemberName" />
- <property name="Xpad">10</property>
- <property name="Xalign">0</property>
- <property name="LabelProp" translatable="yes">Target:</property>
- </widget>
- <packing>
- <property name="TopAttach">2</property>
- <property name="BottomAttach">3</property>
- <property name="AutoSize">True</property>
- <property name="XOptions">Fill</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">False</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.SpinButton" id="optimizationSpinButton">
- <property name="MemberName" />
- <property name="Sensitive">False</property>
- <property name="CanFocus">True</property>
- <property name="Upper">3</property>
- <property name="PageIncrement">10</property>
- <property name="StepIncrement">1</property>
- <property name="ClimbRate">1</property>
- <property name="Numeric">True</property>
- </widget>
- <packing>
- <property name="TopAttach">1</property>
- <property name="BottomAttach">2</property>
- <property name="LeftAttach">1</property>
- <property name="RightAttach">2</property>
- <property name="AutoSize">True</property>
- <property name="XOptions">Fill</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">False</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.ComboBox" id="targetComboBox">
- <property name="MemberName" />
- <property name="IsTextCombo">True</property>
- <property name="Items" translatable="yes">Executable
-Static Library
-Shared Object</property>
- <signal name="Changed" handler="OnTargetComboBoxChanged" />
- </widget>
- <packing>
- <property name="TopAttach">2</property>
- <property name="BottomAttach">3</property>
- <property name="LeftAttach">1</property>
- <property name="RightAttach">2</property>
- <property name="AutoSize">True</property>
- <property name="XOptions">Fill</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">False</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.CheckButton" id="threadingCheckbox">
- <property name="MemberName">threadingCheckbox</property>
- <property name="CanFocus">True</property>
- <property name="Label" translatable="yes">Enable multithreading</property>
- <property name="DrawIndicator">True</property>
- <property name="HasLabel">True</property>
- <property name="UseUnderline">True</property>
- </widget>
- <packing>
- <property name="TopAttach">3</property>
- <property name="BottomAttach">4</property>
- <property name="LeftAttach">1</property>
- <property name="RightAttach">2</property>
- <property name="AutoSize">True</property>
- <property name="XOptions">Fill</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">False</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.VBox" id="vbox1">
- <property name="MemberName" />
- <property name="Spacing">1</property>
- <child>
- <widget class="Gtk.RadioButton" id="noWarningRadio">
- <property name="MemberName" />
- <property name="CanFocus">True</property>
- <property name="Label" translatable="yes">no warnings</property>
- <property name="Active">True</property>
- <property name="DrawIndicator">True</property>
- <property name="HasLabel">True</property>
- <property name="UseUnderline">True</property>
- <property name="Group">group1</property>
- </widget>
- <packing>
- <property name="Position">0</property>
- <property name="AutoSize">True</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.RadioButton" id="normalWarningRadio">
- <property name="MemberName" />
- <property name="CanFocus">True</property>
- <property name="Label" translatable="yes">normal</property>
- <property name="DrawIndicator">True</property>
- <property name="HasLabel">True</property>
- <property name="UseUnderline">True</property>
- <property name="Group">group1</property>
- </widget>
- <packing>
- <property name="Position">1</property>
- <property name="AutoSize">True</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.RadioButton" id="allWarningRadio">
- <property name="MemberName" />
- <property name="CanFocus">True</property>
- <property name="Label" translatable="yes">all</property>
- <property name="DrawIndicator">True</property>
- <property name="HasLabel">True</property>
- <property name="UseUnderline">True</property>
- <property name="Group">group1</property>
- </widget>
- <packing>
- <property name="Position">2</property>
- <property name="AutoSize">True</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.CheckButton" id="warningsAsErrorsCheckBox">
- <property name="MemberName" />
- <property name="Sensitive">False</property>
- <property name="CanFocus">True</property>
- <property name="Label" translatable="yes">Treat warnings as errors</property>
- <property name="DrawIndicator">True</property>
- <property name="HasLabel">True</property>
- <property name="UseUnderline">True</property>
- </widget>
- <packing>
- <property name="Position">3</property>
- <property name="AutoSize">True</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="LeftAttach">1</property>
- <property name="RightAttach">2</property>
- <property name="AutoSize">True</property>
- <property name="XOptions">Fill</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">False</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="Position">0</property>
- <property name="AutoSize">True</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.HBox" id="hbox1">
- <property name="MemberName" />
- <property name="Spacing">6</property>
- <child>
- <widget class="Gtk.Label" id="label12">
- <property name="MemberName" />
- <property name="Xpad">13</property>
- <property name="Xalign">0</property>
- <property name="LabelProp" translatable="yes">Define Symbols:</property>
- </widget>
- <packing>
- <property name="Position">0</property>
- <property name="AutoSize">True</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Entry" id="defineSymbolsTextEntry">
- <property name="MemberName" />
- <property name="Tooltip" translatable="yes">A space-separated list of symbols to define.</property>
- <property name="CanFocus">True</property>
- <property name="IsEditable">True</property>
- <property name="InvisibleChar">●</property>
- </widget>
- <packing>
- <property name="Position">1</property>
- <property name="AutoSize">False</property>
- <property name="Padding">14</property>
- </packing>
- </child>
- <child>
- <placeholder />
- </child>
- </widget>
- <packing>
- <property name="Position">1</property>
- <property name="AutoSize">True</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Frame" id="frame2">
- <property name="MemberName" />
- <property name="ShadowType">None</property>
- <property name="LabelYalign">0</property>
- <child>
- <widget class="Gtk.Alignment" id="GtkAlignment">
- <property name="MemberName" />
- <property name="Xalign">0</property>
- <property name="Yalign">0</property>
- <property name="LeftPadding">12</property>
- <child>
- <widget class="Gtk.Table" id="table5">
- <property name="MemberName" />
- <property name="NRows">2</property>
- <property name="RowSpacing">6</property>
- <property name="ColumnSpacing">9</property>
- <property name="BorderWidth">6</property>
- <child>
- <widget class="Gtk.Label" id="label7">
- <property name="MemberName" />
- <property name="Xalign">0</property>
- <property name="LabelProp" translatable="yes">Extra Compiler Options</property>
- </widget>
- <packing>
- <property name="AutoSize">False</property>
- <property name="XOptions">Fill</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">False</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.ScrolledWindow" id="scrolledwindow4">
- <property name="MemberName" />
- <property name="CanFocus">True</property>
- <property name="ShadowType">In</property>
- <child>
- <widget class="Gtk.TextView" id="extraCompilerTextView">
- <property name="MemberName" />
- <property name="Tooltip" translatable="yes">A newline-separated list of extra options to send to the compiler.
-One option can be in more than one line.
-Example:
- `--pkg
- cairo`</property>
- <property name="CanFocus">True</property>
- <property name="Text" translatable="yes" />
- </widget>
- </child>
- </widget>
- <packing>
- <property name="TopAttach">1</property>
- <property name="BottomAttach">2</property>
- <property name="AutoSize">False</property>
- <property name="XExpand">True</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">True</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- </widget>
- </child>
- </widget>
- </child>
- <child>
- <widget class="Gtk.Label" id="GtkLabel12">
- <property name="MemberName" />
- <property name="LabelProp" translatable="yes">&lt;b&gt;Extra Options&lt;/b&gt;</property>
- <property name="UseMarkup">True</property>
- </widget>
- <packing>
- <property name="type">label_item</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="Position">2</property>
- <property name="AutoSize">False</property>
- </packing>
- </child>
- </widget>
- </child>
- <child>
- <widget class="Gtk.Label" id="label1">
- <property name="MemberName" />
- <property name="LabelProp" translatable="yes">Code Generation</property>
- </widget>
- <packing>
- <property name="type">tab</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Table" id="table2">
- <property name="MemberName" />
- <property name="NRows">2</property>
- <property name="NColumns">3</property>
- <property name="RowSpacing">10</property>
- <property name="ColumnSpacing">10</property>
- <property name="BorderWidth">3</property>
- <child>
- <placeholder />
- </child>
- <child>
- <widget class="Gtk.Button" id="addLibButton">
- <property name="MemberName" />
- <property name="Sensitive">False</property>
- <property name="CanFocus">True</property>
- <property name="Type">TextOnly</property>
- <property name="Label" translatable="yes">Add</property>
- <property name="UseUnderline">True</property>
- <signal name="Clicked" handler="OnLibAdded" />
- </widget>
- <packing>
- <property name="LeftAttach">2</property>
- <property name="RightAttach">3</property>
- <property name="AutoSize">True</property>
- <property name="XOptions">Fill</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">False</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Label" id="label8">
- <property name="MemberName" />
- <property name="LabelProp" translatable="yes">Library:</property>
- </widget>
- <packing>
- <property name="AutoSize">True</property>
- <property name="XOptions">Fill</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">False</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Entry" id="libAddEntry">
- <property name="MemberName" />
- <property name="CanFocus">True</property>
- <property name="IsEditable">True</property>
- <property name="InvisibleChar">●</property>
- <signal name="Changed" handler="OnLibAddEntryChanged" />
- <signal name="Activated" handler="OnLibAddEntryActivated" />
- </widget>
- <packing>
- <property name="LeftAttach">1</property>
- <property name="RightAttach">2</property>
- <property name="AutoSize">True</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">True</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.ScrolledWindow" id="scrolledwindow1">
- <property name="MemberName" />
- <property name="CanFocus">True</property>
- <property name="ShadowType">In</property>
- <child>
- <widget class="Gtk.TreeView" id="libTreeView">
- <property name="MemberName" />
- <property name="CanFocus">True</property>
- <signal name="CursorChanged" handler="OnLibTreeViewCursorChanged" />
- </widget>
- </child>
- </widget>
- <packing>
- <property name="TopAttach">1</property>
- <property name="BottomAttach">2</property>
- <property name="LeftAttach">1</property>
- <property name="RightAttach">2</property>
- <property name="AutoSize">True</property>
- <property name="XExpand">True</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">True</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.VBox" id="vbox4">
- <property name="MemberName" />
- <property name="Spacing">6</property>
- <child>
- <widget class="Gtk.Button" id="browseButton">
- <property name="MemberName" />
- <property name="CanFocus">True</property>
- <property name="Type">TextOnly</property>
- <property name="Label" translatable="yes">Browse...</property>
- <property name="UseUnderline">True</property>
- <signal name="Clicked" handler="OnBrowseButtonClick" />
- </widget>
- <packing>
- <property name="Position">0</property>
- <property name="AutoSize">True</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Button" id="removeLibButton">
- <property name="MemberName" />
- <property name="Sensitive">False</property>
- <property name="CanFocus">True</property>
- <property name="Type">TextOnly</property>
- <property name="Label" translatable="yes">Remove</property>
- <property name="UseUnderline">True</property>
- <signal name="Clicked" handler="OnRemoveLibButtonClicked" />
- <signal name="Clicked" handler="OnLibRemoved" />
- </widget>
- <packing>
- <property name="Position">1</property>
- <property name="AutoSize">True</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <placeholder />
- </child>
- </widget>
- <packing>
- <property name="TopAttach">1</property>
- <property name="BottomAttach">2</property>
- <property name="LeftAttach">2</property>
- <property name="RightAttach">3</property>
- <property name="AutoSize">True</property>
- <property name="XOptions">Fill</property>
- <property name="XExpand">False</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">True</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="Position">1</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Label" id="label2">
- <property name="MemberName" />
- <property name="LabelProp" translatable="yes">Libraries</property>
- </widget>
- <packing>
- <property name="type">tab</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.VBox" id="vbox7">
- <property name="MemberName" />
- <property name="Spacing">6</property>
- <property name="BorderWidth">3</property>
- <child>
- <widget class="Gtk.Table" id="table3">
- <property name="MemberName" />
- <property name="NRows">2</property>
- <property name="NColumns">3</property>
- <property name="RowSpacing">10</property>
- <property name="ColumnSpacing">10</property>
- <child>
- <placeholder />
- </child>
- <child>
- <widget class="Gtk.Button" id="includePathAddButton">
- <property name="MemberName" />
- <property name="Sensitive">False</property>
- <property name="CanFocus">True</property>
- <property name="Type">TextOnly</property>
- <property name="Label" translatable="yes">Add</property>
- <property name="UseUnderline">True</property>
- <signal name="Clicked" handler="OnIncludePathAdded" />
- </widget>
- <packing>
- <property name="LeftAttach">2</property>
- <property name="RightAttach">3</property>
- <property name="AutoSize">True</property>
- <property name="XOptions">Fill</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">False</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Entry" id="includePathEntry">
- <property name="MemberName" />
- <property name="CanFocus">True</property>
- <property name="IsEditable">True</property>
- <property name="InvisibleChar">●</property>
- <signal name="Changed" handler="OnIncludePathEntryChanged" />
- <signal name="Activated" handler="OnIncludePathEntryActivated" />
- </widget>
- <packing>
- <property name="LeftAttach">1</property>
- <property name="RightAttach">2</property>
- <property name="AutoSize">True</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">True</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Label" id="label9">
- <property name="MemberName" />
- <property name="LabelProp" translatable="yes">Vapi Paths:</property>
- </widget>
- <packing>
- <property name="AutoSize">True</property>
- <property name="XOptions">Fill</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">False</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.ScrolledWindow" id="scrolledwindow2">
- <property name="MemberName" />
- <property name="CanFocus">True</property>
- <property name="ShadowType">In</property>
- <child>
- <widget class="Gtk.TreeView" id="includePathTreeView">
- <property name="MemberName" />
- <property name="CanFocus">True</property>
- <signal name="CursorChanged" handler="OnIncludePathTreeViewCursorChanged" />
- </widget>
- </child>
- </widget>
- <packing>
- <property name="TopAttach">1</property>
- <property name="BottomAttach">2</property>
- <property name="LeftAttach">1</property>
- <property name="RightAttach">2</property>
- <property name="AutoSize">True</property>
- <property name="XExpand">True</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">True</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.VBox" id="vbox5">
- <property name="MemberName" />
- <property name="Spacing">6</property>
- <child>
- <widget class="Gtk.Button" id="includePathBrowseButton">
- <property name="MemberName" />
- <property name="CanFocus">True</property>
- <property name="Type">TextOnly</property>
- <property name="Label" translatable="yes">Browse...</property>
- <property name="UseUnderline">True</property>
- <signal name="Clicked" handler="OnIncludePathBrowseButtonClick" />
- </widget>
- <packing>
- <property name="Position">0</property>
- <property name="AutoSize">True</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Button" id="includePathRemoveButton">
- <property name="MemberName" />
- <property name="Sensitive">False</property>
- <property name="CanFocus">True</property>
- <property name="Type">TextOnly</property>
- <property name="Label" translatable="yes">Remove</property>
- <property name="UseUnderline">True</property>
- <signal name="Clicked" handler="OnIncludePathRemoveButtonClicked" />
- <signal name="Clicked" handler="OnIncludePathRemoved" />
- </widget>
- <packing>
- <property name="Position">1</property>
- <property name="AutoSize">True</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <placeholder />
- </child>
- </widget>
- <packing>
- <property name="TopAttach">1</property>
- <property name="BottomAttach">2</property>
- <property name="LeftAttach">2</property>
- <property name="RightAttach">3</property>
- <property name="AutoSize">True</property>
- <property name="XOptions">Fill</property>
- <property name="XExpand">False</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">True</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="Position">0</property>
- <property name="AutoSize">True</property>
- </packing>
- </child>
- <child>
- <placeholder />
- </child>
- <child>
- <placeholder />
- </child>
- </widget>
- <packing>
- <property name="Position">2</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Label" id="label3">
- <property name="MemberName" />
- <property name="LabelProp" translatable="yes">Paths</property>
- </widget>
- <packing>
- <property name="type">tab</property>
- </packing>
- </child>
- </widget>
- </child>
- </widget>
- <widget class="Gtk.Dialog" id="MonoDevelop.ValaBinding.AddLibraryDialog" design-size="648 439">
- <property name="MemberName" />
- <property name="Title" translatable="yes">Add Library</property>
- <property name="Modal">True</property>
- <property name="Buttons">2</property>
- <property name="HelpButton">False</property>
- <child internal-child="VBox">
- <widget class="Gtk.VBox" id="dialog1_VBox">
- <property name="MemberName" />
- <property name="Spacing">6</property>
- <property name="BorderWidth">2</property>
- <child>
- <widget class="Gtk.FileChooserWidget" id="file_chooser_widget">
- <property name="MemberName" />
- </widget>
- <packing>
- <property name="Position">0</property>
- <property name="AutoSize">True</property>
- </packing>
- </child>
- </widget>
- </child>
- <child internal-child="ActionArea">
- <widget class="Gtk.HButtonBox" id="dialog1_ActionArea">
- <property name="MemberName" />
- <property name="Spacing">6</property>
- <property name="BorderWidth">5</property>
- <property name="Size">2</property>
- <property name="LayoutStyle">End</property>
- <child>
- <widget class="Gtk.Button" id="buttonCancel">
- <property name="MemberName" />
- <property name="CanDefault">True</property>
- <property name="CanFocus">True</property>
- <property name="UseStock">True</property>
- <property name="Type">StockItem</property>
- <property name="StockId">gtk-cancel</property>
- <property name="ResponseId">-6</property>
- <signal name="Clicked" handler="OnCancelButtonClick" />
- <property name="label">gtk-cancel</property>
- </widget>
- <packing>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Button" id="buttonOk">
- <property name="MemberName" />
- <property name="CanDefault">True</property>
- <property name="CanFocus">True</property>
- <property name="UseStock">True</property>
- <property name="Type">StockItem</property>
- <property name="StockId">gtk-ok</property>
- <property name="ResponseId">-5</property>
- <signal name="Clicked" handler="OnOkButtonClick" />
- <property name="label">gtk-ok</property>
- </widget>
- <packing>
- <property name="Position">1</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- </widget>
- </child>
- </widget>
- <widget class="Gtk.Dialog" id="MonoDevelop.ValaBinding.AddPathDialog" design-size="649 436">
- <property name="MemberName" />
- <property name="Title" translatable="yes">Add Path</property>
- <property name="Modal">True</property>
- <property name="Buttons">2</property>
- <property name="HelpButton">False</property>
- <child internal-child="VBox">
- <widget class="Gtk.VBox" id="dialog1_VBox">
- <property name="MemberName" />
- <property name="Spacing">6</property>
- <property name="BorderWidth">2</property>
- <child>
- <widget class="Gtk.FileChooserWidget" id="file_chooser_widget">
- <property name="MemberName" />
- <property name="ShowHidden">True</property>
- </widget>
- <packing>
- <property name="Position">0</property>
- <property name="AutoSize">True</property>
- </packing>
- </child>
- </widget>
- </child>
- <child internal-child="ActionArea">
- <widget class="Gtk.HButtonBox" id="dialog1_ActionArea">
- <property name="MemberName" />
- <property name="Spacing">6</property>
- <property name="BorderWidth">5</property>
- <property name="Size">2</property>
- <property name="LayoutStyle">End</property>
- <child>
- <widget class="Gtk.Button" id="buttonCancel">
- <property name="MemberName" />
- <property name="CanDefault">True</property>
- <property name="CanFocus">True</property>
- <property name="UseStock">True</property>
- <property name="Type">StockItem</property>
- <property name="StockId">gtk-cancel</property>
- <property name="ResponseId">-6</property>
- <signal name="Clicked" handler="OnCancelButtonClick" />
- <property name="label">gtk-cancel</property>
- </widget>
- <packing>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Button" id="buttonOk">
- <property name="MemberName" />
- <property name="CanDefault">True</property>
- <property name="CanFocus">True</property>
- <property name="UseStock">True</property>
- <property name="Type">StockItem</property>
- <property name="StockId">gtk-ok</property>
- <property name="ResponseId">-5</property>
- <signal name="Clicked" handler="OnOkButtonClick" />
- <property name="label">gtk-ok</property>
- </widget>
- <packing>
- <property name="Position">1</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- </widget>
- </child>
- </widget>
- <widget class="Gtk.Bin" id="MonoDevelop.ValaBinding.OutputOptionsPanel" design-size="412 273">
- <property name="MemberName" />
- <child>
- <widget class="Gtk.VBox" id="vbox2">
- <property name="MemberName" />
- <property name="Spacing">6</property>
- <property name="BorderWidth">3</property>
- <child>
- <widget class="Gtk.Table" id="table1">
- <property name="MemberName" />
- <property name="NRows">4</property>
- <property name="NColumns">2</property>
- <property name="RowSpacing">6</property>
- <property name="ColumnSpacing">6</property>
- <property name="BorderWidth">3</property>
- <child>
- <placeholder />
- </child>
- <child>
- <widget class="Gtk.HBox" id="hbox1">
- <property name="MemberName" />
- <property name="Spacing">6</property>
- <child>
- <widget class="Gtk.Entry" id="outputPathTextEntry">
- <property name="MemberName" />
- <property name="CanFocus">True</property>
- <property name="IsEditable">True</property>
- <property name="InvisibleChar">●</property>
- </widget>
- <packing>
- <property name="Position">0</property>
- <property name="AutoSize">True</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Button" id="browseButton">
- <property name="MemberName" />
- <property name="CanFocus">True</property>
- <property name="Type">TextOnly</property>
- <property name="Label" translatable="yes">_Browse</property>
- <property name="UseUnderline">True</property>
- <signal name="Clicked" handler="OnBrowseButtonClick" />
- </widget>
- <packing>
- <property name="Position">1</property>
- <property name="AutoSize">True</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="TopAttach">2</property>
- <property name="BottomAttach">3</property>
- <property name="LeftAttach">1</property>
- <property name="RightAttach">2</property>
- <property name="AutoSize">True</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">True</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Label" id="label1">
- <property name="MemberName" />
- <property name="Xalign">0</property>
- <property name="LabelProp" translatable="yes">&lt;b&gt;Output&lt;/b&gt;</property>
- <property name="UseMarkup">True</property>
- </widget>
- <packing>
- <property name="AutoSize">True</property>
- <property name="XOptions">Fill</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">False</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Label" id="label2">
- <property name="MemberName" />
- <property name="Xalign">0</property>
- <property name="LabelProp" translatable="yes">Output Name:</property>
- </widget>
- <packing>
- <property name="TopAttach">1</property>
- <property name="BottomAttach">2</property>
- <property name="XPadding">15</property>
- <property name="AutoSize">True</property>
- <property name="XOptions">Fill</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">False</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Label" id="label3">
- <property name="MemberName" />
- <property name="Xalign">0</property>
- <property name="LabelProp" translatable="yes">Output Path:</property>
- </widget>
- <packing>
- <property name="TopAttach">2</property>
- <property name="BottomAttach">3</property>
- <property name="XPadding">15</property>
- <property name="AutoSize">True</property>
- <property name="XOptions">Fill</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">False</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Label" id="label4">
- <property name="MemberName" />
- <property name="Xalign">0</property>
- <property name="LabelProp" translatable="yes">Parameters:</property>
- </widget>
- <packing>
- <property name="TopAttach">3</property>
- <property name="BottomAttach">4</property>
- <property name="XPadding">15</property>
- <property name="AutoSize">True</property>
- <property name="XOptions">Fill</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">False</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Entry" id="outputNameTextEntry">
- <property name="MemberName" />
- <property name="CanFocus">True</property>
- <property name="IsEditable">True</property>
- <property name="InvisibleChar">●</property>
- </widget>
- <packing>
- <property name="TopAttach">1</property>
- <property name="BottomAttach">2</property>
- <property name="LeftAttach">1</property>
- <property name="RightAttach">2</property>
- <property name="AutoSize">True</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">True</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Entry" id="parametersTextEntry">
- <property name="MemberName" />
- <property name="CanFocus">True</property>
- <property name="IsEditable">True</property>
- <property name="InvisibleChar">●</property>
- </widget>
- <packing>
- <property name="TopAttach">3</property>
- <property name="BottomAttach">4</property>
- <property name="LeftAttach">1</property>
- <property name="RightAttach">2</property>
- <property name="AutoSize">True</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">True</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="Position">0</property>
- <property name="AutoSize">True</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.CheckButton" id="externalConsoleCheckbox">
- <property name="MemberName" />
- <property name="CanFocus">True</property>
- <property name="Label" translatable="yes">Run on e_xternal console</property>
- <property name="Active">True</property>
- <property name="DrawIndicator">True</property>
- <property name="HasLabel">True</property>
- <property name="UseUnderline">True</property>
- <signal name="Clicked" handler="OnExternalConsoleCheckboxClicked" />
- </widget>
- <packing>
- <property name="Position">1</property>
- <property name="AutoSize">True</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.CheckButton" id="pauseCheckbox">
- <property name="MemberName" />
- <property name="Sensitive">False</property>
- <property name="CanFocus">True</property>
- <property name="Label" translatable="yes">Pause _console output</property>
- <property name="DrawIndicator">True</property>
- <property name="HasLabel">True</property>
- <property name="UseUnderline">True</property>
- </widget>
- <packing>
- <property name="Position">2</property>
- <property name="AutoSize">True</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- </widget>
- </child>
- </widget>
- <widget class="Gtk.Bin" id="MonoDevelop.ValaBinding.GeneralOptionsPanel" design-size="457 300">
- <property name="MemberName" />
- <child>
- <widget class="Gtk.Table" id="table1">
- <property name="MemberName" />
- <property name="NRows">3</property>
- <property name="NColumns">3</property>
- <property name="RowSpacing">6</property>
- <property name="ColumnSpacing">6</property>
- <child>
- <placeholder />
- </child>
- <child>
- <placeholder />
- </child>
- <child>
- <placeholder />
- </child>
- <child>
- <placeholder />
- </child>
- <child>
- <placeholder />
- </child>
- <child>
- <placeholder />
- </child>
- <child>
- <placeholder />
- </child>
- <child>
- <widget class="Gtk.Label" id="label1">
- <property name="MemberName" />
- <property name="Xpad">10</property>
- <property name="Xalign">0</property>
- <property name="LabelProp" translatable="yes">Default Vala Compiler:</property>
- </widget>
- <packing>
- <property name="AutoSize">True</property>
- <property name="XOptions">Fill</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">False</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.ComboBox" id="valaCombo">
- <property name="MemberName" />
- <property name="Tooltip" translatable="yes">Default compiler to use for new C projects.</property>
- <property name="IsTextCombo">True</property>
- <property name="Items" translatable="yes" />
- <signal name="Changed" handler="OnValaComboChanged" />
- </widget>
- <packing>
- <property name="LeftAttach">1</property>
- <property name="RightAttach">2</property>
- <property name="AutoSize">True</property>
- <property name="XOptions">Fill</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">False</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- </widget>
- </child>
- </widget>
- <widget class="Gtk.Dialog" id="MonoDevelop.ValaBinding.EditPackagesDialog" design-size="580 449">
- <property name="MemberName" />
- <property name="Title" translatable="yes">Edit packages</property>
- <property name="Modal">True</property>
- <property name="Buttons">2</property>
- <property name="HelpButton">False</property>
- <child internal-child="VBox">
- <widget class="Gtk.VBox" id="dialog1_VBox">
- <property name="MemberName" />
- <property name="BorderWidth">2</property>
- <child>
- <widget class="Gtk.VPaned" id="vpaned1">
- <property name="MemberName" />
- <property name="CanFocus">True</property>
- <property name="Position">183</property>
- <property name="BorderWidth">6</property>
- <child>
- <widget class="Gtk.HBox" id="hbox1">
- <property name="MemberName" />
- <property name="Spacing">6</property>
- <child>
- <widget class="Gtk.Notebook" id="notebook1">
- <property name="MemberName" />
- <property name="CanFocus">True</property>
- <property name="CurrentPage">0</property>
- <child>
- <widget class="Gtk.ScrolledWindow" id="scrolledwindow1">
- <property name="MemberName" />
- <property name="CanFocus">True</property>
- <property name="ShadowType">In</property>
- <child>
- <widget class="Gtk.TreeView" id="normalPackageTreeView">
- <property name="MemberName" />
- <property name="CanFocus">True</property>
- <signal name="CursorChanged" handler="OnNonSelectedPackageCursorChanged" />
- </widget>
- </child>
- </widget>
- </child>
- <child>
- <widget class="Gtk.Label" id="label1">
- <property name="MemberName" />
- <property name="LabelProp" translatable="yes">System Packages</property>
- </widget>
- <packing>
- <property name="type">tab</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.ScrolledWindow" id="scrolledwindow3">
- <property name="MemberName" />
- <property name="CanFocus">True</property>
- <property name="ShadowType">In</property>
- <child>
- <widget class="Gtk.TreeView" id="projectPackageTreeView">
- <property name="MemberName" />
- <property name="CanFocus">True</property>
- <signal name="CursorChanged" handler="OnNonSelectedPackageCursorChanged" />
- </widget>
- </child>
- </widget>
- <packing>
- <property name="Position">1</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Label" id="label2">
- <property name="MemberName" />
- <property name="LabelProp" translatable="yes">Project Packages</property>
- </widget>
- <packing>
- <property name="type">tab</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="Position">0</property>
- <property name="AutoSize">True</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.VBox" id="vbox3">
- <property name="MemberName" />
- <property name="Spacing">6</property>
- <child>
- <widget class="Gtk.Fixed" id="fixed1">
- <property name="MemberName" />
- <property name="HeightRequest">21</property>
- <property name="HasWindow">False</property>
- </widget>
- <packing>
- <property name="Position">0</property>
- <property name="AutoSize">False</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Button" id="detailsButton">
- <property name="MemberName" />
- <property name="WidthRequest">33</property>
- <property name="HeightRequest">33</property>
- <property name="Sensitive">False</property>
- <property name="CanFocus">True</property>
- <property name="Type">TextOnly</property>
- <property name="Label" translatable="yes">...</property>
- <property name="UseUnderline">True</property>
- <signal name="Clicked" handler="OnDetailsButtonClicked" />
- </widget>
- <packing>
- <property name="Position">1</property>
- <property name="AutoSize">True</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <placeholder />
- </child>
- </widget>
- <packing>
- <property name="Position">1</property>
- <property name="AutoSize">True</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <placeholder />
- </child>
- </widget>
- <packing>
- <property name="Resize">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Table" id="table1">
- <property name="MemberName" />
- <property name="NRows">2</property>
- <property name="NColumns">2</property>
- <property name="RowSpacing">6</property>
- <property name="ColumnSpacing">6</property>
- <child>
- <placeholder />
- </child>
- <child>
- <widget class="Gtk.Label" id="label3">
- <property name="MemberName" />
- <property name="Xalign">0</property>
- <property name="Yalign">0</property>
- <property name="LabelProp" translatable="yes">Selected packages:</property>
- </widget>
- <packing>
- <property name="AutoSize">False</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">True</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.ScrolledWindow" id="scrolledwindow2">
- <property name="MemberName" />
- <property name="CanFocus">True</property>
- <property name="ShadowType">In</property>
- <child>
- <widget class="Gtk.TreeView" id="selectedPackageTreeView">
- <property name="MemberName" />
- <property name="CanFocus">True</property>
- <signal name="CursorChanged" handler="OnSelectedPackagesTreeViewCursorChanged" />
- </widget>
- </child>
- </widget>
- <packing>
- <property name="TopAttach">1</property>
- <property name="BottomAttach">2</property>
- <property name="AutoSize">True</property>
- <property name="XOptions">Fill</property>
- <property name="XExpand">False</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">True</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.VBox" id="vbox2">
- <property name="MemberName" />
- <property name="Spacing">6</property>
- <child>
- <widget class="Gtk.Button" id="removeButton">
- <property name="MemberName" />
- <property name="WidthRequest">33</property>
- <property name="HeightRequest">33</property>
- <property name="Sensitive">False</property>
- <property name="Tooltip">Remove selected package from the project.</property>
- <property name="CanFocus">True</property>
- <property name="Type">TextAndIcon</property>
- <property name="Icon">stock:gtk-remove Menu</property>
- <property name="Label" />
- <property name="UseUnderline">True</property>
- <signal name="Clicked" handler="OnRemoveButtonClicked" />
- <signal name="Clicked" handler="OnRemoveButtonClick" />
- </widget>
- <packing>
- <property name="Position">0</property>
- <property name="AutoSize">False</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <placeholder />
- </child>
- <child>
- <placeholder />
- </child>
- </widget>
- <packing>
- <property name="TopAttach">1</property>
- <property name="BottomAttach">2</property>
- <property name="LeftAttach">1</property>
- <property name="RightAttach">2</property>
- <property name="AutoSize">True</property>
- <property name="XOptions">Fill</property>
- <property name="XExpand">False</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">True</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- </widget>
- </child>
- </widget>
- <packing>
- <property name="Position">0</property>
- <property name="AutoSize">True</property>
- <property name="Padding">3</property>
- </packing>
- </child>
- </widget>
- </child>
- <child internal-child="ActionArea">
- <widget class="Gtk.HButtonBox" id="dialog1_ActionArea">
- <property name="MemberName" />
- <property name="Spacing">6</property>
- <property name="BorderWidth">5</property>
- <property name="Size">2</property>
- <property name="LayoutStyle">End</property>
- <child>
- <widget class="Gtk.Button" id="buttonCancel">
- <property name="MemberName" />
- <property name="CanDefault">True</property>
- <property name="CanFocus">True</property>
- <property name="UseStock">True</property>
- <property name="Type">StockItem</property>
- <property name="StockId">gtk-cancel</property>
- <property name="ResponseId">-6</property>
- <signal name="Clicked" handler="OnCancelButtonClick" />
- <property name="label">gtk-cancel</property>
- </widget>
- <packing>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Button" id="buttonOk">
- <property name="MemberName" />
- <property name="CanDefault">True</property>
- <property name="CanFocus">True</property>
- <property name="UseStock">True</property>
- <property name="Type">StockItem</property>
- <property name="StockId">gtk-ok</property>
- <property name="ResponseId">-5</property>
- <signal name="Clicked" handler="OnOkButtonClick" />
- <property name="label">gtk-ok</property>
- </widget>
- <packing>
- <property name="Position">1</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- </widget>
- </child>
- </widget>
- <widget class="Gtk.Dialog" id="MonoDevelop.ValaBinding.PackageDetails" design-size="608 518">
- <property name="MemberName" />
- <property name="Title" translatable="yes">Package Details</property>
- <property name="WindowPosition">CenterOnParent</property>
- <property name="Buttons">1</property>
- <property name="HelpButton">False</property>
- <child internal-child="VBox">
- <widget class="Gtk.VBox" id="dialog1_VBox">
- <property name="MemberName" />
- <property name="BorderWidth">2</property>
- <child>
- <widget class="Gtk.VBox" id="vbox3">
- <property name="MemberName" />
- <property name="Spacing">6</property>
- <property name="BorderWidth">3</property>
- <child>
- <widget class="Gtk.Table" id="table1">
- <property name="MemberName" />
- <property name="NRows">3</property>
- <property name="NColumns">2</property>
- <property name="RowSpacing">6</property>
- <property name="ColumnSpacing">6</property>
- <child>
- <widget class="Gtk.Label" id="descriptionLabel">
- <property name="MemberName" />
- <property name="Xalign">0</property>
- <property name="Yalign">0</property>
- <property name="LabelProp" translatable="yes">label12</property>
- </widget>
- <packing>
- <property name="TopAttach">2</property>
- <property name="BottomAttach">3</property>
- <property name="LeftAttach">1</property>
- <property name="RightAttach">2</property>
- <property name="AutoSize">True</property>
- <property name="XOptions">Fill</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">False</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Label" id="label7">
- <property name="MemberName" />
- <property name="Xalign">0</property>
- <property name="LabelProp" translatable="yes">Name:</property>
- </widget>
- <packing>
- <property name="AutoSize">True</property>
- <property name="XOptions">Fill</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">False</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Label" id="label8">
- <property name="MemberName" />
- <property name="Xalign">0</property>
- <property name="LabelProp" translatable="yes">Version:</property>
- </widget>
- <packing>
- <property name="TopAttach">1</property>
- <property name="BottomAttach">2</property>
- <property name="AutoSize">True</property>
- <property name="XOptions">Fill</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">False</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Label" id="label9">
- <property name="MemberName" />
- <property name="Xalign">0</property>
- <property name="Yalign">0</property>
- <property name="LabelProp" translatable="yes">Description:</property>
- </widget>
- <packing>
- <property name="TopAttach">2</property>
- <property name="BottomAttach">3</property>
- <property name="AutoSize">True</property>
- <property name="XOptions">Fill</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">False</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Label" id="nameLabel">
- <property name="MemberName" />
- <property name="Xalign">0</property>
- <property name="LabelProp" translatable="yes">label10</property>
- </widget>
- <packing>
- <property name="LeftAttach">1</property>
- <property name="RightAttach">2</property>
- <property name="AutoSize">True</property>
- <property name="XOptions">Fill</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">False</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Label" id="versionLabel">
- <property name="MemberName" />
- <property name="Xalign">0</property>
- <property name="LabelProp" translatable="yes">label11</property>
- </widget>
- <packing>
- <property name="TopAttach">1</property>
- <property name="BottomAttach">2</property>
- <property name="LeftAttach">1</property>
- <property name="RightAttach">2</property>
- <property name="AutoSize">True</property>
- <property name="XOptions">Fill</property>
- <property name="YOptions">Fill</property>
- <property name="XExpand">False</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">False</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="Position">0</property>
- <property name="AutoSize">True</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.VBox" id="vbox4">
- <property name="MemberName" />
- <property name="Spacing">6</property>
- <child>
- <widget class="Gtk.Label" id="label13">
- <property name="MemberName" />
- <property name="Xalign">0</property>
- <property name="LabelProp" translatable="yes">Requires:</property>
- </widget>
- <packing>
- <property name="Position">0</property>
- <property name="AutoSize">True</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.ScrolledWindow" id="scrolledwindow1">
- <property name="MemberName" />
- <property name="CanFocus">True</property>
- <property name="ShadowType">In</property>
- <child>
- <widget class="Gtk.Viewport" id="GtkViewport">
- <property name="MemberName" />
- <property name="ShadowType">None</property>
- <child>
- <widget class="Gtk.TreeView" id="requiresTreeView">
- <property name="MemberName" />
- <property name="CanFocus">True</property>
- <property name="ShowScrollbars">True</property>
- </widget>
- </child>
- </widget>
- </child>
- </widget>
- <packing>
- <property name="Position">1</property>
- <property name="AutoSize">True</property>
- </packing>
- </child>
- <child>
- <placeholder />
- </child>
- </widget>
- <packing>
- <property name="Position">1</property>
- <property name="AutoSize">True</property>
- </packing>
- </child>
- <child>
- <placeholder />
- </child>
- <child>
- <placeholder />
- </child>
- </widget>
- <packing>
- <property name="Position">0</property>
- <property name="AutoSize">True</property>
- </packing>
- </child>
- </widget>
- </child>
- <child internal-child="ActionArea">
- <widget class="Gtk.HButtonBox" id="dialog1_ActionArea">
- <property name="MemberName" />
- <property name="Spacing">6</property>
- <property name="BorderWidth">5</property>
- <property name="Size">1</property>
- <property name="LayoutStyle">End</property>
- <child>
- <widget class="Gtk.Button" id="buttonOk">
- <property name="MemberName" />
- <property name="CanDefault">True</property>
- <property name="CanFocus">True</property>
- <property name="UseStock">True</property>
- <property name="Type">StockItem</property>
- <property name="StockId">gtk-ok</property>
- <property name="ResponseId">-5</property>
- <signal name="Clicked" handler="OnButtonOkClicked" />
- <property name="label">gtk-ok</property>
- </widget>
- <packing>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
- </child>
- </widget>
- </child>
- </widget>
-</stetic-interface>
diff --git a/extras/ValaBinding/gtk-gui/objects.xml b/extras/ValaBinding/gtk-gui/objects.xml
deleted file mode 100644
index 2c33b19d32..0000000000
--- a/extras/ValaBinding/gtk-gui/objects.xml
+++ /dev/null
@@ -1,2 +0,0 @@
-<objects attr-sync="on">
-</objects> \ No newline at end of file
diff --git a/extras/ValaBinding/icons/Icons.16x16.PrivateUnion b/extras/ValaBinding/icons/Icons.16x16.PrivateUnion
deleted file mode 100644
index cc32f48cb7..0000000000
--- a/extras/ValaBinding/icons/Icons.16x16.PrivateUnion
+++ /dev/null
Binary files differ
diff --git a/extras/ValaBinding/icons/Icons.16x16.ProjectReference b/extras/ValaBinding/icons/Icons.16x16.ProjectReference
deleted file mode 100644
index 1a80ef91f0..0000000000
--- a/extras/ValaBinding/icons/Icons.16x16.ProjectReference
+++ /dev/null
Binary files differ
diff --git a/extras/ValaBinding/icons/Icons.16x16.ProtectedUnion b/extras/ValaBinding/icons/Icons.16x16.ProtectedUnion
deleted file mode 100644
index df75b65512..0000000000
--- a/extras/ValaBinding/icons/Icons.16x16.ProtectedUnion
+++ /dev/null
Binary files differ
diff --git a/extras/ValaBinding/icons/Icons.16x16.Union b/extras/ValaBinding/icons/Icons.16x16.Union
deleted file mode 100644
index 40aae0f994..0000000000
--- a/extras/ValaBinding/icons/Icons.16x16.Union
+++ /dev/null
Binary files differ
diff --git a/extras/ValaBinding/icons/text-x-vala.16x16.png b/extras/ValaBinding/icons/text-x-vala.16x16.png
deleted file mode 100644
index 0fe1f50178..0000000000
--- a/extras/ValaBinding/icons/text-x-vala.16x16.png
+++ /dev/null
Binary files differ
diff --git a/extras/ValaBinding/icons/text-x-vala.24x24.png b/extras/ValaBinding/icons/text-x-vala.24x24.png
deleted file mode 100644
index daa22b6130..0000000000
--- a/extras/ValaBinding/icons/text-x-vala.24x24.png
+++ /dev/null
Binary files differ
diff --git a/extras/ValaBinding/icons/text-x-vala.32x32.png b/extras/ValaBinding/icons/text-x-vala.32x32.png
deleted file mode 100644
index d2e90a000e..0000000000
--- a/extras/ValaBinding/icons/text-x-vala.32x32.png
+++ /dev/null
Binary files differ
diff --git a/extras/ValaBinding/icons/text-x-vala.48x48.png b/extras/ValaBinding/icons/text-x-vala.48x48.png
deleted file mode 100644
index b7def393e4..0000000000
--- a/extras/ValaBinding/icons/text-x-vala.48x48.png
+++ /dev/null
Binary files differ
diff --git a/extras/ValaBinding/icons/vala-icon-32.png b/extras/ValaBinding/icons/vala-icon-32.png
deleted file mode 100644
index 528a7e6bdb..0000000000
--- a/extras/ValaBinding/icons/vala-icon-32.png
+++ /dev/null
Binary files differ
diff --git a/extras/ValaBinding/icons/vala-icon-base.xcf b/extras/ValaBinding/icons/vala-icon-base.xcf
deleted file mode 100644
index 5e6ca0898c..0000000000
--- a/extras/ValaBinding/icons/vala-icon-base.xcf
+++ /dev/null
Binary files differ
diff --git a/extras/ValaBinding/monodevelop-vala.spec.in b/extras/ValaBinding/monodevelop-vala.spec.in
deleted file mode 100644
index e51917240b..0000000000
--- a/extras/ValaBinding/monodevelop-vala.spec.in
+++ /dev/null
@@ -1,67 +0,0 @@
-#
-# spec file for package monodevelop-vala
-#
-# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
-#
-# All modifications and additions to the file contributed by third parties
-# remain the property of their copyright owners, unless otherwise agreed
-# upon. The license for this file, and modifications and additions to the
-# file, is the same license as for the pristine package itself (unless the
-# license for the pristine package is not an Open Source License, in which
-# case the license is the MIT License). An "Open Source License" is a
-# license that conforms to the Open Source Definition (Version 1.9)
-# published by the Open Source Initiative.
-
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
-#
-
-
-
-Name: monodevelop-vala
-Version: @VERSION@
-Release: 1
-License: MIT/X11
-AutoReqProv: on
-BuildArch: noarch
-Url: http://www.monodevelop.com
-Source: %{name}-%{version}.tar.bz2
-BuildRoot: %{_tmppath}/%{name}-%{version}-build
-BuildRequires: mono-devel monodevelop >= %{version}
-Requires: vala
-Summary: Monodevelop Vala Addin
-Group: Development/Tools
-
-%if 0%{?fedora_version}
-%define env_options export MONO_SHARED_DIR=/tmp
-%endif
-
-%description
-Vala language support for MonoDevelop.
-
-%files
-%defattr(-, root, root)
-%_prefix/lib/monodevelop/AddIns/BackendBindings/MonoDevelop.ValaBinding.dll
-
-%prep
-%setup -q
-
-%build
-%{?env_options}
-./configure --prefix=%_prefix
-make
-
-%install
-%{?env_options}
-make install DESTDIR=${RPM_BUILD_ROOT}
-
-%clean
-rm -rf "$RPM_BUILD_ROOT"
-
-%if 0%{?fedora_version} || 0%{?rhel_version}
-# Allows overrides of __find_provides in fedora distros... (already set to zero on newer suse distros)
-%define _use_internal_dependency_generator 0
-%endif
-%define __find_provides env sh -c 'filelist=($(cat)) && { printf "%s\\n" "${filelist[@]}" | /usr/lib/rpm/find-provides && printf "%s\\n" "${filelist[@]}" | /usr/bin/mono-find-provides ; } | sort | uniq'
-%define __find_requires env sh -c 'filelist=($(cat)) && { printf "%s\\n" "${filelist[@]}" | /usr/lib/rpm/find-requires && printf "%s\\n" "${filelist[@]}" | /usr/bin/mono-find-requires ; } | sort | uniq'
-
-%changelog
diff --git a/extras/ValaBinding/templates/ConsoleValaProject.xpt.xml b/extras/ValaBinding/templates/ConsoleValaProject.xpt.xml
deleted file mode 100644
index 8b9cd20406..0000000000
--- a/extras/ValaBinding/templates/ConsoleValaProject.xpt.xml
+++ /dev/null
@@ -1,40 +0,0 @@
-<?xml version="1.0"?>
-<Template
- originator = "Levi Bard"
- created = "03/11/2008"
- lastModified = "03/11/2008">
-
- <!-- Template Header -->
- <TemplateConfiguration>
- <_Name>Console Project</_Name>
- <_Category>Vala</_Category>
- <Icon>md-project-console|res:vala-icon-32.png</Icon>
- <LanguageName>Vala</LanguageName>
- <_Description>Creates a simple hello world Vala project.</_Description>
- </TemplateConfiguration>
-
- <!-- Template Content -->
- <Combine name = "${ProjectName}" directory = ".">
- <Project name = "${ProjectName}" directory = "." type = "Vala">
- <Options
- Target = "Bin"
- PauseConsoleOutput = "True"
- CompilerArgs = ""
- LinkerArgs = ""
- Packages = "glib-2.0"
- />
-
- <Files>
- <File name = "main.vala" AddStandardHeader ="True"><![CDATA[using GLib;
-
-public class HelloVala: GLib.Object {
- public static int main (string[] args) {
- stdout.printf ("Hello world!\n");
-
- return 0;
- }
-}]]></File>
- </Files>
- </Project>
- </Combine>
-</Template>
diff --git a/extras/ValaBinding/templates/EmptyValaProject.xpt.xml b/extras/ValaBinding/templates/EmptyValaProject.xpt.xml
deleted file mode 100644
index 7b0a347694..0000000000
--- a/extras/ValaBinding/templates/EmptyValaProject.xpt.xml
+++ /dev/null
@@ -1,28 +0,0 @@
-<?xml version="1.0"?>
-<Template
- originator = "Levi Bard"
- created = "03/11/2008"
- lastModified = "03/11/2008">
-
- <!-- Template Header -->
- <TemplateConfiguration>
- <_Name>Empty Vala Project</_Name>
- <_Category>Vala</_Category>
- <Icon>md-project|res:vala-icon-32.png</Icon>
- <LanguageName>Vala</LanguageName>
- <_Description>Creates an empty Vala solution.</_Description>
- </TemplateConfiguration>
-
- <!-- Template Content -->
- <Combine name = "${ProjectName}" directory = ".">
- <Project name = "${ProjectName}" directory = "." type = "Vala">
- <Options
- Target = "Bin"
- PauseConsoleOutput = "True"
- CompilerArgs = ""
- LinkerArgs = ""
- Packages = "glib-2.0"
- />
- </Project>
- </Combine>
-</Template>
diff --git a/extras/ValaBinding/templates/EmptyValaSourceFile.xft.xml b/extras/ValaBinding/templates/EmptyValaSourceFile.xft.xml
deleted file mode 100644
index 2165c056ca..0000000000
--- a/extras/ValaBinding/templates/EmptyValaSourceFile.xft.xml
+++ /dev/null
@@ -1,22 +0,0 @@
-<?xml version="1.0"?>
-<Template
- Originator="Levi Bard"
- Language="Vala"
- Created="03/11/2008"
- LastModified="03/11/2008">
-
- <TemplateConfiguration>
- <_Name>Empty Vala Source File</_Name>
- <Icon>res:text-x-vala.32x32.png</Icon>
- <_Category>General</_Category>
- <LanguageName>Vala</LanguageName>
- <_Description>Creates an empty Vala source file.</_Description>
- </TemplateConfiguration>
-
- <TemplateFiles>
- <File DefaultExtension=".vala" DefaultName="EmptyValaSourceFile" AddStandardHeader ="True"/>
- </TemplateFiles>
-
- <FileOptions/>
-
-</Template>
diff --git a/extras/ValaBinding/templates/Makefile.am.template b/extras/ValaBinding/templates/Makefile.am.template
deleted file mode 100644
index 77af3a283d..0000000000
--- a/extras/ValaBinding/templates/Makefile.am.template
+++ /dev/null
@@ -1,23 +0,0 @@
-
-# Warning: This is an automatically generated file, do not edit!
-
-VTARGET = %%VTARGET%%
-CLEANFILES = $(VTARGET)
-
-include $(top_srcdir)/Makefile.include
-
-PACKAGE = @PACKAGE@
-BUILD_DIR = %%BUILD_DIR%%
-INSTALL_DIR = %%INSTALL_DIR%%
-
-FILES = %%FILES%%
-VFLAGS = %%VFLAGS%%
-
-install:
-
-uninstall:
-
-all:
- mkdir -p $(BUILD_DIR)
- valac $(VFLAGS) -o $(VTARGET) $(FILES)
-
diff --git a/extras/ValaBinding/templates/Makefile.template b/extras/ValaBinding/templates/Makefile.template
deleted file mode 100644
index b8f2b25a37..0000000000
--- a/extras/ValaBinding/templates/Makefile.template
+++ /dev/null
@@ -1,26 +0,0 @@
-
-# Warning: This is an automatically generated file, do not edit!
-
-srcdir=.
-top_srcdir=%%TOP_SRCDIR%%
-
-include $(top_srcdir)/Makefile.include
-include $(top_srcdir)/config.make
-
-BUILD_DIR = %%BUILD_DIR%%
-INSTALL_DIR = %%INSTALL_DIR%%
-
-FILES = %%FILES%%
-VFLAGS = %%VFLAGS%%
-VTARGET = %%VTARGET%%
-
-all: $(VTARGET)
-
-install:
-
-uninstall:
-
-$(VTARGET):
- mkdir -p $(BUILD_DIR)
- valac $(VFLAGS) -o $(VTARGET) $(FILES)
-
diff --git a/extras/ValaBinding/templates/SharedLibraryValaProject.xpt.xml b/extras/ValaBinding/templates/SharedLibraryValaProject.xpt.xml
deleted file mode 100644
index 2b49bf95b0..0000000000
--- a/extras/ValaBinding/templates/SharedLibraryValaProject.xpt.xml
+++ /dev/null
@@ -1,33 +0,0 @@
-<?xml version="1.0"?>
-<Template
- originator = "Levi Bard"
- created = "03/12/2008"
- lastModified = "03/12/2008">
-
- <!-- Template Header -->
- <TemplateConfiguration>
- <_Name>Shared Library</_Name>
- <_Category>Vala</_Category>
- <Icon>md-project-library|res:vala-icon-32.png</Icon>
- <LanguageName>Vala</LanguageName>
- <_Description>Creates a simple shared library Vala project.</_Description>
- </TemplateConfiguration>
-
- <!-- Template Content -->
- <Combine name = "${ProjectName}" directory = ".">
- <Project name = "${ProjectName}" directory = "." type = "Vala">
- <Options
- Target = "SharedLibrary"
- PauseConsoleOutput = "True"
- CompilerArgs = ""
- Packages = "glib-2.0"
- />
-
- <Files>
- <File name = "main.vala" AddStandardHeader ="True"><![CDATA[// Library content goes here
-
-]]></File>
- </Files>
- </Project>
- </Combine>
-</Template>
diff --git a/extras/ValaBinding/templates/ValaTestFixture.xpt.xml b/extras/ValaBinding/templates/ValaTestFixture.xpt.xml
deleted file mode 100644
index 6b802ffd5f..0000000000
--- a/extras/ValaBinding/templates/ValaTestFixture.xpt.xml
+++ /dev/null
@@ -1,48 +0,0 @@
-<?xml version="1.0"?>
-<Template
- originator = "Levi Bard"
- created = "08/12/2008"
- lastModified = "08/12/2008">
-
- <!-- Template Header -->
- <TemplateConfiguration>
- <_Name>Test Fixture</_Name>
- <_Category>Vala</_Category>
- <Icon>md-project-console|res:vala-icon-32.png</Icon>
- <LanguageName>Vala</LanguageName>
- <_Description>Creates a Vala test fixture.</_Description>
- </TemplateConfiguration>
-
- <!-- Template Content -->
- <Combine name = "${ProjectName}" directory = ".">
- <Project name = "${ProjectName}" directory = "." type = "Vala">
- <Options
- Target = "Bin"
- PauseConsoleOutput = "True"
- CompilerArgs = ""
- LinkerArgs = ""
- Packages = "glib-2.0"
- />
-
- <Files>
- <File name = "main.vala" AddStandardHeader ="True"><![CDATA[using GLib;
-
-public class MyValaTest: GLib.Object {
- public static void doTest() {
- // Test code goes here
- }
-
- public static int main (string[] args) {
- Test.init(ref args);
-
- Test.add_func ("/MyValaTest/MyTest", doTest);
-
- Test.run();
-
- return 0;
- }
-}]]></File>
- </Files>
- </Project>
- </Combine>
-</Template>
diff --git a/extras/WebKitWebBrowser/AssemblyInfo.cs b/extras/WebKitWebBrowser/AssemblyInfo.cs
deleted file mode 100644
index 40d5744452..0000000000
--- a/extras/WebKitWebBrowser/AssemblyInfo.cs
+++ /dev/null
@@ -1,9 +0,0 @@
-// Autogenerated from MonoDevelop.WebBrowsers.WebKitWebBrowser.addin.xml
-
-using System.Reflection;
-
-[assembly: AssemblyProduct ("MonoDevelop")]
-[assembly: AssemblyTitle ("WebKit Web Browser")]
-[assembly: AssemblyDescription ("WebKit Web Browser component")]
-[assembly: AssemblyVersion ("2.6")]
-[assembly: AssemblyCopyright ("MIT X11")]
diff --git a/extras/WebKitWebBrowser/Makefile b/extras/WebKitWebBrowser/Makefile
deleted file mode 100644
index f60f1c4e1a..0000000000
--- a/extras/WebKitWebBrowser/Makefile
+++ /dev/null
@@ -1,72 +0,0 @@
-
-EXTRA_DIST = WebKitWebBrowser.make rules.make configure Makefile.include
-
-all: all-recursive
-
-top_srcdir=.
-include $(top_srcdir)/config.make
-include $(top_srcdir)/rules.make
-
-#include $(top_srcdir)/custom-hooks.make
-
-#Warning: This is an automatically generated file, do not edit!
-ifeq ($(CONFIG),DEBUG)
- SUBDIRS = .
-endif
-ifeq ($(CONFIG),RELEASE)
- SUBDIRS = .
-endif
-
-# Include project specific makefile
-include WebKitWebBrowser.make
-
-CONFIG_MAKE=$(top_srcdir)/config.make
-
-%-recursive: $(CONFIG_MAKE)
- @set . $$MAKEFLAGS; final_exit=:; \
- case $$2 in --unix) shift ;; esac; \
- case $$2 in *=*) dk="exit 1" ;; *k*) dk=: ;; *) dk="exit 1" ;; esac; \
- make pre-$*-hook prefix=$(prefix) ; \
- for dir in $(SUBDIRS); do \
- case $$dir in \
- .) make $*-local || { final_exit="exit 1"; $$dk; };;\
- *) (cd $$dir && make $*) || { final_exit="exit 1"; $$dk; };;\
- esac \
- done; \
- make post-$*-hook prefix=$(prefix) ; \
- $$final_exit
-
-$(CONFIG_MAKE):
- echo "You must run configure first"
- exit 1
-
-clean: clean-recursive
-install: install-recursive
-uninstall: uninstall-recursive
-
-dist: $(CONFIG_MAKE)
- rm -rf $(PACKAGE)-$(VERSION)
- mkdir $(PACKAGE)-$(VERSION)
- make pre-dist-hook distdir=$$distdir
- for dir in $(SUBDIRS); do \
- pkgdir=`pwd`/$(PACKAGE)-$(VERSION); \
- mkdir $$pkgdir/$$dir || true; \
- case $$dir in \
- .) make dist-local distdir=$$pkgdir || exit 1;; \
- *) (cd $$dir; make dist-local distdir=$$pkgdir/$$dir) || exit 1;; \
- esac \
- done
- (make dist-local distdir=$(PACKAGE)-$(VERSION))
- make post-dist-hook distsir=$$distdir
- tar czvf $(PACKAGE)-$(VERSION).tar.gz $(PACKAGE)-$(VERSION)
- rm -rf $(PACKAGE)-$(VERSION)
- @echo "=========================================="
- @echo "$(PACKAGE)-$(VERSION) has been packaged > $(PACKAGE)-$(VERSION).tar.gz"
- @echo "=========================================="
-
-distcheck: dist
- (mkdir test; cd test; \
- tar xzvf ../$(PACKAGE)-$(VERSION).tar.gz; cd $(PACKAGE)-$(VERSION); \
- ./configure --prefix=$$(cd `pwd`/..; pwd); \
- make && make install && make dist);
- rm -rf test
diff --git a/extras/WebKitWebBrowser/Makefile.include b/extras/WebKitWebBrowser/Makefile.include
deleted file mode 100644
index c35d8b2ebc..0000000000
--- a/extras/WebKitWebBrowser/Makefile.include
+++ /dev/null
@@ -1,110 +0,0 @@
-VALID_CULTURES = ar bg ca zh-CHS cs da de el en es fi fr he hu is it ja ko nl no pl pt ro ru hr sk sq sv th tr id uk be sl et lv lt fa vi hy eu mk af fo hi sw gu ta te kn mr gl kok ar-SA bg-BG ca-ES zh-TW cs-CZ da-DK de-DE el-GR en-US fi-FI fr-FR he-IL hu-HU is-IS it-IT ja-JP ko-KR nl-NL nb-NO pl-PL pt-BR ro-RO ru-RU hr-HR sk-SK sq-AL sv-SE th-TH tr-TR id-ID uk-UA be-BY sl-SI et-EE lv-LV lt-LT fa-IR vi-VN hy-AM eu-ES mk-MK af-ZA fo-FO hi-IN sw-KE gu-IN ta-IN te-IN kn-IN mr-IN gl-ES kok-IN ar-IQ zh-CN de-CH en-GB es-MX fr-BE it-CH nl-BE nn-NO pt-PT sv-FI ar-EG zh-HK de-AT en-AU es-ES fr-CA ar-LY zh-SG de-LU en-CA es-GT fr-CH ar-DZ zh-MO en-NZ es-CR fr-LU ar-MA en-IE es-PA ar-TN en-ZA es-DO ar-OM es-VE ar-YE es-CO ar-SY es-PE ar-JO es-AR ar-LB en-ZW es-EC ar-KW en-PH es-CL ar-AE es-UY ar-BH es-PY ar-QA es-BO es-SV es-HN es-NI es-PR zh-CHT
-
-s2q=$(subst \ ,?,$1)
-q2s=$(subst ?,\ ,$1)
-# use this when result will be quoted
-unesc2=$(subst ?, ,$1)
-
-build_sources = $(FILES) $(GENERATED_FILES)
-build_sources_esc= $(call s2q,$(build_sources))
-# use unesc2, as build_sources_embed is quoted
-build_sources_embed= $(call unesc2,$(build_sources_esc:%='$(srcdir)/%'))
-
-comma__=,
-get_resource_name = $(firstword $(subst $(comma__), ,$1))
-get_culture = $(lastword $(subst ., ,$(basename $1)))
-is_cultured_resource = $(and $(word 3,$(subst ., ,$1)), $(filter $(VALID_CULTURES),$(lastword $(subst ., ,$(basename $1)))))
-
-RESOURCES_ESC=$(call s2q,$(RESOURCES))
-
-build_resx_list = $(foreach res, $(RESOURCES_ESC), $(if $(filter %.resx, $(call get_resource_name,$(res))),$(res),))
-build_non_culture_resx_list = $(foreach res, $(build_resx_list),$(if $(call is_cultured_resource,$(call get_resource_name,$(res))),,$(res)))
-build_non_culture_others_list = $(foreach res, $(filter-out $(build_resx_list),$(RESOURCES_ESC)),$(if $(call is_cultured_resource,$(call get_resource_name,$(res))),,$(res)))
-build_others_list = $(build_non_culture_others_list)
-build_xamlg_list = $(filter %.xaml.g.cs, $(FILES))
-
-# resgen all .resx resources
-build_resx_files = $(foreach res, $(build_resx_list), $(call get_resource_name,$(res)))
-build_resx_resources_esc = $(build_resx_files:.resx=.resources)
-build_resx_resources = $(call q2s,$(build_resx_resources_esc))
-
-# embed resources for the main assembly
-build_resx_resources_hack = $(subst .resx,.resources, $(build_non_culture_resx_list))
-# use unesc2, as build_resx_resources_embed is quoted
-build_resx_resources_embed = $(call unesc2,$(build_resx_resources_hack:%='-resource:%'))
-build_others_files = $(call q2s,$(foreach res, $(build_others_list),$(call get_resource_name,$(res))))
-build_others_resources = $(build_others_files)
-# use unesc2, as build_others_resources_embed is quoted
-build_others_resources_embed = $(call unesc2,$(build_others_list:%='-resource:$(srcdir)/%'))
-
-build_resources = $(build_resx_resources) $(build_others_resources)
-build_resources_embed = $(build_resx_resources_embed) $(build_others_resources_embed)
-
-# -usesourcepath is available only for resgen2
-emit_resgen_target_1=$(call q2s,$1) : $(call q2s,$(subst .resources,.resx,$1)); cd '$$(shell dirname '$$<')' && MONO_IOMAP=drive $$(RESGEN) '$$(shell basename '$$<')' '$$(shell basename '$$@')'
-emit_resgen_target_2=$(call q2s,$1) : $(call q2s,$(subst .resources,.resx,$1)); MONO_IOMAP=drive $$(RESGEN) -usesourcepath '$$<' '$$@'
-
-emit_resgen_target=$(if $(filter resgen2,$(RESGEN)),$(emit_resgen_target_2),$(emit_resgen_target_1))
-emit_resgen_targets=$(foreach res,$(build_resx_resources_esc),$(eval $(call emit_resgen_target,$(res))))
-
-build_references_ref = $(call q2s,$(foreach ref, $(call s2q,$(REFERENCES)), $(if $(filter -pkg:%, $(ref)), $(ref), $(if $(filter -r:%, $(ref)), $(ref), -r:$(ref)))))
-build_references_ref += $(call q2s,$(foreach ref, $(call s2q,$(DLL_REFERENCES)), -r:$(ref)))
-build_references_ref += $(call q2s,$(foreach ref, $(call s2q,$(PROJECT_REFERENCES)), -r:$(ref)))
-
-s2q2s=$(call unesc2,$(call s2q,$1))
-cp_actual=test -z $1 || cp $1 $2
-cp=$(call cp_actual,'$(call s2q2s,$1)','$(call s2q2s,$2)')
-
-rm_actual=test -z '$1' || rm -f '$2'
-rm=$(call rm_actual,$(call s2q2s,$1),$(call s2q2s,$2)/$(shell basename '$(call s2q2s,$1)'))
-
-EXTRA_DIST += $(build_sources) $(build_resx_files) $(build_others_files) $(ASSEMBLY_WRAPPER_IN) $(EXTRAS) $(DATA_FILES) $(build_culture_res_files)
-CLEANFILES += $(ASSEMBLY) $(ASSEMBLY).mdb $(BINARIES) $(build_resx_resources) $(build_satellite_assembly_list)
-DISTCLEANFILES = $(GENERATED_FILES) $(pc_files) $(BUILD_DIR)/*
-
-pkglib_SCRIPTS = $(ASSEMBLY)
-bin_SCRIPTS = $(BINARIES)
-
-programfilesdir = @libdir@/@PACKAGE@
-programfiles_DATA = $(PROGRAMFILES)
-linuxpkgconfigdir = @libdir@/pkgconfig
-linuxpkgconfig_DATA = $(LINUX_PKGCONFIG)
-
-
-# macros
-
-# $(call emit-deploy-target,deploy-variable-name)
-define emit-deploy-target
-$($1): $($1_SOURCE)
- mkdir -p '$$(shell dirname '$$@')'
- cp '$$<' '$$@'
-endef
-
-# $(call emit-deploy-wrapper,wrapper-variable-name,wrapper-sourcefile,x)
-# assumes that for a wrapper foo.pc its source template is foo.pc.in
-# if $3 is non-empty then wrapper is marked exec
-define emit-deploy-wrapper
-$($1): $2 $(top_srcdir)/config.make
- mkdir -p '$$(shell dirname '$$@')'
- cp '$$<' '$$@'
- $(if $3,chmod +x '$$@')
-
-$2: $2.in $(top_srcdir)/config.make
- sed -e "s,@prefix@,$(prefix)," -e "s,@PACKAGE@,$(PACKAGE)," -e "s,@expanded_libdir@,$(libdir)," -e "s,@expanded_bindir@,$(bindir)," -e "s,@expanded_datadir@,$(datadir)," < $2.in > $2
-endef
-
-# generating satellite assemblies
-
-culture_resources = $(foreach res, $(RESOURCES_ESC), $(if $(call is_cultured_resource,$(call get_resource_name, $(res))),$(res)))
-cultures = $(sort $(foreach res, $(culture_resources), $(call get_culture,$(call get_resource_name,$(res)))))
-culture_resource_dependencies = $(call q2s,$(BUILD_DIR)/$1/$(SATELLITE_ASSEMBLY_NAME): $(subst .resx,.resources,$2))
-culture_resource_commandlines = $(call unesc2,cmd_line_satellite_$1 += '/embed:$(subst .resx,.resources,$2)')
-build_satellite_assembly_list = $(call q2s,$(cultures:%=$(BUILD_DIR)/%/$(SATELLITE_ASSEMBLY_NAME)))
-build_culture_res_files = $(call q2s,$(foreach res, $(culture_resources),$(call get_resource_name,$(res))))
-
-$(eval $(foreach res, $(culture_resources), $(eval $(call culture_resource_dependencies,$(call get_culture,$(call get_resource_name,$(res))),$(call get_resource_name,$(res))))))
-$(eval $(foreach res, $(culture_resources), $(eval $(call culture_resource_commandlines,$(call get_culture,$(call get_resource_name,$(res))),$(res)))))
-
-$(build_satellite_assembly_list): $(BUILD_DIR)/%/$(SATELLITE_ASSEMBLY_NAME):
- mkdir -p '$(@D)'
- $(AL) -out:'$@' -culture:$* -t:lib $(cmd_line_satellite_$*) \ No newline at end of file
diff --git a/extras/WebKitWebBrowser/MonoDevelop.WebBrowsers.WebKitWebBrowser.addin.xml b/extras/WebKitWebBrowser/MonoDevelop.WebBrowsers.WebKitWebBrowser.addin.xml
deleted file mode 100644
index 3731a89227..0000000000
--- a/extras/WebKitWebBrowser/MonoDevelop.WebBrowsers.WebKitWebBrowser.addin.xml
+++ /dev/null
@@ -1,18 +0,0 @@
-<Addin id = "WebKitWebBrowser"
- namespace = "MonoDevelop"
- name = "WebKit Web Browser"
- author = "Eric Butler"
- copyright = "MIT X11"
- url = "http://www.monodevelop.com"
- description = "WebKit Web Browser component"
- category = "Platform Support"
- version = "4.2.3">
-
- <Dependencies>
- <Addin id = "Ide" version = "4.2.3"/>
- </Dependencies>
-
- <Extension path = "/MonoDevelop/Core/WebBrowsers">
- <Class id="WebKitWebBrowserLoader" class="MonoDevelop.WebBrowsers.WebKitWebBrowserLoader"/>
- </Extension>
-</Addin>
diff --git a/extras/WebKitWebBrowser/WebKitWebBrowser.cs b/extras/WebKitWebBrowser/WebKitWebBrowser.cs
deleted file mode 100644
index 371a1dbb7f..0000000000
--- a/extras/WebKitWebBrowser/WebKitWebBrowser.cs
+++ /dev/null
@@ -1,171 +0,0 @@
-//
-// WebKitWebBrowser.cs
-//
-// Author:
-// Eric Butler <eric@extremeboredom.net>
-//
-// Copyright (C) 2008 Eric Butler <eric@extremeboredom.net>
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-using System;
-using System.IO;
-using Gtk;
-using MonoDevelop.Ide.WebBrowser;
-
-namespace MonoDevelop.WebBrowsers
-{
- public class WebKitWebBrowser : ScrolledWindow, IWebBrowser
- {
- #region Private Class Variables
- WebKit.WebView webView;
- string jsStatus = null;
- string linkStatus = null;
- #endregion
-
- #region Constructor
- public WebKitWebBrowser ()
- {
- webView = new WebKit.WebView();
- Add(webView);
- webView.Show();
-
- #region WebView Events
- webView.StatusBarTextChanged += delegate (object o, WebKit.StatusBarTextChangedArgs args) {
- jsStatus = args.Value;
- if (JSStatusChanged != null)
- JSStatusChanged (this, new StatusMessageChangedEventArgs (jsStatus));
- };
-
- webView.HoveringOverLink += delegate (object o, WebKit.HoveringOverLinkArgs args) {
- linkStatus = args.Link;
- if (LinkStatusChanged != null)
- LinkStatusChanged (this, new StatusMessageChangedEventArgs (linkStatus));
- };
-
- webView.TitleChanged += delegate (object o, WebKit.TitleChangedArgs args) {
- if (TitleChanged != null)
- TitleChanged (this, new TitleChangedEventArgs(args.Title));
- };
-
- webView.NavigationRequested += delegate (object o, WebKit.NavigationRequestedArgs args) {
- // FIXME: There's currently no way to tell the difference
- // between a link being clicked and another navigation event.
- // This is a temporary workaround.
- if (args.Request.Uri == linkStatus) {
- if (LinkClicked != null)
- LinkClicked (this, new LocationChangingEventArgs(args.Request.Uri, false));
- } else {
- if (LocationChanged != null)
- LocationChanged (this, new LocationChangedEventArgs (args.Request.Uri));
- }
- args.RetVal = WebKit.NavigationResponse.Accept;
- };
-
- webView.LoadStarted += delegate {
- if (NetStart != null)
- NetStart (this, EventArgs.Empty);
- };
-
- webView.LoadFinished += delegate {
- if (NetStop != null)
- NetStop (this, EventArgs.Empty);
- };
-
- webView.LoadProgressChanged += delegate (object o, WebKit.LoadProgressChangedArgs args) {
- if (LoadingProgressChanged != null)
- LoadingProgressChanged(this, new LoadingProgressChangedEventArgs(args.Progress));
- };
-
- #endregion
- }
- #endregion
-
- #region IWebBrowser Interface Implementation
- string IWebBrowser.Title {
- get { return webView.MainFrame.Title; }
- }
-
- string IWebBrowser.JSStatus {
- get { return jsStatus; }
- }
-
- string IWebBrowser.LinkStatus {
- get { return linkStatus; }
- }
-
- string IWebBrowser.Location {
- get { return webView.MainFrame.Uri; }
- }
-
- bool IWebBrowser.CanGoBack {
- get { return webView.CanGoBack (); }
- }
-
- bool IWebBrowser.CanGoForward {
- get { return webView.CanGoForward (); }
- }
-
- void IWebBrowser.GoForward ()
- {
- webView.GoForward ();
- }
-
- void IWebBrowser.GoBack ()
- {
- webView.GoBack ();
- }
-
- void IWebBrowser.LoadUrl (string url)
- {
- webView.Open (url);
- }
-
- void IWebBrowser.LoadHtml (string html)
- {
- webView.LoadHtmlString (html, "tempfile://");
- }
-
- void IWebBrowser.Reload ()
- {
- webView.Reload ();
- }
-
- void IWebBrowser.StopLoad ()
- {
- webView.StopLoading ();
- }
- #endregion
-
- #region Public Events
- public event PageLoadedHandler PageLoaded; // FIXME: Not implemented
- public event LocationChangingHandler LocationChanging; // FIXME: Not implemented
- public event LocationChangingHandler LinkClicked;
- public event LocationChangedHandler LocationChanged;
- public event TitleChangedHandler TitleChanged;
- public event StatusMessageChangedHandler JSStatusChanged;
- public event StatusMessageChangedHandler LinkStatusChanged;
- public event LoadingProgressChangedHandler LoadingProgressChanged;
- public event EventHandler NetStart;
- public event EventHandler NetStop;
- #endregion
- }
-}
diff --git a/extras/WebKitWebBrowser/WebKitWebBrowser.csproj b/extras/WebKitWebBrowser/WebKitWebBrowser.csproj
deleted file mode 100644
index c4f67c41f8..0000000000
--- a/extras/WebKitWebBrowser/WebKitWebBrowser.csproj
+++ /dev/null
@@ -1,60 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <ProductVersion>8.0.50727</ProductVersion>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{899B43CC-CEBE-45F3-8219-1726C83BA74E}</ProjectGuid>
- <OutputType>Library</OutputType>
- <AssemblyName>WebKitWebBrowser</AssemblyName>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- <DebugSymbols>true</DebugSymbols>
- <DebugType>full</DebugType>
- <Optimize>false</Optimize>
- <OutputPath>build</OutputPath>
- <DefineConstants>DEBUG</DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- <DebugType>none</DebugType>
- <Optimize>false</Optimize>
- <OutputPath>bin\Release</OutputPath>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- </PropertyGroup>
- <ItemGroup>
- <Reference Include="System" />
- <Reference Include="Mono.Posix" />
- <Reference Include="MonoDevelop.Components, Version=1.9.0.0, Culture=neutral" />
- <Reference Include="MonoDevelop.Core, Version=1.9.0.0, Culture=neutral" />
- <Reference Include="MonoDevelop.Core.Gui, Version=1.9.0.0, Culture=neutral" />
- <Reference Include="MonoDevelop.Ide, Version=1.9.0.0, Culture=neutral" />
- <Reference Include="MonoDevelop.Projects, Version=1.9.0.0, Culture=neutral" />
- <Reference Include="MonoDevelop.Projects.Gui, Version=1.9.0.0, Culture=neutral" />
- <Reference Include="gtk-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
- <Reference Include="gdk-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
- <Reference Include="glib-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
- <Reference Include="glade-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
- <Reference Include="pango-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
- <Reference Include="webkit-sharp, Version=1.0.0.0, Culture=neutral, PublicKeyToken=eaa1d335d2e19745" />
- </ItemGroup>
- <ItemGroup>
- <EmbeddedResource Include="MonoDevelop.WebBrowsers.WebKitWebBrowser.addin.xml" />
- </ItemGroup>
- <ItemGroup>
- <Compile Include="AssemblyInfo.cs" />
- <Compile Include="WebKitWebBrowser.cs" />
- <Compile Include="WebKitWebBrowserLoader.cs" />
- </ItemGroup>
- <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
- <ProjectExtensions>
- <MonoDevelop>
- <Properties>
- <GtkDesignInfo />
- </Properties>
- </MonoDevelop>
- </ProjectExtensions>
-</Project>
diff --git a/extras/WebKitWebBrowser/WebKitWebBrowser.make b/extras/WebKitWebBrowser/WebKitWebBrowser.make
deleted file mode 100644
index 5cfbb50e1d..0000000000
--- a/extras/WebKitWebBrowser/WebKitWebBrowser.make
+++ /dev/null
@@ -1,112 +0,0 @@
-
-
-# Warning: This is an automatically generated file, do not edit!
-
-srcdir=.
-top_srcdir=.
-
-include $(top_srcdir)/Makefile.include
-include $(top_srcdir)/config.make
-
-ifeq ($(CONFIG),DEBUG)
-ASSEMBLY_COMPILER_COMMAND = dmcs
-ASSEMBLY_COMPILER_FLAGS = -noconfig -codepage:utf8 -warn:4 -optimize+ -debug -define:DEBUG
-ASSEMBLY = build/MonoDevelop.WebKitWebBrowser.dll
-ASSEMBLY_MDB = $(ASSEMBLY).mdb
-COMPILE_TARGET = library
-PROJECT_REFERENCES =
-BUILD_DIR = build
-
-
-endif
-
-ifeq ($(CONFIG),RELEASE)
-ASSEMBLY_COMPILER_COMMAND = dmcs
-ASSEMBLY_COMPILER_FLAGS = -noconfig -codepage:utf8 -warn:4 -optimize+
-ASSEMBLY = build/MonoDevelop.WebKitWebBrowser.dll
-ASSEMBLY_MDB =
-COMPILE_TARGET = library
-PROJECT_REFERENCES =
-BUILD_DIR = build
-
-
-endif
-
-INSTALL_DIR = $(DESTDIR)$(prefix)/lib/monodevelop/AddIns/WebKitWebBrowser
-
-LINUX_PKGCONFIG = \
- $(WEBKITWEBBROWSER_PC)
-
-
-
-WEBKITWEBBROWSER_PC = $(BUILD_DIR)/monodevelop-webkitwebbrowser.pc
-
-
-FILES = \
- AssemblyInfo.cs \
- WebKitWebBrowser.cs \
- WebKitWebBrowserLoader.cs
-
-DATA_FILES =
-
-RESOURCES = \
- MonoDevelop.WebBrowsers.WebKitWebBrowser.addin.xml
-
-EXTRAS = \
- ChangeLog \
- monodevelop-webkitwebbrowser.pc.in
-
-REFERENCES = \
- -pkg:webkit-sharp-1.0 \
- -pkg:glib-sharp-2.0 \
- -pkg:gtk-sharp-2.0 \
- -pkg:monodevelop
-
-DLL_REFERENCES =
-
-CLEANFILES += $(LINUX_PKGCONFIG)
-
-#Targets
-all-local: $(ASSEMBLY) $(LINUX_PKGCONFIG) $(top_srcdir)/config.make
-
-$(WEBKITWEBBROWSER_PC): monodevelop-webkitwebbrowser.pc
- mkdir -p $(BUILD_DIR)
- cp '$<' '$@'
-
-
-
-monodevelop-webkitwebbrowser.pc: monodevelop-webkitwebbrowser.pc.in $(top_srcdir)/config.make
- sed -e "s,@prefix@,$(prefix)," -e "s,@PACKAGE@,$(PACKAGE)," < monodevelop-webkitwebbrowser.pc.in > monodevelop-webkitwebbrowser.pc
-
-
-$(build_xamlg_list): %.xaml.g.cs: %.xaml
- xamlg '$<'
-
-$(build_resx_resources) : %.resources: %.resx
- resgen2 '$<' '$@'
-
-LOCAL_PKGCONFIG=PKG_CONFIG_PATH=../../local-config:$$PKG_CONFIG_PATH
-
-$(ASSEMBLY) $(ASSEMBLY_MDB): $(build_sources) $(build_resources) $(build_datafiles) $(DLL_REFERENCES) $(PROJECT_REFERENCES) $(build_xamlg_list)
- make pre-all-local-hook prefix=$(prefix)
- mkdir -p $(dir $(ASSEMBLY))
- make $(CONFIG)_BeforeBuild
- $(LOCAL_PKGCONFIG) $(ASSEMBLY_COMPILER_COMMAND) $(ASSEMBLY_COMPILER_FLAGS) -out:$(ASSEMBLY) -target:$(COMPILE_TARGET) $(build_sources_embed) $(build_resources_embed) $(build_references_ref)
- make $(CONFIG)_AfterBuild
- make post-all-local-hook prefix=$(prefix)
-
-
-install-local: $(ASSEMBLY) $(ASSEMBLY_MDB) $(WEBKITWEBBROWSER_PC)
- make pre-install-local-hook prefix=$(prefix)
- mkdir -p $(INSTALL_DIR)
- cp $(ASSEMBLY) $(ASSEMBLY_MDB) $(INSTALL_DIR)
- mkdir -p $(DESTDIR)$(prefix)/lib/pkgconfig
- test -z '$(WEBKITWEBBROWSER_PC)' || cp $(WEBKITWEBBROWSER_PC) $(DESTDIR)$(prefix)/lib/pkgconfig
- make post-install-local-hook prefix=$(prefix)
-
-uninstall-local: $(ASSEMBLY) $(ASSEMBLY_MDB) $(WEBKITWEBBROWSER_PC)
- make pre-uninstall-local-hook prefix=$(prefix)
- rm -f $(INSTALL_DIR)/$(notdir $(ASSEMBLY))
- test -z '$(ASSEMBLY_MDB)' || rm -f $(INSTALL_DIR)/$(notdir $(ASSEMBLY_MDB))
- test -z '$(WEBKITWEBBROWSER_PC)' || rm -f $(DESTDIR)$(prefix)/lib/pkgconfig/$(notdir $(WEBKITWEBBROWSER_PC))
- make post-uninstall-local-hook prefix=$(prefix)
diff --git a/extras/WebKitWebBrowser/WebKitWebBrowserLoader.cs b/extras/WebKitWebBrowser/WebKitWebBrowserLoader.cs
deleted file mode 100644
index 8119d332fa..0000000000
--- a/extras/WebKitWebBrowser/WebKitWebBrowserLoader.cs
+++ /dev/null
@@ -1,47 +0,0 @@
-//
-// WebKitWebBrowserLoader.cs
-//
-// Author:
-// Eric Butler <eric@extremeboredom.net>
-//
-// Copyright (C) 2008 Eric Butler <eric@extremeboredom.net>
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-using System;
-using MonoDevelop.Ide.WebBrowser;
-
-namespace MonoDevelop.WebBrowsers
-{
-
- public class WebKitWebBrowserLoader : IWebBrowserLoader
- {
-
- public bool CanCreateBrowser {
- get { return true; }
- }
-
- public IWebBrowser GetBrowser ()
- {
- return new WebKitWebBrowser ();
- }
- }
-}
diff --git a/extras/WebKitWebBrowser/configure b/extras/WebKitWebBrowser/configure
deleted file mode 100755
index 9d988bfac7..0000000000
--- a/extras/WebKitWebBrowser/configure
+++ /dev/null
@@ -1,159 +0,0 @@
-#!/usr/bin/env bash
-VERSION=4.2.3
-PACKAGE=webkitwebbrowser
-prefix=/usr/local
-config=DEBUG
-configurations=" RELEASE DEBUG"
-common_packages=" glade-sharp-2.0;2.12.8 glib-sharp-2.0;2.12.8 gtk-sharp-2.0;2.12.8 monodevelop;4.2.3 webkit-sharp-1.0;0.2"
-
-
-usage ()
-{
- echo "Usage : configure [OPTION]... [--config=CONFIG]"
- echo
- echo "Options:"
- echo " --prefix=PREFIX install architecture-independent files in PREFIX"
- echo " [/usr/local]"
- echo " --bindir=DIR user executables [PREFIX/bin]"
- echo " --datadir=DIR read-only architecture-independent data [PREFIX/share]"
- echo " --libdir=DIR object code libraries [PREFIX/lib]"
- echo
- echo "Configurations available :"
- for c in $configurations; do
- if [ "$c" = "$config" ]; then
- echo " $c (Default)"
- else
- echo " $c"
- fi
- done
-}
-
-validate_config ()
-{
- test -z "$1" && return 0
- for c in $configurations; do
- if [ "$c" = "$1" ]; then
- return 1
- fi
- done
- return 0
-}
-
-check_package ()
-{
- name=`echo $1 | cut -d\; -f1`
- version=`echo $1 | cut -d\; -f2`
-
- echo -n "Checking for package '$name'.." | tee -a config.log
- pkg-config --atleast-version=$version $name
- if [ $? -ne 0 ]; then
- echo " ERROR: Package named '$name' >= $version not found." | tee -a config.log
- echo "Try adjusting your PKG_CONFIG_PATH environment variable." | tee -a config.log
- return 1
- fi
- echo " found." | tee -a config.log
-}
-
-check_required_packages ()
-{
- echo "Looking for required packages" | tee config.log
- var=required_packages_$config
- for pkg in $common_packages ${!var}; do
- check_package $pkg
- retval=$?
- [ $retval -ne 0 ] && return $retval
- done
- return 0
-}
-
-while test x$1 != x; do
- case $1 in
- --prefix=*)
- prefix=`echo $1 | sed 's/--prefix=//'`
- ;;
- --prefix)
- shift
- prefix=$1
- ;;
- --libdir=*)
- libdir=`echo $1 | sed 's/--libdir=//'`
- ;;
- --libdir)
- shift
- libdir=$1
- ;;
- --bindir=*)
- bindir=`echo $1 | sed 's/--bindir=//'`
- ;;
- --bindir)
- shift
- bindir=$1
- ;;
- --datadir=*)
- datadir=`echo $1 | sed 's/--datadir=//'`
- ;;
- --datadir)
- shift
- datadir=$1
- ;;
- --config=*)
- conf=`echo $1 | sed 's/--config=//'`
- validate_config "$conf"
- if [ $? -eq 1 ]; then
- config=$conf
- else
- echo "Invalid config name - $conf"
- usage
- exit 1
- fi
- ;;
- --help)
- usage
- exit
- ;;
- *)
- echo Unknown argument $1 >&2
- usage
- exit 1
- ;;
- esac
- shift
-done
-
-check_required_packages
-[ $? -eq 1 ] && exit 1
-
-if [ -z "$libdir" ]; then
- libdir=$prefix/lib
-fi
-if [ -z "$bindir" ]; then
- bindir=$prefix/bin
-fi
-if [ -z "$datadir" ]; then
- datadir=$prefix/share
-fi
-
-echo "prefix=$prefix" > config.make
-echo "libdir=$libdir" >> config.make
-echo "bindir=$bindir" >> config.make
-echo "datadir=$datadir" >> config.make
-echo "RUNTIME=mono" >> config.make
-echo "ASSEMBLY_VERSION=$VERSION.0.0" >> config.make
-echo "VERSION=$VERSION" >> config.make
-echo "PACKAGE=$PACKAGE" >> config.make
-echo "CONFIG=$config" >> config.make
-
-echo
-echo "$PACKAGE has been configured with "
-echo " prefix = $prefix"
-if [ "$libdir" != "$prefix/lib" ]; then
- echo " libdir = $libdir"
-fi
-if [ "$bindir" != "$prefix/bin" ]; then
- echo " bindir = $bindir"
-fi
-if [ "$datadir" != "$prefix/share" ]; then
- echo " datadir = $datadir"
-fi
-echo " config = $config"
-echo
diff --git a/extras/WebKitWebBrowser/monodevelop-webkitwebbrowser.pc.in b/extras/WebKitWebBrowser/monodevelop-webkitwebbrowser.pc.in
deleted file mode 100644
index b24cd8893a..0000000000
--- a/extras/WebKitWebBrowser/monodevelop-webkitwebbrowser.pc.in
+++ /dev/null
@@ -1,6 +0,0 @@
-Name: WebKitWebBrowser
-Description: WebKitWebBrowser
-Version: 0.1
-
-Requires:
-Libs: -r:@prefix@/lib/@PACKAGE@/MonoDevelop.WebKitWebBrowser.dll
diff --git a/extras/WebKitWebBrowser/rules.make b/extras/WebKitWebBrowser/rules.make
deleted file mode 100644
index a4f37a1fd1..0000000000
--- a/extras/WebKitWebBrowser/rules.make
+++ /dev/null
@@ -1,42 +0,0 @@
-clean-local:
- make pre-clean-local-hook
- make $(CONFIG)_BeforeClean
- -rm -f $(call quote_each,$(CLEANFILES))
- make $(CONFIG)_AfterClean
- make post-clean-local-hook
-
-install-local:
-uninstall-local:
-
-q2quote = '$(subst ?, ,$1)'
-quote_each = $(foreach f,$(call s2q,$1),$(call q2quote,$f))
-
-dist-local:
- make pre-dist-local-hook "distdir=$$distdir"
- for f in Makefile $(call quote_each,$(EXTRA_DIST)); do \
- d=`dirname "$$f"`; \
- test -d "$(distdir)/$$d" || \
- mkdir -p "$(distdir)/$$d"; \
- cp -p "$$f" "$(distdir)/$$d" || exit 1; \
- done
- make post-dist-local-hook "distdir=$$distdir"
-
-dist-local-recursive:
- for dir in $(call quote_each,$(SUBDIRS)); do \
- mkdir -p "$(distdir)/$$dir" || true; \
- case "$$dir" in \
- .) make dist-local "distdir=$(distdir)" || exit 1;; \
- *) (cd "$$dir"; make dist-local "distdir=$(distdir)/$$dir") || exit 1; \
- esac \
- done
-
-#hooks: Available hooks - all, clean, install, uninstall and dist
-# and their *-local variants
-pre-%-hook: ; @:
-post-%-hook: ; @:
-
-#targets for custom commands
-%_BeforeBuild: ; @:
-%_AfterBuild: ; @:
-%_BeforeClean: ; @:
-%_AfterClean: ; @: