Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2009 itemis AG (http://www.itemis.eu) 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 /
 
 package org.eclipse.xtext.ui.editor.toggleComments;
 

Author(s):
Sebastian Zarnekow - Initial contribution and API
public class SLCommentPrefixCalculator extends XtextSwitch<Boolean> {
	private final List<Stringresult;
	protected SLCommentPrefixCalculator(List<Stringresult) {
		this. = result;
	}
 
		boolean result = true;
		for(AbstractElement elemobject.getElements()) {
			result &= doSwitch(elem);
		}
		return result;
	}
	public Boolean caseGroup(Group object) {
		for (AbstractElement elemobject.getElements()) {
			if (!doSwitch(elem))
				return false;
		}
		return true;
	}
	public Boolean caseKeyword(Keyword object) {
		.add(object.getValue());
		return false;
	}
		return false;
	}
	public Boolean caseUntilToken(UntilToken object) {
		return false;
	}
		return false;
	}
New to GrepCode? Check out our FAQ X