| /******************************************************************************* |
| * Copyright (c) 2010 Oracle. |
| * 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: |
| * Oracle - initial API and implementation |
| *******************************************************************************/ |
| package org.eclipse.jpt.jpa.ui.internal.jpa2.details; |
| |
| import org.eclipse.jpt.common.ui.WidgetFactory; |
| import org.eclipse.jpt.common.utility.model.value.PropertyValueModel; |
| import org.eclipse.jpt.jpa.core.context.EmbeddedIdMapping; |
| import org.eclipse.jpt.jpa.ui.internal.details.AbstractEmbeddedIdMappingComposite; |
| import org.eclipse.jpt.jpa.ui.internal.details.EmbeddedMappingOverridesComposite; |
| import org.eclipse.swt.widgets.Composite; |
| |
| public class EmbeddedIdMapping2_0Composite |
| extends AbstractEmbeddedIdMappingComposite<EmbeddedIdMapping> |
| { |
| public EmbeddedIdMapping2_0Composite( |
| PropertyValueModel<? extends EmbeddedIdMapping> subjectHolder, |
| Composite parent, |
| WidgetFactory widgetFactory) { |
| |
| super(subjectHolder, parent, widgetFactory); |
| } |
| |
| |
| @Override |
| protected void initializeEmbeddedIdSection(Composite container) { |
| new EmbeddedIdMapping2_0MappedByRelationshipPane(this, getSubjectHolder(), container); |
| new EmbeddedMappingOverridesComposite(this, container); |
| } |
| } |