Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Two problems with Snippet060TextCellEditorWithContentProposal
Two problems with Snippet060TextCellEditorWithContentProposal [message #334266] Thu, 29 January 2009 17:21 Go to next message
Eclipse UserFriend
I have discovered two problems with snippet 60.

1. When the content assist dialog is open and another cell is selected the
cell editor remains active until another cell editor is activated.
2. When the content assist dialog is open <Esc> cancels editing instead of
just closing the dialog.

I have not yet figured out how to fix the first problem and would appreciate
any suggestions.

The second problem I have solved by adding the following code to the
TextCellEditorWithContentProposal class.

protected void keyReleaseOccured(KeyEvent keyEvent) {

// Filter Esc when popupOpen

if (keyEvent.character != '\u001b' || !popupOpen) { // \u001b
is Escape character

super.keyReleaseOccured(keyEvent);

}

}



Regards,

Greg
Re: Two problems with Snippet060TextCellEditorWithContentProposal [message #334275 is a reply to message #334266] Fri, 30 January 2009 03:50 Go to previous message
Eclipse UserFriend
Hi Greg,

Please file a bug against PlatformUI and add me as a CC.

Tom

Greg Babcock schrieb:
> I have discovered two problems with snippet 60.
>
> 1. When the content assist dialog is open and another cell is selected the
> cell editor remains active until another cell editor is activated.
> 2. When the content assist dialog is open <Esc> cancels editing instead of
> just closing the dialog.
>
> I have not yet figured out how to fix the first problem and would appreciate
> any suggestions.
>
> The second problem I have solved by adding the following code to the
> TextCellEditorWithContentProposal class.
>
> protected void keyReleaseOccured(KeyEvent keyEvent) {
>
> // Filter Esc when popupOpen
>
> if (keyEvent.character != '\u001b' || !popupOpen) { // \u001b
> is Escape character
>
> super.keyReleaseOccured(keyEvent);
>
> }
>
> }
>
>
>
> Regards,
>
> Greg
>
>


--
B e s t S o l u t i o n . at
------------------------------------------------------------ --------
Tom Schindl JFace-Committer
------------------------------------------------------------ --------
Previous Topic:setting the a Console active programmatically in the Console view
Next Topic:Title and message location in ScrolledForm
Goto Forum:
  


Current Time: Sat Mar 15 00:50:27 EDT 2025

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

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

Back to the top