001/*
002 * Copyright (c) 2005 Einar Pehrson, Malin Johansson and Sofia Nilsson
003 *
004 * This file is part of
005 * CleanSheets Extension for Dependency Trees
006 *
007 * CleanSheets Extension for Dependency Trees is free software; you can
008 * redistribute it and/or modify it under the terms of the GNU General Public
009 * License as published by the Free Software Foundation; either version 2 of
010 * the License, or (at your option) any later version.
011 *
012 * CleanSheets Extension for Dependency Trees is distributed in the hope that
013 * it will be useful, but WITHOUT ANY WARRANTY; without even the implied
014 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
015 * See the GNU General Public License for more details.
016 *
017 * You should have received a copy of the GNU General Public License
018 * along with CleanSheets Extension for Dependency Trees; if not, write to the
019 * Free Software Foundation, Inc., 59 Temple Place, Suite 330,
020 * Boston, MA  02111-1307  USA
021 */
022package csheets.ext.deptree;
023
024import csheets.ext.Extension;
025import csheets.ui.ctrl.UIController;
026import csheets.ui.ext.UIExtension;
027
028/**
029 * The extension for dependency trees.
030 * @author Einar Pehrson
031 */
032public class DependencyTreeExtension extends Extension {
033
034        /** The name of the extension */
035        public static final String NAME = "Dependencies";
036
037        /**
038         * Creates a new assertion extension.
039         */
040        public DependencyTreeExtension() {
041                super(NAME);
042        }
043
044        /**
045         * Returns a user interface extension for dependency trees.
046         * @param uiController the user interface controller
047         * @return a user interface extension for dependency trees
048         */
049        public UIExtension getUIExtension(UIController uiController) {
050                return new DependencyTreeUIExtension(this, uiController);
051        }
052}