Skip to content

Commit e7e27d4

Browse files
committed
Rename VBE* files/types to Vbe* for types we own.
1 parent 7523788 commit e7e27d4

File tree

19 files changed

+72
-75
lines changed

19 files changed

+72
-75
lines changed

Rubberduck.Core/AutoComplete/Service/AutoCompleteService.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ private void Enable()
5757

5858
if (!_enabled)
5959
{
60-
VBENativeServices.KeyDown += HandleKeyDown;
61-
VBENativeServices.IntelliSenseChanged += HandleIntelliSenseChanged;
60+
VbeNativeServices.KeyDown += HandleKeyDown;
61+
VbeNativeServices.IntelliSenseChanged += HandleIntelliSenseChanged;
6262
_enabled = true;
6363
}
6464
}
@@ -67,8 +67,8 @@ private void Disable()
6767
{
6868
if (_enabled && _initialized)
6969
{
70-
VBENativeServices.KeyDown -= HandleKeyDown;
71-
VBENativeServices.IntelliSenseChanged -= HandleIntelliSenseChanged;
70+
VbeNativeServices.KeyDown -= HandleKeyDown;
71+
VbeNativeServices.IntelliSenseChanged -= HandleIntelliSenseChanged;
7272
_enabled = false;
7373
_popupShown = false;
7474
}

Rubberduck.Core/UI/Command/ReparseCommand.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,10 @@
99
using Rubberduck.Settings;
1010
using Rubberduck.SettingsProvider;
1111
using Rubberduck.Resources;
12-
using Rubberduck.UI.CodeExplorer.Commands;
1312
using Rubberduck.VBEditor.ComManagement.TypeLibsAPI;
1413
using Rubberduck.VBEditor.SafeComWrappers;
1514
using Rubberduck.VBEditor.SafeComWrappers.Abstract;
16-
using Rubberduck.VBEditor.VBERuntime.Settings;
15+
using Rubberduck.VBEditor.VbeRuntime.Settings;
1716

1817
namespace Rubberduck.UI.Command
1918
{
@@ -22,12 +21,12 @@ public class ReparseCommand : CommandBase
2221
{
2322
private readonly IVBE _vbe;
2423
private readonly IVBETypeLibsAPI _typeLibApi;
25-
private readonly IVBESettings _vbeSettings;
24+
private readonly IVbeSettings _vbeSettings;
2625
private readonly IMessageBox _messageBox;
2726
private readonly RubberduckParserState _state;
2827
private readonly GeneralSettings _settings;
2928

30-
public ReparseCommand(IVBE vbe, IConfigProvider<GeneralSettings> settingsProvider, RubberduckParserState state, IVBETypeLibsAPI typeLibApi, IVBESettings vbeSettings, IMessageBox messageBox) : base(LogManager.GetCurrentClassLogger())
29+
public ReparseCommand(IVBE vbe, IConfigProvider<GeneralSettings> settingsProvider, RubberduckParserState state, IVBETypeLibsAPI typeLibApi, IVbeSettings vbeSettings, IMessageBox messageBox) : base(LogManager.GetCurrentClassLogger())
3130
{
3231
_vbe = vbe;
3332
_vbeSettings = vbeSettings;

Rubberduck.Core/UI/SelectionChangeService.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ public SelectionChangeService(IVBE vbe, IParseCoordinator parser)
3030
{
3131
_parser = parser;
3232
_vbe = vbe;
33-
VBENativeServices.SelectionChanged += OnVbeSelectionChanged;
34-
VBENativeServices.WindowFocusChange += OnVbeFocusChanged;
33+
VbeNativeServices.SelectionChanged += OnVbeSelectionChanged;
34+
VbeNativeServices.WindowFocusChange += OnVbeFocusChanged;
3535
}
3636

3737
private void OnVbeSelectionChanged(object sender, EventArgs e)
@@ -69,7 +69,7 @@ private void OnVbeFocusChanged(object sender, WindowChangedEventArgs e)
6969
//Caret changed in a code pane.
7070
Task.Run(() =>
7171
{
72-
using (var pane = VBENativeServices.GetCodePaneFromHwnd(e.Hwnd))
72+
using (var pane = VbeNativeServices.GetCodePaneFromHwnd(e.Hwnd))
7373
{
7474
DispatchSelectedDeclaration(
7575
new DeclarationChangedEventArgs(_vbe, _parser.State.FindSelectedDeclaration(pane)));
@@ -186,8 +186,8 @@ private bool DeclarationChanged(Declaration current)
186186

187187
public void Dispose()
188188
{
189-
VBENativeServices.SelectionChanged -= OnVbeSelectionChanged;
190-
VBENativeServices.WindowFocusChange -= OnVbeFocusChanged;
189+
VbeNativeServices.SelectionChanged -= OnVbeSelectionChanged;
190+
VbeNativeServices.WindowFocusChange -= OnVbeFocusChanged;
191191
}
192192
}
193193

Rubberduck.Core/UI/Settings/GeneralSettingsViewModel.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
using NLog;
99
using Rubberduck.SettingsProvider;
1010
using Rubberduck.UI.Command;
11-
using Rubberduck.VBEditor.VBERuntime.Settings;
11+
using Rubberduck.VBEditor.VbeRuntime.Settings;
1212
using Rubberduck.Resources;
1313

1414
namespace Rubberduck.UI.Settings
@@ -23,12 +23,12 @@ public class GeneralSettingsViewModel : SettingsViewModelBase, ISettingsViewMode
2323
{
2424
private readonly IOperatingSystem _operatingSystem;
2525
private readonly IMessageBox _messageBox;
26-
private readonly IVBESettings _vbeSettings;
26+
private readonly IVbeSettings _vbeSettings;
2727

2828
private bool _indenterPrompted;
2929
private readonly ReadOnlyCollection<Type> _experimentalFeatureTypes;
3030

31-
public GeneralSettingsViewModel(Configuration config, IOperatingSystem operatingSystem, IMessageBox messageBox, IVBESettings vbeSettings, IEnumerable<Type> experimentalFeatureTypes)
31+
public GeneralSettingsViewModel(Configuration config, IOperatingSystem operatingSystem, IMessageBox messageBox, IVbeSettings vbeSettings, IEnumerable<Type> experimentalFeatureTypes)
3232
{
3333
_operatingSystem = operatingSystem;
3434
_messageBox = messageBox;

Rubberduck.Core/UI/Settings/SettingsForm.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
using Rubberduck.Settings;
33
using Rubberduck.Common;
44
using Rubberduck.Interaction;
5-
using Rubberduck.VBEditor.VBERuntime.Settings;
5+
using Rubberduck.VBEditor.VbeRuntime.Settings;
66
using System.Collections.Generic;
77
using System;
88

@@ -21,7 +21,7 @@ public SettingsForm()
2121
InitializeComponent();
2222
}
2323

24-
public SettingsForm(IGeneralConfigService configService, IOperatingSystem operatingSystem, IMessageBox messageBox, IVBESettings vbeSettings, SettingsViews activeView = SettingsViews.GeneralSettings) : this()
24+
public SettingsForm(IGeneralConfigService configService, IOperatingSystem operatingSystem, IMessageBox messageBox, IVbeSettings vbeSettings, SettingsViews activeView = SettingsViews.GeneralSettings) : this()
2525
{
2626
var config = configService.LoadConfiguration();
2727

Rubberduck.Main/Extension.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public void OnConnection(object Application, ext_ConnectMode ConnectMode, object
6060
_addin.Object = this;
6161

6262
VbeProvider.Initialize(_vbe);
63-
VBENativeServices.HookEvents(_vbe);
63+
VbeNativeServices.HookEvents(_vbe);
6464

6565
#if DEBUG
6666
// FOR DEBUGGING/DEVELOPMENT PURPOSES, ALLOW ACCESS TO SOME VBETypeLibsAPI FEATURES FROM VBA
@@ -242,7 +242,7 @@ private void ShutdownAddIn()
242242
{
243243
_logger.Log(LogLevel.Info, "Rubberduck is shutting down.");
244244
_logger.Log(LogLevel.Trace, "Unhooking VBENativeServices events...");
245-
VBENativeServices.UnhookEvents();
245+
VbeNativeServices.UnhookEvents();
246246
VbeProvider.Terminate();
247247

248248
_logger.Log(LogLevel.Trace, "Releasing dockable hosts...");

Rubberduck.Main/VbeProvider.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
using Rubberduck.VBEditor.SafeComWrappers.Abstract;
2-
using Rubberduck.VBEditor.VBERuntime;
2+
using Rubberduck.VBEditor.VbeRuntime;
33

44
namespace Rubberduck
55
{
@@ -19,7 +19,7 @@ internal static class VbeProvider
1919
internal static void Initialize(IVBE vbe)
2020
{
2121
Vbe = vbe;
22-
VbeRuntime = new VBERuntimeAccessor(vbe);
22+
VbeRuntime = new VbeNativeApiAccessor(vbe);
2323
}
2424

2525
internal static void Terminate()
@@ -30,6 +30,6 @@ internal static void Terminate()
3030
}
3131

3232
internal static IVBE Vbe { get; private set; }
33-
internal static IVBERuntime VbeRuntime { get; private set; }
33+
internal static IVbeNativeApi VbeRuntime { get; private set; }
3434
}
3535
}

Rubberduck.VBEEditor/ComManagement/ComMessagePumper.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
using System;
2-
using System.Threading;
32
using Rubberduck.VBEditor.Utility;
4-
using Rubberduck.VBEditor.VBERuntime;
3+
using Rubberduck.VBEditor.VbeRuntime;
54

65
namespace Rubberduck.VBEditor.ComManagement
76
{
@@ -12,10 +11,10 @@ public interface IComMessagePumper
1211

1312
public class ComMessagePumper : IComMessagePumper
1413
{
15-
private readonly IVBERuntime _runtime;
14+
private readonly IVbeNativeApi _runtime;
1615
private readonly IUiContextProvider _uiContext;
1716

18-
public ComMessagePumper(IUiContextProvider uiContext, IVBERuntime runtime)
17+
public ComMessagePumper(IUiContextProvider uiContext, IVbeNativeApi runtime)
1918
{
2019
_uiContext = uiContext;
2120
_runtime = runtime;

Rubberduck.VBEEditor/Events/VBENativeServices.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
namespace Rubberduck.VBEditor.Events
1111
{
1212
// ReSharper disable once InconsistentNaming
13-
public static class VBENativeServices
13+
public static class VbeNativeServices
1414
{
1515
private static User32.WinEventProc _eventProc;
1616
private static IntPtr _eventHandle;

Rubberduck.VBEEditor/VBERuntime/Settings/IVBESettings.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
namespace Rubberduck.VBEditor.VBERuntime.Settings
1+
namespace Rubberduck.VBEditor.VbeRuntime.Settings
22
{
3-
public interface IVBESettings
3+
public interface IVbeSettings
44
{
55
DllVersion Version { get; }
66
bool CompileOnDemand { get; set; }

0 commit comments

Comments
 (0)