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 Chatterjee
Messages: 64
Registered: September 2011
Member
Hi,

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-

@Override
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 Sternberg
Messages: 1291
Registered: July 2009
Senior Member

Hi,

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
https://bugs.eclipse.org/bugs/show_bug.cgi?id=308527

[2] 334028: Rework event system
https://bugs.eclipse.org/bugs/show_bug.cgi?id=334028

--
Ralf Sternberg

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Previous Topic:How to create an IAction to class TestExitConfirmation
Next Topic:How to have multi-user
Goto Forum:
  


Current Time: Fri Oct 24 12:53:32 GMT 2014

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

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