× Heads up!

Aqua Data Studio / nhilam

Follow
IDE for Relational Databases
×
NielsGron reported 2012-08-23T15:31:35Z  · tariqrahiman last modified 2012-09-07T22:43:46Z

The method call EditorPreferences.setAnnotationBarVisible(mime, b) is causing frame/window focus loss


Dev
Emilian Bold
emilianbold
QA
Tariq Rahiman
tariqrahiman
Priority Low
Complexity Unknown
Component Editor
Version 12.0

This is in reference to issue #7387 which is not clearly describing the problem.

To reproduce the problem do the following ..

1. Open ADS and open Query Window, then type "select * from x".  You will notice that the editor has focus because cursor is blinking.
2. Then do a File->Options ... then click OK.  Ok will call EditorPreferences.setAnnotationBarVisible(mime, b).  Once the Option dialog closes you will see that the editor does not have a blinking cursor any more.  There is no focus on the frame or editor.
3. If you right mouse click on the editor you will get the popup menu, but there is still no focus ... if you click on a menu action, the action will not be called.
4. Yet, if you left mouse click on the editor to give focus to the editor, then right mouse click to get the popup menu, then select an action, the action is called.

There are two problems :

1. The call to EditorPreferences.setAnnotationBarVisible(mime, b) loses the focus to the editor  ( Seems to be Vincaed Editor issue )
2. A click to an action in a popup menu doesn't seem to be triggered if the component doesn't have focus.  ( Seems to be a Swing issue )

Things to note :

1. The call to EditorPreferences.setAnnotationBarVisible(mime, b) causes focus loss, but none of the other EditorPreferences.setXXX methods cause focus lose. 
2. Adding a requestFocus() call to DatastudioOptions.OptionsDialog2.onOK() at the end doesn't seem to give focus back to editor. ( eg : ((CFrame)getParent()).getPanelView().requestFocus(); )

 

Issue #7452

Closed
Fixed
Resolved 2012-08-28T15:28:18Z
 
 
Completion
No due date
Fixed Build vincaed 3.0.4.0
No time estimate

About AquaClusters Privacy Policy Support Version - 19.0.2-4 AquaFold, Inc Copyright © 2007-2017