Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Two problems with Snippet060TextCellEditorWithContentProposal
Two problems with Snippet060TextCellEditorWithContentProposal [message #334266] Thu, 29 January 2009 22:21 Go to next message
Greg Babcock is currently offline Greg BabcockFriend
Messages: 53
Registered: July 2009
Member
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 08:50 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
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 Apr 27 02:22:35 GMT 2024

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

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

Back to the top