package jetbrains.mps.lang.editor.diagram.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.ConceptEditorComponent;
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 AbstractDiagramCreation_Editor());
case 1:
return Collections.<ConceptEditor>singletonList(new ActionGroup_Editor());
case 2:
return Collections.<ConceptEditor>singletonList(new AttributedFigureReference_Editor());
case 3:
return Collections.<ConceptEditor>singletonList(new BLQueryArgument_Editor());
case 4:
return Collections.<ConceptEditor>singletonList(new CellModel_Diagram_Editor());
case 5:
return Collections.<ConceptEditor>singletonList(new CellModel_DiagramConnector_Editor());
case 6:
return Collections.<ConceptEditor>singletonList(new CellModel_DiagramNode_Editor());
case 7:
return Collections.<ConceptEditor>singletonList(new CellModel_DiagramPort_Editor());
case 8:
return Collections.<ConceptEditor>singletonList(new ConnectionEndBLQuery_Editor());
case 9:
return Collections.<ConceptEditor>singletonList(new CreationActionReference_Editor());
case 10:
return Collections.<ConceptEditor>singletonList(new CustomElementReference_Editor());
case 11:
return Collections.<ConceptEditor>singletonList(new DiagramElementBLQuery_Editor());
case 12:
return Collections.<ConceptEditor>singletonList(new ExternalFigureReference_Editor());
case 13:
return Collections.<ConceptEditor>singletonList(new FigureParameterMapping_Editor());
case 14:
return Collections.<ConceptEditor>singletonList(new LinkArgument_Editor());
case 15:
return Collections.<ConceptEditor>singletonList(new Palette_Editor());
case 16:
return Collections.<ConceptEditor>singletonList(new PropertyArgument_Editor());
case 17:
return Collections.<ConceptEditor>singletonList(new Separator_Editor());
case 18:
return Collections.<ConceptEditor>singletonList(new ThisEditorNodeExpression_Editor());
default:
}
return Collections.<ConceptEditor>emptyList();
}
@NotNull
public Collection<ConceptEditorComponent> getDeclaredEditorComponents(SAbstractConcept concept, String editorComponentId) {
SAbstractConcept cncpt_a0c = ((SAbstractConcept) concept);
switch (index_xbvbvu_a0c.index(cncpt_a0c)) {
case 0:
if (true) {
if ("jetbrains.mps.lang.editor.diagram.editor.HandlersComponent".equals(editorComponentId)) {
return Collections.<ConceptEditorComponent>singletonList(new HandlersComponent());
}
}
break;
case 1:
if (true) {
if ("jetbrains.mps.lang.editor.diagram.editor.IconSelectorComponent".equals(editorComponentId)) {
return Collections.<ConceptEditorComponent>singletonList(new IconSelectorComponent());
}
}
break;
case 2:
if (true) {
if ("jetbrains.mps.lang.editor.diagram.editor.HandlersComponent".equals(editorComponentId)) {
return Collections.<ConceptEditorComponent>singletonList(new ConnectorCreationHandlers_EditorComponent());
}
}
break;
case 3:
if (true) {
if ("jetbrains.mps.lang.editor.diagram.editor.HandlersComponent".equals(editorComponentId)) {
return Collections.<ConceptEditorComponent>singletonList(new DiagramElementCreationHandlers_EditoComponent());
}
}
break;
default:
}
return Collections.<ConceptEditorComponent>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 AbstractArgument_SubstituteMenu());
case 1:
return Collections.<SubstituteMenu>singletonList(new DiagramspecificEditorCells_Contribution());
case 2:
return Collections.<SubstituteMenu>singletonList(new FigureParameterMapping_SubstituteMenu());
default:
}
return Collections.<SubstituteMenu>emptyList();
}
private static final ConceptSwitchIndex index_xbvbvu_a0a = new ConceptSwitchIndexBuilder().put(MetaIdFactory.conceptId(0x6106f6117a7442d1L, 0x80deedc5c602bfd1L, 0x120f760a04397296L), MetaIdFactory.conceptId(0x6106f6117a7442d1L, 0x80deedc5c602bfd1L, 0x74dc91e9e6c7d83L), MetaIdFactory.conceptId(0x6106f6117a7442d1L, 0x80deedc5c602bfd1L, 0x4b412569a095b4ceL), MetaIdFactory.conceptId(0x6106f6117a7442d1L, 0x80deedc5c602bfd1L, 0x3f6e840fd86f8f7L), MetaIdFactory.conceptId(0x6106f6117a7442d1L, 0x80deedc5c602bfd1L, 0x57869048dc89fbf7L), MetaIdFactory.conceptId(0x6106f6117a7442d1L, 0x80deedc5c602bfd1L, 0x58940e88f3ef74c9L), MetaIdFactory.conceptId(0x6106f6117a7442d1L, 0x80deedc5c602bfd1L, 0xf301bf106a326e1L), MetaIdFactory.conceptId(0x6106f6117a7442d1L, 0x80deedc5c602bfd1L, 0x3f6e840fd120282L), MetaIdFactory.conceptId(0x6106f6117a7442d1L, 0x80deedc5c602bfd1L, 0x10efa534a508176dL), MetaIdFactory.conceptId(0x6106f6117a7442d1L, 0x80deedc5c602bfd1L, 0x5bdb7aaec13745e9L), MetaIdFactory.conceptId(0x6106f6117a7442d1L, 0x80deedc5c602bfd1L, 0x5bdb7aaec13745e8L), MetaIdFactory.conceptId(0x6106f6117a7442d1L, 0x80deedc5c602bfd1L, 0x4a53d4fb31aaee31L), MetaIdFactory.conceptId(0x6106f6117a7442d1L, 0x80deedc5c602bfd1L, 0xf301bf106a655cbL), MetaIdFactory.conceptId(0x6106f6117a7442d1L, 0x80deedc5c602bfd1L, 0xf301bf106a7d7c7L), MetaIdFactory.conceptId(0x6106f6117a7442d1L, 0x80deedc5c602bfd1L, 0x3f6e840fd86f9b7L), MetaIdFactory.conceptId(0x6106f6117a7442d1L, 0x80deedc5c602bfd1L, 0x74dc91e9e6c7d84L), MetaIdFactory.conceptId(0x6106f6117a7442d1L, 0x80deedc5c602bfd1L, 0x3f6e840fdc48c85L), MetaIdFactory.conceptId(0x6106f6117a7442d1L, 0x80deedc5c602bfd1L, 0x74dc91e9e6c7d86L), MetaIdFactory.conceptId(0x6106f6117a7442d1L, 0x80deedc5c602bfd1L, 0x2cd0b06754b27e2fL)).seal();
private static final ConceptSwitchIndex index_xbvbvu_a0c = new ConceptSwitchIndexBuilder().put(MetaIdFactory.conceptId(0x6106f6117a7442d1L, 0x80deedc5c602bfd1L, 0x120f760a04397296L), MetaIdFactory.conceptId(0x6106f6117a7442d1L, 0x80deedc5c602bfd1L, 0x5bdb7aaec13745e9L), MetaIdFactory.conceptId(0x6106f6117a7442d1L, 0x80deedc5c602bfd1L, 0xd0b2f9de3710044L), MetaIdFactory.conceptId(0x6106f6117a7442d1L, 0x80deedc5c602bfd1L, 0x76f1cb20ba75918aL)).seal();
private static final ConceptSwitchIndex index_xbvbvu_a0e = new ConceptSwitchIndexBuilder().put(MetaIdFactory.conceptId(0x6106f6117a7442d1L, 0x80deedc5c602bfd1L, 0x3f6e840fd86f8aeL), MetaIdFactory.conceptId(0x18bc659203a64e29L, 0xa83a7ff23bde13baL, 0xf9eafb9a39L), MetaIdFactory.conceptId(0x6106f6117a7442d1L, 0x80deedc5c602bfd1L, 0xf301bf106a7d7c7L)).seal();
}