Add a "Reload Source Code" button. When user clicked on this button, the entire source code is re-read and the Uml Diagram is redrawn