diff options
Diffstat (limited to 'plugins/org.eclipse.wst.server.ui/serverui/org/eclipse/wst/server/ui/internal/command/SetServerConfigurationFolderCommand.java')
-rw-r--r-- | plugins/org.eclipse.wst.server.ui/serverui/org/eclipse/wst/server/ui/internal/command/SetServerConfigurationFolderCommand.java | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/plugins/org.eclipse.wst.server.ui/serverui/org/eclipse/wst/server/ui/internal/command/SetServerConfigurationFolderCommand.java b/plugins/org.eclipse.wst.server.ui/serverui/org/eclipse/wst/server/ui/internal/command/SetServerConfigurationFolderCommand.java deleted file mode 100644 index 931bb617d..000000000 --- a/plugins/org.eclipse.wst.server.ui/serverui/org/eclipse/wst/server/ui/internal/command/SetServerConfigurationFolderCommand.java +++ /dev/null @@ -1,48 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2003, 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.wst.server.ui.internal.command; - -import org.eclipse.core.resources.IFolder; -import org.eclipse.wst.server.core.IServerWorkingCopy; -import org.eclipse.wst.server.ui.internal.Messages; -/** - * Command to change the server configuration folder. - */ -public class SetServerConfigurationFolderCommand extends ServerCommand { - protected IFolder folder; - protected IFolder oldFolder; - - /** - * SetServerConfigurationFolderCommand constructor. - * - * @param server a server - * @param folder a new server configuration location - */ - public SetServerConfigurationFolderCommand(IServerWorkingCopy server, IFolder folder) { - super(server, Messages.serverEditorOverviewServerHostnameCommand); - this.folder = folder; - } - - /** - * Execute the command. - */ - public void execute() { - oldFolder = server.getServerConfiguration(); - server.setServerConfiguration(folder); - } - - /** - * Undo the command. - */ - public void undo() { - server.setServerConfiguration(oldFolder); - } -}
\ No newline at end of file |