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;
 }
Exemple #2
0
 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;
 }