Problem deleting an event handler

SWT Designer allows you to create the views, editors, perspectives, pref pages, composites, etc. that comprise Eclipse SWT & RCP applications and plug-ins.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

Problem deleting an event handler

Postby TEMP USER » Sat Jan 30, 2010 7:03 am

i think i've found a bug:
when choosing to show all of the events of a canvas , and deleting there an event handler, it doesn't really delete the event handler (not the function and not the adding of it to the canvas. it actually doesn't do anything other than not showing it in the design mode anymore.
any idea why it happens?
TEMP USER
 
Posts: 60
Joined: Mon Jun 01, 2009 2:46 am

Re: Problem deleting an event handler

Postby Eric Clayberg » Sun Jan 31, 2010 12:26 pm

It wanted you to expand the event category and delete the individual event handlers.

To delete any entire category at once, update to the latest SWT Designer 7.3 build.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Re: Problem deleting an event handler

Postby TEMP USER » Mon Feb 01, 2010 3:14 am

now it's fixed.
sadly, it doesn't ask what to do when i choose to delete . i mean, i was expecting something like :
delete event handler ?
"only reference to it", "no", "both reference and the event handler itself "
TEMP USER
 
Posts: 60
Joined: Mon Jun 01, 2009 2:46 am

Re: Problem deleting an event handler

Postby Eric Clayberg » Mon Feb 01, 2010 5:38 am

The point of the delete command when applied to an event handler is to delete the event handler. The references also need to be deleted so that the code continues to compile. I don't see much need for separating the two and making the UI more complex...especially since it has worked this way for many years.

Keep in mind that if you want to do something special or perform some refactoring of some sort, you always have the Source view available.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Re: Problem deleting an event handler

Postby TEMP USER » Tue Feb 02, 2010 12:31 am

the logic of what i wrote is that if several GUI components have the same event handler, only the desired reference will be removed if needed.
TEMP USER
 
Posts: 60
Joined: Mon Jun 01, 2009 2:46 am

Re: Problem deleting an event handler

Postby Eric Clayberg » Thu Feb 04, 2010 3:27 pm

If a listener is used in more than one place, the tool will now ask whether you want to delete all of the references or not.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Re: Problem deleting an event handler

Postby TEMP USER » Sat Feb 06, 2010 2:20 am

do you mean you've updated the window builder to have this feature?
cool! thanks!
TEMP USER
 
Posts: 60
Joined: Mon Jun 01, 2009 2:46 am

Re: Problem deleting an event handler

Postby Eric Clayberg » Sat Feb 06, 2010 7:08 am

Yes.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA


Return to SWT Designer

Who is online

Users browsing this forum: Google [Bot] and 2 guests