Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitecb69b4

Browse files
committed
Merge branch 'release/1.1.0' into main
2 parentsfba09e0 +272c40b commitecb69b4

File tree

41 files changed

+638
-1792
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+638
-1792
lines changed

‎PlsqlDeveloperUtPlsqlPlugin/PlsqlDeveloperUtPlsqlPlugin.sln

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@ VisualStudioVersion = 16.0.30804.86
55
MinimumVisualStudioVersion =10.0.40219.1
66
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") ="PlsqlDeveloperUtPlsqlPlugin","PlsqlDeveloperUtPlsqlPlugin\PlsqlDeveloperUtPlsqlPlugin.csproj","{0241FA41-E396-491A-B4EC-772B694EC689}"
77
EndProject
8-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") ="utPLSQL.Api.Test","utPLSQL.Api.Test\utPLSQL.Api.Test.csproj","{8E898B26-0A4C-4DDA-9820-D5D050D2336E}"
9-
EndProject
10-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") ="utPLSQL.Api","utPLSQL.Api\utPLSQL.Api.csproj","{DF09EACE-50EC-44EA-849A-80462A219CFC}"
11-
EndProject
128
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") ="utPLSQL.Ui","utPLSQL.Ui\utPLSQL.Ui.csproj","{7669189C-4A58-4E82-9DCB-7956624A719B}"
139
EndProject
1410
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") ="utPLSQL.Ui.Standalone","utPLSQL.Ui.Standalone\utPLSQL.Ui.Standalone.csproj","{5D3EA63E-AAFE-47DB-9D48-4BA9C205ADBE}"
@@ -35,30 +31,6 @@ Global
3531
{0241FA41-E396-491A-B4EC-772B694EC689}.Release|x64.Build.0=Release|x64
3632
{0241FA41-E396-491A-B4EC-772B694EC689}.Release|x86.ActiveCfg=Release|x86
3733
{0241FA41-E396-491A-B4EC-772B694EC689}.Release|x86.Build.0=Release|x86
38-
{8E898B26-0A4C-4DDA-9820-D5D050D2336E}.Debug|Any CPU.ActiveCfg=Debug|Any CPU
39-
{8E898B26-0A4C-4DDA-9820-D5D050D2336E}.Debug|Any CPU.Build.0=Debug|Any CPU
40-
{8E898B26-0A4C-4DDA-9820-D5D050D2336E}.Debug|x64.ActiveCfg=Debug|Any CPU
41-
{8E898B26-0A4C-4DDA-9820-D5D050D2336E}.Debug|x64.Build.0=Debug|Any CPU
42-
{8E898B26-0A4C-4DDA-9820-D5D050D2336E}.Debug|x86.ActiveCfg=Debug|Any CPU
43-
{8E898B26-0A4C-4DDA-9820-D5D050D2336E}.Debug|x86.Build.0=Debug|Any CPU
44-
{8E898B26-0A4C-4DDA-9820-D5D050D2336E}.Release|Any CPU.ActiveCfg=Release|Any CPU
45-
{8E898B26-0A4C-4DDA-9820-D5D050D2336E}.Release|Any CPU.Build.0=Release|Any CPU
46-
{8E898B26-0A4C-4DDA-9820-D5D050D2336E}.Release|x64.ActiveCfg=Release|Any CPU
47-
{8E898B26-0A4C-4DDA-9820-D5D050D2336E}.Release|x64.Build.0=Release|Any CPU
48-
{8E898B26-0A4C-4DDA-9820-D5D050D2336E}.Release|x86.ActiveCfg=Release|Any CPU
49-
{8E898B26-0A4C-4DDA-9820-D5D050D2336E}.Release|x86.Build.0=Release|Any CPU
50-
{DF09EACE-50EC-44EA-849A-80462A219CFC}.Debug|Any CPU.ActiveCfg=Debug|Any CPU
51-
{DF09EACE-50EC-44EA-849A-80462A219CFC}.Debug|Any CPU.Build.0=Debug|Any CPU
52-
{DF09EACE-50EC-44EA-849A-80462A219CFC}.Debug|x64.ActiveCfg=Debug|Any CPU
53-
{DF09EACE-50EC-44EA-849A-80462A219CFC}.Debug|x64.Build.0=Debug|Any CPU
54-
{DF09EACE-50EC-44EA-849A-80462A219CFC}.Debug|x86.ActiveCfg=Debug|Any CPU
55-
{DF09EACE-50EC-44EA-849A-80462A219CFC}.Debug|x86.Build.0=Debug|Any CPU
56-
{DF09EACE-50EC-44EA-849A-80462A219CFC}.Release|Any CPU.ActiveCfg=Release|Any CPU
57-
{DF09EACE-50EC-44EA-849A-80462A219CFC}.Release|Any CPU.Build.0=Release|Any CPU
58-
{DF09EACE-50EC-44EA-849A-80462A219CFC}.Release|x64.ActiveCfg=Release|Any CPU
59-
{DF09EACE-50EC-44EA-849A-80462A219CFC}.Release|x64.Build.0=Release|Any CPU
60-
{DF09EACE-50EC-44EA-849A-80462A219CFC}.Release|x86.ActiveCfg=Release|Any CPU
61-
{DF09EACE-50EC-44EA-849A-80462A219CFC}.Release|x86.Build.0=Release|Any CPU
6234
{7669189C-4A58-4E82-9DCB-7956624A719B}.Debug|Any CPU.ActiveCfg=Debug|Any CPU
6335
{7669189C-4A58-4E82-9DCB-7956624A719B}.Debug|Any CPU.Build.0=Debug|Any CPU
6436
{7669189C-4A58-4E82-9DCB-7956624A719B}.Debug|x64.ActiveCfg=Debug|Any CPU

