private EditorCell createRefNode_vgxjtu_a2a(EditorContext editorContext, SNode node) { CellProviderWithRole provider = new RefNodeCellProvider(node, editorContext); provider.setRole("loopLabelReference"); provider.setNoTargetText("<no loopLabelReference>"); EditorCell editorCell; editorCell = provider.createEditorCell(editorContext); if (editorCell.getRole() == null) { editorCell.setRole("loopLabelReference"); } Style style = new StyleImpl(); BaseLanguageStyle_StyleSheet.apply_VariableName(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.createRoleAttributeCell( editorContext, attributeConcept, attributeKind, editorCell); } else return editorCell; }
private EditorCell createProperty_pr39i0_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(); BaseLanguageStyle_StyleSheet.apply_VariableName(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; }