/** Implement MouseListener interface toggle collapse state of block if button pressed */ public void mouseClicked(MouseEvent e) { toggle(); RenderableBlock rb = workspace.getEnv().getRenderableBlock(getBlockID()); rb.getComment().setVisible(isActive()); workspace.notifyListeners( new WorkspaceEvent( workspace, rb.getComment().getCommentSource().getParentWidget(), WorkspaceEvent.BLOCK_COMMENT_VISBILITY_CHANGE)); update(); rb.revalidate(); rb.repaint(); workspace.getMiniMap().repaint(); }