1
/*******************************************************************************
2
* Copyright (c) 2008 Wind River Systems and others.
3
* All rights reserved. This program and the accompanying materials
4
* are made available under the terms of the Eclipse Public License v1.0
5
* which accompanies this distribution, and is available at
6
* http://www.eclipse.org/legal/epl-v10.html
9
* Wind River Systems - initial API and implementation
10
*******************************************************************************/
11
package org.eclipse.cdt.dsf.debug.internal.ui.viewmodel.actions;
13
import org.eclipse.cdt.dsf.debug.ui.viewmodel.actions.IRefreshAllTarget;
14
import org.eclipse.core.runtime.CoreException;
15
import org.eclipse.jface.viewers.ISelection;
20
public class RefreshAllRetargetAction extends RetargetDebugContextAction {
23
protected boolean canPerformAction(Object target, ISelection selection) {
28
protected Class<?> getAdapterClass() {
29
return IRefreshAllTarget.class;
33
protected void performAction(Object target, ISelection debugContext) throws CoreException {
34
((IRefreshAllTarget)target).refresh(debugContext);