/**
  * constructor
  *
  * @param	TYPO3backend	TYPO3 backend object reference
  */
 public function __construct(TYPO3backend &$backendReference = null)
 {
     $this->backendReference = $backendReference;
     $this->changeWorkspace = t3lib_div::_GP('changeWorkspace');
     $this->changeWorkspacePreview = t3lib_div::_GP('changeWorkspacePreview');
     $pageRenderer = t3lib_div::makeInstance('t3lib_pageRenderer');
     $this->backendReference->addJavaScript("TYPO3.Workspaces = { workspaceTitle : '" . tx_Workspaces_Service_Workspaces::getWorkspaceTitle($GLOBALS['BE_USER']->workspace) . "'};\n");
 }