Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2000, 2006 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 Contributors: IBM Corporation - initial API and implementation /
Abstract superclass for actions in the repositories view
public abstract class CVSRepoViewAction extends CVSAction {

Returns the selected CVS Repository locations
		ArrayList tags = new ArrayList();
		if (!selection.isEmpty()) {
			Iterator elements = selection.iterator();
			while (elements.hasNext()) {
				Object element =;
				Object adapter = getAdapter(elementICVSRepositoryLocation.class);
				if (adapter != null) {
else {
					adapter = getAdapter(elementBranchCategory.class);
					if(adapter != null) {
New to GrepCode? Check out our FAQ X