/******************************************************************************* * Copyright (c) 2005-2008 Polarion Software. * 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: * Alexander Gurov - Initial API and implementation *******************************************************************************/ package org.eclipse.team.svn.ui.panel.remote; import org.eclipse.swt.widgets.Composite; import org.eclipse.team.svn.ui.SVNUIMessages; /** * Rename remote resource panel * * @author Alexander Gurov */ public class RenameResourcePanel extends AbstractGetResourceNamePanel { public RenameResourcePanel(String originalName) { super(SVNUIMessages.RenameResourcePanel_Title, true); this.dialogDescription = SVNUIMessages.RenameResourcePanel_Description; this.disallowedName = originalName; } public void createControlsImpl(Composite parent) { super.createControlsImpl(parent); this.text.setText(this.disallowedName); this.text.selectAll(); } public String getHelpId() { return "org.eclipse.team.svn.help.renameDialogContext"; //$NON-NLS-1$ } }