コード例 #1
0
 private EditorCell createConstant_1xd1xh_c0a(EditorContext editorContext, SNode node) {
   EditorCell_Constant editorCell = new EditorCell_Constant(editorContext, node, ")");
   editorCell.setCellId("Constant_1xd1xh_c0a");
   BaseLanguageStyle_StyleSheet.getRightParen(editorCell).apply(editorCell);
   {
     Style style = editorCell.getStyle();
     style.set(StyleAttributes.SELECTABLE, true);
     style.set(StyleAttributes.FONT_STYLE, MPSFonts.PLAIN);
     style.set(StyleAttributes.EDITABLE, false);
   }
   if (renderingCondition_1xd1xh_a2a0(node, editorContext, editorContext.getScope())) {
     editorCell.setFocusPolicy(FocusPolicy.ATTRACTS_FOCUS);
   }
   editorCell.setDefaultText("");
   return editorCell;
 }
コード例 #2
0
 private EditorCell createRefNodeList_1xd1xh_b0a(EditorContext editorContext, SNode node) {
   AbstractCellListHandler handler =
       new ITemplateCall_actualArguments.actualArgumentListHandler_1xd1xh_b0a(
           node, "actualArgument", editorContext);
   EditorCell_Collection editorCell =
       handler.createCells(editorContext, new CellLayout_Indent(), false);
   editorCell.setCellId("refNodeList_actualArgument");
   {
     Style style = editorCell.getStyle();
     style.set(
         StyleAttributes.PARAMETERS_INFORMATION,
         new TemplateDeclarationParameterInformationQuery());
   }
   if (renderingCondition_1xd1xh_a1a0(node, editorContext, editorContext.getScope())) {
     editorCell.setFocusPolicy(FocusPolicy.FIRST_EDITABLE_CELL);
   }
   editorCell.setRole(handler.getElementRole());
   return editorCell;
 }