|Extend class with same name and package [message #981736]
||Mon, 12 November 2012 11:58
| David Marina
Registered: November 2012
I don't know if this is even possible but I would like to listen for some alternatives to this problem:
I am trying to single-source RCP/RAP for an already existing RCP application, trying to mantain the original code while it is possible. In order to test the suitability, I have made some patch RAP fragments for the missing API, sometimes patching classes of org.eclipse.swt with missing methods and sometimes adding full missing controls. In order to modify the original classes, I copied the full class text, as suggested in the guide:
What I am trying to do now is to "forward" the valid methods to the original classes and reduce the patch classes. So they will contain just the forwarding calls and the implementation of the missing methods.
Is it possible to get this using some classloader mechanism to load the class from the host plugin? It it is not, is there a way to extend a class which is in the same package and has the same name?
Powered by FUDForum
. Page generated in 0.01952 seconds