diff options
Diffstat (limited to 'plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/TypesConfigurationsRegistryService.java')
-rw-r--r-- | plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/TypesConfigurationsRegistryService.java | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/TypesConfigurationsRegistryService.java b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/TypesConfigurationsRegistryService.java new file mode 100644 index 00000000000..ce1c5c024f9 --- /dev/null +++ b/plugins/infra/types/org.eclipse.papyrus.infra.types.core/src/org/eclipse/papyrus/infra/types/core/TypesConfigurationsRegistryService.java @@ -0,0 +1,49 @@ +/***************************************************************************** + * Copyright (c) 2014 CEA LIST. + * + * 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 + * + * Contributors: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.infra.types.core; + +import org.eclipse.papyrus.infra.core.services.IService; +import org.eclipse.papyrus.infra.core.services.ServiceException; +import org.eclipse.papyrus.infra.core.services.ServicesRegistry; +import org.eclipse.papyrus.infra.types.core.registries.ElementTypeSetConfigurationRegistry; + +/** + * Service to register elementTypes configurations + */ +public class TypesConfigurationsRegistryService implements IService { + + /** + * {@inheritDoc} + */ + public void init(ServicesRegistry servicesRegistry) throws ServiceException { + } + + /** + * {@inheritDoc} + */ + public void startService() throws ServiceException { + // register elements in elementType registry + ElementTypeSetConfigurationRegistry.getInstance(); + } + + /** + * {@inheritDoc} + */ + public void disposeService() throws ServiceException { + // Do nothing because registered elementtypes may be used somewhere else. + } + + public ElementTypeSetConfigurationRegistry getElementTypeSetRegistry() { + return ElementTypeSetConfigurationRegistry.getInstance(); + } +} |