|
Last change
on this file was 13948, checked in by Don-vip, 8 years ago |
|
fix HistoryHook signature
|
-
Property svn:eol-style
set to
native
|
|
File size:
747 bytes
|
| Line | |
|---|
| 1 | // License: GPL. For details, see LICENSE file.
|
|---|
| 2 | package org.openstreetmap.josm.gui.history;
|
|---|
| 3 |
|
|---|
| 4 | import java.util.List;
|
|---|
| 5 |
|
|---|
| 6 | import org.openstreetmap.josm.data.osm.PrimitiveId;
|
|---|
| 7 |
|
|---|
| 8 | /**
|
|---|
| 9 | * Change, or block, history requests.
|
|---|
| 10 | *
|
|---|
| 11 | * The HistoryHook may modify the requested primitive ids silently, it may display a
|
|---|
| 12 | * warning message to the user or prevent the request altogether.
|
|---|
| 13 | * @since 13947
|
|---|
| 14 | */
|
|---|
| 15 | public interface HistoryHook {
|
|---|
| 16 |
|
|---|
| 17 | /**
|
|---|
| 18 | * Modify the requested primitive ids before history request.
|
|---|
| 19 | * The request is cancelled if the collection is cleared.
|
|---|
| 20 | * Default implementation is to do no changes.
|
|---|
| 21 | * @param ids The current ids to change
|
|---|
| 22 | * @since 13948
|
|---|
| 23 | */
|
|---|
| 24 | default void modifyRequestedIds(List<PrimitiveId> ids) {
|
|---|
| 25 | }
|
|---|
| 26 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.