| /***************************************************************************** |
| * Copyright (c) 2019 CEA LIST. |
| * |
| * |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License 2.0 |
| * which accompanies this distribution, and is available at |
| * https://www.eclipse.org/legal/epl-2.0/ |
| * |
| * SPDX-License-Identifier: EPL-2.0 |
| * |
| * Contributors: |
| * Xavier Le Pallec (for CEA LIST) xlepallec@lilo.org - Bug 558456 |
| * |
| *****************************************************************************/ |
| |
| package org.eclipse.papyrus.uml.diagram.clazz.lf.classtextualedition.javascript.functions; |
| |
| import org.eclipse.papyrus.uml.diagram.clazz.lf.classtextualedition.factory.BasicFactory; |
| import org.eclipse.papyrus.uml.diagram.clazz.lf.classtextualedition.swt.UmlClassHTMLEditionDialog; |
| import org.eclipse.papyrus.uml.diagram.common.editparts.ClassEditPart; |
| |
| public class FunctionsFactory extends BasicFactory { |
| |
| private static FunctionsFactory INSTANCE = new FunctionsFactory(); |
| |
| /** |
| * This method returns the instance (singleton) to use as a factory. |
| * |
| * @return instance/factory |
| */ |
| public static FunctionsFactory getInstance() { |
| return INSTANCE; |
| } |
| |
| public ObjectWithFunctions createObjectWithFunctions(UmlClassHTMLEditionDialog editionDialog, ClassEditPart classEditPart) { |
| return new ObjectWithFunctions(editionDialog, classEditPart); |
| } |
| |
| private FunctionsFactory() { |
| |
| } |
| |
| } |