The Eclipse Foundation makes available all content in this plug-in ("Content"). Unless otherwise
-indicated below, the Content is provided to you under the terms and conditions of the
-Eclipse Public License Version 1.0 ("EPL"). A copy of the EPL is available
-at http://www.eclipse.org/legal/epl-v10.html.
-For purposes of the EPL, "Program" will mean the Content.
-
-
If you did not receive this Content directly from the Eclipse Foundation, the Content is
-being redistributed by another party ("Redistributor") and different terms and conditions may
-apply to your use of any object code in the Content. Check the Redistributor's license that was
-provided with the Content. If no such license exists, contact the Redistributor. Unless otherwise
-indicated below, the terms and conditions of the EPL still apply to any source code in the Content
-and such source code may be obtained at http://www.eclipse.org.
-
-
-
\ No newline at end of file
diff --git a/doc/org.eclipse.emf.eef.doc/build-help.xml b/doc/org.eclipse.emf.eef.doc/build-help.xml
deleted file mode 100644
index 93a002ec8..000000000
--- a/doc/org.eclipse.emf.eef.doc/build-help.xml
+++ /dev/null
@@ -1,54 +0,0 @@
-
-
-
-
- Generate Eclipse help content
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- = Updating This Document =
-
- This document is maintained in a collaborative wiki. If you wish to
- update or modify this document please visit
- {url}
-
-
-
-
-
-
-
-
diff --git a/doc/org.eclipse.emf.eef.doc/build.properties b/doc/org.eclipse.emf.eef.doc/build.properties
deleted file mode 100644
index 8afc88729..000000000
--- a/doc/org.eclipse.emf.eef.doc/build.properties
+++ /dev/null
@@ -1,21 +0,0 @@
-###############################################################################
-# Copyright (c) 2008, 2012 Obeo.
-# 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:
-# Obeo - initial API and implementation
-###############################################################################
-source.. = src/
-bin.includes = META-INF/,\
- .,\
- plugin.xml,\
- html/,\
- pics/,\
- about.html
-output.. = bin/
-src.includes = pics/,\
- html/,\
- about.html
diff --git a/doc/org.eclipse.emf.eef.doc/html/tutorial-toc.xml b/doc/org.eclipse.emf.eef.doc/html/tutorial-toc.xml
deleted file mode 100644
index b979a04fd..000000000
--- a/doc/org.eclipse.emf.eef.doc/html/tutorial-toc.xml
+++ /dev/null
@@ -1,27 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/doc/org.eclipse.emf.eef.doc/html/tutorial.html b/doc/org.eclipse.emf.eef.doc/html/tutorial.html
deleted file mode 100644
index 87ef8bd2d..000000000
--- a/doc/org.eclipse.emf.eef.doc/html/tutorial.html
+++ /dev/null
@@ -1,119 +0,0 @@
-
First generation
This first tutorial will show you the common use of EEF. It describes the steps to obtain the EEF models and generate the associated code. Finally, it shows how to link the generated code with a simple EMF treeview editor.
Environment
To do this tutorial, you need to have an "EEF ready" environment. To obtain this environment, read the EEF Installation Guide.
EEF Models initialization
In the EEF environment, the first step is to initialize the EEF models. These models describe the visual elements of the generated editing components and the binding between these elements and the meta-classes of your meta-model. EEF provides an action to create these models. To call this action, perform a right click on the .genmodel file generated from your metamodel and select the action EEF > Initialize EEF models.
Generation and parameterization
The initializer has just created elements for meta-class attributes choosing predefined default widgets. So you need to parameterize the EEF models to model correctly the generation. For example, references representations, widgets changes...
By default, the generation is done in the plug-in project where the example model is. The parameterization model assigns a "src-gen" directory to know where the code is going to be generated. This information can be modified.
When parameterization is done, generation can be called with the action "Generate EEF Architecture", just right click on the EEFGen model.
The generation creates an architecture displaying properties views corresponding to the parametrized models. What is generated is :
Components for the control part
Parts for views
Providers for the structure instantiation
Global providers are also generated. They defined the structure instantiation and the elements edition strategies. Two providers have to be declared in the plugin.xml file with the extension points defined by the EEF runtime (explained in the next part : EEF generation with EMF treeview editor).
EEF Generation in EMF treeview editor
Add dependency on EEF runtime
In order to compile the generated code, the plug-in with the generated code must have a dependency on the EEF runtime : "org.eclipse.emf.eef.runtime". The treeview editor also have to depend on it.
Extension points declaration
For the generation, EEF creates two generic providers which have to be configured with extension points in the project where the code is generated. The extension point declares a "PropertiesEditionProviders" and a "PropertieEditionPolicyProviders".
Extension points to declare properties views in the editor project have also to be added. They are generated in the file "src-gen/properties.plugin.xml". For example :
The standard EMF codegen generates an editor that uses standard properties views (with grid layout). So, you need to update it to use the EEF properties view (with tabs).
You might create a dependency between the EEF runtime ('org.eclipse.emf.eef.runtime') and the EMF generated editor plugin.
Open the XYZEditor.java located in the EMF generated xxx.editor plugin.
The editor must implement an additional interface : "org.eclipse.ui.views.properties.tabbed.ITabbedPropertySheetPageContributor"
With this interface, you have to implement the methods "getContributorId()"
The identifier returned by this method is a constant which is added to the editor. It is generated by EEF with the following pattern : "<basepackage>.<packagename>.properties".
For example, for our example demo :
public static final String PROPERTIES_CONTRIBUTOR = "org.eclipse.emf.eef.nonreg.properties";
-
Then, you need to replace the declaration of the Eclipse standard properties view by a tabbed properties view.
public IPropertySheetPage getPropertySheetPage() {
- if (propertySheetPage == null || propertySheetPage.getControl().isDisposed()) {
- propertySheetPage = new TabbedPropertiesEditionSheetPage(XXXEditor.this);
- }
- return propertySheetPage;
- }
-
Finally, it is possible to add properties edition wizard on double click on a tree element. You just have to call the following listener in the method "createPages()" in the editor (on the selectionViewer) :
\ No newline at end of file
diff --git a/doc/org.eclipse.emf.eef.doc/html/tutorial.mediawiki b/doc/org.eclipse.emf.eef.doc/html/tutorial.mediawiki
deleted file mode 100644
index 3d64f7508..000000000
--- a/doc/org.eclipse.emf.eef.doc/html/tutorial.mediawiki
+++ /dev/null
@@ -1,209 +0,0 @@
-= First generation =
-This first tutorial will show you the common use of EEF. It describes the steps to obtain the EEF models and generate the associated code. Finally, it shows how to link the generated code with a simple EMF treeview editor.
-
-== Environment ==
-To do this tutorial, you need to have an "EEF ready" environment. To obtain this environment, read the [[EEF Installation Guide]].
-
-== EEF Models initialization ==
-In the EEF environment, the first step is to initialize the EEF models. These models describe the visual elements of the generated editing components and the binding between these elements and the meta-classes of your meta-model. EEF provides an action to create these models. To call this action, perform a right click on the .genmodel file generated from your metamodel and select the action ''EEF > Initialize EEF models''.
-
-[[Image:../pics/initializeEEFmodels.png|center]]
-
-== Generation and parameterization ==
-The initializer has just created elements for meta-class attributes choosing predefined default widgets. So you need to parameterize the EEF models to model correctly the generation. For example, references representations, widgets changes...
-
-By default, the generation is done in the plug-in project where the example model is. The parameterization model assigns a "src-gen" directory to know where the code is going to be generated. This information can be modified.
-
-When parameterization is done, generation can be called with the action "Generate EEF Architecture", just right click on the EEFGen model.
-
-[[Image:../pics/generateEEFArchitecture.png|center]]
-
-The generation creates an architecture displaying properties views corresponding to the parametrized models. What is generated is :
-* Components for the control part
-* Parts for views
-* Providers for the structure instantiation
-
-Global providers are also generated. They defined the structure instantiation and the elements edition strategies. Two providers have to be declared in the plugin.xml file with the extension points defined by the EEF runtime (explained in the next part : [[#EEF generation with EMF treeview editor]]).
-
-
-== EEF Generation in EMF treeview editor ==
-
-=== Add dependency on EEF runtime ===
-In order to compile the generated code, the plug-in with the generated code must have a dependency on the EEF runtime : "org.eclipse.emf.eef.runtime". The treeview editor also have to depend on it.
-
-=== Extension points declaration ===
-For the generation, EEF creates two generic providers which have to be configured with extension points in the project where the code is generated. The extension point declares a "PropertiesEditionProviders" and a "PropertieEditionPolicyProviders".
-
-Here is an example for the demo project :
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Extension points to declare properties views in the editor project have also to be added. They are generated in the file "src-gen/properties.plugin.xml". For example :
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-=== EMF treeview editor modification ===
-The standard EMF codegen generates an editor that uses standard properties views (with grid layout). So, you need to update it to use the EEF properties view (with tabs).
-
-You might create a dependency between the EEF runtime ('org.eclipse.emf.eef.runtime') and the EMF generated editor plugin.
-
-Open the XYZEditor.java located in the EMF generated xxx.editor plugin.
-
-*The editor must implement an additional interface : ''"org.eclipse.ui.views.properties.tabbed.ITabbedPropertySheetPageContributor"''
-
-*With this interface, you have to implement the methods ''"getContributorId()"''
-
-
- /** (non-Javadoc)
- * @see org.eclipse.ui.views.properties.tabbed.ITabbedPropertySheetPageContributor#getContributorId()
- * @generated NOT
- */
- public String getContributorId() {
- return PROPERTIES_CONTRIBUTOR;
- }
-
-
-*The identifier returned by this method is a constant which is added to the editor. It is generated by EEF with the following pattern : ''"..properties"''.
-For example, for our example demo :
-
-
- public static final String PROPERTIES_CONTRIBUTOR = "org.eclipse.emf.eef.nonreg.properties";
-
-
-*Then, you need to replace the declaration of the Eclipse standard properties view by a tabbed properties view.
-The original code :
-
-
- protected PropertySheetPage propertySheetPage;
-
-
-becomes
-
-
- protected TabbedPropertySheetPage propertySheetPage;
-
-
-*Replace also its instantiation, done in the method ''"getPropertySheetPage()"'' :
-
-The original code :
-
- public IPropertySheetPage getPropertySheetPage() {
- if (propertySheetPage == null) {
- propertySheetPage = new ExtendedPropertySheetPage(editingDomain) {
- @Override
- public void setSelectionToViewer(List> selection) {
- NonregEditor.this.setSelectionToViewer(selection);
- NonregEditor.this.setFocus();
- }
- @Override
- public void setActionBars(IActionBars actionBars) {
- super.setActionBars(actionBars);
- getActionBarContributor().shareGlobalActions(this, actionBars);
- }
- };
- propertySheetPage.setPropertySourceProvider(new AdapterFactoryContentProvider(adapterFactory));
- }
- return propertySheetPage;
- }
-
-
-becomes
-
-
- public IPropertySheetPage getPropertySheetPage() {
- if (propertySheetPage == null || propertySheetPage.getControl().isDisposed()) {
- propertySheetPage = new TabbedPropertiesEditionSheetPage(XXXEditor.this);
- }
- return propertySheetPage;
- }
-
-
-*Finally, it is possible to add properties edition wizard on double click on a tree element. You just have to call the following listener in the method ''"createPages()"'' in the editor (on the selectionViewer) :
-
-
- selectionViewer.addDoubleClickListener(new OpenWizardOnDoubleClick(editingDomain));
-
diff --git a/doc/org.eclipse.emf.eef.doc/pics/generateEEFArchitecture.png b/doc/org.eclipse.emf.eef.doc/pics/generateEEFArchitecture.png
deleted file mode 100644
index 572540b6478072fb1f03384d99f686dc48c76d1c..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001
literal 10067
zcmaL7Wl&tp7w!!Mfx!od!QI{62A3cqSa2raqNa6pS&^#k!RqsZ4Cs{>F_+BIpalsU+avNF8e2Bo_cogpyy?7|j5;>hea*TVBA>3<
zP*x^|1wxDGk-|3HY9kr{5!D>W(PT7Bn=ngLpvFU%I{d?b=)`Z)q;0_oF8f3em_b43
z{d-0b@M*f4bnVT6q%FwP=b3w|wJp5bg~wlpSlkcvuR~6B(gH?BPCDlQEG-g#VKZkD
zNwDPq)aM7HRfG+rmB&6V~9YM6dK~Q9y`@kd)6|3_bGdqet~PACHTH$!e!&
zB36WL%r^+jN0(TcSs?~VK3V7UHFsn}PQ38&@Vz7$xfDcX@s+dZT1DIiD>#U6C36477_Mkq>@NsR@*-|iB6?1l4*bDX$_e_BxBTk#PDcF
zHUfVa2{+_?OIgqE&K)sE*@{Z2?`5k0K`IfE@1z5kMo2SNO)Hda1X-lEbb4E
z95U?9agUQYu^czJp4`Lbt9P|7`S7WY$6fk-Y-fAZazZfs`%-+>bBnaZZ%(>`WDmE~
zsltGsPN|k(5b*tL-fGxBZ?g-}HkF=2_;PsK9OjbyY0AC9f+-|uC~tnax-6bNT5Pax
zBTi*0^;tkFCt+EZ_jbh1$+oxVsj%mz@M?NXr=T4R=nnuXSIoOTRZ&?iG$O=P
z&0~n?fnY~tX{+9hbez83`tm|O0yxqFL=I4gGI2>HmU=LGoiEjH!*zo4Z%{=Gut=%E
zU(t95PTyVv9ZOLS`!-G5Mal%E&JhQ1ZDWCpogT-CDV-QGYWS++bVGH*KRG@>`v6MO
zf_FxOsPH;BNnxq(_HEjET`^st*EYNEa
z&3f766o9d=)2ZWbrjT;F^Y0jcMRu6agkT
zn;u%HO4ESW&(cwPtQh;b+@$>Kqphv@C5(j8PXNI@o(0h-vcg}zYaq=1XmRtmwXf04
z7k&8d$iJ|H>~98m6`S}CZlB{>&*HXkPh)C{a*e($!j)P55Oc*;akN56%Bd~l&&E)1
zO1dA6uY2A`S?47$M)+7dK5v6NOm!%#v}cVGGvha#n2{T)yuz9f9%@WZ;5$O`?YDld
zfi&~hWDY8Y_ec;V`awGH8LoSdxXe;c>BR3^R%eb#S4FE1vH+aB+2@@8P$i=JOX
zPlgg$EaTrPsZ_D@0x7FQ>+U;eg$u-R{RSI^*NfM>CS+^sLvv^g-+)y0mZQ{OG7M}z
z1lm_hkhZJFK*_(*;dzR8;?cCbRo6y~4K?Za<_YpAJ`d}xxgEC3g^Ieka5tnV__ws6
zar-poym)BvBg+_w=h4EBPTg7|4pJzx>|~zd8ZgkNX3$@9=}RbhRa+(bP{A#ZJ8vb9
z1xk*jy>&7{5A8UfCE#Dt*!|u{vL!Y@CS!E7M7f;`Hr!y_H*g}uu@6ltXd37VDgSiW
zC=9&)7NXUaZAPtPgOePCL;$f>r|DU;Abs2v2(o=a$0cx)e4$4HfxYl`c)UX{xV*2N
zC<%UT}}g`ydet?7sUPGE`~~HHFnGn)hw(#109-jdPbKG
z!xRkcsR{e7?p)>m`djqwjMw#Kd=HsE{qQjnY-#UHZoNS4Y(?)@)JQty{nIffN{DiW@
zU(c(9GMFlii7wngBp>}jUO*v}AR_JPH|R@^@c9uRw&%$oi5>B?JSooHM&dC6qJj1y
zojkn`11CbFm=oQQJazwzBhW8Tptv&pZyooBIwdYI?aKA$U3>)2HKkYxPs4G0Oz>p33qKY0!k-4lBk|NP2u
zAj8K!8d-$@=|3tUIhIyvx&Or&4F{gUBjjHU@B@Jk#?=0Y5dV_I0T863I`MxEi0_^f
z%HjX@3q>Xhk#+u$INp&0A5f%{g3RObA5!EckcvXIWDzs^DgR>*d;lbgsxNx|Kcpz5
ze0TmiA%L3gf4}t393g(57*zUGP4*x3IoF6xXtlD7TK>l)c66|7iL|Y6h$gyR
z__fUc!VO>bcwcw`ljtNa8E$Nd#my3=GF<6xSj-+LC|#wa>(@7kBcV5v{GiItlI<|hisGK@@S$5nK!lB2*NzJP#ge+mK7#hqJgZqF$8GFXW%(koTCB?GGUVcc9
zaOBcXTW#6Vl$*B$Y&D{Z#ehCiZcpRkQ|;*iUKU?F_{H{2JSusEK}s0Qcn`{RNXZ(WQHL(rCtb0@OdQbguh*hoD&AZ6lo+WT9Cl_ma9_}f
zV(#)?R+E5hfl)i%RPw-Iiz{a-Q-9^}mHTVE^Jg%gIHPm3$vb$K%nO`^uvQDEXw~yyGa7WyZcQ!?A@9?g@s`zudm}&4&EP;m|O{Lu%FLSy?L>%}!_OWm(akj2w0uT0)yAMX+
zCloip=>h4Cy3Its`|2L~_6}!+o#GX?TE}Z^!d-HN@_T6QW--^VkEnf}dSqosmVW#`
z6doII`fPetXaL4VkT+HKz@BKzsb2nrooaSeG+Y7NAgR~MhcDJk@P8^eMJ+B(y*iFK
zAXaHDU*82nd3{i~uDD;~ZqcIN&~(`$K$e|`rbYF-D;eH*V>#a_Ih_P+
z4b9*ByYQt)_n01P%mKF8b?s)V<}NPG34Uc3QOIx*XA#x^Rcj-cFwP;kuO(oq23$c!tD=FI@Y?jq%T&QM
zORI>USQAp~W4Y7TxQJVVp<2r=jOU(<2G72T(NN=P*8d;9_QxE+wn8dDsUf4Dl>4HE
z-pR@{Vr+f-p?^TvNiKn%%t0mlWr9F9-#!Vf;FFV_EE$?<9G5+Tph_ug>aG!V?Rq+Q
z^*pwiL?k-I&vK~7{AZ#f9l`0gBaO?Pfl+7C_(6J>?e7&%n4u$PH1t~!2j)Q@c8iWf
zeIsY@Y_w0`kC+?uOdBb?TuWf?GAeNlKx@TtWlcFMdmW|6SQBmdgji6pkp!&snv%nr
z|7VUXO~jmB?{P}CzYk4FPsbmd+UI>Tl&C5E87mI0bn{;=Pw|O4uWDb0sQ)YG27R^b
zuXY6_F#9QPHgO-OZh?bF*c{R~56R5xtV#H;5K>lFD1x+Bb$miD8Ph^C9(s4Mi~w6%
zI?f2%be06TSYQFqtTM4t=CxvumS{>>+atIsa9LPW7u)f~0%7am`fnaTUaQE#bDhlX
zG0$AF=~yD4uuxGSeboL=W)3#ZYLc3G_dI$W0h}}kgGlVs^#^427en@pe^B5b4glvb
z9{q;`(^mP0IgOB{YP}h%G5ynp;ND2KbpQL0hlO`Ccjqe^2kj?9R
z-P?s=+3~~>AtNWEKLcoqCT&?3>OC_uwLTPliYt_=GVG_tpss0q<`Kw5$)FpqH^L~U
z$t?0c?WvbYRV9a|M+ely7ar#Iph^W~QF6SGE0kiX3E2c5%56MU*Yn{S%Y4)5VyQlb
znp5I*z26PJMW$hp^!Sl1%Gn@wt$xP^d)1t_f?K)7@{H)x$o?`Z913ZrxGYw8Z=6@N
z1{#xkC!OdSY^3mO2=E6xU~-W1LqU>kLc9SrPaB(Kg&^FBIig*{?qU3TcJnif6jZx(5AV0_VMJT>z_Df7Px
zxd)k_S`bS#Q7(WHdK=hkh3%OZs%t@_R8peU3h|VZjto3aQs>Jd<-+QC?AAvN1R`lT
zJtfN1RuRdS^>a2fK*H{rpqrtyUika@5l6jg@iqI*$fSOfl!O^H$jmiPrU;$(Ky+o_|fUhciiX$PRYPb
zGY8RSVK<2@cOv+&iglkS^$F>uk8n{4p@iec?uhTw)HZtc5Mwu?w*=A)omc^PP0Y!u
zUiH5i36?Hs8I=E49X1N#oTrm#;IB5duQ$o5*;Wqf8x`b1^+Dcfp6dQmm`|&(bgu1F
zP0hL&`i{GD=+Nt=m+BfzJh^>@ZfTf83iAYcQVleATf?}b>eFLcD`BerSq1ctu=j3-
z(p6G`DP1!!bB|jIGBkLfRZD$N3Dz!l78@I%JyfeTcc$3UG?y1jh502`CUlc@Tv95T
z_v{oP;4HajgC3*U>#$pTmfKVksX1{GwDDmRj(s3vXTye;37HGTjN9dkxJ9pUn_wjr~rQVd6p#tilM2y{R)8nkR7R;6r!
zS$c)K1AMNa{|fMLImt-Zmj4~W)u{j9UqfRZ5Qb{by8*5x0KurP)b5e$Lx=Mr1ub*)
zEg{*aFmSj;qitE8yN~}$Eswj`dsLSb^HS^2ObzBVEcr_Y`jJBmm8!5t8cW}BDDm#M
z{-hu+A4qyTE?Urd_te8^F?Mr5qj4rl>Tc()4b>TT>*AvP%-T0trQEh4wi=d!kXZA+
zQpD9fr5Wnvt^)j&n*DNMFvxVUScXx*9f!pB4Zbu%Yp3E0(&zHmsDCNn?T?s9ny&o-
z@j8z4J&WG*)Jk?jGZA*HP$JI(&gh10)y-+tZ#FOb4{f=h5H;x%X;Dt)wNlaDSVyTZJIHj5#$JmL6KyLPQ$jPTI;Pg0KQEb5U=@o4KjFb1
zKg^5z*`nMM@}i6QwBo4?E}PXnKe-ALQqku{*Jf{oyn6S>30p8ONR5k~{G>La8rnI`
zeFEJLc${{)l6(BzZFc+ebw7GAyOD_MTMh4z;3iksgwpNL1FP|GE;&p}kHtj#_A^e`
z$Sgkg>~(IJk9qg%m9fknr$rh^m8Dwri>Fpyyvzv~KW3jy>5z)|+K~}(QwJm`?l2#n
zMk*}k8-x3gvuG=nxe)=~aG>KK@e`DuAs6&lz0
z+#lX(OwUSqu)JV&x*L-p&tE_%+uCx1|6t!yIfxtlZB1v{byv{gCt=FGd=lE6Hswws
z?xac^2r`fG=$f`r$P&RMi(Yzq#k~6FfMb)r5;zhV(%rkQ_8<(q;X|^$DsMeNM%JNq
z&-Va)47v1telRL>gC|!z&Ff(C3yMuxfAmNu?qJ?a;k!7046~$2OTQk
zF!5&ZHy6Da2wj5M6(t%9d~)}tEB_RmDDPH<LvNWG?9hxuFZyd7SXF_S%-CB?kJbvwGed~|?=|%Z
z*)C-Ua*;~6s6w8sLOhT2c~~h;MPf>@;2mYTrxJ|RMOTgkwjD!?uQNCvY+BlXP*(u6
zC?7;D(VhG`sRSgTBMSr|%HoR6hl`rr32#yx)E$Jxd)O}M1ci(v-bcEroEKQpKp`<;
z5*lFCHs|fkjdy=kmLT34)Bd~J?bUu@+{{a+@1{SsBb5m3(dyi5r25A9tL==}!}B3s
z%4fFwKhSP(;kkB{OXxpM!c?ly4%}>Hj}x&IJ!R&FB=?xcVe$y`>NG$IbFyKAa0a@j}m1_a5wS7WsJf0
zD4KvBh``Np{MU{6rUXsY(YP9aflg)rG8=l7d}(GG&s5F&)j1}SZS<2F0_~CaUGg+N_K=aGX2_+is1|
zXAZMD1{n1$0os(_Qn~u!K`VQnI3%$=&~JKzp|Rp5LyV^VMKFs_?llH
zdzyNv1An(8rl!Z8@I{z?F>5+D@HWP+r+!+n8w#wNRaAcI+H*p@Zu~j>GzYZaDIFtv*#+&C76e8+BA5{w3xl9~J`b<uMT=hkqE-D{CL_3Bm$v7LKF7B;TRysH?k&>KaN8v75Z{kKhrevcweTj;
z6T-panNrh0&b&oq8p72dygxf_c&W5nQLwJDt%d9!J@27)$lP+
zCv$AQ0imV0(p6Ijg;T3t+p$ZT){YyDOE$WF@g36k>(tS%U>LTN7L*Hxji7I(3Gp@!
z+p2RUX*`x(F7^pd$C-I}x%AUd+?pKftQm@BMu19tm3xD8kJFFw*G1d~CCmuYJC&`d
z5|SlqF~&&>XH1`n&GEo6m!}fkUaVh{e1677a5gh;;o5qK3$;Y}x3YI87^rKmOm1_`
z^}ldU8b9Dp|41_HWBRPeU}oE`|6SFcFS(}7W3Qh_a#e5
z+EQ5_g}q5KbSA@&@J_Y{N~7G`|JseK*4-VDe)ScMl%dI$(u%q(Z(M08*hODcC0vyv
z;%AM1{2feU>~^^LBk0&|HyIb*#^kyIRU$u)VTS?zb8u0WLx}gc_8&h;P!+!*Z@A9-
z(L>|$o@O2K$ztMFmI9kf
ziYHym0e=VpP``HUvwb``@m3?)I-k$4ANjjJHnm+o5!P)}SbG^7Usivnq0J!or=o24IV_3N(Yk(zmNyn$#dUjSdL%lczAyKTy3z#p0Ab
zU$eWRk6QQH^x+d!CfJ%OmPu!z24o$$>88MJ^!7P`*
zNDBwk$s-C>b_t{nQ_b=n%5ukGA>TTMzUL%CI>By6Wki~j`gEUAJqNH;WdAcr^+osr
z-pXl2_gcJgTD0o(>PSLj3E_3sxN-S!jCp=VNUvctOt*+YnvV53>aS$5E=CT>&JmXP
zqglh-eby6WGf2#=8IC^oXW5DwiJB_H{J>GX36#TOnVE;2r
zCWBVhEM-3Pm_KH50wa;(a0^NCKo`fonE(3>f*uXfzQ}lfokK;)-5g)VL;-_;D)Vuw
zEsCfKJ-Jlx6OOF2HdA91<3qmTPO_CvglTVNU&>@kZ3W|ST-JO0$Du*HXGvA5A_-Yv
zfp9OkZzgC#fb%dvz0yFbG1-K4gAeteGK`jg;-AxUjzHdfVN0yvOupECX7sXM!Cd{i
z%TBXyo#V-(vgaJE?I$Px1(?O-r5*yTD$x=v7hwPBdg2$LtqA6Ah&%|0~W#0I6YAZM0oMoMGB(>&rYv`i!t32c=f=bSv
z9Cj2Px=zecI%cWt5-tdSJ`7_;!>e#UA7{53F!VxCF@0W(8M%kWL>GGig^3gZ%)=})e62bSr
zBuYotJw)s7=Cs)$j;3v)aDPnM{+Fqk?5-bQ<(N-ppZLqpE$(}9=;0wlrC9Kj5{bS;bq5JhgUOHsjQ{4(?L=7^fr6}U2m~f
zQt}ghrs-*I4&`K%oZ0HK=r>wPbiC@vPSe+I6b~_w;
z(8aARlFt7Wr%6VXXQ97WYLh5d7&=19Xh@OM@R%paa$wD`sK?jXJ+vt~k$_pki8BRM
zqn6dmOxmDJkvfVHSIc>yJa3+pl73BcIBnO+9`KwG!2b+hG~BhIk?ZhJuZDb6BiG=kWO7ZT{1P_Z0($~=`;t7?*S=82s*F-=E~5u*>4Rmy(p|0
z`i%*xPHe@&j0f%o!v*PEeo>{CouR$Zb5|Y@5)Fp<@gVlDdqzM@t-B2`CZP&sfj)3l
z8hGsOq!h@0rigk7>u^Rq5B1B@LNzJitgTOlY2jR&YN#<>ZMVE%dBzalc%cPvV|D5X
zA~`m54UW>Bh>jgctTZsKuimkVUy!rmRI2amRx2HXg!U61N{Zw
z(7zefrnc(nDsN3i9zi7Y`4ePD;cjzYL+m
zEb<;x_qdP9|c2-S3l=f9Z*^4ilDNvSVfWG
zIEUcIPI+MHOrmttpkL%ka+TDruS9d9E^^W{ppN^Xk5wZNN_SOCs6hH;bGrp`i~3omJ`C-CHQEtM0LSY&pgKrE>=_d#b$rrCJWaN3Jn
zs4ut9!Y)IBU)CMCZ?bg6f0Z7&Gio(se=89Rfa49kNbwG$2p6mMcP=Zx?S4F@-I~uD
z|3pc+5m?*G!OClh-#mE&%OYLjy@KHN5{TL-j33PWnk6eVeejku^t1FW6cbjc4iWygQ3BBW4)N$6zUxx1kur-x_io0x*OK;w>@n5N)P39=}G
zA#3uDkfZ918M?|(3-2OpbO5uzU&7`4c$Y(&6=qS)$(1rrVpef+rNCT!X1)xa6HAyK
zcC4-rmfrAyFQu6pNX#ywn9xM~oqHVQG4HThyt7^uk#!`b-1b1>cJ}*ZY4MHWnWKZ_
zrzW98PIA~y>gzyiY;!OB9+SHCno*iizw$zj3pmtB0
u%?pyORzfI4?2vT+LWZ`{=#%l~8yS3;P_bsn@AvI(P_mLrkZN&*fd2zwJqfV@
diff --git a/doc/org.eclipse.emf.eef.doc/pics/initializeEEFmodels.png b/doc/org.eclipse.emf.eef.doc/pics/initializeEEFmodels.png
deleted file mode 100644
index 40414508c934297f140130acdcdf602e6f555eab..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001
literal 14110
zcmZv@V{j%<*f+YdZ6|kZ+qP}nwr$%^Hg-0)Z95xmZ0F7YdCq(4d^j~Vx~99P>gw*9
z{-GlkAcTvgtSH1fFb)hBO<}!U@lOcLMO4E@
z*xuIG)XwFXu#>5wi>V2ryQPZ-p}3^1f_fl4#;;$5za&KjRXp@Abs+>$#WB7(;M;*C
zz+#IuA_BTWX(*!BVigsQuX$Tf>l)mbG?Fn{t!(NeS9?2lg(%o8W`#uSKYF#nUG~9qAP5ory7Q
z9ySBj(4jnh9nr|9Hv)|Lh!mpxMf^`oObZ{EWcj(GTup87ppxZoeo)Cen&OS)8cqAtI$
z9lVtF-V*-i^Sgfsp^g2l_q@aO`5wjV5;au$$AdK4a~(P%MNIfX!R6P0nA({>G%s6@
zRKONqJgV~1*zO+Hd#?ri=MF+kQ|WdIh=bwVKjYXHX?6*Etpz*UlpiiwnJAKsww(0E
zD1ukc8?WzD{Wf8}!|>?f)#B^HTt=@0XH{=R$Zi!}S?xPSP&Ji72sa4cKYpH>{m@4M
zRiPc5D_%e1_0y^^DQRkK{78y~6bqjzHYNrUrDlR6Qsqk=>O^We*Wfc#HtpaHeCGru
z&W~FDU_MHZLVpVvj_g`Y9K+j&-wEikry>#!5Zuie83uOU#h6OMeN@qGeaB3`PREJ>E{a+#VwO?rN`2{Ri-s
zpLdb-KEEENX|TGH5SCEM@0kAjv=Oi=!w-Jn5^wSH;IUp`4%()+$_e2u_7oKZ`XfYk
z8_cKZyW7J)v^*Yyc4_THx*&b7`5Z6Daa8E7ND`#KRZk4G$WB6R{eLeQ>X`bgUi=H#gj+K(mCSde>WfjT@B6&`4OpZJ<|?&
z2Pfhx>Vf%gj2bNurE%qdP$v0e=sVoWVHo
zTBC$qq$ij6AyNE-1O??0HZV{KOOpQmJIa|eP!+kr?>Kl{dUdbC7lvaDvp-E
z5zjwxnZh6iq4g@+sIRNgp+&K8stCYC7AG(s?LQzcBdv&*+(Qr(W}3plN)3LJ2cn>R
z%PHm!A0T~}Vh&GFci;#+sRR9o1>aCG{#HK%JBsO%(cz1wy*{!kOq982;T$0|(wa~v
z8lJaFmdPm5kJ}Yuk!uCRrYyb?rV+2MCgjJ1MMaRrdNXd6WlS1rVw3c7k{VLgAL%&HCycJdf6@IH%(aMfZA)
zo%SaYS<=8lmw^<{tDF3D@OLLPg@#uX9g0)C>Z5T%b6CG(-yR6?ASUh3GT#j1-YK
z>t)+1i(OzkIGkd=X#0Ai3uzkNEpSqjNEYEut@>Ptlxw1k6MjfhgTXXtp4Yoo+$JgJQoq}l~nvctD%3`lvz
zd-hTDG_i3@K`UsKN=_+_5(R`%DPC)-Z+tY<@@<2L(;XC(*VkMkOK6{{C?fq
zW`+uY@j~Q?e6%q7_4KB@zkO0eLS~5-S0^&MhVw_>P4(5u@Xg~zjRt3{GWr_~t^7w5
zIPu1xfd(Vel=3Q}&&V6USLj5jfJ|L=*hbD^eYtKSz^AvX6)hbXykL1_HE!jhR8xZW
zQ?OQZU%nr$(gGu8AlbLJczR)ptYX=x4{ix{YBu1jG#%Z$I^R!gwoxA?4_JI}Q9wWw
z&AF9UbkV38oH$vSj5)ZHk{Ci!cf?@s13kx)C`G9&?0XW^M{`WZqr`7NUOh^Q!bE2O
zAkzr|>aPELd{^Zr-q#bOE|skw^;0v7#_V(O?Y-Gn2e>AT(|A3p+hd`b@@oe%cC*#%smcCbW(L7`}-+4aS40`$RID}(`6=otR+c9X@NqUB7$GT!d#gmJ*Mr=Gd`
zKpmyQPs)};#2?Oj-oLDZ%Z=GjgA>G=*Xq#D0@=h=XU_Nnc1fWg%)4f-B(-d)u}irO
zwM-ncfBqidFFYx&%&
z>u}d6N918fn#p*@#^FQ{O@0LmxRG^nQezW6!rWzv=3YW=VKnqIj>&r@{T&NnttiFQ
za{Gpcm }%J7TR`;6+h9g%F-;)h}bB%cnmPAuC_WQt~lA3{2S@=*cXWH&Ypn=4SE
zDo~syQ4=Ol5;7Z8F)2%wlDS|FuC1-@)&7pxdI3&)9S`md$ue=raW>nNfL)KC(Z?HY
zBUdZ9h0rFIN<6FiLsEBz
z(baL1iv6eMDq=C*9mblOKqt$PK!YoGXn9tL(Jd3g=J8p{1O>DfFi94`!zEro2VyMyTjjie
zm~@07v-7#Y+cr6TkAi5i1UR;7X!5_7Cd=*uMIg`UTEgz4`T1!765r!RoFmPCj>t1s
zZ0v7d)8x}W=GxKTwgzHMN7
z-i#Q&%9vA1DNimLAHIt~*h2p-S}vMgCS&OwnkXZ74vAMSE|z~6
zTDRdt!uj?l`|)e_dya%584yVL&0~z-wX+egLW=obt3RA}!4h5Nad?E&sPJ_}5=(RS
zJ!D|iqA3s?Ehy2>^&Y@^A2^q2sn6CAoVUb@^Zn22E
zRL}H0tQP;=V>AkOu#j_KY9Q~r)Sb7S*@axl>YTz0lJto^boLkBI+cC#OrXA~o+4yz
z64EqBkkR8rsQtUqs{U%Y*jA&MDalbn#Xw1!lm)ASlT;RaOBDgZ*skrZ
zf)JC1Dn1MEWN!?HNh=Yzm(y$-@0Ysw9euIxw*voQ|GMrzO^IcE7>Ig5w@e9Q?%!mM
z!5V$m7hAqi1KRwG5BWa+b9}iM%bF?Du0BP2|D}sv%oVCjY-z%6Jct9M7t#lJ6VKD?
zPLi1Rc1I0&XXh$gXczdTWkdZ>9)^9)Cf}*n?|M4WFF`O0+D_0&a6VLCjqYQqGG140
zd3-%$FYLpOMcc|w{gW>2uRAGujGx-l<8B9p=M9>pF8tqadhTn5
z5VHVshDY_=6nE3;9{gTG0iEOx1rwGs86K#0B0Ujzqch@De_udA!5JP^VeM!yLnYnE
zN=EGWNg9XEvm#aXs>FJcq6vs}~LLb)4-HX$8=wq08
zzM5=W2Twv5MZ_vQ>ypuaJ|e|@ib7*a*CuxksU;N4&bK+YKA24NU}#<;hlA(a8_BC<
z8NHe^t!@$Od(#KPXyvRm#uJ1_haCqbTW!GnZy5vid4!v>c)>xkvk6nCk=d#~yYr*%
zl;s9?^hYzj{s#>1=6Nm;{LtHHK$&dsD6K1?2%lhZz;9YXvK~8>dMZ79GR=C$%VU@Vda!0mA?)CBD$*Pmugl~-3d=~1?BIx
z#z1!+!ng}qq2h7j`3ltB4&C2GVlq|{eY&GJF_>iTkYtR&^u;L@x)gY5i0ixPHlDM@
z+S{aKY3`97m^|_8cRN746t-1SPi?l-hEz>t@0%bkPi+tbr7{!D{a>x^BmEct%
THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE
-PUBLIC LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR
-DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS
-AGREEMENT.
-
-
1. DEFINITIONS
-
-
"Contribution" means:
-
-
a) in the case of the initial Contributor, the initial
-code and documentation distributed under this Agreement, and
-
b) in the case of each subsequent Contributor:
-
-
i) changes to the Program, and
-
ii) additions to the Program;
-
where such changes and/or additions to the Program
-originate from and are distributed by that particular Contributor. A
-Contribution 'originates' from a Contributor if it was added to the
-Program by such Contributor itself or anyone acting on such
-Contributor's behalf. Contributions do not include additions to the
-Program which: (i) are separate modules of software distributed in
-conjunction with the Program under their own license agreement, and (ii)
-are not derivative works of the Program.
-
-
"Contributor" means any person or entity that distributes
-the Program.
-
-
"Licensed Patents" mean patent claims licensable by a
-Contributor which are necessarily infringed by the use or sale of its
-Contribution alone or when combined with the Program.
-
-
"Program" means the Contributions distributed in accordance
-with this Agreement.
-
-
"Recipient" means anyone who receives the Program under
-this Agreement, including all Contributors.
-
-
2. GRANT OF RIGHTS
-
-
a) Subject to the terms of this Agreement, each
-Contributor hereby grants Recipient a non-exclusive, worldwide,
-royalty-free copyright license to reproduce, prepare derivative works
-of, publicly display, publicly perform, distribute and sublicense the
-Contribution of such Contributor, if any, and such derivative works, in
-source code and object code form.
-
-
b) Subject to the terms of this Agreement, each
-Contributor hereby grants Recipient a non-exclusive, worldwide,
-royalty-free patent license under Licensed Patents to make, use, sell,
-offer to sell, import and otherwise transfer the Contribution of such
-Contributor, if any, in source code and object code form. This patent
-license shall apply to the combination of the Contribution and the
-Program if, at the time the Contribution is added by the Contributor,
-such addition of the Contribution causes such combination to be covered
-by the Licensed Patents. The patent license shall not apply to any other
-combinations which include the Contribution. No hardware per se is
-licensed hereunder.
-
-
c) Recipient understands that although each Contributor
-grants the licenses to its Contributions set forth herein, no assurances
-are provided by any Contributor that the Program does not infringe the
-patent or other intellectual property rights of any other entity. Each
-Contributor disclaims any liability to Recipient for claims brought by
-any other entity based on infringement of intellectual property rights
-or otherwise. As a condition to exercising the rights and licenses
-granted hereunder, each Recipient hereby assumes sole responsibility to
-secure any other intellectual property rights needed, if any. For
-example, if a third party patent license is required to allow Recipient
-to distribute the Program, it is Recipient's responsibility to acquire
-that license before distributing the Program.
-
-
d) Each Contributor represents that to its knowledge it
-has sufficient copyright rights in its Contribution, if any, to grant
-the copyright license set forth in this Agreement.
-
-
3. REQUIREMENTS
-
-
A Contributor may choose to distribute the Program in object code
-form under its own license agreement, provided that:
-
-
a) it complies with the terms and conditions of this
-Agreement; and
-
-
b) its license agreement:
-
-
i) effectively disclaims on behalf of all Contributors
-all warranties and conditions, express and implied, including warranties
-or conditions of title and non-infringement, and implied warranties or
-conditions of merchantability and fitness for a particular purpose;
-
-
ii) effectively excludes on behalf of all Contributors
-all liability for damages, including direct, indirect, special,
-incidental and consequential damages, such as lost profits;
-
-
iii) states that any provisions which differ from this
-Agreement are offered by that Contributor alone and not by any other
-party; and
-
-
iv) states that source code for the Program is available
-from such Contributor, and informs licensees how to obtain it in a
-reasonable manner on or through a medium customarily used for software
-exchange.
-
-
When the Program is made available in source code form:
-
-
a) it must be made available under this Agreement; and
-
-
b) a copy of this Agreement must be included with each
-copy of the Program.
-
-
Contributors may not remove or alter any copyright notices contained
-within the Program.
-
-
Each Contributor must identify itself as the originator of its
-Contribution, if any, in a manner that reasonably allows subsequent
-Recipients to identify the originator of the Contribution.
-
-
4. COMMERCIAL DISTRIBUTION
-
-
Commercial distributors of software may accept certain
-responsibilities with respect to end users, business partners and the
-like. While this license is intended to facilitate the commercial use of
-the Program, the Contributor who includes the Program in a commercial
-product offering should do so in a manner which does not create
-potential liability for other Contributors. Therefore, if a Contributor
-includes the Program in a commercial product offering, such Contributor
-("Commercial Contributor") hereby agrees to defend and
-indemnify every other Contributor ("Indemnified Contributor")
-against any losses, damages and costs (collectively "Losses")
-arising from claims, lawsuits and other legal actions brought by a third
-party against the Indemnified Contributor to the extent caused by the
-acts or omissions of such Commercial Contributor in connection with its
-distribution of the Program in a commercial product offering. The
-obligations in this section do not apply to any claims or Losses
-relating to any actual or alleged intellectual property infringement. In
-order to qualify, an Indemnified Contributor must: a) promptly notify
-the Commercial Contributor in writing of such claim, and b) allow the
-Commercial Contributor to control, and cooperate with the Commercial
-Contributor in, the defense and any related settlement negotiations. The
-Indemnified Contributor may participate in any such claim at its own
-expense.
-
-
For example, a Contributor might include the Program in a commercial
-product offering, Product X. That Contributor is then a Commercial
-Contributor. If that Commercial Contributor then makes performance
-claims, or offers warranties related to Product X, those performance
-claims and warranties are such Commercial Contributor's responsibility
-alone. Under this section, the Commercial Contributor would have to
-defend claims against the other Contributors related to those
-performance claims and warranties, and if a court requires any other
-Contributor to pay any damages as a result, the Commercial Contributor
-must pay those damages.
-
-
5. NO WARRANTY
-
-
EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS
-PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS
-OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION,
-ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY
-OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely
-responsible for determining the appropriateness of using and
-distributing the Program and assumes all risks associated with its
-exercise of rights under this Agreement , including but not limited to
-the risks and costs of program errors, compliance with applicable laws,
-damage to or loss of data, programs or equipment, and unavailability or
-interruption of operations.
-
-
6. DISCLAIMER OF LIABILITY
-
-
EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT
-NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT,
-INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING
-WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF
-LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR
-DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED
-HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
-
-
7. GENERAL
-
-
If any provision of this Agreement is invalid or unenforceable under
-applicable law, it shall not affect the validity or enforceability of
-the remainder of the terms of this Agreement, and without further action
-by the parties hereto, such provision shall be reformed to the minimum
-extent necessary to make such provision valid and enforceable.
-
-
If Recipient institutes patent litigation against any entity
-(including a cross-claim or counterclaim in a lawsuit) alleging that the
-Program itself (excluding combinations of the Program with other
-software or hardware) infringes such Recipient's patent(s), then such
-Recipient's rights granted under Section 2(b) shall terminate as of the
-date such litigation is filed.
-
-
All Recipient's rights under this Agreement shall terminate if it
-fails to comply with any of the material terms or conditions of this
-Agreement and does not cure such failure in a reasonable period of time
-after becoming aware of such noncompliance. If all Recipient's rights
-under this Agreement terminate, Recipient agrees to cease use and
-distribution of the Program as soon as reasonably practicable. However,
-Recipient's obligations under this Agreement and any licenses granted by
-Recipient relating to the Program shall continue and survive.
-
-
Everyone is permitted to copy and distribute copies of this
-Agreement, but in order to avoid inconsistency the Agreement is
-copyrighted and may only be modified in the following manner. The
-Agreement Steward reserves the right to publish new versions (including
-revisions) of this Agreement from time to time. No one other than the
-Agreement Steward has the right to modify this Agreement. The Eclipse
-Foundation is the initial Agreement Steward. The Eclipse Foundation may
-assign the responsibility to serve as the Agreement Steward to a
-suitable separate entity. Each new version of the Agreement will be
-given a distinguishing version number. The Program (including
-Contributions) may always be distributed subject to the version of the
-Agreement under which it was received. In addition, after a new version
-of the Agreement is published, Contributor may elect to distribute the
-Program (including its Contributions) under the new version. Except as
-expressly stated in Sections 2(a) and 2(b) above, Recipient receives no
-rights or licenses to the intellectual property of any Contributor under
-this Agreement, whether expressly, by implication, estoppel or
-otherwise. All rights in the Program not expressly granted under this
-Agreement are reserved.
-
-
This Agreement is governed by the laws of the State of New York and
-the intellectual property laws of the United States of America. No party
-to this Agreement will bring a legal action under this Agreement more
-than one year after the cause of action arose. Each party waives its
-rights to a jury trial in any resulting litigation.
-
-
-
-
\ No newline at end of file
diff --git a/features/org.eclipse.emf.eef.codegen.ecore-feature/feature.properties b/features/org.eclipse.emf.eef.codegen.ecore-feature/feature.properties
deleted file mode 100644
index e8f570a82..000000000
--- a/features/org.eclipse.emf.eef.codegen.ecore-feature/feature.properties
+++ /dev/null
@@ -1,147 +0,0 @@
-###############################################################################
-# Copyright (c) 2008, 2012 Obeo.
-# 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:
-# Obeo - initial API and implementation
-###############################################################################
-providerName=Eclipse Modeling Project
-featureName=Extended Editing Framework - EMF Edit generation using Acceleo
-modelingUpdateSiteName=Eclipse Modeling Project Updates
-description=Extended Editing Framework - EMF Edit generation using Acceleo. \
-This plugin contains the necessary acceleo templates and code to generates EMF Edit and editor code.
-
-# "licenseURL" property - URL of the "Feature License"
-# do not translate value - just change to point to a locale-specific HTML page
-licenseURL=license.html
-
-# "license" property - text of the "Feature Update License"
-# should be plain text version of license agreement pointed to be "licenseURL"
-license=\
-Eclipse Foundation Software User Agreement\n\
-February 1, 2011\n\
-\n\
-Usage Of Content\n\
-\n\
-THE ECLIPSE FOUNDATION MAKES AVAILABLE SOFTWARE, DOCUMENTATION, INFORMATION AND/OR\n\
-OTHER MATERIALS FOR OPEN SOURCE PROJECTS (COLLECTIVELY "CONTENT").\n\
-USE OF THE CONTENT IS GOVERNED BY THE TERMS AND CONDITIONS OF THIS\n\
-AGREEMENT AND/OR THE TERMS AND CONDITIONS OF LICENSE AGREEMENTS OR\n\
-NOTICES INDICATED OR REFERENCED BELOW. BY USING THE CONTENT, YOU\n\
-AGREE THAT YOUR USE OF THE CONTENT IS GOVERNED BY THIS AGREEMENT\n\
-AND/OR THE TERMS AND CONDITIONS OF ANY APPLICABLE LICENSE AGREEMENTS\n\
-OR NOTICES INDICATED OR REFERENCED BELOW. IF YOU DO NOT AGREE TO THE\n\
-TERMS AND CONDITIONS OF THIS AGREEMENT AND THE TERMS AND CONDITIONS\n\
-OF ANY APPLICABLE LICENSE AGREEMENTS OR NOTICES INDICATED OR REFERENCED\n\
-BELOW, THEN YOU MAY NOT USE THE CONTENT.\n\
-\n\
-Applicable Licenses\n\
-\n\
-Unless otherwise indicated, all Content made available by the\n\
-Eclipse Foundation is provided to you under the terms and conditions of\n\
-the Eclipse Public License Version 1.0 ("EPL"). A copy of the EPL is\n\
-provided with this Content and is also available at http://www.eclipse.org/legal/epl-v10.html.\n\
-For purposes of the EPL, "Program" will mean the Content.\n\
-\n\
-Content includes, but is not limited to, source code, object code,\n\
-documentation and other files maintained in the Eclipse Foundation source code\n\
-repository ("Repository") in software modules ("Modules") and made available\n\
-as downloadable archives ("Downloads").\n\
-\n\
- - Content may be structured and packaged into modules to facilitate delivering,\n\
- extending, and upgrading the Content. Typical modules may include plug-ins ("Plug-ins"),\n\
- plug-in fragments ("Fragments"), and features ("Features").\n\
- - Each Plug-in or Fragment may be packaged as a sub-directory or JAR (Java(TM) ARchive)\n\
- in a directory named "plugins".\n\
- - A Feature is a bundle of one or more Plug-ins and/or Fragments and associated material.\n\
- Each Feature may be packaged as a sub-directory in a directory named "features".\n\
- Within a Feature, files named "feature.xml" may contain a list of the names and version\n\
- numbers of the Plug-ins and/or Fragments associated with that Feature.\n\
- - Features may also include other Features ("Included Features"). Within a Feature, files\n\
- named "feature.xml" may contain a list of the names and version numbers of Included Features.\n\
-\n\
-The terms and conditions governing Plug-ins and Fragments should be\n\
-contained in files named "about.html" ("Abouts"). The terms and\n\
-conditions governing Features and Included Features should be contained\n\
-in files named "license.html" ("Feature Licenses"). Abouts and Feature\n\
-Licenses may be located in any directory of a Download or Module\n\
-including, but not limited to the following locations:\n\
-\n\
- - The top-level (root) directory\n\
- - Plug-in and Fragment directories\n\
- - Inside Plug-ins and Fragments packaged as JARs\n\
- - Sub-directories of the directory named "src" of certain Plug-ins\n\
- - Feature directories\n\
-\n\
-Note: if a Feature made available by the Eclipse Foundation is installed using the\n\
-Provisioning Technology (as defined below), you must agree to a license ("Feature \n\
-Update License") during the installation process. If the Feature contains\n\
-Included Features, the Feature Update License should either provide you\n\
-with the terms and conditions governing the Included Features or inform\n\
-you where you can locate them. Feature Update Licenses may be found in\n\
-the "license" property of files named "feature.properties" found within a Feature.\n\
-Such Abouts, Feature Licenses, and Feature Update Licenses contain the\n\
-terms and conditions (or references to such terms and conditions) that\n\
-govern your use of the associated Content in that directory.\n\
-\n\
-THE ABOUTS, FEATURE LICENSES, AND FEATURE UPDATE LICENSES MAY REFER\n\
-TO THE EPL OR OTHER LICENSE AGREEMENTS, NOTICES OR TERMS AND CONDITIONS.\n\
-SOME OF THESE OTHER LICENSE AGREEMENTS MAY INCLUDE (BUT ARE NOT LIMITED TO):\n\
-\n\
- - Eclipse Distribution License Version 1.0 (available at http://www.eclipse.org/licenses/edl-v1.0.html)\n\
- - Common Public License Version 1.0 (available at http://www.eclipse.org/legal/cpl-v10.html)\n\
- - Apache Software License 1.1 (available at http://www.apache.org/licenses/LICENSE)\n\
- - Apache Software License 2.0 (available at http://www.apache.org/licenses/LICENSE-2.0)\n\
- - Metro Link Public License 1.00 (available at http://www.opengroup.org/openmotif/supporters/metrolink/license.html)\n\
- - Mozilla Public License Version 1.1 (available at http://www.mozilla.org/MPL/MPL-1.1.html)\n\
-\n\
-IT IS YOUR OBLIGATION TO READ AND ACCEPT ALL SUCH TERMS AND CONDITIONS PRIOR\n\
-TO USE OF THE CONTENT. If no About, Feature License, or Feature Update License\n\
-is provided, please contact the Eclipse Foundation to determine what terms and conditions\n\
-govern that particular Content.\n\
-\n\
-\n\Use of Provisioning Technology\n\
-\n\
-The Eclipse Foundation makes available provisioning software, examples of which include,\n\
-but are not limited to, p2 and the Eclipse Update Manager ("Provisioning Technology") for\n\
-the purpose of allowing users to install software, documentation, information and/or\n\
-other materials (collectively "Installable Software"). This capability is provided with\n\
-the intent of allowing such users to install, extend and update Eclipse-based products.\n\
-Information about packaging Installable Software is available at\n\
-http://eclipse.org/equinox/p2/repository_packaging.html ("Specification").\n\
-\n\
-You may use Provisioning Technology to allow other parties to install Installable Software.\n\
-You shall be responsible for enabling the applicable license agreements relating to the\n\
-Installable Software to be presented to, and accepted by, the users of the Provisioning Technology\n\
-in accordance with the Specification. By using Provisioning Technology in such a manner and\n\
-making it available in accordance with the Specification, you further acknowledge your\n\
-agreement to, and the acquisition of all necessary rights to permit the following:\n\
-\n\
- 1. A series of actions may occur ("Provisioning Process") in which a user may execute\n\
- the Provisioning Technology on a machine ("Target Machine") with the intent of installing,\n\
- extending or updating the functionality of an Eclipse-based product.\n\
- 2. During the Provisioning Process, the Provisioning Technology may cause third party\n\
- Installable Software or a portion thereof to be accessed and copied to the Target Machine.\n\
- 3. Pursuant to the Specification, you will provide to the user the terms and conditions that\n\
- govern the use of the Installable Software ("Installable Software Agreement") and such\n\
- Installable Software Agreement shall be accessed from the Target Machine in accordance\n\
- with the Specification. Such Installable Software Agreement must inform the user of the\n\
- terms and conditions that govern the Installable Software and must solicit acceptance by\n\
- the end user in the manner prescribed in such Installable Software Agreement. Upon such\n\
- indication of agreement by the user, the provisioning Technology will complete installation\n\
- of the Installable Software.\n\
-\n\
-Cryptography\n\
-\n\
-Content may contain encryption software. The country in which you are\n\
-currently may have restrictions on the import, possession, and use,\n\
-and/or re-export to another country, of encryption software. BEFORE\n\
-using any encryption software, please check the country's laws,\n\
-regulations and policies concerning the import, possession, or use, and\n\
-re-export of encryption software, to see if this is permitted.\n\
-\n\
-Java and all Java-based trademarks are trademarks of Oracle Corporation in the United States, other countries, or both.\n
-########### end of license property ##########################################
diff --git a/features/org.eclipse.emf.eef.codegen.ecore-feature/feature.xml b/features/org.eclipse.emf.eef.codegen.ecore-feature/feature.xml
deleted file mode 100644
index 9805c9509..000000000
--- a/features/org.eclipse.emf.eef.codegen.ecore-feature/feature.xml
+++ /dev/null
@@ -1,55 +0,0 @@
-
-
-
-
-
- %description
-
-
-
- Copyright (c) 2011 Obeo.
-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
-
-
-
- %license
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/features/org.eclipse.emf.eef.codegen.ecore-feature/license.html b/features/org.eclipse.emf.eef.codegen.ecore-feature/license.html
deleted file mode 100644
index a1fe5ea3f..000000000
--- a/features/org.eclipse.emf.eef.codegen.ecore-feature/license.html
+++ /dev/null
@@ -1,116 +0,0 @@
-
-
-
-
-
-Eclipse Foundation Software User Agreement
-
-
-
-
Eclipse Foundation Software User Agreement
-
February 1, 2011
-
-
Usage Of Content
-
-
THE ECLIPSE FOUNDATION MAKES AVAILABLE SOFTWARE, DOCUMENTATION, INFORMATION AND/OR OTHER MATERIALS FOR OPEN SOURCE PROJECTS
- (COLLECTIVELY "CONTENT"). USE OF THE CONTENT IS GOVERNED BY THE TERMS AND CONDITIONS OF THIS AGREEMENT AND/OR THE TERMS AND
- CONDITIONS OF LICENSE AGREEMENTS OR NOTICES INDICATED OR REFERENCED BELOW. BY USING THE CONTENT, YOU AGREE THAT YOUR USE
- OF THE CONTENT IS GOVERNED BY THIS AGREEMENT AND/OR THE TERMS AND CONDITIONS OF ANY APPLICABLE LICENSE AGREEMENTS OR
- NOTICES INDICATED OR REFERENCED BELOW. IF YOU DO NOT AGREE TO THE TERMS AND CONDITIONS OF THIS AGREEMENT AND THE TERMS AND
- CONDITIONS OF ANY APPLICABLE LICENSE AGREEMENTS OR NOTICES INDICATED OR REFERENCED BELOW, THEN YOU MAY NOT USE THE CONTENT.
-
-
Applicable Licenses
-
-
Unless otherwise indicated, all Content made available by the Eclipse Foundation is provided to you under the terms and conditions of the Eclipse Public License Version 1.0
- ("EPL"). A copy of the EPL is provided with this Content and is also available at http://www.eclipse.org/legal/epl-v10.html.
- For purposes of the EPL, "Program" will mean the Content.
-
-
Content includes, but is not limited to, source code, object code, documentation and other files maintained in the Eclipse Foundation source code
- repository ("Repository") in software modules ("Modules") and made available as downloadable archives ("Downloads").
-
-
-
Content may be structured and packaged into modules to facilitate delivering, extending, and upgrading the Content. Typical modules may include plug-ins ("Plug-ins"), plug-in fragments ("Fragments"), and features ("Features").
-
-
Each Plug-in or Fragment may be packaged as a sub-directory or JAR (Java™ ARchive) in a directory named "plugins".
-
A Feature is a bundle of one or more Plug-ins and/or Fragments and associated material. Each Feature may be packaged as a sub-directory in a directory named "features". Within a Feature, files named "feature.xml" may contain a list of the names and version numbers of the Plug-ins
- and/or Fragments associated with that Feature.
-
Features may also include other Features ("Included Features"). Within a Feature, files named "feature.xml" may contain a list of the names and version numbers of Included Features.
-
-
-
-
The terms and conditions governing Plug-ins and Fragments should be contained in files named "about.html" ("Abouts"). The terms and conditions governing Features and
-Included Features should be contained in files named "license.html" ("Feature Licenses"). Abouts and Feature Licenses may be located in any directory of a Download or Module
-including, but not limited to the following locations:
-
-
-
The top-level (root) directory
-
-
Plug-in and Fragment directories
-
Inside Plug-ins and Fragments packaged as JARs
-
Sub-directories of the directory named "src" of certain Plug-ins
-
Feature directories
-
-
-
Note: if a Feature made available by the Eclipse Foundation is installed using the Provisioning Technology (as defined below), you must agree to a license ("Feature Update License") during the
-installation process. If the Feature contains Included Features, the Feature Update License should either provide you with the terms and conditions governing the Included Features or
-inform you where you can locate them. Feature Update Licenses may be found in the "license" property of files named "feature.properties" found within a Feature.
-Such Abouts, Feature Licenses, and Feature Update Licenses contain the terms and conditions (or references to such terms and conditions) that govern your use of the associated Content in
-that directory.
-
-
THE ABOUTS, FEATURE LICENSES, AND FEATURE UPDATE LICENSES MAY REFER TO THE EPL OR OTHER LICENSE AGREEMENTS, NOTICES OR TERMS AND CONDITIONS. SOME OF THESE
-OTHER LICENSE AGREEMENTS MAY INCLUDE (BUT ARE NOT LIMITED TO):
IT IS YOUR OBLIGATION TO READ AND ACCEPT ALL SUCH TERMS AND CONDITIONS PRIOR TO USE OF THE CONTENT. If no About, Feature License, or Feature Update License is provided, please
-contact the Eclipse Foundation to determine what terms and conditions govern that particular Content.
-
-
-
Use of Provisioning Technology
-
-
The Eclipse Foundation makes available provisioning software, examples of which include, but are not limited to, p2 and the Eclipse
- Update Manager ("Provisioning Technology") for the purpose of allowing users to install software, documentation, information and/or
- other materials (collectively "Installable Software"). This capability is provided with the intent of allowing such users to
- install, extend and update Eclipse-based products. Information about packaging Installable Software is available at http://eclipse.org/equinox/p2/repository_packaging.html
-
- ("Specification").
-
-
You may use Provisioning Technology to allow other parties to install Installable Software. You shall be responsible for enabling the
- applicable license agreements relating to the Installable Software to be presented to, and accepted by, the users of the Provisioning Technology
- in accordance with the Specification. By using Provisioning Technology in such a manner and making it available in accordance with the
- Specification, you further acknowledge your agreement to, and the acquisition of all necessary rights to permit the following:
-
-
-
A series of actions may occur ("Provisioning Process") in which a user may execute the Provisioning Technology
- on a machine ("Target Machine") with the intent of installing, extending or updating the functionality of an Eclipse-based
- product.
-
-
During the Provisioning Process, the Provisioning Technology may cause third party Installable Software or a portion thereof to be
- accessed and copied to the Target Machine.
-
Pursuant to the Specification, you will provide to the user the terms and conditions that govern the use of the Installable
- Software ("Installable Software Agreement") and such Installable Software Agreement shall be accessed from the Target
- Machine in accordance with the Specification. Such Installable Software Agreement must inform the user of the terms and conditions that govern
- the Installable Software and must solicit acceptance by the end user in the manner prescribed in such Installable Software Agreement. Upon such
- indication of agreement by the user, the provisioning Technology will complete installation of the Installable Software.
-
-
-
Cryptography
-
-
Content may contain encryption software. The country in which you are currently may have restrictions on the import, possession, and use, and/or re-export to
- another country, of encryption software. BEFORE using any encryption software, please check the country's laws, regulations and policies concerning the import,
- possession, or use, and re-export of encryption software, to see if this is permitted.
-
-
Java and all Java-based trademarks are trademarks of Oracle Corporation in the United States, other countries, or both.
-
-
-
diff --git a/features/org.eclipse.emf.eef.codegen.ecore-feature/license.txt b/features/org.eclipse.emf.eef.codegen.ecore-feature/license.txt
deleted file mode 100644
index 24937b64c..000000000
--- a/features/org.eclipse.emf.eef.codegen.ecore-feature/license.txt
+++ /dev/null
@@ -1,87 +0,0 @@
-Eclipse Public License - v 1.0
-
-THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE PUBLIC LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT.
-
-1. DEFINITIONS
-
-"Contribution" means:
-
-a) in the case of the initial Contributor, the initial code and documentation distributed under this Agreement, and
-b) in the case of each subsequent Contributor:
-
-i) changes to the Program, and
-
-ii) additions to the Program;
-
-where such changes and/or additions to the Program originate from and are distributed by that particular Contributor. A Contribution 'originates' from a Contributor if it was added to the Program by such Contributor itself or anyone acting on such Contributor's behalf. Contributions do not include additions to the Program which: (i) are separate modules of software distributed in conjunction with the Program under their own license agreement, and (ii) are not derivative works of the Program.
-
-"Contributor" means any person or entity that distributes the Program.
-
-"Licensed Patents " mean patent claims licensable by a Contributor which are necessarily infringed by the use or sale of its Contribution alone or when combined with the Program.
-
-"Program" means the Contributions distributed in accordance with this Agreement.
-
-"Recipient" means anyone who receives the Program under this Agreement, including all Contributors.
-
-2. GRANT OF RIGHTS
-
-a) Subject to the terms of this Agreement, each Contributor hereby grants Recipient a non-exclusive, worldwide, royalty-free copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, distribute and sublicense the Contribution of such Contributor, if any, and such derivative works, in source code and object code form.
-
-b) Subject to the terms of this Agreement, each Contributor hereby grants Recipient a non-exclusive, worldwide, royalty-free patent license under Licensed Patents to make, use, sell, offer to sell, import and otherwise transfer the Contribution of such Contributor, if any, in source code and object code form. This patent license shall apply to the combination of the Contribution and the Program if, at the time the Contribution is added by the Contributor, such addition of the Contribution causes such combination to be covered by the Licensed Patents. The patent license shall not apply to any other combinations which include the Contribution. No hardware per se is licensed hereunder.
-
-c) Recipient understands that although each Contributor grants the licenses to its Contributions set forth herein, no assurances are provided by any Contributor that the Program does not infringe the patent or other intellectual property rights of any other entity. Each Contributor disclaims any liability to Recipient for claims brought by any other entity based on infringement of intellectual property rights or otherwise. As a condition to exercising the rights and licenses granted hereunder, each Recipient hereby assumes sole responsibility to secure any other intellectual property rights needed, if any. For example, if a third party patent license is required to allow Recipient to distribute the Program, it is Recipient's responsibility to acquire that license before distributing the Program.
-
-d) Each Contributor represents that to its knowledge it has sufficient copyright rights in its Contribution, if any, to grant the copyright license set forth in this Agreement.
-
-3. REQUIREMENTS
-
-A Contributor may choose to distribute the Program in object code form under its own license agreement, provided that:
-
-a) it complies with the terms and conditions of this Agreement; and
-
-b) its license agreement:
-
-i) effectively disclaims on behalf of all Contributors all warranties and conditions, express and implied, including warranties or conditions of title and non-infringement, and implied warranties or conditions of merchantability and fitness for a particular purpose;
-
-ii) effectively excludes on behalf of all Contributors all liability for damages, including direct, indirect, special, incidental and consequential damages, such as lost profits;
-
-iii) states that any provisions which differ from this Agreement are offered by that Contributor alone and not by any other party; and
-
-iv) states that source code for the Program is available from such Contributor, and informs licensees how to obtain it in a reasonable manner on or through a medium customarily used for software exchange.
-
-When the Program is made available in source code form:
-
-a) it must be made available under this Agreement; and
-
-b) a copy of this Agreement must be included with each copy of the Program.
-
-Contributors may not remove or alter any copyright notices contained within the Program.
-
-Each Contributor must identify itself as the originator of its Contribution, if any, in a manner that reasonably allows subsequent Recipients to identify the originator of the Contribution.
-
-4. COMMERCIAL DISTRIBUTION
-
-Commercial distributors of software may accept certain responsibilities with respect to end users, business partners and the like. While this license is intended to facilitate the commercial use of the Program, the Contributor who includes the Program in a commercial product offering should do so in a manner which does not create potential liability for other Contributors. Therefore, if a Contributor includes the Program in a commercial product offering, such Contributor ("Commercial Contributor") hereby agrees to defend and indemnify every other Contributor ("Indemnified Contributor") against any losses, damages and costs (collectively "Losses") arising from claims, lawsuits and other legal actions brought by a third party against the Indemnified Contributor to the extent caused by the acts or omissions of such Commercial Contributor in connection with its distribution of the Program in a commercial product offering. The obligations in this section do not apply to any claims or Losses relating to any actual or alleged intellectual property infringement. In order to qualify, an Indemnified Contributor must: a) promptly notify the Commercial Contributor in writing of such claim, and b) allow the Commercial Contributor to control, and cooperate with the Commercial Contributor in, the defense and any related settlement negotiations. The Indemnified Contributor may participate in any such claim at its own expense.
-
-For example, a Contributor might include the Program in a commercial product offering, Product X. That Contributor is then a Commercial Contributor. If that Commercial Contributor then makes performance claims, or offers warranties related to Product X, those performance claims and warranties are such Commercial Contributor's responsibility alone. Under this section, the Commercial Contributor would have to defend claims against the other Contributors related to those performance claims and warranties, and if a court requires any other Contributor to pay any damages as a result, the Commercial Contributor must pay those damages.
-
-5. NO WARRANTY
-
-EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely responsible for determining the appropriateness of using and distributing the Program and assumes all risks associated with its exercise of rights under this Agreement , including but not limited to the risks and costs of program errors, compliance with applicable laws, damage to or loss of data, programs or equipment, and unavailability or interruption of operations.
-
-6. DISCLAIMER OF LIABILITY
-
-EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
-
-7. GENERAL
-
-If any provision of this Agreement is invalid or unenforceable under applicable law, it shall not affect the validity or enforceability of the remainder of the terms of this Agreement, and without further action by the parties hereto, such provision shall be reformed to the minimum extent necessary to make such provision valid and enforceable.
-
-If Recipient institutes patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Program itself (excluding combinations of the Program with other software or hardware) infringes such Recipient's patent(s), then such Recipient's rights granted under Section 2(b) shall terminate as of the date such litigation is filed.
-
-All Recipient's rights under this Agreement shall terminate if it fails to comply with any of the material terms or conditions of this Agreement and does not cure such failure in a reasonable period of time after becoming aware of such noncompliance. If all Recipient's rights under this Agreement terminate, Recipient agrees to cease use and distribution of the Program as soon as reasonably practicable. However, Recipient's obligations under this Agreement and any licenses granted by Recipient relating to the Program shall continue and survive.
-
-Everyone is permitted to copy and distribute copies of this Agreement, but in order to avoid inconsistency the Agreement is copyrighted and may only be modified in the following manner. The Agreement Steward reserves the right to publish new versions (including revisions) of this Agreement from time to time. No one other than the Agreement Steward has the right to modify this Agreement. The Eclipse Foundation is the initial Agreement Steward. The Eclipse Foundation may assign the responsibility to serve as the Agreement Steward to a suitable separate entity. Each new version of the Agreement will be given a distinguishing version number. The Program (including Contributions) may always be distributed subject to the version of the Agreement under which it was received. In addition, after a new version of the Agreement is published, Contributor may elect to distribute the Program (including its Contributions) under the new version. Except as expressly stated in Sections 2(a) and 2(b) above, Recipient receives no rights or licenses to the intellectual property of any Contributor under this Agreement, whether expressly, by implication, estoppel or otherwise. All rights in the Program not expressly granted under this Agreement are reserved.
-
-This Agreement is governed by the laws of the State of New York and the intellectual property laws of the United States of America. No party to this Agreement will bring a legal action under this Agreement more than one year after the cause of action arose. Each party waives its rights to a jury trial in any resulting litigation.
-
diff --git a/features/org.eclipse.emf.eef.codegen.ecore-feature/pom.xml b/features/org.eclipse.emf.eef.codegen.ecore-feature/pom.xml
deleted file mode 100644
index 129d9382f..000000000
--- a/features/org.eclipse.emf.eef.codegen.ecore-feature/pom.xml
+++ /dev/null
@@ -1,29 +0,0 @@
-
-
-
-
- 4.0.0
-
-
- org.eclipse.emf
- org.eclipse.emf.eef.releng.parent
- ../../releng/org.eclipse.emf.eef.releng.parent
- 1.5.2-SNAPSHOT
-
-
- org.eclipse.emf.eef.codegen.ecore-feature
- eclipse-feature
-
- EEF Ecore Codegen Feature
-
-
diff --git a/features/org.eclipse.emf.eef.codegen.richtext-feature/.gitignore b/features/org.eclipse.emf.eef.codegen.richtext-feature/.gitignore
deleted file mode 100644
index eb5a316cb..000000000
--- a/features/org.eclipse.emf.eef.codegen.richtext-feature/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-target
diff --git a/features/org.eclipse.emf.eef.codegen.richtext-feature/.project b/features/org.eclipse.emf.eef.codegen.richtext-feature/.project
deleted file mode 100644
index cad0e58b3..000000000
--- a/features/org.eclipse.emf.eef.codegen.richtext-feature/.project
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
- org.eclipse.emf.eef.codegen.richtext-feature
-
-
-
-
-
- org.eclipse.pde.FeatureBuilder
-
-
-
-
-
- org.eclipse.pde.FeatureNature
-
-
diff --git a/features/org.eclipse.emf.eef.codegen.richtext-feature/build.properties b/features/org.eclipse.emf.eef.codegen.richtext-feature/build.properties
deleted file mode 100644
index 7aa629d6d..000000000
--- a/features/org.eclipse.emf.eef.codegen.richtext-feature/build.properties
+++ /dev/null
@@ -1,20 +0,0 @@
-###############################################################################
-# Copyright (c) 2008, 2012 Obeo.
-# 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:
-# Obeo - initial API and implementation
-###############################################################################
-bin.includes = feature.xml,\
- feature.properties,\
- license.html,\
- license.txt,\
- epl-v10.html
-src.includes = feature.properties,\
- license.html,\
- license.txt,\
- feature.xml,\
- epl-v10.html
diff --git a/features/org.eclipse.emf.eef.codegen.richtext-feature/epl-v10.html b/features/org.eclipse.emf.eef.codegen.richtext-feature/epl-v10.html
deleted file mode 100644
index 0d34dd06a..000000000
--- a/features/org.eclipse.emf.eef.codegen.richtext-feature/epl-v10.html
+++ /dev/null
@@ -1,262 +0,0 @@
-
-
-
-
-
-
-Eclipse Public License - Version 1.0
-
-
-
-
-
-
-
Eclipse Public License - v 1.0
-
-
THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE
-PUBLIC LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR
-DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS
-AGREEMENT.
-
-
1. DEFINITIONS
-
-
"Contribution" means:
-
-
a) in the case of the initial Contributor, the initial
-code and documentation distributed under this Agreement, and
-
b) in the case of each subsequent Contributor:
-
-
i) changes to the Program, and
-
ii) additions to the Program;
-
where such changes and/or additions to the Program
-originate from and are distributed by that particular Contributor. A
-Contribution 'originates' from a Contributor if it was added to the
-Program by such Contributor itself or anyone acting on such
-Contributor's behalf. Contributions do not include additions to the
-Program which: (i) are separate modules of software distributed in
-conjunction with the Program under their own license agreement, and (ii)
-are not derivative works of the Program.
-
-
"Contributor" means any person or entity that distributes
-the Program.
-
-
"Licensed Patents" mean patent claims licensable by a
-Contributor which are necessarily infringed by the use or sale of its
-Contribution alone or when combined with the Program.
-
-
"Program" means the Contributions distributed in accordance
-with this Agreement.
-
-
"Recipient" means anyone who receives the Program under
-this Agreement, including all Contributors.
-
-
2. GRANT OF RIGHTS
-
-
a) Subject to the terms of this Agreement, each
-Contributor hereby grants Recipient a non-exclusive, worldwide,
-royalty-free copyright license to reproduce, prepare derivative works
-of, publicly display, publicly perform, distribute and sublicense the
-Contribution of such Contributor, if any, and such derivative works, in
-source code and object code form.
-
-
b) Subject to the terms of this Agreement, each
-Contributor hereby grants Recipient a non-exclusive, worldwide,
-royalty-free patent license under Licensed Patents to make, use, sell,
-offer to sell, import and otherwise transfer the Contribution of such
-Contributor, if any, in source code and object code form. This patent
-license shall apply to the combination of the Contribution and the
-Program if, at the time the Contribution is added by the Contributor,
-such addition of the Contribution causes such combination to be covered
-by the Licensed Patents. The patent license shall not apply to any other
-combinations which include the Contribution. No hardware per se is
-licensed hereunder.
-
-
c) Recipient understands that although each Contributor
-grants the licenses to its Contributions set forth herein, no assurances
-are provided by any Contributor that the Program does not infringe the
-patent or other intellectual property rights of any other entity. Each
-Contributor disclaims any liability to Recipient for claims brought by
-any other entity based on infringement of intellectual property rights
-or otherwise. As a condition to exercising the rights and licenses
-granted hereunder, each Recipient hereby assumes sole responsibility to
-secure any other intellectual property rights needed, if any. For
-example, if a third party patent license is required to allow Recipient
-to distribute the Program, it is Recipient's responsibility to acquire
-that license before distributing the Program.
-
-
d) Each Contributor represents that to its knowledge it
-has sufficient copyright rights in its Contribution, if any, to grant
-the copyright license set forth in this Agreement.
-
-
3. REQUIREMENTS
-
-
A Contributor may choose to distribute the Program in object code
-form under its own license agreement, provided that:
-
-
a) it complies with the terms and conditions of this
-Agreement; and
-
-
b) its license agreement:
-
-
i) effectively disclaims on behalf of all Contributors
-all warranties and conditions, express and implied, including warranties
-or conditions of title and non-infringement, and implied warranties or
-conditions of merchantability and fitness for a particular purpose;
-
-
ii) effectively excludes on behalf of all Contributors
-all liability for damages, including direct, indirect, special,
-incidental and consequential damages, such as lost profits;
-
-
iii) states that any provisions which differ from this
-Agreement are offered by that Contributor alone and not by any other
-party; and
-
-
iv) states that source code for the Program is available
-from such Contributor, and informs licensees how to obtain it in a
-reasonable manner on or through a medium customarily used for software
-exchange.
-
-
When the Program is made available in source code form:
-
-
a) it must be made available under this Agreement; and
-
-
b) a copy of this Agreement must be included with each
-copy of the Program.
-
-
Contributors may not remove or alter any copyright notices contained
-within the Program.
-
-
Each Contributor must identify itself as the originator of its
-Contribution, if any, in a manner that reasonably allows subsequent
-Recipients to identify the originator of the Contribution.
-
-
4. COMMERCIAL DISTRIBUTION
-
-
Commercial distributors of software may accept certain
-responsibilities with respect to end users, business partners and the
-like. While this license is intended to facilitate the commercial use of
-the Program, the Contributor who includes the Program in a commercial
-product offering should do so in a manner which does not create
-potential liability for other Contributors. Therefore, if a Contributor
-includes the Program in a commercial product offering, such Contributor
-("Commercial Contributor") hereby agrees to defend and
-indemnify every other Contributor ("Indemnified Contributor")
-against any losses, damages and costs (collectively "Losses")
-arising from claims, lawsuits and other legal actions brought by a third
-party against the Indemnified Contributor to the extent caused by the
-acts or omissions of such Commercial Contributor in connection with its
-distribution of the Program in a commercial product offering. The
-obligations in this section do not apply to any claims or Losses
-relating to any actual or alleged intellectual property infringement. In
-order to qualify, an Indemnified Contributor must: a) promptly notify
-the Commercial Contributor in writing of such claim, and b) allow the
-Commercial Contributor to control, and cooperate with the Commercial
-Contributor in, the defense and any related settlement negotiations. The
-Indemnified Contributor may participate in any such claim at its own
-expense.
-
-
For example, a Contributor might include the Program in a commercial
-product offering, Product X. That Contributor is then a Commercial
-Contributor. If that Commercial Contributor then makes performance
-claims, or offers warranties related to Product X, those performance
-claims and warranties are such Commercial Contributor's responsibility
-alone. Under this section, the Commercial Contributor would have to
-defend claims against the other Contributors related to those
-performance claims and warranties, and if a court requires any other
-Contributor to pay any damages as a result, the Commercial Contributor
-must pay those damages.
-
-
5. NO WARRANTY
-
-
EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS
-PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS
-OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION,
-ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY
-OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely
-responsible for determining the appropriateness of using and
-distributing the Program and assumes all risks associated with its
-exercise of rights under this Agreement , including but not limited to
-the risks and costs of program errors, compliance with applicable laws,
-damage to or loss of data, programs or equipment, and unavailability or
-interruption of operations.
-
-
6. DISCLAIMER OF LIABILITY
-
-
EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT
-NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT,
-INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING
-WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF
-LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR
-DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED
-HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
-
-
7. GENERAL
-
-
If any provision of this Agreement is invalid or unenforceable under
-applicable law, it shall not affect the validity or enforceability of
-the remainder of the terms of this Agreement, and without further action
-by the parties hereto, such provision shall be reformed to the minimum
-extent necessary to make such provision valid and enforceable.
-
-
If Recipient institutes patent litigation against any entity
-(including a cross-claim or counterclaim in a lawsuit) alleging that the
-Program itself (excluding combinations of the Program with other
-software or hardware) infringes such Recipient's patent(s), then such
-Recipient's rights granted under Section 2(b) shall terminate as of the
-date such litigation is filed.
-
-
All Recipient's rights under this Agreement shall terminate if it
-fails to comply with any of the material terms or conditions of this
-Agreement and does not cure such failure in a reasonable period of time
-after becoming aware of such noncompliance. If all Recipient's rights
-under this Agreement terminate, Recipient agrees to cease use and
-distribution of the Program as soon as reasonably practicable. However,
-Recipient's obligations under this Agreement and any licenses granted by
-Recipient relating to the Program shall continue and survive.
-
-
Everyone is permitted to copy and distribute copies of this
-Agreement, but in order to avoid inconsistency the Agreement is
-copyrighted and may only be modified in the following manner. The
-Agreement Steward reserves the right to publish new versions (including
-revisions) of this Agreement from time to time. No one other than the
-Agreement Steward has the right to modify this Agreement. The Eclipse
-Foundation is the initial Agreement Steward. The Eclipse Foundation may
-assign the responsibility to serve as the Agreement Steward to a
-suitable separate entity. Each new version of the Agreement will be
-given a distinguishing version number. The Program (including
-Contributions) may always be distributed subject to the version of the
-Agreement under which it was received. In addition, after a new version
-of the Agreement is published, Contributor may elect to distribute the
-Program (including its Contributions) under the new version. Except as
-expressly stated in Sections 2(a) and 2(b) above, Recipient receives no
-rights or licenses to the intellectual property of any Contributor under
-this Agreement, whether expressly, by implication, estoppel or
-otherwise. All rights in the Program not expressly granted under this
-Agreement are reserved.
-
-
This Agreement is governed by the laws of the State of New York and
-the intellectual property laws of the United States of America. No party
-to this Agreement will bring a legal action under this Agreement more
-than one year after the cause of action arose. Each party waives its
-rights to a jury trial in any resulting litigation.
-
-
-
-
\ No newline at end of file
diff --git a/features/org.eclipse.emf.eef.codegen.richtext-feature/feature.properties b/features/org.eclipse.emf.eef.codegen.richtext-feature/feature.properties
deleted file mode 100644
index 0434212d8..000000000
--- a/features/org.eclipse.emf.eef.codegen.richtext-feature/feature.properties
+++ /dev/null
@@ -1,147 +0,0 @@
-###############################################################################
-# Copyright (c) 2008, 2012 Obeo.
-# 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:
-# Obeo - initial API and implementation
-###############################################################################
-providerName=Eclipse Modeling Project
-featureName=Extended Editing Framework - Richtext widget Generation
-modelingUpdateSiteName=Eclipse Modeling Project Updates
-description=Extended Editing Framework - \n\
-this includes EPF richtext widget.
-
-# "licenseURL" property - URL of the "Feature License"
-# do not translate value - just change to point to a locale-specific HTML page
-licenseURL=license.html
-
-# "license" property - text of the "Feature Update License"
-# should be plain text version of license agreement pointed to be "licenseURL"
-license=\
-Eclipse Foundation Software User Agreement\n\
-February 1, 2011\n\
-\n\
-Usage Of Content\n\
-\n\
-THE ECLIPSE FOUNDATION MAKES AVAILABLE SOFTWARE, DOCUMENTATION, INFORMATION AND/OR\n\
-OTHER MATERIALS FOR OPEN SOURCE PROJECTS (COLLECTIVELY "CONTENT").\n\
-USE OF THE CONTENT IS GOVERNED BY THE TERMS AND CONDITIONS OF THIS\n\
-AGREEMENT AND/OR THE TERMS AND CONDITIONS OF LICENSE AGREEMENTS OR\n\
-NOTICES INDICATED OR REFERENCED BELOW. BY USING THE CONTENT, YOU\n\
-AGREE THAT YOUR USE OF THE CONTENT IS GOVERNED BY THIS AGREEMENT\n\
-AND/OR THE TERMS AND CONDITIONS OF ANY APPLICABLE LICENSE AGREEMENTS\n\
-OR NOTICES INDICATED OR REFERENCED BELOW. IF YOU DO NOT AGREE TO THE\n\
-TERMS AND CONDITIONS OF THIS AGREEMENT AND THE TERMS AND CONDITIONS\n\
-OF ANY APPLICABLE LICENSE AGREEMENTS OR NOTICES INDICATED OR REFERENCED\n\
-BELOW, THEN YOU MAY NOT USE THE CONTENT.\n\
-\n\
-Applicable Licenses\n\
-\n\
-Unless otherwise indicated, all Content made available by the\n\
-Eclipse Foundation is provided to you under the terms and conditions of\n\
-the Eclipse Public License Version 1.0 ("EPL"). A copy of the EPL is\n\
-provided with this Content and is also available at http://www.eclipse.org/legal/epl-v10.html.\n\
-For purposes of the EPL, "Program" will mean the Content.\n\
-\n\
-Content includes, but is not limited to, source code, object code,\n\
-documentation and other files maintained in the Eclipse Foundation source code\n\
-repository ("Repository") in software modules ("Modules") and made available\n\
-as downloadable archives ("Downloads").\n\
-\n\
- - Content may be structured and packaged into modules to facilitate delivering,\n\
- extending, and upgrading the Content. Typical modules may include plug-ins ("Plug-ins"),\n\
- plug-in fragments ("Fragments"), and features ("Features").\n\
- - Each Plug-in or Fragment may be packaged as a sub-directory or JAR (Java(TM) ARchive)\n\
- in a directory named "plugins".\n\
- - A Feature is a bundle of one or more Plug-ins and/or Fragments and associated material.\n\
- Each Feature may be packaged as a sub-directory in a directory named "features".\n\
- Within a Feature, files named "feature.xml" may contain a list of the names and version\n\
- numbers of the Plug-ins and/or Fragments associated with that Feature.\n\
- - Features may also include other Features ("Included Features"). Within a Feature, files\n\
- named "feature.xml" may contain a list of the names and version numbers of Included Features.\n\
-\n\
-The terms and conditions governing Plug-ins and Fragments should be\n\
-contained in files named "about.html" ("Abouts"). The terms and\n\
-conditions governing Features and Included Features should be contained\n\
-in files named "license.html" ("Feature Licenses"). Abouts and Feature\n\
-Licenses may be located in any directory of a Download or Module\n\
-including, but not limited to the following locations:\n\
-\n\
- - The top-level (root) directory\n\
- - Plug-in and Fragment directories\n\
- - Inside Plug-ins and Fragments packaged as JARs\n\
- - Sub-directories of the directory named "src" of certain Plug-ins\n\
- - Feature directories\n\
-\n\
-Note: if a Feature made available by the Eclipse Foundation is installed using the\n\
-Provisioning Technology (as defined below), you must agree to a license ("Feature \n\
-Update License") during the installation process. If the Feature contains\n\
-Included Features, the Feature Update License should either provide you\n\
-with the terms and conditions governing the Included Features or inform\n\
-you where you can locate them. Feature Update Licenses may be found in\n\
-the "license" property of files named "feature.properties" found within a Feature.\n\
-Such Abouts, Feature Licenses, and Feature Update Licenses contain the\n\
-terms and conditions (or references to such terms and conditions) that\n\
-govern your use of the associated Content in that directory.\n\
-\n\
-THE ABOUTS, FEATURE LICENSES, AND FEATURE UPDATE LICENSES MAY REFER\n\
-TO THE EPL OR OTHER LICENSE AGREEMENTS, NOTICES OR TERMS AND CONDITIONS.\n\
-SOME OF THESE OTHER LICENSE AGREEMENTS MAY INCLUDE (BUT ARE NOT LIMITED TO):\n\
-\n\
- - Eclipse Distribution License Version 1.0 (available at http://www.eclipse.org/licenses/edl-v1.0.html)\n\
- - Common Public License Version 1.0 (available at http://www.eclipse.org/legal/cpl-v10.html)\n\
- - Apache Software License 1.1 (available at http://www.apache.org/licenses/LICENSE)\n\
- - Apache Software License 2.0 (available at http://www.apache.org/licenses/LICENSE-2.0)\n\
- - Metro Link Public License 1.00 (available at http://www.opengroup.org/openmotif/supporters/metrolink/license.html)\n\
- - Mozilla Public License Version 1.1 (available at http://www.mozilla.org/MPL/MPL-1.1.html)\n\
-\n\
-IT IS YOUR OBLIGATION TO READ AND ACCEPT ALL SUCH TERMS AND CONDITIONS PRIOR\n\
-TO USE OF THE CONTENT. If no About, Feature License, or Feature Update License\n\
-is provided, please contact the Eclipse Foundation to determine what terms and conditions\n\
-govern that particular Content.\n\
-\n\
-\n\Use of Provisioning Technology\n\
-\n\
-The Eclipse Foundation makes available provisioning software, examples of which include,\n\
-but are not limited to, p2 and the Eclipse Update Manager ("Provisioning Technology") for\n\
-the purpose of allowing users to install software, documentation, information and/or\n\
-other materials (collectively "Installable Software"). This capability is provided with\n\
-the intent of allowing such users to install, extend and update Eclipse-based products.\n\
-Information about packaging Installable Software is available at\n\
-http://eclipse.org/equinox/p2/repository_packaging.html ("Specification").\n\
-\n\
-You may use Provisioning Technology to allow other parties to install Installable Software.\n\
-You shall be responsible for enabling the applicable license agreements relating to the\n\
-Installable Software to be presented to, and accepted by, the users of the Provisioning Technology\n\
-in accordance with the Specification. By using Provisioning Technology in such a manner and\n\
-making it available in accordance with the Specification, you further acknowledge your\n\
-agreement to, and the acquisition of all necessary rights to permit the following:\n\
-\n\
- 1. A series of actions may occur ("Provisioning Process") in which a user may execute\n\
- the Provisioning Technology on a machine ("Target Machine") with the intent of installing,\n\
- extending or updating the functionality of an Eclipse-based product.\n\
- 2. During the Provisioning Process, the Provisioning Technology may cause third party\n\
- Installable Software or a portion thereof to be accessed and copied to the Target Machine.\n\
- 3. Pursuant to the Specification, you will provide to the user the terms and conditions that\n\
- govern the use of the Installable Software ("Installable Software Agreement") and such\n\
- Installable Software Agreement shall be accessed from the Target Machine in accordance\n\
- with the Specification. Such Installable Software Agreement must inform the user of the\n\
- terms and conditions that govern the Installable Software and must solicit acceptance by\n\
- the end user in the manner prescribed in such Installable Software Agreement. Upon such\n\
- indication of agreement by the user, the provisioning Technology will complete installation\n\
- of the Installable Software.\n\
-\n\
-Cryptography\n\
-\n\
-Content may contain encryption software. The country in which you are\n\
-currently may have restrictions on the import, possession, and use,\n\
-and/or re-export to another country, of encryption software. BEFORE\n\
-using any encryption software, please check the country's laws,\n\
-regulations and policies concerning the import, possession, or use, and\n\
-re-export of encryption software, to see if this is permitted.\n\
-\n\
-Java and all Java-based trademarks are trademarks of Oracle Corporation in the United States, other countries, or both.\n
-########### end of license property ##########################################
diff --git a/features/org.eclipse.emf.eef.codegen.richtext-feature/feature.xml b/features/org.eclipse.emf.eef.codegen.richtext-feature/feature.xml
deleted file mode 100644
index 468898292..000000000
--- a/features/org.eclipse.emf.eef.codegen.richtext-feature/feature.xml
+++ /dev/null
@@ -1,45 +0,0 @@
-
-
-
-
-
- %description
-
-
-
- Copyright (c) 2011 Obeo.
-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
-
-
-
- %license
-
-
-
-
-
-
-
-
-
diff --git a/features/org.eclipse.emf.eef.codegen.richtext-feature/license.html b/features/org.eclipse.emf.eef.codegen.richtext-feature/license.html
deleted file mode 100644
index a1fe5ea3f..000000000
--- a/features/org.eclipse.emf.eef.codegen.richtext-feature/license.html
+++ /dev/null
@@ -1,116 +0,0 @@
-
-
-
-
-
-Eclipse Foundation Software User Agreement
-
-
-
-
Eclipse Foundation Software User Agreement
-
February 1, 2011
-
-
Usage Of Content
-
-
THE ECLIPSE FOUNDATION MAKES AVAILABLE SOFTWARE, DOCUMENTATION, INFORMATION AND/OR OTHER MATERIALS FOR OPEN SOURCE PROJECTS
- (COLLECTIVELY "CONTENT"). USE OF THE CONTENT IS GOVERNED BY THE TERMS AND CONDITIONS OF THIS AGREEMENT AND/OR THE TERMS AND
- CONDITIONS OF LICENSE AGREEMENTS OR NOTICES INDICATED OR REFERENCED BELOW. BY USING THE CONTENT, YOU AGREE THAT YOUR USE
- OF THE CONTENT IS GOVERNED BY THIS AGREEMENT AND/OR THE TERMS AND CONDITIONS OF ANY APPLICABLE LICENSE AGREEMENTS OR
- NOTICES INDICATED OR REFERENCED BELOW. IF YOU DO NOT AGREE TO THE TERMS AND CONDITIONS OF THIS AGREEMENT AND THE TERMS AND
- CONDITIONS OF ANY APPLICABLE LICENSE AGREEMENTS OR NOTICES INDICATED OR REFERENCED BELOW, THEN YOU MAY NOT USE THE CONTENT.
-
-
Applicable Licenses
-
-
Unless otherwise indicated, all Content made available by the Eclipse Foundation is provided to you under the terms and conditions of the Eclipse Public License Version 1.0
- ("EPL"). A copy of the EPL is provided with this Content and is also available at http://www.eclipse.org/legal/epl-v10.html.
- For purposes of the EPL, "Program" will mean the Content.
-
-
Content includes, but is not limited to, source code, object code, documentation and other files maintained in the Eclipse Foundation source code
- repository ("Repository") in software modules ("Modules") and made available as downloadable archives ("Downloads").
-
-
-
Content may be structured and packaged into modules to facilitate delivering, extending, and upgrading the Content. Typical modules may include plug-ins ("Plug-ins"), plug-in fragments ("Fragments"), and features ("Features").
-
-
Each Plug-in or Fragment may be packaged as a sub-directory or JAR (Java™ ARchive) in a directory named "plugins".
-
A Feature is a bundle of one or more Plug-ins and/or Fragments and associated material. Each Feature may be packaged as a sub-directory in a directory named "features". Within a Feature, files named "feature.xml" may contain a list of the names and version numbers of the Plug-ins
- and/or Fragments associated with that Feature.
-
Features may also include other Features ("Included Features"). Within a Feature, files named "feature.xml" may contain a list of the names and version numbers of Included Features.
-
-
-
-
The terms and conditions governing Plug-ins and Fragments should be contained in files named "about.html" ("Abouts"). The terms and conditions governing Features and
-Included Features should be contained in files named "license.html" ("Feature Licenses"). Abouts and Feature Licenses may be located in any directory of a Download or Module
-including, but not limited to the following locations:
-
-
-
The top-level (root) directory
-
-
Plug-in and Fragment directories
-
Inside Plug-ins and Fragments packaged as JARs
-
Sub-directories of the directory named "src" of certain Plug-ins
-
Feature directories
-
-
-
Note: if a Feature made available by the Eclipse Foundation is installed using the Provisioning Technology (as defined below), you must agree to a license ("Feature Update License") during the
-installation process. If the Feature contains Included Features, the Feature Update License should either provide you with the terms and conditions governing the Included Features or
-inform you where you can locate them. Feature Update Licenses may be found in the "license" property of files named "feature.properties" found within a Feature.
-Such Abouts, Feature Licenses, and Feature Update Licenses contain the terms and conditions (or references to such terms and conditions) that govern your use of the associated Content in
-that directory.
-
-
THE ABOUTS, FEATURE LICENSES, AND FEATURE UPDATE LICENSES MAY REFER TO THE EPL OR OTHER LICENSE AGREEMENTS, NOTICES OR TERMS AND CONDITIONS. SOME OF THESE
-OTHER LICENSE AGREEMENTS MAY INCLUDE (BUT ARE NOT LIMITED TO):
IT IS YOUR OBLIGATION TO READ AND ACCEPT ALL SUCH TERMS AND CONDITIONS PRIOR TO USE OF THE CONTENT. If no About, Feature License, or Feature Update License is provided, please
-contact the Eclipse Foundation to determine what terms and conditions govern that particular Content.
-
-
-
Use of Provisioning Technology
-
-
The Eclipse Foundation makes available provisioning software, examples of which include, but are not limited to, p2 and the Eclipse
- Update Manager ("Provisioning Technology") for the purpose of allowing users to install software, documentation, information and/or
- other materials (collectively "Installable Software"). This capability is provided with the intent of allowing such users to
- install, extend and update Eclipse-based products. Information about packaging Installable Software is available at http://eclipse.org/equinox/p2/repository_packaging.html
-
- ("Specification").
-
-
You may use Provisioning Technology to allow other parties to install Installable Software. You shall be responsible for enabling the
- applicable license agreements relating to the Installable Software to be presented to, and accepted by, the users of the Provisioning Technology
- in accordance with the Specification. By using Provisioning Technology in such a manner and making it available in accordance with the
- Specification, you further acknowledge your agreement to, and the acquisition of all necessary rights to permit the following:
-
-
-
A series of actions may occur ("Provisioning Process") in which a user may execute the Provisioning Technology
- on a machine ("Target Machine") with the intent of installing, extending or updating the functionality of an Eclipse-based
- product.
-
-
During the Provisioning Process, the Provisioning Technology may cause third party Installable Software or a portion thereof to be
- accessed and copied to the Target Machine.
-
Pursuant to the Specification, you will provide to the user the terms and conditions that govern the use of the Installable
- Software ("Installable Software Agreement") and such Installable Software Agreement shall be accessed from the Target
- Machine in accordance with the Specification. Such Installable Software Agreement must inform the user of the terms and conditions that govern
- the Installable Software and must solicit acceptance by the end user in the manner prescribed in such Installable Software Agreement. Upon such
- indication of agreement by the user, the provisioning Technology will complete installation of the Installable Software.
-
-
-
Cryptography
-
-
Content may contain encryption software. The country in which you are currently may have restrictions on the import, possession, and use, and/or re-export to
- another country, of encryption software. BEFORE using any encryption software, please check the country's laws, regulations and policies concerning the import,
- possession, or use, and re-export of encryption software, to see if this is permitted.
-
-
Java and all Java-based trademarks are trademarks of Oracle Corporation in the United States, other countries, or both.
-
-
-
diff --git a/features/org.eclipse.emf.eef.codegen.richtext-feature/license.txt b/features/org.eclipse.emf.eef.codegen.richtext-feature/license.txt
deleted file mode 100644
index 24937b64c..000000000
--- a/features/org.eclipse.emf.eef.codegen.richtext-feature/license.txt
+++ /dev/null
@@ -1,87 +0,0 @@
-Eclipse Public License - v 1.0
-
-THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE PUBLIC LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT.
-
-1. DEFINITIONS
-
-"Contribution" means:
-
-a) in the case of the initial Contributor, the initial code and documentation distributed under this Agreement, and
-b) in the case of each subsequent Contributor:
-
-i) changes to the Program, and
-
-ii) additions to the Program;
-
-where such changes and/or additions to the Program originate from and are distributed by that particular Contributor. A Contribution 'originates' from a Contributor if it was added to the Program by such Contributor itself or anyone acting on such Contributor's behalf. Contributions do not include additions to the Program which: (i) are separate modules of software distributed in conjunction with the Program under their own license agreement, and (ii) are not derivative works of the Program.
-
-"Contributor" means any person or entity that distributes the Program.
-
-"Licensed Patents " mean patent claims licensable by a Contributor which are necessarily infringed by the use or sale of its Contribution alone or when combined with the Program.
-
-"Program" means the Contributions distributed in accordance with this Agreement.
-
-"Recipient" means anyone who receives the Program under this Agreement, including all Contributors.
-
-2. GRANT OF RIGHTS
-
-a) Subject to the terms of this Agreement, each Contributor hereby grants Recipient a non-exclusive, worldwide, royalty-free copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, distribute and sublicense the Contribution of such Contributor, if any, and such derivative works, in source code and object code form.
-
-b) Subject to the terms of this Agreement, each Contributor hereby grants Recipient a non-exclusive, worldwide, royalty-free patent license under Licensed Patents to make, use, sell, offer to sell, import and otherwise transfer the Contribution of such Contributor, if any, in source code and object code form. This patent license shall apply to the combination of the Contribution and the Program if, at the time the Contribution is added by the Contributor, such addition of the Contribution causes such combination to be covered by the Licensed Patents. The patent license shall not apply to any other combinations which include the Contribution. No hardware per se is licensed hereunder.
-
-c) Recipient understands that although each Contributor grants the licenses to its Contributions set forth herein, no assurances are provided by any Contributor that the Program does not infringe the patent or other intellectual property rights of any other entity. Each Contributor disclaims any liability to Recipient for claims brought by any other entity based on infringement of intellectual property rights or otherwise. As a condition to exercising the rights and licenses granted hereunder, each Recipient hereby assumes sole responsibility to secure any other intellectual property rights needed, if any. For example, if a third party patent license is required to allow Recipient to distribute the Program, it is Recipient's responsibility to acquire that license before distributing the Program.
-
-d) Each Contributor represents that to its knowledge it has sufficient copyright rights in its Contribution, if any, to grant the copyright license set forth in this Agreement.
-
-3. REQUIREMENTS
-
-A Contributor may choose to distribute the Program in object code form under its own license agreement, provided that:
-
-a) it complies with the terms and conditions of this Agreement; and
-
-b) its license agreement:
-
-i) effectively disclaims on behalf of all Contributors all warranties and conditions, express and implied, including warranties or conditions of title and non-infringement, and implied warranties or conditions of merchantability and fitness for a particular purpose;
-
-ii) effectively excludes on behalf of all Contributors all liability for damages, including direct, indirect, special, incidental and consequential damages, such as lost profits;
-
-iii) states that any provisions which differ from this Agreement are offered by that Contributor alone and not by any other party; and
-
-iv) states that source code for the Program is available from such Contributor, and informs licensees how to obtain it in a reasonable manner on or through a medium customarily used for software exchange.
-
-When the Program is made available in source code form:
-
-a) it must be made available under this Agreement; and
-
-b) a copy of this Agreement must be included with each copy of the Program.
-
-Contributors may not remove or alter any copyright notices contained within the Program.
-
-Each Contributor must identify itself as the originator of its Contribution, if any, in a manner that reasonably allows subsequent Recipients to identify the originator of the Contribution.
-
-4. COMMERCIAL DISTRIBUTION
-
-Commercial distributors of software may accept certain responsibilities with respect to end users, business partners and the like. While this license is intended to facilitate the commercial use of the Program, the Contributor who includes the Program in a commercial product offering should do so in a manner which does not create potential liability for other Contributors. Therefore, if a Contributor includes the Program in a commercial product offering, such Contributor ("Commercial Contributor") hereby agrees to defend and indemnify every other Contributor ("Indemnified Contributor") against any losses, damages and costs (collectively "Losses") arising from claims, lawsuits and other legal actions brought by a third party against the Indemnified Contributor to the extent caused by the acts or omissions of such Commercial Contributor in connection with its distribution of the Program in a commercial product offering. The obligations in this section do not apply to any claims or Losses relating to any actual or alleged intellectual property infringement. In order to qualify, an Indemnified Contributor must: a) promptly notify the Commercial Contributor in writing of such claim, and b) allow the Commercial Contributor to control, and cooperate with the Commercial Contributor in, the defense and any related settlement negotiations. The Indemnified Contributor may participate in any such claim at its own expense.
-
-For example, a Contributor might include the Program in a commercial product offering, Product X. That Contributor is then a Commercial Contributor. If that Commercial Contributor then makes performance claims, or offers warranties related to Product X, those performance claims and warranties are such Commercial Contributor's responsibility alone. Under this section, the Commercial Contributor would have to defend claims against the other Contributors related to those performance claims and warranties, and if a court requires any other Contributor to pay any damages as a result, the Commercial Contributor must pay those damages.
-
-5. NO WARRANTY
-
-EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely responsible for determining the appropriateness of using and distributing the Program and assumes all risks associated with its exercise of rights under this Agreement , including but not limited to the risks and costs of program errors, compliance with applicable laws, damage to or loss of data, programs or equipment, and unavailability or interruption of operations.
-
-6. DISCLAIMER OF LIABILITY
-
-EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
-
-7. GENERAL
-
-If any provision of this Agreement is invalid or unenforceable under applicable law, it shall not affect the validity or enforceability of the remainder of the terms of this Agreement, and without further action by the parties hereto, such provision shall be reformed to the minimum extent necessary to make such provision valid and enforceable.
-
-If Recipient institutes patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Program itself (excluding combinations of the Program with other software or hardware) infringes such Recipient's patent(s), then such Recipient's rights granted under Section 2(b) shall terminate as of the date such litigation is filed.
-
-All Recipient's rights under this Agreement shall terminate if it fails to comply with any of the material terms or conditions of this Agreement and does not cure such failure in a reasonable period of time after becoming aware of such noncompliance. If all Recipient's rights under this Agreement terminate, Recipient agrees to cease use and distribution of the Program as soon as reasonably practicable. However, Recipient's obligations under this Agreement and any licenses granted by Recipient relating to the Program shall continue and survive.
-
-Everyone is permitted to copy and distribute copies of this Agreement, but in order to avoid inconsistency the Agreement is copyrighted and may only be modified in the following manner. The Agreement Steward reserves the right to publish new versions (including revisions) of this Agreement from time to time. No one other than the Agreement Steward has the right to modify this Agreement. The Eclipse Foundation is the initial Agreement Steward. The Eclipse Foundation may assign the responsibility to serve as the Agreement Steward to a suitable separate entity. Each new version of the Agreement will be given a distinguishing version number. The Program (including Contributions) may always be distributed subject to the version of the Agreement under which it was received. In addition, after a new version of the Agreement is published, Contributor may elect to distribute the Program (including its Contributions) under the new version. Except as expressly stated in Sections 2(a) and 2(b) above, Recipient receives no rights or licenses to the intellectual property of any Contributor under this Agreement, whether expressly, by implication, estoppel or otherwise. All rights in the Program not expressly granted under this Agreement are reserved.
-
-This Agreement is governed by the laws of the State of New York and the intellectual property laws of the United States of America. No party to this Agreement will bring a legal action under this Agreement more than one year after the cause of action arose. Each party waives its rights to a jury trial in any resulting litigation.
-
diff --git a/features/org.eclipse.emf.eef.codegen.richtext-feature/pom.xml b/features/org.eclipse.emf.eef.codegen.richtext-feature/pom.xml
deleted file mode 100644
index 6d1dd00c9..000000000
--- a/features/org.eclipse.emf.eef.codegen.richtext-feature/pom.xml
+++ /dev/null
@@ -1,29 +0,0 @@
-
-
-
-
- 4.0.0
-
-
- org.eclipse.emf
- org.eclipse.emf.eef.releng.parent
- ../../releng/org.eclipse.emf.eef.releng.parent
- 1.5.2-SNAPSHOT
-
-
- org.eclipse.emf.eef.codegen.richtext-feature
- eclipse-feature
-
- EEF RichText Codegen Feature
-
-
diff --git a/features/org.eclipse.emf.eef.codegen.uml.feature/.gitignore b/features/org.eclipse.emf.eef.codegen.uml.feature/.gitignore
deleted file mode 100644
index eb5a316cb..000000000
--- a/features/org.eclipse.emf.eef.codegen.uml.feature/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-target
diff --git a/features/org.eclipse.emf.eef.codegen.uml.feature/.project b/features/org.eclipse.emf.eef.codegen.uml.feature/.project
deleted file mode 100644
index 556f115a7..000000000
--- a/features/org.eclipse.emf.eef.codegen.uml.feature/.project
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
- org.eclipse.emf.eef.codegen.uml.feature
-
-
-
-
-
- org.eclipse.pde.FeatureBuilder
-
-
-
-
-
- org.eclipse.pde.FeatureNature
-
-
diff --git a/features/org.eclipse.emf.eef.codegen.uml.feature/build.properties b/features/org.eclipse.emf.eef.codegen.uml.feature/build.properties
deleted file mode 100644
index 7aa629d6d..000000000
--- a/features/org.eclipse.emf.eef.codegen.uml.feature/build.properties
+++ /dev/null
@@ -1,20 +0,0 @@
-###############################################################################
-# Copyright (c) 2008, 2012 Obeo.
-# 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:
-# Obeo - initial API and implementation
-###############################################################################
-bin.includes = feature.xml,\
- feature.properties,\
- license.html,\
- license.txt,\
- epl-v10.html
-src.includes = feature.properties,\
- license.html,\
- license.txt,\
- feature.xml,\
- epl-v10.html
diff --git a/features/org.eclipse.emf.eef.codegen.uml.feature/epl-v10.html b/features/org.eclipse.emf.eef.codegen.uml.feature/epl-v10.html
deleted file mode 100755
index 0d34dd06a..000000000
--- a/features/org.eclipse.emf.eef.codegen.uml.feature/epl-v10.html
+++ /dev/null
@@ -1,262 +0,0 @@
-
-
-
-
-
-
-Eclipse Public License - Version 1.0
-
-
-
-
-
-
-
Eclipse Public License - v 1.0
-
-
THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE
-PUBLIC LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR
-DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS
-AGREEMENT.
-
-
1. DEFINITIONS
-
-
"Contribution" means:
-
-
a) in the case of the initial Contributor, the initial
-code and documentation distributed under this Agreement, and
-
b) in the case of each subsequent Contributor:
-
-
i) changes to the Program, and
-
ii) additions to the Program;
-
where such changes and/or additions to the Program
-originate from and are distributed by that particular Contributor. A
-Contribution 'originates' from a Contributor if it was added to the
-Program by such Contributor itself or anyone acting on such
-Contributor's behalf. Contributions do not include additions to the
-Program which: (i) are separate modules of software distributed in
-conjunction with the Program under their own license agreement, and (ii)
-are not derivative works of the Program.
-
-
"Contributor" means any person or entity that distributes
-the Program.
-
-
"Licensed Patents" mean patent claims licensable by a
-Contributor which are necessarily infringed by the use or sale of its
-Contribution alone or when combined with the Program.
-
-
"Program" means the Contributions distributed in accordance
-with this Agreement.
-
-
"Recipient" means anyone who receives the Program under
-this Agreement, including all Contributors.
-
-
2. GRANT OF RIGHTS
-
-
a) Subject to the terms of this Agreement, each
-Contributor hereby grants Recipient a non-exclusive, worldwide,
-royalty-free copyright license to reproduce, prepare derivative works
-of, publicly display, publicly perform, distribute and sublicense the
-Contribution of such Contributor, if any, and such derivative works, in
-source code and object code form.
-
-
b) Subject to the terms of this Agreement, each
-Contributor hereby grants Recipient a non-exclusive, worldwide,
-royalty-free patent license under Licensed Patents to make, use, sell,
-offer to sell, import and otherwise transfer the Contribution of such
-Contributor, if any, in source code and object code form. This patent
-license shall apply to the combination of the Contribution and the
-Program if, at the time the Contribution is added by the Contributor,
-such addition of the Contribution causes such combination to be covered
-by the Licensed Patents. The patent license shall not apply to any other
-combinations which include the Contribution. No hardware per se is
-licensed hereunder.
-
-
c) Recipient understands that although each Contributor
-grants the licenses to its Contributions set forth herein, no assurances
-are provided by any Contributor that the Program does not infringe the
-patent or other intellectual property rights of any other entity. Each
-Contributor disclaims any liability to Recipient for claims brought by
-any other entity based on infringement of intellectual property rights
-or otherwise. As a condition to exercising the rights and licenses
-granted hereunder, each Recipient hereby assumes sole responsibility to
-secure any other intellectual property rights needed, if any. For
-example, if a third party patent license is required to allow Recipient
-to distribute the Program, it is Recipient's responsibility to acquire
-that license before distributing the Program.
-
-
d) Each Contributor represents that to its knowledge it
-has sufficient copyright rights in its Contribution, if any, to grant
-the copyright license set forth in this Agreement.
-
-
3. REQUIREMENTS
-
-
A Contributor may choose to distribute the Program in object code
-form under its own license agreement, provided that:
-
-
a) it complies with the terms and conditions of this
-Agreement; and
-
-
b) its license agreement:
-
-
i) effectively disclaims on behalf of all Contributors
-all warranties and conditions, express and implied, including warranties
-or conditions of title and non-infringement, and implied warranties or
-conditions of merchantability and fitness for a particular purpose;
-
-
ii) effectively excludes on behalf of all Contributors
-all liability for damages, including direct, indirect, special,
-incidental and consequential damages, such as lost profits;
-
-
iii) states that any provisions which differ from this
-Agreement are offered by that Contributor alone and not by any other
-party; and
-
-
iv) states that source code for the Program is available
-from such Contributor, and informs licensees how to obtain it in a
-reasonable manner on or through a medium customarily used for software
-exchange.
-
-
When the Program is made available in source code form:
-
-
a) it must be made available under this Agreement; and
-
-
b) a copy of this Agreement must be included with each
-copy of the Program.
-
-
Contributors may not remove or alter any copyright notices contained
-within the Program.
-
-
Each Contributor must identify itself as the originator of its
-Contribution, if any, in a manner that reasonably allows subsequent
-Recipients to identify the originator of the Contribution.
-
-
4. COMMERCIAL DISTRIBUTION
-
-
Commercial distributors of software may accept certain
-responsibilities with respect to end users, business partners and the
-like. While this license is intended to facilitate the commercial use of
-the Program, the Contributor who includes the Program in a commercial
-product offering should do so in a manner which does not create
-potential liability for other Contributors. Therefore, if a Contributor
-includes the Program in a commercial product offering, such Contributor
-("Commercial Contributor") hereby agrees to defend and
-indemnify every other Contributor ("Indemnified Contributor")
-against any losses, damages and costs (collectively "Losses")
-arising from claims, lawsuits and other legal actions brought by a third
-party against the Indemnified Contributor to the extent caused by the
-acts or omissions of such Commercial Contributor in connection with its
-distribution of the Program in a commercial product offering. The
-obligations in this section do not apply to any claims or Losses
-relating to any actual or alleged intellectual property infringement. In
-order to qualify, an Indemnified Contributor must: a) promptly notify
-the Commercial Contributor in writing of such claim, and b) allow the
-Commercial Contributor to control, and cooperate with the Commercial
-Contributor in, the defense and any related settlement negotiations. The
-Indemnified Contributor may participate in any such claim at its own
-expense.
-
-
For example, a Contributor might include the Program in a commercial
-product offering, Product X. That Contributor is then a Commercial
-Contributor. If that Commercial Contributor then makes performance
-claims, or offers warranties related to Product X, those performance
-claims and warranties are such Commercial Contributor's responsibility
-alone. Under this section, the Commercial Contributor would have to
-defend claims against the other Contributors related to those
-performance claims and warranties, and if a court requires any other
-Contributor to pay any damages as a result, the Commercial Contributor
-must pay those damages.
-
-
5. NO WARRANTY
-
-
EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS
-PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS
-OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION,
-ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY
-OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely
-responsible for determining the appropriateness of using and
-distributing the Program and assumes all risks associated with its
-exercise of rights under this Agreement , including but not limited to
-the risks and costs of program errors, compliance with applicable laws,
-damage to or loss of data, programs or equipment, and unavailability or
-interruption of operations.
-
-
6. DISCLAIMER OF LIABILITY
-
-
EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT
-NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT,
-INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING
-WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF
-LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR
-DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED
-HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
-
-
7. GENERAL
-
-
If any provision of this Agreement is invalid or unenforceable under
-applicable law, it shall not affect the validity or enforceability of
-the remainder of the terms of this Agreement, and without further action
-by the parties hereto, such provision shall be reformed to the minimum
-extent necessary to make such provision valid and enforceable.
-
-
If Recipient institutes patent litigation against any entity
-(including a cross-claim or counterclaim in a lawsuit) alleging that the
-Program itself (excluding combinations of the Program with other
-software or hardware) infringes such Recipient's patent(s), then such
-Recipient's rights granted under Section 2(b) shall terminate as of the
-date such litigation is filed.
-
-
All Recipient's rights under this Agreement shall terminate if it
-fails to comply with any of the material terms or conditions of this
-Agreement and does not cure such failure in a reasonable period of time
-after becoming aware of such noncompliance. If all Recipient's rights
-under this Agreement terminate, Recipient agrees to cease use and
-distribution of the Program as soon as reasonably practicable. However,
-Recipient's obligations under this Agreement and any licenses granted by
-Recipient relating to the Program shall continue and survive.
-
-
Everyone is permitted to copy and distribute copies of this
-Agreement, but in order to avoid inconsistency the Agreement is
-copyrighted and may only be modified in the following manner. The
-Agreement Steward reserves the right to publish new versions (including
-revisions) of this Agreement from time to time. No one other than the
-Agreement Steward has the right to modify this Agreement. The Eclipse
-Foundation is the initial Agreement Steward. The Eclipse Foundation may
-assign the responsibility to serve as the Agreement Steward to a
-suitable separate entity. Each new version of the Agreement will be
-given a distinguishing version number. The Program (including
-Contributions) may always be distributed subject to the version of the
-Agreement under which it was received. In addition, after a new version
-of the Agreement is published, Contributor may elect to distribute the
-Program (including its Contributions) under the new version. Except as
-expressly stated in Sections 2(a) and 2(b) above, Recipient receives no
-rights or licenses to the intellectual property of any Contributor under
-this Agreement, whether expressly, by implication, estoppel or
-otherwise. All rights in the Program not expressly granted under this
-Agreement are reserved.
-
-
This Agreement is governed by the laws of the State of New York and
-the intellectual property laws of the United States of America. No party
-to this Agreement will bring a legal action under this Agreement more
-than one year after the cause of action arose. Each party waives its
-rights to a jury trial in any resulting litigation.
-
-
-
-
\ No newline at end of file
diff --git a/features/org.eclipse.emf.eef.codegen.uml.feature/feature.properties b/features/org.eclipse.emf.eef.codegen.uml.feature/feature.properties
deleted file mode 100644
index c2c001676..000000000
--- a/features/org.eclipse.emf.eef.codegen.uml.feature/feature.properties
+++ /dev/null
@@ -1,147 +0,0 @@
-###############################################################################
-# Copyright (c) 2008, 2012 Obeo.
-# 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:
-# Obeo - initial API and implementation
-###############################################################################
-providerName=Eclipse Modeling Project
-featureName=Extended Editing Framework - EEF Generation for UML
-modelingUpdateSiteName=Eclipse Modeling Project Updates
-description=Extended Editing Framework - EEF Generation for UML. \
-This plugin contains the necessary acceleo templates and code generate EEF specifically for UML.
-
-# "licenseURL" property - URL of the "Feature License"
-# do not translate value - just change to point to a locale-specific HTML page
-licenseURL=license.html
-
-# "license" property - text of the "Feature Update License"
-# should be plain text version of license agreement pointed to be "licenseURL"
-license=\
-Eclipse Foundation Software User Agreement\n\
-February 1, 2011\n\
-\n\
-Usage Of Content\n\
-\n\
-THE ECLIPSE FOUNDATION MAKES AVAILABLE SOFTWARE, DOCUMENTATION, INFORMATION AND/OR\n\
-OTHER MATERIALS FOR OPEN SOURCE PROJECTS (COLLECTIVELY "CONTENT").\n\
-USE OF THE CONTENT IS GOVERNED BY THE TERMS AND CONDITIONS OF THIS\n\
-AGREEMENT AND/OR THE TERMS AND CONDITIONS OF LICENSE AGREEMENTS OR\n\
-NOTICES INDICATED OR REFERENCED BELOW. BY USING THE CONTENT, YOU\n\
-AGREE THAT YOUR USE OF THE CONTENT IS GOVERNED BY THIS AGREEMENT\n\
-AND/OR THE TERMS AND CONDITIONS OF ANY APPLICABLE LICENSE AGREEMENTS\n\
-OR NOTICES INDICATED OR REFERENCED BELOW. IF YOU DO NOT AGREE TO THE\n\
-TERMS AND CONDITIONS OF THIS AGREEMENT AND THE TERMS AND CONDITIONS\n\
-OF ANY APPLICABLE LICENSE AGREEMENTS OR NOTICES INDICATED OR REFERENCED\n\
-BELOW, THEN YOU MAY NOT USE THE CONTENT.\n\
-\n\
-Applicable Licenses\n\
-\n\
-Unless otherwise indicated, all Content made available by the\n\
-Eclipse Foundation is provided to you under the terms and conditions of\n\
-the Eclipse Public License Version 1.0 ("EPL"). A copy of the EPL is\n\
-provided with this Content and is also available at http://www.eclipse.org/legal/epl-v10.html.\n\
-For purposes of the EPL, "Program" will mean the Content.\n\
-\n\
-Content includes, but is not limited to, source code, object code,\n\
-documentation and other files maintained in the Eclipse Foundation source code\n\
-repository ("Repository") in software modules ("Modules") and made available\n\
-as downloadable archives ("Downloads").\n\
-\n\
- - Content may be structured and packaged into modules to facilitate delivering,\n\
- extending, and upgrading the Content. Typical modules may include plug-ins ("Plug-ins"),\n\
- plug-in fragments ("Fragments"), and features ("Features").\n\
- - Each Plug-in or Fragment may be packaged as a sub-directory or JAR (Java(TM) ARchive)\n\
- in a directory named "plugins".\n\
- - A Feature is a bundle of one or more Plug-ins and/or Fragments and associated material.\n\
- Each Feature may be packaged as a sub-directory in a directory named "features".\n\
- Within a Feature, files named "feature.xml" may contain a list of the names and version\n\
- numbers of the Plug-ins and/or Fragments associated with that Feature.\n\
- - Features may also include other Features ("Included Features"). Within a Feature, files\n\
- named "feature.xml" may contain a list of the names and version numbers of Included Features.\n\
-\n\
-The terms and conditions governing Plug-ins and Fragments should be\n\
-contained in files named "about.html" ("Abouts"). The terms and\n\
-conditions governing Features and Included Features should be contained\n\
-in files named "license.html" ("Feature Licenses"). Abouts and Feature\n\
-Licenses may be located in any directory of a Download or Module\n\
-including, but not limited to the following locations:\n\
-\n\
- - The top-level (root) directory\n\
- - Plug-in and Fragment directories\n\
- - Inside Plug-ins and Fragments packaged as JARs\n\
- - Sub-directories of the directory named "src" of certain Plug-ins\n\
- - Feature directories\n\
-\n\
-Note: if a Feature made available by the Eclipse Foundation is installed using the\n\
-Provisioning Technology (as defined below), you must agree to a license ("Feature \n\
-Update License") during the installation process. If the Feature contains\n\
-Included Features, the Feature Update License should either provide you\n\
-with the terms and conditions governing the Included Features or inform\n\
-you where you can locate them. Feature Update Licenses may be found in\n\
-the "license" property of files named "feature.properties" found within a Feature.\n\
-Such Abouts, Feature Licenses, and Feature Update Licenses contain the\n\
-terms and conditions (or references to such terms and conditions) that\n\
-govern your use of the associated Content in that directory.\n\
-\n\
-THE ABOUTS, FEATURE LICENSES, AND FEATURE UPDATE LICENSES MAY REFER\n\
-TO THE EPL OR OTHER LICENSE AGREEMENTS, NOTICES OR TERMS AND CONDITIONS.\n\
-SOME OF THESE OTHER LICENSE AGREEMENTS MAY INCLUDE (BUT ARE NOT LIMITED TO):\n\
-\n\
- - Eclipse Distribution License Version 1.0 (available at http://www.eclipse.org/licenses/edl-v1.0.html)\n\
- - Common Public License Version 1.0 (available at http://www.eclipse.org/legal/cpl-v10.html)\n\
- - Apache Software License 1.1 (available at http://www.apache.org/licenses/LICENSE)\n\
- - Apache Software License 2.0 (available at http://www.apache.org/licenses/LICENSE-2.0)\n\
- - Metro Link Public License 1.00 (available at http://www.opengroup.org/openmotif/supporters/metrolink/license.html)\n\
- - Mozilla Public License Version 1.1 (available at http://www.mozilla.org/MPL/MPL-1.1.html)\n\
-\n\
-IT IS YOUR OBLIGATION TO READ AND ACCEPT ALL SUCH TERMS AND CONDITIONS PRIOR\n\
-TO USE OF THE CONTENT. If no About, Feature License, or Feature Update License\n\
-is provided, please contact the Eclipse Foundation to determine what terms and conditions\n\
-govern that particular Content.\n\
-\n\
-\n\Use of Provisioning Technology\n\
-\n\
-The Eclipse Foundation makes available provisioning software, examples of which include,\n\
-but are not limited to, p2 and the Eclipse Update Manager ("Provisioning Technology") for\n\
-the purpose of allowing users to install software, documentation, information and/or\n\
-other materials (collectively "Installable Software"). This capability is provided with\n\
-the intent of allowing such users to install, extend and update Eclipse-based products.\n\
-Information about packaging Installable Software is available at\n\
-http://eclipse.org/equinox/p2/repository_packaging.html ("Specification").\n\
-\n\
-You may use Provisioning Technology to allow other parties to install Installable Software.\n\
-You shall be responsible for enabling the applicable license agreements relating to the\n\
-Installable Software to be presented to, and accepted by, the users of the Provisioning Technology\n\
-in accordance with the Specification. By using Provisioning Technology in such a manner and\n\
-making it available in accordance with the Specification, you further acknowledge your\n\
-agreement to, and the acquisition of all necessary rights to permit the following:\n\
-\n\
- 1. A series of actions may occur ("Provisioning Process") in which a user may execute\n\
- the Provisioning Technology on a machine ("Target Machine") with the intent of installing,\n\
- extending or updating the functionality of an Eclipse-based product.\n\
- 2. During the Provisioning Process, the Provisioning Technology may cause third party\n\
- Installable Software or a portion thereof to be accessed and copied to the Target Machine.\n\
- 3. Pursuant to the Specification, you will provide to the user the terms and conditions that\n\
- govern the use of the Installable Software ("Installable Software Agreement") and such\n\
- Installable Software Agreement shall be accessed from the Target Machine in accordance\n\
- with the Specification. Such Installable Software Agreement must inform the user of the\n\
- terms and conditions that govern the Installable Software and must solicit acceptance by\n\
- the end user in the manner prescribed in such Installable Software Agreement. Upon such\n\
- indication of agreement by the user, the provisioning Technology will complete installation\n\
- of the Installable Software.\n\
-\n\
-Cryptography\n\
-\n\
-Content may contain encryption software. The country in which you are\n\
-currently may have restrictions on the import, possession, and use,\n\
-and/or re-export to another country, of encryption software. BEFORE\n\
-using any encryption software, please check the country's laws,\n\
-regulations and policies concerning the import, possession, or use, and\n\
-re-export of encryption software, to see if this is permitted.\n\
-\n\
-Java and all Java-based trademarks are trademarks of Oracle Corporation in the United States, other countries, or both.\n
-########### end of license property ##########################################
diff --git a/features/org.eclipse.emf.eef.codegen.uml.feature/feature.xml b/features/org.eclipse.emf.eef.codegen.uml.feature/feature.xml
deleted file mode 100644
index 15835108b..000000000
--- a/features/org.eclipse.emf.eef.codegen.uml.feature/feature.xml
+++ /dev/null
@@ -1,55 +0,0 @@
-
-
-
-
-
- %description
-
-
-
- Copyright (c) 2011 Obeo.
-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
-
-
-
- %license
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/features/org.eclipse.emf.eef.codegen.uml.feature/license.html b/features/org.eclipse.emf.eef.codegen.uml.feature/license.html
deleted file mode 100644
index a1fe5ea3f..000000000
--- a/features/org.eclipse.emf.eef.codegen.uml.feature/license.html
+++ /dev/null
@@ -1,116 +0,0 @@
-
-
-
-
-
-Eclipse Foundation Software User Agreement
-
-
-
-
Eclipse Foundation Software User Agreement
-
February 1, 2011
-
-
Usage Of Content
-
-
THE ECLIPSE FOUNDATION MAKES AVAILABLE SOFTWARE, DOCUMENTATION, INFORMATION AND/OR OTHER MATERIALS FOR OPEN SOURCE PROJECTS
- (COLLECTIVELY "CONTENT"). USE OF THE CONTENT IS GOVERNED BY THE TERMS AND CONDITIONS OF THIS AGREEMENT AND/OR THE TERMS AND
- CONDITIONS OF LICENSE AGREEMENTS OR NOTICES INDICATED OR REFERENCED BELOW. BY USING THE CONTENT, YOU AGREE THAT YOUR USE
- OF THE CONTENT IS GOVERNED BY THIS AGREEMENT AND/OR THE TERMS AND CONDITIONS OF ANY APPLICABLE LICENSE AGREEMENTS OR
- NOTICES INDICATED OR REFERENCED BELOW. IF YOU DO NOT AGREE TO THE TERMS AND CONDITIONS OF THIS AGREEMENT AND THE TERMS AND
- CONDITIONS OF ANY APPLICABLE LICENSE AGREEMENTS OR NOTICES INDICATED OR REFERENCED BELOW, THEN YOU MAY NOT USE THE CONTENT.
-
-
Applicable Licenses
-
-
Unless otherwise indicated, all Content made available by the Eclipse Foundation is provided to you under the terms and conditions of the Eclipse Public License Version 1.0
- ("EPL"). A copy of the EPL is provided with this Content and is also available at http://www.eclipse.org/legal/epl-v10.html.
- For purposes of the EPL, "Program" will mean the Content.
-
-
Content includes, but is not limited to, source code, object code, documentation and other files maintained in the Eclipse Foundation source code
- repository ("Repository") in software modules ("Modules") and made available as downloadable archives ("Downloads").
-
-
-
Content may be structured and packaged into modules to facilitate delivering, extending, and upgrading the Content. Typical modules may include plug-ins ("Plug-ins"), plug-in fragments ("Fragments"), and features ("Features").
-
-
Each Plug-in or Fragment may be packaged as a sub-directory or JAR (Java™ ARchive) in a directory named "plugins".
-
A Feature is a bundle of one or more Plug-ins and/or Fragments and associated material. Each Feature may be packaged as a sub-directory in a directory named "features". Within a Feature, files named "feature.xml" may contain a list of the names and version numbers of the Plug-ins
- and/or Fragments associated with that Feature.
-
Features may also include other Features ("Included Features"). Within a Feature, files named "feature.xml" may contain a list of the names and version numbers of Included Features.
-
-
-
-
The terms and conditions governing Plug-ins and Fragments should be contained in files named "about.html" ("Abouts"). The terms and conditions governing Features and
-Included Features should be contained in files named "license.html" ("Feature Licenses"). Abouts and Feature Licenses may be located in any directory of a Download or Module
-including, but not limited to the following locations:
-
-
-
The top-level (root) directory
-
-
Plug-in and Fragment directories
-
Inside Plug-ins and Fragments packaged as JARs
-
Sub-directories of the directory named "src" of certain Plug-ins
-
Feature directories
-
-
-
Note: if a Feature made available by the Eclipse Foundation is installed using the Provisioning Technology (as defined below), you must agree to a license ("Feature Update License") during the
-installation process. If the Feature contains Included Features, the Feature Update License should either provide you with the terms and conditions governing the Included Features or
-inform you where you can locate them. Feature Update Licenses may be found in the "license" property of files named "feature.properties" found within a Feature.
-Such Abouts, Feature Licenses, and Feature Update Licenses contain the terms and conditions (or references to such terms and conditions) that govern your use of the associated Content in
-that directory.
-
-
THE ABOUTS, FEATURE LICENSES, AND FEATURE UPDATE LICENSES MAY REFER TO THE EPL OR OTHER LICENSE AGREEMENTS, NOTICES OR TERMS AND CONDITIONS. SOME OF THESE
-OTHER LICENSE AGREEMENTS MAY INCLUDE (BUT ARE NOT LIMITED TO):
IT IS YOUR OBLIGATION TO READ AND ACCEPT ALL SUCH TERMS AND CONDITIONS PRIOR TO USE OF THE CONTENT. If no About, Feature License, or Feature Update License is provided, please
-contact the Eclipse Foundation to determine what terms and conditions govern that particular Content.
-
-
-
Use of Provisioning Technology
-
-
The Eclipse Foundation makes available provisioning software, examples of which include, but are not limited to, p2 and the Eclipse
- Update Manager ("Provisioning Technology") for the purpose of allowing users to install software, documentation, information and/or
- other materials (collectively "Installable Software"). This capability is provided with the intent of allowing such users to
- install, extend and update Eclipse-based products. Information about packaging Installable Software is available at http://eclipse.org/equinox/p2/repository_packaging.html
-
- ("Specification").
-
-
You may use Provisioning Technology to allow other parties to install Installable Software. You shall be responsible for enabling the
- applicable license agreements relating to the Installable Software to be presented to, and accepted by, the users of the Provisioning Technology
- in accordance with the Specification. By using Provisioning Technology in such a manner and making it available in accordance with the
- Specification, you further acknowledge your agreement to, and the acquisition of all necessary rights to permit the following:
-
-
-
A series of actions may occur ("Provisioning Process") in which a user may execute the Provisioning Technology
- on a machine ("Target Machine") with the intent of installing, extending or updating the functionality of an Eclipse-based
- product.
-
-
During the Provisioning Process, the Provisioning Technology may cause third party Installable Software or a portion thereof to be
- accessed and copied to the Target Machine.
-
Pursuant to the Specification, you will provide to the user the terms and conditions that govern the use of the Installable
- Software ("Installable Software Agreement") and such Installable Software Agreement shall be accessed from the Target
- Machine in accordance with the Specification. Such Installable Software Agreement must inform the user of the terms and conditions that govern
- the Installable Software and must solicit acceptance by the end user in the manner prescribed in such Installable Software Agreement. Upon such
- indication of agreement by the user, the provisioning Technology will complete installation of the Installable Software.
-
-
-
Cryptography
-
-
Content may contain encryption software. The country in which you are currently may have restrictions on the import, possession, and use, and/or re-export to
- another country, of encryption software. BEFORE using any encryption software, please check the country's laws, regulations and policies concerning the import,
- possession, or use, and re-export of encryption software, to see if this is permitted.
-
-
Java and all Java-based trademarks are trademarks of Oracle Corporation in the United States, other countries, or both.
-
-
-
diff --git a/features/org.eclipse.emf.eef.codegen.uml.feature/license.txt b/features/org.eclipse.emf.eef.codegen.uml.feature/license.txt
deleted file mode 100644
index 24937b64c..000000000
--- a/features/org.eclipse.emf.eef.codegen.uml.feature/license.txt
+++ /dev/null
@@ -1,87 +0,0 @@
-Eclipse Public License - v 1.0
-
-THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE PUBLIC LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT.
-
-1. DEFINITIONS
-
-"Contribution" means:
-
-a) in the case of the initial Contributor, the initial code and documentation distributed under this Agreement, and
-b) in the case of each subsequent Contributor:
-
-i) changes to the Program, and
-
-ii) additions to the Program;
-
-where such changes and/or additions to the Program originate from and are distributed by that particular Contributor. A Contribution 'originates' from a Contributor if it was added to the Program by such Contributor itself or anyone acting on such Contributor's behalf. Contributions do not include additions to the Program which: (i) are separate modules of software distributed in conjunction with the Program under their own license agreement, and (ii) are not derivative works of the Program.
-
-"Contributor" means any person or entity that distributes the Program.
-
-"Licensed Patents " mean patent claims licensable by a Contributor which are necessarily infringed by the use or sale of its Contribution alone or when combined with the Program.
-
-"Program" means the Contributions distributed in accordance with this Agreement.
-
-"Recipient" means anyone who receives the Program under this Agreement, including all Contributors.
-
-2. GRANT OF RIGHTS
-
-a) Subject to the terms of this Agreement, each Contributor hereby grants Recipient a non-exclusive, worldwide, royalty-free copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, distribute and sublicense the Contribution of such Contributor, if any, and such derivative works, in source code and object code form.
-
-b) Subject to the terms of this Agreement, each Contributor hereby grants Recipient a non-exclusive, worldwide, royalty-free patent license under Licensed Patents to make, use, sell, offer to sell, import and otherwise transfer the Contribution of such Contributor, if any, in source code and object code form. This patent license shall apply to the combination of the Contribution and the Program if, at the time the Contribution is added by the Contributor, such addition of the Contribution causes such combination to be covered by the Licensed Patents. The patent license shall not apply to any other combinations which include the Contribution. No hardware per se is licensed hereunder.
-
-c) Recipient understands that although each Contributor grants the licenses to its Contributions set forth herein, no assurances are provided by any Contributor that the Program does not infringe the patent or other intellectual property rights of any other entity. Each Contributor disclaims any liability to Recipient for claims brought by any other entity based on infringement of intellectual property rights or otherwise. As a condition to exercising the rights and licenses granted hereunder, each Recipient hereby assumes sole responsibility to secure any other intellectual property rights needed, if any. For example, if a third party patent license is required to allow Recipient to distribute the Program, it is Recipient's responsibility to acquire that license before distributing the Program.
-
-d) Each Contributor represents that to its knowledge it has sufficient copyright rights in its Contribution, if any, to grant the copyright license set forth in this Agreement.
-
-3. REQUIREMENTS
-
-A Contributor may choose to distribute the Program in object code form under its own license agreement, provided that:
-
-a) it complies with the terms and conditions of this Agreement; and
-
-b) its license agreement:
-
-i) effectively disclaims on behalf of all Contributors all warranties and conditions, express and implied, including warranties or conditions of title and non-infringement, and implied warranties or conditions of merchantability and fitness for a particular purpose;
-
-ii) effectively excludes on behalf of all Contributors all liability for damages, including direct, indirect, special, incidental and consequential damages, such as lost profits;
-
-iii) states that any provisions which differ from this Agreement are offered by that Contributor alone and not by any other party; and
-
-iv) states that source code for the Program is available from such Contributor, and informs licensees how to obtain it in a reasonable manner on or through a medium customarily used for software exchange.
-
-When the Program is made available in source code form:
-
-a) it must be made available under this Agreement; and
-
-b) a copy of this Agreement must be included with each copy of the Program.
-
-Contributors may not remove or alter any copyright notices contained within the Program.
-
-Each Contributor must identify itself as the originator of its Contribution, if any, in a manner that reasonably allows subsequent Recipients to identify the originator of the Contribution.
-
-4. COMMERCIAL DISTRIBUTION
-
-Commercial distributors of software may accept certain responsibilities with respect to end users, business partners and the like. While this license is intended to facilitate the commercial use of the Program, the Contributor who includes the Program in a commercial product offering should do so in a manner which does not create potential liability for other Contributors. Therefore, if a Contributor includes the Program in a commercial product offering, such Contributor ("Commercial Contributor") hereby agrees to defend and indemnify every other Contributor ("Indemnified Contributor") against any losses, damages and costs (collectively "Losses") arising from claims, lawsuits and other legal actions brought by a third party against the Indemnified Contributor to the extent caused by the acts or omissions of such Commercial Contributor in connection with its distribution of the Program in a commercial product offering. The obligations in this section do not apply to any claims or Losses relating to any actual or alleged intellectual property infringement. In order to qualify, an Indemnified Contributor must: a) promptly notify the Commercial Contributor in writing of such claim, and b) allow the Commercial Contributor to control, and cooperate with the Commercial Contributor in, the defense and any related settlement negotiations. The Indemnified Contributor may participate in any such claim at its own expense.
-
-For example, a Contributor might include the Program in a commercial product offering, Product X. That Contributor is then a Commercial Contributor. If that Commercial Contributor then makes performance claims, or offers warranties related to Product X, those performance claims and warranties are such Commercial Contributor's responsibility alone. Under this section, the Commercial Contributor would have to defend claims against the other Contributors related to those performance claims and warranties, and if a court requires any other Contributor to pay any damages as a result, the Commercial Contributor must pay those damages.
-
-5. NO WARRANTY
-
-EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely responsible for determining the appropriateness of using and distributing the Program and assumes all risks associated with its exercise of rights under this Agreement , including but not limited to the risks and costs of program errors, compliance with applicable laws, damage to or loss of data, programs or equipment, and unavailability or interruption of operations.
-
-6. DISCLAIMER OF LIABILITY
-
-EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
-
-7. GENERAL
-
-If any provision of this Agreement is invalid or unenforceable under applicable law, it shall not affect the validity or enforceability of the remainder of the terms of this Agreement, and without further action by the parties hereto, such provision shall be reformed to the minimum extent necessary to make such provision valid and enforceable.
-
-If Recipient institutes patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Program itself (excluding combinations of the Program with other software or hardware) infringes such Recipient's patent(s), then such Recipient's rights granted under Section 2(b) shall terminate as of the date such litigation is filed.
-
-All Recipient's rights under this Agreement shall terminate if it fails to comply with any of the material terms or conditions of this Agreement and does not cure such failure in a reasonable period of time after becoming aware of such noncompliance. If all Recipient's rights under this Agreement terminate, Recipient agrees to cease use and distribution of the Program as soon as reasonably practicable. However, Recipient's obligations under this Agreement and any licenses granted by Recipient relating to the Program shall continue and survive.
-
-Everyone is permitted to copy and distribute copies of this Agreement, but in order to avoid inconsistency the Agreement is copyrighted and may only be modified in the following manner. The Agreement Steward reserves the right to publish new versions (including revisions) of this Agreement from time to time. No one other than the Agreement Steward has the right to modify this Agreement. The Eclipse Foundation is the initial Agreement Steward. The Eclipse Foundation may assign the responsibility to serve as the Agreement Steward to a suitable separate entity. Each new version of the Agreement will be given a distinguishing version number. The Program (including Contributions) may always be distributed subject to the version of the Agreement under which it was received. In addition, after a new version of the Agreement is published, Contributor may elect to distribute the Program (including its Contributions) under the new version. Except as expressly stated in Sections 2(a) and 2(b) above, Recipient receives no rights or licenses to the intellectual property of any Contributor under this Agreement, whether expressly, by implication, estoppel or otherwise. All rights in the Program not expressly granted under this Agreement are reserved.
-
-This Agreement is governed by the laws of the State of New York and the intellectual property laws of the United States of America. No party to this Agreement will bring a legal action under this Agreement more than one year after the cause of action arose. Each party waives its rights to a jury trial in any resulting litigation.
-
diff --git a/features/org.eclipse.emf.eef.codegen.uml.feature/pom.xml b/features/org.eclipse.emf.eef.codegen.uml.feature/pom.xml
deleted file mode 100644
index c6166c78d..000000000
--- a/features/org.eclipse.emf.eef.codegen.uml.feature/pom.xml
+++ /dev/null
@@ -1,29 +0,0 @@
-
-
-
-
- 4.0.0
-
-
- org.eclipse.emf
- org.eclipse.emf.eef.releng.parent
- ../../releng/org.eclipse.emf.eef.releng.parent
- 1.5.2-SNAPSHOT
-
-
- org.eclipse.emf.eef.codegen.uml.feature
- eclipse-feature
-
- EEF UML Codegen Feature
-
-
diff --git a/features/org.eclipse.emf.eef.collab.runtime-feature/.gitignore b/features/org.eclipse.emf.eef.collab.runtime-feature/.gitignore
deleted file mode 100644
index eb5a316cb..000000000
--- a/features/org.eclipse.emf.eef.collab.runtime-feature/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-target
diff --git a/features/org.eclipse.emf.eef.collab.runtime-feature/.project b/features/org.eclipse.emf.eef.collab.runtime-feature/.project
deleted file mode 100644
index a9a5df5d5..000000000
--- a/features/org.eclipse.emf.eef.collab.runtime-feature/.project
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
- org.eclipse.emf.eef.collab.runtime-feature
-
-
-
-
-
- org.eclipse.pde.FeatureBuilder
-
-
-
-
-
- org.eclipse.pde.FeatureNature
-
-
diff --git a/features/org.eclipse.emf.eef.collab.runtime-feature/build.properties b/features/org.eclipse.emf.eef.collab.runtime-feature/build.properties
deleted file mode 100644
index 2f5d242cc..000000000
--- a/features/org.eclipse.emf.eef.collab.runtime-feature/build.properties
+++ /dev/null
@@ -1,20 +0,0 @@
-###############################################################################
-# Copyright (c) 2008, 2010 Obeo.
-# 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:
-# Obeo - initial API and implementation
-###############################################################################
-bin.includes = feature.xml,\
- feature.properties,\
- license.html,\
- license.txt,\
- epl-v10.html
-src.includes = feature.properties,\
- license.html,\
- license.txt,\
- feature.xml,\
- epl-v10.html
diff --git a/features/org.eclipse.emf.eef.collab.runtime-feature/epl-v10.html b/features/org.eclipse.emf.eef.collab.runtime-feature/epl-v10.html
deleted file mode 100644
index 0d34dd06a..000000000
--- a/features/org.eclipse.emf.eef.collab.runtime-feature/epl-v10.html
+++ /dev/null
@@ -1,262 +0,0 @@
-
-
-
-
-
-
-Eclipse Public License - Version 1.0
-
-
-
-
-
-
-
Eclipse Public License - v 1.0
-
-
THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE
-PUBLIC LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR
-DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS
-AGREEMENT.
-
-
1. DEFINITIONS
-
-
"Contribution" means:
-
-
a) in the case of the initial Contributor, the initial
-code and documentation distributed under this Agreement, and
-
b) in the case of each subsequent Contributor:
-
-
i) changes to the Program, and
-
ii) additions to the Program;
-
where such changes and/or additions to the Program
-originate from and are distributed by that particular Contributor. A
-Contribution 'originates' from a Contributor if it was added to the
-Program by such Contributor itself or anyone acting on such
-Contributor's behalf. Contributions do not include additions to the
-Program which: (i) are separate modules of software distributed in
-conjunction with the Program under their own license agreement, and (ii)
-are not derivative works of the Program.
-
-
"Contributor" means any person or entity that distributes
-the Program.
-
-
"Licensed Patents" mean patent claims licensable by a
-Contributor which are necessarily infringed by the use or sale of its
-Contribution alone or when combined with the Program.
-
-
"Program" means the Contributions distributed in accordance
-with this Agreement.
-
-
"Recipient" means anyone who receives the Program under
-this Agreement, including all Contributors.
-
-
2. GRANT OF RIGHTS
-
-
a) Subject to the terms of this Agreement, each
-Contributor hereby grants Recipient a non-exclusive, worldwide,
-royalty-free copyright license to reproduce, prepare derivative works
-of, publicly display, publicly perform, distribute and sublicense the
-Contribution of such Contributor, if any, and such derivative works, in
-source code and object code form.
-
-
b) Subject to the terms of this Agreement, each
-Contributor hereby grants Recipient a non-exclusive, worldwide,
-royalty-free patent license under Licensed Patents to make, use, sell,
-offer to sell, import and otherwise transfer the Contribution of such
-Contributor, if any, in source code and object code form. This patent
-license shall apply to the combination of the Contribution and the
-Program if, at the time the Contribution is added by the Contributor,
-such addition of the Contribution causes such combination to be covered
-by the Licensed Patents. The patent license shall not apply to any other
-combinations which include the Contribution. No hardware per se is
-licensed hereunder.
-
-
c) Recipient understands that although each Contributor
-grants the licenses to its Contributions set forth herein, no assurances
-are provided by any Contributor that the Program does not infringe the
-patent or other intellectual property rights of any other entity. Each
-Contributor disclaims any liability to Recipient for claims brought by
-any other entity based on infringement of intellectual property rights
-or otherwise. As a condition to exercising the rights and licenses
-granted hereunder, each Recipient hereby assumes sole responsibility to
-secure any other intellectual property rights needed, if any. For
-example, if a third party patent license is required to allow Recipient
-to distribute the Program, it is Recipient's responsibility to acquire
-that license before distributing the Program.
-
-
d) Each Contributor represents that to its knowledge it
-has sufficient copyright rights in its Contribution, if any, to grant
-the copyright license set forth in this Agreement.
-
-
3. REQUIREMENTS
-
-
A Contributor may choose to distribute the Program in object code
-form under its own license agreement, provided that:
-
-
a) it complies with the terms and conditions of this
-Agreement; and
-
-
b) its license agreement:
-
-
i) effectively disclaims on behalf of all Contributors
-all warranties and conditions, express and implied, including warranties
-or conditions of title and non-infringement, and implied warranties or
-conditions of merchantability and fitness for a particular purpose;
-
-
ii) effectively excludes on behalf of all Contributors
-all liability for damages, including direct, indirect, special,
-incidental and consequential damages, such as lost profits;
-
-
iii) states that any provisions which differ from this
-Agreement are offered by that Contributor alone and not by any other
-party; and
-
-
iv) states that source code for the Program is available
-from such Contributor, and informs licensees how to obtain it in a
-reasonable manner on or through a medium customarily used for software
-exchange.
-
-
When the Program is made available in source code form:
-
-
a) it must be made available under this Agreement; and
-
-
b) a copy of this Agreement must be included with each
-copy of the Program.
-
-
Contributors may not remove or alter any copyright notices contained
-within the Program.
-
-
Each Contributor must identify itself as the originator of its
-Contribution, if any, in a manner that reasonably allows subsequent
-Recipients to identify the originator of the Contribution.
-
-
4. COMMERCIAL DISTRIBUTION
-
-
Commercial distributors of software may accept certain
-responsibilities with respect to end users, business partners and the
-like. While this license is intended to facilitate the commercial use of
-the Program, the Contributor who includes the Program in a commercial
-product offering should do so in a manner which does not create
-potential liability for other Contributors. Therefore, if a Contributor
-includes the Program in a commercial product offering, such Contributor
-("Commercial Contributor") hereby agrees to defend and
-indemnify every other Contributor ("Indemnified Contributor")
-against any losses, damages and costs (collectively "Losses")
-arising from claims, lawsuits and other legal actions brought by a third
-party against the Indemnified Contributor to the extent caused by the
-acts or omissions of such Commercial Contributor in connection with its
-distribution of the Program in a commercial product offering. The
-obligations in this section do not apply to any claims or Losses
-relating to any actual or alleged intellectual property infringement. In
-order to qualify, an Indemnified Contributor must: a) promptly notify
-the Commercial Contributor in writing of such claim, and b) allow the
-Commercial Contributor to control, and cooperate with the Commercial
-Contributor in, the defense and any related settlement negotiations. The
-Indemnified Contributor may participate in any such claim at its own
-expense.
-
-
For example, a Contributor might include the Program in a commercial
-product offering, Product X. That Contributor is then a Commercial
-Contributor. If that Commercial Contributor then makes performance
-claims, or offers warranties related to Product X, those performance
-claims and warranties are such Commercial Contributor's responsibility
-alone. Under this section, the Commercial Contributor would have to
-defend claims against the other Contributors related to those
-performance claims and warranties, and if a court requires any other
-Contributor to pay any damages as a result, the Commercial Contributor
-must pay those damages.
-
-
5. NO WARRANTY
-
-
EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS
-PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS
-OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION,
-ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY
-OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely
-responsible for determining the appropriateness of using and
-distributing the Program and assumes all risks associated with its
-exercise of rights under this Agreement , including but not limited to
-the risks and costs of program errors, compliance with applicable laws,
-damage to or loss of data, programs or equipment, and unavailability or
-interruption of operations.
-
-
6. DISCLAIMER OF LIABILITY
-
-
EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT
-NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT,
-INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING
-WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF
-LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR
-DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED
-HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
-
-
7. GENERAL
-
-
If any provision of this Agreement is invalid or unenforceable under
-applicable law, it shall not affect the validity or enforceability of
-the remainder of the terms of this Agreement, and without further action
-by the parties hereto, such provision shall be reformed to the minimum
-extent necessary to make such provision valid and enforceable.
-
-
If Recipient institutes patent litigation against any entity
-(including a cross-claim or counterclaim in a lawsuit) alleging that the
-Program itself (excluding combinations of the Program with other
-software or hardware) infringes such Recipient's patent(s), then such
-Recipient's rights granted under Section 2(b) shall terminate as of the
-date such litigation is filed.
-
-
All Recipient's rights under this Agreement shall terminate if it
-fails to comply with any of the material terms or conditions of this
-Agreement and does not cure such failure in a reasonable period of time
-after becoming aware of such noncompliance. If all Recipient's rights
-under this Agreement terminate, Recipient agrees to cease use and
-distribution of the Program as soon as reasonably practicable. However,
-Recipient's obligations under this Agreement and any licenses granted by
-Recipient relating to the Program shall continue and survive.
-
-
Everyone is permitted to copy and distribute copies of this
-Agreement, but in order to avoid inconsistency the Agreement is
-copyrighted and may only be modified in the following manner. The
-Agreement Steward reserves the right to publish new versions (including
-revisions) of this Agreement from time to time. No one other than the
-Agreement Steward has the right to modify this Agreement. The Eclipse
-Foundation is the initial Agreement Steward. The Eclipse Foundation may
-assign the responsibility to serve as the Agreement Steward to a
-suitable separate entity. Each new version of the Agreement will be
-given a distinguishing version number. The Program (including
-Contributions) may always be distributed subject to the version of the
-Agreement under which it was received. In addition, after a new version
-of the Agreement is published, Contributor may elect to distribute the
-Program (including its Contributions) under the new version. Except as
-expressly stated in Sections 2(a) and 2(b) above, Recipient receives no
-rights or licenses to the intellectual property of any Contributor under
-this Agreement, whether expressly, by implication, estoppel or
-otherwise. All rights in the Program not expressly granted under this
-Agreement are reserved.
-
-
This Agreement is governed by the laws of the State of New York and
-the intellectual property laws of the United States of America. No party
-to this Agreement will bring a legal action under this Agreement more
-than one year after the cause of action arose. Each party waives its
-rights to a jury trial in any resulting litigation.
-
-
-
-
\ No newline at end of file
diff --git a/features/org.eclipse.emf.eef.collab.runtime-feature/feature.properties b/features/org.eclipse.emf.eef.collab.runtime-feature/feature.properties
deleted file mode 100644
index 688aba8f3..000000000
--- a/features/org.eclipse.emf.eef.collab.runtime-feature/feature.properties
+++ /dev/null
@@ -1,146 +0,0 @@
-###############################################################################
-# Copyright (c) 2008, 2012 Obeo.
-# 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:
-# Obeo - initial API and implementation
-###############################################################################
-providerName=Eclipse Modeling Project
-featureName=Extended Editing Framework - Extension for collaboration editing
-modelingUpdateSiteName=Eclipse Modeling Project Updates
-description=Extended Editing Framework - Extension for collaboration editing
-
-# "licenseURL" property - URL of the "Feature License"
-# do not translate value - just change to point to a locale-specific HTML page
-licenseURL=license.html
-
-# "license" property - text of the "Feature Update License"
-# should be plain text version of license agreement pointed to be "licenseURL"
-license=\
-Eclipse Foundation Software User Agreement\n\
-February 1, 2011\n\
-\n\
-Usage Of Content\n\
-\n\
-THE ECLIPSE FOUNDATION MAKES AVAILABLE SOFTWARE, DOCUMENTATION, INFORMATION AND/OR\n\
-OTHER MATERIALS FOR OPEN SOURCE PROJECTS (COLLECTIVELY "CONTENT").\n\
-USE OF THE CONTENT IS GOVERNED BY THE TERMS AND CONDITIONS OF THIS\n\
-AGREEMENT AND/OR THE TERMS AND CONDITIONS OF LICENSE AGREEMENTS OR\n\
-NOTICES INDICATED OR REFERENCED BELOW. BY USING THE CONTENT, YOU\n\
-AGREE THAT YOUR USE OF THE CONTENT IS GOVERNED BY THIS AGREEMENT\n\
-AND/OR THE TERMS AND CONDITIONS OF ANY APPLICABLE LICENSE AGREEMENTS\n\
-OR NOTICES INDICATED OR REFERENCED BELOW. IF YOU DO NOT AGREE TO THE\n\
-TERMS AND CONDITIONS OF THIS AGREEMENT AND THE TERMS AND CONDITIONS\n\
-OF ANY APPLICABLE LICENSE AGREEMENTS OR NOTICES INDICATED OR REFERENCED\n\
-BELOW, THEN YOU MAY NOT USE THE CONTENT.\n\
-\n\
-Applicable Licenses\n\
-\n\
-Unless otherwise indicated, all Content made available by the\n\
-Eclipse Foundation is provided to you under the terms and conditions of\n\
-the Eclipse Public License Version 1.0 ("EPL"). A copy of the EPL is\n\
-provided with this Content and is also available at http://www.eclipse.org/legal/epl-v10.html.\n\
-For purposes of the EPL, "Program" will mean the Content.\n\
-\n\
-Content includes, but is not limited to, source code, object code,\n\
-documentation and other files maintained in the Eclipse Foundation source code\n\
-repository ("Repository") in software modules ("Modules") and made available\n\
-as downloadable archives ("Downloads").\n\
-\n\
- - Content may be structured and packaged into modules to facilitate delivering,\n\
- extending, and upgrading the Content. Typical modules may include plug-ins ("Plug-ins"),\n\
- plug-in fragments ("Fragments"), and features ("Features").\n\
- - Each Plug-in or Fragment may be packaged as a sub-directory or JAR (Java(TM) ARchive)\n\
- in a directory named "plugins".\n\
- - A Feature is a bundle of one or more Plug-ins and/or Fragments and associated material.\n\
- Each Feature may be packaged as a sub-directory in a directory named "features".\n\
- Within a Feature, files named "feature.xml" may contain a list of the names and version\n\
- numbers of the Plug-ins and/or Fragments associated with that Feature.\n\
- - Features may also include other Features ("Included Features"). Within a Feature, files\n\
- named "feature.xml" may contain a list of the names and version numbers of Included Features.\n\
-\n\
-The terms and conditions governing Plug-ins and Fragments should be\n\
-contained in files named "about.html" ("Abouts"). The terms and\n\
-conditions governing Features and Included Features should be contained\n\
-in files named "license.html" ("Feature Licenses"). Abouts and Feature\n\
-Licenses may be located in any directory of a Download or Module\n\
-including, but not limited to the following locations:\n\
-\n\
- - The top-level (root) directory\n\
- - Plug-in and Fragment directories\n\
- - Inside Plug-ins and Fragments packaged as JARs\n\
- - Sub-directories of the directory named "src" of certain Plug-ins\n\
- - Feature directories\n\
-\n\
-Note: if a Feature made available by the Eclipse Foundation is installed using the\n\
-Provisioning Technology (as defined below), you must agree to a license ("Feature \n\
-Update License") during the installation process. If the Feature contains\n\
-Included Features, the Feature Update License should either provide you\n\
-with the terms and conditions governing the Included Features or inform\n\
-you where you can locate them. Feature Update Licenses may be found in\n\
-the "license" property of files named "feature.properties" found within a Feature.\n\
-Such Abouts, Feature Licenses, and Feature Update Licenses contain the\n\
-terms and conditions (or references to such terms and conditions) that\n\
-govern your use of the associated Content in that directory.\n\
-\n\
-THE ABOUTS, FEATURE LICENSES, AND FEATURE UPDATE LICENSES MAY REFER\n\
-TO THE EPL OR OTHER LICENSE AGREEMENTS, NOTICES OR TERMS AND CONDITIONS.\n\
-SOME OF THESE OTHER LICENSE AGREEMENTS MAY INCLUDE (BUT ARE NOT LIMITED TO):\n\
-\n\
- - Eclipse Distribution License Version 1.0 (available at http://www.eclipse.org/licenses/edl-v1.0.html)\n\
- - Common Public License Version 1.0 (available at http://www.eclipse.org/legal/cpl-v10.html)\n\
- - Apache Software License 1.1 (available at http://www.apache.org/licenses/LICENSE)\n\
- - Apache Software License 2.0 (available at http://www.apache.org/licenses/LICENSE-2.0)\n\
- - Metro Link Public License 1.00 (available at http://www.opengroup.org/openmotif/supporters/metrolink/license.html)\n\
- - Mozilla Public License Version 1.1 (available at http://www.mozilla.org/MPL/MPL-1.1.html)\n\
-\n\
-IT IS YOUR OBLIGATION TO READ AND ACCEPT ALL SUCH TERMS AND CONDITIONS PRIOR\n\
-TO USE OF THE CONTENT. If no About, Feature License, or Feature Update License\n\
-is provided, please contact the Eclipse Foundation to determine what terms and conditions\n\
-govern that particular Content.\n\
-\n\
-\n\Use of Provisioning Technology\n\
-\n\
-The Eclipse Foundation makes available provisioning software, examples of which include,\n\
-but are not limited to, p2 and the Eclipse Update Manager ("Provisioning Technology") for\n\
-the purpose of allowing users to install software, documentation, information and/or\n\
-other materials (collectively "Installable Software"). This capability is provided with\n\
-the intent of allowing such users to install, extend and update Eclipse-based products.\n\
-Information about packaging Installable Software is available at\n\
-http://eclipse.org/equinox/p2/repository_packaging.html ("Specification").\n\
-\n\
-You may use Provisioning Technology to allow other parties to install Installable Software.\n\
-You shall be responsible for enabling the applicable license agreements relating to the\n\
-Installable Software to be presented to, and accepted by, the users of the Provisioning Technology\n\
-in accordance with the Specification. By using Provisioning Technology in such a manner and\n\
-making it available in accordance with the Specification, you further acknowledge your\n\
-agreement to, and the acquisition of all necessary rights to permit the following:\n\
-\n\
- 1. A series of actions may occur ("Provisioning Process") in which a user may execute\n\
- the Provisioning Technology on a machine ("Target Machine") with the intent of installing,\n\
- extending or updating the functionality of an Eclipse-based product.\n\
- 2. During the Provisioning Process, the Provisioning Technology may cause third party\n\
- Installable Software or a portion thereof to be accessed and copied to the Target Machine.\n\
- 3. Pursuant to the Specification, you will provide to the user the terms and conditions that\n\
- govern the use of the Installable Software ("Installable Software Agreement") and such\n\
- Installable Software Agreement shall be accessed from the Target Machine in accordance\n\
- with the Specification. Such Installable Software Agreement must inform the user of the\n\
- terms and conditions that govern the Installable Software and must solicit acceptance by\n\
- the end user in the manner prescribed in such Installable Software Agreement. Upon such\n\
- indication of agreement by the user, the provisioning Technology will complete installation\n\
- of the Installable Software.\n\
-\n\
-Cryptography\n\
-\n\
-Content may contain encryption software. The country in which you are\n\
-currently may have restrictions on the import, possession, and use,\n\
-and/or re-export to another country, of encryption software. BEFORE\n\
-using any encryption software, please check the country's laws,\n\
-regulations and policies concerning the import, possession, or use, and\n\
-re-export of encryption software, to see if this is permitted.\n\
-\n\
-Java and all Java-based trademarks are trademarks of Oracle Corporation in the United States, other countries, or both.\n
-########### end of license property ##########################################
diff --git a/features/org.eclipse.emf.eef.collab.runtime-feature/feature.xml b/features/org.eclipse.emf.eef.collab.runtime-feature/feature.xml
deleted file mode 100644
index 257b879f8..000000000
--- a/features/org.eclipse.emf.eef.collab.runtime-feature/feature.xml
+++ /dev/null
@@ -1,49 +0,0 @@
-
-
-
-
-
- %description
-
-
-
- Copyright (c) 2008 - 2010 Obeo.
-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
-
-
-
- %license
-
-
-
-
-
-
-
-
-
-
diff --git a/features/org.eclipse.emf.eef.collab.runtime-feature/license.html b/features/org.eclipse.emf.eef.collab.runtime-feature/license.html
deleted file mode 100644
index a1fe5ea3f..000000000
--- a/features/org.eclipse.emf.eef.collab.runtime-feature/license.html
+++ /dev/null
@@ -1,116 +0,0 @@
-
-
-
-
-
-Eclipse Foundation Software User Agreement
-
-
-
-
Eclipse Foundation Software User Agreement
-
February 1, 2011
-
-
Usage Of Content
-
-
THE ECLIPSE FOUNDATION MAKES AVAILABLE SOFTWARE, DOCUMENTATION, INFORMATION AND/OR OTHER MATERIALS FOR OPEN SOURCE PROJECTS
- (COLLECTIVELY "CONTENT"). USE OF THE CONTENT IS GOVERNED BY THE TERMS AND CONDITIONS OF THIS AGREEMENT AND/OR THE TERMS AND
- CONDITIONS OF LICENSE AGREEMENTS OR NOTICES INDICATED OR REFERENCED BELOW. BY USING THE CONTENT, YOU AGREE THAT YOUR USE
- OF THE CONTENT IS GOVERNED BY THIS AGREEMENT AND/OR THE TERMS AND CONDITIONS OF ANY APPLICABLE LICENSE AGREEMENTS OR
- NOTICES INDICATED OR REFERENCED BELOW. IF YOU DO NOT AGREE TO THE TERMS AND CONDITIONS OF THIS AGREEMENT AND THE TERMS AND
- CONDITIONS OF ANY APPLICABLE LICENSE AGREEMENTS OR NOTICES INDICATED OR REFERENCED BELOW, THEN YOU MAY NOT USE THE CONTENT.
-
-
Applicable Licenses
-
-
Unless otherwise indicated, all Content made available by the Eclipse Foundation is provided to you under the terms and conditions of the Eclipse Public License Version 1.0
- ("EPL"). A copy of the EPL is provided with this Content and is also available at http://www.eclipse.org/legal/epl-v10.html.
- For purposes of the EPL, "Program" will mean the Content.
-
-
Content includes, but is not limited to, source code, object code, documentation and other files maintained in the Eclipse Foundation source code
- repository ("Repository") in software modules ("Modules") and made available as downloadable archives ("Downloads").
-
-
-
Content may be structured and packaged into modules to facilitate delivering, extending, and upgrading the Content. Typical modules may include plug-ins ("Plug-ins"), plug-in fragments ("Fragments"), and features ("Features").
-
-
Each Plug-in or Fragment may be packaged as a sub-directory or JAR (Java™ ARchive) in a directory named "plugins".
-
A Feature is a bundle of one or more Plug-ins and/or Fragments and associated material. Each Feature may be packaged as a sub-directory in a directory named "features". Within a Feature, files named "feature.xml" may contain a list of the names and version numbers of the Plug-ins
- and/or Fragments associated with that Feature.
-
Features may also include other Features ("Included Features"). Within a Feature, files named "feature.xml" may contain a list of the names and version numbers of Included Features.
-
-
-
-
The terms and conditions governing Plug-ins and Fragments should be contained in files named "about.html" ("Abouts"). The terms and conditions governing Features and
-Included Features should be contained in files named "license.html" ("Feature Licenses"). Abouts and Feature Licenses may be located in any directory of a Download or Module
-including, but not limited to the following locations:
-
-
-
The top-level (root) directory
-
-
Plug-in and Fragment directories
-
Inside Plug-ins and Fragments packaged as JARs
-
Sub-directories of the directory named "src" of certain Plug-ins
-
Feature directories
-
-
-
Note: if a Feature made available by the Eclipse Foundation is installed using the Provisioning Technology (as defined below), you must agree to a license ("Feature Update License") during the
-installation process. If the Feature contains Included Features, the Feature Update License should either provide you with the terms and conditions governing the Included Features or
-inform you where you can locate them. Feature Update Licenses may be found in the "license" property of files named "feature.properties" found within a Feature.
-Such Abouts, Feature Licenses, and Feature Update Licenses contain the terms and conditions (or references to such terms and conditions) that govern your use of the associated Content in
-that directory.
-
-
THE ABOUTS, FEATURE LICENSES, AND FEATURE UPDATE LICENSES MAY REFER TO THE EPL OR OTHER LICENSE AGREEMENTS, NOTICES OR TERMS AND CONDITIONS. SOME OF THESE
-OTHER LICENSE AGREEMENTS MAY INCLUDE (BUT ARE NOT LIMITED TO):
IT IS YOUR OBLIGATION TO READ AND ACCEPT ALL SUCH TERMS AND CONDITIONS PRIOR TO USE OF THE CONTENT. If no About, Feature License, or Feature Update License is provided, please
-contact the Eclipse Foundation to determine what terms and conditions govern that particular Content.
-
-
-
Use of Provisioning Technology
-
-
The Eclipse Foundation makes available provisioning software, examples of which include, but are not limited to, p2 and the Eclipse
- Update Manager ("Provisioning Technology") for the purpose of allowing users to install software, documentation, information and/or
- other materials (collectively "Installable Software"). This capability is provided with the intent of allowing such users to
- install, extend and update Eclipse-based products. Information about packaging Installable Software is available at http://eclipse.org/equinox/p2/repository_packaging.html
-
- ("Specification").
-
-
You may use Provisioning Technology to allow other parties to install Installable Software. You shall be responsible for enabling the
- applicable license agreements relating to the Installable Software to be presented to, and accepted by, the users of the Provisioning Technology
- in accordance with the Specification. By using Provisioning Technology in such a manner and making it available in accordance with the
- Specification, you further acknowledge your agreement to, and the acquisition of all necessary rights to permit the following:
-
-
-
A series of actions may occur ("Provisioning Process") in which a user may execute the Provisioning Technology
- on a machine ("Target Machine") with the intent of installing, extending or updating the functionality of an Eclipse-based
- product.
-
-
During the Provisioning Process, the Provisioning Technology may cause third party Installable Software or a portion thereof to be
- accessed and copied to the Target Machine.
-
Pursuant to the Specification, you will provide to the user the terms and conditions that govern the use of the Installable
- Software ("Installable Software Agreement") and such Installable Software Agreement shall be accessed from the Target
- Machine in accordance with the Specification. Such Installable Software Agreement must inform the user of the terms and conditions that govern
- the Installable Software and must solicit acceptance by the end user in the manner prescribed in such Installable Software Agreement. Upon such
- indication of agreement by the user, the provisioning Technology will complete installation of the Installable Software.
-
-
-
Cryptography
-
-
Content may contain encryption software. The country in which you are currently may have restrictions on the import, possession, and use, and/or re-export to
- another country, of encryption software. BEFORE using any encryption software, please check the country's laws, regulations and policies concerning the import,
- possession, or use, and re-export of encryption software, to see if this is permitted.
-
-
Java and all Java-based trademarks are trademarks of Oracle Corporation in the United States, other countries, or both.
-
-
-
diff --git a/features/org.eclipse.emf.eef.collab.runtime-feature/license.txt b/features/org.eclipse.emf.eef.collab.runtime-feature/license.txt
deleted file mode 100644
index 24937b64c..000000000
--- a/features/org.eclipse.emf.eef.collab.runtime-feature/license.txt
+++ /dev/null
@@ -1,87 +0,0 @@
-Eclipse Public License - v 1.0
-
-THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE PUBLIC LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT.
-
-1. DEFINITIONS
-
-"Contribution" means:
-
-a) in the case of the initial Contributor, the initial code and documentation distributed under this Agreement, and
-b) in the case of each subsequent Contributor:
-
-i) changes to the Program, and
-
-ii) additions to the Program;
-
-where such changes and/or additions to the Program originate from and are distributed by that particular Contributor. A Contribution 'originates' from a Contributor if it was added to the Program by such Contributor itself or anyone acting on such Contributor's behalf. Contributions do not include additions to the Program which: (i) are separate modules of software distributed in conjunction with the Program under their own license agreement, and (ii) are not derivative works of the Program.
-
-"Contributor" means any person or entity that distributes the Program.
-
-"Licensed Patents " mean patent claims licensable by a Contributor which are necessarily infringed by the use or sale of its Contribution alone or when combined with the Program.
-
-"Program" means the Contributions distributed in accordance with this Agreement.
-
-"Recipient" means anyone who receives the Program under this Agreement, including all Contributors.
-
-2. GRANT OF RIGHTS
-
-a) Subject to the terms of this Agreement, each Contributor hereby grants Recipient a non-exclusive, worldwide, royalty-free copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, distribute and sublicense the Contribution of such Contributor, if any, and such derivative works, in source code and object code form.
-
-b) Subject to the terms of this Agreement, each Contributor hereby grants Recipient a non-exclusive, worldwide, royalty-free patent license under Licensed Patents to make, use, sell, offer to sell, import and otherwise transfer the Contribution of such Contributor, if any, in source code and object code form. This patent license shall apply to the combination of the Contribution and the Program if, at the time the Contribution is added by the Contributor, such addition of the Contribution causes such combination to be covered by the Licensed Patents. The patent license shall not apply to any other combinations which include the Contribution. No hardware per se is licensed hereunder.
-
-c) Recipient understands that although each Contributor grants the licenses to its Contributions set forth herein, no assurances are provided by any Contributor that the Program does not infringe the patent or other intellectual property rights of any other entity. Each Contributor disclaims any liability to Recipient for claims brought by any other entity based on infringement of intellectual property rights or otherwise. As a condition to exercising the rights and licenses granted hereunder, each Recipient hereby assumes sole responsibility to secure any other intellectual property rights needed, if any. For example, if a third party patent license is required to allow Recipient to distribute the Program, it is Recipient's responsibility to acquire that license before distributing the Program.
-
-d) Each Contributor represents that to its knowledge it has sufficient copyright rights in its Contribution, if any, to grant the copyright license set forth in this Agreement.
-
-3. REQUIREMENTS
-
-A Contributor may choose to distribute the Program in object code form under its own license agreement, provided that:
-
-a) it complies with the terms and conditions of this Agreement; and
-
-b) its license agreement:
-
-i) effectively disclaims on behalf of all Contributors all warranties and conditions, express and implied, including warranties or conditions of title and non-infringement, and implied warranties or conditions of merchantability and fitness for a particular purpose;
-
-ii) effectively excludes on behalf of all Contributors all liability for damages, including direct, indirect, special, incidental and consequential damages, such as lost profits;
-
-iii) states that any provisions which differ from this Agreement are offered by that Contributor alone and not by any other party; and
-
-iv) states that source code for the Program is available from such Contributor, and informs licensees how to obtain it in a reasonable manner on or through a medium customarily used for software exchange.
-
-When the Program is made available in source code form:
-
-a) it must be made available under this Agreement; and
-
-b) a copy of this Agreement must be included with each copy of the Program.
-
-Contributors may not remove or alter any copyright notices contained within the Program.
-
-Each Contributor must identify itself as the originator of its Contribution, if any, in a manner that reasonably allows subsequent Recipients to identify the originator of the Contribution.
-
-4. COMMERCIAL DISTRIBUTION
-
-Commercial distributors of software may accept certain responsibilities with respect to end users, business partners and the like. While this license is intended to facilitate the commercial use of the Program, the Contributor who includes the Program in a commercial product offering should do so in a manner which does not create potential liability for other Contributors. Therefore, if a Contributor includes the Program in a commercial product offering, such Contributor ("Commercial Contributor") hereby agrees to defend and indemnify every other Contributor ("Indemnified Contributor") against any losses, damages and costs (collectively "Losses") arising from claims, lawsuits and other legal actions brought by a third party against the Indemnified Contributor to the extent caused by the acts or omissions of such Commercial Contributor in connection with its distribution of the Program in a commercial product offering. The obligations in this section do not apply to any claims or Losses relating to any actual or alleged intellectual property infringement. In order to qualify, an Indemnified Contributor must: a) promptly notify the Commercial Contributor in writing of such claim, and b) allow the Commercial Contributor to control, and cooperate with the Commercial Contributor in, the defense and any related settlement negotiations. The Indemnified Contributor may participate in any such claim at its own expense.
-
-For example, a Contributor might include the Program in a commercial product offering, Product X. That Contributor is then a Commercial Contributor. If that Commercial Contributor then makes performance claims, or offers warranties related to Product X, those performance claims and warranties are such Commercial Contributor's responsibility alone. Under this section, the Commercial Contributor would have to defend claims against the other Contributors related to those performance claims and warranties, and if a court requires any other Contributor to pay any damages as a result, the Commercial Contributor must pay those damages.
-
-5. NO WARRANTY
-
-EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely responsible for determining the appropriateness of using and distributing the Program and assumes all risks associated with its exercise of rights under this Agreement , including but not limited to the risks and costs of program errors, compliance with applicable laws, damage to or loss of data, programs or equipment, and unavailability or interruption of operations.
-
-6. DISCLAIMER OF LIABILITY
-
-EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
-
-7. GENERAL
-
-If any provision of this Agreement is invalid or unenforceable under applicable law, it shall not affect the validity or enforceability of the remainder of the terms of this Agreement, and without further action by the parties hereto, such provision shall be reformed to the minimum extent necessary to make such provision valid and enforceable.
-
-If Recipient institutes patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Program itself (excluding combinations of the Program with other software or hardware) infringes such Recipient's patent(s), then such Recipient's rights granted under Section 2(b) shall terminate as of the date such litigation is filed.
-
-All Recipient's rights under this Agreement shall terminate if it fails to comply with any of the material terms or conditions of this Agreement and does not cure such failure in a reasonable period of time after becoming aware of such noncompliance. If all Recipient's rights under this Agreement terminate, Recipient agrees to cease use and distribution of the Program as soon as reasonably practicable. However, Recipient's obligations under this Agreement and any licenses granted by Recipient relating to the Program shall continue and survive.
-
-Everyone is permitted to copy and distribute copies of this Agreement, but in order to avoid inconsistency the Agreement is copyrighted and may only be modified in the following manner. The Agreement Steward reserves the right to publish new versions (including revisions) of this Agreement from time to time. No one other than the Agreement Steward has the right to modify this Agreement. The Eclipse Foundation is the initial Agreement Steward. The Eclipse Foundation may assign the responsibility to serve as the Agreement Steward to a suitable separate entity. Each new version of the Agreement will be given a distinguishing version number. The Program (including Contributions) may always be distributed subject to the version of the Agreement under which it was received. In addition, after a new version of the Agreement is published, Contributor may elect to distribute the Program (including its Contributions) under the new version. Except as expressly stated in Sections 2(a) and 2(b) above, Recipient receives no rights or licenses to the intellectual property of any Contributor under this Agreement, whether expressly, by implication, estoppel or otherwise. All rights in the Program not expressly granted under this Agreement are reserved.
-
-This Agreement is governed by the laws of the State of New York and the intellectual property laws of the United States of America. No party to this Agreement will bring a legal action under this Agreement more than one year after the cause of action arose. Each party waives its rights to a jury trial in any resulting litigation.
-
diff --git a/features/org.eclipse.emf.eef.collab.runtime-feature/pom.xml b/features/org.eclipse.emf.eef.collab.runtime-feature/pom.xml
deleted file mode 100644
index 2863f08c1..000000000
--- a/features/org.eclipse.emf.eef.collab.runtime-feature/pom.xml
+++ /dev/null
@@ -1,29 +0,0 @@
-
-
-
-
- 4.0.0
-
-
- org.eclipse.emf
- org.eclipse.emf.eef.releng.parent
- ../../releng/org.eclipse.emf.eef.releng.parent
- 1.5.2-SNAPSHOT
-
-
- org.eclipse.emf.eef.collab.runtime-feature
- eclipse-feature
-
- EEF Runtime Feature
-
-
diff --git a/features/org.eclipse.emf.eef.edt-feature/.gitignore b/features/org.eclipse.emf.eef.edt-feature/.gitignore
deleted file mode 100644
index eb5a316cb..000000000
--- a/features/org.eclipse.emf.eef.edt-feature/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-target
diff --git a/features/org.eclipse.emf.eef.edt-feature/.project b/features/org.eclipse.emf.eef.edt-feature/.project
deleted file mode 100644
index f60852d33..000000000
--- a/features/org.eclipse.emf.eef.edt-feature/.project
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
- org.eclipse.emf.eef.edt-feature
-
-
-
-
-
- org.eclipse.pde.FeatureBuilder
-
-
-
-
-
- org.eclipse.pde.FeatureNature
-
-
diff --git a/features/org.eclipse.emf.eef.edt-feature/build.properties b/features/org.eclipse.emf.eef.edt-feature/build.properties
deleted file mode 100644
index 2f5d242cc..000000000
--- a/features/org.eclipse.emf.eef.edt-feature/build.properties
+++ /dev/null
@@ -1,20 +0,0 @@
-###############################################################################
-# Copyright (c) 2008, 2010 Obeo.
-# 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:
-# Obeo - initial API and implementation
-###############################################################################
-bin.includes = feature.xml,\
- feature.properties,\
- license.html,\
- license.txt,\
- epl-v10.html
-src.includes = feature.properties,\
- license.html,\
- license.txt,\
- feature.xml,\
- epl-v10.html
diff --git a/features/org.eclipse.emf.eef.edt-feature/epl-v10.html b/features/org.eclipse.emf.eef.edt-feature/epl-v10.html
deleted file mode 100644
index 0d34dd06a..000000000
--- a/features/org.eclipse.emf.eef.edt-feature/epl-v10.html
+++ /dev/null
@@ -1,262 +0,0 @@
-
-
-
-
-
-
-Eclipse Public License - Version 1.0
-
-
-
-
-
-
-
Eclipse Public License - v 1.0
-
-
THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE
-PUBLIC LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR
-DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS
-AGREEMENT.
-
-
1. DEFINITIONS
-
-
"Contribution" means:
-
-
a) in the case of the initial Contributor, the initial
-code and documentation distributed under this Agreement, and
-
b) in the case of each subsequent Contributor:
-
-
i) changes to the Program, and
-
ii) additions to the Program;
-
where such changes and/or additions to the Program
-originate from and are distributed by that particular Contributor. A
-Contribution 'originates' from a Contributor if it was added to the
-Program by such Contributor itself or anyone acting on such
-Contributor's behalf. Contributions do not include additions to the
-Program which: (i) are separate modules of software distributed in
-conjunction with the Program under their own license agreement, and (ii)
-are not derivative works of the Program.
-
-
"Contributor" means any person or entity that distributes
-the Program.
-
-
"Licensed Patents" mean patent claims licensable by a
-Contributor which are necessarily infringed by the use or sale of its
-Contribution alone or when combined with the Program.
-
-
"Program" means the Contributions distributed in accordance
-with this Agreement.
-
-
"Recipient" means anyone who receives the Program under
-this Agreement, including all Contributors.
-
-
2. GRANT OF RIGHTS
-
-
a) Subject to the terms of this Agreement, each
-Contributor hereby grants Recipient a non-exclusive, worldwide,
-royalty-free copyright license to reproduce, prepare derivative works
-of, publicly display, publicly perform, distribute and sublicense the
-Contribution of such Contributor, if any, and such derivative works, in
-source code and object code form.
-
-
b) Subject to the terms of this Agreement, each
-Contributor hereby grants Recipient a non-exclusive, worldwide,
-royalty-free patent license under Licensed Patents to make, use, sell,
-offer to sell, import and otherwise transfer the Contribution of such
-Contributor, if any, in source code and object code form. This patent
-license shall apply to the combination of the Contribution and the
-Program if, at the time the Contribution is added by the Contributor,
-such addition of the Contribution causes such combination to be covered
-by the Licensed Patents. The patent license shall not apply to any other
-combinations which include the Contribution. No hardware per se is
-licensed hereunder.
-
-
c) Recipient understands that although each Contributor
-grants the licenses to its Contributions set forth herein, no assurances
-are provided by any Contributor that the Program does not infringe the
-patent or other intellectual property rights of any other entity. Each
-Contributor disclaims any liability to Recipient for claims brought by
-any other entity based on infringement of intellectual property rights
-or otherwise. As a condition to exercising the rights and licenses
-granted hereunder, each Recipient hereby assumes sole responsibility to
-secure any other intellectual property rights needed, if any. For
-example, if a third party patent license is required to allow Recipient
-to distribute the Program, it is Recipient's responsibility to acquire
-that license before distributing the Program.
-
-
d) Each Contributor represents that to its knowledge it
-has sufficient copyright rights in its Contribution, if any, to grant
-the copyright license set forth in this Agreement.
-
-
3. REQUIREMENTS
-
-
A Contributor may choose to distribute the Program in object code
-form under its own license agreement, provided that:
-
-
a) it complies with the terms and conditions of this
-Agreement; and
-
-
b) its license agreement:
-
-
i) effectively disclaims on behalf of all Contributors
-all warranties and conditions, express and implied, including warranties
-or conditions of title and non-infringement, and implied warranties or
-conditions of merchantability and fitness for a particular purpose;
-
-
ii) effectively excludes on behalf of all Contributors
-all liability for damages, including direct, indirect, special,
-incidental and consequential damages, such as lost profits;
-
-
iii) states that any provisions which differ from this
-Agreement are offered by that Contributor alone and not by any other
-party; and
-
-
iv) states that source code for the Program is available
-from such Contributor, and informs licensees how to obtain it in a
-reasonable manner on or through a medium customarily used for software
-exchange.
-
-
When the Program is made available in source code form:
-
-
a) it must be made available under this Agreement; and
-
-
b) a copy of this Agreement must be included with each
-copy of the Program.
-
-
Contributors may not remove or alter any copyright notices contained
-within the Program.
-
-
Each Contributor must identify itself as the originator of its
-Contribution, if any, in a manner that reasonably allows subsequent
-Recipients to identify the originator of the Contribution.
-
-
4. COMMERCIAL DISTRIBUTION
-
-
Commercial distributors of software may accept certain
-responsibilities with respect to end users, business partners and the
-like. While this license is intended to facilitate the commercial use of
-the Program, the Contributor who includes the Program in a commercial
-product offering should do so in a manner which does not create
-potential liability for other Contributors. Therefore, if a Contributor
-includes the Program in a commercial product offering, such Contributor
-("Commercial Contributor") hereby agrees to defend and
-indemnify every other Contributor ("Indemnified Contributor")
-against any losses, damages and costs (collectively "Losses")
-arising from claims, lawsuits and other legal actions brought by a third
-party against the Indemnified Contributor to the extent caused by the
-acts or omissions of such Commercial Contributor in connection with its
-distribution of the Program in a commercial product offering. The
-obligations in this section do not apply to any claims or Losses
-relating to any actual or alleged intellectual property infringement. In
-order to qualify, an Indemnified Contributor must: a) promptly notify
-the Commercial Contributor in writing of such claim, and b) allow the
-Commercial Contributor to control, and cooperate with the Commercial
-Contributor in, the defense and any related settlement negotiations. The
-Indemnified Contributor may participate in any such claim at its own
-expense.
-
-
For example, a Contributor might include the Program in a commercial
-product offering, Product X. That Contributor is then a Commercial
-Contributor. If that Commercial Contributor then makes performance
-claims, or offers warranties related to Product X, those performance
-claims and warranties are such Commercial Contributor's responsibility
-alone. Under this section, the Commercial Contributor would have to
-defend claims against the other Contributors related to those
-performance claims and warranties, and if a court requires any other
-Contributor to pay any damages as a result, the Commercial Contributor
-must pay those damages.
-
-
5. NO WARRANTY
-
-
EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS
-PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS
-OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION,
-ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY
-OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely
-responsible for determining the appropriateness of using and
-distributing the Program and assumes all risks associated with its
-exercise of rights under this Agreement , including but not limited to
-the risks and costs of program errors, compliance with applicable laws,
-damage to or loss of data, programs or equipment, and unavailability or
-interruption of operations.
-
-
6. DISCLAIMER OF LIABILITY
-
-
EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT
-NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT,
-INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING
-WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF
-LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR
-DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED
-HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
-
-
7. GENERAL
-
-
If any provision of this Agreement is invalid or unenforceable under
-applicable law, it shall not affect the validity or enforceability of
-the remainder of the terms of this Agreement, and without further action
-by the parties hereto, such provision shall be reformed to the minimum
-extent necessary to make such provision valid and enforceable.
-
-
If Recipient institutes patent litigation against any entity
-(including a cross-claim or counterclaim in a lawsuit) alleging that the
-Program itself (excluding combinations of the Program with other
-software or hardware) infringes such Recipient's patent(s), then such
-Recipient's rights granted under Section 2(b) shall terminate as of the
-date such litigation is filed.
-
-
All Recipient's rights under this Agreement shall terminate if it
-fails to comply with any of the material terms or conditions of this
-Agreement and does not cure such failure in a reasonable period of time
-after becoming aware of such noncompliance. If all Recipient's rights
-under this Agreement terminate, Recipient agrees to cease use and
-distribution of the Program as soon as reasonably practicable. However,
-Recipient's obligations under this Agreement and any licenses granted by
-Recipient relating to the Program shall continue and survive.
-
-
Everyone is permitted to copy and distribute copies of this
-Agreement, but in order to avoid inconsistency the Agreement is
-copyrighted and may only be modified in the following manner. The
-Agreement Steward reserves the right to publish new versions (including
-revisions) of this Agreement from time to time. No one other than the
-Agreement Steward has the right to modify this Agreement. The Eclipse
-Foundation is the initial Agreement Steward. The Eclipse Foundation may
-assign the responsibility to serve as the Agreement Steward to a
-suitable separate entity. Each new version of the Agreement will be
-given a distinguishing version number. The Program (including
-Contributions) may always be distributed subject to the version of the
-Agreement under which it was received. In addition, after a new version
-of the Agreement is published, Contributor may elect to distribute the
-Program (including its Contributions) under the new version. Except as
-expressly stated in Sections 2(a) and 2(b) above, Recipient receives no
-rights or licenses to the intellectual property of any Contributor under
-this Agreement, whether expressly, by implication, estoppel or
-otherwise. All rights in the Program not expressly granted under this
-Agreement are reserved.
-
-
This Agreement is governed by the laws of the State of New York and
-the intellectual property laws of the United States of America. No party
-to this Agreement will bring a legal action under this Agreement more
-than one year after the cause of action arose. Each party waives its
-rights to a jury trial in any resulting litigation.
-
-
-
-
\ No newline at end of file
diff --git a/features/org.eclipse.emf.eef.edt-feature/feature.properties b/features/org.eclipse.emf.eef.edt-feature/feature.properties
deleted file mode 100644
index cfaf37ad2..000000000
--- a/features/org.eclipse.emf.eef.edt-feature/feature.properties
+++ /dev/null
@@ -1,159 +0,0 @@
-###############################################################################
-# Copyright (c) 2008, 2012 Obeo.
-# 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:
-# Obeo - initial API and implementation
-###############################################################################
-# "providerName" property - name of the company that provides the feature
-providerName=Eclipse Modeling Project
-
-# "featureName" property - name of the feature
-featureName=Extended Editing Framework - Development Tools
-
-# "updateSiteName" property - label for the update site (on download.eclipse.org)
-modelingUpdateSiteName=Eclipse Modeling Project Updates
-
-# "description" property - description of the feature
-description=Extended Editing Framework - Development Tools.\n\
-This includes :\n\
-- EEF metamodels\n\
-- EEF editors\n\
-- EEF models initializer\n\
-- EEF Acceleo generators\n\
-- EEF documentation\n\
-
-# "licenseURL" property - URL of the "Feature License"
-# do not translate value - just change to point to a locale-specific HTML page
-licenseURL=license.html
-
-# "license" property - text of the "Feature Update License"
-# should be plain text version of license agreement pointed to be "licenseURL"
-license=\
-Eclipse Foundation Software User Agreement\n\
-February 1, 2011\n\
-\n\
-Usage Of Content\n\
-\n\
-THE ECLIPSE FOUNDATION MAKES AVAILABLE SOFTWARE, DOCUMENTATION, INFORMATION AND/OR\n\
-OTHER MATERIALS FOR OPEN SOURCE PROJECTS (COLLECTIVELY "CONTENT").\n\
-USE OF THE CONTENT IS GOVERNED BY THE TERMS AND CONDITIONS OF THIS\n\
-AGREEMENT AND/OR THE TERMS AND CONDITIONS OF LICENSE AGREEMENTS OR\n\
-NOTICES INDICATED OR REFERENCED BELOW. BY USING THE CONTENT, YOU\n\
-AGREE THAT YOUR USE OF THE CONTENT IS GOVERNED BY THIS AGREEMENT\n\
-AND/OR THE TERMS AND CONDITIONS OF ANY APPLICABLE LICENSE AGREEMENTS\n\
-OR NOTICES INDICATED OR REFERENCED BELOW. IF YOU DO NOT AGREE TO THE\n\
-TERMS AND CONDITIONS OF THIS AGREEMENT AND THE TERMS AND CONDITIONS\n\
-OF ANY APPLICABLE LICENSE AGREEMENTS OR NOTICES INDICATED OR REFERENCED\n\
-BELOW, THEN YOU MAY NOT USE THE CONTENT.\n\
-\n\
-Applicable Licenses\n\
-\n\
-Unless otherwise indicated, all Content made available by the\n\
-Eclipse Foundation is provided to you under the terms and conditions of\n\
-the Eclipse Public License Version 1.0 ("EPL"). A copy of the EPL is\n\
-provided with this Content and is also available at http://www.eclipse.org/legal/epl-v10.html.\n\
-For purposes of the EPL, "Program" will mean the Content.\n\
-\n\
-Content includes, but is not limited to, source code, object code,\n\
-documentation and other files maintained in the Eclipse Foundation source code\n\
-repository ("Repository") in software modules ("Modules") and made available\n\
-as downloadable archives ("Downloads").\n\
-\n\
- - Content may be structured and packaged into modules to facilitate delivering,\n\
- extending, and upgrading the Content. Typical modules may include plug-ins ("Plug-ins"),\n\
- plug-in fragments ("Fragments"), and features ("Features").\n\
- - Each Plug-in or Fragment may be packaged as a sub-directory or JAR (Java(TM) ARchive)\n\
- in a directory named "plugins".\n\
- - A Feature is a bundle of one or more Plug-ins and/or Fragments and associated material.\n\
- Each Feature may be packaged as a sub-directory in a directory named "features".\n\
- Within a Feature, files named "feature.xml" may contain a list of the names and version\n\
- numbers of the Plug-ins and/or Fragments associated with that Feature.\n\
- - Features may also include other Features ("Included Features"). Within a Feature, files\n\
- named "feature.xml" may contain a list of the names and version numbers of Included Features.\n\
-\n\
-The terms and conditions governing Plug-ins and Fragments should be\n\
-contained in files named "about.html" ("Abouts"). The terms and\n\
-conditions governing Features and Included Features should be contained\n\
-in files named "license.html" ("Feature Licenses"). Abouts and Feature\n\
-Licenses may be located in any directory of a Download or Module\n\
-including, but not limited to the following locations:\n\
-\n\
- - The top-level (root) directory\n\
- - Plug-in and Fragment directories\n\
- - Inside Plug-ins and Fragments packaged as JARs\n\
- - Sub-directories of the directory named "src" of certain Plug-ins\n\
- - Feature directories\n\
-\n\
-Note: if a Feature made available by the Eclipse Foundation is installed using the\n\
-Provisioning Technology (as defined below), you must agree to a license ("Feature \n\
-Update License") during the installation process. If the Feature contains\n\
-Included Features, the Feature Update License should either provide you\n\
-with the terms and conditions governing the Included Features or inform\n\
-you where you can locate them. Feature Update Licenses may be found in\n\
-the "license" property of files named "feature.properties" found within a Feature.\n\
-Such Abouts, Feature Licenses, and Feature Update Licenses contain the\n\
-terms and conditions (or references to such terms and conditions) that\n\
-govern your use of the associated Content in that directory.\n\
-\n\
-THE ABOUTS, FEATURE LICENSES, AND FEATURE UPDATE LICENSES MAY REFER\n\
-TO THE EPL OR OTHER LICENSE AGREEMENTS, NOTICES OR TERMS AND CONDITIONS.\n\
-SOME OF THESE OTHER LICENSE AGREEMENTS MAY INCLUDE (BUT ARE NOT LIMITED TO):\n\
-\n\
- - Eclipse Distribution License Version 1.0 (available at http://www.eclipse.org/licenses/edl-v1.0.html)\n\
- - Common Public License Version 1.0 (available at http://www.eclipse.org/legal/cpl-v10.html)\n\
- - Apache Software License 1.1 (available at http://www.apache.org/licenses/LICENSE)\n\
- - Apache Software License 2.0 (available at http://www.apache.org/licenses/LICENSE-2.0)\n\
- - Metro Link Public License 1.00 (available at http://www.opengroup.org/openmotif/supporters/metrolink/license.html)\n\
- - Mozilla Public License Version 1.1 (available at http://www.mozilla.org/MPL/MPL-1.1.html)\n\
-\n\
-IT IS YOUR OBLIGATION TO READ AND ACCEPT ALL SUCH TERMS AND CONDITIONS PRIOR\n\
-TO USE OF THE CONTENT. If no About, Feature License, or Feature Update License\n\
-is provided, please contact the Eclipse Foundation to determine what terms and conditions\n\
-govern that particular Content.\n\
-\n\
-\n\Use of Provisioning Technology\n\
-\n\
-The Eclipse Foundation makes available provisioning software, examples of which include,\n\
-but are not limited to, p2 and the Eclipse Update Manager ("Provisioning Technology") for\n\
-the purpose of allowing users to install software, documentation, information and/or\n\
-other materials (collectively "Installable Software"). This capability is provided with\n\
-the intent of allowing such users to install, extend and update Eclipse-based products.\n\
-Information about packaging Installable Software is available at\n\
-http://eclipse.org/equinox/p2/repository_packaging.html ("Specification").\n\
-\n\
-You may use Provisioning Technology to allow other parties to install Installable Software.\n\
-You shall be responsible for enabling the applicable license agreements relating to the\n\
-Installable Software to be presented to, and accepted by, the users of the Provisioning Technology\n\
-in accordance with the Specification. By using Provisioning Technology in such a manner and\n\
-making it available in accordance with the Specification, you further acknowledge your\n\
-agreement to, and the acquisition of all necessary rights to permit the following:\n\
-\n\
- 1. A series of actions may occur ("Provisioning Process") in which a user may execute\n\
- the Provisioning Technology on a machine ("Target Machine") with the intent of installing,\n\
- extending or updating the functionality of an Eclipse-based product.\n\
- 2. During the Provisioning Process, the Provisioning Technology may cause third party\n\
- Installable Software or a portion thereof to be accessed and copied to the Target Machine.\n\
- 3. Pursuant to the Specification, you will provide to the user the terms and conditions that\n\
- govern the use of the Installable Software ("Installable Software Agreement") and such\n\
- Installable Software Agreement shall be accessed from the Target Machine in accordance\n\
- with the Specification. Such Installable Software Agreement must inform the user of the\n\
- terms and conditions that govern the Installable Software and must solicit acceptance by\n\
- the end user in the manner prescribed in such Installable Software Agreement. Upon such\n\
- indication of agreement by the user, the provisioning Technology will complete installation\n\
- of the Installable Software.\n\
-\n\
-Cryptography\n\
-\n\
-Content may contain encryption software. The country in which you are\n\
-currently may have restrictions on the import, possession, and use,\n\
-and/or re-export to another country, of encryption software. BEFORE\n\
-using any encryption software, please check the country's laws,\n\
-regulations and policies concerning the import, possession, or use, and\n\
-re-export of encryption software, to see if this is permitted.\n\
-\n\
-Java and all Java-based trademarks are trademarks of Oracle Corporation in the United States, other countries, or both.\n
-########### end of license property ##########################################
diff --git a/features/org.eclipse.emf.eef.edt-feature/feature.xml b/features/org.eclipse.emf.eef.edt-feature/feature.xml
deleted file mode 100644
index 5f8581af1..000000000
--- a/features/org.eclipse.emf.eef.edt-feature/feature.xml
+++ /dev/null
@@ -1,150 +0,0 @@
-
-
-
-
-
- %description
-
-
-
- Copyright (c) 2008 - 2010 Obeo.
-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
-
-
-
- %license
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/features/org.eclipse.emf.eef.edt-feature/license.html b/features/org.eclipse.emf.eef.edt-feature/license.html
deleted file mode 100644
index a1fe5ea3f..000000000
--- a/features/org.eclipse.emf.eef.edt-feature/license.html
+++ /dev/null
@@ -1,116 +0,0 @@
-
-
-
-
-
-Eclipse Foundation Software User Agreement
-
-
-
-
Eclipse Foundation Software User Agreement
-
February 1, 2011
-
-
Usage Of Content
-
-
THE ECLIPSE FOUNDATION MAKES AVAILABLE SOFTWARE, DOCUMENTATION, INFORMATION AND/OR OTHER MATERIALS FOR OPEN SOURCE PROJECTS
- (COLLECTIVELY "CONTENT"). USE OF THE CONTENT IS GOVERNED BY THE TERMS AND CONDITIONS OF THIS AGREEMENT AND/OR THE TERMS AND
- CONDITIONS OF LICENSE AGREEMENTS OR NOTICES INDICATED OR REFERENCED BELOW. BY USING THE CONTENT, YOU AGREE THAT YOUR USE
- OF THE CONTENT IS GOVERNED BY THIS AGREEMENT AND/OR THE TERMS AND CONDITIONS OF ANY APPLICABLE LICENSE AGREEMENTS OR
- NOTICES INDICATED OR REFERENCED BELOW. IF YOU DO NOT AGREE TO THE TERMS AND CONDITIONS OF THIS AGREEMENT AND THE TERMS AND
- CONDITIONS OF ANY APPLICABLE LICENSE AGREEMENTS OR NOTICES INDICATED OR REFERENCED BELOW, THEN YOU MAY NOT USE THE CONTENT.
-
-
Applicable Licenses
-
-
Unless otherwise indicated, all Content made available by the Eclipse Foundation is provided to you under the terms and conditions of the Eclipse Public License Version 1.0
- ("EPL"). A copy of the EPL is provided with this Content and is also available at http://www.eclipse.org/legal/epl-v10.html.
- For purposes of the EPL, "Program" will mean the Content.
-
-
Content includes, but is not limited to, source code, object code, documentation and other files maintained in the Eclipse Foundation source code
- repository ("Repository") in software modules ("Modules") and made available as downloadable archives ("Downloads").
-
-
-
Content may be structured and packaged into modules to facilitate delivering, extending, and upgrading the Content. Typical modules may include plug-ins ("Plug-ins"), plug-in fragments ("Fragments"), and features ("Features").
-
-
Each Plug-in or Fragment may be packaged as a sub-directory or JAR (Java™ ARchive) in a directory named "plugins".
-
A Feature is a bundle of one or more Plug-ins and/or Fragments and associated material. Each Feature may be packaged as a sub-directory in a directory named "features". Within a Feature, files named "feature.xml" may contain a list of the names and version numbers of the Plug-ins
- and/or Fragments associated with that Feature.
-
Features may also include other Features ("Included Features"). Within a Feature, files named "feature.xml" may contain a list of the names and version numbers of Included Features.
-
-
-
-
The terms and conditions governing Plug-ins and Fragments should be contained in files named "about.html" ("Abouts"). The terms and conditions governing Features and
-Included Features should be contained in files named "license.html" ("Feature Licenses"). Abouts and Feature Licenses may be located in any directory of a Download or Module
-including, but not limited to the following locations:
-
-
-
The top-level (root) directory
-
-
Plug-in and Fragment directories
-
Inside Plug-ins and Fragments packaged as JARs
-
Sub-directories of the directory named "src" of certain Plug-ins
-
Feature directories
-
-
-
Note: if a Feature made available by the Eclipse Foundation is installed using the Provisioning Technology (as defined below), you must agree to a license ("Feature Update License") during the
-installation process. If the Feature contains Included Features, the Feature Update License should either provide you with the terms and conditions governing the Included Features or
-inform you where you can locate them. Feature Update Licenses may be found in the "license" property of files named "feature.properties" found within a Feature.
-Such Abouts, Feature Licenses, and Feature Update Licenses contain the terms and conditions (or references to such terms and conditions) that govern your use of the associated Content in
-that directory.
-
-
THE ABOUTS, FEATURE LICENSES, AND FEATURE UPDATE LICENSES MAY REFER TO THE EPL OR OTHER LICENSE AGREEMENTS, NOTICES OR TERMS AND CONDITIONS. SOME OF THESE
-OTHER LICENSE AGREEMENTS MAY INCLUDE (BUT ARE NOT LIMITED TO):
IT IS YOUR OBLIGATION TO READ AND ACCEPT ALL SUCH TERMS AND CONDITIONS PRIOR TO USE OF THE CONTENT. If no About, Feature License, or Feature Update License is provided, please
-contact the Eclipse Foundation to determine what terms and conditions govern that particular Content.
-
-
-
Use of Provisioning Technology
-
-
The Eclipse Foundation makes available provisioning software, examples of which include, but are not limited to, p2 and the Eclipse
- Update Manager ("Provisioning Technology") for the purpose of allowing users to install software, documentation, information and/or
- other materials (collectively "Installable Software"). This capability is provided with the intent of allowing such users to
- install, extend and update Eclipse-based products. Information about packaging Installable Software is available at http://eclipse.org/equinox/p2/repository_packaging.html
-
- ("Specification").
-
-
You may use Provisioning Technology to allow other parties to install Installable Software. You shall be responsible for enabling the
- applicable license agreements relating to the Installable Software to be presented to, and accepted by, the users of the Provisioning Technology
- in accordance with the Specification. By using Provisioning Technology in such a manner and making it available in accordance with the
- Specification, you further acknowledge your agreement to, and the acquisition of all necessary rights to permit the following:
-
-
-
A series of actions may occur ("Provisioning Process") in which a user may execute the Provisioning Technology
- on a machine ("Target Machine") with the intent of installing, extending or updating the functionality of an Eclipse-based
- product.
-
-
During the Provisioning Process, the Provisioning Technology may cause third party Installable Software or a portion thereof to be
- accessed and copied to the Target Machine.
-
Pursuant to the Specification, you will provide to the user the terms and conditions that govern the use of the Installable
- Software ("Installable Software Agreement") and such Installable Software Agreement shall be accessed from the Target
- Machine in accordance with the Specification. Such Installable Software Agreement must inform the user of the terms and conditions that govern
- the Installable Software and must solicit acceptance by the end user in the manner prescribed in such Installable Software Agreement. Upon such
- indication of agreement by the user, the provisioning Technology will complete installation of the Installable Software.
-
-
-
Cryptography
-
-
Content may contain encryption software. The country in which you are currently may have restrictions on the import, possession, and use, and/or re-export to
- another country, of encryption software. BEFORE using any encryption software, please check the country's laws, regulations and policies concerning the import,
- possession, or use, and re-export of encryption software, to see if this is permitted.
-
-
Java and all Java-based trademarks are trademarks of Oracle Corporation in the United States, other countries, or both.
-
-
-
diff --git a/features/org.eclipse.emf.eef.edt-feature/license.txt b/features/org.eclipse.emf.eef.edt-feature/license.txt
deleted file mode 100644
index 24937b64c..000000000
--- a/features/org.eclipse.emf.eef.edt-feature/license.txt
+++ /dev/null
@@ -1,87 +0,0 @@
-Eclipse Public License - v 1.0
-
-THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE PUBLIC LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT.
-
-1. DEFINITIONS
-
-"Contribution" means:
-
-a) in the case of the initial Contributor, the initial code and documentation distributed under this Agreement, and
-b) in the case of each subsequent Contributor:
-
-i) changes to the Program, and
-
-ii) additions to the Program;
-
-where such changes and/or additions to the Program originate from and are distributed by that particular Contributor. A Contribution 'originates' from a Contributor if it was added to the Program by such Contributor itself or anyone acting on such Contributor's behalf. Contributions do not include additions to the Program which: (i) are separate modules of software distributed in conjunction with the Program under their own license agreement, and (ii) are not derivative works of the Program.
-
-"Contributor" means any person or entity that distributes the Program.
-
-"Licensed Patents " mean patent claims licensable by a Contributor which are necessarily infringed by the use or sale of its Contribution alone or when combined with the Program.
-
-"Program" means the Contributions distributed in accordance with this Agreement.
-
-"Recipient" means anyone who receives the Program under this Agreement, including all Contributors.
-
-2. GRANT OF RIGHTS
-
-a) Subject to the terms of this Agreement, each Contributor hereby grants Recipient a non-exclusive, worldwide, royalty-free copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, distribute and sublicense the Contribution of such Contributor, if any, and such derivative works, in source code and object code form.
-
-b) Subject to the terms of this Agreement, each Contributor hereby grants Recipient a non-exclusive, worldwide, royalty-free patent license under Licensed Patents to make, use, sell, offer to sell, import and otherwise transfer the Contribution of such Contributor, if any, in source code and object code form. This patent license shall apply to the combination of the Contribution and the Program if, at the time the Contribution is added by the Contributor, such addition of the Contribution causes such combination to be covered by the Licensed Patents. The patent license shall not apply to any other combinations which include the Contribution. No hardware per se is licensed hereunder.
-
-c) Recipient understands that although each Contributor grants the licenses to its Contributions set forth herein, no assurances are provided by any Contributor that the Program does not infringe the patent or other intellectual property rights of any other entity. Each Contributor disclaims any liability to Recipient for claims brought by any other entity based on infringement of intellectual property rights or otherwise. As a condition to exercising the rights and licenses granted hereunder, each Recipient hereby assumes sole responsibility to secure any other intellectual property rights needed, if any. For example, if a third party patent license is required to allow Recipient to distribute the Program, it is Recipient's responsibility to acquire that license before distributing the Program.
-
-d) Each Contributor represents that to its knowledge it has sufficient copyright rights in its Contribution, if any, to grant the copyright license set forth in this Agreement.
-
-3. REQUIREMENTS
-
-A Contributor may choose to distribute the Program in object code form under its own license agreement, provided that:
-
-a) it complies with the terms and conditions of this Agreement; and
-
-b) its license agreement:
-
-i) effectively disclaims on behalf of all Contributors all warranties and conditions, express and implied, including warranties or conditions of title and non-infringement, and implied warranties or conditions of merchantability and fitness for a particular purpose;
-
-ii) effectively excludes on behalf of all Contributors all liability for damages, including direct, indirect, special, incidental and consequential damages, such as lost profits;
-
-iii) states that any provisions which differ from this Agreement are offered by that Contributor alone and not by any other party; and
-
-iv) states that source code for the Program is available from such Contributor, and informs licensees how to obtain it in a reasonable manner on or through a medium customarily used for software exchange.
-
-When the Program is made available in source code form:
-
-a) it must be made available under this Agreement; and
-
-b) a copy of this Agreement must be included with each copy of the Program.
-
-Contributors may not remove or alter any copyright notices contained within the Program.
-
-Each Contributor must identify itself as the originator of its Contribution, if any, in a manner that reasonably allows subsequent Recipients to identify the originator of the Contribution.
-
-4. COMMERCIAL DISTRIBUTION
-
-Commercial distributors of software may accept certain responsibilities with respect to end users, business partners and the like. While this license is intended to facilitate the commercial use of the Program, the Contributor who includes the Program in a commercial product offering should do so in a manner which does not create potential liability for other Contributors. Therefore, if a Contributor includes the Program in a commercial product offering, such Contributor ("Commercial Contributor") hereby agrees to defend and indemnify every other Contributor ("Indemnified Contributor") against any losses, damages and costs (collectively "Losses") arising from claims, lawsuits and other legal actions brought by a third party against the Indemnified Contributor to the extent caused by the acts or omissions of such Commercial Contributor in connection with its distribution of the Program in a commercial product offering. The obligations in this section do not apply to any claims or Losses relating to any actual or alleged intellectual property infringement. In order to qualify, an Indemnified Contributor must: a) promptly notify the Commercial Contributor in writing of such claim, and b) allow the Commercial Contributor to control, and cooperate with the Commercial Contributor in, the defense and any related settlement negotiations. The Indemnified Contributor may participate in any such claim at its own expense.
-
-For example, a Contributor might include the Program in a commercial product offering, Product X. That Contributor is then a Commercial Contributor. If that Commercial Contributor then makes performance claims, or offers warranties related to Product X, those performance claims and warranties are such Commercial Contributor's responsibility alone. Under this section, the Commercial Contributor would have to defend claims against the other Contributors related to those performance claims and warranties, and if a court requires any other Contributor to pay any damages as a result, the Commercial Contributor must pay those damages.
-
-5. NO WARRANTY
-
-EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely responsible for determining the appropriateness of using and distributing the Program and assumes all risks associated with its exercise of rights under this Agreement , including but not limited to the risks and costs of program errors, compliance with applicable laws, damage to or loss of data, programs or equipment, and unavailability or interruption of operations.
-
-6. DISCLAIMER OF LIABILITY
-
-EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
-
-7. GENERAL
-
-If any provision of this Agreement is invalid or unenforceable under applicable law, it shall not affect the validity or enforceability of the remainder of the terms of this Agreement, and without further action by the parties hereto, such provision shall be reformed to the minimum extent necessary to make such provision valid and enforceable.
-
-If Recipient institutes patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Program itself (excluding combinations of the Program with other software or hardware) infringes such Recipient's patent(s), then such Recipient's rights granted under Section 2(b) shall terminate as of the date such litigation is filed.
-
-All Recipient's rights under this Agreement shall terminate if it fails to comply with any of the material terms or conditions of this Agreement and does not cure such failure in a reasonable period of time after becoming aware of such noncompliance. If all Recipient's rights under this Agreement terminate, Recipient agrees to cease use and distribution of the Program as soon as reasonably practicable. However, Recipient's obligations under this Agreement and any licenses granted by Recipient relating to the Program shall continue and survive.
-
-Everyone is permitted to copy and distribute copies of this Agreement, but in order to avoid inconsistency the Agreement is copyrighted and may only be modified in the following manner. The Agreement Steward reserves the right to publish new versions (including revisions) of this Agreement from time to time. No one other than the Agreement Steward has the right to modify this Agreement. The Eclipse Foundation is the initial Agreement Steward. The Eclipse Foundation may assign the responsibility to serve as the Agreement Steward to a suitable separate entity. Each new version of the Agreement will be given a distinguishing version number. The Program (including Contributions) may always be distributed subject to the version of the Agreement under which it was received. In addition, after a new version of the Agreement is published, Contributor may elect to distribute the Program (including its Contributions) under the new version. Except as expressly stated in Sections 2(a) and 2(b) above, Recipient receives no rights or licenses to the intellectual property of any Contributor under this Agreement, whether expressly, by implication, estoppel or otherwise. All rights in the Program not expressly granted under this Agreement are reserved.
-
-This Agreement is governed by the laws of the State of New York and the intellectual property laws of the United States of America. No party to this Agreement will bring a legal action under this Agreement more than one year after the cause of action arose. Each party waives its rights to a jury trial in any resulting litigation.
-
diff --git a/features/org.eclipse.emf.eef.edt-feature/pom.xml b/features/org.eclipse.emf.eef.edt-feature/pom.xml
deleted file mode 100644
index 2ead023ef..000000000
--- a/features/org.eclipse.emf.eef.edt-feature/pom.xml
+++ /dev/null
@@ -1,29 +0,0 @@
-
-
-
-
- 4.0.0
-
-
- org.eclipse.emf
- org.eclipse.emf.eef.releng.parent
- ../../releng/org.eclipse.emf.eef.releng.parent
- 1.5.2-SNAPSHOT
-
-
- org.eclipse.emf.eef.edt-feature
- eclipse-feature
-
- EEF Development Tools Feature
-
-
diff --git a/features/org.eclipse.emf.eef.extended-feature/.gitignore b/features/org.eclipse.emf.eef.extended-feature/.gitignore
deleted file mode 100644
index eb5a316cb..000000000
--- a/features/org.eclipse.emf.eef.extended-feature/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-target
diff --git a/features/org.eclipse.emf.eef.extended-feature/.project b/features/org.eclipse.emf.eef.extended-feature/.project
deleted file mode 100644
index 3198bd1b9..000000000
--- a/features/org.eclipse.emf.eef.extended-feature/.project
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
- org.eclipse.emf.eef.extended-feature
-
-
-
-
-
- org.eclipse.pde.FeatureBuilder
-
-
-
-
-
- org.eclipse.pde.FeatureNature
-
-
diff --git a/features/org.eclipse.emf.eef.extended-feature/build.properties b/features/org.eclipse.emf.eef.extended-feature/build.properties
deleted file mode 100644
index 2f5d242cc..000000000
--- a/features/org.eclipse.emf.eef.extended-feature/build.properties
+++ /dev/null
@@ -1,20 +0,0 @@
-###############################################################################
-# Copyright (c) 2008, 2010 Obeo.
-# 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:
-# Obeo - initial API and implementation
-###############################################################################
-bin.includes = feature.xml,\
- feature.properties,\
- license.html,\
- license.txt,\
- epl-v10.html
-src.includes = feature.properties,\
- license.html,\
- license.txt,\
- feature.xml,\
- epl-v10.html
diff --git a/features/org.eclipse.emf.eef.extended-feature/epl-v10.html b/features/org.eclipse.emf.eef.extended-feature/epl-v10.html
deleted file mode 100644
index 0d34dd06a..000000000
--- a/features/org.eclipse.emf.eef.extended-feature/epl-v10.html
+++ /dev/null
@@ -1,262 +0,0 @@
-
-
-
-
-
-
-Eclipse Public License - Version 1.0
-
-
-
-
-
-
-
Eclipse Public License - v 1.0
-
-
THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE
-PUBLIC LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR
-DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS
-AGREEMENT.
-
-
1. DEFINITIONS
-
-
"Contribution" means:
-
-
a) in the case of the initial Contributor, the initial
-code and documentation distributed under this Agreement, and
-
b) in the case of each subsequent Contributor:
-
-
i) changes to the Program, and
-
ii) additions to the Program;
-
where such changes and/or additions to the Program
-originate from and are distributed by that particular Contributor. A
-Contribution 'originates' from a Contributor if it was added to the
-Program by such Contributor itself or anyone acting on such
-Contributor's behalf. Contributions do not include additions to the
-Program which: (i) are separate modules of software distributed in
-conjunction with the Program under their own license agreement, and (ii)
-are not derivative works of the Program.
-
-
"Contributor" means any person or entity that distributes
-the Program.
-
-
"Licensed Patents" mean patent claims licensable by a
-Contributor which are necessarily infringed by the use or sale of its
-Contribution alone or when combined with the Program.
-
-
"Program" means the Contributions distributed in accordance
-with this Agreement.
-
-
"Recipient" means anyone who receives the Program under
-this Agreement, including all Contributors.
-
-
2. GRANT OF RIGHTS
-
-
a) Subject to the terms of this Agreement, each
-Contributor hereby grants Recipient a non-exclusive, worldwide,
-royalty-free copyright license to reproduce, prepare derivative works
-of, publicly display, publicly perform, distribute and sublicense the
-Contribution of such Contributor, if any, and such derivative works, in
-source code and object code form.
-
-
b) Subject to the terms of this Agreement, each
-Contributor hereby grants Recipient a non-exclusive, worldwide,
-royalty-free patent license under Licensed Patents to make, use, sell,
-offer to sell, import and otherwise transfer the Contribution of such
-Contributor, if any, in source code and object code form. This patent
-license shall apply to the combination of the Contribution and the
-Program if, at the time the Contribution is added by the Contributor,
-such addition of the Contribution causes such combination to be covered
-by the Licensed Patents. The patent license shall not apply to any other
-combinations which include the Contribution. No hardware per se is
-licensed hereunder.
-
-
c) Recipient understands that although each Contributor
-grants the licenses to its Contributions set forth herein, no assurances
-are provided by any Contributor that the Program does not infringe the
-patent or other intellectual property rights of any other entity. Each
-Contributor disclaims any liability to Recipient for claims brought by
-any other entity based on infringement of intellectual property rights
-or otherwise. As a condition to exercising the rights and licenses
-granted hereunder, each Recipient hereby assumes sole responsibility to
-secure any other intellectual property rights needed, if any. For
-example, if a third party patent license is required to allow Recipient
-to distribute the Program, it is Recipient's responsibility to acquire
-that license before distributing the Program.
-
-
d) Each Contributor represents that to its knowledge it
-has sufficient copyright rights in its Contribution, if any, to grant
-the copyright license set forth in this Agreement.
-
-
3. REQUIREMENTS
-
-
A Contributor may choose to distribute the Program in object code
-form under its own license agreement, provided that:
-
-
a) it complies with the terms and conditions of this
-Agreement; and
-
-
b) its license agreement:
-
-
i) effectively disclaims on behalf of all Contributors
-all warranties and conditions, express and implied, including warranties
-or conditions of title and non-infringement, and implied warranties or
-conditions of merchantability and fitness for a particular purpose;
-
-
ii) effectively excludes on behalf of all Contributors
-all liability for damages, including direct, indirect, special,
-incidental and consequential damages, such as lost profits;
-
-
iii) states that any provisions which differ from this
-Agreement are offered by that Contributor alone and not by any other
-party; and
-
-
iv) states that source code for the Program is available
-from such Contributor, and informs licensees how to obtain it in a
-reasonable manner on or through a medium customarily used for software
-exchange.
-
-
When the Program is made available in source code form:
-
-
a) it must be made available under this Agreement; and
-
-
b) a copy of this Agreement must be included with each
-copy of the Program.
-
-
Contributors may not remove or alter any copyright notices contained
-within the Program.
-
-
Each Contributor must identify itself as the originator of its
-Contribution, if any, in a manner that reasonably allows subsequent
-Recipients to identify the originator of the Contribution.
-
-
4. COMMERCIAL DISTRIBUTION
-
-
Commercial distributors of software may accept certain
-responsibilities with respect to end users, business partners and the
-like. While this license is intended to facilitate the commercial use of
-the Program, the Contributor who includes the Program in a commercial
-product offering should do so in a manner which does not create
-potential liability for other Contributors. Therefore, if a Contributor
-includes the Program in a commercial product offering, such Contributor
-("Commercial Contributor") hereby agrees to defend and
-indemnify every other Contributor ("Indemnified Contributor")
-against any losses, damages and costs (collectively "Losses")
-arising from claims, lawsuits and other legal actions brought by a third
-party against the Indemnified Contributor to the extent caused by the
-acts or omissions of such Commercial Contributor in connection with its
-distribution of the Program in a commercial product offering. The
-obligations in this section do not apply to any claims or Losses
-relating to any actual or alleged intellectual property infringement. In
-order to qualify, an Indemnified Contributor must: a) promptly notify
-the Commercial Contributor in writing of such claim, and b) allow the
-Commercial Contributor to control, and cooperate with the Commercial
-Contributor in, the defense and any related settlement negotiations. The
-Indemnified Contributor may participate in any such claim at its own
-expense.
-
-
For example, a Contributor might include the Program in a commercial
-product offering, Product X. That Contributor is then a Commercial
-Contributor. If that Commercial Contributor then makes performance
-claims, or offers warranties related to Product X, those performance
-claims and warranties are such Commercial Contributor's responsibility
-alone. Under this section, the Commercial Contributor would have to
-defend claims against the other Contributors related to those
-performance claims and warranties, and if a court requires any other
-Contributor to pay any damages as a result, the Commercial Contributor
-must pay those damages.
-
-
5. NO WARRANTY
-
-
EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS
-PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS
-OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION,
-ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY
-OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely
-responsible for determining the appropriateness of using and
-distributing the Program and assumes all risks associated with its
-exercise of rights under this Agreement , including but not limited to
-the risks and costs of program errors, compliance with applicable laws,
-damage to or loss of data, programs or equipment, and unavailability or
-interruption of operations.
-
-
6. DISCLAIMER OF LIABILITY
-
-
EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT
-NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT,
-INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING
-WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF
-LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR
-DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED
-HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
-
-
7. GENERAL
-
-
If any provision of this Agreement is invalid or unenforceable under
-applicable law, it shall not affect the validity or enforceability of
-the remainder of the terms of this Agreement, and without further action
-by the parties hereto, such provision shall be reformed to the minimum
-extent necessary to make such provision valid and enforceable.
-
-
If Recipient institutes patent litigation against any entity
-(including a cross-claim or counterclaim in a lawsuit) alleging that the
-Program itself (excluding combinations of the Program with other
-software or hardware) infringes such Recipient's patent(s), then such
-Recipient's rights granted under Section 2(b) shall terminate as of the
-date such litigation is filed.
-
-
All Recipient's rights under this Agreement shall terminate if it
-fails to comply with any of the material terms or conditions of this
-Agreement and does not cure such failure in a reasonable period of time
-after becoming aware of such noncompliance. If all Recipient's rights
-under this Agreement terminate, Recipient agrees to cease use and
-distribution of the Program as soon as reasonably practicable. However,
-Recipient's obligations under this Agreement and any licenses granted by
-Recipient relating to the Program shall continue and survive.
-
-
Everyone is permitted to copy and distribute copies of this
-Agreement, but in order to avoid inconsistency the Agreement is
-copyrighted and may only be modified in the following manner. The
-Agreement Steward reserves the right to publish new versions (including
-revisions) of this Agreement from time to time. No one other than the
-Agreement Steward has the right to modify this Agreement. The Eclipse
-Foundation is the initial Agreement Steward. The Eclipse Foundation may
-assign the responsibility to serve as the Agreement Steward to a
-suitable separate entity. Each new version of the Agreement will be
-given a distinguishing version number. The Program (including
-Contributions) may always be distributed subject to the version of the
-Agreement under which it was received. In addition, after a new version
-of the Agreement is published, Contributor may elect to distribute the
-Program (including its Contributions) under the new version. Except as
-expressly stated in Sections 2(a) and 2(b) above, Recipient receives no
-rights or licenses to the intellectual property of any Contributor under
-this Agreement, whether expressly, by implication, estoppel or
-otherwise. All rights in the Program not expressly granted under this
-Agreement are reserved.
-
-
This Agreement is governed by the laws of the State of New York and
-the intellectual property laws of the United States of America. No party
-to this Agreement will bring a legal action under this Agreement more
-than one year after the cause of action arose. Each party waives its
-rights to a jury trial in any resulting litigation.
-
-
-
-
\ No newline at end of file
diff --git a/features/org.eclipse.emf.eef.extended-feature/feature.properties b/features/org.eclipse.emf.eef.extended-feature/feature.properties
deleted file mode 100644
index 2f943a150..000000000
--- a/features/org.eclipse.emf.eef.extended-feature/feature.properties
+++ /dev/null
@@ -1,147 +0,0 @@
-###############################################################################
-# Copyright (c) 2008, 2012 Obeo.
-# 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:
-# Obeo - initial API and implementation
-###############################################################################
-providerName=Eclipse Modeling Project
-featureName=Extended Editing Framework - Extension
-modelingUpdateSiteName=Eclipse Modeling Project Updates
-description=Extended Editing Framework - Extension.\n\
-this includes the Editor Generator.
-
-# "licenseURL" property - URL of the "Feature License"
-# do not translate value - just change to point to a locale-specific HTML page
-licenseURL=license.html
-
-# "license" property - text of the "Feature Update License"
-# should be plain text version of license agreement pointed to be "licenseURL"
-license=\
-Eclipse Foundation Software User Agreement\n\
-February 1, 2011\n\
-\n\
-Usage Of Content\n\
-\n\
-THE ECLIPSE FOUNDATION MAKES AVAILABLE SOFTWARE, DOCUMENTATION, INFORMATION AND/OR\n\
-OTHER MATERIALS FOR OPEN SOURCE PROJECTS (COLLECTIVELY "CONTENT").\n\
-USE OF THE CONTENT IS GOVERNED BY THE TERMS AND CONDITIONS OF THIS\n\
-AGREEMENT AND/OR THE TERMS AND CONDITIONS OF LICENSE AGREEMENTS OR\n\
-NOTICES INDICATED OR REFERENCED BELOW. BY USING THE CONTENT, YOU\n\
-AGREE THAT YOUR USE OF THE CONTENT IS GOVERNED BY THIS AGREEMENT\n\
-AND/OR THE TERMS AND CONDITIONS OF ANY APPLICABLE LICENSE AGREEMENTS\n\
-OR NOTICES INDICATED OR REFERENCED BELOW. IF YOU DO NOT AGREE TO THE\n\
-TERMS AND CONDITIONS OF THIS AGREEMENT AND THE TERMS AND CONDITIONS\n\
-OF ANY APPLICABLE LICENSE AGREEMENTS OR NOTICES INDICATED OR REFERENCED\n\
-BELOW, THEN YOU MAY NOT USE THE CONTENT.\n\
-\n\
-Applicable Licenses\n\
-\n\
-Unless otherwise indicated, all Content made available by the\n\
-Eclipse Foundation is provided to you under the terms and conditions of\n\
-the Eclipse Public License Version 1.0 ("EPL"). A copy of the EPL is\n\
-provided with this Content and is also available at http://www.eclipse.org/legal/epl-v10.html.\n\
-For purposes of the EPL, "Program" will mean the Content.\n\
-\n\
-Content includes, but is not limited to, source code, object code,\n\
-documentation and other files maintained in the Eclipse Foundation source code\n\
-repository ("Repository") in software modules ("Modules") and made available\n\
-as downloadable archives ("Downloads").\n\
-\n\
- - Content may be structured and packaged into modules to facilitate delivering,\n\
- extending, and upgrading the Content. Typical modules may include plug-ins ("Plug-ins"),\n\
- plug-in fragments ("Fragments"), and features ("Features").\n\
- - Each Plug-in or Fragment may be packaged as a sub-directory or JAR (Java(TM) ARchive)\n\
- in a directory named "plugins".\n\
- - A Feature is a bundle of one or more Plug-ins and/or Fragments and associated material.\n\
- Each Feature may be packaged as a sub-directory in a directory named "features".\n\
- Within a Feature, files named "feature.xml" may contain a list of the names and version\n\
- numbers of the Plug-ins and/or Fragments associated with that Feature.\n\
- - Features may also include other Features ("Included Features"). Within a Feature, files\n\
- named "feature.xml" may contain a list of the names and version numbers of Included Features.\n\
-\n\
-The terms and conditions governing Plug-ins and Fragments should be\n\
-contained in files named "about.html" ("Abouts"). The terms and\n\
-conditions governing Features and Included Features should be contained\n\
-in files named "license.html" ("Feature Licenses"). Abouts and Feature\n\
-Licenses may be located in any directory of a Download or Module\n\
-including, but not limited to the following locations:\n\
-\n\
- - The top-level (root) directory\n\
- - Plug-in and Fragment directories\n\
- - Inside Plug-ins and Fragments packaged as JARs\n\
- - Sub-directories of the directory named "src" of certain Plug-ins\n\
- - Feature directories\n\
-\n\
-Note: if a Feature made available by the Eclipse Foundation is installed using the\n\
-Provisioning Technology (as defined below), you must agree to a license ("Feature \n\
-Update License") during the installation process. If the Feature contains\n\
-Included Features, the Feature Update License should either provide you\n\
-with the terms and conditions governing the Included Features or inform\n\
-you where you can locate them. Feature Update Licenses may be found in\n\
-the "license" property of files named "feature.properties" found within a Feature.\n\
-Such Abouts, Feature Licenses, and Feature Update Licenses contain the\n\
-terms and conditions (or references to such terms and conditions) that\n\
-govern your use of the associated Content in that directory.\n\
-\n\
-THE ABOUTS, FEATURE LICENSES, AND FEATURE UPDATE LICENSES MAY REFER\n\
-TO THE EPL OR OTHER LICENSE AGREEMENTS, NOTICES OR TERMS AND CONDITIONS.\n\
-SOME OF THESE OTHER LICENSE AGREEMENTS MAY INCLUDE (BUT ARE NOT LIMITED TO):\n\
-\n\
- - Eclipse Distribution License Version 1.0 (available at http://www.eclipse.org/licenses/edl-v1.0.html)\n\
- - Common Public License Version 1.0 (available at http://www.eclipse.org/legal/cpl-v10.html)\n\
- - Apache Software License 1.1 (available at http://www.apache.org/licenses/LICENSE)\n\
- - Apache Software License 2.0 (available at http://www.apache.org/licenses/LICENSE-2.0)\n\
- - Metro Link Public License 1.00 (available at http://www.opengroup.org/openmotif/supporters/metrolink/license.html)\n\
- - Mozilla Public License Version 1.1 (available at http://www.mozilla.org/MPL/MPL-1.1.html)\n\
-\n\
-IT IS YOUR OBLIGATION TO READ AND ACCEPT ALL SUCH TERMS AND CONDITIONS PRIOR\n\
-TO USE OF THE CONTENT. If no About, Feature License, or Feature Update License\n\
-is provided, please contact the Eclipse Foundation to determine what terms and conditions\n\
-govern that particular Content.\n\
-\n\
-\n\Use of Provisioning Technology\n\
-\n\
-The Eclipse Foundation makes available provisioning software, examples of which include,\n\
-but are not limited to, p2 and the Eclipse Update Manager ("Provisioning Technology") for\n\
-the purpose of allowing users to install software, documentation, information and/or\n\
-other materials (collectively "Installable Software"). This capability is provided with\n\
-the intent of allowing such users to install, extend and update Eclipse-based products.\n\
-Information about packaging Installable Software is available at\n\
-http://eclipse.org/equinox/p2/repository_packaging.html ("Specification").\n\
-\n\
-You may use Provisioning Technology to allow other parties to install Installable Software.\n\
-You shall be responsible for enabling the applicable license agreements relating to the\n\
-Installable Software to be presented to, and accepted by, the users of the Provisioning Technology\n\
-in accordance with the Specification. By using Provisioning Technology in such a manner and\n\
-making it available in accordance with the Specification, you further acknowledge your\n\
-agreement to, and the acquisition of all necessary rights to permit the following:\n\
-\n\
- 1. A series of actions may occur ("Provisioning Process") in which a user may execute\n\
- the Provisioning Technology on a machine ("Target Machine") with the intent of installing,\n\
- extending or updating the functionality of an Eclipse-based product.\n\
- 2. During the Provisioning Process, the Provisioning Technology may cause third party\n\
- Installable Software or a portion thereof to be accessed and copied to the Target Machine.\n\
- 3. Pursuant to the Specification, you will provide to the user the terms and conditions that\n\
- govern the use of the Installable Software ("Installable Software Agreement") and such\n\
- Installable Software Agreement shall be accessed from the Target Machine in accordance\n\
- with the Specification. Such Installable Software Agreement must inform the user of the\n\
- terms and conditions that govern the Installable Software and must solicit acceptance by\n\
- the end user in the manner prescribed in such Installable Software Agreement. Upon such\n\
- indication of agreement by the user, the provisioning Technology will complete installation\n\
- of the Installable Software.\n\
-\n\
-Cryptography\n\
-\n\
-Content may contain encryption software. The country in which you are\n\
-currently may have restrictions on the import, possession, and use,\n\
-and/or re-export to another country, of encryption software. BEFORE\n\
-using any encryption software, please check the country's laws,\n\
-regulations and policies concerning the import, possession, or use, and\n\
-re-export of encryption software, to see if this is permitted.\n\
-\n\
-Java and all Java-based trademarks are trademarks of Oracle Corporation in the United States, other countries, or both.\n
-########### end of license property ##########################################
diff --git a/features/org.eclipse.emf.eef.extended-feature/feature.xml b/features/org.eclipse.emf.eef.extended-feature/feature.xml
deleted file mode 100644
index 89a80fd42..000000000
--- a/features/org.eclipse.emf.eef.extended-feature/feature.xml
+++ /dev/null
@@ -1,69 +0,0 @@
-
-
-
-
-
- %description
-
-
-
- Copyright (c) 2008 - 2010 Obeo.
-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
-
-
-
- %license
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/features/org.eclipse.emf.eef.extended-feature/license.html b/features/org.eclipse.emf.eef.extended-feature/license.html
deleted file mode 100644
index a1fe5ea3f..000000000
--- a/features/org.eclipse.emf.eef.extended-feature/license.html
+++ /dev/null
@@ -1,116 +0,0 @@
-
-
-
-
-
-Eclipse Foundation Software User Agreement
-
-
-
-
Eclipse Foundation Software User Agreement
-
February 1, 2011
-
-
Usage Of Content
-
-
THE ECLIPSE FOUNDATION MAKES AVAILABLE SOFTWARE, DOCUMENTATION, INFORMATION AND/OR OTHER MATERIALS FOR OPEN SOURCE PROJECTS
- (COLLECTIVELY "CONTENT"). USE OF THE CONTENT IS GOVERNED BY THE TERMS AND CONDITIONS OF THIS AGREEMENT AND/OR THE TERMS AND
- CONDITIONS OF LICENSE AGREEMENTS OR NOTICES INDICATED OR REFERENCED BELOW. BY USING THE CONTENT, YOU AGREE THAT YOUR USE
- OF THE CONTENT IS GOVERNED BY THIS AGREEMENT AND/OR THE TERMS AND CONDITIONS OF ANY APPLICABLE LICENSE AGREEMENTS OR
- NOTICES INDICATED OR REFERENCED BELOW. IF YOU DO NOT AGREE TO THE TERMS AND CONDITIONS OF THIS AGREEMENT AND THE TERMS AND
- CONDITIONS OF ANY APPLICABLE LICENSE AGREEMENTS OR NOTICES INDICATED OR REFERENCED BELOW, THEN YOU MAY NOT USE THE CONTENT.
-
-
Applicable Licenses
-
-
Unless otherwise indicated, all Content made available by the Eclipse Foundation is provided to you under the terms and conditions of the Eclipse Public License Version 1.0
- ("EPL"). A copy of the EPL is provided with this Content and is also available at http://www.eclipse.org/legal/epl-v10.html.
- For purposes of the EPL, "Program" will mean the Content.
-
-
Content includes, but is not limited to, source code, object code, documentation and other files maintained in the Eclipse Foundation source code
- repository ("Repository") in software modules ("Modules") and made available as downloadable archives ("Downloads").
-
-
-
Content may be structured and packaged into modules to facilitate delivering, extending, and upgrading the Content. Typical modules may include plug-ins ("Plug-ins"), plug-in fragments ("Fragments"), and features ("Features").
-
-
Each Plug-in or Fragment may be packaged as a sub-directory or JAR (Java™ ARchive) in a directory named "plugins".
-
A Feature is a bundle of one or more Plug-ins and/or Fragments and associated material. Each Feature may be packaged as a sub-directory in a directory named "features". Within a Feature, files named "feature.xml" may contain a list of the names and version numbers of the Plug-ins
- and/or Fragments associated with that Feature.
-
Features may also include other Features ("Included Features"). Within a Feature, files named "feature.xml" may contain a list of the names and version numbers of Included Features.
-
-
-
-
The terms and conditions governing Plug-ins and Fragments should be contained in files named "about.html" ("Abouts"). The terms and conditions governing Features and
-Included Features should be contained in files named "license.html" ("Feature Licenses"). Abouts and Feature Licenses may be located in any directory of a Download or Module
-including, but not limited to the following locations:
-
-
-
The top-level (root) directory
-
-
Plug-in and Fragment directories
-
Inside Plug-ins and Fragments packaged as JARs
-
Sub-directories of the directory named "src" of certain Plug-ins
-
Feature directories
-
-
-
Note: if a Feature made available by the Eclipse Foundation is installed using the Provisioning Technology (as defined below), you must agree to a license ("Feature Update License") during the
-installation process. If the Feature contains Included Features, the Feature Update License should either provide you with the terms and conditions governing the Included Features or
-inform you where you can locate them. Feature Update Licenses may be found in the "license" property of files named "feature.properties" found within a Feature.
-Such Abouts, Feature Licenses, and Feature Update Licenses contain the terms and conditions (or references to such terms and conditions) that govern your use of the associated Content in
-that directory.
-
-
THE ABOUTS, FEATURE LICENSES, AND FEATURE UPDATE LICENSES MAY REFER TO THE EPL OR OTHER LICENSE AGREEMENTS, NOTICES OR TERMS AND CONDITIONS. SOME OF THESE
-OTHER LICENSE AGREEMENTS MAY INCLUDE (BUT ARE NOT LIMITED TO):
IT IS YOUR OBLIGATION TO READ AND ACCEPT ALL SUCH TERMS AND CONDITIONS PRIOR TO USE OF THE CONTENT. If no About, Feature License, or Feature Update License is provided, please
-contact the Eclipse Foundation to determine what terms and conditions govern that particular Content.
-
-
-
Use of Provisioning Technology
-
-
The Eclipse Foundation makes available provisioning software, examples of which include, but are not limited to, p2 and the Eclipse
- Update Manager ("Provisioning Technology") for the purpose of allowing users to install software, documentation, information and/or
- other materials (collectively "Installable Software"). This capability is provided with the intent of allowing such users to
- install, extend and update Eclipse-based products. Information about packaging Installable Software is available at http://eclipse.org/equinox/p2/repository_packaging.html
-
- ("Specification").
-
-
You may use Provisioning Technology to allow other parties to install Installable Software. You shall be responsible for enabling the
- applicable license agreements relating to the Installable Software to be presented to, and accepted by, the users of the Provisioning Technology
- in accordance with the Specification. By using Provisioning Technology in such a manner and making it available in accordance with the
- Specification, you further acknowledge your agreement to, and the acquisition of all necessary rights to permit the following:
-
-
-
A series of actions may occur ("Provisioning Process") in which a user may execute the Provisioning Technology
- on a machine ("Target Machine") with the intent of installing, extending or updating the functionality of an Eclipse-based
- product.
-
-
During the Provisioning Process, the Provisioning Technology may cause third party Installable Software or a portion thereof to be
- accessed and copied to the Target Machine.
-
Pursuant to the Specification, you will provide to the user the terms and conditions that govern the use of the Installable
- Software ("Installable Software Agreement") and such Installable Software Agreement shall be accessed from the Target
- Machine in accordance with the Specification. Such Installable Software Agreement must inform the user of the terms and conditions that govern
- the Installable Software and must solicit acceptance by the end user in the manner prescribed in such Installable Software Agreement. Upon such
- indication of agreement by the user, the provisioning Technology will complete installation of the Installable Software.
-
-
-
Cryptography
-
-
Content may contain encryption software. The country in which you are currently may have restrictions on the import, possession, and use, and/or re-export to
- another country, of encryption software. BEFORE using any encryption software, please check the country's laws, regulations and policies concerning the import,
- possession, or use, and re-export of encryption software, to see if this is permitted.
-
-
Java and all Java-based trademarks are trademarks of Oracle Corporation in the United States, other countries, or both.
-
-
-
diff --git a/features/org.eclipse.emf.eef.extended-feature/license.txt b/features/org.eclipse.emf.eef.extended-feature/license.txt
deleted file mode 100644
index 24937b64c..000000000
--- a/features/org.eclipse.emf.eef.extended-feature/license.txt
+++ /dev/null
@@ -1,87 +0,0 @@
-Eclipse Public License - v 1.0
-
-THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE PUBLIC LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT.
-
-1. DEFINITIONS
-
-"Contribution" means:
-
-a) in the case of the initial Contributor, the initial code and documentation distributed under this Agreement, and
-b) in the case of each subsequent Contributor:
-
-i) changes to the Program, and
-
-ii) additions to the Program;
-
-where such changes and/or additions to the Program originate from and are distributed by that particular Contributor. A Contribution 'originates' from a Contributor if it was added to the Program by such Contributor itself or anyone acting on such Contributor's behalf. Contributions do not include additions to the Program which: (i) are separate modules of software distributed in conjunction with the Program under their own license agreement, and (ii) are not derivative works of the Program.
-
-"Contributor" means any person or entity that distributes the Program.
-
-"Licensed Patents " mean patent claims licensable by a Contributor which are necessarily infringed by the use or sale of its Contribution alone or when combined with the Program.
-
-"Program" means the Contributions distributed in accordance with this Agreement.
-
-"Recipient" means anyone who receives the Program under this Agreement, including all Contributors.
-
-2. GRANT OF RIGHTS
-
-a) Subject to the terms of this Agreement, each Contributor hereby grants Recipient a non-exclusive, worldwide, royalty-free copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, distribute and sublicense the Contribution of such Contributor, if any, and such derivative works, in source code and object code form.
-
-b) Subject to the terms of this Agreement, each Contributor hereby grants Recipient a non-exclusive, worldwide, royalty-free patent license under Licensed Patents to make, use, sell, offer to sell, import and otherwise transfer the Contribution of such Contributor, if any, in source code and object code form. This patent license shall apply to the combination of the Contribution and the Program if, at the time the Contribution is added by the Contributor, such addition of the Contribution causes such combination to be covered by the Licensed Patents. The patent license shall not apply to any other combinations which include the Contribution. No hardware per se is licensed hereunder.
-
-c) Recipient understands that although each Contributor grants the licenses to its Contributions set forth herein, no assurances are provided by any Contributor that the Program does not infringe the patent or other intellectual property rights of any other entity. Each Contributor disclaims any liability to Recipient for claims brought by any other entity based on infringement of intellectual property rights or otherwise. As a condition to exercising the rights and licenses granted hereunder, each Recipient hereby assumes sole responsibility to secure any other intellectual property rights needed, if any. For example, if a third party patent license is required to allow Recipient to distribute the Program, it is Recipient's responsibility to acquire that license before distributing the Program.
-
-d) Each Contributor represents that to its knowledge it has sufficient copyright rights in its Contribution, if any, to grant the copyright license set forth in this Agreement.
-
-3. REQUIREMENTS
-
-A Contributor may choose to distribute the Program in object code form under its own license agreement, provided that:
-
-a) it complies with the terms and conditions of this Agreement; and
-
-b) its license agreement:
-
-i) effectively disclaims on behalf of all Contributors all warranties and conditions, express and implied, including warranties or conditions of title and non-infringement, and implied warranties or conditions of merchantability and fitness for a particular purpose;
-
-ii) effectively excludes on behalf of all Contributors all liability for damages, including direct, indirect, special, incidental and consequential damages, such as lost profits;
-
-iii) states that any provisions which differ from this Agreement are offered by that Contributor alone and not by any other party; and
-
-iv) states that source code for the Program is available from such Contributor, and informs licensees how to obtain it in a reasonable manner on or through a medium customarily used for software exchange.
-
-When the Program is made available in source code form:
-
-a) it must be made available under this Agreement; and
-
-b) a copy of this Agreement must be included with each copy of the Program.
-
-Contributors may not remove or alter any copyright notices contained within the Program.
-
-Each Contributor must identify itself as the originator of its Contribution, if any, in a manner that reasonably allows subsequent Recipients to identify the originator of the Contribution.
-
-4. COMMERCIAL DISTRIBUTION
-
-Commercial distributors of software may accept certain responsibilities with respect to end users, business partners and the like. While this license is intended to facilitate the commercial use of the Program, the Contributor who includes the Program in a commercial product offering should do so in a manner which does not create potential liability for other Contributors. Therefore, if a Contributor includes the Program in a commercial product offering, such Contributor ("Commercial Contributor") hereby agrees to defend and indemnify every other Contributor ("Indemnified Contributor") against any losses, damages and costs (collectively "Losses") arising from claims, lawsuits and other legal actions brought by a third party against the Indemnified Contributor to the extent caused by the acts or omissions of such Commercial Contributor in connection with its distribution of the Program in a commercial product offering. The obligations in this section do not apply to any claims or Losses relating to any actual or alleged intellectual property infringement. In order to qualify, an Indemnified Contributor must: a) promptly notify the Commercial Contributor in writing of such claim, and b) allow the Commercial Contributor to control, and cooperate with the Commercial Contributor in, the defense and any related settlement negotiations. The Indemnified Contributor may participate in any such claim at its own expense.
-
-For example, a Contributor might include the Program in a commercial product offering, Product X. That Contributor is then a Commercial Contributor. If that Commercial Contributor then makes performance claims, or offers warranties related to Product X, those performance claims and warranties are such Commercial Contributor's responsibility alone. Under this section, the Commercial Contributor would have to defend claims against the other Contributors related to those performance claims and warranties, and if a court requires any other Contributor to pay any damages as a result, the Commercial Contributor must pay those damages.
-
-5. NO WARRANTY
-
-EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely responsible for determining the appropriateness of using and distributing the Program and assumes all risks associated with its exercise of rights under this Agreement , including but not limited to the risks and costs of program errors, compliance with applicable laws, damage to or loss of data, programs or equipment, and unavailability or interruption of operations.
-
-6. DISCLAIMER OF LIABILITY
-
-EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
-
-7. GENERAL
-
-If any provision of this Agreement is invalid or unenforceable under applicable law, it shall not affect the validity or enforceability of the remainder of the terms of this Agreement, and without further action by the parties hereto, such provision shall be reformed to the minimum extent necessary to make such provision valid and enforceable.
-
-If Recipient institutes patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Program itself (excluding combinations of the Program with other software or hardware) infringes such Recipient's patent(s), then such Recipient's rights granted under Section 2(b) shall terminate as of the date such litigation is filed.
-
-All Recipient's rights under this Agreement shall terminate if it fails to comply with any of the material terms or conditions of this Agreement and does not cure such failure in a reasonable period of time after becoming aware of such noncompliance. If all Recipient's rights under this Agreement terminate, Recipient agrees to cease use and distribution of the Program as soon as reasonably practicable. However, Recipient's obligations under this Agreement and any licenses granted by Recipient relating to the Program shall continue and survive.
-
-Everyone is permitted to copy and distribute copies of this Agreement, but in order to avoid inconsistency the Agreement is copyrighted and may only be modified in the following manner. The Agreement Steward reserves the right to publish new versions (including revisions) of this Agreement from time to time. No one other than the Agreement Steward has the right to modify this Agreement. The Eclipse Foundation is the initial Agreement Steward. The Eclipse Foundation may assign the responsibility to serve as the Agreement Steward to a suitable separate entity. Each new version of the Agreement will be given a distinguishing version number. The Program (including Contributions) may always be distributed subject to the version of the Agreement under which it was received. In addition, after a new version of the Agreement is published, Contributor may elect to distribute the Program (including its Contributions) under the new version. Except as expressly stated in Sections 2(a) and 2(b) above, Recipient receives no rights or licenses to the intellectual property of any Contributor under this Agreement, whether expressly, by implication, estoppel or otherwise. All rights in the Program not expressly granted under this Agreement are reserved.
-
-This Agreement is governed by the laws of the State of New York and the intellectual property laws of the United States of America. No party to this Agreement will bring a legal action under this Agreement more than one year after the cause of action arose. Each party waives its rights to a jury trial in any resulting litigation.
-
diff --git a/features/org.eclipse.emf.eef.extended-feature/pom.xml b/features/org.eclipse.emf.eef.extended-feature/pom.xml
deleted file mode 100644
index 0cf4770cf..000000000
--- a/features/org.eclipse.emf.eef.extended-feature/pom.xml
+++ /dev/null
@@ -1,29 +0,0 @@
-
-
-
-
- 4.0.0
-
-
- org.eclipse.emf
- org.eclipse.emf.eef.releng.parent
- ../../releng/org.eclipse.emf.eef.releng.parent
- 1.5.2-SNAPSHOT
-
-
- org.eclipse.emf.eef.extended-feature
- eclipse-feature
-
- EEF Extensions Feature
-
-
diff --git a/features/org.eclipse.emf.eef.richtext-feature/.gitignore b/features/org.eclipse.emf.eef.richtext-feature/.gitignore
deleted file mode 100644
index eb5a316cb..000000000
--- a/features/org.eclipse.emf.eef.richtext-feature/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-target
diff --git a/features/org.eclipse.emf.eef.richtext-feature/.project b/features/org.eclipse.emf.eef.richtext-feature/.project
deleted file mode 100644
index 4bd942324..000000000
--- a/features/org.eclipse.emf.eef.richtext-feature/.project
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
- org.eclipse.emf.eef.richtext-feature
-
-
-
-
-
- org.eclipse.pde.FeatureBuilder
-
-
-
-
-
- org.eclipse.pde.FeatureNature
-
-
diff --git a/features/org.eclipse.emf.eef.richtext-feature/build.properties b/features/org.eclipse.emf.eef.richtext-feature/build.properties
deleted file mode 100644
index 7aa629d6d..000000000
--- a/features/org.eclipse.emf.eef.richtext-feature/build.properties
+++ /dev/null
@@ -1,20 +0,0 @@
-###############################################################################
-# Copyright (c) 2008, 2012 Obeo.
-# 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:
-# Obeo - initial API and implementation
-###############################################################################
-bin.includes = feature.xml,\
- feature.properties,\
- license.html,\
- license.txt,\
- epl-v10.html
-src.includes = feature.properties,\
- license.html,\
- license.txt,\
- feature.xml,\
- epl-v10.html
diff --git a/features/org.eclipse.emf.eef.richtext-feature/epl-v10.html b/features/org.eclipse.emf.eef.richtext-feature/epl-v10.html
deleted file mode 100644
index 0d34dd06a..000000000
--- a/features/org.eclipse.emf.eef.richtext-feature/epl-v10.html
+++ /dev/null
@@ -1,262 +0,0 @@
-
-
-
-
-
-
-Eclipse Public License - Version 1.0
-
-
-
-
-
-
-
Eclipse Public License - v 1.0
-
-
THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE
-PUBLIC LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR
-DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS
-AGREEMENT.
-
-
1. DEFINITIONS
-
-
"Contribution" means:
-
-
a) in the case of the initial Contributor, the initial
-code and documentation distributed under this Agreement, and
-
b) in the case of each subsequent Contributor:
-
-
i) changes to the Program, and
-
ii) additions to the Program;
-
where such changes and/or additions to the Program
-originate from and are distributed by that particular Contributor. A
-Contribution 'originates' from a Contributor if it was added to the
-Program by such Contributor itself or anyone acting on such
-Contributor's behalf. Contributions do not include additions to the
-Program which: (i) are separate modules of software distributed in
-conjunction with the Program under their own license agreement, and (ii)
-are not derivative works of the Program.
-
-
"Contributor" means any person or entity that distributes
-the Program.
-
-
"Licensed Patents" mean patent claims licensable by a
-Contributor which are necessarily infringed by the use or sale of its
-Contribution alone or when combined with the Program.
-
-
"Program" means the Contributions distributed in accordance
-with this Agreement.
-
-
"Recipient" means anyone who receives the Program under
-this Agreement, including all Contributors.
-
-
2. GRANT OF RIGHTS
-
-
a) Subject to the terms of this Agreement, each
-Contributor hereby grants Recipient a non-exclusive, worldwide,
-royalty-free copyright license to reproduce, prepare derivative works
-of, publicly display, publicly perform, distribute and sublicense the
-Contribution of such Contributor, if any, and such derivative works, in
-source code and object code form.
-
-
b) Subject to the terms of this Agreement, each
-Contributor hereby grants Recipient a non-exclusive, worldwide,
-royalty-free patent license under Licensed Patents to make, use, sell,
-offer to sell, import and otherwise transfer the Contribution of such
-Contributor, if any, in source code and object code form. This patent
-license shall apply to the combination of the Contribution and the
-Program if, at the time the Contribution is added by the Contributor,
-such addition of the Contribution causes such combination to be covered
-by the Licensed Patents. The patent license shall not apply to any other
-combinations which include the Contribution. No hardware per se is
-licensed hereunder.
-
-
c) Recipient understands that although each Contributor
-grants the licenses to its Contributions set forth herein, no assurances
-are provided by any Contributor that the Program does not infringe the
-patent or other intellectual property rights of any other entity. Each
-Contributor disclaims any liability to Recipient for claims brought by
-any other entity based on infringement of intellectual property rights
-or otherwise. As a condition to exercising the rights and licenses
-granted hereunder, each Recipient hereby assumes sole responsibility to
-secure any other intellectual property rights needed, if any. For
-example, if a third party patent license is required to allow Recipient
-to distribute the Program, it is Recipient's responsibility to acquire
-that license before distributing the Program.
-
-
d) Each Contributor represents that to its knowledge it
-has sufficient copyright rights in its Contribution, if any, to grant
-the copyright license set forth in this Agreement.
-
-
3. REQUIREMENTS
-
-
A Contributor may choose to distribute the Program in object code
-form under its own license agreement, provided that:
-
-
a) it complies with the terms and conditions of this
-Agreement; and
-
-
b) its license agreement:
-
-
i) effectively disclaims on behalf of all Contributors
-all warranties and conditions, express and implied, including warranties
-or conditions of title and non-infringement, and implied warranties or
-conditions of merchantability and fitness for a particular purpose;
-
-
ii) effectively excludes on behalf of all Contributors
-all liability for damages, including direct, indirect, special,
-incidental and consequential damages, such as lost profits;
-
-
iii) states that any provisions which differ from this
-Agreement are offered by that Contributor alone and not by any other
-party; and
-
-
iv) states that source code for the Program is available
-from such Contributor, and informs licensees how to obtain it in a
-reasonable manner on or through a medium customarily used for software
-exchange.
-
-
When the Program is made available in source code form:
-
-
a) it must be made available under this Agreement; and
-
-
b) a copy of this Agreement must be included with each
-copy of the Program.
-
-
Contributors may not remove or alter any copyright notices contained
-within the Program.
-
-
Each Contributor must identify itself as the originator of its
-Contribution, if any, in a manner that reasonably allows subsequent
-Recipients to identify the originator of the Contribution.
-
-
4. COMMERCIAL DISTRIBUTION
-
-
Commercial distributors of software may accept certain
-responsibilities with respect to end users, business partners and the
-like. While this license is intended to facilitate the commercial use of
-the Program, the Contributor who includes the Program in a commercial
-product offering should do so in a manner which does not create
-potential liability for other Contributors. Therefore, if a Contributor
-includes the Program in a commercial product offering, such Contributor
-("Commercial Contributor") hereby agrees to defend and
-indemnify every other Contributor ("Indemnified Contributor")
-against any losses, damages and costs (collectively "Losses")
-arising from claims, lawsuits and other legal actions brought by a third
-party against the Indemnified Contributor to the extent caused by the
-acts or omissions of such Commercial Contributor in connection with its
-distribution of the Program in a commercial product offering. The
-obligations in this section do not apply to any claims or Losses
-relating to any actual or alleged intellectual property infringement. In
-order to qualify, an Indemnified Contributor must: a) promptly notify
-the Commercial Contributor in writing of such claim, and b) allow the
-Commercial Contributor to control, and cooperate with the Commercial
-Contributor in, the defense and any related settlement negotiations. The
-Indemnified Contributor may participate in any such claim at its own
-expense.
-
-
For example, a Contributor might include the Program in a commercial
-product offering, Product X. That Contributor is then a Commercial
-Contributor. If that Commercial Contributor then makes performance
-claims, or offers warranties related to Product X, those performance
-claims and warranties are such Commercial Contributor's responsibility
-alone. Under this section, the Commercial Contributor would have to
-defend claims against the other Contributors related to those
-performance claims and warranties, and if a court requires any other
-Contributor to pay any damages as a result, the Commercial Contributor
-must pay those damages.
-
-
5. NO WARRANTY
-
-
EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS
-PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS
-OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION,
-ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY
-OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely
-responsible for determining the appropriateness of using and
-distributing the Program and assumes all risks associated with its
-exercise of rights under this Agreement , including but not limited to
-the risks and costs of program errors, compliance with applicable laws,
-damage to or loss of data, programs or equipment, and unavailability or
-interruption of operations.
-
-
6. DISCLAIMER OF LIABILITY
-
-
EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT
-NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT,
-INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING
-WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF
-LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR
-DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED
-HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
-
-
7. GENERAL
-
-
If any provision of this Agreement is invalid or unenforceable under
-applicable law, it shall not affect the validity or enforceability of
-the remainder of the terms of this Agreement, and without further action
-by the parties hereto, such provision shall be reformed to the minimum
-extent necessary to make such provision valid and enforceable.
-
-
If Recipient institutes patent litigation against any entity
-(including a cross-claim or counterclaim in a lawsuit) alleging that the
-Program itself (excluding combinations of the Program with other
-software or hardware) infringes such Recipient's patent(s), then such
-Recipient's rights granted under Section 2(b) shall terminate as of the
-date such litigation is filed.
-
-
All Recipient's rights under this Agreement shall terminate if it
-fails to comply with any of the material terms or conditions of this
-Agreement and does not cure such failure in a reasonable period of time
-after becoming aware of such noncompliance. If all Recipient's rights
-under this Agreement terminate, Recipient agrees to cease use and
-distribution of the Program as soon as reasonably practicable. However,
-Recipient's obligations under this Agreement and any licenses granted by
-Recipient relating to the Program shall continue and survive.
-
-
Everyone is permitted to copy and distribute copies of this
-Agreement, but in order to avoid inconsistency the Agreement is
-copyrighted and may only be modified in the following manner. The
-Agreement Steward reserves the right to publish new versions (including
-revisions) of this Agreement from time to time. No one other than the
-Agreement Steward has the right to modify this Agreement. The Eclipse
-Foundation is the initial Agreement Steward. The Eclipse Foundation may
-assign the responsibility to serve as the Agreement Steward to a
-suitable separate entity. Each new version of the Agreement will be
-given a distinguishing version number. The Program (including
-Contributions) may always be distributed subject to the version of the
-Agreement under which it was received. In addition, after a new version
-of the Agreement is published, Contributor may elect to distribute the
-Program (including its Contributions) under the new version. Except as
-expressly stated in Sections 2(a) and 2(b) above, Recipient receives no
-rights or licenses to the intellectual property of any Contributor under
-this Agreement, whether expressly, by implication, estoppel or
-otherwise. All rights in the Program not expressly granted under this
-Agreement are reserved.
-
-
This Agreement is governed by the laws of the State of New York and
-the intellectual property laws of the United States of America. No party
-to this Agreement will bring a legal action under this Agreement more
-than one year after the cause of action arose. Each party waives its
-rights to a jury trial in any resulting litigation.
-
-
-
-
\ No newline at end of file
diff --git a/features/org.eclipse.emf.eef.richtext-feature/feature.properties b/features/org.eclipse.emf.eef.richtext-feature/feature.properties
deleted file mode 100644
index dea52bede..000000000
--- a/features/org.eclipse.emf.eef.richtext-feature/feature.properties
+++ /dev/null
@@ -1,147 +0,0 @@
-###############################################################################
-# Copyright (c) 2008, 2012 Obeo.
-# 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:
-# Obeo - initial API and implementation
-###############################################################################
-providerName=Eclipse Modeling Project
-featureName=Extended Editing Framework - Richtext widget
-modelingUpdateSiteName=Eclipse Modeling Project Updates
-description=Extended Editing Framework - \n\
-this includes EPF richtext widget.
-
-# "licenseURL" property - URL of the "Feature License"
-# do not translate value - just change to point to a locale-specific HTML page
-licenseURL=license.html
-
-# "license" property - text of the "Feature Update License"
-# should be plain text version of license agreement pointed to be "licenseURL"
-license=\
-Eclipse Foundation Software User Agreement\n\
-February 1, 2011\n\
-\n\
-Usage Of Content\n\
-\n\
-THE ECLIPSE FOUNDATION MAKES AVAILABLE SOFTWARE, DOCUMENTATION, INFORMATION AND/OR\n\
-OTHER MATERIALS FOR OPEN SOURCE PROJECTS (COLLECTIVELY "CONTENT").\n\
-USE OF THE CONTENT IS GOVERNED BY THE TERMS AND CONDITIONS OF THIS\n\
-AGREEMENT AND/OR THE TERMS AND CONDITIONS OF LICENSE AGREEMENTS OR\n\
-NOTICES INDICATED OR REFERENCED BELOW. BY USING THE CONTENT, YOU\n\
-AGREE THAT YOUR USE OF THE CONTENT IS GOVERNED BY THIS AGREEMENT\n\
-AND/OR THE TERMS AND CONDITIONS OF ANY APPLICABLE LICENSE AGREEMENTS\n\
-OR NOTICES INDICATED OR REFERENCED BELOW. IF YOU DO NOT AGREE TO THE\n\
-TERMS AND CONDITIONS OF THIS AGREEMENT AND THE TERMS AND CONDITIONS\n\
-OF ANY APPLICABLE LICENSE AGREEMENTS OR NOTICES INDICATED OR REFERENCED\n\
-BELOW, THEN YOU MAY NOT USE THE CONTENT.\n\
-\n\
-Applicable Licenses\n\
-\n\
-Unless otherwise indicated, all Content made available by the\n\
-Eclipse Foundation is provided to you under the terms and conditions of\n\
-the Eclipse Public License Version 1.0 ("EPL"). A copy of the EPL is\n\
-provided with this Content and is also available at http://www.eclipse.org/legal/epl-v10.html.\n\
-For purposes of the EPL, "Program" will mean the Content.\n\
-\n\
-Content includes, but is not limited to, source code, object code,\n\
-documentation and other files maintained in the Eclipse Foundation source code\n\
-repository ("Repository") in software modules ("Modules") and made available\n\
-as downloadable archives ("Downloads").\n\
-\n\
- - Content may be structured and packaged into modules to facilitate delivering,\n\
- extending, and upgrading the Content. Typical modules may include plug-ins ("Plug-ins"),\n\
- plug-in fragments ("Fragments"), and features ("Features").\n\
- - Each Plug-in or Fragment may be packaged as a sub-directory or JAR (Java(TM) ARchive)\n\
- in a directory named "plugins".\n\
- - A Feature is a bundle of one or more Plug-ins and/or Fragments and associated material.\n\
- Each Feature may be packaged as a sub-directory in a directory named "features".\n\
- Within a Feature, files named "feature.xml" may contain a list of the names and version\n\
- numbers of the Plug-ins and/or Fragments associated with that Feature.\n\
- - Features may also include other Features ("Included Features"). Within a Feature, files\n\
- named "feature.xml" may contain a list of the names and version numbers of Included Features.\n\
-\n\
-The terms and conditions governing Plug-ins and Fragments should be\n\
-contained in files named "about.html" ("Abouts"). The terms and\n\
-conditions governing Features and Included Features should be contained\n\
-in files named "license.html" ("Feature Licenses"). Abouts and Feature\n\
-Licenses may be located in any directory of a Download or Module\n\
-including, but not limited to the following locations:\n\
-\n\
- - The top-level (root) directory\n\
- - Plug-in and Fragment directories\n\
- - Inside Plug-ins and Fragments packaged as JARs\n\
- - Sub-directories of the directory named "src" of certain Plug-ins\n\
- - Feature directories\n\
-\n\
-Note: if a Feature made available by the Eclipse Foundation is installed using the\n\
-Provisioning Technology (as defined below), you must agree to a license ("Feature \n\
-Update License") during the installation process. If the Feature contains\n\
-Included Features, the Feature Update License should either provide you\n\
-with the terms and conditions governing the Included Features or inform\n\
-you where you can locate them. Feature Update Licenses may be found in\n\
-the "license" property of files named "feature.properties" found within a Feature.\n\
-Such Abouts, Feature Licenses, and Feature Update Licenses contain the\n\
-terms and conditions (or references to such terms and conditions) that\n\
-govern your use of the associated Content in that directory.\n\
-\n\
-THE ABOUTS, FEATURE LICENSES, AND FEATURE UPDATE LICENSES MAY REFER\n\
-TO THE EPL OR OTHER LICENSE AGREEMENTS, NOTICES OR TERMS AND CONDITIONS.\n\
-SOME OF THESE OTHER LICENSE AGREEMENTS MAY INCLUDE (BUT ARE NOT LIMITED TO):\n\
-\n\
- - Eclipse Distribution License Version 1.0 (available at http://www.eclipse.org/licenses/edl-v1.0.html)\n\
- - Common Public License Version 1.0 (available at http://www.eclipse.org/legal/cpl-v10.html)\n\
- - Apache Software License 1.1 (available at http://www.apache.org/licenses/LICENSE)\n\
- - Apache Software License 2.0 (available at http://www.apache.org/licenses/LICENSE-2.0)\n\
- - Metro Link Public License 1.00 (available at http://www.opengroup.org/openmotif/supporters/metrolink/license.html)\n\
- - Mozilla Public License Version 1.1 (available at http://www.mozilla.org/MPL/MPL-1.1.html)\n\
-\n\
-IT IS YOUR OBLIGATION TO READ AND ACCEPT ALL SUCH TERMS AND CONDITIONS PRIOR\n\
-TO USE OF THE CONTENT. If no About, Feature License, or Feature Update License\n\
-is provided, please contact the Eclipse Foundation to determine what terms and conditions\n\
-govern that particular Content.\n\
-\n\
-\n\Use of Provisioning Technology\n\
-\n\
-The Eclipse Foundation makes available provisioning software, examples of which include,\n\
-but are not limited to, p2 and the Eclipse Update Manager ("Provisioning Technology") for\n\
-the purpose of allowing users to install software, documentation, information and/or\n\
-other materials (collectively "Installable Software"). This capability is provided with\n\
-the intent of allowing such users to install, extend and update Eclipse-based products.\n\
-Information about packaging Installable Software is available at\n\
-http://eclipse.org/equinox/p2/repository_packaging.html ("Specification").\n\
-\n\
-You may use Provisioning Technology to allow other parties to install Installable Software.\n\
-You shall be responsible for enabling the applicable license agreements relating to the\n\
-Installable Software to be presented to, and accepted by, the users of the Provisioning Technology\n\
-in accordance with the Specification. By using Provisioning Technology in such a manner and\n\
-making it available in accordance with the Specification, you further acknowledge your\n\
-agreement to, and the acquisition of all necessary rights to permit the following:\n\
-\n\
- 1. A series of actions may occur ("Provisioning Process") in which a user may execute\n\
- the Provisioning Technology on a machine ("Target Machine") with the intent of installing,\n\
- extending or updating the functionality of an Eclipse-based product.\n\
- 2. During the Provisioning Process, the Provisioning Technology may cause third party\n\
- Installable Software or a portion thereof to be accessed and copied to the Target Machine.\n\
- 3. Pursuant to the Specification, you will provide to the user the terms and conditions that\n\
- govern the use of the Installable Software ("Installable Software Agreement") and such\n\
- Installable Software Agreement shall be accessed from the Target Machine in accordance\n\
- with the Specification. Such Installable Software Agreement must inform the user of the\n\
- terms and conditions that govern the Installable Software and must solicit acceptance by\n\
- the end user in the manner prescribed in such Installable Software Agreement. Upon such\n\
- indication of agreement by the user, the provisioning Technology will complete installation\n\
- of the Installable Software.\n\
-\n\
-Cryptography\n\
-\n\
-Content may contain encryption software. The country in which you are\n\
-currently may have restrictions on the import, possession, and use,\n\
-and/or re-export to another country, of encryption software. BEFORE\n\
-using any encryption software, please check the country's laws,\n\
-regulations and policies concerning the import, possession, or use, and\n\
-re-export of encryption software, to see if this is permitted.\n\
-\n\
-Java and all Java-based trademarks are trademarks of Oracle Corporation in the United States, other countries, or both.\n
-########### end of license property ##########################################
diff --git a/features/org.eclipse.emf.eef.richtext-feature/feature.xml b/features/org.eclipse.emf.eef.richtext-feature/feature.xml
deleted file mode 100644
index 1e7f28609..000000000
--- a/features/org.eclipse.emf.eef.richtext-feature/feature.xml
+++ /dev/null
@@ -1,41 +0,0 @@
-
-
-
-
-
- %description
-
-
-
- Copyright (c) 2011 Obeo.
-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
-
-
-
- %license
-
-
-
-
-
diff --git a/features/org.eclipse.emf.eef.richtext-feature/license.html b/features/org.eclipse.emf.eef.richtext-feature/license.html
deleted file mode 100644
index a1fe5ea3f..000000000
--- a/features/org.eclipse.emf.eef.richtext-feature/license.html
+++ /dev/null
@@ -1,116 +0,0 @@
-
-
-
-
-
-Eclipse Foundation Software User Agreement
-
-
-
-
Eclipse Foundation Software User Agreement
-
February 1, 2011
-
-
Usage Of Content
-
-
THE ECLIPSE FOUNDATION MAKES AVAILABLE SOFTWARE, DOCUMENTATION, INFORMATION AND/OR OTHER MATERIALS FOR OPEN SOURCE PROJECTS
- (COLLECTIVELY "CONTENT"). USE OF THE CONTENT IS GOVERNED BY THE TERMS AND CONDITIONS OF THIS AGREEMENT AND/OR THE TERMS AND
- CONDITIONS OF LICENSE AGREEMENTS OR NOTICES INDICATED OR REFERENCED BELOW. BY USING THE CONTENT, YOU AGREE THAT YOUR USE
- OF THE CONTENT IS GOVERNED BY THIS AGREEMENT AND/OR THE TERMS AND CONDITIONS OF ANY APPLICABLE LICENSE AGREEMENTS OR
- NOTICES INDICATED OR REFERENCED BELOW. IF YOU DO NOT AGREE TO THE TERMS AND CONDITIONS OF THIS AGREEMENT AND THE TERMS AND
- CONDITIONS OF ANY APPLICABLE LICENSE AGREEMENTS OR NOTICES INDICATED OR REFERENCED BELOW, THEN YOU MAY NOT USE THE CONTENT.
-
-
Applicable Licenses
-
-
Unless otherwise indicated, all Content made available by the Eclipse Foundation is provided to you under the terms and conditions of the Eclipse Public License Version 1.0
- ("EPL"). A copy of the EPL is provided with this Content and is also available at http://www.eclipse.org/legal/epl-v10.html.
- For purposes of the EPL, "Program" will mean the Content.
-
-
Content includes, but is not limited to, source code, object code, documentation and other files maintained in the Eclipse Foundation source code
- repository ("Repository") in software modules ("Modules") and made available as downloadable archives ("Downloads").
-
-
-
Content may be structured and packaged into modules to facilitate delivering, extending, and upgrading the Content. Typical modules may include plug-ins ("Plug-ins"), plug-in fragments ("Fragments"), and features ("Features").
-
-
Each Plug-in or Fragment may be packaged as a sub-directory or JAR (Java™ ARchive) in a directory named "plugins".
-
A Feature is a bundle of one or more Plug-ins and/or Fragments and associated material. Each Feature may be packaged as a sub-directory in a directory named "features". Within a Feature, files named "feature.xml" may contain a list of the names and version numbers of the Plug-ins
- and/or Fragments associated with that Feature.
-
Features may also include other Features ("Included Features"). Within a Feature, files named "feature.xml" may contain a list of the names and version numbers of Included Features.
-
-
-
-
The terms and conditions governing Plug-ins and Fragments should be contained in files named "about.html" ("Abouts"). The terms and conditions governing Features and
-Included Features should be contained in files named "license.html" ("Feature Licenses"). Abouts and Feature Licenses may be located in any directory of a Download or Module
-including, but not limited to the following locations:
-
-
-
The top-level (root) directory
-
-
Plug-in and Fragment directories
-
Inside Plug-ins and Fragments packaged as JARs
-
Sub-directories of the directory named "src" of certain Plug-ins
-
Feature directories
-
-
-
Note: if a Feature made available by the Eclipse Foundation is installed using the Provisioning Technology (as defined below), you must agree to a license ("Feature Update License") during the
-installation process. If the Feature contains Included Features, the Feature Update License should either provide you with the terms and conditions governing the Included Features or
-inform you where you can locate them. Feature Update Licenses may be found in the "license" property of files named "feature.properties" found within a Feature.
-Such Abouts, Feature Licenses, and Feature Update Licenses contain the terms and conditions (or references to such terms and conditions) that govern your use of the associated Content in
-that directory.
-
-
THE ABOUTS, FEATURE LICENSES, AND FEATURE UPDATE LICENSES MAY REFER TO THE EPL OR OTHER LICENSE AGREEMENTS, NOTICES OR TERMS AND CONDITIONS. SOME OF THESE
-OTHER LICENSE AGREEMENTS MAY INCLUDE (BUT ARE NOT LIMITED TO):
IT IS YOUR OBLIGATION TO READ AND ACCEPT ALL SUCH TERMS AND CONDITIONS PRIOR TO USE OF THE CONTENT. If no About, Feature License, or Feature Update License is provided, please
-contact the Eclipse Foundation to determine what terms and conditions govern that particular Content.
-
-
-
Use of Provisioning Technology
-
-
The Eclipse Foundation makes available provisioning software, examples of which include, but are not limited to, p2 and the Eclipse
- Update Manager ("Provisioning Technology") for the purpose of allowing users to install software, documentation, information and/or
- other materials (collectively "Installable Software"). This capability is provided with the intent of allowing such users to
- install, extend and update Eclipse-based products. Information about packaging Installable Software is available at http://eclipse.org/equinox/p2/repository_packaging.html
-
- ("Specification").
-
-
You may use Provisioning Technology to allow other parties to install Installable Software. You shall be responsible for enabling the
- applicable license agreements relating to the Installable Software to be presented to, and accepted by, the users of the Provisioning Technology
- in accordance with the Specification. By using Provisioning Technology in such a manner and making it available in accordance with the
- Specification, you further acknowledge your agreement to, and the acquisition of all necessary rights to permit the following:
-
-
-
A series of actions may occur ("Provisioning Process") in which a user may execute the Provisioning Technology
- on a machine ("Target Machine") with the intent of installing, extending or updating the functionality of an Eclipse-based
- product.
-
-
During the Provisioning Process, the Provisioning Technology may cause third party Installable Software or a portion thereof to be
- accessed and copied to the Target Machine.
-
Pursuant to the Specification, you will provide to the user the terms and conditions that govern the use of the Installable
- Software ("Installable Software Agreement") and such Installable Software Agreement shall be accessed from the Target
- Machine in accordance with the Specification. Such Installable Software Agreement must inform the user of the terms and conditions that govern
- the Installable Software and must solicit acceptance by the end user in the manner prescribed in such Installable Software Agreement. Upon such
- indication of agreement by the user, the provisioning Technology will complete installation of the Installable Software.
-
-
-
Cryptography
-
-
Content may contain encryption software. The country in which you are currently may have restrictions on the import, possession, and use, and/or re-export to
- another country, of encryption software. BEFORE using any encryption software, please check the country's laws, regulations and policies concerning the import,
- possession, or use, and re-export of encryption software, to see if this is permitted.
-
-
Java and all Java-based trademarks are trademarks of Oracle Corporation in the United States, other countries, or both.
-
-
-
diff --git a/features/org.eclipse.emf.eef.richtext-feature/license.txt b/features/org.eclipse.emf.eef.richtext-feature/license.txt
deleted file mode 100644
index 24937b64c..000000000
--- a/features/org.eclipse.emf.eef.richtext-feature/license.txt
+++ /dev/null
@@ -1,87 +0,0 @@
-Eclipse Public License - v 1.0
-
-THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE PUBLIC LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT.
-
-1. DEFINITIONS
-
-"Contribution" means:
-
-a) in the case of the initial Contributor, the initial code and documentation distributed under this Agreement, and
-b) in the case of each subsequent Contributor:
-
-i) changes to the Program, and
-
-ii) additions to the Program;
-
-where such changes and/or additions to the Program originate from and are distributed by that particular Contributor. A Contribution 'originates' from a Contributor if it was added to the Program by such Contributor itself or anyone acting on such Contributor's behalf. Contributions do not include additions to the Program which: (i) are separate modules of software distributed in conjunction with the Program under their own license agreement, and (ii) are not derivative works of the Program.
-
-"Contributor" means any person or entity that distributes the Program.
-
-"Licensed Patents " mean patent claims licensable by a Contributor which are necessarily infringed by the use or sale of its Contribution alone or when combined with the Program.
-
-"Program" means the Contributions distributed in accordance with this Agreement.
-
-"Recipient" means anyone who receives the Program under this Agreement, including all Contributors.
-
-2. GRANT OF RIGHTS
-
-a) Subject to the terms of this Agreement, each Contributor hereby grants Recipient a non-exclusive, worldwide, royalty-free copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, distribute and sublicense the Contribution of such Contributor, if any, and such derivative works, in source code and object code form.
-
-b) Subject to the terms of this Agreement, each Contributor hereby grants Recipient a non-exclusive, worldwide, royalty-free patent license under Licensed Patents to make, use, sell, offer to sell, import and otherwise transfer the Contribution of such Contributor, if any, in source code and object code form. This patent license shall apply to the combination of the Contribution and the Program if, at the time the Contribution is added by the Contributor, such addition of the Contribution causes such combination to be covered by the Licensed Patents. The patent license shall not apply to any other combinations which include the Contribution. No hardware per se is licensed hereunder.
-
-c) Recipient understands that although each Contributor grants the licenses to its Contributions set forth herein, no assurances are provided by any Contributor that the Program does not infringe the patent or other intellectual property rights of any other entity. Each Contributor disclaims any liability to Recipient for claims brought by any other entity based on infringement of intellectual property rights or otherwise. As a condition to exercising the rights and licenses granted hereunder, each Recipient hereby assumes sole responsibility to secure any other intellectual property rights needed, if any. For example, if a third party patent license is required to allow Recipient to distribute the Program, it is Recipient's responsibility to acquire that license before distributing the Program.
-
-d) Each Contributor represents that to its knowledge it has sufficient copyright rights in its Contribution, if any, to grant the copyright license set forth in this Agreement.
-
-3. REQUIREMENTS
-
-A Contributor may choose to distribute the Program in object code form under its own license agreement, provided that:
-
-a) it complies with the terms and conditions of this Agreement; and
-
-b) its license agreement:
-
-i) effectively disclaims on behalf of all Contributors all warranties and conditions, express and implied, including warranties or conditions of title and non-infringement, and implied warranties or conditions of merchantability and fitness for a particular purpose;
-
-ii) effectively excludes on behalf of all Contributors all liability for damages, including direct, indirect, special, incidental and consequential damages, such as lost profits;
-
-iii) states that any provisions which differ from this Agreement are offered by that Contributor alone and not by any other party; and
-
-iv) states that source code for the Program is available from such Contributor, and informs licensees how to obtain it in a reasonable manner on or through a medium customarily used for software exchange.
-
-When the Program is made available in source code form:
-
-a) it must be made available under this Agreement; and
-
-b) a copy of this Agreement must be included with each copy of the Program.
-
-Contributors may not remove or alter any copyright notices contained within the Program.
-
-Each Contributor must identify itself as the originator of its Contribution, if any, in a manner that reasonably allows subsequent Recipients to identify the originator of the Contribution.
-
-4. COMMERCIAL DISTRIBUTION
-
-Commercial distributors of software may accept certain responsibilities with respect to end users, business partners and the like. While this license is intended to facilitate the commercial use of the Program, the Contributor who includes the Program in a commercial product offering should do so in a manner which does not create potential liability for other Contributors. Therefore, if a Contributor includes the Program in a commercial product offering, such Contributor ("Commercial Contributor") hereby agrees to defend and indemnify every other Contributor ("Indemnified Contributor") against any losses, damages and costs (collectively "Losses") arising from claims, lawsuits and other legal actions brought by a third party against the Indemnified Contributor to the extent caused by the acts or omissions of such Commercial Contributor in connection with its distribution of the Program in a commercial product offering. The obligations in this section do not apply to any claims or Losses relating to any actual or alleged intellectual property infringement. In order to qualify, an Indemnified Contributor must: a) promptly notify the Commercial Contributor in writing of such claim, and b) allow the Commercial Contributor to control, and cooperate with the Commercial Contributor in, the defense and any related settlement negotiations. The Indemnified Contributor may participate in any such claim at its own expense.
-
-For example, a Contributor might include the Program in a commercial product offering, Product X. That Contributor is then a Commercial Contributor. If that Commercial Contributor then makes performance claims, or offers warranties related to Product X, those performance claims and warranties are such Commercial Contributor's responsibility alone. Under this section, the Commercial Contributor would have to defend claims against the other Contributors related to those performance claims and warranties, and if a court requires any other Contributor to pay any damages as a result, the Commercial Contributor must pay those damages.
-
-5. NO WARRANTY
-
-EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely responsible for determining the appropriateness of using and distributing the Program and assumes all risks associated with its exercise of rights under this Agreement , including but not limited to the risks and costs of program errors, compliance with applicable laws, damage to or loss of data, programs or equipment, and unavailability or interruption of operations.
-
-6. DISCLAIMER OF LIABILITY
-
-EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
-
-7. GENERAL
-
-If any provision of this Agreement is invalid or unenforceable under applicable law, it shall not affect the validity or enforceability of the remainder of the terms of this Agreement, and without further action by the parties hereto, such provision shall be reformed to the minimum extent necessary to make such provision valid and enforceable.
-
-If Recipient institutes patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Program itself (excluding combinations of the Program with other software or hardware) infringes such Recipient's patent(s), then such Recipient's rights granted under Section 2(b) shall terminate as of the date such litigation is filed.
-
-All Recipient's rights under this Agreement shall terminate if it fails to comply with any of the material terms or conditions of this Agreement and does not cure such failure in a reasonable period of time after becoming aware of such noncompliance. If all Recipient's rights under this Agreement terminate, Recipient agrees to cease use and distribution of the Program as soon as reasonably practicable. However, Recipient's obligations under this Agreement and any licenses granted by Recipient relating to the Program shall continue and survive.
-
-Everyone is permitted to copy and distribute copies of this Agreement, but in order to avoid inconsistency the Agreement is copyrighted and may only be modified in the following manner. The Agreement Steward reserves the right to publish new versions (including revisions) of this Agreement from time to time. No one other than the Agreement Steward has the right to modify this Agreement. The Eclipse Foundation is the initial Agreement Steward. The Eclipse Foundation may assign the responsibility to serve as the Agreement Steward to a suitable separate entity. Each new version of the Agreement will be given a distinguishing version number. The Program (including Contributions) may always be distributed subject to the version of the Agreement under which it was received. In addition, after a new version of the Agreement is published, Contributor may elect to distribute the Program (including its Contributions) under the new version. Except as expressly stated in Sections 2(a) and 2(b) above, Recipient receives no rights or licenses to the intellectual property of any Contributor under this Agreement, whether expressly, by implication, estoppel or otherwise. All rights in the Program not expressly granted under this Agreement are reserved.
-
-This Agreement is governed by the laws of the State of New York and the intellectual property laws of the United States of America. No party to this Agreement will bring a legal action under this Agreement more than one year after the cause of action arose. Each party waives its rights to a jury trial in any resulting litigation.
-
diff --git a/features/org.eclipse.emf.eef.richtext-feature/pom.xml b/features/org.eclipse.emf.eef.richtext-feature/pom.xml
deleted file mode 100644
index b76161e49..000000000
--- a/features/org.eclipse.emf.eef.richtext-feature/pom.xml
+++ /dev/null
@@ -1,29 +0,0 @@
-
-
-
-
- 4.0.0
-
-
- org.eclipse.emf
- org.eclipse.emf.eef.releng.parent
- ../../releng/org.eclipse.emf.eef.releng.parent
- 1.5.2-SNAPSHOT
-
-
- org.eclipse.emf.eef.richtext-feature
- eclipse-feature
-
- EEF RichText Feature
-
-
diff --git a/features/org.eclipse.emf.eef.runtime-feature/.gitignore b/features/org.eclipse.emf.eef.runtime-feature/.gitignore
deleted file mode 100644
index eb5a316cb..000000000
--- a/features/org.eclipse.emf.eef.runtime-feature/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-target
diff --git a/features/org.eclipse.emf.eef.runtime-feature/.project b/features/org.eclipse.emf.eef.runtime-feature/.project
deleted file mode 100644
index ce6b60583..000000000
--- a/features/org.eclipse.emf.eef.runtime-feature/.project
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
- org.eclipse.emf.eef.runtime-feature
-
-
-
-
-
- org.eclipse.pde.FeatureBuilder
-
-
-
-
-
- org.eclipse.pde.FeatureNature
-
-
diff --git a/features/org.eclipse.emf.eef.runtime-feature/build.properties b/features/org.eclipse.emf.eef.runtime-feature/build.properties
deleted file mode 100644
index 2f5d242cc..000000000
--- a/features/org.eclipse.emf.eef.runtime-feature/build.properties
+++ /dev/null
@@ -1,20 +0,0 @@
-###############################################################################
-# Copyright (c) 2008, 2010 Obeo.
-# 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:
-# Obeo - initial API and implementation
-###############################################################################
-bin.includes = feature.xml,\
- feature.properties,\
- license.html,\
- license.txt,\
- epl-v10.html
-src.includes = feature.properties,\
- license.html,\
- license.txt,\
- feature.xml,\
- epl-v10.html
diff --git a/features/org.eclipse.emf.eef.runtime-feature/epl-v10.html b/features/org.eclipse.emf.eef.runtime-feature/epl-v10.html
deleted file mode 100644
index 0d34dd06a..000000000
--- a/features/org.eclipse.emf.eef.runtime-feature/epl-v10.html
+++ /dev/null
@@ -1,262 +0,0 @@
-
-
-
-
-
-
-Eclipse Public License - Version 1.0
-
-
-
-
-
-
-
Eclipse Public License - v 1.0
-
-
THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE
-PUBLIC LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR
-DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS
-AGREEMENT.
-
-
1. DEFINITIONS
-
-
"Contribution" means:
-
-
a) in the case of the initial Contributor, the initial
-code and documentation distributed under this Agreement, and
-
b) in the case of each subsequent Contributor:
-
-
i) changes to the Program, and
-
ii) additions to the Program;
-
where such changes and/or additions to the Program
-originate from and are distributed by that particular Contributor. A
-Contribution 'originates' from a Contributor if it was added to the
-Program by such Contributor itself or anyone acting on such
-Contributor's behalf. Contributions do not include additions to the
-Program which: (i) are separate modules of software distributed in
-conjunction with the Program under their own license agreement, and (ii)
-are not derivative works of the Program.
-
-
"Contributor" means any person or entity that distributes
-the Program.
-
-
"Licensed Patents" mean patent claims licensable by a
-Contributor which are necessarily infringed by the use or sale of its
-Contribution alone or when combined with the Program.
-
-
"Program" means the Contributions distributed in accordance
-with this Agreement.
-
-
"Recipient" means anyone who receives the Program under
-this Agreement, including all Contributors.
-
-
2. GRANT OF RIGHTS
-
-
a) Subject to the terms of this Agreement, each
-Contributor hereby grants Recipient a non-exclusive, worldwide,
-royalty-free copyright license to reproduce, prepare derivative works
-of, publicly display, publicly perform, distribute and sublicense the
-Contribution of such Contributor, if any, and such derivative works, in
-source code and object code form.
-
-
b) Subject to the terms of this Agreement, each
-Contributor hereby grants Recipient a non-exclusive, worldwide,
-royalty-free patent license under Licensed Patents to make, use, sell,
-offer to sell, import and otherwise transfer the Contribution of such
-Contributor, if any, in source code and object code form. This patent
-license shall apply to the combination of the Contribution and the
-Program if, at the time the Contribution is added by the Contributor,
-such addition of the Contribution causes such combination to be covered
-by the Licensed Patents. The patent license shall not apply to any other
-combinations which include the Contribution. No hardware per se is
-licensed hereunder.
-
-
c) Recipient understands that although each Contributor
-grants the licenses to its Contributions set forth herein, no assurances
-are provided by any Contributor that the Program does not infringe the
-patent or other intellectual property rights of any other entity. Each
-Contributor disclaims any liability to Recipient for claims brought by
-any other entity based on infringement of intellectual property rights
-or otherwise. As a condition to exercising the rights and licenses
-granted hereunder, each Recipient hereby assumes sole responsibility to
-secure any other intellectual property rights needed, if any. For
-example, if a third party patent license is required to allow Recipient
-to distribute the Program, it is Recipient's responsibility to acquire
-that license before distributing the Program.
-
-
d) Each Contributor represents that to its knowledge it
-has sufficient copyright rights in its Contribution, if any, to grant
-the copyright license set forth in this Agreement.
-
-
3. REQUIREMENTS
-
-
A Contributor may choose to distribute the Program in object code
-form under its own license agreement, provided that:
-
-
a) it complies with the terms and conditions of this
-Agreement; and
-
-
b) its license agreement:
-
-
i) effectively disclaims on behalf of all Contributors
-all warranties and conditions, express and implied, including warranties
-or conditions of title and non-infringement, and implied warranties or
-conditions of merchantability and fitness for a particular purpose;
-
-
ii) effectively excludes on behalf of all Contributors
-all liability for damages, including direct, indirect, special,
-incidental and consequential damages, such as lost profits;
-
-
iii) states that any provisions which differ from this
-Agreement are offered by that Contributor alone and not by any other
-party; and
-
-
iv) states that source code for the Program is available
-from such Contributor, and informs licensees how to obtain it in a
-reasonable manner on or through a medium customarily used for software
-exchange.
-
-
When the Program is made available in source code form:
-
-
a) it must be made available under this Agreement; and
-
-
b) a copy of this Agreement must be included with each
-copy of the Program.
-
-
Contributors may not remove or alter any copyright notices contained
-within the Program.
-
-
Each Contributor must identify itself as the originator of its
-Contribution, if any, in a manner that reasonably allows subsequent
-Recipients to identify the originator of the Contribution.
-
-
4. COMMERCIAL DISTRIBUTION
-
-
Commercial distributors of software may accept certain
-responsibilities with respect to end users, business partners and the
-like. While this license is intended to facilitate the commercial use of
-the Program, the Contributor who includes the Program in a commercial
-product offering should do so in a manner which does not create
-potential liability for other Contributors. Therefore, if a Contributor
-includes the Program in a commercial product offering, such Contributor
-("Commercial Contributor") hereby agrees to defend and
-indemnify every other Contributor ("Indemnified Contributor")
-against any losses, damages and costs (collectively "Losses")
-arising from claims, lawsuits and other legal actions brought by a third
-party against the Indemnified Contributor to the extent caused by the
-acts or omissions of such Commercial Contributor in connection with its
-distribution of the Program in a commercial product offering. The
-obligations in this section do not apply to any claims or Losses
-relating to any actual or alleged intellectual property infringement. In
-order to qualify, an Indemnified Contributor must: a) promptly notify
-the Commercial Contributor in writing of such claim, and b) allow the
-Commercial Contributor to control, and cooperate with the Commercial
-Contributor in, the defense and any related settlement negotiations. The
-Indemnified Contributor may participate in any such claim at its own
-expense.
-
-
For example, a Contributor might include the Program in a commercial
-product offering, Product X. That Contributor is then a Commercial
-Contributor. If that Commercial Contributor then makes performance
-claims, or offers warranties related to Product X, those performance
-claims and warranties are such Commercial Contributor's responsibility
-alone. Under this section, the Commercial Contributor would have to
-defend claims against the other Contributors related to those
-performance claims and warranties, and if a court requires any other
-Contributor to pay any damages as a result, the Commercial Contributor
-must pay those damages.
-
-
5. NO WARRANTY
-
-
EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS
-PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS
-OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION,
-ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY
-OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely
-responsible for determining the appropriateness of using and
-distributing the Program and assumes all risks associated with its
-exercise of rights under this Agreement , including but not limited to
-the risks and costs of program errors, compliance with applicable laws,
-damage to or loss of data, programs or equipment, and unavailability or
-interruption of operations.
-
-
6. DISCLAIMER OF LIABILITY
-
-
EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT
-NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT,
-INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING
-WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF
-LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR
-DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED
-HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
-
-
7. GENERAL
-
-
If any provision of this Agreement is invalid or unenforceable under
-applicable law, it shall not affect the validity or enforceability of
-the remainder of the terms of this Agreement, and without further action
-by the parties hereto, such provision shall be reformed to the minimum
-extent necessary to make such provision valid and enforceable.
-
-
If Recipient institutes patent litigation against any entity
-(including a cross-claim or counterclaim in a lawsuit) alleging that the
-Program itself (excluding combinations of the Program with other
-software or hardware) infringes such Recipient's patent(s), then such
-Recipient's rights granted under Section 2(b) shall terminate as of the
-date such litigation is filed.
-
-
All Recipient's rights under this Agreement shall terminate if it
-fails to comply with any of the material terms or conditions of this
-Agreement and does not cure such failure in a reasonable period of time
-after becoming aware of such noncompliance. If all Recipient's rights
-under this Agreement terminate, Recipient agrees to cease use and
-distribution of the Program as soon as reasonably practicable. However,
-Recipient's obligations under this Agreement and any licenses granted by
-Recipient relating to the Program shall continue and survive.
-
-
Everyone is permitted to copy and distribute copies of this
-Agreement, but in order to avoid inconsistency the Agreement is
-copyrighted and may only be modified in the following manner. The
-Agreement Steward reserves the right to publish new versions (including
-revisions) of this Agreement from time to time. No one other than the
-Agreement Steward has the right to modify this Agreement. The Eclipse
-Foundation is the initial Agreement Steward. The Eclipse Foundation may
-assign the responsibility to serve as the Agreement Steward to a
-suitable separate entity. Each new version of the Agreement will be
-given a distinguishing version number. The Program (including
-Contributions) may always be distributed subject to the version of the
-Agreement under which it was received. In addition, after a new version
-of the Agreement is published, Contributor may elect to distribute the
-Program (including its Contributions) under the new version. Except as
-expressly stated in Sections 2(a) and 2(b) above, Recipient receives no
-rights or licenses to the intellectual property of any Contributor under
-this Agreement, whether expressly, by implication, estoppel or
-otherwise. All rights in the Program not expressly granted under this
-Agreement are reserved.
-
-
This Agreement is governed by the laws of the State of New York and
-the intellectual property laws of the United States of America. No party
-to this Agreement will bring a legal action under this Agreement more
-than one year after the cause of action arose. Each party waives its
-rights to a jury trial in any resulting litigation.
-
-
-
-
\ No newline at end of file
diff --git a/features/org.eclipse.emf.eef.runtime-feature/feature.properties b/features/org.eclipse.emf.eef.runtime-feature/feature.properties
deleted file mode 100644
index 489d5cf61..000000000
--- a/features/org.eclipse.emf.eef.runtime-feature/feature.properties
+++ /dev/null
@@ -1,146 +0,0 @@
-###############################################################################
-# Copyright (c) 2008, 2012 Obeo.
-# 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:
-# Obeo - initial API and implementation
-###############################################################################
-providerName=Eclipse Modeling Project
-featureName=Extended Editing Framework - Runtime
-modelingUpdateSiteName=Eclipse Modeling Project Updates
-description=Extended Editing Framework - Runtime
-
-# "licenseURL" property - URL of the "Feature License"
-# do not translate value - just change to point to a locale-specific HTML page
-licenseURL=license.html
-
-# "license" property - text of the "Feature Update License"
-# should be plain text version of license agreement pointed to be "licenseURL"
-license=\
-Eclipse Foundation Software User Agreement\n\
-February 1, 2011\n\
-\n\
-Usage Of Content\n\
-\n\
-THE ECLIPSE FOUNDATION MAKES AVAILABLE SOFTWARE, DOCUMENTATION, INFORMATION AND/OR\n\
-OTHER MATERIALS FOR OPEN SOURCE PROJECTS (COLLECTIVELY "CONTENT").\n\
-USE OF THE CONTENT IS GOVERNED BY THE TERMS AND CONDITIONS OF THIS\n\
-AGREEMENT AND/OR THE TERMS AND CONDITIONS OF LICENSE AGREEMENTS OR\n\
-NOTICES INDICATED OR REFERENCED BELOW. BY USING THE CONTENT, YOU\n\
-AGREE THAT YOUR USE OF THE CONTENT IS GOVERNED BY THIS AGREEMENT\n\
-AND/OR THE TERMS AND CONDITIONS OF ANY APPLICABLE LICENSE AGREEMENTS\n\
-OR NOTICES INDICATED OR REFERENCED BELOW. IF YOU DO NOT AGREE TO THE\n\
-TERMS AND CONDITIONS OF THIS AGREEMENT AND THE TERMS AND CONDITIONS\n\
-OF ANY APPLICABLE LICENSE AGREEMENTS OR NOTICES INDICATED OR REFERENCED\n\
-BELOW, THEN YOU MAY NOT USE THE CONTENT.\n\
-\n\
-Applicable Licenses\n\
-\n\
-Unless otherwise indicated, all Content made available by the\n\
-Eclipse Foundation is provided to you under the terms and conditions of\n\
-the Eclipse Public License Version 1.0 ("EPL"). A copy of the EPL is\n\
-provided with this Content and is also available at http://www.eclipse.org/legal/epl-v10.html.\n\
-For purposes of the EPL, "Program" will mean the Content.\n\
-\n\
-Content includes, but is not limited to, source code, object code,\n\
-documentation and other files maintained in the Eclipse Foundation source code\n\
-repository ("Repository") in software modules ("Modules") and made available\n\
-as downloadable archives ("Downloads").\n\
-\n\
- - Content may be structured and packaged into modules to facilitate delivering,\n\
- extending, and upgrading the Content. Typical modules may include plug-ins ("Plug-ins"),\n\
- plug-in fragments ("Fragments"), and features ("Features").\n\
- - Each Plug-in or Fragment may be packaged as a sub-directory or JAR (Java(TM) ARchive)\n\
- in a directory named "plugins".\n\
- - A Feature is a bundle of one or more Plug-ins and/or Fragments and associated material.\n\
- Each Feature may be packaged as a sub-directory in a directory named "features".\n\
- Within a Feature, files named "feature.xml" may contain a list of the names and version\n\
- numbers of the Plug-ins and/or Fragments associated with that Feature.\n\
- - Features may also include other Features ("Included Features"). Within a Feature, files\n\
- named "feature.xml" may contain a list of the names and version numbers of Included Features.\n\
-\n\
-The terms and conditions governing Plug-ins and Fragments should be\n\
-contained in files named "about.html" ("Abouts"). The terms and\n\
-conditions governing Features and Included Features should be contained\n\
-in files named "license.html" ("Feature Licenses"). Abouts and Feature\n\
-Licenses may be located in any directory of a Download or Module\n\
-including, but not limited to the following locations:\n\
-\n\
- - The top-level (root) directory\n\
- - Plug-in and Fragment directories\n\
- - Inside Plug-ins and Fragments packaged as JARs\n\
- - Sub-directories of the directory named "src" of certain Plug-ins\n\
- - Feature directories\n\
-\n\
-Note: if a Feature made available by the Eclipse Foundation is installed using the\n\
-Provisioning Technology (as defined below), you must agree to a license ("Feature \n\
-Update License") during the installation process. If the Feature contains\n\
-Included Features, the Feature Update License should either provide you\n\
-with the terms and conditions governing the Included Features or inform\n\
-you where you can locate them. Feature Update Licenses may be found in\n\
-the "license" property of files named "feature.properties" found within a Feature.\n\
-Such Abouts, Feature Licenses, and Feature Update Licenses contain the\n\
-terms and conditions (or references to such terms and conditions) that\n\
-govern your use of the associated Content in that directory.\n\
-\n\
-THE ABOUTS, FEATURE LICENSES, AND FEATURE UPDATE LICENSES MAY REFER\n\
-TO THE EPL OR OTHER LICENSE AGREEMENTS, NOTICES OR TERMS AND CONDITIONS.\n\
-SOME OF THESE OTHER LICENSE AGREEMENTS MAY INCLUDE (BUT ARE NOT LIMITED TO):\n\
-\n\
- - Eclipse Distribution License Version 1.0 (available at http://www.eclipse.org/licenses/edl-v1.0.html)\n\
- - Common Public License Version 1.0 (available at http://www.eclipse.org/legal/cpl-v10.html)\n\
- - Apache Software License 1.1 (available at http://www.apache.org/licenses/LICENSE)\n\
- - Apache Software License 2.0 (available at http://www.apache.org/licenses/LICENSE-2.0)\n\
- - Metro Link Public License 1.00 (available at http://www.opengroup.org/openmotif/supporters/metrolink/license.html)\n\
- - Mozilla Public License Version 1.1 (available at http://www.mozilla.org/MPL/MPL-1.1.html)\n\
-\n\
-IT IS YOUR OBLIGATION TO READ AND ACCEPT ALL SUCH TERMS AND CONDITIONS PRIOR\n\
-TO USE OF THE CONTENT. If no About, Feature License, or Feature Update License\n\
-is provided, please contact the Eclipse Foundation to determine what terms and conditions\n\
-govern that particular Content.\n\
-\n\
-\n\Use of Provisioning Technology\n\
-\n\
-The Eclipse Foundation makes available provisioning software, examples of which include,\n\
-but are not limited to, p2 and the Eclipse Update Manager ("Provisioning Technology") for\n\
-the purpose of allowing users to install software, documentation, information and/or\n\
-other materials (collectively "Installable Software"). This capability is provided with\n\
-the intent of allowing such users to install, extend and update Eclipse-based products.\n\
-Information about packaging Installable Software is available at\n\
-http://eclipse.org/equinox/p2/repository_packaging.html ("Specification").\n\
-\n\
-You may use Provisioning Technology to allow other parties to install Installable Software.\n\
-You shall be responsible for enabling the applicable license agreements relating to the\n\
-Installable Software to be presented to, and accepted by, the users of the Provisioning Technology\n\
-in accordance with the Specification. By using Provisioning Technology in such a manner and\n\
-making it available in accordance with the Specification, you further acknowledge your\n\
-agreement to, and the acquisition of all necessary rights to permit the following:\n\
-\n\
- 1. A series of actions may occur ("Provisioning Process") in which a user may execute\n\
- the Provisioning Technology on a machine ("Target Machine") with the intent of installing,\n\
- extending or updating the functionality of an Eclipse-based product.\n\
- 2. During the Provisioning Process, the Provisioning Technology may cause third party\n\
- Installable Software or a portion thereof to be accessed and copied to the Target Machine.\n\
- 3. Pursuant to the Specification, you will provide to the user the terms and conditions that\n\
- govern the use of the Installable Software ("Installable Software Agreement") and such\n\
- Installable Software Agreement shall be accessed from the Target Machine in accordance\n\
- with the Specification. Such Installable Software Agreement must inform the user of the\n\
- terms and conditions that govern the Installable Software and must solicit acceptance by\n\
- the end user in the manner prescribed in such Installable Software Agreement. Upon such\n\
- indication of agreement by the user, the provisioning Technology will complete installation\n\
- of the Installable Software.\n\
-\n\
-Cryptography\n\
-\n\
-Content may contain encryption software. The country in which you are\n\
-currently may have restrictions on the import, possession, and use,\n\
-and/or re-export to another country, of encryption software. BEFORE\n\
-using any encryption software, please check the country's laws,\n\
-regulations and policies concerning the import, possession, or use, and\n\
-re-export of encryption software, to see if this is permitted.\n\
-\n\
-Java and all Java-based trademarks are trademarks of Oracle Corporation in the United States, other countries, or both.\n
-########### end of license property ##########################################
diff --git a/features/org.eclipse.emf.eef.runtime-feature/feature.xml b/features/org.eclipse.emf.eef.runtime-feature/feature.xml
deleted file mode 100644
index a0cd95147..000000000
--- a/features/org.eclipse.emf.eef.runtime-feature/feature.xml
+++ /dev/null
@@ -1,55 +0,0 @@
-
-
-
-
-
- %description
-
-
-
- Copyright (c) 2008 - 2010 Obeo.
-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
-
-
-
- %license
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/features/org.eclipse.emf.eef.runtime-feature/license.html b/features/org.eclipse.emf.eef.runtime-feature/license.html
deleted file mode 100644
index a1fe5ea3f..000000000
--- a/features/org.eclipse.emf.eef.runtime-feature/license.html
+++ /dev/null
@@ -1,116 +0,0 @@
-
-
-
-
-
-Eclipse Foundation Software User Agreement
-
-
-
-
Eclipse Foundation Software User Agreement
-
February 1, 2011
-
-
Usage Of Content
-
-
THE ECLIPSE FOUNDATION MAKES AVAILABLE SOFTWARE, DOCUMENTATION, INFORMATION AND/OR OTHER MATERIALS FOR OPEN SOURCE PROJECTS
- (COLLECTIVELY "CONTENT"). USE OF THE CONTENT IS GOVERNED BY THE TERMS AND CONDITIONS OF THIS AGREEMENT AND/OR THE TERMS AND
- CONDITIONS OF LICENSE AGREEMENTS OR NOTICES INDICATED OR REFERENCED BELOW. BY USING THE CONTENT, YOU AGREE THAT YOUR USE
- OF THE CONTENT IS GOVERNED BY THIS AGREEMENT AND/OR THE TERMS AND CONDITIONS OF ANY APPLICABLE LICENSE AGREEMENTS OR
- NOTICES INDICATED OR REFERENCED BELOW. IF YOU DO NOT AGREE TO THE TERMS AND CONDITIONS OF THIS AGREEMENT AND THE TERMS AND
- CONDITIONS OF ANY APPLICABLE LICENSE AGREEMENTS OR NOTICES INDICATED OR REFERENCED BELOW, THEN YOU MAY NOT USE THE CONTENT.
-
-
Applicable Licenses
-
-
Unless otherwise indicated, all Content made available by the Eclipse Foundation is provided to you under the terms and conditions of the Eclipse Public License Version 1.0
- ("EPL"). A copy of the EPL is provided with this Content and is also available at http://www.eclipse.org/legal/epl-v10.html.
- For purposes of the EPL, "Program" will mean the Content.
-
-
Content includes, but is not limited to, source code, object code, documentation and other files maintained in the Eclipse Foundation source code
- repository ("Repository") in software modules ("Modules") and made available as downloadable archives ("Downloads").
-
-
-
Content may be structured and packaged into modules to facilitate delivering, extending, and upgrading the Content. Typical modules may include plug-ins ("Plug-ins"), plug-in fragments ("Fragments"), and features ("Features").
-
-
Each Plug-in or Fragment may be packaged as a sub-directory or JAR (Java™ ARchive) in a directory named "plugins".
-
A Feature is a bundle of one or more Plug-ins and/or Fragments and associated material. Each Feature may be packaged as a sub-directory in a directory named "features". Within a Feature, files named "feature.xml" may contain a list of the names and version numbers of the Plug-ins
- and/or Fragments associated with that Feature.
-
Features may also include other Features ("Included Features"). Within a Feature, files named "feature.xml" may contain a list of the names and version numbers of Included Features.
-
-
-
-
The terms and conditions governing Plug-ins and Fragments should be contained in files named "about.html" ("Abouts"). The terms and conditions governing Features and
-Included Features should be contained in files named "license.html" ("Feature Licenses"). Abouts and Feature Licenses may be located in any directory of a Download or Module
-including, but not limited to the following locations:
-
-
-
The top-level (root) directory
-
-
Plug-in and Fragment directories
-
Inside Plug-ins and Fragments packaged as JARs
-
Sub-directories of the directory named "src" of certain Plug-ins
-
Feature directories
-
-
-
Note: if a Feature made available by the Eclipse Foundation is installed using the Provisioning Technology (as defined below), you must agree to a license ("Feature Update License") during the
-installation process. If the Feature contains Included Features, the Feature Update License should either provide you with the terms and conditions governing the Included Features or
-inform you where you can locate them. Feature Update Licenses may be found in the "license" property of files named "feature.properties" found within a Feature.
-Such Abouts, Feature Licenses, and Feature Update Licenses contain the terms and conditions (or references to such terms and conditions) that govern your use of the associated Content in
-that directory.
-
-
THE ABOUTS, FEATURE LICENSES, AND FEATURE UPDATE LICENSES MAY REFER TO THE EPL OR OTHER LICENSE AGREEMENTS, NOTICES OR TERMS AND CONDITIONS. SOME OF THESE
-OTHER LICENSE AGREEMENTS MAY INCLUDE (BUT ARE NOT LIMITED TO):
IT IS YOUR OBLIGATION TO READ AND ACCEPT ALL SUCH TERMS AND CONDITIONS PRIOR TO USE OF THE CONTENT. If no About, Feature License, or Feature Update License is provided, please
-contact the Eclipse Foundation to determine what terms and conditions govern that particular Content.
-
-
-
Use of Provisioning Technology
-
-
The Eclipse Foundation makes available provisioning software, examples of which include, but are not limited to, p2 and the Eclipse
- Update Manager ("Provisioning Technology") for the purpose of allowing users to install software, documentation, information and/or
- other materials (collectively "Installable Software"). This capability is provided with the intent of allowing such users to
- install, extend and update Eclipse-based products. Information about packaging Installable Software is available at http://eclipse.org/equinox/p2/repository_packaging.html
-
- ("Specification").
-
-
You may use Provisioning Technology to allow other parties to install Installable Software. You shall be responsible for enabling the
- applicable license agreements relating to the Installable Software to be presented to, and accepted by, the users of the Provisioning Technology
- in accordance with the Specification. By using Provisioning Technology in such a manner and making it available in accordance with the
- Specification, you further acknowledge your agreement to, and the acquisition of all necessary rights to permit the following:
-
-
-
A series of actions may occur ("Provisioning Process") in which a user may execute the Provisioning Technology
- on a machine ("Target Machine") with the intent of installing, extending or updating the functionality of an Eclipse-based
- product.
-
-
During the Provisioning Process, the Provisioning Technology may cause third party Installable Software or a portion thereof to be
- accessed and copied to the Target Machine.
-
Pursuant to the Specification, you will provide to the user the terms and conditions that govern the use of the Installable
- Software ("Installable Software Agreement") and such Installable Software Agreement shall be accessed from the Target
- Machine in accordance with the Specification. Such Installable Software Agreement must inform the user of the terms and conditions that govern
- the Installable Software and must solicit acceptance by the end user in the manner prescribed in such Installable Software Agreement. Upon such
- indication of agreement by the user, the provisioning Technology will complete installation of the Installable Software.
-
-
-
Cryptography
-
-
Content may contain encryption software. The country in which you are currently may have restrictions on the import, possession, and use, and/or re-export to
- another country, of encryption software. BEFORE using any encryption software, please check the country's laws, regulations and policies concerning the import,
- possession, or use, and re-export of encryption software, to see if this is permitted.
-
-
Java and all Java-based trademarks are trademarks of Oracle Corporation in the United States, other countries, or both.
-
-
-
diff --git a/features/org.eclipse.emf.eef.runtime-feature/license.txt b/features/org.eclipse.emf.eef.runtime-feature/license.txt
deleted file mode 100644
index 24937b64c..000000000
--- a/features/org.eclipse.emf.eef.runtime-feature/license.txt
+++ /dev/null
@@ -1,87 +0,0 @@
-Eclipse Public License - v 1.0
-
-THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE PUBLIC LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT.
-
-1. DEFINITIONS
-
-"Contribution" means:
-
-a) in the case of the initial Contributor, the initial code and documentation distributed under this Agreement, and
-b) in the case of each subsequent Contributor:
-
-i) changes to the Program, and
-
-ii) additions to the Program;
-
-where such changes and/or additions to the Program originate from and are distributed by that particular Contributor. A Contribution 'originates' from a Contributor if it was added to the Program by such Contributor itself or anyone acting on such Contributor's behalf. Contributions do not include additions to the Program which: (i) are separate modules of software distributed in conjunction with the Program under their own license agreement, and (ii) are not derivative works of the Program.
-
-"Contributor" means any person or entity that distributes the Program.
-
-"Licensed Patents " mean patent claims licensable by a Contributor which are necessarily infringed by the use or sale of its Contribution alone or when combined with the Program.
-
-"Program" means the Contributions distributed in accordance with this Agreement.
-
-"Recipient" means anyone who receives the Program under this Agreement, including all Contributors.
-
-2. GRANT OF RIGHTS
-
-a) Subject to the terms of this Agreement, each Contributor hereby grants Recipient a non-exclusive, worldwide, royalty-free copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, distribute and sublicense the Contribution of such Contributor, if any, and such derivative works, in source code and object code form.
-
-b) Subject to the terms of this Agreement, each Contributor hereby grants Recipient a non-exclusive, worldwide, royalty-free patent license under Licensed Patents to make, use, sell, offer to sell, import and otherwise transfer the Contribution of such Contributor, if any, in source code and object code form. This patent license shall apply to the combination of the Contribution and the Program if, at the time the Contribution is added by the Contributor, such addition of the Contribution causes such combination to be covered by the Licensed Patents. The patent license shall not apply to any other combinations which include the Contribution. No hardware per se is licensed hereunder.
-
-c) Recipient understands that although each Contributor grants the licenses to its Contributions set forth herein, no assurances are provided by any Contributor that the Program does not infringe the patent or other intellectual property rights of any other entity. Each Contributor disclaims any liability to Recipient for claims brought by any other entity based on infringement of intellectual property rights or otherwise. As a condition to exercising the rights and licenses granted hereunder, each Recipient hereby assumes sole responsibility to secure any other intellectual property rights needed, if any. For example, if a third party patent license is required to allow Recipient to distribute the Program, it is Recipient's responsibility to acquire that license before distributing the Program.
-
-d) Each Contributor represents that to its knowledge it has sufficient copyright rights in its Contribution, if any, to grant the copyright license set forth in this Agreement.
-
-3. REQUIREMENTS
-
-A Contributor may choose to distribute the Program in object code form under its own license agreement, provided that:
-
-a) it complies with the terms and conditions of this Agreement; and
-
-b) its license agreement:
-
-i) effectively disclaims on behalf of all Contributors all warranties and conditions, express and implied, including warranties or conditions of title and non-infringement, and implied warranties or conditions of merchantability and fitness for a particular purpose;
-
-ii) effectively excludes on behalf of all Contributors all liability for damages, including direct, indirect, special, incidental and consequential damages, such as lost profits;
-
-iii) states that any provisions which differ from this Agreement are offered by that Contributor alone and not by any other party; and
-
-iv) states that source code for the Program is available from such Contributor, and informs licensees how to obtain it in a reasonable manner on or through a medium customarily used for software exchange.
-
-When the Program is made available in source code form:
-
-a) it must be made available under this Agreement; and
-
-b) a copy of this Agreement must be included with each copy of the Program.
-
-Contributors may not remove or alter any copyright notices contained within the Program.
-
-Each Contributor must identify itself as the originator of its Contribution, if any, in a manner that reasonably allows subsequent Recipients to identify the originator of the Contribution.
-
-4. COMMERCIAL DISTRIBUTION
-
-Commercial distributors of software may accept certain responsibilities with respect to end users, business partners and the like. While this license is intended to facilitate the commercial use of the Program, the Contributor who includes the Program in a commercial product offering should do so in a manner which does not create potential liability for other Contributors. Therefore, if a Contributor includes the Program in a commercial product offering, such Contributor ("Commercial Contributor") hereby agrees to defend and indemnify every other Contributor ("Indemnified Contributor") against any losses, damages and costs (collectively "Losses") arising from claims, lawsuits and other legal actions brought by a third party against the Indemnified Contributor to the extent caused by the acts or omissions of such Commercial Contributor in connection with its distribution of the Program in a commercial product offering. The obligations in this section do not apply to any claims or Losses relating to any actual or alleged intellectual property infringement. In order to qualify, an Indemnified Contributor must: a) promptly notify the Commercial Contributor in writing of such claim, and b) allow the Commercial Contributor to control, and cooperate with the Commercial Contributor in, the defense and any related settlement negotiations. The Indemnified Contributor may participate in any such claim at its own expense.
-
-For example, a Contributor might include the Program in a commercial product offering, Product X. That Contributor is then a Commercial Contributor. If that Commercial Contributor then makes performance claims, or offers warranties related to Product X, those performance claims and warranties are such Commercial Contributor's responsibility alone. Under this section, the Commercial Contributor would have to defend claims against the other Contributors related to those performance claims and warranties, and if a court requires any other Contributor to pay any damages as a result, the Commercial Contributor must pay those damages.
-
-5. NO WARRANTY
-
-EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely responsible for determining the appropriateness of using and distributing the Program and assumes all risks associated with its exercise of rights under this Agreement , including but not limited to the risks and costs of program errors, compliance with applicable laws, damage to or loss of data, programs or equipment, and unavailability or interruption of operations.
-
-6. DISCLAIMER OF LIABILITY
-
-EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
-
-7. GENERAL
-
-If any provision of this Agreement is invalid or unenforceable under applicable law, it shall not affect the validity or enforceability of the remainder of the terms of this Agreement, and without further action by the parties hereto, such provision shall be reformed to the minimum extent necessary to make such provision valid and enforceable.
-
-If Recipient institutes patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Program itself (excluding combinations of the Program with other software or hardware) infringes such Recipient's patent(s), then such Recipient's rights granted under Section 2(b) shall terminate as of the date such litigation is filed.
-
-All Recipient's rights under this Agreement shall terminate if it fails to comply with any of the material terms or conditions of this Agreement and does not cure such failure in a reasonable period of time after becoming aware of such noncompliance. If all Recipient's rights under this Agreement terminate, Recipient agrees to cease use and distribution of the Program as soon as reasonably practicable. However, Recipient's obligations under this Agreement and any licenses granted by Recipient relating to the Program shall continue and survive.
-
-Everyone is permitted to copy and distribute copies of this Agreement, but in order to avoid inconsistency the Agreement is copyrighted and may only be modified in the following manner. The Agreement Steward reserves the right to publish new versions (including revisions) of this Agreement from time to time. No one other than the Agreement Steward has the right to modify this Agreement. The Eclipse Foundation is the initial Agreement Steward. The Eclipse Foundation may assign the responsibility to serve as the Agreement Steward to a suitable separate entity. Each new version of the Agreement will be given a distinguishing version number. The Program (including Contributions) may always be distributed subject to the version of the Agreement under which it was received. In addition, after a new version of the Agreement is published, Contributor may elect to distribute the Program (including its Contributions) under the new version. Except as expressly stated in Sections 2(a) and 2(b) above, Recipient receives no rights or licenses to the intellectual property of any Contributor under this Agreement, whether expressly, by implication, estoppel or otherwise. All rights in the Program not expressly granted under this Agreement are reserved.
-
-This Agreement is governed by the laws of the State of New York and the intellectual property laws of the United States of America. No party to this Agreement will bring a legal action under this Agreement more than one year after the cause of action arose. Each party waives its rights to a jury trial in any resulting litigation.
-
diff --git a/features/org.eclipse.emf.eef.runtime-feature/pom.xml b/features/org.eclipse.emf.eef.runtime-feature/pom.xml
deleted file mode 100644
index 441578f64..000000000
--- a/features/org.eclipse.emf.eef.runtime-feature/pom.xml
+++ /dev/null
@@ -1,29 +0,0 @@
-
-
-
-
- 4.0.0
-
-
- org.eclipse.emf
- org.eclipse.emf.eef.releng.parent
- ../../releng/org.eclipse.emf.eef.releng.parent
- 1.5.2-SNAPSHOT
-
-
- org.eclipse.emf.eef.runtime-feature
- eclipse-feature
-
- EEF Runtime Feature
-
-
diff --git a/features/org.eclipse.emf.eef.sdk-feature/.gitignore b/features/org.eclipse.emf.eef.sdk-feature/.gitignore
deleted file mode 100644
index eb5a316cb..000000000
--- a/features/org.eclipse.emf.eef.sdk-feature/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-target
diff --git a/features/org.eclipse.emf.eef.sdk-feature/.project b/features/org.eclipse.emf.eef.sdk-feature/.project
deleted file mode 100644
index 005fcb44c..000000000
--- a/features/org.eclipse.emf.eef.sdk-feature/.project
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
- org.eclipse.emf.eef.sdk-feature
-
-
-
-
-
- org.eclipse.pde.FeatureBuilder
-
-
-
-
-
- org.eclipse.pde.FeatureNature
-
-
diff --git a/features/org.eclipse.emf.eef.sdk-feature/build.properties b/features/org.eclipse.emf.eef.sdk-feature/build.properties
deleted file mode 100644
index 8278da22b..000000000
--- a/features/org.eclipse.emf.eef.sdk-feature/build.properties
+++ /dev/null
@@ -1,23 +0,0 @@
-###############################################################################
-# Copyright (c) 2008, 2010 Obeo.
-# 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:
-# Obeo - initial API and implementation
-###############################################################################
-bin.includes = feature.xml,\
- feature.properties,\
- license.html,\
- license.txt,\
- epl-v10.html
-src.includes = feature.properties,\
- license.html,\
- license.txt,\
- feature.xml,\
- epl-v10.html
-
-generate.feature@org.eclipse.emf.eef.runtime.source = org.eclipse.emf.eef.runtime
-generate.feature@org.eclipse.emf.eef.extended.source = org.eclipse.emf.eef.extended
diff --git a/features/org.eclipse.emf.eef.sdk-feature/epl-v10.html b/features/org.eclipse.emf.eef.sdk-feature/epl-v10.html
deleted file mode 100644
index 0d34dd06a..000000000
--- a/features/org.eclipse.emf.eef.sdk-feature/epl-v10.html
+++ /dev/null
@@ -1,262 +0,0 @@
-
-
-
-
-
-
-Eclipse Public License - Version 1.0
-
-
-
-
-
-
-
Eclipse Public License - v 1.0
-
-
THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE
-PUBLIC LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR
-DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS
-AGREEMENT.
-
-
1. DEFINITIONS
-
-
"Contribution" means:
-
-
a) in the case of the initial Contributor, the initial
-code and documentation distributed under this Agreement, and
-
b) in the case of each subsequent Contributor:
-
-
i) changes to the Program, and
-
ii) additions to the Program;
-
where such changes and/or additions to the Program
-originate from and are distributed by that particular Contributor. A
-Contribution 'originates' from a Contributor if it was added to the
-Program by such Contributor itself or anyone acting on such
-Contributor's behalf. Contributions do not include additions to the
-Program which: (i) are separate modules of software distributed in
-conjunction with the Program under their own license agreement, and (ii)
-are not derivative works of the Program.
-
-
"Contributor" means any person or entity that distributes
-the Program.
-
-
"Licensed Patents" mean patent claims licensable by a
-Contributor which are necessarily infringed by the use or sale of its
-Contribution alone or when combined with the Program.
-
-
"Program" means the Contributions distributed in accordance
-with this Agreement.
-
-
"Recipient" means anyone who receives the Program under
-this Agreement, including all Contributors.
-
-
2. GRANT OF RIGHTS
-
-
a) Subject to the terms of this Agreement, each
-Contributor hereby grants Recipient a non-exclusive, worldwide,
-royalty-free copyright license to reproduce, prepare derivative works
-of, publicly display, publicly perform, distribute and sublicense the
-Contribution of such Contributor, if any, and such derivative works, in
-source code and object code form.
-
-
b) Subject to the terms of this Agreement, each
-Contributor hereby grants Recipient a non-exclusive, worldwide,
-royalty-free patent license under Licensed Patents to make, use, sell,
-offer to sell, import and otherwise transfer the Contribution of such
-Contributor, if any, in source code and object code form. This patent
-license shall apply to the combination of the Contribution and the
-Program if, at the time the Contribution is added by the Contributor,
-such addition of the Contribution causes such combination to be covered
-by the Licensed Patents. The patent license shall not apply to any other
-combinations which include the Contribution. No hardware per se is
-licensed hereunder.
-
-
c) Recipient understands that although each Contributor
-grants the licenses to its Contributions set forth herein, no assurances
-are provided by any Contributor that the Program does not infringe the
-patent or other intellectual property rights of any other entity. Each
-Contributor disclaims any liability to Recipient for claims brought by
-any other entity based on infringement of intellectual property rights
-or otherwise. As a condition to exercising the rights and licenses
-granted hereunder, each Recipient hereby assumes sole responsibility to
-secure any other intellectual property rights needed, if any. For
-example, if a third party patent license is required to allow Recipient
-to distribute the Program, it is Recipient's responsibility to acquire
-that license before distributing the Program.
-
-
d) Each Contributor represents that to its knowledge it
-has sufficient copyright rights in its Contribution, if any, to grant
-the copyright license set forth in this Agreement.
-
-
3. REQUIREMENTS
-
-
A Contributor may choose to distribute the Program in object code
-form under its own license agreement, provided that:
-
-
a) it complies with the terms and conditions of this
-Agreement; and
-
-
b) its license agreement:
-
-
i) effectively disclaims on behalf of all Contributors
-all warranties and conditions, express and implied, including warranties
-or conditions of title and non-infringement, and implied warranties or
-conditions of merchantability and fitness for a particular purpose;
-
-
ii) effectively excludes on behalf of all Contributors
-all liability for damages, including direct, indirect, special,
-incidental and consequential damages, such as lost profits;
-
-
iii) states that any provisions which differ from this
-Agreement are offered by that Contributor alone and not by any other
-party; and
-
-
iv) states that source code for the Program is available
-from such Contributor, and informs licensees how to obtain it in a
-reasonable manner on or through a medium customarily used for software
-exchange.
-
-
When the Program is made available in source code form:
-
-
a) it must be made available under this Agreement; and
-
-
b) a copy of this Agreement must be included with each
-copy of the Program.
-
-
Contributors may not remove or alter any copyright notices contained
-within the Program.
-
-
Each Contributor must identify itself as the originator of its
-Contribution, if any, in a manner that reasonably allows subsequent
-Recipients to identify the originator of the Contribution.
-
-
4. COMMERCIAL DISTRIBUTION
-
-
Commercial distributors of software may accept certain
-responsibilities with respect to end users, business partners and the
-like. While this license is intended to facilitate the commercial use of
-the Program, the Contributor who includes the Program in a commercial
-product offering should do so in a manner which does not create
-potential liability for other Contributors. Therefore, if a Contributor
-includes the Program in a commercial product offering, such Contributor
-("Commercial Contributor") hereby agrees to defend and
-indemnify every other Contributor ("Indemnified Contributor")
-against any losses, damages and costs (collectively "Losses")
-arising from claims, lawsuits and other legal actions brought by a third
-party against the Indemnified Contributor to the extent caused by the
-acts or omissions of such Commercial Contributor in connection with its
-distribution of the Program in a commercial product offering. The
-obligations in this section do not apply to any claims or Losses
-relating to any actual or alleged intellectual property infringement. In
-order to qualify, an Indemnified Contributor must: a) promptly notify
-the Commercial Contributor in writing of such claim, and b) allow the
-Commercial Contributor to control, and cooperate with the Commercial
-Contributor in, the defense and any related settlement negotiations. The
-Indemnified Contributor may participate in any such claim at its own
-expense.
-
-
For example, a Contributor might include the Program in a commercial
-product offering, Product X. That Contributor is then a Commercial
-Contributor. If that Commercial Contributor then makes performance
-claims, or offers warranties related to Product X, those performance
-claims and warranties are such Commercial Contributor's responsibility
-alone. Under this section, the Commercial Contributor would have to
-defend claims against the other Contributors related to those
-performance claims and warranties, and if a court requires any other
-Contributor to pay any damages as a result, the Commercial Contributor
-must pay those damages.
-
-
5. NO WARRANTY
-
-
EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS
-PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS
-OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION,
-ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY
-OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely
-responsible for determining the appropriateness of using and
-distributing the Program and assumes all risks associated with its
-exercise of rights under this Agreement , including but not limited to
-the risks and costs of program errors, compliance with applicable laws,
-damage to or loss of data, programs or equipment, and unavailability or
-interruption of operations.
-
-
6. DISCLAIMER OF LIABILITY
-
-
EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT
-NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT,
-INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING
-WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF
-LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR
-DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED
-HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
-
-
7. GENERAL
-
-
If any provision of this Agreement is invalid or unenforceable under
-applicable law, it shall not affect the validity or enforceability of
-the remainder of the terms of this Agreement, and without further action
-by the parties hereto, such provision shall be reformed to the minimum
-extent necessary to make such provision valid and enforceable.
-
-
If Recipient institutes patent litigation against any entity
-(including a cross-claim or counterclaim in a lawsuit) alleging that the
-Program itself (excluding combinations of the Program with other
-software or hardware) infringes such Recipient's patent(s), then such
-Recipient's rights granted under Section 2(b) shall terminate as of the
-date such litigation is filed.
-
-
All Recipient's rights under this Agreement shall terminate if it
-fails to comply with any of the material terms or conditions of this
-Agreement and does not cure such failure in a reasonable period of time
-after becoming aware of such noncompliance. If all Recipient's rights
-under this Agreement terminate, Recipient agrees to cease use and
-distribution of the Program as soon as reasonably practicable. However,
-Recipient's obligations under this Agreement and any licenses granted by
-Recipient relating to the Program shall continue and survive.
-
-
Everyone is permitted to copy and distribute copies of this
-Agreement, but in order to avoid inconsistency the Agreement is
-copyrighted and may only be modified in the following manner. The
-Agreement Steward reserves the right to publish new versions (including
-revisions) of this Agreement from time to time. No one other than the
-Agreement Steward has the right to modify this Agreement. The Eclipse
-Foundation is the initial Agreement Steward. The Eclipse Foundation may
-assign the responsibility to serve as the Agreement Steward to a
-suitable separate entity. Each new version of the Agreement will be
-given a distinguishing version number. The Program (including
-Contributions) may always be distributed subject to the version of the
-Agreement under which it was received. In addition, after a new version
-of the Agreement is published, Contributor may elect to distribute the
-Program (including its Contributions) under the new version. Except as
-expressly stated in Sections 2(a) and 2(b) above, Recipient receives no
-rights or licenses to the intellectual property of any Contributor under
-this Agreement, whether expressly, by implication, estoppel or
-otherwise. All rights in the Program not expressly granted under this
-Agreement are reserved.
-
-
This Agreement is governed by the laws of the State of New York and
-the intellectual property laws of the United States of America. No party
-to this Agreement will bring a legal action under this Agreement more
-than one year after the cause of action arose. Each party waives its
-rights to a jury trial in any resulting litigation.
-
-
-
-
\ No newline at end of file
diff --git a/features/org.eclipse.emf.eef.sdk-feature/feature.properties b/features/org.eclipse.emf.eef.sdk-feature/feature.properties
deleted file mode 100644
index 935180671..000000000
--- a/features/org.eclipse.emf.eef.sdk-feature/feature.properties
+++ /dev/null
@@ -1,161 +0,0 @@
-###############################################################################
-# Copyright (c) 2008, 2012 Obeo.
-# 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:
-# Obeo - initial API and implementation
-###############################################################################
-# "providerName" property - name of the company that provides the feature
-providerName=Eclipse Modeling Project
-
-# "featureName" property - name of the feature
-featureName=Extended Editing Framework - SDK
-
-# "updateSiteName" property - label for the update site (on download.eclipse.org)
-modelingUpdateSiteName=Eclipse Modeling Project Updates
-
-# "description" property - description of the feature
-description=Extended Editing Framework - SDK.\n\
-This includes :\n\
-- EEF metamodels\n\
-- EEF editors\n\
-- EEF models initializer\n\
-- EEF Acceleo generators\n\
-- EEF Documentation\n\
-- EEF extension\n\
-- all sources\n\
-
-# "licenseURL" property - URL of the "Feature License"
-# do not translate value - just change to point to a locale-specific HTML page
-licenseURL=license.html
-
-# "license" property - text of the "Feature Update License"
-# should be plain text version of license agreement pointed to be "licenseURL"
-license=\
-Eclipse Foundation Software User Agreement\n\
-February 1, 2011\n\
-\n\
-Usage Of Content\n\
-\n\
-THE ECLIPSE FOUNDATION MAKES AVAILABLE SOFTWARE, DOCUMENTATION, INFORMATION AND/OR\n\
-OTHER MATERIALS FOR OPEN SOURCE PROJECTS (COLLECTIVELY "CONTENT").\n\
-USE OF THE CONTENT IS GOVERNED BY THE TERMS AND CONDITIONS OF THIS\n\
-AGREEMENT AND/OR THE TERMS AND CONDITIONS OF LICENSE AGREEMENTS OR\n\
-NOTICES INDICATED OR REFERENCED BELOW. BY USING THE CONTENT, YOU\n\
-AGREE THAT YOUR USE OF THE CONTENT IS GOVERNED BY THIS AGREEMENT\n\
-AND/OR THE TERMS AND CONDITIONS OF ANY APPLICABLE LICENSE AGREEMENTS\n\
-OR NOTICES INDICATED OR REFERENCED BELOW. IF YOU DO NOT AGREE TO THE\n\
-TERMS AND CONDITIONS OF THIS AGREEMENT AND THE TERMS AND CONDITIONS\n\
-OF ANY APPLICABLE LICENSE AGREEMENTS OR NOTICES INDICATED OR REFERENCED\n\
-BELOW, THEN YOU MAY NOT USE THE CONTENT.\n\
-\n\
-Applicable Licenses\n\
-\n\
-Unless otherwise indicated, all Content made available by the\n\
-Eclipse Foundation is provided to you under the terms and conditions of\n\
-the Eclipse Public License Version 1.0 ("EPL"). A copy of the EPL is\n\
-provided with this Content and is also available at http://www.eclipse.org/legal/epl-v10.html.\n\
-For purposes of the EPL, "Program" will mean the Content.\n\
-\n\
-Content includes, but is not limited to, source code, object code,\n\
-documentation and other files maintained in the Eclipse Foundation source code\n\
-repository ("Repository") in software modules ("Modules") and made available\n\
-as downloadable archives ("Downloads").\n\
-\n\
- - Content may be structured and packaged into modules to facilitate delivering,\n\
- extending, and upgrading the Content. Typical modules may include plug-ins ("Plug-ins"),\n\
- plug-in fragments ("Fragments"), and features ("Features").\n\
- - Each Plug-in or Fragment may be packaged as a sub-directory or JAR (Java(TM) ARchive)\n\
- in a directory named "plugins".\n\
- - A Feature is a bundle of one or more Plug-ins and/or Fragments and associated material.\n\
- Each Feature may be packaged as a sub-directory in a directory named "features".\n\
- Within a Feature, files named "feature.xml" may contain a list of the names and version\n\
- numbers of the Plug-ins and/or Fragments associated with that Feature.\n\
- - Features may also include other Features ("Included Features"). Within a Feature, files\n\
- named "feature.xml" may contain a list of the names and version numbers of Included Features.\n\
-\n\
-The terms and conditions governing Plug-ins and Fragments should be\n\
-contained in files named "about.html" ("Abouts"). The terms and\n\
-conditions governing Features and Included Features should be contained\n\
-in files named "license.html" ("Feature Licenses"). Abouts and Feature\n\
-Licenses may be located in any directory of a Download or Module\n\
-including, but not limited to the following locations:\n\
-\n\
- - The top-level (root) directory\n\
- - Plug-in and Fragment directories\n\
- - Inside Plug-ins and Fragments packaged as JARs\n\
- - Sub-directories of the directory named "src" of certain Plug-ins\n\
- - Feature directories\n\
-\n\
-Note: if a Feature made available by the Eclipse Foundation is installed using the\n\
-Provisioning Technology (as defined below), you must agree to a license ("Feature \n\
-Update License") during the installation process. If the Feature contains\n\
-Included Features, the Feature Update License should either provide you\n\
-with the terms and conditions governing the Included Features or inform\n\
-you where you can locate them. Feature Update Licenses may be found in\n\
-the "license" property of files named "feature.properties" found within a Feature.\n\
-Such Abouts, Feature Licenses, and Feature Update Licenses contain the\n\
-terms and conditions (or references to such terms and conditions) that\n\
-govern your use of the associated Content in that directory.\n\
-\n\
-THE ABOUTS, FEATURE LICENSES, AND FEATURE UPDATE LICENSES MAY REFER\n\
-TO THE EPL OR OTHER LICENSE AGREEMENTS, NOTICES OR TERMS AND CONDITIONS.\n\
-SOME OF THESE OTHER LICENSE AGREEMENTS MAY INCLUDE (BUT ARE NOT LIMITED TO):\n\
-\n\
- - Eclipse Distribution License Version 1.0 (available at http://www.eclipse.org/licenses/edl-v1.0.html)\n\
- - Common Public License Version 1.0 (available at http://www.eclipse.org/legal/cpl-v10.html)\n\
- - Apache Software License 1.1 (available at http://www.apache.org/licenses/LICENSE)\n\
- - Apache Software License 2.0 (available at http://www.apache.org/licenses/LICENSE-2.0)\n\
- - Metro Link Public License 1.00 (available at http://www.opengroup.org/openmotif/supporters/metrolink/license.html)\n\
- - Mozilla Public License Version 1.1 (available at http://www.mozilla.org/MPL/MPL-1.1.html)\n\
-\n\
-IT IS YOUR OBLIGATION TO READ AND ACCEPT ALL SUCH TERMS AND CONDITIONS PRIOR\n\
-TO USE OF THE CONTENT. If no About, Feature License, or Feature Update License\n\
-is provided, please contact the Eclipse Foundation to determine what terms and conditions\n\
-govern that particular Content.\n\
-\n\
-\n\Use of Provisioning Technology\n\
-\n\
-The Eclipse Foundation makes available provisioning software, examples of which include,\n\
-but are not limited to, p2 and the Eclipse Update Manager ("Provisioning Technology") for\n\
-the purpose of allowing users to install software, documentation, information and/or\n\
-other materials (collectively "Installable Software"). This capability is provided with\n\
-the intent of allowing such users to install, extend and update Eclipse-based products.\n\
-Information about packaging Installable Software is available at\n\
-http://eclipse.org/equinox/p2/repository_packaging.html ("Specification").\n\
-\n\
-You may use Provisioning Technology to allow other parties to install Installable Software.\n\
-You shall be responsible for enabling the applicable license agreements relating to the\n\
-Installable Software to be presented to, and accepted by, the users of the Provisioning Technology\n\
-in accordance with the Specification. By using Provisioning Technology in such a manner and\n\
-making it available in accordance with the Specification, you further acknowledge your\n\
-agreement to, and the acquisition of all necessary rights to permit the following:\n\
-\n\
- 1. A series of actions may occur ("Provisioning Process") in which a user may execute\n\
- the Provisioning Technology on a machine ("Target Machine") with the intent of installing,\n\
- extending or updating the functionality of an Eclipse-based product.\n\
- 2. During the Provisioning Process, the Provisioning Technology may cause third party\n\
- Installable Software or a portion thereof to be accessed and copied to the Target Machine.\n\
- 3. Pursuant to the Specification, you will provide to the user the terms and conditions that\n\
- govern the use of the Installable Software ("Installable Software Agreement") and such\n\
- Installable Software Agreement shall be accessed from the Target Machine in accordance\n\
- with the Specification. Such Installable Software Agreement must inform the user of the\n\
- terms and conditions that govern the Installable Software and must solicit acceptance by\n\
- the end user in the manner prescribed in such Installable Software Agreement. Upon such\n\
- indication of agreement by the user, the provisioning Technology will complete installation\n\
- of the Installable Software.\n\
-\n\
-Cryptography\n\
-\n\
-Content may contain encryption software. The country in which you are\n\
-currently may have restrictions on the import, possession, and use,\n\
-and/or re-export to another country, of encryption software. BEFORE\n\
-using any encryption software, please check the country's laws,\n\
-regulations and policies concerning the import, possession, or use, and\n\
-re-export of encryption software, to see if this is permitted.\n\
-\n\
-Java and all Java-based trademarks are trademarks of Oracle Corporation in the United States, other countries, or both.\n
-########### end of license property ##########################################
diff --git a/features/org.eclipse.emf.eef.sdk-feature/feature.xml b/features/org.eclipse.emf.eef.sdk-feature/feature.xml
deleted file mode 100644
index bcd9cb272..000000000
--- a/features/org.eclipse.emf.eef.sdk-feature/feature.xml
+++ /dev/null
@@ -1,197 +0,0 @@
-
-
-
-
-
- %description
-
-
-
- Copyright (c) 2008 - 2010 Obeo.
-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
-
-
-
- %license
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/features/org.eclipse.emf.eef.sdk-feature/license.html b/features/org.eclipse.emf.eef.sdk-feature/license.html
deleted file mode 100644
index a1fe5ea3f..000000000
--- a/features/org.eclipse.emf.eef.sdk-feature/license.html
+++ /dev/null
@@ -1,116 +0,0 @@
-
-
-
-
-
-Eclipse Foundation Software User Agreement
-
-
-
-
Eclipse Foundation Software User Agreement
-
February 1, 2011
-
-
Usage Of Content
-
-
THE ECLIPSE FOUNDATION MAKES AVAILABLE SOFTWARE, DOCUMENTATION, INFORMATION AND/OR OTHER MATERIALS FOR OPEN SOURCE PROJECTS
- (COLLECTIVELY "CONTENT"). USE OF THE CONTENT IS GOVERNED BY THE TERMS AND CONDITIONS OF THIS AGREEMENT AND/OR THE TERMS AND
- CONDITIONS OF LICENSE AGREEMENTS OR NOTICES INDICATED OR REFERENCED BELOW. BY USING THE CONTENT, YOU AGREE THAT YOUR USE
- OF THE CONTENT IS GOVERNED BY THIS AGREEMENT AND/OR THE TERMS AND CONDITIONS OF ANY APPLICABLE LICENSE AGREEMENTS OR
- NOTICES INDICATED OR REFERENCED BELOW. IF YOU DO NOT AGREE TO THE TERMS AND CONDITIONS OF THIS AGREEMENT AND THE TERMS AND
- CONDITIONS OF ANY APPLICABLE LICENSE AGREEMENTS OR NOTICES INDICATED OR REFERENCED BELOW, THEN YOU MAY NOT USE THE CONTENT.
-
-
Applicable Licenses
-
-
Unless otherwise indicated, all Content made available by the Eclipse Foundation is provided to you under the terms and conditions of the Eclipse Public License Version 1.0
- ("EPL"). A copy of the EPL is provided with this Content and is also available at http://www.eclipse.org/legal/epl-v10.html.
- For purposes of the EPL, "Program" will mean the Content.
-
-
Content includes, but is not limited to, source code, object code, documentation and other files maintained in the Eclipse Foundation source code
- repository ("Repository") in software modules ("Modules") and made available as downloadable archives ("Downloads").
-
-
-
Content may be structured and packaged into modules to facilitate delivering, extending, and upgrading the Content. Typical modules may include plug-ins ("Plug-ins"), plug-in fragments ("Fragments"), and features ("Features").
-
-
Each Plug-in or Fragment may be packaged as a sub-directory or JAR (Java™ ARchive) in a directory named "plugins".
-
A Feature is a bundle of one or more Plug-ins and/or Fragments and associated material. Each Feature may be packaged as a sub-directory in a directory named "features". Within a Feature, files named "feature.xml" may contain a list of the names and version numbers of the Plug-ins
- and/or Fragments associated with that Feature.
-
Features may also include other Features ("Included Features"). Within a Feature, files named "feature.xml" may contain a list of the names and version numbers of Included Features.
-
-
-
-
The terms and conditions governing Plug-ins and Fragments should be contained in files named "about.html" ("Abouts"). The terms and conditions governing Features and
-Included Features should be contained in files named "license.html" ("Feature Licenses"). Abouts and Feature Licenses may be located in any directory of a Download or Module
-including, but not limited to the following locations:
-
-
-
The top-level (root) directory
-
-
Plug-in and Fragment directories
-
Inside Plug-ins and Fragments packaged as JARs
-
Sub-directories of the directory named "src" of certain Plug-ins
-
Feature directories
-
-
-
Note: if a Feature made available by the Eclipse Foundation is installed using the Provisioning Technology (as defined below), you must agree to a license ("Feature Update License") during the
-installation process. If the Feature contains Included Features, the Feature Update License should either provide you with the terms and conditions governing the Included Features or
-inform you where you can locate them. Feature Update Licenses may be found in the "license" property of files named "feature.properties" found within a Feature.
-Such Abouts, Feature Licenses, and Feature Update Licenses contain the terms and conditions (or references to such terms and conditions) that govern your use of the associated Content in
-that directory.
-
-
THE ABOUTS, FEATURE LICENSES, AND FEATURE UPDATE LICENSES MAY REFER TO THE EPL OR OTHER LICENSE AGREEMENTS, NOTICES OR TERMS AND CONDITIONS. SOME OF THESE
-OTHER LICENSE AGREEMENTS MAY INCLUDE (BUT ARE NOT LIMITED TO):
IT IS YOUR OBLIGATION TO READ AND ACCEPT ALL SUCH TERMS AND CONDITIONS PRIOR TO USE OF THE CONTENT. If no About, Feature License, or Feature Update License is provided, please
-contact the Eclipse Foundation to determine what terms and conditions govern that particular Content.
-
-
-
Use of Provisioning Technology
-
-
The Eclipse Foundation makes available provisioning software, examples of which include, but are not limited to, p2 and the Eclipse
- Update Manager ("Provisioning Technology") for the purpose of allowing users to install software, documentation, information and/or
- other materials (collectively "Installable Software"). This capability is provided with the intent of allowing such users to
- install, extend and update Eclipse-based products. Information about packaging Installable Software is available at http://eclipse.org/equinox/p2/repository_packaging.html
-
- ("Specification").
-
-
You may use Provisioning Technology to allow other parties to install Installable Software. You shall be responsible for enabling the
- applicable license agreements relating to the Installable Software to be presented to, and accepted by, the users of the Provisioning Technology
- in accordance with the Specification. By using Provisioning Technology in such a manner and making it available in accordance with the
- Specification, you further acknowledge your agreement to, and the acquisition of all necessary rights to permit the following:
-
-
-
A series of actions may occur ("Provisioning Process") in which a user may execute the Provisioning Technology
- on a machine ("Target Machine") with the intent of installing, extending or updating the functionality of an Eclipse-based
- product.
-
-
During the Provisioning Process, the Provisioning Technology may cause third party Installable Software or a portion thereof to be
- accessed and copied to the Target Machine.
-
Pursuant to the Specification, you will provide to the user the terms and conditions that govern the use of the Installable
- Software ("Installable Software Agreement") and such Installable Software Agreement shall be accessed from the Target
- Machine in accordance with the Specification. Such Installable Software Agreement must inform the user of the terms and conditions that govern
- the Installable Software and must solicit acceptance by the end user in the manner prescribed in such Installable Software Agreement. Upon such
- indication of agreement by the user, the provisioning Technology will complete installation of the Installable Software.
-
-
-
Cryptography
-
-
Content may contain encryption software. The country in which you are currently may have restrictions on the import, possession, and use, and/or re-export to
- another country, of encryption software. BEFORE using any encryption software, please check the country's laws, regulations and policies concerning the import,
- possession, or use, and re-export of encryption software, to see if this is permitted.
-
-
Java and all Java-based trademarks are trademarks of Oracle Corporation in the United States, other countries, or both.
-
-
-
diff --git a/features/org.eclipse.emf.eef.sdk-feature/license.txt b/features/org.eclipse.emf.eef.sdk-feature/license.txt
deleted file mode 100644
index 24937b64c..000000000
--- a/features/org.eclipse.emf.eef.sdk-feature/license.txt
+++ /dev/null
@@ -1,87 +0,0 @@
-Eclipse Public License - v 1.0
-
-THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE PUBLIC LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT.
-
-1. DEFINITIONS
-
-"Contribution" means:
-
-a) in the case of the initial Contributor, the initial code and documentation distributed under this Agreement, and
-b) in the case of each subsequent Contributor:
-
-i) changes to the Program, and
-
-ii) additions to the Program;
-
-where such changes and/or additions to the Program originate from and are distributed by that particular Contributor. A Contribution 'originates' from a Contributor if it was added to the Program by such Contributor itself or anyone acting on such Contributor's behalf. Contributions do not include additions to the Program which: (i) are separate modules of software distributed in conjunction with the Program under their own license agreement, and (ii) are not derivative works of the Program.
-
-"Contributor" means any person or entity that distributes the Program.
-
-"Licensed Patents " mean patent claims licensable by a Contributor which are necessarily infringed by the use or sale of its Contribution alone or when combined with the Program.
-
-"Program" means the Contributions distributed in accordance with this Agreement.
-
-"Recipient" means anyone who receives the Program under this Agreement, including all Contributors.
-
-2. GRANT OF RIGHTS
-
-a) Subject to the terms of this Agreement, each Contributor hereby grants Recipient a non-exclusive, worldwide, royalty-free copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, distribute and sublicense the Contribution of such Contributor, if any, and such derivative works, in source code and object code form.
-
-b) Subject to the terms of this Agreement, each Contributor hereby grants Recipient a non-exclusive, worldwide, royalty-free patent license under Licensed Patents to make, use, sell, offer to sell, import and otherwise transfer the Contribution of such Contributor, if any, in source code and object code form. This patent license shall apply to the combination of the Contribution and the Program if, at the time the Contribution is added by the Contributor, such addition of the Contribution causes such combination to be covered by the Licensed Patents. The patent license shall not apply to any other combinations which include the Contribution. No hardware per se is licensed hereunder.
-
-c) Recipient understands that although each Contributor grants the licenses to its Contributions set forth herein, no assurances are provided by any Contributor that the Program does not infringe the patent or other intellectual property rights of any other entity. Each Contributor disclaims any liability to Recipient for claims brought by any other entity based on infringement of intellectual property rights or otherwise. As a condition to exercising the rights and licenses granted hereunder, each Recipient hereby assumes sole responsibility to secure any other intellectual property rights needed, if any. For example, if a third party patent license is required to allow Recipient to distribute the Program, it is Recipient's responsibility to acquire that license before distributing the Program.
-
-d) Each Contributor represents that to its knowledge it has sufficient copyright rights in its Contribution, if any, to grant the copyright license set forth in this Agreement.
-
-3. REQUIREMENTS
-
-A Contributor may choose to distribute the Program in object code form under its own license agreement, provided that:
-
-a) it complies with the terms and conditions of this Agreement; and
-
-b) its license agreement:
-
-i) effectively disclaims on behalf of all Contributors all warranties and conditions, express and implied, including warranties or conditions of title and non-infringement, and implied warranties or conditions of merchantability and fitness for a particular purpose;
-
-ii) effectively excludes on behalf of all Contributors all liability for damages, including direct, indirect, special, incidental and consequential damages, such as lost profits;
-
-iii) states that any provisions which differ from this Agreement are offered by that Contributor alone and not by any other party; and
-
-iv) states that source code for the Program is available from such Contributor, and informs licensees how to obtain it in a reasonable manner on or through a medium customarily used for software exchange.
-
-When the Program is made available in source code form:
-
-a) it must be made available under this Agreement; and
-
-b) a copy of this Agreement must be included with each copy of the Program.
-
-Contributors may not remove or alter any copyright notices contained within the Program.
-
-Each Contributor must identify itself as the originator of its Contribution, if any, in a manner that reasonably allows subsequent Recipients to identify the originator of the Contribution.
-
-4. COMMERCIAL DISTRIBUTION
-
-Commercial distributors of software may accept certain responsibilities with respect to end users, business partners and the like. While this license is intended to facilitate the commercial use of the Program, the Contributor who includes the Program in a commercial product offering should do so in a manner which does not create potential liability for other Contributors. Therefore, if a Contributor includes the Program in a commercial product offering, such Contributor ("Commercial Contributor") hereby agrees to defend and indemnify every other Contributor ("Indemnified Contributor") against any losses, damages and costs (collectively "Losses") arising from claims, lawsuits and other legal actions brought by a third party against the Indemnified Contributor to the extent caused by the acts or omissions of such Commercial Contributor in connection with its distribution of the Program in a commercial product offering. The obligations in this section do not apply to any claims or Losses relating to any actual or alleged intellectual property infringement. In order to qualify, an Indemnified Contributor must: a) promptly notify the Commercial Contributor in writing of such claim, and b) allow the Commercial Contributor to control, and cooperate with the Commercial Contributor in, the defense and any related settlement negotiations. The Indemnified Contributor may participate in any such claim at its own expense.
-
-For example, a Contributor might include the Program in a commercial product offering, Product X. That Contributor is then a Commercial Contributor. If that Commercial Contributor then makes performance claims, or offers warranties related to Product X, those performance claims and warranties are such Commercial Contributor's responsibility alone. Under this section, the Commercial Contributor would have to defend claims against the other Contributors related to those performance claims and warranties, and if a court requires any other Contributor to pay any damages as a result, the Commercial Contributor must pay those damages.
-
-5. NO WARRANTY
-
-EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely responsible for determining the appropriateness of using and distributing the Program and assumes all risks associated with its exercise of rights under this Agreement , including but not limited to the risks and costs of program errors, compliance with applicable laws, damage to or loss of data, programs or equipment, and unavailability or interruption of operations.
-
-6. DISCLAIMER OF LIABILITY
-
-EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
-
-7. GENERAL
-
-If any provision of this Agreement is invalid or unenforceable under applicable law, it shall not affect the validity or enforceability of the remainder of the terms of this Agreement, and without further action by the parties hereto, such provision shall be reformed to the minimum extent necessary to make such provision valid and enforceable.
-
-If Recipient institutes patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Program itself (excluding combinations of the Program with other software or hardware) infringes such Recipient's patent(s), then such Recipient's rights granted under Section 2(b) shall terminate as of the date such litigation is filed.
-
-All Recipient's rights under this Agreement shall terminate if it fails to comply with any of the material terms or conditions of this Agreement and does not cure such failure in a reasonable period of time after becoming aware of such noncompliance. If all Recipient's rights under this Agreement terminate, Recipient agrees to cease use and distribution of the Program as soon as reasonably practicable. However, Recipient's obligations under this Agreement and any licenses granted by Recipient relating to the Program shall continue and survive.
-
-Everyone is permitted to copy and distribute copies of this Agreement, but in order to avoid inconsistency the Agreement is copyrighted and may only be modified in the following manner. The Agreement Steward reserves the right to publish new versions (including revisions) of this Agreement from time to time. No one other than the Agreement Steward has the right to modify this Agreement. The Eclipse Foundation is the initial Agreement Steward. The Eclipse Foundation may assign the responsibility to serve as the Agreement Steward to a suitable separate entity. Each new version of the Agreement will be given a distinguishing version number. The Program (including Contributions) may always be distributed subject to the version of the Agreement under which it was received. In addition, after a new version of the Agreement is published, Contributor may elect to distribute the Program (including its Contributions) under the new version. Except as expressly stated in Sections 2(a) and 2(b) above, Recipient receives no rights or licenses to the intellectual property of any Contributor under this Agreement, whether expressly, by implication, estoppel or otherwise. All rights in the Program not expressly granted under this Agreement are reserved.
-
-This Agreement is governed by the laws of the State of New York and the intellectual property laws of the United States of America. No party to this Agreement will bring a legal action under this Agreement more than one year after the cause of action arose. Each party waives its rights to a jury trial in any resulting litigation.
-
diff --git a/features/org.eclipse.emf.eef.sdk-feature/pom.xml b/features/org.eclipse.emf.eef.sdk-feature/pom.xml
deleted file mode 100644
index 1b72ef8c0..000000000
--- a/features/org.eclipse.emf.eef.sdk-feature/pom.xml
+++ /dev/null
@@ -1,29 +0,0 @@
-
-
-
-
- 4.0.0
-
-
- org.eclipse.emf
- org.eclipse.emf.eef.releng.parent
- ../../releng/org.eclipse.emf.eef.releng.parent
- 1.5.2-SNAPSHOT
-
-
- org.eclipse.emf.eef.sdk-feature
- eclipse-feature
-
- EEF SDK Feature
-
-
diff --git a/plugins/org.eclipse.emf.eef.branding/.gitignore b/plugins/org.eclipse.emf.eef.branding/.gitignore
deleted file mode 100644
index ea8c4bf7f..000000000
--- a/plugins/org.eclipse.emf.eef.branding/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-/target
diff --git a/plugins/org.eclipse.emf.eef.branding/.project b/plugins/org.eclipse.emf.eef.branding/.project
deleted file mode 100644
index 7a3db7b7e..000000000
--- a/plugins/org.eclipse.emf.eef.branding/.project
+++ /dev/null
@@ -1,22 +0,0 @@
-
-
- org.eclipse.emf.eef.branding
-
-
-
-
-
- org.eclipse.pde.ManifestBuilder
-
-
-
-
- org.eclipse.pde.SchemaBuilder
-
-
-
-
-
- org.eclipse.pde.PluginNature
-
-
diff --git a/plugins/org.eclipse.emf.eef.branding/META-INF/MANIFEST.MF b/plugins/org.eclipse.emf.eef.branding/META-INF/MANIFEST.MF
deleted file mode 100644
index c9d1d42b4..000000000
--- a/plugins/org.eclipse.emf.eef.branding/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,6 +0,0 @@
-Manifest-Version: 1.0
-Bundle-ManifestVersion: 2
-Bundle-Name: EEF
-Bundle-SymbolicName: org.eclipse.emf.eef.branding
-Bundle-Version: 1.5.2.qualifier
-Bundle-Vendor: Eclipse Modeling Project
diff --git a/plugins/org.eclipse.emf.eef.branding/about.html b/plugins/org.eclipse.emf.eef.branding/about.html
deleted file mode 100644
index f3a55ce5f..000000000
--- a/plugins/org.eclipse.emf.eef.branding/about.html
+++ /dev/null
@@ -1,28 +0,0 @@
-
-
-
-
-About
-
-
-
About This Content
-
-
June 15, 2010
-
License
-
-
The Eclipse Foundation makes available all content in this plug-in ("Content"). Unless otherwise
-indicated below, the Content is provided to you under the terms and conditions of the
-Eclipse Public License Version 1.0 ("EPL"). A copy of the EPL is available
-at http://www.eclipse.org/legal/epl-v10.html.
-For purposes of the EPL, "Program" will mean the Content.
-
-
If you did not receive this Content directly from the Eclipse Foundation, the Content is
-being redistributed by another party ("Redistributor") and different terms and conditions may
-apply to your use of any object code in the Content. Check the Redistributor's license that was
-provided with the Content. If no such license exists, contact the Redistributor. Unless otherwise
-indicated below, the terms and conditions of the EPL still apply to any source code in the Content
-and such source code may be obtained at http://www.eclipse.org.
-
-
-
\ No newline at end of file
diff --git a/plugins/org.eclipse.emf.eef.branding/about.ini b/plugins/org.eclipse.emf.eef.branding/about.ini
deleted file mode 100644
index eec22440e..000000000
--- a/plugins/org.eclipse.emf.eef.branding/about.ini
+++ /dev/null
@@ -1,14 +0,0 @@
-# about.ini
-# contains information about a feature
-# java.io.Properties file (ISO 8859-1 with "\" escapes)
-# "%key" are externalized strings defined in about.properties
-# This file does not need to be translated.
-
-# Property "aboutText" contains blurb for "About" dialog (translated)
-aboutText=%featureText
-
-# Property "featureImage" contains path to feature image (32x32)
-featureImage=modeling32.png
-
-# Property "appName" contains name of the application (translated)
-appName=%featureName
diff --git a/plugins/org.eclipse.emf.eef.branding/about.mappings b/plugins/org.eclipse.emf.eef.branding/about.mappings
deleted file mode 100644
index a28390a75..000000000
--- a/plugins/org.eclipse.emf.eef.branding/about.mappings
+++ /dev/null
@@ -1,6 +0,0 @@
-# about.mappings
-# contains fill-ins for about.properties
-# java.io.Properties file (ISO 8859-1 with "\" escapes)
-# This file does not need to be translated.
-
-0=@build@
diff --git a/plugins/org.eclipse.emf.eef.branding/about.properties b/plugins/org.eclipse.emf.eef.branding/about.properties
deleted file mode 100644
index 13ccbfde1..000000000
--- a/plugins/org.eclipse.emf.eef.branding/about.properties
+++ /dev/null
@@ -1,20 +0,0 @@
-###############################################################################
-# Copyright (c) 2012 Obeo.
-# 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:
-# Obeo - initial API and implementation
-###############################################################################
-
-featureName=Extended Editing Framework
-
-featureText=Extended Editing Framework \n\
-Version: {featureVersion}\n\
-\n\
-(c) Copyright Obeo and others. 2008, 2012. All rights reserved.\n\
-\n\
-Extended Editing Framework brings sexy properties into standards Eclipse Modeling Framework editors.\n\
-Visit http://www.eclipse.org/eef
diff --git a/plugins/org.eclipse.emf.eef.branding/build.properties b/plugins/org.eclipse.emf.eef.branding/build.properties
deleted file mode 100644
index b3258f21a..000000000
--- a/plugins/org.eclipse.emf.eef.branding/build.properties
+++ /dev/null
@@ -1,16 +0,0 @@
-###############################################################################
-# Copyright (c) 2012 Obeo.
-# 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:
-# Obeo - initial API and implementation
-###############################################################################
-bin.includes = about.html,\
- modeling32.png,\
- about.properties,\
- about.ini,\
- about.mappings,\
- META-INF/
diff --git a/plugins/org.eclipse.emf.eef.branding/modeling32.png b/plugins/org.eclipse.emf.eef.branding/modeling32.png
deleted file mode 100644
index 6b08de2ada775b81a7d93d35ecdbc8bbed6da81f..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001
literal 2414
zcmV-!36b`RP)mG85FUz8YqR{-rnBN_xo$VbKdjbHiRY1wv+qh
zy!SolJ-_GU_dMquMrc70)S+vDBxRp~#32gAhd2-uVnB4>GsbMXM(ghBrT{$?KOu^g
z7~U&*p~!K*uBQTAm7vX#CMjHz`gsai61d72l1lqf!krH+8{?=!I4_20H8h6BnKVk_
zp938KZB<&El)x>JlzeWGV4k#`gR2sRzw@Ak1|@`aarAYNghH$VBMD4M
zFhz-T?eX72UuAe+D1mu@o$QxLk1z?YL5jw#rj{=imRV(^#nGJQ6FIH1P_+tgowzh&
z7!I>-tz_u=qs7^`KfR7*iefRnE=TGi^{`q09K&u2@
z1X&E}fP7vG4?|v?t|axDYLBB?>7r)Sg`7@flNHM5G%A%%(sYY7!zSC($+9#ujmkyK
zC>(OV(cd#FD~iHewtahBcYlBXgRQNtE4jCFx!l^++im7#y6Fejxd{HH)P=INbm4XZ*$<-s0mR3fkb?Xf1I=g7&U|n0
z-aqJz7wh}m+S*z-Z{GY3+qU(cJ9oYw_<^H@D+;D_;i+Xhx}AjOuQs5DW7xOG6LBPIjC41kQpqF}%2<|5rU_429=WbZw(SXpUG+$Ko*oQbbg^<)-0;MAL0DOfHTP
zODf<=aNqZYP!Kv484Bz`aAn7iEtH!nB_DtMiQlMdkjDoFOsYf*h&-SDWcr)1B}kc)BD1VNi$~XM($DDafKIn2()S#4g>!!+r=1wIk;z&?>e+}X+7QZrIob$j@uDa
zgIZE4dgINvs9faWo{&nV@r#Ls^=r;OC1fhIUBkZ12eCYWeL7X4nY>2%ypCR{{H#v1
z1sz4lqEf}63Oo^l^9614Tw8j;p~gm)QmJN&*Tt#6zK)WONm{k4U4)Vw=m7)S)GLYa
zN41?Z`3BBr8!n%ms*-{X0HZ{nb0Tsu3z@+CP+Y{`g2JZgxd#F-^hTwk(Zr=mkqNqP
z(3Q&t0J|WoC$a@-OEKhun?X$hxS@-?f2wFwv1~@03oj|+BcAsT*B&uWg2ugUkp9R
zQc+bxQ
z4KEKK09Q(4;Lhc3)SO@fjDvEE-J10#b>5PuhqtbypYM5{W@ct;ZuccoYrsJm0%Ec(
zht>~dvqvvP3dGve?adg%k%@gSUn%4=x2)O3C$=w2(O>^Q8patU3*gd*hB$56vJPIc
z=)i$Lirz(j3xaw!&>#Y>G5_#%_Shp=-y?9|3X;n@I$EFHzI{hL9&dbM-@Xri`s$uHbLQ;n
z>u*ofuAeIO9U%m8$
z)m>c=@fQ;l6QAK2>$SJH-!%GABYq(X=Qqp2+RcP=7APSWsj8
zJl4bQ$9B=bX)Ke;^bQXX|5;Vlrs(DL^z^yiyLay&K7Ra@73mJ|vHtIFT(n@}w-lzN
z{xp1&4h;>{XOox3T(P;Zxg(e$TWB@kZl9UY_-iZBo4I4?y`kU1>eTr7_^H9c!J~uk
zyz>#$9;e}vk!VjH!Tb?$cwlPk
zNQwS~#=0|^4qV_;FrW!lkYA@94v7C66u`MC(2*rJEOQV?98t+<(ME}OO4juMw&8N>
zm%Tt-GAp7qgF!)fLbmvk31GOB1g^ZzM&SQ5a7_UwZoPpcN-{T3+
-
-
- 4.0.0
-
-
- org.eclipse.emf
- org.eclipse.emf.eef.releng.parent
- ../../releng/org.eclipse.emf.eef.releng.parent
- 1.5.2-SNAPSHOT
-
-
- org.eclipse.emf.eef.branding
- eclipse-plugin
-
- EEF Branding Plug-in
-
-
diff --git a/plugins/org.eclipse.emf.eef.cdo.runtime/.classpath b/plugins/org.eclipse.emf.eef.cdo.runtime/.classpath
deleted file mode 100644
index 2d1a4302f..000000000
--- a/plugins/org.eclipse.emf.eef.cdo.runtime/.classpath
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
-
-
-
-
diff --git a/plugins/org.eclipse.emf.eef.cdo.runtime/.gitignore b/plugins/org.eclipse.emf.eef.cdo.runtime/.gitignore
deleted file mode 100644
index d44cd35e0..000000000
--- a/plugins/org.eclipse.emf.eef.cdo.runtime/.gitignore
+++ /dev/null
@@ -1,2 +0,0 @@
-target
-bin
diff --git a/plugins/org.eclipse.emf.eef.cdo.runtime/.project b/plugins/org.eclipse.emf.eef.cdo.runtime/.project
deleted file mode 100644
index 87cc90256..000000000
--- a/plugins/org.eclipse.emf.eef.cdo.runtime/.project
+++ /dev/null
@@ -1,28 +0,0 @@
-
-
- org.eclipse.emf.eef.cdo.runtime
-
-
-
-
-
- org.eclipse.jdt.core.javabuilder
-
-
-
-
- org.eclipse.pde.ManifestBuilder
-
-
-
-
- org.eclipse.pde.SchemaBuilder
-
-
-
-
-
- org.eclipse.pde.PluginNature
- org.eclipse.jdt.core.javanature
-
-
diff --git a/plugins/org.eclipse.emf.eef.cdo.runtime/.settings/org.eclipse.jdt.core.prefs b/plugins/org.eclipse.emf.eef.cdo.runtime/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index 44217f8c0..000000000
--- a/plugins/org.eclipse.emf.eef.cdo.runtime/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,7 +0,0 @@
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
-org.eclipse.jdt.core.compiler.compliance=1.5
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.source=1.5
diff --git a/plugins/org.eclipse.emf.eef.cdo.runtime/META-INF/MANIFEST.MF b/plugins/org.eclipse.emf.eef.cdo.runtime/META-INF/MANIFEST.MF
deleted file mode 100644
index c34d25f4d..000000000
--- a/plugins/org.eclipse.emf.eef.cdo.runtime/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,15 +0,0 @@
-Manifest-Version: 1.0
-Bundle-ManifestVersion: 2
-Bundle-Name: EEF CDO Runtime Plug-in
-Bundle-SymbolicName: org.eclipse.emf.eef.cdo.runtime;singleton:=true
-Bundle-Version: 1.5.2.qualifier
-Bundle-Activator: org.eclipse.emf.eef.cdo.runtime.EEFCDORuntimePlugin
-Bundle-Vendor: Eclipse Modeling Project
-Require-Bundle: org.eclipse.ui,
- org.eclipse.core.runtime,
- org.eclipse.emf.cdo;bundle-version="4.0.0",
- org.eclipse.emf.eef.runtime
-Bundle-RequiredExecutionEnvironment: J2SE-1.5
-Bundle-ActivationPolicy: lazy
-Export-Package: org.eclipse.emf.eef.cdo.runtime.policies,
- org.eclipse.emf.eef.cdo.runtime.provider
diff --git a/plugins/org.eclipse.emf.eef.cdo.runtime/build.properties b/plugins/org.eclipse.emf.eef.cdo.runtime/build.properties
deleted file mode 100644
index 6f20375d6..000000000
--- a/plugins/org.eclipse.emf.eef.cdo.runtime/build.properties
+++ /dev/null
@@ -1,5 +0,0 @@
-source.. = src/
-output.. = bin/
-bin.includes = META-INF/,\
- .,\
- plugin.xml
diff --git a/plugins/org.eclipse.emf.eef.cdo.runtime/plugin.xml b/plugins/org.eclipse.emf.eef.cdo.runtime/plugin.xml
deleted file mode 100644
index a7c78c195..000000000
--- a/plugins/org.eclipse.emf.eef.cdo.runtime/plugin.xml
+++ /dev/null
@@ -1,35 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/plugins/org.eclipse.emf.eef.cdo.runtime/pom.xml b/plugins/org.eclipse.emf.eef.cdo.runtime/pom.xml
deleted file mode 100644
index 9fdfb6ee0..000000000
--- a/plugins/org.eclipse.emf.eef.cdo.runtime/pom.xml
+++ /dev/null
@@ -1,28 +0,0 @@
-
-
-
- 4.0.0
-
-
- org.eclipse.emf
- org.eclipse.emf.eef.releng.parent
- ../../releng/org.eclipse.emf.eef.releng.parent
- 1.5.2-SNAPSHOT
-
-
- org.eclipse.emf.eef.cdo.runtime
- eclipse-plugin
-
- EEF Runtime Plug-in
-
-
diff --git a/plugins/org.eclipse.emf.eef.cdo.runtime/schema/CDOLockStrategyProvider.exsd b/plugins/org.eclipse.emf.eef.cdo.runtime/schema/CDOLockStrategyProvider.exsd
deleted file mode 100644
index 4e13aa4df..000000000
--- a/plugins/org.eclipse.emf.eef.cdo.runtime/schema/CDOLockStrategyProvider.exsd
+++ /dev/null
@@ -1,102 +0,0 @@
-
-
-
-
-
-
-
-
- Declare a EEF CDO Lock Strategy Provider
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- [Enter the first release in which this extension point appears.]
-
-
-
-
-
-
-
-
- [Enter extension point usage example here.]
-
-
-
-
-
-
-
-
- [Enter API information here.]
-
-
-
-
-
-
-
-
- [Enter information about supplied implementation of this extension point.]
-
-
-
-
-
diff --git a/plugins/org.eclipse.emf.eef.cdo.runtime/src/org/eclipse/emf/eef/cdo/runtime/EEFCDORuntimePlugin.java b/plugins/org.eclipse.emf.eef.cdo.runtime/src/org/eclipse/emf/eef/cdo/runtime/EEFCDORuntimePlugin.java
deleted file mode 100644
index c646735a6..000000000
--- a/plugins/org.eclipse.emf.eef.cdo.runtime/src/org/eclipse/emf/eef/cdo/runtime/EEFCDORuntimePlugin.java
+++ /dev/null
@@ -1,66 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2012 Obeo.
- * 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:
- * Obeo - initial API and implementation
- *******************************************************************************/
-
-package org.eclipse.emf.eef.cdo.runtime;
-
-import org.eclipse.ui.plugin.AbstractUIPlugin;
-import org.osgi.framework.BundleContext;
-
-/**
- * The activator class controls the plug-in life cycle
- *
- * @author Nathalie Lepine
- */
-public class EEFCDORuntimePlugin extends AbstractUIPlugin {
-
- // The plug-in ID
- public static final String PLUGIN_ID = "org.eclipse.emf.eef.cdo.runtime"; //$NON-NLS-1$
-
- // The shared instance
- private static EEFCDORuntimePlugin plugin;
-
- /**
- * The constructor
- */
- public EEFCDORuntimePlugin() {
- }
-
- /**
- * (non-Javadoc)
- *
- * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
- */
- public void start(BundleContext context) throws Exception {
- super.start(context);
- plugin = this;
- }
-
-
- /**
- * (non-Javadoc)
- *
- * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
- */
- public void stop(BundleContext context) throws Exception {
- plugin = null;
- super.stop(context);
- }
-
- /**
- * Returns the shared instance
- *
- * @return the shared instance
- */
- public static EEFCDORuntimePlugin getDefault() {
- return plugin;
- }
-
-}
diff --git a/plugins/org.eclipse.emf.eef.cdo.runtime/src/org/eclipse/emf/eef/cdo/runtime/policies/CDOReadOnlyPolicy.java b/plugins/org.eclipse.emf.eef.cdo.runtime/src/org/eclipse/emf/eef/cdo/runtime/policies/CDOReadOnlyPolicy.java
deleted file mode 100644
index 3b849e41e..000000000
--- a/plugins/org.eclipse.emf.eef.cdo.runtime/src/org/eclipse/emf/eef/cdo/runtime/policies/CDOReadOnlyPolicy.java
+++ /dev/null
@@ -1,43 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2012 Obeo.
- * 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:
- * Obeo - initial API and implementation
- *******************************************************************************/
-package org.eclipse.emf.eef.cdo.runtime.policies;
-
-import org.eclipse.emf.cdo.CDOObject;
-import org.eclipse.emf.cdo.eresource.CDOResource;
-import org.eclipse.emf.cdo.util.CDOUtil;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.eef.runtime.api.providers.IReadOnlyPolicy;
-
-/**
- * Read Only policy for CDO. If an element is locked -> the widget is read only.
- *
- * @author Nathalie Lepine
- *
- */
-public class CDOReadOnlyPolicy implements IReadOnlyPolicy {
-
-
- /** (non-Javadoc)
- * @see org.eclipse.emf.eef.runtime.api.providers.IReadOnlyPolicy#isReadOnly(org.eclipse.emf.ecore.EObject, java.lang.Object)
- */
- public boolean isReadOnly(EObject context, Object eStructuralFeature) {
- if (context != null && context.eResource() instanceof CDOResource) {
- CDOObject cdoObject = CDOUtil.getCDOObject(context);
- if (cdoObject != null
- && cdoObject.cdoWriteLock().isLockedByOthers()) {
- return true;
- }
- }
-
- return false;
- }
-
-}
diff --git a/plugins/org.eclipse.emf.eef.cdo.runtime/src/org/eclipse/emf/eef/cdo/runtime/policies/CDOWizardOpeningPolicy.java b/plugins/org.eclipse.emf.eef.cdo.runtime/src/org/eclipse/emf/eef/cdo/runtime/policies/CDOWizardOpeningPolicy.java
deleted file mode 100644
index 2fb866e60..000000000
--- a/plugins/org.eclipse.emf.eef.cdo.runtime/src/org/eclipse/emf/eef/cdo/runtime/policies/CDOWizardOpeningPolicy.java
+++ /dev/null
@@ -1,84 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2012 Obeo.
- * 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:
- * Obeo - initial API and implementation
- *******************************************************************************/
-package org.eclipse.emf.eef.cdo.runtime.policies;
-
-import org.eclipse.emf.cdo.CDOObject;
-import org.eclipse.emf.cdo.util.CDOUtil;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.change.ChangeDescription;
-import org.eclipse.emf.ecore.change.util.ChangeRecorder;
-import org.eclipse.emf.eef.runtime.context.PropertiesEditingContext;
-import org.eclipse.emf.eef.runtime.ui.utils.EditingUtils;
-import org.eclipse.emf.eef.runtime.ui.wizards.EEFWizardDialog;
-import org.eclipse.emf.eef.runtime.ui.wizards.PropertiesEditionWizard;
-import org.eclipse.emf.eef.runtime.ui.wizards.IWizardOpeningPolicy;
-import org.eclipse.jface.window.Window;
-
-/**
- * CDO policy for wizard opening : if object is locked, no opening.
- *
- * @author Nathalie Lepine
- *
- */
-public class CDOWizardOpeningPolicy implements IWizardOpeningPolicy {
-
- private ChangeDescription description;
-
- /**
- * (non-Javadoc)
- *
- * @see org.eclipse.emf.eef.runtime.ui.wizards.IWizardOpeningPolicy#openWizard(org.eclipse.emf.eef.runtime.context.PropertiesEditingContext,
- * org.eclipse.emf.eef.runtime.ui.wizards.PropertiesEditionWizard)
- */
- public boolean openWizard(PropertiesEditingContext editionContext,
- PropertiesEditionWizard wizard) {
- CDOReadOnlyPolicy cdoReadOnlyPolicy = new CDOReadOnlyPolicy();
- if (!cdoReadOnlyPolicy.isReadOnly(editionContext.getEObject(), null)) {
- EEFWizardDialog wDialog = new EEFWizardDialog(
- EditingUtils.getShell(), wizard);
- int open = wDialog.open();
- ChangeRecorder changeRecorder = editionContext.getChangeRecorder();
- if (changeRecorder != null) {
- description = changeRecorder.endRecording();
- } else {
- description = null;
- }
- if (open == Window.OK) {
- return true;
- } else {
- if (description != null) {
- description.applyAndReverse();
- }
- return false;
- }
- }
- return false;
- }
-
- /**
- * {@inheritDoc}
- * @see org.eclipse.emf.eef.runtime.ui.wizards.IWizardOpeningPolicy#getDescription()
- */
- public ChangeDescription getDescription() {
- return description;
- }
-
- /**
- * (non-Javadoc)
- *
- * @see org.eclipse.emf.eef.runtime.ui.wizards.IWizardOpeningPolicy#provide(org.eclipse.emf.ecore.EObject)
- */
- public boolean provide(EObject eObject) {
- CDOObject cdoObject = CDOUtil.getCDOObject(eObject);
- return cdoObject != null;
- }
-
-}
diff --git a/plugins/org.eclipse.emf.eef.cdo.runtime/src/org/eclipse/emf/eef/cdo/runtime/policies/EEFWizardLockPolicy.java b/plugins/org.eclipse.emf.eef.cdo.runtime/src/org/eclipse/emf/eef/cdo/runtime/policies/EEFWizardLockPolicy.java
deleted file mode 100644
index 10a36447e..000000000
--- a/plugins/org.eclipse.emf.eef.cdo.runtime/src/org/eclipse/emf/eef/cdo/runtime/policies/EEFWizardLockPolicy.java
+++ /dev/null
@@ -1,119 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2012 Obeo.
- * 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:
- * Obeo - initial API and implementation
- *******************************************************************************/
-package org.eclipse.emf.eef.cdo.runtime.policies;
-
-import java.util.List;
-
-import org.eclipse.emf.cdo.CDOObject;
-import org.eclipse.emf.cdo.eresource.CDOResource;
-import org.eclipse.emf.cdo.transaction.CDOTransaction;
-import org.eclipse.emf.cdo.util.CDOUtil;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.eef.cdo.runtime.provider.ICDOLockStrategyProvider;
-import org.eclipse.emf.eef.cdo.runtime.service.CDOLockStrategyProviderService;
-import org.eclipse.emf.eef.runtime.api.component.IPropertiesEditionComponent;
-import org.eclipse.emf.eef.runtime.impl.components.SinglePartPropertiesEditingComponent;
-import org.eclipse.emf.eef.runtime.impl.parts.CompositePropertiesEditionPart;
-import org.eclipse.emf.eef.runtime.policies.ILockPolicy;
-import org.eclipse.emf.eef.runtime.ui.widgets.settings.EEFEditorSettings;
-import org.eclipse.emf.eef.runtime.ui.widgets.settings.EEFEditorSettingsBuilder.EEFEditorSettingsImpl;
-import org.eclipse.emf.spi.cdo.FSMUtil;
-
-/**
- * Lock policy for EEF wizard : lock the semantic elements and its EEFEditorSettings for SmartModelNavigation.
- *
- * @author Nathalie Lepine
- *
- */
-public class EEFWizardLockPolicy implements ILockPolicy {
-
- /**
- * (non-Javadoc)
- *
- * @see org.eclipse.emf.eef.runtime.policies.ILockPolicy#lock(org.eclipse.emf.eef.runtime.api.component.IPropertiesEditionComponent)
- */
- public void lock(IPropertiesEditionComponent propertiesEditingComponent) {
- lock(propertiesEditingComponent.getEditingContext().getEObject());
- if (propertiesEditingComponent instanceof SinglePartPropertiesEditingComponent && ((SinglePartPropertiesEditingComponent) propertiesEditingComponent).getEditingPart() instanceof CompositePropertiesEditionPart) {
- lock(((CompositePropertiesEditionPart) ((SinglePartPropertiesEditingComponent) propertiesEditingComponent).getEditingPart()).getSettings());
- }
-
- }
-
- private void lock(List allSettings) {
- for (EEFEditorSettings eefEditorSettings : allSettings) {
- if (eefEditorSettings instanceof EEFEditorSettingsImpl) {
- EObject significantObject = ((EEFEditorSettingsImpl) eefEditorSettings)
- .getSignificantObject();
- if (significantObject != null) {
- lock(significantObject);
- }
- }
- }
- }
-
- private void lock(EObject eObject) {
- if (eObject != null && eObject.eResource() instanceof CDOResource) {
- CDOObject cdoObject = CDOUtil.getCDOObject(eObject);
- if (cdoObject != null && !FSMUtil.isTransient(cdoObject)) {
- if (!CDOLockStrategyProviderService.getInstance().getProviders()
- .isEmpty()) {
- for (ICDOLockStrategyProvider provider : CDOLockStrategyProviderService.getInstance().getProviders()) {
- provider.lock(cdoObject);
- }
- } else if (cdoObject.cdoWriteLock() != null) {
- cdoObject.cdoWriteLock().tryLock();
- }
- }
- }
- }
-
- private void unlock(List allSettings) {
- for (EEFEditorSettings eefEditorSettings : allSettings) {
- if (eefEditorSettings instanceof EEFEditorSettingsImpl) {
- EObject significantObject = ((EEFEditorSettingsImpl) eefEditorSettings)
- .getSignificantObject();
- if (significantObject != null) {
- unlock(significantObject);
- }
- }
- }
- }
-
- private void unlock(EObject eObject) {
- if (eObject != null && eObject.eResource() instanceof CDOResource) {
- CDOObject cdoObject = CDOUtil.getCDOObject(eObject);
- if (cdoObject != null && !FSMUtil.isTransient(cdoObject) && cdoObject.cdoView() instanceof CDOTransaction) {
- if (!CDOLockStrategyProviderService.getInstance().getProviders()
- .isEmpty()) {
- for (ICDOLockStrategyProvider provider : CDOLockStrategyProviderService.getInstance().getProviders()) {
- provider.release(cdoObject);
- }
- } else if (cdoObject.cdoWriteLock() != null) {
- cdoObject.cdoWriteLock().unlock();
- }
- }
- }
- }
-
- /**
- * (non-Javadoc)
- *
- * @see org.eclipse.emf.eef.runtime.policies.ILockPolicy#release(org.eclipse.emf.eef.runtime.api.component.IPropertiesEditionComponent)
- */
- public void release(IPropertiesEditionComponent propertiesEditingComponent) {
- unlock(propertiesEditingComponent.getEditingContext().getEObject());
- if (propertiesEditingComponent instanceof SinglePartPropertiesEditingComponent && ((SinglePartPropertiesEditingComponent) propertiesEditingComponent).getEditingPart() instanceof CompositePropertiesEditionPart) {
- unlock(((CompositePropertiesEditionPart) ((SinglePartPropertiesEditingComponent) propertiesEditingComponent).getEditingPart()).getSettings());
- }
- }
-
-}
\ No newline at end of file
diff --git a/plugins/org.eclipse.emf.eef.cdo.runtime/src/org/eclipse/emf/eef/cdo/runtime/provider/ICDOLockStrategyProvider.java b/plugins/org.eclipse.emf.eef.cdo.runtime/src/org/eclipse/emf/eef/cdo/runtime/provider/ICDOLockStrategyProvider.java
deleted file mode 100644
index 4bb17907b..000000000
--- a/plugins/org.eclipse.emf.eef.cdo.runtime/src/org/eclipse/emf/eef/cdo/runtime/provider/ICDOLockStrategyProvider.java
+++ /dev/null
@@ -1,57 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2012 Obeo.
- * 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:
- * Obeo - initial API and implementation
- *******************************************************************************/
-package org.eclipse.emf.eef.cdo.runtime.provider;
-
-import java.util.Collection;
-
-import org.eclipse.emf.ecore.EObject;
-
-/**
- * Provide a strategy for lock and unlock elements.
- *
- * @author Nathalie Lepine
- *
- */
-public interface ICDOLockStrategyProvider {
-
- /**
- * Lock an instance.
- *
- * @param instance
- * any instance.
- */
- void lock(EObject instance);
-
- /**
- * Unlocked an instance.
- *
- * @param instance
- * any instance.
- */
- void release(EObject instance);
-
- /**
- * Lock several instances.
- *
- * @param instances
- * locked instances.
- */
- void lock(Collection instances);
-
- /**
- * Unlock several instances..
- *
- * @param instances
- * unlocked instances.
- */
- void release(Collection instances);
-
-}
diff --git a/plugins/org.eclipse.emf.eef.cdo.runtime/src/org/eclipse/emf/eef/cdo/runtime/service/CDOLockStrategyProviderService.java b/plugins/org.eclipse.emf.eef.cdo.runtime/src/org/eclipse/emf/eef/cdo/runtime/service/CDOLockStrategyProviderService.java
deleted file mode 100644
index ad34684a1..000000000
--- a/plugins/org.eclipse.emf.eef.cdo.runtime/src/org/eclipse/emf/eef/cdo/runtime/service/CDOLockStrategyProviderService.java
+++ /dev/null
@@ -1,120 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2012 Obeo.
- * 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:
- * Obeo - initial API and implementation
- *******************************************************************************/
-package org.eclipse.emf.eef.cdo.runtime.service;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IConfigurationElement;
-import org.eclipse.core.runtime.IExtension;
-import org.eclipse.core.runtime.IExtensionPoint;
-import org.eclipse.core.runtime.Platform;
-import org.eclipse.emf.eef.cdo.runtime.EEFCDORuntimePlugin;
-import org.eclipse.emf.eef.cdo.runtime.provider.ICDOLockStrategyProvider;
-
-/**
- * Service that manage all the registered
- * {@link ICDOLockStrategyProvider}.
- *
- * @author Nathalie Lepine
- */
-public class CDOLockStrategyProviderService {
-
- /**
- * The extension name.
- */
- public static final String EXTENSION_NAME = "CDOLockStrategyProvider"; //$NON-NLS-1$
-
- /**
- * The extension's element name.
- */
- private static final String EXTENSION_ELEMENT_NAME = "CDOLockStrategyProvider"; //$NON-NLS-1$
-
- /**
- * The element's attribute name.
- */
- private static final String EXTENSION_ATTRIBUTE_NAME = "policyClass"; //$NON-NLS-1$
-
- /**
- * A singleton for the service.
- */
- private static CDOLockStrategyProviderService instance = new CDOLockStrategyProviderService();
-
- /**
- * The factory where the providers are registered.
- */
- private List cdoLockStrategyProviders;
-
- /**
- * Default constructor.
- */
- private CDOLockStrategyProviderService() {
- cdoLockStrategyProviders = new ArrayList();
- configureService();
- }
-
- /**
- * Singleton constructor.
- *
- * @return the Singleton instance
- */
- public static CDOLockStrategyProviderService getInstance() {
- return instance;
- }
-
- /**
- * @return all the registered policies
- */
- public List getProviders() {
- return cdoLockStrategyProviders;
- }
-
- /**
- * Register a listener.
- *
- * @param lockStrategy
- * ICDOLockStrategyProvider
- */
- public void register(ICDOLockStrategyProvider lockStrategy) {
- cdoLockStrategyProviders.add(lockStrategy);
- }
-
- /**
- * Load all the providers registered by extension point.
- */
- private void configureService() {
- IExtensionPoint extensionPoint = Platform.getExtensionRegistry()
- .getExtensionPoint(EEFCDORuntimePlugin.PLUGIN_ID,
- EXTENSION_NAME);
-
- IExtension[] extensions = extensionPoint.getExtensions();
- for (int extensionIndex = 0; extensionIndex < extensions.length; extensionIndex++) {
- IExtension extension = extensions[extensionIndex];
- IConfigurationElement[] configurationElements = extension
- .getConfigurationElements();
- for (int i = 0; i < configurationElements.length; i++) {
- IConfigurationElement cfg = configurationElements[i];
-
- if (EXTENSION_ELEMENT_NAME.equals(cfg.getName())) {
- try {
- register((ICDOLockStrategyProvider) cfg
- .createExecutableExtension(EXTENSION_ATTRIBUTE_NAME));
- } catch (CoreException e) {
- e.printStackTrace();
- }
- }
- }
- }
-
- }
-
-}
diff --git a/plugins/org.eclipse.emf.eef.codegen.ecore/.classpath b/plugins/org.eclipse.emf.eef.codegen.ecore/.classpath
deleted file mode 100644
index ed5ee00d9..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.ecore/.classpath
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
-
-
-
-
-
-
diff --git a/plugins/org.eclipse.emf.eef.codegen.ecore/.gitignore b/plugins/org.eclipse.emf.eef.codegen.ecore/.gitignore
deleted file mode 100644
index 011f45878..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.ecore/.gitignore
+++ /dev/null
@@ -1,2 +0,0 @@
-target
-bin
\ No newline at end of file
diff --git a/plugins/org.eclipse.emf.eef.codegen.ecore/.project b/plugins/org.eclipse.emf.eef.codegen.ecore/.project
deleted file mode 100644
index ab17f2a89..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.ecore/.project
+++ /dev/null
@@ -1,48 +0,0 @@
-
-
- org.eclipse.emf.eef.codegen.ecore
-
-
-
-
-
- org.eclipse.jdt.core.javabuilder
-
-
-
-
- org.eclipse.pde.ManifestBuilder
-
-
-
-
- org.eclipse.pde.SchemaBuilder
-
-
-
-
- org.eclipse.acceleo.ide.ui.acceleoBuilder
-
-
- compliance
- pragmatic
-
-
- resource.kind
- binary
-
-
-
-
- org.eclipse.pde.api.tools.apiAnalysisBuilder
-
-
-
-
-
- org.eclipse.acceleo.ide.ui.acceleoNature
- org.eclipse.pde.PluginNature
- org.eclipse.jdt.core.javanature
- org.eclipse.pde.api.tools.apiAnalysisNature
-
-
diff --git a/plugins/org.eclipse.emf.eef.codegen.ecore/.settings/org.eclipse.jdt.core.prefs b/plugins/org.eclipse.emf.eef.codegen.ecore/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index d1c0bf949..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.ecore/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,6 +0,0 @@
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
-org.eclipse.jdt.core.compiler.compliance=1.5
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.source=1.5
diff --git a/plugins/org.eclipse.emf.eef.codegen.ecore/META-INF/MANIFEST.MF b/plugins/org.eclipse.emf.eef.codegen.ecore/META-INF/MANIFEST.MF
deleted file mode 100644
index bf3b3840d..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.ecore/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,27 +0,0 @@
-Manifest-Version: 1.0
-Bundle-ManifestVersion: 2
-Bundle-Name: Acceleo Ecore Module Runtime Plug-in
-Bundle-SymbolicName: org.eclipse.emf.eef.codegen.ecore;singleton:=true
-Bundle-Version: 1.5.2.qualifier
-Bundle-Activator: org.eclipse.emf.eef.codegen.ecore.EMFCodegenPlugin
-Bundle-Vendor: Eclipse Modeling Project
-Require-Bundle: org.eclipse.core.runtime;bundle-version="3.4.0",
- org.eclipse.emf.codegen;bundle-version="2.4.0",
- org.eclipse.emf.codegen.ecore;bundle-version="2.4.0",
- org.eclipse.emf.ecore;bundle-version="2.4.0",
- org.eclipse.emf.ecore.xmi;bundle-version="2.4.0",
- org.eclipse.ocl;bundle-version="1.2.0",
- org.eclipse.ocl.ecore;bundle-version="1.2.0",
- org.eclipse.acceleo.model;bundle-version="3.1.0",
- org.eclipse.acceleo.engine;bundle-version="3.1.0",
- org.eclipse.core.resources;bundle-version="3.4.0",
- org.eclipse.ui;bundle-version="3.4.0",
- org.eclipse.ui.ide;bundle-version="3.4.0",
- org.eclipse.acceleo.parser;bundle-version="3.1.0";resolution:=optional,
- org.eclipse.emf.eef.codegen.launcher;bundle-version="1.1.0"
-Bundle-RequiredExecutionEnvironment: J2SE-1.5
-Bundle-ActivationPolicy: lazy
-Eclipse-LazyStart: true
-Export-Package: org.eclipse.emf.eef.codegen.ecore.main,
- org.eclipse.emf.eef.codegen.ecore.services,
- org.eclipse.emf.eef.codegen.ecore.services.wrappers
diff --git a/plugins/org.eclipse.emf.eef.codegen.ecore/about.html b/plugins/org.eclipse.emf.eef.codegen.ecore/about.html
deleted file mode 100644
index f3a55ce5f..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.ecore/about.html
+++ /dev/null
@@ -1,28 +0,0 @@
-
-
-
-
-About
-
-
-
About This Content
-
-
June 15, 2010
-
License
-
-
The Eclipse Foundation makes available all content in this plug-in ("Content"). Unless otherwise
-indicated below, the Content is provided to you under the terms and conditions of the
-Eclipse Public License Version 1.0 ("EPL"). A copy of the EPL is available
-at http://www.eclipse.org/legal/epl-v10.html.
-For purposes of the EPL, "Program" will mean the Content.
-
-
If you did not receive this Content directly from the Eclipse Foundation, the Content is
-being redistributed by another party ("Redistributor") and different terms and conditions may
-apply to your use of any object code in the Content. Check the Redistributor's license that was
-provided with the Content. If no such license exists, contact the Redistributor. Unless otherwise
-indicated below, the terms and conditions of the EPL still apply to any source code in the Content
-and such source code may be obtained at http://www.eclipse.org.
-
-
-
\ No newline at end of file
diff --git a/plugins/org.eclipse.emf.eef.codegen.ecore/build.acceleo b/plugins/org.eclipse.emf.eef.codegen.ecore/build.acceleo
deleted file mode 100644
index 3c0291aa9..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.ecore/build.acceleo
+++ /dev/null
@@ -1,26 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/plugins/org.eclipse.emf.eef.codegen.ecore/build.properties b/plugins/org.eclipse.emf.eef.codegen.ecore/build.properties
deleted file mode 100644
index 8e1f0b0d0..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.ecore/build.properties
+++ /dev/null
@@ -1,25 +0,0 @@
-###############################################################################
-# Copyright (c) 2008, 2012 Obeo.
-# 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:
-# Obeo - initial API and implementation
-###############################################################################
-source.. = src/,\
- src-custom/,\
- src-build/
-output.. = bin/
-bin.includes = META-INF/,\
- .,\
- plugin.xml,\
- build.acceleo,\
- about.html,\
- templates/edit/CreateChild.gif,\
- templates/edit/Item.gif,\
- templates/editor/ModelFile.gif,\
- templates/editor/NewModel.gif
-customBuildCallbacks = build.acceleo
-src.includes = about.html
diff --git a/plugins/org.eclipse.emf.eef.codegen.ecore/plugin.xml b/plugins/org.eclipse.emf.eef.codegen.ecore/plugin.xml
deleted file mode 100644
index f2e9f15d6..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.ecore/plugin.xml
+++ /dev/null
@@ -1,48 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/plugins/org.eclipse.emf.eef.codegen.ecore/pom.xml b/plugins/org.eclipse.emf.eef.codegen.ecore/pom.xml
deleted file mode 100644
index ac0026328..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.ecore/pom.xml
+++ /dev/null
@@ -1,55 +0,0 @@
-
-
-
- 4.0.0
-
-
- org.eclipse.emf
- org.eclipse.emf.eef.releng.parent
- ../../releng/org.eclipse.emf.eef.releng.parent
- 1.5.2-SNAPSHOT
-
-
- org.eclipse.emf
- org.eclipse.emf.eef.codegen.ecore
- 1.5.2-SNAPSHOT
- eclipse-plugin
-
- EEF Ecore Codegen Plug-in
-
-
-
-
- org.codehaus.mojo
- exec-maven-plugin
- 1.1.1
-
-
- compile
-
- java
-
-
- org.eclipse.emf.eef.codegen.ecore.EEFCodegenEcoreCompiler
-
- ${basedir}/src/
- ${basedir}/target/classes
- true
-
-
-
-
-
-
-
-
diff --git a/plugins/org.eclipse.emf.eef.codegen.ecore/src-build/org/eclipse/emf/eef/codegen/ecore/EEFCodegenEcoreCompiler.java b/plugins/org.eclipse.emf.eef.codegen.ecore/src-build/org/eclipse/emf/eef/codegen/ecore/EEFCodegenEcoreCompiler.java
deleted file mode 100644
index cdf9d2ae7..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.ecore/src-build/org/eclipse/emf/eef/codegen/ecore/EEFCodegenEcoreCompiler.java
+++ /dev/null
@@ -1,148 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008, 2012 Obeo.
- * 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:
- * Obeo - initial API and implementation
- *******************************************************************************/
-package org.eclipse.emf.eef.codegen.ecore;
-
-import java.io.File;
-import java.util.ArrayList;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Map;
-
-import org.eclipse.acceleo.common.IAcceleoConstants;
-import org.eclipse.acceleo.parser.compiler.AbstractAcceleoCompiler;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.emf.common.util.BasicMonitor;
-import org.eclipse.emf.common.util.Monitor;
-import org.eclipse.emf.common.util.URI;
-
-/**
- * The Acceleo Stand Alone compiler.
- *
- * @author Stephane Begaudeau
- * @since 3.1
- */
-public class EEFCodegenEcoreCompiler extends AbstractAcceleoCompiler {
-
- /**
- * The entry point of the compilation.
- *
- * @param args
- * The arguments used in the compilation: the source folder, the output folder, a boolean
- * indicating if we should use binary resource serialization and finally the dependencies of
- * the project.
- */
- public static void main(String[] args) {
- if (args.length < 3) {
- throw new IllegalArgumentException("Missing parameters"); //$NON-NLS-1$
- }
- EEFCodegenEcoreCompiler acceleoCompiler = new EEFCodegenEcoreCompiler();
- acceleoCompiler.setSourceFolder(args[0]);
- acceleoCompiler.setOutputFolder(args[1]);
- acceleoCompiler.setBinaryResource(Boolean.valueOf(args[2]).booleanValue());
- if (args.length == 4 && args[3] != null && !"".equals(args[3])) { //$NON-NLS-1$
- acceleoCompiler.setDependencies(args[3]);
- }
- acceleoCompiler.doCompile(new BasicMonitor());
- }
-
- /**
- * Launches the compilation of the mtl files in the generator.
- *
- * @see org.eclipse.acceleo.parser.compiler.AbstractAcceleoCompiler#doCompile(org.eclipse.emf.common.util.Monitor)
- */
- @Override
- public void doCompile(Monitor monitor) {
- super.doCompile(monitor);
- }
-
- /**
- * Registers the packages of the metamodels used in the generator.
- *
- * @see org.eclipse.acceleo.parser.compiler.AbstractAcceleoCompiler#registerPackages()
- */
- @Override
- protected void registerPackages() {
- super.registerPackages();
- org.eclipse.emf.ecore.EPackage.Registry.INSTANCE.put(
- org.eclipse.emf.ecore.EcorePackage.eINSTANCE.getNsURI(),
- org.eclipse.emf.ecore.EcorePackage.eINSTANCE);
- org.eclipse.emf.ecore.EPackage.Registry.INSTANCE.put(
- org.eclipse.emf.codegen.ecore.genmodel.GenModelPackage.eINSTANCE.getNsURI(),
- org.eclipse.emf.codegen.ecore.genmodel.GenModelPackage.eINSTANCE);
- }
-
- /**
- * Registers the resource factories.
- *
- * @see org.eclipse.acceleo.parser.compiler.AbstractAcceleoCompiler#registerResourceFactories()
- */
- @Override
- protected void registerResourceFactories() {
- super.registerResourceFactories();
- /*
- * If you want to add other resource factories, for example if your metamodel uses a specific
- * serialization:
- * org.eclipse.emf.ecore.resource.Resource.Factory.Registry.getExtensionToFactoryMap().put
- * (UMLResource.FILE_EXTENSION, UMLResource.Factory.INSTANCE);
- */
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.acceleo.parser.compiler.AbstractAcceleoCompiler#computeDependencies(java.util.List,
- * java.util.Map)
- */
- protected void computeDependencies(List dependenciesURIs, Map mapURIs) {
- // USED TO FIX COMPILER WITH TYCHO
- Iterator identifiersIt = dependenciesIDs.iterator();
- for (Iterator dependenciesIt = dependencies.iterator(); dependenciesIt.hasNext()
- && identifiersIt.hasNext();) {
- File requiredFolder = dependenciesIt.next();
- String identifier = identifiersIt.next();
- if (requiredFolder != null && requiredFolder.exists() && requiredFolder.isDirectory()) {
- List emtlFiles = new ArrayList();
- members(emtlFiles, requiredFolder, IAcceleoConstants.EMTL_FILE_EXTENSION);
- for (File emtlFile : emtlFiles) {
- String requiredFolderAbsolutePath = requiredFolder.getAbsolutePath();
- if (requiredFolderAbsolutePath.endsWith("target/classes")) {
- // using tycho
- String[] splited = requiredFolderAbsolutePath.split("\\/");
- StringBuffer buf = new StringBuffer(requiredFolderAbsolutePath.length());
- for (int i = 0; i < splited.length - 3; i++) {
- buf.append(splited[i]);
- buf.append("/");
- }
- requiredFolderAbsolutePath = buf.toString();
- String emtlAbsolutePath = emtlFile.getAbsolutePath();
- URI emtlFileURI = URI.createFileURI(emtlAbsolutePath);
- dependenciesURIs.add(emtlFileURI);
- String emtlModifiedPath = emtlAbsolutePath.replaceAll("target\\/|classes\\/", "");
- IPath relativePath = new Path(emtlModifiedPath.substring(requiredFolderAbsolutePath
- .length()));
- URI relativeURI = URI.createPlatformPluginURI(relativePath.toString(), false);
- mapURIs.put(emtlFileURI, relativeURI);
- } else {
- // normal behavior
- String emtlAbsolutePath = emtlFile.getAbsolutePath();
- URI emtlFileURI = URI.createFileURI(emtlAbsolutePath);
- dependenciesURIs.add(emtlFileURI);
- IPath relativePath = new Path(identifier).append(emtlAbsolutePath
- .substring(requiredFolderAbsolutePath.length()));
- mapURIs.put(emtlFileURI, URI.createPlatformPluginURI(relativePath.toString(), false));
- }
- }
- }
- }
- }
-}
-
diff --git a/plugins/org.eclipse.emf.eef.codegen.ecore/src-custom/org/eclipse/emf/eef/codegen/ecore/EMFCodegenPlugin.java b/plugins/org.eclipse.emf.eef.codegen.ecore/src-custom/org/eclipse/emf/eef/codegen/ecore/EMFCodegenPlugin.java
deleted file mode 100644
index e55c28a95..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.ecore/src-custom/org/eclipse/emf/eef/codegen/ecore/EMFCodegenPlugin.java
+++ /dev/null
@@ -1,105 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008, 2012 Obeo.
- * 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:
- * Obeo - initial API and implementation
- *******************************************************************************/
-package org.eclipse.emf.eef.codegen.ecore;
-
-import java.io.File;
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.io.OutputStream;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.ui.plugin.AbstractUIPlugin;
-import org.osgi.framework.BundleContext;
-
-/**
- * The activator class controls the plug-in life cycle.
- *
- * @author Stephane Bouchet
- */
-public class EMFCodegenPlugin extends AbstractUIPlugin {
-
- /**
- * The plug-in ID.
- */
- public static final String PLUGIN_ID = "org.eclipse.emf.eef.codegen.ecore";
-
- /**
- * The shared instance.
- */
- private static EMFCodegenPlugin plugin;
-
- /**
- * The constructor.
- */
- public EMFCodegenPlugin() {
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.core.runtime.Plugin#start(org.osgi.framework.BundleContext)
- */
- public void start(BundleContext context) throws Exception {
- super.start(context);
- plugin = this;
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.core.runtime.Plugin#stop(org.osgi.framework.BundleContext)
- */
- public void stop(BundleContext context) throws Exception {
- plugin = null;
- super.stop(context);
- }
-
- /**
- * Returns the shared instance.
- *
- * @return the shared instance
- */
- public static EMFCodegenPlugin getDefault() {
- return plugin;
- }
-
- public void logError(Exception e) {
- IStatus status = new Status(IStatus.ERROR, PLUGIN_ID, e.getMessage(), e);
- getLog().log(status);
- }
-
- public void logWarning(Exception e) {
- IStatus status = new Status(IStatus.WARNING, PLUGIN_ID, e.getMessage(), e);
- getLog().log(status);
- }
-
- public void createGIF(byte[] result, Path itemIconFilePath) {
- OutputStream outputStream;
- try {
- IFile file = ResourcesPlugin.getWorkspace().getRoot().getFile(itemIconFilePath);
- File f = new File(file.getLocation().toString());
- if (!f.exists()) {
- f.getParentFile().mkdirs();
- f.createNewFile();
-
- outputStream = new FileOutputStream(f);
- outputStream.write(result);
- outputStream.close();
- }
- } catch (IOException e) {
- EMFCodegenPlugin.getDefault().logError(e);
- }
- }
-}
diff --git a/plugins/org.eclipse.emf.eef.codegen.ecore/src-custom/org/eclipse/emf/eef/codegen/ecore/ui/launcher/GenerateEMFCodeAction.java b/plugins/org.eclipse.emf.eef.codegen.ecore/src-custom/org/eclipse/emf/eef/codegen/ecore/ui/launcher/GenerateEMFCodeAction.java
deleted file mode 100644
index 31bfa6915..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.ecore/src-custom/org/eclipse/emf/eef/codegen/ecore/ui/launcher/GenerateEMFCodeAction.java
+++ /dev/null
@@ -1,107 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008, 2012 Obeo.
- * 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:
- * Obeo - initial API and implementation
- *******************************************************************************/
-package org.eclipse.emf.eef.codegen.ecore.ui.launcher;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.resources.IWorkspace;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.core.runtime.jobs.Job;
-import org.eclipse.emf.codegen.ecore.genmodel.GenModel;
-import org.eclipse.emf.eef.codegen.flow.Workflow;
-import org.eclipse.jface.action.IAction;
-import org.eclipse.jface.viewers.ISelection;
-import org.eclipse.jface.viewers.StructuredSelection;
-import org.eclipse.swt.widgets.Shell;
-import org.eclipse.ui.IActionDelegate;
-import org.eclipse.ui.IObjectActionDelegate;
-import org.eclipse.ui.IWorkbenchPart;
-
-/**
- * @author Stephane Bouchet
- */
-public abstract class GenerateEMFCodeAction implements IObjectActionDelegate {
-
- protected Shell shell;
-
- protected List emfGenModels;
-
- protected IWorkspace workspace = ResourcesPlugin.getWorkspace();
-
- public GenerateEMFCodeAction() {
- emfGenModels = new ArrayList();
- }
-
- /**
- * @see IObjectActionDelegate#setActivePart(IAction, IWorkbenchPart)
- */
- public void setActivePart(IAction action, IWorkbenchPart targetPart) {
- shell = targetPart.getSite().getShell();
- }
-
- /**
- * @see IActionDelegate#run(IAction)
- */
- public void run(IAction action) {
- if (emfGenModels != null) {
- final Workflow flow = initEMFGenFlow();
- flow.prepare();
- Job job = new Job("EEF architecture generation") {
- @Override
- protected IStatus run(IProgressMonitor monitor) {
- flow.execute(monitor);
- monitor.done();
- return Status.OK_STATUS;
- }
-
- };
- job.setUser(true);
- job.schedule();
- }
- }
-
- /**
- * @return the flow to execute in order to generate EMF code.
- */
- protected abstract Workflow initEMFGenFlow();
-
- /**
- * @see IActionDelegate#selectionChanged(IAction, ISelection)
- */
- public void selectionChanged(IAction action, ISelection selection) {
- emfGenModels.clear();
- if (selection instanceof StructuredSelection) {
- StructuredSelection sSelection = (StructuredSelection)selection;
- for (Object selectedElement : sSelection.toList()) {
- if (selectedElement instanceof GenModel) {
- emfGenModels.add((GenModel)selectedElement);
- }
- }
-
- }
- }
-
- protected IProject extractProject(String sPath) {
- IPath path = new Path(sPath);
- if (path.isEmpty()) {
- return null;
- }
- return workspace.getRoot().getProject(path.segment(0));
- }
-
-}
diff --git a/plugins/org.eclipse.emf.eef.codegen.ecore/src-custom/org/eclipse/emf/eef/codegen/ecore/ui/launcher/GenerateEMFEditCodeAction.java b/plugins/org.eclipse.emf.eef.codegen.ecore/src-custom/org/eclipse/emf/eef/codegen/ecore/ui/launcher/GenerateEMFEditCodeAction.java
deleted file mode 100644
index 730384341..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.ecore/src-custom/org/eclipse/emf/eef/codegen/ecore/ui/launcher/GenerateEMFEditCodeAction.java
+++ /dev/null
@@ -1,160 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008, 2012 Obeo.
- * 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:
- * Obeo - initial API and implementation
- *******************************************************************************/
-package org.eclipse.emf.eef.codegen.ecore.ui.launcher;
-
-import java.io.File;
-import java.io.IOException;
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.resources.IResource;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.core.runtime.SubProgressMonitor;
-import org.eclipse.emf.codegen.ecore.Generator;
-import org.eclipse.emf.codegen.ecore.genmodel.GenModel;
-import org.eclipse.emf.codegen.ecore.genmodel.generator.GenBaseGeneratorAdapter;
-import org.eclipse.emf.common.util.BasicMonitor;
-import org.eclipse.emf.common.util.UniqueEList;
-import org.eclipse.emf.eef.codegen.ecore.EMFCodegenPlugin;
-import org.eclipse.emf.eef.codegen.ecore.main.GenEdit;
-import org.eclipse.emf.eef.codegen.ecore.util.EEFGeneratorAdapter;
-import org.eclipse.emf.eef.codegen.flow.Step;
-import org.eclipse.emf.eef.codegen.flow.Workflow;
-
-/**
- * @author Goulwen Le Fur
- */
-public class GenerateEMFEditCodeAction extends GenerateEMFCodeAction {
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.emf.eef.codegen.ecore.ui.launcher.GenerateEMFCodeAction#initEMFGenFlow()
- */
- protected Workflow initEMFGenFlow() {
- final Workflow flow = new Workflow("Generate EMF edit code ", shell);
- for (final GenModel emfGenModel : emfGenModels) {
- String s1 = "Generate EMF Edit code for " + emfGenModel.eResource().getURI().lastSegment();
- // use this once we can add acceleo inside emf generator
- // Step emfEditCode = new GenerateEMFEditCode(s,
- // emfGenModel);
- // flow.addStep(s, emfEditCode);
- flow.addStep(s1, new Step("EMF EDIT") {
-
- @Override
- public IStatus execute(IProgressMonitor monitor) {
- // create the edit project
- IProject editProject = extractProject(emfGenModel.getEditProjectDirectory());
- if (editProject == null) {
- return Status.OK_STATUS;
- }
- IProject modelProject = workspace.getRoot().getProject(
- emfGenModel.getModelProjectDirectory());
- List referencedProjects = new UniqueEList();
- referencedProjects.add(modelProject);
- if (!workspace.getRoot().exists(editProject.getFullPath())) {
- editProject = Generator.createEMFProject(new Path(emfGenModel.getEditDirectory()), null,
- referencedProjects,
- new SubProgressMonitor(monitor, IProgressMonitor.UNKNOWN),
- Generator.EMF_EDIT_PROJECT_STYLE | Generator.EMF_PLUGIN_PROJECT_STYLE);
- } else if (!editProject.isAccessible()) {
- try {
- editProject.open(monitor);
- } catch (CoreException e) {
- return new Status(IStatus.ERROR, EMFCodegenPlugin.PLUGIN_ID, e.getMessage(), e);
- }
- }
- // generate using acceleo
- List args = new ArrayList();
- File editDirectory = editProject.getLocation().toFile();
- try {
- GenEdit generator = new GenEdit(emfGenModel, editDirectory, args);
- generator.doGenerate(BasicMonitor.toMonitor(new SubProgressMonitor(monitor,
- IProgressMonitor.UNKNOWN)));
- } catch (IOException e) {
- return new Status(IStatus.ERROR, EMFCodegenPlugin.PLUGIN_ID, e.getMessage(), e);
- }
- return Status.OK_STATUS;
- }
- });
-
- if (emfGenModel.isCodeFormatting()) {
- // TODO Ne rafraichir avant le formatage que si le folder demand� n'est pas accessible
- // FIXME IMPORTANT !!! Virer le double refresh, fait � l'arrache par LDE qui sait pas comment faire autrement
- // TODO D�terminer pourquoi il reste des diff�rences de formatage avec EMF
- // TODO D�terminer pourquoi quand on fait clic-droit -> Source -> format sur le code g�n�r�, le code est modifi�
- // (cas o� le projet vient d'�tre cr�� par exemple)
- String s1b = "Refreshing workspace " + emfGenModel.eResource().getURI().toString();
- flow.addStep(s1b, new Step("REFRESH") {
-
- @Override
- public IStatus execute(IProgressMonitor monitor) {
- // refresh edit project
- IProject modelProject = extractProject(emfGenModel.getEditProjectDirectory());
- if (modelProject == null) {
- return Status.OK_STATUS;
- }
- try {
- if (!modelProject.isOpen()) {
- modelProject.open(monitor);
- }
- modelProject.refreshLocal(IResource.DEPTH_INFINITE, monitor);
- } catch (CoreException e) {
- return new Status(IStatus.ERROR, EMFCodegenPlugin.PLUGIN_ID, e.getMessage(), e);
- }
- return Status.OK_STATUS;
- }
- });
-
- String s2prime = "Formatting generated files";
- flow.addStep(s2prime, new Step(s2prime) {
-
- @Override
- public IStatus execute(IProgressMonitor monitor) {
- EEFGeneratorAdapter eefGen = new EEFGeneratorAdapter();
- eefGen.generate(emfGenModel, GenBaseGeneratorAdapter.EDIT_PROJECT_TYPE,
- BasicMonitor.toMonitor(new SubProgressMonitor(monitor, IProgressMonitor.UNKNOWN)));
- return Status.OK_STATUS;
- }
- });
- }
-
- String s3 = "Refresh workspace " + emfGenModel.eResource().getURI().toString();
- flow.addStep(s3, new Step("REFRESH") {
-
- @Override
- public IStatus execute(IProgressMonitor monitor) {
- // refresh edit
- IProject editProject = extractProject(emfGenModel.getEditProjectDirectory());
- if (editProject == null) {
- return Status.OK_STATUS;
- }
- try {
- if (!editProject.isOpen()) {
- editProject.open(monitor);
- }
- editProject.refreshLocal(IResource.DEPTH_INFINITE, monitor);
- } catch (CoreException e) {
- return new Status(IStatus.ERROR, EMFCodegenPlugin.PLUGIN_ID, e.getMessage(), e);
- }
- return Status.OK_STATUS;
- }
- });
- }
- return flow;
- }
-
-}
diff --git a/plugins/org.eclipse.emf.eef.codegen.ecore/src-custom/org/eclipse/emf/eef/codegen/ecore/ui/launcher/GenerateEMFEditorCodeAction.java b/plugins/org.eclipse.emf.eef.codegen.ecore/src-custom/org/eclipse/emf/eef/codegen/ecore/ui/launcher/GenerateEMFEditorCodeAction.java
deleted file mode 100644
index adc61392f..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.ecore/src-custom/org/eclipse/emf/eef/codegen/ecore/ui/launcher/GenerateEMFEditorCodeAction.java
+++ /dev/null
@@ -1,159 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008, 2012 Obeo.
- * 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:
- * Obeo - initial API and implementation
- *******************************************************************************/
-package org.eclipse.emf.eef.codegen.ecore.ui.launcher;
-
-import java.io.File;
-import java.io.IOException;
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.resources.IResource;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.core.runtime.SubProgressMonitor;
-import org.eclipse.emf.codegen.ecore.Generator;
-import org.eclipse.emf.codegen.ecore.genmodel.GenModel;
-import org.eclipse.emf.codegen.ecore.genmodel.generator.GenBaseGeneratorAdapter;
-import org.eclipse.emf.common.util.BasicMonitor;
-import org.eclipse.emf.common.util.UniqueEList;
-import org.eclipse.emf.eef.codegen.ecore.EMFCodegenPlugin;
-import org.eclipse.emf.eef.codegen.ecore.main.GenEditor;
-import org.eclipse.emf.eef.codegen.ecore.util.EEFGeneratorAdapter;
-import org.eclipse.emf.eef.codegen.flow.Step;
-import org.eclipse.emf.eef.codegen.flow.Workflow;
-
-/**
- * @author Goulwen Le Fur
- */
-public class GenerateEMFEditorCodeAction extends GenerateEMFCodeAction {
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.emf.eef.codegen.ecore.ui.launcher.GenerateEMFCodeAction#initEMFGenFlow()
- */
- protected Workflow initEMFGenFlow() {
- final Workflow flow = new Workflow("Generate EMF editor code ", shell);
- for (final GenModel emfGenModel : emfGenModels) {
- String s2 = "Generate EMF Editor code for " + emfGenModel.eResource().getURI().toString();
- flow.addStep(s2, new Step("EMF EDITOR") {
-
- @Override
- public IStatus execute(IProgressMonitor monitor) {
- // create the editor project
- IProject editorProject = extractProject(emfGenModel.getEditorProjectDirectory());
- if (editorProject == null) {
- return Status.OK_STATUS;
- }
- List referencedProjects = new UniqueEList();
- IProject modelProject = workspace.getRoot().getProject(
- emfGenModel.getModelProjectDirectory());
- IProject editProject = workspace.getRoot().getProject(
- emfGenModel.getEditProjectDirectory());
- referencedProjects.add(modelProject);
- referencedProjects.add(editProject);
- if (!workspace.getRoot().exists(editorProject.getFullPath())) {
- editorProject = Generator.createEMFProject(new Path(emfGenModel.getEditorDirectory()), editorProject
- .getLocation(), referencedProjects, new SubProgressMonitor(monitor,
- IProgressMonitor.UNKNOWN), Generator.EMF_EDITOR_PROJECT_STYLE
- | Generator.EMF_PLUGIN_PROJECT_STYLE);
- } else if (!editorProject.isAccessible()) {
- try {
- editorProject.open(monitor);
- } catch (CoreException e) {
- return new Status(IStatus.ERROR, EMFCodegenPlugin.PLUGIN_ID, e.getMessage(), e);
- }
- }
- // generate using acceleo
- List args = new ArrayList();
- File editorDirectory = editorProject.getLocation().toFile();
- try {
- GenEditor generator = new GenEditor(emfGenModel, editorDirectory, args);
- generator.doGenerate(BasicMonitor.toMonitor(new SubProgressMonitor(monitor,
- IProgressMonitor.UNKNOWN)));
- } catch (IOException e) {
- return new Status(IStatus.ERROR, EMFCodegenPlugin.PLUGIN_ID, e.getMessage(), e);
- }
- return Status.OK_STATUS;
- }
- });
-
- if (emfGenModel.isCodeFormatting()) {
- // TODO Ne rafraichir avant le formatage que si le folder demand� n'est pas accessible
- // FIXME IMPORTANT !!! Virer le double refresh, fait � l'arrache par LDE qui sait pas comment faire autrement
- // TODO D�terminer pourquoi il reste des diff�rences de formatage avec EMF
- // TODO D�terminer pourquoi quand on fait clic-droit -> Source -> format sur le code g�n�r�, le code est modifi�
- // (cas o� le projet vient d'�tre cr�� par exemple)
- String s1b = "Refreshing workspace " + emfGenModel.eResource().getURI().toString();
- flow.addStep(s1b, new Step("REFRESH") {
-
- @Override
- public IStatus execute(IProgressMonitor monitor) {
- // refresh editor project
- IProject modelProject = extractProject(emfGenModel.getEditorProjectDirectory());
- if (modelProject == null) {
- return Status.OK_STATUS;
- }
- try {
- if (!modelProject.isOpen()) {
- modelProject.open(monitor);
- }
- modelProject.refreshLocal(IResource.DEPTH_INFINITE, monitor);
- } catch (CoreException e) {
- return new Status(IStatus.ERROR, EMFCodegenPlugin.PLUGIN_ID, e.getMessage(), e);
- }
- return Status.OK_STATUS;
- }
- });
-
- String s2prime = "Formatting generated files";
- flow.addStep(s2prime, new Step(s2prime) {
-
- @Override
- public IStatus execute(IProgressMonitor monitor) {
- EEFGeneratorAdapter eefGen = new EEFGeneratorAdapter();
- eefGen.generate(emfGenModel, GenBaseGeneratorAdapter.EDITOR_PROJECT_TYPE,
- BasicMonitor.toMonitor(new SubProgressMonitor(monitor, IProgressMonitor.UNKNOWN)));
- return Status.OK_STATUS;
- }
- });
- }
-
- String s3 = "Refresh workspace " + emfGenModel.eResource().getURI().toString();
- flow.addStep(s3, new Step("REFRESH") {
-
- @Override
- public IStatus execute(IProgressMonitor monitor) {
- // refresh editor
- IProject editorProject = extractProject(emfGenModel.getEditorProjectDirectory());
- if (editorProject == null) {
- return Status.OK_STATUS;
- }
- try {
- if (!editorProject.isOpen()) {
- editorProject.open(monitor);
- }
- editorProject.refreshLocal(IResource.DEPTH_INFINITE, monitor);
- } catch (CoreException e) {
- return new Status(IStatus.ERROR, EMFCodegenPlugin.PLUGIN_ID, e.getMessage(), e);
- }
- return Status.OK_STATUS;
- }
- });
- }
- return flow;
- }
-
-}
diff --git a/plugins/org.eclipse.emf.eef.codegen.ecore/src-custom/org/eclipse/emf/eef/codegen/ecore/ui/launcher/GenerateEMFModelCodeAction.java b/plugins/org.eclipse.emf.eef.codegen.ecore/src-custom/org/eclipse/emf/eef/codegen/ecore/ui/launcher/GenerateEMFModelCodeAction.java
deleted file mode 100644
index 1db5056f0..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.ecore/src-custom/org/eclipse/emf/eef/codegen/ecore/ui/launcher/GenerateEMFModelCodeAction.java
+++ /dev/null
@@ -1,153 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008, 2012 Obeo.
- * 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:
- * Obeo - initial API and implementation
- *******************************************************************************/
-package org.eclipse.emf.eef.codegen.ecore.ui.launcher;
-
-import java.io.File;
-import java.io.IOException;
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.resources.IResource;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.core.runtime.SubProgressMonitor;
-import org.eclipse.emf.codegen.ecore.Generator;
-import org.eclipse.emf.codegen.ecore.genmodel.generator.GenBaseGeneratorAdapter;
-import org.eclipse.emf.common.util.BasicMonitor;
-import org.eclipse.emf.common.util.UniqueEList;
-import org.eclipse.emf.eef.codegen.ecore.EMFCodegenPlugin;
-import org.eclipse.emf.eef.codegen.ecore.main.GenModel;
-import org.eclipse.emf.eef.codegen.ecore.util.EEFGeneratorAdapter;
-import org.eclipse.emf.eef.codegen.flow.Step;
-import org.eclipse.emf.eef.codegen.flow.Workflow;
-
-/**
- * @author Goulwen Le Fur
- */
-public class GenerateEMFModelCodeAction extends GenerateEMFCodeAction {
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.emf.eef.codegen.ecore.ui.launcher.GenerateEMFCodeAction#initEMFGenFlow()
- */
- protected Workflow initEMFGenFlow() {
- final Workflow flow = new Workflow("Generate EMF model code ", shell);
- for (final org.eclipse.emf.codegen.ecore.genmodel.GenModel emfGenModel : emfGenModels) {
- String s2 = "Generate EMF Model code for " + emfGenModel.eResource().getURI().toString();
- flow.addStep(s2, new Step("EMF MODEL") {
-
- @Override
- public IStatus execute(IProgressMonitor monitor) {
- // create the model project
- IProject modelProject = extractProject(emfGenModel.getModelProjectDirectory());
- if (modelProject == null) {
- return Status.OK_STATUS;
- }
- List referencedProjects = new UniqueEList();
- if (!workspace.getRoot().exists(modelProject.getFullPath())) {
- // TODO Manage the case when the model project has been deleted from the workspace but is still present on disk ?
- modelProject = Generator.createEMFProject(new Path(emfGenModel.getModelDirectory()), modelProject
- .getLocation(), referencedProjects, new SubProgressMonitor(monitor,
- IProgressMonitor.UNKNOWN), Generator.EMF_MODEL_PROJECT_STYLE
- | Generator.EMF_PLUGIN_PROJECT_STYLE);
- } else if (!modelProject.isAccessible()) {
- try {
- modelProject.open(monitor);
- } catch (CoreException e) {
- return new Status(IStatus.ERROR, EMFCodegenPlugin.PLUGIN_ID, e.getMessage(), e);
- }
- }
- // generate using acceleo
- List args = new ArrayList();
- File modelDirectory = modelProject.getLocation().toFile();
- try {
- GenModel generator = new GenModel(emfGenModel, modelDirectory, args);
- generator.doGenerate(BasicMonitor.toMonitor(new SubProgressMonitor(monitor,
- IProgressMonitor.UNKNOWN)));
- } catch (IOException e) {
- return new Status(IStatus.ERROR, EMFCodegenPlugin.PLUGIN_ID, e.getMessage(), e);
- }
- return Status.OK_STATUS;
- }
- });
-
- if (emfGenModel.isCodeFormatting()) {
- // TODO Ne rafraichir avant le formatage que si le folder demand� n'est pas accessible
- // FIXME IMPORTANT !!! Virer le double refresh, fait � l'arrache par LDE qui sait pas comment faire autrement
- // TODO D�terminer pourquoi il reste des diff�rences de formatage avec EMF
- // TODO D�terminer pourquoi quand on fait clic-droit -> Source -> format sur le code g�n�r�, le code est modifi�
- // (cas o� le projet vient d'�tre cr�� par exemple)
- String s1b = "Refreshing workspace " + emfGenModel.eResource().getURI().toString();
- flow.addStep(s1b, new Step("REFRESH") {
-
- @Override
- public IStatus execute(IProgressMonitor monitor) {
- // refresh model project
- IProject modelProject = extractProject(emfGenModel.getModelProjectDirectory());
- if (modelProject == null) {
- return Status.OK_STATUS;
- }
- try {
- if (!modelProject.isOpen()) {
- modelProject.open(monitor);
- }
- modelProject.refreshLocal(IResource.DEPTH_INFINITE, monitor);
- } catch (CoreException e) {
- return new Status(IStatus.ERROR, EMFCodegenPlugin.PLUGIN_ID, e.getMessage(), e);
- }
- return Status.OK_STATUS;
- }
- });
-
- String s2prime = "Formatting generated files";
- flow.addStep(s2prime, new Step(s2prime) {
-
- @Override
- public IStatus execute(IProgressMonitor monitor) {
- EEFGeneratorAdapter eefGen = new EEFGeneratorAdapter();
- eefGen.generate(emfGenModel, GenBaseGeneratorAdapter.MODEL_PROJECT_TYPE,
- BasicMonitor.toMonitor(new SubProgressMonitor(monitor, IProgressMonitor.UNKNOWN)));
- return Status.OK_STATUS;
- }
- });
- }
-
- String s3 = "Refreshing workspace " + emfGenModel.eResource().getURI().toString();
- flow.addStep(s3, new Step("REFRESH") {
-
- @Override
- public IStatus execute(IProgressMonitor monitor) {
- // refresh model project
- IProject modelProject = extractProject(emfGenModel.getModelProjectDirectory());
- if (modelProject == null) {
- return Status.OK_STATUS;
- }
- try {
- if (!modelProject.isOpen()) {
- modelProject.open(monitor);
- }
- modelProject.refreshLocal(IResource.DEPTH_INFINITE, monitor);
- } catch (CoreException e) {
- return new Status(IStatus.ERROR, EMFCodegenPlugin.PLUGIN_ID, e.getMessage(), e);
- }
- return Status.OK_STATUS;
- }
- });
- }
- return flow;
- }
-
-}
diff --git a/plugins/org.eclipse.emf.eef.codegen.ecore/src-custom/org/eclipse/emf/eef/codegen/ecore/util/EEFGeneratorAdapter.java b/plugins/org.eclipse.emf.eef.codegen.ecore/src-custom/org/eclipse/emf/eef/codegen/ecore/util/EEFGeneratorAdapter.java
deleted file mode 100644
index d125c17bf..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.ecore/src-custom/org/eclipse/emf/eef/codegen/ecore/util/EEFGeneratorAdapter.java
+++ /dev/null
@@ -1,193 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008, 2012 Obeo.
- * 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:
- * Obeo - initial API and implementation
- *******************************************************************************/
-package org.eclipse.emf.eef.codegen.ecore.util;
-
-import java.io.ByteArrayInputStream;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IFolder;
-import org.eclipse.core.resources.IResource;
-import org.eclipse.core.resources.IResourceVisitor;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.emf.codegen.ecore.generator.AbstractGeneratorAdapter;
-import org.eclipse.emf.codegen.ecore.genmodel.GenModel;
-import org.eclipse.emf.codegen.ecore.genmodel.GenPackage;
-import org.eclipse.emf.codegen.ecore.genmodel.generator.GenBaseGeneratorAdapter;
-import org.eclipse.emf.common.EMFPlugin;
-import org.eclipse.emf.common.util.BasicMonitor;
-import org.eclipse.emf.common.util.Diagnostic;
-import org.eclipse.emf.common.util.Monitor;
-import org.eclipse.emf.common.util.URI;
-
-/**
- * @author Goulwen Le Fur
- */
-public class EEFGeneratorAdapter extends AbstractGeneratorAdapter {
-
- private static final String JAVA_EXT_FILE = "java";
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.emf.codegen.ecore.generator.AbstractGeneratorAdapter#canGenerate(java.lang.Object,
- * java.lang.Object)
- */
- @Override
- public boolean canGenerate(Object object, Object projectType) {
- return EMFPlugin.IS_ECLIPSE_RUNNING && object instanceof GenModel;
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.emf.codegen.ecore.generator.AbstractGeneratorAdapter#doGenerate(java.lang.Object,
- * java.lang.Object, org.eclipse.emf.common.util.Monitor)
- */
- @Override
- protected Diagnostic doGenerate(Object object, Object projectType,
- Monitor monitor) throws Exception {
- GenModel genmodel = (GenModel) object;
- IFolder folder = null;
- final IProgressMonitor progressMonitor = BasicMonitor
- .toIProgressMonitor(monitor);
- if (projectType == GenBaseGeneratorAdapter.MODEL_PROJECT_TYPE) {
- final Object codeFormatter = createCodeFormatter(null,
- URI.createPlatformResourceURI(genmodel.getModelDirectory(),
- true));
- folder = ResourcesPlugin.getWorkspace().getRoot()
- .getFolder(new Path(genmodel.getModelDirectory())); // path);
- if (folder != null && folder.isAccessible()) {
- folder.accept(new ResourceVisitorFormatter(codeFormatter,
- progressMonitor));
- }
- } else if (projectType == GenBaseGeneratorAdapter.EDIT_PROJECT_TYPE) {
- final Object codeFormatter = createCodeFormatter(null,
- URI.createPlatformResourceURI(genmodel.getEditDirectory(),
- true));
- folder = ResourcesPlugin.getWorkspace().getRoot()
- .getFolder(new Path(genmodel.getEditDirectory()));
- if (folder != null && folder.isAccessible()) {
- folder.accept(new ResourceVisitorFormatter(codeFormatter,
- progressMonitor));
- }
- } else if (projectType == GenBaseGeneratorAdapter.EDITOR_PROJECT_TYPE) {
- final Object codeFormatter = createCodeFormatter(null,
- URI.createPlatformResourceURI(
- genmodel.getEditorDirectory(), true));
- folder = ResourcesPlugin.getWorkspace().getRoot()
- .getFolder(new Path(genmodel.getEditorDirectory()));
- if (folder != null && folder.isAccessible()) {
- folder.accept(new ResourceVisitorFormatter(codeFormatter,
- progressMonitor));
- }
- }
- return Diagnostic.OK_INSTANCE;
- }
-
- /**
- * @param genmodel
- * @param genPack
- * @return
- */
- protected IPath buildModelPath(GenModel genmodel, GenPackage genPack) {
- String pathStr = genmodel.getModelDirectory() + "/"
- + genPack.getQualifiedPackageName().replaceAll("\\.", "/");
- IPath path = new Path(pathStr);
- return path;
- }
-
- /**
- * @param genmodel
- * @param genPack
- * @return
- */
- protected IPath buildProviderPath(GenModel genmodel, GenPackage genPack) {
- String pathStr = genmodel.getEditDirectory();
- if (genPack.getProviderPackageName() != null
- && !genPack.getProviderPackageName().equals("")) {
- pathStr += "/"
- + genPack.getProviderPackageName().replaceAll("\\.", "/");
- }
- IPath path = new Path(pathStr);
- return path;
- }
-
- /**
- * @param genmodel
- * @param genPack
- * @return
- */
- protected IPath buildPresentationPath(GenModel genmodel, GenPackage genPack) {
- String pathStr = genmodel.getEditorDirectory();
- if (genPack.getPresentationPackageName() != null
- && !genPack.getPresentationPackageName().equals("")) {
- pathStr += "/"
- + genPack.getPresentationPackageName().replaceAll("\\.",
- "/");
- }
- IPath path = new Path(pathStr);
- return path;
- }
-
- /**
- * IResourceVisitor responsible to format all java code in a given folder.
- *
- * @author Goulwen Le Fur
- */
- private final class ResourceVisitorFormatter implements IResourceVisitor {
- private final Object codeFormatter;
-
- private final IProgressMonitor progressMonitor;
-
- private ResourceVisitorFormatter(Object codeFormatter,
- IProgressMonitor progressMonitor) {
- this.codeFormatter = codeFormatter;
- this.progressMonitor = progressMonitor;
- }
-
- public boolean visit(IResource resource) throws CoreException {
- try {
- if (resource instanceof IFile
- && ((IFile) resource).getFileExtension().equals(
- JAVA_EXT_FILE)) {
- formatFile((IFile) resource, codeFormatter, progressMonitor);
- }
- return true;
- } catch (Exception e) {
- return false;
- }
- }
-
- /**
- * @param file
- * @param codeFormatter
- * @param progressMonitor
- * @throws Exception
- */
- private void formatFile(IFile file, Object codeFormatter,
- IProgressMonitor progressMonitor) throws Exception {
- URI createPlatformResourceURI = URI.createURI(file.getFullPath()
- .toString(), true);
- final String contentsStr = getContents(createPlatformResourceURI,
- null);
- String formatedContentsStr = formatCode(contentsStr, codeFormatter);
- ByteArrayInputStream formatedContents = new ByteArrayInputStream(
- formatedContentsStr.getBytes());
- file.setContents(formatedContents, true, true, progressMonitor);
- formatedContents.close();
- }
-
- }
-}
diff --git a/plugins/org.eclipse.emf.eef.codegen.ecore/src/org/eclipse/emf/eef/codegen/ecore/edit/ItemProvider.mtl b/plugins/org.eclipse.emf.eef.codegen.ecore/src/org/eclipse/emf/eef/codegen/ecore/edit/ItemProvider.mtl
deleted file mode 100644
index 751895ecf..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.ecore/src/org/eclipse/emf/eef/codegen/ecore/edit/ItemProvider.mtl
+++ /dev/null
@@ -1,505 +0,0 @@
-[comment encoding = UTF-8
-/**
- *
- *
- * Copyright (c) 2002-2011 IBM Corporation and others.
- * 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:
- * IBM - Initial API and implementation
- * Obeo - Migrate to Acceleo
- *
- *
- */
-/]
-[module ItemProvider('http://www.eclipse.org/emf/2002/GenModel', 'http://www.eclipse.org/emf/2002/Ecore')/]
-
-[import org::eclipse::emf::eef::codegen::ecore::services::common /]
-[import org::eclipse::emf::eef::codegen::ecore::services::header /]
-[import org::eclipse::emf::eef::codegen::ecore::services::StringUtil /]
-[import org::eclipse::emf::eef::codegen::ecore::services::wrappers::GenClass /]
-[import org::eclipse::emf::eef::codegen::ecore::services::wrappers::GenPackage /]
-[import org::eclipse::emf::eef::codegen::ecore::services::wrappers::GenModel /]
-[import org::eclipse::emf::eef::codegen::ecore::services::wrappers::GenFeature /]
-[import org::eclipse::emf::eef::codegen::ecore::services::wrappers::GenEnum /]
-[import org::eclipse::emf::eef::codegen::ecore::services::wrappers::GenDataType /]
-[import org::eclipse::emf::eef::codegen::ecore::services::wrappers::GenTypedElement /]
-
-[template public ItemProvider(genClass : GenClass) { genPackage : GenPackage = genClass.genPackage ; genModel : GenModel = genPackage.genModel ; packageName : String = genPackage.getProviderPackageName() ; className : String = genClass.getProviderClassName() }]
-[genModel.initializeImportManager(packageName, className)/]
-[file (genModel.editPath(packageName, className), false, 'UTF-8')]
-[includeHeader()/]
-package [packageName/];
-
-[genModel.addImports()/]
-[let content : String = genModel.fileContent(genPackage, genClass, className)]
-[genModel.genSortedImports()/]
-
-[content/]
-[/let]
-[/file]
-[/template]
-
-[template public addImports (genModel : GenModel) post (trim())]
-[genModel.addImport('org.eclipse.emf.common.notify.AdapterFactory')/]
-[genModel.addImport('org.eclipse.emf.common.notify.Notification')/]
-[genModel.addImport('org.eclipse.emf.edit.provider.IEditingDomainItemProvider')/]
-[genModel.addImport('org.eclipse.emf.edit.provider.IItemLabelProvider')/]
-[genModel.addImport('org.eclipse.emf.edit.provider.IItemPropertySource')/]
-[genModel.addImport('org.eclipse.emf.edit.provider.IStructuredItemContentProvider')/]
-[genModel.addImport('org.eclipse.emf.edit.provider.ITreeItemContentProvider')/]
-[/template]
-
-[template public fileContent(genModel : GenModel, genPackage : GenPackage, genClass : GenClass, className : String)]
-/**
- * This is the item provider adapter for a {@link [genClass.getQualifiedInterfaceName()/]} object.
- *
- *
- * @generated
- */
-public class [className/]
- extends [if (not genClass.getProviderBaseClassName().oclIsUndefined())][genClass.getProviderBaseClassName()/][else][genModel.getImportedName('org.eclipse.emf.edit.provider.ItemProviderAdapter')/][/if]
- implements [for (string : String | genPackage.getProviderSupportedTypes()) separator (', ')][genModel.getImportedName(string)/][/for]
-{
-[if (genModel.hasCopyrightField())]
- /**
- *
- *
- * @generated
- */
- public static final [genModel.getImportedName('java.lang.String')/] copyright = [genModel.getCopyrightFieldLiteral()/];[genModel.getNonNLS()/]
-
-[/if]
- /**
- * This constructs an instance from a factory and a notifier.
- *
- *
- * @generated
- */
- public [genClass.getProviderClassName()/](AdapterFactory adapterFactory)
- {
- super(adapterFactory);
- }
-
- /**
- * This returns the property descriptors for the adapted class.
- *
- *
- * @generated
- */
-[if (genModel.useClassOverrideAnnotation())]
- @Override
-[/if]
- public [genModel._List()/] getPropertyDescriptors(Object object)
- {
- if (itemPropertyDescriptors == null)
- {
- super.getPropertyDescriptors(object);
-
-[for (genFeature : GenFeature | genClass.getPropertyFeatures())]
- add[genFeature.getCapName()/]PropertyDescriptor(object);
-[/for]
- }
- return itemPropertyDescriptors;
- }
-
-[for (genFeature : GenFeature | genClass.getPropertyFeatures())]
- /**
- * This adds a property descriptor for the [genFeature.getFormattedName()/] feature.
- *
- *
- * @generated
- */
- protected void add[genFeature.getCapName()/]PropertyDescriptor(Object object)
- {
-[comment]<%@ include file="ItemProvider/addPropertyDescriptor.override.javajetinc" fail="alternative" %>
-<%@ start %>[/comment]
- itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- ((([genModel.getImportedName('org.eclipse.emf.edit.provider.ComposeableAdapterFactory')/])adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_[genFeature.genClass.getName()/]_[genFeature.getName()/]_feature"),[genModel.getNonNLS()/]
- [if (genFeature.propertyDescription.oclIsUndefined() or genFeature.propertyDescription.size() = 0)]
- getString("_UI_PropertyDescriptor_description", "_UI_[genFeature.genClass.getName()/]_[genFeature.getName()/]_feature", "_UI_[genFeature.genClass.getName()/]_type"),[genModel.getNonNLS()/][genModel.getNonNLS(2)/][genModel.getNonNLS(3)/]
- [else]
- getString("_UI_[genFeature.genClass.getName()/]_[genFeature.getName()/]_description"),[genModel.getNonNLS()/]
- [/if]
- [genFeature.getQualifiedFeatureAccessor()/],
- [if (genFeature.property = genmodel::GenPropertyKind::Editable)]true[else]false[/if],
- [if (genFeature.propertyMultiLine)]true[else]false[/if],
- [if (genFeature.propertySortChoices)]true[else]false[/if],
- [if (genFeature.isReferenceType())]
- null,
- [else]
- [genModel.getImportedName('org.eclipse.emf.edit.provider.ItemPropertyDescriptor')/].[genFeature.getPropertyImageName()/],
- [/if]
- [if (genFeature.propertyCategory.oclIsUndefined() or genFeature.propertyCategory.size() = 0)]
- null,
- [else]
- getString("[genModel.getPropertyCategoryKey(genFeature.propertyCategory)/]"),[genModel.getNonNLS()/]
- [/if]
- [if (genFeature.propertyFilterFlags->isEmpty())]
- null));
- [else]
- new String[genModel.genSquareBrackets('')/] {
- [genFeature.propertyFilterFlags.declareFilterFlag()->sep(',' + genModel.getLineDelimiter() + genModel.getNonNLS())/]
- }));
- [/if]
-[comment]<%@ end %><%//ItemProvider/addPropertyDescriptor.override.javajetinc%>[/comment]
- }
-
-[/for]
-[if (genClass.getChildrenFeatures()->notEmpty())]
- /**
- * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an
- * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or
- * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}.
- *
- *
- * @generated
- */
-[if (genModel.useClassOverrideAnnotation())]
- @Override
-[/if]
- public [genModel.getImportedName('java.util.Collection')/][if (genModel.useGenerics())] extends [genModel.getImportedName('org.eclipse.emf.ecore.EStructuralFeature')/]>[/if] getChildrenFeatures(Object object)
- {
- if (childrenFeatures == null)
- {
- super.getChildrenFeatures(object);
-[for (genFeature : GenFeature | genClass.getChildrenFeatures())]
- childrenFeatures.add([genFeature.getQualifiedFeatureAccessor()/]);
-[/for]
- }
- return childrenFeatures;
- }
-
-[if (genClass.getChildrenFeatures()->notEmpty())]
- /**
- *
- *
- * @generated
- */
-[if (genModel.useClassOverrideAnnotation())]
- @Override
-[/if]
- protected [genModel.getImportedName('org.eclipse.emf.ecore.EStructuralFeature')/] getChildFeature(Object object, Object child)
- {
- // Check the type of the specified child object and return the proper feature to use for
- // adding (see {@link AddCommand}) it as a child.
-
- return super.getChildFeature(object, child);
- }
-
-[/if]
-[/if]
-[if (genClass.needsHasChildrenMethodOverride())]
- /**
- *
- *
- * @generated
- */
-[if (genModel.useClassOverrideAnnotation())]
- @Override
-[/if]
- public boolean hasChildren(Object object)
- {
- return hasChildren(object, [genModel.optimizedHasChildren/]);
- }
-
-[/if]
-[if (genClass.image)]
- /**
- * This returns [genClass.getName()/].gif.
- *
- *
- * @generated
- */
-[if (genModel.useClassOverrideAnnotation())]
- @Override
-[/if]
- public Object getImage(Object object)
- {
- return overlayImage(object, getResourceLocator().getImage("full/obj16/[genClass.getName()/]"));[genModel.getNonNLS()/]
- }
-
-[/if]
-[comment <%if (genModel.getRuntimeVersion().getValue() >= GenRuntimeVersion.EMF26_VALUE && !genModel.isCreationIcons()) {%>/]
-[if (not genModel.creationIcons)]
- /**
- *
- *
- * @generated
- */
-[if (genModel.useClassOverrideAnnotation())]
- @Override
-[/if]
- protected boolean shouldComposeCreationImage()
- {
- return true;
- }
-
-[/if]
- /**
- * This returns the label text for the adapted class.
- *
- *
- * @generated
- */
-[if (genModel.useClassOverrideAnnotation())]
- @Override
-[/if]
- public String getText(Object object)
- {
-[comment]<%@ include file="ItemProvider/getText.override.javajetinc" fail="alternative" %>
-<%@ start %>[/comment]
-[if (genClass.isMapEntry())]
- [genClass.getImportedInterfaceName()/][if (genModel.useGenerics())], ?>[/if] [genClass.getSafeUncapName()/] = ([genClass.getImportedInterfaceName()/][if (genModel.useGenerics())], ?>[/if])object;
- [if (not genClass.getMapEntryKeyFeature().propertyMultiLine and not genClass.getMapEntryValueFeature().propertyMultiLine)]
- return "" + [genClass.getSafeUncapName()/].getKey() + " -> " + [genClass.getSafeUncapName()/].getValue();[genModel.getNonNLS()/][genModel.getNonNLS(2)/]
- [else]
- [if (genClass.getMapEntryKeyFeature().propertyMultiLine)]
- String key = crop("" + [genClass.getSafeUncapName()/].getKey());[genModel.getNonNLS()/]
- [else]
- String key = "" + [genClass.getSafeUncapName()/].getKey();[genModel.getNonNLS()/]
- [/if]
- [if (genClass.getMapEntryValueFeature().propertyMultiLine)]
- String value = crop("" + [genClass.getSafeUncapName()/].getValue());[genModel.getNonNLS()/]
- [else]
- String value = "" + [genClass.getSafeUncapName()/].getValue();[genModel.getNonNLS()/]
- [/if]
- return key + " -> " + value;[genModel.getNonNLS()/]
- [/if]
-[elseif (not genClass.labelFeature.oclIsUndefined())][let labelFeature : GenFeature = genClass.labelFeature]
- [if (labelFeature.isPrimitiveType() and not labelFeature.genClass.dynamic and not labelFeature.isSuppressedGetVisibility())]
- [genClass.getImportedInterfaceName()/][genClass.getInterfaceWildTypeArguments()/] [genClass.getSafeUncapName()/] = ([genClass.getImportedInterfaceName()/][genClass.getInterfaceWildTypeArguments()/])object;
- return getString("_UI_[genClass.getName()/]_type") + " " + [genClass.getSafeUncapName()/].[genClass.labelFeature.getGetAccessor()/]();[genModel.getNonNLS()/][genModel.getNonNLS(2)/]
- [else]
- [if (labelFeature.isStringType() and not labelFeature.genClass.dynamic and not labelFeature.isSuppressedGetVisibility())]
- [if (labelFeature.propertyMultiLine)]
- String label = crop((([genClass.getImportedInterfaceName()/][genClass.getInterfaceWildTypeArguments()/])object).[labelFeature.getGetAccessor()/]());
- [else]
- String label = (([genClass.getImportedInterfaceName()/][genClass.getInterfaceWildTypeArguments()/])object).[labelFeature.getGetAccessor()/]();
- [/if]
- [else]
- [if (labelFeature.isSuppressedGetVisibility() or labelFeature.genClass.dynamic)]
- Object labelValue = ((EObject)object).eGet([labelFeature.getQualifiedFeatureAccessor()/]);
- [else]
- [labelFeature.getRawImportedType()/] labelValue = (([genClass.getImportedInterfaceName()/][genClass.getInterfaceWildTypeArguments()/])object).[labelFeature.getGetAccessor()/]();
- [/if]
- String label = labelValue == null ? null : labelValue.toString();
- [/if]
- return label == null || label.length() == 0 ?
- getString("_UI_[genClass.getName()/]_type") :[genModel.getNonNLS()/]
- getString("_UI_[genClass.getName()/]_type") + " " + label;[genModel.getNonNLS()/][genModel.getNonNLS(2)/]
- [/if]
- [/let]
-[else]
- return getString("_UI_[genClass.getName()/]_type");[genModel.getNonNLS()/]
-[/if]
-[comment]<%@ end %><%//ItemProvider/getText.override.javajetinc%>[/comment]
- }
-
- /**
- * This handles model notifications by calling {@link #updateChildren} to update any cached
- * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
- *
- *
- * @generated
- */
-[if (genModel.useClassOverrideAnnotation())]
- @Override
-[/if]
- public void notifyChanged(Notification notification)
- {
- updateChildren(notification);
-[if (genClass.getLabelNotifyFeatures()->notEmpty() or genClass.getContentNotifyFeatures()->notEmpty() or genClass.getLabelAndContentNotifyFeatures()->notEmpty())]
-
- switch (notification.getFeatureID([genClass.getRawImportedInterfaceName()/].class))
- {
- [if (genClass.getLabelNotifyFeatures()->notEmpty())]
- [for (genFeature : GenFeature | genClass.getLabelNotifyFeatures())]
- case [genClass.getQualifiedFeatureID(genFeature)/]:
- [/for]
- fireNotifyChanged(new [genModel.getImportedName('org.eclipse.emf.edit.provider.ViewerNotification')/](notification, notification.getNotifier(), false, true));
- return;
- [/if]
- [if (genClass.getContentNotifyFeatures()->notEmpty())]
- [for (genFeature : GenFeature | genClass.getContentNotifyFeatures())]
- case [genClass.getQualifiedFeatureID(genFeature)/]:
- [/for]
- fireNotifyChanged(new [genModel.getImportedName('org.eclipse.emf.edit.provider.ViewerNotification')/](notification, notification.getNotifier(), true, false));
- return;
- [/if]
- [if (genClass.getLabelAndContentNotifyFeatures()->notEmpty())]
- [for (genFeature : GenFeature | genClass.getLabelAndContentNotifyFeatures())]
- case [genClass.getQualifiedFeatureID(genFeature)/]:
- [/for]
- fireNotifyChanged(new [genModel.getImportedName('org.eclipse.emf.edit.provider.ViewerNotification')/](notification, notification.getNotifier(), true, true));
- return;
- [/if]
- }
-[/if]
- super.notifyChanged(notification);
- }
-
-[if (genModel.creationCommands)]
- /**
- * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
- * that can be created under this object.
- *
- *
- * @generated
- */
-[if (genModel.useClassOverrideAnnotation())]
- @Override
-[/if]
- protected void collectNewChildDescriptors([genModel.getImportedName('java.util.Collection')/][if (genModel.useGenerics())]<[genModel.getImportedName('java.lang.Object')/]>[/if] newChildDescriptors, Object object)
- {
- super.collectNewChildDescriptors(newChildDescriptors, object);
- [for (genClass.getChildCreationData())]
- [if (getChildCreationDataCreateFeature().isFeatureMapType())]
- [if (getChildCreationDataDelegatedFeature().isReferenceType())]
-[comment]<%@ include file="ItemProvider/newChildDescriptorsReferenceDelegatedFeature.override.javajetinc" fail="alternative"%>
-<%@ start %>[/comment]
-
- newChildDescriptors.add
- (createChildParameter
- ([getChildCreationDataCreateFeature().getQualifiedFeatureAccessor()/],
- [genModel.getImportedName('org.eclipse.emf.ecore.util.FeatureMapUtil')/].createEntry
- ([getChildCreationDataDelegatedFeature().getQualifiedFeatureAccessor()/],
- [if (getChildCreationDataCreateClassifier().oclAsType(GenClass).isMapEntry())]
- [getChildCreationDataCreateClassifier().oclAsType(GenClass).genPackage.getQualifiedEFactoryInstanceAccessor()/].create([getChildCreationDataCreateClassifier().oclAsType(GenClass).getQualifiedClassifierAccessor()/]))));
- [else]
- [getChildCreationDataCreateClassifier().oclAsType(GenClass).genPackage.getQualifiedFactoryInstanceAccessor()/].create[getChildCreationDataCreateClassifier().oclAsType(GenClass).getName()/]())));
- [/if]
-[comment]<%@ include file="ItemProvider/newChildDescriptorsReferenceDelegatedFeature.insert.javajetinc" fail="silent"%>
-<%@ end %><%//ItemProvider/newChildDescriptorsReferenceDelegatedFeature.override.javajetinc%>[/comment]
- [else]
-[comment]<%@ include file="ItemProvider/newChildDescriptorsAttributeDelegatedFeature.override.javajetinc" fail="alternative"%>
-<%@ start %>[/comment]
-
- newChildDescriptors.add
- (createChildParameter
- ([getChildCreationDataCreateFeature().getQualifiedFeatureAccessor()/],
- [genModel.getImportedName('org.eclipse.emf.ecore.util.FeatureMapUtil')/].createEntry
- ([getChildCreationDataDelegatedFeature().getQualifiedFeatureAccessor()/],
- [if (getChildCreationDataDelegatedFeature().isEnumBasedType())]
- [getChildCreationDataDelegatedFeature().getTypeGenEnum().getStaticValue(getChildCreationDataDelegatedFeature().ecoreFeature.defaultValueLiteral)/])));
- [elseif (getChildCreationDataDelegatedFeature().isStringBasedType())]
- [getChildCreationDataDelegatedFeature().getCreateChildValueLiteral()/])));[genModel.getNonNLS()/]
- [else]
- [getChildCreationDataCreateClassifier().oclAsType(GenDataType).genPackage.getQualifiedEFactoryInstanceAccessor()/].createFromString([getChildCreationDataCreateClassifier().oclAsType(GenDataType).getQualifiedClassifierAccessor()/], [getChildCreationDataDelegatedFeature().getCreateChildValueLiteral()/]))));[if (not getChildCreationDataDelegatedFeature().getCreateChildValueLiteral().oclIsUndefined())][genModel.getNonNLS()/][else] // TODO: ensure this is a valid literal value[/if]
- [/if]
-[comment]<%@ include file="ItemProvider/newChildDescriptorsAttributeDelegatedFeature.insert.javajetinc" fail="silent"%>
-<%@ end %><%//ItemProvider/newChildDescriptorsAttributeDelegatedFeature.override.javajetinc%>[/comment]
- [/if]
- [elseif (getChildCreationDataCreateFeature().isReferenceType())]
-[comment]<%@ include file="ItemProvider/newChildDescriptorsReferenceFeature.override.javajetinc" fail="alternative"%>
-<%@ start %>[/comment]
-
- newChildDescriptors.add
- (createChildParameter
- ([getChildCreationDataCreateFeature().getQualifiedFeatureAccessor()/],
- [if (getChildCreationDataCreateClassifier().oclAsType(GenClass).isMapEntry())]
- [getChildCreationDataCreateClassifier().oclAsType(GenClass).genPackage.getQualifiedEFactoryInstanceAccessor()/].create([getChildCreationDataCreateClassifier().oclAsType(GenClass).getQualifiedClassifierAccessor()/])));
- [else]
- [getChildCreationDataCreateClassifier().oclAsType(GenClass).genPackage.getQualifiedFactoryInstanceAccessor()/].create[getChildCreationDataCreateClassifier().oclAsType(GenClass).getName()/]()));
- [/if]
-[comment]<%@ include file="ItemProvider/newChildDescriptorsReferenceFeature.insert.javajetinc" fail="silent"%>
-<%@ end %><%//ItemProvider/newChildDescriptorsReferenceFeature.override.javajetinc %>[/comment]
- [else]
-[comment]<%@ include file="ItemProvider/newChildDescriptorsAttributeFeature.override.javajetinc" fail="alternative"%>
-<%@ start %>[/comment]
-
- newChildDescriptors.add
- (createChildParameter
- ([getChildCreationDataCreateFeature().getQualifiedFeatureAccessor()/],
- [if (getChildCreationDataCreateFeature().isEnumBasedType())]
- [getChildCreationDataCreateFeature().getTypeGenEnum().getStaticValue(getChildCreationDataCreateFeature().ecoreFeature.defaultValueLiteral)/]));
- [elseif (getChildCreationDataCreateFeature().isStringBasedType())]
- [getChildCreationDataCreateFeature().getCreateChildValueLiteral()/]));[genModel.getNonNLS()/]
- [else]
- [getChildCreationDataCreateClassifier().oclAsType(GenDataType).genPackage.getQualifiedEFactoryInstanceAccessor()/].createFromString([getChildCreationDataCreateClassifier().oclAsType(GenDataType).getQualifiedClassifierAccessor()/], [getChildCreationDataCreateFeature().getCreateChildValueLiteral()/])));[if (not getChildCreationDataCreateFeature().getCreateChildValueLiteral().oclIsUndefined())][genModel.getNonNLS()/][else] // TODO: ensure this is a valid literal value[/if]
- [/if]
-[comment]<%@ include file="ItemProvider/newChildDescriptorsAttributeFeature.insert.javajetinc" fail="silent"%>
-<%@ end %><%//ItemProvider/newChildDescriptorsAttributeFeature.override.javajetinc%>[/comment]
- [/if]
- [/for]
- }
-
-[if (genClass.getSharedClassCreateChildFeatures()->notEmpty())]
- /**
- * This returns the label text for {@link org.eclipse.emf.edit.command.CreateChildCommand}.
- *
- *
- * @generated
- */
-[if (genModel.useClassOverrideAnnotation())]
- @Override
-[/if]
- public String getCreateChildText(Object owner, Object feature, Object child, [genModel.getImportedName('java.util.Collection')/][if genModel.useGenerics()]>[/if] selection)
- {
- Object childFeature = feature;
- Object childObject = child;
-
- [if (genClass.hasFeatureMapCreateChildFeatures())]
- if (childFeature instanceof [genModel.getImportedName('org.eclipse.emf.ecore.EStructuralFeature')/] && [genModel.getImportedName('org.eclipse.emf.ecore.util.FeatureMapUtil')/].isFeatureMap((EStructuralFeature)childFeature))
- {
- [genModel.getImportedName('org.eclipse.emf.ecore.util.FeatureMap')/].Entry entry = (FeatureMap.Entry)childObject;
- childFeature = entry.getEStructuralFeature();
- childObject = entry.getValue();
- }
-
- [/if]
- boolean qualify =
- [for (createFeature : GenFeature | genClass.getSharedClassCreateChildFeatures()) separator (' ||' + genModel.getLineDelimiter())]
- childFeature == [createFeature.getQualifiedFeatureAccessor()/][/for];
-
- if (qualify)
- {
- return getString
- ("_UI_CreateChild_text2",[genModel.getNonNLS()/]
- new Object[genModel.genSquareBrackets('')/] { getTypeText(childObject), getFeatureText(childFeature), getTypeText(owner) });
- }
- return super.getCreateChildText(owner, feature, child, selection);
- }
-
-[/if]
-[/if]
-[if (genClass.getProviderExtendsGenClass().oclIsUndefined() or genClass.getProviderExtendsGenClass().genPackage <> genPackage and ( not genPackage.extensibleProviderFactory or genClass.getProviderExtendsGenClass().genPackage.extensibleProviderFactory <> genPackage.extensibleProviderFactory))]
- /**
- * Return the resource locator for this item provider's resources.
- *
- *
- * @generated
- */
-[if (genModel.useClassOverrideAnnotation())]
- @Override
-[/if]
- public [genModel.getImportedName('org.eclipse.emf.common.util.ResourceLocator')/] getResourceLocator()
- {
-[if (genPackage.extensibleProviderFactory)]
- return (([genModel.getImportedName('org.eclipse.emf.edit.provider.IChildCreationExtender')/])adapterFactory).getResourceLocator();
-[else]
- return [genPackage.getImportedEditPluginClassName()/].INSTANCE;
-[/if]
- }
-
-[/if]
-[comment]<%@ include file="ItemProvider/insert.javajetinc" fail="silent" %>[/comment]
-}
-
-[/template]
-
-[template protected _List (genModel : GenModel)]
-[genModel.getImportedName('java.util.List')/][if genModel.useGenerics()]<[genModel.getImportedName('org.eclipse.emf.edit.provider.IItemPropertyDescriptor')/]>[/if]
-[/template]
-
-[template private declareFilterFlag(filterFlag : EString)]
- [if (not filterFlag.oclIsUndefined() and filterFlag.size() > 0)]
- "[filterFlag/]"
- [/if]
-[/template]
diff --git a/plugins/org.eclipse.emf.eef.codegen.ecore/src/org/eclipse/emf/eef/codegen/ecore/edit/ItemProviderAdapterFactory.mtl b/plugins/org.eclipse.emf.eef.codegen.ecore/src/org/eclipse/emf/eef/codegen/ecore/edit/ItemProviderAdapterFactory.mtl
deleted file mode 100644
index 92808be61..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.ecore/src/org/eclipse/emf/eef/codegen/ecore/edit/ItemProviderAdapterFactory.mtl
+++ /dev/null
@@ -1,602 +0,0 @@
-[comment encoding = UTF-8
-/**
- *
- *
- * Copyright (c) 2002-2011 IBM Corporation and others.
- * 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:
- * IBM - Initial API and implementation
- * Obeo - Migrate to Acceleo
- *
- *
- */
-/]
-[module ItemProviderAdapterFactory('http://www.eclipse.org/emf/2002/GenModel','http://www.eclipse.org/emf/2002/Ecore')/]
-
-[import org::eclipse::emf::eef::codegen::ecore::services::common /]
-[import org::eclipse::emf::eef::codegen::ecore::services::header /]
-[import org::eclipse::emf::eef::codegen::ecore::services::StringUtil /]
-[import org::eclipse::emf::eef::codegen::ecore::services::wrappers::GenClass /]
-[import org::eclipse::emf::eef::codegen::ecore::services::wrappers::GenPackage /]
-[import org::eclipse::emf::eef::codegen::ecore::services::wrappers::GenModel /]
-[import org::eclipse::emf::eef::codegen::ecore::services::wrappers::GenFeature /]
-[import org::eclipse::emf::eef::codegen::ecore::services::wrappers::GenEnum /]
-[import org::eclipse::emf::eef::codegen::ecore::services::wrappers::GenDataType /]
-[import org::eclipse::emf::eef::codegen::ecore::services::wrappers::GenTypedElement /]
-
-[template public ItemProviderAdapterFactory(genPackage : GenPackage) { genModel : GenModel = genPackage.genModel ; packageName : String = genPackage.getProviderPackageName() ; className : String = genPackage.getItemProviderAdapterFactoryClassName() }]
-[genModel.initializeImportManager(packageName, className)/]
-[file (genModel.editPath(packageName, className), false, 'UTF-8')]
-[includeHeader()/]
-package [packageName/];
-
-[genModel.addImports()/]
-[let content : String = genModel.fileContent(genPackage, className)]
-[genModel.genSortedImports()/]
-
-[content/]
-[/let]
-[/file]
-[/template]
-
-[template public addImports (genModel : GenModel) post (trim())]
-[genModel.addImport('org.eclipse.emf.common.notify.Adapter')/]
-[genModel.addImport('org.eclipse.emf.common.notify.Notification')/]
-[genModel.addImport('org.eclipse.emf.common.notify.Notifier')/]
-[genModel.addImport('org.eclipse.emf.edit.provider.ChangeNotifier')/]
-[genModel.addImport('org.eclipse.emf.edit.provider.ComposeableAdapterFactory')/]
-[genModel.addImport('org.eclipse.emf.edit.provider.ComposedAdapterFactory')/]
-[genModel.addImport('org.eclipse.emf.edit.provider.IChangeNotifier')/]
-[genModel.addImport('org.eclipse.emf.edit.provider.IEditingDomainItemProvider')/]
-[genModel.addImport('org.eclipse.emf.edit.provider.IItemLabelProvider')/]
-[genModel.addImport('org.eclipse.emf.edit.provider.IItemPropertySource')/]
-[genModel.addImport('org.eclipse.emf.edit.provider.INotifyChangedListener')/]
-[genModel.addImport('org.eclipse.emf.edit.provider.IStructuredItemContentProvider')/]
-[genModel.addImport('org.eclipse.emf.edit.provider.ITreeItemContentProvider')/]
-[/template]
-
-[template public fileContent(genModel : GenModel, genPackage : GenPackage, className : String)]
-/**
- * This is the factory that is used to provide the interfaces needed to support Viewers.
- * The adapters generated by this factory convert EMF adapter notifications into calls to {@link #fireNotifyChanged fireNotifyChanged}.
- * The adapters also support Eclipse property sheets.
- * Note that most of the adapters are shared among multiple instances.
- *
- *
- * @generated
- */
-public class [className/] extends [genPackage.getImportedAdapterFactoryClassName()/] implements ComposeableAdapterFactory, IChangeNotifier[if (genPackage.disposableProviderFactory)], [genModel.getImportedName('org.eclipse.emf.edit.provider.IDisposable')/][/if][if (genPackage.extensibleProviderFactory)], [genModel.getImportedName('org.eclipse.emf.edit.provider.IChildCreationExtender')/][/if]
-{
-[if (genModel.hasCopyrightField())]
- /**
- *
- *
- * @generated
- */
- public static final java.lang.String copyright = [genModel.getCopyrightFieldLiteral()/];[genModel.getNonNLS()/]
-
-[/if]
- /**
- * This keeps track of the root adapter factory that delegates to this adapter factory.
- *
- *
- * @generated
- */
- protected ComposedAdapterFactory parentAdapterFactory;
-
- /**
- * This is used to implement {@link org.eclipse.emf.edit.provider.IChangeNotifier}.
- *
- *
- * @generated
- */
- protected IChangeNotifier changeNotifier = new ChangeNotifier();
-
-[if (genPackage.disposableProviderFactory and genPackage.hasStatefulProvider())]
- /**
- * This keeps track of all the item providers created, so that they can be {@link #dispose disposed}.
- *
- *
- * @generated
- */
- protected [genModel.getImportedName('org.eclipse.emf.edit.provider.Disposable')/] disposable = new Disposable();
-
-[/if]
-[if (genPackage.extensibleProviderFactory)]
- /**
- * This helps manage the child creation extenders.
- *
- *
- * @generated
- */
- protected [genModel.getImportedName('org.eclipse.emf.edit.provider.ChildCreationExtenderManager')/] childCreationExtenderManager = new [genModel.getImportedName('org.eclipse.emf.edit.provider.ChildCreationExtenderManager')/]([genPackage.getImportedEditPluginClassName()/].INSTANCE, [genPackage.getImportedPackageInterfaceName()/].eNS_URI);
-
-[/if]
- /**
- * This keeps track of all the supported types checked by {@link #isFactoryForType isFactoryForType}.
- *
- *
- * @generated
- */
- protected [_Collection(genPackage)/] supportedTypes = new [_ArrayList(genPackage)/]();
-
- /**
- * This constructs an instance.
- *
- *
- * @generated
- */
- public [genPackage.getItemProviderAdapterFactoryClassName()/]()
- {
-[for (name : String | genPackage.getProviderSupportedTypes())]
- supportedTypes.add([genModel.getImportedName(name)/].class);
-[/for]
- }
-
-[for (genDelegate : GenPackage | genPackage.getAdapterDelegatePackages())]
- /**
- * This keeps track of the factory to which to delegate adapter creation for objects from that package.
- *
- *
- * @generated
- */
- protected [genDelegate.getImportedAdapterFactoryClassName()/] [genPackage.getUncapAdapterFactoryDelegateName(genDelegate)/] = null;
-
- /**
- * This determines the delegate factory for the package.
- *
- *
- * @generated
- */
- protected [genDelegate.getImportedAdapterFactoryClassName()/] get[genPackage.getAdapterFactoryDelegateName(genDelegate)/]()
- {
- if ([genPackage.getUncapAdapterFactoryDelegateName(genDelegate)/] == null)
- {
- [genModel.getImportedName('org.eclipse.emf.common.notify.AdapterFactory')/] rootAdapterFactory = getRootAdapterFactory();
- if (rootAdapterFactory instanceof ComposedAdapterFactory)
- {
- [genModel.getImportedName('org.eclipse.emf.common.notify.AdapterFactory')/] delegateAdapterFactory =
- ((ComposedAdapterFactory)rootAdapterFactory).getFactoryForType([genDelegate.getImportedAdapterFactoryClassName()/].getPackage());
- if (delegateAdapterFactory instanceof [genDelegate.getImportedAdapterFactoryClassName()/])
- {
- [genPackage.getUncapAdapterFactoryDelegateName(genDelegate)/] = ([genDelegate.getImportedAdapterFactoryClassName()/])delegateAdapterFactory;
- }
- }
- }
- return [genPackage.getUncapAdapterFactoryDelegateName(genDelegate)/];
- }
-
-[/for]
-[for (genClass : GenClass | genPackage.genClasses)]
-[if (not genClass.isAbstract() and (genClass.provider <> GenProviderKind::None))]
-[if (genClass.isProviderSingleton())]
- /**
- * This keeps track of the one adapter used for all {@link [genClass.getQualifiedInterfaceName()/]} instances.
- *
- *
- * @generated
- */
- protected [genClass.getProviderClassName()/] [genClass.getUncapName()/]ItemProvider;
-
- /**
- * This creates an adapter for a {@link [genClass.getQualifiedInterfaceName()/]}.
- *
- *
- * @generated
- */
-[if (genModel.useClassOverrideAnnotation())]
- @Override
-[/if]
- public Adapter create[genClass.getName()/]Adapter()
- {
- if ([genClass.getUncapName()/]ItemProvider == null)
- {
- [genClass.getUncapName()/]ItemProvider = new [genClass.getProviderClassName()/](this);
- }
-
- return [genClass.getUncapName()/]ItemProvider;
- }
-
-[else]
- /**
- * This creates an adapter for a {@link [genClass.getQualifiedInterfaceName()/]}.
- *
- *
- * @generated
- */
-[if (genModel.useClassOverrideAnnotation())]
- @Override
-[/if]
- public Adapter create[genClass.getName()/]Adapter()
- {
- return new [genClass.getProviderClassName()/](this);
- }
-
-[/if]
-[/if]
-[/for]
-[for (genClass : GenClass | genPackage.getAdapterDelegateSuperClasses())]
- /**
- * <[genClass.getName()/] of [genClass.getItemProviderAdapterFactoryClassName()/]
- *
- *
- * @generated
- */
- public Adapter create[genClass.getName()/]Adapter()
- {
- return
- get[genClass.getItemProviderAdapterFactoryClassName()/]() == null ?
- null :
- get[genClass.getItemProviderAdapterFactoryClassName()/]().create[genClass.getName()/]Adapter();
- }
-
-[/for]
- /**
- * This returns the root adapter factory that contains this factory.
- *
- *
- * @generated
- */
- public ComposeableAdapterFactory getRootAdapterFactory()
- {
- return parentAdapterFactory == null ? this : parentAdapterFactory.getRootAdapterFactory();
- }
-
- /**
- * This sets the composed adapter factory that contains this factory.
- *
- *
- * @generated
- */
- public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory)
- {
- this.parentAdapterFactory = parentAdapterFactory;
- }
-
- /**
- *
- *
- * @generated
- */
-[if (genModel.useClassOverrideAnnotation())]
- @Override
-[/if]
- public boolean isFactoryForType(Object type)
- {
- return supportedTypes.contains(type) || super.isFactoryForType(type);
- }
-
- /**
- * This implementation substitutes the factory itself as the key for the adapter.
- *
- *
- * @generated
- */
-[if (genModel.useClassOverrideAnnotation())]
- @Override
-[/if]
- public Adapter adapt(Notifier notifier, Object type)
- {
- return super.adapt(notifier, this);
- }
-
- /**
- *
- *
- * @generated
- */
-[if (genModel.useClassOverrideAnnotation())]
- @Override
-[/if]
- public Object adapt(Object object, Object type)
- {
- if (isFactoryForType(type))
- {
- Object adapter = super.adapt(object, type);
- if (!(type instanceof Class[if (genModel.useGenerics())]>[/if]) || [if (genModel.runtimePlatform = GenRuntimePlatform::GWT)][genModel.getImportedName('org.eclipse.emf.common.util.Reflect')/].isInstance((Class[if (genModel.useGenerics())]>[/if])type, adapter)[else](((Class[if (genModel.useGenerics())]>[/if])type).isInstance(adapter))[/if])
- {
- return adapter;
- }
- }
-
- return null;
- }
-
-[if (genPackage.disposableProviderFactory and genPackage.hasStatefulProvider())]
- /**
- * Associates an adapter with a notifier via the base implementation, then records it to ensure it will be disposed.
- *
- *
- * @generated
- */
-[if (genModel.useClassOverrideAnnotation())]
- @Override
-[/if]
- protected void associate(Adapter adapter, Notifier target)
- {
- super.associate(adapter, target);
- if (adapter != null)
- {
- disposable.add(adapter);
- }
- }
-
-[/if]
-[if (genPackage.extensibleProviderFactory)]
- /**
- *
- *
- * @generated
- */
- public [if useGenerics(genPackage)][genModel.getImportedName('java.util.List')/]<[genModel.getImportedName('org.eclipse.emf.edit.provider.IChildCreationExtender')/]>[else][genModel.getImportedName('java.util.List')/][/if] getChildCreationExtenders()
- {
- return childCreationExtenderManager.getChildCreationExtenders();
- }
-
- /**
- *
- *
- * @generated
- */
- public [if useGenerics(genPackage)][genModel.getImportedName('java.util.Collection')/]>[else][genModel.getImportedName('java.util.Collection')/][/if] getNewChildDescriptors(Object object, [genModel.getImportedName('org.eclipse.emf.edit.domain.EditingDomain')/] editingDomain)
- {
- return childCreationExtenderManager.getNewChildDescriptors(object, editingDomain);
- }
-
- /**
- *
- *
- * @generated
- */
- public [genModel.getImportedName('org.eclipse.emf.common.util.ResourceLocator')/] getResourceLocator()
- {
- return childCreationExtenderManager;
- }
-
-[/if]
- /**
- * This adds a listener.
- *
- *
- * @generated
- */
- public void addListener(INotifyChangedListener notifyChangedListener)
- {
- changeNotifier.addListener(notifyChangedListener);
- }
-
- /**
- * This removes a listener.
- *
- *
- * @generated
- */
- public void removeListener(INotifyChangedListener notifyChangedListener)
- {
- changeNotifier.removeListener(notifyChangedListener);
- }
-
- /**
- * This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}.
- *
- *
- * @generated
- */
- public void fireNotifyChanged(Notification notification)
- {
- changeNotifier.fireNotifyChanged(notification);
-
- if (parentAdapterFactory != null)
- {
- parentAdapterFactory.fireNotifyChanged(notification);
- }
- }
-
-[if (genPackage.disposableProviderFactory)]
- /**
- * This disposes all of the item providers created by this factory.
- *
- *
- * @generated
- */
- public void dispose()
- {
-[if (genPackage.hasStatefulProvider())]
- disposable.dispose();
-[else]
-[for (genClass : GenClass | genPackage.genClasses)]
-[if (not genClass.isAbstract() and genClass.isProviderSingleton())]
- if ([genClass.getUncapName()/]ItemProvider != null) [genClass.getUncapName()/]ItemProvider.dispose();
-[/if]
-[/for]
-[/if]
- }
-
-[/if]
-[if (genPackage.childCreationExtenders)]
-[comment <%for (Map.Entry>> packageEntry : genPackage.getExtendedChildCreationData().entrySet()) {%> /]
- [for (genPackage.getExtendedChildCreationDataEntrySet())]
-[comment packageEntry.getKey() = GenPackage/]
- [let key : GenPackage = getPackageEntryKey()]
- /**
- * A child creation extender for the {@link [key.getImportedPackageInterfaceName()/]}.
- *
- *
- * @generated
- */
- public static class [genPackage.getChildCreationExtenderName(key)/] implements [genModel.getImportedName('org.eclipse.emf.edit.provider.IChildCreationExtender')/]
- {
- /**
- * The switch for creating child descriptors specific to each extended class.
- *
- *
- * @generated
- */
- protected static class CreationSwitch extends [genModel.getImportedName(key.getQualifiedSwitchClassName())/][if useGenerics(genPackage)]
Note: the correct way to create the package is via the static
- * factory method {@link #init init()}, which also performs
- * initialization of the package, or returns the registered package,
- * if one already exists.
- *
- *
- * @see org.eclipse.emf.ecore.EPackage.Registry
- * @see [genPackage.getQualifiedPackageInterfaceName()/]#eNS_URI
- * @see #init()
- * @generated
- */
- private [genPackage.getPackageClassName()/]() {
- super(eNS_URI, [genPackage.getQualifiedEFactoryInstanceAccessor()/]);
- }
-
- /**
- *
- *
- * @generated
- */
- private static boolean isInited = false;
-
- /**
- * Creates, registers, and initializes the Package for this model, and for any others upon which it depends.
- *
- *
- *
- * @generated
- */
- [if (isImplementation)]public [/if]interface Literals {
- [for (genClassifier : GenClassifier | genPackage.genClassifiers)]
- /**
- [if (genClassifier.oclIsKindOf(GenClass))]
- [let genClass : GenClass = genClassifier.oclAsType(GenClass)]
- [if (not genClass.isInterface())]
- * The meta object literal for the '{@link [genClass.getQualifiedClassName()/] [genClass.getFormattedName()/]}' class.
- *
- *
- * @see [genClass.getQualifiedClassName()/]
- [else]
- * The meta object literal for the '{@link [genClass.getQualifiedInterfaceName()/] [genClass.getFormattedName()/]}' class.
- *
- *
- * @see [genClass.getQualifiedInterfaceName()/]
- [/if]
- [/let]
- [else][if (genClassifier.oclIsKindOf(GenEnum))]
- [let genEnum : GenEnum = genClassifier.oclAsType(GenEnum)]
- * The meta object literal for the '{@link [genEnum.getQualifiedName()/] [genEnum.getFormattedName()/]}' enum.
- *
- *
- * @see [genEnum.getQualifiedName()/]
- [/let]
- [else][if (genClassifier.oclIsKindOf(GenDataType))]
- [let genDataType : GenDataType = genClassifier.oclAsType(GenDataType)]
- * The meta object literal for the '[genDataType.getFormattedName()/]' data type.
- *
- *
- [if (not genDataType.isPrimitiveType() and not genDataType.isArrayType())]
- * @see [genDataType.getRawInstanceClassName()/]
- [/if]
- [/let]
- [/if][/if][/if]
- * @see [genPackage.getQualifiedPackageClassName()/]#get[genClassifier.getClassifierAccessorName()/]()
- * @generated
- */
- [publicStaticFinalFlag/][genClassifier.getImportedMetaType()/] [genPackage.getClassifierID(genClassifier)/] = eINSTANCE.get[genClassifier.getClassifierAccessorName()/]();
-
- [if (genClassifier.oclIsKindOf(GenClass))]
- [let genClass : GenClass = genClassifier.oclAsType(GenClass)]
- [for (genFeature : GenFeature |genClass.genFeatures)]
- /**
- * The meta object literal for the '[genFeature.getFormattedName()/]' [genFeature.getFeatureKind()/] feature.
- *
- *
- * @generated
- */
- [publicStaticFinalFlag/][genFeature.getImportedMetaType()/] [genClass.getFeatureID(genFeature)/] = eINSTANCE.get[genFeature.getFeatureAccessorName()/]();
-
- [/for]
- [if (genModel.operationReflection)]
- [for (genOperation : GenOperation | genClass.genOperations)]
- /**
- * The meta object literal for the '[genOperation.getFormattedName()/]' operation.
- *
- *
- * @generated
- */
- [publicStaticFinalFlag/][genOperation.getImportedMetaType()/] [genClass.getOperationID(genOperation, false)/] = eINSTANCE.get[genOperation.getOperationAccessorName()/]();
-
- [/for]
- [/if]
- [/let]
- [/if]
- [/for]
- }
-
-[/if]
-} //[className/]
-[/let][comment publicStaticFinalFlag /]
-[/template]
-
-[query public packageClassPackageName(genPackage : GenPackage, isInterface : Boolean) : String =
- if (isInterface and not genPackage.genModel.suppressInterfaces) then
- genPackage.getReflectionPackageName()
- else
- genPackage.getClassPackageName()
- endif
-/]
-
-[query public packageClassName(genPackage : GenPackage, isImplementation : Boolean) : String =
- if (isImplementation) then
- genPackage.getPackageClassName()
- else
- genPackage.getPackageInterfaceName()
- endif
-/]
-
-[query public packageClassPath(genPackage : GenPackage, isInterface : Boolean, isImplementation : Boolean) : String
- = genPackage.genModel.modelPath(genPackage.packageClassPackageName(isInterface), genPackage.packageClassName(isImplementation)) /]
diff --git a/plugins/org.eclipse.emf.eef.codegen.ecore/src/org/eclipse/emf/eef/codegen/ecore/model/Plugin.mtl b/plugins/org.eclipse.emf.eef.codegen.ecore/src/org/eclipse/emf/eef/codegen/ecore/model/Plugin.mtl
deleted file mode 100644
index 7ed0a52cb..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.ecore/src/org/eclipse/emf/eef/codegen/ecore/model/Plugin.mtl
+++ /dev/null
@@ -1,155 +0,0 @@
-[comment encoding = UTF-8 /]
-[module Plugin('http://www.eclipse.org/emf/2002/GenModel')/]
-
-[comment
-/**
- *
- *
- * Copyright (c) 2002-2004 IBM Corporation and others.
- * 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:
- * IBM - Initial API and implementation
- *
- *
- */
-/]
-
-[import org::eclipse::emf::eef::codegen::ecore::services::common /]
-[import org::eclipse::emf::eef::codegen::ecore::services::header /]
-[import org::eclipse::emf::eef::codegen::ecore::services::wrappers::GenModel /]
-[import org::eclipse::emf::eef::codegen::ecore::services::StringUtil /]
-
-[template public plugin(genModel : GenModel) ? (genModel.hasModelPluginClass()) { packageName : String = genModel.getModelPluginPackageName(); className : String = genModel.getModelPluginClassName(); }]
-[genModel.initializeImportManager(packageName, className)/]
-[file (genModel.pluginFilePath(), false, 'UTF-8')]
-[genModel.includeHeader()/]
-package [genModel.getModelPluginPackageName()/];
-[comment]<%genModel.markImportLocation(stringBuffer, genPackage);%>[/comment]
-[let content : String = genModel.pluginFileContent()]
-[genModel.genSortedImports()/]
-[content/]
-[/let]
-[/file]
-[/template]
-
-[template protected pluginFileContent(genModel : GenModel)]
-[genModel.addImport('org.eclipse.emf.common.EMFPlugin')/]
-[genModel.addImport('org.eclipse.emf.common.util.ResourceLocator')/]
-
-/**
- * This is the central singleton for the [genModel.modelName/] model plugin.
- *
- *
- * @generated
- */
-public final class [genModel.getModelPluginClassName()/] extends EMFPlugin
-{
-[if (genModel.hasCopyrightField())]
- /**
- *
- *
- * @generated
- */
- public static final [genModel.getImportedName('java.lang.String')/] copyright = [genModel.getCopyrightFieldLiteral()/];[genModel.getNonNLS()/]
-
-[/if]
- /**
- * Keep track of the singleton.
- *
- *
- * @generated
- */
- public static final [genModel.getModelPluginClassName()/] INSTANCE = new [genModel.getModelPluginClassName()/]();
-
-[if (genModel.runtimePlatform <> GenRuntimePlatform::GWT)]
- /**
- * Keep track of the singleton.
- *
- *
- * @generated
- */
- private static Implementation plugin;
-
-[/if]
- /**
- * Create the instance.
- *
- *
- * @generated
- */
- public [genModel.getModelPluginClassName()/]()
- {
- super(new ResourceLocator ['[]'/] {});
- }
-
- /**
- * Returns the singleton instance of the Eclipse plugin.
- *
- *
- * @return the singleton instance.
- * @generated
- */
-[if (genModel.useClassOverrideAnnotation())]
- @Override
-[/if]
- public ResourceLocator getPluginResourceLocator()
- {
-[if (genModel.runtimePlatform = GenRuntimePlatform::GWT)]
- return null;
-[else]
- return plugin;
-[/if]
- }
-
-[if (genModel.runtimePlatform <> GenRuntimePlatform::GWT)]
- /**
- * Returns the singleton instance of the Eclipse plugin.
- *
- *
- * @return the singleton instance.
- * @generated
- */
- public static Implementation getPlugin()
- {
- return plugin;
- }
-
- /**
- * The actual implementation of the Eclipse Plugin.
- *
- *
- * @generated
- */
- public static class Implementation extends EclipsePlugin
- {
- /**
- * Creates an instance.
- *
- *
-[if (genModel.needsRuntimeCompatibility())]
- * @param descriptor the description of the plugin.
-[/if]
- * @generated
- */
- public Implementation([if (genModel.needsRuntimeCompatibility())][genModel.getImportedName('org.eclipse.core.runtime.IPluginDescriptor')/] descriptor[/if])
- {
- super([if (genModel.needsRuntimeCompatibility())]descriptor[/if]);
-
- // Remember the static instance.
- //
- plugin = this;
- }
- }
-
-[/if]
-}
-
-[/template]
-
-[query public pluginFilePath(genModel : GenModel) : String
- = genModel.extractSourceDirectory(genModel.modelDirectory) + '/'
- + genModel.getQualifiedModelPluginClassName().toPath() + '.java' /]
diff --git a/plugins/org.eclipse.emf.eef.codegen.ecore/src/org/eclipse/emf/eef/codegen/ecore/model/ResourceClass.mtl b/plugins/org.eclipse.emf.eef.codegen.ecore/src/org/eclipse/emf/eef/codegen/ecore/model/ResourceClass.mtl
deleted file mode 100644
index dce13b0c4..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.ecore/src/org/eclipse/emf/eef/codegen/ecore/model/ResourceClass.mtl
+++ /dev/null
@@ -1,508 +0,0 @@
-[comment encoding = UTF-8 /]
-[module ResourceClass('http://www.eclipse.org/emf/2002/GenModel', 'http://www.eclipse.org/emf/2002/Ecore')/]
-
-[import org::eclipse::emf::eef::codegen::ecore::services::common /]
-[import org::eclipse::emf::eef::codegen::ecore::services::header /]
-[import org::eclipse::emf::eef::codegen::ecore::services::wrappers::GenModel /]
-[import org::eclipse::emf::eef::codegen::ecore::services::wrappers::GenPackage /]
-[import org::eclipse::emf::eef::codegen::ecore::services::wrappers::GenClass /]
-[import org::eclipse::emf::eef::codegen::ecore::services::wrappers::GenClassifier /]
-[import org::eclipse::emf::eef::codegen::ecore::services::wrappers::GenFeature /]
-[import org::eclipse::emf::eef::codegen::ecore::services::wrappers::GenDataType /]
-[import org::eclipse::emf::eef::codegen::ecore::services::StringUtil /]
-
-[comment]
-/**
- *
- *
- * Copyright (c) 2002-2006 IBM Corporation and others.
- * 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:
- * IBM - Initial API and implementation
- *
- *
- */
-[/comment]
-
-[template public resourceClass(genPackage : GenPackage) { genModel : GenModel = genPackage.genModel; packageName : String = genPackage.getUtilitiesPackageName(); className : String = genPackage.getResourceClassName();} ]
-[genModel.initializeImportManager(packageName, className)/]
-
-[genModel.getImportedName('org.eclipse.emf.common.util.URI')/]
-
-[file (genPackage.resourceClassPath(), false, 'UTF-8')]
-[genModel.includeHeader()/]
-package [packageName/];
-[let content : String = genPackage.resourceFileContent(genModel, className)]
-[genModel.genSortedImports()/]
-[content/]
-[/let]
-[/file]
-[/template]
-
-[template protected resourceFileContent(genPackage : GenPackage, genModel : GenModel, className : String)]
-/**
- *
- * The Resource associated with the package.
- *
- * @see [genPackage.getQualifiedResourceFactoryClassName()/]
- * @generated
- */
-public class [className/] extends [genPackage.getImportedResourceBaseClassName()/]
-{
-[if (genModel.hasCopyrightField())]
- /**
- *
- *
- * @generated
- */
- public static final [genModel.getImportedName('java.lang.String')/] copyright = [genModel.getCopyrightFieldLiteral()/];[genModel.getNonNLS()/]
-
-[/if]
- /**
- * Creates an instance of the resource.
- *
- *
- * @param uri the URI of the new resource.
- * @generated
- */
- public [className/](URI uri)
- {
- super(uri);
-[if (genPackage.getResource() = GenResourceKind::XML)][comment Do nothing/]
-[/if]
- }
-
-[if (genPackage.dataTypeConverters and (genPackage.hasDocumentRoot() or genPackage.isXMLTypePackage()))]
-[let _Map : String = if (genModel.useGenerics()) then 'Map, ?>' else 'Map' endif]
-[let _MapStringBoolean : String = if (genModel.useGenerics()) then 'Map' else 'Map' endif]
-[let _MapStringWildcard : String = if (genModel.useGenerics()) then 'Map' else 'Map' endif]
-[comment || org.eclipse.emf.ecore.xml.type.XMLTypePackage.eNS_URI.equals(genPackage.getNSURI()))) { boolean isXMLTypePackage = org.eclipse.emf.ecore.xml.type.XMLTypePackage.eNS_URI.equals(genPackage.getNSURI());%>/]
- [if (not genPackage.isXMLTypePackage())]
-[genModel.getImportedName('org.eclipse.emf.ecore.xmi.XMLResource')/]
-[genModel.getImportedName('org.eclipse.emf.ecore.xmi.XMLParserPool')/]
-[genModel.getImportedName('org.eclipse.emf.ecore.xmi.impl.XMLParserPoolImpl')/]
-[genModel.getImportedName('java.io.InputStream')/]
-[genModel.getImportedName('java.io.IOException')/]
-[genModel.getImportedName('org.eclipse.emf.ecore.EObject')/]
-[genModel.getImportedName('java.util.Collections')/]
-[genModel.getImportedName('java.util.HashMap')/]
-[genModel.getImportedName('java.util.Map')/]
-[genModel.getImportedName('org.xml.sax.InputSource')/]
-[genModel.getImportedName('javax.xml.parsers.SAXParser')/]
- [/if]
-[genModel.getImportedName('org.xml.sax.Attributes')/]
-[genModel.getImportedName('org.xml.sax.SAXException')/]
-[let _StackFrame : String = genModel.getImportedName('org.eclipse.emf.ecore.xml.type.util.XMLTypeResourceImpl') + '.StackFrame']
-[let _DataFrame : String = genModel.getImportedName('org.eclipse.emf.ecore.xml.type.util.XMLTypeResourceImpl') + '.DataFrame']
- [if (not genPackage.isXMLTypePackage())]
- /**
- * A load option that turns of the use of the generate data converters.
- *
- *
- * @generated
- */
- public static final String OPTION_USE_DATA_CONVERTER = "USE_DATA_CONVERTER";
-
- /**
- *
- *
- * @generated
- */
- [if (genModel.useClassOverrideAnnotation())]
- @Override
- [/if]
- public void doLoad(InputStream inputStream, [_Map/] options) throws IOException
- {
- if (options != null && Boolean.TRUE.equals(options.get(OPTION_USE_DATA_CONVERTER)))
- {
- getContents().add
- (load
- (new InputSource(inputStream),
- ([_MapStringBoolean/])options.get(XMLResource.OPTION_PARSER_FEATURES),
- ([_MapStringWildcard/])options.get(XMLResource.OPTION_PARSER_PROPERTIES),
- Boolean.TRUE.equals(options.get(XMLResource.OPTION_USE_LEXICAL_HANDLER))).eContainer());
- }
- else
- {
- super.doLoad(inputStream, options);
- }
- }
-
- /**
- *
- *
- * @generated
- */
- [if (genModel.useClassOverrideAnnotation())]
- @Override
- [/if]
- public void doLoad(InputSource inputSource, [_Map/] options) throws IOException
- {
- if (options != null && Boolean.TRUE.equals(options.get(OPTION_USE_DATA_CONVERTER)))
- {
- getContents().add
- (load
- (inputSource,
- ([_MapStringBoolean/])options.get(XMLResource.OPTION_PARSER_FEATURES),
- ([_MapStringWildcard/])options.get(XMLResource.OPTION_PARSER_PROPERTIES),
- Boolean.TRUE.equals(options.get(XMLResource.OPTION_USE_LEXICAL_HANDLER))).eContainer());
- }
- else
- {
- super.doLoad(inputSource, options);
- }
- }
-
- /**
- *
- *
- * @generated
- */
- protected static final XMLParserPool parserPool = new XMLParserPoolImpl();
-
- /**
- * Loads an instance from the input.
- *
- *
- * @param inputSource the input from which to load.
- * @param features a map of the parser features and their values.
- * @param properties a map of a parser properties and their values.
- * @param useLexicalHandler whether a lexical handler should be used during loading.
- * @return the root object; for the case of a document root, the child of that document root is return.
- * @throws ParserConfigurationException
- * @throws SAXException
- * @generated
- */
- public static EObject load(InputSource inputSource, [_MapStringBoolean/] features, [_MapStringWildcard/] properties, boolean useLexicalHandler) throws IOException
- {
- [_MapStringBoolean/] requiredFeatures = new [_MapStringBoolean.replaceAll('Map','HashMap')/]();
- requiredFeatures.put("http://xml.org/sax/features/namespaces", Boolean.TRUE);
- if (features != null)
- {
- requiredFeatures.putAll(features);
- }
-
- if (properties == null)
- {
- properties = Collections.[if (genModel.useGenerics())]emptyMap()[else]EMPTY_MAP[/if];
- }
-
- SAXParser saxParser = null;
- try
- {
- saxParser = parserPool.get(requiredFeatures, properties, useLexicalHandler);
- final FrameFactory.DocumentRootStackFrame documentRoot = FrameFactory.INSTANCE.pushDocumentRoot(null, null);
- XMLTypeResourceImpl.Handler handler = new XMLTypeResourceImpl.Handler(documentRoot);
- saxParser.parse(inputSource, handler);
- [if (genModel.suppressEMFTypes)]
- return (EObject)((EObject)FrameFactory.INSTANCE.popDocumentRoot(documentRoot)).eContents().get(0);
- [else]
- return FrameFactory.INSTANCE.popDocumentRoot(documentRoot).eContents().get(0);
- [/if]
- }
- catch (Exception exception)
- {
- throw new IOWrappedException(exception);
- }
- finally
- {
- parserPool.release(saxParser, requiredFeatures, properties, useLexicalHandler);
- }
- }
-
- [/if]
- /**
- *
- *
- * @generated
- */
- public final static class FrameFactory
- {
- /**
- *
- *
- * @generated
- */
- public static final FrameFactory INSTANCE = new FrameFactory();
-
- [for (genClass : GenClass | genPackage.genClasses)]
- /**
- *
- *
- * @generated
- */
- protected [genClass.getName()/]StackFrame [genClass.getSafeUncapName()/];
-
- [/for]
- [for (genDataType : GenDataType | genPackage.getAllGenDataTypes())]
- /**
- *
- *
- * @generated
- */
- protected [_DataFrame/] [genDataType.getSafeUncapName()/];
-
- [/for]
- [for (genClass : GenClass | genPackage.genClasses)]
- [let attributes : Sequence(EStructuralFeature) = genModel.getAllExtendedMetaDataAttributes(genClass.ecoreClass)]
- [let elements : Sequence(EStructuralFeature) = genModel.getAllExtendedMetaDataElements(genClass.ecoreClass)]
- /**
- *
- *
- * @generated
- */
- public [genClass.getName()/]StackFrame push[genClass.getName()/]([_StackFrame/] previous, Attributes attributes)
- {
- [genClass.getName()/]StackFrame result[genClass.getName()/] = [genClass.getSafeUncapName()/] == null ? new [genClass.getName()/]StackFrame() : [genClass.getSafeUncapName()/];
- [genClass.getSafeUncapName()/] = null;
- result[genClass.getName()/].pushOnto(previous);
- result[genClass.getName()/].handleAttributes(attributes);
- return result[genClass.getName()/];
- }
-
- /**
- *
- *
- * @generated
- */
- public [genClass.getImportedInterfaceName()/] pop[genClass.getName()/]([genClass.getName()/]StackFrame [genClass.getSafeUncapName()/])
- {
- [genClass.getImportedInterfaceName()/] result[genClass.getName()/]Value = [genClass.getSafeUncapName()/].pop[genClass.getName()/]();
- this.[genClass.getSafeUncapName()/] = [genClass.getSafeUncapName()/];
- return result[genClass.getName()/]Value;
- }
-
- /**
- *
- *
- * @generated
- */
- public static class [genClass.getName()/]StackFrame extends [_StackFrame/]
- {
- /**
- *
- *
- * @generated
- */
- protected [genClass.getImportedInterfaceName()/] the[genClass.getName()/];
-
- [for (genFeature : GenFeature | genClass.getAllGenFeatures())]
- [let name : String = genModel.getExtendedMetaDataName(genFeature.ecoreFeature)]
- [if ((elements->includes(genFeature.ecoreFeature) or attributes->includes(genFeature.ecoreFeature)) and name.index(':') < 0)]
- [if (genFeature.isReferenceType())]
- /**
- *
- *
- * @generated
- */
- protected [genFeature.getTypeGenClass().genPackage.getImportedResourceClassName()/].FrameFactory.[genFeature.getTypeGenClass().getName()/]StackFrame [genFeature.getSafeName()/];
-
- [else]
- /**
- *
- *
- * @generated
- */
- protected [_DataFrame/] [genFeature.getSafeName()/];
-
- [/if]
- [/if]
- [/let]
- [/for]
- /**
- *
- *
- * @generated
- */
- [if (genModel.useClassOverrideAnnotation())]
- @Override
- [/if]
- public void handleAttributes(Attributes attributes)
- {
- [comment int count = 0; for (GenFeature genFeature : genClass.getAllGenFeatures()) /]
- [let featuresToHandle : Sequence(GenFeature) = genClass.getAllGenFeatures()->filter(GenFeature)
- ->select(f : GenFeature| attributes->includes(f.ecoreFeature)
- and not f.isDerived()
- and genModel.getExtendedMetaDataName(f.ecoreFeature).index(':') < 0
- and not f.isReferenceType())]
- [for (genFeature : GenFeature | featuresToHandle)]
- [let name : String = genModel.getExtendedMetaDataName(genFeature.ecoreFeature)]
- [let namespace : String = genModel.getExtendedMetaDataNamespaceAsLiteral(genFeature.ecoreFeature)]
- [let genClassifier : GenClassifier = genFeature.getTypeGenClassifier()]
- [if (i = 0)]
- String theValue = attributes.getValue([namespace/], "[name/]");
- [else]
- theValue = attributes.getValue([namespace/], "[name/]");
- [/if]
- if (theValue != null)
- {
- [if (genClassifier.genPackage.dataTypeConverters)]
- the[genClass.getName()/].set[genFeature.getAccessorName()/]([genClassifier.genPackage.getQualifiedFactoryInstanceAccessor()/].create[genClassifier.getName()/](theValue));
- [else]
- the[genClass.getName()/].set[genFeature.getAccessorName()/](([genFeature.getImportedType(null)/])[genClassifier.genPackage.getQualifiedEFactoryInstanceAccessor()/].createFromString([genClassifier.getQualifiedClassifierAccessor()/], theValue));
- [/if]
- }
- [/let]
- [/let]
- [/let]
- [/for]
- [if (featuresToHandle->isEmpty())]
- // There are attributes to handle.
- [/if]
- [/let]
- }
-
- /**
- *
- *
- * @generated
- */
- [if (genModel.useClassOverrideAnnotation())]
- @Override
- [/if]
- public [_StackFrame/] startElement(String namespace, String localName, String qName, Attributes attributes) throws SAXException
- {
- [let featuresToHandle : Sequence(GenFeature) = genClass.getAllGenFeatures()->filter(GenFeature)
- ->select(f : GenFeature | elements->includes(f.ecoreFeature)
- and genModel.getExtendedMetaDataName(f.ecoreFeature).index(':') < 0)]
- [for (genFeature : GenFeature | featuresToHandle)]
- [let name : String = genModel.getExtendedMetaDataName(genFeature.ecoreFeature)]
- [let namespace : String = genModel.getExtendedMetaDataNamespaceAsLiteral(genFeature.ecoreFeature)]
- [if (i > 0)]else [/if]if ("[name/]".equals(localName) && [namespace/].equals(namespace))
- {
- return [genFeature.getSafeName()/] = [genFeature.getTypeGenClassifier().genPackage.getImportedResourceClassName()/].FrameFactory.INSTANCE.push[genFeature.getTypeGenClassifier().getName()/](this, attributes);
- }
- [/let]
- [/let]
- [/for]
- [if (featuresToHandle->isEmpty())]
- return super.startElement(namespace, localName, qName, attributes);
- [else]
- else
- {
- return super.startElement(namespace, localName, qName, attributes);
- }
- [/if]
- [/let]
- }
-
- /**
- *
- *
- * @generated
- */
- [if (genModel.useClassOverrideAnnotation())]
- @Override
- [/if]
- public void endElement([_StackFrame/] child) throws SAXException
- {
- [let featuresToHandle : Sequence(GenFeature) = genClass.getAllGenFeatures()->filter(GenFeature)
- ->select(f : GenFeature | elements->includes(f.ecoreFeature)
- and genModel.getExtendedMetaDataName(f.ecoreFeature).index(':') < 0)]
- [for (genFeature : GenFeature | featuresToHandle)]
- [let name : String = genModel.getExtendedMetaDataName(genFeature.ecoreFeature)]
- [if (i > 0)]else [/if]if (child == [genFeature.getSafeName()/])
- {
- [if (genFeature.isListType())]
- the[genClass.getName()/].[genFeature.getGetAccessor()/]().add([genFeature.getTypeGenClassifier().genPackage.getImportedResourceClassName()/].FrameFactory.INSTANCE.pop[genFeature.getTypeGenClassifier().getName()/]([genFeature.getSafeName()/]));
- [else]
- the[genClass.getName()/].set[genFeature.getAccessorName()/]([genFeature.getTypeGenClassifier().genPackage.getImportedResourceClassName()/].FrameFactory.INSTANCE.pop[genFeature.getTypeGenClassifier().getName()/]([genFeature.getSafeName()/]));
- [/if]
- [genFeature.getSafeName()/] = null;
- }
- [/let]
- [/for]
- [if (featuresToHandle->isEmpty())]
- super.endElement(child);
- [else]
- else
- {
- super.endElement(child);
- }
- [/if]
- [/let]
- }
-
- /**
- *
- *
- * @generated
- */
- [if (genModel.useClassOverrideAnnotation())]
- @Override
- [/if]
- public void create()
- {
- the[genClass.getName()/] = [genPackage.getQualifiedFactoryInstanceAccessor()/].create[genClass.getName()/]();
- }
-
- /**
- *
- *
- * @generated
- */
- protected [genClass.getImportedInterfaceName()/] pop[genClass.getName()/]()
- {
- pop();
- [genClass.getImportedInterfaceName()/] result[genClass.getName()/]Value = the[genClass.getName()/];
- the[genClass.getName()/] = null;
- return result[genClass.getName()/]Value;
- }
-
- }
-
- [/let]
- [/let]
- [/for]
- [for (genDataType : GenDataType | genPackage.getAllGenDataTypes())]
- /**
- *
- *
- * @generated
- */
- public [_DataFrame/] push[genDataType.getName()/]([_StackFrame/] previous, Attributes attributes)
- {
- [_DataFrame/] result[genDataType.getName()/] = [genDataType.getSafeUncapName()/] == null ? new [_DataFrame/]() : [genDataType.getSafeUncapName()/];
- [genDataType.getSafeUncapName()/] = null;
- result[genDataType.getName()/].pushOnto(previous);
- result[genDataType.getName()/].handleAttributes(attributes);
- return result[genDataType.getName()/];
- }
-
- /**
- *
- *
- * @generated
- */
- public [genDataType.getImportedParameterizedInstanceClassName()/] pop[genDataType.getName()/]([_DataFrame/] [genDataType.getSafeUncapName()/])
- {
- [if (genDataType.genPackage.dataTypeConverters)]
- [genDataType.getImportedParameterizedInstanceClassName()/] result[genDataType.getName()/]Value = [genDataType.genPackage.getQualifiedFactoryInstanceAccessor()/].create[genDataType.getName()/]([genDataType.getSafeUncapName()/].popValue());
- [else][if (genDataType.isPrimitiveType() and not genModel.isJDK50())]
- [genDataType.getImportedInstanceClassName()/] result[genDataType.getName()/]Value = (([genDataType.getObjectInstanceClassName()/])[genDataType.genPackage.getQualifiedEFactoryInstanceAccessor()/].createFromString([genDataType.getQualifiedClassifierAccessor()/], [genDataType.getSafeUncapName()/].popValue())).[genDataType.getPrimitiveValueFunction()/]();
- [else]
- [genDataType.getImportedInstanceClassName()/] result[genDataType.getName()/]Value = ([genDataType.getObjectInstanceClassName()/])[genDataType.genPackage.getQualifiedEFactoryInstanceAccessor()/].createFromString([genDataType.getQualifiedClassifierAccessor()/], [genDataType.getSafeUncapName()/].popValue());
- [/if][/if]
- this.[genDataType.getSafeUncapName()/] = [genDataType.getSafeUncapName()/];
- return result[genDataType.getName()/]Value;
- }
-
- [/for]
- }
-
-[/let]
-[/let]
-[/let]
-[/let]
-[/let]
-[/if]
-} //[className/]
-[/template]
-
-[query public resourceClassPath(genPackage : GenPackage) : String
- = genPackage.genModel.extractSourceDirectory(genPackage.genModel.modelDirectory) + '/'
- + genPackage.getQualifiedResourceClassName().toPath() + '.java'/]
diff --git a/plugins/org.eclipse.emf.eef.codegen.ecore/src/org/eclipse/emf/eef/codegen/ecore/model/ResourceFactoryClass.mtl b/plugins/org.eclipse.emf.eef.codegen.ecore/src/org/eclipse/emf/eef/codegen/ecore/model/ResourceFactoryClass.mtl
deleted file mode 100644
index a4b5943b6..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.ecore/src/org/eclipse/emf/eef/codegen/ecore/model/ResourceFactoryClass.mtl
+++ /dev/null
@@ -1,140 +0,0 @@
-[comment encoding = UTF-8 /]
-[module ResourceFactoryClass('http://www.eclipse.org/emf/2002/GenModel', 'http://www.eclipse.org/emf/2002/Ecore')/]
-
-[import org::eclipse::emf::eef::codegen::ecore::services::common /]
-[import org::eclipse::emf::eef::codegen::ecore::services::header /]
-[import org::eclipse::emf::eef::codegen::ecore::services::wrappers::GenModel /]
-[import org::eclipse::emf::eef::codegen::ecore::services::wrappers::GenPackage /]
-[import org::eclipse::emf::eef::codegen::ecore::services::wrappers::GenClass /]
-[import org::eclipse::emf::eef::codegen::ecore::services::wrappers::GenClassifier /]
-[import org::eclipse::emf::eef::codegen::ecore::services::wrappers::GenFeature /]
-[import org::eclipse::emf::eef::codegen::ecore::services::wrappers::GenDataType /]
-[import org::eclipse::emf::eef::codegen::ecore::services::StringUtil /]
-
-[comment]
-/**
- *
- *
- * Copyright (c) 2002-2006 IBM Corporation and others.
- * 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:
- * IBM - Initial API and implementation
- *
- *
- */
-[/comment]
-
-[template public resourceFactoryClass(genPackage : GenPackage) { genModel : GenModel = genPackage.genModel; packageName : String = genPackage.getUtilitiesPackageName(); className : String = genPackage.getResourceFactoryClassName();} ]
-[genModel.initializeImportManager(packageName, className)/]
-
-[genModel.getImportedName('org.eclipse.emf.common.util.URI')/]
-[genModel.getImportedName('org.eclipse.emf.ecore.resource.Resource')/]
-
-[file (genPackage.resourceFactoryClassPath(), false, 'UTF-8')]
-[genModel.includeHeader()/]
-package [packageName/];
-[let content : String = genPackage.resourceFactoryFileContent(genModel)]
-[genModel.genSortedImports()/]
-
-[content/]
-[/let]
-[/file]
-[/template]
-
-[template protected resourceFactoryFileContent(genPackage : GenPackage, genModel : GenModel)]
-/**
- *
- * The Resource Factory associated with the package.
- *
- * @see [genPackage.getQualifiedResourceClassName()/]
- * @generated
- */
-public class [genPackage.getResourceFactoryClassName()/] extends [genPackage.getImportedResourceFactoryBaseClassName()/] {
-[if (genModel.hasCopyrightField())]
- /**
- *
- *
- * @generated
- */
- public static final [genModel.getImportedName('java.lang.String')/] copyright = [genModel.getCopyrightFieldLiteral()/];[genModel.getNonNLS()/]
-
-[/if]
-[if (genPackage.hasExtendedMetaData() and not genPackage.hasTargetNamespace())]
- /**
- *
- *
- * @generated
- */
- protected [genModel.getImportedName('org.eclipse.emf.ecore.util.ExtendedMetaData')/] extendedMetaData;
-
-[else][if (genPackage.hasXMLMap())]
- /**
- *
- *
- * @generated
- */
- protected [genModel.getImportedName('org.eclipse.emf.ecore.xmi.XMLResource$XMLMap')/] xmlMap = new [genModel.getImportedName('org.eclipse.emf.ecore.xmi.impl.XMLMapImpl')/]();
-
-[/if][/if]
- /**
- * Creates an instance of the resource factory.
- *
- *
- * @generated
- */
- public [genPackage.getResourceFactoryClassName()/]()
- {
- super();
-[if (genPackage.hasExtendedMetaData() and not genPackage.hasTargetNamespace())]
- extendedMetaData = new [genModel.getImportedName('org.eclipse.emf.ecore.util.BasicExtendedMetaData')/](new [genModel.getImportedName('org.eclipse.emf.ecore.impl.EPackageRegistryImpl')/]([genModel.getImportedName('org.eclipse.emf.ecore.EPackage')/].Registry.INSTANCE));
- extendedMetaData.putPackage(null, [genPackage.getImportedPackageInterfaceName()/].eINSTANCE);
-[else][if (genPackage.hasXMLMap() and not genPackage.hasTargetNamespace())]
- xmlMap.setNoNamespacePackage([genPackage.getImportedPackageInterfaceName()/].eINSTANCE);
-[/if][/if]
- }
-
- /**
- * Creates an instance of the resource.
- *
- *
- * @generated
- */
- [if (genModel.useClassOverrideAnnotation())]
- @Override
- [/if]
- public Resource createResource(URI uri)
- {
-[if (genPackage.hasExtendedMetaData())]
- [genModel.getImportedName('org.eclipse.emf.ecore.xmi.XMLResource')/] result = new [genPackage.getResourceClassName()/](uri);
- result.getDefaultSaveOptions().put([genModel.getImportedName('org.eclipse.emf.ecore.xmi.XMLResource')/].OPTION_EXTENDED_META_DATA, [if (genPackage.hasTargetNamespace())]Boolean.TRUE[else]extendedMetaData[/if]);
- result.getDefaultLoadOptions().put([genModel.getImportedName('org.eclipse.emf.ecore.xmi.XMLResource')/].OPTION_EXTENDED_META_DATA, [if (genPackage.hasTargetNamespace())]Boolean.TRUE[else]extendedMetaData[/if]);
-
- result.getDefaultSaveOptions().put([genModel.getImportedName('org.eclipse.emf.ecore.xmi.XMLResource')/].OPTION_SCHEMA_LOCATION, Boolean.TRUE);
-
- result.getDefaultLoadOptions().put([genModel.getImportedName('org.eclipse.emf.ecore.xmi.XMLResource')/].OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE);
- result.getDefaultSaveOptions().put([genModel.getImportedName('org.eclipse.emf.ecore.xmi.XMLResource')/].OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE);
-
- result.getDefaultLoadOptions().put([genModel.getImportedName('org.eclipse.emf.ecore.xmi.XMLResource')/].OPTION_USE_LEXICAL_HANDLER, Boolean.TRUE);
- [if (genPackage.dataTypeConverters and genPackage.hasDocumentRoot())]
- result.getDefaultLoadOptions().put([genPackage.getResourceClassName()/].OPTION_USE_DATA_CONVERTER, Boolean.TRUE);
- [/if]
-[else][if (genPackage.hasXMLMap())]
- [genModel.getImportedName('org.eclipse.emf.ecore.xmi.XMLResource')/] result = new [genPackage.getResourceClassName()/](uri);
- result.getDefaultSaveOptions().put([genModel.getImportedName('org.eclipse.emf.ecore.xmi.XMLResource')/].OPTION_XML_MAP, xmlMap);
- result.getDefaultLoadOptions().put([genModel.getImportedName('org.eclipse.emf.ecore.xmi.XMLResource')/].OPTION_XML_MAP, xmlMap);
-[else]
- Resource result = new [genPackage.getResourceClassName()/](uri);
-[/if][/if]
- return result;
- }
-
-} //[genPackage.getResourceFactoryClassName()/]
-[/template]
-
-[query public resourceFactoryClassPath(genPackage : GenPackage) : String
- = genPackage.genModel.extractSourceDirectory(genPackage.genModel.modelDirectory) + '/'
- + genPackage.getQualifiedResourceFactoryClassName().toPath() + '.java'/]
diff --git a/plugins/org.eclipse.emf.eef.codegen.ecore/src/org/eclipse/emf/eef/codegen/ecore/model/SwitchClass.mtl b/plugins/org.eclipse.emf.eef.codegen.ecore/src/org/eclipse/emf/eef/codegen/ecore/model/SwitchClass.mtl
deleted file mode 100644
index 5f8582af5..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.ecore/src/org/eclipse/emf/eef/codegen/ecore/model/SwitchClass.mtl
+++ /dev/null
@@ -1,227 +0,0 @@
-[comment encoding = UTF-8 /]
-[module SwitchClass('http://www.eclipse.org/emf/2002/GenModel', 'http://www.eclipse.org/emf/2002/Ecore')/]
-
-[import org::eclipse::emf::eef::codegen::ecore::services::common /]
-[import org::eclipse::emf::eef::codegen::ecore::services::header /]
-[import org::eclipse::emf::eef::codegen::ecore::services::wrappers::GenModel /]
-[import org::eclipse::emf::eef::codegen::ecore::services::wrappers::GenPackage /]
-[import org::eclipse::emf::eef::codegen::ecore::services::wrappers::GenClass /]
-[import org::eclipse::emf::eef::codegen::ecore::services::wrappers::GenClassifier /]
-[import org::eclipse::emf::eef::codegen::ecore::services::wrappers::GenParameter /]
-[import org::eclipse::emf::eef::codegen::ecore::services::wrappers::GenFeature /]
-[import org::eclipse::emf::eef::codegen::ecore::services::wrappers::GenDataType /]
-[import org::eclipse::emf::eef::codegen::ecore::services::StringUtil /]
-
-[comment]
-/**
- *
- *
- * Copyright (c) 2002-2006 IBM Corporation and others.
- * 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:
- * IBM - Initial API and implementation
- *
- *
- */
-[/comment]
-
-[template public switchClass(genPackage : GenPackage) { genModel : GenModel = genPackage.genModel;
- packageName : String = genPackage.getUtilitiesPackageName();
- className : String = genPackage.getSwitchClassName();
- supportsComposition : Boolean = genModel.supportsComposition();} ]
-[genModel.initializeImportManager(packageName, className)/]
-
-[if (supportsComposition)]
-[genModel.addImport('org.eclipse.emf.ecore.EObject')/]
-[genModel.addImport('org.eclipse.emf.ecore.EPackage')/]
-[genModel.addImport('org.eclipse.emf.ecore.util.Switch')/]
-[else]
-[genModel.addImport('org.eclipse.emf.ecore.EClass')/]
-[genModel.addImport('org.eclipse.emf.ecore.EObject')/]
-[/if]
-[if (not genPackage.hasJavaLangConflict() and genPackage.getUtilitiesPackageName() <> genPackage.getInterfacePackageName())]
-[genModel.addImport(genPackage.getInterfacePackageName() + '.*')/]
-[/if]
-
-[file (genPackage.switchClassPath(), false, 'UTF-8')]
-[genModel.includeHeader()/]
-package [packageName/];
-[let templateParameterName : String = genPackage.computeSwitchGenericTypeName()]
- [let templateParameters : String = if (genModel.useGenerics()) then '<' + templateParameterName + '>' else '' endif]
- [let returnType : String = if (genModel.useGenerics()) then templateParameterName else genModel.getImportedName('java.lang.Object') endif]
- [let content : String = genPackage.switchFileContent(genModel, templateParameters, returnType, supportsComposition, className)]
-[genModel.genSortedImports()/]
-
-[content/]
- [/let]
- [/let]
- [/let]
-[/let]
-[/file]
-[/template]
-
-[template protected switchFileContent(genPackage : GenPackage, genModel : GenModel, templateParameters : String, returnType : String, supportsComposition : Boolean, className : String)]
-/**
- *
- * The Switch for the model's inheritance hierarchy.
- * It supports the call {@link #doSwitch(EObject) doSwitch(object)}
- * to invoke the caseXXX method for each class of the model,
- * starting with the actual class of the object
- * and proceeding up the inheritance hierarchy
- * until a non-null result is returned,
- * which is the result of the switch.
- *
- * @see [genPackage.getQualifiedPackageInterfaceName()/]
- * @generated
- */
-public class [className/][templateParameters/][if (supportsComposition)] extends Switch[templateParameters/][/if] {
-[if (genModel.hasCopyrightField())]
- /**
- *
- *
- * @generated
- */
- public static final [genModel.getImportedName('java.lang.String')/] copyright = [genModel.getCopyrightFieldLiteral()/];[genModel.getNonNLS()/]
-
-[/if]
- /**
- * The cached model package
- *
- *
- * @generated
- */
- protected static [genPackage.getImportedPackageInterfaceName()/] modelPackage;
-
- /**
- * Creates an instance of the switch.
- *
- *
- * @generated
- */
- public [genPackage.getSwitchClassName()/]() {
- if (modelPackage == null) {
- modelPackage = [genPackage.getImportedPackageInterfaceName()/].eINSTANCE;
- }
- }
-
-[if (supportsComposition)]
- /**
- * Checks whether this is a switch for the given package.
- *
- *
- * @parameter ePackage the package in question.
- * @return whether this is a switch for the given package.
- * @generated
- */
- @Override
- protected boolean isSwitchFor(EPackage ePackage) {
- return ePackage == modelPackage;
- }
-[else]
- /**
- * Calls caseXXX for each class of the model until one returns a non null result; it yields that result.
- *
- *
- * @return the first non-null result returned by a caseXXX call.
- * @generated
- */
- public [returnType/] doSwitch(EObject theEObject) {
- return doSwitch(theEObject.eClass(), theEObject);
- }
-
- /**
- * Calls caseXXX for each class of the model until one returns a non null result; it yields that result.
- *
- *
- * @return the first non-null result returned by a caseXXX call.
- * @generated
- */
- protected [returnType/] doSwitch(EClass theEClass, EObject theEObject) {
- if (theEClass.eContainer() == modelPackage) {
- return doSwitch(theEClass.getClassifierID(), theEObject);
- } else {
- [genModel.getImportedName('java.util.List')/][if (genModel.useGenerics())]<[genModel.getImportedName('org.eclipse.emf.ecore.EClass')/]>[/if] eSuperTypes = theEClass.getESuperTypes();
- return
- eSuperTypes.isEmpty() ?
- defaultCase(theEObject) :
- doSwitch([if (not genModel.useGenerics())](EClass)[/if]eSuperTypes.get(0), theEObject);
- }
- }
-[/if]
-
- /**
- * Calls caseXXX for each class of the model until one returns a non null result; it yields that result.
- *
- *
- * @return the first non-null result returned by a caseXXX call.
- * @generated
- */
-[if (supportsComposition)]
- @Override
-[/if]
- protected [returnType/] doSwitch(int classifierID, EObject theEObject) {
- switch (classifierID) {
-[for (genClass : GenClass | genPackage.genClasses)]
-[if (not genClass.isExternalInterface() and not genClass.isEObject() or genClass.isMapEntry())]
- [let result : String = if ('result' = genClass.getSafeUncapName()) then 'theResult' else 'result' endif]
- case [genPackage.getImportedPackageInterfaceName()/].[genPackage.getClassifierID(genClass)/]: {
- [if (genClass.isUncheckedCast() or genClass.isMapEntry() and genModel.isJDK50())]@SuppressWarnings("unchecked") [/if][genClass.getImportedInterfaceName()/][genClass.getInterfaceWildTypeArguments()/] [genClass.getSafeUncapName()/] = ([genClass.getImportedInterfaceName()/][genClass.getInterfaceWildTypeArguments()/])theEObject;
- [returnType/] [result/] = case[genPackage.getClassUniqueName(genClass)/]([genClass.getSafeUncapName()/]);
- [for (baseGenClass : GenClass | genClass.getSwitchGenClasses())]
- if ([result/] == null) [result/] = case[genPackage.getClassUniqueName(baseGenClass)/]([if (genClass.isMapEntry())]([baseGenClass.getImportedInterfaceName()/][baseGenClass.getInterfaceTypeArguments()/])[/if][genClass.getSafeUncapName()/]);
- [/for]
- if ([result/] == null) [result/] = defaultCase(theEObject);
- return [result/];
- }
- [/let]
-[/if]
-[/for]
- default: return defaultCase(theEObject);
- }
- }
-[for (genClass : GenClass | genPackage.getAllSwitchGenClasses())]
-
- /**
- * Returns the result of interpreting the object as an instance of '[genClass.getFormattedName()/]'.
- *
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- *
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of '[genClass.getFormattedName()/]'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public [genClass.getTypeParameters()/][returnType/] case[genPackage.getClassUniqueName(genClass)/]([genClass.getImportedInterfaceName()/][genClass.getInterfaceTypeArguments()/] object) {
- return null;
- }
-[/for]
-
- /**
- * Returns the result of interpreting the object as an instance of 'EObject'.
- *
- * This implementation returns null;
- * returning a non-null result will terminate the switch, but this is the last case anyway.
- *
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of 'EObject'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject)
- * @generated
- */
-[if (supportsComposition)]
- @Override
-[/if]
- public [returnType/] defaultCase(EObject object) {
- return null;
- }
-
-} //[className/]
-[/template]
-
-[query public switchClassPath(genPackage : GenPackage) : String
- = genPackage.genModel.extractSourceDirectory(genPackage.genModel.modelDirectory) + '/'
- + genPackage.getQualifiedSwitchClassName().toPath() + '.java'/]
diff --git a/plugins/org.eclipse.emf.eef.codegen.ecore/src/org/eclipse/emf/eef/codegen/ecore/model/ValidatorClass.mtl b/plugins/org.eclipse.emf.eef.codegen.ecore/src/org/eclipse/emf/eef/codegen/ecore/model/ValidatorClass.mtl
deleted file mode 100644
index 3d3715991..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.ecore/src/org/eclipse/emf/eef/codegen/ecore/model/ValidatorClass.mtl
+++ /dev/null
@@ -1,749 +0,0 @@
-[comment encoding = UTF-8 /]
-[module ValidatorClass('http://www.eclipse.org/emf/2002/GenModel', 'http://www.eclipse.org/emf/2002/Ecore')/]
-
-[import org::eclipse::emf::eef::codegen::ecore::services::common /]
-[import org::eclipse::emf::eef::codegen::ecore::services::header /]
-[import org::eclipse::emf::eef::codegen::ecore::services::wrappers::GenModel /]
-[import org::eclipse::emf::eef::codegen::ecore::services::wrappers::GenPackage /]
-[import org::eclipse::emf::eef::codegen::ecore::services::wrappers::GenClass /]
-[import org::eclipse::emf::eef::codegen::ecore::services::wrappers::GenClassifier /]
-[import org::eclipse::emf::eef::codegen::ecore::services::wrappers::GenOperation /]
-[import org::eclipse::emf::eef::codegen::ecore::services::wrappers::GenParameter /]
-[import org::eclipse::emf::eef::codegen::ecore::services::wrappers::GenFeature /]
-[import org::eclipse::emf::eef::codegen::ecore::services::wrappers::GenDataType /]
-[import org::eclipse::emf::eef::codegen::ecore::services::StringUtil /]
-
-[comment]
-/**
- *
- *
- * Copyright (c) 2002-2011 IBM Corporation and others.
- * 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:
- * IBM - Initial API and implementation
- *
- *
- */
-[/comment]
-
-[template public validatorClass(genPackage : GenPackage) { genModel : GenModel = genPackage.genModel;
- packageName : String = genPackage.getUtilitiesPackageName();
- className : String = genPackage.getValidatorClassName();
- singleWildcard : String = if genModel.isJDK50() then '>' else '' endif;} ]
-[genModel.initializeImportManager(packageName, className)/]
-
-[genModel.addImport('java.util.Map')/]
-[let _Map : String = if genModel.useGenerics() then
- 'Map<' + genModel.getImportedName('java.lang.Object') + ', ' + genModel.getImportedName('java.lang.Object') + '>'
- else
- 'Map'
- endif]
- [let objectArgument : String = if genModel.useGenerics() then
- '<' + genModel.getImportedName('java.lang.Object') + '>'
- else
- ''
- endif]
-[genModel.addImport('org.eclipse.emf.common.util.DiagnosticChain')/]
-[genModel.addImport('org.eclipse.emf.ecore.EPackage')/]
-[if (not genPackage.hasJavaLangConflict() and genPackage.getUtilitiesPackageName() <> genPackage.getInterfacePackageName())]
- [genModel.addImport(genPackage.getInterfacePackageName() + '.*')/]
-[/if]
-[genModel.addPseudoImport('org.eclipse.emf.ecore.EValidator.Descriptor')/]
-[genModel.addPseudoImport('org.eclipse.emf.ecore.EValidator.Registry')/]
-[genModel.addPseudoImport('org.eclipse.emf.ecore.EValidator.SubstitutionLabelProvider')/]
-[genModel.addPseudoImport('org.eclipse.emf.ecore.EValidator.PatternMatcher')/]
-
- [file (genPackage.validatorClassPath(), false, 'UTF-8')]
-[genModel.includeHeader()/]
-package [packageName/];
- [let content : String = genPackage.validatorFileContent(genModel, singleWildcard, _Map, objectArgument)]
-[genModel.genSortedImports()/]
-[content/]
- [/let]
- [/file]
- [/let]
-[/let]
-[/template]
-
-[template protected validatorFileContent(genPackage : GenPackage, genModel : GenModel, singleWildcard : String, _Map : String, objectArgument : String)]
-/**
- *
- * The Validator for the model.
- *
- * @see [genPackage.getQualifiedPackageInterfaceName()/]
- * @generated
- */
-public class [genPackage.getValidatorClassName()/] extends [genModel.getImportedName('org.eclipse.emf.ecore.util.EObjectValidator')/]
-{
-[if (genModel.hasCopyrightField())]
- /**
- *
- *
- * @generated
- */
- public static final [genModel.getImportedName('java.lang.String')/] copyright = [genModel.getCopyrightFieldLiteral()/];[genModel.getNonNLS()/]
-
-[/if]
- /**
- * The cached model package
- *
- *
- * @generated
- */
- public static final [genPackage.getValidatorClassName()/] INSTANCE = new [genPackage.getValidatorClassName()/]();
-
- /**
- * A constant for the {@link org.eclipse.emf.common.util.Diagnostic#getSource() source} of diagnostic {@link org.eclipse.emf.common.util.Diagnostic#getCode() codes} from this package.
- *
- *
- * @see org.eclipse.emf.common.util.Diagnostic#getSource()
- * @see org.eclipse.emf.common.util.Diagnostic#getCode()
- * @generated
- */
- public static final String DIAGNOSTIC_SOURCE = "[genPackage.getInterfacePackageName()/]";[genModel.getNonNLS()/]
-
-[for (genClass : GenClass | genPackage.genClasses)]
- [let ic : Integer = i]
- [for (genOperation : GenOperation | genClass.getInvariantOperations())]
- [let io : Integer = i]
- /**
- * The {@link org.eclipse.emf.common.util.Diagnostic#getCode() code} for constraint '[genOperation.getFormattedName()/]' of '[genClass.getFormattedName()/]'.
- *
- *
- * @generated
- */
- public static final int [genClass.getOperationID(genOperation)/] = [ic + io/];
-
- [/let]
- [/for]
- [/let]
-[/for]
- /**
- * A constant with a fixed name that can be used as the base value for additional hand written constants.
- *
- *
- * @generated
- */
- private static final int GENERATED_DIAGNOSTIC_CODE_COUNT = [genPackage.genClasses.getInvariantOperations()->flatten()->size()/];
-
- /**
- * A constant with a fixed name that can be used as the base value for additional hand written constants in a derived class.
- *
- *
- * @generated
- */
- protected static final int DIAGNOSTIC_CODE_COUNT = GENERATED_DIAGNOSTIC_CODE_COUNT;
-
-[for (baseGenPackage : GenPackage | genPackage.getAllValidatorBaseGenPackages())]
- /**
- * The cached base package validator.
- *
- *
- * @generated
- */
- protected [baseGenPackage.getImportedValidatorClassName()/] [genPackage.getValidatorPackageUniqueSafeName(baseGenPackage)/]Validator;
-
-[/for]
-[if (genPackage.hasInvariantExpressions())]
- /**
- * Delegates evaluation of the given invariant expression against the object in the given context.
- *
- *
- * @generated
- */
- public static boolean validate([genModel.getImportedName('org.eclipse.emf.ecore.EClass')/] eClass, [genModel.getImportedName('org.eclipse.emf.ecore.EObject')/] eObject, DiagnosticChain diagnostics, [_Map/] context, [genModel.getImportedName('java.lang.String')/] validationDelegate, [genModel.getImportedName('org.eclipse.emf.ecore.EOperation')/] invariant, [genModel.getImportedName('java.lang.String')/] expression, int severity, [genModel.getImportedName('java.lang.String')/] source, int code)
- {
- return [genModel.getImportedName('org.eclipse.emf.ecore.util.EObjectValidator')/].validate(eClass, eObject, diagnostics, context, validationDelegate, invariant, expression, severity, source, code);
- }
-
-[/if]
- /**
- * Creates an instance of the switch.
- *
- *
- * @generated
- */
- public [genPackage.getValidatorClassName()/]()
- {
- super();
-[for (baseGenPackage : GenPackage | genPackage.getAllValidatorBaseGenPackages())]
- [genPackage.getValidatorPackageUniqueSafeName(baseGenPackage)/]Validator = [baseGenPackage.getImportedValidatorClassName()/].INSTANCE;
-[/for]
- }
-
- /**
- * Returns the package of this validator switch.
- *
- *
- * @generated
- */
- [if (genModel.useClassOverrideAnnotation())]
- @Override
- [/if]
- protected EPackage getEPackage()
- {
- return [genPackage.getImportedPackageInterfaceName()/].eINSTANCE;
- }
-
- /**
- * Calls validateXXX for the corresponding classifier of the model.
- *
- *
- * @generated
- */
- [if (genModel.useClassOverrideAnnotation())]
- @Override
- [/if]
- [if (genPackage.genClassifiers->exists(genClassifier : GenClassifier | genClassifier.isUncheckedCast()))]
- @SuppressWarnings("unchecked")
- [/if]
- protected boolean validate(int classifierID, Object value, DiagnosticChain diagnostics, [_Map/] context)
- {
- switch (classifierID)
- {
-[for (genClassifier : GenClassifier | genPackage.genClassifiers)]
- case [genPackage.getImportedPackageInterfaceName()/].[genPackage.getClassifierID(genClassifier)/]:
- [if (genClassifier.oclIsKindOf(GenDataType))]
- [let genDataType : GenDataType = genClassifier.oclAsType(GenDataType)]
- [if (genDataType.isPrimitiveType())]
- [if (not genModel.isJDK50())]
- return validate[genDataType.getName()/]((([genDataType.getObjectInstanceClassName()/])value).[genDataType.getPrimitiveValueFunction()/](), diagnostics, context);
- [else]
- return validate[genDataType.getName()/](([genDataType.getObjectInstanceClassName()/])value, diagnostics, context);
- [/if]
- [else][if (genDataType.isObjectType())]
- return validate[genDataType.getName()/](value, diagnostics, context);
- [else]
- return validate[genDataType.getName()/](([genDataType.getObjectType().getImportedWildcardInstanceClassName()/])value, diagnostics, context);
- [/if][/if]
- [/let]
- [else]
- [let genClass : GenClass = genClassifier.oclAsType(GenClass)]
- return validate[genClass.getName()/](([genClass.getImportedWildcardInstanceClassName()/])value, diagnostics, context);
- [/let]
- [/if]
-[/for]
- default:
- return true;
- }
- }
-
-[for (genClassifier : GenClassifier | genPackage.genClassifiers)][comment Due to a bug in Acceleo (or MTL's spec), we can't use properly init sections on for blocks... That's why we use "let".../]
- [let result : String = if ('result' = genClassifier.getSafeUncapName()) then 'theResult' else 'result' endif]
- [let diagnostics : String = if ('diagnostics' = genClassifier.getSafeUncapName()) then 'theDiagnostics' else 'diagnostics' endif]
- [let item : String = if ('item' = genClassifier.getSafeUncapName()) then 'theItem' else 'item' endif]
- [let _context : String = if ('context' = genClassifier.getSafeUncapName()) then 'theContext' else 'context' endif]
- /**
- *
- *
- * @generated
- */
- public boolean validate[genClassifier.getName()/]([genClassifier.getImportedWildcardInstanceClassName()/] [genClassifier.getSafeUncapName()/], DiagnosticChain [diagnostics/], [_Map/] [_context/])
- {
- [if (genClassifier.getAllGenConstraints()->isEmpty())]
- return true;
- [else][if (genClassifier.hasOnlyDefaultConstraints())]
- return validate_EveryDefaultConstraint([if (not genClassifier.oclAsType(GenClass).isEObjectExtension())]([genModel.getImportedName('org.eclipse.emf.ecore.EObject')/])[/if][genClassifier.getSafeUncapName()/], [diagnostics/], [_context/]);
- [else]
- [for (constraint : String | genClassifier.getAllGenConstraints())]
- [let constraintImplementor : GenClassifier = genClassifier.getConstraintImplementor(constraint)]
- [let delegate : String = if (constraintImplementor = null or constraintImplementor.genPackage = genPackage) then '' else genPackage.getValidatorPackageUniqueSafeName(constraintImplementor.genPackage) + 'Validator.' endif]
- [let cast : String = if (constraintImplementor = null and genClassifier.oclIsKindOf(GenClass) and not genClassifier.oclAsType(GenClass).isEObjectExtension()) then '(' + genModel.getImportedName('org.eclipse.emf.ecore.EObject') + ')' else '' endif]
- [let accessor : String = if (constraintImplementor <> null and genClassifier.oclIsKindOf(GenDataType) and not genClassifier.oclAsType(GenDataType).isPrimitiveType() and constraintImplementor.oclAsType(GenDataType).isPrimitiveType() and not genModel.isJDK50()) then '.' + constraintImplementor.oclAsType(GenDataType).getPrimitiveValueFunction() + '()' else '' endif]
- [if ('NoCircularContainment' = constraint)]
- if (!validate_NoCircularContainment([if (not genClassifier.oclAsType(GenClass).isEObjectExtension())]([genModel.getImportedName('org.eclipse.emf.ecore.EObject')/])[/if][genClassifier.getSafeUncapName()/], [diagnostics/], [_context/])) return false;
- [else][if (i = genClassifier.getIndexOfFirstConstraintDifferentFromNoCircular())]
- boolean [result/] = [delegate/]validate[if (constraintImplementor <> null)][constraintImplementor.getName()/][/if]_[constraint/]([cast/][genClassifier.getSafeUncapName()/][accessor/], [diagnostics/], [_context/]);
- [else]
- if ([result/] || [diagnostics/] != null) [result/] &= [delegate/]validate[if (constraintImplementor <> null)][constraintImplementor.getName()/][/if]_[constraint/]([cast/][genClassifier.getSafeUncapName()/][accessor/], [diagnostics/], [_context/]);
- [/if][/if]
- [/let]
- [/let]
- [/let]
- [/let]
- [/for]
- return [result/];
- [/if][/if]
- }
-
-[for (constraint : String | genClassifier.getGenConstraints())][comment Due to a bug in Acceleo (or MTL's spec), we can't use properly init sections on for blocks... That's why we use "let".../]
- [let constraintDelegate : GenClassifier = genClassifier.getConstraintDelegate(constraint)]
- [let constant : String = genClassifier.getClassifierID() + '__' + genModel.formatConstraint(constraint)]
- [let delegate : String = if (constraintDelegate = null or constraintDelegate.genPackage = genPackage) then '' else genPackage.getValidatorPackageUniqueSafeName(constraintDelegate.genPackage) + 'Validator.' endif]
- [let cast : String = if (constraintDelegate = null and genClassifier.oclIsKindOf(GenClass) and not genClassifier.oclAsType(GenClass).isEObjectExtension()) then '(' + genModel.getImportedName('org.eclipse.emf.ecore.EObject') + ')' else '' endif]
- [let accessor : String = if (constraintDelegate <> null and genClassifier.oclIsKindOf(GenDataType) and not genClassifier.oclAsType(GenDataType).isPrimitiveType() and constraintDelegate.oclAsType(GenDataType).isPrimitiveType() and not genModel.isJDK50()) then '.' + constraintDelegate.oclAsType(GenDataType).getPrimitiveValueFunction() + '()' else '' endif]
-[if (genClassifier.oclIsKindOf(GenDataType))]
- [let genDataType : GenDataType = genClassifier.oclAsType(GenDataType)]
-[if (constraint = 'Min' and genDataType.getMinLiteral() <> null)]
- /**
- *
- *
- * @generated
- * @see #validate[genDataType.getName()/]_[constraint/]
- */
- public static final [genDataType.getImportedInstanceClassName()/] [constant/]__VALUE = [genDataType.getStaticValue(genDataType.getMinLiteral())/];
-
-[else][if (constraint = 'Max' and genDataType.getMaxLiteral() <> null)]
- /**
- *
- *
- * @generated
- * @see #validate[genDataType.getName()/]_[constraint/]
- */
- public static final [genDataType.getImportedInstanceClassName()/] [constant/]__VALUE = [genDataType.getStaticValue(genDataType.getMaxLiteral())/];
-
-[else][if (constraint = 'TotalDigits' and genDataType.getTotalDigits() > -1 and 'java.math.BigDecimal' <> genDataType.getQualifiedInstanceClassName())]
- /**
- *
- *
- * @generated
- * @see #validate[genDataType.getName()/]_[constraint/]
- */'
- public static final [genDataType.getImportedInstanceClassName()/] [constant/]__UPPER_BOUND = [genDataType.getStaticPositiveValue()/];
-
- /**
- *
- *
- * @generated
- * @see #validate[genDataType.getName()/]_[constraint/]
- */
- public static final [genDataType.getImportedInstanceClassName()/] [constant/]__LOWER_BOUND = [genDataType.getStaticNegativeValue()/];
-
-[else][if (constraint = 'Pattern' and genDataType.getPatterns()->notEmpty())]
- /**
- *
- *
- * @generated
- * @see #validate[genDataType.getName()/]_[constraint/]
- */
- public static final PatternMatcher ['[][]'/] [constant/]__VALUES =
- new PatternMatcher ['[][]'/]
- {
- [for (patternList : Sequence(String) | genDataType.getPatterns()) separator (',' + genModel.getLineDelimiter())]
- new PatternMatcher ['[]'/]
- {
- [for (pattern : String | patternList) separator (',' + genModel.getLineDelimiter())]
- [genModel.getImportedName('org.eclipse.emf.ecore.xml.type.util.XMLTypeUtil')/].createPatternMatcher([pattern/])[/for]
- }[/for]
- };
-
-[else][if (constraint = 'Enumeration' and genDataType.getEnumerationLiterals()->notEmpty())]
- /**
- *
- *
- * @generated
- * @see #validate[genDataType.getName()/]_[constraint/]
- */
- [if (genDataType.isUncheckedCast())]
- @SuppressWarnings("unchecked")
- [/if]
- public static final [genModel.getImportedName('java.util.Collection')/][objectArgument/] [constant/]__VALUES =
- wrapEnumerationValues
- (new Object['[]'/]
- {
- [for (literal : String | genDataType.getEnumerationLiterals()) separator (',' + genModel.getLineDelimiter())]
- [if (genDataType.isPrimitiveType() and not genModel.isJDK50())]new [genDataType.getObjectInstanceClassName()/]([/if][genDataType.getStaticValue(literal, false)/][if (genDataType.isPrimitiveType() and not genModel.isJDK50())])[/if][/for]
- });
-
-[/if][/if][/if][/if][/if]
- [/let]
-[/if]
-[if (genClassifier.hasConstraintExpression(constraint))]
- /**
- * The cached validation expression for the [constraint/] constraint of '[genClassifier.getFormattedName()/]'.
- *
- *
- * @generated
- */
- protected static final [genModel.getImportedName('java.lang.String')/] [genClassifier.getClassifierID()/]__[constraint.upperNameConstraint()/]__EEXPRESSION = "[genClassifier.getConstraintExpression(constraint, '\t\t')/]";[genModel.getNonNLS()/]
-
-[/if]
- /**
- * Validates the [constraint/] constraint of '[genClassifier.getFormattedName()/]'.
- *
- *
- * @generated
- */
- public boolean validate[genClassifier.getName()/]_[constraint/]([genClassifier.getImportedWildcardInstanceClassName()/] [genClassifier.getSafeUncapName()/], DiagnosticChain [diagnostics/], [_Map/] [_context/])
- {
-[if (genClassifier.oclIsKindOf(GenDataType))]
- [let genDataType : GenDataType = genClassifier.oclAsType(GenDataType)]
-[if (constraint = 'ItemType' and genDataType.getItemType() <> null)]
- [let itemType : GenDataType = genDataType.getItemType()]
- [let itemDelegate : String = if (itemType.genPackage = genPackage) then '' else genPackage.getValidatorPackageUniqueSafeName(itemType.genPackage) + 'Validator.' endif]
- boolean [result/] = true;
- for ([genModel.getImportedName('java.util.Iterator')/][singleWildcard/] i = [genClassifier.getSafeUncapName()/].iterator(); i.hasNext() && (result || diagnostics != null); )
- {
- Object item = i.next();
- [if (itemType.genPackage.hasConstraints())]
- if ([itemType.getQualifiedClassifierAccessor()/].isInstance(item))
- {
- result &= [itemDelegate/]validate[itemType.getName()/]([if (itemType.isPrimitiveType() and not genModel.isJDK50())]([/if][if (not itemType.isObjectType())]([itemType.getObjectInstanceClassName()/])[/if][item/][if (itemType.isPrimitiveType() and not genModel.isJDK50())]).[itemType.getPrimitiveValueFunction()/]()[/if], [diagnostics/], [_context/]);
- }
- else
- [else]
- if (![itemType.getQualifiedClassifierAccessor()/].isInstance(item))
- [/if]
- {
- result = false;
- reportDataValueTypeViolation([itemType.getQualifiedClassifierAccessor()/], item, [diagnostics/], [_context/]);
- }
- }
- return result;
- [/let]
- [/let]
-[else][if (constraint = 'MemberTypes' and genDataType.getMemberTypes()->notEmpty())]
- if (diagnostics != null)
- {
- [genModel.getImportedName('org.eclipse.emf.common.util.BasicDiagnostic')/] tempDiagnostics = new BasicDiagnostic();
- [for (memberType : GenDataType | genDataType.getMemberTypes())]
- [let memberDelegate : String = if (memberType.genPackage = genPackage) then '' else genPackage.getValidatorPackageUniqueSafeName(memberType.genPackage) + 'Validator.' endif]
- [if (genDataType.isPrimitiveType())]
- if ([memberDelegate/]validate[memberType.getName()/]([genClassifier.getSafeUncapName()/], tempDiagnostics, [_context/])) return true;
- [else]
- if ([memberType.getQualifiedClassifierAccessor()/].isInstance([genClassifier.getSafeUncapName()/]))
- {
- [if (memberType.genPackage.hasConstraints())]if ([memberDelegate/]validate[memberType.getName()/]([if (memberType.isPrimitiveType() and not genModel.isJDK50())]([/if][if (not memberType.isObjectType() and memberType.getQualifiedInstanceClassName() <> genDataType.getQualifiedInstanceClassName())]([memberType.getImportedWildcardObjectInstanceClassName()/])[/if][genClassifier.getSafeUncapName()/][if (memberType.isPrimitiveType() and not genModel.isJDK50())]).[memberType.getPrimitiveValueFunction()/]()[/if], tempDiagnostics, [_context/])) [/if]return true;
- }
- [/if]
- [/let]
- [/for]
- [if (genModel.useGenerics())]
- for ([genModel.getImportedName('org.eclipse.emf.common.util.Diagnostic')/] diagnostic : tempDiagnostics.getChildren())
- {
- diagnostics.add(diagnostic);
- }
- [else]
- [genModel.getImportedName('java.util.List')/] children = tempDiagnostics.getChildren();
- for (int i = 0; i < children.size(); i++)
- {
- diagnostics.add(([genModel.getImportedName('org.eclipse.emf.common.util.Diagnostic')/])children.get(i));
- }
- [/if]
- }
- else
- {
- [for (memberType : GenDataType | genDataType.getMemberTypes())]
- [let memberDelegate : String = if (memberType.genPackage = genPackage) then '' else genPackage.getValidatorPackageUniqueSafeName(memberType.genPackage) + 'Validator.' endif]
- [if (genDataType.isPrimitiveType())]
- if ([memberDelegate/]validate[memberType.getName()/]([genClassifier.getSafeUncapName()/], null, [_context/])) return true;
- [else]
- if ([memberType.getQualifiedClassifierAccessor()/].isInstance([genClassifier.getSafeUncapName()/]))
- {
- [if (memberType.genPackage.hasConstraints())]if ([memberDelegate/]validate[memberType.getName()/]([if (memberType.isPrimitiveType() and not genModel.isJDK50())]([/if][if (not memberType.isObjectType() and memberType.getQualifiedInstanceClassName() <> genDataType.getQualifiedInstanceClassName())]([memberType.getImportedWildcardObjectInstanceClassName()/])[/if][genClassifier.getSafeUncapName()/][if (memberType.isPrimitiveType() and not genModel.isJDK50())]).[memberType.getPrimitiveValueFunction()/]()[/if], null, [_context/])) [/if]return true;
- }
- [/if]
- [/let]
- [/for]
- }
- return false;
-[else][if (constraint = 'Pattern' and genDataType.getPatterns()->notEmpty())]
- return validatePattern([genDataType.getQualifiedClassifierAccessor()/], [if (genDataType.isPrimitiveType() and not genModel.isJDK50())]new [genDataType.getObjectInstanceClassName()/]([/if][genDataType.getSafeUncapName()/][if (genDataType.isPrimitiveType() and not genModel.isJDK50())])[/if], [constant/]__VALUES, [diagnostics/], [_context/]);
-[else][if (constraint = 'Enumeration' and genDataType.getEnumerationLiterals()->notEmpty())]
- [let variable : String = genDataType.getSafeUncapName() + if (genDataType.isPrimitiveType() and not genModel.isJDK50()) then 'Object' else '' endif]
- [if (genDataType.isPrimitiveType() and not genModel.isJDK50())]
- [genDataType.getObjectInstanceClassName()/] [variable/] = new [genDataType.getObjectInstanceClassName()/]([genDataType.getSafeUncapName()/]);
- [/if]
- boolean [result/] = [constant/]__VALUES.contains([variable/]);
- if (![result/] && [diagnostics/] != null)
- reportEnumerationViolation([genDataType.getQualifiedClassifierAccessor()/], [variable/], [constant/]__VALUES, [diagnostics/], [_context/]);
- return [result/];
- [/let]
-[else][if (constraint = 'Min' and genDataType.getMinLiteral() <> null)]
- [if (genDataType.isPrimitiveType())]
- boolean [result/] = [genDataType.getSafeUncapName()/] [if (genDataType.isMinInclusive())]>=[else]>[/if] [constant/]__VALUE;
- if (![result/] && [diagnostics/] != null)
- [if (not genModel.isJDK50())]
- reportMinViolation([genDataType.getQualifiedClassifierAccessor()/], new [genDataType.getObjectInstanceClassName()/]([genDataType.getSafeUncapName()/]), new [genDataType.getObjectInstanceClassName()/]([constant/]__VALUE), [if (genDataType.isMinInclusive())]true[else]false[/if], [diagnostics/], [_context/]);
- [else]
- reportMinViolation([genDataType.getQualifiedClassifierAccessor()/], [genDataType.getSafeUncapName()/], [constant/]__VALUE, [if (genDataType.isMinInclusive())]true[else]false[/if], [diagnostics/], [_context/]);
- [/if]
- return [result/];
- [else]
- [let comparison : String = if ('comparison' = genClassifier.getSafeUncapName()) then 'theComparison' else 'comparison' endif]
- [if (genDataType.isXMLCalendar())]
- int [comparison/] = [genModel.getImportedName('org.eclipse.emf.ecore.xml.type.util.XMLTypeUtil')/].compareCalendar([genDataType.getSafeUncapName()/], [constant/]__VALUE);
- boolean [result/] = [if (genDataType.isMinInclusive())][comparison/] == 0 || [/if][comparison/] == 1;
- [else][if (genDataType.isXMLDuration())]
- int [comparison/] = [genModel.getImportedName('org.eclipse.emf.ecore.xml.type.util.XMLTypeUtil')/].compareDuration([genDataType.getSafeUncapName()/], [constant/]__VALUE);
- boolean [result/] = [if (genDataType.isMinInclusive())][comparison/] == 0 || [/if][comparison/] == 1;
- [else]
- boolean [result/] = [genDataType.getSafeUncapName()/].compareTo([constant/]__VALUE) [if (genDataType.isMinInclusive())]>=[else]>[/if] 0;
- [/if][/if]
- if (![result/] && [diagnostics/] != null)
- reportMinViolation([genDataType.getQualifiedClassifierAccessor()/], [genDataType.getSafeUncapName()/], [constant/]__VALUE, [if (genDataType.isMinInclusive())]true[else]false[/if], [diagnostics/], [_context/]);
- return [result/];
- [/let]
- [/if]
-[else][if (constraint = 'Max' and genDataType.getMaxLiteral() <> null)]
- [if (genDataType.isPrimitiveType())]
- boolean [result/] = [genDataType.getSafeUncapName()/] [if (genDataType.isMaxInclusive())]<=[else]<[/if] [constant/]__VALUE;
- if (![result/] && [diagnostics/] != null)
- [if (not genModel.isJDK50())]
- reportMaxViolation([genDataType.getQualifiedClassifierAccessor()/], new [genDataType.getObjectInstanceClassName()/]([genDataType.getSafeUncapName()/]), new [genDataType.getObjectInstanceClassName()/]([constant/]__VALUE), [if (genDataType.isMaxInclusive())]true[else]false[/if], [diagnostics/], [_context/]);
- [else]
- reportMaxViolation([genDataType.getQualifiedClassifierAccessor()/], [genDataType.getSafeUncapName()/], [constant/]__VALUE, [if (genDataType.isMaxInclusive())]true[else]false[/if], [diagnostics/], [_context/]);
- [/if]
- return [result/];
- [else]
- [let comparison : String = if ('comparison' = genClassifier.getSafeUncapName()) then 'theComparison' else 'comparison' endif]
- [if (genDataType.isXMLCalendar())]
- int [comparison/] = [genModel.getImportedName('org.eclipse.emf.ecore.xml.type.util.XMLTypeUtil')/].compareCalendar([genDataType.getSafeUncapName()/], [constant/]__VALUE);
- boolean [result/] = [if (genDataType.isMaxInclusive())][comparison/] == 0 || [/if][comparison/] == -1;
- [else][if (genDataType.isXMLDuration())]
- int [comparison/] = [genModel.getImportedName('org.eclipse.emf.ecore.xml.type.util.XMLTypeUtil')/].compareDuration([genDataType.getSafeUncapName()/], [constant/]__VALUE);
- boolean [result/] = [if (genDataType.isMaxInclusive())][comparison/] == 0 || [/if][comparison/] == -1;
- [else]
- boolean [result/] = [genDataType.getSafeUncapName()/].compareTo([constant/]__VALUE) [if (genDataType.isMaxInclusive())]<=[else]<[/if] 0;
- [/if][/if]
- if (![result/] && [diagnostics/] != null)
- reportMaxViolation([genDataType.getQualifiedClassifierAccessor()/], [genDataType.getSafeUncapName()/], [constant/]__VALUE, [if (genDataType.isMaxInclusive())]true[else]false[/if], [diagnostics/], [_context/]);
- return [result/];
- [/let]
- [/if]
-[else][if (constraint = 'MinLength' and genDataType.getMinLength() <> -1)]
- int length = [genDataType.getSafeUncapName()/].[genDataType.getLengthAccessorFunction()/];
- boolean [result/] = length >= [genDataType.getMinLength()/];
- if (![result/] && [diagnostics/] != null)
- reportMinLengthViolation([genDataType.getQualifiedClassifierAccessor()/], [genDataType.getSafeUncapName()/], length, [genDataType.getMinLength()/], [diagnostics/], [_context/]);
- return [result/];
-[else][if (constraint = 'MaxLength' and genDataType.getMaxLength() <> -1)]
- int length = [genDataType.getSafeUncapName()/].[genDataType.getLengthAccessorFunction()/];
- boolean [result/] = length <= [genDataType.getMaxLength()/];
- if (![result/] && [diagnostics/] != null)
- reportMaxLengthViolation([genDataType.getQualifiedClassifierAccessor()/], [genDataType.getSafeUncapName()/], length, [genDataType.getMaxLength()/], [diagnostics/], [_context/]);
- return [result/];
-[else][if (constraint = 'TotalDigits' and genDataType.getTotalDigits() <> -1)]
- [if (genDataType.isPrimitiveType())]
- boolean [result/] = [genDataType.getSafeUncapName()/] > [constant/]__LOWER_BOUND && [genDataType.getSafeUncapName()/] < [constant/]__UPPER_BOUND;
- if (![result/] && [diagnostics/] != null)
- [if (not genModel.isJDK50())]
- reportTotalDigitsViolation([genDataType.getQualifiedClassifierAccessor()/], new [genDataType.getObjectInstanceClassName()/]([genDataType.getSafeUncapName()/]), [genDataType.getTotalDigits()/], [diagnostics/], [_context/]);
- [else]
- reportTotalDigitsViolation([genDataType.getQualifiedClassifierAccessor()/], [genDataType.getSafeUncapName()/], [genDataType.getTotalDigits()/], [diagnostics/], [_context/]);
- [/if]
- [else][if (genDataType.getQualifiedInstanceClassName() = 'java.math.BigDecimal')]
- boolean [result/] = [genDataType.getSafeUncapName()/].unscaledValue().abs().toString().length() <= [genDataType.getTotalDigits()/];
- if (![result/] && [diagnostics/] != null)
- reportTotalDigitsViolation([genDataType.getQualifiedClassifierAccessor()/], [genDataType.getSafeUncapName()/], [genDataType.getTotalDigits()/], [diagnostics/], [_context/]);
- [else]
- boolean [result/] = [genDataType.getSafeUncapName()/].compareTo([constant/]__LOWER_BOUND) > 0 && [genDataType.getSafeUncapName()/].compareTo([constant/]__UPPER_BOUND) < 0;
- if (![result/] && [diagnostics/] != null)
- reportTotalDigitsViolation([genDataType.getQualifiedClassifierAccessor()/], [genDataType.getSafeUncapName()/], [genDataType.getTotalDigits()/], [diagnostics/], [_context/]);
- [/if][/if]
- return [result/];
-[else][if (constraint = 'FractionDigits' and genDataType.getFractionDigits() <> -1 and genDataType.getQualifiedInstanceClassName() = 'java.math.BigDecimal')]
- boolean [result/] = [genDataType.getSafeUncapName()/].scale() <= [genDataType.getFractionDigits()/];
- if (![result/] && [diagnostics/] != null)
- reportFractionDigitsViolation([genDataType.getQualifiedClassifierAccessor()/], [genDataType.getSafeUncapName()/], [genDataType.getFractionDigits()/], [diagnostics/], [_context/]);
- return [result/];
-[else][if (constraintDelegate <> null)]
- // TODO override the constraint, if desired
- // -> uncomment the scaffolding
- // -> specify the condition that violates the constraint
- // -> verify the diagnostic details, including severity, code, and message
- // Ensure that you remove @generated or mark it @generated NOT
- if (false)
- {
- if ([diagnostics/] != null)
- {
- [diagnostics/].add
- [if (genModel.isEMF24())]
- (createDiagnostic
- ([genModel.getImportedName('org.eclipse.emf.common.util.Diagnostic')/].ERROR,
- DIAGNOSTIC_SOURCE,
- 0,
- "_UI_GenericConstraint_diagnostic",[genModel.getNonNLS()/]
- new Object['[]'/] { "[constraint/]", getValueLabel([genDataType.getQualifiedClassifierAccessor()/], [genClassifier.getSafeUncapName()/], [_context/]) },[genModel.getNonNLS()/]
- new Object['[]'/] { [genClassifier.getSafeUncapName()/] },
- context));
- [else]
- (new [genModel.getImportedName('org.eclipse.emf.common.util.BasicDiagnostic')/]
- ([genModel.getImportedName('org.eclipse.emf.common.util.Diagnostic')/].ERROR,
- DIAGNOSTIC_SOURCE,
- 0,
- [genModel.getImportedName('org.eclipse.emf.ecore.plugin.EcorePlugin')/].INSTANCE.getString("_UI_GenericConstraint_diagnostic", new Object['[]'/] { "[constraint/]", getValueLabel([genDataType.getQualifiedClassifierAccessor()/], [genClassifier.getSafeUncapName()/], [_context/]) }),[genModel.getNonNLS()/][genModel.getNonNLS(2)/]
- new Object['[]'/] { [genClassifier.getSafeUncapName()/] }));
- [/if]
- }
- return false;
- }
- return [delegate/]validate[constraintDelegate.getName()/]_[constraint/]([genClassifier.getSafeUncapName()/][accessor/], [diagnostics/], [_context/]);
-[else]
- [if (genClassifier.hasConstraintExpression(constraint))]
- return
- validate
- ([genClassifier.getQualifiedClassifierAccessor()/],
- [genClassifier.getSafeUncapName()/],
- [diagnostics/],
- [_context/],
- "[genClassifier.getValidationDelegate(constraint)/]",[genModel.getNonNLS()/]
- "[constraint/]",[genModel.getNonNLS()/]
- [genClassifier.getClassifierID()/]__[constraint.upperNameConstraint()/]__EEXPRESSION,
- [genModel.getImportedName('org.eclipse.emf.common.util.Diagnostic')/].ERROR,
- DIAGNOSTIC_SOURCE,
- 0);
- [else]
- // TODO implement the constraint
- // -> specify the condition that violates the constraint
- // -> verify the diagnostic details, including severity, code, and message
- // Ensure that you remove @generated or mark it @generated NOT
- if (false)
- {
- if ([diagnostics/] != null)
- {
- [diagnostics/].add
- [if (genModel.isEMF24())]
- (createDiagnostic
- ([genModel.getImportedName('org.eclipse.emf.common.util.Diagnostic')/].ERROR,
- DIAGNOSTIC_SOURCE,
- 0,
- "_UI_GenericConstraint_diagnostic",[genModel.getNonNLS()/]
- new Object['[]'/] { "[constraint/]", getValueLabel([genDataType.getQualifiedClassifierAccessor()/], [genClassifier.getSafeUncapName()/], [_context/]) },[genModel.getNonNLS()/]
- new Object['[]'/] { [genClassifier.getSafeUncapName()/] },
- context));
- [else]
- (new [genModel.getImportedName('org.eclipse.emf.common.util.BasicDiagnostic')/]
- ([genModel.getImportedName('org.eclipse.emf.common.util.Diagnostic')/].ERROR,
- DIAGNOSTIC_SOURCE,
- 0,
- [genModel.getImportedName('org.eclipse.emf.ecore.plugin.EcorePlugin')/].INSTANCE.getString("_UI_GenericConstraint_diagnostic", new Object['[]'/] { "[constraint/]", getValueLabel([genDataType.getQualifiedClassifierAccessor()/], [genClassifier.getSafeUncapName()/], [_context/]) }),[genModel.getNonNLS()/][genModel.getNonNLS(2)/]
- new Object['[]'/] { [genClassifier.getSafeUncapName()/] }));
- [/if]
- }
- return false;
- }
- return true;
- [/if]
-[/if][/if][/if][/if][/if][/if][/if][/if][/if][/if][/if]
- [/let]
- [let genOperation : GenOperation = genClassifier.oclAsType(GenClass).getInvariantOperation(constraint)]
- [if (genOperation <> null)]
- return [genClassifier.getSafeUncapName()/].[constraint/]([diagnostics/], [_context/]);
- [/if]
- [/let]
-[else][if (constraintDelegate <> null)]
- // TODO override the constraint, if desired
- // -> uncomment the scaffolding
- // -> specify the condition that violates the constraint
- // -> verify the diagnostic details, including severity, code, and message
- // Ensure that you remove @generated or mark it @generated NOT
- if (false)
- {
- if ([diagnostics/] != null)
- {
- [diagnostics/].add
- [if (genModel.isEMF24())]
- (createDiagnostic
- ([genModel.getImportedName('org.eclipse.emf.common.util.Diagnostic')/].ERROR,
- DIAGNOSTIC_SOURCE,
- 0,
- "_UI_GenericConstraint_diagnostic",[genModel.getNonNLS()/]
- new Object['[]'/] { "[constraint/]", getObjectLabel([genClassifier.getSafeUncapName()/], [_context/]) },[genModel.getNonNLS()/]
- new Object['[]'/] { [genClassifier.getSafeUncapName()/] },
- context));
- [else]
- (new [genModel.getImportedName('org.eclipse.emf.common.util.BasicDiagnostic')/]
- ([genModel.getImportedName('org.eclipse.emf.common.util.Diagnostic')/].ERROR,
- DIAGNOSTIC_SOURCE,
- 0,
- [genModel.getImportedName('org.eclipse.emf.ecore.plugin.EcorePlugin')/].INSTANCE.getString("_UI_GenericConstraint_diagnostic", new Object['[]'/] { "[constraint/]", getObjectLabel([genClassifier.getSafeUncapName()/], [_context/]) }),[genModel.getNonNLS()/][genModel.getNonNLS(2)/]
- new Object['[]'/] { [genClassifier.getSafeUncapName()/] }));
- [/if]
- }
- return false;
- }
- return [delegate/]validate[constraintDelegate.getName()/]_[constraint/]([cast/][genClassifier.getSafeUncapName()/], [diagnostics/], [_context/]);
-[else]
- [if (genClassifier.hasConstraintExpression(constraint))]
- return
- validate
- ([genClassifier.getQualifiedClassifierAccessor()/],
- [genClassifier.getSafeUncapName()/],
- [diagnostics/],
- [_context/],
- "[genClassifier.getValidationDelegate(constraint)/]",[genModel.getNonNLS()/]
- "[constraint/]",[genModel.getNonNLS()/]
- [genClassifier.getClassifierID()/]__[constraint.upperNameConstraint()/]__EEXPRESSION,
- [genModel.getImportedName('org.eclipse.emf.common.util.Diagnostic')/].ERROR,
- DIAGNOSTIC_SOURCE,
- 0);
- [else]
- // TODO implement the constraint
- // -> specify the condition that violates the constraint
- // -> verify the diagnostic details, including severity, code, and message
- // Ensure that you remove @generated or mark it @generated NOT
- if (false)
- {
- if ([diagnostics/] != null)
- {
- [diagnostics/].add
- [if (genModel.isEMF24())]
- (createDiagnostic
- ([genModel.getImportedName('org.eclipse.emf.common.util.Diagnostic')/].ERROR,
- DIAGNOSTIC_SOURCE,
- 0,
- "_UI_GenericConstraint_diagnostic",[genModel.getNonNLS()/]
- new Object['[]'/] { "[constraint/]", getObjectLabel([genClassifier.getSafeUncapName()/], [_context/]) },[genModel.getNonNLS()/]
- new Object['[]'/] { [genClassifier.getSafeUncapName()/] },
- context));
- [else]
- (new [genModel.getImportedName('org.eclipse.emf.common.util.BasicDiagnostic')/]
- ([genModel.getImportedName('org.eclipse.emf.common.util.Diagnostic')/].ERROR,
- DIAGNOSTIC_SOURCE,
- 0,
- [genModel.getImportedName('org.eclipse.emf.ecore.plugin.EcorePlugin')/].INSTANCE.getString("_UI_GenericConstraint_diagnostic", new Object['[]'/] { "[constraint/]", getObjectLabel([genClassifier.getSafeUncapName()/], [_context/]) }),[genModel.getNonNLS()/][genModel.getNonNLS(2)/]
- new Object['[]'/] { [genClassifier.getSafeUncapName()/] }));
- [/if]
- }
- return false;
- }
- return true;
- [/if]
-[/if][/if]
- }
-
- [/let]
- [/let]
- [/let]
- [/let]
- [/let]
-[/for]
- [/let]
- [/let]
- [/let]
- [/let]
-[/for]
-[if (genModel.isEMF24())]
- /**
- * Returns the resource locator that will be used to fetch messages for this validator's diagnostics.
- *
- *
- * @generated
- */
- [if (genModel.useClassOverrideAnnotation())]
- @Override
- [/if]
- public [genModel.getImportedName('org.eclipse.emf.common.util.ResourceLocator')/] getResourceLocator()
- {
- [if (genModel.hasModelPluginClass())]
- return [genModel.getImportedName(genModel.getQualifiedModelPluginClassName())/].INSTANCE;
- [else]
- // TODO
- // Specialize this to return a resource locator for messages specific to this validator.
- // Ensure that you remove @generated or mark it @generated NOT
- return super.getResourceLocator();
- [/if]
- }
-
-[/if]
-} //[genPackage.getValidatorClassName()/]
-[/template]
-
-[query public validatorClassPath(genPackage : GenPackage) : String
- = genPackage.genModel.extractSourceDirectory(genPackage.genModel.modelDirectory) + '/'
- + genPackage.getQualifiedValidatorClassName().toPath() + '.java'/]
diff --git a/plugins/org.eclipse.emf.eef.codegen.ecore/src/org/eclipse/emf/eef/codegen/ecore/model/XmlProcessorClass.mtl b/plugins/org.eclipse.emf.eef.codegen.ecore/src/org/eclipse/emf/eef/codegen/ecore/model/XmlProcessorClass.mtl
deleted file mode 100644
index e255c57d9..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.ecore/src/org/eclipse/emf/eef/codegen/ecore/model/XmlProcessorClass.mtl
+++ /dev/null
@@ -1,104 +0,0 @@
-[comment encoding = UTF-8 /]
-[module XmlProcessorClass('http://www.eclipse.org/emf/2002/GenModel', 'http://www.eclipse.org/emf/2002/Ecore')/]
-
-[import org::eclipse::emf::eef::codegen::ecore::services::common /]
-[import org::eclipse::emf::eef::codegen::ecore::services::header /]
-[import org::eclipse::emf::eef::codegen::ecore::services::wrappers::GenModel /]
-[import org::eclipse::emf::eef::codegen::ecore::services::wrappers::GenPackage /]
-[import org::eclipse::emf::eef::codegen::ecore::services::StringUtil /]
-
-[comment]
-/**
- *
- *
- * Copyright (c) 2005-2006 IBM Corporation and others.
- * 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:
- * IBM - Initial API and implementation
- *
- *
- */
-[/comment]
-
-[template public xmlProcessorClass(genPackage : GenPackage) { genModel : GenModel = genPackage.genModel; packageName : String = genPackage.getUtilitiesPackageName(); className : String = genPackage.getXMLProcessorClassName();} ]
-[genModel.initializeImportManager(packageName, className)/]
-
-[genModel.getImportedName('java.util.Map')/]
-
-[file (genPackage.xmlProcessorClassPath(), false, 'UTF-8')]
-[genModel.includeHeader()/]
-package [packageName/];
-[let content : String = genPackage.xmlProcessorFileContent(genModel, className)]
-[genModel.genSortedImports()/]
-
-[content/]
-[/let]
-[/file]
-[/template]
-
-[template protected xmlProcessorFileContent(genPackage : GenPackage, genModel : GenModel, className : String)]
-/**
- * This class contains helper methods to serialize and deserialize XML documents
- *
- *
- * @generated
- */
-public class [className/] extends [genPackage.getImportedXMLProcessorBaseClassName()/]
-{
-[if (genModel.hasCopyrightField())]
- /**
- *
- *
- * @generated
- */
- public static final [genModel.getImportedName('java.lang.String')/] copyright = [genModel.getCopyrightFieldLiteral()/];[genModel.getNonNLS()/]
-
-[/if]
-
- /**
- * Public constructor to instantiate the helper.
- *
- *
- * @generated
- */
- public [genPackage.getXMLProcessorClassName()/]()
- {
-[if (genPackage.hasExtendedMetaData() and not genPackage.hasTargetNamespace())]
- super(new [genModel.getImportedName('org.eclipse.emf.ecore.impl.EPackageRegistryImpl')/]([genModel.getImportedName('org.eclipse.emf.ecore.EPackage')/].Registry.INSTANCE));
- extendedMetaData.putPackage(null, [genPackage.getImportedPackageInterfaceName()/].eINSTANCE);
-[else]
- super(([genModel.getImportedName('org.eclipse.emf.ecore.EPackage')/].Registry.INSTANCE));
- [genPackage.getImportedPackageInterfaceName()/].eINSTANCE.eClass();
-[/if]
- }
-
- /**
- * Register for "*" and "xml" file extensions the [genPackage.getResourceFactoryClassName()/] factory.
- *
- *
- * @generated
- */
- [if (genModel.useClassOverrideAnnotation())]
- @Override
- [/if]
- protected Map[if (genModel.isJDK50())]<[genModel.getImportedName('java.lang.String')/], [genModel.getImportedName('org.eclipse.emf.ecore.resource.Resource')/].Factory>[/if] getRegistrations()
- {
- if (registrations == null)
- {
- super.getRegistrations();
- registrations.put(XML_EXTENSION, new [genPackage.getResourceFactoryClassName()/]());
- registrations.put(STAR_EXTENSION, new [genPackage.getResourceFactoryClassName()/]());
- }
- return registrations;
- }
-
-} //[genPackage.getXMLProcessorClassName()/]
-[/template]
-
-[query public xmlProcessorClassPath(genPackage : GenPackage) : String
- = genPackage.genModel.extractSourceDirectory(genPackage.genModel.modelDirectory) + '/'
- + genPackage.getQualifiedXMLProcessorClassName().toPath() + '.java'/]
diff --git a/plugins/org.eclipse.emf.eef.codegen.ecore/src/org/eclipse/emf/eef/codegen/ecore/model/buildproperties.mtl b/plugins/org.eclipse.emf.eef.codegen.ecore/src/org/eclipse/emf/eef/codegen/ecore/model/buildproperties.mtl
deleted file mode 100644
index b191ba9d1..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.ecore/src/org/eclipse/emf/eef/codegen/ecore/model/buildproperties.mtl
+++ /dev/null
@@ -1,36 +0,0 @@
-[comment encoding = UTF-8 /]
-[module buildproperties('http://www.eclipse.org/emf/2002/GenModel')/]
-
-[import org::eclipse::emf::eef::codegen::ecore::services::common /]
-[import org::eclipse::emf::eef::codegen::ecore::services::header /]
-[import org::eclipse::emf::eef::codegen::ecore::services::wrappers::GenModel /]
-[import org::eclipse::emf::eef::codegen::ecore::services::wrappers::GenPackage /]
-[import org::eclipse::emf::eef::codegen::ecore::services::wrappers::GenClass /]
-
-[template public buildProperties(genModel : GenModel)]
-[let pluginClassesLocation : String = if genModel.runtimeJar then genModel.modelPluginID + '.jar' else '.' endif]
-[file (genModel.buildPropertiesFilePath(), false, 'UTF-8')]
-[genModel.includeHeaderProperties()/]
-bin.includes = [pluginClassesLocation/],\
- model/,\
-[if (genModel.sameModelEditProject() or genModel.sameModelEditorProject()) ]
- icons/,\
-[/if]
-[if (genModel.bundleManifest) ]
- META-INF/,\
-[/if]
-[if (genModel.runtimePlatform <> GenRuntimePlatform::GWT) ]
- plugin.xml,\
-[/if]
- plugin.properties
-jars.compile.order = [pluginClassesLocation/]
-source.[pluginClassesLocation/] = [for (sourceFolder : String | genModel.getModelSourceFolders()) separator (',\\ ')]
-[sourceFolder/]
-[/for]
-[comment][sourceFolders->sep(',\\'.concat(genModel.getLineDelimiter())/][/comment]
-output.[pluginClassesLocation/] = bin/
-[/file]
-[/let]
-[/template]
-
-[query public buildPropertiesFilePath(genModel : GenModel) : String = 'build.properties' /]
diff --git a/plugins/org.eclipse.emf.eef.codegen.ecore/src/org/eclipse/emf/eef/codegen/ecore/model/genclass/eIsSet.mtl b/plugins/org.eclipse.emf.eef.codegen.ecore/src/org/eclipse/emf/eef/codegen/ecore/model/genclass/eIsSet.mtl
deleted file mode 100644
index a438b94e2..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.ecore/src/org/eclipse/emf/eef/codegen/ecore/model/genclass/eIsSet.mtl
+++ /dev/null
@@ -1,120 +0,0 @@
-[comment encoding = UTF-8 /]
-[module eIsSet('http://www.eclipse.org/emf/2002/GenModel')/]
-
-[import org::eclipse::emf::eef::codegen::ecore::services::wrappers::GenClass /]
-[import org::eclipse::emf::eef::codegen::ecore::services::wrappers::GenClassifier /]
-[import org::eclipse::emf::eef::codegen::ecore::services::wrappers::GenFeature /]
-[import org::eclipse::emf::eef::codegen::ecore::services::wrappers::GenModel /]
-[import org::eclipse::emf::eef::codegen::ecore::services::wrappers::GenEnum /]
-[import org::eclipse::emf::eef::codegen::ecore::services::wrappers::GenPackage /]
-[import org::eclipse::emf::eef::codegen::ecore::services::wrappers::GenDataType /]
-[import org::eclipse::emf::eef::codegen::ecore::services::wrappers::GenOperation /]
-[import org::eclipse::emf::eef::codegen::ecore::services::wrappers::GenParameter /]
-
-[template public eIsSet(genClass : GenClass, genModel : GenModel, positiveOffsetCorrection : String, negativeOffsetCorrection : String)]
- /**
- *
- *
- * @generated
- */
- [if (genModel.useGenerics()) ]
- [if (genClass.getEIsSetGenFeatures()->filter(GenFeature)->select(genFeature : GenFeature | genFeature.isListType() and not genFeature.isUnsettable() and not genFeature.isWrappedFeatureMapType() and not genClass.isField(genFeature) and genFeature.isField() and genClass.getImplementingGenModel(genFeature).isVirtualDelegation()))->notEmpty()]
- @SuppressWarnings("unchecked")
- [/if]
- [/if]
- [if (genModel.useClassOverrideAnnotation()) ]
- @Override
- [/if]
- public boolean eIsSet(int featureID) {
- switch (featureID[negativeOffsetCorrection/]) {
-[for (genFeature : GenFeature | genClass.getEIsSetGenFeatures())]
- [let safeNameAccessor : String = if (genFeature.getSafeName() = 'featureID') then 'this.' + genFeature.getSafeName() else genFeature.getSafeName() endif]
- case [genClass.getQualifiedFeatureID(genFeature)/]:
- [if (genFeature.hasSettingDelegate()) ]
- [if (genFeature.isUnsettable()) ]
- return isSet[genFeature.getAccessorName()/]();
- [else]
- return [genFeature.getUpperName()/]__ESETTING_DELEGATE.dynamicIsSet(this, null, 0);
- [/if]
- [else][if (genFeature.isListType() and not genFeature.isUnsettable()) ]
- [if (genFeature.isWrappedFeatureMapType()) ]
- [if (genFeature.isVolatile()) ]
- return !(([genModel.getImportedName('org.eclipse.emf.ecore.util.FeatureMap')/].Internal.Wrapper)[genFeature.getGetAccessor()/]()).featureMap().isEmpty();
- [else]
- return [safeNameAccessor/] != null && ![safeNameAccessor/].featureMap().isEmpty();
- [/if]
- [else]
- [if (genClass.isField(genFeature)) ]
- return [safeNameAccessor/] != null && ![safeNameAccessor/].isEmpty();
- [else]
- [if (genFeature.isField() and genClass.getImplementingGenModel(genFeature).isVirtualDelegation()) ]
- [genFeature.getImportedType(genClass)/] [safeNameAccessor/] = ([genFeature.getImportedType(genClass)/])eVirtualGet([genClass.getQualifiedFeatureID(genFeature)/][positiveOffsetCorrection/]);
- return [safeNameAccessor/] != null && ![safeNameAccessor/].isEmpty();
- [else]
- return ![genFeature.getGetAccessor()/]().isEmpty();
- [/if]
- [/if]
- [/if]
- [else][if (genFeature.isUnsettable()) ]
- return isSet[genFeature.getAccessorName()/]();
- [else][if (genFeature.isResolveProxies()) ]
- [if (genClass.isField(genFeature)) ]
- return [safeNameAccessor/] != null;
- [else]
- [if (genFeature.isField() and genClass.getImplementingGenModel(genFeature).isVirtualDelegation()) ]
- return eVirtualGet([genClass.getQualifiedFeatureID(genFeature)/][positiveOffsetCorrection/]) != null;
- [else]
- return basicGet[genFeature.getAccessorName()/]() != null;
- [/if]
- [/if]
- [else][if (not genFeature.hasEDefault()) ]
- [if (genClass.isField(genFeature)) ]
- return [safeNameAccessor/] != null;
- [else]
- [if (genFeature.isField() and genClass.getImplementingGenModel(genFeature).isVirtualDelegation()) ]
- return eVirtualGet([genClass.getQualifiedFeatureID(genFeature)/][positiveOffsetCorrection/]) != null;
- [else]
- return [genFeature.getGetAccessor()/]() != null;
- [/if]
- [/if]
- [else][if (genFeature.isPrimitiveType() or genFeature.isEnumType()) ]
- [if (genClass.isField(genFeature)) ]
- [if (genClass.isFlag(genFeature)) ]
- [if (genFeature.isBooleanType()) ]
- return (([genClass.getFlagsField(genFeature)/] & [genFeature.getUpperName()/]_EFLAG) != 0) != [genFeature.getEDefault()/];
- [else]
- return ([genClass.getFlagsField(genFeature)/] & [genFeature.getUpperName()/]_EFLAG) != [genFeature.getUpperName()/]_EFLAG_DEFAULT;
- [/if]
- [else]
- return [safeNameAccessor/] != [genFeature.getEDefault()/];
- [/if]
- [else]
- [if (genFeature.isEnumType() and genFeature.isField() and genClass.getImplementingGenModel(genFeature).isVirtualDelegation()) ]
- return eVirtualGet([genClass.getQualifiedFeatureID(genFeature)/][positiveOffsetCorrection/], [genFeature.getEDefault()/]) != [genFeature.getEDefault()/];
- [else]
- return [genFeature.getGetAccessor()/]() != [genFeature.getEDefault()/];
- [/if]
- [/if]
- [else]
- [if (genClass.isField(genFeature)) ]
- return [genFeature.getEDefault()/] == null ? [safeNameAccessor/] != null : ![genFeature.getEDefault()/].equals([safeNameAccessor/]);
- [else]
- [if (genFeature.isField() and genClass.getImplementingGenModel(genFeature).isVirtualDelegation()) ]
- [genFeature.getImportedType(genClass)/] [safeNameAccessor/] = ([genFeature.getImportedType(genClass)/])eVirtualGet([genClass.getQualifiedFeatureID(genFeature)/][positiveOffsetCorrection/], [genFeature.getEDefault()/]);
- return [genFeature.getEDefault()/] == null ? [safeNameAccessor/] != null : ![genFeature.getEDefault()/].equals([safeNameAccessor/]);
- [else]
- return [genFeature.getEDefault()/] == null ? [genFeature.getGetAccessor()/]() != null : ![genFeature.getEDefault()/].equals([genFeature.getGetAccessor()/]());
- [/if]
- [/if]
- [/if][/if][/if][/if][/if][/if]
- [/let]
-[/for]
- }
-[if (genModel.minimalReflectiveMethods) ]
- return super.eIsSet(featureID);
-[else]
- return eDynamicIsSet(featureID);
-[/if]
- }
-
-[/template]
diff --git a/plugins/org.eclipse.emf.eef.codegen.ecore/src/org/eclipse/emf/eef/codegen/ecore/model/genclass/eUnset.mtl b/plugins/org.eclipse.emf.eef.codegen.ecore/src/org/eclipse/emf/eef/codegen/ecore/model/genclass/eUnset.mtl
deleted file mode 100644
index 9a5731775..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.ecore/src/org/eclipse/emf/eef/codegen/ecore/model/genclass/eUnset.mtl
+++ /dev/null
@@ -1,44 +0,0 @@
-[comment encoding = UTF-8 /]
-[module eUnset('http://www.eclipse.org/emf/2002/GenModel')/]
-
-[import org::eclipse::emf::eef::codegen::ecore::services::wrappers::GenClass /]
-[import org::eclipse::emf::eef::codegen::ecore::services::wrappers::GenFeature /]
-[import org::eclipse::emf::eef::codegen::ecore::services::wrappers::GenModel /]
-
-[template public eUnset(genClass : GenClass, genModel : GenModel, negativeOffsetCorrection : String)]
- /**
- *
- *
- * @generated
- */
- [if (genModel.useClassOverrideAnnotation()) ]
- @Override
- [/if]
- public void eUnset(int featureID) {
- switch (featureID[negativeOffsetCorrection/]) {
- [for (genFeature : GenFeature | genClass.getEUnsetGenFeatures())]
- case [genClass.getQualifiedFeatureID(genFeature)/]:
- [if (genFeature.isListType() and not genFeature.isUnsettable()) ]
- [if (genFeature.isWrappedFeatureMapType()) ]
- (([genModel.getImportedName('org.eclipse.emf.ecore.util.FeatureMap')/].Internal.Wrapper)[genFeature.getGetAccessor()/]()).featureMap().clear();
- [else]
- [genFeature.getGetAccessor()/]().clear();
- [/if]
- [else][if (genFeature.isUnsettable()) ]
- unset[genFeature.getAccessorName()/]();
- [else][if (not genFeature.hasEDefault()) ]
- set[genFeature.getAccessorName()/](([genFeature.getImportedType(genClass)/])null);
- [else]
- set[genFeature.getAccessorName()/]([genFeature.getEDefault()/]);
- [/if][/if][/if]
- return;
- [/for]
- }
- [if (genModel.minimalReflectiveMethods) ]
- super.eUnset(featureID);
- [else]
- eDynamicUnset(featureID);
- [/if]
- }
-
-[/template]
diff --git a/plugins/org.eclipse.emf.eef.codegen.ecore/src/org/eclipse/emf/eef/codegen/ecore/model/genclass/genDeclaredFields.mtl b/plugins/org.eclipse.emf.eef.codegen.ecore/src/org/eclipse/emf/eef/codegen/ecore/model/genclass/genDeclaredFields.mtl
deleted file mode 100644
index 85e96a8eb..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.ecore/src/org/eclipse/emf/eef/codegen/ecore/model/genclass/genDeclaredFields.mtl
+++ /dev/null
@@ -1,196 +0,0 @@
-[comment encoding = UTF-8 /]
-[module genDeclaredFields('http://www.eclipse.org/emf/2002/GenModel', 'http://www.eclipse.org/emf/2002/Ecore')/]
-
-[import org::eclipse::emf::eef::codegen::ecore::services::wrappers::GenClass /]
-[import org::eclipse::emf::eef::codegen::ecore::services::wrappers::GenClassifier /]
-[import org::eclipse::emf::eef::codegen::ecore::services::wrappers::GenFeature /]
-[import org::eclipse::emf::eef::codegen::ecore::services::wrappers::GenModel /]
-
-[template public genDeclaredFields(genFeature : GenFeature, genClass : GenClass, genModel : GenModel, isGWT : Boolean, isJDK50 : Boolean)]
- [if (genFeature.hasSettingDelegate())]
- /**
- * The cached setting delegate for the '{@link #[genFeature.getGetAccessor()/]() [genFeature.getFormattedName()/]}' [genFeature.getFeatureKind()/].
- *
- *
- * @see #[genFeature.getGetAccessor()/]()
- * @generated
- * @ordered
- */
- [if (isGWT) ]
- @[genModel.getImportedName('com.google.gwt.user.client.rpc.GwtTransient')/]
- [/if]
- protected [genModel.getImportedName('org.eclipse.emf.ecore.EStructuralFeature')/].Internal.SettingDelegate [genFeature.getUpperName()/]__ESETTING_DELEGATE = (([genModel.getImportedName('org.eclipse.emf.ecore.EStructuralFeature')/].Internal)[genFeature.getQualifiedFeatureAccessor()/]).getSettingDelegate();
-
- [else][if (genFeature.isListType() or genFeature.isReferenceType())]
- [if (genClass.isField(genFeature)) ]
- /**
- * The cached value of the '{@link #[genFeature.getGetAccessor()/]() [genFeature.getFormattedName()/]}' [genFeature.getFeatureKind()/].
- *
- *
- * @see #[genFeature.getGetAccessor()/]()
- * @generated
- * @ordered
- */
- [if (isGWT) ]
- @[genModel.getImportedName('com.google.gwt.user.client.rpc.GwtTransient')/]
- [/if]
- protected [genFeature.getImportedInternalType(genClass)/] [genFeature.getSafeName()/];
-
- [/if]
- [if (genModel.arrayAccessors and genFeature.isListType() and not genFeature.isFeatureMapType() and not genFeature.isMapType())]
- [let rawListItemType : String = genFeature.getRawListItemType()]
- [let index : Integer = rawListItemType.index('[')]
- [let head : String = if (index <> -1) then rawListItemType.substring(1, index) else rawListItemType endif]
- [let tail : String = if (index <> -1) then rawListItemType.substring(index + 1) else '' endif]
- /**
- * The empty value for the '{@link #[genFeature.getGetArrayAccessor()/]() [genFeature.getFormattedName()/]}' array accessor.
- *
- *
- * @see #[genFeature.getGetArrayAccessor()/]()
- * @generated
- * @ordered
- */
- [if (genFeature.getQualifiedListItemType(genClass).contains('<')) ]
- @SuppressWarnings("unchecked")
- [/if]
- protected static final [rawListItemType/]['[]'/] [genFeature.getUpperName()/]_EEMPTY_ARRAY = new [head/] ['[0]'/][tail/];
-
- [/let]
- [/let]
- [/let]
- [/let]
- [/if]
- [else]
- [if (genFeature.hasEDefault() and (not genFeature.isVolatile() or not genModel.reflectiveDelegation and (not genFeature.hasDelegateFeature() or not genFeature.isUnsettable())))]
- [let staticDefaultValue : String = genFeature.getStaticDefaultValue()]
- /**
- * The default value of the '{@link #[genFeature.getGetAccessor()/]() [genFeature.getFormattedName()/]}' [genFeature.getFeatureKind()/].
- *
- *
- * @see #[genFeature.getGetAccessor()/]()
- * @generated
- * @ordered
- */
- [if (genModel.useGenerics() and genFeature.isListDataType() and genFeature.isSetDefaultValue()) ]
- @SuppressWarnings("unchecked")
- [/if]
- protected static final [genFeature.getImportedType(genClass)/] [genFeature.getEDefault()/][if (staticDefaultValue = '') ]; // TODO The default value literal "[genFeature.ecoreFeature.defaultValueLiteral/]" is not valid.[else] = [staticDefaultValue/];[genModel.getNonNLS(staticDefaultValue)/][/if]
-
- [/let]
- [/if]
- [if (genClass.isField(genFeature)) ]
- [if (genClass.isFlag(genFeature))]
- [let flagIndex : Integer = genClass.getFlagIndex(genFeature)]
- [if (flagIndex > 31 and flagIndex.mod(32) = 0)]
- /**
- * An additional set of bit flags representing the values of boolean attributes and whether unsettable features have been set.
- *
- *
- * @generated
- * @ordered
- */
- [if (isGWT)]
- @[genModel.getImportedName('com.google.gwt.user.client.rpc.GwtTransient')/]
- [/if]
- protected int [genClass.getFlagsField(genFeature)/] = 0;
-
- [/if]
- [if (genFeature.isEnumType())]
- /**
- * The offset of the flags representing the value of the '{@link #[genFeature.getGetAccessor()/]() [genFeature.getFormattedName()/]}' [genFeature.getFeatureKind()/].
- *
- *
- * @generated
- * @ordered
- */
- protected static final int [genFeature.getUpperName()/]_EFLAG_OFFSET = [flagIndex.mod(32)/];
-
- /**
- * The flags representing the default value of the '{@link #[genFeature.getGetAccessor()/]() [genFeature.getFormattedName()/]}' [genFeature.getFeatureKind()/].
- *
- *
- * @generated
- * @ordered
- */
- protected static final int [genFeature.getUpperName()/]_EFLAG_DEFAULT = [if (isJDK50) ][genFeature.getEDefault()/].ordinal()[else][genFeature.getImportedType(genClass)/].VALUES.indexOf([genFeature.getEDefault()/])[/if] << [genFeature.getUpperName()/]_EFLAG_OFFSET;
-
- /**
- * The array of enumeration values for '{@link [genFeature.getImportedType(genClass)/] [genFeature.getTypeGenClassifier().getFormattedName()/]}'
- *
- *
- * @generated
- * @ordered
- */
- private static final [genFeature.getImportedType(genClass)/]['[]'/] [genFeature.getUpperName()/]_EFLAG_VALUES = [if (isJDK50) ][genFeature.getImportedType(genClass)/].values()[else]([genFeature.getImportedType(genClass)/]['[]'/])[genFeature.getImportedType(genClass)/].VALUES.toArray(new [genFeature.getImportedType(genClass)/]['['/][genFeature.getImportedType(genClass)/].VALUES->size()])[/if];
-
- [/if]
- /**
- * The flag[if genClass.getFlagSize(genFeature) > 1]s[/if] representing the value of the '{@link #[genFeature.getGetAccessor()/]() [genFeature.getFormattedName()/]}' [genFeature.getFeatureKind()/].
- *
- *
- * @see #[genFeature.getGetAccessor()/]()
- * @generated
- * @ordered
- */
- protected static final int [genFeature.getUpperName()/]_EFLAG = [genClass.getFlagMask(genFeature)/] << [if (genFeature.isEnumType()) ][genFeature.getUpperName()/]_EFLAG_OFFSET[else][flagIndex.mod(32)/][/if];
-
- [/let]
- [else]
- /**
- * The cached value of the '{@link #[genFeature.getGetAccessor()/]() [genFeature.getFormattedName()/]}' [genFeature.getFeatureKind()/].
- *
- *
- * @see #[genFeature.getGetAccessor()/]()
- * @generated
- * @ordered
- */
- [if (isGWT) ]
- @[genModel.getImportedName('com.google.gwt.user.client.rpc.GwtTransient')/]
- [/if]
- protected [genFeature.getImportedType(genClass)/] [genFeature.getSafeName()/][if (genFeature.hasEDefault()) ] = [genFeature.getEDefault()/][/if];
-
- [/if]
- [/if]
- [/if][/if]
- [if (genClass.isESetField(genFeature)) ]
- [if (genClass.isESetFlag(genFeature))]
- [let flagIndex : Integer = genClass.getESetFlagIndex(genFeature)]
- [if (flagIndex > 31 and flagIndex.mod(32) = 0) ]
- /**
- * An additional set of bit flags representing the values of boolean attributes and whether unsettable features have been set.
- *
- *
- * @generated
- * @ordered
- */
- [if (isGWT) ]
- @[genModel.getImportedName('com.google.gwt.user.client.rpc.GwtTransient')/]
- [/if]
- protected int [genClass.getESetFlagsField(genFeature)/] = 0;
-
- [/if]
- /**
- * The flag representing whether the [genFeature.getFormattedName()/] [genFeature.getFeatureKind()/] has been set.
- *
- *
- * @generated
- * @ordered
- */
- protected static final int [genFeature.getUpperName()/]_ESETFLAG = 1 << [flagIndex.mod(32) /];
- [/let]
- [else]
- /**
- * This is true if the [genFeature.getFormattedName()/] [genFeature.getFeatureKind()/] has been set.
- *
- *
- * @generated
- * @ordered
- */
- [if (isGWT) ]
- @[genModel.getImportedName('com.google.gwt.user.client.rpc.GwtTransient')/]
- [/if]
- protected boolean [genFeature.getUncapName()/]ESet;
-
- [/if]
- [/if]
-[/template]
diff --git a/plugins/org.eclipse.emf.eef.codegen.ecore/src/org/eclipse/emf/eef/codegen/ecore/model/genclass/genFeature.mtl b/plugins/org.eclipse.emf.eef.codegen.ecore/src/org/eclipse/emf/eef/codegen/ecore/model/genclass/genFeature.mtl
deleted file mode 100644
index e7a1f7905..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.ecore/src/org/eclipse/emf/eef/codegen/ecore/model/genclass/genFeature.mtl
+++ /dev/null
@@ -1,913 +0,0 @@
-[comment encoding = UTF-8 /]
-[module genFeature('http://www.eclipse.org/emf/2002/GenModel')/]
-
-[import org::eclipse::emf::eef::codegen::ecore::services::wrappers::GenClass /]
-[import org::eclipse::emf::eef::codegen::ecore::services::wrappers::GenClassifier /]
-[import org::eclipse::emf::eef::codegen::ecore::services::wrappers::GenFeature /]
-[import org::eclipse::emf::eef::codegen::ecore::services::wrappers::GenModel /]
-[import org::eclipse::emf::eef::codegen::ecore::services::wrappers::GenEnum /]
-[import org::eclipse::emf::eef::codegen::ecore::services::wrappers::GenPackage /]
-[import org::eclipse::emf::eef::codegen::ecore::services::wrappers::GenDataType /]
-[import org::eclipse::emf::eef::codegen::ecore::services::wrappers::GenOperation /]
-[import org::eclipse::emf::eef::codegen::ecore::services::wrappers::GenParameter /]
-
-[template public genFeature(genFeature : GenFeature, genClass : GenClass, genPackage : GenPackage, genModel : GenModel, isJDK50 : Boolean, isInterface : Boolean, isImplementation : Boolean, positiveOffsetCorrection : String, negativeOffsetCorrection : String, singleWildcard : String)]
-[if (genModel.arrayAccessors and genFeature.isListType() and not genFeature.isFeatureMapType() and not genFeature.isMapType()) ]
- /**
- *
- *
- * @generated
- */
- [if (not isImplementation) ]
- [genFeature.getListItemType(genClass)/]['[]'/] [genFeature.getGetArrayAccessor()/]();
-
- [else]
- public [genFeature.getListItemType(genClass)/]['[]'/] [genFeature.getGetArrayAccessor()/]() {
- [if (genFeature.isVolatile()) ]
- [genModel.getImportedName('org.eclipse.emf.common.util.BasicEList')/][genFeature.getListTemplateArguments(genClass)/] list = ([genModel.getImportedName('org.eclipse.emf.common.util.BasicEList')/][genFeature.getListTemplateArguments(genClass)/])[genFeature.getGetAccessor()/]();
- if (list.isEmpty()) return [if (genModel.useGenerics() and not genFeature.getListItemType(genClass).contains('<') and genFeature.getListItemType(null) <> genFeature.getListItemType(genClass)) ]([genFeature.getListItemType(genClass)/]['[]'/])[/if][genFeature.getUpperName()/]_EEMPTY_ARRAY;
- [else]
- if ([genFeature.getSafeName()/] == null || [genFeature.getSafeName()/].isEmpty()) return [if (genModel.useGenerics() and not genFeature.getListItemType(genClass).contains('<') and genFeature.getListItemType(null) <> genFeature.getListItemType(genClass)) ]([genFeature.getListItemType(genClass)/]['[]'/])[/if][genFeature.getUpperName()/]_EEMPTY_ARRAY;
- [genModel.getImportedName('org.eclipse.emf.common.util.BasicEList')/][genFeature.getListTemplateArguments(genClass)/] list = ([genModel.getImportedName('org.eclipse.emf.common.util.BasicEList')/][genFeature.getListTemplateArguments(genClass)/])[genFeature.getSafeName()/];
- [/if]
- list.shrink();
- return ([genFeature.getListItemType(genClass)/]['[]'/])list.data();
- }
-
- [/if]
- /**
- *
- *
- * @generated
- */
- [if (not isImplementation) ]
- [genFeature.getListItemType(genClass)/] get[genFeature.getAccessorName()/](int index);
-
- [else]
- public [genFeature.getListItemType(genClass)/] get[genFeature.getAccessorName()/](int index) {
- return [if (not genModel.useGenerics()) ]([genFeature.getListItemType(genClass)/])[/if][genFeature.getGetAccessor()/]().get(index);
- }
-
- [/if]
- /**
- *
- *
- * @generated
- */
- [if (not isImplementation) ]
- int get[genFeature.getAccessorName()/]Length();
-
- [else]
- public int get[genFeature.getAccessorName()/]Length() {
- [if (genFeature.isVolatile()) ]
- return [genFeature.getGetAccessor()/]().size();
- [else]
- return [genFeature.getSafeName()/] == null ? 0 : [genFeature.getSafeName()/].size();
- [/if]
- }
-
- [/if]
- /**
- *
- *
- * @generated
- */
- [if (not isImplementation) ]
- void set[genFeature.getAccessorName()/]([genFeature.getListItemType(genClass)/]['[]'/] new[genFeature.getCapName()/]);
-
- [else]
- public void set[genFeature.getAccessorName()/]([genFeature.getListItemType(genClass)/]['[]'/] new[genFeature.getCapName()/]) {
- (([genModel.getImportedName('org.eclipse.emf.common.util.BasicEList')/][genFeature.getListTemplateArguments(genClass)/])[genFeature.getGetAccessor()/]()).setData(new[genFeature.getCapName()/].length, new[genFeature.getCapName()/]);
- }
-
- [/if]
- /**
- *
- *
- * @generated
- */
- [if (not isImplementation) ]
- void set[genFeature.getAccessorName()/](int index, [genFeature.getListItemType(genClass)/] element);
-
- [else]
- public void set[genFeature.getAccessorName()/](int index, [genFeature.getListItemType(genClass)/] element) {
- [genFeature.getGetAccessor()/]().set(index, element);
- }
-
- [/if]
-[/if]
-[if (genFeature.isGet() and (isImplementation or not genFeature.isSuppressedGetVisibility()))]
- [if (isInterface)]
- /**
- * Returns the value of the '[genFeature.getFormattedName()/]' [genFeature.getFeatureKind()/].
- [if (genFeature.isListType())]
- [if (genFeature.isMapType())]
- [let keyFeature : GenFeature = genFeature.getMapEntryTypeGenClass().getMapEntryKeyFeature()]
- [let valueFeature : GenFeature = genFeature.getMapEntryTypeGenClass().getMapEntryValueFeature()]
- * The key is of type [if (keyFeature.isListType()) ]list of {@link [keyFeature.getQualifiedListItemType(genClass)/]}[else]{@link [keyFeature.getType(genClass)/]}[/if],
- * and the value is of type [if (valueFeature.isListType()) ]list of {@link [valueFeature.getQualifiedListItemType(genClass)/]}[else]{@link [valueFeature.getType(genClass)/]}[/if],
- [/let]
- [/let]
- [else][if (not genFeature.isWrappedFeatureMapType() and not (genModel.suppressEMFMetaData and 'org.eclipse.emf.ecore.EObject' = genFeature.getQualifiedListItemType(genClass)))]
- [let typeName : String = genFeature.getQualifiedListItemType(genClass)]
- [let index : Integer = if typeName.index('<') < 0 then typeName.index('[') else typeName.index('<') endif]
- [let head : String = if index < 0 then typeName else typeName.substring(1, index - 1) endif]
- [let tail : String = if index < 0 then '' else typeName.substring(index).replaceAll('<', '<') endif]
- * The list contents are of type {@link [head/]}[tail/].
- [/let]
- [/let]
- [/let]
- [/let]
- [/if][/if]
- [else][if (genFeature.isSetDefaultValue()) ]
- * The default value is [genFeature.getDefaultValue()/].
- [/if][/if]
- [if (genFeature.getTypeGenEnum() <> null) ]
- * The literals are from the enumeration {@link [genFeature.getTypeGenEnum().getQualifiedName()/]}.
- [/if]
- [if (genFeature.isBidirectional() and not genFeature.getReverse().genClass.isMapEntry())]
- [let reverseGenFeature : GenFeature = genFeature.getReverse()]
- [if (not reverseGenFeature.isSuppressedGetVisibility()) ]
- * It is bidirectional and its opposite is '{@link [reverseGenFeature.genClass.getQualifiedInterfaceName()/]#[reverseGenFeature.getGetAccessor()/] [reverseGenFeature.getFormattedName()/]}'.
- [/if]
- [/let]
- [/if]
- *
- [if (not genFeature.hasDocumentation()) ]
- *
- * If the meaning of the '[genFeature.getFormattedName()/]' [genFeature.getFeatureKind()/] isn't clear,
- * there really should be more of a description here...
- *
The Eclipse Foundation makes available all content in this plug-in ("Content"). Unless otherwise
-indicated below, the Content is provided to you under the terms and conditions of the
-Eclipse Public License Version 1.0 ("EPL"). A copy of the EPL is available
-at http://www.eclipse.org/legal/epl-v10.html.
-For purposes of the EPL, "Program" will mean the Content.
-
-
If you did not receive this Content directly from the Eclipse Foundation, the Content is
-being redistributed by another party ("Redistributor") and different terms and conditions may
-apply to your use of any object code in the Content. Check the Redistributor's license that was
-provided with the Content. If no such license exists, contact the Redistributor. Unless otherwise
-indicated below, the terms and conditions of the EPL still apply to any source code in the Content
-and such source code may be obtained at http://www.eclipse.org.
-
-
-
\ No newline at end of file
diff --git a/plugins/org.eclipse.emf.eef.codegen.extended.widgets.richtext/build.acceleo b/plugins/org.eclipse.emf.eef.codegen.extended.widgets.richtext/build.acceleo
deleted file mode 100644
index ebb8cd827..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.extended.widgets.richtext/build.acceleo
+++ /dev/null
@@ -1,26 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/plugins/org.eclipse.emf.eef.codegen.extended.widgets.richtext/build.properties b/plugins/org.eclipse.emf.eef.codegen.extended.widgets.richtext/build.properties
deleted file mode 100644
index 3b7c29542..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.extended.widgets.richtext/build.properties
+++ /dev/null
@@ -1,19 +0,0 @@
-###############################################################################
-# Copyright (c) 2008, 2011 Obeo.
-# 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:
-# Obeo - initial API and implementation
-###############################################################################
-source.. = src/
-output.. = bin/
-bin.includes = META-INF/,\
- .,\
- plugin.xml,\
- about.html,\
- std/
-customBuildCallbacks = build.acceleo
-src.includes = about.html
diff --git a/plugins/org.eclipse.emf.eef.codegen.extended.widgets.richtext/plugin.xml b/plugins/org.eclipse.emf.eef.codegen.extended.widgets.richtext/plugin.xml
deleted file mode 100644
index 8aa22ac76..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.extended.widgets.richtext/plugin.xml
+++ /dev/null
@@ -1,15 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/plugins/org.eclipse.emf.eef.codegen.extended.widgets.richtext/pom.xml b/plugins/org.eclipse.emf.eef.codegen.extended.widgets.richtext/pom.xml
deleted file mode 100644
index 0734f3e03..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.extended.widgets.richtext/pom.xml
+++ /dev/null
@@ -1,75 +0,0 @@
-
-
-
- 4.0.0
-
-
- org.eclipse.emf
- org.eclipse.emf.eef.releng.parent
- ../../releng/org.eclipse.emf.eef.releng.parent
- 1.5.2-SNAPSHOT
-
-
- org.eclipse.emf
- org.eclipse.emf.eef.codegen.extended.widgets.richtext
- 1.5.2-SNAPSHOT
- eclipse-plugin
-
- EEF RichText Codegen Plug-in
-
-
-
-
- org.eclipse.acceleo
- org.eclipse.acceleo.maven
- 3.5.0-SNAPSHOT
-
-
- compile
-
- acceleo-compile
-
-
-
-
- false
- true
-
- ${project.basedir}
-
-
- src
-
-
-
-
- org.eclipse.emf:org.eclipse.emf.eef.codegen
-
-
-
- org.eclipse.emf.ecore.EcorePackage
- org.eclipse.emf.eef.components.ComponentsPackage
- org.eclipse.emf.eef.mapping.MappingPackage
- org.eclipse.emf.eef.views.ViewsPackage
- org.eclipse.emf.eef.EEFGen.EEFGenPackage
- org.eclipse.emf.eef.mapping.filters.FiltersPackage
- org.eclipse.emf.eef.mapping.navigation.NavigationPackage
- org.eclipse.emf.eef.extended.editor.EditorPackage
- org.eclipse.emf.codegen.ecore.genmodel.GenModelPackage
-
- org.eclipse.acceleo.maven.AcceleoURIHandler
-
-
-
-
-
diff --git a/plugins/org.eclipse.emf.eef.codegen.extended.widgets.richtext/src/org/eclipse/emf/eef/codegen/extended/widgets/richtext/Activator.java b/plugins/org.eclipse.emf.eef.codegen.extended.widgets.richtext/src/org/eclipse/emf/eef/codegen/extended/widgets/richtext/Activator.java
deleted file mode 100644
index 9317d8f48..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.extended.widgets.richtext/src/org/eclipse/emf/eef/codegen/extended/widgets/richtext/Activator.java
+++ /dev/null
@@ -1,64 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008, 2013 Obeo.
- * 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:
- * Obeo - initial API and implementation
- *******************************************************************************/
-package org.eclipse.emf.eef.codegen.extended.widgets.richtext;
-
-import org.eclipse.core.runtime.Plugin;
-import org.osgi.framework.BundleContext;
-
-/**
- * The activator class controls the plug-in life cycle.
- */
-public class Activator extends Plugin {
-
- /**
- * The plug-in ID.
- */
- public static final String PLUGIN_ID = "org.eclipse.emf.eef.codegen.extended.widgets.richtext";
-
- /**
- * The shared instance.
- */
- private static Activator plugin;
-
- /**
- * The constructor.
- */
- public Activator() {
- }
-
- /**{@inheritDoc}
- *
- * @see org.eclipse.core.runtime.Plugin#start(org.osgi.framework.BundleContext)
- */
- public void start(BundleContext context) throws Exception {
- super.start(context);
- plugin = this;
- }
-
- /**{@inheritDoc}
- *
- * @see org.eclipse.core.runtime.Plugin#stop(org.osgi.framework.BundleContext)
- */
- public void stop(BundleContext context) throws Exception {
- plugin = null;
- super.stop(context);
- }
-
- /**
- * Returns the shared instance.
- *
- * @return the shared instance
- */
- public static Activator getDefault() {
- return plugin;
- }
-
-}
diff --git a/plugins/org.eclipse.emf.eef.codegen.extended.widgets.richtext/src/org/eclipse/emf/eef/codegen/extended/widgets/richtext/compiler/EEFRichTextCodegenCompiler.java b/plugins/org.eclipse.emf.eef.codegen.extended.widgets.richtext/src/org/eclipse/emf/eef/codegen/extended/widgets/richtext/compiler/EEFRichTextCodegenCompiler.java
deleted file mode 100644
index 8e2269186..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.extended.widgets.richtext/src/org/eclipse/emf/eef/codegen/extended/widgets/richtext/compiler/EEFRichTextCodegenCompiler.java
+++ /dev/null
@@ -1,169 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008, 2012 Obeo.
- * 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:
- * Obeo - initial API and implementation
- *******************************************************************************/
-package org.eclipse.emf.eef.codegen.extended.widgets.richtext.compiler;
-
-import java.io.File;
-import java.util.ArrayList;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Map;
-
-import org.eclipse.acceleo.common.IAcceleoConstants;
-import org.eclipse.acceleo.parser.compiler.AbstractAcceleoCompiler;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.emf.common.util.BasicMonitor;
-import org.eclipse.emf.common.util.Monitor;
-import org.eclipse.emf.common.util.URI;
-
-/**
- * The Acceleo Standalone compiler.
- *
- * @author Goulwen Le Fur
- * @since 1.2.2
- */
-public class EEFRichTextCodegenCompiler extends AbstractAcceleoCompiler {
-
- /**
- * The entry point of the compilation.
- *
- * @param args
- * The arguments used in the compilation: the source folder, the output folder, a boolean
- * indicating if we should use binary resource serialization and finally the dependencies of
- * the project.
- */
- public static void main(String[] args) {
- if (args.length < 3) {
- throw new IllegalArgumentException("Missing parameters"); //$NON-NLS-1$
- }
- EEFRichTextCodegenCompiler acceleoCompiler = new EEFRichTextCodegenCompiler();
- acceleoCompiler.setSourceFolder(args[0]);
- acceleoCompiler.setOutputFolder(args[1]);
- acceleoCompiler.setBinaryResource(Boolean.valueOf(args[2]).booleanValue());
- if (args.length == 4 && args[3] != null && !"".equals(args[3])) { //$NON-NLS-1$
- acceleoCompiler.setDependencies(args[3]);
- }
- acceleoCompiler.doCompile(new BasicMonitor());
- }
-
- /**
- * Launches the compilation of the mtl files in the generator.
- *
- * @see org.eclipse.acceleo.parser.compiler.AbstractAcceleoCompiler#doCompile(org.eclipse.emf.common.util.Monitor)
- */
- @Override
- public void doCompile(Monitor monitor) {
- super.doCompile(monitor);
- }
-
- /**
- * Registers the packages of the metamodels used in the generator.
- *
- * @see org.eclipse.acceleo.parser.compiler.AbstractAcceleoCompiler#registerPackages()
- */
- @Override
- protected void registerPackages() {
- super.registerPackages();
- org.eclipse.emf.ecore.EPackage.Registry.INSTANCE.put(
- org.eclipse.emf.eef.components.ComponentsPackage.eINSTANCE.getNsURI(),
- org.eclipse.emf.eef.components.ComponentsPackage.eINSTANCE);
- org.eclipse.emf.ecore.EPackage.Registry.INSTANCE.put(
- org.eclipse.emf.eef.mapping.MappingPackage.eINSTANCE.getNsURI(),
- org.eclipse.emf.eef.mapping.MappingPackage.eINSTANCE);
- org.eclipse.emf.ecore.EPackage.Registry.INSTANCE.put(
- org.eclipse.emf.eef.mapping.navigation.NavigationPackage.eINSTANCE.getNsURI(),
- org.eclipse.emf.eef.mapping.navigation.NavigationPackage.eINSTANCE);
- org.eclipse.emf.ecore.EPackage.Registry.INSTANCE.put(
- org.eclipse.emf.eef.mapping.filters.FiltersPackage.eINSTANCE.getNsURI(),
- org.eclipse.emf.eef.mapping.filters.FiltersPackage.eINSTANCE);
- org.eclipse.emf.ecore.EPackage.Registry.INSTANCE.put(
- org.eclipse.emf.ecore.EcorePackage.eINSTANCE.getNsURI(),
- org.eclipse.emf.ecore.EcorePackage.eINSTANCE);
- org.eclipse.emf.ecore.EPackage.Registry.INSTANCE.put(
- org.eclipse.emf.eef.views.ViewsPackage.eINSTANCE.getNsURI(),
- org.eclipse.emf.eef.views.ViewsPackage.eINSTANCE);
- org.eclipse.emf.ecore.EPackage.Registry.INSTANCE.put(
- org.eclipse.emf.eef.toolkits.ToolkitsPackage.eINSTANCE.getNsURI(),
- org.eclipse.emf.eef.toolkits.ToolkitsPackage.eINSTANCE);
- org.eclipse.emf.ecore.EPackage.Registry.INSTANCE.put(
- org.eclipse.emf.eef.EEFGen.EEFGenPackage.eINSTANCE.getNsURI(),
- org.eclipse.emf.eef.EEFGen.EEFGenPackage.eINSTANCE);
- org.eclipse.emf.ecore.EPackage.Registry.INSTANCE.put(
- org.eclipse.emf.codegen.ecore.genmodel.GenModelPackage.eINSTANCE.getNsURI(),
- org.eclipse.emf.codegen.ecore.genmodel.GenModelPackage.eINSTANCE);
-
- }
-
- /**
- * Registers the resource factories.
- *
- * @see org.eclipse.acceleo.parser.compiler.AbstractAcceleoCompiler#registerResourceFactories()
- */
- @Override
- protected void registerResourceFactories() {
- super.registerResourceFactories();
- /*
- * If you want to add other resource factories, for example if your metamodel uses a specific
- * serialization:
- * org.eclipse.emf.ecore.resource.Resource.Factory.Registry.getExtensionToFactoryMap().put
- * (UMLResource.FILE_EXTENSION, UMLResource.Factory.INSTANCE);
- */
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.acceleo.parser.compiler.AbstractAcceleoCompiler#computeDependencies(java.util.List,
- * java.util.Map)
- */
- protected void computeDependencies(List dependenciesURIs, Map mapURIs) {
- // USED TO FIX COMPILER WITH TYCHO
- Iterator identifiersIt = dependenciesIDs.iterator();
- for (Iterator dependenciesIt = dependencies.iterator(); dependenciesIt.hasNext()
- && identifiersIt.hasNext();) {
- File requiredFolder = dependenciesIt.next();
- String identifier = identifiersIt.next();
- if (requiredFolder != null && requiredFolder.exists() && requiredFolder.isDirectory()) {
- List emtlFiles = new ArrayList();
- members(emtlFiles, requiredFolder, IAcceleoConstants.EMTL_FILE_EXTENSION);
- for (File emtlFile : emtlFiles) {
- String requiredFolderAbsolutePath = requiredFolder.getAbsolutePath();
- if (requiredFolderAbsolutePath.endsWith("target/classes")) {
- // using tycho
- String[] splited = requiredFolderAbsolutePath.split("\\/");
- StringBuffer buf = new StringBuffer(requiredFolderAbsolutePath.length());
- for (int i = 0; i < splited.length - 3; i++) {
- buf.append(splited[i]);
- buf.append("/");
- }
- requiredFolderAbsolutePath = buf.toString();
- String emtlAbsolutePath = emtlFile.getAbsolutePath();
- URI emtlFileURI = URI.createFileURI(emtlAbsolutePath);
- dependenciesURIs.add(emtlFileURI);
- String emtlModifiedPath = emtlAbsolutePath.replaceAll("target\\/|classes\\/", "");
- IPath relativePath = new Path(emtlModifiedPath.substring(requiredFolderAbsolutePath
- .length()));
- URI relativeURI = URI.createPlatformPluginURI(relativePath.toString(), false);
- mapURIs.put(emtlFileURI, relativeURI);
- } else {
- // normal behavior
- String emtlAbsolutePath = emtlFile.getAbsolutePath();
- URI emtlFileURI = URI.createFileURI(emtlAbsolutePath);
- dependenciesURIs.add(emtlFileURI);
- IPath relativePath = new Path(identifier).append(emtlAbsolutePath
- .substring(requiredFolderAbsolutePath.length()));
- mapURIs.put(emtlFileURI, URI.createPlatformPluginURI(relativePath.toString(), false));
- }
- }
- }
- }
- }
-}
diff --git a/plugins/org.eclipse.emf.eef.codegen.extended.widgets.richtext/src/org/eclipse/emf/eef/codegen/widgets/impl/richtext/richtextControl.mtl b/plugins/org.eclipse.emf.eef.codegen.extended.widgets.richtext/src/org/eclipse/emf/eef/codegen/widgets/impl/richtext/richtextControl.mtl
deleted file mode 100644
index 417b76f47..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.extended.widgets.richtext/src/org/eclipse/emf/eef/codegen/widgets/impl/richtext/richtextControl.mtl
+++ /dev/null
@@ -1,60 +0,0 @@
-[comment encoding = UTF-8
- *******************************************************************************
- * Copyright (c) 2008-2010 Obeo.
- * 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:
- * Obeo - initial API and implementation
- *******************************************************************************
- /]
-[module richtextControl('http://www.eclipse.org/emf/2002/Ecore', 'http://www.eclipse.org/emf/2002/GenModel', 'http://www.eclipse.org/emf/eef/components/1.0.0', 'http://www.eclipse.org/emf/eef/views/1.0.0', 'http://www.eclipse.org/emf/eef/mapping/1.0.0') extends org::eclipse::emf::eef::codegen::widgets::api::widgetControl/]
-
-[import org::eclipse::emf::eef::codegen::services::naming /]
-[import org::eclipse::emf::eef::codegen::services::common /]
-[import org::eclipse::emf::eef::codegen::services::typeUtils /]
-[import org::eclipse::emf::eef::codegen::services::imports /]
-
-[comment ===== Case : model = Attribute(1) - view = RichText ===== /]
-[template public declareEObjectUpdater(editionElement : PropertiesEditionElement, view : View, pec : PropertiesEditionComponent) overrides declareEObjectUpdater ? (editionElement.model.isAttributeSingle() and editionElement.representationName('RichText') and not editionElement.canGeneratemodelNavigation())]
-[if (editionElement.model.isPrimitiveType())]
-[pec.pecModelClass().toJavaIdentifier().disambiguation('event')/].set[editionElement.model.name.toUpperFirst()/](([include('org.eclipse.emf.eef.runtime.impl.utils.EEFConverterUtil')/].create[editionElement.model.eType.instanceClassName.toUpperFirst()/]FromString([editionElement.metamodelTypeGetter()/], (String)event.getNewValue())));[else]
-[pec.pecModelClass().toJavaIdentifier().disambiguation('event')/].set[editionElement.model.name.toUpperFirst()/](([editionElement.model.eType.instanceClassName/])[include('org.eclipse.emf.eef.runtime.impl.utils.EEFConverterUtil')/].createFromString([editionElement.metamodelTypeGetter()/], (String)event.getNewValue()));[/if]
-[/template]
-
-[template public liveUpdater(editionElement : PropertiesEditionElement, view : View, pec : PropertiesEditionComponent) overrides liveUpdater ? (editionElement.model.isAttributeSingle() and editionElement.representationName('RichText'))]
-if ([editionElement.liveUpdaterNavigationConditionForText(pec)/] && [view.viewIdentifier(pec)/] != null && isAccessible([editionElement.views->first().editorID()/])){
- if (msg.getNewValue() != null) {
- [view.viewIdentifier(pec)/].[editionElement.views->first().viewPackageSetter()/](EcoreUtil.convertToString([editionElement.metamodelTypeGetter()/], msg.getNewValue()));
- } else {
- [view.viewIdentifier(pec)/].[editionElement.views->first().viewPackageSetter()/]("");
- }
-}
-[/template]
-
-
-[template public updater(editionElement : PropertiesEditionElement, view : View, pec : PropertiesEditionComponent) overrides updater ? (editionElement.model.isAttributeSingle() and editionElement.representationName('RichText') and not editionElement.canGeneratemodelNavigation())]
-if (isAccessible([editionElement.views->first().editorID()/]))
- [view.viewIdentifier(pec)/].[editionElement.views->first().viewPackageSetter()/](EcoreUtil.convertToString([editionElement.metamodelTypeGetter()/], [pec.pecModelClass().toJavaIdentifier()/].[if isBoolean(editionElement.model.oclAsType(EAttribute))]is[else]get[/if][editionElement.model.name.toUpperFirst()/]()));
-[/template]
-
-[template public filterUpdater(editionElement : PropertiesEditionElement, view : View, pec : PropertiesEditionComponent) overrides filterUpdater ? (editionElement.model.isAttributeSingle() and editionElement.representationName('RichText'))]
-[comment no filters for RichText /]
-[/template]
-
-
-[comment ===== Case : model = Attribute(1) - view = RichText - ModelNavigation ===== /]
-
-[template public declareEObjectUpdater(editionElement : PropertiesEditionElement, view : View, pec : PropertiesEditionComponent) overrides declareEObjectUpdater ? (editionElement.model.isAttributeSingle() and editionElement.representationName('RichText') and editionElement.canGeneratemodelNavigation())]
-[if (editionElement.model.isPrimitiveType())]
-[pec.pecModelClass().toJavaIdentifier().disambiguation('event')/].set[editionElement.model.name.toUpperFirst()/](([include('org.eclipse.emf.eef.runtime.impl.utils.EEFConverterUtil')/].create[editionElement.model.eType.instanceClassName.toUpperFirst()/]FromString([editionElement.metamodelTypeGetter()/], (String)event.getNewValue())));[else]
-[pec.pecModelClass().toJavaIdentifier().disambiguation('event')/].set[editionElement.model.name.toUpperFirst()/](([editionElement.model.eType.instanceClassName/])[include('org.eclipse.emf.eef.runtime.impl.utils.EEFConverterUtil')/].createFromString([editionElement.metamodelTypeGetter()/], (String)event.getNewValue()));[/if]
-[/template]
-
-[template public updater(editionElement : PropertiesEditionElement, view : View, pec : PropertiesEditionComponent) overrides updater ? (editionElement.model.isAttributeSingle() and editionElement.representationName('RichText') and editionElement.canGeneratemodelNavigation())]
-if (isAccessible([editionElement.views->first().editorID()/]))
- [view.viewIdentifier(pec)/].[editionElement.views->first().viewPackageSetter()/](EcoreUtil.convertToString([editionElement.metamodelTypeGetter()/], [editionElement.name.toJavaIdentifier()/]Settings.getValue()));
-[/template]
-
diff --git a/plugins/org.eclipse.emf.eef.codegen.extended.widgets.richtext/src/org/eclipse/emf/eef/codegen/widgets/impl/richtext/richtextFormImpl.mtl b/plugins/org.eclipse.emf.eef.codegen.extended.widgets.richtext/src/org/eclipse/emf/eef/codegen/widgets/impl/richtext/richtextFormImpl.mtl
deleted file mode 100644
index b1dfbdd73..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.extended.widgets.richtext/src/org/eclipse/emf/eef/codegen/widgets/impl/richtext/richtextFormImpl.mtl
+++ /dev/null
@@ -1,156 +0,0 @@
-[comment encoding = UTF-8
- *******************************************************************************
- * Copyright (c) 2008-2010 Obeo.
- * 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:
- * Obeo - initial API and implementation
- *******************************************************************************
- /]
-[module richtextFormImpl('http://www.eclipse.org/emf/eef/views/1.0.0', 'http://www.eclipse.org/emf/eef/components/1.0.0', 'http://www.eclipse.org/emf/2002/Ecore', 'http://www.eclipse.org/emf/eef/generation/1.0.0') extends org::eclipse::emf::eef::codegen::widgets::api::widgetFormImpl/]
-
-[import org::eclipse::emf::eef::codegen::services::common /]
-[import org::eclipse::emf::eef::codegen::services::naming /]
-[import org::eclipse::emf::eef::codegen::services::viewCommon /]
-[import org::eclipse::emf::eef::codegen::services::imports/]
-
-[template public manageImports(widget : Widget, pec : PropertiesEditionComponent, view : View, basePackage : String) overrides manageImports ? (widget.name = 'RichText')]
-[pec.addImports(Sequence{
- 'org.eclipse.swt.widgets.Composite',
- 'org.eclipse.swt.widgets.Label',
- 'org.eclipse.ui.forms.widgets.FormToolkit',
- 'org.eclipse.emf.eef.runtime.ui.widgets.FormUtils',
- 'org.eclipse.emf.eef.runtime.ui.widgets.richtext.actions.EEFFontNameAction',
- 'org.eclipse.emf.eef.runtime.ui.widgets.richtext.actions.EEFFontSizeAction',
- 'org.eclipse.emf.eef.runtime.ui.widgets.richtext.actions.EEFFontStyleAction',
- 'org.eclipse.epf.richtext.actions.IndentAction',
- 'org.eclipse.epf.richtext.actions.ItalicAction',
- 'org.eclipse.epf.richtext.actions.JustifyCenterAction',
- 'org.eclipse.epf.richtext.actions.JustifyLeftAction',
- 'org.eclipse.epf.richtext.actions.JustifyRightAction',
- 'org.eclipse.epf.richtext.actions.OutdentAction',
- 'org.eclipse.epf.richtext.actions.PasteAction',
- 'org.eclipse.epf.richtext.actions.SubscriptAction',
- 'org.eclipse.epf.richtext.actions.SuperscriptAction',
- 'org.eclipse.epf.richtext.actions.TidyActionGroup',
- 'org.eclipse.epf.richtext.actions.UnderlineAction',
- 'org.eclipse.epf.richtext.IRichText',
- 'org.eclipse.epf.richtext.IRichTextToolBar',
- 'org.eclipse.epf.richtext.RichTextToolBar',
- 'org.eclipse.epf.richtext.actions.AddImageAction',
- 'org.eclipse.epf.richtext.actions.AddLinkAction',
- 'org.eclipse.epf.richtext.actions.AddOrderedListAction',
- 'org.eclipse.epf.richtext.actions.AddTableAction',
- 'org.eclipse.epf.richtext.actions.AddUnorderedListAction',
- 'org.eclipse.epf.richtext.actions.BoldAction',
- 'org.eclipse.epf.richtext.actions.ClearContentAction',
- 'org.eclipse.epf.richtext.actions.CopyAction',
- 'org.eclipse.epf.richtext.actions.CutAction',
- 'org.eclipse.epf.richtext.actions.FindReplaceAction',
- 'org.eclipse.emf.eef.runtime.impl.notify.PropertiesEditionEvent',
- 'org.eclipse.swt.layout.GridData'})/]
-[/template]
-
-[template public widgetDeclaration(editor : ElementEditor) overrides widgetDeclaration ? (editor.representation.name = 'RichText')]
- protected [include('org.eclipse.epf.richtext.RichText')/] [editor.elementEditorName()/];
-[/template]
-
-[template public implementation(editor : ElementEditor) overrides implementation ? (editor.representation.name = 'RichText')]
-return create[editor.name.toJavaClassifier()/]RichText(widgetFactory, parent);
-[/template]
-
-[template public additionalImplementation(editor : ElementEditor, pec : PropertiesEditionComponent, inputPEC: PropertiesEditionComponent) overrides additionalImplementation ? (editor.representation.name = 'RichText')]
- [editor.owningViewsRepository().associatedGenModel().generationComment()/]
- protected Composite create[editor.name.toJavaClassifier()/]RichText(FormToolkit widgetFactory, Composite parent) {
- [if (editor.nameAsLabel)]
- Label [editor.elementEditorName()/]Label = FormUtils.createPartLabel(widgetFactory, parent, [include(editor.owningViewsRepository().qualifiedMessagesProvider())/].[editor.editorKey(editor.owningView())/], propertiesEditionComponent.isRequired([editor.editorID()/], [editor.owningViewsRepository().vrClass()/].FORM_KIND));
- [else]
- Label [editor.elementEditorName()/]Label = createDescription(parent, [editor.editorID()/], [include(editor.owningViewsRepository().qualifiedMessagesProvider())/].[editor.editorKey(editor.owningView())/]);
- [/if]
- GridData [editor.elementEditorName()/]LabelData = new GridData(GridData.FILL_HORIZONTAL);
- [editor.elementEditorName()/]LabelData.horizontalSpan = 2;
- [editor.elementEditorName()/]Label.setLayoutData([editor.elementEditorName()/]LabelData);
- FormUtils.createHelpButton(widgetFactory, parent, propertiesEditionComponent.getHelpContent([editor.editorID()/], [editor.owningViewsRepository().vrClass()/].FORM_KIND), null); //$NON-NLS-1$
- Composite toolbarContainer = widgetFactory.createComposite(parent);
- toolbarContainer.setLayout(new GridLayout(2, false));
- GridData toolbarData = new GridData(GridData.FILL_HORIZONTAL);
- toolbarData.horizontalSpan = 3;
- toolbarContainer.setLayoutData(toolbarData);
- RichTextToolBar toolBar = new RichTextToolBar(toolbarContainer, SWT.NONE, [editor.elementEditorName()/]);
- [editor.elementEditorName()/] = new RichText(parent, SWT.BORDER | SWT.WRAP | SWT.MULTI | SWT.V_SCROLL); //$NON-NLS-1$
- [editor.elementEditorName()/].setEditable(true);
- GridData [editor.elementEditorName()/]Data = new GridData(GridData.FILL_HORIZONTAL);
- [editor.elementEditorName()/]Data.horizontalSpan = 3;
- [editor.elementEditorName()/]Data.heightHint = 200;
- [editor.elementEditorName()/]Data.widthHint = 200;
- [editor.elementEditorName()/].setLayoutData([editor.elementEditorName()/]Data);
-
- [editor.elementEditorName()/].addModifyListener(new ModifyListener() {
- public void modifyText(ModifyEvent e) {
- propertiesEditionComponent.delayedFirePropertiesChanged(new PropertiesEditionEvent([editor.editionPart()/].this, [editorID(editor)/], PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.SET, null, [editor.elementEditorName()/].getText()));
- }
- });
-
- fillToolBar(toolBar, [editor.elementEditorName()/]);
- return parent;
- }
-
- /**
- * Populate actions in the Toolbar to link with the RichText
- *
- * @param toolBar The IRichTextToolBar
- * @param richText The IRichText
- */
- private void fillToolBar(IRichTextToolBar toolBar, IRichText richText) {
- [editor.fillToolbar()/]
- }
-[/template]
-
-[template public fillToolbar (editor : ElementEditor) ]
- toolBar.addAction(new EEFFontStyleAction(richText));
- toolBar.addAction(new EEFFontNameAction(richText));
- toolBar.addAction(new EEFFontSizeAction(richText));
- toolBar.addSeparator();
- toolBar.addAction(new CutAction(richText));
- toolBar.addAction(new CopyAction(richText));
- toolBar.addAction(new PasteAction(richText));
- toolBar.addSeparator();
- toolBar.addAction(new ClearContentAction(richText));
- toolBar.addSeparator();
- toolBar.addAction(new BoldAction(richText));
- toolBar.addAction(new ItalicAction(richText));
- toolBar.addAction(new UnderlineAction(richText));
- toolBar.addSeparator();
- toolBar.addAction(new SubscriptAction(richText));
- toolBar.addAction(new SuperscriptAction(richText));
- toolBar.addSeparator();
- toolBar.addAction(new TidyActionGroup(richText));
- toolBar.addSeparator();
- toolBar.addAction(new AddOrderedListAction(richText));
- toolBar.addAction(new AddUnorderedListAction(richText));
- toolBar.addSeparator();
- toolBar.addAction(new OutdentAction(richText));
- toolBar.addAction(new IndentAction(richText));
- toolBar.addSeparator();
- toolBar.addAction(new JustifyLeftAction(richText));
- toolBar.addAction(new JustifyCenterAction(richText));
- toolBar.addAction(new JustifyRightAction(richText));
- toolBar.addSeparator();
- toolBar.addAction(new FindReplaceAction(richText) {
- /**
- * @see org.eclipse.epf.richtext.actions.FindReplaceAction#execute(org.eclipse.epf.richtext.IRichText)
- */
- public void execute(IRichText rText) {
- rText.getFindReplaceAction().execute(rText);
- }
- });
- toolBar.addSeparator();
- toolBar.addAction(new AddLinkAction(richText));
- toolBar.addAction(new AddImageAction(richText));
- toolBar.addSeparator();
- toolBar.addAction(new AddTableAction(richText));
-
-[/template]
diff --git a/plugins/org.eclipse.emf.eef.codegen.extended.widgets.richtext/src/org/eclipse/emf/eef/codegen/widgets/impl/richtext/richtextGettersSetters.mtl b/plugins/org.eclipse.emf.eef.codegen.extended.widgets.richtext/src/org/eclipse/emf/eef/codegen/widgets/impl/richtext/richtextGettersSetters.mtl
deleted file mode 100644
index dcc83cdd7..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.extended.widgets.richtext/src/org/eclipse/emf/eef/codegen/widgets/impl/richtext/richtextGettersSetters.mtl
+++ /dev/null
@@ -1,55 +0,0 @@
-[comment encoding = UTF-8
- *******************************************************************************
- * Copyright (c) 2008-2010 Obeo.
- * 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:
- * Obeo - initial API and implementation
- *******************************************************************************
- /]
-[module richtextGettersSetters('http://www.eclipse.org/emf/eef/views/1.0.0') extends org::eclipse::emf::eef::codegen::widgets::api::widgetGettersSetters /]
-
-[import org::eclipse::emf::eef::codegen::services::common /]
-[import org::eclipse::emf::eef::codegen::services::naming /]
-[import org::eclipse::emf::eef::codegen::widgets::api::widgetGettersSetters /]
-
-[template public getterSignatureImplementation(elementEditor : ElementEditor) overrides getterSignatureImplementation ? (elementEditor.representationName('RichText'))]
-[elementEditor.getterSignature()/] {
- return [elementEditor.elementEditorName()/].getText();
- }
-[/template]
-
-[template public setterSignatureImplementation(elementEditor : ElementEditor) overrides setterSignatureImplementation ? (elementEditor.representationName('RichText'))]
-[elementEditor.setterSignature()/] {
- if (newValue != null) {
- [elementEditor.elementEditorName()/].setText(newValue);
- } else {
- [elementEditor.elementEditorName()/].setText(""); //$NON-NLS-1$
- }
- [elementEditor.readOnly()/]
- }
-[/template]
-
-[template public readOnly (editor : ElementEditor)]
-[if (editor.readOnly)]
-[editor.setReadOnly()/]
-[else]
-boolean eefElementEditorReadOnlyState = isReadOnly([editor.editorID()/][navigationReadOnly()/]);
-if (eefElementEditorReadOnlyState && [editor.elementEditorName()/].getEditable()==true) {
- [editor.setReadOnly()/]
-} else if (!eefElementEditorReadOnlyState && [editor.elementEditorName()/].getEditable()==false) {
- [editor.unsetReadOnly()/]
-}
-[/if]
-[/template]
-
-[template public setReadOnly (editor : ElementEditor)]
-[editor.elementEditorName()/].setEditable(false);
-[/template]
-
-[template public unsetReadOnly (editor : ElementEditor)]
-[editor.elementEditorName()/].setEditable(true);
-[/template]
\ No newline at end of file
diff --git a/plugins/org.eclipse.emf.eef.codegen.extended.widgets.richtext/src/org/eclipse/emf/eef/codegen/widgets/impl/richtext/richtextSWTImpl.mtl b/plugins/org.eclipse.emf.eef.codegen.extended.widgets.richtext/src/org/eclipse/emf/eef/codegen/widgets/impl/richtext/richtextSWTImpl.mtl
deleted file mode 100644
index 1f532f137..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.extended.widgets.richtext/src/org/eclipse/emf/eef/codegen/widgets/impl/richtext/richtextSWTImpl.mtl
+++ /dev/null
@@ -1,156 +0,0 @@
-[comment encoding = UTF-8
- *******************************************************************************
- * Copyright (c) 2008-2010 Obeo.
- * 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:
- * Obeo - initial API and implementation
- *******************************************************************************
- /]
-[module richtextSWTImpl('http://www.eclipse.org/emf/eef/views/1.0.0', 'http://www.eclipse.org/emf/eef/components/1.0.0', 'http://www.eclipse.org/emf/2002/Ecore', 'http://www.eclipse.org/emf/eef/generation/1.0.0') extends org::eclipse::emf::eef::codegen::widgets::api::widgetSWTImpl/]
-
-[import org::eclipse::emf::eef::codegen::services::common /]
-[import org::eclipse::emf::eef::codegen::services::naming /]
-[import org::eclipse::emf::eef::codegen::services::viewCommon /]
-[import org::eclipse::emf::eef::codegen::services::imports/]
-
-[template public manageImports(widget : Widget, pec : PropertiesEditionComponent, view : View, basePackage : String) overrides manageImports ? (widget.name = 'RichText')]
-[pec.addImports(Sequence{
- 'org.eclipse.swt.widgets.Composite',
- 'org.eclipse.swt.widgets.Label',
- 'org.eclipse.emf.eef.runtime.ui.widgets.SWTUtils',
- 'org.eclipse.emf.eef.runtime.ui.widgets.richtext.actions.EEFFontNameAction',
- 'org.eclipse.emf.eef.runtime.ui.widgets.richtext.actions.EEFFontSizeAction',
- 'org.eclipse.emf.eef.runtime.ui.widgets.richtext.actions.EEFFontStyleAction',
- 'org.eclipse.epf.richtext.actions.IndentAction',
- 'org.eclipse.epf.richtext.actions.ItalicAction',
- 'org.eclipse.epf.richtext.actions.JustifyCenterAction',
- 'org.eclipse.epf.richtext.actions.JustifyLeftAction',
- 'org.eclipse.epf.richtext.actions.JustifyRightAction',
- 'org.eclipse.epf.richtext.actions.OutdentAction',
- 'org.eclipse.epf.richtext.actions.PasteAction',
- 'org.eclipse.epf.richtext.actions.SubscriptAction',
- 'org.eclipse.epf.richtext.actions.SuperscriptAction',
- 'org.eclipse.epf.richtext.actions.TidyActionGroup',
- 'org.eclipse.epf.richtext.actions.UnderlineAction',
- 'org.eclipse.epf.richtext.IRichText',
- 'org.eclipse.epf.richtext.IRichTextToolBar',
- 'org.eclipse.epf.richtext.RichTextToolBar',
- 'org.eclipse.epf.richtext.actions.AddImageAction',
- 'org.eclipse.epf.richtext.actions.AddLinkAction',
- 'org.eclipse.epf.richtext.actions.AddOrderedListAction',
- 'org.eclipse.epf.richtext.actions.AddTableAction',
- 'org.eclipse.epf.richtext.actions.AddUnorderedListAction',
- 'org.eclipse.epf.richtext.actions.BoldAction',
- 'org.eclipse.epf.richtext.actions.ClearContentAction',
- 'org.eclipse.epf.richtext.actions.CopyAction',
- 'org.eclipse.epf.richtext.actions.CutAction',
- 'org.eclipse.epf.richtext.actions.FindReplaceAction',
- 'org.eclipse.emf.eef.runtime.impl.notify.PropertiesEditionEvent',
- 'org.eclipse.swt.layout.GridData'})/]
-[/template]
-
-[template public widgetDeclaration(editor : ElementEditor) overrides widgetDeclaration ? (editor.representation.name = 'RichText')]
- protected [include('org.eclipse.epf.richtext.RichText')/] [editor.elementEditorName()/];
-[/template]
-
-[template public implementation(editor : ElementEditor) overrides implementation ? (editor.representation.name = 'RichText')]
-return create[editor.name.toJavaClassifier()/]RichText(parent);
-[/template]
-
-[template public additionalImplementation(editor : ElementEditor, pec : PropertiesEditionComponent, inputPEC: PropertiesEditionComponent) overrides additionalImplementation ? (editor.representation.name = 'RichText')]
- [editor.owningViewsRepository().associatedGenModel().generationComment()/]
- protected Composite create[editor.name.toJavaClassifier()/]RichText(Composite parent) {
- [if (editor.nameAsLabel)]
- Label [editor.elementEditorName()/]Label = SWTUtils.createPartLabel(parent, [include(editor.owningViewsRepository().qualifiedMessagesProvider())/].[editor.editorKey(editor.owningView())/], propertiesEditionComponent.isRequired([editor.editorID()/], [editor.owningViewsRepository().vrClass()/].SWT_KIND));
- [else]
- Label [editor.elementEditorName()/]Label = createDescription(parent, [editor.editorID()/], [include(editor.owningViewsRepository().qualifiedMessagesProvider())/].[editor.editorKey(editor.owningView())/]);
- [/if]
- GridData [editor.elementEditorName()/]LabelData = new GridData(GridData.FILL_HORIZONTAL);
- [editor.elementEditorName()/]LabelData.horizontalSpan = 2;
- [editor.elementEditorName()/]Label.setLayoutData([editor.elementEditorName()/]LabelData);
- SWTUtils.createHelpButton(parent, propertiesEditionComponent.getHelpContent([editor.editorID()/], [editor.owningViewsRepository().vrClass()/].SWT_KIND), null); //$NON-NLS-1$
- Composite toolbarContainer = new Composite(parent, SWT.NONE);
- toolbarContainer.setLayout(new GridLayout(2, false));
- GridData toolbarData = new GridData(GridData.FILL_HORIZONTAL);
- toolbarData.horizontalSpan = 3;
- toolbarContainer.setLayoutData(toolbarData);
- RichTextToolBar toolBar = new RichTextToolBar(toolbarContainer, SWT.NONE, [editor.elementEditorName()/]);
- [editor.elementEditorName()/] = new RichText(parent, SWT.BORDER | SWT.WRAP | SWT.MULTI | SWT.V_SCROLL); //$NON-NLS-1$
- [editor.elementEditorName()/].setEditable(true);
- GridData [editor.elementEditorName()/]Data = new GridData(GridData.FILL_HORIZONTAL);
- [editor.elementEditorName()/]Data.horizontalSpan = 3;
- [editor.elementEditorName()/]Data.heightHint = 200;
- [editor.elementEditorName()/]Data.widthHint = 200;
- [editor.elementEditorName()/].setLayoutData([editor.elementEditorName()/]Data);
-
- [editor.elementEditorName()/].addModifyListener(new ModifyListener() {
- public void modifyText(ModifyEvent e) {
- propertiesEditionComponent.delayedFirePropertiesChanged(new PropertiesEditionEvent([editor.editionPart()/].this, [editorID(editor)/], PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.SET, null, [editor.elementEditorName()/].getText()));
- }
- });
-
- fillToolBar(toolBar, [editor.elementEditorName()/]);
- return parent;
- }
-
- /**
- * Populate actions in the Toolbar to link with the RichText
- *
- * @param toolBar The IRichTextToolBar
- * @param richText The IRichText
- */
- private void fillToolBar(IRichTextToolBar toolBar, IRichText richText) {
- [editor.fillToolBar()/]
- }
-[/template]
-
-[template public fillToolBar (editor : ElementEditor) ]
- toolBar.addAction(new EEFFontStyleAction(richText));
- toolBar.addAction(new EEFFontNameAction(richText));
- toolBar.addAction(new EEFFontSizeAction(richText));
- toolBar.addSeparator();
- toolBar.addAction(new CutAction(richText));
- toolBar.addAction(new CopyAction(richText));
- toolBar.addAction(new PasteAction(richText));
- toolBar.addSeparator();
- toolBar.addAction(new ClearContentAction(richText));
- toolBar.addSeparator();
- toolBar.addAction(new BoldAction(richText));
- toolBar.addAction(new ItalicAction(richText));
- toolBar.addAction(new UnderlineAction(richText));
- toolBar.addSeparator();
- toolBar.addAction(new SubscriptAction(richText));
- toolBar.addAction(new SuperscriptAction(richText));
- toolBar.addSeparator();
- toolBar.addAction(new TidyActionGroup(richText));
- toolBar.addSeparator();
- toolBar.addAction(new AddOrderedListAction(richText));
- toolBar.addAction(new AddUnorderedListAction(richText));
- toolBar.addSeparator();
- toolBar.addAction(new OutdentAction(richText));
- toolBar.addAction(new IndentAction(richText));
- toolBar.addSeparator();
- toolBar.addAction(new JustifyLeftAction(richText));
- toolBar.addAction(new JustifyCenterAction(richText));
- toolBar.addAction(new JustifyRightAction(richText));
- toolBar.addSeparator();
- toolBar.addAction(new FindReplaceAction(richText) {
- /**
- * @see org.eclipse.epf.richtext.actions.FindReplaceAction#execute(org.eclipse.epf.richtext.IRichText)
- */
- public void execute(IRichText rText) {
- rText.getFindReplaceAction().execute(rText);
- }
- });
- toolBar.addSeparator();
- toolBar.addAction(new AddLinkAction(richText));
- toolBar.addAction(new AddImageAction(richText));
- toolBar.addSeparator();
- toolBar.addAction(new AddTableAction(richText));
-
-[/template]
-
diff --git a/plugins/org.eclipse.emf.eef.codegen.extended.widgets.richtext/std/Extended.toolkits b/plugins/org.eclipse.emf.eef.codegen.extended.widgets.richtext/std/Extended.toolkits
deleted file mode 100644
index b668f3bfb..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.extended.widgets.richtext/std/Extended.toolkits
+++ /dev/null
@@ -1,4 +0,0 @@
-
-
-
-
diff --git a/plugins/org.eclipse.emf.eef.codegen.extended/.classpath b/plugins/org.eclipse.emf.eef.codegen.extended/.classpath
deleted file mode 100644
index ed5ee00d9..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.extended/.classpath
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
-
-
-
-
-
-
diff --git a/plugins/org.eclipse.emf.eef.codegen.extended/.gitignore b/plugins/org.eclipse.emf.eef.codegen.extended/.gitignore
deleted file mode 100644
index d567ba01e..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.extended/.gitignore
+++ /dev/null
@@ -1,2 +0,0 @@
-bin
-target
diff --git a/plugins/org.eclipse.emf.eef.codegen.extended/.project b/plugins/org.eclipse.emf.eef.codegen.extended/.project
deleted file mode 100644
index d4aae1c62..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.extended/.project
+++ /dev/null
@@ -1,48 +0,0 @@
-
-
- org.eclipse.emf.eef.codegen.extended
-
-
-
-
-
- org.eclipse.jdt.core.javabuilder
-
-
-
-
- org.eclipse.pde.ManifestBuilder
-
-
-
-
- org.eclipse.pde.SchemaBuilder
-
-
-
-
- org.eclipse.acceleo.ide.ui.acceleoBuilder
-
-
- compliance
- pragmatic
-
-
- resource.kind
- binary
-
-
-
-
- org.eclipse.pde.api.tools.apiAnalysisBuilder
-
-
-
-
-
- org.eclipse.acceleo.ide.ui.acceleoNature
- org.eclipse.pde.PluginNature
- org.eclipse.jdt.core.javanature
- org.eclipse.pde.api.tools.apiAnalysisNature
-
-
diff --git a/plugins/org.eclipse.emf.eef.codegen.extended/.settings/org.eclipse.jdt.core.prefs b/plugins/org.eclipse.emf.eef.codegen.extended/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index d1c0bf949..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.extended/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,6 +0,0 @@
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
-org.eclipse.jdt.core.compiler.compliance=1.5
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.source=1.5
diff --git a/plugins/org.eclipse.emf.eef.codegen.extended/META-INF/MANIFEST.MF b/plugins/org.eclipse.emf.eef.codegen.extended/META-INF/MANIFEST.MF
deleted file mode 100644
index 3353b1f1e..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.extended/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,33 +0,0 @@
-Manifest-Version: 1.0
-Bundle-ManifestVersion: 2
-Bundle-Name: Acceleo Extended Module Runtime Plug-in
-Bundle-SymbolicName: org.eclipse.emf.eef.codegen.extended;singleton:=true
-Bundle-Version: 1.5.2.qualifier
-Bundle-Activator: org.eclipse.emf.eef.codegen.extended.Activator
-Bundle-Vendor: Eclipse Modeling Project
-Require-Bundle: org.eclipse.core.runtime;bundle-version="3.4.0",
- org.eclipse.emf.eef.eefgen;bundle-version="1.0.0",
- org.eclipse.emf.ecore;bundle-version="2.4.0",
- org.eclipse.emf.ecore.xmi;bundle-version="2.4.0",
- org.eclipse.ocl;bundle-version="1.2.0",
- org.eclipse.ocl.ecore;bundle-version="1.2.0",
- org.eclipse.acceleo.model;bundle-version="3.1.0",
- org.eclipse.acceleo.engine;bundle-version="3.1.0",
- org.eclipse.emf.eef.codegen;bundle-version="1.0.0",
- org.eclipse.core.resources;bundle-version="3.4.0",
- org.eclipse.emf.eef.runtime;bundle-version="1.0.0",
- org.eclipse.emf.eef.editor.model;bundle-version="1.0.0",
- org.eclipse.emf.eef.runtime.extended;bundle-version="1.0.0",
- org.eclipse.ui;bundle-version="3.4.0",
- org.eclipse.acceleo.parser;bundle-version="3.1.0";resolution:=optional,
- org.eclipse.emf.eef.codegen.ecore;bundle-version="1.1.0"
-Bundle-RequiredExecutionEnvironment: J2SE-1.5
-Bundle-ActivationPolicy: lazy
-Eclipse-LazyStart: true
-Export-Package: org.eclipse.emf.eef.codegen.extended,
- org.eclipse.emf.eef.codegen.extended.files,
- org.eclipse.emf.eef.codegen.extended.flow,
- org.eclipse.emf.eef.codegen.extended.initializer,
- org.eclipse.emf.eef.codegen.extended.launcher,
- org.eclipse.emf.eef.codegen.extended.ui.initializer,
- org.eclipse.emf.eef.codegen.extended.ui.launcher
diff --git a/plugins/org.eclipse.emf.eef.codegen.extended/about.html b/plugins/org.eclipse.emf.eef.codegen.extended/about.html
deleted file mode 100644
index f3a55ce5f..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.extended/about.html
+++ /dev/null
@@ -1,28 +0,0 @@
-
-
-
-
-About
-
-
-
About This Content
-
-
June 15, 2010
-
License
-
-
The Eclipse Foundation makes available all content in this plug-in ("Content"). Unless otherwise
-indicated below, the Content is provided to you under the terms and conditions of the
-Eclipse Public License Version 1.0 ("EPL"). A copy of the EPL is available
-at http://www.eclipse.org/legal/epl-v10.html.
-For purposes of the EPL, "Program" will mean the Content.
-
-
If you did not receive this Content directly from the Eclipse Foundation, the Content is
-being redistributed by another party ("Redistributor") and different terms and conditions may
-apply to your use of any object code in the Content. Check the Redistributor's license that was
-provided with the Content. If no such license exists, contact the Redistributor. Unless otherwise
-indicated below, the terms and conditions of the EPL still apply to any source code in the Content
-and such source code may be obtained at http://www.eclipse.org.
-
-
-
\ No newline at end of file
diff --git a/plugins/org.eclipse.emf.eef.codegen.extended/build.acceleo b/plugins/org.eclipse.emf.eef.codegen.extended/build.acceleo
deleted file mode 100644
index ab52fd3dc..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.extended/build.acceleo
+++ /dev/null
@@ -1,26 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/plugins/org.eclipse.emf.eef.codegen.extended/build.properties b/plugins/org.eclipse.emf.eef.codegen.extended/build.properties
deleted file mode 100644
index cd7d70856..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.extended/build.properties
+++ /dev/null
@@ -1,21 +0,0 @@
-###############################################################################
-# Copyright (c) 2008, 2011 Obeo.
-# 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:
-# Obeo - initial API and implementation
-###############################################################################
-source.. = src/,\
- src-custom/,\
- src-build/
-output.. = bin/
-bin.includes = META-INF/,\
- .,\
- plugin.xml,\
- icons/,\
- about.html
-customBuildCallbacks = build.acceleo
-src.includes = about.html
diff --git a/plugins/org.eclipse.emf.eef.codegen.extended/icons/full/obj16/initialize_eef_editor.gif b/plugins/org.eclipse.emf.eef.codegen.extended/icons/full/obj16/initialize_eef_editor.gif
deleted file mode 100644
index 3a63a22343ca9f808bba6b07563b2b9894ade73b..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001
literal 1057
zcmeH`+fR~l0ER!DF6I$3E?Oj@CCCMTq_p>nzK#u69eS*i~fnOdiGvC@9n$2@d4dv|B2|g
z%)fT5-w^Qq0Q|6kU9)}H>@Zq@!3vC4U^;MYSiz@Hw+1E)vaz~K=$aCrm(H~7y#
zU4Z1q#9z4NNu5|lYmOVb-^)Oqy!VFIX77H=J>uI=L~&HUxbwHQDdVqT4L3X}gIaOXdrlNe
ztwmG3Vj=#i8!|FxI6twG@^Ebw2@Z?#I&rCJxetNr8zLE6PCslQc;U|7inNi!{esBF
z%YCRjhAbE#7)@JY#w`R;*oJp!BMk)DhaQ-@Jk#w%iq!-NYRj2gp+Am%W^0*yEe5*s
E2bYNIuK)l5
diff --git a/plugins/org.eclipse.emf.eef.codegen.extended/plugin.xml b/plugins/org.eclipse.emf.eef.codegen.extended/plugin.xml
deleted file mode 100644
index 8a4cd5d41..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.extended/plugin.xml
+++ /dev/null
@@ -1,68 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/plugins/org.eclipse.emf.eef.codegen.extended/pom.xml b/plugins/org.eclipse.emf.eef.codegen.extended/pom.xml
deleted file mode 100644
index 8350d8116..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.extended/pom.xml
+++ /dev/null
@@ -1,76 +0,0 @@
-
-
-
- 4.0.0
-
-
- org.eclipse.emf
- org.eclipse.emf.eef.releng.parent
- ../../releng/org.eclipse.emf.eef.releng.parent
- 1.5.2-SNAPSHOT
-
-
- org.eclipse.emf
- org.eclipse.emf.eef.codegen.extended
- 1.5.2-SNAPSHOT
- eclipse-plugin
-
- EEF Extended Codegen Plug-in
-
-
-
-
- org.eclipse.acceleo
- org.eclipse.acceleo.maven
- 3.5.0-SNAPSHOT
-
-
- compile
-
- acceleo-compile
-
-
-
-
- false
- true
-
- ${project.basedir}
-
-
- src
-
-
-
-
- org.eclipse.emf:org.eclipse.emf.eef.codegen
- org.eclipse.emf:org.eclipse.emf.eef.codegen.ecore
-
-
-
- org.eclipse.emf.ecore.EcorePackage
- org.eclipse.emf.eef.components.ComponentsPackage
- org.eclipse.emf.eef.mapping.MappingPackage
- org.eclipse.emf.eef.views.ViewsPackage
- org.eclipse.emf.eef.EEFGen.EEFGenPackage
- org.eclipse.emf.eef.mapping.filters.FiltersPackage
- org.eclipse.emf.eef.mapping.navigation.NavigationPackage
- org.eclipse.emf.eef.extended.editor.EditorPackage
- org.eclipse.emf.codegen.ecore.genmodel.GenModelPackage
-
- org.eclipse.acceleo.maven.AcceleoURIHandler
-
-
-
-
-
diff --git a/plugins/org.eclipse.emf.eef.codegen.extended/src-build/org/eclipse/emf/eef/codegen/extended/EEFCodegenExtendedCompiler.java b/plugins/org.eclipse.emf.eef.codegen.extended/src-build/org/eclipse/emf/eef/codegen/extended/EEFCodegenExtendedCompiler.java
deleted file mode 100644
index f0c48b9dc..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.extended/src-build/org/eclipse/emf/eef/codegen/extended/EEFCodegenExtendedCompiler.java
+++ /dev/null
@@ -1,172 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008, 2012 Obeo.
- * 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:
- * Obeo - initial API and implementation
- *******************************************************************************/
-package org.eclipse.emf.eef.codegen.extended;
-
-import java.io.File;
-import java.util.ArrayList;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Map;
-
-import org.eclipse.acceleo.common.IAcceleoConstants;
-import org.eclipse.acceleo.parser.compiler.AbstractAcceleoCompiler;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.emf.common.util.BasicMonitor;
-import org.eclipse.emf.common.util.Monitor;
-import org.eclipse.emf.common.util.URI;
-
-/**
- * The Acceleo Standalone compiler.
- *
- * @author Stephane Bouchet
- * @since 1.1
- */
-public class EEFCodegenExtendedCompiler extends AbstractAcceleoCompiler {
-
- /**
- * The entry point of the compilation.
- *
- * @param args
- * The arguments used in the compilation: the source folder, the output folder, a boolean
- * indicating if we should use binary resource serialization and finally the dependencies of
- * the project.
- */
- public static void main(String[] args) {
- if (args.length < 3) {
- throw new IllegalArgumentException("Missing parameters"); //$NON-NLS-1$
- }
- EEFCodegenExtendedCompiler acceleoCompiler = new EEFCodegenExtendedCompiler();
- acceleoCompiler.setSourceFolder(args[0]);
- acceleoCompiler.setOutputFolder(args[1]);
- acceleoCompiler.setBinaryResource(Boolean.valueOf(args[2]).booleanValue());
- if (args.length == 4 && args[3] != null && !"".equals(args[3])) { //$NON-NLS-1$
- acceleoCompiler.setDependencies(args[3]);
- }
- acceleoCompiler.doCompile(new BasicMonitor());
- }
-
- /**
- * Launches the compilation of the mtl files in the generator.
- *
- * @see org.eclipse.acceleo.parser.compiler.AbstractAcceleoCompiler#doCompile(org.eclipse.emf.common.util.Monitor)
- */
- @Override
- public void doCompile(Monitor monitor) {
- super.doCompile(monitor);
- }
-
- /**
- * Registers the packages of the metamodels used in the generator.
- *
- * @see org.eclipse.acceleo.parser.compiler.AbstractAcceleoCompiler#registerPackages()
- */
- @Override
- protected void registerPackages() {
- super.registerPackages();
- org.eclipse.emf.ecore.EPackage.Registry.INSTANCE.put(
- org.eclipse.emf.eef.components.ComponentsPackage.eINSTANCE.getNsURI(),
- org.eclipse.emf.eef.components.ComponentsPackage.eINSTANCE);
- org.eclipse.emf.ecore.EPackage.Registry.INSTANCE.put(
- org.eclipse.emf.eef.mapping.MappingPackage.eINSTANCE.getNsURI(),
- org.eclipse.emf.eef.mapping.MappingPackage.eINSTANCE);
- org.eclipse.emf.ecore.EPackage.Registry.INSTANCE.put(
- org.eclipse.emf.eef.mapping.navigation.NavigationPackage.eINSTANCE.getNsURI(),
- org.eclipse.emf.eef.mapping.navigation.NavigationPackage.eINSTANCE);
- org.eclipse.emf.ecore.EPackage.Registry.INSTANCE.put(
- org.eclipse.emf.eef.mapping.filters.FiltersPackage.eINSTANCE.getNsURI(),
- org.eclipse.emf.eef.mapping.filters.FiltersPackage.eINSTANCE);
- org.eclipse.emf.ecore.EPackage.Registry.INSTANCE.put(
- org.eclipse.emf.ecore.EcorePackage.eINSTANCE.getNsURI(),
- org.eclipse.emf.ecore.EcorePackage.eINSTANCE);
- org.eclipse.emf.ecore.EPackage.Registry.INSTANCE.put(
- org.eclipse.emf.eef.views.ViewsPackage.eINSTANCE.getNsURI(),
- org.eclipse.emf.eef.views.ViewsPackage.eINSTANCE);
- org.eclipse.emf.ecore.EPackage.Registry.INSTANCE.put(
- org.eclipse.emf.eef.toolkits.ToolkitsPackage.eINSTANCE.getNsURI(),
- org.eclipse.emf.eef.toolkits.ToolkitsPackage.eINSTANCE);
- org.eclipse.emf.ecore.EPackage.Registry.INSTANCE.put(
- org.eclipse.emf.eef.EEFGen.EEFGenPackage.eINSTANCE.getNsURI(),
- org.eclipse.emf.eef.EEFGen.EEFGenPackage.eINSTANCE);
- org.eclipse.emf.ecore.EPackage.Registry.INSTANCE.put(
- org.eclipse.emf.eef.extended.editor.EditorPackage.eINSTANCE.getNsURI(),
- org.eclipse.emf.eef.extended.editor.EditorPackage.eINSTANCE);
- org.eclipse.emf.ecore.EPackage.Registry.INSTANCE.put(
- org.eclipse.emf.codegen.ecore.genmodel.GenModelPackage.eINSTANCE.getNsURI(),
- org.eclipse.emf.codegen.ecore.genmodel.GenModelPackage.eINSTANCE);
-
- }
-
- /**
- * Registers the resource factories.
- *
- * @see org.eclipse.acceleo.parser.compiler.AbstractAcceleoCompiler#registerResourceFactories()
- */
- @Override
- protected void registerResourceFactories() {
- super.registerResourceFactories();
- /*
- * If you want to add other resource factories, for example if your metamodel uses a specific
- * serialization:
- * org.eclipse.emf.ecore.resource.Resource.Factory.Registry.getExtensionToFactoryMap().put
- * (UMLResource.FILE_EXTENSION, UMLResource.Factory.INSTANCE);
- */
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.acceleo.parser.compiler.AbstractAcceleoCompiler#computeDependencies(java.util.List,
- * java.util.Map)
- */
- protected void computeDependencies(List dependenciesURIs, Map mapURIs) {
- // USED TO FIX COMPILER WITH TYCHO
- Iterator identifiersIt = dependenciesIDs.iterator();
- for (Iterator dependenciesIt = dependencies.iterator(); dependenciesIt.hasNext()
- && identifiersIt.hasNext();) {
- File requiredFolder = dependenciesIt.next();
- String identifier = identifiersIt.next();
- if (requiredFolder != null && requiredFolder.exists() && requiredFolder.isDirectory()) {
- List emtlFiles = new ArrayList();
- members(emtlFiles, requiredFolder, IAcceleoConstants.EMTL_FILE_EXTENSION);
- for (File emtlFile : emtlFiles) {
- String requiredFolderAbsolutePath = requiredFolder.getAbsolutePath();
- if (requiredFolderAbsolutePath.endsWith("target/classes")) {
- // using tycho
- String[] splited = requiredFolderAbsolutePath.split("\\/");
- StringBuffer buf = new StringBuffer(requiredFolderAbsolutePath.length());
- for (int i = 0; i < splited.length - 3; i++) {
- buf.append(splited[i]);
- buf.append("/");
- }
- requiredFolderAbsolutePath = buf.toString();
- String emtlAbsolutePath = emtlFile.getAbsolutePath();
- URI emtlFileURI = URI.createFileURI(emtlAbsolutePath);
- dependenciesURIs.add(emtlFileURI);
- String emtlModifiedPath = emtlAbsolutePath.replaceAll("target\\/|classes\\/", "");
- IPath relativePath = new Path(emtlModifiedPath.substring(requiredFolderAbsolutePath
- .length()));
- URI relativeURI = URI.createPlatformPluginURI(relativePath.toString(), false);
- mapURIs.put(emtlFileURI, relativeURI);
- } else {
- // normal behavior
- String emtlAbsolutePath = emtlFile.getAbsolutePath();
- URI emtlFileURI = URI.createFileURI(emtlAbsolutePath);
- dependenciesURIs.add(emtlFileURI);
- IPath relativePath = new Path(identifier).append(emtlAbsolutePath
- .substring(requiredFolderAbsolutePath.length()));
- mapURIs.put(emtlFileURI, URI.createPlatformPluginURI(relativePath.toString(), false));
- }
- }
- }
- }
- }
-}
diff --git a/plugins/org.eclipse.emf.eef.codegen.extended/src-custom/org/eclipse/emf/eef/codegen/extended/flow/CleanEEFEditorSources.java b/plugins/org.eclipse.emf.eef.codegen.extended/src-custom/org/eclipse/emf/eef/codegen/extended/flow/CleanEEFEditorSources.java
deleted file mode 100644
index 85c193db2..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.extended/src-custom/org/eclipse/emf/eef/codegen/extended/flow/CleanEEFEditorSources.java
+++ /dev/null
@@ -1,344 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008, 2012 Obeo.
- * 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:
- * Obeo - initial API and implementation
- *******************************************************************************/
-package org.eclipse.emf.eef.codegen.extended.flow;
-
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.core.resources.IContainer;
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IFolder;
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.resources.IResource;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.emf.codegen.ecore.genmodel.GenModel;
-import org.eclipse.emf.eef.codegen.flow.StepWithInput;
-import org.eclipse.emf.eef.codegen.flow.util.GenmodelHelper;
-import org.eclipse.emf.eef.runtime.ui.EEFExtendedRuntime;
-import org.eclipse.jface.wizard.WizardPage;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.events.SelectionAdapter;
-import org.eclipse.swt.events.SelectionEvent;
-import org.eclipse.swt.layout.GridLayout;
-import org.eclipse.swt.widgets.Button;
-import org.eclipse.swt.widgets.Composite;
-
-/**
- * @author Goulwen Le Fur
- *
- */
-public class CleanEEFEditorSources extends StepWithInput {
-
- private static final String PLUGIN_XML = "plugin.xml";
- private static final String PLUGIN_PROPERTIES = "plugin.properties";
- private static final String BUILD_PROPERTIES = "build.properties";
-
- private GenmodelHelper helper;
- private IFile ecoreModel;
- private IContainer targetFolder;
-
- private boolean genmodel;
- private boolean emfModelCode;
- private boolean emfEditCode;
- private boolean emfEditorCode;
- private boolean eefPropertiesModels;
- private boolean eefEditorModels;
-
- /**
- * @param name task name
- * @param activeShell the active shell
- */
- public CleanEEFEditorSources(String name, IFile ecoreModel, IContainer targetFolder) {
- super(name);
- this.ecoreModel = ecoreModel;
- this.targetFolder = targetFolder;
- genmodel = true;
- emfModelCode = true;
- emfEditCode = true;
- emfEditorCode = true;
- eefPropertiesModels = true;
- eefEditorModels = false;
- }
-
- /**
- * {@inheritDoc}
- * @see org.eclipse.emf.eef.codegen.flow.Step#execute(org.eclipse.core.runtime.IProgressMonitor)
- */
- public IStatus execute(IProgressMonitor monitor) {
- try {
- GenModel genModel = helper.getGenModel();
- if (genModel != null) {
- String modelDirectory = genModel.getModelDirectory();
- String editDirectory = genModel.getEditDirectory();
- String editorDirectory = genModel.getEditorDirectory();
- if (genmodel) {
- deleteGenmodel(monitor);
- }
- if (emfModelCode) {
- deleteProject(modelDirectory, monitor);
- }
- if (emfEditCode) {
- deleteProject(editDirectory, monitor);
- }
- if (emfEditorCode) {
- deleteProject(editorDirectory, monitor);
- }
- if (eefPropertiesModels) {
- deleteEEFPropertiesModels(monitor);
- }
- if (eefEditorModels) {
- deleteEEFEditorModels(monitor);
- }
- }
- } catch (CoreException e) {
- return new Status(IStatus.ERROR, EEFExtendedRuntime.PLUGIN_ID, "Unable to delete genmodel file.", e);
- }
- return Status.OK_STATUS;
- }
-
- /**
- * {@inheritDoc}
- * @see org.eclipse.emf.eef.codegen.flow.StepWithInput#getInputPages()
- */
- public List getInputPages() {
- helper = new GenmodelHelper(resourceSet, ecoreModel, targetFolder);
- CleanEEFEditorSourcesWizardPage cleanEEFEditorSourcesWizardPage = new CleanEEFEditorSourcesWizardPage("Clean EEF Editor sources page");
- List pages = new ArrayList();
- pages.add(cleanEEFEditorSourcesWizardPage);
- return pages;
- }
-
- /**
- * @param monitor
- * @throws CoreException
- */
- protected void deleteGenmodel(IProgressMonitor monitor) throws CoreException {
- IFile genModelFile = helper.getGenModelFile();
- if (genModelFile.isAccessible()) {
- genModelFile.delete(true, monitor);
- helper.getTargetFolder().refreshLocal(IResource.DEPTH_INFINITE, monitor);
- }
- }
-
- /**
- * @param srcFolderDirectory
- * @param monitor
- * @throws CoreException
- */
- protected void deleteProject(String srcFolderDirectory, IProgressMonitor monitor) throws CoreException {
- IFolder srcFolder = ecoreModel.getWorkspace().getRoot().getFolder(new Path(srcFolderDirectory));
- IProject project = srcFolder.getProject();
- IFile pluginXML = project.getFile(new Path(PLUGIN_XML));
- IFile pluginProperties = project.getFile(new Path(PLUGIN_PROPERTIES));
- IFile buildProperties = project.getFile(new Path(BUILD_PROPERTIES));
- if (srcFolder.isAccessible()) {
- srcFolder.delete(true, monitor);
- }
- if (pluginXML.isAccessible()) {
- pluginXML.delete(true, monitor);
- }
- if (pluginProperties.isAccessible()) {
- pluginProperties.delete(true, monitor);
- }
- if (buildProperties.isAccessible()) {
- buildProperties.delete(true, monitor);
- }
- project.refreshLocal(IResource.DEPTH_INFINITE, monitor);
- }
-
- /**
- * @param monitor
- * @throws CoreException
- */
- protected void deleteEEFPropertiesModels(IProgressMonitor monitor) throws CoreException {
- IFile eefPropertiesComponentsModel = helper.getEEFPropertiesComponentsModel();
- if (eefPropertiesComponentsModel.isAccessible()) {
- eefPropertiesComponentsModel.delete(true, monitor);
- }
- IFile eefPropertiesEEFGenModel = helper.getEEFPropertiesEEFGenModel();
- if (eefPropertiesEEFGenModel.isAccessible()) {
- eefPropertiesEEFGenModel.delete(true, monitor);
- }
- helper.getEEFModelsFolder().refreshLocal(IResource.DEPTH_INFINITE, monitor);
- }
-
- /**
- * @param monitor
- * @throws CoreException
- */
- protected void deleteEEFEditorModels(IProgressMonitor monitor) throws CoreException {
- IFile eefEditorComponentsModel = helper.getEEFEditorComponentsModel();
- if (eefEditorComponentsModel.isAccessible()) {
- eefEditorComponentsModel.delete(true, monitor);
- }
- IFile eefEditorEEFGenModel = helper.getEEFEditorEEFGenModel();
- if (eefEditorEEFGenModel.isAccessible()) {
- eefEditorEEFGenModel.delete(true, monitor);
- }
- helper.getEEFModelsFolder().refreshLocal(IResource.DEPTH_INFINITE, monitor);
- }
-
- private class CleanEEFEditorSourcesWizardPage extends WizardPage {
-
- private Button genmodelButton;
- private Button emfModelCodeButton;
- private Button emfEditCodeButton;
- private Button emfEditorCodeButton;
- private Button eefPropertiesModelsButton;
- private Button eefEditorModelsButton;
-
- /**
- * @param pageName
- */
- public CleanEEFEditorSourcesWizardPage(String pageName) {
- super(pageName);
- setTitle("EEF editor sources cleaning");
- setDescription("Choose actions you want to perform");
- }
-
- /**
- * {@inheritDoc}
- * @see org.eclipse.jface.dialogs.IDialogPage#createControl(org.eclipse.swt.widgets.Composite)
- */
- public void createControl(Composite parent) {
- Composite container = new Composite(parent, SWT.NONE);
- GridLayout layout = new GridLayout();
- container.setLayout(layout);
- genmodelButton = new Button(container, SWT.CHECK);
- genmodelButton.setText("Delete generated 'genmodel' file");
- genmodelButton.addSelectionListener(new SelectionAdapter() {
-
- /**
- * {@inheritDoc}
- * @see org.eclipse.swt.events.SelectionAdapter#widgetSelected(org.eclipse.swt.events.SelectionEvent)
- */
- public void widgetSelected(SelectionEvent e) {
- genmodel = !genmodel;
- }
-
- });
- if (helper.getGenModelFile().exists()) {
- genmodelButton.setSelection(genmodel);
- } else {
- genmodelButton.setEnabled(false);
- genmodel = false;
- }
- emfModelCodeButton = new Button(container, SWT.CHECK);
- emfModelCodeButton.setText("Delete generated EMF model code");
- emfModelCodeButton.addSelectionListener(new SelectionAdapter() {
-
- /**
- * {@inheritDoc}
- * @see org.eclipse.swt.events.SelectionAdapter#widgetSelected(org.eclipse.swt.events.SelectionEvent)
- */
- public void widgetSelected(SelectionEvent e) {
- emfModelCode = !emfModelCode;
- }
-
- });
- IFolder emfModelSrcFolder = helper.getEMFModelSrcFolder();
- if (emfModelSrcFolder != null && emfModelSrcFolder.isAccessible()) {
- emfModelCodeButton.setSelection(emfModelCode);
- } else {
- emfModelCodeButton.setEnabled(false);
- emfModelCode = false;
- }
- emfEditCodeButton = new Button(container, SWT.CHECK);
- emfEditCodeButton.setText("Delete generated EMF edit code");
- emfEditCodeButton.addSelectionListener(new SelectionAdapter() {
-
- /**
- * {@inheritDoc}
- * @see org.eclipse.swt.events.SelectionAdapter#widgetSelected(org.eclipse.swt.events.SelectionEvent)
- */
- public void widgetSelected(SelectionEvent e) {
- emfEditCode = !emfEditCode;
- }
-
- });
- IFolder emfEditSrcFolder = helper.getEMFEditSrcFolder();
- if (emfEditSrcFolder != null && emfEditSrcFolder.isAccessible()) {
- emfEditCodeButton.setSelection(emfEditCode);
- } else {
- emfEditCodeButton.setEnabled(false);
- emfEditCode = false;
- }
- emfEditorCodeButton = new Button(container, SWT.CHECK);
- emfEditorCodeButton.setText("Delete generated EMF editor code");
- emfEditorCodeButton.addSelectionListener(new SelectionAdapter() {
-
- /**
- * {@inheritDoc}
- * @see org.eclipse.swt.events.SelectionAdapter#widgetSelected(org.eclipse.swt.events.SelectionEvent)
- */
- public void widgetSelected(SelectionEvent e) {
- emfEditorCode = !emfEditorCode;
- }
-
- });
- IFolder emfEditorSrcFolder = helper.getEMFEditorSrcFolder();
- if (emfEditorSrcFolder != null && emfEditorSrcFolder.isAccessible()) {
- emfEditorCodeButton.setSelection(emfEditorCode);
- } else {
- emfEditorCodeButton.setEnabled(false);
- emfEditorCode = false;
- }
- eefPropertiesModelsButton = new Button(container, SWT.CHECK);
- eefPropertiesModelsButton.setText("Delete generated EEF models for properties views");
- eefPropertiesModelsButton.addSelectionListener(new SelectionAdapter() {
-
- /**
- * {@inheritDoc}
- * @see org.eclipse.swt.events.SelectionAdapter#widgetSelected(org.eclipse.swt.events.SelectionEvent)
- */
- public void widgetSelected(SelectionEvent e) {
- eefPropertiesModels = !eefPropertiesModels;
- }
-
- });
- if (helper.getEEFPropertiesComponentsModel().exists() || helper.getEEFPropertiesEEFGenModel().exists()) {
- eefPropertiesModelsButton.setSelection(eefPropertiesModels);
- } else {
- eefPropertiesModelsButton.setEnabled(false);
- eefPropertiesModels = false;
- }
- eefEditorModelsButton = new Button(container, SWT.CHECK);
- eefEditorModelsButton.setText("Delete generated EEF models for EEF editor");
- eefEditorModelsButton.setSelection(true);
- eefEditorModelsButton.addSelectionListener(new SelectionAdapter() {
-
-
- /**
- * {@inheritDoc}
- * @see org.eclipse.swt.events.SelectionAdapter#widgetSelected(org.eclipse.swt.events.SelectionEvent)
- */
- public void widgetSelected(SelectionEvent e) {
- eefEditorModels = !eefEditorModels;
- }
-
- });
- if (helper.getEEFEditorComponentsModel().exists() || helper.getEEFEditorEEFGenModel().exists()) {
- eefEditorModelsButton.setSelection(eefEditorModels);
- } else {
- eefEditorModelsButton.setEnabled(false);
- eefEditorModels = false;
- }
- setControl(container);
- }
-
- }
-
-}
diff --git a/plugins/org.eclipse.emf.eef.codegen.extended/src-custom/org/eclipse/emf/eef/codegen/extended/flow/GenerateEEFEditorModels.java b/plugins/org.eclipse.emf.eef.codegen.extended/src-custom/org/eclipse/emf/eef/codegen/extended/flow/GenerateEEFEditorModels.java
deleted file mode 100644
index f913bde11..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.extended/src-custom/org/eclipse/emf/eef/codegen/extended/flow/GenerateEEFEditorModels.java
+++ /dev/null
@@ -1,147 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008, 2012 Obeo.
- * 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:
- * Obeo - initial API and implementation
- *******************************************************************************/
-package org.eclipse.emf.eef.codegen.extended.flow;
-
-import java.io.IOException;
-
-import org.eclipse.core.resources.IFolder;
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.resources.IResource;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.NullProgressMonitor;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.emf.common.util.URI;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.eef.EEFGen.EEFGenModel;
-import org.eclipse.emf.eef.codegen.EEFCodegenPlugin;
-import org.eclipse.emf.eef.codegen.core.util.EMFHelper;
-import org.eclipse.emf.eef.codegen.extended.initializer.EEFEditorModelInitializer;
-import org.eclipse.emf.eef.codegen.flow.Step;
-import org.eclipse.emf.eef.codegen.flow.util.GenmodelHelper;
-import org.eclipse.emf.eef.codegen.flow.var.WorkflowVariable;
-
-/**
- * @author Goulwen Le Fur
- *
- */
-public class GenerateEEFEditorModels extends Step {
-
- private EEFEditorModelInitializer eefeditorModelInitializer;
- private Object modelURI;
- private Object editGenProject;
- private Object genmodelURI;
- private WorkflowVariable eefgenModelVar;
- private Object modelsFolder;
-
- /**
- * @param name of the step
- */
- public GenerateEEFEditorModels(String name, Object modelURI, Object editGenProject, Object genmodelURI, Object modelsFolder) {
- super(name);
- this.modelURI = modelURI;
- this.editGenProject = editGenProject;
- this.genmodelURI = genmodelURI;
- this.modelsFolder = modelsFolder;
- }
-
- /**
- * {@inheritDoc}
- * @see org.eclipse.emf.eef.codegen.flow.Step#execute(org.eclipse.core.runtime.IProgressMonitor)
- */
- public IStatus execute(IProgressMonitor monitor) {
- try {
- IProject editProject = getEditProject();
- if (editProject != null) {
- eefeditorModelInitializer = new EEFEditorModelInitializer();
- initializeEEFModels(getModelsFolder(), getGenModelURI());
- EEFGenModel eefgenModel = generatedEEFGen(getModelURI(), getModelsFolder());
- ((WorkflowVariable)getEEFGenModel()).setValue(eefgenModel);
- return Status.OK_STATUS;
- }
- else {
- return new Status(IStatus.ERROR, EEFCodegenPlugin.PLUGIN_ID, "Unable to find edit project");
- }
- } catch (IOException e) {
- return new Status(IStatus.ERROR, EEFCodegenPlugin.PLUGIN_ID, "An error occured during EEF models initialization.", e);
- } catch (CoreException e) {
- return new Status(IStatus.ERROR, EEFCodegenPlugin.PLUGIN_ID, "An error occured during EEF models initialization.", e);
- }
- }
-
- public Object getEEFGenModel() {
- if (eefgenModelVar == null) {
- eefgenModelVar = new WorkflowVariable(eefgenmodelVarName());
- }
- return eefgenModelVar;
- }
-
- private final String eefgenmodelVarName() {
- return "GEN_EEF_EDITOR_MODEL_" + name + "_EEFGENMODEL";
- }
-
- private URI getModelURI() {
- if (modelURI instanceof URI) {
- return (URI) modelURI;
- } else if (modelURI instanceof WorkflowVariable) {
- return (URI) ((WorkflowVariable)modelURI).getValue();
- }
- return null;
- }
-
- private URI getGenModelURI() {
- if (genmodelURI instanceof URI) {
- return (URI) genmodelURI;
- } else if (genmodelURI instanceof WorkflowVariable) {
- return (URI) ((WorkflowVariable)genmodelURI).getValue();
- }
- return null;
- }
-
- private IProject getEditProject() {
- if (editGenProject instanceof IProject) {
- return (IProject) editGenProject;
- } else if (editGenProject instanceof WorkflowVariable) {
- return (IProject) ((WorkflowVariable)editGenProject).getValue();
- }
- else {
- return null;
- }
- }
-
- private IFolder getModelsFolder() {
- if (modelsFolder instanceof IFolder) {
- return (IFolder) modelsFolder;
- } else if (modelsFolder instanceof WorkflowVariable) {
- return (IFolder) ((WorkflowVariable)modelsFolder).getValue();
- } else {
- return null;
- }
- }
-
- private void initializeEEFModels(IFolder modelsFolder, URI genmodelURI) throws IOException, CoreException {
- NullProgressMonitor monitor = new NullProgressMonitor();
- eefeditorModelInitializer.initialize(genmodelURI, modelsFolder);
- modelsFolder.refreshLocal(IResource.DEPTH_INFINITE, monitor);
- }
-
- private EEFGenModel generatedEEFGen(URI modelURI, IFolder modelsFolder) throws IOException {
- EEFGenModel eefgenModel = null;
- URI eefgenURI = GenmodelHelper.computeEditorEEFGenModelURI(modelsFolder, modelURI);
- EObject extractedEEFGenModel = EMFHelper.load(eefgenURI, resourceSet);
- if (extractedEEFGenModel instanceof EEFGenModel) {
- eefgenModel = (EEFGenModel)extractedEEFGenModel;
- }
- return eefgenModel;
- }
-
-}
diff --git a/plugins/org.eclipse.emf.eef.codegen.extended/src-custom/org/eclipse/emf/eef/codegen/extended/flow/OverrideEMFEditorCode.java b/plugins/org.eclipse.emf.eef.codegen.extended/src-custom/org/eclipse/emf/eef/codegen/extended/flow/OverrideEMFEditorCode.java
deleted file mode 100644
index 5403f1a92..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.extended/src-custom/org/eclipse/emf/eef/codegen/extended/flow/OverrideEMFEditorCode.java
+++ /dev/null
@@ -1,149 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008, 2012 Obeo.
- * 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:
- * Obeo - initial API and implementation
- *******************************************************************************/
-package org.eclipse.emf.eef.codegen.extended.flow;
-
-import java.io.ByteArrayInputStream;
-import java.io.IOException;
-import java.util.ArrayList;
-import java.util.Iterator;
-import java.util.LinkedHashSet;
-import java.util.List;
-import java.util.Set;
-
-import org.eclipse.core.resources.IContainer;
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IResource;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.emf.codegen.ecore.genmodel.GenPackage;
-import org.eclipse.emf.common.util.BasicMonitor;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.eef.EEFGen.EEFGenModel;
-import org.eclipse.emf.eef.EEFGen.GenEditionContext;
-import org.eclipse.emf.eef.codegen.core.launcher.AbstractPropertiesGeneratorLauncher;
-import org.eclipse.emf.eef.codegen.core.services.PropertiesGeneratorLaunchersServices;
-import org.eclipse.emf.eef.codegen.extended.Activator;
-import org.eclipse.emf.eef.codegen.extended.launcher.EEFEditorLauncher;
-import org.eclipse.emf.eef.codegen.flow.Step;
-import org.eclipse.emf.eef.codegen.flow.var.WorkflowVariable;
-
-/**
- * @author Goulwen Le Fur
- *
- */
-public class OverrideEMFEditorCode extends Step {
-
- private Object eefEditorGenModel;
-
- /**
- * @param name
- */
- public OverrideEMFEditorCode(String name, Object eefEditorGenModel) {
- super(name);
- this.eefEditorGenModel = eefEditorGenModel;
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.emf.eef.codegen.flow.Step#execute(org.eclipse.core.runtime.IProgressMonitor)
- */
- @Override
- public IStatus execute(IProgressMonitor monitor) {
- try {
- EEFGenModel eefEditorGenModel = getEEFEditorGenModel();
- IContainer target = getGenContainer(eefEditorGenModel);
- if (target != null) {
- monitor.beginTask("Generating EEF Editor", 1);
- clearExistingEditorCode(monitor);
- Set generationTargets = new LinkedHashSet();
- generationTargets.add(target);
- final EEFEditorLauncher generator = new EEFEditorLauncher(eefEditorGenModel, target.getLocation().toFile(), new ArrayList());
- generator.doGenerate(BasicMonitor.toMonitor(monitor));
-
- List launchers = PropertiesGeneratorLaunchersServices.getInstance().getlaunchers();
- for (AbstractPropertiesGeneratorLauncher abstractPropertiesGeneratorLauncher : launchers) {
- EObject inputModel = generator.getModel();
- if (inputModel instanceof EEFGenModel) {
- abstractPropertiesGeneratorLauncher.doGenerate(eefEditorGenModel, generator.getTargetFolder(), monitor);
- if (!abstractPropertiesGeneratorLauncher.getTargetContainer().isEmpty())
- generationTargets.addAll(abstractPropertiesGeneratorLauncher.getTargetContainer());
- }
- }
- for (Iterator iterator = generationTargets
- .iterator(); iterator.hasNext();) {
- IContainer nextContainer = iterator.next();
- nextContainer.refreshLocal(IResource.DEPTH_INFINITE, monitor);
- }
-
- }
- return Status.OK_STATUS;
- } catch (IOException e) {
- return new Status(IStatus.ERROR, Activator.PLUGIN_ID, "An error occured during generation.", e);
- } catch (CoreException e) {
- return new Status(IStatus.ERROR, Activator.PLUGIN_ID, "An error occured during generation.", e);
- }
- }
-
- public EEFGenModel getEEFEditorGenModel() {
- if (eefEditorGenModel instanceof EEFGenModel) {
- return (EEFGenModel) eefEditorGenModel;
- } else if (eefEditorGenModel instanceof WorkflowVariable) {
- return (EEFGenModel) ((WorkflowVariable) eefEditorGenModel).getValue();
- } else {
- return null;
- }
- }
-
- /**
- * Returns the container that the EEFGenModel use as generation directory
- *
- * @param eefGenModel
- * the eefGenModel
- * @return the generation directory
- * @throws IOException
- * an error occurred during container creation
- */
- public IContainer getGenContainer(EEFGenModel eefGenModel) throws IOException {
- if (eefGenModel != null) {
- if (eefGenModel.getGenDirectory() != null) {
- final IContainer target = (IContainer) ResourcesPlugin.getWorkspace().getRoot().getFolder(new Path(eefGenModel.getGenDirectory()));
- return target;
- }
- }
- return null;
- }
-
- private void clearExistingEditorCode(IProgressMonitor monitor) throws CoreException {
- for (GenEditionContext genEditionContext : getEEFEditorGenModel().getEditionContexts()) {
- if (genEditionContext.getPropertiesEditionContext() != null && genEditionContext.getPropertiesEditionContext().getModel() != null) {
- GenPackage genPackage = (GenPackage)genEditionContext.getPropertiesEditionContext().getModel();
- StringBuilder builder = new StringBuilder();
- builder.append(genPackage.getGenModel().getEditorPluginDirectory());
- builder.append('/');
- builder.append(genPackage.getPresentationPackageName().replaceAll("\\.", "/"));
- builder.append('/');
- builder.append(genPackage.getEditorClassName());
- builder.append(".java");
- String qualifiedEditorClass = builder.toString();
- IFile editorClass = ResourcesPlugin.getWorkspace().getRoot().getFile(new Path(qualifiedEditorClass));
- if (editorClass.isAccessible()) {
- editorClass.setContents(new ByteArrayInputStream("".getBytes()), true, false, monitor);
- }
- }
- }
- }
-
-}
diff --git a/plugins/org.eclipse.emf.eef.codegen.extended/src-custom/org/eclipse/emf/eef/codegen/extended/initializer/EEFEditorContributionTransformer.java b/plugins/org.eclipse.emf.eef.codegen.extended/src-custom/org/eclipse/emf/eef/codegen/extended/initializer/EEFEditorContributionTransformer.java
deleted file mode 100644
index 8ab3a2cb0..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.extended/src-custom/org/eclipse/emf/eef/codegen/extended/initializer/EEFEditorContributionTransformer.java
+++ /dev/null
@@ -1,78 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008, 2012 Obeo.
- * 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:
- * Obeo - initial API and implementation
- *******************************************************************************/
-
-
-package org.eclipse.emf.eef.codegen.extended.initializer;
-
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.List;
-import java.util.Map;
-
-import org.eclipse.emf.codegen.ecore.genmodel.GenPackage;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.eef.codegen.core.initializer.AbstractTransformer;
-import org.eclipse.emf.eef.components.ComponentsFactory;
-import org.eclipse.emf.eef.components.PropertiesEditionContext;
-import org.eclipse.emf.eef.extended.editor.AllResourcesRootsRelativeInput;
-import org.eclipse.emf.eef.extended.editor.EEFEditorContributions;
-import org.eclipse.emf.eef.extended.editor.EEFPage;
-import org.eclipse.emf.eef.extended.editor.EditorFactory;
-import org.eclipse.emf.eef.extended.editor.StaticEEFEditorContribution;
-import org.eclipse.emf.eef.views.ViewElement;
-
-/**
- * @author Goulwen Le Fur
- *
- */
-public class EEFEditorContributionTransformer extends AbstractTransformer {
-
-
- /* ===== Constructor ===== */
-
- private Map> workingResolvTemp;
-
- public EEFEditorContributionTransformer(Map> workingResolvTemp) {
- this.workingResolvTemp = workingResolvTemp;
- }
-
- public PropertiesEditionContext genPackage2Context(GenPackage genPackage) {
- PropertiesEditionContext context = ComponentsFactory.eINSTANCE.createPropertiesEditionContext();
- context.setModel(genPackage);
- context.setDocumentation("Editor contribution for " + genPackage.getEcorePackage().getName() + " GenPackage");
- EEFEditorContributions contributions = EditorFactory.eINSTANCE.createEEFEditorContributions();
- contributions.setName(genPackage.getEcorePackage().getName() + " contributions");
- context.getCategories().add(contributions);
- contributions.getBindings().addAll(genPackage2Contributions(genPackage));
- return context;
- }
-
- private Collection genPackage2Contributions(GenPackage genPackage) {
- Collection result = new ArrayList();
- StaticEEFEditorContribution eefEditorContribution = EditorFactory.eINSTANCE.createStaticEEFEditorContribution();
- eefEditorContribution.setName("Main contribution");
- workingResolvTemp.get(genPackage.getEcorePackage());
- Collection pages = new ArrayList();
- for (ViewElement viewElement : workingResolvTemp.get(genPackage.getEcorePackage())) {
- if (viewElement instanceof EEFPage) {
- pages.add((EEFPage) viewElement);
- }
- }
- eefEditorContribution.getViews().addAll(pages);
- AllResourcesRootsRelativeInput input = EditorFactory.eINSTANCE.createAllResourcesRootsRelativeInput();
- eefEditorContribution.setInput(input);
- result.add(eefEditorContribution);
- return result ;
- }
-
-
-
-}
diff --git a/plugins/org.eclipse.emf.eef.codegen.extended/src-custom/org/eclipse/emf/eef/codegen/extended/initializer/EEFEditorInitializer.java b/plugins/org.eclipse.emf.eef.codegen.extended/src-custom/org/eclipse/emf/eef/codegen/extended/initializer/EEFEditorInitializer.java
deleted file mode 100644
index 1fe7b1a3a..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.extended/src-custom/org/eclipse/emf/eef/codegen/extended/initializer/EEFEditorInitializer.java
+++ /dev/null
@@ -1,252 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008, 2012 Obeo.
- * 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:
- * Obeo - initial API and implementation
- *******************************************************************************/
-package org.eclipse.emf.eef.codegen.extended.initializer;
-
-import java.io.IOException;
-import java.lang.reflect.InvocationTargetException;
-
-import org.eclipse.core.resources.IContainer;
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.emf.codegen.ecore.genmodel.GenModel;
-import org.eclipse.emf.common.util.URI;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EPackage;
-import org.eclipse.emf.ecore.resource.ResourceSet;
-import org.eclipse.emf.ecore.resource.impl.ResourceSetImpl;
-import org.eclipse.emf.eef.codegen.core.initializer.AbstractPropertiesInitializer;
-import org.eclipse.emf.eef.codegen.core.util.EMFHelper;
-import org.eclipse.emf.eef.codegen.extended.flow.CleanEEFEditorSources;
-import org.eclipse.emf.eef.codegen.extended.flow.GenerateEEFEditorModels;
-import org.eclipse.emf.eef.codegen.extended.flow.OverrideEMFEditorCode;
-import org.eclipse.emf.eef.codegen.flow.ConditionalStep;
-import org.eclipse.emf.eef.codegen.flow.Workflow;
-import org.eclipse.emf.eef.codegen.flow.impl.AddDependency;
-import org.eclipse.emf.eef.codegen.flow.impl.GenerateEEFCode;
-import org.eclipse.emf.eef.codegen.flow.impl.GenerateEEFModels;
-import org.eclipse.emf.eef.codegen.flow.impl.GenerateEMFEditCode;
-import org.eclipse.emf.eef.codegen.flow.impl.GenerateEMFEditorCode;
-import org.eclipse.emf.eef.codegen.flow.impl.GenerateEMFModelCode;
-import org.eclipse.emf.eef.codegen.flow.impl.InitializeGenModel;
-import org.eclipse.emf.eef.codegen.flow.impl.MergePluginXML;
-import org.eclipse.emf.eef.codegen.flow.util.GenmodelHelper;
-import org.eclipse.emf.eef.codegen.flow.var.WorkflowVariable;
-import org.eclipse.emf.eef.runtime.EEFRuntimePlugin;
-import org.eclipse.emf.eef.runtime.ui.EEFExtendedRuntime;
-import org.eclipse.emf.eef.runtime.ui.utils.EditingUtils;
-import org.eclipse.jface.dialogs.ProgressMonitorDialog;
-import org.eclipse.swt.widgets.Shell;
-import org.eclipse.ui.IWorkbenchPartSite;
-import org.eclipse.ui.actions.WorkspaceModifyOperation;
-
-/**
- * @author Goulwen Le Fur
- */
-public class EEFEditorInitializer extends AbstractPropertiesInitializer {
-
- private static final String CLEAN_EEF_EDITOR_SOURCE = "Clean EEF editor source";
-
- private static final String WORKFLOW_NAME = "Generate EEF Editor";
-
- private static final String GENERATING_THE_GENMODEL = "Generating the GenModel";
-
- private static final String GENERATE_EMF_MODEL_CODE = "Generate EMF Model Code";
-
- private static final String GENERATE_EMF_EDIT_CODE = "Generate EMF Edit Code";
-
- private static final String GENERATE_EMF_EDITOR_CODE = "Generate EMF Editor Code";
-
- private static final String GENERATE_EEF_MODELS = "Generate EEF models";
-
- private static final String ADDING_EEF_RUNTIME_DEPENDENCY = "Adding EEF Runtime dependency";
-
- private static final String GENERATE_EEF_CODE = "Generate EEF code";
-
- private static final String MERGING_GENERATED_PLUGIN_XML_FILES = "Merging generated plugin.xml files";
-
- private static final String GENERATE_EEF_EDITOR_MODELS = "Generate EEF Editor models";
-
- private static final String ADDING_EEF_EXTENDED_RUNTIME_DEPENDENCY = "Adding EEF Extended Runtime dependency";
-
- private static final String GENERATE_EEF_EDITOR_CODE = "Generate EEF Editor code";
-
- private ResourceSet resourceSet;
-
- private IFile modelFile;
-
- private IWorkbenchPartSite activeSite;
-
- public EEFEditorInitializer(IFile selectedFile, IWorkbenchPartSite activeSite) {
- this.modelFile = selectedFile;
- this.activeSite = activeSite;
- }
-
-/**
- * {@inheritDoc]
- * @throws Exception
- * @see org.eclipse.emf.eef.codegen.core.initializer.IPropertiesInitializer#initialize(org.eclipse.emf.common.util.URI, org.eclipse.core.resources.IContainer)
- */
- public void initialize(URI modelURI, IContainer targetFolder) throws Exception {
- resourceSet = new ResourceSetImpl();
- registerResourceFactories(resourceSet);
- registerPackages(resourceSet);
- EObject model = EMFHelper.load(modelURI, resourceSet);
- if (model instanceof EPackage) {
- final Workflow workflow = new Workflow(WORKFLOW_NAME, activeSite.getShell());
- workflow.setResourceSet(resourceSet);
- final GenmodelHelper helper = new GenmodelHelper(resourceSet, modelFile, targetFolder);
- CleanEEFEditorSources cleanEEFEditorSources = new CleanEEFEditorSources(CLEAN_EEF_EDITOR_SOURCE,
- modelFile, targetFolder);
- ConditionalStep conditon = new ConditionalStep(cleanEEFEditorSources) {
-
- @Override
- public boolean condition() {
- return helper.getGenModelFile().isAccessible();
- }
- };
- workflow.addStep(CLEAN_EEF_EDITOR_SOURCE, conditon);
- // Step 1 : Generate GenModel
- InitializeGenModel initializeGenModelStep = new InitializeGenModel(GENERATING_THE_GENMODEL,
- modelFile, targetFolder, helper.genmodelFileName()) {
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.emf.eef.codegen.flow.Step#validateExecution()
- */
- public boolean validateExecution() {
- boolean genmodelExists = helper.getGenModelFile().exists();
- if (genmodelExists) {
- try {
- ((WorkflowVariable)getGenModelURI()).setValue(helper.genmodelURI());
- ((WorkflowVariable)genmodel()).setValue(EMFHelper.load(helper.genmodelURI(),
- resourceSet));
- } catch (IOException e) {
- EEFExtendedRuntime.INSTANCE.log(e);
- return true;
- }
- }
- return !genmodelExists;
- }
-
- /**
- * {@inheritDoc]
- * @see org.eclipse.emf.eef.codegen.flow.impl.InitializeGenModel#configureGenModel(org.eclipse.emf.codegen.ecore.genmodel.GenModel)
- */
- public void configureGenModel(GenModel genModel) {
- genModel.setModelDirectory(genModel.getModelDirectory() + "-gen");
- genModel.setEditDirectory(genModel.getEditDirectory() + "-gen");
- genModel.setEditorDirectory(genModel.getEditorDirectory() + "-gen");
- }
-
- };
- workflow.addStep(GENERATING_THE_GENMODEL, initializeGenModelStep);
- // Step 2 : Generate EMF Code
- GenerateEMFModelCode generateEMFModelCode = new GenerateEMFModelCode(GENERATE_EMF_MODEL_CODE,
- initializeGenModelStep.genmodel());
- workflow.addStep(GENERATE_EMF_MODEL_CODE, generateEMFModelCode);
- GenerateEMFEditCode generateEMFEditCode = new GenerateEMFEditCode(GENERATE_EMF_EDIT_CODE,
- initializeGenModelStep.genmodel());
- workflow.addStep(GENERATE_EMF_EDIT_CODE, generateEMFEditCode);
- GenerateEMFEditorCode generateEMFEditorCode = new GenerateEMFEditorCode(GENERATE_EMF_EDITOR_CODE,
- initializeGenModelStep.genmodel());
- workflow.addStep(GENERATE_EMF_EDITOR_CODE, generateEMFEditorCode);
- // Step 3 : Generate EEF model
- GenerateEEFModels generateEEFModels = new GenerateEEFModels(GENERATE_EEF_MODELS, modelURI,
- generateEMFEditCode.genProject(), initializeGenModelStep.getGenModelURI(),
- helper.eefmodelsFolderPath()) {
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.emf.eef.codegen.flow.Step#validateExecution()
- */
- public boolean validateExecution() {
- boolean modelsExist = helper.getEEFPropertiesComponentsModel().exists()
- && helper.getEEFPropertiesEEFGenModel().exists();
- if (modelsExist) {
- try {
- ((WorkflowVariable)getEEFModelsFolder()).setValue(helper.getEEFModelsFolder());
- ((WorkflowVariable)getEEFGenModel()).setValue(EMFHelper.load(
- GenmodelHelper.computePropertiesEEFGenModelURI(
- helper.getEEFModelsFolder(), helper.genmodelURI()), resourceSet));
- } catch (IOException e) {
- EEFExtendedRuntime.INSTANCE.log(e);
- return true;
- }
- }
- return !modelsExist;
- }
-
- };
- workflow.addStep(GENERATE_EEF_MODELS, generateEEFModels);
- // Step 4 : Add EEF Runtime dependency
- AddDependency addDependency = new AddDependency(ADDING_EEF_RUNTIME_DEPENDENCY,
- generateEMFEditCode.genProject(), EEFRuntimePlugin.PLUGIN_ID);
- workflow.addStep(ADDING_EEF_RUNTIME_DEPENDENCY, addDependency);
- GenerateEEFCode generateEEFCode = new GenerateEEFCode(GENERATE_EEF_CODE,
- generateEEFModels.getEEFGenModel());
- // JDTImportsOrganisationCallback callback = new JDTImportsOrganisationCallback(activeSite);
- // generateEEFCode.addGenerationCallback(callback);
- workflow.addStep(GENERATE_EEF_CODE, generateEEFCode);
- // Step 6 : Adding Extension Point
- MergePluginXML mergePluginXML = new MergePluginXML(MERGING_GENERATED_PLUGIN_XML_FILES,
- generateEMFEditCode.genProject());
- workflow.addStep(MERGING_GENERATED_PLUGIN_XML_FILES, mergePluginXML);
- final GenerateEEFEditorModels generateEEFEditorModels = new GenerateEEFEditorModels(
- GENERATE_EEF_EDITOR_MODELS, modelURI, generateEMFEditCode.genProject(),
- initializeGenModelStep.getGenModelURI(), generateEEFModels.getEEFModelsFolder()) {
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.emf.eef.codegen.flow.Step#validateExecution()
- */
- public boolean validateExecution() {
- boolean modelsExist = helper.getEEFEditorComponentsModel().exists()
- && helper.getEEFEditorEEFGenModel().exists();
- if (modelsExist) {
- try {
- ((WorkflowVariable)getEEFGenModel()).setValue(EMFHelper.load(GenmodelHelper
- .computeEditorEEFGenModelURI(helper.getEEFModelsFolder(),
- helper.genmodelURI()), resourceSet));
- } catch (IOException e) {
- EEFExtendedRuntime.INSTANCE.log(e);
- return true;
- }
- }
- return !modelsExist;
- }
-
- };
- workflow.addStep(GENERATE_EEF_EDITOR_MODELS, generateEEFEditorModels);
- AddDependency addExtendedRuntimeDependency = new AddDependency(
- ADDING_EEF_EXTENDED_RUNTIME_DEPENDENCY, generateEMFEditorCode.genProject(),
- EEFExtendedRuntime.PLUGIN_ID);
- workflow.addStep(ADDING_EEF_EXTENDED_RUNTIME_DEPENDENCY, addExtendedRuntimeDependency);
- OverrideEMFEditorCode generateEEFEditorCode = new OverrideEMFEditorCode(GENERATE_EEF_EDITOR_CODE,
- generateEEFEditorModels.getEEFGenModel());
- workflow.addStep(GENERATE_EEF_EDITOR_CODE, generateEEFEditorCode);
- if (workflow.prepare()) {
- WorkspaceModifyOperation runnable = new WorkspaceModifyOperation() {
-
- public void execute(IProgressMonitor monitor) throws InvocationTargetException,
- InterruptedException {
- workflow.execute(monitor);
- }
- };
- new ProgressMonitorDialog(EditingUtils.getShell()).run(true, true, runnable);
- }
- }
-
- }
-
-}
diff --git a/plugins/org.eclipse.emf.eef.codegen.extended/src-custom/org/eclipse/emf/eef/codegen/extended/initializer/EEFEditorModelInitializer.java b/plugins/org.eclipse.emf.eef.codegen.extended/src-custom/org/eclipse/emf/eef/codegen/extended/initializer/EEFEditorModelInitializer.java
deleted file mode 100644
index 4eff75ca7..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.extended/src-custom/org/eclipse/emf/eef/codegen/extended/initializer/EEFEditorModelInitializer.java
+++ /dev/null
@@ -1,173 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008, 2012 Obeo.
- * 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:
- * Obeo - initial API and implementation
- *******************************************************************************/
-package org.eclipse.emf.eef.codegen.extended.initializer;
-
-import java.io.IOException;
-import java.util.ArrayList;
-import java.util.Collections;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-
-import org.eclipse.core.resources.IContainer;
-import org.eclipse.core.resources.IFolder;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.NullProgressMonitor;
-import org.eclipse.emf.codegen.ecore.genmodel.GenModel;
-import org.eclipse.emf.codegen.ecore.genmodel.GenPackage;
-import org.eclipse.emf.common.util.TreeIterator;
-import org.eclipse.emf.common.util.URI;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EPackage;
-import org.eclipse.emf.ecore.resource.Resource;
-import org.eclipse.emf.ecore.resource.ResourceSet;
-import org.eclipse.emf.ecore.resource.impl.ResourceSetImpl;
-import org.eclipse.emf.eef.EEFGen.EEFGenFactory;
-import org.eclipse.emf.eef.EEFGen.EEFGenModel;
-import org.eclipse.emf.eef.EEFGen.GenEditionContext;
-import org.eclipse.emf.eef.EEFGen.GenViewsRepository;
-import org.eclipse.emf.eef.codegen.core.initializer.AbstractPropertiesInitializer;
-import org.eclipse.emf.eef.codegen.core.util.EMFHelper;
-import org.eclipse.emf.eef.codegen.flow.util.GenmodelHelper;
-import org.eclipse.emf.eef.components.PropertiesEditionContext;
-import org.eclipse.emf.eef.views.ViewsRepository;
-
-/**
- * @author Goulwen Le Fur
- *
- */
-public class EEFEditorModelInitializer extends AbstractPropertiesInitializer {
-
- /**
- * {@inheritDoc}
- * @see org.eclipse.emf.eef.codegen.core.initializer.IPropertiesInitializer#initialize(org.eclipse.emf.common.util.URI, org.eclipse.core.resources.IContainer)
- */
- public void initialize(URI modelURI, IContainer targetFolder) throws IOException, CoreException {
- ResourceSet resourceSet = new ResourceSetImpl();
- registerResourceFactories(resourceSet);
- registerPackages(resourceSet);
- EObject model = EMFHelper.load(modelURI, resourceSet);
-
- if (!targetFolder.exists()) {
- if (targetFolder instanceof IFolder)
- ((IFolder)targetFolder).create(true, true, new NullProgressMonitor());
- else
- return;
- }
- EEFPagesTransformer pagesTransformer = new EEFPagesTransformer();
- TreeIterator allContents = model.eAllContents();
- Map repositories = new HashMap();
- List contexts = new ArrayList();
- while (allContents.hasNext()) {
- EObject next = allContents.next();
- if (next instanceof GenPackage) {
- GenPackage genPack = (GenPackage)next;
- if (genPack.eContents().size() >= 1) {
- ViewsRepository repository = pagesTransformer.genPackage2ViewsRepository(genPack);
- String completePackage = genPack.getBasePackage();
- if (completePackage != null && completePackage.length() > 0) {
- completePackage += "." + ecoreStringHierarchy(genPack);
- } else {
- completePackage = ecoreStringHierarchy(genPack);
- }
- repositories.put(repository, completePackage);
- EEFEditorContributionTransformer contributionTransformer = new EEFEditorContributionTransformer(pagesTransformer.getWorkingResolvTemp());
- PropertiesEditionContext context = contributionTransformer.genPackage2Context(genPack);
- contexts.add(context);
- }
- }
- }
-
- URI contributionsModelUri = GenmodelHelper.computeEditorComponentsModelURI(targetFolder, model.eResource().getURI());
- Resource contributionsResource = model.eResource().getResourceSet().createResource(contributionsModelUri);
- for (PropertiesEditionContext context : contexts)
- contributionsResource.getContents().add(context);
- for (ViewsRepository repository : repositories.keySet())
- contributionsResource.getContents().add(repository);
- EEFGenModel eefGenModel = createEEFGenModel((GenModel) model, repositories, contexts, targetFolder);
- contributionsResource.save(Collections.EMPTY_MAP);
- URI eefgenModelUri = GenmodelHelper.computeEditorEEFGenModelURI(targetFolder, model.eResource().getURI());
- Resource eefgenResource = model.eResource().getResourceSet().createResource(eefgenModelUri);
- eefgenResource.getContents().add(eefGenModel);
- eefgenResource.save(Collections.EMPTY_MAP);
- return;
-
- }
-
- public String ecoreStringHierarchy(GenPackage genPack) {
- String result = "";
- List ecorePackageHierarchy = ecorePackageHierarchy(genPack);
- for (int i = ecorePackageHierarchy.size() - 1; i >= 0; i--) {
- EPackage next = ecorePackageHierarchy.get(i);
- result += next.getName();
- if (i > 0)
- result += ".";
- }
- return genPack.getEcorePackage().getName();
- }
-
- public List ecorePackageHierarchy(GenPackage genPack) {
- List hierarchy = new ArrayList();
- EObject current = genPack.getEcorePackage();
- while (current instanceof EPackage) {
- hierarchy.add((EPackage) current);
- current = current.eContainer();
- }
- return hierarchy;
- }
-
- private EEFGenModel createEEFGenModel(GenModel inputGenmodel, Map repositories, List contexts, IContainer targetFolder) {
- EEFGenModel eefGenModel = EEFGenFactory.eINSTANCE.createEEFGenModel();
- eefGenModel.setGenDirectory(findGenDirectory(inputGenmodel));
- for (PropertiesEditionContext context : contexts)
- eefGenModel.getEditionContexts().add(createGenEditionContext(context));
- String contextPackage = "";
- if (contexts.size() > 0) {
- String findBasePackage = findBasePackage(contexts.get(0).getModel());
- if (findBasePackage != null && !findBasePackage.equals("")) {
- contextPackage = findBasePackage + ".";
- }
- contextPackage = contextPackage + contexts.get(0).getModel().getEcorePackage().getName().toLowerCase();
- }
- for (ViewsRepository repository : repositories.keySet())
- eefGenModel.getViewsRepositories().add(createGenViewsRepository(repository, repositories.get(repository)));
- return eefGenModel;
- }
-
- private GenEditionContext createGenEditionContext(PropertiesEditionContext context) {
- GenEditionContext genEditionContext = EEFGenFactory.eINSTANCE.createGenEditionContext();
- genEditionContext.setPropertiesEditionContext(context);
- if (context.getModel() != null)
- genEditionContext.setBasePackage(findBasePackage(context.getModel()));
- genEditionContext.setDescriptorsGenericPropertiesViews(true);
- return genEditionContext;
- }
-
- private GenViewsRepository createGenViewsRepository(ViewsRepository repository, String contextPackage) {
- GenViewsRepository genViewsRepository = EEFGenFactory.eINSTANCE.createGenViewsRepository();
- genViewsRepository.setViewsRepository(repository);
- genViewsRepository.setBasePackage(contextPackage);
- genViewsRepository.setSwtViews(true);
- genViewsRepository.setFormViews(true);
- return genViewsRepository;
- }
-
- private String findBasePackage(GenPackage genPackage) {
- if (genPackage.getBasePackage() != null)
- return genPackage.getBasePackage();
- return "";
- }
-
- private String findGenDirectory(GenModel genmodel) {
- return genmodel.getEditorDirectory();
- }
-
-}
diff --git a/plugins/org.eclipse.emf.eef.codegen.extended/src-custom/org/eclipse/emf/eef/codegen/extended/initializer/EEFPagesTransformer.java b/plugins/org.eclipse.emf.eef.codegen.extended/src-custom/org/eclipse/emf/eef/codegen/extended/initializer/EEFPagesTransformer.java
deleted file mode 100644
index 8456ffec3..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.extended/src-custom/org/eclipse/emf/eef/codegen/extended/initializer/EEFPagesTransformer.java
+++ /dev/null
@@ -1,86 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008, 2012 Obeo.
- * 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:
- * Obeo - initial API and implementation
- *******************************************************************************/
-package org.eclipse.emf.eef.codegen.extended.initializer;
-
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-
-import org.eclipse.emf.codegen.ecore.genmodel.GenPackage;
-import org.eclipse.emf.common.util.UniqueEList;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.eef.codegen.core.initializer.AbstractTransformer;
-import org.eclipse.emf.eef.extended.editor.EEFEditorPages;
-import org.eclipse.emf.eef.extended.editor.EEFPage;
-import org.eclipse.emf.eef.extended.editor.EditorFactory;
-import org.eclipse.emf.eef.extended.editor.TreeMasterPage;
-import org.eclipse.emf.eef.views.ViewElement;
-import org.eclipse.emf.eef.views.ViewsFactory;
-import org.eclipse.emf.eef.views.ViewsRepository;
-
-/**
- * @author Goulwen Le Fur
- *
- */
-public class EEFPagesTransformer extends AbstractTransformer {
-
- private Map> workingResolvTemp;
- private ViewsRepository repository;
-
- public EEFPagesTransformer() {
- workingResolvTemp = new HashMap>();
- }
-
- public Map> getWorkingResolvTemp() {
- return workingResolvTemp;
- }
-
- public void addElementToEObject(EObject source, ViewElement element) {
- if (workingResolvTemp.get(source) != null)
- workingResolvTemp.get(source).add(element);
- else {
- List list = new UniqueEList();
- list.add(element);
- workingResolvTemp.put(source, list);
- }
- }
-
- public ViewsRepository genPackage2ViewsRepository(GenPackage genPackage) {
- repository = ViewsFactory.eINSTANCE.createViewsRepository();
- repository.getRepositoryKind().add("Editor");
- repository.setName(genPackage.getEcorePackage().getName() + " editor");
- repository.setDocumentation("Editor pages for " + genPackage.getEcorePackage().getName() + " GenPackage");
- EEFEditorPages editorPages = EditorFactory.eINSTANCE.createEEFEditorPages();
- editorPages.setName(genPackage.getEcorePackage().getName() + " editor pages");
- repository.getCategories().add(editorPages);
- editorPages.getViews().addAll(genPackage2EditorPages(genPackage));
-
- return repository;
-
- }
-
- /**
- * @param genPackage
- * @return
- */
- private Collection genPackage2EditorPages(GenPackage genPackage) {
- Collection result = new ArrayList();
- TreeMasterPage mainPage = EditorFactory.eINSTANCE.createTreeMasterPage();
- mainPage.setName("main");
- mainPage.setTitle(genPackage.getEcorePackage().getName());
- addElementToEObject(genPackage.getEcorePackage(), mainPage);
- result.add(mainPage);
- return result;
- }
-
-}
diff --git a/plugins/org.eclipse.emf.eef.codegen.extended/src-custom/org/eclipse/emf/eef/codegen/extended/launcher/GenerateAll.java b/plugins/org.eclipse.emf.eef.codegen.extended/src-custom/org/eclipse/emf/eef/codegen/extended/launcher/GenerateAll.java
deleted file mode 100644
index 6966a4a3e..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.extended/src-custom/org/eclipse/emf/eef/codegen/extended/launcher/GenerateAll.java
+++ /dev/null
@@ -1,60 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008, 2012 Obeo.
- * 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:
- * Obeo - initial API and implementation
- *******************************************************************************/
-package org.eclipse.emf.eef.codegen.extended.launcher;
-
-import java.io.IOException;
-import java.util.ArrayList;
-import java.util.LinkedHashSet;
-import java.util.List;
-import java.util.Set;
-
-import org.eclipse.core.resources.IContainer;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.emf.common.util.BasicMonitor;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.eef.EEFGen.EEFGenModel;
-import org.eclipse.emf.eef.codegen.EEFCodegenPlugin;
-import org.eclipse.emf.eef.codegen.core.launcher.AbstractPropertiesGeneratorLauncher;
-import org.eclipse.emf.eef.codegen.core.services.PropertiesGeneratorLaunchersServices;
-
-/**
- * @author Goulwen Le Fur
- *
- */
-public class GenerateAll {
-
-
- public GenerateAll() {
- }
-
-
- public void doGenerate(EEFGenModel eefGenModel, IContainer target, IProgressMonitor monitor) throws IOException {
- Set generationTargets = new LinkedHashSet();
- generationTargets.add(target);
- try {
- final EEFEditorLauncher generator = new EEFEditorLauncher(eefGenModel, target.getLocation().toFile(), new ArrayList());
- generator.doGenerate(BasicMonitor.toMonitor(monitor));
- List launchers = PropertiesGeneratorLaunchersServices.getInstance().getlaunchers();
- for (AbstractPropertiesGeneratorLauncher abstractPropertiesGeneratorLauncher : launchers) {
- EObject inputModel = generator.getModel();
- if (inputModel instanceof EEFGenModel) {
- abstractPropertiesGeneratorLauncher.doGenerate(eefGenModel,generator.getTargetFolder(),monitor);
- if (!abstractPropertiesGeneratorLauncher.getTargetContainer().isEmpty())
- generationTargets.addAll(abstractPropertiesGeneratorLauncher.getTargetContainer());
- }
- }
- } catch (IOException e) {
- EEFCodegenPlugin.getDefault().logError(e);
- }
-
- // Desactivation of Acceleo Traceability
- }
-}
diff --git a/plugins/org.eclipse.emf.eef.codegen.extended/src-custom/org/eclipse/emf/eef/codegen/extended/ui/initializer/InitializeEEFEditorAction.java b/plugins/org.eclipse.emf.eef.codegen.extended/src-custom/org/eclipse/emf/eef/codegen/extended/ui/initializer/InitializeEEFEditorAction.java
deleted file mode 100644
index a7c907b80..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.extended/src-custom/org/eclipse/emf/eef/codegen/extended/ui/initializer/InitializeEEFEditorAction.java
+++ /dev/null
@@ -1,115 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008, 2012 Obeo.
- * 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:
- * Obeo - initial API and implementation
- *******************************************************************************/
-package org.eclipse.emf.eef.codegen.extended.ui.initializer;
-
-import org.eclipse.core.resources.IContainer;
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IResource;
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.core.runtime.NullProgressMonitor;
-import org.eclipse.emf.common.util.URI;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.eef.codegen.EEFCodegenPlugin;
-import org.eclipse.emf.eef.codegen.core.initializer.AbstractPropertiesInitializer;
-import org.eclipse.emf.eef.codegen.core.util.EMFHelper;
-import org.eclipse.emf.eef.codegen.extended.initializer.EEFEditorInitializer;
-import org.eclipse.jface.action.IAction;
-import org.eclipse.jface.viewers.ISelection;
-import org.eclipse.jface.viewers.StructuredSelection;
-import org.eclipse.ui.IEditorActionDelegate;
-import org.eclipse.ui.IEditorPart;
-import org.eclipse.ui.IObjectActionDelegate;
-import org.eclipse.ui.IWorkbenchPart;
-import org.eclipse.ui.IWorkbenchPartSite;
-
-/**
- * @author Goulwen Le Fur
- *
- */
-public class InitializeEEFEditorAction implements IObjectActionDelegate, IEditorActionDelegate {
-
- private URI modelURI;
-
- private IFile selectedFile = null;
-
- private IWorkbenchPartSite activeSite;
-
- /**
- *
- */
- public InitializeEEFEditorAction() {
- super();
- }
-
- /**
- * {@inheritDoc]
- * @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
- */
- public void run(IAction action) {
- if (selectedFile != null) {
- try {
- modelURI = URI.createURI("platform:/resource" + selectedFile.getFullPath());
- IContainer container = selectedFile.getParent();
- AbstractPropertiesInitializer initializer = new EEFEditorInitializer(selectedFile, activeSite);
- initializer.initialize(modelURI, container);
- container.refreshLocal(IResource.DEPTH_INFINITE, new NullProgressMonitor());
- } catch (Exception e) {
- EEFCodegenPlugin.getDefault().logError(e);
- }
-
- }
-
- }
-
- /**
- * {@inheritDoc]
- * @see org.eclipse.ui.IActionDelegate#selectionChanged(org.eclipse.jface.action.IAction, org.eclipse.jface.viewers.ISelection)
- */
- public void selectionChanged(IAction action, ISelection selection) {
- if (selection instanceof StructuredSelection) {
- StructuredSelection sSelection = (StructuredSelection)selection;
- Object selectedElement = sSelection.getFirstElement();
- if (selectedElement instanceof IFile) {
- this.selectedFile = (IFile)selectedElement;
- } else if (selectedElement instanceof IAdaptable) {
- EObject eObject = (EObject) ((IAdaptable)selectedElement).getAdapter(EObject.class);
- if (eObject != null) {
- // We use the ability of a GMF EditPart to be adapted into the semantic EObject
- if (eObject.eResource().getURI().fileExtension().equals("ecore")) {
- IFile associatedFile = EMFHelper.associatedFile(eObject);
- if (associatedFile.isAccessible()) {
- this.selectedFile = associatedFile;
- }
- }
- }
- }
- }
- }
-
- /**
- * {@inheritDoc]
- * @see org.eclipse.ui.IObjectActionDelegate#setActivePart(org.eclipse.jface.action.IAction, org.eclipse.ui.IWorkbenchPart)
- */
- public void setActivePart(IAction action, IWorkbenchPart targetPart) {
- this.activeSite = targetPart.getSite();
- }
-
- /**
- * {@inheritDoc}
- * @see org.eclipse.ui.IEditorActionDelegate#setActiveEditor(org.eclipse.jface.action.IAction, org.eclipse.ui.IEditorPart)
- */
- public void setActiveEditor(IAction action, IEditorPart targetEditor) {
- if (targetEditor != null) {
- this.activeSite = targetEditor.getSite();
- }
- }
-
-}
diff --git a/plugins/org.eclipse.emf.eef.codegen.extended/src-custom/org/eclipse/emf/eef/codegen/extended/ui/initializer/InitializeEEFEditorModelsAction.java b/plugins/org.eclipse.emf.eef.codegen.extended/src-custom/org/eclipse/emf/eef/codegen/extended/ui/initializer/InitializeEEFEditorModelsAction.java
deleted file mode 100755
index ed80271b5..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.extended/src-custom/org/eclipse/emf/eef/codegen/extended/ui/initializer/InitializeEEFEditorModelsAction.java
+++ /dev/null
@@ -1,99 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008, 2012 Obeo.
- * 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:
- * Obeo - initial API and implementation
- *******************************************************************************/
-package org.eclipse.emf.eef.codegen.extended.ui.initializer;
-
-import org.eclipse.core.resources.IContainer;
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IResource;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.NullProgressMonitor;
-import org.eclipse.emf.common.util.URI;
-import org.eclipse.emf.eef.codegen.EEFCodegenPlugin;
-import org.eclipse.emf.eef.codegen.core.initializer.AbstractPropertiesInitializer;
-import org.eclipse.emf.eef.codegen.extended.initializer.EEFEditorModelInitializer;
-import org.eclipse.jface.action.IAction;
-import org.eclipse.jface.viewers.ISelection;
-import org.eclipse.jface.viewers.StructuredSelection;
-import org.eclipse.swt.widgets.Shell;
-import org.eclipse.ui.IActionDelegate;
-import org.eclipse.ui.IObjectActionDelegate;
-import org.eclipse.ui.IWorkbenchPart;
-import org.eclipse.ui.dialogs.ContainerSelectionDialog;
-
-/**
- * @author Goulwen Le Fur
- */
-public class InitializeEEFEditorModelsAction implements IObjectActionDelegate {
-
- private Shell shell;
-
- private URI modelURI;
-
- private IFile selectedFile = null;
-
- /**
- * Constructor for Action1.
- */
- public InitializeEEFEditorModelsAction() {
- super();
- }
-
- /**
- * @see IObjectActionDelegate#setActivePart(IAction, IWorkbenchPart)
- */
- public void setActivePart(IAction action, IWorkbenchPart targetPart) {
- shell = targetPart.getSite().getShell();
- }
-
- /**
- * @see IActionDelegate#run(IAction)
- */
- public void run(IAction action) {
- if (selectedFile != null) {
- ContainerSelectionDialog dialog = new ContainerSelectionDialog(shell, selectedFile.getParent(),false, "Select a destination container for models :");
- dialog.setTitle("Container Selection");
- dialog.open();
- Object[] result = dialog.getResult();
- if (result != null && result.length >= 1) {
- try {
- IContainer container;
- IPath path = (IPath)result[0];
- if (path.segmentCount() == 1) {
- container = (IContainer)ResourcesPlugin.getWorkspace().getRoot().getProject(path.toString());
- } else {
- container = (IContainer)ResourcesPlugin.getWorkspace().getRoot().getFolder(path);
- }
- modelURI = URI.createPlatformResourceURI(selectedFile.getFullPath().toString(), false);
- AbstractPropertiesInitializer initializer = new EEFEditorModelInitializer();
- initializer.initialize(modelURI, container);
- container.refreshLocal(IResource.DEPTH_INFINITE, new NullProgressMonitor());
- } catch (Exception e) {
- EEFCodegenPlugin.getDefault().logError(e);
- }
- }
- }
- }
-
- /**
- * @see IActionDelegate#selectionChanged(IAction, ISelection)
- */
- public void selectionChanged(IAction action, ISelection selection) {
- if (selection instanceof StructuredSelection) {
- StructuredSelection sSelection = (StructuredSelection)selection;
- if (sSelection.getFirstElement() instanceof IFile) {
- this.selectedFile = (IFile)sSelection.getFirstElement();
- }
-
- }
- }
-
-}
diff --git a/plugins/org.eclipse.emf.eef.codegen.extended/src-custom/org/eclipse/emf/eef/codegen/extended/ui/launcher/GenerateEEFEditorAction.java b/plugins/org.eclipse.emf.eef.codegen.extended/src-custom/org/eclipse/emf/eef/codegen/extended/ui/launcher/GenerateEEFEditorAction.java
deleted file mode 100755
index f53fb1d81..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.extended/src-custom/org/eclipse/emf/eef/codegen/extended/ui/launcher/GenerateEEFEditorAction.java
+++ /dev/null
@@ -1,248 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008, 2012 Obeo.
- * 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:
- * Obeo - initial API and implementation
- *******************************************************************************/
-package org.eclipse.emf.eef.codegen.extended.ui.launcher;
-
-import java.io.IOException;
-import java.util.ArrayList;
-import java.util.Collections;
-import java.util.LinkedHashSet;
-import java.util.List;
-import java.util.Set;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.core.runtime.jobs.Job;
-import org.eclipse.emf.common.util.Diagnostic;
-import org.eclipse.emf.common.util.URI;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.resource.Resource;
-import org.eclipse.emf.ecore.resource.ResourceSet;
-import org.eclipse.emf.ecore.resource.impl.ResourceSetImpl;
-import org.eclipse.emf.ecore.util.Diagnostician;
-import org.eclipse.emf.ecore.util.EcoreUtil;
-import org.eclipse.emf.ecore.xmi.impl.XMIResourceFactoryImpl;
-import org.eclipse.emf.eef.EEFGen.EEFGenModel;
-import org.eclipse.emf.eef.EEFGen.EEFGenModelReference;
-import org.eclipse.emf.eef.EEFGen.GenEditionContext;
-import org.eclipse.emf.eef.EEFGen.GenViewsRepository;
-import org.eclipse.emf.eef.codegen.EEFCodegenPlugin;
-import org.eclipse.emf.eef.codegen.extended.flow.OverrideEMFEditorCode;
-import org.eclipse.emf.eef.codegen.flow.Workflow;
-import org.eclipse.jface.action.IAction;
-import org.eclipse.jface.viewers.ISelection;
-import org.eclipse.jface.viewers.StructuredSelection;
-import org.eclipse.swt.widgets.Shell;
-import org.eclipse.ui.IActionDelegate;
-import org.eclipse.ui.IObjectActionDelegate;
-import org.eclipse.ui.IWorkbenchPart;
-
-/**
- * @author Stephane Bouchet
- */
-public class GenerateEEFEditorAction implements IObjectActionDelegate {
-
- private static final String GENERATE_EEF_EDITOR = "Generate EEF Editor for ";
-
- /**
- * @deprecated see bug #370409
- */
- private Shell shell;
-
- protected Set selectedFiles;
-
- /**
- * the list of eefgenmodels
- *
- * @deprecated since a job is used to generates files
- */
- protected List eefGenModels;
-
- /**
- * Constructor.
- */
- public GenerateEEFEditorAction() {
- selectedFiles = new LinkedHashSet();
- }
-
- /**
- * @see IObjectActionDelegate#setActivePart(IAction, IWorkbenchPart)
- * @deprecated see bug #370409
- */
- public void setActivePart(IAction action, IWorkbenchPart targetPart) {
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
- */
- public void run(IAction action) {
- if (selectedFiles != null) {
- try {
- List eefgenmodels = initEEFGenModel();
-
- final Workflow flow = new Workflow("Generate EEF Editors", shell);
- for (final EEFGenModel eefGenModel : eefgenmodels) {
- String key = GENERATE_EEF_EDITOR + eefGenModel.eResource().getURI().toString();
- OverrideEMFEditorCode eefEditorCode = new OverrideEMFEditorCode(key, eefGenModel);
- flow.addStep(key, eefEditorCode);
- }
- flow.prepare();
- Job job = new Job("EEF editors generation") {
-
- @Override
- protected IStatus run(IProgressMonitor monitor) {
- flow.execute(monitor);
- monitor.done();
- selectedFiles.clear();
- return Status.OK_STATUS;
- }
-
- };
- job.setUser(true);
- // lock the workspace to avoid concurrent modification
- job.setRule(ResourcesPlugin.getWorkspace().getRoot());
- job.schedule();
- } catch (IOException e) {
- EEFCodegenPlugin.getDefault().logError(e);
- }
- }
- }
-
- /**
- * @see IActionDelegate#selectionChanged(IAction, ISelection)
- */
- public void selectionChanged(IAction action, ISelection selection) {
- selectedFiles.clear();
- if (selection instanceof StructuredSelection) {
- StructuredSelection sSelection = (StructuredSelection)selection;
- for (Object selectedElement : sSelection.toList()) {
- if (selectedElement instanceof IFile) {
- this.selectedFiles.add((IFile)selectedElement);
- }
- }
- }
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.emf.eef.codegen.ui.generators.actions.AbstractGenerateEEFAction#inutEEFGenModel()
- */
- protected List initEEFGenModel() throws IOException {
- List eefgenmodels = new ArrayList(selectedFiles.size());
- if (!selectedFiles.isEmpty()) {
- ResourceSet resourceSet = new ResourceSetImpl();
- for (IFile selectedFile : selectedFiles) {
- URI modelURI = URI.createPlatformResourceURI(selectedFile.getFullPath().toString(), true);
- String fileExtension = modelURI.fileExtension();
- if (fileExtension == null || fileExtension.length() == 0) {
- fileExtension = Resource.Factory.Registry.DEFAULT_EXTENSION;
- }
- final Resource.Factory.Registry registry = Resource.Factory.Registry.INSTANCE;
- final Object resourceFactory = registry.getExtensionToFactoryMap().get(fileExtension);
- if (resourceFactory != null) {
- resourceSet.getResourceFactoryRegistry().getExtensionToFactoryMap()
- .put(fileExtension, resourceFactory);
- } else {
- resourceSet.getResourceFactoryRegistry().getExtensionToFactoryMap()
- .put(fileExtension, new XMIResourceFactoryImpl());
- }
- Resource res = resourceSet.createResource(modelURI);
- res.load(Collections.EMPTY_MAP);
- EcoreUtil.resolveAll(resourceSet);
- if (res.getContents().size() > 0) {
- EObject object = res.getContents().get(0);
- if (object instanceof EEFGenModel) {
- eefgenmodels.add((EEFGenModel)object);
- }
- }
- }
- }
- // validate eefgenmodels and components recursively
- return validateEEFGenmodels(eefgenmodels);
- }
-
- /**
- * @param eefgenmodels
- * @return
- * @since 2.0
- */
- private List validateEEFGenmodels(List eefgenmodels) {
- List eefModels = new ArrayList(eefgenmodels.size());
- eefModels.addAll(eefgenmodels);
- for (EEFGenModel eefGenModel : eefgenmodels) {
- if (!validateOneEEFGenModel(eefGenModel))
- eefModels.remove(eefGenModel);
- // validate also referenced EEFGenModels
- if (!validateReferencedEEFGenModels(eefGenModel))
- eefModels.remove(eefGenModel);
- }
- return eefModels;
- }
-
- /**
- * @param eefGenModel
- */
- private boolean validateReferencedEEFGenModels(EEFGenModel eefGenModel) {
- for (EEFGenModelReference eefGenModelReference : eefGenModel.getReferences()) {
- EEFGenModel referencedEEFGenModel = eefGenModelReference.getReferencedContext();
- if (!validateOneEEFGenModel(referencedEEFGenModel))
- return false;
- return validateReferencedEEFGenModels(referencedEEFGenModel);
- }
- return true;
- }
-
- /**
- * @param eefGenModel
- * @return
- * @since 2.0
- */
- private boolean validateOneEEFGenModel(EEFGenModel eefGenModel) {
- // validate eefgenmodels
- final Diagnostic diag = Diagnostician.INSTANCE.validate(eefGenModel);
- if (diag.getSeverity() != Diagnostic.OK) {
- Status status = new Status(diag.getSeverity(), EEFCodegenPlugin.PLUGIN_ID, "EEFGenmodel '"
- + eefGenModel.eResource().getURI() + "' contains errors.");
- EEFCodegenPlugin.getDefault().getLog().log(status);
- return false;
- }
- // validate PropertiesEditionContext
- for (GenEditionContext genEditionContext : eefGenModel.getEditionContexts()) {
- final Diagnostic diag2 = Diagnostician.INSTANCE.validate(genEditionContext
- .getPropertiesEditionContext());
- if (diag2.getSeverity() != Diagnostic.OK) {
- Status status = new Status(diag2.getSeverity(), EEFCodegenPlugin.PLUGIN_ID,
- "PropertiesEditionContext '"
- + genEditionContext.getPropertiesEditionContext().eResource().getURI()
- + "' contains errors.");
- EEFCodegenPlugin.getDefault().getLog().log(status);
- return false;
- }
- }
- // validate ViewsRepository
- for (GenViewsRepository genViewsRepository : eefGenModel.getViewsRepositories()) {
- final Diagnostic diag2 = Diagnostician.INSTANCE.validate(genViewsRepository.getViewsRepository());
- if (diag2.getSeverity() != Diagnostic.OK) {
- Status status = new Status(diag2.getSeverity(), EEFCodegenPlugin.PLUGIN_ID,
- "ViewsRepository '" + genViewsRepository.getViewsRepository().eResource().getURI()
- + "' contains errors.");
- EEFCodegenPlugin.getDefault().getLog().log(status);
- return false;
- }
- }
- return true;
- }
-}
diff --git a/plugins/org.eclipse.emf.eef.codegen.extended/src/org/eclipse/emf/eef/codegen/extended/Activator.java b/plugins/org.eclipse.emf.eef.codegen.extended/src/org/eclipse/emf/eef/codegen/extended/Activator.java
deleted file mode 100644
index c4ba5f593..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.extended/src/org/eclipse/emf/eef/codegen/extended/Activator.java
+++ /dev/null
@@ -1,64 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008, 2012 Obeo.
- * 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:
- * Obeo - initial API and implementation
- *******************************************************************************/
-package org.eclipse.emf.eef.codegen.extended;
-
-import org.eclipse.core.runtime.Plugin;
-import org.osgi.framework.BundleContext;
-
-/**
- * The activator class controls the plug-in life cycle.
- */
-public class Activator extends Plugin {
-
- /**
- * The plug-in ID.
- */
- public static final String PLUGIN_ID = "org.eclipse.emf.eef.codegen.extended";
-
- /**
- * The shared instance.
- */
- private static Activator plugin;
-
- /**
- * The constructor.
- */
- public Activator() {
- }
-
- /**{@inheritDoc}
- *
- * @see org.eclipse.core.runtime.Plugin#start(org.osgi.framework.BundleContext)
- */
- public void start(BundleContext context) throws Exception {
- super.start(context);
- plugin = this;
- }
-
- /**{@inheritDoc}
- *
- * @see org.eclipse.core.runtime.Plugin#stop(org.osgi.framework.BundleContext)
- */
- public void stop(BundleContext context) throws Exception {
- plugin = null;
- super.stop(context);
- }
-
- /**
- * Returns the shared instance.
- *
- * @return the shared instance
- */
- public static Activator getDefault() {
- return plugin;
- }
-
-}
diff --git a/plugins/org.eclipse.emf.eef.codegen.extended/src/org/eclipse/emf/eef/codegen/extended/editor/api/EditorContribution.mtl b/plugins/org.eclipse.emf.eef.codegen.extended/src/org/eclipse/emf/eef/codegen/extended/editor/api/EditorContribution.mtl
deleted file mode 100644
index 1103bf105..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.extended/src/org/eclipse/emf/eef/codegen/extended/editor/api/EditorContribution.mtl
+++ /dev/null
@@ -1,145 +0,0 @@
-[comment encoding = UTF-8 /]
-[module EditorContribution('http://www.eclipse.org/emf/eef/components/1.0.0', 'http://www.eclipse.org/emf/eef/mapping/1.0.0', 'http://www.eclipse.org/emf/eef/extended/editor/1.0.0', 'http://www.eclipse.org/emf/2002/Ecore', 'http://www.eclipse.org/emf/2002/GenModel', 'http://www.eclipse.org/emf/eef/extended/query/1.0.0','http://www.eclipse.org/emf/eef/mapping/filters/1.0.0')/]
-
-[import org::eclipse::emf::eef::codegen::services::common /]
-[import org::eclipse::emf::eef::codegen::services::naming /]
-[import org::eclipse::emf::eef::codegen::extended::query::oclquery /]
-[import org::eclipse::emf::eef::codegen::services::imports /]
-
-[comment =================== API ===================== /]
-
-[template public editorInput(input : EEFPageInput)]
-//FIXME: Input of type [input.eClass().name/] not managed. Override 'editorInput' template into EditorContribution to fix this.
-[/template]
-
-[template public filterDeclaration(filter : BindingFilter)]
-//FIXME: Input of type [filter.eClass().name/] not managed. Override 'filterDeclaration' template into EditorContribution to fix this.
-[/template]
-
-[template public editorPage(page : EEFPage, editorName : String)]
-//FIXME: Input of type [page.eClass().name/] not managed. Override 'editorPage' template into EditorContribution to fix this.
-[/template]
-
-[comment =================== Editor Input implementations ===================== /]
-[template public editorInput(input : AllResourcesRootsRelativeInput)]
- [if (input.query.oclIsUndefined())]
-Object input = getEditingDomain().getResourceSet();
- [else]
-//FIXME: input not processed
- [/if]
-[/template]
-
-[template public editorInput(input : FirstResourceRootRelativeInput)]
-Object input = null;
- [if (input.query.oclIsUndefined())]
-if (getEditingDomain().getResourceSet() != null && getEditingDomain().getResourceSet().getResources().size() > 0) {
- input = getEditingDomain().getResourceSet().getResources().get(0);
-}
- [else]
-if (getEditingDomain().getResourceSet() != null && getEditingDomain().getResourceSet().getResources().size() > 0) {
- Resource resource = getEditingDomain().getResourceSet().getResources().get(0);
- if (resource.getContents() != null && resource.getContents().size() > 0) {
- EObject element = resource.getContents().get(0);
- [input.query.content()/]
- }
-}
- [/if]
-[/template]
-
-[comment =================== Filters implementations ===================== /]
-[template public filterImports(peContext : PropertiesEditionContext, filterType : EClass) ? (filterType.name = 'PartFilter')]
-[addImports(Sequence{
- 'org.eclipse.emf.eef.runtime.ui.viewers.filters.PropertiesEditionPartFilter'})/]
-[/template]
-
-[template public filterDeclaration(filter : PartFilter)]
-filters.add(new PropertiesEditionPartFilter("[filter.filteredPart.viewKey(filter.contextualComponent)/]"));
-[/template]
-
-[template public filterImports(peContext : PropertiesEditionContext, filterType : EClass) ? (filterType.name = 'OCLFilter')]
-[addImports(Sequence{
- 'org.eclipse.emf.ecore.EcorePackage',
- 'org.eclipse.jface.viewers.Viewer',
- 'org.eclipse.emf.eef.runtime.query.QueryWrapper'})/]
-[/template]
-
-[template public filterDeclaration(filter : OCLFilter)]
-filters.add(new ViewerFilter() {
- public boolean select(Viewer viewer, Object parentElement, Object element) {
- if (element instanceof EObject) {
- final QueryWrapper query = new OCLQuery(EcorePackage.eINSTANCE.getEObject(), "[filter.OCLBody/]");
- if (EEFExtendedRuntime.INSTANCE.getProcessor().canEvaluate(query)) {
- final QueryResult evaluate = EEFExtendedRuntime.INSTANCE.getProcessor().evaluate((EObject) element, query);
- if (evaluate.evaluationStatus.isOK()) {
- return (Boolean)evaluate.evaluationResult;
- }
- }
- }
- return true;
- }
- });
-[/template]
-
-[comment =================== Editor page implementations ===================== /]
-[template public pageImports(peContext : PropertiesEditionContext, pageType : EClass) ? (pageType.name = 'TreeMasterPage')]
-[addImports(Sequence{
- 'org.eclipse.emf.eef.runtime.ui.editors.pages.tree.EEFTreeMDFormPage',
- 'org.eclipse.jface.viewers.ISelectionChangedListener',
- 'org.eclipse.jface.viewers.SelectionChangedEvent',
- 'org.eclipse.swt.widgets.Composite'})/]
-[/template]
-
-[template public editorPage(page : TreeMasterPage, editorName : String)]
-final EEFTreeMDFormPage page = new EEFTreeMDFormPage([editorName/].this, "[page.name/]") {
-
- /**
- * {@inheritDoc}
- * @see org.eclipse.ui.forms.editor.FormPage#createPartControl(org.eclipse.swt.widgets.Composite)
- */
- public void createPartControl(Composite parent) {
- super.createPartControl(parent);
- getModelViewer().addSelectionChangedListener(new ISelectionChangedListener() {
- // This just notifies those things that are affected by the section.
- //
- public void selectionChanged(SelectionChangedEvent selectionChangedEvent) {
- [editorName/].this.setSelection(selectionChangedEvent.getSelection());
- }
- }
-
- );
- }
-
-};
-page.setInitialMasterPartToolBarVisibility([page.toolbarVisible/]);
-page.setAdapterFactory(adapterFactory);
-page.setEditingDomain(editingDomain);
-[/template]
-
-[template public pageImports(peContext : PropertiesEditionContext, pageType : EClass) ? (pageType.name = 'StandardFormPage')]
-[addImports(Sequence{
- 'org.eclipse.emf.eef.runtime.ui.editors.pages.EEFStandardFormPage'})/]
-[/template]
-
-[template public editorPage(page : StandardFormPage, editorName : String)]
-final EEFStandardFormPage page = new EEFStandardFormPage([editorName/].this, "[page.name/]");
-[if ((not page.title.oclIsUndefined()) and (page.title.size() > 0))]
-page.setPageTitle("[page.title/]");
-[/if]
-page.setAdapterFactory(adapterFactory);
-page.setEditingDomain(editingDomain);
-[/template]
-
-[template public pageImports(peContext : PropertiesEditionContext, pageType : EClass) ? (pageType.name = 'EEFMasterPage')]
-[addImports(Sequence{
- 'org.eclipse.emf.eef.runtime.ui.editors.pages.eefviewer.EEFPropertiesViewerMDFormPage'})/]
-[/template]
-
-[template public editorPage(page : EEFMasterPage, editorName : String)]
-final EEFPropertiesViewerMDFormPage page = new EEFPropertiesViewerMDFormPage([editorName/].this, "[page.name/]", true, true);
-page.setAdapterFactory(adapterFactory);
-page.setEditingDomain(editingDomain);
-[if ((not page.title.oclIsUndefined()) and (page.title.size() > 0))]
-page.setPageTitle("[page.title/]");
-[/if]
-[/template]
-
diff --git a/plugins/org.eclipse.emf.eef.codegen.extended/src/org/eclipse/emf/eef/codegen/extended/files/EEFEditor.mtl b/plugins/org.eclipse.emf.eef.codegen.extended/src/org/eclipse/emf/eef/codegen/extended/files/EEFEditor.mtl
deleted file mode 100644
index 15d8bbc0c..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.extended/src/org/eclipse/emf/eef/codegen/extended/files/EEFEditor.mtl
+++ /dev/null
@@ -1,136 +0,0 @@
-[comment encoding = UTF-8 /]
-[module EEFEditor('http://www.eclipse.org/emf/eef/components/1.0.0', 'http://www.eclipse.org/emf/eef/extended/editor/1.0.0', 'http://www.eclipse.org/emf/eef/extended/query/1.0.0', 'http://www.eclipse.org/emf/2002/Ecore', 'http://www.eclipse.org/emf/2002/GenModel','http://www.eclipse.org/emf/eef/mapping/filters/1.0.0')/]
-
-[import org::eclipse::emf::eef::codegen::services::common /]
-[import org::eclipse::emf::eef::codegen::services::naming /]
-[import org::eclipse::emf::eef::codegen::extended::query::oclquery /]
-[import org::eclipse::emf::eef::codegen::extended::services::editor-common /]
-[import org::eclipse::emf::eef::codegen::extended::editor::api::EditorContribution /]
-[import org::eclipse::emf::eef::codegen::services::imports /]
-[import org::eclipse::emf::eef::codegen::ecore::services::wrappers::GenModel /]
-[import org::eclipse::emf::eef::codegen::ecore::services::wrappers::GenPackage /]
-[import org::eclipse::emf::eef::codegen::ecore::editor::Editor /]
-
-[template public generateEditor(peContext : PropertiesEditionContext)]
-[peContext.initializeImportManager(peContext.model.presentationPackage(), model.editorClassName())/]
-
-[for (pageType : EClass | peContext.categories.bindings.views.eClass()->asOrderedSet())]
-[peContext.pageImports(pageType)/]
-[/for]
-
-[for (filterType : EClass | peContext.categories.bindings.bindingFilters.eClass()->asOrderedSet())]
-[peContext.filterImports(filterType)/]
-[/for]
-
-[for (queryType : EClass | peContext.eAllContents(EEFUnderstandableQuery).eClass()->asOrderedSet())]
-[peContext.queryImports(queryType)/]
-[/for]
-
- [file (peContext.fullFilePath(), false, 'UTF-8')]
-/**
- *
- *
- *
- */
-package [peContext.model.presentationPackage()/];[addImports(Sequence{
- 'org.eclipse.emf.eef.runtime.ui.EEFExtendedRuntime',
- 'org.eclipse.emf.eef.runtime.ui.editor.InteractiveEEFEditor',
- 'org.eclipse.ui.PartInitException',
- 'org.eclipse.emf.ecore.EObject',
- 'org.eclipse.emf.ecore.resource.Resource'
- })/]
-
-[let content : String = peContext.fileContent()]
-[peContext.genSortedImports()/]
-[content/]
-[/let]
-[/file]
-[/template]
-
-[template public fileContent(peContext : PropertiesEditionContext) { genModel : GenModel = peContext.model.genModel ; genPackage : GenPackage = peContext.model ;} ]
-/**
- * This is an example of a [model.ecorePackage.name/] model editor.
- *
- */
-public class [model.editorClassName()/] extends InteractiveEEFEditor {
-
-[if (genModel.richClientPlatform)][addImports(Sequence{'java.util.List', 'java.util.ArrayList', 'java.util.Collections'})/]
- /**
- * The filters for file extensions supported by the editor.
- *
- *
- * @generated
- */[if (genPackage.generateModelWizard)]
- public static final [genModel._ListOfString()/] FILE_EXTENSION_FILTERS = prefixExtensions([genPackage.getImportedModelWizardClassName()/].FILE_EXTENSIONS, "*.");[genModel.getNonNLS()/]
- [else]
- public static final [genModel._ListOfString()/] FILE_EXTENSION_FILTERS = prefixExtensions([genModel.getImportedName('java.util.Arrays')/].asList([genPackage.getImportedEditorPluginClassName()/].INSTANCE.getString("_UI_[genPackage.getEditorClassName()/]FilenameExtensions").split("\\s*,\\s*")), "*.");[genModel.getNonNLS()/][genModel.getNonNLS(2)/][genModel.getNonNLS(3)/]
- [/if]
- /**
- * Returns a new unmodifiable list containing prefixed versions of the extensions in the given list.
- *
- *
- * @generated
- */
- private static [genModel._ListOfString()/] prefixExtensions([genModel._ListOfString()/] extensions, String prefix)
- {
- [genModel._ListOfString()/] result = new [genModel._ArrayListOfString()/]();
- [if (genModel.useGenerics())]
- for (String extension : extensions)
- {
- result.add(prefix + extension);
- [ else ]
- for (Iterator iterator = extensions.iterator() ; iterator.hasNext(); )
- {
- result.add(prefix + (String)iterator.next());
- [/if]
- }
- return Collections.unmodifiableList(result);
- }
-
-[/if]
-
- /**
- * {@inheritDoc}
- * @see org.eclipse.emf.eef.runtime.ui.editor.InteractiveEEFEditor#contributePages()
- */
- protected void contributePages() {
- try {
- [for (contribution : StaticEEFEditorContribution | peContext.categories.bindings->filter(StaticEEFEditorContribution))]
- {
- [contribution.input.editorInput()/]
- [if (contribution.bindingFilters->size() > 0)]
- [include('java.util.List')/]<[include('org.eclipse.jface.viewers.ViewerFilter')/]> filters = new [include('java.util.ArrayList')/]([contribution.bindingFilters->size()/]);
- [for (contribution.bindingFilters)]
- [filterDeclaration()/]
- [/for]
- [/if]
- [for (page : EEFPage | contribution.views->filter(EEFPage))]
- {
- [page.editorPage(peContext.model.editorClassName())/]
- [if (contribution.bindingFilters->size() > 0)]
- for (ViewerFilter viewerFilter : filters) {
- page.addFilter(viewerFilter);
- }
- [/if]
- page.setInput(input);
- addPage(page);
- }
- [/for]
- }
- [/for]
- } catch (PartInitException e) {
- EEFExtendedRuntime.getPlugin().log(e);
- }
- }
-
- [additionalMethods()/]
-
-}
-
-[/template]
-
-[template public additionalMethods (peContext : PropertiesEditionContext) /]
-
-[template public fullFilePath(peContext : PropertiesEditionContext)]
-[peContext.model.qualifiedEditorClassName().toPath()/].java
-[/template]
\ No newline at end of file
diff --git a/plugins/org.eclipse.emf.eef.codegen.extended/src/org/eclipse/emf/eef/codegen/extended/launcher/EEFEditorLauncher.java b/plugins/org.eclipse.emf.eef.codegen.extended/src/org/eclipse/emf/eef/codegen/extended/launcher/EEFEditorLauncher.java
deleted file mode 100644
index a17d5ad9c..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.extended/src/org/eclipse/emf/eef/codegen/extended/launcher/EEFEditorLauncher.java
+++ /dev/null
@@ -1,442 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008, 2012 Obeo.
- * 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:
- * Obeo - initial API and implementation
- *******************************************************************************/
-package org.eclipse.emf.eef.codegen.extended.launcher;
-
-import java.io.File;
-import java.io.IOException;
-import java.net.URL;
-import java.util.ArrayList;
-import java.util.Enumeration;
-import java.util.List;
-
-import org.eclipse.acceleo.engine.event.IAcceleoTextGenerationListener;
-import org.eclipse.acceleo.engine.generation.strategy.IAcceleoGenerationStrategy;
-import org.eclipse.acceleo.engine.service.AbstractAcceleoGenerator;
-import org.eclipse.core.runtime.Platform;
-import org.eclipse.emf.common.EMFPlugin;
-import org.eclipse.emf.common.util.BasicMonitor;
-import org.eclipse.emf.common.util.Monitor;
-import org.eclipse.emf.common.util.URI;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.resource.ResourceSet;
-import org.osgi.framework.Bundle;
-
-/**
- * Entry point of the 'EEFEditorLauncher' generation module.
- *
- * @generated
- */
-public class EEFEditorLauncher extends AbstractAcceleoGenerator {
- /**
- * The name of the module.
- *
- * @generated
- */
- public static final String MODULE_FILE_NAME = "/org/eclipse/emf/eef/codegen/extended/launcher/EEFEditorLauncher";
-
- /**
- * The name of the templates that are to be generated.
- *
- * @generated
- */
- public static final String[] TEMPLATE_NAMES = { "EEFEditorLauncher" };
-
- /**
- * The list of properties files from the launch parameters (Launch configuration).
- *
- * @generated
- */
- private List propertiesFiles = new ArrayList();
-
- /**
- * Allows the public constructor to be used. Note that a generator created
- * this way cannot be used to launch generations before one of
- * {@link #initialize(EObject, File, List)} or
- * {@link #initialize(URI, File, List)} is called.
- *
- * The main reason for this constructor is to allow clients of this
- * generation to call it from another Java file, as it allows for the
- * retrieval of {@link #getProperties()} and
- * {@link #getGenerationListeners()}.
- *
- *
- * @generated
- */
- public EEFEditorLauncher() {
- // Empty implementation
- }
-
- /**
- * This allows clients to instantiates a generator with all required information.
- *
- * @param modelURI
- * URI where the model on which this generator will be used is located.
- * @param targetFolder
- * This will be used as the output folder for this generation : it will be the base path
- * against which all file block URLs will be resolved.
- * @param arguments
- * If the template which will be called requires more than one argument taken from the model,
- * pass them here.
- * @throws IOException
- * This can be thrown in three scenarios : the module cannot be found, it cannot be loaded, or
- * the model cannot be loaded.
- * @generated
- */
- public EEFEditorLauncher(URI modelURI, File targetFolder,
- List extends Object> arguments) throws IOException {
- initialize(modelURI, targetFolder, arguments);
- }
-
- /**
- * This allows clients to instantiates a generator with all required information.
- *
- * @param model
- * We'll iterate over the content of this element to find Objects matching the first parameter
- * of the template we need to call.
- * @param targetFolder
- * This will be used as the output folder for this generation : it will be the base path
- * against which all file block URLs will be resolved.
- * @param arguments
- * If the template which will be called requires more than one argument taken from the model,
- * pass them here.
- * @throws IOException
- * This can be thrown in two scenarios : the module cannot be found, or it cannot be loaded.
- * @generated
- */
- public EEFEditorLauncher(EObject model, File targetFolder,
- List extends Object> arguments) throws IOException {
- initialize(model, targetFolder, arguments);
- }
-
- /**
- * FIX the build for Acceleo 3.1.3
- * @see org.eclipse.acceleo.engine.service.AbstractAcceleoGenerator#createTemplateURI(java.lang.String)
- */
- @Override
- protected URI createTemplateURI(String entry) {
- if (EMFPlugin.IS_ECLIPSE_RUNNING) {
- Bundle bundle = Platform.getBundle("org.eclipse.emf.eef.codegen.extended");
- Enumeration e = bundle.findEntries("/", "*.emtl", true);
- while (e.hasMoreElements()) {
- URL anUrl = e.nextElement();
- if (anUrl.toString().endsWith("org/eclipse/emf/eef/codegen/extended/launcher/EEFEditorLauncher.emtl")) {
- return URI.createURI("platform:/plugin/org.eclipse.emf.eef.codegen.extended" + anUrl.getPath());
- }
- }
- }
- return super.createTemplateURI(entry);
- }
-
- /**
- * This can be used to launch the generation from a standalone application.
- *
- * @param args
- * Arguments of the generation.
- * @generated
- */
- public static void main(String[] args) {
- try {
- if (args.length < 2) {
- System.out.println("Arguments not valid : {model, folder}.");
- } else {
- URI modelURI = URI.createFileURI(args[0]);
- File folder = new File(args[1]);
-
- List arguments = new ArrayList();
-
- /*
- * If you want to change the content of this method, do NOT forget to change the "@generated"
- * tag in the Javadoc of this method to "@generated NOT". Without this new tag, any compilation
- * of the Acceleo module with the main template that has caused the creation of this class will
- * revert your modifications.
- */
-
- /*
- * Add in this list all the arguments used by the starting point of the generation
- * If your main template is called on an element of your model and a String, you can
- * add in "arguments" this "String" attribute.
- */
-
- EEFEditorLauncher generator = new EEFEditorLauncher(modelURI, folder, arguments);
-
- /*
- * Add the properties from the launch arguments.
- * If you want to programmatically add new properties, add them in "propertiesFiles"
- * You can add the absolute path of a properties files, or even a project relative path.
- * If you want to add another "protocol" for your properties files, please override
- * "getPropertiesLoaderService(AcceleoService)" in order to return a new property loader.
- * The behavior of the properties loader service is explained in the Acceleo documentation
- * (Help -> Help Contents).
- */
-
- for (int i = 2; i < args.length; i++) {
- generator.addPropertiesFile(args[i]);
- }
-
- generator.doGenerate(new BasicMonitor());
- }
- } catch (IOException e) {
- e.printStackTrace();
- }
- }
-
- /**
- * Launches the generation described by this instance.
- *
- * @param monitor
- * This will be used to display progress information to the user.
- * @throws IOException
- * This will be thrown if any of the output files cannot be saved to disk.
- * @generated
- */
- @Override
- public void doGenerate(Monitor monitor) throws IOException {
- /*
- * TODO if you wish to change the generation as a whole, override this. The default behavior should
- * be sufficient in most cases. If you want to change the content of this method, do NOT forget to
- * change the "@generated" tag in the Javadoc of this method to "@generated NOT". Without this new tag,
- * any compilation of the Acceleo module with the main template that has caused the creation of this
- * class will revert your modifications. If you encounter a problem with an unresolved proxy during the
- * generation, you can remove the comments in the following instructions to check for problems. Please
- * note that those instructions may have a significant impact on the performances.
- */
-
- //org.eclipse.emf.ecore.util.EcoreUtil.resolveAll(model);
-
- /*
- * If you want to check for potential errors in your models before the launch of the generation, you
- * use the code below.
- */
-
- //if (model != null && model.eResource() != null) {
- // List errors = model.eResource().getErrors();
- // for (org.eclipse.emf.ecore.resource.Resource.Diagnostic diagnostic : errors) {
- // System.err.println(diagnostic.toString());
- // }
- //}
-
- super.doGenerate(monitor);
- }
-
- /**
- * If this generator needs to listen to text generation events, listeners can be returned from here.
- *
- * @return List of listeners that are to be notified when text is generated through this launch.
- * @generated
- */
- @Override
- public List getGenerationListeners() {
- List listeners = super.getGenerationListeners();
- /*
- * TODO if you need to listen to generation event, add listeners to the list here. If you want to change
- * the content of this method, do NOT forget to change the "@generated" tag in the Javadoc of this method
- * to "@generated NOT". Without this new tag, any compilation of the Acceleo module with the main template
- * that has caused the creation of this class will revert your modifications.
- */
- return listeners;
- }
-
- /**
- * If you need to change the way files are generated, this is your entry point.
- *
- * The default is {@link org.eclipse.acceleo.engine.generation.strategy.DefaultStrategy}; it generates
- * files on the fly. If you only need to preview the results, return a new
- * {@link org.eclipse.acceleo.engine.generation.strategy.PreviewStrategy}. Both of these aren't aware of
- * the running Eclipse and can be used standalone.
- *
- *
- * If you need the file generation to be aware of the workspace (A typical example is when you wanna
- * override files that are under clear case or any other VCS that could forbid the overriding), then
- * return a new {@link org.eclipse.acceleo.engine.generation.strategy.WorkspaceAwareStrategy}.
- * Note, however, that this cannot be used standalone.
- *
- *
- * All three of these default strategies support merging through JMerge.
- *
- *
- * @return The generation strategy that is to be used for generations launched through this launcher.
- * @generated
- */
- @Override
- public IAcceleoGenerationStrategy getGenerationStrategy() {
- return super.getGenerationStrategy();
- }
-
- /**
- * This will be called in order to find and load the module that will be launched through this launcher.
- * We expect this name not to contain file extension, and the module to be located beside the launcher.
- *
- * @return The name of the module that is to be launched.
- * @generated
- */
- @Override
- public String getModuleName() {
- return MODULE_FILE_NAME;
- }
-
- /**
- * If the module(s) called by this launcher require properties files, return their qualified path from
- * here.Take note that the first added properties files will take precedence over subsequent ones if they
- * contain conflicting keys.
- *
- * Properties need to be in source folders, the path that we expect to get as a result of this call are of
- * the form <package>.<properties file name without extension>. For example, if you have a file
- * named "messages.properties" in package "org.eclipse.acceleo.sample", the path that needs be returned by
- * a call to {@link #getProperties()} is "org.eclipse.acceleo.sample.messages".
- *
- *
- * @return The list of properties file we need to add to the generation context.
- * @see java.util.ResourceBundle#getBundle(String)
- * @generated
- */
- @Override
- public List getProperties() {
- /*
- * If you want to change the content of this method, do NOT forget to change the "@generated"
- * tag in the Javadoc of this method to "@generated NOT". Without this new tag, any compilation
- * of the Acceleo module with the main template that has caused the creation of this class will
- * revert your modifications.
- */
-
- /*
- * TODO if your generation module requires access to properties files, add their qualified path to the list here.
- *
- * Properties files can be located in an Eclipse plug-in or in the file system (all Acceleo projects are Eclipse
- * plug-in). In order to use properties files located in an Eclipse plugin, you need to add the path of the properties
- * files to the "propertiesFiles" list:
- *
- * final String prefix = "platform:/plugin/";
- * final String pluginName = "org.eclipse.acceleo.module.sample";
- * final String packagePath = "/org/eclipse/acceleo/module/sample/properties/";
- * final String fileName = "default.properties";
- * propertiesFiles.add(prefix + pluginName + packagePath + fileName);
- *
- * With this mechanism, you can load properties files from your plugin or from another plugin.
- *
- * You may want to load properties files from the file system, for that you need to add the absolute path of the file:
- *
- * propertiesFiles.add("C:\Users\MyName\MyFile.properties");
- *
- * If you want to let your users add properties files located in the same folder as the model:
- *
- * if (EMFPlugin.IS_ECLIPSE_RUNNING && model != null && model.eResource() != null) {
- * propertiesFiles.addAll(AcceleoEngineUtils.getPropertiesFilesNearModel(model.eResource()));
- * }
- *
- * To learn more about Properties Files, have a look at the Acceleo documentation (Help -> Help Contents).
- */
- return propertiesFiles;
- }
-
- /**
- * Adds a properties file in the list of properties files.
- *
- * @param propertiesFile
- * The properties file to add.
- * @generated
- * @since 3.1
- */
- @Override
- public void addPropertiesFile(String propertiesFile) {
- this.propertiesFiles.add(propertiesFile);
- }
-
- /**
- * This will be used to get the list of templates that are to be launched by this launcher.
- *
- * @return The list of templates to call on the module {@link #getModuleName()}.
- * @generated
- */
- @Override
- public String[] getTemplateNames() {
- return TEMPLATE_NAMES;
- }
-
- /**
- * This can be used to update the resource set's package registry with all needed EPackages.
- *
- * @param resourceSet
- * The resource set which registry has to be updated.
- * @generated
- */
- @Override
- public void registerPackages(ResourceSet resourceSet) {
- super.registerPackages(resourceSet);
- if (!isInWorkspace(org.eclipse.emf.codegen.ecore.genmodel.GenModelPackage.class)) {
- resourceSet.getPackageRegistry().put(org.eclipse.emf.codegen.ecore.genmodel.GenModelPackage.eINSTANCE.getNsURI(), org.eclipse.emf.codegen.ecore.genmodel.GenModelPackage.eINSTANCE);
- }
- if (!isInWorkspace(org.eclipse.emf.ecore.EcorePackage.class)) {
- resourceSet.getPackageRegistry().put(org.eclipse.emf.ecore.EcorePackage.eINSTANCE.getNsURI(), org.eclipse.emf.ecore.EcorePackage.eINSTANCE);
- }
-
- /*
- * If you want to change the content of this method, do NOT forget to change the "@generated"
- * tag in the Javadoc of this method to "@generated NOT". Without this new tag, any compilation
- * of the Acceleo module with the main template that has caused the creation of this class will
- * revert your modifications.
- */
-
- /*
- * If you need additional package registrations, you can register them here. The following line
- * (in comment) is an example of the package registration for UML.
- *
- * You can use the method "isInWorkspace(Class c)" to check if the package that you are about to
- * register is in the workspace.
- *
- * To register a package properly, please follow the following conventions:
- *
- * If the package is located in another plug-in, already installed in Eclipse. The following content should
- * have been generated at the beginning of this method. Do not register the package using this mechanism if
- * the metamodel is located in the workspace.
- *
- * if (!isInWorkspace(UMLPackage.class)) {
- * // The normal package registration if your metamodel is in a plugin.
- * resourceSet.getPackageRegistry().put(UMLPackage.eNS_URI, UMLPackage.eINSTANCE);
- * }
- *
- * If the package is located in another project in your workspace, the plugin containing the package has not
- * been register by EMF and Acceleo should register it automatically. If you want to use the generator in
- * stand alone, the regular registration (seen a couple lines before) is needed.
- *
- * To learn more about Package Registration, have a look at the Acceleo documentation (Help -> Help Contents).
- */
- }
-
- /**
- * This can be used to update the resource set's resource factory registry with all needed factories.
- *
- * @param resourceSet
- * The resource set which registry has to be updated.
- * @generated
- */
- @Override
- public void registerResourceFactories(ResourceSet resourceSet) {
- super.registerResourceFactories(resourceSet);
- /*
- * If you want to change the content of this method, do NOT forget to change the "@generated"
- * tag in the Javadoc of this method to "@generated NOT". Without this new tag, any compilation
- * of the Acceleo module with the main template that has caused the creation of this class will
- * revert your modifications.
- */
-
- /*
- * TODO If you need additional resource factories registrations, you can register them here. the following line
- * (in comment) is an example of the resource factory registration for UML.
- *
- * If you want to use the generator in stand alone, the resource factory registration will be required.
- *
- * To learn more about the registration of Resource Factories, have a look at the Acceleo documentation (Help -> Help Contents).
- */
-
- // resourceSet.getResourceFactoryRegistry().getExtensionToFactoryMap().put(UMLResource.FILE_EXTENSION, UMLResource.Factory.INSTANCE);
- }
-
-}
diff --git a/plugins/org.eclipse.emf.eef.codegen.extended/src/org/eclipse/emf/eef/codegen/extended/launcher/EEFEditorLauncher.mtl b/plugins/org.eclipse.emf.eef.codegen.extended/src/org/eclipse/emf/eef/codegen/extended/launcher/EEFEditorLauncher.mtl
deleted file mode 100644
index ecec6d48d..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.extended/src/org/eclipse/emf/eef/codegen/extended/launcher/EEFEditorLauncher.mtl
+++ /dev/null
@@ -1,14 +0,0 @@
-[comment encoding = UTF-8 /]
-[module EEFEditorLauncher('http://www.eclipse.org/emf/eef/generation/1.0.0', 'http://www.eclipse.org/emf/eef/components/1.0.0', 'http://www.eclipse.org/emf/eef/extended/editor/1.0.0', 'http://www.eclipse.org/emf/eef/mapping/1.0.0', 'http://www.eclipse.org/emf/eef/views/1.0.0', 'http://www.eclipse.org/emf/2002/GenModel', 'http://www.eclipse.org/emf/2002/Ecore')/]
-
-[import org::eclipse::emf::eef::codegen::extended::files::EEFEditor /]
-
-[template public EEFEditorLauncher(genModel : EEFGenModel)]
- [comment @main /]
-[for (editionContext : GenEditionContext | genModel.editionContexts)]
- [let peContext : PropertiesEditionContext = editionContext.PropertiesEditionContext]
- [peContext.generateEditor()/]
- [/let]
-[/for]
-[/template]
-
diff --git a/plugins/org.eclipse.emf.eef.codegen.extended/src/org/eclipse/emf/eef/codegen/extended/query/oclquery.mtl b/plugins/org.eclipse.emf.eef.codegen.extended/src/org/eclipse/emf/eef/codegen/extended/query/oclquery.mtl
deleted file mode 100644
index 4c54b2c5b..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.extended/src/org/eclipse/emf/eef/codegen/extended/query/oclquery.mtl
+++ /dev/null
@@ -1,24 +0,0 @@
-[comment encoding = UTF-8 /]
-[module oclquery('http://www.eclipse.org/emf/2002/GenModel', 'http://www.eclipse.org/emf/eef/extended/query/1.0.0', 'http://www.eclipse.org/emf/2002/Ecore', 'http://www.eclipse.org/emf/eef/components/1.0.0')/]
-
-[import org::eclipse::emf::eef::codegen::services::emfCodeGen /]
-[import org::eclipse::emf::eef::codegen::services::imports /]
-
-[template public content(eefUnderstandableQuery : EEFUnderstandableQuery)]
-[/template]
-
-[template public queryImports(peContext : PropertiesEditionContext, queryType : EClass) ? (queryType.name = 'OCLQuery')]
-[addImports(Sequence{
- 'org.eclipse.emf.eef.runtime.query.QueryResult',
- 'org.eclipse.emf.eef.runtime.query.ocl.OCLQuery'})/]
-[/template]
-
-[template public content(oclQuery : OCLQuery)]
-OCLQuery query = new OCLQuery([oclQuery._context.metamodelGetter()/][addImport(oclQuery._context.ePackage.qualifiedMetamodelPackage())/], "[oclQuery._query/]");
-if (EEFExtendedRuntime.INSTANCE.getProcessor().canEvaluate(query)) {
- QueryResult result = EEFExtendedRuntime.INSTANCE.getProcessor().evaluate(element, query);
- if (result.evaluationStatus.isOK()) {
- input = result.evaluationResult;
- }
-}
-[/template]
diff --git a/plugins/org.eclipse.emf.eef.codegen.extended/src/org/eclipse/emf/eef/codegen/extended/services/editor-common.mtl b/plugins/org.eclipse.emf.eef.codegen.extended/src/org/eclipse/emf/eef/codegen/extended/services/editor-common.mtl
deleted file mode 100644
index 744579b59..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.extended/src/org/eclipse/emf/eef/codegen/extended/services/editor-common.mtl
+++ /dev/null
@@ -1,14 +0,0 @@
-[comment encoding = UTF-8 /]
-[module editor-common('http://www.eclipse.org/emf/2002/GenModel')/]
-
-[template public editorClassName(genPackage : GenPackage)]
-[genPackage.prefix/]Editor
-[/template]
-
-[template public qualifiedEditorClassName(genPackage : GenPackage)]
-[genPackage.presentationPackage()/].[genPackage.editorClassName()/]
-[/template]
-
-[template public presentationPackage(genPackage : GenPackage)]
-[if ((not genPackage.basePackage.oclIsUndefined()) and genPackage.basePackage.size() > 0)][genPackage.basePackage/].[/if][genPackage.ecorePackage.name/].presentation
-[/template]
\ No newline at end of file
diff --git a/plugins/org.eclipse.emf.eef.codegen.launcher/.classpath b/plugins/org.eclipse.emf.eef.codegen.launcher/.classpath
deleted file mode 100644
index 64c5e31b7..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.launcher/.classpath
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
-
-
-
-
diff --git a/plugins/org.eclipse.emf.eef.codegen.launcher/.gitignore b/plugins/org.eclipse.emf.eef.codegen.launcher/.gitignore
deleted file mode 100644
index d44cd35e0..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.launcher/.gitignore
+++ /dev/null
@@ -1,2 +0,0 @@
-target
-bin
diff --git a/plugins/org.eclipse.emf.eef.codegen.launcher/.project b/plugins/org.eclipse.emf.eef.codegen.launcher/.project
deleted file mode 100644
index 6354735a8..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.launcher/.project
+++ /dev/null
@@ -1,28 +0,0 @@
-
-
- org.eclipse.emf.eef.codegen.launcher
-
-
-
-
-
- org.eclipse.jdt.core.javabuilder
-
-
-
-
- org.eclipse.pde.ManifestBuilder
-
-
-
-
- org.eclipse.pde.SchemaBuilder
-
-
-
-
-
- org.eclipse.pde.PluginNature
- org.eclipse.jdt.core.javanature
-
-
diff --git a/plugins/org.eclipse.emf.eef.codegen.launcher/.settings/org.eclipse.jdt.core.prefs b/plugins/org.eclipse.emf.eef.codegen.launcher/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index 5d3649898..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.launcher/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,8 +0,0 @@
-#Mon Dec 12 14:57:03 CET 2011
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
-org.eclipse.jdt.core.compiler.compliance=1.5
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.source=1.5
diff --git a/plugins/org.eclipse.emf.eef.codegen.launcher/META-INF/MANIFEST.MF b/plugins/org.eclipse.emf.eef.codegen.launcher/META-INF/MANIFEST.MF
deleted file mode 100644
index 154322386..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.launcher/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,14 +0,0 @@
-Manifest-Version: 1.0
-Bundle-ManifestVersion: 2
-Bundle-Name: EEF Codegen Launcher
-Bundle-SymbolicName: org.eclipse.emf.eef.codegen.launcher
-Bundle-Version: 1.5.2.qualifier
-Bundle-Activator: org.eclipse.emf.eef.codegen.launcher.EEFCodegenLauncher
-Bundle-Vendor: Eclipse Modeling Project
-Require-Bundle: org.eclipse.ui,
- org.eclipse.core.runtime,
- org.eclipse.emf.ecore
-Bundle-RequiredExecutionEnvironment: J2SE-1.5
-Bundle-ActivationPolicy: lazy
-Export-Package: org.eclipse.emf.eef.codegen.flow,
- org.eclipse.emf.eef.codegen.flow.var
diff --git a/plugins/org.eclipse.emf.eef.codegen.launcher/about.html b/plugins/org.eclipse.emf.eef.codegen.launcher/about.html
deleted file mode 100755
index f3a55ce5f..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.launcher/about.html
+++ /dev/null
@@ -1,28 +0,0 @@
-
-
-
-
-About
-
-
-
About This Content
-
-
June 15, 2010
-
License
-
-
The Eclipse Foundation makes available all content in this plug-in ("Content"). Unless otherwise
-indicated below, the Content is provided to you under the terms and conditions of the
-Eclipse Public License Version 1.0 ("EPL"). A copy of the EPL is available
-at http://www.eclipse.org/legal/epl-v10.html.
-For purposes of the EPL, "Program" will mean the Content.
-
-
If you did not receive this Content directly from the Eclipse Foundation, the Content is
-being redistributed by another party ("Redistributor") and different terms and conditions may
-apply to your use of any object code in the Content. Check the Redistributor's license that was
-provided with the Content. If no such license exists, contact the Redistributor. Unless otherwise
-indicated below, the terms and conditions of the EPL still apply to any source code in the Content
-and such source code may be obtained at http://www.eclipse.org.
-
-
-
\ No newline at end of file
diff --git a/plugins/org.eclipse.emf.eef.codegen.launcher/build.properties b/plugins/org.eclipse.emf.eef.codegen.launcher/build.properties
deleted file mode 100644
index e95ac0c3a..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.launcher/build.properties
+++ /dev/null
@@ -1,16 +0,0 @@
-###############################################################################
-# Copyright (c) 2008, 2012 Obeo.
-# 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:
-# Obeo - initial API and implementation
-###############################################################################
-source.. = src/
-output.. = bin/
-bin.includes = META-INF/,\
- .,\
- about.html
-src.includes = about.html
diff --git a/plugins/org.eclipse.emf.eef.codegen.launcher/pom.xml b/plugins/org.eclipse.emf.eef.codegen.launcher/pom.xml
deleted file mode 100644
index f90fc5b2b..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.launcher/pom.xml
+++ /dev/null
@@ -1,28 +0,0 @@
-
-
-
- 4.0.0
-
-
- org.eclipse.emf
- org.eclipse.emf.eef.releng.parent
- ../../releng/org.eclipse.emf.eef.releng.parent
- 1.5.2-SNAPSHOT
-
-
- org.eclipse.emf.eef.codegen.launcher
- eclipse-plugin
-
- EEF Launcher Codegen Plug-in
-
-
diff --git a/plugins/org.eclipse.emf.eef.codegen.launcher/src/org/eclipse/emf/eef/codegen/flow/ConditionalStep.java b/plugins/org.eclipse.emf.eef.codegen.launcher/src/org/eclipse/emf/eef/codegen/flow/ConditionalStep.java
deleted file mode 100755
index 20478db4f..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.launcher/src/org/eclipse/emf/eef/codegen/flow/ConditionalStep.java
+++ /dev/null
@@ -1,132 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008, 2012 Obeo.
- * 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:
- * Obeo - initial API and implementation
- *******************************************************************************/
-
-package org.eclipse.emf.eef.codegen.flow;
-
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.emf.ecore.resource.ResourceSet;
-import org.eclipse.emf.eef.codegen.flow.var.WorkflowContext;
-
-/**
- * @author Goulwen Le Fur
- *
- */
-public abstract class ConditionalStep extends Step {
-
- private Step thenStep;
- private Step elseStep;
-
- /**
- * @param thenStep execution if condition is valid
- */
- public ConditionalStep(Step thenStep) {
- super("Conditional step");
- this.thenStep = thenStep;
- this.elseStep = new IdentityStep();
- }
-
- /**
- * @param thenStep execution if condition is valid
- * @param elseStep execution if condition is invalid
- */
- public ConditionalStep(Step thenStep, Step elseStep) {
- super("Conditional step");
- this.thenStep = thenStep;
- this.elseStep = elseStep;
- }
-
- /**
- * {@inheritDoc}
- * @see org.eclipse.emf.eef.codegen.flow.Step#execute(org.eclipse.core.runtime.IProgressMonitor)
- */
- public IStatus execute(IProgressMonitor monitor) {
- if (condition()) {
- return thenStep.execute(monitor);
- } else {
- if (elseStep != null) {
- return elseStep.execute(monitor);
- }
- }
- return Status.OK_STATUS;
- }
-
- /**
- * Defines if the thenStep or the elseStep must be executed.
- * @return result
- */
- public abstract boolean condition();
-
- /**
- * {@inheritDoc}
- * @see org.eclipse.emf.eef.codegen.flow.Step#getName()
- */
- public String getName() {
- return super.getName();
- }
-
- /**
- * @return the thenStep
- */
- public Step getThenStep() {
- return thenStep;
- }
-
- /**
- * @return the elseStep
- */
- public Step getElseStep() {
- return elseStep;
- }
-
- /**
- * {@inheritDoc}
- * @see org.eclipse.emf.eef.codegen.flow.Step#setContext(org.eclipse.emf.eef.codegen.flow.var.WorkflowContext)
- */
- public void setContext(WorkflowContext context) {
- super.setContext(context);
- thenStep.setContext(context);
- if (elseStep != null) {
- elseStep.setContext(context);
- }
- }
-
- /**
- * {@inheritDoc}
- * @see org.eclipse.emf.eef.codegen.flow.Step#setResourceSet(org.eclipse.emf.ecore.resource.ResourceSet)
- */
- public void setResourceSet(ResourceSet resourceSet) {
- super.setResourceSet(resourceSet);
- thenStep.setResourceSet(resourceSet);
- if (elseStep != null) {
- elseStep.setResourceSet(resourceSet);
- }
- }
-
- /**
- * {@inheritDoc}
- * @see org.eclipse.emf.eef.codegen.flow.Step#validateExecution()
- */
- public boolean validateExecution() {
- if (condition()) {
- return thenStep.validateExecution();
- } else {
- if (elseStep != null) {
- return elseStep.validateExecution();
- }
- else {
- return super.validateExecution();
- }
- }
- }
-
-}
diff --git a/plugins/org.eclipse.emf.eef.codegen.launcher/src/org/eclipse/emf/eef/codegen/flow/IdentityStep.java b/plugins/org.eclipse.emf.eef.codegen.launcher/src/org/eclipse/emf/eef/codegen/flow/IdentityStep.java
deleted file mode 100755
index 37bb8917e..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.launcher/src/org/eclipse/emf/eef/codegen/flow/IdentityStep.java
+++ /dev/null
@@ -1,42 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008, 2012 Obeo.
- * 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:
- * Obeo - initial API and implementation
- *******************************************************************************/
-package org.eclipse.emf.eef.codegen.flow;
-
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Status;
-
-/**
- * @author Goulwen Le Fur
- *
- */
-public class IdentityStep extends Step {
-
- private static final String IDENTITY_STEP_NAME = "Identity";
-
- /**
- * @param name
- */
- public IdentityStep() {
- super(IDENTITY_STEP_NAME);
- }
-
- /**
- * {@inheritDoc}
- * @see org.eclipse.emf.eef.codegen.flow.Step#execute(org.eclipse.core.runtime.IProgressMonitor)
- */
- @Override
- public IStatus execute(IProgressMonitor monitor) {
- // TO Nothing
- return Status.OK_STATUS;
- }
-
-}
diff --git a/plugins/org.eclipse.emf.eef.codegen.launcher/src/org/eclipse/emf/eef/codegen/flow/Step.java b/plugins/org.eclipse.emf.eef.codegen.launcher/src/org/eclipse/emf/eef/codegen/flow/Step.java
deleted file mode 100755
index 918259bb6..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.launcher/src/org/eclipse/emf/eef/codegen/flow/Step.java
+++ /dev/null
@@ -1,102 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008, 2012 Obeo.
- * 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:
- * Obeo - initial API and implementation
- *******************************************************************************/
-package org.eclipse.emf.eef.codegen.flow;
-
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.emf.ecore.resource.ResourceSet;
-import org.eclipse.emf.ecore.resource.impl.ResourceSetImpl;
-import org.eclipse.emf.eef.codegen.flow.var.WorkflowContext;
-
-/**
- * @author Goulwen Le Fur
- *
- */
-public abstract class Step {
-
- /**
- * ResourceSet where to work
- */
- protected ResourceSet resourceSet;
-
- /**
- * Workflow context
- */
- protected WorkflowContext context;
-
- /**
- * Step name
- */
- protected final String name;
-
-
- /**
- * @param name StepName
- */
- public Step(String name) {
- this.name = name;
- }
-
- /**
- * @return the name
- */
- public String getName() {
- return name;
- }
-
- /**
- * @return the context
- */
- public WorkflowContext getContext() {
- if (context == null) {
- context = new WorkflowContext();
- }
- return context;
- }
-
- /**
- * @param context to set
- */
- public void setContext(WorkflowContext context) {
- this.context = context;
- }
-
- /**
- * @return the resourceSet
- */
- public ResourceSet getResourceSet() {
- if (resourceSet == null) {
- resourceSet = new ResourceSetImpl();
- }
- return resourceSet;
- }
-
- /**
- * @param resourceSet the resourceSet to set
- */
- public void setResourceSet(ResourceSet resourceSet) {
- this.resourceSet = resourceSet;
- }
-
- /**
- * @return true if the step must be executed
- */
- public boolean validateExecution() {
- return true;
- }
-
- /**
- * @param monitor monitor to use
- * @return the execution result
- */
- public abstract IStatus execute(IProgressMonitor monitor);
-
-}
diff --git a/plugins/org.eclipse.emf.eef.codegen.launcher/src/org/eclipse/emf/eef/codegen/flow/StepWithInput.java b/plugins/org.eclipse.emf.eef.codegen.launcher/src/org/eclipse/emf/eef/codegen/flow/StepWithInput.java
deleted file mode 100755
index c72f76f4c..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.launcher/src/org/eclipse/emf/eef/codegen/flow/StepWithInput.java
+++ /dev/null
@@ -1,36 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008, 2012 Obeo.
- * 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:
- * Obeo - initial API and implementation
- *******************************************************************************/
-package org.eclipse.emf.eef.codegen.flow;
-
-import java.util.List;
-
-import org.eclipse.jface.wizard.WizardPage;
-
-
-/**
- * @author Goulwen Le Fur
- *
- */
-public abstract class StepWithInput extends Step {
-
- /**
- * @param name of the task
- */
- public StepWithInput(String name) {
- super(name);
- }
-
- /**
- * @return a wizard page to get the step inputs
- */
- public abstract List getInputPages();
-
-}
diff --git a/plugins/org.eclipse.emf.eef.codegen.launcher/src/org/eclipse/emf/eef/codegen/flow/Workflow.java b/plugins/org.eclipse.emf.eef.codegen.launcher/src/org/eclipse/emf/eef/codegen/flow/Workflow.java
deleted file mode 100755
index b578811fa..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.launcher/src/org/eclipse/emf/eef/codegen/flow/Workflow.java
+++ /dev/null
@@ -1,214 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008, 2012 Obeo.
- * 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:
- * Obeo - initial API and implementation
- *******************************************************************************/
-package org.eclipse.emf.eef.codegen.flow;
-
-import java.util.ArrayList;
-import java.util.Iterator;
-import java.util.LinkedHashMap;
-import java.util.List;
-import java.util.Map;
-
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.emf.ecore.resource.ResourceSet;
-import org.eclipse.emf.ecore.resource.impl.ResourceSetImpl;
-import org.eclipse.emf.eef.codegen.flow.var.WorkflowContext;
-import org.eclipse.emf.eef.codegen.launcher.EEFCodegenLauncher;
-import org.eclipse.jface.wizard.Wizard;
-import org.eclipse.jface.wizard.WizardDialog;
-import org.eclipse.jface.wizard.WizardPage;
-import org.eclipse.swt.widgets.Shell;
-
-/**
- * @author Goulwen Le Fur
- *
- */
-public class Workflow extends StepWithInput {
-
- private Map steps;
- private Shell shell;
- private boolean prepared;
- private boolean canExecute;
-
- /**
- * Create an empty flow
- */
- public Workflow(String name, Shell shell) {
- super(name);
- steps = new LinkedHashMap();
- this.shell = shell;
- prepared = false;
- }
-
- /**
- * Create a flow with the given steps
- * @param name flow name
- * @param shell current shell
- * @param steps the workflow's steps
- */
- public Workflow(String name, Shell shell, Map steps) {
- super(name);
- this.steps = steps;
- this.shell = shell;
- prepared = false;
- }
-
- /**
- * @param context
- */
- public void setContext(WorkflowContext context) {
- super.setContext(context);
- for (Step step : steps.values()) {
- step.setContext(context);
- }
- }
-
- /**
- * Add a new step to the workflow.
- * @param key title of the step (must be unique)
- * @param step the step to add
- */
- public void addStep(String key, Step step) {
- if (context == null) {
- context = new WorkflowContext();
- }
- step.setContext(context);
- if (resourceSet == null) {
- resourceSet = new ResourceSetImpl();
- }
- step.setResourceSet(resourceSet);
- steps.put(key, step);
- }
-
-
- /**
- * {@inheritDoc]
- * @see org.eclipse.emf.eef.codegen.flow.Step#getResourceSet()
- */
- public ResourceSet getResourceSet() {
- if (resourceSet == null) {
- resourceSet = new ResourceSetImpl();
- for (Step step : steps.values()) {
- step.setResourceSet(resourceSet);
- }
- }
- return resourceSet;
- }
-
- /**
- * {@inheritDoc]
- * @see org.eclipse.emf.eef.codegen.flow.Step#setResourceSet(org.eclipse.emf.ecore.resource.ResourceSet)
- */
- public void setResourceSet(ResourceSet resourceSet) {
- super.setResourceSet(resourceSet);
- for (Step step : steps.values()) {
- step.setResourceSet(resourceSet);
- }
- }
-
- /**
- * {@inheritDoc}
- * @see org.eclipse.emf.eef.codegen.flow.StepWithInput#getInputPages()
- */
- public List getInputPages() {
- List flowPages = new ArrayList();
- for (Step step : steps.values()) {
- if (step instanceof ConditionalStep) {
- if (((ConditionalStep) step).condition()) {
- step = ((ConditionalStep) step).getThenStep();
- } else {
- step = ((ConditionalStep) step).getElseStep();
- }
- }
- if (step instanceof StepWithInput) {
- flowPages.addAll(((StepWithInput) step).getInputPages());
- }
- }
- return flowPages;
- }
-
- /**
- * Prepare the flow execution.
- */
- public boolean prepare() {
- canExecute = true;
- if (getInputPages().size() > 0) {
- Wizard prepareWizard = new Wizard() {
-
- /**
- * {@inheritDoc}
- * @see org.eclipse.jface.wizard.Wizard#addPages()
- */
- public void addPages() {
- for (WizardPage page : getInputPages()) {
- addPage(page);
- }
- }
-
- /**
- * {@inheritDoc}
- * @see org.eclipse.jface.wizard.Wizard#performFinish()
- */
- public boolean performFinish() {
- canExecute = true;
- return true;
- }
-
- /**
- * {@inheritDoc}
- * @see org.eclipse.jface.wizard.Wizard#performCancel()
- */
- public boolean performCancel() {
- canExecute = false;
- return true;
- }
-
-
- };
- WizardDialog wDialog = new WizardDialog(shell, prepareWizard);
- wDialog.open();
- }
- prepared = true;
- return canExecute;
- }
-
- /**
- * {@inheritDoc}
- * @see org.eclipse.emf.eef.codegen.flow.Step#execute(org.eclipse.core.runtime.IProgressMonitor)
- */
- public IStatus execute(IProgressMonitor monitor) {
- assert prepared == true:"Workflow must be prepared before execution";
- monitor.beginTask(name, steps.size());
- for (Iterator iterator = steps.keySet().iterator(); iterator.hasNext();) {
- String key = (String) iterator.next();
- monitor.subTask(key);
- Step step = steps.get(key);
- if (step instanceof ConditionalStep) {
- if (((ConditionalStep) step).condition()) {
- step = ((ConditionalStep) step).getThenStep();
- } else {
- step = ((ConditionalStep) step).getElseStep();
- }
- }
- if (step.validateExecution()) {
- IStatus execute = step.execute(monitor);
- if (!execute.isOK()) {
- EEFCodegenLauncher.getDefault().logError((Exception) execute.getException());
- return execute;
- }
- }
- monitor.worked(1);
- }
- return Status.OK_STATUS;
- }
-
-}
diff --git a/plugins/org.eclipse.emf.eef.codegen.launcher/src/org/eclipse/emf/eef/codegen/flow/var/WorkflowContext.java b/plugins/org.eclipse.emf.eef.codegen.launcher/src/org/eclipse/emf/eef/codegen/flow/var/WorkflowContext.java
deleted file mode 100755
index 03a9bc2ca..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.launcher/src/org/eclipse/emf/eef/codegen/flow/var/WorkflowContext.java
+++ /dev/null
@@ -1,75 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008, 2012 Obeo.
- * 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:
- * Obeo - initial API and implementation
- *******************************************************************************/
-package org.eclipse.emf.eef.codegen.flow.var;
-
-import java.util.HashMap;
-import java.util.Map;
-
-/**
- * @author Goulwen Le Fur
- *
- */
-public class WorkflowContext {
-
- private Map variables;
-
- /**
- * Default constructor.
- */
- public WorkflowContext() {
- variables = new HashMap();
- }
-
- /**
- * Returns the value of a variable.
- * @param name of the variable
- * @return value of the variable
- */
- public Object get(String name) {
- if (variables.get(name) != null) {
- return variables.get(name).getValue();
- }
- return null;
- }
-
- /**
- * Add a variable to the context.
- * @param var to add
- */
- public void add(WorkflowVariable var) {
- variables.put(var.getName(), var);
- }
-
- /**
- * Add a variable to the context.
- * @param name of the variable
- * @param value of the variable
- */
- public void add(String name, Object value) {
- WorkflowVariable var = new WorkflowVariable(name, value);
- variables.put(name, var);
- }
-
- /**
- * Set a value to a variable of context.
- * @param name of the variable
- * @param value of the variable
- */
- public void set(String name, Object value) {
- WorkflowVariable var = variables.get(name);
- if (var != null) {
- var.setValue(value);
- } else {
- var = new WorkflowVariable(name, value);
- variables.put(name, var);
- }
- }
-}
diff --git a/plugins/org.eclipse.emf.eef.codegen.launcher/src/org/eclipse/emf/eef/codegen/flow/var/WorkflowVariable.java b/plugins/org.eclipse.emf.eef.codegen.launcher/src/org/eclipse/emf/eef/codegen/flow/var/WorkflowVariable.java
deleted file mode 100755
index b33a09787..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.launcher/src/org/eclipse/emf/eef/codegen/flow/var/WorkflowVariable.java
+++ /dev/null
@@ -1,64 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008, 2012 Obeo.
- * 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:
- * Obeo - initial API and implementation
- *******************************************************************************/
-package org.eclipse.emf.eef.codegen.flow.var;
-
-/**
- * @author Goulwen Le Fur
- *
- */
-public class WorkflowVariable {
-
- private final String name;
- private Object value;
-
- /**
- * @param name of the variable
- */
- public WorkflowVariable(String name) {
- super();
- this.name = name;
- this.value = null;
- }
-
- /**
- * @param name of the variable
- * @param value of the variable
- */
- public WorkflowVariable(String name, Object value) {
- super();
- this.name = name;
- this.value = value;
- }
-
- /**
- * @return the name
- */
- public String getName() {
- return name;
- }
-
- /**
- * @return the value
- */
- public Object getValue() {
- return value;
- }
-
- /**
- * @param value the value to set
- */
- public void setValue(Object value) {
- this.value = value;
- }
-
-
-
-}
diff --git a/plugins/org.eclipse.emf.eef.codegen.launcher/src/org/eclipse/emf/eef/codegen/launcher/EEFCodegenLauncher.java b/plugins/org.eclipse.emf.eef.codegen.launcher/src/org/eclipse/emf/eef/codegen/launcher/EEFCodegenLauncher.java
deleted file mode 100644
index cd0f1b36e..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.launcher/src/org/eclipse/emf/eef/codegen/launcher/EEFCodegenLauncher.java
+++ /dev/null
@@ -1,72 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008, 2012 Obeo.
- * 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:
- * Obeo - initial API and implementation
- *******************************************************************************/
-package org.eclipse.emf.eef.codegen.launcher;
-
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.ui.plugin.AbstractUIPlugin;
-import org.osgi.framework.BundleContext;
-
-/**
- * The activator class controls the plug-in life cycle
- */
-public class EEFCodegenLauncher extends AbstractUIPlugin {
-
- // The plug-in ID
- public static final String PLUGIN_ID = "org.eclipse.emf.eef.codegen.launcher"; //$NON-NLS-1$
-
- // The shared instance
- private static EEFCodegenLauncher plugin;
-
- /**
- * The constructor
- */
- public EEFCodegenLauncher() {
- }
-
- public void logError(Exception e) {
- IStatus status = new Status(IStatus.ERROR, PLUGIN_ID, e.getMessage(), e);
- getLog().log(status);
- }
-
- public void logWarning(Exception e) {
- IStatus status = new Status(IStatus.WARNING, PLUGIN_ID, e.getMessage(), e);
- getLog().log(status);
- }
-
- /*
- * (non-Javadoc)
- * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
- */
- public void start(BundleContext context) throws Exception {
- super.start(context);
- plugin = this;
- }
-
- /*
- * (non-Javadoc)
- * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
- */
- public void stop(BundleContext context) throws Exception {
- plugin = null;
- super.stop(context);
- }
-
- /**
- * Returns the shared instance
- *
- * @return the shared instance
- */
- public static EEFCodegenLauncher getDefault() {
- return plugin;
- }
-
-}
diff --git a/plugins/org.eclipse.emf.eef.codegen.tests/.checkstyle b/plugins/org.eclipse.emf.eef.codegen.tests/.checkstyle
deleted file mode 100644
index 48589e9cb..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.tests/.checkstyle
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-
-
-
-
-
-
-
-
diff --git a/plugins/org.eclipse.emf.eef.codegen.tests/.classpath b/plugins/org.eclipse.emf.eef.codegen.tests/.classpath
deleted file mode 100644
index ed5ee00d9..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.tests/.classpath
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
-
-
-
-
-
-
diff --git a/plugins/org.eclipse.emf.eef.codegen.tests/.gitignore b/plugins/org.eclipse.emf.eef.codegen.tests/.gitignore
deleted file mode 100644
index d44cd35e0..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.tests/.gitignore
+++ /dev/null
@@ -1,2 +0,0 @@
-target
-bin
diff --git a/plugins/org.eclipse.emf.eef.codegen.tests/.project b/plugins/org.eclipse.emf.eef.codegen.tests/.project
deleted file mode 100644
index c4d02fdc3..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.tests/.project
+++ /dev/null
@@ -1,34 +0,0 @@
-
-
- org.eclipse.emf.eef.codegen.tests
-
-
-
-
-
- org.eclipse.jdt.core.javabuilder
-
-
-
-
- org.eclipse.pde.ManifestBuilder
-
-
-
-
- org.eclipse.pde.SchemaBuilder
-
-
-
-
- org.eclipse.acceleo.ide.ui.acceleoBuilder
-
-
-
-
-
- org.eclipse.acceleo.ide.ui.acceleoNature
- org.eclipse.pde.PluginNature
- org.eclipse.jdt.core.javanature
-
-
diff --git a/plugins/org.eclipse.emf.eef.codegen.tests/.settings/org.eclipse.jdt.core.prefs b/plugins/org.eclipse.emf.eef.codegen.tests/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index d1c0bf949..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.tests/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,6 +0,0 @@
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
-org.eclipse.jdt.core.compiler.compliance=1.5
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.source=1.5
diff --git a/plugins/org.eclipse.emf.eef.codegen.tests/META-INF/MANIFEST.MF b/plugins/org.eclipse.emf.eef.codegen.tests/META-INF/MANIFEST.MF
deleted file mode 100644
index 617a37075..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.tests/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,22 +0,0 @@
-Manifest-Version: 1.0
-Bundle-ManifestVersion: 2
-Bundle-Name: Acceleo Tests Module Runtime Plug-in
-Bundle-SymbolicName: org.eclipse.emf.eef.codegen.tests;singleton:=true
-Bundle-Version: 1.5.2.qualifier
-Bundle-Activator: org.eclipse.emf.eef.codegen.tests.Activator
-Bundle-Vendor: Eclipse Modeling Project
-Require-Bundle: org.eclipse.core.runtime,
- org.eclipse.ui,
- org.eclipse.core.resources,
- org.eclipse.emf.ecore,
- org.eclipse.emf.ecore.xmi,
- org.eclipse.ocl,
- org.eclipse.ocl.ecore,
- org.eclipse.acceleo.model,
- org.eclipse.acceleo.engine,
- org.eclipse.acceleo.parser;bundle-version="3.1.0",
- org.eclipse.emf.eef.eefgen,
- org.eclipse.emf.eef.codegen
-Bundle-RequiredExecutionEnvironment: J2SE-1.5
-Bundle-ActivationPolicy: lazy
-Export-Package: org.eclipse.emf.eef.codegen.tests.main.cases
diff --git a/plugins/org.eclipse.emf.eef.codegen.tests/about.html b/plugins/org.eclipse.emf.eef.codegen.tests/about.html
deleted file mode 100644
index f3a55ce5f..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.tests/about.html
+++ /dev/null
@@ -1,28 +0,0 @@
-
-
-
-
-About
-
-
-
About This Content
-
-
June 15, 2010
-
License
-
-
The Eclipse Foundation makes available all content in this plug-in ("Content"). Unless otherwise
-indicated below, the Content is provided to you under the terms and conditions of the
-Eclipse Public License Version 1.0 ("EPL"). A copy of the EPL is available
-at http://www.eclipse.org/legal/epl-v10.html.
-For purposes of the EPL, "Program" will mean the Content.
-
-
If you did not receive this Content directly from the Eclipse Foundation, the Content is
-being redistributed by another party ("Redistributor") and different terms and conditions may
-apply to your use of any object code in the Content. Check the Redistributor's license that was
-provided with the Content. If no such license exists, contact the Redistributor. Unless otherwise
-indicated below, the terms and conditions of the EPL still apply to any source code in the Content
-and such source code may be obtained at http://www.eclipse.org.
-
-
-
\ No newline at end of file
diff --git a/plugins/org.eclipse.emf.eef.codegen.tests/build.acceleo b/plugins/org.eclipse.emf.eef.codegen.tests/build.acceleo
deleted file mode 100644
index ebb8cd827..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.tests/build.acceleo
+++ /dev/null
@@ -1,26 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/plugins/org.eclipse.emf.eef.codegen.tests/build.properties b/plugins/org.eclipse.emf.eef.codegen.tests/build.properties
deleted file mode 100644
index 7d729a796..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.tests/build.properties
+++ /dev/null
@@ -1,20 +0,0 @@
-###############################################################################
-# Copyright (c) 2008, 2010 Obeo.
-# 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:
-# Obeo - initial API and implementation
-###############################################################################
-source.. = src/,\
- src-custom/,\
- src-build/
-output.. = bin/
-bin.includes = META-INF/,\
- .,\
- plugin.xml,\
- about.html
-customBuildCallbacks = build.acceleo
-src.includes = about.html
diff --git a/plugins/org.eclipse.emf.eef.codegen.tests/plugin.xml b/plugins/org.eclipse.emf.eef.codegen.tests/plugin.xml
deleted file mode 100644
index 2ded4a99e..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.tests/plugin.xml
+++ /dev/null
@@ -1,25 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/plugins/org.eclipse.emf.eef.codegen.tests/pom.xml b/plugins/org.eclipse.emf.eef.codegen.tests/pom.xml
deleted file mode 100644
index dd685092e..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.tests/pom.xml
+++ /dev/null
@@ -1,60 +0,0 @@
-
-
-
- 4.0.0
-
-
- org.eclipse.emf
- org.eclipse.emf.eef.releng.parent
- ../../releng/org.eclipse.emf.eef.releng.parent
- 1.1.0-SNAPSHOT
-
-
- org.eclipse.emf
- org.eclipse.emf.eef.codegen.tests
- 1.1.0.qualifier
- eclipse-plugin
-
- EEF Tests Codegen Plug-in
-
-
-
-
- org.codehaus.mojo
- exec-maven-plugin
- 1.1.1
-
-
- compile
-
- java
-
-
- org.eclipse.emf.eef.codegen.tests.EEFCodegenTestsCompiler
-
- ${basedir}/src/
- ${basedir}/target/classes
- true
- ${basedir}/../org.eclipse.emf.eef.codegen/target/classes
-
-
-
-
-
-
- org.eclipse.tycho
- tycho-source-plugin
-
-
-
-
diff --git a/plugins/org.eclipse.emf.eef.codegen.tests/src-build/org/eclipse/emf/eef/codegen/tests/EEFCodegenTestsCompiler.java b/plugins/org.eclipse.emf.eef.codegen.tests/src-build/org/eclipse/emf/eef/codegen/tests/EEFCodegenTestsCompiler.java
deleted file mode 100644
index 746195db1..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.tests/src-build/org/eclipse/emf/eef/codegen/tests/EEFCodegenTestsCompiler.java
+++ /dev/null
@@ -1,166 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2011 Obeo.
- * 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:
- * Obeo - initial API and implementation
- *******************************************************************************/
-package org.eclipse.emf.eef.codegen.tests;
-
-import java.io.File;
-import java.util.ArrayList;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Map;
-
-import org.eclipse.acceleo.common.IAcceleoConstants;
-import org.eclipse.acceleo.parser.compiler.AbstractAcceleoCompiler;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.emf.common.util.BasicMonitor;
-import org.eclipse.emf.common.util.Monitor;
-import org.eclipse.emf.common.util.URI;
-
-/**
- * The Acceleo Standalone compiler.
- *
- * @author Stephane Bouchet
- * @since 1.1
- */
-public class EEFCodegenTestsCompiler extends AbstractAcceleoCompiler {
-
- /**
- * The entry point of the compilation.
- *
- * @param args
- * The arguments used in the compilation: the source folder, the output folder, a boolean
- * indicating if we should use binary resource serialization and finally the dependencies of
- * the project.
- */
- public static void main(String[] args) {
- if (args.length < 3) {
- throw new IllegalArgumentException("Missing parameters"); //$NON-NLS-1$
- }
- EEFCodegenTestsCompiler acceleoCompiler = new EEFCodegenTestsCompiler();
- acceleoCompiler.setSourceFolder(args[0]);
- acceleoCompiler.setOutputFolder(args[1]);
- acceleoCompiler.setBinaryResource(Boolean.valueOf(args[2]).booleanValue());
- if (args.length == 4 && args[3] != null && !"".equals(args[3])) { //$NON-NLS-1$
- acceleoCompiler.setDependencies(args[3]);
- }
- acceleoCompiler.doCompile(new BasicMonitor());
- }
-
- /**
- * Launches the compilation of the mtl files in the generator.
- *
- * @see org.eclipse.acceleo.parser.compiler.AbstractAcceleoCompiler#doCompile(org.eclipse.emf.common.util.Monitor)
- */
- @Override
- public void doCompile(Monitor monitor) {
- super.doCompile(monitor);
- }
-
- /**
- * Registers the packages of the metamodels used in the generator.
- *
- * @see org.eclipse.acceleo.parser.compiler.AbstractAcceleoCompiler#registerPackages()
- */
- @Override
- protected void registerPackages() {
- super.registerPackages();
- org.eclipse.emf.ecore.EPackage.Registry.INSTANCE.put(
- org.eclipse.emf.eef.components.ComponentsPackage.eINSTANCE.getNsURI(),
- org.eclipse.emf.eef.components.ComponentsPackage.eINSTANCE);
- org.eclipse.emf.ecore.EPackage.Registry.INSTANCE.put(
- org.eclipse.emf.eef.mapping.MappingPackage.eINSTANCE.getNsURI(),
- org.eclipse.emf.eef.mapping.MappingPackage.eINSTANCE);
- org.eclipse.emf.ecore.EPackage.Registry.INSTANCE.put(
- org.eclipse.emf.eef.mapping.navigation.NavigationPackage.eINSTANCE.getNsURI(),
- org.eclipse.emf.eef.mapping.navigation.NavigationPackage.eINSTANCE);
- org.eclipse.emf.ecore.EPackage.Registry.INSTANCE.put(
- org.eclipse.emf.eef.mapping.filters.FiltersPackage.eINSTANCE.getNsURI(),
- org.eclipse.emf.eef.mapping.filters.FiltersPackage.eINSTANCE);
- org.eclipse.emf.ecore.EPackage.Registry.INSTANCE.put(
- org.eclipse.emf.ecore.EcorePackage.eINSTANCE.getNsURI(),
- org.eclipse.emf.ecore.EcorePackage.eINSTANCE);
- org.eclipse.emf.ecore.EPackage.Registry.INSTANCE.put(
- org.eclipse.emf.eef.views.ViewsPackage.eINSTANCE.getNsURI(),
- org.eclipse.emf.eef.views.ViewsPackage.eINSTANCE);
- org.eclipse.emf.ecore.EPackage.Registry.INSTANCE.put(
- org.eclipse.emf.eef.toolkits.ToolkitsPackage.eINSTANCE.getNsURI(),
- org.eclipse.emf.eef.toolkits.ToolkitsPackage.eINSTANCE);
- org.eclipse.emf.ecore.EPackage.Registry.INSTANCE.put(
- org.eclipse.emf.eef.EEFGen.EEFGenPackage.eINSTANCE.getNsURI(),
- org.eclipse.emf.eef.EEFGen.EEFGenPackage.eINSTANCE);
- }
-
- /**
- * Registers the resource factories.
- *
- * @see org.eclipse.acceleo.parser.compiler.AbstractAcceleoCompiler#registerResourceFactories()
- */
- @Override
- protected void registerResourceFactories() {
- super.registerResourceFactories();
- /*
- * If you want to add other resource factories, for example if your metamodel uses a specific
- * serialization:
- * org.eclipse.emf.ecore.resource.Resource.Factory.Registry.getExtensionToFactoryMap().put
- * (UMLResource.FILE_EXTENSION, UMLResource.Factory.INSTANCE);
- */
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.acceleo.parser.compiler.AbstractAcceleoCompiler#computeDependencies(java.util.List,
- * java.util.Map)
- */
- protected void computeDependencies(List dependenciesURIs, Map mapURIs) {
- // USED TO FIX COMPILER WITH TYCHO
- Iterator identifiersIt = dependenciesIDs.iterator();
- for (Iterator dependenciesIt = dependencies.iterator(); dependenciesIt.hasNext()
- && identifiersIt.hasNext();) {
- File requiredFolder = dependenciesIt.next();
- String identifier = identifiersIt.next();
- if (requiredFolder != null && requiredFolder.exists() && requiredFolder.isDirectory()) {
- List emtlFiles = new ArrayList();
- members(emtlFiles, requiredFolder, IAcceleoConstants.EMTL_FILE_EXTENSION);
- for (File emtlFile : emtlFiles) {
- String requiredFolderAbsolutePath = requiredFolder.getAbsolutePath();
- if (requiredFolderAbsolutePath.endsWith("target/classes")) {
- // using tycho
- String[] splited = requiredFolderAbsolutePath.split("\\/");
- StringBuffer buf = new StringBuffer(requiredFolderAbsolutePath.length());
- for (int i = 0; i < splited.length - 3; i++) {
- buf.append(splited[i]);
- buf.append("/");
- }
- requiredFolderAbsolutePath = buf.toString();
- String emtlAbsolutePath = emtlFile.getAbsolutePath();
- URI emtlFileURI = URI.createFileURI(emtlAbsolutePath);
- dependenciesURIs.add(emtlFileURI);
- String emtlModifiedPath = emtlAbsolutePath.replaceAll("target\\/|classes\\/", "");
- IPath relativePath = new Path(emtlModifiedPath.substring(requiredFolderAbsolutePath
- .length()));
- URI relativeURI = URI.createPlatformPluginURI(relativePath.toString(), false);
- mapURIs.put(emtlFileURI, relativeURI);
- } else {
- // normal behavior
- String emtlAbsolutePath = emtlFile.getAbsolutePath();
- URI emtlFileURI = URI.createFileURI(emtlAbsolutePath);
- dependenciesURIs.add(emtlFileURI);
- IPath relativePath = new Path(identifier).append(emtlAbsolutePath
- .substring(requiredFolderAbsolutePath.length()));
- mapURIs.put(emtlFileURI, URI.createPlatformPluginURI(relativePath.toString(), false));
- }
- }
- }
- }
- }
-}
-
diff --git a/plugins/org.eclipse.emf.eef.codegen.tests/src-custom/org/eclipse/emf/eef/tests/codegen/core/launcher/ComponentPropertiesTestsGeneratorLauncher.java b/plugins/org.eclipse.emf.eef.codegen.tests/src-custom/org/eclipse/emf/eef/tests/codegen/core/launcher/ComponentPropertiesTestsGeneratorLauncher.java
deleted file mode 100644
index dc1dcface..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.tests/src-custom/org/eclipse/emf/eef/tests/codegen/core/launcher/ComponentPropertiesTestsGeneratorLauncher.java
+++ /dev/null
@@ -1,87 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008-2011 Obeo.
- * 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:
- * Obeo - initial API and implementation
- *******************************************************************************/
-package org.eclipse.emf.eef.tests.codegen.core.launcher;
-
-import java.io.File;
-import java.io.FileNotFoundException;
-import java.io.IOException;
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.core.resources.IContainer;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.emf.common.util.BasicMonitor;
-import org.eclipse.emf.eef.EEFGen.EEFGenModel;
-import org.eclipse.emf.eef.EEFGen.GenEditionContext;
-import org.eclipse.emf.eef.codegen.EEFCodegenPlugin;
-import org.eclipse.emf.eef.codegen.core.launcher.AbstractPropertiesGeneratorLauncher;
-import org.eclipse.emf.eef.components.PropertiesEditionContext;
-import org.eclipse.emf.eef.tests.codegen.main.cases.ComponentPropertiesTests;
-
-/**
- * Extension for generating PropertiesSection set up for GMF1 modelers
- *
- * @author Goulwen Le Fur
- */
-public class ComponentPropertiesTestsGeneratorLauncher extends AbstractPropertiesGeneratorLauncher {
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.emf.eef.codegen.core.launcher.IPropertiesGeneratorLauncher#doGenerate(org.eclipse.emf.eef.EEFGen.EEFGenModel,
- * java.io.File, org.eclipse.core.runtime.IProgressMonitor)
- */
- public void doGenerate(EEFGenModel eefGenModel, File targetFolder, IProgressMonitor monitor) {
- List arguments = new ArrayList();
- for (GenEditionContext genEditionContext : eefGenModel.getEditionContexts()) {
- if (genEditionContext.isGenerateJunitTestCases()) {
- try {
- PropertiesEditionContext propertiesEditionContext = genEditionContext.getPropertiesEditionContext();
- monitor.subTask("Generating JUnits TestCases");
- IContainer testGenContainer = getTestGenContainer(eefGenModel);
- if (testGenContainer != null && !testGenContainer.exists()) {
- EEFCodegenPlugin.getDefault().logWarning(new FileNotFoundException("Cannot find junit test project named \"" + testGenContainer.getProject().getName() + "\""));
- return;
- }
- ComponentPropertiesTests gen = new ComponentPropertiesTests(propertiesEditionContext, testGenContainer.getLocation().toFile(), arguments);
- gen.doGenerate(BasicMonitor.toMonitor(monitor));
- targetContainer.add(testGenContainer);
- monitor.worked(1);
- } catch (IOException e) {
- EEFCodegenPlugin.getDefault().logError(e);
- }
- }
- }
- }
-
- /**
- * Returns the container that the EEFGenModel use as generation directory
- *
- * @param eefGenModel
- * the eefGenModel
- * @return the generation directory
- * @throws IOException
- * an error occurred during container creation
- */
- public IContainer getTestGenContainer(EEFGenModel eefGenModel) throws IOException {
- if (eefGenModel != null) {
- if (eefGenModel.getGenDirectory() != null) {
- final IContainer target = ResourcesPlugin.getWorkspace().getRoot()
- .getFolder(new Path(eefGenModel.getTestsGenDirectory()));
- return target;
- }
- }
- return null;
- }
-
-}
diff --git a/plugins/org.eclipse.emf.eef.codegen.tests/src-custom/org/eclipse/emf/eef/tests/codegen/core/launcher/ComponentTestsGeneratorLauncher.java b/plugins/org.eclipse.emf.eef.codegen.tests/src-custom/org/eclipse/emf/eef/tests/codegen/core/launcher/ComponentTestsGeneratorLauncher.java
deleted file mode 100644
index 0e72ddc5b..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.tests/src-custom/org/eclipse/emf/eef/tests/codegen/core/launcher/ComponentTestsGeneratorLauncher.java
+++ /dev/null
@@ -1,91 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008-2011 Obeo.
- * 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:
- * Obeo - initial API and implementation
- *******************************************************************************/
-package org.eclipse.emf.eef.tests.codegen.core.launcher;
-
-import java.io.File;
-import java.io.FileNotFoundException;
-import java.io.IOException;
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.core.resources.IContainer;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.emf.common.util.BasicMonitor;
-import org.eclipse.emf.eef.EEFGen.EEFGenModel;
-import org.eclipse.emf.eef.EEFGen.GenEditionContext;
-import org.eclipse.emf.eef.codegen.EEFCodegenPlugin;
-import org.eclipse.emf.eef.codegen.core.launcher.AbstractPropertiesGeneratorLauncher;
-import org.eclipse.emf.eef.components.PropertiesEditionContext;
-import org.eclipse.emf.eef.tests.codegen.main.cases.ComponentTests;
-
-/**
- * Extension for generating PropertiesSection set up for GMF1 modelers
- *
- * @author Goulwen Le Fur
- */
-public class ComponentTestsGeneratorLauncher extends AbstractPropertiesGeneratorLauncher {
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.emf.eef.codegen.core.launcher.IPropertiesGeneratorLauncher#doGenerate(org.eclipse.emf.eef.EEFGen.EEFGenModel,
- * java.io.File, org.eclipse.core.runtime.IProgressMonitor)
- */
- public void doGenerate(EEFGenModel eefGenModel, File targetFolder, IProgressMonitor monitor) {
- List arguments = new ArrayList();
- for (GenEditionContext genEditionContext : eefGenModel.getEditionContexts()) {
- if (genEditionContext.isGenerateJunitTestCases()) {
- try {
- PropertiesEditionContext propertiesEditionContext = genEditionContext
- .getPropertiesEditionContext();
- monitor.subTask("Generating JUnits TestCases");
- IContainer testGenContainer = getTestGenContainer(eefGenModel);
- if (testGenContainer != null && !testGenContainer.exists()) {
- EEFCodegenPlugin.getDefault().logWarning(
- new FileNotFoundException("Cannot find junit test project named \""
- + testGenContainer.getProject().getName() + "\""));
- return;
- }
- ComponentTests gen = new ComponentTests(propertiesEditionContext, testGenContainer
- .getLocation().toFile(), arguments);
- gen.doGenerate(BasicMonitor.toMonitor(monitor));
- targetContainer.add(testGenContainer);
- monitor.worked(1);
- } catch (IOException e) {
- EEFCodegenPlugin.getDefault().logError(e);
- }
- }
- }
- }
-
- /**
- * Returns the container that the EEFGenModel use as generation directory
- *
- * @param eefGenModel
- * the eefGenModel
- * @return the generation directory
- * @throws IOException
- * an error occurred during container creation
- */
- public IContainer getTestGenContainer(EEFGenModel eefGenModel) throws IOException {
- if (eefGenModel != null) {
- if (eefGenModel.getGenDirectory() != null) {
- final IContainer target = ResourcesPlugin.getWorkspace().getRoot()
- .getFolder(new Path(eefGenModel.getTestsGenDirectory()));
- return target;
- }
- }
- return null;
- }
-
-}
diff --git a/plugins/org.eclipse.emf.eef.codegen.tests/src/org/eclipse/emf/eef/tests/codegen/Activator.java b/plugins/org.eclipse.emf.eef.codegen.tests/src/org/eclipse/emf/eef/tests/codegen/Activator.java
deleted file mode 100644
index b2470ddc3..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.tests/src/org/eclipse/emf/eef/tests/codegen/Activator.java
+++ /dev/null
@@ -1,66 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008, 2009 Obeo.
- * 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:
- * Obeo - initial API and implementation
- *******************************************************************************/
-package org.eclipse.emf.eef.tests.codegen;
-
-import org.eclipse.core.runtime.Plugin;
-import org.osgi.framework.BundleContext;
-
-/**
- * The activator class controls the plug-in life cycle.
- *
- * @author Jonathan Musset
- */
-public class Activator extends Plugin {
-
- /**
- * The plug-in ID.
- */
- public static final String PLUGIN_ID = "org.eclipse.emf.eef.tests.codegen";
-
- /**
- * The shared instance.
- */
- private static Activator plugin;
-
- /**
- * The constructor.
- */
- public Activator() {
- }
-
- /**{@inheritDoc}
- *
- * @see org.eclipse.core.runtime.Plugin#start(org.osgi.framework.BundleContext)
- */
- public void start(BundleContext context) throws Exception {
- super.start(context);
- plugin = this;
- }
-
- /**{@inheritDoc}
- *
- * @see org.eclipse.core.runtime.Plugin#stop(org.osgi.framework.BundleContext)
- */
- public void stop(BundleContext context) throws Exception {
- plugin = null;
- super.stop(context);
- }
-
- /**
- * Returns the shared instance.
- *
- * @return the shared instance
- */
- public static Activator getDefault() {
- return plugin;
- }
-
-}
diff --git a/plugins/org.eclipse.emf.eef.codegen.tests/src/org/eclipse/emf/eef/tests/codegen/main/cases/ComponentPropertiesTests.java b/plugins/org.eclipse.emf.eef.codegen.tests/src/org/eclipse/emf/eef/tests/codegen/main/cases/ComponentPropertiesTests.java
deleted file mode 100644
index c33db23ad..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.tests/src/org/eclipse/emf/eef/tests/codegen/main/cases/ComponentPropertiesTests.java
+++ /dev/null
@@ -1,420 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008, 2011 Obeo.
- * 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:
- * Obeo - initial API and implementation
- *******************************************************************************/
-package org.eclipse.emf.eef.tests.codegen.main.cases;
-
-import java.io.File;
-import java.io.IOException;
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.acceleo.engine.event.IAcceleoTextGenerationListener;
-import org.eclipse.acceleo.engine.generation.strategy.IAcceleoGenerationStrategy;
-import org.eclipse.acceleo.engine.service.AbstractAcceleoGenerator;
-import org.eclipse.emf.common.util.BasicMonitor;
-import org.eclipse.emf.common.util.Monitor;
-import org.eclipse.emf.common.util.URI;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.resource.ResourceSet;
-
-/**
- * Entry point of the 'ComponentPropertiesTests' generation module.
- *
- * @author Nathalie Lepine
- * @generated
- */
-public class ComponentPropertiesTests extends AbstractAcceleoGenerator {
- /**
- * The name of the module.
- *
- * @generated
- */
- public static final String MODULE_FILE_NAME = "/org/eclipse/emf/eef/tests/codegen/main/cases/ComponentPropertiesTests";
-
- /**
- * The name of the templates that are to be generated.
- *
- * @generated
- */
- public static final String[] TEMPLATE_NAMES = { "PropertySection" };
-
- /**
- * The list of properties files from the launch parameters (Launch configuration).
- *
- * @generated
- */
- private List propertiesFiles = new ArrayList();
-
- /**
- * Allows the public constructor to be used. Note that a generator created
- * this way cannot be used to launch generations before one of
- * {@link #initialize(EObject, File, List)} or
- * {@link #initialize(URI, File, List)} is called.
- *
- * The main reason for this constructor is to allow clients of this
- * generation to call it from another Java file, as it allows for the
- * retrieval of {@link #getProperties()} and
- * {@link #getGenerationListeners()}.
- *
- *
- * @generated
- */
- public ComponentPropertiesTests() {
- // Empty implementation
- }
-
- /**
- * This allows clients to instantiates a generator with all required information.
- *
- * @param modelURI
- * URI where the model on which this generator will be used is located.
- * @param targetFolder
- * This will be used as the output folder for this generation : it will be the base path
- * against which all file block URLs will be resolved.
- * @param arguments
- * If the template which will be called requires more than one argument taken from the model,
- * pass them here.
- * @throws IOException
- * This can be thrown in three scenarios : the module cannot be found, it cannot be loaded, or
- * the model cannot be loaded.
- * @generated
- */
- public ComponentPropertiesTests(URI modelURI, File targetFolder,
- List extends Object> arguments) throws IOException {
- initialize(modelURI, targetFolder, arguments);
- }
-
- /**
- * This allows clients to instantiates a generator with all required information.
- *
- * @param model
- * We'll iterate over the content of this element to find Objects matching the first parameter
- * of the template we need to call.
- * @param targetFolder
- * This will be used as the output folder for this generation : it will be the base path
- * against which all file block URLs will be resolved.
- * @param arguments
- * If the template which will be called requires more than one argument taken from the model,
- * pass them here.
- * @throws IOException
- * This can be thrown in two scenarios : the module cannot be found, or it cannot be loaded.
- * @generated
- */
- public ComponentPropertiesTests(EObject model, File targetFolder,
- List extends Object> arguments) throws IOException {
- initialize(model, targetFolder, arguments);
- }
-
- /**
- * This can be used to launch the generation from a standalone application.
- *
- * @param args
- * Arguments of the generation.
- * @generated
- */
- public static void main(String[] args) {
- try {
- if (args.length < 2) {
- System.out.println("Arguments not valid : {model, folder}.");
- } else {
- URI modelURI = URI.createFileURI(args[0]);
- File folder = new File(args[1]);
-
- List arguments = new ArrayList();
-
- /*
- * If you want to change the content of this method, do NOT forget to change the "@generated"
- * tag in the Javadoc of this method to "@generated NOT". Without this new tag, any compilation
- * of the Acceleo module with the main template that has caused the creation of this class will
- * revert your modifications.
- */
-
- /*
- * Add in this list all the arguments used by the starting point of the generation
- * If your main template is called on an element of your model and a String, you can
- * add in "arguments" this "String" attribute.
- */
-
- ComponentPropertiesTests generator = new ComponentPropertiesTests(modelURI, folder, arguments);
-
- /*
- * Add the properties from the launch arguments.
- * If you want to programmatically add new properties, add them in "propertiesFiles"
- * You can add the absolute path of a properties files, or even a project relative path.
- * If you want to add another "protocol" for your properties files, please override
- * "getPropertiesLoaderService(AcceleoService)" in order to return a new property loader.
- * The behavior of the properties loader service is explained in the Acceleo documentation
- * (Help -> Help Contents).
- */
-
- for (int i = 2; i < args.length; i++) {
- generator.addPropertiesFile(args[i]);
- }
-
- generator.doGenerate(new BasicMonitor());
- }
- } catch (IOException e) {
- e.printStackTrace();
- }
- }
-
- /**
- * Launches the generation described by this instance.
- *
- * @param monitor
- * This will be used to display progress information to the user.
- * @throws IOException
- * This will be thrown if any of the output files cannot be saved to disk.
- * @generated
- */
- @Override
- public void doGenerate(Monitor monitor) throws IOException {
- /*
- * TODO if you wish to change the generation as a whole, override this. The default behavior should
- * be sufficient in most cases. If you want to change the content of this method, do NOT forget to
- * change the "@generated" tag in the Javadoc of this method to "@generated NOT". Without this new tag,
- * any compilation of the Acceleo module with the main template that has caused the creation of this
- * class will revert your modifications. If you encounter a problem with an unresolved proxy during the
- * generation, you can remove the comments in the following instructions to check for problems. Please
- * note that those instructions may have a significant impact on the performances.
- */
-
- //org.eclipse.emf.ecore.util.EcoreUtil.resolveAll(model);
-
- /*
- * If you want to check for potential errors in your models before the launch of the generation, you
- * use the code below.
- */
-
- //if (model != null && model.eResource() != null) {
- // List errors = model.eResource().getErrors();
- // for (org.eclipse.emf.ecore.resource.Resource.Diagnostic diagnostic : errors) {
- // System.err.println(diagnostic.toString());
- // }
- //}
-
- super.doGenerate(monitor);
- }
-
- /**
- * If this generator needs to listen to text generation events, listeners can be returned from here.
- *
- * @return List of listeners that are to be notified when text is generated through this launch.
- * @generated
- */
- @Override
- public List getGenerationListeners() {
- List listeners = super.getGenerationListeners();
- /*
- * TODO if you need to listen to generation event, add listeners to the list here. If you want to change
- * the content of this method, do NOT forget to change the "@generated" tag in the Javadoc of this method
- * to "@generated NOT". Without this new tag, any compilation of the Acceleo module with the main template
- * that has caused the creation of this class will revert your modifications.
- */
- return listeners;
- }
-
- /**
- * If you need to change the way files are generated, this is your entry point.
- *
- * The default is {@link org.eclipse.acceleo.engine.generation.strategy.DefaultStrategy}; it generates
- * files on the fly. If you only need to preview the results, return a new
- * {@link org.eclipse.acceleo.engine.generation.strategy.PreviewStrategy}. Both of these aren't aware of
- * the running Eclipse and can be used standalone.
- *
- *
- * If you need the file generation to be aware of the workspace (A typical example is when you wanna
- * override files that are under clear case or any other VCS that could forbid the overriding), then
- * return a new {@link org.eclipse.acceleo.engine.generation.strategy.WorkspaceAwareStrategy}.
- * Note, however, that this cannot be used standalone.
- *
- *
- * All three of these default strategies support merging through JMerge.
- *
- *
- * @return The generation strategy that is to be used for generations launched through this launcher.
- * @generated
- */
- @Override
- public IAcceleoGenerationStrategy getGenerationStrategy() {
- return super.getGenerationStrategy();
- }
-
- /**
- * This will be called in order to find and load the module that will be launched through this launcher.
- * We expect this name not to contain file extension, and the module to be located beside the launcher.
- *
- * @return The name of the module that is to be launched.
- * @generated
- */
- @Override
- public String getModuleName() {
- return MODULE_FILE_NAME;
- }
-
- /**
- * If the module(s) called by this launcher require properties files, return their qualified path from
- * here.Take note that the first added properties files will take precedence over subsequent ones if they
- * contain conflicting keys.
- *
- * Properties need to be in source folders, the path that we expect to get as a result of this call are of
- * the form <package>.<properties file name without extension>. For example, if you have a file
- * named "messages.properties" in package "org.eclipse.acceleo.sample", the path that needs be returned by
- * a call to {@link #getProperties()} is "org.eclipse.acceleo.sample.messages".
- *
- *
- * @return The list of properties file we need to add to the generation context.
- * @see java.util.ResourceBundle#getBundle(String)
- * @generated
- */
- @Override
- public List getProperties() {
- /*
- * If you want to change the content of this method, do NOT forget to change the "@generated"
- * tag in the Javadoc of this method to "@generated NOT". Without this new tag, any compilation
- * of the Acceleo module with the main template that has caused the creation of this class will
- * revert your modifications.
- */
-
- /*
- * TODO if your generation module requires access to properties files, add their qualified path to the list here.
- *
- * Properties files can be located in an Eclipse plug-in or in the file system (all Acceleo projects are Eclipse
- * plug-in). In order to use properties files located in an Eclipse plugin, you need to add the path of the properties
- * files to the "propertiesFiles" list:
- *
- * final String prefix = "platform:/plugin/";
- * final String pluginName = "org.eclipse.acceleo.module.sample";
- * final String packagePath = "/org/eclipse/acceleo/module/sample/properties/";
- * final String fileName = "default.properties";
- * propertiesFiles.add(prefix + pluginName + packagePath + fileName);
- *
- * With this mechanism, you can load properties files from your plugin or from another plugin.
- *
- * You may want to load properties files from the file system, for that you need to add the absolute path of the file:
- *
- * propertiesFiles.add("C:\Users\MyName\MyFile.properties");
- *
- * If you want to let your users add properties files located in the same folder as the model:
- *
- * if (EMFPlugin.IS_ECLIPSE_RUNNING && model != null && model.eResource() != null) {
- * propertiesFiles.addAll(AcceleoEngineUtils.getPropertiesFilesNearModel(model.eResource()));
- * }
- *
- * To learn more about Properties Files, have a look at the Acceleo documentation (Help -> Help Contents).
- */
- return propertiesFiles;
- }
-
- /**
- * Adds a properties file in the list of properties files.
- *
- * @param propertiesFile
- * The properties file to add.
- * @generated
- * @since 3.1
- */
- @Override
- public void addPropertiesFile(String propertiesFile) {
- this.propertiesFiles.add(propertiesFile);
- }
-
- /**
- * This will be used to get the list of templates that are to be launched by this launcher.
- *
- * @return The list of templates to call on the module {@link #getModuleName()}.
- * @generated
- */
- @Override
- public String[] getTemplateNames() {
- return TEMPLATE_NAMES;
- }
-
- /**
- * This can be used to update the resource set's package registry with all needed EPackages.
- *
- * @param resourceSet
- * The resource set which registry has to be updated.
- * @generated
- */
- @Override
- public void registerPackages(ResourceSet resourceSet) {
- super.registerPackages(resourceSet);
- if (!isInWorkspace(org.eclipse.emf.ecore.EcorePackage.class)) {
- resourceSet.getPackageRegistry().put(org.eclipse.emf.ecore.EcorePackage.eINSTANCE.getNsURI(), org.eclipse.emf.ecore.EcorePackage.eINSTANCE);
- }
-
- /*
- * If you want to change the content of this method, do NOT forget to change the "@generated"
- * tag in the Javadoc of this method to "@generated NOT". Without this new tag, any compilation
- * of the Acceleo module with the main template that has caused the creation of this class will
- * revert your modifications.
- */
-
- /*
- * If you need additional package registrations, you can register them here. The following line
- * (in comment) is an example of the package registration for UML.
- *
- * You can use the method "isInWorkspace(Class c)" to check if the package that you are about to
- * register is in the workspace.
- *
- * To register a package properly, please follow the following conventions:
- *
- * If the package is located in another plug-in, already installed in Eclipse. The following content should
- * have been generated at the beginning of this method. Do not register the package using this mechanism if
- * the metamodel is located in the workspace.
- *
- * if (!isInWorkspace(UMLPackage.class)) {
- * // The normal package registration if your metamodel is in a plugin.
- * resourceSet.getPackageRegistry().put(UMLPackage.eNS_URI, UMLPackage.eINSTANCE);
- * }
- *
- * If the package is located in another project in your workspace, the plugin containing the package has not
- * been register by EMF and Acceleo should register it automatically. If you want to use the generator in
- * stand alone, the regular registration (seen a couple lines before) is needed.
- *
- * To learn more about Package Registration, have a look at the Acceleo documentation (Help -> Help Contents).
- */
- }
-
- /**
- * This can be used to update the resource set's resource factory registry with all needed factories.
- *
- * @param resourceSet
- * The resource set which registry has to be updated.
- * @generated
- */
- @Override
- public void registerResourceFactories(ResourceSet resourceSet) {
- super.registerResourceFactories(resourceSet);
- /*
- * If you want to change the content of this method, do NOT forget to change the "@generated"
- * tag in the Javadoc of this method to "@generated NOT". Without this new tag, any compilation
- * of the Acceleo module with the main template that has caused the creation of this class will
- * revert your modifications.
- */
-
- /*
- * TODO If you need additional resource factories registrations, you can register them here. the following line
- * (in comment) is an example of the resource factory registration for UML.
- *
- * If you want to use the generator in stand alone, the resource factory registration will be required.
- *
- * To learn more about the registration of Resource Factories, have a look at the Acceleo documentation (Help -> Help Contents).
- */
-
- // resourceSet.getResourceFactoryRegistry().getExtensionToFactoryMap().put(UMLResource.FILE_EXTENSION, UMLResource.Factory.INSTANCE);
- }
-
- @Override
- protected void postGenerate(ResourceSet rs) {
- // Don't unload resources
- }
-}
diff --git a/plugins/org.eclipse.emf.eef.codegen.tests/src/org/eclipse/emf/eef/tests/codegen/main/cases/ComponentPropertiesTests.mtl b/plugins/org.eclipse.emf.eef.codegen.tests/src/org/eclipse/emf/eef/tests/codegen/main/cases/ComponentPropertiesTests.mtl
deleted file mode 100644
index 12c6b6b2f..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.tests/src/org/eclipse/emf/eef/tests/codegen/main/cases/ComponentPropertiesTests.mtl
+++ /dev/null
@@ -1,112 +0,0 @@
-[comment
- *******************************************************************************
- * Copyright (c) 2008-2010 Obeo.
- * 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:
- * Obeo - initial API and implementation
- *******************************************************************************
- /]
-
-[module ComponentPropertiesTests('http://www.eclipse.org/emf/eef/components/1.0.0','http://www.eclipse.org/emf/eef/mapping/1.0.0', 'http://www.eclipse.org/emf/2002/Ecore', 'http://www.eclipse.org/emf/eef/views/1.0.0', 'http://www.eclipse.org/emf/eef/generation/1.0.0') extends ComponentCommonTests/]
-
-[import common /]
-[import naming /]
-[import testsNaming /]
-[import widgetTest /]
-
-[template public PropertySection(peContext : PropertiesEditionContext)]
-[comment @main /]
-[for (pec : PropertiesEditionComponent | peContext.eAllContents(PropertiesEditionComponent)) ? (pec.mustBeGenerated() and pec.testMustBeGenerated())]
- [for (view : View | pec.views) ? (view.explicit)]
-[file (pec.fullFilePath(), false)]
-[peContext.associatedGenModel().licenceText().trim()/]
-[packagePropertySection(pec)/]
-
-[headPropertySection(peContext, pec)/]
-[peContext.additionalImports()/]
-/**
- * TestCase for [pec.name/]
- * [peContext.associatedGenModel().authorText().trim()/]
- */
-public class [pec.propertyTestCase()/] extends SWTBotEEFTestCase {
-
-[testCasePropertySection(peContext, pec)/]
-[for (peElement : PropertiesEditionElement | pec.properties->select(oclIsKindOf(components::PropertiesEditionElement)).oclAsType(components::PropertiesEditionElement)) ? (pec.canGenerateTest(peElement) <> 'false')]
-[if (not peElement.isAbstractType())]
-[testAddPropertySection(pec, peElement)/]
-[if (peElement.canRemove())]
-[testRemovePropertySection(pec, peElement)/]
-[/if]
-[/if]
-[/for]
-[for (peElement : PropertiesEditionElement | pec.properties->select(oclIsKindOf(components::PropertiesEditionElement)).oclAsType(components::PropertiesEditionElement)) ? (pec.canGenerateTest(peElement) <> 'false')]
-[if (not peElement.isAbstractType())]
-[additionnalMethodsForWidgets(pec, peElement)/]
-[additionalMethodsPropertiesForTableComposition(pec, peElement)/]
-[/if]
-[/for]
-[additionalMethods()/]
-
-}
- [/file]
- [/for]
- [/for]
-[/template]
-
-[template public testAddPropertySection(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement)]
-[initializeExpectedModelPropertySection(pec, peElement)/]
-[commentTestPropertySection()/]
-[testEditPropertySection(pec, peElement)/]
-[editFeaturePropertySection(pec, peElement)/]
-[comparePropertySection(pec, peElement)/]
-[/template]
-
-[template public testRemovePropertySection(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement)]
-[initializeRemoveExpectedModelPropertySection(pec, peElement)/]
-[commentTestPropertySection()/]
-[testRemoveEditPropertySection(pec, peElement)/]
-[removeFeaturePropertySection(pec, peElement)/]
-[comparePropertySection(pec, peElement)/]
-[/template]
-
-[template public fullFilePath(pec : PropertiesEditionComponent)]
-[pec.model.completePackage().toPath()/]/tests/junit/properties/[pec.propertyTestCase()/].java
-[/template]
-
-[comment overrides this template if additional imports is needed/]
-[template public additionalImports(peContext : PropertiesEditionContext) overrides additionalImports]
-import org.eclipse.swtbot.swt.finder.widgets.SWTBotShell;
-[/template]
-
-[comment overrides this template if additional methods are needed/]
-[template public additionalMethods()]
-[/template]
-
-[template public packagePropertySection(pec : PropertiesEditionComponent)]
-package [pec.model.completePackage()/].tests.junit.properties;
-[/template]
-
-[template public editFeaturePropertySection(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement)]
- // Open the EEF properties view to edit the [pec.model.name/] element
- EObject firstInstanceOf = EEFTestsModelsUtils.getFirstInstanceOf(bot.getActiveResource(), [pec.model.name.toLowerFirst()/]MetaClass);
- if (firstInstanceOf == null)
- throw new InputModelInvalidException([pec.model.name.toLowerFirst()/]MetaClass.getName());
- SWTBotView propertiesView = bot.prepareLiveEditing(modelEditor, firstInstanceOf, [if (pec.involvedViews()->size() > 1)]"[peElement.views->first().owningView().viewKey(pec).toASCII().substituteAll(' ', '_')/]"[else]null[/if]);
-
- [pec.editPropertyFeature(peElement)/]
-[/template]
-
-[template public removeFeaturePropertySection(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement)]
- // Open the EEF properties view to edit the [pec.model.name/] element
- EObject firstInstanceOf = EEFTestsModelsUtils.getFirstInstanceOf(bot.getActiveResource(), [pec.model.name.toLowerFirst()/]MetaClass);
- if (firstInstanceOf == null)
- throw new InputModelInvalidException([pec.model.name.toLowerFirst()/]MetaClass.getName());
-
- SWTBotView propertiesView = bot.prepareLiveEditing(modelEditor, firstInstanceOf, [if (pec.involvedViews()->size() > 1)]"[peElement.views->first().owningView().viewKey(pec).toASCII().substituteAll(' ', '_')/]"[else]null[/if]);
-
- [pec.removePropertyFeature(peElement)/]
-[/template]
\ No newline at end of file
diff --git a/plugins/org.eclipse.emf.eef.codegen.tests/src/org/eclipse/emf/eef/tests/codegen/main/cases/ComponentTests.java b/plugins/org.eclipse.emf.eef.codegen.tests/src/org/eclipse/emf/eef/tests/codegen/main/cases/ComponentTests.java
deleted file mode 100644
index b302be241..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.tests/src/org/eclipse/emf/eef/tests/codegen/main/cases/ComponentTests.java
+++ /dev/null
@@ -1,420 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008, 2011 Obeo.
- * 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:
- * Obeo - initial API and implementation
- *******************************************************************************/
-package org.eclipse.emf.eef.tests.codegen.main.cases;
-
-import java.io.File;
-import java.io.IOException;
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.acceleo.engine.event.IAcceleoTextGenerationListener;
-import org.eclipse.acceleo.engine.generation.strategy.IAcceleoGenerationStrategy;
-import org.eclipse.acceleo.engine.service.AbstractAcceleoGenerator;
-import org.eclipse.emf.common.util.BasicMonitor;
-import org.eclipse.emf.common.util.Monitor;
-import org.eclipse.emf.common.util.URI;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.resource.ResourceSet;
-
-/**
- * Entry point of the 'ComponentTests' generation module.
- *
- * @author Nathalie Lepine
- * @generated
- */
-public class ComponentTests extends AbstractAcceleoGenerator {
- /**
- * The name of the module.
- *
- * @generated
- */
- public static final String MODULE_FILE_NAME = "/org/eclipse/emf/eef/tests/codegen/main/cases/ComponentTests";
-
- /**
- * The name of the templates that are to be generated.
- *
- * @generated
- */
- public static final String[] TEMPLATE_NAMES = { "PropertySection" };
-
- /**
- * The list of properties files from the launch parameters (Launch configuration).
- *
- * @generated
- */
- private List propertiesFiles = new ArrayList();
-
- /**
- * Allows the public constructor to be used. Note that a generator created
- * this way cannot be used to launch generations before one of
- * {@link #initialize(EObject, File, List)} or
- * {@link #initialize(URI, File, List)} is called.
- *
- * The main reason for this constructor is to allow clients of this
- * generation to call it from another Java file, as it allows for the
- * retrieval of {@link #getProperties()} and
- * {@link #getGenerationListeners()}.
- *
- *
- * @generated
- */
- public ComponentTests() {
- // Empty implementation
- }
-
- /**
- * This allows clients to instantiates a generator with all required information.
- *
- * @param modelURI
- * URI where the model on which this generator will be used is located.
- * @param targetFolder
- * This will be used as the output folder for this generation : it will be the base path
- * against which all file block URLs will be resolved.
- * @param arguments
- * If the template which will be called requires more than one argument taken from the model,
- * pass them here.
- * @throws IOException
- * This can be thrown in three scenarios : the module cannot be found, it cannot be loaded, or
- * the model cannot be loaded.
- * @generated
- */
- public ComponentTests(URI modelURI, File targetFolder,
- List extends Object> arguments) throws IOException {
- initialize(modelURI, targetFolder, arguments);
- }
-
- /**
- * This allows clients to instantiates a generator with all required information.
- *
- * @param model
- * We'll iterate over the content of this element to find Objects matching the first parameter
- * of the template we need to call.
- * @param targetFolder
- * This will be used as the output folder for this generation : it will be the base path
- * against which all file block URLs will be resolved.
- * @param arguments
- * If the template which will be called requires more than one argument taken from the model,
- * pass them here.
- * @throws IOException
- * This can be thrown in two scenarios : the module cannot be found, or it cannot be loaded.
- * @generated
- */
- public ComponentTests(EObject model, File targetFolder,
- List extends Object> arguments) throws IOException {
- initialize(model, targetFolder, arguments);
- }
-
- /**
- * This can be used to launch the generation from a standalone application.
- *
- * @param args
- * Arguments of the generation.
- * @generated
- */
- public static void main(String[] args) {
- try {
- if (args.length < 2) {
- System.out.println("Arguments not valid : {model, folder}.");
- } else {
- URI modelURI = URI.createFileURI(args[0]);
- File folder = new File(args[1]);
-
- List arguments = new ArrayList();
-
- /*
- * If you want to change the content of this method, do NOT forget to change the "@generated"
- * tag in the Javadoc of this method to "@generated NOT". Without this new tag, any compilation
- * of the Acceleo module with the main template that has caused the creation of this class will
- * revert your modifications.
- */
-
- /*
- * Add in this list all the arguments used by the starting point of the generation
- * If your main template is called on an element of your model and a String, you can
- * add in "arguments" this "String" attribute.
- */
-
- ComponentTests generator = new ComponentTests(modelURI, folder, arguments);
-
- /*
- * Add the properties from the launch arguments.
- * If you want to programmatically add new properties, add them in "propertiesFiles"
- * You can add the absolute path of a properties files, or even a project relative path.
- * If you want to add another "protocol" for your properties files, please override
- * "getPropertiesLoaderService(AcceleoService)" in order to return a new property loader.
- * The behavior of the properties loader service is explained in the Acceleo documentation
- * (Help -> Help Contents).
- */
-
- for (int i = 2; i < args.length; i++) {
- generator.addPropertiesFile(args[i]);
- }
-
- generator.doGenerate(new BasicMonitor());
- }
- } catch (IOException e) {
- e.printStackTrace();
- }
- }
-
- /**
- * Launches the generation described by this instance.
- *
- * @param monitor
- * This will be used to display progress information to the user.
- * @throws IOException
- * This will be thrown if any of the output files cannot be saved to disk.
- * @generated
- */
- @Override
- public void doGenerate(Monitor monitor) throws IOException {
- /*
- * TODO if you wish to change the generation as a whole, override this. The default behavior should
- * be sufficient in most cases. If you want to change the content of this method, do NOT forget to
- * change the "@generated" tag in the Javadoc of this method to "@generated NOT". Without this new tag,
- * any compilation of the Acceleo module with the main template that has caused the creation of this
- * class will revert your modifications. If you encounter a problem with an unresolved proxy during the
- * generation, you can remove the comments in the following instructions to check for problems. Please
- * note that those instructions may have a significant impact on the performances.
- */
-
- //org.eclipse.emf.ecore.util.EcoreUtil.resolveAll(model);
-
- /*
- * If you want to check for potential errors in your models before the launch of the generation, you
- * use the code below.
- */
-
- //if (model != null && model.eResource() != null) {
- // List errors = model.eResource().getErrors();
- // for (org.eclipse.emf.ecore.resource.Resource.Diagnostic diagnostic : errors) {
- // System.err.println(diagnostic.toString());
- // }
- //}
-
- super.doGenerate(monitor);
- }
-
- /**
- * If this generator needs to listen to text generation events, listeners can be returned from here.
- *
- * @return List of listeners that are to be notified when text is generated through this launch.
- * @generated
- */
- @Override
- public List getGenerationListeners() {
- List listeners = super.getGenerationListeners();
- /*
- * TODO if you need to listen to generation event, add listeners to the list here. If you want to change
- * the content of this method, do NOT forget to change the "@generated" tag in the Javadoc of this method
- * to "@generated NOT". Without this new tag, any compilation of the Acceleo module with the main template
- * that has caused the creation of this class will revert your modifications.
- */
- return listeners;
- }
-
- /**
- * If you need to change the way files are generated, this is your entry point.
- *
- * The default is {@link org.eclipse.acceleo.engine.generation.strategy.DefaultStrategy}; it generates
- * files on the fly. If you only need to preview the results, return a new
- * {@link org.eclipse.acceleo.engine.generation.strategy.PreviewStrategy}. Both of these aren't aware of
- * the running Eclipse and can be used standalone.
- *
- *
- * If you need the file generation to be aware of the workspace (A typical example is when you wanna
- * override files that are under clear case or any other VCS that could forbid the overriding), then
- * return a new {@link org.eclipse.acceleo.engine.generation.strategy.WorkspaceAwareStrategy}.
- * Note, however, that this cannot be used standalone.
- *
- *
- * All three of these default strategies support merging through JMerge.
- *
- *
- * @return The generation strategy that is to be used for generations launched through this launcher.
- * @generated
- */
- @Override
- public IAcceleoGenerationStrategy getGenerationStrategy() {
- return super.getGenerationStrategy();
- }
-
- /**
- * This will be called in order to find and load the module that will be launched through this launcher.
- * We expect this name not to contain file extension, and the module to be located beside the launcher.
- *
- * @return The name of the module that is to be launched.
- * @generated
- */
- @Override
- public String getModuleName() {
- return MODULE_FILE_NAME;
- }
-
- /**
- * If the module(s) called by this launcher require properties files, return their qualified path from
- * here.Take note that the first added properties files will take precedence over subsequent ones if they
- * contain conflicting keys.
- *
- * Properties need to be in source folders, the path that we expect to get as a result of this call are of
- * the form <package>.<properties file name without extension>. For example, if you have a file
- * named "messages.properties" in package "org.eclipse.acceleo.sample", the path that needs be returned by
- * a call to {@link #getProperties()} is "org.eclipse.acceleo.sample.messages".
- *
- *
- * @return The list of properties file we need to add to the generation context.
- * @see java.util.ResourceBundle#getBundle(String)
- * @generated
- */
- @Override
- public List getProperties() {
- /*
- * If you want to change the content of this method, do NOT forget to change the "@generated"
- * tag in the Javadoc of this method to "@generated NOT". Without this new tag, any compilation
- * of the Acceleo module with the main template that has caused the creation of this class will
- * revert your modifications.
- */
-
- /*
- * TODO if your generation module requires access to properties files, add their qualified path to the list here.
- *
- * Properties files can be located in an Eclipse plug-in or in the file system (all Acceleo projects are Eclipse
- * plug-in). In order to use properties files located in an Eclipse plugin, you need to add the path of the properties
- * files to the "propertiesFiles" list:
- *
- * final String prefix = "platform:/plugin/";
- * final String pluginName = "org.eclipse.acceleo.module.sample";
- * final String packagePath = "/org/eclipse/acceleo/module/sample/properties/";
- * final String fileName = "default.properties";
- * propertiesFiles.add(prefix + pluginName + packagePath + fileName);
- *
- * With this mechanism, you can load properties files from your plugin or from another plugin.
- *
- * You may want to load properties files from the file system, for that you need to add the absolute path of the file:
- *
- * propertiesFiles.add("C:\Users\MyName\MyFile.properties");
- *
- * If you want to let your users add properties files located in the same folder as the model:
- *
- * if (EMFPlugin.IS_ECLIPSE_RUNNING && model != null && model.eResource() != null) {
- * propertiesFiles.addAll(AcceleoEngineUtils.getPropertiesFilesNearModel(model.eResource()));
- * }
- *
- * To learn more about Properties Files, have a look at the Acceleo documentation (Help -> Help Contents).
- */
- return propertiesFiles;
- }
-
- /**
- * Adds a properties file in the list of properties files.
- *
- * @param propertiesFile
- * The properties file to add.
- * @generated
- * @since 3.1
- */
- @Override
- public void addPropertiesFile(String propertiesFile) {
- this.propertiesFiles.add(propertiesFile);
- }
-
- /**
- * This will be used to get the list of templates that are to be launched by this launcher.
- *
- * @return The list of templates to call on the module {@link #getModuleName()}.
- * @generated
- */
- @Override
- public String[] getTemplateNames() {
- return TEMPLATE_NAMES;
- }
-
- /**
- * This can be used to update the resource set's package registry with all needed EPackages.
- *
- * @param resourceSet
- * The resource set which registry has to be updated.
- * @generated
- */
- @Override
- public void registerPackages(ResourceSet resourceSet) {
- super.registerPackages(resourceSet);
- if (!isInWorkspace(org.eclipse.emf.ecore.EcorePackage.class)) {
- resourceSet.getPackageRegistry().put(org.eclipse.emf.ecore.EcorePackage.eINSTANCE.getNsURI(), org.eclipse.emf.ecore.EcorePackage.eINSTANCE);
- }
-
- /*
- * If you want to change the content of this method, do NOT forget to change the "@generated"
- * tag in the Javadoc of this method to "@generated NOT". Without this new tag, any compilation
- * of the Acceleo module with the main template that has caused the creation of this class will
- * revert your modifications.
- */
-
- /*
- * If you need additional package registrations, you can register them here. The following line
- * (in comment) is an example of the package registration for UML.
- *
- * You can use the method "isInWorkspace(Class c)" to check if the package that you are about to
- * register is in the workspace.
- *
- * To register a package properly, please follow the following conventions:
- *
- * If the package is located in another plug-in, already installed in Eclipse. The following content should
- * have been generated at the beginning of this method. Do not register the package using this mechanism if
- * the metamodel is located in the workspace.
- *
- * if (!isInWorkspace(UMLPackage.class)) {
- * // The normal package registration if your metamodel is in a plugin.
- * resourceSet.getPackageRegistry().put(UMLPackage.eNS_URI, UMLPackage.eINSTANCE);
- * }
- *
- * If the package is located in another project in your workspace, the plugin containing the package has not
- * been register by EMF and Acceleo should register it automatically. If you want to use the generator in
- * stand alone, the regular registration (seen a couple lines before) is needed.
- *
- * To learn more about Package Registration, have a look at the Acceleo documentation (Help -> Help Contents).
- */
- }
-
- /**
- * This can be used to update the resource set's resource factory registry with all needed factories.
- *
- * @param resourceSet
- * The resource set which registry has to be updated.
- * @generated
- */
- @Override
- public void registerResourceFactories(ResourceSet resourceSet) {
- super.registerResourceFactories(resourceSet);
- /*
- * If you want to change the content of this method, do NOT forget to change the "@generated"
- * tag in the Javadoc of this method to "@generated NOT". Without this new tag, any compilation
- * of the Acceleo module with the main template that has caused the creation of this class will
- * revert your modifications.
- */
-
- /*
- * TODO If you need additional resource factories registrations, you can register them here. the following line
- * (in comment) is an example of the resource factory registration for UML.
- *
- * If you want to use the generator in stand alone, the resource factory registration will be required.
- *
- * To learn more about the registration of Resource Factories, have a look at the Acceleo documentation (Help -> Help Contents).
- */
-
- // resourceSet.getResourceFactoryRegistry().getExtensionToFactoryMap().put(UMLResource.FILE_EXTENSION, UMLResource.Factory.INSTANCE);
- }
-
- @Override
- protected void postGenerate(ResourceSet rs) {
- // Don't unload resources
- }
-}
diff --git a/plugins/org.eclipse.emf.eef.codegen.tests/src/org/eclipse/emf/eef/tests/codegen/main/cases/ComponentTests.mtl b/plugins/org.eclipse.emf.eef.codegen.tests/src/org/eclipse/emf/eef/tests/codegen/main/cases/ComponentTests.mtl
deleted file mode 100644
index a4a7d3d41..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.tests/src/org/eclipse/emf/eef/tests/codegen/main/cases/ComponentTests.mtl
+++ /dev/null
@@ -1,112 +0,0 @@
-[comment
- *******************************************************************************
- * Copyright (c) 2008-2010 Obeo.
- * 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:
- * Obeo - initial API and implementation
- *******************************************************************************
- /]
-[module ComponentTests('http://www.eclipse.org/emf/eef/components/1.0.0','http://www.eclipse.org/emf/eef/mapping/1.0.0', 'http://www.eclipse.org/emf/2002/Ecore', 'http://www.eclipse.org/emf/eef/views/1.0.0', 'http://www.eclipse.org/emf/eef/generation/1.0.0') extends ComponentCommonTests/]
-
-[import common /]
-[import naming /]
-[import testsNaming /]
-[import widgetTest /]
-
-[template public PropertySection(peContext : PropertiesEditionContext)]
-[comment @main /]
-[for (pec : PropertiesEditionComponent | peContext.eAllContents(PropertiesEditionComponent)) ? (pec.mustBeGenerated() and pec.testMustBeGenerated())]
- [for (view : View | pec.views) ? (view.explicit)]
-[file (pec.fullFilePath(), false)]
-[peContext.associatedGenModel().licenceText().trim()/]
-[packagePropertySection(pec)/]
-
-[headPropertySection(peContext, pec)/]
-[peContext.additionalImports()/]
-/**
- * TestCase for [pec.name/]
- * [peContext.associatedGenModel().authorText().trim()/]
- */
-public class [pec.testCase()/] extends SWTBotEEFTestCase {
-
-[testCasePropertySection(peContext, pec)/]
-[for (peElement : PropertiesEditionElement | pec.properties->select(oclIsKindOf(components::PropertiesEditionElement)).oclAsType(components::PropertiesEditionElement)) ? (pec.canGenerateTest(peElement) <> 'false')]
-[if (not peElement.isAbstractType())]
-[testAddPropertySection(pec, peElement)/]
-[if (peElement.canRemove())]
-[testRemovePropertySection(pec, peElement)/]
-[/if]
-[/if]
-[/for]
-[for (peElement : PropertiesEditionElement | pec.properties->select(oclIsKindOf(components::PropertiesEditionElement)).oclAsType(components::PropertiesEditionElement)) ? (pec.canGenerateTest(peElement) <> 'false')]
-[if (not peElement.isAbstractType())]
-[additionnalMethodsForWidgets(pec, peElement)/]
-[additionalMethodsForTableComposition(pec, peElement)/]
-[/if]
-[/for]
-[additionalMethods()/]
-
-}
- [/file]
- [/for]
- [/for]
-[/template]
-
-[template public testAddPropertySection(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement)]
-[initializeExpectedModelPropertySection(pec, peElement)/]
-[commentTestPropertySection()/]
-[testEditPropertySection(pec, peElement)/]
-[editFeaturePropertySection(pec, peElement)/]
-[comparePropertySection(pec, peElement)/]
-[/template]
-
-[template public testRemovePropertySection(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement)]
-[initializeRemoveExpectedModelPropertySection(pec, peElement)/]
-[commentTestPropertySection()/]
-[testRemoveEditPropertySection(pec, peElement)/]
-[removeFeaturePropertySection(pec, peElement)/]
-[comparePropertySection(pec, peElement)/]
-[/template]
-
-[template public fullFilePath(pec : PropertiesEditionComponent)]
-[pec.model.completePackage().toPath()/]/tests/junit/[pec.testCase()/].java
-[/template]
-
-[comment overrides this template if additional imports is needed/]
-[template public additionalImports(peContext : PropertiesEditionContext) overrides additionalImports]
-import org.eclipse.swtbot.swt.finder.widgets.SWTBotShell;
-[/template]
-
-[comment overrides this template if additional methods are needed/]
-[template public additionalMethods()]
-[/template]
-
-[template public packagePropertySection(pec : PropertiesEditionComponent)]
-package [pec.model.completePackage()/].tests.junit;
-[/template]
-
-[template public editFeaturePropertySection(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement)]
- // Open the EEF wizard (by double click) to edit the [pec.model.name/] element
- EObject firstInstanceOf = EEFTestsModelsUtils.getFirstInstanceOf(bot.getActiveResource(), [pec.model.name.toLowerFirst()/]MetaClass);
- if (firstInstanceOf == null)
- throw new InputModelInvalidException([pec.model.name.toLowerFirst()/]MetaClass.getName());
-
- SWTBotShell wizardShell = bot.prepareBatchEditing(modelEditor, [pec.model.name.toLowerFirst()/]MetaClass, firstInstanceOf, [if (pec.involvedViews()->size() > 1)]"[peElement.views->first().owningView().viewKey(pec).toASCII().substituteAll(' ', '_')/]"[else]null[/if]);
-
- [pec.editFeature(peElement)/]
-[/template]
-
-[template public removeFeaturePropertySection(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement)]
- // Open the EEF wizard (by double click) to edit the [pec.model.name/] element
- EObject firstInstanceOf = EEFTestsModelsUtils.getFirstInstanceOf(bot.getActiveResource(), [pec.model.name.toLowerFirst()/]MetaClass);
- if (firstInstanceOf == null)
- throw new InputModelInvalidException([pec.model.name.toLowerFirst()/]MetaClass.getName());
-
- SWTBotShell wizardShell = bot.prepareBatchEditing(modelEditor, [pec.model.name.toLowerFirst()/]MetaClass, firstInstanceOf, [if (pec.involvedViews()->size() > 1)]"[peElement.views->first().owningView().viewKey(pec).toASCII().substituteAll(' ', '_')/]"[else]null[/if]);
-
- [pec.removeFeature(peElement)/]
-[/template]
\ No newline at end of file
diff --git a/plugins/org.eclipse.emf.eef.codegen.tests/src/org/eclipse/emf/eef/tests/codegen/main/cases/common/ComponentCommonTests.mtl b/plugins/org.eclipse.emf.eef.codegen.tests/src/org/eclipse/emf/eef/tests/codegen/main/cases/common/ComponentCommonTests.mtl
deleted file mode 100644
index 7f06a8924..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.tests/src/org/eclipse/emf/eef/tests/codegen/main/cases/common/ComponentCommonTests.mtl
+++ /dev/null
@@ -1,283 +0,0 @@
-[comment
- *******************************************************************************
- * Copyright (c) 2008-2010 Obeo.
- * 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:
- * Obeo - initial API and implementation
- *******************************************************************************
- /]
-[module ComponentCommonTests('http://www.eclipse.org/emf/eef/components/1.0.0','http://www.eclipse.org/emf/eef/mapping/1.0.0', 'http://www.eclipse.org/emf/2002/Ecore', 'http://www.eclipse.org/emf/eef/views/1.0.0', 'http://www.eclipse.org/emf/eef/generation/1.0.0', 'http://www.eclipse.org/emf/2002/Ecore')/]
-
-[import common /]
-[import naming /]
-[import testsNaming /]
-[import typeUtils /]
-[import widgetTest /]
-
-[template public headPropertySection(peContext : PropertiesEditionContext, pec : PropertiesEditionComponent)]
-import java.io.IOException;
-import java.util.ArrayList;
-import java.util.Collections;
-import java.util.List;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IFolder;
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.resources.IResource;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.NullProgressMonitor;
-import org.eclipse.emf.common.command.BasicCommandStack;
-import org.eclipse.emf.common.command.CompoundCommand;
-import org.eclipse.emf.common.util.URI;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.resource.Resource;
-import org.eclipse.emf.ecore.util.EcoreUtil;
-import org.eclipse.emf.edit.command.AddCommand;
-import org.eclipse.emf.edit.command.SetCommand;
-import org.eclipse.emf.edit.domain.AdapterFactoryEditingDomain;
-import [pec.model.qualifiedName()/];
-import [pec.model.qualifiedMetamodelPackage()/];
-[for (viewRepository : ViewsRepository | pec.views.owningViewsRepository()->asSet())]
-import [viewRepository.qualifiedMessagesProvider()/];
-[/for]
-[for (peElement : components::PropertiesEditionElement | pec.properties->select(oclIsTypeOf(components::PropertiesEditionElement)).oclAsType(components::PropertiesEditionElement))]
-[if (peElement.model.eType.oclIsKindOf(ecore::EClass))]import [peElement.model.eType.qualifiedName()/];
-[/if]
-[/for]
-import org.eclipse.emf.eef.runtime.EEFRuntimePlugin;
-import org.eclipse.emf.eef.runtime.tests.SWTBotEEFTestCase;
-import org.eclipse.emf.eef.runtime.tests.exceptions.InputModelInvalidException;
-import org.eclipse.emf.eef.runtime.tests.exceptions.WidgetInvalidException;
-import org.eclipse.emf.eef.runtime.tests.utils.EEFTestsModelsUtils;
-import org.eclipse.emf.eef.runtime.tests.utils.EEFTestsResourceUtils;
-import org.eclipse.emf.eef.runtime.tests.utils.UIConstants;
-import org.eclipse.swtbot.eclipse.finder.widgets.SWTBotEditor;
-[additionalImports()/]
-[/template]
-
-[template public additionalImports (peContext : PropertiesEditionContext) /]
-
-
-[template public testCasePropertySection(peContext : PropertiesEditionContext, pec : PropertiesEditionComponent)]
- /**
- * The EClass of the type to edit
- */
- private EClass [pec.model.name.toLowerFirst()/]MetaClass = [pec.model.ePackage.metamodelPackage()/].eINSTANCE.get[pec.model.name/]();
-
- /**
- * The type to edit
- */
- private EObject [pec.model.name.toLowerFirst()/];
-
- [for (peElement : PropertiesEditionElement | pec.properties->select(oclIsTypeOf(components::PropertiesEditionElement)).oclAsType(components::PropertiesEditionElement)->select(model.oclIsTypeOf(ecore::EAttribute) and model.oclAsType(ecore::EAttribute).isEnum())) separator ('\n')]
- /**
- * The enum value for the enum class [peElement.model.name.toLowerFirst()/]
- */
- private Object enumValueFor[peElement.model.name.toUpperFirst()/];
- [/for]
- [for (peElement : PropertiesEditionElement | pec.properties->select(oclIsTypeOf(components::PropertiesEditionElement)).oclAsType(components::PropertiesEditionElement)->select(pee : PropertiesEditionElement | pee.model.oclIsTypeOf(ecore::EReference) and pee.isEOFCVorReferencesTable())->asSet()) separator ('\n')]
- /**
- * The reference value for the reference class [peElement.model.name.toLowerFirst()/]
- */
- private Object referenceValueFor[peElement.model.name.toUpperFirst()/];
- [/for]
- [for (name : String | pec.properties->select(oclIsTypeOf(components::PropertiesEditionElement)).oclAsType(components::PropertiesEditionElement)->select(model.oclIsTypeOf(ecore::EReference)).model.eType->select(name<>pec.model.name).name->asSet()) separator ('\n')]
- /**
- * The EClass of the reference to edit
- */
- private EClass [name.toLowerFirst()/]MetaClass = [pec.model.ePackage.metamodelPackage()/].eINSTANCE.get[name/]();
- [/for]
-[if (pec.properties->select(oclIsTypeOf(components::PropertiesEditionElement)).oclAsType(components::PropertiesEditionElement)->select(model.oclIsTypeOf(ecore::EReference) and canRemove())->asSet()->notEmpty())]
- /**
- * The eObjects list contained in widgets
- */
- private List allInstancesOf;
-[/if]
- /**
- * Updated value of the feature
- */
- private static final String UPDATED_VALUE = "value2";
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.emf.eef.runtime.tests.SWTBotEEFTestCase#getExpectedModelName()
- */
- protected String getExpectedModelName() {
- return "expected.[pec.model.ePackage.metamodelPrefix().toLowerFirst()/]";
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.emf.eef.runtime.tests.SWTBotEEFTestCase#getInputModelFolder()
- */
- protected String getInputModelFolder() {
- return "input";
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.emf.eef.runtime.tests.SWTBotEEFTestCase#getInputModelName()
- */
- protected String getInputModelName() {
- return "input.[pec.model.ePackage.metamodelPrefix().toLowerFirst()/]";
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.emf.eef.runtime.tests.SWTBotEEFTestCase#getTestsProjectName()
- */
- protected String getTestsProjectName() {
- return "[peContext.associatedGenModel().testsGenDirectory.tokenize('/')->at(1)/]";
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.emf.eef.runtime.tests.SWTBotEEFTestCase#getExpectedModelFolder()
- */
- protected String getExpectedModelFolder() {
- // The project that contains models for tests
- return "expected";
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.emf.eef.runtime.tests.SWTBotEEFTestCase#getImportModelsFolder()
- */
- protected String getImportModelsFolder() {
- return "models";
- }
- [/template]
-
-[template public initializeExpectedModelPropertySection(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement)]
- /**
- * Create the expected model from the input model
- * @throws InputModelInvalidException error during expected model initialization
- * @throws IOException error during expected model serialization
- */
- protected void initializeExpectedModelFor[pec.model.name.toUpperFirst()/][peElement.name.toUpperFirst()/]() throws InputModelInvalidException, IOException {
- // Create the expected model content by applying the attempted command on a copy of the input model content
- createExpectedModel();
- EObject [pec.model.name.toLowerFirst()/] = EEFTestsModelsUtils.getFirstInstanceOf(expectedModel, [pec.model.name.toLowerFirst()/]MetaClass);
- if ([pec.model.name.toLowerFirst()/] == null)
- throw new InputModelInvalidException([pec.model.name.toLowerFirst()/]MetaClass.getName());
- [pec.updateExpectedModel(peElement)/]
- editingDomain.getCommandStack().execute(cc);
- expectedModel.save(Collections.EMPTY_MAP);
- }
-[/template]
-
-[template public initializeRemoveExpectedModelPropertySection(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement) ? (peElement.canRemove())]
- /**
- * Create the expected model from the input model
- * @throws InputModelInvalidException error during expected model initialization
- * @throws IOException error during expected model serialization
- */
- protected void initializeRemoveExpectedModelFor[pec.model.name.toUpperFirst()/][peElement.name.toUpperFirst()/]() throws InputModelInvalidException, IOException {
- // Create the expected model content by applying the attempted command on a copy of the input model content
- createExpectedModel();
- EObject [pec.model.name.toLowerFirst()/] = EEFTestsModelsUtils.getFirstInstanceOf(expectedModel, [pec.model.name.toLowerFirst()/]MetaClass);
- if ([pec.model.name.toLowerFirst()/] == null)
- throw new InputModelInvalidException([pec.model.name.toLowerFirst()/]MetaClass.getName());
- [pec.removeExpectedModel(peElement)/]
- editingDomain.getCommandStack().execute(cc);
- expectedModel.save(Collections.EMPTY_MAP);
- }
-[/template]
-
-[template public testEditPropertySection(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement)]
- public void testEdit[pec.name.toUpperFirst()/][peElement.name.toUpperFirst()/]() throws Exception {
-
- // Import the input model
- initializeInputModel();
-
- [pec.model.name.toLowerFirst()/] = EEFTestsModelsUtils.getFirstInstanceOf(bot.getActiveResource(), [pec.model.name.toLowerFirst()/]MetaClass);
- if ([pec.model.name.toLowerFirst()/] == null)
- throw new InputModelInvalidException([pec.model.name.toLowerFirst()/]MetaClass.getName());
-
- [if (peElement.model.oclIsTypeOf(ecore::EAttribute) and peElement.model.oclAsType(ecore::EAttribute).isEnum())]
- enumValueFor[peElement.model.name.toUpperFirst()/] = bot.changeEnumLiteralValue([peElement.model.eContainingClass.metamodelPackage()/].eINSTANCE.get[peElement.model.eType.name/](), (([pec.model.name/])[pec.model.name.toLowerFirst()/]).get[peElement.model.name.toUpperFirst()/]().getLiteral());
- [/if]
- // Create the expected model
- initializeExpectedModelFor[pec.model.name.toUpperFirst()/][peElement.name.toUpperFirst()/]();
-
- // Open the input model with the treeview editor
- SWTBotEditor modelEditor = bot.openActiveModel();
-
-[/template]
-
-[template public testRemoveEditPropertySection(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement) ? (peElement.canRemove())]
- public void testRemove[pec.name.toUpperFirst()/][peElement.name.toUpperFirst()/]() throws Exception {
-
- // Import the input model
- initializeInputModel();
-
- [pec.model.name.toLowerFirst()/] = EEFTestsModelsUtils.getFirstInstanceOf(bot.getActiveResource(), [pec.model.name.toLowerFirst()/]MetaClass);
- if ([pec.model.name.toLowerFirst()/] == null)
- throw new InputModelInvalidException([pec.model.name.toLowerFirst()/]MetaClass.getName());
-
- [if (peElement.model.oclIsTypeOf(ecore::EAttribute) and peElement.model.oclAsType(ecore::EAttribute).isEnum())]
- enumValueFor[peElement.model.name.toUpperFirst()/] = bot.changeEnumLiteralValue([peElement.model.eContainingClass.metamodelPackage()/].eINSTANCE.get[peElement.model.eType.name/](), (([pec.model.name/])[pec.model.name.toLowerFirst()/]).get[peElement.model.name.toUpperFirst()/]().getLiteral());
- [/if]
- // Create the expected model
- initializeRemoveExpectedModelFor[pec.model.name.toUpperFirst()/][peElement.name.toUpperFirst()/]();
-
- // Open the input model with the treeview editor
- SWTBotEditor modelEditor = bot.openActiveModel();
-
-[/template]
-
-[template public comparePropertySection(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement)]
-
- // Save the modification
- bot.finalizeEdition(modelEditor);
-
- // Compare real model with expected model
- assertExpectedModelReached(expectedModel);
-
- // Delete the input model
- deleteModels();
-
- }
-[/template]
-
-[query public testMustBeGenerated(pec : PropertiesEditionComponent) : Boolean =
- not pec.model.oclAsType(EClass).abstract
- and pec.properties->select(pee : mapping::AbstractPropertyBinding |
- pee.oclIsKindOf(components::PropertiesEditionElement)
- and pec.canGenerateTest(pee.oclAsType(components::PropertiesEditionElement)) <> 'false')->notEmpty()/]
-
-[template public commentTestPropertySection()]
- /**
- * Test the editor properties :
- * - init the input model
- * - calculate the expected model
- * - initialize the model editor
- * - change the properties in the editor properties
- * - compare the expected and the real model : if they are equals the test pass
- * - delete the models
- */
-[/template]
-
-[query public isAbstractType(peElement : PropertiesEditionElement) : Boolean =
- if (peElement.model.eType->select(oclIsKindOf(ecore::EClass))->notEmpty()) then
- peElement.model.eType.oclAsType(ecore::EClass).abstract
- else
- false
- endif/]
-
-[query public isCompositionType(peElement : PropertiesEditionElement) : Boolean =
- peElement.representationName('AdvancedTableComposition') or peElement.representationName('TableComposition')/]
-
-[comment][query public isCompositionType(peElement : PropertiesEditionElement) : Boolean =
- peElement.model->select(oclIsTypeOf(ecore::EReference)).oclAsType(ecore::EReference).isContainment()/][/comment]
\ No newline at end of file
diff --git a/plugins/org.eclipse.emf.eef.codegen.tests/src/org/eclipse/emf/eef/tests/codegen/services/common/testsNaming.mtl b/plugins/org.eclipse.emf.eef.codegen.tests/src/org/eclipse/emf/eef/tests/codegen/services/common/testsNaming.mtl
deleted file mode 100644
index 0e7abe22d..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.tests/src/org/eclipse/emf/eef/tests/codegen/services/common/testsNaming.mtl
+++ /dev/null
@@ -1,23 +0,0 @@
-[comment
- *******************************************************************************
- * Copyright (c) 2008-2010 Obeo.
- * 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:
- * Obeo - initial API and implementation
- *******************************************************************************
- /]
-[module testsNaming('http://www.eclipse.org/emf/eef/components/1.0.0')/]
-
-[import common /]
-
-[template public testCase(pec : PropertiesEditionComponent)]
-[pec.name.toJavaClassifier()/]TestCase
-[/template]
-
-[template public propertyTestCase(pec : PropertiesEditionComponent)]
-[pec.name.toJavaClassifier()/]PropertiesTestCase
-[/template]
\ No newline at end of file
diff --git a/plugins/org.eclipse.emf.eef.codegen.tests/src/org/eclipse/emf/eef/tests/codegen/services/widgets/api/widgetTest.mtl b/plugins/org.eclipse.emf.eef.codegen.tests/src/org/eclipse/emf/eef/tests/codegen/services/widgets/api/widgetTest.mtl
deleted file mode 100644
index 530bdfd68..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.tests/src/org/eclipse/emf/eef/tests/codegen/services/widgets/api/widgetTest.mtl
+++ /dev/null
@@ -1,77 +0,0 @@
-[comment
- *******************************************************************************
- * Copyright (c) 2008-2010 Obeo.
- * 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:
- * Obeo - initial API and implementation
- *******************************************************************************
- /]
-[module widgetTest('http://www.eclipse.org/emf/eef/components/1.0.0', 'http://www.eclipse.org/emf/2002/Ecore')/]
-
-[import common /]
-[import naming /]
-
-[comment defines if a test can be generated for this case /]
-[template public canGenerateTest(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement)]false[/template]
-
-[comment defines the command to apply in order to obtain the expected model /]
-[template public updateExpectedModel(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement)]
- // FIXME : define 'updateExpectedModel' (from widgetTest.mtl) for case ([peElement.views->first().representation.name/] - [peElement.model.eType.name/])
-[/template]
-
-[comment defines the bot command to process to edit the expected feature /]
-[template public editFeature(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement)]
- // FIXME : define 'editFeature' (from widgetTest.mtl) for case ([peElement.views->first().representation.name/] - [peElement.model.eType.name/])
-[/template]
-
-[template public editPropertyFeature(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement)]
- // FIXME : define 'editPropertyFeature' (from widgetTest.mtl) for case ([peElement.views->first().representation.name/] - [peElement.model.eType.name/])
-[/template]
-
-[comment defines the command to apply in order to obtain the expected model /]
-[template public removeExpectedModel(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement)]
- // FIXME : define 'removeExpectedModel' (from widgetTest.mtl) for case ([peElement.views->first().representation.name/] - [peElement.model.eType.name/])
-[/template]
-
-[comment defines the bot command to process to edit the expected feature /]
-[template public removeFeature(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement)]
- // FIXME : define 'removeFeature' (from widgetTest.mtl) for case ([peElement.views->first().representation.name/] - [peElement.model.eType.name/])
-[/template]
-
-[template public removePropertyFeature(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement)]
- // FIXME : define 'removePropertyFeature' (from widgetTest.mtl) for case ([peElement.views->first().representation.name/] - [peElement.model.eType.name/])
-[/template]
-
-[template public additionnalMethodsForWidgets(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement)]
-[/template]
-
-[template public additionalMethodsPropertiesForTableComposition(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement)]
-[/template]
-
-[template public additionalMethodsForTableComposition(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement)]
-[/template]
-
-[template public editFeature(f : EStructuralFeature, peElement : PropertiesEditionElement)]
- // FIXME : define 'editFeature' for structural feature (from widgetTest.mtl) for case ([peElement.views->first().representation.name/] - [peElement.model.eType.name/])
-[/template]
-
-[template public removeFeature(f : EStructuralFeature, peElement : PropertiesEditionElement)]
- // FIXME : define 'removeFeature' (from widgetTest.mtl) for case ([peElement.views->first().representation.name/] - [peElement.model.eType.name/])
-[/template]
-
-[query public isEOFCVorReferencesTable(peElement : PropertiesEditionElement) : Boolean =
- peElement.representationName('EObjectFlatComboViewer')or peElement.representationName('AdvancedEObjectFlatComboViewer')
- or peElement.representationName('ReferencesTable') or peElement.representationName('AdvancedReferencesTable')
- or peElement.representationName('FlatReferencesTable')/]
-
-[query public canRemoveEOFCVorReferencesTable(peElement : PropertiesEditionElement) : Boolean =
- (peElement.representationName('EObjectFlatComboViewer') and not peElement.model.required) or peElement.representationName('AdvancedEObjectFlatComboViewer')
- or peElement.representationName('ReferencesTable') or peElement.representationName('AdvancedReferencesTable') or peElement.representationName('FlatReferencesTable')/]
-
-[query public canRemove(peElement : PropertiesEditionElement) : Boolean =
- peElement.canRemoveEOFCVorReferencesTable() or
- peElement.representationName('TableComposition')or peElement.representationName('AdvancedTableComposition')/]
\ No newline at end of file
diff --git a/plugins/org.eclipse.emf.eef.codegen.tests/src/org/eclipse/emf/eef/tests/codegen/services/widgets/impl/EMFComboViewerTest.mtl b/plugins/org.eclipse.emf.eef.codegen.tests/src/org/eclipse/emf/eef/tests/codegen/services/widgets/impl/EMFComboViewerTest.mtl
deleted file mode 100644
index 63fbcc62b..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.tests/src/org/eclipse/emf/eef/tests/codegen/services/widgets/impl/EMFComboViewerTest.mtl
+++ /dev/null
@@ -1,60 +0,0 @@
-[comment
- *******************************************************************************
- * Copyright (c) 2008-2010 Obeo.
- * 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:
- * Obeo - initial API and implementation
- *******************************************************************************
- /]
-[module EMFComboViewerTest('http://www.eclipse.org/emf/eef/components/1.0.0', 'http://www.eclipse.org/emf/2002/Ecore') extends widgetTest/]
-
-[import common /]
-[import naming /]
-[import typeUtils /]
-
-[template public canGenerateTest(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement) overrides canGenerateTest ? (peElement.isEMFComboViewerEnum())]true[/template]
-
-[template public updateExpectedModel(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement) overrides updateExpectedModel ? (peElement.isEMFComboViewerEnum())]
-CompoundCommand cc = new CompoundCommand();
-[comment TODO: Reuse the commandUpdater template but the last parameter of the command creation method must be ... parameterized /]
-cc.append(SetCommand.create(editingDomain, [pec.model.name.toLowerFirst()/], [peElement.metamodelGetter()/], [peElement.model.eContainingClass.metamodelPackage()/].eINSTANCE.get[peElement.model.eType.name/]().getEEnumLiteralByLiteral(enumValueFor[peElement.model.name.toUpperFirst()/].toString()).getInstance()));
-[/template]
-
-[template public editFeature(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement) overrides editFeature ? (peElement.isEMFComboViewerEnum())]
-// Change value of the [peElement.name/] feature of the [pec.model.name/] element
- bot.editEMFComboViewerFeature(wizardShell, [peElement.views->first().editorID()/], enumValueFor[peElement.model.name.toUpperFirst()/]);
-[/template]
-
-[template public editFeature(f : EStructuralFeature, peElement : PropertiesEditionElement) overrides editFeature ? (peElement.isEMFComboViewerEnum())]
-// Change value of the [peElement.name/] feature of the [peElement.model.name/] element
- bot.editEMFComboViewer([peElement.views->first().editorID()/], [peElement.element->select(oclIsTypeOf(components::PropertiesEditionComponent)).oclAsType(components::PropertiesEditionComponent).model.name.toLowerFirst()/].get[peElement.model.name.toUpperFirst()/]());
-[/template]
-
-[template public editPropertyFeature(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement) overrides editPropertyFeature ? (peElement.isEMFComboViewerEnum())]
-// Change value of the [peElement.name/] feature of the [pec.model.name/] element
- bot.editPropertyEMFComboViewerFeature(propertiesView, [peElement.views->first().editorID()/], enumValueFor[peElement.model.name.toUpperFirst()/], bot.selectNode(modelEditor, firstInstanceOf));
-[/template]
-
-[template public additionnalMethodsForWidgets(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement)]
-[/template]
-
-[comment defines the command to apply in order to obtain the expected model /]
-[template public removeExpectedModel(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement)]
-[/template]
-
-[comment defines the bot command to process to edit the expected feature /]
-[template public removeFeature(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement)]
-[/template]
-
-[template public removePropertyFeature(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement)]
-[/template]
-
-[query public isEMFComboViewerEnum(peElement : PropertiesEditionElement) : Boolean =
- if (not peElement.model.oclIsTypeOf(ecore::EAttribute))
- then false
- else peElement.representationName('EMFComboViewer') and peElement.model.oclAsType(ecore::EAttribute).isEnum()
- endif/]
\ No newline at end of file
diff --git a/plugins/org.eclipse.emf.eef.codegen.tests/src/org/eclipse/emf/eef/tests/codegen/services/widgets/impl/advancedEobjectFlatComboViewerTest.mtl b/plugins/org.eclipse.emf.eef.codegen.tests/src/org/eclipse/emf/eef/tests/codegen/services/widgets/impl/advancedEobjectFlatComboViewerTest.mtl
deleted file mode 100644
index 55d7df391..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.tests/src/org/eclipse/emf/eef/tests/codegen/services/widgets/impl/advancedEobjectFlatComboViewerTest.mtl
+++ /dev/null
@@ -1,70 +0,0 @@
-[comment
- *******************************************************************************
- * Copyright (c) 2008-2010 Obeo.
- * 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:
- * Obeo - initial API and implementation
- *******************************************************************************
- /]
-[module advancedEobjectFlatComboViewerTest('http://www.eclipse.org/emf/eef/components/1.0.0', 'http://www.eclipse.org/emf/2002/Ecore') extends widgetTest/]
-
-[import common /]
-[import naming /]
-[import typeUtils /]
-
-[template public canGenerateTest(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement) overrides canGenerateTest ? (peElement.isAEOFCVReference())]true[/template]
-
-[template public updateExpectedModel(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement) overrides updateExpectedModel ? (peElement.isAEOFCVReference())]
-CompoundCommand cc = new CompoundCommand();
- [comment TODO: Reuse the commandUpdater template but the last parameter of the command creation method must be ... parameterized /]
- allInstancesOf = EEFTestsModelsUtils.getAllInstancesOf(expectedModel, [peElement.model.eType.name.toLowerFirst()/]MetaClass);
- referenceValueFor[peElement.model.name.toUpperFirst()/] = bot.changeReferenceValue(allInstancesOf, (([pec.model.name.toUpperFirst()/])[pec.model.name.toLowerFirst()/]).get[peElement.model.name.toUpperFirst()/]());
- cc.append(SetCommand.create(editingDomain, [pec.model.name.toLowerFirst()/], [peElement.metamodelGetter()/], referenceValueFor[peElement.model.name.toUpperFirst()/]));
-[/template]
-
-[template public editFeature(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement) overrides editFeature ? (peElement.isAEOFCVReference())]
-// Change value of the [peElement.name/] feature of the [pec.model.name/] element
- bot.editAdvancedEObjectFlatComboViewerFeature(wizardShell, [peElement.views->first().editorID()/], referenceValueFor[peElement.model.name.toUpperFirst()/]);
-[/template]
-
-[template public editFeature(f : EStructuralFeature, peElement : PropertiesEditionElement) overrides editFeature ? (peElement.isAEOFCVReference())]
-// Change value of the [peElement.name/] feature of the [peElement.model.name/] element
- bot.editAdvancedEObjectFlatComboViewer([peElement.views->first().editorID()/], [peElement.element->select(oclIsTypeOf(components::PropertiesEditionComponent)).oclAsType(components::PropertiesEditionComponent).model.name.toLowerFirst()/].get[peElement.model.name.toUpperFirst()/]());
-[/template]
-
-[template public editPropertyFeature(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement) overrides editPropertyFeature ? (peElement.isAEOFCVReference())]
-// Change value of the [peElement.name/] feature of the [pec.model.name/] element
- bot.editPropertyAdvancedEObjectFlatComboViewerFeature(propertiesView, [peElement.views->first().editorID()/], referenceValueFor[peElement.model.name.toUpperFirst()/], bot.selectNode(modelEditor, firstInstanceOf));
-[/template]
-
-[template public additionnalMethodsForWidgets(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement)]
-[/template]
-
-[comment defines the command to apply in order to obtain the expected model /]
-[template public removeExpectedModel(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement) overrides removeExpectedModel ? (peElement.isAEOFCVReference())]
-CompoundCommand cc = new CompoundCommand();
- [comment TODO: Reuse the commandUpdater template but the last parameter of the command creation method must be ... parameterized /]
- allInstancesOf = EEFTestsModelsUtils.getAllInstancesOf(expectedModel, [peElement.model.eType.name.toLowerFirst()/]MetaClass);
- cc.append(SetCommand.create(editingDomain, [pec.model.name.toLowerFirst()/], [peElement.metamodelGetter()/], null));
-[/template]
-
-[comment defines the bot command to process to edit the expected feature /]
-[template public removeFeature(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement) overrides removeFeature ? (peElement.isAEOFCVReference())]
-// Change value of the [peElement.name/] feature of the [pec.model.name/] element
- bot.removeAdvancedEObjectFlatComboViewerFeature(wizardShell, [peElement.views->first().editorID()/]);
-[/template]
-
-[template public removePropertyFeature(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement) overrides removePropertyFeature ? (peElement.isAEOFCVReference())]
-// Change value of the [peElement.name/] feature of the [pec.model.name/] element
- bot.removePropertyAdvancedEObjectFlatComboViewerFeature(propertiesView, [peElement.views->first().editorID()/], bot.selectNode(modelEditor, firstInstanceOf));
-[/template]
-
-[query public isAEOFCVReference(peElement : PropertiesEditionElement) : Boolean =
- if (not peElement.model.oclIsTypeOf(ecore::EReference))
- then false
- else peElement.representationName('AdvancedEObjectFlatComboViewer') and peElement.model.oclAsType(ecore::EReference).isReferenceSingle()
- endif/]
diff --git a/plugins/org.eclipse.emf.eef.codegen.tests/src/org/eclipse/emf/eef/tests/codegen/services/widgets/impl/advancedReferencesTableTest.mtl b/plugins/org.eclipse.emf.eef.codegen.tests/src/org/eclipse/emf/eef/tests/codegen/services/widgets/impl/advancedReferencesTableTest.mtl
deleted file mode 100644
index da53828b6..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.tests/src/org/eclipse/emf/eef/tests/codegen/services/widgets/impl/advancedReferencesTableTest.mtl
+++ /dev/null
@@ -1,88 +0,0 @@
-[comment
- *******************************************************************************
- * Copyright (c) 2008-2010 Obeo.
- * 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:
- * Obeo - initial API and implementation
- *******************************************************************************
- /]
-[module advancedReferencesTableTest('http://www.eclipse.org/emf/eef/components/1.0.0', 'http://www.eclipse.org/emf/2002/Ecore') extends widgetTest/]
-
-[import common /]
-[import naming /]
-[import typeUtils /]
-
-[template public canGenerateTest(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement) overrides canGenerateTest ? (peElement.isAdvancedReferencesTableReference())]true[/template]
-
-[template public updateExpectedModel(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement) overrides updateExpectedModel ? (peElement.isAdvancedReferencesTableReference())]
-CompoundCommand cc = new CompoundCommand();
-[comment TODO: Reuse the commandUpdater template but the last parameter of the command creation method must be ... parameterized /]
-allInstancesOf = EEFTestsModelsUtils.getAllInstancesOf(expectedModel, [peElement.model.eType.name.toLowerFirst()/]MetaClass);
-referenceValueFor[peElement.model.name.toUpperFirst()/] = bot.changeReferenceValue(allInstancesOf, (([pec.model.name.toUpperFirst()/])[pec.model.name.toLowerFirst()/]).get[peElement.model.name.toUpperFirst()/]());
-cc.append(AddCommand.create(editingDomain, [pec.model.name.toLowerFirst()/], [peElement.metamodelGetter()/], referenceValueFor[peElement.model.name.toUpperFirst()/]));
-[/template]
-
-[template public removeExpectedModel(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement) overrides removeExpectedModel ? (peElement.isAdvancedReferencesTableReference())]
-CompoundCommand cc = new CompoundCommand();
-List allReferencedInstances = (List)[pec.model.name.toLowerFirst()/].eGet([peElement.metamodelGetter()/]);
-if (allReferencedInstances.size() > 0) {
- cc.append(RemoveCommand.create(editingDomain, [pec.model.name.toLowerFirst()/], [peElement.metamodelGetter()/], allReferencedInstances.get(0)));
-}
-else {
- throw new InputModelInvalidException();
-}
-[/template]
-
-[template public editFeature(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement) overrides editFeature ? (peElement.isAdvancedReferencesTableReference())]
-// Change value of the [peElement.name/] feature of the [pec.model.name/] element
-bot.editAdvancedReferencesTableFeature(wizardShell, [peElement.views->first().editorID()/], referenceValueFor[peElement.model.name.toUpperFirst()/]);
-[/template]
-
-[template public editFeature(f : EStructuralFeature, peElement : PropertiesEditionElement) overrides editFeature ? (peElement.isAdvancedReferencesTableReference())]
-// Change value of the [peElement.name/] feature of the [peElement.model.name/] element
-bot.editAdvancedReferencesTableValues([peElement.views->first().editorID()/], [peElement.element->select(oclIsTypeOf(components::PropertiesEditionComponent)).oclAsType(components::PropertiesEditionComponent).model.name.toLowerFirst()/].get[peElement.model.name.toUpperFirst()/]());
-[/template]
-
-[template public editPropertyFeature(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement) overrides editPropertyFeature ? (peElement.isAdvancedReferencesTableReference())]
-// Change value of the [peElement.name/] feature of the [pec.model.name/] element
-bot.editPropertyAdvancedReferencesTableFeature(propertiesView, [peElement.views->first().editorID()/], referenceValueFor[peElement.model.name.toUpperFirst()/], bot.selectNode(modelEditor, firstInstanceOf));
-[/template]
-
-[template public removeFeature(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement) overrides removeFeature ? (peElement.isAdvancedReferencesTableReference())]
-// Change value of the [peElement.name/] feature of the [pec.model.name/] element
-bot.removeAdvancedReferencesTableFeature(wizardShell, [peElement.views->first().editorID()/], [peElement.views->first().owningViewsRepository().messagesProvider()/].PropertiesEditionPart_RemoveListViewerLabel);
-[/template]
-
-[template public removeFeature(f : EStructuralFeature, peElement : PropertiesEditionElement) overrides removeFeature ? (peElement.isAdvancedReferencesTableReference())]
-// Change value of the [peElement.name/] feature of the [peElement.model.name/] element
-bot.removeAdvancedReferencesTable([peElement.views->first().owningViewsRepository().messagesProvider()/].[peElement.views->first().editorKey(peElement.views->first().owningView())/], [peElement.element->select(oclIsTypeOf(components::PropertiesEditionComponent)).oclAsType(components::PropertiesEditionComponent).model.name.toLowerFirst()/].get[peElement.model.name.toUpperFirst()/]());
-[/template]
-
-[template public removePropertyFeature(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement) overrides removePropertyFeature ? (peElement.isAdvancedReferencesTableReference())]
-// Change value of the [peElement.name/] feature of the [pec.model.name/] element
-bot.removePropertyAdvancedReferencesTableFeature(propertiesView, [peElement.views->first().editorID()/], [peElement.views->first().owningViewsRepository().messagesProvider()/].PropertiesEditionPart_RemoveListViewerLabel, bot.selectNode(modelEditor, firstInstanceOf));
-[/template]
-
-[template public additionnalMethodsForWidgets(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement)]
-[/template]
-
-[comment defines the command to apply in order to obtain the expected model /]
-[template public removeExpectedModel(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement)]
-[/template]
-
-[comment defines the bot command to process to edit the expected feature /]
-[template public removeFeature(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement)]
-[/template]
-
-[template public removePropertyFeature(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement)]
-[/template]
-
-[query public isAdvancedReferencesTableReference(peElement : PropertiesEditionElement) : Boolean =
- if (not peElement.model.oclIsTypeOf(ecore::EReference))
- then false
- else peElement.representationName('AdvancedReferencesTable') and peElement.model.oclAsType(ecore::EReference).isReferenceMany()
- endif/]
diff --git a/plugins/org.eclipse.emf.eef.codegen.tests/src/org/eclipse/emf/eef/tests/codegen/services/widgets/impl/advancedTableCompositionTest.mtl b/plugins/org.eclipse.emf.eef.codegen.tests/src/org/eclipse/emf/eef/tests/codegen/services/widgets/impl/advancedTableCompositionTest.mtl
deleted file mode 100644
index 5e98324c7..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.tests/src/org/eclipse/emf/eef/tests/codegen/services/widgets/impl/advancedTableCompositionTest.mtl
+++ /dev/null
@@ -1,116 +0,0 @@
-[comment
- *******************************************************************************
- * Copyright (c) 2008-2010 Obeo.
- * 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:
- * Obeo - initial API and implementation
- *******************************************************************************
- /]
-[module advancedTableCompositionTest('http://www.eclipse.org/emf/eef/components/1.0.0', 'http://www.eclipse.org/emf/2002/Ecore') extends widgetTest/]
-
-[import common /]
-[import naming /]
-[import typeUtils /]
-
-[template public canGenerateTest(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement) overrides canGenerateTest ? (peElement.isAdvancedTableComposition() and pec.model<>peElement.model.eType)]true[/template]
-
-[template public updateExpectedModel(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement) overrides updateExpectedModel ? (peElement.isAdvancedTableComposition())]
-EClass [peElement.model.eType.name.toLowerFirst()/]MetaClass = [peElement.model.eType.ePackage.metamodelPackage()/].eINSTANCE.get[peElement.model.eType.name/]();
-EObject [peElement.model.eType.name.toLowerFirst()/] = EEFTestsModelsUtils.getFirstInstanceOf(expectedModel, [peElement.model.eType.name.toLowerFirst()/]MetaClass);
-if ([peElement.model.eType.name.toLowerFirst()/] == null)
- throw new InputModelInvalidException([peElement.model.eType.name.toLowerFirst()/]MetaClass.getName());
-CompoundCommand cc = new CompoundCommand();
-[comment TODO: Reuse the commandUpdater template but the last parameter of the command creation method must be ... parameterized /]
-cc.append(AddCommand.create(editingDomain, [pec.model.name.toLowerFirst()/], [peElement.metamodelGetter()/], EcoreUtil.copy([peElement.model.eType.name.toLowerFirst()/])));
-[/template]
-
-[template public editFeature(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement) overrides editFeature ? (peElement.isAdvancedTableComposition())]
-// Change value of the [peElement.name/] feature of the [pec.model.name/] element
-editAdvancedTableComposition[peElement.name/]Feature(wizardShell);
-[/template]
-
-[template public editFeature(f : EStructuralFeature, peElement : PropertiesEditionElement) overrides editFeature ? (peElement.isAdvancedTableComposition())]
-[/template]
-
-[template public editPropertyFeature(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement) overrides editPropertyFeature ? (peElement.isAdvancedTableComposition())]
-// Change value of the [peElement.name/] feature of the [pec.model.name/] element
- editAdvancedTableComposition[peElement.name/]Feature(propertiesView, bot.selectNode(modelEditor, firstInstanceOf));
-[/template]
-
-[template public additionnalMethodsForWidgets(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement) overrides additionnalMethodsForWidgets ? (peElement.isAdvancedTableComposition())]
- /**
- * Edit the feature in the table composition
- */
- protected void editAdvancedTableCompositionFor[peElement.name/]Feature() throws WidgetInvalidException {
- EClass [peElement.model.eType.name.toLowerFirst()/]MetaClass = [peElement.model.eType.ePackage.metamodelPackage()/].eINSTANCE.get[peElement.model.eType.name/]();
- SWTBotShell shellTable = bot.shell([peElement.model.eType.name.toLowerFirst()/]MetaClass.getName());
- bot.activateShell(shellTable);
- [peElement.model.eType.name/] [peElement.model.eType.name.toLowerFirst()/] = ([peElement.model.eType.name/]) EEFTestsModelsUtils.getFirstInstanceOf(bot.getActiveResource(), [peElement.model.eType.name.toLowerFirst()/]MetaClass);
- [for (f : ecore::EStructuralFeature | peElement.model.eType.eContents()->select(oclIsKindOf(ecore::EStructuralFeature)).oclAsType(ecore::EStructuralFeature)->select(feature : ecore::EStructuralFeature |not feature.isContainment()))]
- bot.sleep(500);
- [editFeature(f, involvedPropertiesEditionElement(peElement, f))/]
- [/for]
- bot.closeShellWithFinishButton(shellTable);
- }
-[/template]
-
-[comment overrides this template if additional methods are needed/]
-[template public additionalMethodsForTableComposition(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement) overrides additionalMethodsForTableComposition ? (peElement.isAdvancedTableComposition())]
- /**
- * Edit the table composition
- * @param wizardShell
- */
- protected void editAdvancedTableComposition[peElement.name/]Feature(SWTBotShell wizardShell) throws WidgetInvalidException {
- bot.activateShell(wizardShell);
- bot.sleep(500);
- bot.addButtonAdvancedTableComposition([peElement.views->first().editorID()/]).click();
- editAdvancedTableCompositionFor[peElement.name/]Feature();
- bot.closeShellWithFinishButton(wizardShell);
- }
-[/template]
-
-[comment overrides this template if additional methods are needed/]
-[template public additionalMethodsPropertiesForTableComposition(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement) overrides additionalMethodsPropertiesForTableComposition ? (peElement.isAdvancedTableComposition())]
- /**
- * Edit the table composition
- * @param wizardShell
- */
- protected void editAdvancedTableComposition[peElement.name/]Feature(SWTBotView propertyView, SWTBotTreeItem selectNode) throws WidgetInvalidException {
- SWTEEFBotHelper helper = new SWTEEFBotHelper(propertyView.bot());
- helper.addButtonAdvancedTableComposition([peElement.views->first().editorID()/]).click();
- editAdvancedTableCompositionFor[peElement.name/]Feature();
- selectNode.select();
- }
-[/template]
-
-[comment defines the command to apply in order to obtain the expected model /]
-[template public removeExpectedModel(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement) overrides removeExpectedModel ? (peElement.isAdvancedTableComposition())]
-CompoundCommand cc = new CompoundCommand();
-[comment TODO: Reuse the commandUpdater template but the last parameter of the command creation method must be ... parameterized /]
-List eGet = (List)[pec.model.name.toLowerFirst()/].eGet([peElement.metamodelGetter()/]);
-if (eGet.size() == 0)
- throw new InputModelInvalidException("Model is invalid");
-EObject firstInstanceOf = (EObject) eGet.get(0);
-cc.append(RemoveCommand.create(editingDomain, [pec.model.name.toLowerFirst()/], [peElement.metamodelGetter()/], firstInstanceOf));
-[/template]
-
-[comment defines the bot command to process to edit the expected feature /]
-[template public removeFeature(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement) overrides removeFeature ? (peElement.isAdvancedTableComposition())]
-// Change value of the [peElement.name/] feature of the [pec.model.name/] element
- bot.removeAdvancedTableCompositionFeature(wizardShell, [peElement.views->first().editorID()/]);
-[/template]
-
-[template public removePropertyFeature(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement) overrides removePropertyFeature ? (peElement.isAdvancedTableComposition())]
-// Change value of the [peElement.name/] feature of the [pec.model.name/] element
-bot.removePropertyAdvancedTableCompositionFeature(propertiesView, [peElement.views->first().editorID()/], [peElement.views->first().owningViewsRepository().messagesProvider()/].PropertiesEditionPart_RemoveListViewerLabel, bot.selectNode(modelEditor, firstInstanceOf));
-[/template]
-
-[query public isAdvancedTableComposition(peElement : PropertiesEditionElement) : Boolean =
- if (not peElement.model.oclIsTypeOf(ecore::EReference))
- then false
- else (peElement.representationName('AdvancedTableComposition')) and (peElement.model.oclAsType(ecore::EReference).isContainmentMany() or peElement.model.oclAsType(ecore::EReference).isContainmentSingle())
- endif/]
diff --git a/plugins/org.eclipse.emf.eef.codegen.tests/src/org/eclipse/emf/eef/tests/codegen/services/widgets/impl/checkboxTest.mtl b/plugins/org.eclipse.emf.eef.codegen.tests/src/org/eclipse/emf/eef/tests/codegen/services/widgets/impl/checkboxTest.mtl
deleted file mode 100644
index cc5a529a0..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.tests/src/org/eclipse/emf/eef/tests/codegen/services/widgets/impl/checkboxTest.mtl
+++ /dev/null
@@ -1,61 +0,0 @@
-[comment
- *******************************************************************************
- * Copyright (c) 2008-2010 Obeo.
- * 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:
- * Obeo - initial API and implementation
- *******************************************************************************
- /]
-[module checkboxTest('http://www.eclipse.org/emf/eef/components/1.0.0', 'http://www.eclipse.org/emf/2002/Ecore') extends widgetTest/]
-
-[import common /]
-[import naming /]
-[import typeUtils /]
-
-[template public canGenerateTest(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement) overrides canGenerateTest ? (peElement.isCheckboxBoolean())]true[/template]
-
-[template public updateExpectedModel(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement) overrides updateExpectedModel ? (peElement.isCheckboxBoolean())]
-CompoundCommand cc = new CompoundCommand();
- [comment TODO: Reuse the commandUpdater template but the last parameter of the command creation method must be ... parameterized /]
- Boolean oldValue = (Boolean)[pec.model.name.toLowerFirst()/].eGet([peElement.metamodelGetter()/]);
- cc.append(SetCommand.create(editingDomain, [pec.model.name.toLowerFirst()/], [peElement.metamodelGetter()/], !oldValue));
-[/template]
-
-[template public editFeature(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement) overrides editFeature ? (peElement.isCheckboxBoolean())]
-// Change value of the [peElement.name/] feature of the [pec.model.name/] element
- bot.editCheckboxFeature(wizardShell, [peElement.views->first().editorID()/]);
-[/template]
-
-[template public editFeature(f : EStructuralFeature, peElement : PropertiesEditionElement) overrides editFeature ? (peElement.isCheckboxBoolean())]
-// Change value of the [peElement.name/] feature of the [peElement.model.name/] element
- bot.editCheckBox([peElement.views->first().editorID()/], [peElement.element->select(oclIsTypeOf(components::PropertiesEditionComponent)).oclAsType(components::PropertiesEditionComponent).model.name.toLowerFirst()/].is[peElement.model.name.toUpperFirst()/]());
-[/template]
-
-[template public editPropertyFeature(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement) overrides editPropertyFeature ? (peElement.isCheckboxBoolean())]
-// Change value of the [peElement.name/] feature of the [pec.model.name/] element
- bot.editPropertyEEFCheckbox(propertiesView, [peElement.views->first().editorID()/], bot.selectNode(modelEditor, firstInstanceOf));
-[/template]
-
-[template public additionnalMethodsForWidgets(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement)]
-[/template]
-
-[comment defines the command to apply in order to obtain the expected model /]
-[template public removeExpectedModel(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement)]
-[/template]
-
-[comment defines the bot command to process to edit the expected feature /]
-[template public removeFeature(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement)]
-[/template]
-
-[template public removePropertyFeature(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement)]
-[/template]
-
-[query public isCheckboxBoolean(peElement : PropertiesEditionElement) : Boolean =
- if (not peElement.model.oclIsTypeOf(ecore::EAttribute))
- then false
- else peElement.representationName('Checkbox') and peElement.model.oclAsType(ecore::EAttribute).isBoolean()
- endif/]
diff --git a/plugins/org.eclipse.emf.eef.codegen.tests/src/org/eclipse/emf/eef/tests/codegen/services/widgets/impl/eobjectFlatComboViewerTest.mtl b/plugins/org.eclipse.emf.eef.codegen.tests/src/org/eclipse/emf/eef/tests/codegen/services/widgets/impl/eobjectFlatComboViewerTest.mtl
deleted file mode 100644
index 310d316db..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.tests/src/org/eclipse/emf/eef/tests/codegen/services/widgets/impl/eobjectFlatComboViewerTest.mtl
+++ /dev/null
@@ -1,75 +0,0 @@
-[comment
- *******************************************************************************
- * Copyright (c) 2008-2010 Obeo.
- * 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:
- * Obeo - initial API and implementation
- *******************************************************************************
- /]
-[module eobjectFlatComboViewerTest('http://www.eclipse.org/emf/eef/components/1.0.0', 'http://www.eclipse.org/emf/2002/Ecore') extends widgetTest/]
-
-[import common /]
-[import naming /]
-[import typeUtils /]
-
-[template public canGenerateTest(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement) overrides canGenerateTest ? (peElement.isEOFCVReference())]true[/template]
-
-[template public updateExpectedModel(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement) overrides updateExpectedModel ? (peElement.isEOFCVReference())]
-CompoundCommand cc = new CompoundCommand();
-[comment TODO: Reuse the commandUpdater template but the last parameter of the command creation method must be ... parameterized /]
-allInstancesOf = EEFTestsModelsUtils.getAllInstancesOf(expectedModel, [peElement.model.eType.name.toLowerFirst()/]MetaClass);
-referenceValueFor[peElement.model.name.toUpperFirst()/] = bot.changeReferenceValue(allInstancesOf, (([pec.model.name.toUpperFirst()/])[pec.model.name.toLowerFirst()/]).get[peElement.model.name.toUpperFirst()/]());
-cc.append(SetCommand.create(editingDomain, [pec.model.name.toLowerFirst()/], [peElement.metamodelGetter()/], referenceValueFor[peElement.model.name.toUpperFirst()/]));
-[/template]
-
-[template public editFeature(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement) overrides editFeature ? (peElement.isEOFCVReference())]
-// Change value of the [peElement.name/] feature of the [pec.model.name/] element
-bot.editEObjectFlatComboViewerFeature(wizardShell, [peElement.views->first().editorID()/], allInstancesOf.indexOf(referenceValueFor[peElement.model.name.toUpperFirst()/])[if (not peElement.model.required)]+1[/if]);
-[/template]
-
-[template public editFeature(f : EStructuralFeature, peElement : PropertiesEditionElement) overrides editFeature ? (peElement.isEOFCVReference())]
-// Change value of the [peElement.name/] feature of the [peElement.model.name/] element
-if ([peElement.element->select(oclIsTypeOf(components::PropertiesEditionComponent)).oclAsType(components::PropertiesEditionComponent).model.name.toLowerFirst()/].get[peElement.model.name.toUpperFirst()/]() != null) {
- allInstancesOf = EEFTestsModelsUtils.getAllInstancesOf(expectedModel, [peElement.model.eType.name.toLowerFirst()/]MetaClass);
- bot.editEObjectFlatComboViewer([peElement.views->first().editorID()/], allInstancesOf.indexOf([peElement.element->select(oclIsTypeOf(components::PropertiesEditionComponent)).oclAsType(components::PropertiesEditionComponent).model.name.toLowerFirst()/].get[peElement.model.name.toUpperFirst()/]()));
-}
-[/template]
-
-[template public editPropertyFeature(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement) overrides editPropertyFeature ? (peElement.isEOFCVReference())]
-// Change value of the [peElement.name/] feature of the [pec.model.name/] element
-bot.editPropertyEObjectFlatComboViewerFeature(propertiesView, [peElement.views->first().editorID()/], allInstancesOf.indexOf(referenceValueFor[peElement.model.name.toUpperFirst()/])[if (not peElement.model.required)]+1[/if], bot.selectNode(modelEditor, firstInstanceOf));
-[/template]
-
-[template public additionnalMethodsForWidgets(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement)]
-[/template]
-
-[comment defines the command to apply in order to obtain the expected model /]
-[template public removeExpectedModel(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement) overrides removeExpectedModel ? (peElement.isEOFCVReference())]
-CompoundCommand cc = new CompoundCommand();
-[comment TODO: Reuse the commandUpdater template but the last parameter of the command creation method must be ... parameterized /]
-allInstancesOf = EEFTestsModelsUtils.getAllInstancesOf(expectedModel, [peElement.model.eType.name.toLowerFirst()/]MetaClass);
-cc.append(SetCommand.create(editingDomain, [pec.model.name.toLowerFirst()/], [peElement.metamodelGetter()/], null));
-[/template]
-
-[comment defines the bot command to process to edit the expected feature /]
-[template public removeFeature(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement) overrides removeFeature ? (peElement.isEOFCVReference())]
-// Change value of the [peElement.name/] feature of the [pec.model.name/] element
-bot.removeEObjectFlatComboViewerFeature(wizardShell, [peElement.views->first().editorID()/]);
-
-[/template]
-
-[template public removePropertyFeature(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement) overrides removePropertyFeature ? (peElement.isEOFCVReference())]
-// Change value of the [peElement.name/] feature of the [pec.model.name/] element
-bot.removePropertyEObjectFlatComboViewerFeature(propertiesView, [peElement.views->first().editorID()/], bot.selectNode(modelEditor, firstInstanceOf));
-
-[/template]
-
-[query public isEOFCVReference(peElement : PropertiesEditionElement) : Boolean =
- if (not peElement.model.oclIsTypeOf(ecore::EReference))
- then false
- else peElement.representationName('EObjectFlatComboViewer') and peElement.model.oclAsType(ecore::EReference).isReferenceSingle()
- endif/]
\ No newline at end of file
diff --git a/plugins/org.eclipse.emf.eef.codegen.tests/src/org/eclipse/emf/eef/tests/codegen/services/widgets/impl/flatReferencesTableTest.mtl b/plugins/org.eclipse.emf.eef.codegen.tests/src/org/eclipse/emf/eef/tests/codegen/services/widgets/impl/flatReferencesTableTest.mtl
deleted file mode 100644
index 8ace60a89..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.tests/src/org/eclipse/emf/eef/tests/codegen/services/widgets/impl/flatReferencesTableTest.mtl
+++ /dev/null
@@ -1,74 +0,0 @@
-[comment
- *******************************************************************************
- * Copyright (c) 2008-2010 Obeo.
- * 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:
- * Obeo - initial API and implementation
- *******************************************************************************
- /]
-[module flatReferencesTableTest('http://www.eclipse.org/emf/eef/components/1.0.0', 'http://www.eclipse.org/emf/2002/Ecore') extends widgetTest/]
-
-[import common /]
-[import naming /]
-[import typeUtils /]
-
-[template public canGenerateTest(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement) overrides canGenerateTest ? (peElement.isFlatReferencesTableReference())]true[/template]
-
-[template public updateExpectedModel(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement) overrides updateExpectedModel ? (peElement.isFlatReferencesTableReference())]
-CompoundCommand cc = new CompoundCommand();
-[comment TODO: Reuse the commandUpdater template but the last parameter of the command creation method must be ... parameterized /]
-allInstancesOf = EEFTestsModelsUtils.getAllInstancesOf(expectedModel, [peElement.model.eType.name.toLowerFirst()/]MetaClass);
-referenceValueFor[peElement.model.name.toUpperFirst()/] = bot.changeReferenceValue(allInstancesOf, (([pec.model.name.toUpperFirst()/])[pec.model.name.toLowerFirst()/]).get[peElement.model.name.toUpperFirst()/]());
-cc.append(AddCommand.create(editingDomain, [pec.model.name.toLowerFirst()/], [peElement.metamodelGetter()/], referenceValueFor[peElement.model.name.toUpperFirst()/]));
-[/template]
-
-[template public editFeature(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement) overrides editFeature ? (peElement.isFlatReferencesTableReference())]
-// Change value of the [peElement.name/] feature of the [pec.model.name/] element
-bot.editFlatReferencesTableFeature(wizardShell, [peElement.views->first().editorID()/], 0);
-[/template]
-
-[template public editFeature(f : EStructuralFeature, peElement : PropertiesEditionElement) overrides editFeature ? (peElement.isFlatReferencesTableReference())]
-// Change value of the [peElement.name/] feature of the [peElement.model.name/] element
-bot.editFlatReferencesTable([peElement.views->first().editorID()/], 0);
-[/template]
-
-[template public editPropertyFeature(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement) overrides editPropertyFeature ? (peElement.isFlatReferencesTableReference())]
-// Change value of the [peElement.name/] feature of the [pec.model.name/] element
-bot.editPropertyFlatReferencesTableFeature(propertiesView, [peElement.views->first().editorID()/], 0, bot.selectNode(modelEditor, firstInstanceOf));
-[/template]
-
-[template public additionnalMethodsForWidgets(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement)]
-[/template]
-
-[comment defines the command to apply in order to obtain the expected model /]
-[template public removeExpectedModel(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement) overrides removeExpectedModel ? (peElement.isFlatReferencesTableReference())]
-CompoundCommand cc = new CompoundCommand();
-List allReferencedInstances = (List)[pec.model.name.toLowerFirst()/].eGet([peElement.metamodelGetter()/]);
-if (allReferencedInstances.size() > 0) {
- cc.append(RemoveCommand.create(editingDomain, [pec.model.name.toLowerFirst()/], [peElement.metamodelGetter()/], allReferencedInstances.get(0)));
-}
-else {
- throw new InputModelInvalidException();
-}
-[/template]
-
-[comment defines the bot command to process to edit the expected feature /]
-[template public removeFeature(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement) overrides removeFeature ? (peElement.isFlatReferencesTableReference())]
-// Change value of the [peElement.name/] feature of the [pec.model.name/] element
- bot.removeFlatReferencesTableFeature(wizardShell, [peElement.views->first().editorID()/]);
-[/template]
-
-[template public removePropertyFeature(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement) overrides removePropertyFeature ? (peElement.isFlatReferencesTableReference())]
-// Change value of the [peElement.name/] feature of the [pec.model.name/] element
- bot.removePropertyFlatReferencesTableFeature(propertiesView, [peElement.views->first().editorID()/], bot.selectNode(modelEditor, firstInstanceOf));
-[/template]
-
-[query public isFlatReferencesTableReference(peElement : PropertiesEditionElement) : Boolean =
- if (not peElement.model.oclIsTypeOf(ecore::EReference))
- then false
- else peElement.representationName('FlatReferencesTable') and peElement.model.oclAsType(ecore::EReference).isReferenceMany()
- endif/]
\ No newline at end of file
diff --git a/plugins/org.eclipse.emf.eef.codegen.tests/src/org/eclipse/emf/eef/tests/codegen/services/widgets/impl/multiValuedEditorTest.mtl b/plugins/org.eclipse.emf.eef.codegen.tests/src/org/eclipse/emf/eef/tests/codegen/services/widgets/impl/multiValuedEditorTest.mtl
deleted file mode 100644
index df60f9b65..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.tests/src/org/eclipse/emf/eef/tests/codegen/services/widgets/impl/multiValuedEditorTest.mtl
+++ /dev/null
@@ -1,62 +0,0 @@
-[comment
- *******************************************************************************
- * Copyright (c) 2008-2010 Obeo.
- * 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:
- * Obeo - initial API and implementation
- *******************************************************************************
- /]
-[module multiValuedEditorTest('http://www.eclipse.org/emf/eef/components/1.0.0', 'http://www.eclipse.org/emf/2002/Ecore') extends widgetTest/]
-
-[import common /]
-[import naming /]
-[import typeUtils /]
-
-[template public canGenerateTest(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement) overrides canGenerateTest ? (peElement.isMultiValuedEditorString())]true[/template]
-
-[template public updateExpectedModel(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement) overrides updateExpectedModel ? (peElement.isMultiValuedEditorString())]
-CompoundCommand cc = new CompoundCommand();
-[comment TODO: Reuse the commandUpdater template but the last parameter of the command creation method must be ... parameterized /]
-List expectedValue = new ArrayList((List)[pec.model.name.toLowerFirst()/].eGet([peElement.metamodelGetter()/]));
-expectedValue.add(UPDATED_VALUE);
-cc.append(SetCommand.create(editingDomain, [pec.model.name.toLowerFirst()/], [peElement.metamodelGetter()/], expectedValue));
-[/template]
-
-[template public editFeature(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement) overrides editFeature ? (peElement.isMultiValuedEditorString())]
-// Change value of the [peElement.name/] feature of the [pec.model.name/] element
- bot.editMultiValuedEditorFeature(wizardShell, [peElement.views->first().editorID()/], UPDATED_VALUE);
-[/template]
-
-[template public editFeature(f : EStructuralFeature, peElement : PropertiesEditionElement) overrides editFeature ? (peElement.isMultiValuedEditorString())]
-// Change value of the [peElement.name/] feature of the [peElement.model.name/] element
- bot.editMultiValuedEditor([peElement.views->first().editorID()/], [peElement.element->select(oclIsTypeOf(components::PropertiesEditionComponent)).oclAsType(components::PropertiesEditionComponent).model.name.toLowerFirst()/].get[peElement.model.name.toUpperFirst()/]());
-[/template]
-
-[template public editPropertyFeature(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement) overrides editPropertyFeature ? (peElement.isMultiValuedEditorString())]
-// Change value of the [peElement.name/] feature of the [pec.model.name/] element
- bot.editPropertyMultiValuedEditorFeature(propertiesView, [peElement.views->first().editorID()/], UPDATED_VALUE, bot.selectNode(modelEditor, firstInstanceOf));
-[/template]
-
-[template public additionnalMethodsForWidgets(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement)]
-[/template]
-
-[comment defines the command to apply in order to obtain the expected model /]
-[template public removeExpectedModel(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement)]
-[/template]
-
-[comment defines the bot command to process to edit the expected feature /]
-[template public removeFeature(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement)]
-[/template]
-
-[template public removePropertyFeature(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement)]
-[/template]
-
-[query public isMultiValuedEditorString(peElement : PropertiesEditionElement) : Boolean =
- if (not peElement.model.oclIsTypeOf(ecore::EAttribute))
- then false
- else peElement.representationName('MultiValuedEditor') and peElement.model.oclAsType(ecore::EAttribute).isString()
- endif/]
diff --git a/plugins/org.eclipse.emf.eef.codegen.tests/src/org/eclipse/emf/eef/tests/codegen/services/widgets/impl/radioTest.mtl b/plugins/org.eclipse.emf.eef.codegen.tests/src/org/eclipse/emf/eef/tests/codegen/services/widgets/impl/radioTest.mtl
deleted file mode 100644
index e5f22fe82..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.tests/src/org/eclipse/emf/eef/tests/codegen/services/widgets/impl/radioTest.mtl
+++ /dev/null
@@ -1,60 +0,0 @@
-[comment
- *******************************************************************************
- * Copyright (c) 2008-2010 Obeo.
- * 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:
- * Obeo - initial API and implementation
- *******************************************************************************
- /]
-[module radioTest('http://www.eclipse.org/emf/eef/components/1.0.0', 'http://www.eclipse.org/emf/2002/Ecore') extends widgetTest/]
-
-[import common /]
-[import naming /]
-[import typeUtils /]
-
-[template public canGenerateTest(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement) overrides canGenerateTest ? (peElement.isRadioEnum())]true[/template]
-
-[template public updateExpectedModel(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement) overrides updateExpectedModel ? (peElement.isRadioEnum())]
-CompoundCommand cc = new CompoundCommand();
- [comment TODO: Reuse the commandUpdater template but the last parameter of the command creation method must be ... parameterized /]
- cc.append(SetCommand.create(editingDomain, [pec.model.name.toLowerFirst()/], [peElement.metamodelGetter()/], [peElement.model.eContainingClass.metamodelPackage()/].eINSTANCE.get[peElement.model.eType.name/]().getEEnumLiteralByLiteral(enumValueFor[peElement.model.name.toUpperFirst()/].toString()).getInstance()));
-[/template]
-
-[template public editFeature(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement) overrides editFeature ? (peElement.isRadioEnum())]
-// Change value of the [peElement.name/] feature of the [pec.model.name/] element
- bot.editRadioFeature(wizardShell, [peElement.views->first().editorID()/], enumValueFor[peElement.model.name.toUpperFirst()/]);
-[/template]
-
-[template public editFeature(f : EStructuralFeature, peElement : PropertiesEditionElement) overrides editFeature ? (peElement.isRadioEnum())]
-// Change value of the [peElement.name/] feature of the [peElement.model.name/] element
- bot.editRadio([peElement.views->first().owningViewsRepository().messagesProvider()/].[peElement.views->first().editorKey(peElement.views->first().owningView())/], [peElement.element->select(oclIsTypeOf(components::PropertiesEditionComponent)).oclAsType(components::PropertiesEditionComponent).model.name.toLowerFirst()/].get[peElement.model.name.toUpperFirst()/]());
-[/template]
-
-[template public editPropertyFeature(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement) overrides editPropertyFeature ? (peElement.isRadioEnum())]
-// Change value of the [peElement.name/] feature of the [pec.model.name/] element
- bot.editPropertyRadioFeature(propertiesView, [peElement.views->first().editorID()/], enumValueFor[peElement.model.name.toUpperFirst()/], bot.selectNode(modelEditor, firstInstanceOf));
-[/template]
-
-[template public additionnalMethodsForWidgets(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement)]
-[/template]
-
-[comment defines the command to apply in order to obtain the expected model /]
-[template public removeExpectedModel(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement)]
-[/template]
-
-[comment defines the bot command to process to edit the expected feature /]
-[template public removeFeature(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement)]
-[/template]
-
-[template public removePropertyFeature(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement)]
-[/template]
-
-[query public isRadioEnum(peElement : PropertiesEditionElement) : Boolean =
- if (not peElement.model.oclIsTypeOf(ecore::EAttribute))
- then false
- else peElement.representationName('Radio') and peElement.model.oclAsType(ecore::EAttribute).isEnum()
- endif/]
\ No newline at end of file
diff --git a/plugins/org.eclipse.emf.eef.codegen.tests/src/org/eclipse/emf/eef/tests/codegen/services/widgets/impl/referencesTableTest.mtl b/plugins/org.eclipse.emf.eef.codegen.tests/src/org/eclipse/emf/eef/tests/codegen/services/widgets/impl/referencesTableTest.mtl
deleted file mode 100644
index eadda77fb..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.tests/src/org/eclipse/emf/eef/tests/codegen/services/widgets/impl/referencesTableTest.mtl
+++ /dev/null
@@ -1,77 +0,0 @@
-[comment
- *******************************************************************************
- * Copyright (c) 2008-2010 Obeo.
- * 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:
- * Obeo - initial API and implementation
- *******************************************************************************
- /]
-[module referencesTableTest('http://www.eclipse.org/emf/eef/components/1.0.0', 'http://www.eclipse.org/emf/2002/Ecore') extends widgetTest/]
-
-[import common /]
-[import naming /]
-[import typeUtils /]
-
-[template public canGenerateTest(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement) overrides canGenerateTest ? (peElement.isReferencesTableReference())]true[/template]
-
-[template public updateExpectedModel(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement) overrides updateExpectedModel ? (peElement.isReferencesTableReference())]
-CompoundCommand cc = new CompoundCommand();
-[comment TODO: Reuse the commandUpdater template but the last parameter of the command creation method must be ... parameterized /]
-allInstancesOf = EEFTestsModelsUtils.getAllInstancesOf(expectedModel, [peElement.model.eType.name.toLowerFirst()/]MetaClass);
-referenceValueFor[peElement.model.name.toUpperFirst()/] = bot.changeReferenceValue(allInstancesOf, (([pec.model.name.toUpperFirst()/])[pec.model.name.toLowerFirst()/]).get[peElement.model.name.toUpperFirst()/]());
-cc.append(AddCommand.create(editingDomain, [pec.model.name.toLowerFirst()/], [peElement.metamodelGetter()/], referenceValueFor[peElement.model.name.toUpperFirst()/]));
-[/template]
-
-[template public removeExpectedModel(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement) overrides removeExpectedModel ? (peElement.isReferencesTableReference())]
-CompoundCommand cc = new CompoundCommand();
-List allReferencedInstances = (List)[pec.model.name.toLowerFirst()/].eGet([peElement.metamodelGetter()/]);
-if (allReferencedInstances.size() > 0) {
- cc.append(RemoveCommand.create(editingDomain, [pec.model.name.toLowerFirst()/], [peElement.metamodelGetter()/], allReferencedInstances.get(0)));
-}
-else {
- throw new InputModelInvalidException();
-}
-[/template]
-
-[template public editFeature(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement) overrides editFeature ? (peElement.isReferencesTableReference())]
-// Change value of the [peElement.name/] feature of the [pec.model.name/] element
- bot.editReferencesTableFeature(wizardShell, [peElement.views->first().editorID()/], 0);
-[/template]
-
-[template public editFeature(f : EStructuralFeature, peElement : PropertiesEditionElement) overrides editFeature ? (peElement.isReferencesTableReference())]
-// Change value of the [peElement.name/] feature of the [peElement.model.name/] element
- bot.editReferencesTable([peElement.views->first().owningViewsRepository().messagesProvider()/].[peElement.views->first().editorKey(peElement.views->first().owningView())/], [peElement.element->select(oclIsTypeOf(components::PropertiesEditionComponent)).oclAsType(components::PropertiesEditionComponent).model.name.toLowerFirst()/].get[peElement.model.name.toUpperFirst()/]());
-[/template]
-
-[template public editPropertyFeature(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement) overrides editPropertyFeature ? (peElement.isReferencesTableReference())]
-// Change value of the [peElement.name/] feature of the [pec.model.name/] element
- bot.editPropertyReferencesTableFeature(propertiesView, [peElement.views->first().editorID()/], 0, bot.selectNode(modelEditor, firstInstanceOf));
-[/template]
-
-[template public removeFeature(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement) overrides removeFeature ? (peElement.isReferencesTableReference())]
-// Change value of the [peElement.name/] feature of the [pec.model.name/] element
- bot.removeReferencesTableFeature(wizardShell, [peElement.views->first().editorID()/], 0);
-[/template]
-
-[template public removeFeature(f : EStructuralFeature, peElement : PropertiesEditionElement) overrides removeFeature ? (peElement.isReferencesTableReference())]
-// Change value of the [peElement.name/] feature of the [peElement.model.name/] element
- bot.removeReferencesTable([peElement.views->first().owningViewsRepository().messagesProvider()/].[peElement.views->first().editorKey(peElement.views->first().owningView())/], [peElement.element->select(oclIsTypeOf(components::PropertiesEditionComponent)).oclAsType(components::PropertiesEditionComponent).model.name.toLowerFirst()/].get[peElement.model.name.toUpperFirst()/]());
-[/template]
-
-[template public removePropertyFeature(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement) overrides removePropertyFeature ? (peElement.isReferencesTableReference())]
-// Change value of the [peElement.name/] feature of the [pec.model.name/] element
- bot.removePropertyReferencesTableFeature(propertiesView, [peElement.views->first().editorID()/], 0, bot.selectNode(modelEditor, firstInstanceOf));
-[/template]
-
-[template public additionnalMethodsForWidgets(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement)]
-[/template]
-
-[query public isReferencesTableReference(peElement : PropertiesEditionElement) : Boolean =
- if (not peElement.model.oclIsTypeOf(ecore::EReference))
- then false
- else peElement.representationName('ReferencesTable') and peElement.model.oclAsType(ecore::EReference).isReferenceMany()
- endif/]
\ No newline at end of file
diff --git a/plugins/org.eclipse.emf.eef.codegen.tests/src/org/eclipse/emf/eef/tests/codegen/services/widgets/impl/tableCompositionTest.mtl b/plugins/org.eclipse.emf.eef.codegen.tests/src/org/eclipse/emf/eef/tests/codegen/services/widgets/impl/tableCompositionTest.mtl
deleted file mode 100644
index b7e08ddd7..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.tests/src/org/eclipse/emf/eef/tests/codegen/services/widgets/impl/tableCompositionTest.mtl
+++ /dev/null
@@ -1,114 +0,0 @@
-[comment
- *******************************************************************************
- * Copyright (c) 2008-2010 Obeo.
- * 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:
- * Obeo - initial API and implementation
- *******************************************************************************
- /]
-[module tableCompositionTest('http://www.eclipse.org/emf/eef/components/1.0.0', 'http://www.eclipse.org/emf/2002/Ecore') extends widgetTest/]
-
-[import common /]
-[import naming /]
-[import typeUtils /]
-
-[template public canGenerateTest(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement) overrides canGenerateTest ? (peElement.isTableComposition() and pec.model<>peElement.model.eType)]true[/template]
-
-[template public updateExpectedModel(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement) overrides updateExpectedModel ? (peElement.isTableComposition())]
-EClass [peElement.model.eType.name.toLowerFirst()/]MetaClass = [peElement.model.eType.ePackage.metamodelPackage()/].eINSTANCE.get[peElement.model.eType.name/]();
-EObject [peElement.model.eType.name.toLowerFirst()/] = EEFTestsModelsUtils.getFirstInstanceOf(expectedModel, [peElement.model.eType.name.toLowerFirst()/]MetaClass);
-if ([peElement.model.eType.name.toLowerFirst()/] == null)
- throw new InputModelInvalidException([peElement.model.eType.name.toLowerFirst()/]MetaClass.getName());
-CompoundCommand cc = new CompoundCommand();
-[comment TODO: Reuse the commandUpdater template but the last parameter of the command creation method must be ... parameterized /]
-cc.append(AddCommand.create(editingDomain, [pec.model.name.toLowerFirst()/], [peElement.metamodelGetter()/], EcoreUtil.copy([peElement.model.eType.name.toLowerFirst()/])));
-[/template]
-
-[template public editFeature(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement) overrides editFeature ? (peElement.isTableComposition())]
-// Change value of the [peElement.name/] feature of the [pec.model.name/] element
-editTableComposition[peElement.name/]Feature(wizardShell);
-[/template]
-
-[template public editFeature(f : EStructuralFeature, peElement : PropertiesEditionElement) overrides editFeature ? (peElement.isTableComposition())]
-[/template]
-
-[template public editPropertyFeature(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement) overrides editPropertyFeature ? (peElement.isTableComposition())]
-// Change value of the [peElement.name/] feature of the [pec.model.name/] element
-editTableComposition[peElement.name/]Feature(propertiesView, bot.selectNode(modelEditor, firstInstanceOf));
-[/template]
-
-[comment overrides this template if additional methods are needed/]
-[template public additionalMethodsForTableComposition(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement) overrides additionalMethodsForTableComposition ? (peElement.isTableComposition())]
- /**
- * Edit the table composition
- * @param wizardShell
- */
- protected void editTableComposition[peElement.name/]Feature(SWTBotShell wizardShell) throws WidgetInvalidException{
- bot.activateShell(wizardShell);
- bot.sleep(500);
- bot.addButtonTableComposition([peElement.views->first().editorID()/]).click();
- editTableCompositionFor[peElement.name/]Feature();
- bot.closeShellWithFinishButton(wizardShell);
- }
-[/template]
-
-[template public additionnalMethodsForWidgets(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement) overrides additionnalMethodsForWidgets ? (peElement.isTableComposition())]
- /**
- * Edit the feature in the table composition
- */
- protected void editTableCompositionFor[peElement.name/]Feature() throws WidgetInvalidException {
- EClass [peElement.model.eType.name.toLowerFirst()/]MetaClass = [peElement.model.eType.ePackage.metamodelPackage()/].eINSTANCE.get[peElement.model.eType.name/]();
- SWTBotShell shellTable = bot.shell([peElement.model.eType.name.toLowerFirst()/]MetaClass.getName());
- bot.activateShell(shellTable);
- [peElement.model.eType.name/] [peElement.model.eType.name.toLowerFirst()/] = ([peElement.model.eType.name/]) EEFTestsModelsUtils.getFirstInstanceOf(bot.getActiveResource(), [peElement.model.eType.name.toLowerFirst()/]MetaClass);
- [for (f : ecore::EStructuralFeature | peElement.model.eType.eContents()->select(oclIsKindOf(ecore::EStructuralFeature)).oclAsType(ecore::EStructuralFeature)->select(feature : ecore::EStructuralFeature | not (feature.isContainmentSingle() or feature.isContainmentMany())))]
- bot.sleep(500);
- [editFeature(f, involvedPropertiesEditionElement(peElement, f))/]
- [/for]
- bot.closeShellWithFinishButton(shellTable);
- }
-[/template]
-
-[comment overrides this template if additional methods are needed/]
-[template public additionalMethodsPropertiesForTableComposition(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement) overrides additionalMethodsPropertiesForTableComposition ? (peElement.isTableComposition())]
- /**
- * Edit the table composition
- * @param wizardShell
- */
- protected void editTableComposition[peElement.name/]Feature(SWTBotView propertyView, SWTBotTreeItem selectNode) throws WidgetInvalidException {
- SWTEEFBotHelper helper = new SWTEEFBotHelper(propertyView.bot());
- helper.addButtonTableComposition([peElement.views->first().editorID()/]).click();
- editTableCompositionFor[peElement.name/]Feature();
- selectNode.select();
- }
-[/template]
-
-[comment defines the command to apply in order to obtain the expected model /]
-[template public removeExpectedModel(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement) overrides removeExpectedModel ? (peElement.isTableComposition())]
-CompoundCommand cc = new CompoundCommand();
-[comment TODO: Reuse the commandUpdater template but the last parameter of the command creation method must be ... parameterized /]
-allInstancesOf = (([pec.model.name.toUpperFirst()/])[pec.model.name.toLowerFirst()/]).get[peElement.model.name.toUpperFirst()/]();
-EObject firstInstanceOf = EEFTestsModelsUtils.getFirstInstanceOf(allInstancesOf, [peElement.model.eType.name.toLowerFirst()/]MetaClass);
-cc.append(RemoveCommand.create(editingDomain, [pec.model.name.toLowerFirst()/], [peElement.metamodelGetter()/], firstInstanceOf));
-[/template]
-
-[comment defines the bot command to process to edit the expected feature /]
-[template public removeFeature(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement) overrides removeFeature ? (peElement.isTableComposition())]
-// Change value of the [peElement.name/] feature of the [pec.model.name/] element
-bot.removeTableCompositionFeature(wizardShell, [peElement.views->first().editorID()/]);
-[/template]
-
-[template public removePropertyFeature(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement) overrides removePropertyFeature ? (peElement.isTableComposition())]
-// Change value of the [peElement.name/] feature of the [pec.model.name/] element
-bot.removePropertyTableCompositionFeature(propertiesView, [peElement.views->first().editorID()/], bot.selectNode(modelEditor, firstInstanceOf));
-[/template]
-
-[query public isTableComposition(peElement : PropertiesEditionElement) : Boolean =
- if (not peElement.model.oclIsTypeOf(ecore::EReference))
- then false
- else (peElement.representationName('TableComposition')) and (peElement.model.oclAsType(ecore::EReference).isContainmentMany() or peElement.model.oclAsType(ecore::EReference).isContainmentSingle())
- endif/]
diff --git a/plugins/org.eclipse.emf.eef.codegen.tests/src/org/eclipse/emf/eef/tests/codegen/services/widgets/impl/textTest.mtl b/plugins/org.eclipse.emf.eef.codegen.tests/src/org/eclipse/emf/eef/tests/codegen/services/widgets/impl/textTest.mtl
deleted file mode 100644
index a9d0c446f..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.tests/src/org/eclipse/emf/eef/tests/codegen/services/widgets/impl/textTest.mtl
+++ /dev/null
@@ -1,58 +0,0 @@
-[comment
- *******************************************************************************
- * Copyright (c) 2008-2010 Obeo.
- * 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:
- * Obeo - initial API and implementation
- *******************************************************************************
- /]
-[module textTest('http://www.eclipse.org/emf/eef/components/1.0.0', 'http://www.eclipse.org/emf/2002/Ecore') extends widgetTest/]
-
-[import common /]
-[import naming /]
-[import typeUtils /]
-
-[template public canGenerateTest(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement) overrides canGenerateTest ? (peElement.isTextString())]true[/template]
-
-[template public updateExpectedModel(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement) overrides updateExpectedModel ? (peElement.isTextString())]
-CompoundCommand cc = new CompoundCommand();
- [comment TODO: Reuse the commandUpdater template but the last parameter of the command creation method must be ... parameterized /]
- cc.append(SetCommand.create(editingDomain, [pec.model.name.toLowerFirst()/], [peElement.metamodelGetter()/], UPDATED_VALUE));
-[/template]
-
-[template public editFeature(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement) overrides editFeature ? (peElement.isTextString())]
-// Change value of the [peElement.name/] feature of the [pec.model.name/] element
- bot.editTextFeature(wizardShell, [peElement.views->first().editorID()/], UPDATED_VALUE);
-[/template]
-
-[template public editFeature(f : EStructuralFeature, peElement : PropertiesEditionElement) overrides editFeature ? (peElement.isTextString())]
-// Change value of the [peElement.name/] feature of the [peElement.model.name/] element
- bot.editEEFText([peElement.views->first().editorID()/], [peElement.element->select(oclIsTypeOf(components::PropertiesEditionComponent)).oclAsType(components::PropertiesEditionComponent).model.name.toLowerFirst()/].get[peElement.model.name.toUpperFirst()/]());
-[/template]
-
-[template public editPropertyFeature(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement) overrides editPropertyFeature ? (peElement.isTextString())]
-// Change value of the [peElement.name/] feature of the [pec.model.name/] element
- bot.editPropertyEEFText(propertiesView, [peElement.views->first().editorID()/], UPDATED_VALUE, bot.selectNode(modelEditor, firstInstanceOf));
-[/template]
-
-[template public additionnalMethodsForWidgets(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement)]
-[/template]
-
-[comment defines the command to apply in order to obtain the expected model /]
-[template public removeExpectedModel(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement)]
-[/template]
-
-[comment defines the bot command to process to edit the expected feature /]
-[template public removeFeature(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement)]
-[/template]
-
-[template public removePropertyFeature(pec : PropertiesEditionComponent, peElement : PropertiesEditionElement)]
-[/template]
-
-[query public isTextString(peElement : PropertiesEditionElement) : Boolean =
- peElement <> null and peElement.model.oclIsTypeOf(ecore::EAttribute)
- /]
diff --git a/plugins/org.eclipse.emf.eef.codegen.uml/.classpath b/plugins/org.eclipse.emf.eef.codegen.uml/.classpath
deleted file mode 100644
index 64c5e31b7..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.uml/.classpath
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
-
-
-
-
diff --git a/plugins/org.eclipse.emf.eef.codegen.uml/.gitignore b/plugins/org.eclipse.emf.eef.codegen.uml/.gitignore
deleted file mode 100644
index d44cd35e0..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.uml/.gitignore
+++ /dev/null
@@ -1,2 +0,0 @@
-target
-bin
diff --git a/plugins/org.eclipse.emf.eef.codegen.uml/.project b/plugins/org.eclipse.emf.eef.codegen.uml/.project
deleted file mode 100644
index 5ba7c78c1..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.uml/.project
+++ /dev/null
@@ -1,42 +0,0 @@
-
-
- org.eclipse.emf.eef.codegen.uml
-
-
-
-
-
- org.eclipse.jdt.core.javabuilder
-
-
-
-
- org.eclipse.pde.ManifestBuilder
-
-
-
-
- org.eclipse.pde.SchemaBuilder
-
-
-
-
- org.eclipse.acceleo.ide.ui.acceleoBuilder
-
-
- compliance
- pragmatic
-
-
- resource.kind
- binary
-
-
-
-
-
- org.eclipse.acceleo.ide.ui.acceleoNature
- org.eclipse.pde.PluginNature
- org.eclipse.jdt.core.javanature
-
-
diff --git a/plugins/org.eclipse.emf.eef.codegen.uml/.settings/org.eclipse.jdt.core.prefs b/plugins/org.eclipse.emf.eef.codegen.uml/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index d1c0bf949..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.uml/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,6 +0,0 @@
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
-org.eclipse.jdt.core.compiler.compliance=1.5
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.source=1.5
diff --git a/plugins/org.eclipse.emf.eef.codegen.uml/META-INF/MANIFEST.MF b/plugins/org.eclipse.emf.eef.codegen.uml/META-INF/MANIFEST.MF
deleted file mode 100644
index e2535ac8f..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.uml/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,16 +0,0 @@
-Manifest-Version: 1.0
-Bundle-ManifestVersion: 2
-Bundle-Name: MTL Uml Module Runtime Plug-in
-Bundle-SymbolicName: org.eclipse.emf.eef.codegen.uml;singleton:=true
-Bundle-Version: 1.5.2.qualifier
-Bundle-Vendor: Eclipse.org
-Require-Bundle: org.eclipse.core.runtime,
- org.eclipse.emf.ecore,
- org.eclipse.emf.ecore.xmi,
- org.eclipse.ocl,
- org.eclipse.ocl.ecore,
- org.eclipse.acceleo.model,
- org.eclipse.acceleo.engine,
- org.eclipse.emf.eef.codegen
-Bundle-RequiredExecutionEnvironment: J2SE-1.5
-
diff --git a/plugins/org.eclipse.emf.eef.codegen.uml/about.html b/plugins/org.eclipse.emf.eef.codegen.uml/about.html
deleted file mode 100644
index f3a55ce5f..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.uml/about.html
+++ /dev/null
@@ -1,28 +0,0 @@
-
-
-
-
-About
-
-
-
About This Content
-
-
June 15, 2010
-
License
-
-
The Eclipse Foundation makes available all content in this plug-in ("Content"). Unless otherwise
-indicated below, the Content is provided to you under the terms and conditions of the
-Eclipse Public License Version 1.0 ("EPL"). A copy of the EPL is available
-at http://www.eclipse.org/legal/epl-v10.html.
-For purposes of the EPL, "Program" will mean the Content.
-
-
If you did not receive this Content directly from the Eclipse Foundation, the Content is
-being redistributed by another party ("Redistributor") and different terms and conditions may
-apply to your use of any object code in the Content. Check the Redistributor's license that was
-provided with the Content. If no such license exists, contact the Redistributor. Unless otherwise
-indicated below, the terms and conditions of the EPL still apply to any source code in the Content
-and such source code may be obtained at http://www.eclipse.org.
-
-
-
\ No newline at end of file
diff --git a/plugins/org.eclipse.emf.eef.codegen.uml/build.acceleo b/plugins/org.eclipse.emf.eef.codegen.uml/build.acceleo
deleted file mode 100644
index 5cc4ffb11..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.uml/build.acceleo
+++ /dev/null
@@ -1,26 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/plugins/org.eclipse.emf.eef.codegen.uml/build.properties b/plugins/org.eclipse.emf.eef.codegen.uml/build.properties
deleted file mode 100644
index 10e9ea302..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.uml/build.properties
+++ /dev/null
@@ -1,25 +0,0 @@
-###############################################################################
-# Copyright (c) 2008, 2010 Obeo.
-# 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:
-# Obeo - initial API and implementation
-###############################################################################
-source.. = src/,\
- .emtl/
-output.. = bin/
-bin.includes = META-INF/,\
- .,\
- plugin.xml,\
- build.acceleo,\
- about.html
-customBuildCallbacks = build.acceleo
-src.includes = META-INF/,\
- build.acceleo,\
- build.properties,\
- plugin.xml,\
- src/,\
- about.html
diff --git a/plugins/org.eclipse.emf.eef.codegen.uml/plugin.xml b/plugins/org.eclipse.emf.eef.codegen.uml/plugin.xml
deleted file mode 100644
index 17c6e1b2b..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.uml/plugin.xml
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
-
-
-
-
-
-
-
diff --git a/plugins/org.eclipse.emf.eef.codegen.uml/pom.xml b/plugins/org.eclipse.emf.eef.codegen.uml/pom.xml
deleted file mode 100644
index f205c395a..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.uml/pom.xml
+++ /dev/null
@@ -1,74 +0,0 @@
-
-
-
- 4.0.0
-
-
- org.eclipse.emf
- org.eclipse.emf.eef.releng.parent
- ../../releng/org.eclipse.emf.eef.releng.parent
- 1.5.2-SNAPSHOT
-
-
- org.eclipse.emf
- org.eclipse.emf.eef.codegen.uml
- 1.5.2-SNAPSHOT
- eclipse-plugin
-
- EEF Codegen for UML Plug-in
-
-
-
-
- org.eclipse.acceleo
- org.eclipse.acceleo.maven
- 3.5.0-SNAPSHOT
-
-
- compile
-
- acceleo-compile
-
-
-
-
- false
- true
-
- ${project.basedir}
-
-
- src
-
-
-
-
- org.eclipse.emf:org.eclipse.emf.eef.codegen
-
-
-
- org.eclipse.emf.ecore.EcorePackage
- org.eclipse.emf.eef.components.ComponentsPackage
- org.eclipse.emf.eef.mapping.MappingPackage
- org.eclipse.emf.eef.views.ViewsPackage
- org.eclipse.emf.eef.EEFGen.EEFGenPackage
- org.eclipse.emf.eef.mapping.filters.FiltersPackage
- org.eclipse.emf.eef.mapping.navigation.NavigationPackage
- org.eclipse.emf.codegen.ecore.genmodel.GenModelPackage
-
- org.eclipse.acceleo.maven.AcceleoURIHandler
-
-
-
-
-
diff --git a/plugins/org.eclipse.emf.eef.codegen.uml/src/org/eclipse/emf/eef/codegen/services/umlCommon.mtl b/plugins/org.eclipse.emf.eef.codegen.uml/src/org/eclipse/emf/eef/codegen/services/umlCommon.mtl
deleted file mode 100644
index 381464b67..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.uml/src/org/eclipse/emf/eef/codegen/services/umlCommon.mtl
+++ /dev/null
@@ -1,18 +0,0 @@
-[comment
- *******************************************************************************
- * Copyright (c) 2008-2010 Obeo.
- * 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:
- * Obeo - initial API and implementation
- *******************************************************************************
- /]
-[module umlCommon('http://www.eclipse.org/emf/2002/Ecore', 'http://www.eclipse.org/emf/2002/GenModel', 'http://www.eclipse.org/emf/eef/mapping/1.0.0', 'http://www.eclipse.org/emf/eef/views/1.0.0', 'http://www.eclipse.org/emf/eef/components/1.0.0', 'http://www.eclipse.org/emf/eef/generation/1.0.0') extends org::eclipse::emf::eef::codegen::services::common/]
-
-[comment ==== For multiples model features getters (thanks to the specific UML2 Codegen !) ==== /]
-[template public toMany(s: String) overrides toMany]
-[if (s.endsWith('y') and not s.endsWith('By'))][s.substring(1, s.size()-1).concat('ies')/][elseif (s.endsWith('ex'))][s.substring(1, s.size()-2).concat('ices')/][elseif (s.endsWith('Data') or s.endsWith('ctual') or s = 'type')][s/][elseif not (s.endsWith('s'))][s.concat('s')/][else][s/][/if]
-[/template]
\ No newline at end of file
diff --git a/plugins/org.eclipse.emf.eef.codegen.uml/src/org/eclipse/emf/eef/codegen/services/umlComponentUtils.mtl b/plugins/org.eclipse.emf.eef.codegen.uml/src/org/eclipse/emf/eef/codegen/services/umlComponentUtils.mtl
deleted file mode 100644
index e59db009c..000000000
--- a/plugins/org.eclipse.emf.eef.codegen.uml/src/org/eclipse/emf/eef/codegen/services/umlComponentUtils.mtl
+++ /dev/null
@@ -1,31 +0,0 @@
-[comment
- *******************************************************************************
- * Copyright (c) 2008-2010 Obeo.
- * 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:
- * Obeo - initial API and implementation
- *******************************************************************************
- /]
-[module umlComponentUtils('http://www.eclipse.org/emf/eef/views/1.0.0', 'http://www.eclipse.org/emf/eef/components/1.0.0', 'http://www.eclipse.org/emf/2002/Ecore') extends org::eclipse::emf::eef::codegen::widgets::impl::checkbox::checkboxControl/]
-
-[import org::eclipse::emf::eef::codegen::services::common /]
-[import org::eclipse::emf::eef::codegen::services::naming /]
-[import org::eclipse::emf::eef::codegen::services::typeUtils /]
-
-[template public updater(editionElement : PropertiesEditionElement, view : View, pec : PropertiesEditionComponent) overrides updater ? (editionElement.model.isAttributeSingle() and editionElement.representationName('Checkbox'))]
-[if (editionElement.model.oclAsType("EAttribute").eType.instanceClassName = 'boolean')]
- [if (editionElement.model.name.startsWith('is'))]
-[view.viewIdentifier(pec)/].[editionElement.views->first().viewPackageSetter()/]([pec.model.name.toJavaIdentifier()/].[editionElement.model.name.toJavaClassifier().toLowerFirst()/]());
- [else]
-[view.viewIdentifier(pec)/].[editionElement.views->first().viewPackageSetter()/]([pec.model.name.toJavaIdentifier()/].is[editionElement.model.name.toJavaClassifier()/]());
- [/if]
-[elseif (editionElement.model.oclAsType(ecore::EAttribute).isBoolean())]
-[view.viewIdentifier(pec)/].[editionElement.views->first().viewPackageSetter()/]([pec.model.name.toJavaIdentifier()/].get[editionElement.model.name.toJavaClassifier()/]());
-[else]
-//FIXME invalid case in updater(), Case : model = Attribute(1) : [editionElement.model.name/] - view = Checkbox
-[/if]
-[/template]
diff --git a/plugins/org.eclipse.emf.eef.codegen/.checkstyle b/plugins/org.eclipse.emf.eef.codegen/.checkstyle
deleted file mode 100644
index 48589e9cb..000000000
--- a/plugins/org.eclipse.emf.eef.codegen/.checkstyle
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-
-
-
-
-
-
-
-
diff --git a/plugins/org.eclipse.emf.eef.codegen/.classpath b/plugins/org.eclipse.emf.eef.codegen/.classpath
deleted file mode 100644
index ed5ee00d9..000000000
--- a/plugins/org.eclipse.emf.eef.codegen/.classpath
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
-
-
-
-
-
-
diff --git a/plugins/org.eclipse.emf.eef.codegen/.gitignore b/plugins/org.eclipse.emf.eef.codegen/.gitignore
deleted file mode 100644
index 7568f78ff..000000000
--- a/plugins/org.eclipse.emf.eef.codegen/.gitignore
+++ /dev/null
@@ -1,3 +0,0 @@
-tasks
-target
-bin
\ No newline at end of file
diff --git a/plugins/org.eclipse.emf.eef.codegen/.project b/plugins/org.eclipse.emf.eef.codegen/.project
deleted file mode 100644
index 1b67ceb2a..000000000
--- a/plugins/org.eclipse.emf.eef.codegen/.project
+++ /dev/null
@@ -1,52 +0,0 @@
-
-
- org.eclipse.emf.eef.codegen
-
-
-
-
-
- org.eclipse.jdt.core.javabuilder
-
-
-
-
- org.eclipse.pde.ManifestBuilder
-
-
-
-
- org.eclipse.pde.SchemaBuilder
-
-
-
-
- org.eclipse.acceleo.ide.ui.acceleoBuilder
-
-
- compilation.kind
- compilation.absolute.path
-
-
- compliance
- pragmatic
-
-
- resource.kind
- binary
-
-
-
-
- org.eclipse.pde.api.tools.apiAnalysisBuilder
-
-
-
-
-
- org.eclipse.acceleo.ide.ui.acceleoNature
- org.eclipse.pde.PluginNature
- org.eclipse.jdt.core.javanature
- org.eclipse.pde.api.tools.apiAnalysisNature
-
-
diff --git a/plugins/org.eclipse.emf.eef.codegen/.settings/org.eclipse.core.resources.prefs b/plugins/org.eclipse.emf.eef.codegen/.settings/org.eclipse.core.resources.prefs
deleted file mode 100644
index e45dd9b0e..000000000
--- a/plugins/org.eclipse.emf.eef.codegen/.settings/org.eclipse.core.resources.prefs
+++ /dev/null
@@ -1,3 +0,0 @@
-#Tue Feb 17 11:51:40 CET 2009
-eclipse.preferences.version=1
-encoding/=UTF-8
diff --git a/plugins/org.eclipse.emf.eef.codegen/.settings/org.eclipse.core.runtime.prefs b/plugins/org.eclipse.emf.eef.codegen/.settings/org.eclipse.core.runtime.prefs
deleted file mode 100644
index 91c7db9ae..000000000
--- a/plugins/org.eclipse.emf.eef.codegen/.settings/org.eclipse.core.runtime.prefs
+++ /dev/null
@@ -1,3 +0,0 @@
-#Tue Feb 17 11:51:40 CET 2009
-eclipse.preferences.version=1
-line.separator=\n
diff --git a/plugins/org.eclipse.emf.eef.codegen/META-INF/MANIFEST.MF b/plugins/org.eclipse.emf.eef.codegen/META-INF/MANIFEST.MF
deleted file mode 100644
index 3d31d8eb8..000000000
--- a/plugins/org.eclipse.emf.eef.codegen/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,56 +0,0 @@
-Manifest-Version: 1.0
-Bundle-ManifestVersion: 2
-Bundle-Name: EEF Standard Acceleo generator
-Bundle-SymbolicName: org.eclipse.emf.eef.codegen;singleton:=true
-Bundle-Version: 1.5.2.qualifier
-Bundle-Activator: org.eclipse.emf.eef.codegen.EEFCodegenPlugin
-Bundle-Vendor: Eclipse Modeling Project
-Require-Bundle: org.eclipse.ui;bundle-version="3.4.0",
- org.eclipse.ui.ide;bundle-version="3.4.0",
- org.eclipse.jface.text;bundle-version="3.4.0";resolution:=optional,
- org.eclipse.core.runtime;bundle-version="3.4.0",
- org.eclipse.core.resources;bundle-version="3.4.0",
- org.eclipse.emf.ecore;bundle-version="2.4.0",
- org.eclipse.emf.ecore.xmi;bundle-version="2.4.0",
- org.eclipse.emf.codegen.ecore;bundle-version="2.4.0",
- org.eclipse.emf.edit;bundle-version="2.4.0",
- org.eclipse.ocl;bundle-version="1.2.0",
- org.eclipse.ocl.ecore;bundle-version="1.2.0",
- org.eclipse.acceleo.model;bundle-version="3.1.0",
- org.eclipse.acceleo.engine;bundle-version="3.1.0",
- org.eclipse.jdt.core;bundle-version="3.4.0";resolution:=optional,
- org.eclipse.jdt.ui;bundle-version="3.4.0";resolution:=optional,
- org.eclipse.emf.eef.eefgen;bundle-version="1.0.0",
- org.eclipse.emf.eef.views;bundle-version="1.0.0",
- org.eclipse.emf.eef.views.edit;bundle-version="1.0.0",
- org.eclipse.emf.eef.components;bundle-version="1.0.0",
- org.eclipse.emf.eef.components.edit;bundle-version="1.0.0",
- org.eclipse.emf.importer.ecore;bundle-version="2.4.0",
- org.eclipse.emf.importer;bundle-version="2.4.0",
- org.eclipse.pde.core;bundle-version="3.4.0",
- org.eclipse.pde.ui;bundle-version="3.4.0",
- org.eclipse.acceleo.parser;bundle-version="3.1.0";resolution:=optional,
- org.eclipse.emf.eef.codegen.launcher;bundle-version="1.1.0";visibility:=reexport,
- org.eclipse.emf.eef.codegen.ecore;bundle-version="1.1.0"
-Bundle-RequiredExecutionEnvironment: J2SE-1.5
-Bundle-ActivationPolicy: lazy
-Export-Package: org.eclipse.emf.eef.codegen,
- org.eclipse.emf.eef.codegen.components,
- org.eclipse.emf.eef.codegen.core.initializer,
- org.eclipse.emf.eef.codegen.core.launcher,
- org.eclipse.emf.eef.codegen.core.services,
- org.eclipse.emf.eef.codegen.core.util,
- org.eclipse.emf.eef.codegen.flow.impl,
- org.eclipse.emf.eef.codegen.flow.util,
- org.eclipse.emf.eef.codegen.launcher,
- org.eclipse.emf.eef.codegen.parts,
- org.eclipse.emf.eef.codegen.plugin,
- org.eclipse.emf.eef.codegen.providers,
- org.eclipse.emf.eef.codegen.services,
- org.eclipse.emf.eef.codegen.ui.generators.actions,
- org.eclipse.emf.eef.codegen.ui.generators.callback,
- org.eclipse.emf.eef.codegen.ui.generators.callback.imports,
- org.eclipse.emf.eef.codegen.ui.generators.common,
- org.eclipse.emf.eef.codegen.ui.initializer.actions,
- org.eclipse.emf.eef.codegen.ui.initializer.ui,
- org.eclipse.emf.eef.codegen.ui.validators.actions
diff --git a/plugins/org.eclipse.emf.eef.codegen/about.html b/plugins/org.eclipse.emf.eef.codegen/about.html
deleted file mode 100644
index f3a55ce5f..000000000
--- a/plugins/org.eclipse.emf.eef.codegen/about.html
+++ /dev/null
@@ -1,28 +0,0 @@
-
-
-
-
-About
-
-
-
About This Content
-
-
June 15, 2010
-
License
-
-
The Eclipse Foundation makes available all content in this plug-in ("Content"). Unless otherwise
-indicated below, the Content is provided to you under the terms and conditions of the
-Eclipse Public License Version 1.0 ("EPL"). A copy of the EPL is available
-at http://www.eclipse.org/legal/epl-v10.html.
-For purposes of the EPL, "Program" will mean the Content.
-
-
If you did not receive this Content directly from the Eclipse Foundation, the Content is
-being redistributed by another party ("Redistributor") and different terms and conditions may
-apply to your use of any object code in the Content. Check the Redistributor's license that was
-provided with the Content. If no such license exists, contact the Redistributor. Unless otherwise
-indicated below, the terms and conditions of the EPL still apply to any source code in the Content
-and such source code may be obtained at http://www.eclipse.org.
-
-
-
\ No newline at end of file
diff --git a/plugins/org.eclipse.emf.eef.codegen/build.acceleo b/plugins/org.eclipse.emf.eef.codegen/build.acceleo
deleted file mode 100644
index 816061796..000000000
--- a/plugins/org.eclipse.emf.eef.codegen/build.acceleo
+++ /dev/null
@@ -1,26 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/plugins/org.eclipse.emf.eef.codegen/build.properties b/plugins/org.eclipse.emf.eef.codegen/build.properties
deleted file mode 100644
index 74348b740..000000000
--- a/plugins/org.eclipse.emf.eef.codegen/build.properties
+++ /dev/null
@@ -1,23 +0,0 @@
-###############################################################################
-# Copyright (c) 2008, 2012 Obeo.
-# 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:
-# Obeo - initial API and implementation
-###############################################################################
-source.. = src/,\
- src-custom/,\
- src-build/
-output.. = bin/
-bin.includes = META-INF/,\
- .,\
- plugin.xml,\
- build.acceleo,\
- about.html
-customBuildCallbacks = build.acceleo
-src.includes = build.acceleo,\
- schema/,\
- about.html
diff --git a/plugins/org.eclipse.emf.eef.codegen/plugin.xml b/plugins/org.eclipse.emf.eef.codegen/plugin.xml
deleted file mode 100644
index 70c8b89cd..000000000
--- a/plugins/org.eclipse.emf.eef.codegen/plugin.xml
+++ /dev/null
@@ -1,111 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/plugins/org.eclipse.emf.eef.codegen/pom.xml b/plugins/org.eclipse.emf.eef.codegen/pom.xml
deleted file mode 100644
index 9d42b89fc..000000000
--- a/plugins/org.eclipse.emf.eef.codegen/pom.xml
+++ /dev/null
@@ -1,74 +0,0 @@
-
-
-
- 4.0.0
-
-
- org.eclipse.emf
- org.eclipse.emf.eef.releng.parent
- ../../releng/org.eclipse.emf.eef.releng.parent
- 1.5.2-SNAPSHOT
-
-
- org.eclipse.emf
- org.eclipse.emf.eef.codegen
- 1.5.2-SNAPSHOT
- eclipse-plugin
-
- EEF Codegen Plug-in
-
-
-
-
- org.eclipse.acceleo
- org.eclipse.acceleo.maven
- 3.5.0-SNAPSHOT
-
-
- compile
-
- acceleo-compile
-
-
-
-
- false
- true
-
- ${project.basedir}
-
-
- src
-
-
-
-
- org.eclipse.emf:org.eclipse.emf.eef.codegen.ecore
-
-
-
- org.eclipse.emf.ecore.EcorePackage
- org.eclipse.emf.eef.components.ComponentsPackage
- org.eclipse.emf.eef.mapping.MappingPackage
- org.eclipse.emf.eef.views.ViewsPackage
- org.eclipse.emf.eef.EEFGen.EEFGenPackage
- org.eclipse.emf.eef.mapping.filters.FiltersPackage
- org.eclipse.emf.eef.mapping.navigation.NavigationPackage
- org.eclipse.emf.codegen.ecore.genmodel.GenModelPackage
-
- org.eclipse.acceleo.maven.AcceleoURIHandler
-
-
-
-
-
diff --git a/plugins/org.eclipse.emf.eef.codegen/schema/PropertiesGeneratorLauncher.exsd b/plugins/org.eclipse.emf.eef.codegen/schema/PropertiesGeneratorLauncher.exsd
deleted file mode 100644
index 194031636..000000000
--- a/plugins/org.eclipse.emf.eef.codegen/schema/PropertiesGeneratorLauncher.exsd
+++ /dev/null
@@ -1,109 +0,0 @@
-
-
-
-
-
-
-
-
- Declares a new generator during the EEF generation phase
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- [Enter the first release in which this extension point appears.]
-
-
-
-
-
-
-
-
- [Enter extension point usage example here.]
-
-
-
-
-
-
-
-
- [Enter API information here.]
-
-
-
-
-
-
-
-
- [Enter information about supplied implementation of this extension point.]
-
-
-
-
-
diff --git a/plugins/org.eclipse.emf.eef.codegen/schema/PropertiesInitializerStrategy.exsd b/plugins/org.eclipse.emf.eef.codegen/schema/PropertiesInitializerStrategy.exsd
deleted file mode 100644
index a51f13e99..000000000
--- a/plugins/org.eclipse.emf.eef.codegen/schema/PropertiesInitializerStrategy.exsd
+++ /dev/null
@@ -1,116 +0,0 @@
-
-
-
-
-
-
-
-
- Declare a new strategy to initialize EEF components and EEF Generation models
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- [Enter the first release in which this extension point appears.]
-
-
-
-
-
-
-
-
- [Enter extension point usage example here.]
-
-
-
-
-
-
-
-
- [Enter API information here.]
-
-
-
-
-
-
-
-
- [Enter information about supplied implementation of this extension point.]
-
-
-
-
-
diff --git a/plugins/org.eclipse.emf.eef.codegen/src-build/org/eclipse/emf/eef/codegen/EEFCodegenCompiler.java b/plugins/org.eclipse.emf.eef.codegen/src-build/org/eclipse/emf/eef/codegen/EEFCodegenCompiler.java
deleted file mode 100644
index 196bb211e..000000000
--- a/plugins/org.eclipse.emf.eef.codegen/src-build/org/eclipse/emf/eef/codegen/EEFCodegenCompiler.java
+++ /dev/null
@@ -1,166 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008, 2012 Obeo.
- * 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:
- * Obeo - initial API and implementation
- *******************************************************************************/
-package org.eclipse.emf.eef.codegen;
-
-import java.io.File;
-import java.util.ArrayList;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Map;
-
-import org.eclipse.acceleo.common.IAcceleoConstants;
-import org.eclipse.acceleo.parser.compiler.AbstractAcceleoCompiler;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.emf.common.util.BasicMonitor;
-import org.eclipse.emf.common.util.Monitor;
-import org.eclipse.emf.common.util.URI;
-
-/**
- * The Acceleo Standalone compiler.
- *
- * @author Stephane Bouchet
- * @since 1.1
- */
-public class EEFCodegenCompiler extends AbstractAcceleoCompiler {
-
- /**
- * The entry point of the compilation.
- *
- * @param args
- * The arguments used in the compilation: the source folder, the output folder, a boolean
- * indicating if we should use binary resource serialization and finally the dependencies of
- * the project.
- */
- public static void main(String[] args) {
- if (args.length < 3) {
- throw new IllegalArgumentException("Missing parameters"); //$NON-NLS-1$
- }
- EEFCodegenCompiler acceleoCompiler = new EEFCodegenCompiler();
- acceleoCompiler.setSourceFolder(args[0]);
- acceleoCompiler.setOutputFolder(args[1]);
- acceleoCompiler.setBinaryResource(Boolean.valueOf(args[2]).booleanValue());
- if (args.length == 4 && args[3] != null && !"".equals(args[3])) { //$NON-NLS-1$
- acceleoCompiler.setDependencies(args[3]);
- }
- acceleoCompiler.doCompile(new BasicMonitor());
- }
-
- /**
- * Launches the compilation of the mtl files in the generator.
- *
- * @see org.eclipse.acceleo.parser.compiler.AbstractAcceleoCompiler#doCompile(org.eclipse.emf.common.util.Monitor)
- */
- @Override
- public void doCompile(Monitor monitor) {
- super.doCompile(monitor);
- }
-
- /**
- * Registers the packages of the metamodels used in the generator.
- *
- * @see org.eclipse.acceleo.parser.compiler.AbstractAcceleoCompiler#registerPackages()
- */
- @Override
- protected void registerPackages() {
- super.registerPackages();
- org.eclipse.emf.ecore.EPackage.Registry.INSTANCE.put(
- org.eclipse.emf.eef.components.ComponentsPackage.eINSTANCE.getNsURI(),
- org.eclipse.emf.eef.components.ComponentsPackage.eINSTANCE);
- org.eclipse.emf.ecore.EPackage.Registry.INSTANCE.put(
- org.eclipse.emf.eef.mapping.MappingPackage.eINSTANCE.getNsURI(),
- org.eclipse.emf.eef.mapping.MappingPackage.eINSTANCE);
- org.eclipse.emf.ecore.EPackage.Registry.INSTANCE.put(
- org.eclipse.emf.eef.mapping.navigation.NavigationPackage.eINSTANCE.getNsURI(),
- org.eclipse.emf.eef.mapping.navigation.NavigationPackage.eINSTANCE);
- org.eclipse.emf.ecore.EPackage.Registry.INSTANCE.put(
- org.eclipse.emf.eef.mapping.filters.FiltersPackage.eINSTANCE.getNsURI(),
- org.eclipse.emf.eef.mapping.filters.FiltersPackage.eINSTANCE);
- org.eclipse.emf.ecore.EPackage.Registry.INSTANCE.put(
- org.eclipse.emf.ecore.EcorePackage.eINSTANCE.getNsURI(),
- org.eclipse.emf.ecore.EcorePackage.eINSTANCE);
- org.eclipse.emf.ecore.EPackage.Registry.INSTANCE.put(
- org.eclipse.emf.eef.views.ViewsPackage.eINSTANCE.getNsURI(),
- org.eclipse.emf.eef.views.ViewsPackage.eINSTANCE);
- org.eclipse.emf.ecore.EPackage.Registry.INSTANCE.put(
- org.eclipse.emf.eef.toolkits.ToolkitsPackage.eINSTANCE.getNsURI(),
- org.eclipse.emf.eef.toolkits.ToolkitsPackage.eINSTANCE);
- org.eclipse.emf.ecore.EPackage.Registry.INSTANCE.put(
- org.eclipse.emf.eef.EEFGen.EEFGenPackage.eINSTANCE.getNsURI(),
- org.eclipse.emf.eef.EEFGen.EEFGenPackage.eINSTANCE);
- }
-
- /**
- * Registers the resource factories.
- *
- * @see org.eclipse.acceleo.parser.compiler.AbstractAcceleoCompiler#registerResourceFactories()
- */
- @Override
- protected void registerResourceFactories() {
- super.registerResourceFactories();
- /*
- * If you want to add other resource factories, for example if your metamodel uses a specific
- * serialization:
- * org.eclipse.emf.ecore.resource.Resource.Factory.Registry.getExtensionToFactoryMap().put
- * (UMLResource.FILE_EXTENSION, UMLResource.Factory.INSTANCE);
- */
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.acceleo.parser.compiler.AbstractAcceleoCompiler#computeDependencies(java.util.List,
- * java.util.Map)
- */
- protected void computeDependencies(List dependenciesURIs, Map mapURIs) {
- // USED TO FIX COMPILER WITH TYCHO
- Iterator identifiersIt = dependenciesIDs.iterator();
- for (Iterator dependenciesIt = dependencies.iterator(); dependenciesIt.hasNext()
- && identifiersIt.hasNext();) {
- File requiredFolder = dependenciesIt.next();
- String identifier = identifiersIt.next();
- if (requiredFolder != null && requiredFolder.exists() && requiredFolder.isDirectory()) {
- List emtlFiles = new ArrayList();
- members(emtlFiles, requiredFolder, IAcceleoConstants.EMTL_FILE_EXTENSION);
- for (File emtlFile : emtlFiles) {
- String requiredFolderAbsolutePath = requiredFolder.getAbsolutePath();
- if (requiredFolderAbsolutePath.endsWith("target/classes")) {
- // using tycho
- String[] splited = requiredFolderAbsolutePath.split("\\/");
- StringBuffer buf = new StringBuffer(requiredFolderAbsolutePath.length());
- for (int i = 0; i < splited.length - 3; i++) {
- buf.append(splited[i]);
- buf.append("/");
- }
- requiredFolderAbsolutePath = buf.toString();
- String emtlAbsolutePath = emtlFile.getAbsolutePath();
- URI emtlFileURI = URI.createFileURI(emtlAbsolutePath);
- dependenciesURIs.add(emtlFileURI);
- String emtlModifiedPath = emtlAbsolutePath.replaceAll("target\\/|classes\\/", "");
- IPath relativePath = new Path(emtlModifiedPath.substring(requiredFolderAbsolutePath
- .length()));
- URI relativeURI = URI.createPlatformPluginURI(relativePath.toString(), false);
- mapURIs.put(emtlFileURI, relativeURI);
- } else {
- // normal behavior
- String emtlAbsolutePath = emtlFile.getAbsolutePath();
- URI emtlFileURI = URI.createFileURI(emtlAbsolutePath);
- dependenciesURIs.add(emtlFileURI);
- IPath relativePath = new Path(identifier).append(emtlAbsolutePath
- .substring(requiredFolderAbsolutePath.length()));
- mapURIs.put(emtlFileURI, URI.createPlatformPluginURI(relativePath.toString(), false));
- }
- }
- }
- }
- }
-}
-
diff --git a/plugins/org.eclipse.emf.eef.codegen/src-custom/org/eclipse/emf/eef/codegen/EEFCodegenPlugin.java b/plugins/org.eclipse.emf.eef.codegen/src-custom/org/eclipse/emf/eef/codegen/EEFCodegenPlugin.java
deleted file mode 100644
index 6e4c13426..000000000
--- a/plugins/org.eclipse.emf.eef.codegen/src-custom/org/eclipse/emf/eef/codegen/EEFCodegenPlugin.java
+++ /dev/null
@@ -1,76 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008, 2012 Obeo.
- * 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:
- * Obeo - initial API and implementation
- *******************************************************************************/
-package org.eclipse.emf.eef.codegen;
-
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.ui.plugin.AbstractUIPlugin;
-import org.osgi.framework.BundleContext;
-
-/**
- * The activator class controls the plug-in life cycle
- *
- * @author Goulwen Le Fur
- */
-public class EEFCodegenPlugin extends AbstractUIPlugin {
-
- // The plug-in ID
- public static final String PLUGIN_ID = "org.eclipse.emf.eef.codegen"; //$NON-NLS-1$
-
- // The shared instance
- private static EEFCodegenPlugin plugin;
-
- /**
- * The constructor
- */
- public EEFCodegenPlugin() {
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
- */
- public void start(BundleContext context) throws Exception {
- super.start(context);
- plugin = this;
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
- */
- public void stop(BundleContext context) throws Exception {
- plugin = null;
- super.stop(context);
- }
-
- /**
- * Returns the shared instance
- *
- * @return the shared instance
- */
- public static EEFCodegenPlugin getDefault() {
- return plugin;
- }
-
- public void logError(Exception e) {
- IStatus status = new Status(IStatus.ERROR, PLUGIN_ID, e.getMessage(), e);
- getLog().log(status);
- }
-
- public void logWarning(Exception e) {
- IStatus status = new Status(IStatus.WARNING, PLUGIN_ID, e.getMessage(), e);
- getLog().log(status);
- }
-
-}
diff --git a/plugins/org.eclipse.emf.eef.codegen/src-custom/org/eclipse/emf/eef/codegen/core/initializer/AbstractPropertiesInitializer.java b/plugins/org.eclipse.emf.eef.codegen/src-custom/org/eclipse/emf/eef/codegen/core/initializer/AbstractPropertiesInitializer.java
deleted file mode 100644
index af8b32fdc..000000000
--- a/plugins/org.eclipse.emf.eef.codegen/src-custom/org/eclipse/emf/eef/codegen/core/initializer/AbstractPropertiesInitializer.java
+++ /dev/null
@@ -1,108 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008, 2012 Obeo.
- * 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:
- * Obeo - initial API and implementation
- *******************************************************************************/
-package org.eclipse.emf.eef.codegen.core.initializer;
-
-import org.eclipse.emf.codegen.ecore.genmodel.GenModelFactory;
-import org.eclipse.emf.codegen.ecore.genmodel.GenModelPackage;
-import org.eclipse.emf.ecore.resource.Resource;
-import org.eclipse.emf.ecore.resource.ResourceSet;
-import org.eclipse.emf.ecore.xmi.impl.EcoreResourceFactoryImpl;
-import org.eclipse.emf.ecore.xmi.impl.XMIResourceFactoryImpl;
-import org.eclipse.emf.eef.components.resources.ComponentsResourceFactory;
-import org.eclipse.emf.eef.views.resources.ViewsResourceFactory;
-
-/**
- * @author Goulwen Le Fur
- */
-public abstract class AbstractPropertiesInitializer implements IPropertiesInitializer {
-
- /**
- * The name of the initializer
- */
- private String name;
-
- /**
- * The description of the initializer
- */
- private String description;
-
- /**
- * @return the name
- */
- public String getName() {
- return name;
- }
-
- /**
- * @param name
- * the name to set
- */
- public void setName(String name) {
- this.name = name;
- }
-
- /**
- * @return the description
- */
- public String getDescription() {
- return description;
- }
-
- /**
- * @param description
- * the description to set
- */
- public void setDescription(String description) {
- this.description = description;
- }
-
- /**
- * Updates the registry used for looking up a package based namespace, in the resource set.
- *
- * @param resourceSet
- * is the resource set
- * @generated
- */
- protected void registerPackages(ResourceSet resourceSet) {
- resourceSet.getPackageRegistry().put(
- org.eclipse.emf.eef.components.ComponentsPackage.eINSTANCE.getNsURI(),
- org.eclipse.emf.eef.components.ComponentsPackage.eINSTANCE);
- resourceSet.getPackageRegistry().put(org.eclipse.emf.ecore.EcorePackage.eINSTANCE.getNsURI(),
- org.eclipse.emf.ecore.EcorePackage.eINSTANCE);
- resourceSet.getPackageRegistry().put(GenModelPackage.eINSTANCE.getNsURI(), GenModelFactory.eINSTANCE);
- resourceSet.getPackageRegistry().put(org.eclipse.emf.eef.views.ViewsPackage.eINSTANCE.getNsURI(),
- org.eclipse.emf.eef.views.ViewsPackage.eINSTANCE);
- resourceSet.getPackageRegistry().put(
- org.eclipse.emf.eef.toolkits.ToolkitsPackage.eINSTANCE.getNsURI(),
- org.eclipse.emf.eef.toolkits.ToolkitsPackage.eINSTANCE);
-
- }
-
- /**
- * Updates the registry used for looking up resources factory in the given resource set.
- *
- * @param resourceSet
- * The resource set that is to be updated.
- * @generated
- */
- protected void registerResourceFactories(ResourceSet resourceSet) {
- resourceSet.getResourceFactoryRegistry().getExtensionToFactoryMap().put("ecore",
- new EcoreResourceFactoryImpl());
- resourceSet.getResourceFactoryRegistry().getExtensionToFactoryMap().put("views",
- new ViewsResourceFactory());
- resourceSet.getResourceFactoryRegistry().getExtensionToFactoryMap().put("components",
- new ComponentsResourceFactory());
- resourceSet.getResourceFactoryRegistry().getExtensionToFactoryMap().put(
- Resource.Factory.Registry.DEFAULT_EXTENSION, new XMIResourceFactoryImpl());
- }
-
-
-}
diff --git a/plugins/org.eclipse.emf.eef.codegen/src-custom/org/eclipse/emf/eef/codegen/core/initializer/AbstractTransformer.java b/plugins/org.eclipse.emf.eef.codegen/src-custom/org/eclipse/emf/eef/codegen/core/initializer/AbstractTransformer.java
deleted file mode 100644
index ec3d6b21b..000000000
--- a/plugins/org.eclipse.emf.eef.codegen/src-custom/org/eclipse/emf/eef/codegen/core/initializer/AbstractTransformer.java
+++ /dev/null
@@ -1,87 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008, 2012 Obeo.
- * 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:
- * Obeo - initial API and implementation
- *******************************************************************************/
-package org.eclipse.emf.eef.codegen.core.initializer;
-
-import org.eclipse.emf.common.notify.Notifier;
-import org.eclipse.emf.common.util.TreeIterator;
-import org.eclipse.emf.ecore.EAnnotation;
-import org.eclipse.emf.ecore.EAttribute;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EModelElement;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EPackage;
-import org.eclipse.emf.ecore.EReference;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.emf.ecore.util.EcoreUtil;
-
-/**
- * @author Goulwen Le Fur
- */
-public abstract class AbstractTransformer {
-
- protected String genConstraint(EModelElement source, String key) {
- if (source != null) {
- EAnnotation annotation = source.getEAnnotation("genConstraint");
- if (annotation != null) {
- return annotation.getDetails().get(key);
- }
- }
- return null;
- }
-
- protected boolean isSignificant(EStructuralFeature feature) {
- if (feature instanceof EAttribute) {
- String genConstraint = genConstraint(feature, "significant");
- if (genConstraint != null && genConstraint.equals("false"))
- return false;
- return true;
- }
- if (feature instanceof EReference) {
- String genConstraint = genConstraint(feature, "significant");
- if (genConstraint != null && genConstraint.equals("false"))
- return false;
- return true;
- }
- return true;
- }
-
- protected Object getViewName(EStructuralFeature feature) {
- if (genConstraint(feature, "component") != null)
- return genConstraint(feature, "component");
- return null;
- }
-
- protected boolean inheritedMember(EStructuralFeature feature, EClass current) {
- return !feature.getEContainingClass().equals(current) && getViewName(feature) != null;
- }
-
- protected EStructuralFeature findEStructuralFeature(EPackage metamodel, String name) {
- TreeIterator allContents = metamodel.eAllContents();
- while (allContents.hasNext()) {
- EObject next = allContents.next();
- if (next instanceof EStructuralFeature && name.equals(((EStructuralFeature)next).getName()))
- return (EStructuralFeature)next;
- }
- return null;
- }
-
- protected EClass findEClass(EPackage metamodel, String name) {
- EcoreUtil.resolveAll(metamodel.eResource().getResourceSet());
- TreeIterator allContents = metamodel.eResource().getResourceSet().getAllContents();
- while (allContents.hasNext()) {
- Notifier next = allContents.next();
- if (next instanceof EClass && name.equals(((EClass)next).getName()))
- return (EClass)next;
- }
- return null;
- }
-
-}
diff --git a/plugins/org.eclipse.emf.eef.codegen/src-custom/org/eclipse/emf/eef/codegen/core/initializer/ComponentTransformer.java b/plugins/org.eclipse.emf.eef.codegen/src-custom/org/eclipse/emf/eef/codegen/core/initializer/ComponentTransformer.java
deleted file mode 100644
index 172b2a566..000000000
--- a/plugins/org.eclipse.emf.eef.codegen/src-custom/org/eclipse/emf/eef/codegen/core/initializer/ComponentTransformer.java
+++ /dev/null
@@ -1,126 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008, 2012 Obeo.
- * 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:
- * Obeo - initial API and implementation
- *******************************************************************************/
-package org.eclipse.emf.eef.codegen.core.initializer;
-
-import java.util.List;
-import java.util.Map;
-
-import org.eclipse.emf.codegen.ecore.genmodel.GenClass;
-import org.eclipse.emf.codegen.ecore.genmodel.GenPackage;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.emf.ecore.util.EcoreUtil;
-import org.eclipse.emf.eef.components.ComponentsFactory;
-import org.eclipse.emf.eef.components.PropertiesEditionComponent;
-import org.eclipse.emf.eef.components.PropertiesEditionContext;
-import org.eclipse.emf.eef.components.PropertiesEditionElement;
-import org.eclipse.emf.eef.mapping.Category;
-import org.eclipse.emf.eef.mapping.MappingFactory;
-import org.eclipse.emf.eef.views.Container;
-import org.eclipse.emf.eef.views.ElementEditor;
-import org.eclipse.emf.eef.views.View;
-import org.eclipse.emf.eef.views.ViewElement;
-
-/**
- * @author Goulwen Le Fur
- */
-public class ComponentTransformer extends AbstractTransformer {
-
- private Map> workingResolvTemp;
-
- /* ===== Constructor ===== */
-
- public ComponentTransformer(Map> workingResolvTemp) {
- this.workingResolvTemp = workingResolvTemp;
- }
-
- /* ===== Transformation ===== */
-
- public PropertiesEditionContext genPackage2Context(GenPackage genPackage) {
- PropertiesEditionContext context = ComponentsFactory.eINSTANCE.createPropertiesEditionContext();
- context.setModel(genPackage);
- context.setDocumentation("Edition Context for " + genPackage.getEcorePackage().getName()
- + " GenPackage");
- Category components = MappingFactory.eINSTANCE.createCategory();
- components.setName(genPackage.getEcorePackage().getName());
- context.getCategories().add(components);
- for (GenClass genClass : genPackage.getGenClasses()) {
- if (!genClass.getEcoreClass().isAbstract()) {
- components.getBindings().add(genClass2Component(genClass, genPackage));
- }
- }
- return context;
- }
-
- public PropertiesEditionComponent genClass2Component(GenClass genClass, GenPackage genPackage) {
- PropertiesEditionComponent component = ComponentsFactory.eINSTANCE.createPropertiesEditionComponent();
- component.setName(genClass.getEcoreClass().getName());
- component.setModel(genClass.getEcoreClass());
- List list = workingResolvTemp.get(genClass.getEcoreClass());
- for (ViewElement viewElement : list) {
- component.getViews().add((View)viewElement);
- }
- for (EStructuralFeature feature : genClass.getEcoreClass().getEAllStructuralFeatures()) {
- if (isSignificant(feature) && !feature.isDerived()
- && !inheritedMember(feature, genClass.getEcoreClass())) {
- PropertiesEditionElement structuralFeature2EditionElement = eStructuralFeature2EditionElement(
- list, feature);
- if (structuralFeature2EditionElement != null)
- component.getProperties().add(structuralFeature2EditionElement);
- }
- }
- return component;
-
- }
-
- public PropertiesEditionElement eStructuralFeature2EditionElement(List concerningViews,
- EStructuralFeature feature) {
- PropertiesEditionElement element = ComponentsFactory.eINSTANCE.createPropertiesEditionElement();
- element.setName(feature.getName());
- element.setModel(feature);
- List list = workingResolvTemp.get(feature);
- if (list != null) {
- for (ViewElement viewElement : list) {
- if (inConcerningViews(concerningViews, viewElement))
- element.getViews().add((ElementEditor)viewElement);
- }
- } else {
- System.err.println("No view found for : " + feature.toString());
- return null;
- }
- return element;
-
- }
-
- /* ===== Misc utilities ===== */
- private boolean inConcerningViews(List concerningViews, ViewElement toCheck) {
- for (ViewElement viewElement : concerningViews) {
- if (viewElement instanceof View) {
- if (inConcerningView((View)viewElement, toCheck))
- return true;
- }
- }
- return false;
- }
-
- private boolean inConcerningView(View concerningView, ViewElement toCheck) {
- if (toCheck instanceof View && EcoreUtil.equals(concerningView, toCheck))
- return true;
- else {
- Container next = toCheck.getContainer();
- if (next != null)
- return inConcerningView(concerningView, next);
- else
- return false;
- }
- }
-
-}
diff --git a/plugins/org.eclipse.emf.eef.codegen/src-custom/org/eclipse/emf/eef/codegen/core/initializer/IPropertiesInitializer.java b/plugins/org.eclipse.emf.eef.codegen/src-custom/org/eclipse/emf/eef/codegen/core/initializer/IPropertiesInitializer.java
deleted file mode 100644
index 8b57fd60f..000000000
--- a/plugins/org.eclipse.emf.eef.codegen/src-custom/org/eclipse/emf/eef/codegen/core/initializer/IPropertiesInitializer.java
+++ /dev/null
@@ -1,20 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008, 2012 Obeo.
- * 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:
- * Obeo - initial API and implementation
- *******************************************************************************/
-package org.eclipse.emf.eef.codegen.core.initializer;
-
-import org.eclipse.core.resources.IContainer;
-import org.eclipse.emf.common.util.URI;
-
-public interface IPropertiesInitializer {
-
- public void initialize(URI modelURI, IContainer targetFolder) throws Exception;
-
-}
diff --git a/plugins/org.eclipse.emf.eef.codegen/src-custom/org/eclipse/emf/eef/codegen/core/initializer/PropertiesInitializer.java b/plugins/org.eclipse.emf.eef.codegen/src-custom/org/eclipse/emf/eef/codegen/core/initializer/PropertiesInitializer.java
deleted file mode 100644
index a0bb40179..000000000
--- a/plugins/org.eclipse.emf.eef.codegen/src-custom/org/eclipse/emf/eef/codegen/core/initializer/PropertiesInitializer.java
+++ /dev/null
@@ -1,208 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008, 2012 Obeo.
- * 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:
- * Obeo - initial API and implementation
- *******************************************************************************/
-package org.eclipse.emf.eef.codegen.core.initializer;
-
-import java.io.IOException;
-import java.util.ArrayList;
-import java.util.Collections;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-
-import org.eclipse.core.resources.IContainer;
-import org.eclipse.core.resources.IFolder;
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.NullProgressMonitor;
-import org.eclipse.emf.codegen.ecore.genmodel.GenPackage;
-import org.eclipse.emf.common.util.TreeIterator;
-import org.eclipse.emf.common.util.URI;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EPackage;
-import org.eclipse.emf.ecore.resource.Resource;
-import org.eclipse.emf.ecore.resource.ResourceSet;
-import org.eclipse.emf.ecore.resource.impl.ResourceSetImpl;
-import org.eclipse.emf.eef.EEFGen.EEFGenFactory;
-import org.eclipse.emf.eef.EEFGen.EEFGenModel;
-import org.eclipse.emf.eef.EEFGen.GenEditionContext;
-import org.eclipse.emf.eef.EEFGen.GenViewsRepository;
-import org.eclipse.emf.eef.codegen.core.util.EMFHelper;
-import org.eclipse.emf.eef.codegen.flow.util.GenmodelHelper;
-import org.eclipse.emf.eef.components.PropertiesEditionContext;
-import org.eclipse.emf.eef.views.View;
-import org.eclipse.emf.eef.views.ViewsFactory;
-import org.eclipse.emf.eef.views.ViewsRepository;
-
-/**
- * @author Goulwen Le Fur
- */
-public class PropertiesInitializer extends AbstractPropertiesInitializer {
-
- private static final String SWT_TOOLKIT_NAME = "SWT";
-
- private static final String EMF_PROPERTIES_TOOLKIT_NAME = "EMFProperties";
-
- private static String swt_pathmap = null;
-
- private static String emfproperties_pathmap = null;
-
- private static String findToolkitPath(EObject view, String str) {
- String res = "platform:/plugin/org.eclipse.emf.eef.views/std/" + str + ".toolkits";
- return res;
- }
-
- public static String getSWTPathmap(EObject view) {
- if (swt_pathmap == null) {
- swt_pathmap = findToolkitPath(view, SWT_TOOLKIT_NAME);
- }
- return swt_pathmap;
- }
-
- public static String getEMFPropertiesPathmap(EObject view) {
- if (emfproperties_pathmap == null) {
- emfproperties_pathmap = findToolkitPath(view, EMF_PROPERTIES_TOOLKIT_NAME);
- }
- return emfproperties_pathmap;
- }
-
- public void initialize(URI modelURI, IContainer targetFolder) throws IOException, CoreException {
- ResourceSet resourceSet = new ResourceSetImpl();
- registerResourceFactories(resourceSet);
- registerPackages(resourceSet);
- EObject model = EMFHelper.load(modelURI, resourceSet);
-
- if (!targetFolder.exists()) {
- if (targetFolder instanceof IFolder)
- ((IFolder)targetFolder).create(true, true, new NullProgressMonitor());
- else
- return;
- }
-
- Map toolkits = new HashMap();
- View instanceView = ViewsFactory.eINSTANCE.createView();
- toolkits.put(SWT_TOOLKIT_NAME, EMFHelper.load(URI.createURI(getSWTPathmap(instanceView), false), model.eResource().getResourceSet()));
- toolkits.put(EMF_PROPERTIES_TOOLKIT_NAME, EMFHelper.load(URI.createURI(getEMFPropertiesPathmap(instanceView), false), model.eResource().getResourceSet()));
-
- ViewTransformer viewTransformer = new ViewTransformer(toolkits);
- TreeIterator allContents = model.eAllContents();
- Map repositories = new HashMap();
- List contexts = new ArrayList();
- while (allContents.hasNext()) {
- EObject next = allContents.next();
- if (next instanceof GenPackage) {
- GenPackage genPack = (GenPackage)next;
- if (genPack.getGenClassifiers().size() >= 1) {
- ViewsRepository repository = viewTransformer.genPackage2ViewsRepository(genPack, SWT_TOOLKIT_NAME);
- String completePackage = genPack.getBasePackage();
- if (completePackage != null && completePackage.length() > 0) {
- completePackage += "." + ecoreStringHierarchy(genPack);
- } else {
- completePackage = ecoreStringHierarchy(genPack);
- }
- repositories.put(repository, completePackage);
- ComponentTransformer componentTransformer = new ComponentTransformer(viewTransformer.getWorkingResolvTemp());
- PropertiesEditionContext context = componentTransformer.genPackage2Context(genPack);
- contexts.add(context);
- }
- }
- }
- URI componentsModelUri = GenmodelHelper.computePropertiesComponentsModelURI(targetFolder, model.eResource().getURI());
- Resource componentsResource = model.eResource().getResourceSet().createResource(componentsModelUri);
- for (PropertiesEditionContext context : contexts)
- componentsResource.getContents().add(context);
- for (ViewsRepository repository : repositories.keySet())
- componentsResource.getContents().add(repository);
- componentsResource.save(Collections.EMPTY_MAP);
- EEFGenModel eefGenModel = createEEFGenModel(repositories, contexts, targetFolder);
- URI eefgenModelUri = GenmodelHelper.computePropertiesEEFGenModelURI(targetFolder, model.eResource().getURI());
- Resource eefgenResource = model.eResource().getResourceSet().createResource(eefgenModelUri);
- eefgenResource.getContents().add(eefGenModel);
- eefgenResource.save(Collections.EMPTY_MAP);
- return;
-
- }
-
- public String ecoreStringHierarchy(GenPackage genPack) {
- String result = "";
- List ecorePackageHierarchy = ecorePackageHierarchy(genPack);
- for (int i = ecorePackageHierarchy.size() - 1; i >= 0; i--) {
- EPackage next = ecorePackageHierarchy.get(i);
- result += next.getName();
- if (i > 0)
- result += ".";
- }
- return genPack.getEcorePackage().getName();
- }
-
- public List ecorePackageHierarchy(GenPackage genPack) {
- List hierarchy = new ArrayList();
- EObject current = genPack.getEcorePackage();
- while (current instanceof EPackage) {
- hierarchy.add((EPackage) current);
- current = current.eContainer();
- }
- return hierarchy;
- }
-
- private EEFGenModel createEEFGenModel(Map repositories, List contexts, IContainer targetFolder) {
- EEFGenModel eefGenModel = EEFGenFactory.eINSTANCE.createEEFGenModel();
- eefGenModel.setGenDirectory(findGenDirectory(targetFolder));
- for (PropertiesEditionContext context : contexts)
- eefGenModel.getEditionContexts().add(createGenEditionContext(context));
- String contextPackage = "";
- if (contexts.size() > 0) {
- String findBasePackage = findBasePackage(contexts.get(0).getModel());
- if (findBasePackage != null && !findBasePackage.equals("")) {
- contextPackage = findBasePackage + ".";
- }
- contextPackage = contextPackage + contexts.get(0).getModel().getEcorePackage().getName().toLowerCase();
- }
- for (ViewsRepository repository : repositories.keySet())
- eefGenModel.getViewsRepositories().add(createGenViewsRepository(repository, repositories.get(repository)));
- return eefGenModel;
- }
-
- private GenEditionContext createGenEditionContext(PropertiesEditionContext context) {
- GenEditionContext genEditionContext = EEFGenFactory.eINSTANCE.createGenEditionContext();
- genEditionContext.setPropertiesEditionContext(context);
- if (context.getModel() != null)
- genEditionContext.setBasePackage(findBasePackage(context.getModel()));
- genEditionContext.setDescriptorsGenericPropertiesViews(true);
- return genEditionContext;
- }
-
- private GenViewsRepository createGenViewsRepository(ViewsRepository repository, String contextPackage) {
- GenViewsRepository genViewsRepository = EEFGenFactory.eINSTANCE.createGenViewsRepository();
- genViewsRepository.setViewsRepository(repository);
- genViewsRepository.setBasePackage(contextPackage);
- genViewsRepository.setSwtViews(true);
- genViewsRepository.setFormViews(true);
- return genViewsRepository;
- }
-
- private String findBasePackage(GenPackage genPackage) {
- if (genPackage.getBasePackage() != null)
- return genPackage.getBasePackage();
- return "";
- }
-
- private String findGenDirectory(IContainer targetFolder) {
- IProject project;
- if (targetFolder instanceof IFolder) {
- project = targetFolder.getProject();
- } else {
- project = (IProject) targetFolder;
- }
-
- return project.getFullPath().toString() + "/src-gen";
- }
-
-}
diff --git a/plugins/org.eclipse.emf.eef.codegen/src-custom/org/eclipse/emf/eef/codegen/core/initializer/ViewTransformer.java b/plugins/org.eclipse.emf.eef.codegen/src-custom/org/eclipse/emf/eef/codegen/core/initializer/ViewTransformer.java
deleted file mode 100644
index 9007d0a8f..000000000
--- a/plugins/org.eclipse.emf.eef.codegen/src-custom/org/eclipse/emf/eef/codegen/core/initializer/ViewTransformer.java
+++ /dev/null
@@ -1,242 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008, 2012 Obeo.
- * 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:
- * Obeo - initial API and implementation
- *******************************************************************************/
-package org.eclipse.emf.eef.codegen.core.initializer;
-
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-
-import org.eclipse.emf.codegen.ecore.genmodel.GenAnnotation;
-import org.eclipse.emf.codegen.ecore.genmodel.GenClass;
-import org.eclipse.emf.codegen.ecore.genmodel.GenPackage;
-import org.eclipse.emf.common.util.TreeIterator;
-import org.eclipse.emf.common.util.UniqueEList;
-import org.eclipse.emf.ecore.EAttribute;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EReference;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.emf.ecore.EcorePackage;
-import org.eclipse.emf.eef.toolkits.Widget;
-import org.eclipse.emf.eef.views.Category;
-import org.eclipse.emf.eef.views.Container;
-import org.eclipse.emf.eef.views.ElementEditor;
-import org.eclipse.emf.eef.views.View;
-import org.eclipse.emf.eef.views.ViewElement;
-import org.eclipse.emf.eef.views.ViewsFactory;
-import org.eclipse.emf.eef.views.ViewsRepository;
-
-/**
- * @author Goulwen Le Fur
- */
-public class ViewTransformer extends AbstractTransformer {
-
- private Map toolkits;
-
- private Map> workingResolvTemp;
-
- private ViewsRepository repository;
-
- /* ===== Constructor ===== */
-
- public ViewTransformer(Map toolkits) {
- this.toolkits = toolkits;
- workingResolvTemp = new HashMap>();
- }
-
- /* ===== Getters/Setters ===== */
- public Map> getWorkingResolvTemp() {
- return workingResolvTemp;
- }
-
- public void addElementToEObject(EObject source, ViewElement element) {
- if (workingResolvTemp.get(source) != null)
- workingResolvTemp.get(source).add(element);
- else {
- List list = new UniqueEList();
- list.add(element);
- workingResolvTemp.put(source, list);
- }
- }
-
- /* ===== Transformation ===== */
-
- public ViewsRepository genPackage2ViewsRepository(GenPackage genPackage, String repositoryKind) {
-
- repository = ViewsFactory.eINSTANCE.createViewsRepository();
- repository.getRepositoryKind().add("SWT");
- repository.getRepositoryKind().add("Form");
- repository.setName(genPackage.getEcorePackage().getName());
- repository.setDocumentation("Views repository for " + genPackage.getEcorePackage().getName()
- + " GenPackage");
- Category views = ViewsFactory.eINSTANCE.createCategory();
- views.setName(genPackage.getEcorePackage().getName());
- repository.getCategories().add(views);
- for (GenClass genClass : genPackage.getGenClasses()) {
- if (!genClass.getEcoreClass().isAbstract()) {
- views.getViews().addAll(genClass2Views(genClass));
- }
- }
-
- return repository;
-
- }
-
- public List genClass2Views(GenClass genClass) {
- List result = new ArrayList();
- View view = ViewsFactory.eINSTANCE.createView();
- view.setExplicit(true);
- View additionalView = genClass2AdditionalView(genClass);
- view.setName(genClass.getName());
- Map> groups = genClassGroups(genClass);
- for (String name : groups.keySet()) {
- if (!name.equals("view")) {
- Container container = ViewsFactory.eINSTANCE.createContainer();
- container.setName(name);
- container.setRepresentation(getWidget("Group"));
- List features = groups.get(name);
- for (EStructuralFeature structuralFeature : features) {
- if (!structuralFeature.isDerived()) {
- ElementEditor editor = eStructuralFeature2ViewElement(structuralFeature);
- if (editor != null)
- container.getElements().add(editor);
- }
- }
- view.getElements().add(container);
- }
- }
- if (groups.get("view") != null) {
- List features = groups.get("view");
- for (EStructuralFeature structuralFeature : features) {
- if (!structuralFeature.isDerived()) {
- ElementEditor editor = eStructuralFeature2ViewElement(structuralFeature);
- if (editor != null)
- view.getElements().add(editor);
- }
- }
- }
- result.add(view);
- addElementToEObject(genClass.getEcoreClass(), view);
- if (additionalView != null) {
- result.add(additionalView);
- addElementToEObject(genClass.getEcoreClass(), additionalView);
- }
- return result;
- }
-
- public View genClass2AdditionalView(GenClass genClass) {
- View newView = null;
- GenAnnotation genAnnotation = genClass.getGenAnnotation("component");
- if (genAnnotation != null) {
- newView = ViewsFactory.eINSTANCE.createCustomView();
- String name = genAnnotation.getDetails().get("name");
- if (name != null) {
- newView.setName(genClass.getName() + name);
- }
- }
- return newView;
-
- }
-
- public ElementEditor eStructuralFeature2ViewElement(EStructuralFeature feature) {
- ElementEditor result = ViewsFactory.eINSTANCE.createElementEditor();
- result.setName(feature.getName());
- if (feature instanceof EAttribute) {
- if (feature.isMany()) {
- result.setRepresentation(getWidget("MultiValuedEditor"));
- } else {
- if (feature.getEType().getName().equals("EBoolean")
- || feature.getEType().getName().equals("EBool")
- || feature.getEType().getName().equalsIgnoreCase("Boolean")) {
- result.setRepresentation(getWidget("Checkbox"));
- } else if (EcorePackage.eINSTANCE.getEEnum().isInstance(feature.getEType())) {
- result.setRepresentation(getWidget("EMFComboViewer"));
- }
- // FIXME: HACK
- else if ("documentation".equals(feature.getName())) {
- result.setRepresentation(getWidget("Textarea"));
- } else {
- result.setRepresentation(getWidget("Text"));
- }
- }
- } else if (feature instanceof EReference) {
- EReference reference = (EReference)feature;
- if (reference.isContainment()) {
- if (reference.isMany())
- result.setRepresentation(getWidget("AdvancedTableComposition"));
- else {
- return null;
- }
- } else {
- if (reference.isMany())
- result.setRepresentation(getWidget("AdvancedReferencesTable"));
- else
- result.setRepresentation(getWidget("EObjectFlatComboViewer"));
- }
- }
- addElementToEObject(feature, result);
- return result;
- }
-
- /* ===== Widgets management ===== */
-
- protected Widget getWidget(String name) {
- if (name != null) {
- for (String key : toolkits.keySet()) {
- EObject toolkit = toolkits.get(key);
- TreeIterator iter = toolkit.eAllContents();
- while (iter.hasNext()) {
- EObject next = iter.next();
- if (next instanceof Widget && name.equals(((Widget)next).getName()))
- return (Widget)next;
- }
- }
- }
- return null;
- }
-
- /* ===== GenConstraint management ===== */
-
- private Map> genClassGroups(GenClass genClass) {
- Map> result = new HashMap>();
- for (EStructuralFeature feature : genClass.getEcoreClass().getEAllStructuralFeatures()) {
- if (isSignificant(feature) && getViewName(feature) == null) {
- String groupConstraint = genConstraint(feature, "group");
- if (groupConstraint != null) {
- addToGroup(result, feature, groupConstraint);
- } else {
- // FIXME: HACK
- String docConstraint = genConstraint(feature, "documentation");
- if ("true".equals(docConstraint))
- addToGroup(result, feature, "view");
- else
- addToGroup(result, feature, "properties");
- }
- }
- }
-
- return result;
- }
-
- /* ===== Misc utilities ===== */
-
- private void addToGroup(Map> result, EStructuralFeature feature,
- String genConstraint) {
- if (result.get(genConstraint) != null)
- result.get(genConstraint).add(feature);
- else {
- List list = new ArrayList();
- list.add(feature);
- result.put(genConstraint, list);
- }
- }
-
-}
diff --git a/plugins/org.eclipse.emf.eef.codegen/src-custom/org/eclipse/emf/eef/codegen/core/launcher/AbstractPropertiesGeneratorLauncher.java b/plugins/org.eclipse.emf.eef.codegen/src-custom/org/eclipse/emf/eef/codegen/core/launcher/AbstractPropertiesGeneratorLauncher.java
deleted file mode 100644
index 98246cc39..000000000
--- a/plugins/org.eclipse.emf.eef.codegen/src-custom/org/eclipse/emf/eef/codegen/core/launcher/AbstractPropertiesGeneratorLauncher.java
+++ /dev/null
@@ -1,112 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008, 2012 Obeo.
- * 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:
- * Obeo - initial API and implementation
- *******************************************************************************/
-package org.eclipse.emf.eef.codegen.core.launcher;
-
-import java.io.IOException;
-import java.net.URL;
-import java.util.Enumeration;
-import java.util.HashSet;
-import java.util.Set;
-
-import org.eclipse.core.resources.IContainer;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.core.runtime.Platform;
-import org.eclipse.emf.common.util.URI;
-import org.osgi.framework.Bundle;
-
-/**
- * @author Goulwen Le Fur
- */
-public abstract class AbstractPropertiesGeneratorLauncher implements IPropertiesGeneratorLauncher {
-
- /**
- * Name of the launcher
- */
- private String name;
-
- /**
- * @return the name
- */
- public String getName() {
- return name;
- }
-
- /**
- * @param name
- * the name to set
- */
- public void setName(String name) {
- this.name = name;
- }
-
- /**
- * A set containing the generation target
- */
- protected Set targetContainer = new HashSet();
-
- /**
- * @return the targetContainer
- */
- public Set getTargetContainer() {
- return targetContainer;
- }
-
- /**
- * Finds the template in the plug-in. Returns the template plug-in URI.
- *
- * @param bundleID
- * is the plug-in ID
- * @param relativePath
- * is the relative path of the template in the plug-in
- * @return the template URI
- * @throws IOException
- * @deprecated
- */
- protected URI getTemplateURI(String bundleID, IPath relativePath) throws IOException {
- Bundle bundle = Platform.getBundle(bundleID);
- if (bundle == null) {
- // no need to go any further
- return URI.createPlatformResourceURI(new Path(bundleID).append(relativePath).toString(), false);
- }
- URL url = bundle.getEntry(relativePath.toString());
- if (url == null && relativePath.segmentCount() > 1) {
- Enumeration entries = bundle.findEntries("/", "*.emtl", true);
- if (entries != null) {
- String[] segmentsRelativePath = relativePath.segments();
- while (url == null && entries.hasMoreElements()) {
- URL entry = entries.nextElement();
- IPath path = new Path(entry.getPath());
- if (path.segmentCount() > relativePath.segmentCount()) {
- path = path.removeFirstSegments(path.segmentCount() - relativePath.segmentCount());
- }
- String[] segmentsPath = path.segments();
- boolean equals = segmentsPath.length == segmentsRelativePath.length;
- for (int i = 0; equals && i < segmentsPath.length; i++) {
- equals = segmentsPath[i].equals(segmentsRelativePath[i]);
- }
- if (equals) {
- url = bundle.getEntry(entry.getPath());
- }
- }
- }
- }
- URI result;
- if (url != null) {
- result = URI.createPlatformPluginURI(new Path(bundleID).append(new Path(url.getPath()))
- .toString(), false);
- } else {
- result = URI.createPlatformResourceURI(new Path(bundleID).append(relativePath).toString(), false);
- }
- return result;
- }
-
-}
diff --git a/plugins/org.eclipse.emf.eef.codegen/src-custom/org/eclipse/emf/eef/codegen/core/launcher/EEFLauncher.java b/plugins/org.eclipse.emf.eef.codegen/src-custom/org/eclipse/emf/eef/codegen/core/launcher/EEFLauncher.java
deleted file mode 100644
index 1bd70afd5..000000000
--- a/plugins/org.eclipse.emf.eef.codegen/src-custom/org/eclipse/emf/eef/codegen/core/launcher/EEFLauncher.java
+++ /dev/null
@@ -1,54 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008, 2012 Obeo.
- * 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:
- * Obeo - initial API and implementation
- *******************************************************************************/
-package org.eclipse.emf.eef.codegen.core.launcher;
-
-import java.io.File;
-import java.io.IOException;
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.emf.common.util.BasicMonitor;
-import org.eclipse.emf.common.util.URI;
-
-/**
- * @author Goulwen Le Fur
- * @deprecated use {@link org.eclipse.emf.eef.codegen.launcher.EEFLauncher}
- */
-public class EEFLauncher {
-
- /**
- * @param args
- */
- public static void main(String[] args) {
- try {
- if (args.length != 3) {
- System.out.println("Arguments not valid : {model, folder, basePackage}.");
- } else {
- URI modelURI = URI.createFileURI(args[0]);
- File folder = new File(args[1]);
- BasicMonitor monitor = new BasicMonitor();
- List arguments = new ArrayList();
- arguments.add(args[2]);
-
- monitor.subTask("Loading...");
- org.eclipse.emf.eef.codegen.launcher.EEFLauncher launcher = new org.eclipse.emf.eef.codegen.launcher.EEFLauncher(modelURI, folder, arguments);
- monitor.worked(1);
- monitor.subTask("Generating using "
- + modelURI.lastSegment() + "...");
- launcher.doGenerate(monitor);
- monitor.worked(1);
- }
- } catch (IOException e) {
- e.printStackTrace();
- }
- }
-
-}
diff --git a/plugins/org.eclipse.emf.eef.codegen/src-custom/org/eclipse/emf/eef/codegen/core/launcher/EMFPropertiesLauncher.java b/plugins/org.eclipse.emf.eef.codegen/src-custom/org/eclipse/emf/eef/codegen/core/launcher/EMFPropertiesLauncher.java
deleted file mode 100644
index f408d3ab3..000000000
--- a/plugins/org.eclipse.emf.eef.codegen/src-custom/org/eclipse/emf/eef/codegen/core/launcher/EMFPropertiesLauncher.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008, 2012 Obeo.
- * 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:
- * Obeo - initial API and implementation
- *******************************************************************************/
-package org.eclipse.emf.eef.codegen.core.launcher;
-
-
-/**
- * @author Goulwen Le Fur
- * @deprecated use {@link org.eclipse.emf.eef.codegen.launcher.EEFLauncher}
- */
-public class EMFPropertiesLauncher {
-
- /**
- * @param args
- */
- public static void main(String[] args) {
- EEFLauncher.main(args);
- }
-
-}
diff --git a/plugins/org.eclipse.emf.eef.codegen/src-custom/org/eclipse/emf/eef/codegen/core/launcher/IPropertiesGeneratorLauncher.java b/plugins/org.eclipse.emf.eef.codegen/src-custom/org/eclipse/emf/eef/codegen/core/launcher/IPropertiesGeneratorLauncher.java
deleted file mode 100644
index a6340a547..000000000
--- a/plugins/org.eclipse.emf.eef.codegen/src-custom/org/eclipse/emf/eef/codegen/core/launcher/IPropertiesGeneratorLauncher.java
+++ /dev/null
@@ -1,25 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008, 2012 Obeo.
- * 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:
- * Obeo - initial API and implementation
- *******************************************************************************/
-package org.eclipse.emf.eef.codegen.core.launcher;
-
-import java.io.File;
-
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.emf.eef.EEFGen.EEFGenModel;
-
-/**
- * @author Goulwen Le Fur
- */
-public interface IPropertiesGeneratorLauncher {
-
- public void doGenerate(EEFGenModel eefGenModel, File targetFolder, IProgressMonitor monitor);
-
-}
diff --git a/plugins/org.eclipse.emf.eef.codegen/src-custom/org/eclipse/emf/eef/codegen/core/services/PropertiesGeneratorLaunchersServices.java b/plugins/org.eclipse.emf.eef.codegen/src-custom/org/eclipse/emf/eef/codegen/core/services/PropertiesGeneratorLaunchersServices.java
deleted file mode 100644
index 5e358e4fc..000000000
--- a/plugins/org.eclipse.emf.eef.codegen/src-custom/org/eclipse/emf/eef/codegen/core/services/PropertiesGeneratorLaunchersServices.java
+++ /dev/null
@@ -1,112 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008, 2012 Obeo.
- * 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:
- * Obeo - initial API and implementation
- *******************************************************************************/
-package org.eclipse.emf.eef.codegen.core.services;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IConfigurationElement;
-import org.eclipse.core.runtime.IExtension;
-import org.eclipse.core.runtime.IExtensionPoint;
-import org.eclipse.core.runtime.Platform;
-import org.eclipse.emf.eef.codegen.EEFCodegenPlugin;
-import org.eclipse.emf.eef.codegen.core.launcher.AbstractPropertiesGeneratorLauncher;
-
-/**
- * @author Goulwen Le Fur
- */
-public class PropertiesGeneratorLaunchersServices {
-
- /**
- * The extension name.
- */
- public static final String EXTENSION_NAME = "PropertiesGeneratorLauncher"; //$NON-NLS-1$
-
- /**
- * The extension's element name.
- */
- private static final String EXTENSION_ELEMENT_NAME = "PropertiesGeneratorLauncher"; //$NON-NLS-1$
-
- /**
- * The element's attribute name.
- */
- private static final String EXTENSION_ATTRIBUTE_NAME = "name"; //$NON-NLS-1$
-
- /**
- * The launcher class.
- */
- private static final String EXTENSION_ATTRIBUTE_CLASS = "generatorLauncher"; //$NON-NLS-1$
-
- /**
- * The instance of the service
- */
- private static PropertiesGeneratorLaunchersServices instance = new PropertiesGeneratorLaunchersServices();
-
- /**
- * The discovered strategies
- */
- private List launchers;
-
- /**
- * Default constructor
- */
- private PropertiesGeneratorLaunchersServices() {
- configureService();
- }
-
- /**
- * @return the service instance
- */
- public static PropertiesGeneratorLaunchersServices getInstance() {
- return instance;
- }
-
- /**
- * @return the strategies
- */
- public List getlaunchers() {
- return launchers;
- }
-
- /**
- * Load all the providers registered by extension point.
- */
- private void configureService() {
- launchers = new ArrayList();
- IExtensionPoint extensionPoint = Platform.getExtensionRegistry().getExtensionPoint(
- EEFCodegenPlugin.PLUGIN_ID, EXTENSION_NAME);
-
- IExtension[] extensions = extensionPoint.getExtensions();
- for (int extensionIndex = 0; extensionIndex < extensions.length; extensionIndex++) {
- IExtension extension = extensions[extensionIndex];
- IConfigurationElement[] configurationElements = extension.getConfigurationElements();
- for (int i = 0; i < configurationElements.length; i++) {
- IConfigurationElement cfg = configurationElements[i];
-
- if (EXTENSION_ELEMENT_NAME.equals(cfg.getName())) {
- try {
- AbstractPropertiesGeneratorLauncher launcher = (AbstractPropertiesGeneratorLauncher)cfg
- .createExecutableExtension(EXTENSION_ATTRIBUTE_CLASS);
- String nameAttribute = cfg.getAttribute(EXTENSION_ATTRIBUTE_NAME);
- if (nameAttribute != null)
- launcher.setName(nameAttribute);
- launchers.add(launcher);
- } catch (CoreException e) {
- e.printStackTrace();
- }
- }
- }
- }
-
- }
-
-}
diff --git a/plugins/org.eclipse.emf.eef.codegen/src-custom/org/eclipse/emf/eef/codegen/core/services/PropertiesInitializerStrategyServices.java b/plugins/org.eclipse.emf.eef.codegen/src-custom/org/eclipse/emf/eef/codegen/core/services/PropertiesInitializerStrategyServices.java
deleted file mode 100644
index 31ebc28b7..000000000
--- a/plugins/org.eclipse.emf.eef.codegen/src-custom/org/eclipse/emf/eef/codegen/core/services/PropertiesInitializerStrategyServices.java
+++ /dev/null
@@ -1,120 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008, 2012 Obeo.
- * 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:
- * Obeo - initial API and implementation
- *******************************************************************************/
-package org.eclipse.emf.eef.codegen.core.services;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IConfigurationElement;
-import org.eclipse.core.runtime.IExtension;
-import org.eclipse.core.runtime.IExtensionPoint;
-import org.eclipse.core.runtime.Platform;
-import org.eclipse.emf.eef.codegen.EEFCodegenPlugin;
-import org.eclipse.emf.eef.codegen.core.initializer.AbstractPropertiesInitializer;
-
-/**
- * @author Goulwen Le Fur
- */
-public class PropertiesInitializerStrategyServices {
-
- /**
- * The extension name.
- */
- public static final String EXTENSION_NAME = "PropertiesInitializerStrategy"; //$NON-NLS-1$
-
- /**
- * The extension's element name.
- */
- private static final String EXTENSION_ELEMENT_NAME = "PropertiesInitializerStrategy"; //$NON-NLS-1$
-
- /**
- * The element's attribute name.
- */
- private static final String EXTENSION_ATTRIBUTE_NAME = "name"; //$NON-NLS-1$
-
- /**
- * The element's attribute description.
- */
- private static final String EXTENSION_ATTRIBUTE_DESCRIPTION = "description"; //$NON-NLS-1$
-
- /**
- * The element's attribute class.
- */
- private static final String EXTENSION_ATTRIBUTE_CLASS = "strategyClass"; //$NON-NLS-1$
-
- /**
- * The instance of the service
- */
- private static PropertiesInitializerStrategyServices instance = new PropertiesInitializerStrategyServices();
-
- /**
- * The discovered strategies
- */
- private List strategies;
-
- /**
- * Default constructor
- */
- private PropertiesInitializerStrategyServices() {
- configureService();
- }
-
- /**
- * @return the service instance
- */
- public static PropertiesInitializerStrategyServices getInstance() {
- return instance;
- }
-
- /**
- * @return the strategies
- */
- public List getStrategies() {
- return strategies;
- }
-
- /**
- * Load all the providers registered by extension point.
- */
- private void configureService() {
- strategies = new ArrayList();
- IExtensionPoint extensionPoint = Platform.getExtensionRegistry().getExtensionPoint(
- EEFCodegenPlugin.PLUGIN_ID, EXTENSION_NAME);
-
- IExtension[] extensions = extensionPoint.getExtensions();
- for (int extensionIndex = 0; extensionIndex < extensions.length; extensionIndex++) {
- IExtension extension = extensions[extensionIndex];
- IConfigurationElement[] configurationElements = extension.getConfigurationElements();
- for (int i = 0; i < configurationElements.length; i++) {
- IConfigurationElement cfg = configurationElements[i];
-
- if (EXTENSION_ELEMENT_NAME.equals(cfg.getName())) {
- try {
- AbstractPropertiesInitializer initializer = (AbstractPropertiesInitializer)cfg
- .createExecutableExtension(EXTENSION_ATTRIBUTE_CLASS);
- String nameAttribute = cfg.getAttribute(EXTENSION_ATTRIBUTE_NAME);
- if (nameAttribute != null)
- initializer.setName(nameAttribute);
- String descriptionAttribute = cfg.getAttribute(EXTENSION_ATTRIBUTE_DESCRIPTION);
- if (descriptionAttribute != null)
- initializer.setDescription(descriptionAttribute);
- strategies.add(initializer);
- } catch (CoreException e) {
- e.printStackTrace();
- }
- }
- }
- }
-
- }
-
-}
diff --git a/plugins/org.eclipse.emf.eef.codegen/src-custom/org/eclipse/emf/eef/codegen/core/util/BundleHelper.java b/plugins/org.eclipse.emf.eef.codegen/src-custom/org/eclipse/emf/eef/codegen/core/util/BundleHelper.java
deleted file mode 100644
index 14e7de63d..000000000
--- a/plugins/org.eclipse.emf.eef.codegen/src-custom/org/eclipse/emf/eef/codegen/core/util/BundleHelper.java
+++ /dev/null
@@ -1,101 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008, 2012 Obeo.
- * 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:
- * Obeo - initial API and implementation
- *******************************************************************************/
-package org.eclipse.emf.eef.codegen.core.util;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.pde.core.plugin.IPluginBase;
-import org.eclipse.pde.core.plugin.IPluginImport;
-import org.eclipse.pde.internal.core.bundle.BundlePluginModel;
-import org.eclipse.pde.internal.core.bundle.BundlePluginModelBase;
-import org.eclipse.pde.internal.core.bundle.WorkspaceBundleModel;
-
-/**
- * @author Goulwen Le Fur
- *
- */
-public class BundleHelper {
-
- private static final String MANIFEST_FILE_PATH = "META-INF/MANIFEST.MF";
- private IProject bundleProject;
- private BundlePluginModel pluginModel;
-
- /**
- * @param bundleProject the bundle project to use
- */
- public BundleHelper(IProject bundleProject) {
- super();
- this.bundleProject = bundleProject;
- }
-
- /**
- * Extract the bundle model from the project.
- * @return the extracted model
- */
- public BundlePluginModel getBundlePluginModel() {
- if (pluginModel == null) {
- IFile manifest = bundleProject.getFile(new Path(MANIFEST_FILE_PATH));
- WorkspaceBundleModel bModel = new WorkspaceBundleModel(manifest);
- bModel.load();
-// WorkspaceExtensionsModel eModel = new WorkspaceExtensionsModel(pluginxml);
- pluginModel = new BundlePluginModel();
- pluginModel.setBundleModel(bModel);
-// pluginModel.setExtensionsModel(eModel);
- }
- return pluginModel;
- }
-
- /**
- * Add a bundle to the dependencies of the managed plugin
- * @param bundleToAdd the bundle to add.
- * @throws CoreException an error occured during the process.
- */
- public void addDependency(String bundleToAdd) throws CoreException {
- IPluginBase pluginBase = getBundlePluginModel().getPluginBase();
- //TODO: Verifier la non existance effective
-// IPluginImport[] imports = pluginBase.getImports();
- IPluginImport createImport = ((BundlePluginModelBase)getBundlePluginModel().getPluginFactory()).createImport(bundleToAdd);
- createImport.setReexported(true);
- pluginBase.add(createImport);
- getBundlePluginModel().save();
- }
-
-// @SuppressWarnings("restriction")
-// public void addExtension(String id) throws CoreException {
-// getBundlePluginModel().getExtensionsModel().load();
-// IPluginExtension extension = getBundlePluginModel().getFactory().createExtension();
-// extension.setPoint(id);
-// ISchemaElement schemaElement = null;
-// Object object = extension.getSchema();
-// if ((object != null) && (object instanceof Schema)) {
-// Schema schema = (Schema) object;
-// if (extension instanceof PluginExtension) {
-// PluginExtension pluginExt = (PluginExtension) extension;
-// String name = "PropertiesEditionPartProvider";
-// schemaElement = schema.findElement(name);
-// }
-// if (extension instanceof PluginExtensionNode) {
-// // Get the extension's XML element name
-// String elementName = ((PluginExtensionNode) extension).getXMLTagName();
-// // Find the extension's corresponding schema element
-// schemaElement = schema.findElement(elementName);
-// }
-// // If there is an associated schema, do the auto-insert
-// if (schemaElement != null) {
-// XMLInsertionComputer.computeInsertion(schemaElement, extension);
-// }
-// }
-// getBundlePluginModel().save();
-// }
-
-}
diff --git a/plugins/org.eclipse.emf.eef.codegen/src-custom/org/eclipse/emf/eef/codegen/core/util/EMFHelper.java b/plugins/org.eclipse.emf.eef.codegen/src-custom/org/eclipse/emf/eef/codegen/core/util/EMFHelper.java
deleted file mode 100644
index d1f3c10dd..000000000
--- a/plugins/org.eclipse.emf.eef.codegen/src-custom/org/eclipse/emf/eef/codegen/core/util/EMFHelper.java
+++ /dev/null
@@ -1,120 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008, 2012 Obeo.
- * 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:
- * Obeo - initial API and implementation
- *******************************************************************************/
-package org.eclipse.emf.eef.codegen.core.util;
-
-import java.io.IOException;
-import java.util.HashMap;
-import java.util.Map;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.emf.common.util.URI;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.resource.Resource;
-import org.eclipse.emf.ecore.resource.ResourceSet;
-import org.eclipse.emf.ecore.xmi.XMLResource;
-import org.eclipse.emf.ecore.xmi.impl.XMIResourceFactoryImpl;
-
-/**
- * @author Goulwen Le Fur
- *
- */
-public class EMFHelper {
-
- /**
- * @param modelURI
- * @param resourceSet
- * @return
- * @throws IOException
- */
- public static EObject load(URI modelURI, ResourceSet resourceSet) throws IOException {
- EObject result = null;
- Resource modelResource = null;
- modelResource = resourceAlreadyLoaded(modelURI, resourceSet, modelResource);
- if (modelResource == null) {
- modelResource = createResource(modelURI, resourceSet);
- final Map options = new HashMap();
- options.put(XMLResource.OPTION_ENCODING, System.getProperty("file.encoding"));
- modelResource.load(options);
- }
- if (modelResource.getContents().size() > 0) {
- result = modelResource.getContents().get(0);
- } else {
- // Maybe the resource was deleted. Try a reload
- modelResource.unload();
- final Map options = new HashMap();
- options.put(XMLResource.OPTION_ENCODING, System.getProperty("file.encoding"));
- modelResource.load(options);
- if (modelResource.getContents().size() > 0) {
- result = modelResource.getContents().get(0);
- }
- }
- return result;
- }
-
- /**
- * @param modelURI
- * @param resourceSet
- * @param modelResource
- * @return
- */
- protected static Resource resourceAlreadyLoaded(URI modelURI, ResourceSet resourceSet, Resource modelResource) {
- for (Resource resource : resourceSet.getResources()) {
- if (resource.getURI().equals(modelURI)) {
- modelResource = resource;
- }
- }
- return modelResource;
- }
-
- /**
- * This will create a {@link Resource} given the model extension it is intended for and a ResourceSet.
- *
- * @param modelURI
- * {@link org.eclipse.emf.common.util.URI URI} where the model is stored.
- * @param resourceSet
- * The {@link ResourceSet} to load the model in.
- * @return The {@link Resource} given the model extension it is intended for.
- * @generated
- */
- public static Resource createResource(URI modelURI, ResourceSet resourceSet) {
- String fileExtension = modelURI.fileExtension();
- if (fileExtension == null || fileExtension.length() == 0) {
- fileExtension = Resource.Factory.Registry.DEFAULT_EXTENSION;
- }
- final Resource.Factory.Registry registry = Resource.Factory.Registry.INSTANCE;
- final Object resourceFactory = registry.getExtensionToFactoryMap().get(fileExtension);
- if (resourceFactory != null) {
- resourceSet.getResourceFactoryRegistry().getExtensionToFactoryMap().put(fileExtension,
- resourceFactory);
- } else {
- resourceSet.getResourceFactoryRegistry().getExtensionToFactoryMap().put(fileExtension,
- new XMIResourceFactoryImpl());
- }
- return resourceSet.createResource(modelURI);
- }
-
-
- /**
- * @param eObject
- * @return
- */
- public static IFile associatedFile(EObject eObject) {
- if (eObject.eResource().getURI().isPlatformResource()) {
- URI uri = eObject.eResource().getURI();
- String path = uri.toString().substring("platform:/resource".length());
- return ResourcesPlugin.getWorkspace().getRoot().getFile(new Path(path));
- }
- return null;
- }
-
-}
diff --git a/plugins/org.eclipse.emf.eef.codegen/src-custom/org/eclipse/emf/eef/codegen/core/util/ExtensionHelper.java b/plugins/org.eclipse.emf.eef.codegen/src-custom/org/eclipse/emf/eef/codegen/core/util/ExtensionHelper.java
deleted file mode 100644
index 1d0ed3432..000000000
--- a/plugins/org.eclipse.emf.eef.codegen/src-custom/org/eclipse/emf/eef/codegen/core/util/ExtensionHelper.java
+++ /dev/null
@@ -1,247 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008, 2012 Obeo.
- * 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:
- * Obeo - initial API and implementation
- *******************************************************************************/
-package org.eclipse.emf.eef.codegen.core.util;
-
-import java.io.IOException;
-import java.util.ArrayList;
-import java.util.List;
-
-import javax.xml.parsers.DocumentBuilder;
-import javax.xml.parsers.DocumentBuilderFactory;
-import javax.xml.parsers.ParserConfigurationException;
-import javax.xml.transform.Transformer;
-import javax.xml.transform.TransformerConfigurationException;
-import javax.xml.transform.TransformerException;
-import javax.xml.transform.TransformerFactory;
-import javax.xml.transform.TransformerFactoryConfigurationError;
-import javax.xml.transform.dom.DOMSource;
-import javax.xml.transform.stream.StreamResult;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.runtime.Path;
-import org.w3c.dom.Document;
-import org.w3c.dom.NamedNodeMap;
-import org.w3c.dom.Node;
-import org.w3c.dom.NodeList;
-import org.xml.sax.SAXException;
-
-/**
- * @author Goulwen Le Fur
- *
- */
-public class ExtensionHelper {
-
- private static final String POINT_ATTRIBUTE_NAME = "point";
-
- private static final String EXTENSION_TAG = "extension";
-
- private static final String PLUGIN_TAG_NAME = "plugin";
-
- private static final String PLUGIN_XML_FILE_PATH = "plugin.xml";
-
- private IProject bundleProject;
- private Document document;
- private IFile pluginXML;
-
- /**
- * @param pluginProject
- * @throws ParserConfigurationException
- * @throws IOException
- * @throws SAXException
- */
- public ExtensionHelper(IProject pluginProject) throws ParserConfigurationException, SAXException, IOException {
- this.bundleProject = pluginProject;
- this.pluginXML = pluginXML();
- DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
- factory.setIgnoringElementContentWhitespace(false);
- DocumentBuilder builder = factory.newDocumentBuilder();
- document = builder.parse(pluginXML.getLocation().toFile());
- }
-
- public ExtensionHelper(IFile pluginXML) throws ParserConfigurationException, SAXException, IOException {
- this.bundleProject = pluginXML.getProject();
- this.pluginXML = pluginXML;
- DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
- DocumentBuilder builder = factory.newDocumentBuilder();
- document = builder.parse(pluginXML.getLocation().toFile());
- }
-
-
- /**
- * @return
- */
- public List extensions() {
- List result = new ArrayList();
- Node pluginTag = pluginTag();
- if (pluginTag != null && pluginTag.hasChildNodes()) {
- NodeList elementsByTagName = document.getElementsByTagName(EXTENSION_TAG);
- int i = 0;
- Node next = elementsByTagName.item(i);
- while (next != null) {
- result.add(next);
- i++;
- next = elementsByTagName.item(i);
- }
- }
- return result;
- }
-
- /**
- * @param id
- * @return
- */
- public List extensionsWithID(String id) {
- List result = new ArrayList();
- for (Node node : extensions()) {
- NamedNodeMap attributes = node.getAttributes();
- Node namedItem = attributes.getNamedItem(POINT_ATTRIBUTE_NAME);
- if (namedItem != null && namedItem.getNodeValue().equals(id)) {
- result.add(node);
- }
- }
- return result;
- }
-
- /**
- * @param n1
- * @return
- */
- public boolean hasExtension(Node n1) {
- for (Node node : extensions()) {
- if (extensionsEqual(n1, node)) {
- return true;
- }
- }
- return false;
- }
-
- /**
- * @return the "plugin.xml" file of the plugin
- */
- public IFile pluginXML() {
- if (pluginXML == null) {
- return bundleProject.getFile(new Path(PLUGIN_XML_FILE_PATH));
- } else {
- return pluginXML;
- }
- }
-
- /**
- * @param helper
- * @return
- */
- public List diff(ExtensionHelper helper) {
- List extensions = helper.extensions();
- List res = new ArrayList(extensions.size());
- for (Node ext : extensions) {
- if (!hasExtension(ext)) {
- res.add(ext);
- }
- }
- return res;
- }
-
-
- /**
- * @param extensions
- * @throws TransformerException
- * @throws TransformerFactoryConfigurationError
- * @throws TransformerConfigurationException
- */
- public void append(List extensions) throws TransformerConfigurationException, TransformerFactoryConfigurationError, TransformerException {
- for (Node node : extensions) {
- Node importNode = document.importNode(node, true);
- pluginTag().appendChild(importNode);
- }
- save();
- }
-
- public void save() throws TransformerConfigurationException, TransformerFactoryConfigurationError, TransformerException {
- Transformer transformer = TransformerFactory.newInstance().newTransformer();
- StreamResult result = new StreamResult(pluginXML.getLocation().toFile());
- DOMSource source = new DOMSource(document);
- transformer.transform(source, result);
- }
-
- /**
- * @param n1
- * @param n2
- * @return
- */
- private boolean extensionsEqual(Node n1, Node n2) {
- boolean res = extensionAttributesEquals(n1, n2);
- if (res) {
- // All attributes are equals, comparing sub-nodes
- NodeList childNodes = n1.getChildNodes();
- for (int i = 0; i < childNodes.getLength(); i++) {
- Node childNode = childNodes.item(i);
- if (!hasAMatchingSubNode(childNode, n2)) {
- return false;
- }
- }
- }
- return res;
- }
-
- private boolean extensionAttributesEquals(Node n1, Node n2) {
- NamedNodeMap n1Attributes = n1.getAttributes();
- NamedNodeMap n2Attributes = n2.getAttributes();
- if (n1Attributes == null) {
- if (n2Attributes == null) {
- return true;
- }
- else {
- return false;
- }
- }
- else if (n2Attributes == null) {
- return false;
- } else {
- for (int i = 0; i < n1Attributes.getLength(); i++) {
- Node item = n1Attributes.item(i);
- String nodeName = item.getNodeName();
- Node matchingItem = n2Attributes.getNamedItem(nodeName);
- if (!item.getNodeValue().equals(matchingItem.getNodeValue())) {
- return false;
- }
- }
- return true;
- }
- }
-
- /**
- * @param subNode
- * @param processingNode
- * @return
- */
- private boolean hasAMatchingSubNode(Node subNode, Node processingNode) {
- NodeList childNodes = processingNode.getChildNodes();
- for (int i = 0; i < childNodes.getLength(); i++) {
- Node childNode = childNodes.item(i);
- if (extensionsEqual(subNode, childNode)) {
- return true;
- }
- }
- return false;
- }
-
- /**
- * @return
- */
- private Node pluginTag() {
- NodeList pluginTags = document.getElementsByTagName(PLUGIN_TAG_NAME);
- if (pluginTags.item(0) != null)
- return pluginTags.item(0);
- return null;
- }
-
-}
diff --git a/plugins/org.eclipse.emf.eef.codegen/src-custom/org/eclipse/emf/eef/codegen/flow/impl/AddDependency.java b/plugins/org.eclipse.emf.eef.codegen/src-custom/org/eclipse/emf/eef/codegen/flow/impl/AddDependency.java
deleted file mode 100644
index b099a5fb4..000000000
--- a/plugins/org.eclipse.emf.eef.codegen/src-custom/org/eclipse/emf/eef/codegen/flow/impl/AddDependency.java
+++ /dev/null
@@ -1,65 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008, 2012 Obeo.
- * 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:
- * Obeo - initial API and implementation
- *******************************************************************************/
-package org.eclipse.emf.eef.codegen.flow.impl;
-
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.emf.eef.codegen.EEFCodegenPlugin;
-import org.eclipse.emf.eef.codegen.core.util.BundleHelper;
-import org.eclipse.emf.eef.codegen.flow.Step;
-import org.eclipse.emf.eef.codegen.flow.var.WorkflowVariable;
-
-/**
- * @author Goulwen Le Fur
- *
- */
-public class AddDependency extends Step {
-
- private Object project;
- private String dependency;
-
- /**
- * @param name of the step
- */
- public AddDependency(String name, Object project, String dependency) {
- super(name);
- this.project = project;
- this.dependency = dependency;
- }
-
- /**
- * {@inheritDoc}
- * @see org.eclipse.emf.eef.codegen.flow.Step#execute(org.eclipse.core.runtime.IProgressMonitor)
- */
- public IStatus execute(IProgressMonitor monitor) {
- try {
- BundleHelper bundleHelper = new BundleHelper(getEditProject());
- bundleHelper.addDependency(dependency);
- return Status.OK_STATUS;
- } catch (CoreException e) {
- return new Status(IStatus.ERROR, EEFCodegenPlugin.PLUGIN_ID, "An error occured when adding dependency.", e);
- }
- }
-
- private IProject getEditProject() {
- if (project instanceof IProject) {
- return (IProject) project;
- } else if (project instanceof WorkflowVariable) {
- return (IProject) ((WorkflowVariable)project).getValue();
- } else {
- return null;
- }
- }
-
-}
diff --git a/plugins/org.eclipse.emf.eef.codegen/src-custom/org/eclipse/emf/eef/codegen/flow/impl/GenerateEEFCode.java b/plugins/org.eclipse.emf.eef.codegen/src-custom/org/eclipse/emf/eef/codegen/flow/impl/GenerateEEFCode.java
deleted file mode 100644
index 4c28d3314..000000000
--- a/plugins/org.eclipse.emf.eef.codegen/src-custom/org/eclipse/emf/eef/codegen/flow/impl/GenerateEEFCode.java
+++ /dev/null
@@ -1,69 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008, 2012 Obeo.
- * 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:
- * Obeo - initial API and implementation
- *******************************************************************************/
-package org.eclipse.emf.eef.codegen.flow.impl;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.emf.eef.EEFGen.EEFGenModel;
-import org.eclipse.emf.eef.codegen.flow.Step;
-import org.eclipse.emf.eef.codegen.flow.var.WorkflowVariable;
-import org.eclipse.emf.eef.codegen.ui.generators.callback.EEFGenerationCallback;
-import org.eclipse.emf.eef.codegen.ui.generators.common.GenerationHelper;
-
-/**
- * @author Goulwen Le Fur
- *
- */
-public class GenerateEEFCode extends Step {
-
- private Object eefgenModel;
- private List callbacks;
-
- /**
- * @param name of the step
- */
- public GenerateEEFCode(String name, Object eefgenModel) {
- super(name);
- this.eefgenModel = eefgenModel;
- callbacks = new ArrayList(1);
- }
-
- /**
- * {@inheritDoc}
- * @see org.eclipse.emf.eef.codegen.flow.Step#execute(org.eclipse.core.runtime.IProgressMonitor)
- */
- public IStatus execute(IProgressMonitor monitor) {
- List eefgenModels = new ArrayList(1);
- eefgenModels.add(getEEFGenModel());
- GenerationHelper generationHelper = new GenerationHelper(eefgenModels, callbacks);
- generationHelper.generate(monitor);
- return Status.OK_STATUS;
- }
-
- public void addGenerationCallback(EEFGenerationCallback callback) {
- callbacks.add(callback);
- }
-
- public EEFGenModel getEEFGenModel() {
- if (eefgenModel instanceof EEFGenModel) {
- return (EEFGenModel) eefgenModel;
- } else if (eefgenModel instanceof WorkflowVariable) {
- return (EEFGenModel) ((WorkflowVariable)eefgenModel).getValue();
- } else {
- return null;
- }
- }
-
-}
diff --git a/plugins/org.eclipse.emf.eef.codegen/src-custom/org/eclipse/emf/eef/codegen/flow/impl/GenerateEEFModels.java b/plugins/org.eclipse.emf.eef.codegen/src-custom/org/eclipse/emf/eef/codegen/flow/impl/GenerateEEFModels.java
deleted file mode 100644
index 994ff241f..000000000
--- a/plugins/org.eclipse.emf.eef.codegen/src-custom/org/eclipse/emf/eef/codegen/flow/impl/GenerateEEFModels.java
+++ /dev/null
@@ -1,163 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008, 2012 Obeo.
- * 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:
- * Obeo - initial API and implementation
- *******************************************************************************/
-package org.eclipse.emf.eef.codegen.flow.impl;
-
-import java.io.IOException;
-
-import org.eclipse.core.resources.IFolder;
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.resources.IResource;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.NullProgressMonitor;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.emf.common.util.URI;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.eef.EEFGen.EEFGenModel;
-import org.eclipse.emf.eef.codegen.EEFCodegenPlugin;
-import org.eclipse.emf.eef.codegen.core.initializer.PropertiesInitializer;
-import org.eclipse.emf.eef.codegen.core.util.EMFHelper;
-import org.eclipse.emf.eef.codegen.flow.Step;
-import org.eclipse.emf.eef.codegen.flow.var.WorkflowVariable;
-
-/**
- * @author Goulwen Le Fur
- *
- */
-public class GenerateEEFModels extends Step {
-
- private PropertiesInitializer propertiesInitializer;
- private Object modelURI;
- private Object editGenProject;
- private Object genmodelURI;
- private WorkflowVariable eefgenModelVar;
- private WorkflowVariable eefModelsFolderVar;
- private String modelsFolderPath;
-
- /**
- * @param name of the step
- */
- public GenerateEEFModels(String name, Object modelURI, Object editGenProject, Object genmodelURI, String modelsFolderPath) {
- super(name);
- this.modelURI = modelURI;
- this.editGenProject = editGenProject;
- this.genmodelURI = genmodelURI;
- this.modelsFolderPath = modelsFolderPath;
- }
-
- /**
- * {@inheritDoc}
- * @see org.eclipse.emf.eef.codegen.flow.Step#execute(org.eclipse.core.runtime.IProgressMonitor)
- */
- public IStatus execute(IProgressMonitor monitor) {
- try {
- IProject editProject = getEditProject();
- if (editProject != null) {
- propertiesInitializer = new PropertiesInitializer();
- IFolder modelsFolder = createEEFModelsFolder(editProject, monitor);
- initializeEEFModels(modelsFolder, getGenModelURI());
- EEFGenModel eefgenModel = generatedEEFGen(getModelURI(), modelsFolder);
- ((WorkflowVariable)getEEFGenModel()).setValue(eefgenModel);
- return Status.OK_STATUS;
- }
- else {
- return new Status(IStatus.ERROR, EEFCodegenPlugin.PLUGIN_ID, "Unable to find edit project");
- }
- } catch (IOException e) {
- return new Status(IStatus.ERROR, EEFCodegenPlugin.PLUGIN_ID, "An error occured during EEF models initialization.");
- } catch (CoreException e) {
- return new Status(IStatus.ERROR, EEFCodegenPlugin.PLUGIN_ID, "An error occured during EEF models initialization.");
- }
- }
-
- public Object getEEFGenModel() {
- if (eefgenModelVar == null) {
- eefgenModelVar = new WorkflowVariable(eefgenmodelVarName());
- }
- return eefgenModelVar;
- }
-
- private final String eefgenmodelVarName() {
- return "GEN_EEF_MODELS_" + name + "_EEFGENMODEL";
- }
-
- public Object getEEFModelsFolder() {
- if (eefModelsFolderVar == null) {
- eefModelsFolderVar = new WorkflowVariable(eefModelsFolderVarName());
- }
- return eefModelsFolderVar;
- }
-
- private final String eefModelsFolderVarName() {
- return "GEN_EEF_MODELS_" + name + "_EEFMODELSFOLDER";
- }
-
- private URI getModelURI() {
- if (modelURI instanceof URI) {
- return (URI) modelURI;
- } else if (modelURI instanceof WorkflowVariable) {
- return (URI) ((WorkflowVariable)modelURI).getValue();
- }
- return null;
- }
-
- private URI getGenModelURI() {
- if (genmodelURI instanceof URI) {
- return (URI) genmodelURI;
- } else if (genmodelURI instanceof WorkflowVariable) {
- return (URI) ((WorkflowVariable)genmodelURI).getValue();
- }
- return null;
- }
-
- private IProject getEditProject() {
- if (editGenProject instanceof IProject) {
- return (IProject) editGenProject;
- } else if (editGenProject instanceof WorkflowVariable) {
- return (IProject) ((WorkflowVariable)editGenProject).getValue();
- }
- else {
- return null;
- }
- }
-
- private void initializeEEFModels(IFolder modelsFolder, URI genmodelURI) throws IOException, CoreException {
- NullProgressMonitor monitor = new NullProgressMonitor();
- propertiesInitializer.initialize(genmodelURI, modelsFolder);
- modelsFolder.refreshLocal(IResource.DEPTH_INFINITE, monitor);
- }
-
- private EEFGenModel generatedEEFGen(URI modelURI, IFolder modelsFolder) throws IOException {
- String eefgenPath = modelsFolder.getFullPath().toString() + "/" + modelURI.trimFileExtension().appendFileExtension("eefgen").lastSegment();
- EEFGenModel eefgenModel = null;
- URI eefgenURI = URI.createPlatformResourceURI(eefgenPath, true);
- EObject extractedEEFGenModel = EMFHelper.load(eefgenURI, resourceSet);
- if (extractedEEFGenModel instanceof EEFGenModel) {
- eefgenModel = (EEFGenModel)extractedEEFGenModel;
- }
- return eefgenModel;
- }
-
-
- private IFolder createEEFModelsFolder(IProject editProject, IProgressMonitor monitor) throws CoreException {
- IFolder modelsFolder = editProject.getFolder(new Path(modelsFolderPath));
- if (!modelsFolder.exists()) {
- modelsFolder.create(true, true, monitor);
- editProject.refreshLocal(IResource.DEPTH_INFINITE, monitor);
- }
- ((WorkflowVariable)getEEFModelsFolder()).setValue(modelsFolder);
- return modelsFolder;
- }
-
-
-}
diff --git a/plugins/org.eclipse.emf.eef.codegen/src-custom/org/eclipse/emf/eef/codegen/flow/impl/GenerateEMFCode.java b/plugins/org.eclipse.emf.eef.codegen/src-custom/org/eclipse/emf/eef/codegen/flow/impl/GenerateEMFCode.java
deleted file mode 100644
index b5b3b7fd5..000000000
--- a/plugins/org.eclipse.emf.eef.codegen/src-custom/org/eclipse/emf/eef/codegen/flow/impl/GenerateEMFCode.java
+++ /dev/null
@@ -1,121 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008, 2012 Obeo.
- * 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:
- * Obeo - initial API and implementation
- *******************************************************************************/
-package org.eclipse.emf.eef.codegen.flow.impl;
-
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.resources.IWorkspace;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.emf.codegen.ecore.generator.Generator;
-import org.eclipse.emf.codegen.ecore.genmodel.GenModel;
-import org.eclipse.emf.codegen.ecore.genmodel.util.GenModelUtil;
-import org.eclipse.emf.eef.codegen.EEFCodegenPlugin;
-import org.eclipse.emf.eef.codegen.flow.Step;
-import org.eclipse.emf.eef.codegen.flow.var.WorkflowVariable;
-
-/**
- * @author Goulwen Le Fur
- *
- */
-public abstract class GenerateEMFCode extends Step {
-
- /**
- * Genmodel to use
- */
- private Object genmodel;
-
- /**
- *
- */
- private WorkflowVariable genProjectVar;
-
- /**
- * @param resourceSet
- */
- public GenerateEMFCode(String name, Object genmodel) {
- super(name);
- this.genmodel = genmodel;
- }
-
- protected GenModel getGenModel() {
- if (genmodel instanceof GenModel) {
- return (GenModel) genmodel;
- } else if (genmodel instanceof WorkflowVariable && ((WorkflowVariable)genmodel).getValue() instanceof GenModel) {
- return (GenModel) ((WorkflowVariable)genmodel).getValue();
- } else {
- return null;
- }
- }
-
- /**
- * {@inheritDoc}
- * @see org.eclipse.emf.eef.codegen.flow.Step#execute(org.eclipse.core.runtime.IProgressMonitor)
- */
- public IStatus execute(IProgressMonitor monitor) {
- try {
- if (getGenModel() != null) {
- getGenModel().setCanGenerate(true);
- generateModelCode(getGenModel());
- valuateGenerationProject();
- return Status.OK_STATUS;
- } else {
- return new Status(IStatus.ERROR, EEFCodegenPlugin.PLUGIN_ID, "Unable to find the generated GenModel.");
- }
- } catch (Exception e) {
- return new Status(IStatus.ERROR, EEFCodegenPlugin.PLUGIN_ID, "An error occured during EMF code generation.", e);
- }
- }
-
- /**
- *
- */
- protected abstract void valuateGenerationProject();
-
- /**
- * @return
- */
- public Object genProject() {
- if (genProjectVar == null) {
- genProjectVar = new WorkflowVariable(genprojectVarName());
- }
- return genProjectVar;
- }
-
- /**
- * @param genModel
- */
- protected void generateModelCode(GenModel genModel) {
- Generator generator = GenModelUtil.createGenerator(genModel);
- invokeGeneration(genModel, generator);
- }
-
- /**
- * @return
- */
- protected abstract String genprojectVarName();
-
- protected IProject extractProject(String sPath) {
- IPath path = new Path(sPath);
- IWorkspace workspace = ResourcesPlugin.getWorkspace();
- return workspace.getRoot().getProject(path.segment(0));
- }
-
- /**
- * @param genModel
- * @param generator
- */
- protected abstract void invokeGeneration(GenModel genModel, Generator generator);
-
-}
diff --git a/plugins/org.eclipse.emf.eef.codegen/src-custom/org/eclipse/emf/eef/codegen/flow/impl/GenerateEMFEditCode.java b/plugins/org.eclipse.emf.eef.codegen/src-custom/org/eclipse/emf/eef/codegen/flow/impl/GenerateEMFEditCode.java
deleted file mode 100644
index b7f42c1cd..000000000
--- a/plugins/org.eclipse.emf.eef.codegen/src-custom/org/eclipse/emf/eef/codegen/flow/impl/GenerateEMFEditCode.java
+++ /dev/null
@@ -1,59 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008, 2012 Obeo.
- * 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:
- * Obeo - initial API and implementation
- *******************************************************************************/
-package org.eclipse.emf.eef.codegen.flow.impl;
-
-import org.eclipse.core.runtime.NullProgressMonitor;
-import org.eclipse.emf.codegen.ecore.CodeGenEcorePlugin;
-import org.eclipse.emf.codegen.ecore.generator.Generator;
-import org.eclipse.emf.codegen.ecore.genmodel.GenModel;
-import org.eclipse.emf.codegen.ecore.genmodel.generator.GenBaseGeneratorAdapter;
-import org.eclipse.emf.common.util.BasicMonitor;
-import org.eclipse.emf.eef.codegen.flow.var.WorkflowVariable;
-
-/**
- * @author Goulwen Le Fur
- *
- */
-public class GenerateEMFEditCode extends GenerateEMFCode {
-
- /**
- * @param name
- * @param genmodel
- */
- public GenerateEMFEditCode(String name, Object genmodel) {
- super(name, genmodel);
- }
-
- /**
- * {@inheritDoc}
- * @see org.eclipse.emf.eef.codegen.flow.impl.GenerateEMFCode#invokeGeneration(org.eclipse.emf.codegen.ecore.genmodel.GenModel, org.eclipse.emf.codegen.ecore.generator.Generator)
- */
- protected void invokeGeneration(GenModel genModel, Generator generator) {
- generator.generate(genModel, GenBaseGeneratorAdapter.EDIT_PROJECT_TYPE, CodeGenEcorePlugin.INSTANCE.getString("_UI_EditProject_name"), BasicMonitor.toMonitor(new NullProgressMonitor()));
- }
-
- /**
- * {@inheritDoc}
- * @see org.eclipse.emf.eef.codegen.flow.impl.GenerateEMFCode#genprojectVarName()
- */
- protected String genprojectVarName() {
- return "GENERATE_EMF_EDIT_CODE_" + name + "_GEN_PROJECT";
- }
-
- /**
- * {@inheritDoc}
- * @see org.eclipse.emf.eef.codegen.flow.impl.GenerateEMFCode#valuateGenerationProject()
- */
- protected void valuateGenerationProject() {
- ((WorkflowVariable)genProject()).setValue(extractProject(getGenModel().getEditProjectDirectory()));
- }
-
-}
diff --git a/plugins/org.eclipse.emf.eef.codegen/src-custom/org/eclipse/emf/eef/codegen/flow/impl/GenerateEMFEditorCode.java b/plugins/org.eclipse.emf.eef.codegen/src-custom/org/eclipse/emf/eef/codegen/flow/impl/GenerateEMFEditorCode.java
deleted file mode 100644
index 099aa8311..000000000
--- a/plugins/org.eclipse.emf.eef.codegen/src-custom/org/eclipse/emf/eef/codegen/flow/impl/GenerateEMFEditorCode.java
+++ /dev/null
@@ -1,59 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008, 2012 Obeo.
- * 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:
- * Obeo - initial API and implementation
- *******************************************************************************/
-package org.eclipse.emf.eef.codegen.flow.impl;
-
-import org.eclipse.core.runtime.NullProgressMonitor;
-import org.eclipse.emf.codegen.ecore.CodeGenEcorePlugin;
-import org.eclipse.emf.codegen.ecore.generator.Generator;
-import org.eclipse.emf.codegen.ecore.genmodel.GenModel;
-import org.eclipse.emf.codegen.ecore.genmodel.generator.GenBaseGeneratorAdapter;
-import org.eclipse.emf.common.util.BasicMonitor;
-import org.eclipse.emf.eef.codegen.flow.var.WorkflowVariable;
-
-/**
- * @author Goulwen Le Fur
- *
- */
-public class GenerateEMFEditorCode extends GenerateEMFCode {
-
- /**
- * @param name
- * @param genmodel
- */
- public GenerateEMFEditorCode(String name, Object genmodel) {
- super(name, genmodel);
- }
-
- /**
- * {@inheritDoc}
- * @see org.eclipse.emf.eef.codegen.flow.impl.GenerateEMFCode#invokeGeneration(org.eclipse.emf.codegen.ecore.genmodel.GenModel, org.eclipse.emf.codegen.ecore.generator.Generator)
- */
- protected void invokeGeneration(GenModel genModel, Generator generator) {
- generator.generate(genModel, GenBaseGeneratorAdapter.EDITOR_PROJECT_TYPE, CodeGenEcorePlugin.INSTANCE.getString("_UI_EditorProject_name"), BasicMonitor.toMonitor(new NullProgressMonitor()));
- }
-
- /**
- * {@inheritDoc}
- * @see org.eclipse.emf.eef.codegen.flow.impl.GenerateEMFCode#genprojectVarName()
- */
- protected String genprojectVarName() {
- return "GENERATE_EMF_EDITOR_CODE_" + name + "_GEN_PROJECT";
- }
-
- /**
- * {@inheritDoc}
- * @see org.eclipse.emf.eef.codegen.flow.impl.GenerateEMFCode#valuateGenerationProject()
- */
- protected void valuateGenerationProject() {
- ((WorkflowVariable)genProject()).setValue(extractProject(getGenModel().getEditorProjectDirectory()));
- }
-
-}
diff --git a/plugins/org.eclipse.emf.eef.codegen/src-custom/org/eclipse/emf/eef/codegen/flow/impl/GenerateEMFModelCode.java b/plugins/org.eclipse.emf.eef.codegen/src-custom/org/eclipse/emf/eef/codegen/flow/impl/GenerateEMFModelCode.java
deleted file mode 100644
index dbd5ef92d..000000000
--- a/plugins/org.eclipse.emf.eef.codegen/src-custom/org/eclipse/emf/eef/codegen/flow/impl/GenerateEMFModelCode.java
+++ /dev/null
@@ -1,59 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008, 2012 Obeo.
- * 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:
- * Obeo - initial API and implementation
- *******************************************************************************/
-package org.eclipse.emf.eef.codegen.flow.impl;
-
-import org.eclipse.core.runtime.NullProgressMonitor;
-import org.eclipse.emf.codegen.ecore.CodeGenEcorePlugin;
-import org.eclipse.emf.codegen.ecore.generator.Generator;
-import org.eclipse.emf.codegen.ecore.genmodel.GenModel;
-import org.eclipse.emf.codegen.ecore.genmodel.generator.GenBaseGeneratorAdapter;
-import org.eclipse.emf.common.util.BasicMonitor;
-import org.eclipse.emf.eef.codegen.flow.var.WorkflowVariable;
-
-/**
- * @author Goulwen Le Fur
- *
- */
-public class GenerateEMFModelCode extends GenerateEMFCode {
-
- /**
- * @param name
- * @param genmodel
- */
- public GenerateEMFModelCode(String name, Object genmodel) {
- super(name, genmodel);
- }
-
- /**
- * {@inheritDoc}
- * @see org.eclipse.emf.eef.codegen.flow.impl.GenerateEMFCode#genprojectVarName()
- */
- protected String genprojectVarName() {
- return "GENERATE_EMF_MODEL_CODE_" + name + "_GEN_PROJECT";
- }
-
- /**
- * {@inheritDoc}
- * @see org.eclipse.emf.eef.codegen.flow.impl.GenerateEMFCode#invokeGeneration(org.eclipse.emf.codegen.ecore.genmodel.GenModel, org.eclipse.emf.codegen.ecore.generator.Generator)
- */
- protected void invokeGeneration(GenModel genModel, Generator generator) {
- generator.generate(genModel, GenBaseGeneratorAdapter.MODEL_PROJECT_TYPE, CodeGenEcorePlugin.INSTANCE.getString("_UI_ModelProject_name"), BasicMonitor.toMonitor(new NullProgressMonitor()));
- }
-
- /**
- * {@inheritDoc}
- * @see org.eclipse.emf.eef.codegen.flow.impl.GenerateEMFCode#valuateGenerationProject()
- */
- protected void valuateGenerationProject() {
- ((WorkflowVariable)genProject()).setValue(extractProject(getGenModel().getModelProjectDirectory()));
- }
-
-}
diff --git a/plugins/org.eclipse.emf.eef.codegen/src-custom/org/eclipse/emf/eef/codegen/flow/impl/InitializeGenModel.java b/plugins/org.eclipse.emf.eef.codegen/src-custom/org/eclipse/emf/eef/codegen/flow/impl/InitializeGenModel.java
deleted file mode 100644
index d3d0807f3..000000000
--- a/plugins/org.eclipse.emf.eef.codegen/src-custom/org/eclipse/emf/eef/codegen/flow/impl/InitializeGenModel.java
+++ /dev/null
@@ -1,134 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008, 2012 Obeo.
- * 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:
- * Obeo - initial API and implementation
- *******************************************************************************/
-package org.eclipse.emf.eef.codegen.flow.impl;
-
-import org.eclipse.core.resources.IContainer;
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IResource;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.emf.codegen.ecore.genmodel.GenModel;
-import org.eclipse.emf.common.util.BasicMonitor;
-import org.eclipse.emf.common.util.Monitor;
-import org.eclipse.emf.common.util.URI;
-import org.eclipse.emf.eef.codegen.EEFCodegenPlugin;
-import org.eclipse.emf.eef.codegen.core.util.EMFHelper;
-import org.eclipse.emf.eef.codegen.flow.Step;
-import org.eclipse.emf.eef.codegen.flow.util.GenmodelHelper;
-import org.eclipse.emf.eef.codegen.flow.var.WorkflowVariable;
-import org.eclipse.emf.importer.ModelImporter;
-
-/**
- * @author Goulwen Le Fur
- *
- */
-public class InitializeGenModel extends Step {
-
- /**
- * GenModel variable
- */
- private WorkflowVariable genmodelVar;
-
- /**
- * GenModel variable
- */
- private WorkflowVariable genmodelURIVar;
-
- /**
- * GenModel Helper
- */
-// private GenmodelHelper helper;
-
- private IFile modelFile;
-
- private IContainer targetFolder;
-
- private String genmodelFileName;
-
- /**
- * @param name of the step
- * @param modelURI Ecore model file
- * @param targetFolder Folder where to generate the GenModel
- */
- public InitializeGenModel(String name, IFile modelFile, IContainer targetFolder, String genmodelFileName) {
- super(name);
- this.modelFile = modelFile;
- this.targetFolder = targetFolder;
- this.genmodelFileName = genmodelFileName;
- }
-
- /**
- * {@inheritDoc}
- * @see org.eclipse.emf.eef.codegen.flow.Step#execute(org.eclipse.core.runtime.IProgressMonitor)
- */
- public IStatus execute(IProgressMonitor monitor) {
- try {
- BasicMonitor emfMonitor = new BasicMonitor();
- ModelImporter importer = initializeConverter(genmodelFileName, emfMonitor);
- initializeGenModel(importer, emfMonitor);
- targetFolder.refreshLocal(IResource.DEPTH_INFINITE, monitor);
- URI genmodelURI = GenmodelHelper.computeGenmodelURI(targetFolder, genmodelFileName);
- ((WorkflowVariable)getGenModelURI()).setValue(genmodelURI);
- ((WorkflowVariable)genmodel()).setValue(EMFHelper.load(genmodelURI, resourceSet));
- return Status.OK_STATUS;
- } catch (Exception e) {
- return new Status(IStatus.ERROR, EEFCodegenPlugin.PLUGIN_ID, "An error occured during genmodel initialization", e);
- }
- }
-
-
- private final String genmodelVarName() {
- return "INIT_GENMODEL_" + name + "_GENMODEL";
- }
-
- private final String genmodelURIVarName() {
- return "INIT_GENMODEL_" + name + "_GENMODEL_URI";
- }
-
- public Object genmodel() {
- if (genmodelVar == null) {
- genmodelVar = new WorkflowVariable(genmodelVarName());
- getContext().add(genmodelVar);
- }
- return genmodelVar;
- }
-
- /**
- * @return the generated genmodel URI.
- */
- public Object getGenModelURI() {
- if (genmodelURIVar == null) {
- genmodelURIVar = new WorkflowVariable(genmodelURIVarName());
- }
- return genmodelURIVar;
- }
-
- private ModelImporter initializeConverter(String genmodelFileName, Monitor monitor) throws Exception {
- ModelImporter converter = new org.eclipse.emf.importer.ecore.EcoreImporter();
- converter.setGenModelContainerPath(targetFolder.getFullPath());
- converter.setGenModelFileName(genmodelFileName);
- converter.setModelFile(modelFile);
- converter.computeEPackages(monitor);
- converter.adjustEPackages(monitor);
- return converter;
- }
-
- protected void initializeGenModel(ModelImporter importer, Monitor monitor) throws Exception {
- importer.prepareGenModelAndEPackages(monitor);
- configureGenModel(importer.getGenModel());
- importer.saveGenModelAndEPackages(monitor);
- }
-
-
- protected void configureGenModel(GenModel genModel) { }
-
-}
diff --git a/plugins/org.eclipse.emf.eef.codegen/src-custom/org/eclipse/emf/eef/codegen/flow/impl/MergePluginXML.java b/plugins/org.eclipse.emf.eef.codegen/src-custom/org/eclipse/emf/eef/codegen/flow/impl/MergePluginXML.java
deleted file mode 100644
index cac5c7a85..000000000
--- a/plugins/org.eclipse.emf.eef.codegen/src-custom/org/eclipse/emf/eef/codegen/flow/impl/MergePluginXML.java
+++ /dev/null
@@ -1,108 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008, 2012 Obeo.
- * 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:
- * Obeo - initial API and implementation
- *******************************************************************************/
-package org.eclipse.emf.eef.codegen.flow.impl;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.resources.IResource;
-import org.eclipse.core.resources.IResourceVisitor;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.emf.eef.codegen.EEFCodegenPlugin;
-import org.eclipse.emf.eef.codegen.core.util.ExtensionHelper;
-import org.eclipse.emf.eef.codegen.flow.Step;
-import org.eclipse.emf.eef.codegen.flow.var.WorkflowVariable;
-import org.w3c.dom.Node;
-
-/**
- * @author Goulwen Le Fur
- *
- */
-public class MergePluginXML extends Step {
-
- private Object editGenProject;
-
- /**
- * @param name of the step
- */
- public MergePluginXML(String name, Object editGenProject) {
- super(name);
- this.editGenProject = editGenProject;
- }
-
- /**
- * {@inheritDoc}
- * @see org.eclipse.emf.eef.codegen.flow.Step#execute(org.eclipse.core.runtime.IProgressMonitor)
- */
- public IStatus execute(IProgressMonitor monitor) {
- try {
- IProject editProject = getEditGenProject();
- editProject.refreshLocal(IResource.DEPTH_INFINITE, monitor);
- PluginXMLSearcher searcher = new PluginXMLSearcher();
- editProject.accept(searcher);
- ExtensionHelper actualHelper = new ExtensionHelper(editProject);
- for (IFile next : searcher.filesToMerge) {
- ExtensionHelper predictiveHelper = new ExtensionHelper(next);
- List diff = actualHelper.diff(predictiveHelper);
- actualHelper.append(diff);
- }
- return Status.OK_STATUS;
- } catch (Exception e) {
- return new Status(IStatus.ERROR, EEFCodegenPlugin.PLUGIN_ID, "An error occured during workspace analysis.", e);
- }
- }
-
- /**
- * @return
- */
- private IProject getEditGenProject() {
- if (editGenProject instanceof IProject) {
- return (IProject) editGenProject;
- } else if (editGenProject instanceof WorkflowVariable) {
- return (IProject) ((WorkflowVariable)editGenProject).getValue();
- } else {
- return null;
- }
- }
-
- private class PluginXMLSearcher implements IResourceVisitor {
-
- private List filesToMerge;
-
- /**
- *
- */
- public PluginXMLSearcher() {
- filesToMerge = new ArrayList();
- }
-
- /**
- * {@inheritDoc}
- * @see org.eclipse.core.resources.IResourceVisitor#visit(org.eclipse.core.resources.IResource)
- */
- public boolean visit(IResource resource) throws CoreException {
- if (resource instanceof IFile) {
- IFile file = (IFile) resource;
- if (file.getName().matches(".*\\.plugin\\.xml")) {
- filesToMerge.add(file);
- }
- }
- return true;
- }
-
- }
-}
-
diff --git a/plugins/org.eclipse.emf.eef.codegen/src-custom/org/eclipse/emf/eef/codegen/flow/util/GenmodelHelper.java b/plugins/org.eclipse.emf.eef.codegen/src-custom/org/eclipse/emf/eef/codegen/flow/util/GenmodelHelper.java
deleted file mode 100644
index 3936453a1..000000000
--- a/plugins/org.eclipse.emf.eef.codegen/src-custom/org/eclipse/emf/eef/codegen/flow/util/GenmodelHelper.java
+++ /dev/null
@@ -1,238 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008, 2012 Obeo.
- * 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:
- * Obeo - initial API and implementation
- *******************************************************************************/
-package org.eclipse.emf.eef.codegen.flow.util;
-
-import java.io.IOException;
-
-import org.eclipse.core.resources.IContainer;
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IFolder;
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.emf.codegen.ecore.genmodel.GenModel;
-import org.eclipse.emf.common.util.URI;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.resource.ResourceSet;
-import org.eclipse.emf.eef.codegen.core.util.EMFHelper;
-
-/**
- * @author Goulwen Le Fur
- *
- */
-public class GenmodelHelper {
-
- private static final String EDITOR_SUFFIX = "editor";
- private static final String PLATFORM_RESOURCE_SCHEME = "platform:/resource";
- private static final String GENMODEL_EXTENSION = "genmodel";
- private static final String EEF_MODELS_PATH = "models";
- private static final String COMPONENTS_FILE_EXTENSION = "components";
- private static final String EEFGEN_FILE_EXTENSION = "eefgen";
-
- private IFile ecoreModel;
- private IContainer targetFolder;
- private ResourceSet resourceSet;
- private URI ecoreModelURI;
- private GenModel genmodel;
- private URI genmodelURI;
-
- /**
- * @param ecoreModel
- * @param targetFolder
- */
- public GenmodelHelper(ResourceSet resourceSet, IFile ecoreModel, IContainer targetFolder) {
- this.ecoreModel = ecoreModel;
- this.targetFolder = targetFolder;
- this.resourceSet = resourceSet;
- }
-
- /**
- * @return the targetFolder
- */
- public IContainer getTargetFolder() {
- return targetFolder;
- }
-
- /**
- * @return the ecoreModel
- */
- public IFile getEcoreModel() {
- return ecoreModel;
- }
-
- /**
- * @return the ecoremodelURI
- */
- public URI ecoreModelURI() {
- return computeEcoreModelURI();
- }
-
- /**
- * @return the IFile containing the GenModel
- */
- public IFile getGenModelFile() {
- return targetFolder.getFile(new Path(genmodelFileName()));
- }
-
- /**
- * @return the generated genmodel URI.
- */
- public URI genmodelURI() {
- if (genmodelURI == null) {
- genmodelURI = GenmodelHelper.computeGenmodelURI(targetFolder, genmodelFileName());
- }
- return genmodelURI;
- }
-
- /**
- * @return the genmodel
- */
- public GenModel getGenModel() {
- if (genmodel == null) {
- genmodel = loadGenmodel();
- }
- return genmodel;
- }
-
- /**
- * @return the EEF models {@link IFolder}
- */
- public IFolder getEEFModelsFolder() {
- IProject editProject = targetFolder.getWorkspace().getRoot().getProject(getGenModel().getEditPluginID());
- IFolder modelsFolder = editProject.getFolder(new Path(eefmodelsFolderPath()));
- return modelsFolder;
- }
-
- /**
- * @return folder path for the EEF models
- */
- public String eefmodelsFolderPath() {
- return EEF_MODELS_PATH;
- }
-
- /**
- * @return components file for EEF properties
- */
- public IFile getEEFPropertiesComponentsModel() {
- return getEEFModelsFolder().getFile(new Path(genmodelURI().trimFileExtension().appendFileExtension(COMPONENTS_FILE_EXTENSION).lastSegment()));
- }
-
- /**
- * @return components file for EEF properties
- */
- public IFile getEEFPropertiesEEFGenModel() {
- return getEEFModelsFolder().getFile(new Path(genmodelURI().trimFileExtension().appendFileExtension(EEFGEN_FILE_EXTENSION).lastSegment()));
- }
-
- /**
- * @return components file for EEF Editor
- */
- public IFile getEEFEditorComponentsModel() {
- return getEEFModelsFolder().getFile(new Path(genmodelURI().trimFileExtension().lastSegment() + "-" + EDITOR_SUFFIX + "." + COMPONENTS_FILE_EXTENSION));
- }
-
- /**
- * @return components file for EEF Editor
- */
- public IFile getEEFEditorEEFGenModel() {
- return getEEFModelsFolder().getFile(new Path(genmodelURI().trimFileExtension().lastSegment() + "-" + EDITOR_SUFFIX + "." + EEFGEN_FILE_EXTENSION));
- }
-
- /**
- * @return the Source folder of the EMF model plugin if genmodel found. null otherwise.
- */
- public IFolder getEMFModelSrcFolder() {
- if (getGenModel() != null) {
- return targetFolder.getWorkspace().getRoot().getFolder(new Path(getGenModel().getModelDirectory()));
- }
- return null;
- }
-
- /**
- * @return the Source folder of the EMF edit plugin if genmodel found. null otherwise.
- */
- public IFolder getEMFEditSrcFolder() {
- if (getGenModel() != null) {
- return targetFolder.getWorkspace().getRoot().getFolder(new Path(getGenModel().getEditDirectory()));
- }
- return null;
- }
-
- /**
- * @return the Source folder of the EMF editor plugin if genmodel found. null otherwise.
- */
- public IFolder getEMFEditorSrcFolder() {
- if (getGenModel() != null) {
- return targetFolder.getWorkspace().getRoot().getFolder(new Path(getGenModel().getEditorDirectory()));
- }
- return null;
- }
-
- /**
- * Compute the Ecore Model URI for the given ecore file
- * @param ecoreModel the ecore file
- * @return the ecore model URI
- */
- private URI computeEcoreModelURI() {
- if (ecoreModelURI == null) {
- ecoreModelURI = URI.createURI(PLATFORM_RESOURCE_SCHEME + ecoreModel.getFullPath());
- }
- return ecoreModelURI;
- }
-
- /**
- * Compute the GenModel URI for the given ecore modelURI
- * @param ecoreModelURI
- * @return
- */
- public static URI computeGenmodelURI(IContainer targetFolder, String genmodelFileName) {
- return URI.createPlatformResourceURI(targetFolder.getFullPath() + "/" + genmodelFileName, true);
- }
-
- /**
- * @param modelURI
- * @return
- */
- public String genmodelFileName() {
- return ecoreModelURI().trimFileExtension().appendFileExtension(GENMODEL_EXTENSION).lastSegment();
- }
-
- /**
- * @return the created genmodel
- */
- private GenModel loadGenmodel() {
- try {
- URI genmodelURI = genmodelURI();
- EObject model = EMFHelper.load(genmodelURI, resourceSet);
- if (model instanceof GenModel) {
- return (GenModel) model;
- }
- } catch (IOException e) {
- // Silent catch
- }
- return null;
- }
-
- public static URI computePropertiesComponentsModelURI(IContainer targetFolder, URI genmodelURI) {
- return URI.createPlatformResourceURI(targetFolder.getFullPath() + "/" + genmodelURI.trimFileExtension().appendFileExtension(COMPONENTS_FILE_EXTENSION).lastSegment(), false);
- }
-
- public static URI computePropertiesEEFGenModelURI(IContainer targetFolder, URI genmodelURI) {
- return URI.createPlatformResourceURI(targetFolder.getFullPath() + "/" + genmodelURI.trimFileExtension().appendFileExtension(EEFGEN_FILE_EXTENSION).lastSegment(), false);
- }
-
- public static URI computeEditorComponentsModelURI(IContainer targetFolder, URI genmodelURI) {
- return URI.createPlatformResourceURI(targetFolder.getFullPath() + "/" + genmodelURI.trimFileExtension().lastSegment() + "-" + EDITOR_SUFFIX + "." + COMPONENTS_FILE_EXTENSION, false);
- }
-
- public static URI computeEditorEEFGenModelURI(IContainer targetFolder, URI genmodelURI) {
- return URI.createPlatformResourceURI(targetFolder.getFullPath() + "/" + genmodelURI.trimFileExtension().lastSegment() + "-" + EDITOR_SUFFIX + "." + EEFGEN_FILE_EXTENSION, false);
- }
-}
diff --git a/plugins/org.eclipse.emf.eef.codegen/src-custom/org/eclipse/emf/eef/codegen/ui/generators/actions/AbstractGenerateEEFAction.java b/plugins/org.eclipse.emf.eef.codegen/src-custom/org/eclipse/emf/eef/codegen/ui/generators/actions/AbstractGenerateEEFAction.java
deleted file mode 100644
index dbf85233c..000000000
--- a/plugins/org.eclipse.emf.eef.codegen/src-custom/org/eclipse/emf/eef/codegen/ui/generators/actions/AbstractGenerateEEFAction.java
+++ /dev/null
@@ -1,174 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008, 2012 Obeo.
- * 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:
- * Obeo - initial API and implementation
- *******************************************************************************/
-package org.eclipse.emf.eef.codegen.ui.generators.actions;
-
-import java.io.IOException;
-import java.util.ArrayList;
-import java.util.Iterator;
-import java.util.List;
-
-import org.eclipse.core.resources.IContainer;
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IResource;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.core.runtime.jobs.Job;
-import org.eclipse.emf.eef.EEFGen.EEFGenModel;
-import org.eclipse.emf.eef.codegen.EEFCodegenPlugin;
-import org.eclipse.emf.eef.codegen.ui.generators.common.GenerateAll;
-import org.eclipse.jface.action.Action;
-import org.eclipse.jface.action.IAction;
-import org.eclipse.jface.viewers.ISelection;
-import org.eclipse.jface.viewers.StructuredSelection;
-import org.eclipse.ui.IActionDelegate;
-import org.eclipse.ui.IObjectActionDelegate;
-import org.eclipse.ui.IWorkbenchPart;
-
-/**
- * @author Goulwen Le Fur
- */
-public abstract class AbstractGenerateEEFAction extends Action implements IObjectActionDelegate {
-
- protected List selectedFiles;
-
- /**
- * the list of eefgenmodels
- * @deprecated since a job is used to generates files
- */
- protected List eefGenModels;
-
- /**
- * Constructor.
- */
- public AbstractGenerateEEFAction() {
- selectedFiles = new ArrayList();
- }
-
- /**
- * @see IObjectActionDelegate#setActivePart(IAction, IWorkbenchPart)
- * @deprecated see bug #370409
- */
- public void setActivePart(IAction action, IWorkbenchPart targetPart) {
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
- */
- public void run(IAction action) {
- run();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.jface.action.Action#run()
- */
- public void run() {
- if (selectedFiles != null) {
-
- Job generationJob = new Job("EEF architecture generation") {
- @Override
- protected IStatus run(IProgressMonitor monitor) {
- try {
- List eefgenmodels = initEEFGenModel();
- if (eefgenmodels != null && !monitor.isCanceled()) {
- monitor.beginTask("Generating EEF Architecture", IProgressMonitor.UNKNOWN);
- for (final EEFGenModel eefGenModel : eefgenmodels) {
- final IContainer target = getGenContainer(eefGenModel);
- if (target != null) {
- monitor.subTask("Generating "
- + eefGenModel.eResource().getURI().lastSegment()
- + " Architecture");
- int count = 2;
- if (eefGenModel.getEditionContexts() != null)
- count += eefGenModel.getEditionContexts().size() * 11;
- if (eefGenModel.getViewsRepositories() != null)
- count += eefGenModel.getViewsRepositories().size() * 5;
- final GenerateAll generator = new GenerateAll(target, eefGenModel);
- generator.doGenerate(monitor);
- for (Iterator iterator = generator.getGenerationTargets()
- .iterator(); iterator.hasNext();) {
- IContainer nextContainer = iterator.next();
- nextContainer.refreshLocal(IResource.DEPTH_INFINITE, monitor);
- }
- monitor.worked(count);
- }
- // check monitor state
- if (monitor.isCanceled()) {
- break;
- }
- }
- }
- } catch (IOException e) {
- EEFCodegenPlugin.getDefault().logError(e);
- return Status.CANCEL_STATUS;
- } catch (CoreException e) {
- EEFCodegenPlugin.getDefault().logError(e);
- return Status.CANCEL_STATUS;
- } finally {
- monitor.done();
- selectedFiles.clear();
- }
- return Status.OK_STATUS;
- }
- };
- generationJob.setUser(true);
- // lock the workspace to avoid concurrent modification
- generationJob.setRule(ResourcesPlugin.getWorkspace().getRoot());
- generationJob.schedule();
- }
- }
-
- /**
- * @see IActionDelegate#selectionChanged(IAction, ISelection)
- */
- public void selectionChanged(IAction action, ISelection selection) {
- selectedFiles.clear();
- if (selection instanceof StructuredSelection) {
- StructuredSelection sSelection = (StructuredSelection)selection;
- for (Object selectedElement : sSelection.toList()) {
- if (selectedElement instanceof IFile) {
- this.selectedFiles.add((IFile)selectedElement);
- }
- }
-
- }
- }
-
- protected abstract List initEEFGenModel() throws IOException;
-
- /**
- * Returns the container that the EEFGenModel use as generation directory
- *
- * @param eefGenModel
- * the eefGenModel
- * @return the generation directory
- * @throws IOException
- * an error occurred during container creation
- */
- public IContainer getGenContainer(EEFGenModel eefGenModel) throws IOException {
- if (eefGenModel != null) {
- if (eefGenModel.getGenDirectory() != null) {
- final IContainer target = (IContainer)ResourcesPlugin.getWorkspace().getRoot()
- .getFolder(new Path(eefGenModel.getGenDirectory()));
- return target;
- }
- }
- return null;
- }
-
-}
diff --git a/plugins/org.eclipse.emf.eef.codegen/src-custom/org/eclipse/emf/eef/codegen/ui/generators/actions/GenerateEEFAction.java b/plugins/org.eclipse.emf.eef.codegen/src-custom/org/eclipse/emf/eef/codegen/ui/generators/actions/GenerateEEFAction.java
deleted file mode 100755
index ca4bfe5ce..000000000
--- a/plugins/org.eclipse.emf.eef.codegen/src-custom/org/eclipse/emf/eef/codegen/ui/generators/actions/GenerateEEFAction.java
+++ /dev/null
@@ -1,157 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008, 2012 Obeo.
- * 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:
- * Obeo - initial API and implementation
- *******************************************************************************/
-package org.eclipse.emf.eef.codegen.ui.generators.actions;
-
-import java.io.IOException;
-import java.util.ArrayList;
-import java.util.Collections;
-import java.util.List;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.emf.common.util.Diagnostic;
-import org.eclipse.emf.common.util.URI;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.resource.Resource;
-import org.eclipse.emf.ecore.resource.ResourceSet;
-import org.eclipse.emf.ecore.resource.impl.ResourceSetImpl;
-import org.eclipse.emf.ecore.util.Diagnostician;
-import org.eclipse.emf.ecore.util.EcoreUtil;
-import org.eclipse.emf.ecore.xmi.impl.XMIResourceFactoryImpl;
-import org.eclipse.emf.eef.EEFGen.EEFGenModel;
-import org.eclipse.emf.eef.EEFGen.EEFGenModelReference;
-import org.eclipse.emf.eef.EEFGen.GenEditionContext;
-import org.eclipse.emf.eef.EEFGen.GenViewsRepository;
-import org.eclipse.emf.eef.codegen.EEFCodegenPlugin;
-
-/**
- * @author Goulwen Le Fur
- */
-public class GenerateEEFAction extends AbstractGenerateEEFAction {
-
- /**
- * Constructor for Action1.
- */
- public GenerateEEFAction() {
- super();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.emf.eef.codegen.ui.generators.actions.AbstractGenerateEEFAction#initEEFGenModel()
- */
- protected List initEEFGenModel() throws IOException {
- List eefgenmodels = new ArrayList(selectedFiles.size());
- if (!selectedFiles.isEmpty()) {
- for (IFile selectedFile : selectedFiles) {
- ResourceSet resourceSet = new ResourceSetImpl();
- URI modelURI = URI.createPlatformResourceURI(selectedFile.getFullPath().toString(), true);
- String fileExtension = modelURI.fileExtension();
- if (fileExtension == null || fileExtension.length() == 0) {
- fileExtension = Resource.Factory.Registry.DEFAULT_EXTENSION;
- }
- final Resource.Factory.Registry registry = Resource.Factory.Registry.INSTANCE;
- final Object resourceFactory = registry.getExtensionToFactoryMap().get(fileExtension);
- if (resourceFactory != null) {
- resourceSet.getResourceFactoryRegistry().getExtensionToFactoryMap()
- .put(fileExtension, resourceFactory);
- } else {
- resourceSet.getResourceFactoryRegistry().getExtensionToFactoryMap()
- .put(fileExtension, new XMIResourceFactoryImpl());
- }
- Resource res = resourceSet.createResource(modelURI);
- res.load(Collections.EMPTY_MAP);
- EcoreUtil.resolveAll(resourceSet);
- if (res.getContents().size() > 0) {
- EObject object = res.getContents().get(0);
- if (object instanceof EEFGenModel) {
- eefgenmodels.add((EEFGenModel)object);
- }
- }
- }
- }
- // validate eefgenmodels and components recursively
- return validateEEFGenmodels(eefgenmodels);
- }
-
- /**
- * @param eefgenmodels
- * @return
- * @since 2.0
- */
- private List validateEEFGenmodels(List eefgenmodels) {
- List