/*******************************************************************************\r
* Copyright (c) 2010 Ericsson\r
- * \r
+ *\r
* All rights reserved. This program and the accompanying materials are\r
* made available under the terms of the Eclipse Public License v1.0 which\r
* accompanies this distribution, and is available at\r
* http://www.eclipse.org/legal/epl-v10.html\r
- * \r
+ *\r
* Contributors:\r
* Patrick Tasse - Initial API and implementation\r
*******************************************************************************/\r
import org.eclipse.swt.widgets.Control;\r
import org.eclipse.swt.widgets.Shell;\r
\r
+/**\r
+ * The dialog for user-defined filters.\r
+ *\r
+ * @version 1.0\r
+ * @author Patrick Tasse\r
+ */\r
public class FilterDialog extends Dialog {\r
\r
TmfFilterNode fRoot;\r
FilterViewer fViewer;\r
- \r
+\r
+ /**\r
+ * Constructor.\r
+ *\r
+ * @param shell\r
+ * The shell to which this dialog is attached\r
+ */\r
public FilterDialog(Shell shell) {\r
super(shell);\r
setShellStyle(getShellStyle() | SWT.RESIZE | SWT.MAX);\r
getShell().setText(Messages.FilterDialog_FilterDialogTitle);\r
getShell().setMinimumSize(getShell().computeSize(500, 200));\r
Composite composite = (Composite) super.createDialogArea(parent);\r
- \r
+\r
fViewer = new FilterViewer(composite, SWT.BORDER);\r
fViewer.setInput(fRoot);\r
return composite;\r
fViewer.setInput(fRoot);\r
}\r
}\r
- \r
+\r
/**\r
* @return the filter\r
*/\r