blob: 335a890f5164d066e192ae1f9471a22b80a8d558 [file] [log] [blame]
/**
* Copyright (c) 2009, 2011 Mia-Software.
* 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:
* Gregoire DUPE (Mia-Software) - initial API and implementation
* Fabien Giquel (Mia-Software) - initial API and implementation
* Nicolas Bros (Mia-Software) - Bug 335003 - [Discoverer] : Existing Discoverers Refactoring based on new framework
*/
package org.eclipse.modisco.java.discoverer.benchmark.emf.client;
import java.util.Properties;
import org.eclipse.modisco.java.discoverer.benchmark.Messages;
import org.eclipse.modisco.java.discoverer.benchmark.emfstat.DiscoverJavaModelFromJavaProjectEMFStat;
import org.eclipse.modisco.java.discoverer.benchmark.emfstat.JavaReaderEMFStat;
public class JavaDiscovererIncrementalEMF extends DiscoverJavaModelFromJavaProjectEMFStat {
@Override
protected JavaReaderEMFStat getJavaReader(final java.util.Map<String, Object> elementOptions) {
JavaReaderEMFStat javaReader = new JavaReaderEMFStat(getEFactory(), true);
javaReader.setStatistics(getStatistics());
return javaReader;
}
@Override
protected Properties getProperties() {
Properties properties = super.getProperties();
properties.put(DiscoverJavaModelFromJavaProjectEMFStat.ALGO_VARIANT,
Messages.JavaDiscoverIncrementalEMF_0);
properties.put(DiscoverJavaModelFromJavaProjectEMFStat.MM_VARIANT, "Minimal EObject"); //$NON-NLS-1$
return properties;
}
}