| Performing automatic corrections [message #1059692] |
Tue, 21 May 2013 04:58 |
Marco Naddeo Messages: 49 Registered: November 2012 |
Member |
|
|
Hi 
The Java editor automatically corrects the code in some cases... For example, if I have a class B which extends a class A, I can declare an object myObject in this way:
but now, supposing that myMethod is a method definied in the subclass B, if I try to call it directly on myObject (declared of type A):
the editor in some cases automatically adds a cast converting the code as following:
Now, I have to implement some automatic corrections on user typing. Is there some Xtext or Eclipse support for implementing them?
Where can I hook to do this?
Thanks in advance,
Marco
|
|
|
Powered by
FUDForum. Page generated in 0.02111 seconds