Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » Wizard closes when hitting "return"
Wizard closes when hitting "return" [message #504338] Fri, 18 December 2009 07:05 Go to next message
TW  is currently offline TW Friend
Messages: 62
Registered: November 2009
Member
Hi,
I'm having problems with my jface wizard.
My wizard has several wizard pages with different content. On one page there is an editable table.

I defined the table to be edited by either pressing the carriage return key or by double clicking on the cell.

If I have selected the cell and press carriage return, my wizard finishes. But I want my cell to be edited.

The problem is, that the wizard interprets the key pressed event and it is not propagated to my table.

Does anybody know how to fix this issue.

Greetings TW
Re: Wizard closes when hitting "return" [message #504399 is a reply to message #504338] Fri, 18 December 2009 17:11 Go to previous message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
Hi,

Adding the listener below to your Table should help with this.

table.addListener(SWT.Traverse, new Listener() {
public void handleEvent(Event event) {
if (event.detail == SWT.TRAVERSE_RETURN) {
// don't forward to the default button
event.doit = false;
}
}
});

Grant


"TW" <tobywagner@gmx.de> wrote in message
news:hgfr68$hbf$1@build.eclipse.org...
> Hi,
> I'm having problems with my jface wizard.
> My wizard has several wizard pages with different content. On one page
there is an editable table.
>
> I defined the table to be edited by either pressing the carriage return
key or by double clicking on the cell.
>
> If I have selected the cell and press carriage return, my wizard finishes.
But I want my cell to be edited.
>
> The problem is, that the wizard interprets the key pressed event and it is
not propagated to my table.
>
> Does anybody know how to fix this issue.
>
> Greetings TW
Previous Topic:dialog with checkbox
Next Topic:Observe Lists and ObservableMapProvider
Goto Forum:
  


Current Time: Tue Apr 16 04:23:49 GMT 2024

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

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

Back to the top