提交 b8127c6a 编写于 作者: S serge-rider

Workspace absolute path getter fix

上级 0c35d2f3
......@@ -135,8 +135,6 @@ public class ApplicationWorkbenchWindowAdvisor extends WorkbenchWindowAdvisor im
/**
* Hooks the listeners needed on the window
*
* @param configurer
*/
private void hookTitleUpdateListeners(IWorkbenchWindowConfigurer configurer) {
// hook up the listeners to update the window title
......@@ -237,12 +235,9 @@ public class ApplicationWorkbenchWindowAdvisor extends WorkbenchWindowAdvisor im
if (isRunWorkbenchInitializers()) {
// Open New Connection wizard
UIUtils.asyncExec(new Runnable() {
@Override
public void run() {
for (IWorkbenchWindowInitializer wwInit : WorkbenchHandlerRegistry.getInstance().getWorkbenchWindowInitializers()) {
wwInit.initializeWorkbenchWindow(getWindowConfigurer().getWindow());
}
UIUtils.asyncExec(() -> {
for (IWorkbenchWindowInitializer wwInit : WorkbenchHandlerRegistry.getInstance().getWorkbenchWindowInitializers()) {
wwInit.initializeWorkbenchWindow(getWindowConfigurer().getWindow());
}
});
}
......
......@@ -147,6 +147,8 @@ public class DBeaverApplication implements IApplication, DBPApplication {
// Write version info
writeWorkspaceInfo();
initializeApplication();
// Run instance server
instanceServer = DBeaverInstanceServer.startInstanceServer();
......@@ -191,6 +193,13 @@ public class DBeaverApplication implements IApplication, DBPApplication {
}
}
/**
* May be overrided in implementors
*/
protected void initializeApplication() {
}
private Display getDisplay() {
if (display == null) {
log.debug("Create display");
......
......@@ -84,7 +84,7 @@ public class DBeaverWorkspace implements DBPWorkspace {
@Override
public File getAbsolutePath() {
return eclipseWorkspace.getRoot().getFullPath().toFile();
return eclipseWorkspace.getRoot().getLocation().toFile();
}
public void save(DBRProgressMonitor monitor) throws DBException {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册