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 #813635] Mon, 05 March 2012 14:28
Avrajit Chatterjee is currently offline Avrajit ChatterjeeFriend
Messages: 68
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 takes 2 parameters "int eventType", "org.eclipse.swt.widgets.Listener listener". We cannot fragmenti-se 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.
Previous Topic:Single Sourcing - Widget -> removeListener() issue
Next Topic:How to have multi-user
Goto Forum:
  


Current Time: Tue Apr 23 15:57:05 GMT 2024

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

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

Back to the top