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.ui.viewmodel.update;
14
* An update policy decorator which can override behaviour of an underlying update policy.
18
public abstract class UpdatePolicyDecorator implements IVMUpdatePolicy {
20
private final IVMUpdatePolicy fBasePolicy;
22
protected UpdatePolicyDecorator(IVMUpdatePolicy base) {
26
protected final IVMUpdatePolicy getBaseUpdatePolicy() {
30
public final String getID() {
31
return fBasePolicy.getID();
34
public String getName() {
35
return fBasePolicy.getName();
38
public IElementUpdateTester getElementUpdateTester(Object event) {
39
return fBasePolicy.getElementUpdateTester(event);