Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 9977d6079112d9a352e0775ccd6fe373c1166737 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*******************************************************************************
 * Copyright (c) 2006, 2009 Wind River Systems and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 * 
 * Contributors:
 *     Wind River Systems - initial API and implementation
 *******************************************************************************/
package org.eclipse.cdt.dsf.datamodel;

import org.eclipse.cdt.dsf.concurrent.Immutable;

/**
 * Base implementation of the IDMEvent interface. Sub-classes should contain
 * specific information about the event, while this base class only identifies
 * the DM Context that is affected.
 * 
 * @since 1.0
 */
@Immutable
abstract public class AbstractDMEvent<V extends IDMContext> implements IDMEvent<V> {

    private final V fModelContext;
    public AbstractDMEvent(V context) {
        fModelContext = context;
    }
    
    @Override
    public V getDMContext() {
        return fModelContext;
    }

}

Back to the top