blob: ab7a4101887950e1ad57829e35df1568b12eb59c [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2007 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.actions;
import org.eclipse.jpt.core.internal.IJpaProject;
import org.eclipse.jpt.ui.internal.IJpaPlatformUi;
import org.eclipse.jpt.ui.internal.PlatformRegistry;
/**
* GenerateDDLAction
*/
public class GenerateDDLAction extends ProjectAction {
public GenerateDDLAction() {
super();
}
protected void execute(IJpaProject project) {
String vendorId = project.getPlatform().getId();
this.jpaPlatformUI(vendorId).generateDDL(project, this.getCurrentSelection());
}
private IJpaPlatformUi jpaPlatformUI(String vendorId) {
return PlatformRegistry.INSTANCE.getJpaPlatform(vendorId);
}
}