ikeough/Dynamo — pull request #983 by Benglin (2014-01-09 01:30:57+00:00)
Title: Fix: MAGN-982 Dynamo crashing while switching workspace.

Background
==========
This is meant to fix the defect: [MAGN-982 Dynamo crashing while switching workspace](http://adsk-oss.myjetbrains.com/youtrack/issue/MAGN-982)

The problem
===========
The two data members of **InfoBubbleState** and **InfoBubbleStyle** have gone-out of-sync in the scenario outlined in the defect. When user toggles the **Show All Preview** from **View** menu, only **InfoBubbleState** is set and not **InfoBubbleStyle**. The difference is method that sets the **InfoBubbleStyle** (**UpdatePreviewBubbleContent**) has a condition to exclude nodes that are not in the current workspace, but **InfoBubbleState** is being set regardless of whether the node is in current workspace. That difference causes these two data member to go out-of-sync.

The solution
============
The fix of course is to make them consistent. When **Show All Preview** is set, only nodes that belong to the current workspace are getting their **InfoBubbleState** and **InfoBubbleStyle** data members set (through commands).