blob: 08eb26b412b77f930622f0a3ccc77ad310784923 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2006, 2009 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.java;
import org.eclipse.jpt.core.context.java.JavaPersistentAttribute;
import org.eclipse.jpt.ui.WidgetFactory;
import org.eclipse.jpt.ui.internal.details.PersistentAttributeDetailsPage;
import org.eclipse.jpt.ui.internal.details.PersistentAttributeMapAsComposite;
import org.eclipse.swt.widgets.Composite;
/**
* The default implementation of the details page used for the Java persistent
* attribute.
* <p>
* Here the layout of this pane:
* <pre>
* -----------------------------------------------------------------------------
* | ------------------------------------------------------------------------- |
* | | | |
* | | JavaPersistentAttributeMapAsComposite | |
* | | | |
* | ------------------------------------------------------------------------- |
* | ------------------------------------------------------------------------- |
* | | | |
* | | Type mapping pane | |
* | | | |
* | ------------------------------------------------------------------------- |
* -----------------------------------------------------------------------------</pre>
*
* @see JavaPersistentAttribute
* @see JavaPersistentTypeMapAsComposite
*
* @version 2.2
* @since 2.0
*/
public class JavaPersistentAttributeDetailsPage extends PersistentAttributeDetailsPage<JavaPersistentAttribute>
{
/**
* Creates a new <code>JavaPersistentAttributeDetailsPage</code>.
*
* @param parent The parent container
* @param widgetFactory The factory used to create various common widgets
*/
public JavaPersistentAttributeDetailsPage(Composite parent,
WidgetFactory widgetFactory) {
super(parent, widgetFactory);
}
@Override
protected void initializeLayout(Composite container) {
// Map as composite
new PersistentAttributeMapAsComposite(
this,
addSubPane(container, 0, 0, 5, 0)
);
buildMappingPageBook(container);
}
}