Skip to content

Commit 4be4e76

Browse files
committed
#21 Manually enter path in run window
1 parent 481d0bb commit 4be4e76

17 files changed

+134
-120
lines changed

PlsqlDeveloperUtPlsqlPlugin/ColorProgressBar/ColorProgressBar.csproj

+5-1
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@
88
<OutputType>Library</OutputType>
99
<RootNamespace>ColorProgressBar</RootNamespace>
1010
<AssemblyName>ColorProgressBar</AssemblyName>
11-
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
11+
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
1212
<FileAlignment>512</FileAlignment>
1313
<Deterministic>true</Deterministic>
14+
<TargetFrameworkProfile />
1415
</PropertyGroup>
1516
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
1617
<PlatformTarget>AnyCPU</PlatformTarget>
@@ -21,6 +22,7 @@
2122
<DefineConstants>DEBUG;TRACE</DefineConstants>
2223
<ErrorReport>prompt</ErrorReport>
2324
<WarningLevel>4</WarningLevel>
25+
<Prefer32Bit>false</Prefer32Bit>
2426
</PropertyGroup>
2527
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
2628
<PlatformTarget>AnyCPU</PlatformTarget>
@@ -30,6 +32,7 @@
3032
<DefineConstants>TRACE</DefineConstants>
3133
<ErrorReport>prompt</ErrorReport>
3234
<WarningLevel>4</WarningLevel>
35+
<Prefer32Bit>false</Prefer32Bit>
3336
</PropertyGroup>
3437
<PropertyGroup>
3538
<StartupObject />
@@ -61,6 +64,7 @@
6164
<Compile Include="Properties\Resources.Designer.cs">
6265
<AutoGen>True</AutoGen>
6366
<DependentUpon>Resources.resx</DependentUpon>
67+
<DesignTime>True</DesignTime>
6468
</Compile>
6569
<None Include="Properties\Settings.settings">
6670
<Generator>SettingsSingleFileGenerator</Generator>

PlsqlDeveloperUtPlsqlPlugin/ColorProgressBar/Properties/Resources.Designer.cs

+30-37
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

PlsqlDeveloperUtPlsqlPlugin/ColorProgressBar/Properties/Settings.Designer.cs

+13-16
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
<?xml version="1.0" encoding="utf-8"?>
1+
<?xml version="1.0" encoding="utf-8"?>
22
<configuration>
3-
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5"/></startup></configuration>
3+
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/></startup></configuration>

PlsqlDeveloperUtPlsqlPlugin/PlsqlDeveloperUtPlsqlPlugin/PlsqlDeveloperUtPlsqlPlugin.cs

+24-4
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ public class PlsqlDeveloperUtPlsqlPlugin
4343

4444
private const int PluginMenuIndexAllTests = 3;
4545
private const int PluginMenuIndexAllTestsWithCoverage = 4;
46+
private const int PluginMenuIndexPath = 5;
4647
private const int PluginPopupIndex = 1;
4748
private const int PluginPopupIndexWithCoverage = 2;
4849

@@ -107,6 +108,14 @@ public static void OnActivate()
107108
}
108109
}
109110

