Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Selection Listener on TabFolder executing five times on each click?
Selection Listener on TabFolder executing five times on each click? [message #901576] Mon, 13 August 2012 13:38
Michael Dougherty is currently offline Michael DoughertyFriend
Messages: 8
Registered: July 2012
Junior Member
I want to add a listener that does something when you change tabs with the selection listener.

I am doing something where if you edit something on a tab and don't save, if you attempt to change tabs it will stay on the original tab (I did this by getting the current Tab and resetting it to that one after you change) and a pop up comes up telling you to save or cancel your changes.

I realized however that this popup was coming up FIVE times in a row when you changed tabs, and with a println statement I see that for some reason it goes into the selection listener five times? Why is this and how can I fix it?
Previous Topic:StyledText location at offset on word wrap problem
Next Topic:Maximum width of a control?
Goto Forum:
  


Current Time: Fri Apr 19 22:50:35 GMT 2024

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

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

Back to the top