| Summary: | EuGENia RCP generation annotation support | ||
|---|---|---|---|
| Product: | [Modeling] Epsilon | Reporter: | Ivar Refsdal <refsdal.ivar> |
| Component: | Core | Assignee: | Dimitris Kolovos <dkolovos> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P3 | ||
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | All | ||
| Whiteboard: | |||
This has now been fixed in the SVN. Fixed in 0.9.1 |
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);