Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

DesignPlugin.java 2.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /*
  2. * Sonar, open source software quality management tool.
  3. * Copyright (C) 2008-2011 SonarSource
  4. * mailto:contact AT sonarsource DOT com
  5. *
  6. * Sonar is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU Lesser General Public
  8. * License as published by the Free Software Foundation; either
  9. * version 3 of the License, or (at your option) any later version.
  10. *
  11. * Sonar is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. * Lesser General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU Lesser General Public
  17. * License along with Sonar; if not, write to the Free Software
  18. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
  19. */
  20. package org.sonar.plugins.design;
  21. import com.google.common.collect.Lists;
  22. import org.sonar.api.SonarPlugin;
  23. import org.sonar.plugins.design.batch.*;
  24. import org.sonar.plugins.design.ui.dependencies.GwtDependenciesTab;
  25. import org.sonar.plugins.design.ui.lcom4.GwtLcom4Tab;
  26. import org.sonar.plugins.design.ui.libraries.GwtLibrariesPage;
  27. import org.sonar.plugins.design.ui.page.GwtDesignPage;
  28. import org.sonar.plugins.design.ui.widgets.ChidamberKemererWidget;
  29. import org.sonar.plugins.design.ui.widgets.FileDesignWidget;
  30. import org.sonar.plugins.design.ui.widgets.PackageDesignWidget;
  31. import java.util.List;
  32. public class DesignPlugin extends SonarPlugin {
  33. public List getExtensions() {
  34. List extensions = Lists.newArrayList();
  35. // Batch
  36. extensions.add(MavenDependenciesSensor.class);
  37. extensions.add(ProjectDsmDecorator.class);
  38. extensions.add(PackageTangleIndexDecorator.class);
  39. extensions.add(FileTangleIndexDecorator.class);
  40. extensions.add(SuspectLcom4DensityDecorator.class);
  41. extensions.add(GwtLibrariesPage.class);
  42. // UI
  43. extensions.add(GwtDesignPage.class);
  44. extensions.add(GwtDependenciesTab.class);
  45. extensions.add(FileDesignWidget.class);
  46. extensions.add(PackageDesignWidget.class);
  47. extensions.add(ChidamberKemererWidget.class);
  48. extensions.add(GwtLcom4Tab.class);
  49. return extensions;
  50. }
  51. }