| /***************************************************************************** |
| * 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.factory; |
| |
| import org.eclipse.papyrus.uml.diagram.clazz.lf.classtextualedition.Activator; |
| |
| public abstract class BasicFactory { |
| |
| private final static Activator LOGGER = Activator.getDefault(); |
| |
| protected boolean checkNullArgument(Object[] arguments) { |
| for (int i = 0; i < arguments.length; i += 2) { |
| if (arguments[i] == null) { |
| LOGGER.logNullParameter((String) arguments[i + 1]); |
| return true; |
| } |
| } |
| return false; |
| } |
| } |