diff options
Diffstat (limited to 'plugins/org.eclipse.jst.server.tomcat.core/tomcatcore/org/eclipse/jst/server/tomcat/core/internal/command/SetDebugModeCommand.java')
-rw-r--r-- | plugins/org.eclipse.jst.server.tomcat.core/tomcatcore/org/eclipse/jst/server/tomcat/core/internal/command/SetDebugModeCommand.java | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/plugins/org.eclipse.jst.server.tomcat.core/tomcatcore/org/eclipse/jst/server/tomcat/core/internal/command/SetDebugModeCommand.java b/plugins/org.eclipse.jst.server.tomcat.core/tomcatcore/org/eclipse/jst/server/tomcat/core/internal/command/SetDebugModeCommand.java deleted file mode 100644 index 02b56c44f..000000000 --- a/plugins/org.eclipse.jst.server.tomcat.core/tomcatcore/org/eclipse/jst/server/tomcat/core/internal/command/SetDebugModeCommand.java +++ /dev/null @@ -1,47 +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.jst.server.tomcat.core.internal.command; - -import org.eclipse.jst.server.tomcat.core.internal.ITomcatServerWorkingCopy; -import org.eclipse.jst.server.tomcat.core.internal.Messages; -/** - * Command to change the server debug mode. - */ -public class SetDebugModeCommand extends ServerCommand { - protected boolean debug; - protected boolean oldDebug; - - /** - * SetDebugModeCommand constructor comment. - * - * @param server a Tomcat server - * @param debug <code>true</code> for debug mode - */ - public SetDebugModeCommand(ITomcatServerWorkingCopy server, boolean debug) { - super(server, Messages.serverEditorActionSetDebugMode); - this.debug = debug; - } - - /** - * Execute the command. - */ - public void execute() { - oldDebug = server.isDebug(); - server.setDebug(debug); - } - - /** - * Undo the command. - */ - public void undo() { - server.setDebug(oldDebug); - } -}
\ No newline at end of file |