private fun addTag(newTag: String) { if (com.sun.tools.javac.util.StringUtils.isBlank(newTag)) { return } synchronized(tagsObservable) { if (tagsObservable.contains(newTag)) { return } tagsObservable.add(newTag) } firePropertyChange("tag", null, tagsObservable) }
Adds the tag .