private EditorCell createConstant_ew7mjn_a0(EditorContext editorContext, SNode node) {
   EditorCell_Constant editorCell = new EditorCell_Constant(editorContext, node, "trim");
   editorCell.setCellId("Constant_ew7mjn_a0");
   BaseLanguageStyle_StyleSheet.getCompactKeyWord(editorCell).apply(editorCell);
   editorCell.setDefaultText("");
   return editorCell;
 }
 private EditorCell createProperty_h4irw0_a0a0(EditorContext editorContext, SNode node) {
   CellProviderWithRole provider = new PropertyCellProvider(node, editorContext);
   provider.setRole("propertyName");
   provider.setNoTargetText("<no propertyName>");
   provider.setReadOnly(true);
   EditorCell editorCell;
   editorCell = provider.createEditorCell(editorContext);
   editorCell.setCellId("property_propertyName");
   if (editorCell.getRole() == null) {
     editorCell.setReferenceCell(true);
     editorCell.setRole("property");
   }
   Style style = new StyleImpl();
   BaseLanguageStyle_StyleSheet.apply_Field(style, editorCell);
   style.set(StyleAttributes.AUTO_DELETABLE, true);
   editorCell.getStyle().putAll(style);
   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.createNodeRoleAttributeCell(
         editorContext, attributeConcept, attributeKind, editorCell);
   } else return editorCell;
 }
Beispiel #3
0
 private EditorCell createConstant_uc5iyq_b0a(EditorContext editorContext, SNode node) {
   EditorCell_Constant editorCell = new EditorCell_Constant(editorContext, node, " * ");
   editorCell.setCellId("Constant_uc5iyq_b0a");
   BaseLanguageStyle_StyleSheet.getComment(editorCell).apply(editorCell);
   editorCell.setDefaultText("");
   return editorCell;
 }
 private EditorCell createConstant_ew7mjn_d0(EditorContext editorContext, SNode node) {
   EditorCell_Constant editorCell = new EditorCell_Constant(editorContext, node, ")");
   editorCell.setCellId("Constant_ew7mjn_d0");
   BaseLanguageStyle_StyleSheet.getRightParen(editorCell).apply(editorCell);
   editorCell.setDefaultText("");
   return editorCell;
 }
 private EditorCell createConstant_1x071y_f0(EditorContext editorContext, SNode node) {
   EditorCell_Constant editorCell = new EditorCell_Constant(editorContext, node, "(");
   editorCell.setCellId("Constant_1x071y_f0");
   BaseLanguageStyle_StyleSheet.getLeftParenAfterName(editorCell).apply(editorCell);
   editorCell.setDefaultText("");
   return editorCell;
 }
 private EditorCell createConceptProperty_89tgy3_b0(EditorContext editorContext, SNode node) {
   CellProviderWithRole provider = new ConceptPropertyCellProvider(node, editorContext);
   provider.setRole("alias");
   provider.setNoTargetText("<no operation>");
   EditorCell editorCell;
   editorCell = provider.createEditorCell(editorContext);
   editorCell.setCellId("conceptProperty_alias");
   BaseLanguageStyle_StyleSheet.getOperator(editorCell).apply(editorCell);
   editorCell.setSubstituteInfo(
       new CompositeSubstituteInfo(
           editorContext,
           provider.getCellContext(),
           new SubstituteInfoPartExt[] {
             new BaseAssignmentExpression_Editor
                 .ReplaceWith_BaseAssignmentExpression_cellMenu_a0b0(),
             new BaseAssignmentExpression_Editor.BaseAssignmentExpression_generic_cellMenu_b0b0()
           }));
   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;
 }
 public static Style getRightAngleBracket(final EditorCell cell) {
   Style style = new Style(cell);
   style.putAll(BaseLanguageStyle_StyleSheet.getAngleBracket(null));
   style.set(StyleAttributes.PUNCTUATION_LEFT, true);
   style.set(StyleAttributes.PUNCTUATION_RIGHT, true);
   return style;
 }
 private EditorCell createConstant_1x071y_a8a(EditorContext editorContext, SNode node) {
   EditorCell_Constant editorCell = new EditorCell_Constant(editorContext, node, "throws");
   editorCell.setCellId("Constant_1x071y_a8a");
   BaseLanguageStyle_StyleSheet.getKeyWord(editorCell).apply(editorCell);
   editorCell.setDefaultText("");
   return editorCell;
 }
 private EditorCell createProperty_vgxjtu_a1a(EditorContext editorContext, SNode node) {
   CellProviderWithRole provider = new PropertyCellProvider(node, editorContext);
   provider.setRole("label");
   provider.setNoTargetText("<no label>");
   EditorCell editorCell;
   editorCell = provider.createEditorCell(editorContext);
   editorCell.setCellId("property_label");
   Style style = new StyleImpl();
   BaseLanguageStyle_StyleSheet.apply_Label(style, editorCell);
   style.set(StyleAttributes.SELECTABLE, true);
   style.set(StyleAttributes.EDITABLE, true);
   editorCell.getStyle().putAll(style);
   ContinueStatement_Actions.setCellActions(editorCell, node, editorContext);
   editorCell.setSubstituteInfo(
       new CompositeSubstituteInfo(
           editorContext,
           provider.getCellContext(),
           new SubstituteInfoPartExt[] {
             new ContinueStatement_Editor.ContinueStatement_generic_cellMenu_vgxjtu_a0a1a()
           }));
   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 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;
 }
