Package: DefaultEditingDomainProvider

DefaultEditingDomainProvider

nameinstructionbranchcomplexitylinemethod
DefaultEditingDomainProvider()
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: 5
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) 2015 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:
12: package org.eclipse.emf.parsley.edit.domain;
13:
14: import org.eclipse.emf.edit.domain.AdapterFactoryEditingDomain;
15: import org.eclipse.emf.edit.domain.EditingDomain;
16:
17: import com.google.inject.Inject;
18: import com.google.inject.Provider;
19:
20: /**
21: * The default implementation is to delegate to a {@link Provider} for
22: * {@link AdapterFactoryEditingDomain}.
23: *
24: * @author Lorenzo Bettini - Initial contribution and API
25: *
26: */
27: public class DefaultEditingDomainProvider implements Provider<EditingDomain> {
28:
29:         @Inject
30:         private Provider<AdapterFactoryEditingDomain> delegateProvider;
31:
32:         @Override
33:         public EditingDomain get() {
34:                 return delegateProvider.get();
35:         }
36:
37: }