Vanco / SequencePlugin

SequencePlugin for IntelliJ IDEA
Other
693 stars 198 forks source link

super constructor calls #125

Closed jorabin closed 2 years ago

jorabin commented 2 years ago

I don't think that super constructor calls are followed, would be very handy.

Vanco commented 2 years ago

Do you means super() ?

jorabin-51d commented 2 years ago

yes, that's what I meant

Vanco commented 2 years ago

This feature is already supported.

Example:

public class Apple {
    private String name;
    private String color;

    public Apple(String name, String color) {
        this.name = name;
        this.color = color;
    }
}

public class GrannySmithApple extends Apple{
    public GrannySmithApple(String name, String color) {
        super(name, color);
    }
}

public class Main {
    public static void main(String[] args) {

        new GrannySmithApple("Granny Smith", "Green");
    }
}

Generate sequence diagram for main Main_main

jorabin commented 2 years ago

mea maxima culpa, thank you.