| //------------------------------------------------------------------------------ |
| // Copyright (c) 2005, 2008 IBM Corporation and others. |
| // All rights reserved. This program and the accompanying materials |
| // are made available under the terms of the Eclipse Public License v1.0 |
| // which accompanies this distribution, and is available at |
| // http://www.eclipse.org/legal/epl-v10.html |
| // |
| // Contributors: |
| // IBM Corporation - initial implementation |
| //------------------------------------------------------------------------------ |
| package org.eclipse.epf.authoring.ui.dialogs; |
| |
| import org.eclipse.epf.ui.util.SWTUtil; |
| import org.eclipse.jface.dialogs.Dialog; |
| import org.eclipse.swt.SWT; |
| import org.eclipse.swt.layout.GridData; |
| import org.eclipse.swt.layout.GridLayout; |
| import org.eclipse.swt.widgets.Button; |
| import org.eclipse.swt.widgets.Composite; |
| import org.eclipse.swt.widgets.Control; |
| import org.eclipse.swt.widgets.Group; |
| import org.eclipse.swt.widgets.Shell; |
| import org.eclipse.swt.widgets.Text; |
| |
| |
| /** |
| * Dialog for showing details in Problem View |
| * |
| * @author Weiping Lu |
| * @since 1.5 |
| */ |
| public class MethodElementFiltersProblemViewDialog extends Dialog { |
| |
| public MethodElementFiltersProblemViewDialog(Shell parentShell) { |
| super(parentShell); |
| } |
| |
| /* |
| * (non-Javadoc) |
| * |
| * @see org.eclipse.jface.dialogs.Dialog#createDialogArea(org.eclipse.swt.widgets.Composite) |
| */ |
| protected Control createDialogArea(Composite parent) { |
| Composite composite = (Composite) super.createDialogArea(parent); |
| |
| Group optionGroup = new Group(composite, SWT.NONE); |
| optionGroup.setLayout(new GridLayout(1, false)); |
| GridData gridData = new GridData(GridData.FILL_HORIZONTAL); |
| gridData.horizontalSpan = 3; |
| optionGroup.setLayoutData(gridData); |
| optionGroup.setText("Options"); //$NON-NLS-1$ |
| |
| for (int i = 1; i <= 10; i++) { |
| Button button = SWTUtil.createCheckbox(optionGroup, |
| "Option " + i, 1); //$NON-NLS-1$ |
| } |
| |
| return composite; |
| } |
| |
| /* |
| * (non-Javadoc) |
| * |
| * @see org.eclipse.jface.window.Window#configureShell(org.eclipse.swt.widgets.Shell) |
| */ |
| protected void configureShell(Shell newShell) { |
| super.configureShell(newShell); |
| newShell.setText("Method Element Filter Options"); //$NON-NLS-1$ |
| } |
| |
| |
| } |