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 09:28
Avrajit Chatterjee is currently offline Avrajit Chatterjee
Messages: 63
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:GEF with RAP
Next Topic:how to reduce the downloads?
Goto Forum:
  


Current Time: Sat Apr 19 00:39:31 EDT 2014

Powered by FUDForum. Page generated in 0.02237 seconds