Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2008 itemis AG ( 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 /
 package org.eclipse.xtext.ui.editor.syntaxcoloring;
import  org.eclipse.jface.preference.IPreferenceStore;
import  org.eclipse.swt.widgets.Composite;

Dennis H´┐Żbner - Initial contribution and API
	TokenTypeDefMasterDetailFieldEditor(String nameString labelText, Composite composite,
			IPreferenceStore preferenceStoreList<Triple<StringStringTextStyle>> list) {
	protected String label(Object object) {
		if (object instanceof Triple<?, ?, ?>)
			return (String) ((Triple<?, ?, ?>) object).getSecond();
		return object.toString();
	protected String identifier(Object object) {
		if (object instanceof Triple<?, ?, ?>)
			return (String) ((Triple<?, ?, ?>) object).getFirst();
		return object.toString();
New to GrepCode? Check out our FAQ X