‎PlsqlDeveloperUtPlsqlPlugin/PlsqlDeveloperUtPlsqlPlugin/AboutDialog.Designer.cs

Lines changed: 36 additions & 24 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎PlsqlDeveloperUtPlsqlPlugin/PlsqlDeveloperUtPlsqlPlugin/AboutDialog.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ public partial class AboutDialog : Form
77
publicAboutDialog()
88
{
99
InitializeComponent();
10+
11+
varassembly=System.Reflection.Assembly.GetExecutingAssembly();
12+
varfileVersionInfo=System.Diagnostics.FileVersionInfo.GetVersionInfo(assembly.Location);
13+
lblVersion.Text=$"Version{fileVersionInfo.FileVersion}";
1014
}
1115

1216
privatevoidLinkLabel1_LinkClicked(objectsender,LinkLabelLinkClickedEventArgse)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<configuration>
3-
</configuration>
3+
<startup><supportedRuntimeversion="v4.0"sku=".NETFramework,Version=v4.5"/></startup></configuration>

‎PlsqlDeveloperUtPlsqlPlugin/PlsqlDeveloperUtPlsqlPlugin/PlsqlDeveloperUtPlsqlPlugin.cs

Lines changed: 39 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
usingSystem.Linq;
66
usingSystem.Reflection;
77
usingSystem.Runtime.InteropServices;
8+
usingSystem.Threading.Tasks;
89
usingSystem.Windows.Forms;
910

