Package org.openstreetmap.josm.tools
Interface TextTagParser.TagWarningCallback
-
- Enclosing class:
- TextTagParser
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public static interface TextTagParser.TagWarningCallback
Called when a problematic tag is encountered.- Since:
- 12683
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
warning(java.lang.String text, java.lang.String data, java.lang.String code)
Displays a warning about a problematic tag and ask user what to do about it.
-
-
-
Method Detail
-
warning
int warning(java.lang.String text, java.lang.String data, java.lang.String code)
Displays a warning about a problematic tag and ask user what to do about it.- Parameters:
text
- Message to displaydata
- Tag key and/or valuecode
- to use withExtendedDialog#toggleEnable(String)
- Returns:
- 1 to validate and display next warnings if any, 2 to cancel operation, 3 to clear buffer, 4 to paste tags
-
-