Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
suliangchun
dbeaver
提交
07cc5c6d
D
dbeaver
项目概览
suliangchun
/
dbeaver
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dbeaver
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
07cc5c6d
编写于
1月 07, 2018
作者:
A
Alexander Fedorov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
#2556 remove <DEBUG_OBJECT extends DBGObject> from DBGSession
上级
33064fe3
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
25 addition
and
24 deletion
+25
-24
plugins/org.jkiss.dbeaver.debug.core/src/org/jkiss/dbeaver/debug/DBGBaseController.java
...g.core/src/org/jkiss/dbeaver/debug/DBGBaseController.java
+5
-5
plugins/org.jkiss.dbeaver.debug.core/src/org/jkiss/dbeaver/debug/DBGController.java
...debug.core/src/org/jkiss/dbeaver/debug/DBGController.java
+4
-4
plugins/org.jkiss.dbeaver.debug.core/src/org/jkiss/dbeaver/debug/DBGSession.java
...er.debug.core/src/org/jkiss/dbeaver/debug/DBGSession.java
+2
-2
plugins/org.jkiss.dbeaver.debug.core/src/org/jkiss/dbeaver/debug/DBGSessionManager.java
...g.core/src/org/jkiss/dbeaver/debug/DBGSessionManager.java
+3
-3
plugins/org.jkiss.dbeaver.ext.postgresql.debug.core/src/org/jkiss/dbeaver/ext/postgresql/debug/internal/PostgreDebugController.java
...ext/postgresql/debug/internal/PostgreDebugController.java
+1
-1
plugins/org.jkiss.dbeaver.ext.postgresql.debug.core/src/org/jkiss/dbeaver/ext/postgresql/debug/internal/console/Debugger.java
...eaver/ext/postgresql/debug/internal/console/Debugger.java
+3
-3
plugins/org.jkiss.dbeaver.ext.postgresql.debug.core/src/org/jkiss/dbeaver/ext/postgresql/debug/internal/impl/PostgreDebugSession.java
...t/postgresql/debug/internal/impl/PostgreDebugSession.java
+4
-3
plugins/org.jkiss.dbeaver.ext.postgresql.debug.core/src/org/jkiss/dbeaver/ext/postgresql/debug/internal/impl/PostgreDebugSessionManager.java
...resql/debug/internal/impl/PostgreDebugSessionManager.java
+3
-3
未找到文件。
plugins/org.jkiss.dbeaver.debug.core/src/org/jkiss/dbeaver/debug/DBGBaseController.java
浏览文件 @
07cc5c6d
...
...
@@ -40,7 +40,7 @@ public abstract class DBGBaseController implements DBGController {
}
@Override
public
DBGSession
<?>
connect
(
DBRProgressMonitor
monitor
)
throws
DBGException
{
public
DBGSession
connect
(
DBRProgressMonitor
monitor
)
throws
DBGException
{
DBPDataSource
dataSource
=
dataSourceContainer
.
getDataSource
();
if
(!
dataSourceContainer
.
isConnected
())
{
throw
new
DBGException
(
"Not connected to database"
);
...
...
@@ -55,22 +55,22 @@ public abstract class DBGBaseController implements DBGController {
}
}
protected
abstract
DBGSession
<?>
createSession
(
DBRProgressMonitor
monitor
,
DBPDataSource
dataSource
)
throws
DBGException
;
protected
abstract
DBGSession
createSession
(
DBRProgressMonitor
monitor
,
DBPDataSource
dataSource
)
throws
DBGException
;
@Override
public
void
resume
(
DBRProgressMonitor
monitor
,
DBGSession
<?>
session
)
throws
DBGException
{
public
void
resume
(
DBRProgressMonitor
monitor
,
DBGSession
session
)
throws
DBGException
{
// TODO Auto-generated method stub
}
@Override
public
void
suspend
(
DBRProgressMonitor
monitor
,
DBGSession
<?>
session
)
throws
DBGException
{
public
void
suspend
(
DBRProgressMonitor
monitor
,
DBGSession
session
)
throws
DBGException
{
// TODO Auto-generated method stub
}
@Override
public
void
terminate
(
DBRProgressMonitor
monitor
,
DBGSession
<?>
session
)
throws
DBGException
{
public
void
terminate
(
DBRProgressMonitor
monitor
,
DBGSession
session
)
throws
DBGException
{
}
...
...
plugins/org.jkiss.dbeaver.debug.core/src/org/jkiss/dbeaver/debug/DBGController.java
浏览文件 @
07cc5c6d
...
...
@@ -24,13 +24,13 @@ import org.jkiss.dbeaver.model.runtime.DBRProgressMonitor;
*/
public
interface
DBGController
{
DBGSession
<?>
connect
(
DBRProgressMonitor
monitor
)
throws
DBGException
;
DBGSession
connect
(
DBRProgressMonitor
monitor
)
throws
DBGException
;
void
resume
(
DBRProgressMonitor
monitor
,
DBGSession
<?>
session
)
throws
DBGException
;
void
resume
(
DBRProgressMonitor
monitor
,
DBGSession
session
)
throws
DBGException
;
void
suspend
(
DBRProgressMonitor
monitor
,
DBGSession
<?>
session
)
throws
DBGException
;
void
suspend
(
DBRProgressMonitor
monitor
,
DBGSession
session
)
throws
DBGException
;
void
terminate
(
DBRProgressMonitor
monitor
,
DBGSession
<?>
session
)
throws
DBGException
;
void
terminate
(
DBRProgressMonitor
monitor
,
DBGSession
session
)
throws
DBGException
;
void
dispose
()
throws
DBGException
;
...
...
plugins/org.jkiss.dbeaver.debug.core/src/org/jkiss/dbeaver/debug/DBGSession.java
浏览文件 @
07cc5c6d
...
...
@@ -20,7 +20,7 @@ package org.jkiss.dbeaver.debug;
import
java.util.List
;
public
interface
DBGSession
<
DEBUG_OBJECT
extends
DBGObject
>
{
public
interface
DBGSession
{
DBGSessionInfo
getSessionInfo
();
...
...
@@ -28,7 +28,7 @@ public interface DBGSession<DEBUG_OBJECT extends DBGObject> {
List
<?
extends
DBGBreakpoint
>
getBreakpoints
();
DBGBreakpoint
setBreakpoint
(
D
EBUG_OBJECT
obj
,
DBGBreakpointProperties
properties
)
throws
DBGException
;
DBGBreakpoint
setBreakpoint
(
D
BGObject
obj
,
DBGBreakpointProperties
properties
)
throws
DBGException
;
void
removeBreakpoint
(
DBGBreakpoint
bp
)
throws
DBGException
;
...
...
plugins/org.jkiss.dbeaver.debug.core/src/org/jkiss/dbeaver/debug/DBGSessionManager.java
浏览文件 @
07cc5c6d
...
...
@@ -27,13 +27,13 @@ public interface DBGSessionManager {
List
<?
extends
DBGSessionInfo
>
getSessions
()
throws
DBGException
;
DBGSession
<?
extends
DBGObject
>
getDebugSession
(
Object
id
)
throws
DBGException
;
DBGSession
getDebugSession
(
Object
id
)
throws
DBGException
;
List
<
DBGSession
<?>
>
getDebugSessions
()
throws
DBGException
;
List
<
DBGSession
>
getDebugSessions
()
throws
DBGException
;
void
terminateSession
(
Object
id
);
DBGSession
<?
extends
DBGObject
>
createDebugSession
(
DBCExecutionContext
connection
)
throws
DBGException
;
DBGSession
createDebugSession
(
DBCExecutionContext
connection
)
throws
DBGException
;
boolean
isSessionExists
(
Object
id
);
...
...
plugins/org.jkiss.dbeaver.ext.postgresql.debug.core/src/org/jkiss/dbeaver/ext/postgresql/debug/internal/PostgreDebugController.java
浏览文件 @
07cc5c6d
...
...
@@ -48,7 +48,7 @@ public class PostgreDebugController extends DBGBaseController {
}
@Override
protected
DBGSession
<?>
createSession
(
DBRProgressMonitor
monitor
,
DBPDataSource
dataSource
)
throws
DBGException
{
protected
DBGSession
createSession
(
DBRProgressMonitor
monitor
,
DBPDataSource
dataSource
)
throws
DBGException
{
PostgreDebugSessionManager
sessionManager
=
getSessionManager
(
monitor
);
try
{
JDBCExecutionContext
sessionContext
=
(
JDBCExecutionContext
)
getDataSourceContainer
().
getDataSource
().
openIsolatedContext
(
monitor
,
"Debug session"
);
...
...
plugins/org.jkiss.dbeaver.ext.postgresql.debug.core/src/org/jkiss/dbeaver/ext/postgresql/debug/internal/console/Debugger.java
浏览文件 @
07cc5c6d
...
...
@@ -211,7 +211,7 @@ public class Debugger {
PostgreDebugSession
debugSession
=
null
;
List
<
DBGSession
<?>
>
sessions
=
pgDbgManager
.
getDebugSessions
();
List
<
DBGSession
>
sessions
=
pgDbgManager
.
getDebugSessions
();
Scanner
scArg
;
...
...
@@ -225,7 +225,7 @@ public class Debugger {
int
sessNo
=
1
;
for
(
DBGSession
<?>
s
:
sessions
)
{
for
(
DBGSession
s
:
sessions
)
{
System
.
out
.
println
(
String
.
format
(
" (%d) %s"
,
sessNo
++,
s
.
toString
()));
}
...
...
@@ -662,7 +662,7 @@ public class Debugger {
System
.
out
.
println
(
"no debug sessions"
);
break
;
}
for
(
DBGSession
<?>
s
:
pgDbgManager
.
getDebugSessions
())
{
for
(
DBGSession
s
:
pgDbgManager
.
getDebugSessions
())
{
System
.
out
.
println
(
s
);
}
...
...
plugins/org.jkiss.dbeaver.ext.postgresql.debug.core/src/org/jkiss/dbeaver/ext/postgresql/debug/internal/impl/PostgreDebugSession.java
浏览文件 @
07cc5c6d
...
...
@@ -33,6 +33,7 @@ import org.jkiss.dbeaver.Log;
import
org.jkiss.dbeaver.debug.DBGBreakpoint
;
import
org.jkiss.dbeaver.debug.DBGBreakpointProperties
;
import
org.jkiss.dbeaver.debug.DBGException
;
import
org.jkiss.dbeaver.debug.DBGObject
;
import
org.jkiss.dbeaver.debug.DBGSession
;
import
org.jkiss.dbeaver.debug.DBGSessionInfo
;
import
org.jkiss.dbeaver.debug.DBGStackFrame
;
...
...
@@ -42,7 +43,7 @@ import org.jkiss.dbeaver.model.impl.jdbc.JDBCExecutionContext;
import
org.jkiss.dbeaver.model.runtime.VoidProgressMonitor
;
@SuppressWarnings
(
"nls"
)
public
class
PostgreDebugSession
implements
DBGSession
<
PostgreDebugObject
>
{
public
class
PostgreDebugSession
implements
DBGSession
{
private
static
final
Log
log
=
Log
.
getLog
(
PostgreDebugSession
.
class
);
...
...
@@ -165,14 +166,14 @@ public class PostgreDebugSession implements DBGSession<PostgreDebugObject> {
}
@Override
public
DBGBreakpoint
setBreakpoint
(
PostgreDebug
Object
obj
,
DBGBreakpointProperties
properties
)
throws
DBGException
{
public
DBGBreakpoint
setBreakpoint
(
DBG
Object
obj
,
DBGBreakpointProperties
properties
)
throws
DBGException
{
acquireReadLock
();
PostgreDebugBreakpoint
bp
=
null
;
try
{
bp
=
new
PostgreDebugBreakpoint
(
this
,
obj
,
(
PostgreDebugBreakpointProperties
)
properties
);
bp
=
new
PostgreDebugBreakpoint
(
this
,
(
PostgreDebugObject
)
obj
,
(
PostgreDebugBreakpointProperties
)
properties
);
breakpoints
.
add
(
bp
);
}
finally
{
...
...
plugins/org.jkiss.dbeaver.ext.postgresql.debug.core/src/org/jkiss/dbeaver/ext/postgresql/debug/internal/impl/PostgreDebugSessionManager.java
浏览文件 @
07cc5c6d
...
...
@@ -131,7 +131,7 @@ public class PostgreDebugSessionManager implements DBGSessionManager {
}
@Override
public
DBGSession
<
PostgreDebugObject
>
getDebugSession
(
Object
id
)
public
DBGSession
getDebugSession
(
Object
id
)
throws
DBGException
{
return
sessions
.
get
(
id
);
}
...
...
@@ -174,8 +174,8 @@ public class PostgreDebugSessionManager implements DBGSessionManager {
}
@Override
public
List
<
DBGSession
<?>
>
getDebugSessions
()
throws
DBGException
{
return
new
ArrayList
<
DBGSession
<?>
>(
sessions
.
values
());
public
List
<
DBGSession
>
getDebugSessions
()
throws
DBGException
{
return
new
ArrayList
<
DBGSession
>(
sessions
.
values
());
}
@Override
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录