/******************************************************************************* * Copyright (c) 2008 xored software, Inc. * * 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: * xored software, Inc. - initial API and Implementation (Alex Panchenko) *******************************************************************************/ package org.eclipse.dltk.internal.debug.core.model; import org.eclipse.debug.core.DebugException; import org.eclipse.debug.core.model.IValue; import org.eclipse.debug.core.model.IWatchExpressionResult; import org.eclipse.dltk.compiler.CharOperation; public class NoWatchExpressionResult implements IWatchExpressionResult { private final String expressionText; /** * @param expressionText */ public NoWatchExpressionResult(String expressionText) { this.expressionText = expressionText; } public String[] getErrorMessages() { return CharOperation.NO_STRINGS; } public DebugException getException() { return null; } public String getExpressionText() { return expressionText; } public IValue getValue() { return null; } public boolean hasErrors() { return false; } }