*
*/
protected void DeleteCurrentTrafficLayer() {
//Get the selected traffic layer
DefaultMutableTreeNode selectedLayerNode = (DefaultMutableTreeNode) treeLayers.getSelectionPath().getLastPathComponent();
TrafficDefinitionLayer selectedLayer = (TrafficDefinitionLayer) selectedLayerNode.getUserObject();
if (JOptionPane.showConfirmDialog(this, "Delete layer " + selectedLayer.getName() + " ?") == JOptionPane.YES_OPTION) {
// Delete the layer
project.DeleteLayer((TrafficDefinitionLayer) selectedLayerNode.getUserObject());
// If this was the last traffic layer add a new layer to the project
if (selectedLayerNode.getSiblingCount() == 1) {