blob: f89ac8a8b5e32f3f7b963e4de053150b5e66b953 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2006, 2011 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.ui.internal.details;
import org.eclipse.jpt.common.ui.WidgetFactory;
import org.eclipse.jpt.core.context.OneToManyMapping;
import org.eclipse.jpt.core.context.OneToManyRelationship;
import org.eclipse.jpt.utility.model.value.PropertyValueModel;
import org.eclipse.swt.widgets.Composite;
/**
* Here the layout of this pane:
* <pre>
* -----------------------------------------------------------------------------
* | ------------------------------------------------------------------------- |
* | | | |
* | | TargetEntityComposite | |
* | | | |
* | ------------------------------------------------------------------------- |
* | ------------------------------------------------------------------------- |
* | | | |
* | | JoiningStrategyComposite | |
* | | | |
* | ------------------------------------------------------------------------- |
* | ------------------------------------------------------------------------- |
* | | | |
* | | FetchTypeComposite | |
* | | | |
* | ------------------------------------------------------------------------- |
* | ------------------------------------------------------------------------- |
* | | | |
* | | CascadeComposite | |
* | | | |
* | ------------------------------------------------------------------------- |
* | ------------------------------------------------------------------------- |
* | | | |
* | | OrderingComposite | |
* | | | |
* | ------------------------------------------------------------------------- |
* -----------------------------------------------------------------------------</pre>
*
* @see OneToManyMapping
* @see CascadeComposite
* @see FetchTypeComposite
* @see JoinTableComposite
* @see OrderingComposite
* @see TargetEntityComposite
*
* @version 2.3
* @since 1.0
*/
public class OneToManyMappingComposite
extends AbstractOneToManyMappingComposite<OneToManyMapping, OneToManyRelationship>
{
/**
* Creates a new <code>OneToManyMappingComposite</code>.
*
* @param subjectHolder The holder of the subject <code>IOneToManyMapping</code>
* @param parent The parent container
* @param widgetFactory The factory used to create various common widgets
*/
public OneToManyMappingComposite(PropertyValueModel<? extends OneToManyMapping> subjectHolder,
Composite parent,
WidgetFactory widgetFactory) {
super(subjectHolder, parent, widgetFactory);
}
@Override
protected void initializeOneToManySection(Composite container) {
new TargetEntityComposite(this, container);
new FetchTypeComposite(this, container);
new CascadeComposite(this, buildCascadeHolder(), addSubPane(container, 5));
}
}