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;
public class RepositoriesFilter extends ViewerFilter {
	private boolean fShowModules;
	public RepositoriesFilter(boolean showModules) {
		 = showModules;
	}
	public boolean select(Viewer viewerObject parentElementObject element) {
		if (element instanceof ICVSRemoteFolder) {
			if (((ICVSRemoteFolder)element).isDefinedModule()) {
				return ;
			}
		}
		if (element instanceof RemoteModule) {
			ICVSRemoteResource resource = ((RemoteModule)element).getCVSResource();
			if (resource instanceof ICVSRemoteFolder) {
				ICVSRemoteFolder folder = (ICVSRemoteFolderresource;
				if (folder.isDefinedModule()) {
					return ;
				}
			}
		}
		return true;
	}
	public boolean isShowModules() {
		return ;
	}
New to GrepCode? Check out our FAQ X