Skip to content

Commit bb528bd

Browse files
committed
Tweak name
1 parent 076a26d commit bb528bd

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

RetailCoder.VBE/UI/SourceControl/SourceControlViewViewModel.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public void SetTab(SourceControlTab tab)
106106

107107
public void HandleAddedComponent(VBComponent component)
108108
{
109-
if (Provider == null || !Provider.NotifyVBAChanges) { return; }
109+
if (Provider == null || !Provider.HandleVbeSinkEvents) { return; }
110110

111111
var fileStatus = Provider.Status().SingleOrDefault(stat => stat.FilePath.Split('.')[0] == component.Name);
112112
if (fileStatus != null)
@@ -117,7 +117,7 @@ public void HandleAddedComponent(VBComponent component)
117117

118118
public void HandleRemovedComponent(VBComponent component)
119119
{
120-
if (Provider == null || !Provider.NotifyVBAChanges) { return; }
120+
if (Provider == null || !Provider.HandleVbeSinkEvents) { return; }
121121

122122
var fileStatus = Provider.Status().SingleOrDefault(stat => stat.FilePath.Split('.')[0] == component.Name);
123123
if (fileStatus != null)
@@ -128,7 +128,7 @@ public void HandleRemovedComponent(VBComponent component)
128128

129129
public void HandleRenamedComponent(VBComponent component, string oldName)
130130
{
131-
if (Provider == null || !Provider.NotifyVBAChanges) { return; }
131+
if (Provider == null || !Provider.HandleVbeSinkEvents) { return; }
132132

133133
var fileStatus = Provider.LastKnownStatus().SingleOrDefault(stat => stat.FilePath.Split('.')[0] == oldName);
134134
if (fileStatus != null)

Rubberduck.SourceControl/ISourceControlProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public interface ISourceControlProvider
1212
IList<ICommit> UnsyncedLocalCommits { get; }
1313
IList<ICommit> UnsyncedRemoteCommits { get; }
1414
bool NotifyExternalFileChanges { get; }
15-
bool NotifyVBAChanges { get; }
15+
bool HandleVbeSinkEvents { get; }
1616

1717
event EventHandler<EventArgs> BranchChanged;
1818

Rubberduck.SourceControl/SourceControlProviderBase.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ protected SourceControlProviderBase(VBProject project, IRepository repository, I
3232
public abstract IList<ICommit> UnsyncedLocalCommits { get; }
3333
public abstract IList<ICommit> UnsyncedRemoteCommits { get; }
3434
public bool NotifyExternalFileChanges { get; protected set; }
35-
public bool NotifyVBAChanges { get; protected set; }
35+
public bool HandleVbeSinkEvents { get; protected set; }
3636
public abstract IRepository Clone(string remotePathOrUrl, string workingDirectory);
3737
public abstract void Push();
3838
public abstract void Fetch(string remoteName);
@@ -119,10 +119,10 @@ public virtual void Undo(string filePath)
119119
{
120120
var component = Project.VBComponents.OfType<VBComponent>().FirstOrDefault(f => f.Name == filePath.Split('.')[0]);
121121

122-
NotifyVBAChanges = false;
122+
HandleVbeSinkEvents = false;
123123
Project.VBComponents.RemoveSafely(component);
124124
Project.VBComponents.ImportSourceFile(filePath);
125-
NotifyVBAChanges = true;
125+
HandleVbeSinkEvents = true;
126126
}
127127
}
128128

@@ -148,7 +148,7 @@ protected string GetProjectNameFromDirectory(string directory)
148148

149149
public void ReloadComponent(string filePath)
150150
{
151-
NotifyVBAChanges = false;
151+
HandleVbeSinkEvents = false;
152152

153153
var codePane = Project.VBE.ActiveCodePane;
154154

@@ -182,15 +182,15 @@ public void ReloadComponent(string filePath)
182182
Project.VBComponents.Import(directory + filePath);
183183
}
184184

185-
NotifyVBAChanges = true;
185+
HandleVbeSinkEvents = true;
186186
}
187187

188188
private void Refresh()
189189
{
190190
//Because refreshing removes all components, we need to store the current selection,
191191
// so we can correctly reset it once the files are imported from the repository.
192192

193-
NotifyVBAChanges = false;
193+
HandleVbeSinkEvents = false;
194194

195195
var codePane = Project.VBE.ActiveCodePane;
196196

@@ -216,7 +216,7 @@ private void Refresh()
216216
Project.ImportSourceFiles(CurrentRepository.LocalLocation);
217217
}
218218

219-
NotifyVBAChanges = true;
219+
HandleVbeSinkEvents = true;
220220
}
221221
}
222222
}

0 commit comments

Comments
 (0)