Skip to main content
summaryrefslogtreecommitdiffstats
blob: 8757fe9848dd5a710e5c1bcf67a5ee2a6065ea06 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/**
 * <copyright>
 *
 * Copyright (c) 2005, 2006 Springsite BV (The Netherlands) and others
 * 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:
 *   Martin Taal
 * </copyright>
 *
 * $Id: GenerateJDOActionSuperTable.java,v 1.2 2006/09/13 10:39:54 mtaal Exp $
 */

package org.eclipse.emf.teneo.jpox.eclipse;

import java.util.HashMap;

import org.eclipse.jface.action.IAction;
import org.eclipse.ui.IActionDelegate;
import org.eclipse.emf.teneo.PersistenceOptions;
import org.eclipse.emf.teneo.annotations.pannotation.InheritanceType;
import org.eclipse.emf.teneo.eclipse.genxml.GenerateMappingAction;
import org.eclipse.emf.teneo.jpox.JpoxConstants;
import org.eclipse.emf.teneo.jpox.mapper.GenerateJDO;

/**
 * Eclipse popup action to generate a jdo file based on emf generated sources.
 * 
 * @author <a href="mailto:mtaal@elver.org">Martin Taal</a>
 * @version $Revision: 1.2 $
 */

public class GenerateJDOActionSuperTable extends GenerateMappingAction {
	/**
	 * @see IActionDelegate#run(IAction)
	 */
	public void run(IAction action) {
		final HashMap options = new HashMap();
		options.put(PersistenceOptions.INHERITANCE_MAPPING, InheritanceType.SINGLE_TABLE_LITERAL.getName());
		super.run(action, JpoxConstants.DEFAULT_JDO_FILENAME, "Generate JDO 2.0 Metadata File", options, GenerateJDO.class.getName());
	}
}

Back to the top