blob: 4d32d103a24331a3d3e0bbb672ee92665dcf88d0 [file] [log] [blame]
package org.eclipse.jst.j2ee.application.internal.operations;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.wst.common.componentcore.datamodel.properties.ICreateReferenceComponentsDataModelProperties;
import org.eclipse.wst.common.componentcore.internal.operation.CreateReferenceComponentsDataModelProvider;
import org.eclipse.wst.common.componentcore.resources.IVirtualComponent;
import org.eclipse.wst.common.frameworks.datamodel.IDataModelOperation;
public class AddComponentToEnterpriseApplicationDataModelProvider extends CreateReferenceComponentsDataModelProvider {
public AddComponentToEnterpriseApplicationDataModelProvider() {
super();
}
public IStatus validate(String propertyName) {
return super.validate(propertyName);
}
private IVirtualComponent getEarComponent() {
IVirtualComponent earComponent = (IVirtualComponent) getProperty(ICreateReferenceComponentsDataModelProperties.SOURCE_COMPONENT);
return earComponent;
}
public IDataModelOperation getDefaultOperation() {
return new AddComponentToEnterpriseApplicationOp(model);
}
public Object getDefaultProperty(String propertyName) {
return super.getDefaultProperty(propertyName);
}
}