Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2010 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.resource.generic;
  
 import  org.eclipse.emf.edit.provider.ComposedAdapterFactory;
 import  org.eclipse.emf.edit.ui.provider.AdapterFactoryLabelProvider;
 import  org.eclipse.jface.dialogs.IDialogSettings;
 import  org.eclipse.jface.viewers.ILabelProvider;
 import  org.eclipse.ui.plugin.AbstractUIPlugin;
 

Author(s):
Jan Koehnlein - Initial contribution and API
 
 public class EmfUiModule extends AbstractGenericModule {
 
 	private final AbstractUIPlugin plugin;
 
 	public EmfUiModule(AbstractUIPlugin plugin) {
 		super();
 		this. = plugin;
 	}
 	
 	public void configure(Binder binder) {
 		super.configure(binder);
 		binder.bind(AbstractUIPlugin.class).toInstance();
 		binder.bind(IDialogSettings.class).toInstance(.getDialogSettings());
 	}
 	
 	public Class<? extends AdapterFactorybindAdapterFactory() {
 		return InjectableAdapterFactory.class;
 	}
 	
 	public Class<? extends AdapterFactoryLabelProvider> bindAdapterFactoryLabelProvider() {
 	}
 
 		binder.bind(org.eclipse.jface.viewers.ILabelProvider.class).annotatedWith(org.eclipse.xtext.ui.editor.hyperlinking.HyperlinkLabelProvider.class).to(org.eclipse.jface.viewers.ILabelProvider.class);
 	}
 
 		binder.bind(org.eclipse.jface.viewers.ILabelProvider.class).annotatedWith(org.eclipse.xtext.ui.editor.contentassist.ContentProposalLabelProvider.class).to(org.eclipse.jface.viewers.ILabelProvider.class);
 	}
 	
 		binder.bind(org.eclipse.jface.viewers.ILabelProvider.class).annotatedWith(org.eclipse.xtext.ui.resource.ResourceServiceDescriptionLabelProvider.class).to(AdapterFactoryDescriptionLabelProvider.class);
 	}
 	
 	public Class<? extends ILabelProvider> bindILabelProvider() {
 	}
 	
 	}
 	
 	public Class<? extends IImageHelperbindIImageHelper() {
 		return PluginImageHelper.class;
 	}
 	
 	public ComposedAdapterFactory.Descriptor.Registry bindComposedAdapterFactory$Descriptor$RegistryToInstance() {
 		return ComposedAdapterFactory.Descriptor.Registry.INSTANCE;
 	}
 	
 		return SimpleResourceSetProvider.class;
 	}

Since:
2.1
	public Class<? extends IRenameStrategybindIRenameStrategy() {
	}

Since:
2.0
	}
	}

Since:
2.1
	}

Since:
2.1
	}
New to GrepCode? Check out our FAQ X