Skip to main content
summaryrefslogtreecommitdiffstats
blob: 618b3d352825c04fe46966c27d84b8e4cb3e41e7 (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
43
44
45
46
47
48
49
50
51
52
53
54
55
/*****************************************************************************
 * Copyright (c) 2014 Cedric Dumoulin.
 *
 *    
 * 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:
 *  Cedric Dumoulin  Cedric.dumoulin@lifl.fr - Initial API and implementation
 *
 *****************************************************************************/

package org.eclipse.papyrus.uml.profile.drafter.ui.model;

import org.eclipse.papyrus.uml.profile.drafter.tests.TracesRecorder;


/**
 * @author dumoulin
 *
 */
public class DummySimpleModelVisitor extends SimpleModelVisitor {

	TracesRecorder<String, Object> traces = new TracesRecorder<String, Object>();
	
	public DummySimpleModelVisitor() {
		// TODO Auto-generated constructor stub
	}
	
	@Override
	public void doVisit(StereoptypeModel model) {
		super.doVisit(model);
		traces.records("doVisit", "StereoptypeModel", model);
	}
	
	@Override
	public void doVisit( PropertyModel model) {
		super.doVisit(model);
		traces.records("doVisit", "PropertyModel", model);
	}
	
	@Override
	public void doVisit( ExtendedStereotypeModel model) {
		super.doVisit(model);
		traces.records("doVisit", "ExtendedStereotypeModel", model);
	}
	
	@Override
	public void doVisit( MetaclassModel model) {
		super.doVisit(model);
		traces.records("doVisit", "MetaclassesModel", model);
	}
}

Back to the top