private EditorCell createRefCell_h88a5f_b0() { CellProviderWithRole provider = new RefCellCellProvider(myNode, getEditorContext()) { @Override protected InlineCellProvider createInlineCellProvider(SNode innerCellNode) { return new HighLevelWatchableCreator_EditorBuilder_a._Inline_h88a5f_a1a( innerCellNode, myNode); } }; provider.setRole("watchable"); provider.setNoTargetText("<no watchable>"); EditorCell editorCell; editorCell = provider.createEditorCell(getEditorContext()); if (editorCell.getRole() == null) { editorCell.setReferenceCell(true); editorCell.setRole("watchable"); } editorCell.setSubstituteInfo(provider.createDefaultSubstituteInfo()); SNode attributeConcept = provider.getRoleAttribute(); if (attributeConcept != null) { EditorManager manager = EditorManager.getInstanceFromContext(getEditorContext()); return manager.createNodeRoleAttributeCell( attributeConcept, provider.getRoleAttributeKind(), editorCell); } else return editorCell; }
private EditorCell createRefCell_kasd0f_b1a0() { CellProviderWithRole provider = new RefCellCellProvider(myNode, getEditorContext()) { @Override protected InlineCellProvider createInlineCellProvider(SNode innerCellNode) { return new MigrateManuallyAnnotation_EditorBuilder_a._Inline_kasd0f_a1b0a( innerCellNode, myNode); } }; provider.setRole("migrateTo"); provider.setNoTargetText("<no migrateTo>"); EditorCell editorCell; editorCell = provider.createEditorCell(getEditorContext()); if (editorCell.getRole() == null) { editorCell.setReferenceCell(true); editorCell.setRole("migrateTo"); } Style style = new StyleImpl(); style.set(StyleAttributes.NAVIGATABLE_REFERENCE, "migrateTo"); style.set( StyleAttributes.TEXT_COLOR, StyleRegistry.getInstance().getSimpleColor(MPSColors.DARK_BLUE)); style.set(StyleAttributes.FONT_STYLE, MPSFonts.ITALIC); editorCell.getStyle().putAll(style); editorCell.setSubstituteInfo(provider.createDefaultSubstituteInfo()); SNode attributeConcept = provider.getRoleAttribute(); if (attributeConcept != null) { EditorManager manager = EditorManager.getInstanceFromContext(getEditorContext()); return manager.createNodeRoleAttributeCell( attributeConcept, provider.getRoleAttributeKind(), editorCell); } else return editorCell; }
private EditorCell createRefCell_1x8nz9_a0(EditorContext editorContext, SNode node) { CellProviderWithRole provider = new RefCellCellProvider(node, editorContext); provider.setRole("declaration"); provider.setNoTargetText("<no declaration>"); EditorCell editorCell; provider.setAuxiliaryCellProvider(new NodePatternVariableReference_Editor._Inline_1x8nz9_a0a()); editorCell = provider.createEditorCell(editorContext); if (editorCell.getRole() == null) { editorCell.setReferenceCell(true); editorCell.setRole("declaration"); } Style style = new StyleImpl(); style.set(StyleAttributes.FONT_STYLE, 0, MPSFonts.BOLD); style.set( StyleAttributes.TEXT_COLOR, 0, StyleRegistry.getInstance().getSimpleColor(MPSColors.DARK_GREEN)); editorCell.getStyle().putAll(style); editorCell.setSubstituteInfo(provider.createDefaultSubstituteInfo()); SNode attributeConcept = provider.getRoleAttribute(); Class attributeKind = provider.getRoleAttributeClass(); if (attributeConcept != null) { EditorManager manager = EditorManager.getInstanceFromContext(editorContext); return manager.createNodeRoleAttributeCell(attributeConcept, attributeKind, editorCell); } else return editorCell; }
private EditorCell createRefCell_a7pinn_d3a() { CellProviderWithRole provider = new RefCellCellProvider(myNode, getEditorContext()) { @Override protected InlineCellProvider createInlineCellProvider(SNode innerCellNode) { return new SConceptTypeCastExpression_EditorBuilder_a._Inline_a7pinn_a3d0( innerCellNode, myNode); } }; provider.setRole("concept"); provider.setNoTargetText("<no concept>"); EditorCell editorCell; editorCell = provider.createEditorCell(getEditorContext()); if (editorCell.getRole() == null) { editorCell.setReferenceCell(true); editorCell.setRole("concept"); } editorCell.setSubstituteInfo(provider.createDefaultSubstituteInfo()); SNode attributeConcept = provider.getRoleAttribute(); if (attributeConcept != null) { EditorManager manager = EditorManager.getInstanceFromContext(getEditorContext()); return manager.createNodeRoleAttributeCell( attributeConcept, provider.getRoleAttributeKind(), editorCell); } else return editorCell; }
private EditorCell createProperty_1qbsjw_a0a0(EditorContext editorContext, SNode node) { CellProviderWithRole provider = new PropertyCellProvider(node, editorContext); provider.setRole("name"); provider.setNoTargetText("<no name>"); provider.setReadOnly(true); EditorCell editorCell; editorCell = provider.createEditorCell(editorContext); editorCell.setCellId("property_name"); Style style = new StyleImpl(); style.set(StyleAttributes.FONT_STYLE, MPSFonts.BOLD_ITALIC); style.set( StyleAttributes.TEXT_COLOR, StyleRegistry.getInstance().getSimpleColor(MPSColors.DARK_BLUE)); 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 createRefCell_dfgzix_a0() { CellProviderWithRole provider = new RefCellCellProvider(myNode, getEditorContext()) { @Override protected InlineCellProvider createInlineCellProvider(SNode innerCellNode) { return new DirectMethodSpecification_EditorBuilder_a._Inline_dfgzix_a0a( innerCellNode, myNode); } }; provider.setRole("methodDeclaration"); provider.setNoTargetText("<no methodDeclaration>"); EditorCell editorCell; editorCell = provider.createEditorCell(getEditorContext()); if (editorCell.getRole() == null) { editorCell.setReferenceCell(true); editorCell.setRole("methodDeclaration"); } editorCell.setSubstituteInfo(provider.createDefaultSubstituteInfo()); SNode attributeConcept = provider.getRoleAttribute(); if (attributeConcept != null) { EditorManager manager = EditorManager.getInstanceFromContext(getEditorContext()); return manager.createNodeRoleAttributeCell( attributeConcept, provider.getRoleAttributeKind(), editorCell); } else return editorCell; }
private EditorCell createRefCell_tjtxbf_a0() { CellProviderWithRole provider = new RefCellCellProvider(myNode, getEditorContext()) { @Override protected InlineCellProvider createInlineCellProvider(SNode innerCellNode) { return new DataDependencyReference_EditorBuilder_a._Inline_tjtxbf_a0a( innerCellNode, myNode); } }; provider.setRole("dataDependency"); provider.setNoTargetText("<no dataDependency>"); EditorCell editorCell; editorCell = provider.createEditorCell(getEditorContext()); if (editorCell.getRole() == null) { editorCell.setReferenceCell(true); editorCell.setRole("dataDependency"); } Style style = new StyleImpl(); new VariableNameStyleClass(getEditorContext(), getNode()).apply(style, editorCell); editorCell.getStyle().putAll(style); editorCell.setSubstituteInfo(provider.createDefaultSubstituteInfo()); SNode attributeConcept = provider.getRoleAttribute(); if (attributeConcept != null) { EditorManager manager = EditorManager.getInstanceFromContext(getEditorContext()); return manager.createNodeRoleAttributeCell( attributeConcept, provider.getRoleAttributeKind(), editorCell); } else return editorCell; }
private EditorCell createProperty_hntvsg_a0a0(EditorContext editorContext, SNode node) { CellProviderWithRole provider = new PropertyCellProvider(node, editorContext); provider.setRole("name"); provider.setNoTargetText("<no name>"); provider.setReadOnly(true); EditorCell editorCell; editorCell = provider.createEditorCell(editorContext); editorCell.setCellId("property_name"); Style style = new StyleImpl(); style.set(StyleAttributes.FONT_STYLE, 0, MPSFonts.ITALIC); style.set( StyleAttributes.TEXT_COLOR, 0, StyleRegistry.getInstance().getSimpleColor(MPSColors.darkGray)); style.set(StyleAttributes.PADDING_RIGHT, 0, new Padding(0.0, Measure.SPACES)); style.set(StyleAttributes.AUTO_DELETABLE, 0, true); editorCell.getStyle().putAll(style); editorCell.setSubstituteInfo(provider.createDefaultSubstituteInfo()); SNode attributeConcept = provider.getRoleAttribute(); Class attributeKind = provider.getRoleAttributeClass(); if (attributeConcept != null) { EditorManager manager = EditorManager.getInstanceFromContext(editorContext); return manager.createNodeRoleAttributeCell(attributeConcept, attributeKind, editorCell); } else return editorCell; }
private EditorCell createRefCell_ez8int_a0() { CellProviderWithRole provider = new RefCellCellProvider(myNode, getEditorContext()) { @Override protected InlineCellProvider createInlineCellProvider(SNode innerCellNode) { return new MathSymbolIndexReference_EditorBuilder_a._Inline_ez8int_a0a( innerCellNode, myNode); } }; provider.setRole("indexRef"); provider.setNoTargetText("<no indexRef>"); EditorCell editorCell; editorCell = provider.createEditorCell(getEditorContext()); if (editorCell.getRole() == null) { editorCell.setReferenceCell(true); editorCell.setRole("indexRef"); } editorCell.setSubstituteInfo(provider.createDefaultSubstituteInfo()); SNode attributeConcept = provider.getRoleAttribute(); if (attributeConcept != null) { EditorManager manager = EditorManager.getInstanceFromContext(getEditorContext()); return manager.createNodeRoleAttributeCell( attributeConcept, provider.getRoleAttributeKind(), editorCell); } else return editorCell; }
private EditorCell createProperty_djrnp4_a0(EditorContext editorContext, SNode node) { CellProviderWithRole provider = new PropertyCellProvider(node, editorContext); provider.setRole("encoding"); provider.setNoTargetText("<no encoding>"); EditorCell editorCell; editorCell = provider.createEditorCell(editorContext); editorCell.setCellId("property_encoding"); Style style = new StyleImpl(); BaseLanguageStyle_StyleSheet.apply_StringLiteral(style, editorCell); editorCell.getStyle().putAll(style); editorCell.setSubstituteInfo( new CompositeSubstituteInfo( editorContext, provider.getCellContext(), new SubstituteInfoPartExt[] { new EncodingLiteral_Editor.ReplaceWith_EncodingLiteral_cellMenu_djrnp4_a0a0() })); 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 createProperty_wbhc03_a0a0(EditorContext editorContext, SNode node) { CellProviderWithRole provider = new PropertyCellProvider(node, editorContext); provider.setRole("name"); provider.setNoTargetText("<no name>"); provider.setReadOnly(true); EditorCell editorCell; editorCell = provider.createEditorCell(editorContext); editorCell.setCellId("property_name"); if (editorCell.getRole() == null) { editorCell.setReferenceCell(true); editorCell.setRole("variable"); } Style style = new StyleImpl(); style.set(StyleAttributes.PADDING_RIGHT, new Padding(0.0, Measure.SPACES)); 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 createProperty_lbdr4h_b0(EditorContext editorContext, SNode node) { CellProviderWithRole provider = new PropertyCellProvider(node, editorContext); provider.setRole("label"); provider.setNoTargetText(""); provider.setAllowsEmptyTarget(true); EditorCell editorCell; editorCell = provider.createEditorCell(editorContext); editorCell.setCellId("property_label"); Style style = new StyleImpl(); style.set( StyleAttributes.TEXT_COLOR, StyleRegistry.getInstance() .getSimpleColor( Antiquotation_Editor._StyleParameter_QueryFunction_lbdr4h_a0b0( (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.createNodeRoleAttributeCell( editorContext, attributeConcept, attributeKind, editorCell); } else return editorCell; }
private EditorCell createRefCell_4clv4k_b0() { CellProviderWithRole provider = new RefCellCellProvider(myNode, getEditorContext()) { @Override protected InlineCellProvider createInlineCellProvider(SNode innerCellNode) { return new GeneratorInternal_IWorkfowParticipants_EditorBuilder_a._Inline_4clv4k_a1a( innerCellNode, myNode); } }; provider.setRole("for"); provider.setNoTargetText("<no for>"); EditorCell editorCell; editorCell = provider.createEditorCell(getEditorContext()); if (editorCell.getRole() == null) { editorCell.setReferenceCell(true); editorCell.setRole("for"); } editorCell.setSubstituteInfo(provider.createDefaultSubstituteInfo()); SNode attributeConcept = provider.getRoleAttribute(); if (attributeConcept != null) { EditorManager manager = EditorManager.getInstanceFromContext(getEditorContext()); return manager.createNodeRoleAttributeCell( attributeConcept, provider.getRoleAttributeKind(), editorCell); } else return editorCell; }
private EditorCell createRefCell_m29bq_b0(EditorContext editorContext, SNode node) { CellProviderWithRole provider = new RefCellCellProvider(node, editorContext); provider.setRole("label"); provider.setNoTargetText("<choose mapping label>"); EditorCell editorCell; provider.setAuxiliaryCellProvider( new GenerationContextOp_GetOutputByLabelAndInputAndReferenceScope_Editor ._Inline_m29bq_a1a()); editorCell = provider.createEditorCell(editorContext); if (editorCell.getRole() == null) { editorCell.setReferenceCell(true); editorCell.setRole("label"); } Style style = new StyleImpl(); jetbrains.mps.lang.generator.editor.Styles_StyleSheet.apply_mappingLabelReference( style, editorCell); editorCell.getStyle().putAll(style); editorCell.setSubstituteInfo(provider.createDefaultSubstituteInfo()); SNode attributeConcept = provider.getRoleAttribute(); Class attributeKind = provider.getRoleAttributeClass(); if (attributeConcept != null) { EditorManager manager = EditorManager.getInstanceFromContext(editorContext); return manager.createNodeRoleAttributeCell(attributeConcept, attributeKind, editorCell); } else return editorCell; }
private EditorCell createProperty_f4uw03_a0c0(EditorContext editorContext, SNode node) { CellProviderWithRole provider = new PropertyCellProvider(node, editorContext); provider.setRole("name"); provider.setNoTargetText("<no name>"); provider.setReadOnly(true); EditorCell editorCell; editorCell = provider.createEditorCell(editorContext); editorCell.setCellId("property_name"); if (editorCell.getRole() == null) { editorCell.setReferenceCell(true); editorCell.setRole("persistentPropertyDeclaration"); } Style style = new StyleImpl(); BaseLanguageStyle_StyleSheet.apply_Field(style, editorCell); 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 createRefCell_uze3jf_c0(EditorContext editorContext, SNode node) { CellProviderWithRole provider = new RefCellCellProvider(node, editorContext); provider.setRole("concept"); provider.setNoTargetText("<no concept>"); EditorCell editorCell; provider.setAuxiliaryCellProvider( new Model_CreateNewRootNodeOperation_Editor._Inline_uze3jf_a2a()); editorCell = provider.createEditorCell(editorContext); if (editorCell.getRole() == null) { editorCell.setReferenceCell(true); editorCell.setRole("concept"); } Style style = new StyleImpl(); style.set(StyleAttributes.PADDING_RIGHT, new Padding(0.0, Measure.SPACES)); 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 createProperty_y27sly_n0(EditorContext editorContext, SNode node) { CellProviderWithRole provider = new PropertyCellProvider(node, editorContext); provider.setRole("javaLevelTarget"); provider.setNoTargetText("<default>"); provider.setAllowsEmptyTarget(true); EditorCell editorCell; editorCell = provider.createEditorCell(editorContext); editorCell.setCellId("property_javaLevelTarget"); Style style = new StyleImpl(); style.set(StyleAttributes.INDENT_LAYOUT_NEW_LINE, 0, true); editorCell.getStyle().putAll(style); editorCell.setSubstituteInfo( new CompositeSubstituteInfo( editorContext, provider.getCellContext(), new SubstituteInfoPartExt[] { new BwfJavaModule_Editor.BwfJavaModule_javaLevelTarget_cellMenu_y27sly_a0n0() })); SNode attributeConcept = provider.getRoleAttribute(); Class attributeKind = provider.getRoleAttributeClass(); if (attributeConcept != null) { EditorManager manager = EditorManager.getInstanceFromContext(editorContext); return manager.createNodeRoleAttributeCell(attributeConcept, attributeKind, editorCell); } else return editorCell; }
private EditorCell createRefCell_d5p1uc_b0() { CellProviderWithRole provider = new RefCellCellProvider(myNode, getEditorContext()) { @Override protected InlineCellProvider createInlineCellProvider(SNode innerCellNode) { return new AnnotationInstance_EditorBuilder_a._Inline_d5p1uc_a1a(innerCellNode, myNode); } }; provider.setRole("annotation"); provider.setNoTargetText("<no annotation>"); EditorCell editorCell; editorCell = provider.createEditorCell(getEditorContext()); if (editorCell.getRole() == null) { editorCell.setReferenceCell(true); editorCell.setRole("annotation"); } Style style = new StyleImpl(); style.set(StyleAttributes.LAYOUT_CONSTRAINT, "punctuation"); editorCell.getStyle().putAll(style); editorCell.setSubstituteInfo(provider.createDefaultSubstituteInfo()); SNode attributeConcept = provider.getRoleAttribute(); if (attributeConcept != null) { EditorManager manager = EditorManager.getInstanceFromContext(getEditorContext()); return manager.createNodeRoleAttributeCell( attributeConcept, provider.getRoleAttributeKind(), editorCell); } else return editorCell; }
private EditorCell createProperty_3uf681_a0(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"); Style style = new StyleImpl(); style.set( StyleAttributes.NAVIGATABLE_NODE, 0, FigureParameterMapping_Editor._StyleParameter_QueryFunction_3uf681_a0a0( (editorCell == null ? null : editorCell.getContext()), (editorCell == null ? null : editorCell.getSNode()))); style.set(StyleAttributes.AUTO_DELETABLE, 0, true); editorCell.getStyle().putAll(style); FigureParameterMappingName_Actions.setCellActions(editorCell, node, editorContext); editorCell.setSubstituteInfo( new CompositeSubstituteInfo( editorContext, provider.getCellContext(), new SubstituteInfoPartExt[] { new FigureParameterMapping_Editor .FigureParameterMapping_generic_cellMenu_3uf681_a0a0() })); SNode attributeConcept = provider.getRoleAttribute(); Class attributeKind = provider.getRoleAttributeClass(); if (attributeConcept != null) { EditorManager manager = EditorManager.getInstanceFromContext(editorContext); return manager.createNodeRoleAttributeCell(attributeConcept, attributeKind, editorCell); } else return editorCell; }
private EditorCell createRefCell_xuo9b2_c0() { CellProviderWithRole provider = new RefCellCellProvider(myNode, getEditorContext()) { @Override protected InlineCellProvider createInlineCellProvider(SNode innerCellNode) { return new IOutputConcept_Component_ComponentBuilder_a._Inline_xuo9b2_a2a( innerCellNode, myNode); } }; provider.setRole("outputConcept"); provider.setNoTargetText("default"); EditorCell editorCell; editorCell = provider.createEditorCell(getEditorContext()); if (editorCell.getRole() == null) { editorCell.setReferenceCell(true); editorCell.setRole("outputConcept"); } editorCell.setSubstituteInfo(provider.createDefaultSubstituteInfo()); SNode attributeConcept = provider.getRoleAttribute(); if (attributeConcept != null) { EditorManager manager = EditorManager.getInstanceFromContext(getEditorContext()); return manager.createNodeRoleAttributeCell( attributeConcept, provider.getRoleAttributeKind(), editorCell); } else return editorCell; }
private EditorCell createProperty_gmtuod_f2a(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"); Style style = new StyleImpl(); BaseLanguageStyle_StyleSheet.apply_MethodName(style, editorCell); editorCell.getStyle().putAll(style); editorCell.setSubstituteInfo( new CompositeSubstituteInfo( editorContext, provider.getCellContext(), new SubstituteInfoPartExt[] { new ConceptMethodDeclaration_Editor .ConceptMethodDeclaration_component_cellMenu_gmtuod_a0f2a() })); SNode attributeConcept = provider.getRoleAttribute(); Class attributeKind = provider.getRoleAttributeClass(); if (attributeConcept != null) { EditorManager manager = EditorManager.getInstanceFromContext(editorContext); return manager.createNodeRoleAttributeCell(attributeConcept, attributeKind, editorCell); } else return editorCell; }
private EditorCell createProperty_iwr3qq_b0a() { CellProviderWithRole provider = new PropertyCellProvider(myNode, getEditorContext()); provider.setRole("linkId"); provider.setNoTargetText("<no linkId>"); EditorCell editorCell; editorCell = provider.createEditorCell(getEditorContext()); editorCell.setCellId("property_linkId"); editorCell.setSubstituteInfo(provider.createDefaultSubstituteInfo()); SNode attributeConcept = provider.getRoleAttribute(); if (attributeConcept != null) { EditorManager manager = EditorManager.getInstanceFromContext(getEditorContext()); return manager.createNodeRoleAttributeCell( attributeConcept, provider.getRoleAttributeKind(), editorCell); } else return editorCell; }
private EditorCell createProperty_p9c0o3_b0(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.setSubstituteInfo(provider.createDefaultSubstituteInfo()); SNode attributeConcept = provider.getRoleAttribute(); Class attributeKind = provider.getRoleAttributeClass(); if (attributeConcept != null) { EditorManager manager = EditorManager.getInstanceFromContext(editorContext); return manager.createNodeRoleAttributeCell(attributeConcept, attributeKind, editorCell); } else return editorCell; }
private EditorCell createProperty_5jxfrn_b2a0(EditorContext editorContext, SNode node) { CellProviderWithRole provider = new PropertyCellProvider(node, editorContext); provider.setRole("alias"); provider.setNoTargetText("default"); provider.setAllowsEmptyTarget(true); EditorCell editorCell; editorCell = provider.createEditorCell(editorContext); editorCell.setCellId("property_alias"); editorCell.setSubstituteInfo(provider.createDefaultSubstituteInfo()); SNode attributeConcept = provider.getRoleAttribute(); Class attributeKind = provider.getRoleAttributeClass(); if (attributeConcept != null) { EditorManager manager = EditorManager.getInstanceFromContext(editorContext); return manager.createNodeRoleAttributeCell(attributeConcept, attributeKind, editorCell); } else return editorCell; }
private EditorCell createProperty_xuo9b2_a0c0() { CellProviderWithRole provider = new PropertyCellProvider(myNode, getEditorContext()); provider.setRole("name"); provider.setNoTargetText("<no name>"); provider.setReadOnly(true); EditorCell editorCell; editorCell = provider.createEditorCell(getEditorContext()); editorCell.setCellId("IOCC_property_name"); editorCell.setSubstituteInfo(provider.createDefaultSubstituteInfo()); SNode attributeConcept = provider.getRoleAttribute(); if (attributeConcept != null) { EditorManager manager = EditorManager.getInstanceFromContext(getEditorContext()); return manager.createNodeRoleAttributeCell( attributeConcept, provider.getRoleAttributeKind(), editorCell); } else return editorCell; }
private EditorCell createProperty_fwba0d_b0() { CellProviderWithRole provider = new PropertyCellProvider(myNode, getEditorContext()); provider.setRole("virtualPackage"); provider.setNoTargetText("none"); provider.setAllowsEmptyTarget(true); EditorCell editorCell; editorCell = provider.createEditorCell(getEditorContext()); editorCell.setCellId("VP_property_virtualPackage"); editorCell.setSubstituteInfo(provider.createDefaultSubstituteInfo()); SNode attributeConcept = provider.getRoleAttribute(); if (attributeConcept != null) { EditorManager manager = EditorManager.getInstanceFromContext(getEditorContext()); return manager.createNodeRoleAttributeCell( attributeConcept, provider.getRoleAttributeKind(), editorCell); } else return editorCell; }
private EditorCell createProperty_mu1ye5_b0() { CellProviderWithRole provider = new PropertyCellProvider(myNode, getEditorContext()); provider.setRole("value"); provider.setNoTargetText("<no value>"); EditorCell editorCell; editorCell = provider.createEditorCell(getEditorContext()); editorCell.setCellId("property_value"); RealObject2Placeholder.setCellActions(editorCell, myNode, getEditorContext()); editorCell.setSubstituteInfo(provider.createDefaultSubstituteInfo()); SNode attributeConcept = provider.getRoleAttribute(); if (attributeConcept != null) { EditorManager manager = EditorManager.getInstanceFromContext(getEditorContext()); return manager.createNodeRoleAttributeCell( attributeConcept, provider.getRoleAttributeKind(), editorCell); } else return editorCell; }
private EditorCell createRefCell_9m9s9z_c0(EditorContext editorContext, SNode node) { CellProviderWithRole provider = new RefCellCellProvider(node, editorContext); provider.setRole("commandDeclaration"); provider.setNoTargetText("<no commandDeclaration>"); EditorCell editorCell; provider.setAuxiliaryCellProvider(new CommandProcessType_Editor._Inline_9m9s9z_a2a()); editorCell = provider.createEditorCell(editorContext); 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 createProperty_y0rgyt_c0(EditorContext editorContext, SNode node) { CellProviderWithRole provider = new PropertyCellProvider(node, editorContext); provider.setRole("message"); provider.setNoTargetText("<no message>"); EditorCell editorCell; editorCell = provider.createEditorCell(editorContext); editorCell.setCellId("property_message"); 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 createRefNode_7n8lz_c0(EditorContext editorContext, SNode node) { CellProviderWithRole provider = new RefNodeCellProvider(node, editorContext); provider.setRole("position"); provider.setNoTargetText("<no position>"); EditorCell editorCell; editorCell = provider.createEditorCell(editorContext); if (editorCell.getRole() == null) { editorCell.setRole("position"); } editorCell.setSubstituteInfo(provider.createDefaultSubstituteInfo()); SNode attributeConcept = provider.getRoleAttribute(); Class attributeKind = provider.getRoleAttributeClass(); if (attributeConcept != null) { EditorManager manager = EditorManager.getInstanceFromContext(editorContext); return manager.createNodeRoleAttributeCell(attributeConcept, attributeKind, editorCell); } else return editorCell; }