| /******************************************************************************* |
| * 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.internal.web.util; |
| |
| import org.eclipse.jst.j2ee.web.componentcore.util.WebArtifactEdit; |
| 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 WebArtifactEditOperation extends ArtifactEditOperation { |
| |
| public WebArtifactEditOperation(WebArtifactEditOperationDataModel operationDataModel) { |
| super(operationDataModel); |
| } |
| |
| protected ArtifactEdit getArtifactEditForModule(WorkbenchComponent module) { |
| ComponentHandle handle = ComponentHandle.create(StructureEdit.getContainingProject(module),module.getName()); |
| return WebArtifactEdit.getWebArtifactEditForWrite(handle); |
| } |
| |
| protected WebArtifactEdit getWebArtifactEdit() { |
| return (WebArtifactEdit)getArtifactEdit(); |
| } |
| } |