blob: cc1460579a272ec8c06a690b2a7a70385dbf5682 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2013 Oracle. 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/.
*
* Contributors:
* Oracle - initial API and implementation
******************************************************************************/
package org.eclipse.jpt.jpa.eclipselink.ui.internal.details.java;
import org.eclipse.jface.resource.ResourceManager;
import org.eclipse.jpt.common.ui.WidgetFactory;
import org.eclipse.jpt.common.utility.model.value.PropertyValueModel;
import org.eclipse.jpt.jpa.core.context.Entity;
import org.eclipse.jpt.jpa.core.context.MappedSuperclass;
import org.eclipse.jpt.jpa.eclipselink.core.context.java.EclipseLinkJavaEntity;
import org.eclipse.jpt.jpa.eclipselink.core.context.java.EclipseLinkJavaMappedSuperclass;
import org.eclipse.jpt.jpa.ui.details.JpaComposite;
import org.eclipse.jpt.jpa.ui.jpa2_1.details.JpaUiFactory2_1;
import org.eclipse.swt.widgets.Composite;
public class EclipseLinkJavaUiFactory2_5
extends EclipseLinkJavaUiFactory2_0
implements JpaUiFactory2_1
{
// ********** type mappings **********
@SuppressWarnings("unchecked")
@Override
public JpaComposite createEntityComposite(
PropertyValueModel<? extends Entity> entityModel,
Composite parentComposite,
WidgetFactory widgetFactory,
ResourceManager resourceManager) {
return new EclipseLinkJavaEntityComposite2_5((PropertyValueModel<? extends EclipseLinkJavaEntity>) entityModel, parentComposite, widgetFactory, resourceManager);
}
@SuppressWarnings("unchecked")
@Override
public JpaComposite createMappedSuperclassComposite(
PropertyValueModel<? extends MappedSuperclass> mappedSuperclassModel,
Composite parentComposite,
WidgetFactory widgetFactory,
ResourceManager resourceManager) {
return new EclipseLinkJavaMappedSuperclassComposite2_5((PropertyValueModel<? extends EclipseLinkJavaMappedSuperclass>) mappedSuperclassModel, parentComposite, widgetFactory, resourceManager);
}
}