I found a piece of code which has to do with mouse motion listener. It works, but it utilizes a condition with reference to the aforementioned interface, which is marked as deprecated. If one were to update this code, what would be the proper approach in this case? Could I just simply use a com.sun.star.awt.XWindow in that code instead?
link to original code: Apache OpenOffice Community Forum - Apply XMouseMotionHandler to the sheet - (View topic)
Also, what is the procedure for deprecating certain features in scripting/programming language? Is there a certain amount of time that a deprecated feature still needs to function properly? What are the rules with respect to that aspect?