/* * Sonar, open source software quality management tool. * Copyright (C) 2009 SonarSource * mailto:contact AT sonarsource DOT com * * Sonar 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 3 of the License, or (at your option) any later version. * * Sonar 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 Sonar; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02 */ package org.sonar.plugins.debug; import org.sonar.api.Extension; import org.sonar.api.Plugin; import org.sonar.plugins.debug.page.GwtDebugPage; import java.util.ArrayList; import java.util.List; public class DebugPlugin implements Plugin { public String getKey() { return "debug"; } public String getName() { return "Debug"; } public String getDescription() { return "Display the resource tree and its measures. Useful when developing Sonar plugins."; } public List<Class<? extends Extension>> getExtensions() { List<Class<? extends Extension>> extensions = new ArrayList<Class<? extends Extension>>(); extensions.add(GwtDebugPage.class); return extensions; } public String toString() { return getKey(); } }