blob: c1ec3e43e6ef2591058f72d6ad12e2482dc88575 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2007, 2008 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.mappings.details;
import org.eclipse.jpt.core.context.AssociationOverride;
import org.eclipse.jpt.core.context.JoinColumn;
import org.eclipse.swt.widgets.Shell;
/**
* This dialog is used to either create or edit a joing column that is located
* on an association override.
*
* @see JoinColumn
* @see AssociationOverride
* @see JoinColumnInAssociationOverrideStateObject
* @see JoinColumnDialogPane
*
* @version 2.0
* @since 2.0
*/
public class JoinColumnInAssociationOverrideDialog extends JoinColumnDialog<JoinColumnInAssociationOverrideStateObject> {
/**
* Creates a new <code>JoinColumnInAssociationOverrideDialog</code>.
*
* @param parent The parent shell
* @param associationOverride The owner of the join column to create
* @param joinColumn The join column to edit or <code>null</code> if this is
* used to create a new one
*/
public JoinColumnInAssociationOverrideDialog(Shell parent,
AssociationOverride associationOverride,
JoinColumn joinColumn) {
super(parent, associationOverride, joinColumn);
}
/*
* (non-Javadoc)
*/
@Override
protected JoinColumnInAssociationOverrideStateObject buildStateObject() {
return new JoinColumnInAssociationOverrideStateObject(
getOwner(),
getJoinColumn()
);
}
/*
* (non-Javadoc)
*/
@Override
protected AssociationOverride getOwner() {
return (AssociationOverride) super.getOwner();
}
}