Community
Participate
Working Groups
Add support for generation of RCP application with emfatic annotation. Possible solution by modifying class org.eclipse.epsilon.eugenia.GmfMap2GmfGenDelegate: public class GmfMap2GmfGenDelegate extends EugeniaActionDelegate { @SuppressWarnings("restriction") @Override public void run(IAction action) { // Transform GmfMap to GmfGen model boolean rcp = false; try { EmfModel model = loadModel("Ecore", gmfFileSet.getEcorePath(), EcorePackage.eINSTANCE.getNsURI(), true, false, true); for (Object elem : model.getAllOfType("EAnnotation")) { EAnnotation elm = (EAnnotation)elem; if (elm.getSource().equalsIgnoreCase("gmf.diagram")) { if (elm.getDetails().containsKey("rcp") && elm.getDetails().get("rcp").equalsIgnoreCase("true")) { rcp = true; break; } } } } catch (Exception e) { e.printStackTrace(); } ResourceSet resourceSet = new ResourceSetImpl(); TransformToGenModelOperation transformToGenModelOperation = new TransformToGenModelOperation(resourceSet); TransformOptions options = transformToGenModelOperation.getOptions(); options.setGenerateRCP(rcp);
This has now been fixed in the SVN.
Fixed in 0.9.1