Beispiel #11
0
 private EditorCell createConstant_uc5iyq_a0a_0(EditorContext editorContext, SNode node) {
   EditorCell_Constant editorCell = new EditorCell_Constant(editorContext, node, "/**...*/");
   editorCell.setCellId("Constant_uc5iyq_a0a_0");
   BaseLanguageStyle_StyleSheet.getFoldedCell(editorCell).apply(editorCell);
   editorCell.setDefaultText("");
   return editorCell;
 }
 private EditorCell createConstant_d77dl_a0(EditorContext editorContext, SNode node) {
   EditorCell_Constant editorCell = new EditorCell_Constant(editorContext, node, "'");
   editorCell.setCellId("Constant_d77dl_a0");
   Style style = new StyleImpl();
   BaseLanguageStyle_StyleSheet.apply_LeftParen(style, editorCell);
   editorCell.getStyle().putAll(style);
   editorCell.setDefaultText("");
   return editorCell;
 }
Beispiel #13
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 createConstant_vgxjtu_d0(EditorContext editorContext, SNode node) {
   EditorCell_Constant editorCell = new EditorCell_Constant(editorContext, node, ";");
   editorCell.setCellId("Constant_vgxjtu_d0");
   Style style = new StyleImpl();
   BaseLanguageStyle_StyleSheet.apply_Semicolon(style, editorCell);
   editorCell.getStyle().putAll(style);
   editorCell.setDefaultText("");
   return editorCell;
 }
 private EditorCell createConstant_mr1gse_c4a(EditorContext editorContext, SNode node) {
   EditorCell_Constant editorCell = new EditorCell_Constant(editorContext, node, "}");
   editorCell.setCellId("Constant_mr1gse_c4a");
   Style style = new StyleImpl();
   BaseLanguageStyle_StyleSheet.applyRightBrace(style, editorCell);
   editorCell.getStyle().putAll(style);
   editorCell.setDefaultText("");
   return editorCell;
 }
 private EditorCell createConstant_j4vm40_k0(EditorContext editorContext, SNode node) {
   EditorCell_Constant editorCell = new EditorCell_Constant(editorContext, node, "(");
   editorCell.setCellId("leftParen");
   Style style = new StyleImpl();
   BaseLanguageStyle_StyleSheet.applyLeftParenAfterName(style, editorCell);
   editorCell.getStyle().putAll(style);
   editorCell.setDefaultText("");
   return editorCell;
 }
 private EditorCell createConstant_t2jtrp_b0(EditorContext editorContext, SNode node) {
   EditorCell_Constant editorCell = new EditorCell_Constant(editorContext, node, ".");
   editorCell.setCellId("dot");
   Style style = new StyleImpl();
   BaseLanguageStyle_StyleSheet.apply_Dot(style, editorCell);
   editorCell.getStyle().putAll(style);
   editorCell.setDefaultText("");
   return editorCell;
 }
 private EditorCell createConstant_mr1gse_c0(EditorContext editorContext, SNode node) {
   EditorCell_Constant editorCell = new EditorCell_Constant(editorContext, node, "@interface");
   editorCell.setCellId("Constant_mr1gse_c0");
   Style style = new StyleImpl();
   BaseLanguageStyle_StyleSheet.applyKeyWord(style, editorCell);
   style.set(StyleAttributes.SELECTABLE, false);
   editorCell.getStyle().putAll(style);
   editorCell.setDefaultText("");
   return editorCell;
 }
