| Summary: | instanceof for NewTaskEditorInput in TaskEditor.addPages() is never called | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Eugene Kuleshov <ekuleshov> |
| Component: | Mylyn | Assignee: | Steffen Pingel <steffen.pingel> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | ||
| Version: | unspecified | ||
| Target Milestone: | 3.0 | ||
| Hardware: | PC | ||
| OS: | All | ||
| Whiteboard: | |||
| Bug Depends on: | |||
| Bug Blocks: | 164037 | ||
This has been addressed as part of bug 164037. |
In the following code for TaskEditor.addPages() method if (getEditorInput() instanceof RepositoryTaskEditorInput) { RepositoryTaskEditorInput existingInput = (RepositoryTaskEditorInput) getEditorInput(); setPartName(existingInput.getName()); } else if (getEditorInput() instanceof NewTaskEditorInput) { String label = ((NewTaskEditorInput) getEditorInput()).getName(); setPartName(label); } else if part is never called because NewTaskEditorInput is an instance of RepositoryTaskEditorInput. So that else if block can be removed.