summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorghillairet2012-05-18 13:06:26 (EDT)
committer mgolubev2012-05-18 13:06:26 (EDT)
commit5910323017b5e8c655a878774f986eee305ffcb9 (patch)
tree834f1459c28aa3c102415a5df8b58d6aad907452
parent5550cff90b07ebebca9577d24572b73b28d317d8 (diff)
downloadorg.eclipse.gmf-tooling-5910323017b5e8c655a878774f986eee305ffcb9.zip
org.eclipse.gmf-tooling-5910323017b5e8c655a878774f986eee305ffcb9.tar.gz
org.eclipse.gmf-tooling-5910323017b5e8c655a878774f986eee305ffcb9.tar.bz2
Removed unused imports.
Removed call to Viewmap, now done in Mappings Removed call Identity, now done in Mappings Removed call to Behaviour, now done in Mappings
-rw-r--r--plugins/org.eclipse.gmf.bridge/transforms/Map2Gen.qvto21
1 files changed, 5 insertions, 16 deletions
diff --git a/plugins/org.eclipse.gmf.bridge/transforms/Map2Gen.qvto b/plugins/org.eclipse.gmf.bridge/transforms/Map2Gen.qvto
index 148ff49..c822f8d 100644
--- a/plugins/org.eclipse.gmf.bridge/transforms/Map2Gen.qvto
+++ b/plugins/org.eclipse.gmf.bridge/transforms/Map2Gen.qvto
@@ -10,7 +10,7 @@
* Artem Tikhomirov (Borland) - initial API and implementation
* Guillaume Hillairet (Montages A.G.)
*/
-import Map2GenUtil;
+import Utils;
import Mappings;
import DiagramRunTimeModel;
import PropertySheet;
@@ -18,13 +18,8 @@ import PreferencePages;
import Navigator;
import Actions;
import RichClientPlatformApp;
-import Viewmaps;
-import ModeledViewmaps;
-import Identity;
import Audits;
import Parsers;
-import CustomBehaviours;
-import gmf.GenModelAccess;
modeltype GMFMAP uses mappings('http://www.eclipse.org/gmf/2006/mappings');
modeltype GMFGEN uses gmfgen('http://www.eclipse.org/gmf/2009/GenModel');
@@ -44,8 +39,9 @@ configuration property useInTransformationCodeGen: Boolean;
main() {
var mapRoot := mapModel.rootObjects()![GMFMAP::Mapping];
genModel := domainGenModel.rootObjects()![GENMODEL::GenModel];
- -- childReferences := mapRoot.getChildReferences();
+
Viewmaps::setMapMode(useMapMode);
+ useModeledViewmaps := not useInTransformationCodeGen;
var genEditor := mapRoot.map structure();
genEditor.diagram.palette := mapRoot.diagram.map palette();
@@ -53,15 +49,8 @@ main() {
genEditor.plugin := mapRoot.map editorPlugin();
genEditor.editor := object GenEditorView {};
- mapRoot.visualIdentity(); -- generate visual IDs for each node.
- mapRoot.customBehaviours();
-
- if useInTransformationCodeGen then
- Viewmaps::viewmaps(mapRoot, genEditor.diagram) -- adds viewmaps to each nodes.
- else
- ModeledViewmaps::viewmaps(mapRoot, genEditor.diagram) -- adds modeledViewmaps to each nodes.
- endif;
-
+-- mapRoot.customBehaviours();
+
genEditor.diagramUpdater := object GenDiagramUpdater {};
genEditor.audits := mapRoot.audits.map audits(); -- these two should go before expression providers collection
genEditor.metrics := mapRoot.metrics.map metrics();