Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » Focus listener - inconsistent behavior
Focus listener - inconsistent behavior [message #658223] Mon, 07 March 2011 13:32
No real name is currently offline No real nameFriend
Messages: 4
Registered: October 2010
Junior Member
I've written an application that allows editing a property value in the properties tab.
Upon exiting the cell, after edit, a dialog message appears.
I've noticed that there's a different behavior in the cell's value when the dialog appears, depending on the location of the cursor's focus.

The following behavior occurs when the dialog appears
If the cursor is moved and the focus is now on a different property then the original value appears in the cell instead of the new value.
However if the cursor is moved to a cell where no property is defined then the new value appears (to me this seems the correct behavior)

I think that the different behavior is somehow related to fireApplyEditorValue in CellEditor

If the method is called and the cursor is moved to a different property then the value is reverted.
If the method is called and the cursor is moved to cell that does not contain a property then the value doesn't change.

If the method is not called and the cursor is moved to a different property then the value is doesn't change.
If the method is not called and the cursor is moved to cell that does not contain a property then the value doesn't change but the dialog does not appear.

I tried to override the method but I don't see how to detect the cursor's location.

To narrow down the issue, there's a different behavior if the focus is on a line containing a property or on a line that doesn't have a property.

Any help would be appreciated, thank you.
Previous Topic:Custom "theme" for MenuManager?
Next Topic:tableviewer header heigth
Goto Forum:
  


Current Time: Sat Apr 20 00:23:51 GMT 2024

Powered by FUDForum. Page generated in 0.03818 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top