/******************************************************************************* * Copyright (c) 2000, 2007 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 * *******************************************************************************/ package org.eclipse.dltk.internal.debug.ui.handlers; import org.eclipse.dltk.launching.DebuggingEngineRunner; import org.eclipse.dltk.launching.debug.IDebuggingEngine; /** * Debugging engine configuration problem that prevents debugging engine from * starting * * @author kds * */ public class DebuggingEngineNotConfiguredStatusHandler extends AbstractOpenPreferencePageStatusHandler { protected String getPreferencePageId(Object source) { if (source instanceof DebuggingEngineRunner) { final DebuggingEngineRunner runner = (DebuggingEngineRunner) source; final IDebuggingEngine engine = runner.getDebuggingEngine(); if (engine != null) { return engine.getPreferencePageId(); } } return null; } public String getTitle() { return HandlerMessages.DebuggingEngineNotConfiguredTitle; } protected String getQuestion() { return HandlerMessages.DebuggingEngineNotConfiguredQuestion; } }