blob: e686a2d87d4cb92aa7b5dfdd469473315cf83da0 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2008, 2012 Obeo.
* 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:
* Obeo - initial API and implementation
*******************************************************************************/
package org.eclipse.acceleo.profiler.provider;
import org.eclipse.emf.common.notify.Adapter;
/**
* Specializes the ProfilerItemProviderAdapterFactory implementation.
*
* @author <a href="mailto:yvan.lussaud@obeo.fr">Yvan Lussaud</a>
*/
public class ProfilerItemProviderAdapterFactorySpec extends ProfilerItemProviderAdapterFactory {
/**
* Constructor.
*/
public ProfilerItemProviderAdapterFactorySpec() {
super();
}
/**
* {@inheritDoc}
*
* @see org.eclipse.acceleo.profiler.provider.ProfilerItemProviderAdapterFactory#createProfileEntryAdapter()
*/
@Override
public Adapter createProfileEntryAdapter() {
if (profileEntryItemProvider == null) {
profileEntryItemProvider = new ProfileEntryItemProviderSpec(this);
}
return profileEntryItemProvider;
}
/**
* {@inheritDoc}
*
* @see org.eclipse.acceleo.profiler.provider.ProfilerItemProviderAdapterFactory#createLoopProfileEntryAdapter()
*/
@Override
public Adapter createLoopProfileEntryAdapter() {
if (loopProfileEntryItemProvider == null) {
loopProfileEntryItemProvider = new LoopProfileEntryItemProviderSpec(this);
}
return loopProfileEntryItemProvider;
}
}