/**
 * Distributable under LGPL license.
 * See terms of license at gnu.org.
 *
 * Copyright (C)
 * <a href="http://www.inab.org">Spanish National Institute of Bioinformatics (INB)</a>
 * <a href="http://www.bsc.es">Barcelona Supercomputing Center (BSC)</a>
 * <a href="http://inb.bsc.es">Computational Node 6</a>
 */

package org.inb.biomoby.central.gui.model;

import javax.swing.tree.DefaultMutableTreeNode;
import org.inb.biomoby.shared.registry.AbstractEntity;

/**
 * @author Dmitry Repchevsky
 */

public class AbstractEntityTreeNode extends DefaultMutableTreeNode
{
    public AbstractEntityTreeNode(AbstractEntity entity)
    {
        super(entity);
    }

    @Override
    public String toString()
    {
        AbstractEntity entity = (AbstractEntity)getUserObject();

        return entity.getName();
    }
}