if (!top().canExit() && ie.getID() == MouseEvent.MOUSE_PRESSED) { MouseEvent me = (MouseEvent) ie; if (me.getClickCount() == 2) { int x = me.getX(), y = me.getY(); Fig underMouse = editor.hit(x, y); if (underMouse instanceof ModuleFigNode) { myLogger.info("Double clicked on a module fig"); ((ModuleFigNode)underMouse).showProperties(editor.findFrame()); EditorCmdShowProperties showProps = new EditorCmdShowProperties(); return; } } }
    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 ModuleFigNode) {                    Object startPort = ((ModuleFigNode) underMouse).getPort();                    if (startPort != null) {                        EditorModeCreateEdge createArc = new EditorModeCreateEdge(editor);                        push(createArc);                        createArc.mousePressed(me);                        return;                    }                }            }        }    }