private static SNode _quotation_createNode_baxqxe_a0a0a2(Object parameter_1) { PersistenceFacade facade = PersistenceFacade.getInstance(); SNode quotedNode_2 = null; SNode quotedNode_3 = null; SNode quotedNode_4 = null; quotedNode_2 = SModelUtil_new.instantiateConceptDeclaration( "jetbrains.mps.baseLanguage.structure.DotExpression", null, null, GlobalScope.getInstance(), false); quotedNode_3 = SModelUtil_new.instantiateConceptDeclaration( "jetbrains.mps.baseLanguage.structure.ThisExpression", null, null, GlobalScope.getInstance(), false); quotedNode_2.addChild("operand", quotedNode_3); quotedNode_4 = SModelUtil_new.instantiateConceptDeclaration( "jetbrains.mps.baseLanguage.structure.FieldReferenceOperation", null, null, GlobalScope.getInstance(), false); SNodeAccessUtil.setReferenceTarget(quotedNode_4, "fieldDeclaration", (SNode) parameter_1); quotedNode_2.addChild("operation", quotedNode_4); return quotedNode_2; }
private static SNode _quotation_createNode_9rcmzr_a0e0b(Object parameter_1, Object parameter_2) { PersistenceFacade facade = PersistenceFacade.getInstance(); SNode quotedNode_3 = null; SNode quotedNode_4 = null; SNode quotedNode_5 = null; quotedNode_3 = SModelUtil_new.instantiateConceptDeclaration( MetaAdapterFactory.getConcept( 0x8388864671ce4f1cL, 0x9c53c54016f6ad4fL, 0x120cf0ddd15L, "jetbrains.mps.baseLanguage.collections.structure.MappingType"), null, null, false); quotedNode_4 = (SNode) parameter_1; if (quotedNode_4 != null) { quotedNode_3.addChild( MetaAdapterFactory.getContainmentLink( 0x8388864671ce4f1cL, 0x9c53c54016f6ad4fL, 0x120cf0ddd15L, 0x120cf0e3925L, "keyType"), HUtil.copyIfNecessary(quotedNode_4)); } quotedNode_5 = (SNode) parameter_2; if (quotedNode_5 != null) { quotedNode_3.addChild( MetaAdapterFactory.getContainmentLink( 0x8388864671ce4f1cL, 0x9c53c54016f6ad4fL, 0x120cf0ddd15L, 0x120cf0e4f44L, "valueType"), HUtil.copyIfNecessary(quotedNode_5)); } return quotedNode_3; }
public SNode getNearestOverloaded(SNode node, SNode leftType, SNode rightType) { if (!(SNodeOperations.isInstanceOf( node, "jetbrains.mps.baseLanguage.structure.BinaryOperation"))) { return null; } SNode result = (SNode) (node.getUserObject("operator")); if (result != null) { return result; } Map<SNode, Boolean> operatorMap = getOverloadedOperators( SNodeOperations.cast(node, "jetbrains.mps.baseLanguage.structure.BinaryOperation"), leftType, rightType); if (MapSequence.fromMap(operatorMap).isEmpty()) { return null; } result = MapSequence.fromMap(operatorMap).first().key(); boolean resultReversed = MapSequence.fromMap(operatorMap).first().value(); for (IMapping<SNode, Boolean> operatorEntry : MapSequence.fromMap(operatorMap)) { SNode operator = operatorEntry.key(); boolean reversed = operatorEntry.value() != resultReversed; if (isSubTypeOperator(operator, result, reversed)) { result = operator; resultReversed = operatorEntry.value(); } } node.putUserObject("operator", result); node.putUserObject("reversed", resultReversed); return result; }
private static SNode _quotation_createNode_t7bv23_a0a0() { PersistenceFacade facade = PersistenceFacade.getInstance(); SNode quotedNode_1 = null; quotedNode_1 = SModelUtil_new.instantiateConceptDeclaration( MetaAdapterFactory.getConcept( 0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x101de48bf9eL, "jetbrains.mps.baseLanguage.structure.ClassifierType"), null, null, false); quotedNode_1.setReference( MetaAdapterFactory.getReferenceLink( 0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x101de48bf9eL, 0x101de490babL, "classifier"), SReference.create( MetaAdapterFactory.getReferenceLink( 0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x101de48bf9eL, 0x101de490babL, "classifier"), quotedNode_1, facade.createModelReference( "8865b7a8-5271-43d3-884c-6fd1d9cfdd34/f:java_stub#8865b7a8-5271-43d3-884c-6fd1d9cfdd34#org.jetbrains.mps.openapi.module(MPS.OpenAPI/org.jetbrains.mps.openapi.module@java_stub)"), facade.createNodeId("~SModule"))); return quotedNode_1; }
private static SNode _quotation_createNode_78c6t8_a0a0a( Object parameter_1, Object parameter_2, Object parameter_3) { PersistenceFacade facade = PersistenceFacade.getInstance(); SNode quotedNode_4 = null; SNode quotedNode_5 = null; SNode quotedNode_6 = null; SNode quotedNode_7 = null; quotedNode_4 = SModelUtil_new.instantiateConceptDeclaration( "jetbrains.mps.baseLanguage.structure.TernaryOperatorExpression", null, null, GlobalScope.getInstance(), false); quotedNode_5 = (SNode) parameter_1; if (quotedNode_5 != null) { quotedNode_4.addChild("condition", HUtil.copyIfNecessary(quotedNode_5)); } quotedNode_6 = (SNode) parameter_2; if (quotedNode_6 != null) { quotedNode_4.addChild("ifTrue", HUtil.copyIfNecessary(quotedNode_6)); } quotedNode_7 = (SNode) parameter_3; if (quotedNode_7 != null) { quotedNode_4.addChild("ifFalse", HUtil.copyIfNecessary(quotedNode_7)); } return quotedNode_4; }
private static SNode _quotation_createNode_fj2vg7_a0m0b(Object parameter_1, Object parameter_2) { PersistenceFacade facade = PersistenceFacade.getInstance(); SNode quotedNode_3 = null; SNode quotedNode_4 = null; quotedNode_3 = SModelUtil_new.instantiateConceptDeclaration( MetaAdapterFactory.getConcept( 0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x101de48bf9eL, "jetbrains.mps.baseLanguage.structure.ClassifierType"), null, null, false); SNodeAccessUtil.setReferenceTarget( quotedNode_3, MetaAdapterFactory.getReferenceLink( 0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x101de48bf9eL, 0x101de490babL, "classifier"), (SNode) parameter_1); { List<SNode> nodes = (List<SNode>) parameter_2; for (SNode child : nodes) { quotedNode_3.addChild( MetaAdapterFactory.getContainmentLink( 0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x101de48bf9eL, 0x102419671abL, "parameter"), HUtil.copyIfNecessary(child)); } } return quotedNode_3; }
private static SNode _quotation_createNode_bwi1fo_a0a3() { PersistenceFacade facade = PersistenceFacade.getInstance(); SNode quotedNode_1 = null; quotedNode_1 = SModelUtil_new.instantiateConceptDeclaration( MetaAdapterFactory.getConcept( 0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x101de48bf9eL, "jetbrains.mps.baseLanguage.structure.ClassifierType"), null, null, false); quotedNode_1.setReference( MetaAdapterFactory.getReferenceLink( 0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x101de48bf9eL, 0x101de490babL, "classifier"), SReference.create( MetaAdapterFactory.getReferenceLink( 0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x101de48bf9eL, 0x101de490babL, "classifier"), quotedNode_1, facade.createModelReference( "6354ebe7-c22a-4a0f-ac54-50b52ab9b065/java:java.lang(JDK/)"), facade.createNodeId("~Object"))); return quotedNode_1; }
/** * Uncomments the node which is under the comment node specified in constructor * * <p>Also if containment link of the commented node is singular and non optional comments or * deletes the existing child whether it is instance of abstract concept or not respectively * * @throws IllegalStateException if node to uncomment does not have parent * @return node which was under the comment */ public SNode uncomment() { if (!(isValid())) { throw new IllegalStateException( "Node uncommenter has invalid state. Comment attribute has no parent. Attribute " + myComment.getPresentation() + " Attribute id: " + myComment.getNodeId()); } SNode commentedNode = SLinkOperations.getTarget( myComment, MetaAdapterFactory.getContainmentLink( 0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x3dcc194340c24debL, 0x2ab99f0d2248e89dL, "commentedNode")); if (getContainmentLink() != null && commentedNode != null) { removeOrCommentChildInSingleRole(); myComment.removeChild(commentedNode); getParent().insertChildAfter(getContainmentLink(), commentedNode, myComment); } SNodeOperations.deleteNode(myComment); return commentedNode; }
private static SNode _quotation_createNode_1lf6x4_a0a0b() { PersistenceFacade facade = PersistenceFacade.getInstance(); SNode quotedNode_1 = null; quotedNode_1 = SModelUtil_new.instantiateConceptDeclaration( MetaAdapterFactory.getConcept( 0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x101de48bf9eL, "jetbrains.mps.baseLanguage.structure.ClassifierType"), null, null, false); quotedNode_1.setReference( MetaAdapterFactory.getReferenceLink( 0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x101de48bf9eL, 0x101de490babL, "classifier"), SReference.create( MetaAdapterFactory.getReferenceLink( 0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x101de48bf9eL, 0x101de490babL, "classifier"), quotedNode_1, facade.createModelReference( "1ed103c3-3aa6-49b7-9c21-6765ee11f224/java:jetbrains.mps.nodeEditor(MPS.Editor/)"), facade.createNodeId("~EditorComponent"))); return quotedNode_1; }
@Override protected void handleAttribute(Object resultObject, String name, String value) throws SAXException { SNode result = (SNode) resultObject; if ("type".equals(name)) { return; } if ("typeId".equals(name)) { fieldlinkMap.addTypeLocation(fieldhelper.readLinkId(value), result); return; } if ("nodeInfo".equals(name)) { return; } if ("role".equals(name)) { result.putUserObject("role", fieldhelper.readRole(value)); return; } if ("roleId".equals(name)) { fieldlinkMap.addRoleLocation(fieldhelper.readLinkId(value), result); return; } if ("id".equals(name)) { SNodeId id = jetbrains.mps.smodel.SNodeId.fromString(value); if (id == null) { throw new SAXParseException("bad node ID", null); } ((jetbrains.mps.smodel.SNode) result).setId(id); return; } super.handleAttribute(resultObject, name, value); }
private static SNode _quotation_createNode_exju2j_a0a1() { PersistenceFacade facade = PersistenceFacade.getInstance(); SNode quotedNode_1 = null; quotedNode_1 = SModelUtil_new.instantiateConceptDeclaration( MetaAdapterFactory.getConcept( 0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x101de48bf9eL, "jetbrains.mps.baseLanguage.structure.ClassifierType"), null, null, false); quotedNode_1.setReference( MetaAdapterFactory.getReferenceLink( 0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x101de48bf9eL, 0x101de490babL, "classifier"), SReference.create( MetaAdapterFactory.getReferenceLink( 0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x101de48bf9eL, 0x101de490babL, "classifier"), quotedNode_1, facade.createModelReference( "r:b60215f1-3d3e-41cc-8321-723ef8eb59dd(jetbrains.mps.lang.editor.table.runtime)"), facade.createNodeId("4490468428501048480"))); return quotedNode_1; }
private static SNode _quotation_createNode_yti4yq_a0a0a8a1a0a( Object parameter_1, Object parameter_2) { PersistenceFacade facade = PersistenceFacade.getInstance(); SNode quotedNode_3 = null; SNode quotedNode_4 = null; SNode quotedNode_5 = null; SNode quotedNode_6 = null; quotedNode_3 = SModelUtil_new.instantiateConceptDeclaration( "jetbrains.mps.baseLanguage.structure.InstanceMethodDeclaration", null, null, false); SNodeAccessUtil.setProperty(quotedNode_3, "isAbstract", "true"); SNodeAccessUtil.setProperty(quotedNode_3, "name", (String) parameter_1); quotedNode_4 = SModelUtil_new.instantiateConceptDeclaration( "jetbrains.mps.baseLanguage.structure.PublicVisibility", null, null, false); quotedNode_3.addChild("visibility", quotedNode_4); quotedNode_5 = SModelUtil_new.instantiateConceptDeclaration( "jetbrains.mps.baseLanguage.structure.StatementList", null, null, false); quotedNode_3.addChild("body", quotedNode_5); quotedNode_6 = (SNode) parameter_2; if (quotedNode_6 != null) { quotedNode_3.addChild("returnType", HUtil.copyIfNecessary(quotedNode_6)); } return quotedNode_3; }
private static SNode _quotation_createNode_mxwyp3_a0a8a0(Object parameter_1) { PersistenceFacade facade = PersistenceFacade.getInstance(); SNode quotedNode_2 = null; SNode quotedNode_3 = null; SNode quotedNode_4 = null; quotedNode_2 = SModelUtil_new.instantiateConceptDeclaration( "jetbrains.mps.lang.typesystem.structure.JoinType", null, null, GlobalScope.getInstance(), false); quotedNode_3 = SModelUtil_new.instantiateConceptDeclaration( "jetbrains.mps.lang.smodel.structure.SNodeType", null, null, GlobalScope.getInstance(), false); SNodeAccessUtil.setReferenceTarget(quotedNode_3, "concept", (SNode) parameter_1); quotedNode_2.addChild("argument", quotedNode_3); quotedNode_4 = SModelUtil_new.instantiateConceptDeclaration( "jetbrains.mps.baseLanguage.structure.StringType", null, null, GlobalScope.getInstance(), false); quotedNode_2.addChild("argument", quotedNode_4); return quotedNode_2; }
private static SNode _quotation_createNode_baxqxe_a0a0c0b( Object parameter_1, Object parameter_2, Object parameter_3, Object parameter_4) { PersistenceFacade facade = PersistenceFacade.getInstance(); SNode quotedNode_5 = null; SNode quotedNode_6 = null; SNode quotedNode_7 = null; SNode quotedNode_8 = null; quotedNode_5 = SModelUtil_new.instantiateConceptDeclaration( "jetbrains.mps.baseLanguage.structure.FieldDeclaration", null, null, GlobalScope.getInstance(), false); SNodeAccessUtil.setProperty(quotedNode_5, "name", (String) parameter_4); quotedNode_6 = (SNode) parameter_1; if (quotedNode_6 != null) { quotedNode_5.addChild("visibility", HUtil.copyIfNecessary(quotedNode_6)); } quotedNode_7 = (SNode) parameter_2; if (quotedNode_7 != null) { quotedNode_5.addChild("type", HUtil.copyIfNecessary(quotedNode_7)); } quotedNode_8 = (SNode) parameter_3; if (quotedNode_8 != null) { quotedNode_5.addChild("initializer", HUtil.copyIfNecessary(quotedNode_8)); } return quotedNode_5; }
private static SNode _quotation_createNode_4qk8lm_a0d0b() { PersistenceFacade facade = PersistenceFacade.getInstance(); SNode quotedNode_1 = null; quotedNode_1 = SModelUtil_new.instantiateConceptDeclaration( MetaAdapterFactory.getConcept( 0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x101de48bf9eL, "jetbrains.mps.baseLanguage.structure.ClassifierType"), null, null, false); quotedNode_1.setReference( MetaAdapterFactory.getReferenceLink( 0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x101de48bf9eL, 0x101de490babL, "classifier"), SReference.create( MetaAdapterFactory.getReferenceLink( 0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x101de48bf9eL, 0x101de490babL, "classifier"), quotedNode_1, facade.createModelReference( "r:d98d04fb-4a60-4106-81cf-6cb40b67de4d(jetbrains.mps.ide.findusages.model)"), facade.createNodeId("847291649004065516"))); return quotedNode_1; }
private static SNode _quotation_createNode_v18lly_a0a1() { PersistenceFacade facade = PersistenceFacade.getInstance(); SNode quotedNode_1 = null; quotedNode_1 = SModelUtil_new.instantiateConceptDeclaration( MetaAdapterFactory.getConcept( 0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x101de48bf9eL, "jetbrains.mps.baseLanguage.structure.ClassifierType"), null, null, false); quotedNode_1.setReference( MetaAdapterFactory.getReferenceLink( 0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x101de48bf9eL, 0x101de490babL, "classifier"), SReference.create( MetaAdapterFactory.getReferenceLink( 0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x101de48bf9eL, 0x101de490babL, "classifier"), quotedNode_1, facade.createModelReference( "r:bd8551c6-e2e3-4499-a261-45b0c886d1d1(jetbrains.mps.refactoring.framework)"), facade.createNodeId("4792031542972811415"))); return quotedNode_1; }
private static SNode _quotation_createNode_fj2vg7_a1a0a0a7a1() { PersistenceFacade facade = PersistenceFacade.getInstance(); SNode quotedNode_1 = null; quotedNode_1 = SModelUtil_new.instantiateConceptDeclaration( MetaAdapterFactory.getConcept( 0xed6d7656532c4bc2L, 0x81d1af945aeb8280L, 0x10de9cbf8e8L, "jetbrains.mps.baseLanguage.blTypes.structure.PrimitiveTypeRef"), null, null, false); quotedNode_1.setReference( MetaAdapterFactory.getReferenceLink( 0xed6d7656532c4bc2L, 0x81d1af945aeb8280L, 0x10de9cbf8e8L, 0x10de9cbf8e7L, "descriptor"), SReference.create( MetaAdapterFactory.getReferenceLink( 0xed6d7656532c4bc2L, 0x81d1af945aeb8280L, 0x10de9cbf8e8L, 0x10de9cbf8e7L, "descriptor"), quotedNode_1, facade.createModelReference( "r:00000000-0000-4000-0000-011c895902de(jetbrains.mps.baseLanguage.blTypes.primitiveDescriptors)"), facade.createNodeId("1196683941620"))); return quotedNode_1; }
private static SNode _quotation_createNode_topy54_a0b0b() { PersistenceFacade facade = PersistenceFacade.getInstance(); SNode quotedNode_1 = null; quotedNode_1 = SModelUtil_new.instantiateConceptDeclaration( MetaAdapterFactory.getConcept( 0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x101de48bf9eL, "jetbrains.mps.baseLanguage.structure.ClassifierType"), null, null, false); quotedNode_1.setReference( MetaAdapterFactory.getReferenceLink( 0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x101de48bf9eL, 0x101de490babL, "classifier"), SReference.create( MetaAdapterFactory.getReferenceLink( 0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x101de48bf9eL, 0x101de490babL, "classifier"), quotedNode_1, facade.createModelReference( "6ed54515-acc8-4d1e-a16c-9fd6cfe951ea/f:java_stub#6ed54515-acc8-4d1e-a16c-9fd6cfe951ea#jetbrains.mps.lang.dataFlow.framework.instructions(MPS.Core/jetbrains.mps.lang.dataFlow.framework.instructions@java_stub)"), facade.createNodeId("~Instruction"))); return quotedNode_1; }
private static SNode _quotation_createNode_mrte6h_a0a0() { PersistenceFacade facade = PersistenceFacade.getInstance(); SNode quotedNode_1 = null; quotedNode_1 = SModelUtil_new.instantiateConceptDeclaration( MetaAdapterFactory.getConcept( 0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x101de48bf9eL, "jetbrains.mps.baseLanguage.structure.ClassifierType"), null, null, false); quotedNode_1.setReference( MetaAdapterFactory.getReferenceLink( 0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x101de48bf9eL, 0x101de490babL, "classifier"), SReference.create( MetaAdapterFactory.getReferenceLink( 0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x101de48bf9eL, 0x101de490babL, "classifier"), quotedNode_1, facade.createModelReference( "742f6602-5a2f-4313-aa6e-ae1cd4ffdc61/java:jetbrains.mps.project(MPS.Platform/)"), facade.createNodeId("~MPSProject"))); return quotedNode_1; }
private void processProperty(SModelPropertyEvent event) { final SNode node = event.getNode(); if (node.getModel() == null) { return; } final SNodeId nodeId = node.getNodeId(); final String propertyName = event.getPropertyName(); runUpdateTask( new _FunctionTypes._void_P0_E0() { public void invoke() { removeChanges( nodeId, SetPropertyChange.class, new _FunctionTypes._return_P1_E0<Boolean, SetPropertyChange>() { public Boolean invoke(SetPropertyChange ch) { return propertyName.equals(ch.getPropertyName()); } }); buildAndAddChanges( new _FunctionTypes._void_P1_E0<ChangeSetBuilder>() { public void invoke(ChangeSetBuilder b) { b.buildForProperty(getOldNode(nodeId), node, propertyName); } }); } }, node, event); }
private static SNode _quotation_createNode_rsqk7y_a0a0(Object parameter_1) { PersistenceFacade facade = PersistenceFacade.getInstance(); SNode quotedNode_2 = null; SNode quotedNode_3 = null; quotedNode_2 = SModelUtil_new.instantiateConceptDeclaration( MetaAdapterFactory.getConcept( 0x8388864671ce4f1cL, 0x9c53c54016f6ad4fL, 0x2e9a0b9a890137e9L, "jetbrains.mps.baseLanguage.collections.structure.LinkedListType"), null, null, false); quotedNode_3 = (SNode) parameter_1; if (quotedNode_3 != null) { quotedNode_2.addChild( MetaAdapterFactory.getContainmentLink( 0x8388864671ce4f1cL, 0x9c53c54016f6ad4fL, 0x10c25fb076aL, 0x10c25fe95c5L, "elementType"), HUtil.copyIfNecessary(quotedNode_3)); } return quotedNode_2; }
private void processReference(SModelReferenceEvent event) { SReference ref = event.getReference(); final SNode sourceNode = ref.getSourceNode(); if (sourceNode.getModel() == null) { return; } final SNodeId nodeId = sourceNode.getNodeId(); final String role = ref.getRole(); runUpdateTask( new _FunctionTypes._void_P0_E0() { public void invoke() { removeChanges( nodeId, SetReferenceChange.class, new _FunctionTypes._return_P1_E0<Boolean, SetReferenceChange>() { public Boolean invoke(SetReferenceChange ch) { return role.equals(ch.getRole()); } }); buildAndAddChanges( new _FunctionTypes._void_P1_E0<ChangeSetBuilder>() { public void invoke(ChangeSetBuilder b) { b.buildForReference(getOldNode(nodeId), sourceNode, role); } }); } }, event.getReference().getSourceNode(), event); }
public static Collection<String> getUsedLanguageNamespaces( SModel model, boolean isTemplateModel) { if (isTemplateModel) { return getUsedLanguageNamespacesInTemplateModel(model); } if (SModelStereotype.isGeneratorModel(model)) { TemplateModelScanner templateModelScanner = new TemplateModelScanner(model); templateModelScanner.scan(); Set<String> namespaces = new HashSet<String>(templateModelScanner.getQueryLanguages()); for (SModuleReference ref : ((jetbrains.mps.smodel.SModelInternal) model).engagedOnGenerationLanguages()) { namespaces.add(ref.getModuleName()); } return namespaces; } Set<String> namespaces = new HashSet<String>(); for (SModuleReference ref : ((jetbrains.mps.smodel.SModelInternal) model).engagedOnGenerationLanguages()) { namespaces.add(ref.getModuleName()); } for (SNode root : model.getRootNodes()) { namespaces.add(NameUtil.namespaceFromConceptFQName(root.getConcept().getId())); for (SNode child : jetbrains.mps.util.SNodeOperations.getDescendants(root, null)) { namespaces.add(NameUtil.namespaceFromConceptFQName(child.getConcept().getId())); } } // empty behavior model should have it's behavior aspect descriptor generated if (model.getModule() instanceof Language && LanguageAspect.BEHAVIOR.is(model)) { namespaces.add(BootstrapLanguages.BEHAVIOR.getModuleName()); } return namespaces; }
private static SNode _quotation_createNode_501tdc_a0a0b() { PersistenceFacade facade = PersistenceFacade.getInstance(); SNode quotedNode_1 = null; SNode quotedNode_2 = null; quotedNode_1 = SModelUtil_new.instantiateConceptDeclaration( MetaAdapterFactory.getConcept( 0x8388864671ce4f1cL, 0x9c53c54016f6ad4fL, 0x10c260e9444L, "jetbrains.mps.baseLanguage.collections.structure.SequenceType"), null, null, false); quotedNode_2 = SModelUtil_new.instantiateConceptDeclaration( MetaAdapterFactory.getConcept( 0x7866978ea0f04cc7L, 0x81bc4d213d9375e1L, 0x10a2d94c0cdL, "jetbrains.mps.lang.smodel.structure.SModelType"), null, null, false); quotedNode_1.addChild( MetaAdapterFactory.getContainmentLink( 0x8388864671ce4f1cL, 0x9c53c54016f6ad4fL, 0x10c260e9444L, 0x10c260ee40eL, "elementType"), quotedNode_2); return quotedNode_1; }
private static SNode _quotation_createNode_a1x6vi_a0c0a() { SNode quotedNode_1 = null; SNode quotedNode_2 = null; quotedNode_1 = SModelUtil_new.instantiateConceptDeclaration( "jetbrains.mps.baseLanguage.structure.GenericNewExpression", null, null, GlobalScope.getInstance(), false); quotedNode_2 = SModelUtil_new.instantiateConceptDeclaration( "jetbrains.mps.baseLanguage.structure.ClassCreator", null, null, GlobalScope.getInstance(), false); quotedNode_2.setReference( "baseMethodDeclaration", SReference.create( "baseMethodDeclaration", quotedNode_2, SModelReference.fromString( "f:java_stub#6354ebe7-c22a-4a0f-ac54-50b52ab9b065#java.lang(JDK/java.lang@java_stub)"), SNodeId.fromString("~IllegalArgumentException.<init>()"))); quotedNode_1.addChild("creator", quotedNode_2); return quotedNode_1; }
private static SNode _quotation_createNode_qal9w4_a0a0a3() { PersistenceFacade facade = PersistenceFacade.getInstance(); SNode quotedNode_1 = null; quotedNode_1 = SModelUtil_new.instantiateConceptDeclaration( MetaAdapterFactory.getConcept( 0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x101de48bf9eL, "jetbrains.mps.baseLanguage.structure.ClassifierType"), null, null, false); quotedNode_1.setReference( MetaAdapterFactory.getReferenceLink( 0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x101de48bf9eL, 0x101de490babL, "classifier"), SReference.create( MetaAdapterFactory.getReferenceLink( 0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x101de48bf9eL, 0x101de490babL, "classifier"), quotedNode_1, facade.createModelReference( "498d89d2-c2e9-11e2-ad49-6cf049e62fe5/java:com.intellij.execution(MPS.IDEA/)"), facade.createNodeId("~ExecutionException"))); return quotedNode_1; }
private static SNode _quotation_createNode_9rcmzr_a0f0b(Object parameter_1) { PersistenceFacade facade = PersistenceFacade.getInstance(); SNode quotedNode_2 = null; SNode quotedNode_3 = null; quotedNode_2 = SModelUtil_new.instantiateConceptDeclaration( MetaAdapterFactory.getConcept( 0x8388864671ce4f1cL, 0x9c53c54016f6ad4fL, 0x11d91cbbcd0L, "jetbrains.mps.baseLanguage.collections.structure.SetType"), null, null, false); quotedNode_3 = (SNode) parameter_1; if (quotedNode_3 != null) { quotedNode_2.addChild( MetaAdapterFactory.getContainmentLink( 0x8388864671ce4f1cL, 0x9c53c54016f6ad4fL, 0x11d91cbbcd0L, 0x11d91cc51e3L, "elementType"), HUtil.copyIfNecessary(quotedNode_3)); } return quotedNode_2; }
private static SNode _quotation_createNode_w26thq_a0a3a1(Object parameter_1) { PersistenceFacade facade = PersistenceFacade.getInstance(); SNode quotedNode_2 = null; SNode quotedNode_3 = null; quotedNode_2 = SModelUtil_new.instantiateConceptDeclaration( "jetbrains.mps.baseLanguage.structure.ClassifierType", null, null, GlobalScope.getInstance(), false); quotedNode_2.setReference( "classifier", SReference.create( "classifier", quotedNode_2, facade.createModelReference( "f:java_stub#6354ebe7-c22a-4a0f-ac54-50b52ab9b065#java.util(JDK/java.util@java_stub)"), facade.createNodeId("~List"))); quotedNode_3 = (SNode) parameter_1; if (quotedNode_3 != null) { quotedNode_2.addChild("parameter", HUtil.copyIfNecessary(quotedNode_3)); } return quotedNode_2; }
@Override protected void addReferenceCell(final SReferenceLink referenceLink) { SReference reference = getNode().getReference(referenceLink); if (reference == null) { addLabel("<no target>"); return; } final SNode referentNode = reference.getTargetNode(); if (referentNode == null) { String resolveInfo = ((jetbrains.mps.smodel.SReference) reference).getResolveInfo(); String myErrorText = resolveInfo != null ? resolveInfo : "?" + referenceLink.getName() + "?"; EditorCell_Error errorCell = new EditorCell_Error(getEditorContext(), getNode(), myErrorText); errorCell.setCellId("error_" + referenceLink.getName()); addCell(errorCell); return; } if (referentNode.getModel() == null) { LOG.error("Reference to node which is not inside model. Node: " + referentNode, referentNode); } EditorCell cell = getUpdateSession() .updateReferencedNodeCell( new Computable<EditorCell>() { @Override public EditorCell compute() { return createReferentEditorCell( getEditorContext(), referenceLink, referentNode); } }, referentNode, referenceLink.getName()); setSemanticNodeToCells(cell, getNode()); cell.setCellId("reference_" + referenceLink.getName()); addCell(cell); }
private static SNode _quotation_createNode_icy1a5_a0a2() { PersistenceFacade facade = PersistenceFacade.getInstance(); SNode quotedNode_1 = null; quotedNode_1 = SModelUtil_new.instantiateConceptDeclaration( MetaAdapterFactory.getConcept( 0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x103fb730c14L, "jetbrains.mps.baseLanguage.structure.ClassifierClassExpression"), null, null, false); quotedNode_1.setReference( MetaAdapterFactory.getReferenceLink( 0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x103fb730c14L, 0x103fb73a43eL, "classifier"), SReference.create( MetaAdapterFactory.getReferenceLink( 0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x103fb730c14L, 0x103fb73a43eL, "classifier"), quotedNode_1, facade.createModelReference( "6354ebe7-c22a-4a0f-ac54-50b52ab9b065/java:java.util(JDK/)"), facade.createNodeId("~Map"))); return quotedNode_1; }