-
Notifications
You must be signed in to change notification settings - Fork 299
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3935 from mansellan/VB6-Final
Introduces VB6 IDE Support
- Loading branch information
Showing
197 changed files
with
9,273 additions
and
1,690 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
using System.Collections.Generic; | ||
using Rubberduck.VBEditor; | ||
using Rubberduck.VBEditor.SafeComWrappers.Abstract; | ||
using Rubberduck.VBEditor.SafeComWrappers.VB6; | ||
using Rubberduck.VBEditor.SafeComWrappers.VBA; | ||
|
||
namespace Rubberduck.Common | ||
{ | ||
// Resolves SafeComWrapper providers from raw COM vbe and addin objects. | ||
// We need these so early that IoC hasn't been set up yet. | ||
// Using the Provider pattern to avoid outgoing dependencies to COM interop assemblies. | ||
public static class RootComWrapperFactory | ||
{ | ||
public static IVBE GetVbeWrapper(object vbeComObject) | ||
{ | ||
var vbeProviders = new HashSet<ISafeComWrapperProvider<IVBE>> | ||
{ | ||
new VB6VBEProvider(), | ||
new VBAVBEProvider() | ||
}; | ||
var factory = new VBEFactory(vbeProviders); | ||
|
||
return factory.Create(vbeComObject); | ||
} | ||
|
||
public static IAddIn GetAddInWrapper(object addInComObject) | ||
{ | ||
var addInProviders = new HashSet<ISafeComWrapperProvider<IAddIn>> | ||
{ | ||
new VB6AddInProvider(), | ||
new VBAAddInProvider() | ||
}; | ||
var factory = new AddInFactory(addInProviders); | ||
|
||
return factory.Create(addInComObject); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
Rubberduck.Core/UI/Command/MenuItems/CommandBars/IAppCommandBar.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
Rubberduck.Core/UI/Command/MenuItems/CommandBars/ReparseCommandMenuItem.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.