提交 abf957c2 编写于 作者: J jurgen

Multiple instances check

Former-commit-id: 0bfd0937
上级 3b869e8f
......@@ -21,4 +21,3 @@ Cancel/disconnect improvement
Connection "dirty" flag handle
Formatting profiles to connection association
Structs in record mode
Multiple instances check
......@@ -69,9 +69,9 @@ public class DBeaverApplication implements IApplication
shell = new Shell(display, SWT.ON_TOP);
}
MessageBox messageBox = new MessageBox(shell, SWT.ICON_WARNING | SWT.IGNORE | SWT.RETRY | SWT.ABORT);
messageBox.setText("Can't lock workspace");
messageBox.setMessage("Can't lock workspace [" + defaultHomeURL + "]. " +
"It seems that you have another DBeaver instance running. " +
messageBox.setText("DBeaver - Can't lock workspace");
messageBox.setMessage("Can't lock workspace at " + defaultHomePath + ".\n" +
"It seems that you have another DBeaver instance running.\n" +
"You may ignore it and work without lock but it is recommended to shutdown previous instance otherwise you may corrupt workspace data.");
switch (messageBox.open()) {
case SWT.ABORT:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册