blob: 3d7360975dfa9a01db8ba9d6c86e62727a2dbc6d (
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
36
37
38
39
40
41
42
|
/*******************************************************************************
* Copyright (c) 2008, 2010 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.tests.dsf.vm;
import org.eclipse.cdt.dsf.ui.viewmodel.AbstractVMContext;
import org.eclipse.cdt.tests.dsf.vm.TestModel.TestElement;
/**
*
*/
public class TestElementVMContext extends AbstractVMContext {
final private TestElement fElement;
public TestElementVMContext(TestModelVMNode node, TestElement element) {
super(node);
fElement = element;
}
@Override
public boolean equals(Object obj) {
return obj instanceof TestElementVMContext && ((TestElementVMContext)obj).fElement.equals(fElement);
}
@Override
public int hashCode() {
return fElement.hashCode();
}
public TestElement getElement() {
return fElement;
}
}
|