Skip to content

Commit

Permalink
Improve status bar messages
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikEJ committed Dec 10, 2020
1 parent 7022ac4 commit cdb9fd9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/GUI/EFCorePowerTools/Handlers/ReverseEngineerHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public async Task ReverseEngineerCodeFirstAsync(Project project)
return;
}

_package.Dte2.StatusBar.Text = "Loading database object list...";
_package.Dte2.StatusBar.Text = "Loading database objects...";

var predefinedTables = !string.IsNullOrEmpty(dacpacPath)
? await GetDacpacTablesAsync(dacpacPath, useEFCore5)
Expand All @@ -153,13 +153,17 @@ public async Task ReverseEngineerCodeFirstAsync(Project project)

var namingOptionsAndPath = CustomNameOptionsExtensions.TryRead(renamingPath, optionsPath);

_package.Dte2.StatusBar.Clear();

var ptd = _package.GetView<IPickTablesDialog>()
.AddTables(predefinedTables, namingOptionsAndPath.Item1)
.PreselectTables(preselectedTables);

var pickTablesResult = ptd.ShowAndAwaitUserResponse(true);
if (!pickTablesResult.ClosedByOK) return;

_package.Dte2.StatusBar.Text = "Loading options...";

var classBasis = EnvDteHelper.GetDatabaseName(dbInfo.ConnectionString, dbInfo.DatabaseType);
var model = reverseEngineerHelper.GenerateClassName(classBasis) + "Context";
var packageResult = project.ContainsEfCoreReference(dbInfo.DatabaseType);
Expand Down Expand Up @@ -197,7 +201,7 @@ public async Task ReverseEngineerCodeFirstAsync(Project project)
var modelDialog = _package.GetView<IModelingOptionsDialog>()
.ApplyPresets(presets);

_package.Dte2.StatusBar.Text = "Getting options...";
_package.Dte2.StatusBar.Clear();

var modelingOptionsResult = modelDialog.ShowAndAwaitUserResponse(true);
if (!modelingOptionsResult.ClosedByOK) return;
Expand Down

0 comments on commit cdb9fd9

Please sign in to comment.