/******************************************************************************* * Copyright (c) 2008, 2012 IBM Corporation 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: * IBM Corporation - initial API and implementation *******************************************************************************/ package org.eclipse.bpel.jboss.riftsaw.runtime.facets; import java.util.Set; import org.eclipse.bpel.jboss.riftsaw.runtime.IRiftsawModuleFacetConstants; import org.eclipse.bpel.runtimes.IBPELModuleFacetConstants; import org.eclipse.wst.common.componentcore.datamodel.FacetInstallDataModelProvider; import org.eclipse.wst.common.componentcore.datamodel.properties.IFacetDataModelProperties; import org.eclipse.wst.common.project.facet.core.IActionConfigFactory; public class RiftsawFacetInstallDataModelProvider extends FacetInstallDataModelProvider implements IActionConfigFactory, IFacetDataModelProperties, IBPELModuleFacetConstants { @Override public Set getPropertyNames() { Set names = super.getPropertyNames(); names.add(FACET_PROJECT_NAME); names.add(FACET_ID); names.add(BPEL_CONTENT_FOLDER); return names; } @Override public Object getDefaultProperty(String propertyName) { if (propertyName.equals(FACET_ID)) { return IRiftsawModuleFacetConstants.JBT_BPEL_PROJECT_FACET; } return super.getDefaultProperty(propertyName); } }