Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 219912

Summary: instanceof for NewTaskEditorInput in TaskEditor.addPages() is never called
Product: z_Archived Reporter: Eugene Kuleshov <ekuleshov>
Component: MylynAssignee: 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    

Description Eugene Kuleshov CLA 2008-02-22 00:53:58 EST
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.
Comment 1 Steffen Pingel CLA 2008-03-29 15:49:58 EDT
This has been addressed as part of bug 164037.