public void onSelectLayer(LayerSelectedEvent event) {
		for (TreeNode node : tree.getAllNodes()) {
			if (node.getName().equals(event.getLayer().getLabel())) {
				selectedLayerTreeNode = (LayerTreeTreeNode) node;
				treeGrid.selectRecord(selectedLayerTreeNode);
				htmlSelectedLayer.setContents(I18nProvider.getLayerTree().activeLayer(
						selectedLayerTreeNode.getLayer().getLabel()));

				// Canvas[] toolStripMembers = toolStrip.getMembers();
				// updateButtonIconsAndStates(toolStripMembers);
			}
		}
	}
public void onSelectLayer ( LayerSelectedEvent event ) { for ( TreeNode node : tree . getAllNodes ( ) ) { if ( node . getName ( ) . equals ( event . getLayer ( ) . getLabel ( ) ) ) { selectedLayerTreeNode = ( LayerTreeTreeNode ) node ; treeGrid . selectRecord ( selectedLayerTreeNode ) ; htmlSelectedLayer . setContents ( I18nProvider . getLayerTree ( ) . activeLayer ( selectedLayerTreeNode . getLayer ( ) . getLabel ( ) ) ) ; } } }
When a layer selection event comes in, the LayerTree must also select the correct node in the tree, update the
selected layer text, and update all buttons icons.

@param event
event