1 //Copyright (C) 2004, Brian Enigma <enigma at netninja.com> 2 //This file is part of MagicCodes. 3 // 4 //MagicCodes is free software; you can redistribute it and/or modify 5 //it under the terms of the GNU General Public License as published by 6 //the Free Software Foundation; either version 2 of the License, or 7 //(at your option) any later version. 8 // 9 //MagicCodes is distributed in the hope that it will be useful, 10 //but WITHOUT ANY WARRANTY; without even the implied warranty of 11 //MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 //GNU General Public License for more details. 13 // 14 //You should have received a copy of the GNU General Public License 15 //along with Foobar; if not, write to the Free Software 16 //Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 17 package org.ninjasoft.magiccodes.swingui; 18 19 import org.ninjasoft.magiccodes.plugins.Plugin; 20 21 /*** 22 * Pretty wrapper for a plugin 23 * @author enigma 24 */ 25 public class PluginItem { 26 private Plugin plugin = null; 27 28 private PluginItem() {} 29 30 public PluginItem(Plugin plugin) { 31 this.plugin = plugin; 32 } 33 34 public String toString() { 35 return this.plugin.getName(); 36 } 37 38 public Plugin getPlugin() { 39 return this.plugin; 40 } 41 }