Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: a8749b93d7b4a533f73d77f0003551a7cf4ac891 (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
/*
 * 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:
 *    Artem Tikhomirov (Borland) - initial API and implementation
 */

IMPORT 'http://www.eclipse.org/gmf/2006/GraphicalDefinition'
IMPORT 'http://www.eclipse.org/emf/2002/Ecore'
EXTENSION Util

DEFINE newInstance(figureVarName : String) FOR gmfgraph::FigureEXPAND fqn figureVarName = EXPAND newInstance;ENDDEFINE
DEFINE newInstance FOR gmfgraph::Figurenew EXPAND fqn()ENDDEFINE

DEFINE newInstance(layoutVarName : String) FOR gmfgraph::LayoutEXPAND fqn layoutVarName = EXPAND newInstance;ENDDEFINE
DEFINE newInstance FOR gmfgraph::Layoutnew EXPAND fqn()ENDDEFINE

DEFINE newInstance(constraintVarName : String) FOR gmfgraph::LayoutDataEXPAND fqn constraintVarName = EXPAND newInstance;ENDDEFINE
DEFINE newInstance FOR gmfgraph::LayoutDatanew EXPAND fqn()ENDDEFINE

DEFINE newInstance(borderVarName : String) FOR gmfgraph::BorderEXPAND fqn borderVarName = EXPAND newInstance;ENDDEFINE
DEFINE newInstance FOR gmfgraph::Bordernew EXPAND fqn()ENDDEFINE


DEFINE fqn FOR gmfgraph::FigureERROR 'Abstract definition fqn(Figure)'ENDDEFINE
DEFINE fqn FOR gmfgraph::LayoutERROR 'Abstract definition fqn(Layout)'ENDDEFINE
DEFINE fqn FOR gmfgraph::LayoutDataERROR 'Abstract definition fqn(LayoutData)'ENDDEFINE
DEFINE fqn FOR gmfgraph::BorderERROR 'Abstract definition fqn(Border)'ENDDEFINE

////////////////////////
DEFINE fqn FOR gmfgraph::CustomLayoutqualifiedClassNameENDDEFINE
DEFINE fqn FOR gmfgraph::CustomBorderqualifiedClassNameENDDEFINE
DEFINE fqn FOR gmfgraph::CustomFigurequalifiedClassNameENDDEFINE

////////////////////////
DEFINE fqn FOR gmfgraph::FlowLayoutIF forceSingleLineorg.eclipse.draw2d.ToolbarLayoutELSEorg.eclipse.draw2d.FlowLayoutENDIFENDDEFINE

DEFINE fqn FOR gmfgraph::XYLayoutorg.eclipse.draw2d.XYLayoutENDDEFINE
DEFINE fqn FOR gmfgraph::XYLayoutDataorg.eclipse.draw2d.geometry.RectangleENDDEFINE

DEFINE fqn FOR gmfgraph::GridLayoutorg.eclipse.draw2d.GridLayoutENDDEFINE
DEFINE fqn FOR gmfgraph::GridLayoutDataorg.eclipse.draw2d.GridDataENDDEFINE

DEFINE fqn FOR gmfgraph::StackLayoutorg.eclipse.draw2d.StackLayoutENDDEFINE
DEFINE fqn FOR gmfgraph::BorderLayoutorg.eclipse.draw2d.BorderLayoutENDDEFINE

////////////////////////
DEFINE fqn FOR gmfgraph::FigureRefEXPAND fqn FOR figureENDDEFINE
DEFINE fqn FOR gmfgraph::LabelIF isFullRuntime()org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabelELSEorg.eclipse.draw2d.LabelENDIFENDDEFINE
DEFINE fqn FOR gmfgraph::LabeledContainerorg.eclipse.draw2d.LabeledContainerENDDEFINE
DEFINE fqn FOR gmfgraph::Rectangleorg.eclipse.draw2d.RectangleFigureENDDEFINE
DEFINE fqn FOR gmfgraph::RoundedRectangleorg.eclipse.draw2d.RoundedRectangleENDDEFINE
DEFINE fqn FOR gmfgraph::Ellipseorg.eclipse.draw2d.EllipseENDDEFINE
DEFINE fqn FOR gmfgraph::Polygonorg.eclipse.draw2d.PolygonENDDEFINE
REMFIXMEENDREMDEFINE fqn FOR gmfgraph::ScalablePolygonorg.eclipse.draw2d.ShapeENDDEFINE
DEFINE fqn FOR gmfgraph::PolygonDecorationorg.eclipse.draw2d.PolygonDecorationENDDEFINE
DEFINE fqn FOR gmfgraph::Polylineorg.eclipse.draw2d.PolylineENDDEFINE
DEFINE fqn FOR gmfgraph::PolylineDecorationorg.eclipse.draw2d.PolylineDecorationENDDEFINE
DEFINE fqn FOR gmfgraph::PolylineConnectionIF isFullRuntime()org.eclipse.gmf.runtime.draw2d.ui.figures.PolylineConnectionExELSEorg.eclipse.draw2d.PolylineConnectionENDIFENDDEFINE
DEFINE fqn FOR gmfgraph::SVGFigureorg.eclipse.gmf.runtime.lite.svg.SVGFigureENDDEFINE

REM
to utilize around, need to fix XpandExecutionContextImpl to get aspects not only from relative aspects/ path, but from
template file as well.
// Full GMF Runtime
////////////////////////
AROUND fqn FOR PolylineConnectionIF isFullRuntime()org.eclipse.gmf.runtime.draw2d.ui.figures.PolylineConnectionExELSEtargetDef.proceed()ENDIFENDAROUND
AROUND fqn FOR LabelIF isFullRuntime()org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabelELSEtargetDef.proceed()ENDIFENDAROUND
ENDREM

Back to the top