public String[] getTreeNames() {
		String[] names = new String[treeMap.size()];
		if (names.length == 0) {
			return names;
		}

		try {
			RecordIterator iter = treeAdapter.getRecords();

			int index = 0;
			while (iter.hasNext()) {
				DBRecord record = iter.next();
				names[index] = record.getString(ProgramTreeDBAdapter.TREE_NAME_COL);
				++index;
			}
			return names;
		}
		catch (IOException e) {
			errHandler.dbError(e);
		}
		return new String[0];
	}
Get the names of all the trees in the program.
@return sorted array of tree names
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/module/TreeManager.java