Page 1 of 1

[Solved]:Delete and edit connection from within DB Navigator

PostPosted: Fri Feb 27, 2015 12:40 pm
by stefaneidelloth
I would like to be able to right click on a connection in the Database Navigator view and
A. Delete the connection
B. Edit the connection attributes (like the Database file for a SQlite connection)

The context menu currently provides the option Properties. However, I can not fine the connection settings there.
The only way I currently know to achieve A. and B. is to manually edit the xml file .dbeaver-data-sources.xml in the project folder.

I use Eclipse Luna and installed DBeaver from the update site http://dbeaver.jkiss.org/update/3.1.5/

Re: Delete and edit connection from within Database Navigato

PostPosted: Fri Feb 27, 2015 9:39 pm
by Serge
Hi,

That's an odd request. This features was implemented in the very first version of DBeaver a few years ago. See screenshot.
If you don't have these commands in context menu - please post a screenshot of your context menu and also check Eclipse error log for any related errors.

Also - by default connection editor opens when you double-click on connection. Delete can be performed with "Delete" key. Editing xml file is a really tricky way :)

Re: Delete and edit connection from within Database Navigato

PostPosted: Mon Mar 02, 2015 9:11 am
by stefaneidelloth
* The context menu that is shown for my MySQL or SQlite database conections is shown in the attachment.
* Double clicking on a connection opens the Script editor and does not show the connection properties.
* The deletion with delete key does not work for me.
* I have some messages in the ErrorLog view but I guess that they are not related to DBeaver.
* My operation system is Win7.
dbeaver_context_meu.png
dbeaver_context_meu.png (9.31 KiB) Viewed 56583 times

error_log.png
error_log.png (52.87 KiB) Viewed 56583 times


* I also attach the context menu for databases. I would expect a delete option there (also for the table context menu), too.
database_context.png
database_context.png (10.64 KiB) Viewed 56583 times

Re: Delete and edit connection from within Database Navigato

PostPosted: Mon Mar 02, 2015 4:46 pm
by Serge
It is definitely a bug in DBeaver.
Most likely it appears only in plugin version but I still can't reproduce it. I'll try a few more tricks with plugin installation..

Could you check standalone version to make sure that edit/delete commands works there in your environment?

Re: Delete and edit connection from within Database Navigato

PostPosted: Mon Mar 02, 2015 4:58 pm
by Serge
Also could you say exact version of your Eclipse (from About box)

Re: Delete and edit connection from within Database Navigato

PostPosted: Mon Mar 02, 2015 6:15 pm
by stefaneidelloth
The options edit/delete work in the standalone version.

I just updated my Eclipse to version

Luna Service Release 2 (4.4.2)
Build id: 20150219-0600

and the issue is still present.

Re: Delete and edit connection from within Database Navigato

PostPosted: Mon Mar 02, 2015 7:50 pm
by Serge
What Eclipse package do you have (for Java developers, Java EE, RCP, etc)?
I assume that some 3rd party extension could bring these problems.

Also in what perspective to you work (In DBeaver perspective or in some else)?

Re: Delete and edit connection from within Database Navigato

PostPosted: Mon Mar 16, 2015 6:16 pm
by stefaneidelloth
Hi, today I had some time to have a look on this issue again. The origin of the problem seems
to be related to the fact that I start Eclipse with a wrapper called EclipsePortable (sorry, I forgot about that).

If I use a fresh Eclipse for Java Developers or start the wrapped Eclipse.exe directly, the context menu works just fine.
The context menu even works in the wrapped version if I use the DBeaver Perspective.

Therefore, you can close this topic since it is related to a very special case which can
be "solved" by using the DBeaver Perspective. Thank you.

Re: [Solved]:Delete and edit connection from within DB Navig

PostPosted: Thu Jun 25, 2015 7:26 am
by frankmusolf
'Edit Connection' Point in context menu is not visible in debug perspective. in java perspective 'Edit Connection' is available.