Class DmrToSegmentsViewServiceFactory
- java.lang.Object
-
- org.eclipse.emfforms.internal.core.services.segments.DmrToSegmentsViewServiceFactory
-
- All Implemented Interfaces:
EMFFormsViewServiceFactory<DmrToSegmentsViewService>
public class DmrToSegmentsViewServiceFactory extends java.lang.Object implements EMFFormsViewServiceFactory<DmrToSegmentsViewService>
View service factory that createsDmrToSegmentsViewServices
.- Author:
- Lucas Koehler
-
-
Constructor Summary
Constructors Constructor Description DmrToSegmentsViewServiceFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DmrToSegmentsViewService
createService(EMFFormsViewContext emfFormsViewContext)
Creates a new instance of the provided service.EMFFormsViewServicePolicy
getPolicy()
Defines when the service should be activated.double
getPriority()
The priority of the service.EMFFormsViewServiceScope
getScope()
Defines where the service should be activated.java.lang.Class<DmrToSegmentsViewService>
getType()
The type of the actual service provided by this provider.
-
-
-
Method Detail
-
getPolicy
public EMFFormsViewServicePolicy getPolicy()
Description copied from interface:EMFFormsViewServiceFactory
Defines when the service should be activated.- Specified by:
getPolicy
in interfaceEMFFormsViewServiceFactory<DmrToSegmentsViewService>
- Returns:
- The
EMFFormsViewServicePolicy
describing when the service should be activated
-
getScope
public EMFFormsViewServiceScope getScope()
Description copied from interface:EMFFormsViewServiceFactory
Defines where the service should be activated.- Specified by:
getScope
in interfaceEMFFormsViewServiceFactory<DmrToSegmentsViewService>
- Returns:
- The
EMFFormsViewServiceScope
describing where the service should be activated
-
getPriority
public double getPriority()
Description copied from interface:EMFFormsViewServiceFactory
The priority of the service. The usage of this service is twofold:- A service with a higher priority is more likely to be used if more than one service of the same type is registered.
- A service with lower priority is instantiated and thereby executed earlier than other services of all types with higher priorities
- Specified by:
getPriority
in interfaceEMFFormsViewServiceFactory<DmrToSegmentsViewService>
- Returns:
- The priority of this service
-
getType
public java.lang.Class<DmrToSegmentsViewService> getType()
Description copied from interface:EMFFormsViewServiceFactory
The type of the actual service provided by this provider.- Specified by:
getType
in interfaceEMFFormsViewServiceFactory<DmrToSegmentsViewService>
- Returns:
- The Class of the actual service
-
createService
public DmrToSegmentsViewService createService(EMFFormsViewContext emfFormsViewContext)
Description copied from interface:EMFFormsViewServiceFactory
Creates a new instance of the provided service.- Specified by:
createService
in interfaceEMFFormsViewServiceFactory<DmrToSegmentsViewService>
- Parameters:
emfFormsViewContext
- TheEMFFormsViewContext
to use during the creation of the service- Returns:
- A new instance of the provided service or null if the service should not be created
-
-