Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » FocusListener on Section
FocusListener on Section [message #331149] Tue, 26 August 2008 17:29
Frank is currently offline FrankFriend
Messages: 1
Registered: July 2009
Junior Member
I try to add a FocusListener to a Section, but my Listener is never called.


Section section = toolkit.createSection(form.getBody(),
Section.DESCRIPTION|Section.TITLE_BAR|
Section.TWISTIE|Section.EXPANDED);
section.addExpansionListener(new ExpansionAdapter() {
public void expansionStateChanged(ExpansionEvent e) {
form.reflow(true);
}
});
section.addFocusListener(new FocusListener());

private class FocusListener extends FocusAdapter {

@Override
public void focusGained(FocusEvent e) {
System.out.println("Focus Gained");
super.focusGained(e);
}
}

What am I doing wrong ? Thanks.
Previous Topic:Re: JFace Databinding + EMF + Performance
Next Topic:passing view reference into actions
Goto Forum:
  


Current Time: Tue Jul 30 21:22:57 GMT 2024

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

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

Back to the top