Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 349771 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/eclipse/mylyn/internal/bugzilla/ui/editor/BugzillaTaskEditorPage.java (-9 / +11 lines)
Lines 98-103 Link Here
98
	protected Set<TaskEditorPartDescriptor> createPartDescriptors() {
98
	protected Set<TaskEditorPartDescriptor> createPartDescriptors() {
99
		Set<TaskEditorPartDescriptor> descriptors = super.createPartDescriptors();
99
		Set<TaskEditorPartDescriptor> descriptors = super.createPartDescriptors();
100
		boolean hasPartComments = false;
100
		boolean hasPartComments = false;
101
		boolean hasPartNewComment = false;
101
		// remove unnecessary default editor parts
102
		// remove unnecessary default editor parts
102
		for (TaskEditorPartDescriptor taskEditorPartDescriptor : descriptors) {
103
		for (TaskEditorPartDescriptor taskEditorPartDescriptor : descriptors) {
103
			if (taskEditorPartDescriptor.getId().equals(ID_PART_PEOPLE)) {
104
			if (taskEditorPartDescriptor.getId().equals(ID_PART_PEOPLE)) {
Lines 115-121 Link Here
115
		for (TaskEditorPartDescriptor taskEditorPartDescriptor : descriptors) {
116
		for (TaskEditorPartDescriptor taskEditorPartDescriptor : descriptors) {
116
			if (taskEditorPartDescriptor.getId().equals(ID_PART_NEW_COMMENT)) {
117
			if (taskEditorPartDescriptor.getId().equals(ID_PART_NEW_COMMENT)) {
117
				descriptors.remove(taskEditorPartDescriptor);
118
				descriptors.remove(taskEditorPartDescriptor);
118
				hasPartComments = true;
119
				hasPartNewComment = true;
119
				break;
120
				break;
120
			}
121
			}
121
		}
122
		}
Lines 162-175 Link Here
162
			// ignore
163
			// ignore
163
		}
164
		}
164
165
165
		// Add the updated Bugzilla new comment part
166
		if (hasPartNewComment) {
166
		descriptors.add(new TaskEditorPartDescriptor(ID_PART_NEW_COMMENT) {
167
			// Add the updated Bugzilla new comment part
167
			@Override
168
			descriptors.add(new TaskEditorPartDescriptor(ID_PART_NEW_COMMENT) {
168
			public AbstractTaskEditorPart createPart() {
169
				@Override
169
				return new BugzillaTaskEditorNewCommentPart();
170
				public AbstractTaskEditorPart createPart() {
170
			}
171
					return new BugzillaTaskEditorNewCommentPart();
171
		}.setPath(PATH_COMMENTS));
172
				}
172
173
			}.setPath(PATH_COMMENTS));
174
		}
173
		// Add the updated Bugzilla people part
175
		// Add the updated Bugzilla people part
174
		descriptors.add(new TaskEditorPartDescriptor(ID_PART_PEOPLE) {
176
		descriptors.add(new TaskEditorPartDescriptor(ID_PART_PEOPLE) {
175
			@Override
177
			@Override

Return to bug 349771