Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2011 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.doubleClicking;
 
import  org.eclipse.jface.text.ITextDoubleClickStrategy;
import  org.eclipse.jface.text.source.ISourceViewer;
Provide the double click strategies for the given content types in a document.

Author(s):
Sebastian Zarnekow - Initial contribution and API
	public ITextDoubleClickStrategy getStrategy(ISourceViewer sourceViewerString contentTypeString documentPartitioning) {
			return new FixedCharCountPartitionDoubleClickSelector(documentPartitioning, 0, 0);
			return new FixedCharCountPartitionDoubleClickSelector(documentPartitioning, 0, 0);
			return new FixedCharCountPartitionDoubleClickSelector(documentPartitioning, 1, 1);
	}
New to GrepCode? Check out our FAQ X