Package: DefaultAdapterFactoryEditingDomainProvider

DefaultAdapterFactoryEditingDomainProvider

nameinstructionbranchcomplexitylinemethod
DefaultAdapterFactoryEditingDomainProvider()
M: 0 C: 3
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
get()
M: 0 C: 8
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%

Coverage

1: /*******************************************************************************
2: * Copyright (c) 2013 RCP Vision (http://www.rcp-vision.com) and others.
3: * All rights reserved. This program and the accompanying materials
4: * are made available under the terms of the Eclipse Public License v1.0
5: * which accompanies this distribution, and is available at
6: * http://www.eclipse.org/legal/epl-v10.html
7: *
8: * Contributors:
9: * Lorenzo Bettini - initial API and implementation
10: *******************************************************************************/
11: package org.eclipse.emf.parsley.edit.domain;
12:
13: import org.eclipse.emf.common.notify.AdapterFactory;
14: import org.eclipse.emf.edit.domain.AdapterFactoryEditingDomain;
15:
16: import com.google.inject.Inject;
17: import com.google.inject.Provider;
18:
19: /**
20: * @author Lorenzo Bettini - Initial contribution and API
21: *
22: */
23: public class DefaultAdapterFactoryEditingDomainProvider implements Provider<AdapterFactoryEditingDomain> {
24:
25:         @Inject
26:         protected Provider<AdapterFactory> adapterFactoryProvider;
27:
28:         @Override
29:         public AdapterFactoryEditingDomain get() {
30:                 return new InjectableAdapterFactoryEditingDomain(adapterFactoryProvider.get());
31:         }
32:
33: }