Skip to content

Commit

Permalink
Adding an unregisterAll() function to the SelectionManager
Browse files Browse the repository at this point in the history
  • Loading branch information
svanteschubert committed Jul 13, 2023
1 parent 2358118 commit 63ddbc7
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,13 @@ public void unregisterItem(Selection item) {
selections.remove(item);
}
}

/**
* Removes all selections from the SelectionManager.
*/
public void unregisterAll() {
repository.clear();
}

/**
* A direct method to update all the selections contained in a mElement after a certain position.
Expand Down

0 comments on commit 63ddbc7

Please sign in to comment.