/* | |
* Copyright (c) 2006, 2008 Borland Software Corp. | |
* | |
* 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: | |
* Alexander Shatalin (Borland) - initial API and implementation | |
*/ | |
package org.eclipse.gmf.ecore.providers; | |
import org.eclipse.emf.ecore.EReference; | |
import org.eclipse.gmf.ecore.part.EcoreDiagramEditorPlugin; | |
/** | |
* @generated | |
*/ | |
public class ElementInitializers { | |
protected ElementInitializers() { | |
// use #getInstance to access cached instance | |
} | |
/** | |
* @generated | |
*/ | |
public void init_EReference_4002(EReference instance) { | |
try { | |
instance.setContainment(false); | |
} catch (RuntimeException e) { | |
EcoreDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$ | |
} | |
} | |
/** | |
* @generated | |
*/ | |
public void init_EReference_4003(EReference instance) { | |
try { | |
instance.setContainment(true); | |
} catch (RuntimeException e) { | |
EcoreDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$ | |
} | |
} | |
/** | |
* @generated | |
*/ | |
public static ElementInitializers getInstance() { | |
ElementInitializers cached = EcoreDiagramEditorPlugin.getInstance().getElementInitializers(); | |
if (cached == null) { | |
EcoreDiagramEditorPlugin.getInstance().setElementInitializers(cached = new ElementInitializers()); | |
} | |
return cached; | |
} | |
} |