protected EditorCell createChildCell(SNode child) { getCellFactory().pushCellContext(); getCellFactory().setNodeLocation(new SNodeLocation.FromNode(child)); try { EditorCell editorCell = super.createChildCell(child); editorCell.setAction( CellActionType.DELETE, new CellAction_DeleteSmart( getNode(), MetaAdapterFactory.getContainmentLink( 0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x11d00538bdfL, 0x11d00538be0L, "expression"), child)); editorCell.setAction( CellActionType.BACKSPACE, new CellAction_DeleteSmart( getNode(), MetaAdapterFactory.getContainmentLink( 0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x11d00538bdfL, 0x11d00538be0L, "expression"), child)); installCellInfo(child, editorCell); return editorCell; } finally { getCellFactory().popCellContext(); } }
/*package*/ static Money getCurrentPrice_id3u6SZi0yq4L(@NotNull SNode __thisNode__) { if ((SLinkOperations.getTarget( __thisNode__, MetaAdapterFactory.getContainmentLink( 0x662a9f2b58024d16L, 0x955872c65c7a681eL, 0x3786e3f4808999c3L, 0x3786e3f480b0926aL, "symbol")) == null)) { return new Money(BigDecimal.ZERO, "USD"); } Money currentPrice = StockPriceDownloader.getInstance() .getCurrentPrice( SPropertyOperations.getString( SLinkOperations.getTarget( __thisNode__, MetaAdapterFactory.getContainmentLink( 0x662a9f2b58024d16L, 0x955872c65c7a681eL, 0x3786e3f4808999c3L, 0x3786e3f480b0926aL, "symbol")), MetaAdapterFactory.getProperty( 0x662a9f2b58024d16L, 0x955872c65c7a681eL, 0x3786e3f480a9b18aL, 0x3786e3f480afac5bL, "symbol"))); if (currentPrice == null) { return new Money(BigDecimal.ZERO, "USD"); } return currentPrice; }
protected EditorCell createChildCell(SNode child) { getCellFactory().pushCellContext(); getCellFactory().setNodeLocation(new SNodeLocation.FromNode(child)); try { EditorCell editorCell = super.createChildCell(child); editorCell.setAction( CellActionType.DELETE, new CellAction_DeleteSmart( getNode(), MetaAdapterFactory.getContainmentLink( 0xaee9cad2acd44608L, 0xaef20004f6a1cdbdL, 0x11c51563250L, 0x11c517337d2L, "wrapperFunction"), child)); editorCell.setAction( CellActionType.BACKSPACE, new CellAction_DeleteSmart( getNode(), MetaAdapterFactory.getContainmentLink( 0xaee9cad2acd44608L, 0xaef20004f6a1cdbdL, 0x11c51563250L, 0x11c517337d2L, "wrapperFunction"), child)); installCellInfo(child, editorCell); return editorCell; } finally { getCellFactory().popCellContext(); } }
protected EditorCell createChildCell(SNode child) { getCellFactory().pushCellContext(); getCellFactory().setNodeLocation(new SNodeLocation.FromNode(child)); try { EditorCell editorCell = super.createChildCell(child); editorCell.setAction( CellActionType.DELETE, new CellAction_DeleteSmart( getNode(), MetaAdapterFactory.getContainmentLink( 0x798100da4f0a421aL, 0xb99171f8c50ce5d2L, 0x63a87b9320d31b36L, 0x63a87b9320d31b94L, "fileName"), child)); editorCell.setAction( CellActionType.BACKSPACE, new CellAction_DeleteSmart( getNode(), MetaAdapterFactory.getContainmentLink( 0x798100da4f0a421aL, 0xb99171f8c50ce5d2L, 0x63a87b9320d31b36L, 0x63a87b9320d31b94L, "fileName"), child)); installCellInfo(child, editorCell); return editorCell; } finally { getCellFactory().popCellContext(); } }
public static boolean baseMappingRule_Condition_1217891542034( final BaseMappingRuleContext _context) { return SNodeOperations.isInstanceOf( SLinkOperations.getTarget( SNodeOperations.as( SLinkOperations.getTarget( _context.getNode(), MetaAdapterFactory.getContainmentLink( 0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x11b0d00332cL, 0xf8c77f1e97L, "lValue")), MetaAdapterFactory.getConcept( 0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x116b46a08c4L, "jetbrains.mps.baseLanguage.structure.DotExpression")), MetaAdapterFactory.getContainmentLink( 0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x116b46a08c4L, 0x116b46b36c4L, "operation")), MetaAdapterFactory.getConcept( 0xd7706f639be2479cL, 0xa3daae92af1e64d5L, 0x11b8fe60348L, "jetbrains.mps.lang.generator.generationContext.structure.GenerationContextOp_UserObjectAccessBase")); }
protected EditorCell createChildCell(SNode child) { getCellFactory().pushCellContext(); getCellFactory().setNodeLocation(new SNodeLocation.FromNode(child)); try { EditorCell editorCell = super.createChildCell(child); editorCell.setAction( CellActionType.DELETE, new CellAction_DeleteSmart( getNode(), MetaAdapterFactory.getContainmentLink( 0xb401a68083254110L, 0x8fd384331ff25befL, 0x1231e32ff7a958ceL, 0x1231e32ff7a9efcdL, "createNodeQuery"), child)); editorCell.setAction( CellActionType.BACKSPACE, new CellAction_DeleteSmart( getNode(), MetaAdapterFactory.getContainmentLink( 0xb401a68083254110L, 0x8fd384331ff25befL, 0x1231e32ff7a958ceL, 0x1231e32ff7a9efcdL, "createNodeQuery"), child)); installCellInfo(child, editorCell); return editorCell; } finally { getCellFactory().popCellContext(); } }
public static String call_getErasureSignature_2830572026628006618(SNode __thisNode__) { StringBuilder sb = new StringBuilder(); List<SNode> parameters = SLinkOperations.getChildren( __thisNode__, MetaAdapterFactory.getContainmentLink( 0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8cc56b1fcL, 0xf8cc56b1feL, "parameter")); for (int i = 0; i < ListSequence.fromList(parameters).count(); i++) { SNode param = ListSequence.fromList(parameters).getElement(i); sb.append( Type_BehaviorDescriptor.getErasureSignature_idhEwIzNx.invoke( SLinkOperations.getTarget( param, MetaAdapterFactory.getContainmentLink( 0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x450368d90ce15bc3L, 0x4ed4d318133c80ceL, "type")))); if (i < ListSequence.fromList(parameters).count() - 1) { sb.append(","); } } return sb.toString(); }
private static void attachReference_id2wBFdLy8qmn(@NotNull SNode __thisNode__, SNode reference) { assert IReferenceAttachable_BehaviorDescriptor.canAttachReference_id2wBFdLy7HtS.invoke( __thisNode__, reference); SLinkOperations.setTarget( __thisNode__, MetaAdapterFactory.getContainmentLink( 0x8585453e6bfb4d80L, 0x98deb16074f1d86cL, 0x73a7cdcfbbbf8aadL, 0x73a7cdcfbbbf8c41L, "warningRef"), SConceptOperations.createNewNode( SNodeOperations.asInstanceConcept( MetaAdapterFactory.getConcept( 0x8585453e6bfb4d80L, 0x98deb16074f1d86cL, 0x6abc06f5f4af0d67L, "jetbrains.mps.lang.test.structure.UnknownRuleReference")))); SLinkOperations.setTarget( SLinkOperations.getTarget( __thisNode__, MetaAdapterFactory.getContainmentLink( 0x8585453e6bfb4d80L, 0x98deb16074f1d86cL, 0x73a7cdcfbbbf8aadL, 0x73a7cdcfbbbf8c41L, "warningRef")), MetaAdapterFactory.getReferenceLink( 0x8585453e6bfb4d80L, 0x98deb16074f1d86cL, 0x6abc06f5f4afab9dL, 0x73a7cdcfba51f755L, "declaration"), reference); }
private String createMethodParameterTypesString(SNode method, Map<SNode, SNode> typeByTypeVar) { StringBuilder result = new StringBuilder(); for (SNode parm : SLinkOperations.getChildren( method, MetaAdapterFactory.getContainmentLink( 0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8cc56b1fcL, 0xf8cc56b1feL, "parameter"))) { SNode type = SLinkOperations.getTarget( parm, MetaAdapterFactory.getContainmentLink( 0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x450368d90ce15bc3L, 0x4ed4d318133c80ceL, "type")); type = GenericTypesUtil.getTypeWithResolvedTypeVars(type, typeByTypeVar); if (result.length() > 0) { result.append(','); } if (type != null) { result.append( ((String) BHReflection.invoke( type, SMethodTrimmedId.create("getErasureSignature", null, "hEwIzNx")))); } else { result.append(""); } } return result.toString(); }
protected EditorCell createChildCell(SNode child) { getCellFactory().pushCellContext(); getCellFactory().setNodeLocation(new SNodeLocation.FromNode(child)); try { EditorCell editorCell = super.createChildCell(child); editorCell.setAction( CellActionType.DELETE, new CellAction_DeleteSmart( getNode(), MetaAdapterFactory.getContainmentLink( 0x1a8554c4eb8443baL, 0x8c346f0d90c6e75aL, 0x307931d0f952484eL, 0x307931d0f952484fL, "model"), child)); editorCell.setAction( CellActionType.BACKSPACE, new CellAction_DeleteSmart( getNode(), MetaAdapterFactory.getContainmentLink( 0x1a8554c4eb8443baL, 0x8c346f0d90c6e75aL, 0x307931d0f952484eL, 0x307931d0f952484fL, "model"), child)); installCellInfo(child, editorCell); return editorCell; } finally { getCellFactory().popCellContext(); } }
public void build( final IOperationContext operationContext, final DataFlowBuilderContext _context) { _context .getBuilder() .build( (SNode) SLinkOperations.getTarget( _context.getNode(), MetaAdapterFactory.getContainmentLink( 0xf61473f9130f42f6L, 0xb98d6c438812c2f6L, 0x74f562a3a993fd3dL, 0x74f562a3a993fd44L, "expected"))); _context .getBuilder() .build( (SNode) SLinkOperations.getTarget( _context.getNode(), MetaAdapterFactory.getContainmentLink( 0xf61473f9130f42f6L, 0xb98d6c438812c2f6L, 0x74f562a3a993fd3dL, 0x74f562a3a993fd45L, "actual"))); }
protected EditorCell createChildCell(SNode child) { getCellFactory().pushCellContext(); getCellFactory().setNodeLocation(new SNodeLocation.FromNode(child)); try { EditorCell editorCell = super.createChildCell(child); editorCell.setAction( CellActionType.DELETE, new CellAction_DeleteSmart( getNode(), MetaAdapterFactory.getContainmentLink( 0xf61473f9130f42f6L, 0xb98d6c438812c2f6L, 0x110e5250918L, 0x110e52557daL, "message"), child)); editorCell.setAction( CellActionType.BACKSPACE, new CellAction_DeleteSmart( getNode(), MetaAdapterFactory.getContainmentLink( 0xf61473f9130f42f6L, 0xb98d6c438812c2f6L, 0x110e5250918L, 0x110e52557daL, "message"), child)); installCellInfo(child, editorCell); return editorCell; } finally { getCellFactory().popCellContext(); } }
protected EditorCell createChildCell(SNode child) { getCellFactory().pushCellContext(); getCellFactory().setNodeLocation(new SNodeLocation.FromNode(child)); try { EditorCell editorCell = super.createChildCell(child); editorCell.setAction( CellActionType.DELETE, new CellAction_DeleteSmart( getNode(), MetaAdapterFactory.getContainmentLink( 0x18bc659203a64e29L, 0xa83a7ff23bde13baL, 0x1b1161f6e648b4b2L, 0x1b1161f6e66c1a3cL, "target"), child)); editorCell.setAction( CellActionType.BACKSPACE, new CellAction_DeleteSmart( getNode(), MetaAdapterFactory.getContainmentLink( 0x18bc659203a64e29L, 0xa83a7ff23bde13baL, 0x1b1161f6e648b4b2L, 0x1b1161f6e66c1a3cL, "target"), child)); installCellInfo(child, editorCell); return editorCell; } finally { getCellFactory().popCellContext(); } }
public static List<String> virtual_getVariableSuffixes_1213877337304(SNode thisNode) { List<String> variableSuffixes = ListSequence.fromListAndArray(new ArrayList<String>(), "itr"); if ((SLinkOperations.getTarget( thisNode, MetaAdapterFactory.getContainmentLink( 0x8388864671ce4f1cL, 0x9c53c54016f6ad4fL, 0x12020864111L, 0x12020864112L, "elementType")) != null)) { if (BehaviorReflection.invokeVirtual( Boolean.TYPE, SLinkOperations.getTarget( thisNode, MetaAdapterFactory.getContainmentLink( 0x8388864671ce4f1cL, 0x9c53c54016f6ad4fL, 0x12020864111L, 0x12020864112L, "elementType")), "virtual_hasPluralVariableSuffixes_1447667470349154499", new Object[] {})) { for (String suffix : BehaviorReflection.invokeVirtual( (Class<List<String>>) ((Class) Object.class), SLinkOperations.getTarget( thisNode, MetaAdapterFactory.getContainmentLink( 0x8388864671ce4f1cL, 0x9c53c54016f6ad4fL, 0x12020864111L, 0x12020864112L, "elementType")), "virtual_getVariableSuffixes_1213877337304", new Object[] {})) { if (!(ListSequence.fromList(variableSuffixes).contains(suffix))) { ListSequence.fromList(variableSuffixes).addElement(suffix); } } } else { for (String suffix : BehaviorReflection.invokeVirtual( (Class<List<String>>) ((Class) Object.class), SLinkOperations.getTarget( thisNode, MetaAdapterFactory.getContainmentLink( 0x8388864671ce4f1cL, 0x9c53c54016f6ad4fL, 0x12020864111L, 0x12020864112L, "elementType")), "virtual_getVariableSuffixes_1213877337304", new Object[] {})) { ListSequence.fromList(variableSuffixes).addElement(NameUtil.pluralize(suffix)); } } } return variableSuffixes; }
@NonNls /*package*/ static String getSuffix_idO$iR4JBsSb(@NotNull SNode __thisNode__) { if ((SLinkOperations.getTarget( __thisNode__, MetaAdapterFactory.getContainmentLink( 0x22e72e4c0f6946ceL, 0x84036750153aa615L, 0x3c97fcb79c84cda6L, 0x6552f0adf298f24fL, "source")) == null)) { return ""; } return ((String) IGeneratedToClass__BehaviorDescriptor.getValidClassName_id2eOtvO7hJjT.invoke( __thisNode__, BaseConcept__BehaviorDescriptor.getPresentation_idhEwIMiw.invoke( SNodeOperations.cast( TypeChecker.getInstance() .getTypeOf( SLinkOperations.getTarget( __thisNode__, MetaAdapterFactory.getContainmentLink( 0x22e72e4c0f6946ceL, 0x84036750153aa615L, 0x3c97fcb79c84cda6L, 0x6552f0adf298f24fL, "source"))), MetaAdapterFactory.getConcept( 0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x10802efe25aL, "jetbrains.mps.lang.core.structure.BaseConcept"))))); }
public void execute_internal(EditorContext editorContext, SNode node) { if (ListSequence.fromList( SLinkOperations.getChildren( node, MetaAdapterFactory.getContainmentLink( 0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x10f383e6771L, 0x10f39a8ba1fL, "catchClause"))) .count() >= 1) { ListSequence.fromList( SLinkOperations.getChildren( node, MetaAdapterFactory.getContainmentLink( 0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x10f383e6771L, 0x10f39a8ba1fL, "catchClause"))) .removeElementAt(0); } else { UnwrapStatementsUtil.unwrapIContainsStatementList(node); } }
public static boolean baseMappingRule_Condition_1196428788645( final BaseMappingRuleContext _context) { return SNodeOperations.isInstanceOf( TypeChecker.getInstance() .getTypeOf( SLinkOperations.getTarget( _context.getNode(), MetaAdapterFactory.getContainmentLink( 0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xfbdeb6fecfL, 0xfbdeb7a11cL, "leftExpression"))), MetaAdapterFactory.getConcept( 0xff24ab03965e4d15L, 0x9aed52dc276658f4L, 0x11686a0422aL, "jetbrains.mps.samples.complex.structure.ComplexType")) && TypeChecker.getInstance() .getSubtypingManager() .isSubtype( TypeChecker.getInstance() .getTypeOf( SLinkOperations.getTarget( _context.getNode(), MetaAdapterFactory.getContainmentLink( 0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xfbdeb6fecfL, 0xfbdeb7a11bL, "rightExpression"))), _quotation_createNode_x583g4_b0a0a0c()); }
private static SNode _quotation_createNode_icy1a5_a0a2a1(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, 0x120c2ad6432L, "jetbrains.mps.baseLanguage.collections.structure.LinkedHashMapCreator"), null, null, false); quotedNode_4 = (SNode) parameter_1; if (quotedNode_4 != null) { quotedNode_3.addChild( MetaAdapterFactory.getContainmentLink( 0x8388864671ce4f1cL, 0x9c53c54016f6ad4fL, 0x116dbb34f2dL, 0x116dbb5b4d0L, "keyType"), HUtil.copyIfNecessary(quotedNode_4)); } quotedNode_5 = (SNode) parameter_2; if (quotedNode_5 != null) { quotedNode_3.addChild( MetaAdapterFactory.getContainmentLink( 0x8388864671ce4f1cL, 0x9c53c54016f6ad4fL, 0x116dbb34f2dL, 0x116dbb5d76dL, "valueType"), HUtil.copyIfNecessary(quotedNode_5)); } return quotedNode_3; }
protected EditorCell createChildCell(SNode child) { getCellFactory().pushCellContext(); getCellFactory().setNodeLocation(new SNodeLocation.FromNode(child)); try { EditorCell editorCell = super.createChildCell(child); editorCell.setAction( CellActionType.DELETE, new CellAction_DeleteSmart( getNode(), MetaAdapterFactory.getContainmentLink( 0x7866978ea0f04cc7L, 0x81bc4d213d9375e1L, 0x2143399c0554e687L, 0x3636a984eed504f9L, "conceptArgument"), child)); editorCell.setAction( CellActionType.BACKSPACE, new CellAction_DeleteSmart( getNode(), MetaAdapterFactory.getContainmentLink( 0x7866978ea0f04cc7L, 0x81bc4d213d9375e1L, 0x2143399c0554e687L, 0x3636a984eed504f9L, "conceptArgument"), child)); installCellInfo(child, editorCell); return editorCell; } finally { getCellFactory().popCellContext(); } }
public static List<SNode> call_getChildren_3816167865390856298(SNode __thisNode__, SModel model) { List<SNode> result = new ArrayList<SNode>(); for (SNode a : SimpleBuilderDeclaration_BehaviorDescriptor.getAncestors_id6K2Bohp6U4S.invoke( __thisNode__)) { ListSequence.fromList(result) .addSequence( ListSequence.fromList( SLinkOperations.getChildren( a, MetaAdapterFactory.getContainmentLink( 0x132aa4d8a3f7441cL, 0xa7eb3fce23492c6aL, 0x6524536b2e1a1e38L, 0x6524536b2e1f95c4L, "child")))); } for (SNode ext : SimpleBuilderDeclaration_BehaviorDescriptor.getExtensions_id6K2Bohp73wF.invoke( __thisNode__, model)) { ListSequence.fromList(result) .addSequence( ListSequence.fromList( SLinkOperations.getChildren( ext, MetaAdapterFactory.getContainmentLink( 0x132aa4d8a3f7441cL, 0xa7eb3fce23492c6aL, 0x56cd40dfa78dcaf3L, 0x56cd40dfa78dcaf4L, "child")))); } return result; }
protected EditorCell createChildCell(SNode child) { getCellFactory().pushCellContext(); getCellFactory().setNodeLocation(new SNodeLocation.FromNode(child)); try { EditorCell editorCell = super.createChildCell(child); editorCell.setAction( CellActionType.DELETE, new CellAction_DeleteSmart( getNode(), MetaAdapterFactory.getContainmentLink( 0x86ef829012bb4ca7L, 0x947f093788f263a9L, 0x5869770da61dfe28L, 0x19bfb4173fb5241eL, "moduleRef"), child)); editorCell.setAction( CellActionType.BACKSPACE, new CellAction_DeleteSmart( getNode(), MetaAdapterFactory.getContainmentLink( 0x86ef829012bb4ca7L, 0x947f093788f263a9L, 0x5869770da61dfe28L, 0x19bfb4173fb5241eL, "moduleRef"), child)); installCellInfo(child, editorCell); return editorCell; } finally { getCellFactory().popCellContext(); } }
public static List<SNode> call_getProperties_5389689214217081373( SNode __thisNode__, SModel model) { List<SNode> result = new ArrayList<SNode>(); for (SNode a : SimpleBuilderDeclaration_BehaviorDescriptor.getAncestors_id6K2Bohp6U4S.invoke( __thisNode__)) { ListSequence.fromList(result) .addSequence( ListSequence.fromList( SLinkOperations.getChildren( a, MetaAdapterFactory.getContainmentLink( 0x132aa4d8a3f7441cL, 0xa7eb3fce23492c6aL, 0x6524536b2e1a1e38L, 0x4acc05c8d729d207L, "property")))); } for (SNode ext : SimpleBuilderDeclaration_BehaviorDescriptor.getExtensions_id6K2Bohp73wF.invoke( __thisNode__, model)) { ListSequence.fromList(result) .addSequence( ListSequence.fromList( SLinkOperations.getChildren( ext, MetaAdapterFactory.getContainmentLink( 0x132aa4d8a3f7441cL, 0xa7eb3fce23492c6aL, 0x56cd40dfa78dcaf3L, 0x56cd40dfa78dcaf5L, "property")))); } return result; }
public void execute(SNode node) { if ((boolean) Expression__BehaviorDescriptor.singleValue_id1o8Ht9sES3u.invoke( SNodeOperations.asSConcept( SNodeOperations.getConceptDeclaration( SLinkOperations.getTarget( ((SNode) RemoveUnnecessaryParentheses_QuickFix.this .getField("bottomLineParens")[0]), MetaAdapterFactory.getContainmentLink( 0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xfb4ed32b7fL, 0xfb4ed32b80L, "expression")))))) { SNodeOperations.replaceWithAnother( node, SLinkOperations.getTarget( ((SNode) RemoveUnnecessaryParentheses_QuickFix.this.getField("bottomLineParens")[0]), MetaAdapterFactory.getContainmentLink( 0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xfb4ed32b7fL, 0xfb4ed32b80L, "expression"))); } SNodeOperations.replaceWithAnother( node, ((SNode) RemoveUnnecessaryParentheses_QuickFix.this.getField("bottomLineParens")[0])); }
protected EditorCell createChildCell(SNode child) { getCellFactory().pushCellContext(); getCellFactory().setNodeLocation(new SNodeLocation.FromNode(child)); try { EditorCell editorCell = super.createChildCell(child); editorCell.setAction( CellActionType.DELETE, new CellAction_DeleteSmart( getNode(), MetaAdapterFactory.getContainmentLink( 0x8388864671ce4f1cL, 0x9c53c54016f6ad4fL, 0x120c4c1050eL, 0x120c4c1332bL, "fromElement"), child)); editorCell.setAction( CellActionType.BACKSPACE, new CellAction_DeleteSmart( getNode(), MetaAdapterFactory.getContainmentLink( 0x8388864671ce4f1cL, 0x9c53c54016f6ad4fL, 0x120c4c1050eL, 0x120c4c1332bL, "fromElement"), child)); installCellInfo(child, editorCell); return editorCell; } finally { getCellFactory().popCellContext(); } }
protected EditorCell createChildCell(SNode child) { getCellFactory().pushCellContext(); getCellFactory().setNodeLocation(new SNodeLocation.FromNode(child)); try { EditorCell editorCell = super.createChildCell(child); editorCell.setAction( CellActionType.DELETE, new CellAction_DeleteSmart( getNode(), MetaAdapterFactory.getContainmentLink( 0x698a8d22a10447a0L, 0xba8d10e3ec237f13L, 0x5c3f3e2c1cede077L, 0x6e014d63c0847621L, "classpath"), child)); editorCell.setAction( CellActionType.BACKSPACE, new CellAction_DeleteSmart( getNode(), MetaAdapterFactory.getContainmentLink( 0x698a8d22a10447a0L, 0xba8d10e3ec237f13L, 0x5c3f3e2c1cede077L, 0x6e014d63c0847621L, "classpath"), child)); installCellInfo(child, editorCell); return editorCell; } finally { getCellFactory().popCellContext(); } }
protected EditorCell createChildCell(SNode child) { getCellFactory().pushCellContext(); getCellFactory().setNodeLocation(new SNodeLocation.FromNode(child)); try { EditorCell editorCell = super.createChildCell(child); editorCell.setAction( CellActionType.DELETE, new CellAction_DeleteSmart( getNode(), MetaAdapterFactory.getContainmentLink( 0xfa8aeae94df94e13L, 0xbfb19b04c67ddb77L, 0x9a1514044030ceL, 0x9a15140440937bL, "value"), child)); editorCell.setAction( CellActionType.BACKSPACE, new CellAction_DeleteSmart( getNode(), MetaAdapterFactory.getContainmentLink( 0xfa8aeae94df94e13L, 0xbfb19b04c67ddb77L, 0x9a1514044030ceL, 0x9a15140440937bL, "value"), child)); installCellInfo(child, editorCell); return editorCell; } finally { getCellFactory().popCellContext(); } }
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; }
protected EditorCell createChildCell(SNode child) { getCellFactory().pushCellContext(); getCellFactory().setNodeLocation(new SNodeLocation.FromNode(child)); try { EditorCell editorCell = super.createChildCell(child); editorCell.setAction( CellActionType.DELETE, new CellAction_DeleteSmart( getNode(), MetaAdapterFactory.getContainmentLink( 0x7866978ea0f04cc7L, 0x81bc4d213d9375e1L, 0x10a2e210544L, 0x23c00a5f2f61f63L, "nodeId"), child)); editorCell.setAction( CellActionType.BACKSPACE, new CellAction_DeleteSmart( getNode(), MetaAdapterFactory.getContainmentLink( 0x7866978ea0f04cc7L, 0x81bc4d213d9375e1L, 0x10a2e210544L, 0x23c00a5f2f61f63L, "nodeId"), child)); installCellInfo(child, editorCell); return editorCell; } finally { getCellFactory().popCellContext(); } }
public SNode execute(final SModule m) { { final SearchScope scope = CommandUtil.createScope(m); QueryExecutionContext context = new QueryExecutionContext() { public SearchScope getDefaultSearchScope() { return scope; } }; Iterable<SNode> cellModels = CollectionSequence.fromCollection( CommandUtil.instances( CommandUtil.createConsoleScope(null, false, context), MetaAdapterFactory.getConcept( 0x18bc659203a64e29L, 0xa83a7ff23bde13baL, 0xf9eb05cdc7L, "jetbrains.mps.lang.editor.structure.CellModel_RefNode"))) .where( new IWhereFilter<SNode>() { public boolean accept(SNode it) { return needToMigrate(it); } }); for (SNode cellModel : Sequence.fromIterable(cellModels)) { SNodeOperations.deleteNode( SLinkOperations.getTarget( cellModel, MetaAdapterFactory.getContainmentLink( 0x18bc659203a64e29L, 0xa83a7ff23bde13baL, 0xf9eafb9a39L, 0x10a19696199L, "renderingCondition"))); SPropertyOperations.set( cellModel, MetaAdapterFactory.getProperty( 0x18bc659203a64e29L, 0xa83a7ff23bde13baL, 0xf9eb05cdc7L, 0x3a4d559b401214L, "customizeEmptyCell"), "" + (true)); SLinkOperations.setTarget( cellModel, MetaAdapterFactory.getContainmentLink( 0x18bc659203a64e29L, 0xa83a7ff23bde13baL, 0xf9eb05cdc7L, 0x3a4d559b42e5cbL, "emptyCellModel"), _quotation_createNode_i6fkmm_a0c0b0a0h()); } } return null; }
/*package*/ static Object getCompileTimeConstantValue_idi1LP2xI( @NotNull SNode __thisNode__, SModule module) { SNode classifier = SLinkOperations.getTarget( __thisNode__, MetaAdapterFactory.getReferenceLink( 0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf940c80846L, 0x10a75869f9bL, "classifier")); if ((classifier != null) && SModelStereotype.isStubModelStereotype( SModelStereotype.getStereotype( SNodeOperations.getModel(classifier).getReference().getModelName()))) { return Expression__BehaviorDescriptor.eval_idhEwJgmp.invoke(__thisNode__, module); } else { return ((boolean) Expression__BehaviorDescriptor.isCompileTimeConstant_idi1LOPRp.invoke( SLinkOperations.getTarget( SLinkOperations.getTarget( __thisNode__, MetaAdapterFactory.getReferenceLink( 0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8c77f1e98L, 0xf8cc6bf960L, "variableDeclaration")), MetaAdapterFactory.getContainmentLink( 0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8c37a7f6eL, 0xf8c37f506eL, "initializer"))) ? Expression__BehaviorDescriptor.getCompileTimeConstantValue_idi1LP2xI.invoke( SLinkOperations.getTarget( SLinkOperations.getTarget( __thisNode__, MetaAdapterFactory.getReferenceLink( 0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8c77f1e98L, 0xf8cc6bf960L, "variableDeclaration")), MetaAdapterFactory.getContainmentLink( 0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8c37a7f6eL, 0xf8c37f506eL, "initializer")), module) : null); } }