package jetbrains.mps.lang.script.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.SubstituteMenu; 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 CommentMigrationScriptPart_Editor()); case 1: return Collections.<ConceptEditor>singletonList(new DirectClassifierSpecification_Editor()); case 2: return Collections.<ConceptEditor>singletonList(new DirectMethodSpecification_Editor()); case 3: return Collections.<ConceptEditor>singletonList(new ExtractInterfaceMigration_Editor()); case 4: return Collections.<ConceptEditor>singletonList(new FQNameClassifierSpecification_Editor()); case 5: return Collections.<ConceptEditor>singletonList(new FQNameMethodSpecification_Editor()); case 6: return Collections.<ConceptEditor>singletonList(new FactoryMigrationScriptPart_Editor()); case 7: return Collections.<ConceptEditor>singletonList(new MigrationScript_Editor()); case 8: return Collections.<ConceptEditor>singletonList(new MigrationScriptPart_Instance_Editor()); case 9: return Collections.<ConceptEditor>singletonList(new PullUpMethod_Editor()); case 10: return Collections.<ConceptEditor>singletonList(new WhitespaceMigrationScriptPart_Editor()); default: } return Collections.<ConceptEditor>emptyList(); } @NotNull @Override public Collection<SubstituteMenu> getDeclaredDefaultSubstituteMenus(SAbstractConcept concept) { SAbstractConcept cncpt_a0d = concept; switch (index_xbvbvu_a0d.index(cncpt_a0d)) { case 0: return Collections.<SubstituteMenu>singletonList(new MigrationScriptPart_node_SubstituteMenu()); default: } return Collections.<SubstituteMenu>emptyList(); } private static final ConceptSwitchIndex index_xbvbvu_a0a = new ConceptSwitchIndexBuilder().put(MetaIdFactory.conceptId(0xeddeefac2d64437L, 0xbc2cde50fd4ce470L, 0x5c5c941438569102L), MetaIdFactory.conceptId(0xeddeefac2d64437L, 0xbc2cde50fd4ce470L, 0x4b6b6d7b2a638d23L), MetaIdFactory.conceptId(0xeddeefac2d64437L, 0xbc2cde50fd4ce470L, 0x1fcdfeb518c43583L), MetaIdFactory.conceptId(0xeddeefac2d64437L, 0xbc2cde50fd4ce470L, 0x5c5c941438573499L), MetaIdFactory.conceptId(0xeddeefac2d64437L, 0xbc2cde50fd4ce470L, 0x4b6b6d7b2a638ddbL), MetaIdFactory.conceptId(0xeddeefac2d64437L, 0xbc2cde50fd4ce470L, 0x4243146ba1b412e3L), MetaIdFactory.conceptId(0xeddeefac2d64437L, 0xbc2cde50fd4ce470L, 0x24105a807c757c2dL), MetaIdFactory.conceptId(0xeddeefac2d64437L, 0xbc2cde50fd4ce470L, 0x11225e9072dL), MetaIdFactory.conceptId(0xeddeefac2d64437L, 0xbc2cde50fd4ce470L, 0x11225f4f883L), MetaIdFactory.conceptId(0xeddeefac2d64437L, 0xbc2cde50fd4ce470L, 0xbc887f0950c99c4L), MetaIdFactory.conceptId(0xeddeefac2d64437L, 0xbc2cde50fd4ce470L, 0x24105a807c76b63eL)).seal(); private static final ConceptSwitchIndex index_xbvbvu_a0d = new ConceptSwitchIndexBuilder().put(MetaIdFactory.conceptId(0xeddeefac2d64437L, 0xbc2cde50fd4ce470L, 0x11225fae1f1L)).seal(); }