Beispiel #19
0
 private EditorCell createConstant_91bvrs_c1a(EditorContext editorContext, SNode node) {
   EditorCell_Constant editorCell = new EditorCell_Constant(editorContext, node, ">");
   editorCell.setCellId("Constant_91bvrs_c1a");
   Style style = new StyleImpl();
   BaseLanguageStyle_StyleSheet.applyBaseAngleBracket(style, editorCell);
   style.set(StyleAttributes.PUNCTUATION_LEFT, true);
   editorCell.getStyle().putAll(style);
   editorCell.setDefaultText("");
   return editorCell;
 }
 private EditorCell createConstant_mr1gse_a4a(EditorContext editorContext, SNode node) {
   EditorCell_Constant editorCell = new EditorCell_Constant(editorContext, node, "{");
   editorCell.setCellId("Constant_mr1gse_a4a");
   Style style = new StyleImpl();
   BaseLanguageStyle_StyleSheet.applyLeftBrace(style, editorCell);
   style.set(StyleAttributes.INDENT_LAYOUT_NEW_LINE, true);
   editorCell.getStyle().putAll(style);
   editorCell.setDefaultText("");
   return editorCell;
 }
 private EditorCell createConstant_j22tlf_k0(EditorContext editorContext, SNode node) {
   EditorCell_Constant editorCell = new EditorCell_Constant(editorContext, node, "}");
   editorCell.setCellId("Constant_j22tlf_k0");
   Style style = new StyleImpl();
   BaseLanguageStyle_StyleSheet.apply_RightBrace(style, editorCell);
   editorCell.getStyle().putAll(style);
   Delete_Loop.setCellActions(editorCell, node, editorContext);
   editorCell.setDefaultText("");
   return editorCell;
 }
 private EditorCell createConstant_arlg9k_a0(EditorContext editorContext, SNode node) {
   EditorCell_Constant editorCell = new EditorCell_Constant(editorContext, node, "(");
   editorCell.setCellId("Constant_arlg9k_a0");
   Style style = new StyleImpl();
   BaseLanguageStyle_StyleSheet.applyLeftParenAfterName(style, editorCell);
   style.set(StyleAttributes.FONT_STYLE, MPSFonts.PLAIN);
   editorCell.getStyle().putAll(style);
   editorCell.setDefaultText("");
   return editorCell;
 }
 private EditorCell createConstant_k61n5d_a1a(EditorContext editorContext, SNode node) {
   EditorCell_Constant editorCell = new EditorCell_Constant(editorContext, node, "as");
   editorCell.setCellId("Constant_k61n5d_a1a");
   Style style = new StyleImpl();
   BaseLanguageStyle_StyleSheet.applyKeyWord(style, editorCell);
   editorCell.getStyle().putAll(style);
   AsExpression_Delete.setCellActions(editorCell, node, editorContext);
   editorCell.setDefaultText("");
   return editorCell;
 }
 private EditorCell createConstant_j4vm40_f0(EditorContext editorContext, SNode node) {
   EditorCell_Constant editorCell = new EditorCell_Constant(editorContext, node, "synchronized");
   editorCell.setCellId("Constant_j4vm40_f0");
   Style style = new StyleImpl();
   BaseLanguageStyle_StyleSheet.applyKeyWord(style, editorCell);
   editorCell.getStyle().putAll(style);
   DeleteSynchronizedInBaseMethod.setCellActions(editorCell, node, editorContext);
   editorCell.setDefaultText("");
   return editorCell;
 }
 private EditorCell createConstant_eb7h0d_d0(EditorContext editorContext, SNode node) {
   EditorCell_Constant editorCell = new EditorCell_Constant(editorContext, node, ")");
   editorCell.setCellId("Constant_eb7h0d_d0");
   Style style = new StyleImpl();
   BaseLanguageStyle_StyleSheet.apply_RightParen(style, editorCell);
   editorCell.getStyle().putAll(style);
   DeleteCondition.setCellActions(editorCell, node, editorContext);
   editorCell.setDefaultText("");
   return editorCell;
 }
 private EditorCell createConstant_j4vm40_m0(EditorContext editorContext, SNode node) {
   EditorCell_Constant editorCell = new EditorCell_Constant(editorContext, node, ")");
   editorCell.setCellId("rightParen");
   Style style = new StyleImpl();
   BaseLanguageStyle_StyleSheet.applyRightParen(style, editorCell);
   style.set(StyleAttributes.SELECTABLE, true);
   style.set(StyleAttributes.RT_ANCHOR_TAG, "ext_4_RTransform");
   editorCell.getStyle().putAll(style);
   editorCell.setDefaultText("");
   return editorCell;
 }
 private EditorCell createConstant_fao2ea_c0(EditorContext editorContext, SNode node) {
   EditorCell_Constant editorCell = new EditorCell_Constant(editorContext, node, "}");
   editorCell.setCellId("Constant_fao2ea_c0");
   Style style = new StyleImpl();
   BaseLanguageStyle_StyleSheet.apply_RightBrace(style, editorCell);
   style.set(StyleAttributes.POSITION, 0, "next-line");
   editorCell.getStyle().putAll(style);
   DeleteClassifierMember.setCellActions(editorCell, node, editorContext);
   editorCell.setDefaultText("");
   return editorCell;
 }
 private EditorCell createConstant_j22tlf_i0(EditorContext editorContext, SNode node) {
   EditorCell_Constant editorCell = new EditorCell_Constant(editorContext, node, "{");
   editorCell.setCellId("Constant_j22tlf_i0");
   Style style = new StyleImpl();
   BaseLanguageStyle_StyleSheet.apply_LeftBrace(style, editorCell);
   style.set(StyleAttributes.INDENT_LAYOUT_NEW_LINE, 0, true);
   editorCell.getStyle().putAll(style);
   Delete_Loop.setCellActions(editorCell, node, editorContext);
   editorCell.setDefaultText("");
   return editorCell;
 }
