Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2009 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.label;
import  org.eclipse.emf.edit.provider.IItemLabelProvider;
import  org.eclipse.emf.edit.ui.provider.AdapterFactoryLabelProvider;

Sebastian Zarnekow - Initial contribution and API
Michael Clay
public class InjectableAdapterFactoryLabelProvider extends AdapterFactoryLabelProvider {
	public String getText(Object object) {
		IItemLabelProvider itemLabelProvider = (IItemLabelProvider) adapterFactory.adapt(object,
		return itemLabelProvider != null ? itemLabelProvider.getText(object) : null;
New to GrepCode? Check out our FAQ X