blob: 4576bfa4f785b040ada1d1d3df3ec0b44462e5af [file] [log] [blame]
package org.eclipse.wst.xsd.ui.internal.actions;
import org.eclipse.gef.GraphicalEditPart;
import org.eclipse.jface.action.Action;
import org.eclipse.wst.xsd.ui.internal.commands.RenameCommand;
import org.eclipse.xsd.XSDNamedComponent;
public class GraphRenameAction extends Action
{
protected RenameCommand command;
public GraphRenameAction(XSDNamedComponent namedComponent, GraphicalEditPart editPart)
{
command = new RenameCommand(namedComponent, editPart);
setText("Rename");
}
public void run()
{
command.run();
}
}