• R/O
  • SSH
  • HTTPS

dbviewer: コミット


コミットメタ情報

リビジョン257 (tree)
日時2012-07-15 20:53:08
作者makopoppo

ログメッセージ

Double-click to select in known JDBC driver list

変更サマリ

差分

--- DBViewer/branches/2.0.0/src/zigen/plugin/db/ui/dialogs/DriverSelectDialog.java (revision 256)
+++ DBViewer/branches/2.0.0/src/zigen/plugin/db/ui/dialogs/DriverSelectDialog.java (revision 257)
@@ -14,6 +14,8 @@
1414 import org.eclipse.jface.dialogs.IDialogConstants;
1515 import org.eclipse.jface.dialogs.IMessageProvider;
1616 import org.eclipse.jface.dialogs.TitleAreaDialog;
17+import org.eclipse.jface.viewers.DoubleClickEvent;
18+import org.eclipse.jface.viewers.IDoubleClickListener;
1719 import org.eclipse.jface.viewers.ISelectionChangedListener;
1820 import org.eclipse.jface.viewers.SelectionChangedEvent;
1921 import org.eclipse.jface.viewers.StructuredSelection;
@@ -85,12 +87,17 @@
8587 // viewer.setInput(ws);
8688
8789 viewer.addSelectionChangedListener(new ISelectionChangedListener() {
88-
8990 public void selectionChanged(SelectionChangedEvent event) {
9091 selectionChangeHandler(event);
9192 }
9293 });
9394
95+ viewer.addDoubleClickListener(new IDoubleClickListener() {
96+ public void doubleClick(DoubleClickEvent event) {
97+ okPressed();
98+ }
99+ });
100+
94101 viewer.expandAll();
95102
96103 return composite;
旧リポジトリブラウザで表示