blob: 302721218eef07135c8f81b80ae50e074e1e122a [file] [log] [blame]
package org.eclipse.debug.internal.ui.actions;
/*
* (c) Copyright IBM Corp. 2000, 2001.
* All Rights Reserved.
*/
import org.eclipse.debug.core.model.IDebugElement;
import org.eclipse.debug.ui.IDebugView;
import org.eclipse.jface.viewers.TreeViewer;
/**
* Used to copy the values of variables to the clipboard from
* the Variables and Expression views.
*/
public class CopyVariablesToClipboardActionDelegate extends CopyToClipboardActionDelegate {
/**
* Only append children that are visible in the tree viewer
*/
protected boolean shouldAppendChildren(Object e) {
return((TreeViewer)getViewer()).getExpandedState(e);
}
/**
* @see AbstractDebugActionDelegate#isEnabledFor(Object)
*/
protected boolean isEnabledFor(Object element) {
return element instanceof IDebugElement;
}
protected String getActionId() {
return IDebugView.COPY_ACTION + ".Variables"; //$NON-NLS-1$
}
}