Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Single Sourcing - Widget -> removeListener() issue
Single Sourcing - Widget -> removeListener() issue [message #813630] Mon, 05 March 2012 14:28 Go to next message
Avrajit Chatterjee is currently offline Avrajit ChatterjeeFriend
Messages: 68
Registered: September 2011

I thought over this issue a lot could not think of a workaround. Hope that some one can give me some pointers.
We have a RCP project which we have migrated to RAP as well. We followed single_sourcing_guide to achieve single sourcing. Issue - I have a custom class say A which extends Canvas and overrides method removeListener from Widget class in the following way-

public void removeListener(int eventType, SWTEventListener listener) {
super.removeListener(eventType, listener);
//the removeListener method is protected in RCP

This gives compilation issues in RAP as the Widget class in RAP has the removeListener method taking 2 parameters "int eventType", "org.eclipse.swt.widgets.Listener listener" (incompatibility). We cannot fragment-ise this code as removeListener method is protected in RCP hence cant give a call to super.removeListener in the FacadeImpl class.

Please let me know if anyone can think of a workaround of this issue keeping single sourcing intact.

[Updated on: Mon, 05 March 2012 14:30]

Report message to a moderator

Re: Single Sourcing - Widget -> removeListener() issue [message #814295 is a reply to message #813630] Tue, 06 March 2012 09:25 Go to previous message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member


I think this is covered by bug 308527 [1]. To fix it, the events system
needs to be changed [2]. I don't have a workaround for you either, I'm
sorry :(

Regards, Ralf

[1] 308527: Widget#removeListener(SWTEventListener) is missing

[2] 334028: Rework event system

Ralf Sternberg

Twitter: @EclipseRAP

Professional services for RAP and RCP?
Previous Topic:how to reduce the downloads?
Next Topic:Single Sourcing - Widget -> removeListener() issue
Goto Forum:

Current Time: Wed Jun 20 11:39:53 GMT 2018

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

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

Back to the top