blob: dc4aeb973ec868809e7155900da6a4b0694a1435 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2001, 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.common.frameworks.internal.operations;
/**
* Simple implementer that ignores messages and always allows actions to continue
*/
public class NullOperationHandler implements IOperationHandler {
/**
* NullOperationHandler constructor comment.
*/
public NullOperationHandler() {
super();
}
/**
* A decision needs to made as to whether an action/operation can continue
*/
public boolean canContinue(String message) {
return true;
}
/**
* A decision needs to made as to whether an action/operation can continue
*/
public boolean canContinue(String message, String[] items) {
return true;
}
/**
* A decision needs to made as to whether an action/operation can continue. The boolean array
* will return two booleans. The first indicates their response to the original question and the
* second indicates if they selected the apply to all check box.
*
* Return the return code for the dialog. 0 = Yes, 1 = Yes to all, 2 = No
*/
public int canContinueWithAllCheck(java.lang.String message) {
return 0;
}
/*
* (non-Javadoc)
*
* @see com.ibm.etools.j2ee.operations.IOperationHandler#canContinueWithAllCheckAllowCancel(java.lang.String)
*/
public int canContinueWithAllCheckAllowCancel(String message) {
return 0;
}
/**
* An error has occurred
*/
public void error(String message) {
System.err.println(message);
}
/**
* An informational message needs to be presented
*/
public void inform(String message) {
}
/**
* @see com.ibm.etools.j2ee.operations.IOperationHandler#getContext()
*/
public Object getContext() {
return null;
}
}