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 475399
Collapse All | Expand All

(-)src/org/eclipse/gef4/mvc/models/SelectionModel.java (-1 / +11 lines)
Lines 185-193 Link Here
185
	 */
185
	 */
186
	public void updateSelection(
186
	public void updateSelection(
187
			List<? extends IContentPart<VR, ? extends VR>> newSelection) {
187
			List<? extends IContentPart<VR, ? extends VR>> newSelection) {
188
		List<IContentPart<VR, ? extends VR>> oldSelection = getSelectionCopy();
188
		selectionList.clear();
189
		selectionList.clear();
189
		selectionSet.clear();
190
		selectionSet.clear();
190
		select(newSelection);
191
		int i = 0;
192
		for (IContentPart<VR, ? extends VR> p : newSelection) {
193
			if (!selectionSet.contains(p)) {
194
				selectionList.add(i++, p);
195
				selectionSet.add(p);
196
			}
197
		}
198
199
		propertyChangeSupport.firePropertyChange(SELECTION_PROPERTY,
200
				oldSelection, getSelected());
191
	}
201
	}
192
202
193
}
203
}

Return to bug 475399