Override/Implement Methods does't work
The following code will produce the red squiggly under the implementing class name ONLY AFTER A PROJECT -> CLEAN (which is another problem). Even with the red line, if you go to Source -> Override/Implement Methods the methods that are abstract in the abstract class are not shown.
import org.aopalliance.intercept.MethodInterceptor
class MethodInterceptorImp extends MethodInterceptor{
}
Source -> Override/Implement Methods produces
Select methods to override or implement:
Object
clone()
equals(Object)
finalize()
hasCode()
toString()
In this particular case the abstract method, Object invoke(MethodInvocation invocation) throws Throwable;, is missing in the options.
While this code specifically implements a Java abstract class I can duplicate the problem with Scala traits.
import org.aopalliance.intercept.MethodInterceptor
class MethodInterceptorImp extends MethodInterceptor{
}
Source -> Override/Implement Methods produces
Select methods to override or implement:
Object
clone()
equals(Object)
finalize()
hasCode()
toString()
In this particular case the abstract method, Object invoke(MethodInvocation invocation) throws Throwable;, is missing in the options.
While this code specifically implements a Java abstract class I can duplicate the problem with Scala traits.
Leave a comment
on 2012-07-30 07:45 *
By Mirco Dotta
Fixed in version set to 2.1.0-m2
Version changed from 2.0.0-final-29 to 2.0.1-final-29
Mirco, by "fixed" do you mean that it just doesn't crash or that the feature is actually functional?
When I try to use the source menu, implement/override methods option from within a subclass of an abstract class in Scala IDE 2.1, the IDE only offers methods from class Object. In Java, of course, Eclipse correctly offers methods from Object as well as from the abstract superclass.
When I try to use the source menu, implement/override methods option from within a subclass of an abstract class in Scala IDE 2.1, the IDE only offers methods from class Object. In Java, of course, Eclipse correctly offers methods from Object as well as from the abstract superclass.
on 2012-10-11 10:28 *
By glenviewjeff
Mirco, by "fixed" do you mean that it just doesn't crash or that the feature is actually functional?
When I try to use the source menu, implement/override methods option from within a subclass of an abstract class in Scala IDE 2.1, the IDE only offers methods from class Object. In Java, of course, Eclipse correctly offers methods from Object as well as from the abstract superclass.
When I try to use the source menu, implement/override methods option from within a subclass of an abstract class in Scala IDE 2.1, the IDE only offers methods from class Object. In Java, of course, Eclipse correctly offers methods from Object as well as from the abstract superclass.
Oh, I just noticed this fell through the cracks, sorry.
What I meant is that the functionality has been disabled, and there should be a ticket somewhere (most likely an enhancement ticket), for re-introducing the functionality once we get it to work.
What I meant is that the functionality has been disabled, and there should be a ticket somewhere (most likely an enhancement ticket), for re-introducing the functionality once we get it to work.