package org.jetbrains.mps.samples.Money.editor; /*Generated by MPS */ import jetbrains.mps.nodeEditor.EditorAspectDescriptorBase; import org.jetbrains.annotations.NotNull; import java.util.Collection; import jetbrains.mps.openapi.editor.descriptor.ConceptEditor; import org.jetbrains.mps.openapi.language.SAbstractConcept; import java.util.Collections; import jetbrains.mps.openapi.editor.descriptor.TransformationMenu; import jetbrains.mps.lang.smodel.ConceptSwitchIndex; import jetbrains.mps.lang.smodel.ConceptSwitchIndexBuilder; import jetbrains.mps.smodel.adapter.ids.MetaIdFactory; public class EditorAspectDescriptorImpl extends EditorAspectDescriptorBase { @NotNull public Collection<ConceptEditor> getDeclaredEditors(SAbstractConcept concept) { SAbstractConcept cncpt_a0a = ((SAbstractConcept) concept); switch (index_xbvbvu_a0a.index(cncpt_a0a)) { case 0: return Collections.<ConceptEditor>singletonList(new ConvertTo_Editor()); case 1: return Collections.<ConceptEditor>singletonList(new CurrencyDefTable_Editor()); case 2: return Collections.<ConceptEditor>singletonList(new CurrencyUnit_Editor()); case 3: return Collections.<ConceptEditor>singletonList(new CurrentStockPrice_Editor()); case 4: return Collections.<ConceptEditor>singletonList(new GetAmount_Editor()); case 5: return Collections.<ConceptEditor>singletonList(new GetCurrency_Editor()); case 6: return Collections.<ConceptEditor>singletonList(new MoneyLiteral_Editor()); case 7: return Collections.<ConceptEditor>singletonList(new MoneyType_Editor()); case 8: return Collections.<ConceptEditor>singletonList(new MovingAverage_Editor()); case 9: return Collections.<ConceptEditor>singletonList(new StockSymbol_Editor()); default: } return Collections.<ConceptEditor>emptyList(); } @NotNull @Override public Collection<TransformationMenu> getDeclaredDefaultTransformationMenus(SAbstractConcept concept) { SAbstractConcept cncpt_a0d = concept; switch (index_xbvbvu_a0d.index(cncpt_a0d)) { case 0: return Collections.<TransformationMenu>singletonList(new makeMoneyFromInteger_Contribution()); default: } return Collections.<TransformationMenu>emptyList(); } private static final ConceptSwitchIndex index_xbvbvu_a0a = new ConceptSwitchIndexBuilder().put(MetaIdFactory.conceptId(0x662a9f2b58024d16L, 0x955872c65c7a681eL, 0x18d8e0833b34209aL), MetaIdFactory.conceptId(0x662a9f2b58024d16L, 0x955872c65c7a681eL, 0x3210b276d1443596L), MetaIdFactory.conceptId(0x662a9f2b58024d16L, 0x955872c65c7a681eL, 0x3210b276d1443597L), MetaIdFactory.conceptId(0x662a9f2b58024d16L, 0x955872c65c7a681eL, 0x3786e3f4808999c3L), MetaIdFactory.conceptId(0x662a9f2b58024d16L, 0x955872c65c7a681eL, 0x4b9a2fe55913c339L), MetaIdFactory.conceptId(0x662a9f2b58024d16L, 0x955872c65c7a681eL, 0x18d8e0833b32f1b1L), MetaIdFactory.conceptId(0x662a9f2b58024d16L, 0x955872c65c7a681eL, 0x4b9a2fe559135132L), MetaIdFactory.conceptId(0x662a9f2b58024d16L, 0x955872c65c7a681eL, 0x4b9a2fe55913516aL), MetaIdFactory.conceptId(0x662a9f2b58024d16L, 0x955872c65c7a681eL, 0x3786e3f480b1c19aL), MetaIdFactory.conceptId(0x662a9f2b58024d16L, 0x955872c65c7a681eL, 0x3786e3f480a9b18aL)).seal(); private static final ConceptSwitchIndex index_xbvbvu_a0d = new ConceptSwitchIndexBuilder().put(MetaIdFactory.conceptId(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x1129778b846L)).seal(); }