package jetbrains.mps.samples.complex.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 DegreeComplexExpression_Editor()); case 1: return Collections.<ConceptEditor>singletonList(new ImaginaryUnit_Editor()); case 2: return Collections.<ConceptEditor>singletonList(new SingleComplexExpression_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 Complex_RightTransform_Contribution()); default: } return Collections.<TransformationMenu>emptyList(); } private static final ConceptSwitchIndex index_xbvbvu_a0a = new ConceptSwitchIndexBuilder().put(MetaIdFactory.conceptId(0xff24ab03965e4d15L, 0x9aed52dc276658f4L, 0x116904e45f4L), MetaIdFactory.conceptId(0xff24ab03965e4d15L, 0x9aed52dc276658f4L, 0x11691060ce1L), MetaIdFactory.conceptId(0xff24ab03965e4d15L, 0x9aed52dc276658f4L, 0x11686b3b49dL)).seal(); private static final ConceptSwitchIndex index_xbvbvu_a0d = new ConceptSwitchIndexBuilder().put(MetaIdFactory.conceptId(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8c37f506fL)).seal(); }