Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: d16de81132cc547f44ef58b55973c1e7a9cf5e2e (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
/*
 * Copyright (c) 2007 Borland Software Corporation
 * 
 * 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:
 *    bblajer (Borland) - initial API and implementation
 */

«IMPORT "http://www.eclipse.org/gmf/2006/GenModel"»
«IMPORT "http://www.eclipse.org/emf/2002/Ecore"»
«IMPORT "http://www.eclipse.org/emf/2002/GenModel"»

«DEFINE decorationManager FOR gmfgen::GenCommonBase-»
«EXPAND xpt::Common::generatedMemberComment»
private org.eclipse.gmf.runtime.lite.edit.parts.decorations.IDecorationManager myDecorationManager;

«EXPAND xpt::Common::generatedMemberComment»
public org.eclipse.gmf.runtime.lite.edit.parts.decorations.IDecorationManager getDecorationManager() {
	return myDecorationManager;
}
«ENDDEFINE»

«DEFINE createDecorationManager FOR gmfgen::GenCommonBase»«ERROR "Unexpected type"»«ENDDEFINE»

«DEFINE createDecorationManager FOR gmfgen::GenNode-»
«EXPAND xpt::Common::generatedMemberComment»
protected org.eclipse.gmf.runtime.lite.edit.parts.decorations.IDecorationManager createDecorationManager(org.eclipse.draw2d.IFigure decorationShape) {
	return new org.eclipse.gmf.runtime.lite.edit.parts.decorations.PaneDecorationManager(decorationShape);
}
«ENDDEFINE»

«DEFINE createDecorationManager FOR gmfgen::GenLink-»
«EXPAND xpt::Common::generatedMemberComment»
protected org.eclipse.gmf.runtime.lite.edit.parts.decorations.IDecorationManager createDecorationManager(org.eclipse.draw2d.Connection connection) {
	return new org.eclipse.gmf.runtime.lite.edit.parts.decorations.ConnectionDecorationManager(connection);
}
«ENDDEFINE»

Back to the top