diff options
Diffstat (limited to 'plugins/cdo/bundles/org.eclipse.papyrus.cdo.ui/src/org/eclipse/papyrus/cdo/internal/ui/editors/DawnGraphicalEditorSupportServiceFactory.java')
-rwxr-xr-x | plugins/cdo/bundles/org.eclipse.papyrus.cdo.ui/src/org/eclipse/papyrus/cdo/internal/ui/editors/DawnGraphicalEditorSupportServiceFactory.java | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/plugins/cdo/bundles/org.eclipse.papyrus.cdo.ui/src/org/eclipse/papyrus/cdo/internal/ui/editors/DawnGraphicalEditorSupportServiceFactory.java b/plugins/cdo/bundles/org.eclipse.papyrus.cdo.ui/src/org/eclipse/papyrus/cdo/internal/ui/editors/DawnGraphicalEditorSupportServiceFactory.java new file mode 100755 index 00000000..4fe61e43 --- /dev/null +++ b/plugins/cdo/bundles/org.eclipse.papyrus.cdo.ui/src/org/eclipse/papyrus/cdo/internal/ui/editors/DawnGraphicalEditorSupportServiceFactory.java @@ -0,0 +1,64 @@ +/***************************************************************************** + * Copyright (c) 2013, 2017 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.cdo.internal.ui.editors; + +import org.eclipse.papyrus.infra.core.services.IServiceFactory; +import org.eclipse.papyrus.infra.core.services.ServiceException; +import org.eclipse.papyrus.infra.core.services.ServicesRegistry; + + +/** + * This is the DawnGraphicalEditorSupportServiceFactory type. Enjoy. + */ +public class DawnGraphicalEditorSupportServiceFactory + implements IServiceFactory { + + private ServicesRegistry registry; + + private DawnGraphicalEditorSupport service; + + public DawnGraphicalEditorSupportServiceFactory() { + super(); + } + + @Override + public void init(ServicesRegistry servicesRegistry) + throws ServiceException { + + this.registry = servicesRegistry; + } + + @Override + public void startService() + throws ServiceException { + + // pass + } + + @Override + public void disposeService() + throws ServiceException { + + if (service == null) { + // TODO clean up? + } + } + + @Override + public Object createServiceInstance() + throws ServiceException { + + service = new DawnGraphicalEditorSupport(registry); + return service; + } + +} |