Permalink
Browse files

Remove Eusebiu's metadata decompiler.

  • Loading branch information...
1 parent 96e2386 commit 283bff1714d0644ab75714e33175791bc1fbb2cc @dgrunwald dgrunwald committed Apr 16, 2011
@@ -1078,9 +1078,6 @@
<OptionPanel id = "SelectStyle"
label = "${res:Dialog.Options.IDEOptions.SelectVisualStyle.PanelName}"
class = "ICSharpCode.SharpDevelop.Gui.OptionPanels.SelectStylePanel"/>
- <OptionPanel id = "IDEUIOptions"
- label = "${res:Dialog.Options.IDEOptions.SharpDevelop.GeneralUI.PanelName}"
- class = "ICSharpCode.SharpDevelop.Gui.OptionPanels.SharpDevelopUIOptions"/>
<OptionPanel id = "LoadSave"
label = "${res:Dialog.Options.IDEOptions.LoadSaveOptions.PanelName}"
class = "ICSharpCode.SharpDevelop.Gui.OptionPanels.LoadSaveOptions"/>
@@ -243,10 +243,6 @@
<DependentUpon>SelectCulturePanel.xaml</DependentUpon>
<SubType>Code</SubType>
</Compile>
- <Compile Include="Src\Gui\Dialogs\OptionPanels\IDEOptions\SharpDevelopUIOptions.xaml.cs">
- <DependentUpon>SharpDevelopUIOptions.xaml</DependentUpon>
- <SubType>Code</SubType>
- </Compile>
<Compile Include="Src\Gui\Dialogs\OptionPanels\ProjectOptions\WebProjectOptions\WebProjectOptions.cs" />
<Compile Include="Src\Gui\Dialogs\OptionPanels\ProjectOptions\WebProjectOptions\WebProjectOptionsPanel.xaml.cs">
<DependentUpon>WebProjectOptionsPanel.xaml</DependentUpon>
@@ -273,9 +269,6 @@
<Compile Include="Src\Gui\Pads\BaseWatchBox.cs" />
<Compile Include="Src\Gui\Pads\OutlinePad.cs" />
<Compile Include="Src\Gui\Pads\ProjectBrowser\TreeNodes\DirectoryNodeFactory.cs" />
- <Compile Include="Src\Gui\Pads\ProjectBrowser\TreeNodes\InnerExpand\NamespaceNode.cs" />
- <Compile Include="Src\Gui\Pads\ProjectBrowser\TreeNodes\InnerExpand\MemberNodes.cs" />
- <Compile Include="Src\Gui\Pads\ProjectBrowser\TreeNodes\InnerExpand\TypeNodes.cs" />
<Compile Include="Src\Gui\Pads\TaskList\TaskListPadCommands.cs" />
<Compile Include="Src\Gui\Pads\ToolsPad.cs" />
<Compile Include="Src\Gui\ProgressCollector.cs" />
@@ -326,7 +319,6 @@
<Compile Include="Src\Services\Debugger\Tooltips\ITreeNode.cs" />
<Compile Include="Src\Services\Debugger\Tooltips\IVisualizerCommand.cs" />
<Compile Include="Src\Services\Debugger\Tooltips\PinBookmark.cs" />
- <Compile Include="Src\Services\DecompilerService\DecompilerService.cs" />
<Compile Include="Src\Services\DisplayBinding\ExternalProcessDisplayBinding.cs" />
<Compile Include="Src\Services\DisplayBinding\ISecondaryDisplayBinding.cs" />
<Compile Include="Src\Services\DisplayBinding\ShellExecuteDisplayBinding.cs" />
@@ -823,7 +815,6 @@
</ItemGroup>
<ItemGroup>
<Page Include="Src\Bookmarks\Pad\Controls\ListViewPad.xaml" />
- <Page Include="Src\Gui\Dialogs\OptionPanels\IDEOptions\SharpDevelopUIOptions.xaml" />
<Page Include="Src\Gui\Dialogs\OptionPanels\ProjectOptions\WebProjectOptions\WebProjectOptionsPanel.xaml" />
<Page Include="Src\Services\RefactoringService\ContextActions\ContextActionsBulbControl.xaml" />
<Page Include="Src\Services\RefactoringService\ContextActions\ContextActionsControl.xaml" />
@@ -858,10 +849,8 @@
<Folder Include="Src\Editor\Commands" />
<Folder Include="Src\Editor\Search" />
<Folder Include="Src\Gui\Dialogs\OptionPanels\ProjectOptions\WebProjectOptions" />
- <Folder Include="Src\Gui\Pads\ProjectBrowser\TreeNodes\InnerExpand" />
<Folder Include="Src\Gui\Pads\TaskList" />
<Folder Include="Src\Services\Debugger\Tooltips" />
- <Folder Include="Src\Services\DecompilerService" />
<Folder Include="Src\Services\RefactoringService\ContextActions" />
<Folder Include="Src\Services\WebProjectService" />
<Folder Include="Src\Util" />
@@ -19,7 +19,7 @@ protected override void RunImpl(ITextEditor editor, int offset, ResolveResult sy
return;
FilePosition pos = symbol.GetDefinitionPosition();
if (pos.IsEmpty) {
- new GoToDecompiledDefinition().Run(symbol);
+ //new GoToDecompiledDefinition().Run(symbol);
} else {
try {
if (pos.Position.IsEmpty)
@@ -33,6 +33,7 @@ protected override void RunImpl(ITextEditor editor, int offset, ResolveResult sy
}
}
+ /*
public class GoToDecompiledDefinition : AbstractMenuCommand
{
/// <summary>
@@ -129,5 +130,5 @@ public void Run(ResolveResult symbol)
FileService.OpenFile(filePath);
}
}
- }
+ }*/
}
@@ -1,15 +0,0 @@
-<gui:OptionPanel x:Class="ICSharpCode.SharpDevelop.Gui.OptionPanels.SharpDevelopUIOptions"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:gui="clr-namespace:ICSharpCode.SharpDevelop.Gui"
- xmlns:widgets="http://icsharpcode.net/sharpdevelop/widgets"
- xmlns:local="clr-namespace:ICSharpCode.SharpDevelop.Gui.OptionPanels"
- xmlns:core="http://icsharpcode.net/sharpdevelop/core">
- <GroupBox Header="{core:Localize Dialog.Options.IDEOptions.SharpDevelop.GeneralUI.GroupBoxHeader}">
- <widgets:StackPanelWithSpacing SpaceBetweenItems="5">
- <CheckBox x:Name="ExpandReferencesCheckBox"
- Content="{core:Localize Dialog.Options.IDEOptions.SharpDevelop.GeneralUI.ExpandReferences}"
- IsChecked="{core:OptionBinding local:SharpDevelopUIOptions.ExpandReferences}"/>
- </widgets:StackPanelWithSpacing>
- </GroupBox>
-</gui:OptionPanel>
@@ -1,21 +0,0 @@
-// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
-// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
-using System;
-using System.Windows.Controls;
-using ICSharpCode.Core;
-
-namespace ICSharpCode.SharpDevelop.Gui.OptionPanels
-{
- public partial class SharpDevelopUIOptions : OptionPanel
- {
- public SharpDevelopUIOptions()
- {
- InitializeComponent();
- }
-
- public static bool ExpandReferences {
- get { return PropertyService.Get("ExpandReferences", false); }
- set { PropertyService.Set("ExpandReferences", value); }
- }
- }
-}
@@ -1,163 +0,0 @@
-// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
-// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
-using System;
-using Mono.Cecil;
-
-namespace ICSharpCode.SharpDevelop.Project.InnerExpand
-{
- public abstract class MemberNode : AbstractProjectBrowserTreeNode
- {
- protected readonly MemberReference member;
- protected readonly TypeDefinition type;
-
- public MemberNode(string name, MemberReference member, TypeDefinition type)
- {
- this.member = member;
- this.type = type;
- Text = name;
- }
-
- public override object AcceptVisitor(ProjectBrowserTreeNodeVisitor visitor, object data)
- {
- return visitor.Visit(this, data);
- }
- }
-
- #region Field nodes
- public class PublicFieldNode : MemberNode
- {
- public PublicFieldNode(string name, MemberReference member, TypeDefinition type) : base(name, member, type)
- {
- SetIcon("Icons.16x16.Field");
- }
- }
-
- public class InternalFieldNode : MemberNode
- {
- public InternalFieldNode(string name, MemberReference member, TypeDefinition type) : base(name, member, type)
- {
- SetIcon("Icons.16x16.InteralField");
- }
- }
-
- public class ProtectedFieldNode : MemberNode
- {
- public ProtectedFieldNode(string name, MemberReference member, TypeDefinition type) : base(name, member, type)
- {
- SetIcon("Icons.16x16.ProtectedField");
- }
- }
-
- public class PrivateFieldNode : MemberNode
- {
- public PrivateFieldNode(string name, MemberReference member, TypeDefinition type) : base(name, member, type)
- {
- SetIcon("Icons.16x16.PrivateField");
- }
- }
- #endregion
-
- #region Properties nodes
- public class PublicPropertyNode : MemberNode
- {
- public PublicPropertyNode(string name, MemberReference member, TypeDefinition type) : base(name, member, type)
- {
- SetIcon("Icons.16x16.Property");
- }
- }
-
- public class InternalPropertyNode : MemberNode
- {
- public InternalPropertyNode(string name, MemberReference member, TypeDefinition type) : base(name, member, type)
- {
- SetIcon("Icons.16x16.InteralProperty");
- }
- }
-
- public class ProtectedPropertyNode : MemberNode
- {
- public ProtectedPropertyNode(string name, MemberReference member, TypeDefinition type) : base(name, member, type)
- {
- SetIcon("Icons.16x16.ProtectedProperty");
- }
- }
-
- public class PrivatePropertyNode : MemberNode
- {
- public PrivatePropertyNode(string name, MemberReference member, TypeDefinition type) : base(name, member, type)
- {
- SetIcon("Icons.16x16.PrivateProperty");
- }
- }
- #endregion
-
- #region Method nodes
-
- public class PublicMethodNode : MemberNode
- {
- public PublicMethodNode(string name, MemberReference member, TypeDefinition type) : base(name, member, type)
- {
- SetIcon("Icons.16x16.Method");
- }
- }
-
- public class InternalMethodNode : MemberNode
- {
- public InternalMethodNode(string name, MemberReference member, TypeDefinition type) : base(name, member, type)
- {
- SetIcon("Icons.16x16.InternalMethod");
- }
- }
-
- public class ProtectedMethodNode : MemberNode
- {
- public ProtectedMethodNode(string name, MemberReference member, TypeDefinition type) : base(name, member, type)
- {
- SetIcon("Icons.16x16.ProtectedMethod");
- }
- }
-
- public class PrivateMethodNode : MemberNode
- {
- public PrivateMethodNode(string name, MemberReference member, TypeDefinition type) : base(name, member, type)
- {
- SetIcon("Icons.16x16.PrivateMethod");
- }
- }
-
- #endregion
-
- #region Event node
- public class PublicEventNode : MemberNode
- {
- public PublicEventNode(string name, MemberReference member, TypeDefinition type) : base(name, member, type)
- {
- SetIcon("Icons.16x16.Event");
- }
- }
-
- public class InternalEventNode : MemberNode
- {
- public InternalEventNode(string name, MemberReference member, TypeDefinition type) : base(name, member, type)
- {
- SetIcon("Icons.16x16.InternalEvent");
- }
- }
-
- public class ProtectedEventNode : MemberNode
- {
- public ProtectedEventNode(string name, MemberReference member, TypeDefinition type) : base(name, member, type)
- {
- SetIcon("Icons.16x16.ProtectedEvent");
- }
- }
-
- public class PrivateEventNode : MemberNode
- {
- public PrivateEventNode(string name, MemberReference member, TypeDefinition type) : base(name, member, type)
- {
- SetIcon("Icons.16x16.PrivateEvent");
- }
- }
- #endregion
-}
@@ -1,101 +0,0 @@
-// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
-// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
-using System;
-using System.Collections.Generic;
-using System.Windows;
-using System.Windows.Forms;
-
-using ICSharpCode.Core;
-using Mono.Cecil;
-
-namespace ICSharpCode.SharpDevelop.Project.InnerExpand
-{
- public class NamespaceNode : CustomFolderNode
- {
- readonly List<TypeDefinition> types;
-
- public NamespaceNode(string name, List<TypeDefinition> types)
- {
- SetIcon("Icons.16x16.NameSpace");
- Text = name;
- this.types = types;
-
- this.PerformInitialization();
- }
-
- public void RefreshNodes(bool forceRefresh = false)
- {
- if (Nodes.Count > 0 && !forceRefresh)
- return;
-
- Nodes.Clear();
-
- foreach (var type in types) {
- TypeNode node = null;
- string name = type.Name;
-
- if (type.IsValueType) {
- if (type.IsPublic) {
- node = new PublicStructNode(name, type);
- } else {
- node = new PrivateStructNode(name, type);
- }
- } else {
- if (type.IsEnum) {
- if (type.IsPublic) {
- node = new PublicEnumNode(name, type);
- } else {
- node = new PrivateEnumNode(name, type);
- }
- } else {
-
- if (type.BaseType != null && type.BaseType.FullName == "System.MulticastDelegate"){
- if (type.IsPublic) {
- node = new PublicDelegateNode(name, type);
- } else {
- node = new PrivateDelegateNode(name, type);
- }
- } else {
- if (type.IsClass) {
- if (type.IsPublic) {
- node = new PublicClassNode(name, type);
- } else {
- node = new PrivateClassNode(name, type);
- }
- }
- else {
- if (type.IsInterface) {
- if (type.IsPublic) {
- node = new PublicInterfaceNode(name, type);
- } else {
- node = new PrivateInterfaceNode(name, type);
- }
- }
- }
- }
- }
- }
-
- if (node != null)
- node.InsertSorted(this);
- }
- }
-
- public override void Expanding()
- {
- foreach (var node in Nodes) {
- if (!(node is TypeNode)) continue;
-
- var n = (TypeNode)node;
- n.ShowMembers();
- }
-
- base.Expanding();
- }
-
- public override object AcceptVisitor(ProjectBrowserTreeNodeVisitor visitor, object data)
- {
- return visitor.Visit(this, data);
- }
- }
-}
Oops, something went wrong.

0 comments on commit 283bff1

Please sign in to comment.