Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 255958 Details for
Bug 475399
SelectionModel#updateSelection does not produce accurate events
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
Proposed patch
selectionModel.patch (text/plain), 878 bytes, created by
Camille Letavernier
on 2015-08-19 11:40:32 EDT
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Camille Letavernier
Created:
2015-08-19 11:40:32 EDT
Size:
878 bytes
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.gef4.mvc >diff --git src/org/eclipse/gef4/mvc/models/SelectionModel.java src/org/eclipse/gef4/mvc/models/SelectionModel.java >index 42753be..1d86630 100644 >--- src/org/eclipse/gef4/mvc/models/SelectionModel.java >+++ src/org/eclipse/gef4/mvc/models/SelectionModel.java >@@ -185,9 +185,19 @@ > */ > public void updateSelection( > List<? extends IContentPart<VR, ? extends VR>> newSelection) { >+ List<IContentPart<VR, ? extends VR>> oldSelection = getSelectionCopy(); > selectionList.clear(); > selectionSet.clear(); >- select(newSelection); >+ int i = 0; >+ for (IContentPart<VR, ? extends VR> p : newSelection) { >+ if (!selectionSet.contains(p)) { >+ selectionList.add(i++, p); >+ selectionSet.add(p); >+ } >+ } >+ >+ propertyChangeSupport.firePropertyChange(SELECTION_PROPERTY, >+ oldSelection, getSelected()); > } > > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
nyssen
:
iplog+
Actions:
View
|
Diff
Attachments on
bug 475399
: 255958