111+
using (var stream = assembly.GetManifestResourceStream("utPLSQL.utPLSQL.bmp"))
112+
{
113+
if (stream != null)
114+
{
115+
createToolButton(pluginId, PluginMenuIndexPath, "utPLSQL", "utPLSQL.bmp", new Bitmap(stream).GetHbitmap().ToInt64());
116+
}
117+
}
118+
110119
using (var stream = assembly.GetManifestResourceStream("utPLSQL.utPLSQL.bmp"))
111120
{
112121
if (stream != null)
@@ -210,6 +219,8 @@ public static string CreateMenuItem(int index)
210219
return "LARGEITEM=Run all tests of current user";
211220
case PluginMenuIndexAllTestsWithCoverage:
212221
return "LARGEITEM=Run code coverage for current user";
222+
case PluginMenuIndexPath:
223+
return "LARGEITEM=Run tests for specific path";
213224
default:
214225
return "";
215226
}
@@ -226,7 +237,7 @@ public static void OnMenuClick(int index)
226237
{
227238
var testResultWindow = new TestRunnerWindow(_plugin, username, password, database, connectAs, oracleHome);
228239
Windows.Add(testResultWindow);
229-
testResultWindow.RunTestsAsync("_ALL", username, null, null, false);
240+
testResultWindow.RunTestsAsync("_ALL", username, null, null, false, false);
230241
}
231242
}
232243
else if (index == PluginMenuIndexAllTestsWithCoverage)
@@ -235,7 +246,16 @@ public static void OnMenuClick(int index)
235246
{
236247
var testResultWindow = new TestRunnerWindow(_plugin, username, password, database, connectAs, oracleHome);
237248
Windows.Add(testResultWindow);
238-
testResultWindow.RunTestsAsync("_ALL", username, null, null, true);
249+
testResultWindow.RunTestsAsync("_ALL", username, null, null, true, false);
250+
}
251+
}
252+
else if (index == PluginMenuIndexPath)
253+
{
254+
if (isConnected() && !isSydba())
255+
{
256+
var testResultWindow = new TestRunnerWindow(_plugin, username, password, database, connectAs, oracleHome);
257+
Windows.Add(testResultWindow);
258+
testResultWindow.RunTestsAsync(null, null, null, null, false, true);
239259
}
240260
}
241261
else if (index == PluginPopupIndex)
@@ -247,7 +267,7 @@ public static void OnMenuClick(int index)
247267
var testResultWindow = new TestRunnerWindow(_plugin, username, password, database, connectAs, oracleHome);
248268
Windows.Add(testResultWindow);
249269
testResultWindow.RunTestsAsync(Marshal.PtrToStringAnsi(type), Marshal.PtrToStringAnsi(owner),
250-
Marshal.PtrToStringAnsi(name), Marshal.PtrToStringAnsi(subType), false);
270+
Marshal.PtrToStringAnsi(name), Marshal.PtrToStringAnsi(subType), false, false);
251271
}
252272
}
253273
else if (index == PluginPopupIndexWithCoverage)
@@ -259,7 +279,7 @@ public static void OnMenuClick(int index)
259279
var testResultWindow = new TestRunnerWindow(_plugin, username, password, database, connectAs, oracleHome);
260280
Windows.Add(testResultWindow);
261281
testResultWindow.RunTestsAsync(Marshal.PtrToStringAnsi(type), Marshal.PtrToStringAnsi(owner),
262-
Marshal.PtrToStringAnsi(name), Marshal.PtrToStringAnsi(subType), true);
282+
Marshal.PtrToStringAnsi(name), Marshal.PtrToStringAnsi(subType), true, false);
263283
}
264284
}
265285
}

PlsqlDeveloperUtPlsqlPlugin/PlsqlDeveloperUtPlsqlPlugin/PlsqlDeveloperUtPlsqlPlugin.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<AppDesignerFolder>Properties</AppDesignerFolder>
1111
<RootNamespace>utPLSQL</RootNamespace>
1212
<AssemblyName>PlsqlDeveloperUtPlsqlPlugin</AssemblyName>
13-
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
13+
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
1414
<FileAlignment>512</FileAlignment>
1515
<Deterministic>true</Deterministic>
1616
<TargetFrameworkProfile />

PlsqlDeveloperUtPlsqlPlugin/PlsqlDeveloperUtPlsqlPlugin/Properties/Resources.Designer.cs

+15-15
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

PlsqlDeveloperUtPlsqlPlugin/PlsqlDeveloperUtPlsqlPlugin/packages.config

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
<package id="Costura.Fody" version="4.1.0" targetFramework="net40" />
44
<package id="Fody" version="6.3.0" targetFramework="net45" developmentDependency="true" />
55
<package id="UnmanagedExports" version="1.2.7" targetFramework="net40" />
6-
<package id="UnmanagedExports.Repack" version="1.0.4" targetFramework="net40" />
6+
<package id="UnmanagedExports.Repack" version="1.0.4" targetFramework="net40" requireReinstallation="true" />
77
</packages>
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
<?xml version="1.0" encoding="utf-8"?>
1+
<?xml version="1.0" encoding="utf-8"?>
22
<configuration>
3-
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5"/></startup></configuration>
3+
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/></startup></configuration>

PlsqlDeveloperUtPlsqlPlugin/utPLSQL.UI.Standalone/LoginForm.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ public LoginForm()
1313
private void BtnRunTests_Click(object sender, EventArgs e)
1414
{
1515
var testRunnerWindow = new TestRunnerWindow(null, txtUsername.Text, txtPassword.Text, txtDatabase.Text, null, null);
16-
testRunnerWindow.RunTestsAsync("USER", null, txtUsername.Text, null, false);
16+
testRunnerWindow.RunTestsAsync("USER", null, txtUsername.Text, null, false, false);
1717
}
1818

1919
private void btnCodeCoverage_Click(object sender, EventArgs e)
2020
{
2121
var testRunnerWindow = new TestRunnerWindow(null, txtUsername.Text, txtPassword.Text, txtDatabase.Text, null, null);
22-
testRunnerWindow.RunTestsAsync("USER", null, txtUsername.Text, null, true);
22+
testRunnerWindow.RunTestsAsync("USER", null, txtUsername.Text, null, true, false);
2323
}
2424
}
2525
}

0 commit comments

Comments
 (0)