package jetbrains.mps.baseLanguage.tuples.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.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 IndexedTupleLiteral_Editor());
case 1:
return Collections.<ConceptEditor>singletonList(new IndexedTupleMemberAccessExpression_Editor());
case 2:
return Collections.<ConceptEditor>singletonList(new IndexedTupleType_Editor());
case 3:
return Collections.<ConceptEditor>singletonList(new NamedTupleComponentAccessOperation_Editor());
case 4:
return Collections.<ConceptEditor>singletonList(new NamedTupleComponentDeclaration_Editor());
case 5:
return Collections.<ConceptEditor>singletonList(new NamedTupleComponentReference_Editor());
case 6:
return Collections.<ConceptEditor>singletonList(new NamedTupleDeclaration_Editor());
case 7:
return Collections.<ConceptEditor>singletonList(new NamedTupleLiteral_Editor());
case 8:
return Collections.<ConceptEditor>singletonList(new NamedTupleType_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 tuple_member_access_Contribution());
case 1:
return Collections.<TransformationMenu>singletonList(new NTCD_add_final_Contribution());
default:
}
return Collections.<TransformationMenu>emptyList();
}
@NotNull
@Override
public Collection<SubstituteMenu> getDeclaredDefaultSubstituteMenus(SAbstractConcept concept) {
SAbstractConcept cncpt_a0e = concept;
switch (index_xbvbvu_a0e.index(cncpt_a0e)) {
case 0:
return Collections.<SubstituteMenu>singletonList(new namedTupleDeclaration_extends_Contribution());
case 1:
return Collections.<SubstituteMenu>singletonList(new NamedTupleLiteral_Contribution());
case 2:
return Collections.<SubstituteMenu>singletonList(new IndexedTupleMemberAccessExpression_SubstituteMenu());
case 3:
return Collections.<SubstituteMenu>singletonList(new NamedTupleType_SubstituteMenu());
case 4:
return Collections.<SubstituteMenu>singletonList(new NamedTupleType_Contribution());
default:
}
return Collections.<SubstituteMenu>emptyList();
}
private static final ConceptSwitchIndex index_xbvbvu_a0a = new ConceptSwitchIndexBuilder().put(MetaIdFactory.conceptId(0xa247e09e243545baL, 0xb8d207e93feba96aL, 0x12071708c13L), MetaIdFactory.conceptId(0xa247e09e243545baL, 0xb8d207e93feba96aL, 0x12071acfb50L), MetaIdFactory.conceptId(0xa247e09e243545baL, 0xb8d207e93feba96aL, 0x1207157a8dcL), MetaIdFactory.conceptId(0xa247e09e243545baL, 0xb8d207e93feba96aL, 0x1209c84a4eaL), MetaIdFactory.conceptId(0xa247e09e243545baL, 0xb8d207e93feba96aL, 0x12095b3e54fL), MetaIdFactory.conceptId(0xa247e09e243545baL, 0xb8d207e93feba96aL, 0x1209b917141L), MetaIdFactory.conceptId(0xa247e09e243545baL, 0xb8d207e93feba96aL, 0x1208fa48aa5L), MetaIdFactory.conceptId(0xa247e09e243545baL, 0xb8d207e93feba96aL, 0x1209b88731cL), MetaIdFactory.conceptId(0xa247e09e243545baL, 0xb8d207e93feba96aL, 0x12099dc1365L)).seal();
private static final ConceptSwitchIndex index_xbvbvu_a0d = new ConceptSwitchIndexBuilder().put(MetaIdFactory.conceptId(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8c37f506fL), MetaIdFactory.conceptId(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8c37f506dL)).seal();
private static final ConceptSwitchIndex index_xbvbvu_a0e = new ConceptSwitchIndexBuilder().put(MetaIdFactory.conceptId(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x101de48bf9eL), MetaIdFactory.conceptId(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8c37f506fL), MetaIdFactory.conceptId(0xa247e09e243545baL, 0xb8d207e93feba96aL, 0x12071acfb50L), MetaIdFactory.conceptId(0xa247e09e243545baL, 0xb8d207e93feba96aL, 0x12099dc1365L), MetaIdFactory.conceptId(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8c37f506dL)).seal();
}