Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
suliangchun
dbeaver
提交
4012db34
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,发现更多精彩内容 >>
提交
4012db34
编写于
10月 04, 2012
作者:
J
jurgen
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Quick filters fix & RSV context menu fix & grid fix (change focus column even if grid is empty)
上级
6f38eceb
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
25 addition
and
19 deletion
+25
-19
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/controls/lightgrid/LightGrid.java
...rc/org/jkiss/dbeaver/ui/controls/lightgrid/LightGrid.java
+3
-0
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/controls/resultset/ResultSetPropertyTester.java
...beaver/ui/controls/resultset/ResultSetPropertyTester.java
+2
-2
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/controls/resultset/ResultSetViewer.java
.../jkiss/dbeaver/ui/controls/resultset/ResultSetViewer.java
+15
-4
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/controls/spreadsheet/Spreadsheet.java
...rg/jkiss/dbeaver/ui/controls/spreadsheet/Spreadsheet.java
+1
-1
product/pad/dbeaver-product.xml
product/pad/dbeaver-product.xml
+1
-0
product/pad/dbeaver_pad.xml
product/pad/dbeaver_pad.xml
+3
-12
未找到文件。
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/controls/lightgrid/LightGrid.java
浏览文件 @
4012db34
...
...
@@ -3207,6 +3207,9 @@ public class LightGrid extends Canvas {
showColumn
(
col
);
redraw
();
}
else
{
// Change focus column anyway
focusColumn
=
getColumn
(
new
Point
(
e
.
x
,
e
.
y
));
}
if
(
selectionEvent
!=
null
)
{
...
...
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/controls/resultset/ResultSetPropertyTester.java
浏览文件 @
4012db34
...
...
@@ -56,10 +56,10 @@ public class ResultSetPropertyTester extends PropertyTester
return
rsv
.
getRowsCount
()
>
0
;
}
else
if
(
PROP_CAN_COPY
.
equals
(
property
))
{
final
GridPos
currentPosition
=
rsv
.
getCurrentPosition
();
return
currentPosition
!=
null
&&
currentPosition
.
isValid
(
);
return
rsv
.
isValidCell
(
currentPosition
);
}
else
if
(
PROP_CAN_PASTE
.
equals
(
property
)
||
PROP_CAN_CUT
.
equals
(
property
))
{
final
GridPos
currentPosition
=
rsv
.
getCurrentPosition
();
return
currentPosition
!=
null
&&
!
rsv
.
isColumnReadOnly
(
currentPosition
);
return
rsv
.
isValidCell
(
currentPosition
)
&&
!
rsv
.
isColumnReadOnly
(
currentPosition
);
}
else
if
(
PROP_CAN_MOVE
.
equals
(
property
))
{
int
currentRow
=
rsv
.
getCurrentRow
();
if
(
"back"
.
equals
(
expectedValue
))
{
...
...
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/controls/resultset/ResultSetViewer.java
浏览文件 @
4012db34
...
...
@@ -1034,18 +1034,22 @@ public class ResultSetViewer extends Viewer implements IDataSourceProvider, ISpr
private
void
fillFiltersMenu
(
IMenuManager
filtersMenu
)
{
GridPos
currentPosition
=
getCurrentPosition
();
i
f
(
supportsDataFilter
()
&&
isValidCell
(
currentPosition
))
{
int
columnIndex
=
translateGridPos
(
currentPosition
).
col
;
i
nt
columnIndex
=
translateGridPos
(
currentPosition
).
col
;
if
(
supportsDataFilter
()
&&
columnIndex
>=
0
)
{
DBDAttributeBinding
column
=
metaColumns
[
columnIndex
];
if
(
column
.
getTableColumn
()
==
null
)
{
return
;
}
DBSDataKind
dataKind
=
DBUtils
.
getDataKind
(
column
.
getAttribute
());
if
(!
column
.
getAttribute
().
isRequired
())
{
filtersMenu
.
add
(
new
FilterByColumnAction
(
"IS NULL"
,
FilterByColumnType
.
VALU
E
,
column
));
filtersMenu
.
add
(
new
FilterByColumnAction
(
"IS NOT NULL"
,
FilterByColumnType
.
VALU
E
,
column
));
filtersMenu
.
add
(
new
FilterByColumnAction
(
"IS NULL"
,
FilterByColumnType
.
NON
E
,
column
));
filtersMenu
.
add
(
new
FilterByColumnAction
(
"IS NOT NULL"
,
FilterByColumnType
.
NON
E
,
column
));
}
for
(
FilterByColumnType
type
:
FilterByColumnType
.
values
())
{
if
(
type
==
FilterByColumnType
.
NONE
||
(
type
==
FilterByColumnType
.
VALUE
&&
!
isValidCell
(
currentPosition
)))
{
// Value filters are available only if certain cell is selected
continue
;
}
filtersMenu
.
add
(
new
Separator
());
if
(
type
.
getValue
(
this
,
column
,
true
)
==
null
)
{
continue
;
...
...
@@ -2904,6 +2908,13 @@ public class ResultSetViewer extends Viewer implements IDataSourceProvider, ISpr
column
.
getAttribute
(),
viewer
.
getSpreadsheet
().
getClipboard
());
}
},
NONE
(
DBIcon
.
FILTER_VALUE
.
getImageDescriptor
())
{
@Override
Object
getValue
(
ResultSetViewer
viewer
,
DBDAttributeBinding
column
,
boolean
useDefault
)
{
return
""
;
}
};
final
ImageDescriptor
icon
;
...
...
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/controls/spreadsheet/Spreadsheet.java
浏览文件 @
4012db34
...
...
@@ -206,7 +206,7 @@ public class Spreadsheet extends Composite implements Listener {
public
GridPos
getCursorPosition
()
{
if
(
grid
.
isDisposed
()
||
grid
.
getItemCount
()
<=
0
||
grid
.
getColumnCount
()
<=
0
)
{
if
(
grid
.
isDisposed
())
{
return
new
GridPos
(-
1
,
-
1
);
}
return
grid
.
getFocusCell
();
...
...
product/pad/dbeaver-product.xml
浏览文件 @
4012db34
...
...
@@ -62,6 +62,7 @@
- SQL scripts creation fix
- Metadata editors UI and undo/redo fixes
- Metadata property names localization
- Minor UI fixes
</release-notes>
</version>
...
...
product/pad/dbeaver_pad.xml
浏览文件 @
4012db34
...
...
@@ -45,8 +45,8 @@
<Program_Info>
<Program_Name>
DBeaver
</Program_Name>
<Program_Version>
1.6.4
</Program_Version>
<Program_Release_Month>
09
</Program_Release_Month>
<Program_Release_Day>
16
</Program_Release_Day>
<Program_Release_Month>
10
</Program_Release_Month>
<Program_Release_Day>
04
</Program_Release_Day>
<Program_Release_Year>
2012
</Program_Release_Year>
<Program_Cost_Dollars>
0
</Program_Cost_Dollars>
<Program_Type>
Freeware
</Program_Type>
...
...
@@ -65,6 +65,7 @@
- SQL scripts creation fix
- Metadata editors UI and undo/redo fixes
- Metadata property names localization
- Minor UI fixes
</Program_Change_Info>
<Program_System_Requirements>
Java 1.6 or higher
</Program_System_Requirements>
<Program_Category_Class>
Development::Other
</Program_Category_Class>
...
...
@@ -79,22 +80,12 @@
</File_Info>
<Expire_Info>
<Has_Expire_Info>
N
</Has_Expire_Info>
<Expire_Based_On>
Days
</Expire_Based_On>
<Expire_Count></Expire_Count>
<Expire_Other_Info></Expire_Other_Info>
<Expire_Month></Expire_Month>
<Expire_Day></Expire_Day>
<Expire_Year></Expire_Year>
</Expire_Info>
<Program_Categories>
SQL Client,Databases,Other,Development
</Program_Categories>
<Limitations>
none
</Limitations>
<Program_Cost_Other_Code></Program_Cost_Other_Code>
<Program_Cost_Other></Program_Cost_Other>
<Awards></Awards>
<Program_Specific_Category></Program_Specific_Category>
<Includes_JAVA_VM></Includes_JAVA_VM>
<Includes_VB_Runtime></Includes_VB_Runtime>
<Includes_DirectX></Includes_DirectX>
</Program_Info>
<Web_Info>
<Application_URLs>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录