package jetbrains.mps.make.facet.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.NamedMenuId;
import java.util.Arrays;
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 FacetDeclaration_Editor());
case 1:
return Collections.<ConceptEditor>singletonList(new FacetJavaClassExpression_Editor());
case 2:
return Collections.<ConceptEditor>singletonList(new FacetReference_Editor());
case 3:
return Collections.<ConceptEditor>singletonList(new FacetReferenceExpression_Editor());
case 4:
return Collections.<ConceptEditor>singletonList(new ForeignParametersComponentExpression_Editor());
case 5:
return Collections.<ConceptEditor>singletonList(new ForeignParametersExpression_Editor());
case 6:
return Collections.<ConceptEditor>singletonList(new LocalParametersComponentExpression_Editor());
case 7:
return Collections.<ConceptEditor>singletonList(new LocalParametersExpression_Editor());
case 8:
return Collections.<ConceptEditor>singletonList(new ParametersDeclaration_Editor());
case 9:
return Collections.<ConceptEditor>singletonList(new ResourceSpecificPropertiesExpression_Editor());
case 10:
return Collections.<ConceptEditor>singletonList(new ResourceTypeDeclaration_Editor());
case 11:
return Collections.<ConceptEditor>singletonList(new TargetDeclaration_Editor());
case 12:
return Collections.<ConceptEditor>singletonList(new TargetDependency_Editor());
case 13:
return Collections.<ConceptEditor>singletonList(new TargetReferenceExpression_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 FacetReference_TransformationMenu());
case 1:
return Collections.<TransformationMenu>singletonList(new FacetReferenceExpression_TransformationMenu());
case 2:
return Collections.<TransformationMenu>singletonList(new IPropertyExpression_TransformationMenu());
default:
}
return Collections.<TransformationMenu>emptyList();
}
@NotNull
@Override
public Collection<TransformationMenu> getDeclaredNamedTransformationMenus(NamedMenuId menuId) {
SAbstractConcept cncpt_a0e = (SAbstractConcept) menuId.getConcept();
switch (index_xbvbvu_a0e.index(cncpt_a0e)) {
case 0:
if (true) {
switch (Arrays.binarySearch(stringSwitchCases_xbvbvu_a0a0a0a1a4, menuId.getFqName())) {
case 0:
return Arrays.asList(new TransformationMenu[]{new TargetDeclaration_makeOptional()});
default:
}
}
break;
default:
}
return Collections.<TransformationMenu>emptyList();
}
@NotNull
@Override
public Collection<SubstituteMenu> getDeclaredDefaultSubstituteMenus(SAbstractConcept concept) {
SAbstractConcept cncpt_a0f = concept;
switch (index_xbvbvu_a0f.index(cncpt_a0f)) {
case 0:
return Collections.<SubstituteMenu>singletonList(new Expression_Contribution());
case 1:
return Collections.<SubstituteMenu>singletonList(new FacetReferenceExpression_SubstituteMenu());
case 2:
return Collections.<SubstituteMenu>singletonList(new ForeignParametersExpression_SubstituteMenu());
case 3:
return Collections.<SubstituteMenu>singletonList(new LocalParametersExpression_SubstituteMenu());
case 4:
return Collections.<SubstituteMenu>singletonList(new ResourceClassifierType_SubstituteMenu());
case 5:
return Collections.<SubstituteMenu>singletonList(new TargetDependency_SubstituteMenu());
case 6:
return Collections.<SubstituteMenu>singletonList(new TargetReferenceExpression_SubstituteMenu());
default:
}
return Collections.<SubstituteMenu>emptyList();
}
@NotNull
@Override
public Collection<SubstituteMenu> getDeclaredNamedSubstituteMenus(NamedMenuId menuId) {
SAbstractConcept cncpt_a0g = (SAbstractConcept) menuId.getConcept();
switch (index_xbvbvu_a0g.index(cncpt_a0g)) {
case 0:
if (true) {
switch (Arrays.binarySearch(stringSwitchCases_xbvbvu_a0a0a0a1a6, menuId.getFqName())) {
case 0:
return Arrays.asList(new SubstituteMenu[]{new ForeignParameters()});
case 1:
return Arrays.asList(new SubstituteMenu[]{new LocalParameters()});
default:
}
}
break;
default:
}
return Collections.<SubstituteMenu>emptyList();
}
private static final ConceptSwitchIndex index_xbvbvu_a0a = new ConceptSwitchIndexBuilder().put(MetaIdFactory.conceptId(0x696c11654a59463bL, 0xbc5d902caab85dd0L, 0x5912a2ab1cd24c13L), MetaIdFactory.conceptId(0x696c11654a59463bL, 0xbc5d902caab85dd0L, 0x1a4b910f856c1c94L), MetaIdFactory.conceptId(0x696c11654a59463bL, 0xbc5d902caab85dd0L, 0x5979ed6d2b21b2f2L), MetaIdFactory.conceptId(0x696c11654a59463bL, 0xbc5d902caab85dd0L, 0x639ef64ff4850bb0L), MetaIdFactory.conceptId(0x696c11654a59463bL, 0xbc5d902caab85dd0L, 0x2e69d2eba535f3b1L), MetaIdFactory.conceptId(0x696c11654a59463bL, 0xbc5d902caab85dd0L, 0x2e69d2eba535f3b0L), MetaIdFactory.conceptId(0x696c11654a59463bL, 0xbc5d902caab85dd0L, 0x6598ce4d2f231cb3L), MetaIdFactory.conceptId(0x696c11654a59463bL, 0xbc5d902caab85dd0L, 0x6598ce4d2f231cb2L), MetaIdFactory.conceptId(0x696c11654a59463bL, 0xbc5d902caab85dd0L, 0x6598ce4d2f22a97eL), MetaIdFactory.conceptId(0x696c11654a59463bL, 0xbc5d902caab85dd0L, 0x1e69fdb2a034c3f6L), MetaIdFactory.conceptId(0x696c11654a59463bL, 0xbc5d902caab85dd0L, 0x1a6da65e8aab1d4L), MetaIdFactory.conceptId(0x696c11654a59463bL, 0xbc5d902caab85dd0L, 0x5912a2ab1cd24c3dL), MetaIdFactory.conceptId(0x696c11654a59463bL, 0xbc5d902caab85dd0L, 0x5912a2ab1cd24c60L), MetaIdFactory.conceptId(0x696c11654a59463bL, 0xbc5d902caab85dd0L, 0x78c916bd7aecaff7L)).seal();
private static final ConceptSwitchIndex index_xbvbvu_a0d = new ConceptSwitchIndexBuilder().put(MetaIdFactory.conceptId(0x696c11654a59463bL, 0xbc5d902caab85dd0L, 0x5979ed6d2b21b2f2L), MetaIdFactory.conceptId(0x696c11654a59463bL, 0xbc5d902caab85dd0L, 0x639ef64ff4850bb0L), MetaIdFactory.conceptId(0x696c11654a59463bL, 0xbc5d902caab85dd0L, 0x1e69fdb2a034c3f8L)).seal();
private static final ConceptSwitchIndex index_xbvbvu_a0e = new ConceptSwitchIndexBuilder().put(MetaIdFactory.conceptId(0x696c11654a59463bL, 0xbc5d902caab85dd0L, 0x5912a2ab1cd24c3dL)).seal();
private static final ConceptSwitchIndex index_xbvbvu_a0f = new ConceptSwitchIndexBuilder().put(MetaIdFactory.conceptId(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8c37f506fL), MetaIdFactory.conceptId(0x696c11654a59463bL, 0xbc5d902caab85dd0L, 0x639ef64ff4850bb0L), MetaIdFactory.conceptId(0x696c11654a59463bL, 0xbc5d902caab85dd0L, 0x2e69d2eba535f3b0L), MetaIdFactory.conceptId(0x696c11654a59463bL, 0xbc5d902caab85dd0L, 0x6598ce4d2f231cb2L), MetaIdFactory.conceptId(0x696c11654a59463bL, 0xbc5d902caab85dd0L, 0x1a6da65e8aea0b4L), MetaIdFactory.conceptId(0x696c11654a59463bL, 0xbc5d902caab85dd0L, 0x5912a2ab1cd24c60L), MetaIdFactory.conceptId(0x696c11654a59463bL, 0xbc5d902caab85dd0L, 0x78c916bd7aecaff7L)).seal();
private static final ConceptSwitchIndex index_xbvbvu_a0g = new ConceptSwitchIndexBuilder().put(MetaIdFactory.conceptId(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8c37f506fL)).seal();
private static String[] stringSwitchCases_xbvbvu_a0a0a0a1a4 = new String[]{"jetbrains.mps.make.facet.editor.TargetDeclaration_makeOptional"};
private static String[] stringSwitchCases_xbvbvu_a0a0a0a1a6 = new String[]{"jetbrains.mps.make.facet.editor.ForeignParameters", "jetbrains.mps.make.facet.editor.LocalParameters"};
}