Single Sourcing - Widget -> removeListener() issue [message #813635] |
Mon, 05 March 2012 14:28 |
Avrajit Chatterjee 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.
|
|
|
Powered by
FUDForum. Page generated in 0.02535 seconds