/* * Moonlight|3D Copyright (C) 2005 The Moonlight|3D team * * This library is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the Free * Software Foundation; either version 2.1 of the License, or (at your option) * any later version. * * This library is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more * details. * * You should have received a copy of the GNU Lesser General Public License * along with this library; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * Created on Nov 28, 2005 */ package ml.plugins.modelling.basicselectiontypes; /** *\package ml.plugins.modelling.basicselectiontypes * * This plugin contains selection type filters for basic * operator graph and scene graph types. * * This package is a separate plugin */ import java.util.ArrayList; public class Plugin implements ml.core.plugins.Plugin { public String getName() { return "ml.plugins.modelling.basicselectiontypes.Plugin"; } public ArrayList getDependencies() { return null; } public void load() throws Exception { ml.backend.selection.Manager.registerSelectionType(new OGNodeType()); ml.backend.selection.Manager.registerSelectionType(new SlotType()); ml.backend.selection.Manager.registerSelectionType(new SGNodeType()); } public void unload() throws Exception { ml.backend.selection.Manager.unregisterSelectionType("OGNode"); ml.backend.selection.Manager.unregisterSelectionType("Slot"); ml.backend.selection.Manager.unregisterSelectionType("SGNode"); } }