public CopyTunnelInformation(String actionName, ImageDescriptor actionImage) {
super(actionName, actionImage);
}
public void run() {
Clipboard clipBoard = new Clipboard(shell.getDisplay());
CaldecottTunnelDescriptor descriptor = getSelectedTunnelDescriptor();
if (descriptor != null) {
String value = getTunnelInformation(descriptor);
clipBoard.setContents(new Object[] { value }, new TextTransfer[] { TextTransfer.getInstance() });
}
}