| 214 | } |
| 215 | |
| 216 | bool PartStack::IsMoveable(IPresentablePart::Pointer part) |
| 217 | { |
| 218 | PartPane::Pointer pane = this->GetPaneFor(part); |
| 219 | Perspective::Pointer perspective = this->GetPage()->GetActivePerspective(); |
| 220 | if (perspective == 0) |
| 221 | { |
| 222 | // Shouldn't happen -- can't have a ViewStack without a |
| 223 | // perspective |
| 224 | return true; |
| 225 | } |
| 226 | IWorkbenchPartReference::Pointer partRef = pane->GetPartReference(); |
| 227 | if (partRef.Cast<IViewReference> () != 0) |
| 228 | return perspective->IsMoveable(partRef.Cast<IViewReference> ()); |
| 229 | |
| 230 | return true; |
| 231 | } |
| 232 | |
| 233 | bool PartStack::SupportsState(int /*newState*/) |
| 234 | { |
no test coverage detected