Enclosing class Problem


I imported some java code which I need for our project. The import didn't work correctly with an enclosing class. Here the situation :

class A {

protected class B{



I would like to write

A objectA = new A();

B objectB = objectA.new B();


But MPS does not give me the option to type " new B() " after the " objectA. " .

Anyone knows how i can make an instance within an enclosing class? Changing class B to static is not really an option.




1 comment
Comment actions Permalink

The "object.new X" syntax is only supported since MPS 3.4, unfortunately. You may try in the recent public preview release.


Please sign in to leave a comment.