Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2009 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 API and implementation /
package org.eclipse.team.internal.ccvs.ui.repo;
import  org.eclipse.swt.SWT;
import  org.eclipse.swt.layout.GridData;
import  org.eclipse.swt.layout.GridLayout;
import  org.eclipse.swt.widgets.*;
public class RepositoriesFilterDialog extends TrayDialog {
	private Button fShowModules;
	public RepositoriesFilterDialog(Shell shell) {
		super(shell);
	}
	protected void configureShell(Shell newShell) {
		super.configureShell(newShell);
	}
	protected Control createDialogArea(Composite parent) {
		Composite composite = new Composite(parent, SWT.NONE);
		GridLayout layout = new GridLayout();
		composite.setLayout(layout);
		 = new Button(composite, SWT.CHECK);
		GridData data = new GridData(GridData.FILL_HORIZONTAL);
		.setLayoutData(data);
		.setSelection(true);
		// set F1 help
		Dialog.applyDialogFont(parent);
		return composite;
	}
	void initializeValues() {
		if ( == null)
			return;
	}

A button has been pressed. Process the dialog contents.
	protected void buttonPressed(int buttonId) {
		if (. == buttonId) {
			super.buttonPressed(buttonId);
			return;
		}
		//create the filter
		 = new RepositoriesFilter(.getSelection());
		super.buttonPressed(buttonId);
	}

Returns the filter that was created from the provided user input.
		return ;
	}

Set the initial value of the dialog to the given filter.
	public void setFilter(RepositoriesFilter filter) {
		this. = filter;
	}
New to GrepCode? Check out our FAQ X