blob: 7207c7ca82f9990dd98b33d27b821fa1f803fe89 [file] [log] [blame]
package org.eclipse.jdt.internal.debug.ui.actions;
/*******************************************************************************
* Copyright (c) 2002 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Common Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/cpl-v10.html
*
* Contributors:
* IBM - Initial API and implementation
******************************************************************************/
import org.eclipse.jdt.debug.eval.IEvaluationResult;
import org.eclipse.jdt.internal.debug.ui.display.IDataDisplay;
import org.eclipse.jdt.internal.debug.ui.snippeteditor.JavaSnippetEditor;
import org.eclipse.ui.IWorkbenchPart;
public class ExecuteAction extends EvaluateAction {
/**
* @see org.eclipse.jdt.internal.debug.ui.actions.EvaluateAction#displayResult(org.eclipse.jdt.debug.eval.IEvaluationResult)
*/
protected void displayResult(IEvaluationResult result) {
}
/**
* @see org.eclipse.jdt.internal.debug.ui.actions.EvaluateAction#run()
*/
protected void run() {
IWorkbenchPart part= getTargetPart();
if (part instanceof JavaSnippetEditor) {
((JavaSnippetEditor)part).evalSelection(JavaSnippetEditor.RESULT_RUN);
return;
}
super.run();
}
/**
* @see org.eclipse.jdt.internal.debug.ui.actions.EvaluateAction#getDataDisplay()
*/
protected IDataDisplay getDataDisplay() {
return super.getDirectDataDisplay();
}
}