@Override
	public boolean applyTo(Program program) {

		BookmarkManager mgr = program.getBookmarkManager();

		if (bookmark != null) {
			bookmark.set(category, comment);
		}
		else if (addr != null) {
			mgr.setBookmark(addr, type, category, comment);
		}
		else {
			AddressRangeIterator rangeIter = set.getAddressRanges();
			while (rangeIter.hasNext()) {
				Address minAddr = rangeIter.next().getMinAddress();
				mgr.setBookmark(minAddr, type, category, comment);
			}
		}
		return true;
	}
The name of the edit action.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/bookmark/BookmarkEditCmd.java