@Override
	public Workspace[] getWorkspaces() {
		Workspace[] wsList = new Workspace[workspaces.size()];
		return workspaces.toArray(wsList);
	}
Registers the new instance of the tool in the namesMap and returns the total number of
running instances of that tool
@param toolName the name of the tool being registers
@param tool the tool being registered
Ghidra/Framework/Project/src/main/java/ghidra/framework/project/tool/ToolManagerImpl.java