Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 83c9a5a8510f3b0ca977211e942d35f271a9161c (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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
/*
 * Copyright (c) 2007 Borland Software Corp.
 * 
 * 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/emf/2002/Ecore";
import "http://www.eclipse.org/emf/2002/GenModel";
import "http://www.eclipse.org/gmf/2005/GenModel/2.0";

boolean isReadOnly(gmfgen::GenCommonBase gcb) :
	true
;

boolean isReadOnly(gmfgen::GenChildLabelNode node) :
	node.labelReadOnly
;

boolean isReadOnly(gmfgen::GenLabel label) :
	label.readOnly
;

boolean isElementIcon(gmfgen::GenCommonBase gcb) :
	false
;

boolean isElementIcon(gmfgen::GenChildLabelNode node) :
	node.labelElementIcon
;

boolean isElementIcon(gmfgen::GenLabel label) :
	label.elementIcon
;

gmfgen::LabelModelFacet getLabelModelFacet(gmfgen::GenCommonBase gcb) :
	null
;

gmfgen::LabelModelFacet getLabelModelFacet(gmfgen::GenLabel label) :
	label.modelFacet
;

gmfgen::LabelModelFacet getLabelModelFacet(gmfgen::GenChildLabelNode node) :
	node.labelModelFacet
;

String getFigureQualifiedClassName(gmfgen::Viewmap viewmap) :
	"org.eclipse.draw2d.IFigure"
;

String getFigureQualifiedClassName(gmfgen::FigureViewmap viewmap) :
	viewmap.figureQualifiedClassName == null ? "org.eclipse.draw2d.Label" : viewmap.figureQualifiedClassName
;

String getFigureQualifiedClassName(gmfgen::ParentAssignedViewmap viewmap) :
	viewmap.figureQualifiedClassName == null ? "org.eclipse.draw2d.Label" : viewmap.figureQualifiedClassName
;

String getFigureQualifiedClassName(gmfgen::InnerClassViewmap viewmap) :
	viewmap.className
;

String getLabelHostQualifiedClassName(gmfgen::GenLabel label) :
	null
;

String getLabelHostQualifiedClassName(gmfgen::GenNodeLabel label) :
	label.node.getEditPartQualifiedClassName()
;

String getLabelHostQualifiedClassName(gmfgen::GenLinkLabel label) :
	label.link.getEditPartQualifiedClassName()
;

Back to the top