Store project tree states in the project layer.