package de.csgis.geobricks.ui;

import de.csgis.geobricks.NonRequireDependency;
import de.csgis.geobricks.PluginDescriptor;
import de.csgis.geobricks.servlet.FilterDescriptor;
import de.csgis.geobricks.servlet.ServletDescriptor;

public class UIPlugin implements PluginDescriptor {
	public static final String ID = "ui";
	public static final String NAME = "UI";

	@Override
	public NonRequireDependency[] getNonRequireDependencies() {
		return new NonRequireDependency[] { new NonRequireDependency(
				"typeahead", "jslib/typeahead/0.10.2/typeahead.jquery.min") };
	}

	@Override
	public String getDefaultConfiguration() {
		return "{ui : []}";
	}

	@Override
	public String[] getStyleSheets() {
		return new String[] { "modules/accordion.css", "modules/title.css",
				"modules/toolbar.css", "modules/buttons.css",
				"modules/dialog.css", "modules/autocomplete.css" };
	}

	@Override
	public String getName() {
		return NAME;
	}

	@Override
	public String getId() {
		return ID;
	}

	@Override
	public String[] getModules() {
		return new String[] { "ui" };
	}

	@Override
	public FilterDescriptor[] getFilters() {
		return null;
	}

	@Override
	public ServletDescriptor[] getServlets() {
		return null;
	}
}

@@ -120,113 +120,8 @@
 tor;
-%0Aimport de.csgis.geobricks.servlet.FilterDescriptor;%0Aimport de.csgis.geobricks.servlet.ServletDescriptor;
 %0A%0Apu
@@ -956,153 +956,7 @@
 ;%0A%09%7D
-%0A%0A%09@Override%0A%09public FilterDescriptor%5B%5D getFilters() %7B%0A%09%09return null;%0A%09%7D%0A%0A%09@Override%0A%09public ServletDescriptor%5B%5D getServlets() %7B%0A%09%09return null;%0A%09%7D
 %0A%7D%0A

Make plugins define their filters and servlets on their web-fragments instead of the plugin descriptor. Refs #1070