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;
	}
}

package de.csgis.geobricks.ui;

import de.csgis.geobricks.NonRequireDependency;
import de.csgis.geobricks.PluginDescriptor;

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" };
	}
}

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