private EditorCell createProperty_79r3b6_a(EditorContext editorContext, SNode node) { CellProviderWithRole provider = new PropertyCellProvider(node, editorContext); provider.setRole("path"); provider.setNoTargetText("<no path>"); EditorCell editorCell; editorCell = provider.createEditorCell(editorContext); editorCell.setCellId("property_path"); editorCell.setBig(true); Style style = new StyleImpl(); style.set( StyleAttributes.TEXT_COLOR, StyleRegistry.getInstance() .getSimpleColor( IconResource_Editor._StyleParameter_QueryFunction_79r3b6_a0a( (editorCell == null ? null : editorCell.getContext()), (editorCell == null ? null : editorCell.getSNode())))); editorCell.getStyle().putAll(style); editorCell.setSubstituteInfo(provider.createDefaultSubstituteInfo()); SNode attributeConcept = provider.getRoleAttribute(); Class attributeKind = provider.getRoleAttributeClass(); if (attributeConcept != null) { IOperationContext opContext = editorContext.getOperationContext(); EditorManager manager = EditorManager.getInstanceFromContext(opContext); return manager.createRoleAttributeCell( editorContext, attributeConcept, attributeKind, editorCell); } else return editorCell; }
private EditorCell createCustom_bjjsvn_a(final EditorContext editorContext, final SNode node) { AbstractCellProvider provider = new _FunctionTypes._return_P0_E0<AbstractCellProvider>() { public AbstractCellProvider invoke() { return new AbstractCellProvider() { @Override public EditorCell createEditorCell(EditorContext context) { EditorCell_Error result = new EditorCell_Error(context, node, "<no classpath>"); result.getStyle().set(StyleAttributes.PADDING_LEFT, new Padding(0.0)); result.getStyle().set(StyleAttributes.PADDING_RIGHT, new Padding(0.0)); return result; } }; } }.invoke(); EditorCell editorCell = provider.createEditorCell(editorContext); editorCell.setCellId("Custom_bjjsvn_a"); EditorCell bigCell = BigCellUtil.findBigCell(editorCell, node); if (bigCell != null) { bigCell.setBig(true); } else { throw new RuntimeException("No big cell found!"); } return editorCell; }
private EditorCell createComponent_jf7bj_a(EditorContext editorContext, SNode node) { EditorCell editorCell = editorContext .getCellFactory() .createEditorComponentCell(node, "jetbrains.mps.lang.editor.editor._CellModel_Common"); editorCell.setBig(true); return editorCell; }
private EditorCell createComponent_mc4j88_a_0(EditorContext editorContext, SNode node) { EditorCell editorCell = editorContext .getCellFactory() .createEditorComponentCell( node, "jetbrains.mps.build.generictasks.editor.Attribute_EditorComponent"); editorCell.setBig(true); return editorCell; }
private EditorCell createComponent_b8lbrd_a(EditorContext editorContext, SNode node) { EditorCell editorCell = editorContext .getCellFactory() .createEditorComponentCell(node, "jetbrains.mps.lang.core.editor.alias"); editorCell.setBig(true); Style style = new StyleImpl(); style.set(StyleAttributes.RT_ANCHOR_TAG, "ext_2_RTransform"); editorCell.getStyle().putAll(style); return editorCell; }
private EditorCell createComponent_qilpva_a(EditorContext editorContext, SNode node) { EditorCell editorCell = editorContext .getCellFactory() .createEditorComponentCell( node, "jetbrains.mps.baseLanguage.editor.ConceptFunction_Component"); EditorCell bigCell = BigCellUtil.findBigCell(editorCell, node); if (bigCell != null) { bigCell.setBig(true); } editorCell.setAction(CellActionType.COMMENT, new CellAction_Comment(node)); return editorCell; }
private EditorCell createComponent_4cp5nl_a(EditorContext editorContext, SNode node) { EditorCell editorCell = editorContext .getCellFactory() .createEditorComponentCell( node, "jetbrains.mps.lang.smodel.editor.ReplaceableAliasAndParms_Comp"); EditorCell bigCell = BigCellUtil.findBigCell(editorCell, node); if (bigCell != null) { bigCell.setBig(true); } else { throw new RuntimeException("No big cell found!"); } return editorCell; }
private EditorCell createComponent_r8n5dq_a(EditorContext editorContext, SNode node) { EditorCell editorCell = editorContext .getCellFactory() .createEditorComponentCell(node, "jetbrains.mps.lang.core.editor.alias"); EditorCell bigCell = BigCellUtil.findBigCell(editorCell, node); if (bigCell != null) { bigCell.setBig(true); } Style style = new StyleImpl(); BaseLanguageStyle_StyleSheet.apply_StringLiteral(style, editorCell); editorCell.getStyle().putAll(style); return editorCell; }
private EditorCell createAlternation_hdhct1_a(EditorContext editorContext, SNode node) { boolean alternationCondition = true; alternationCondition = SortDirection_Editor.renderingCondition_hdhct1_a0( node, editorContext, editorContext.getOperationContext().getScope()); EditorCell editorCell = null; if (alternationCondition) { editorCell = this.createConstant_hdhct1_a0(editorContext, node); } else { editorCell = this.createConstant_hdhct1_a0_0(editorContext, node); } editorCell.setBig(true); return editorCell; }
private EditorCell createAlternation_zc016d_a(EditorContext editorContext, SNode node) { boolean alternationCondition = true; alternationCondition = BLCommand_Editor.renderingCondition_zc016d_a0(node, editorContext); EditorCell editorCell = null; if (alternationCondition) { editorCell = this.createCollection_zc016d_a0(editorContext, node); } else { editorCell = this.createRefNode_zc016d_a0(editorContext, node); } EditorCell bigCell = BigCellUtil.findBigCell(editorCell, node); if (bigCell != null) { bigCell.setBig(true); } editorCell.setAction(CellActionType.COMMENT, new CellAction_Comment(node)); return editorCell; }
private EditorCell createProperty_fot9pw_a(EditorContext editorContext, SNode node) { CellProviderWithRole provider = new PropertyCellProvider(node, editorContext); provider.setRole("name"); provider.setNoTargetText("<no name>"); EditorCell editorCell; editorCell = provider.createEditorCell(editorContext); editorCell.setCellId("property_name"); editorCell.setBig(true); editorCell.setSubstituteInfo(provider.createDefaultSubstituteInfo()); SNode attributeConcept = provider.getRoleAttribute(); Class attributeKind = provider.getRoleAttributeClass(); if (attributeConcept != null) { IOperationContext opContext = editorContext.getOperationContext(); EditorManager manager = EditorManager.getInstanceFromContext(opContext); return manager.createNodeRoleAttributeCell( editorContext, attributeConcept, attributeKind, editorCell); } else return editorCell; }
private EditorCell createCustom_94dy37_a(final EditorContext editorContext, final SNode node) { AbstractCellProvider provider = new _FunctionTypes._return_P0_E0<AbstractCellProvider>() { public AbstractCellProvider invoke() { return new AbstractCellProvider() { @Override public EditorCell createEditorCell(EditorContext context) { EditorCell_Error result = new EditorCell_Error(context, node, "<build aspect>"); result.getStyle().set(StyleAttributes.PADDING_LEFT, new Padding(0.0)); result.getStyle().set(StyleAttributes.PADDING_RIGHT, new Padding(0.0)); return result; } }; } }.invoke(); EditorCell editorCell = provider.createEditorCell(editorContext); editorCell.setCellId("Custom_94dy37_a"); editorCell.setBig(true); return editorCell; }
private EditorCell createAlternation_7k9x8q_a(EditorContext editorContext, SNode node) { boolean alternationCondition = true; alternationCondition = PastedNodeReference_Editor.renderingCondition_7k9x8q_a0(node, editorContext); EditorCell editorCell = null; if (alternationCondition) { editorCell = this.createCollection_7k9x8q_a0(editorContext, node); } else { editorCell = this.createReadOnlyModelAccessor_7k9x8q_a0(editorContext, node); } EditorCell bigCell = BigCellUtil.findBigCell(editorCell, node); if (bigCell != null) { bigCell.setBig(true); } Style style = new StyleImpl(); style.set( StyleAttributes.BACKGROUND_COLOR, 0, StyleRegistry.getInstance().getSimpleColor(MPSColors.yellow)); editorCell.getStyle().putAll(style); return editorCell; }
private EditorCell createProperty_jhxx39_a(EditorContext editorContext, SNode node) { CellProviderWithRole provider = new PropertyCellProvider(node, editorContext); provider.setRole("value"); provider.setNoTargetText("<int constant>"); EditorCell editorCell; editorCell = provider.createEditorCell(editorContext); editorCell.setCellId("property_value"); editorCell.setBig(true); Style style = new StyleImpl(); BaseLanguageStyle_StyleSheet.apply_NumericLiteral(style, editorCell); style.set(StyleAttributes.AUTO_DELETABLE, true); editorCell.getStyle().putAll(style); editorCell.setSubstituteInfo(provider.createDefaultSubstituteInfo()); SNode attributeConcept = provider.getRoleAttribute(); Class attributeKind = provider.getRoleAttributeClass(); if (attributeConcept != null) { IOperationContext opContext = editorContext.getOperationContext(); EditorManager manager = EditorManager.getInstanceFromContext(opContext); return manager.createNodeRoleAttributeCell( editorContext, attributeConcept, attributeKind, editorCell); } else return editorCell; }
private EditorCell createCustom_qilpva_a(final EditorContext editorContext, final SNode node) { AbstractCellProvider provider = new _FunctionTypes._return_P0_E0<AbstractCellProvider>() { public AbstractCellProvider invoke() { return new AbstractCellProvider() { @Override public EditorCell createEditorCell(EditorContext context) { EditorCell_Collection collection = jetbrains.mps.nodeEditor.cells.EditorCell_Collection.createVertical( context, node); collection.addEditorCell( new EditorCell_Constant(context, node, "Concept function help:")); if (SPropertyOperations.getString( SNodeOperations.getConceptDeclaration(node), MetaAdapterFactory.getProperty( 0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0x1103553c5ffL, 0x403a32c5772bbe20L, "conceptShortDescription")) != null) { collection.addEditorCell( new EditorCell_Constant( context, node, SPropertyOperations.getString( SNodeOperations.getConceptDeclaration(node), MetaAdapterFactory.getProperty( 0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0x1103553c5ffL, 0x403a32c5772bbe20L, "conceptShortDescription")))); } collection.addEditorCell(new EditorCell_Constant(context, node, "")); collection.addEditorCell(new EditorCell_Constant(context, node, "Parameter help:")); for (SNode cfp : BehaviorReflection.invokeVirtual( (Class<List<SNode>>) ((Class) Object.class), node, "virtual_getParameters_1213877374450", new Object[] {})) { String alias = SPropertyOperations.getString( cfp, MetaAdapterFactory.getProperty( 0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0x1103553c5ffL, 0x46ab0ad5826c74caL, "conceptAlias")); String description = SPropertyOperations.getString( cfp, MetaAdapterFactory.getProperty( 0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0x1103553c5ffL, 0x403a32c5772bbe20L, "conceptShortDescription")); if (description == null) { description = "<no help. use conceptShortDescription concept function property to create one>"; } EditorCell_Constant message = new EditorCell_Constant(context, node, alias + " : " + description); collection.addEditorCell(message); } return collection; } }; } }.invoke(); EditorCell editorCell = provider.createEditorCell(editorContext); editorCell.setCellId("Custom_qilpva_a"); EditorCell bigCell = BigCellUtil.findBigCell(editorCell, node); if (bigCell != null) { bigCell.setBig(true); } editorCell.setAction(CellActionType.COMMENT, new CellAction_Comment(node)); return editorCell; }