If two different Eclipse plugins (not two versions of the same plugin) provide different implementation of the same Java class then how does an Eclipse application decides which class from which plugin to use? Is there a search/load order of plugins to search for a class implementation?
EDIT-1: This is my use case:
We are using a commercial Eclipse application. This application has a login dialog. the OOTB login dialog, will get the user id and password from user, and try to login when user clicks OK button on the dialog.
In our environment application user id and password are same as user's OS login id. So, I want users to be automatically logged in using application user id and password same as OS login id. The OOTB login dialog does not provide any means of doing this. So, I was thinking if I decompile the OOTB login dialog and add that code to my plugin, in the same package, and change it to auto-login.
I was wondering which login dialog will be called?
CodePudding user response:
No you can't override classes in other plug-ins like this.
Each plug-in has a separate classpath and won't see your class at all.