1011
namespaceutPLSQL
@@ -28,6 +29,9 @@ internal delegate int IdeGetPopupObject(out IntPtr objectType, out IntPtr object
2829
//*FUNC: 79*/ char *(*IDE_GetObjectSource)(char *ObjectType, char *ObjectOwner, char *ObjectName);
2930
internaldelegateIntPtrIdeGetObjectSource(stringobjectType,stringobjectOwner,stringobjectName);
3031

32+
//*FUNC: 97*/ extern char *(*IDE_GetConnectAs)();
33+
internaldelegateIntPtrIdeGetConnectAs();
34+
3135
//*FUNC: 150*/ void (*IDE_CreateToolButton)(int ID, int Index, char *Name, char *BitmapFile, int BitmapHandle);
3236
internaldelegatevoidIdeCreateToolButton(intid,intindex,stringname,stringbitmapFile,longbitmapHandle);
3337

@@ -40,30 +44,26 @@ public class PlsqlDeveloperUtPlsqlPlugin
4044
privateconstintPluginPopupIndex=1;
4145
privateconstintPluginPopupIndexWithCoverage=2;
4246

43-
internalstaticIdeConnectedconnected;
44-
internalstaticIdeGetConnectionInfogetConnectionInfo;
47+
privatestaticIdeConnectedconnected;
48+
privatestaticIdeGetConnectionInfogetConnectionInfo;
4549

46-
internalstaticIdeCreateWindowcreateWindow;
47-
internalstaticIdeCreatePopupItemcreatePopupItem;
48-
internalstaticIdeGetPopupObjectgetPopupObject;
49-
internalstaticIdeGetObjectSourcegetObjectSource;
50-
internalstaticIdeCreateToolButtoncreateToolButton;
50+
privatestaticIdeCreateWindowcreateWindow;
51+
privatestaticIdeCreatePopupItemcreatePopupItem;
52+
privatestaticIdeGetPopupObjectgetPopupObject;
53+
privatestaticIdeGetObjectSourcegetObjectSource;
54+
privatestaticIdeGetConnectAsgetConnectAs;
55+
privatestaticIdeCreateToolButtoncreateToolButton;
5156

52-
internalstaticintpluginId;
53-
internalstaticstringusername;
54-
internalstaticstringpassword;
55-
internalstaticstringdatabase;
57+
privatestaticintpluginId;
58+
privatestaticstringusername;
59+
privatestaticstringpassword;
60+
privatestaticstringdatabase;
61+
privatestaticstringconnectAs;
5662

5763
privatestaticPlsqlDeveloperUtPlsqlPlugin_plugin;
58-
privatestaticRealTimeTestRunner_testRunner;
5964

6065
privatestaticreadonlyList<TestRunnerWindow>Windows=newList<TestRunnerWindow>();
6166

62-
privatePlsqlDeveloperUtPlsqlPlugin()
63-
{
64-
_testRunner=newRealTimeTestRunner();
65-
}
66-
6767
#region DLL exported API
6868

6969
[DllExport("IdentifyPlugIn",CallingConvention=CallingConvention.Cdecl)]
@@ -169,6 +169,9 @@ public static void RegisterCallback(int index, IntPtr function)
169169
case79:
170170
getObjectSource=(IdeGetObjectSource)Marshal.GetDelegateForFunctionPointer(function,typeof(IdeGetObjectSource));
171171
break;
172+
case97:
173+
getConnectAs=(IdeGetConnectAs)Marshal.GetDelegateForFunctionPointer(function,typeof(IdeGetConnectAs));
174+
break;
172175
case150:
173176
createToolButton=(IdeCreateToolButton)Marshal.GetDelegateForFunctionPointer(function,typeof(IdeCreateToolButton));
174177
break;
@@ -204,41 +207,41 @@ public static void OnMenuClick(int index)
204207
{
205208
if(index==PluginMenuIndexAllTests)
206209
{
207-
if(connected())
210+
if(connected()&&!Sydba())
208211
{
209-
vartestResultWindow=newTestRunnerWindow(_testRunner,_plugin);
212+
vartestResultWindow=newTestRunnerWindow(_plugin,username,password,database,connectAs);
210213
Windows.Add(testResultWindow);
211214
testResultWindow.RunTestsAsync("_ALL",username,null,null,false);
212215
}
213216
}
214217
elseif(index==PluginMenuIndexAllTestsWithCoverage)
215218
{
216-
if(connected())
219+
if(connected()&&!Sydba())
217220
{
218-
vartestResultWindow=newTestRunnerWindow(_testRunner,_plugin);
221+
vartestResultWindow=newTestRunnerWindow(_plugin,username,password,database,connectAs);
219222
Windows.Add(testResultWindow);
220223
testResultWindow.RunTestsAsync("_ALL",username,null,null,true);
221224
}
222225
}
223226
elseif(index==PluginPopupIndex)
224227
{
225-
if(connected())
228+
if(connected()&&!Sydba())
226229
{
227230
getPopupObject(outIntPtrtype,outIntPtrowner,outIntPtrname,outIntPtrsubType);
228231

229-
vartestResultWindow=newTestRunnerWindow(_testRunner,_plugin);
232+
vartestResultWindow=newTestRunnerWindow(_plugin,username,password,database,connectAs);
230233
Windows.Add(testResultWindow);
231234
testResultWindow.RunTestsAsync(Marshal.PtrToStringAnsi(type),Marshal.PtrToStringAnsi(owner),
232235
Marshal.PtrToStringAnsi(name),Marshal.PtrToStringAnsi(subType),false);
233236
}
234237
}
235238
elseif(index==PluginPopupIndexWithCoverage)
236239
{
237-
if(connected())
240+
if(connected()&&!Sydba())
238241
{
239242
getPopupObject(outIntPtrtype,outIntPtrowner,outIntPtrname,outIntPtrsubType);
240243

241-
vartestResultWindow=newTestRunnerWindow(_testRunner,_plugin);
244+
vartestResultWindow=newTestRunnerWindow(_plugin,username,password,database,connectAs);
242245
Windows.Add(testResultWindow);
243246
testResultWindow.RunTestsAsync(Marshal.PtrToStringAnsi(type),Marshal.PtrToStringAnsi(owner),
244247
Marshal.PtrToStringAnsi(name),Marshal.PtrToStringAnsi(subType),true);
@@ -260,13 +263,19 @@ public void OpenPackageBody(string owner, string name)
260263
varsource=getObjectSource("PACKAGE BODY",owner,name);
261264
createWindow(3,Marshal.PtrToStringAnsi(source),false);
262265
}
266+
privatestaticboolSydba()
267+
{
268+
if(connectAs.ToLower().Equals("sysdba")){
269+
MessageBox.Show("You shouldn't run utPLSQL as SYSDBA.\n\nTest will not run.","Connected as SYSDBA",MessageBoxButtons.OK,MessageBoxIcon.Error);
270+
returntrue;
271+
}
272+
returnfalse;
273+
}
263274

264275
privatestaticvoidConnectToDatabase()
265276
{
266277
try
267278
{
268-
_testRunner.Close();
269-
270279
if(connected())
271280
{
272281
getConnectionInfo(outIntPtrptrUsername,outIntPtrptrPassword,outIntPtrptrDatabase);
@@ -275,7 +284,9 @@ private static void ConnectToDatabase()
275284
password=Marshal.PtrToStringAnsi(ptrPassword);
276285
database=Marshal.PtrToStringAnsi(ptrDatabase);
277286

278-
_testRunner.Connect(username,password,database);
287+
IntPtrptrConnectAs=getConnectAs();
288+
289+
connectAs=Marshal.PtrToStringAnsi(ptrConnectAs);
279290
}
280291
}
281292
catch(Exceptione)

‎PlsqlDeveloperUtPlsqlPlugin/PlsqlDeveloperUtPlsqlPlugin/PlsqlDeveloperUtPlsqlPlugin.csproj

Lines changed: 5 additions & 10 deletions
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.0</TargetFrameworkVersion>
13+
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
1414
<FileAlignment>512</FileAlignment>
1515
<Deterministic>true</Deterministic>
1616
<TargetFrameworkProfile />
@@ -69,6 +69,7 @@
6969
<PlatformTarget>x86</PlatformTarget>
7070
<LangVersion>7.3</LangVersion>
7171
<ErrorReport>prompt</ErrorReport>
72+
<Prefer32Bit>false</Prefer32Bit>
7273
</PropertyGroup>
7374
<PropertyGroupCondition="'$(Configuration)|$(Platform)' == 'Release|x86'">
7475
<OutputPath>bin\x86\Release\</OutputPath>
@@ -79,6 +80,7 @@
7980
<PlatformTarget>x86</PlatformTarget>
8081
<LangVersion>7.3</LangVersion>
8182
<ErrorReport>prompt</ErrorReport>
83+
<Prefer32Bit>false</Prefer32Bit>
8284
</PropertyGroup>
8385
<PropertyGroup>
8486
<ApplicationIcon>utPLSQL.ico</ApplicationIcon>
@@ -87,9 +89,6 @@
8789
<ReferenceInclude="Costura, Version=4.1.0.0, Culture=neutral, PublicKeyToken=9919ef960d84173d, processorArchitecture=MSIL">
8890
<HintPath>..\packages\Costura.Fody.4.1.0\lib\net40\Costura.dll</HintPath>
8991
</Reference>
90-
<ReferenceInclude="FontAwesome.Sharp, Version=5.15.3.0, Culture=neutral, processorArchitecture=MSIL">
91-
<HintPath>..\packages\FontAwesome.Sharp.5.15.3\lib\net40\FontAwesome.Sharp.dll</HintPath>
92-
</Reference>
9392
<ReferenceInclude="RGiesecke.DllExport.Metadata, Version=1.0.0.0, Culture=neutral, PublicKeyToken=8f52d83c1a22df51, processorArchitecture=MSIL">
9493
<HintPath>..\packages\UnmanagedExports.1.2.7\lib\net\RGiesecke.DllExport.Metadata.dll</HintPath>
9594
<Private>False</Private>
@@ -148,10 +147,6 @@
148147
<WCFMetadataInclude="Connected Services\" />
149148
</ItemGroup>
150149
<ItemGroup>
151-
<ProjectReferenceInclude="..\utPLSQL.Api\utPLSQL.Api.csproj">
152-
<Project>{df09eace-50ec-44ea-849a-80462a219cfc}</Project>
153-
<Name>utPLSQL.Api</Name>
154-
</ProjectReference>
155150
<ProjectReferenceInclude="..\utPLSQL.Ui\utPLSQL.Ui.csproj">
156151
<Project>{7669189c-4a58-4e82-9dcb-7956624a719b}</Project>
157152
<Name>utPLSQL.Ui</Name>
@@ -164,9 +159,9 @@
164159
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
165160
</PropertyGroup>
166161
<ErrorCondition="!Exists('..\packages\UnmanagedExports.Repack.1.0.4\build\UnmanagedExports.Repack.targets')"Text="$([System.String]::Format('$(ErrorText)', '..\packages\UnmanagedExports.Repack.1.0.4\build\UnmanagedExports.Repack.targets'))" />
167-
<ErrorCondition="!Exists('..\packages\Fody.6.0.0\build\Fody.targets')"Text="$([System.String]::Format('$(ErrorText)', '..\packages\Fody.6.0.0\build\Fody.targets'))" />
168162
<ErrorCondition="!Exists('..\packages\Costura.Fody.4.1.0\build\Costura.Fody.props')"Text="$([System.String]::Format('$(ErrorText)', '..\packages\Costura.Fody.4.1.0\build\Costura.Fody.props'))" />
163+
<ErrorCondition="!Exists('..\packages\Fody.6.3.0\build\Fody.targets')"Text="$([System.String]::Format('$(ErrorText)', '..\packages\Fody.6.3.0\build\Fody.targets'))" />
169164
</Target>
170165
<ImportProject="../packages/UnmanagedExports.1.2.7/tools/RGiesecke.DllExport.targets"Condition="Exists('../packages/UnmanagedExports.1.2.7/tools/RGiesecke.DllExport.targets')" />
171-
<ImportProject="..\packages\Fody.6.0.0\build\Fody.targets"Condition="Exists('..\packages\Fody.6.0.0\build\Fody.targets')" />
166+
<ImportProject="..\packages\Fody.6.3.0\build\Fody.targets"Condition="Exists('..\packages\Fody.6.3.0\build\Fody.targets')" />
172167
</Project>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp