コード例 #1
0
 private EditorCell createConstant_gd466t_b0(EditorContext editorContext, SNode node) {
   EditorCell_Constant editorCell = new EditorCell_Constant(editorContext, node, "by");
   editorCell.setCellId("Constant_gd466t_b0");
   Style style = new StyleImpl();
   BaseLanguageStyle_StyleSheet.applyOperator(style, editorCell);
   editorCell.getStyle().putAll(style);
   WithPropertyCompareExpression_delete.setCellActions(editorCell, node, editorContext);
   editorCell.setDefaultText("");
   return editorCell;
 }
コード例 #2
0
 private EditorCell createRefCell_gd466t_c0(EditorContext editorContext, SNode node) {
   CellProviderWithRole provider = new RefCellCellProvider(node, editorContext);
   provider.setRole("datetimeProperty");
   provider.setNoTargetText("<no datetimeProperty>");
   EditorCell editorCell;
   provider.setAuxiliaryCellProvider(
       new WithPropertyCompareExpression_Editor._Inline_gd466t_a2a());
   editorCell = provider.createEditorCell(editorContext);
   WithPropertyCompareExpression_delete.setCellActions(editorCell, node, 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.createRoleAttributeCell(
         editorContext, attributeConcept, attributeKind, editorCell);
   } else return editorCell;
 }