ModeCreateEdge createArc = new ModeCreateEdge(editor);
EditorModeCreateEdge createArc = new EditorModeCreateEdge(editor);
    public void checkModeTransitions(InputEvent ie) {        if (!top().canExit() && ie.getID() == MouseEvent.MOUSE_PRESSED) {            MouseEvent me = (MouseEvent) ie;            if ((me.getModifiers() & InputEvent.BUTTON3_MASK) == InputEvent.BUTTON3_MASK) {                int x = me.getX(), y = me.getY();                Fig underMouse = editor.hit(x, y);                if (underMouse instanceof EditorFigNode) {                    Object startPort = ((EditorFigNode) underMouse).getPort();                    if (startPort != null) {                        ModeCreateEdge createArc = new ModeCreateEdge(editor);                        push(createArc);                        createArc.mousePressed(me);                        return;                    }                }            }        }    }