1
/*******************************************************************************
2
* Copyright (C) 2003-2005, 2013 Guillaume Brocker
4
* All rights reserved. This program and the accompanying materials
5
* are made available under the terms of the Eclipse Public License v1.0
6
* which accompanies this distribution, and is available at
7
* http://www.eclipse.org/legal/epl-v10.html
10
* Guillaume Brocker - Initial API and implementation
12
******************************************************************************/
14
package eclox.ui.editor.advanced.filters;
16
import org.eclipse.jface.viewers.StructuredViewer;
17
import org.eclipse.swt.widgets.Composite;
18
import org.eclipse.ui.forms.IManagedForm;
20
import eclox.core.doxyfiles.Doxyfile;
23
* Defines the interface for setting filters.
27
public interface IFilter {
30
* Tells the filter which doxyfile is to filter.
32
* @param doxyfile a doxyfile instance
34
void setDoxyfile( Doxyfile doxyfile );
37
* Asks the filter to create its user interface controls.
39
* @param managedForm a managed form to use for the widget creation
40
* @param parent a composite being the parent of all widgets
42
void createControls( IManagedForm managedForm, Composite parent );
45
* Asks the filter to create viewer filter and add them in a given viewer
47
* @param viewer a viewer where filter must be added
49
void createViewerFilters( StructuredViewer viewer );
52
* Asks the filter to dispose its controls.
54
void disposeControls();
57
* Asks the filter to dispose created viewer filter given a viewer
59
* @param viewer a structured view from which created viewer filter must be removed
61
void disposeViewerFilers( StructuredViewer viewer );
64
* Retrieves the filter name.
66
* This name must by human readable sinci it is used in the graphical
69
* @return a string containing the filter name