public ConceptPresentation getDescriptor()

in plugins/mps-console/lang/base/source_gen/jetbrains/mps/console/base/structure/ConceptPresentationAspectImpl.java [52:318]


  public ConceptPresentation getDescriptor(SAbstractConcept c) {
    StructureAspectDescriptor structureDescriptor = (StructureAspectDescriptor) myLanguageRuntime.getAspect(jetbrains.mps.smodel.runtime.StructureAspectDescriptor.class);
    switch (structureDescriptor.internalIndex(c)) {
      case LanguageConceptSwitch.AbstractPrintExpression:
        if (props_AbstractPrintExpression == null) {
          ConceptPresentationBuilder cpb = new ConceptPresentationBuilder();
          props_AbstractPrintExpression = cpb.create();
        }
        return props_AbstractPrintExpression;
      case LanguageConceptSwitch.BLCommand:
        if (props_BLCommand == null) {
          ConceptPresentationBuilder cpb = new ConceptPresentationBuilder();
          cpb.shortDesc("baseLanguage statements");
          cpb.rawPresentation("{");
          props_BLCommand = cpb.create();
        }
        return props_BLCommand;
      case LanguageConceptSwitch.BLExpression:
        if (props_BLExpression == null) {
          ConceptPresentationBuilder cpb = new ConceptPresentationBuilder();
          cpb.shortDesc("baseLanguage expression");
          cpb.rawPresentation("BLExpression");
          props_BLExpression = cpb.create();
        }
        return props_BLExpression;
      case LanguageConceptSwitch.Command:
        if (props_Command == null) {
          ConceptPresentationBuilder cpb = new ConceptPresentationBuilder();
          props_Command = cpb.create();
        }
        return props_Command;
      case LanguageConceptSwitch.CommandHolder:
        if (props_CommandHolder == null) {
          ConceptPresentationBuilder cpb = new ConceptPresentationBuilder();
          cpb.presentationByName();
          props_CommandHolder = cpb.create();
        }
        return props_CommandHolder;
      case LanguageConceptSwitch.CommandHolderRef:
        if (props_CommandHolderRef == null) {
          ConceptPresentationBuilder cpb = new ConceptPresentationBuilder();
          cpb.presentationByReference(0xde1ad86d6e504a02L, 0xb306d4d17f64c375L, 0x4fe9275cea077231L, 0x4fe9275cea077232L, "target", "", "");
          props_CommandHolderRef = cpb.create();
        }
        return props_CommandHolderRef;
      case LanguageConceptSwitch.ConsoleRoot:
        if (props_ConsoleRoot == null) {
          ConceptPresentationBuilder cpb = new ConceptPresentationBuilder();
          cpb.rawPresentation("ConsoleRoot");
          props_ConsoleRoot = cpb.create();
        }
        return props_ConsoleRoot;
      case LanguageConceptSwitch.ExceptionHolder:
        if (props_ExceptionHolder == null) {
          ConceptPresentationBuilder cpb = new ConceptPresentationBuilder();
          cpb.rawPresentation("ExceptionHolder");
          props_ExceptionHolder = cpb.create();
        }
        return props_ExceptionHolder;
      case LanguageConceptSwitch.GeneratedCommand:
        if (props_GeneratedCommand == null) {
          ConceptPresentationBuilder cpb = new ConceptPresentationBuilder();
          props_GeneratedCommand = cpb.create();
        }
        return props_GeneratedCommand;
      case LanguageConceptSwitch.HelpCommand:
        if (props_HelpCommand == null) {
          ConceptPresentationBuilder cpb = new ConceptPresentationBuilder();
          cpb.shortDesc("help");
          cpb.rawPresentation("?");
          props_HelpCommand = cpb.create();
        }
        return props_HelpCommand;
      case LanguageConceptSwitch.HelpConceptReference:
        if (props_HelpConceptReference == null) {
          ConceptPresentationBuilder cpb = new ConceptPresentationBuilder();
          cpb.presentationByReference(0xde1ad86d6e504a02L, 0xb306d4d17f64c375L, 0x60279080c2f3b209L, 0x60279080c2f3f8d6L, "command", "", "");
          props_HelpConceptReference = cpb.create();
        }
        return props_HelpConceptReference;
      case LanguageConceptSwitch.History:
        if (props_History == null) {
          ConceptPresentationBuilder cpb = new ConceptPresentationBuilder();
          cpb.rawPresentation("History");
          props_History = cpb.create();
        }
        return props_History;
      case LanguageConceptSwitch.HistoryItem:
        if (props_HistoryItem == null) {
          ConceptPresentationBuilder cpb = new ConceptPresentationBuilder();
          props_HistoryItem = cpb.create();
        }
        return props_HistoryItem;
      case LanguageConceptSwitch.IActionHolder:
        if (props_IActionHolder == null) {
          ConceptPresentationBuilder cpb = new ConceptPresentationBuilder();
          props_IActionHolder = cpb.create();
        }
        return props_IActionHolder;
      case LanguageConceptSwitch.IClickable:
        if (props_IClickable == null) {
          ConceptPresentationBuilder cpb = new ConceptPresentationBuilder();
          props_IClickable = cpb.create();
        }
        return props_IClickable;
      case LanguageConceptSwitch.INodeWithReference:
        if (props_INodeWithReference == null) {
          ConceptPresentationBuilder cpb = new ConceptPresentationBuilder();
          props_INodeWithReference = cpb.create();
        }
        return props_INodeWithReference;
      case LanguageConceptSwitch.InterpretedCommand:
        if (props_InterpretedCommand == null) {
          ConceptPresentationBuilder cpb = new ConceptPresentationBuilder();
          props_InterpretedCommand = cpb.create();
        }
        return props_InterpretedCommand;
      case LanguageConceptSwitch.ModifiedCommandHistoryItem:
        if (props_ModifiedCommandHistoryItem == null) {
          ConceptPresentationBuilder cpb = new ConceptPresentationBuilder();
          cpb.presentationByName();
          props_ModifiedCommandHistoryItem = cpb.create();
        }
        return props_ModifiedCommandHistoryItem;
      case LanguageConceptSwitch.NewLineResponseItem:
        if (props_NewLineResponseItem == null) {
          ConceptPresentationBuilder cpb = new ConceptPresentationBuilder();
          cpb.rawPresentation("NewLineResponseItem");
          props_NewLineResponseItem = cpb.create();
        }
        return props_NewLineResponseItem;
      case LanguageConceptSwitch.NodeReferencePresentation:
        if (props_NodeReferencePresentation == null) {
          ConceptPresentationBuilder cpb = new ConceptPresentationBuilder();
          cpb.presentationByReference(0xde1ad86d6e504a02L, 0xb306d4d17f64c375L, 0x36ac6f29ae8c1fb5L, 0x4904fd89e74fc6fL, "target", "", "");
          props_NodeReferencePresentation = cpb.create();
        }
        return props_NodeReferencePresentation;
      case LanguageConceptSwitch.NodeReferenceString:
        if (props_NodeReferenceString == null) {
          ConceptPresentationBuilder cpb = new ConceptPresentationBuilder();
          cpb.presentationByReference(0xde1ad86d6e504a02L, 0xb306d4d17f64c375L, 0x36ac6f29ae8c1fb5L, 0x4904fd89e74fc6fL, "target", "", "");
          props_NodeReferenceString = cpb.create();
        }
        return props_NodeReferenceString;
      case LanguageConceptSwitch.NodeResponseItem:
        if (props_NodeResponseItem == null) {
          ConceptPresentationBuilder cpb = new ConceptPresentationBuilder();
          cpb.rawPresentation("NodeResponseItem");
          props_NodeResponseItem = cpb.create();
        }
        return props_NodeResponseItem;
      case LanguageConceptSwitch.NodeWithClosure:
        if (props_NodeWithClosure == null) {
          ConceptPresentationBuilder cpb = new ConceptPresentationBuilder();
          cpb.rawPresentation("NodeWithClosure");
          props_NodeWithClosure = cpb.create();
        }
        return props_NodeWithClosure;
      case LanguageConceptSwitch.OutputConsoleRoot:
        if (props_OutputConsoleRoot == null) {
          ConceptPresentationBuilder cpb = new ConceptPresentationBuilder();
          cpb.rawPresentation("OutputConsoleRoot");
          props_OutputConsoleRoot = cpb.create();
        }
        return props_OutputConsoleRoot;
      case LanguageConceptSwitch.PastedNodeReference:
        if (props_PastedNodeReference == null) {
          ConceptPresentationBuilder cpb = new ConceptPresentationBuilder();
          cpb.rawPresentation("pastedNodeRef");
          props_PastedNodeReference = cpb.create();
        }
        return props_PastedNodeReference;
      case LanguageConceptSwitch.PrintExpression:
        if (props_PrintExpression == null) {
          ConceptPresentationBuilder cpb = new ConceptPresentationBuilder();
          cpb.shortDesc("smart print depending on content");
          cpb.rawPresentation("#print");
          props_PrintExpression = cpb.create();
        }
        return props_PrintExpression;
      case LanguageConceptSwitch.PrintNodeExpression:
        if (props_PrintNodeExpression == null) {
          ConceptPresentationBuilder cpb = new ConceptPresentationBuilder();
          cpb.shortDesc("print node copy");
          cpb.rawPresentation("#printNode");
          props_PrintNodeExpression = cpb.create();
        }
        return props_PrintNodeExpression;
      case LanguageConceptSwitch.PrintNodeReferenceExpression:
        if (props_PrintNodeReferenceExpression == null) {
          ConceptPresentationBuilder cpb = new ConceptPresentationBuilder();
          cpb.shortDesc("print reference to the node");
          cpb.rawPresentation("#printNodeRef");
          props_PrintNodeReferenceExpression = cpb.create();
        }
        return props_PrintNodeReferenceExpression;
      case LanguageConceptSwitch.PrintSequenceExpression:
        if (props_PrintSequenceExpression == null) {
          ConceptPresentationBuilder cpb = new ConceptPresentationBuilder();
          cpb.shortDesc("print size with link to usages view");
          cpb.rawPresentation("#printSequence");
          props_PrintSequenceExpression = cpb.create();
        }
        return props_PrintSequenceExpression;
      case LanguageConceptSwitch.PrintTextExpression:
        if (props_PrintTextExpression == null) {
          ConceptPresentationBuilder cpb = new ConceptPresentationBuilder();
          cpb.shortDesc("print as string");
          cpb.rawPresentation("#printText");
          props_PrintTextExpression = cpb.create();
        }
        return props_PrintTextExpression;
      case LanguageConceptSwitch.ProjectEditableScope:
        if (props_ProjectEditableScope == null) {
          ConceptPresentationBuilder cpb = new ConceptPresentationBuilder();
          cpb.shortDesc("editable project models");
          cpb.rawPresentation("editable");
          props_ProjectEditableScope = cpb.create();
        }
        return props_ProjectEditableScope;
      case LanguageConceptSwitch.ProjectExpression:
        if (props_ProjectExpression == null) {
          ConceptPresentationBuilder cpb = new ConceptPresentationBuilder();
          cpb.shortDesc("the current project");
          cpb.rawPresentation("#project");
          props_ProjectExpression = cpb.create();
        }
        return props_ProjectExpression;
      case LanguageConceptSwitch.ProjectScope:
        if (props_ProjectScope == null) {
          ConceptPresentationBuilder cpb = new ConceptPresentationBuilder();
          cpb.shortDesc("all project models");
          cpb.rawPresentation("project");
          props_ProjectScope = cpb.create();
        }
        return props_ProjectScope;
      case LanguageConceptSwitch.ProjectScope_old:
        if (props_ProjectScope_old == null) {
          ConceptPresentationBuilder cpb = new ConceptPresentationBuilder();
          cpb.rawPresentation("project");
          props_ProjectScope_old = cpb.create();
        }
        return props_ProjectScope_old;
      case LanguageConceptSwitch.Response:
        if (props_Response == null) {
          ConceptPresentationBuilder cpb = new ConceptPresentationBuilder();
          cpb.rawPresentation("Response");
          props_Response = cpb.create();
        }
        return props_Response;
      case LanguageConceptSwitch.ResponseItem:
        if (props_ResponseItem == null) {
          ConceptPresentationBuilder cpb = new ConceptPresentationBuilder();
          props_ResponseItem = cpb.create();
        }
        return props_ResponseItem;
      case LanguageConceptSwitch.TextResponseItem:
        if (props_TextResponseItem == null) {
          ConceptPresentationBuilder cpb = new ConceptPresentationBuilder();
          cpb.rawPresentation("TextResponseItem");
          props_TextResponseItem = cpb.create();
        }
        return props_TextResponseItem;
    }
    return null;
  }