| Summary: | API Usage: SnapshotDetailsView illegally extends ContentOutline | ||
|---|---|---|---|
| Product: | [Tools] MAT | Reporter: | Krum Tsvetkov <krum.tsvetkov> |
| Component: | GUI | Assignee: | Project Inbox <mat.core-inbox> |
| Status: | RESOLVED WONTFIX | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | ||
| Version: | 1.0 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
| Bug Depends on: | |||
| Bug Blocks: | 313085 | ||
|
Description
Krum Tsvetkov
The reason for this class is to override isImportant, which for ContentOutline just returns return (part instanceof IEditorPart); whereas SnapshotDetailsView returns (part instanceof MultiPaneEditor) || (part instanceof SnapshotHistoryView) i.e. the outline page should be used for our heap editor or for the history view, which as a view, not an editor, wouldn't be noticed by ContentOutline. Without this override clicking on the history view will not bring up details of the selected dump. One idea would be to make the history view an editor, but this might have the side effect that the inspector view etc. would change when the history view/editor was active. Another would be to make SnapshotHistoryView also implement IEditorPart (to pass the test in ContentOutline), but leave it instantiated as a view. I think we can leave things as they are. |