private EditorCell createProperty_j36akn_a(EditorContext editorContext, SNode node) {
   CellProviderWithRole provider = new PropertyCellProvider(node, editorContext);
   provider.setRole("name");
   provider.setNoTargetText("<no name>");
   EditorCell editorCell;
   editorCell = provider.createEditorCell(editorContext);
   editorCell.setCellId("VDNCC_property_name");
   Style style = new StyleImpl();
   BaseLanguageStyle_StyleSheet.applyVariableName(style, editorCell);
   style.set(StyleAttributes.RT_ANCHOR_TAG, "default_RTransform");
   editorCell.getStyle().putAll(style);
   if (renderingCondition_j36akn_a0(node, editorContext, editorContext.getScope())) {
     editorCell.getStyle().set(StyleAttributes.FOCUS_POLICY, FocusPolicy.FIRST_EDITABLE_CELL);
   }
   editorCell.setSubstituteInfo(
       new CompositeSubstituteInfo(
           editorContext,
           provider.getCellContext(),
           new SubstituteInfoPartExt[] {
             new VariableDeclaration_NameCellComponent
                 .VariableDeclaration_name_postfixCellMenu_j36akn_a0a()
           }));
   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 createConstant_c9gv4j_d0(EditorContext editorContext, SNode node) {
   EditorCell_Constant editorCell = new EditorCell_Constant(editorContext, node, ")");
   editorCell.setCellId("Constant_c9gv4j_d0");
   BaseLanguageStyle_StyleSheet.getRightParen(editorCell).apply(editorCell);
   if (renderingCondition_c9gv4j_a3a(node, editorContext, editorContext.getScope())) {
     editorCell.setFocusPolicy(FocusPolicy.ATTRACTS_FOCUS);
   }
   editorCell.setDefaultText("");
   return editorCell;
 }
예제 #3
0
 private EditorCell createConstant_9wclje_d0(EditorContext editorContext, SNode node) {
   EditorCell_Constant editorCell = new EditorCell_Constant(editorContext, node, ")");
   editorCell.setCellId("Constant_9wclje_d0");
   Style style = new StyleImpl();
   BaseLanguageStyle_StyleSheet.applyRightParen(style, editorCell);
   editorCell.getStyle().putAll(style);
   if (renderingCondition_9wclje_a3a(node, editorContext, editorContext.getScope())) {
     editorCell.getStyle().set(StyleAttributes.FOCUS_POLICY, FocusPolicy.ATTRACTS_FOCUS);
   }
   editorCell.setDefaultText("");
   return editorCell;
 }
예제 #4
0
 private EditorCell createRefNodeList_9wclje_c0(EditorContext editorContext, SNode node) {
   AbstractCellListHandler handler =
       new InvokeFunctionOperation_Editor.parameterListHandler_9wclje_c0(
           node, "parameter", editorContext);
   EditorCell_Collection editorCell =
       handler.createCells(editorContext, new CellLayout_Indent(), false);
   editorCell.setCellId("refNodeList_parameter");
   if (renderingCondition_9wclje_a2a(node, editorContext, editorContext.getScope())) {
     editorCell.getStyle().set(StyleAttributes.FOCUS_POLICY, FocusPolicy.FIRST_EDITABLE_CELL);
   }
   editorCell.setRole(handler.getElementRole());
   return editorCell;
 }
 private EditorCell createRefNodeList_c9gv4j_c0(EditorContext editorContext, SNode node) {
   AbstractCellListHandler handler =
       new DefaultClassifierMethodCallOperation_Editor.actualArgumentListHandler_c9gv4j_c0(
           node, "actualArgument", editorContext);
   EditorCell_Collection editorCell =
       handler.createCells(editorContext, new CellLayout_Indent(), false);
   editorCell.setCellId("refNodeList_actualArgument");
   if (renderingCondition_c9gv4j_a2a(node, editorContext, editorContext.getScope())) {
     editorCell.setFocusPolicy(FocusPolicy.FIRST_EDITABLE_CELL);
   }
   editorCell.setRole(handler.getElementRole());
   return editorCell;
 }
예제 #6
0
 private EditorCell createConstant_arlg9k_c0(EditorContext editorContext, SNode node) {
   EditorCell_Constant editorCell = new EditorCell_Constant(editorContext, node, ")");
   editorCell.setCellId("Constant_arlg9k_c0");
   Style style = new StyleImpl();
   BaseLanguageStyle_StyleSheet.applyRightParen(style, editorCell);
   style.set(StyleAttributes.SELECTABLE, true);
   style.set(StyleAttributes.FONT_STYLE, MPSFonts.PLAIN);
   style.set(StyleAttributes.EDITABLE, false);
   editorCell.getStyle().putAll(style);
   if (renderingCondition_arlg9k_a2a(node, editorContext, editorContext.getScope())) {
     editorCell.getStyle().set(StyleAttributes.FOCUS_POLICY, FocusPolicy.ATTRACTS_FOCUS);
   }
   editorCell.setDefaultText("");
   return editorCell;
 }
예제 #7
0
 private EditorCell createRefNodeList_arlg9k_b0(EditorContext editorContext, SNode node) {
   AbstractCellListHandler handler =
       new IMethodCall_actualArguments.actualArgumentListHandler_arlg9k_b0(
           node, "actualArgument", editorContext);
   EditorCell_Collection editorCell =
       handler.createCells(editorContext, new CellLayout_Indent(), false);
   editorCell.setCellId("refNodeList_actualArgument");
   Style style = new StyleImpl();
   style.set(
       StyleAttributes.PARAMETERS_INFORMATION,
       new BaseMethodParameterInformationQueryRestricted());
   editorCell.getStyle().putAll(style);
   if (renderingCondition_arlg9k_a1a(node, editorContext, editorContext.getScope())) {
     editorCell.getStyle().set(StyleAttributes.FOCUS_POLICY, FocusPolicy.FIRST_EDITABLE_CELL);
   }
   editorCell.setRole(handler.getElementRole());
   return editorCell;
 }