local AddMenu = ...
local plsql = plsql
local SYS, IDE, SQL = plsql.sys, plsql.ide, plsql.sql
local ShowMessage = plsql.ShowMessage
local pvUserKill
do
local function UserKill()
local svSql="ALTER SYSTEM KILL SESSION '"..IDE.GetSessionValue("sid")..","..IDE.GetSessionValue("serial#").."' IMMEDIATE"
local svSqlCode=SQL.Execute(svSql)
if svSqlCode~=0 then
ShowMessage(svSqlCode)
end
end
pvUserKill=AddMenu(UserKill, "")
end
local function OnActivate()
IDE.CreatePopupItem(pvUserKill, "UserKill", "SESSIONWINDOW")
end
return {
OnActivate,
OnDeactivate,
CanClose,
AfterStart,
AfterReload,
OnBrowserChange,
OnWindowChange,
OnWindowCreate,
OnWindowCreated,
OnWindowClose,
BeforeExecuteWindow,
AfterExecuteWindow,
OnConnectionChange,
OnPopup,
OnMainMenu,
OnTemplate,
OnFileLoaded,
OnFileSaved,
About,
CommandLine,
RegisterExport,
ExportInit,
ExportFinished,
ExportPrepare,
ExportData
}