Beispiel #1
0
 private EditorCell createConstant_ew7mjn_a0(EditorContext editorContext, SNode node) {
   EditorCell_Constant editorCell = new EditorCell_Constant(editorContext, node, "trim");
   editorCell.setCellId("Constant_ew7mjn_a0");
   Style style = new StyleImpl();
   BaseLanguageStyle_StyleSheet.apply_CompactKeyWord(style, editorCell);
   editorCell.getStyle().putAll(style);
   editorCell.setDefaultText("");
   return editorCell;
 }
 private EditorCell createProperty_d77dl_a1a_0(EditorContext editorContext, SNode node) {
   CellProviderWithRole provider = new PropertyCellProvider(node, editorContext);
   provider.setRole("charConstant");
   provider.setNoTargetText("<no charConstant>");
   EditorCell editorCell;
   editorCell = provider.createEditorCell(editorContext);
   editorCell.setCellId("property_charConstant_1");
   Style style = new StyleImpl();
   BaseLanguageStyle_StyleSheet.apply_CompactKeyWord(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;
 }