blob: 7a973082b933e9a2236579cfe02f5f8820b34d1d [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2006, 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.ui.internal.details;
import org.eclipse.jface.resource.ResourceManager;
import org.eclipse.jpt.common.ui.internal.widgets.DialogPane;
import org.eclipse.jpt.jpa.core.context.JoinColumn;
import org.eclipse.jpt.jpa.core.context.JoinColumnRelationshipStrategy;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Shell;
public class JoinColumnInJoiningStrategyDialog
extends BaseJoinColumnDialog<JoinColumnRelationshipStrategy, JoinColumn, JoinColumnInJoiningStrategyStateObject>
{
/**
* Use this constructor to create a <em>new</em> join column.
*/
protected JoinColumnInJoiningStrategyDialog(
Shell parentShell,
ResourceManager resourceManager,
JoinColumnRelationshipStrategy strategy) {
super(parentShell, resourceManager, strategy);
}
/**
* Use this constructor to edit an <em>existing</em> join column.
*/
protected JoinColumnInJoiningStrategyDialog(
Shell parentShell,
ResourceManager resourceManager,
JoinColumnRelationshipStrategy strategy,
JoinColumn joinColumn) {
super(parentShell, resourceManager, strategy, joinColumn);
}
@Override
protected JoinColumnInJoiningStrategyStateObject buildStateObject() {
return new JoinColumnInJoiningStrategyStateObject(this.getParent(), this.getJoinColumn());
}
@Override
protected DialogPane<?> buildLayout(Composite container) {
return new JoinColumnDialogPane<JoinColumnInJoiningStrategyStateObject>(
this.getSubjectHolder(),
container,
this.resourceManager
);
}
}