Fixed some bugs

Fixed the following bugs:
 - Creating project in class editor when the workspace is not selected
 - Formating labels derived from association end roles
 - Properly showing components on panels after closing class editor.