Beispiel #29
0
 private EditorCell createConstant_uc5iyq_d0a(EditorContext editorContext, SNode node) {
   EditorCell_Constant editorCell = new EditorCell_Constant(editorContext, node, " */");
   editorCell.setCellId("Constant_uc5iyq_d0a");
   BaseLanguageStyle_StyleSheet.getComment(editorCell).apply(editorCell);
   {
     Style style = editorCell.getStyle();
     style.set(StyleAttributes.INDENT_LAYOUT_NEW_LINE, true);
   }
   editorCell.setDefaultText("");
   return editorCell;
 }
Beispiel #30
0
 private EditorCell createConstant_y68cfu_a7a(EditorContext editorContext, SNode node) {
   EditorCell_Constant editorCell = new EditorCell_Constant(editorContext, node, "{");
   editorCell.setCellId("Constant_y68cfu_a7a");
   Style style = new StyleImpl();
   BaseLanguageStyle_StyleSheet.apply_LeftBrace(style, editorCell);
   style.set(StyleAttributes.INDENT_LAYOUT_NEW_LINE, true);
   style.set(StyleAttributes.RT_ANCHOR_TAG, "ext_2_RTransform");
   editorCell.getStyle().putAll(style);
   editorCell.setDefaultText("");
   return editorCell;
 }