blob: fdb0707d3a30b9977827058666439fa47d498e8f [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2003, 2004, 2005 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.jst.j2ee.jca.internal.module.util;
import org.eclipse.jst.j2ee.jca.modulecore.util.ConnectorArtifactEdit;
import org.eclipse.wst.common.componentcore.ArtifactEdit;
import org.eclipse.wst.common.componentcore.internal.StructureEdit;
import org.eclipse.wst.common.componentcore.internal.WorkbenchComponent;
import org.eclipse.wst.common.componentcore.internal.operation.ArtifactEditOperation;
import org.eclipse.wst.common.componentcore.resources.ComponentHandle;
public class ConnectorArtifactEditOperation extends ArtifactEditOperation {
public ConnectorArtifactEditOperation(ConnectorArtifactEditOperationDataModel operationDataModel) {
super(operationDataModel);
}
protected ArtifactEdit getArtifactEditForModule(WorkbenchComponent module) {
ComponentHandle handle = ComponentHandle.create(StructureEdit.getContainingProject(module), module.getName());
return ConnectorArtifactEdit.getConnectorArtifactEditForWrite(handle);
}
protected ConnectorArtifactEdit getConnectorArtifactEdit() {
return (ConnectorArtifactEdit)getArtifactEdit();
}
}