Esempio n. 1
0
 private EditorCell createConstant_sjqidp_a0a(EditorContext editorContext, SNode node) {
   EditorCell_Constant editorCell = new EditorCell_Constant(editorContext, node, "final");
   editorCell.setCellId("Constant_sjqidp_a0a");
   BaseLanguageStyle_StyleSheet.getKeyWord(editorCell).apply(editorCell);
   editorCell.setDefaultText("");
   return editorCell;
 }
 private EditorCell createProperty_7qsf43_a0(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("property_name");
   Style style = new StyleImpl();
   BaseLanguageStyle_StyleSheet.applyLocalVariable(style, editorCell);
   editorCell.getStyle().putAll(style);
   editorCell.setSubstituteInfo(
       new CompositeSubstituteInfo(
           editorContext,
           provider.getCellContext(),
           new SubstituteInfoPartExt[] {
             new IfInstanceOfVariable_Editor
                 .IfInstanceOfVariable_name_postfixCellMenu_7qsf43_a0a0()
           }));
   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_gmtuod_f2a(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("property_name");
   Style style = new StyleImpl();
   BaseLanguageStyle_StyleSheet.apply_MethodName(style, editorCell);
   editorCell.getStyle().putAll(style);
   editorCell.setSubstituteInfo(
       new CompositeSubstituteInfo(
           editorContext,
           provider.getCellContext(),
           new SubstituteInfoPartExt[] {
             new ConceptMethodDeclaration_Editor
                 .ConceptMethodDeclaration_component_cellMenu_gmtuod_a0f2a()
           }));
   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;
 }
Esempio n. 4
0
 private EditorCell createConstant_5tw6n1_f0(EditorContext editorContext, SNode node) {
   EditorCell_Constant editorCell = new EditorCell_Constant(editorContext, node, ">");
   editorCell.setCellId("Constant_5tw6n1_f0");
   BaseLanguageStyle_StyleSheet.getRightAngleBracket(editorCell).apply(editorCell);
   editorCell.setDefaultText("");
   return editorCell;
 }
Esempio n. 5
0
 private EditorCell createConstant_si17nj_b0(EditorContext editorContext, SNode node) {
   EditorCell_Constant editorCell = new EditorCell_Constant(editorContext, node, "/");
   editorCell.setCellId("Constant_si17nj_b0");
   BaseLanguageStyle_StyleSheet.getLeftParen(editorCell).apply(editorCell);
   editorCell.setDefaultText("");
   return editorCell;
 }
Esempio n. 6
0
 private EditorCell createConstant_olrwx8_i0(EditorContext editorContext, SNode node) {
   EditorCell_Constant editorCell = new EditorCell_Constant(editorContext, node, "}");
   editorCell.setCellId("Constant_olrwx8_i0");
   BaseLanguageStyle_StyleSheet.getRightBrace(editorCell).apply(editorCell);
   editorCell.setDefaultText("");
   return editorCell;
 }
 private EditorCell createConstant_uv9f3e_g0(EditorContext editorContext, SNode node) {
   EditorCell_Constant editorCell = new EditorCell_Constant(editorContext, node, "(");
   editorCell.setCellId("Constant_uv9f3e_g0");
   BaseLanguageStyle_StyleSheet.getLeftParenAfterName(editorCell).apply(editorCell);
   editorCell.setDefaultText("");
   return editorCell;
 }
Esempio n. 8
0
 private EditorCell createConstant_du6pr9_a1b1a(EditorContext editorContext, SNode node) {
   EditorCell_Constant editorCell = new EditorCell_Constant(editorContext, node, "number:");
   editorCell.setCellId("Constant_du6pr9_a1b1a");
   BaseLanguageStyle_StyleSheet.getKeyWord(editorCell).apply(editorCell);
   editorCell.setDefaultText("");
   return editorCell;
 }
 private EditorCell createProperty_djrnp4_a0(EditorContext editorContext, SNode node) {
   CellProviderWithRole provider = new PropertyCellProvider(node, editorContext);
   provider.setRole("encoding");
   provider.setNoTargetText("<no encoding>");
   EditorCell editorCell;
   editorCell = provider.createEditorCell(editorContext);
   editorCell.setCellId("property_encoding");
   Style style = new StyleImpl();
   BaseLanguageStyle_StyleSheet.apply_StringLiteral(style, editorCell);
   editorCell.getStyle().putAll(style);
   editorCell.setSubstituteInfo(
       new CompositeSubstituteInfo(
           editorContext,
           provider.getCellContext(),
           new SubstituteInfoPartExt[] {
             new EncodingLiteral_Editor.ReplaceWith_EncodingLiteral_cellMenu_djrnp4_a0a0()
           }));
   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;
 }
 private EditorCell createConstant_9ahxcc_d0(EditorContext editorContext, SNode node) {
   EditorCell_Constant editorCell = new EditorCell_Constant(editorContext, node, ")");
   editorCell.setCellId("Constant_9ahxcc_d0");
   BaseLanguageStyle_StyleSheet.getRightParen(editorCell).apply(editorCell);
   editorCell.setDefaultText("");
   return editorCell;
 }
 public static void apply_CommentTag(Style style, EditorCell editorCell) {
   {
     Style styleToPut = new StyleImpl();
     BaseLanguageStyle_StyleSheet.apply_JavaDocTag(styleToPut, editorCell);
     style.putAll(styleToPut, 0);
   }
 }
 private EditorCell createConstant_hplu10_e0(EditorContext editorContext, SNode node) {
   EditorCell_Constant editorCell = new EditorCell_Constant(editorContext, node, ".");
   editorCell.setCellId("Constant_hplu10_e0");
   BaseLanguageStyle_StyleSheet.getDot(editorCell).apply(editorCell);
   editorCell.setDefaultText("");
   return editorCell;
 }
 private EditorCell createConstant_o0q9qg_a0(EditorContext editorContext, SNode node) {
   EditorCell_Constant editorCell = new EditorCell_Constant(editorContext, node, "report");
   editorCell.setCellId("Constant_o0q9qg_a0");
   BaseLanguageStyle_StyleSheet.getKeyWord(editorCell).apply(editorCell);
   editorCell.setDefaultText("");
   return editorCell;
 }
 private EditorCell createProperty_7qnrl2_a0a0(EditorContext editorContext, SNode node) {
   CellProviderWithRole provider = new PropertyCellProvider(node, editorContext);
   provider.setRole("name");
   provider.setNoTargetText("<no name>");
   provider.setReadOnly(true);
   EditorCell editorCell;
   editorCell = provider.createEditorCell(editorContext);
   editorCell.setCellId("property_name");
   if (editorCell.getRole() == null) {
     editorCell.setReferenceCell(true);
     editorCell.setRole("member");
   }
   Style style = new StyleImpl();
   BaseLanguageStyle_StyleSheet.applyField(style, editorCell);
   style.set(StyleAttributes.PADDING_RIGHT, new Padding(0.0, Measure.SPACES));
   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.createRoleAttributeCell(
         editorContext, attributeConcept, attributeKind, editorCell);
   } else return editorCell;
 }
Esempio n. 15
0
 private EditorCell createConstant_fl5ndt_a2b1a(EditorContext editorContext, SNode node) {
   EditorCell_Constant editorCell = new EditorCell_Constant(editorContext, node, "help topic");
   editorCell.setCellId("Constant_fl5ndt_a2b1a");
   BaseLanguageStyle_StyleSheet.getKeyWord(editorCell).apply(editorCell);
   editorCell.setDefaultText("");
   return editorCell;
 }
 private EditorCell createProperty_26flog_a0a0(EditorContext editorContext, SNode node) {
   CellProviderWithRole provider = new PropertyCellProvider(node, editorContext);
   provider.setRole("name");
   provider.setNoTargetText("<no name>");
   provider.setReadOnly(true);
   EditorCell editorCell;
   editorCell = provider.createEditorCell(editorContext);
   editorCell.setCellId("property_name");
   if (editorCell.getRole() == null) {
     editorCell.setReferenceCell(true);
     editorCell.setRole("function");
   }
   Style style = new StyleImpl();
   BaseLanguageStyle_StyleSheet.applyMethodName(style, editorCell);
   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.createRoleAttributeCell(
         editorContext, attributeConcept, attributeKind, editorCell);
   } else return editorCell;
 }
 private EditorCell createComponent_hs064c_a(EditorContext editorContext, SNode node) {
   AbstractCellProvider provider = new AliasEditorComponent(node);
   EditorCell editorCell = provider.createEditorCell(editorContext);
   Style style = new StyleImpl();
   BaseLanguageStyle_StyleSheet.applyKeyWord(style, editorCell);
   editorCell.getStyle().putAll(style);
   return editorCell;
 }
  private EditorCell createReadOnlyModelAccessor_n2wc8f_a0(
      final EditorContext editorContext, final SNode node) {
    EditorCell_Property editorCell =
        EditorCell_Property.create(
            editorContext,
            new ModelAccessor() {
              public String getText() {
                return (SPropertyOperations.getString(
                            node,
                            MetaAdapterFactory.getProperty(
                                0xceab519525ea4f22L,
                                0x9b92103b95ca8c0cL,
                                0x10802efe25aL,
                                0x10d34fa226eL,
                                "alias"))
                        != null
                    ? SPropertyOperations.getString(
                        node,
                        MetaAdapterFactory.getProperty(
                            0xceab519525ea4f22L,
                            0x9b92103b95ca8c0cL,
                            0x10802efe25aL,
                            0x10d34fa226eL,
                            "alias"))
                    : SPropertyOperations.getString(
                        SNodeOperations.getConceptDeclaration(node),
                        MetaAdapterFactory.getProperty(
                            0xc72da2b97cce4447L,
                            0x8389f407dc1158b7L,
                            0x1103553c5ffL,
                            0x46ab0ad5826c74caL,
                            "conceptAlias")));
              }

              public void setText(String s) {}

              public boolean isValidText(String s) {
                return EqualUtil.equals(s, getText());
              }
            },
            node);
    editorCell.setAction(CellActionType.DELETE, EmptyCellAction.getInstance());
    editorCell.setAction(CellActionType.BACKSPACE, EmptyCellAction.getInstance());
    editorCell.setSubstituteInfo(
        new CompositeSubstituteInfo(
            editorContext,
            new BasicCellContext(node),
            new SubstituteInfoPartExt[] {
              new CustomMapCreator_component.ReplaceWith_HashMapCreator_cellMenu_n2wc8f_a0a0()
            }));
    editorCell.setCellId("ReadOnlyModelAccessor_n2wc8f_a0");
    Style style = new StyleImpl();
    BaseLanguageStyle_StyleSheet.apply_KeyWord(style, editorCell);
    style.set(StyleAttributes.PADDING_RIGHT, 0, new Padding(0.0, Measure.SPACES));
    style.set(StyleAttributes.RT_ANCHOR_TAG, 0, "ext_1_RTransform");
    editorCell.getStyle().putAll(style);
    return editorCell;
  }
 private EditorCell createConstant_u56bem_b0(EditorContext editorContext, SNode node) {
   EditorCell_Constant editorCell = new EditorCell_Constant(editorContext, node, "(");
   editorCell.setCellId("Constant_u56bem_b0");
   Style style = new StyleImpl();
   BaseLanguageStyle_StyleSheet.apply_LeftParen(style, editorCell);
   editorCell.getStyle().putAll(style);
   editorCell.setDefaultText("");
   return editorCell;
 }
Esempio n. 20
0
 private EditorCell createConstant_z9qmjc_c1a(EditorContext editorContext, SNode node) {
   EditorCell_Constant editorCell = new EditorCell_Constant(editorContext, node, ">");
   editorCell.setCellId("Constant_z9qmjc_c1a");
   Style style = new StyleImpl();
   BaseLanguageStyle_StyleSheet.applyRightAngleBracket(style, editorCell);
   editorCell.getStyle().putAll(style);
   editorCell.setDefaultText("");
   return editorCell;
 }
 private EditorCell createConstant_u56bem_a0(EditorContext editorContext, SNode node) {
   EditorCell_Constant editorCell = new EditorCell_Constant(editorContext, node, "when concrete");
   editorCell.setCellId("Constant_u56bem_a0");
   Style style = new StyleImpl();
   BaseLanguageStyle_StyleSheet.apply_CompactKeyWord(style, editorCell);
   editorCell.getStyle().putAll(style);
   editorCell.setDefaultText("");
   return editorCell;
 }
 private EditorCell createConstant_p9c0o3_e0(EditorContext editorContext, SNode node) {
   EditorCell_Constant editorCell = new EditorCell_Constant(editorContext, node, "}");
   editorCell.setCellId("Constant_p9c0o3_e0");
   Style style = new StyleImpl();
   BaseLanguageStyle_StyleSheet.apply_RightBrace(style, editorCell);
   editorCell.getStyle().putAll(style);
   editorCell.setDefaultText("");
   return editorCell;
 }
 private EditorCell createConstant_obn5mp_a0(EditorContext editorContext, SNode node) {
   EditorCell_Constant editorCell = new EditorCell_Constant(editorContext, node, "ExtensionPoint");
   editorCell.setCellId("Constant_obn5mp_a0");
   Style style = new StyleImpl();
   BaseLanguageStyle_StyleSheet.apply_KeyWord(style, editorCell);
   editorCell.getStyle().putAll(style);
   editorCell.setDefaultText("");
   return editorCell;
 }
Esempio n. 24
0
 private EditorCell createConstant_xuwwk0_d0(EditorContext editorContext, SNode node) {
   EditorCell_Constant editorCell = new EditorCell_Constant(editorContext, node, ";");
   editorCell.setCellId("Constant_xuwwk0_d0");
   Style style = new StyleImpl();
   BaseLanguageStyle_StyleSheet.apply_Semicolon(style, editorCell);
   editorCell.getStyle().putAll(style);
   editorCell.setDefaultText("");
   return editorCell;
 }
 private EditorCell createConstant_col7k7_b0a(EditorContext editorContext, SNode node) {
   EditorCell_Constant editorCell = new EditorCell_Constant(editorContext, node, "for");
   editorCell.setCellId("Constant_col7k7_b0a");
   Style style = new StyleImpl();
   BaseLanguageStyle_StyleSheet.apply_KeyWord(style, editorCell);
   editorCell.getStyle().putAll(style);
   editorCell.setDefaultText("");
   return editorCell;
 }
Esempio n. 26
0
 private EditorCell createConstant_avk0kx_f0(EditorContext editorContext, SNode node) {
   EditorCell_Constant editorCell = new EditorCell_Constant(editorContext, node, "->");
   editorCell.setCellId("Constant_avk0kx_f0");
   Style style = new StyleImpl();
   BaseLanguageStyle_StyleSheet.apply_Operator(style, editorCell);
   editorCell.getStyle().putAll(style);
   editorCell.setDefaultText("");
   return editorCell;
 }
Esempio n. 27
0
 private EditorCell createConstant_5emoq6_a7a(EditorContext editorContext, SNode node) {
   EditorCell_Constant editorCell = new EditorCell_Constant(editorContext, node, "<modifiers>");
   editorCell.setCellId("Constant_5emoq6_a7a");
   Style style = new StyleImpl();
   BaseLanguageStyle_StyleSheet.apply_Comment(style, editorCell);
   editorCell.getStyle().putAll(style);
   editorCell.setDefaultText("");
   return editorCell;
 }
 private EditorCell createConstant_al4u6z_f0(EditorContext editorContext, SNode node) {
   EditorCell_Constant editorCell = new EditorCell_Constant(editorContext, node, "expecting");
   editorCell.setCellId("Constant_al4u6z_f0");
   Style style = new StyleImpl();
   BaseLanguageStyle_StyleSheet.applyKeyWord(style, editorCell);
   editorCell.getStyle().putAll(style);
   editorCell.setDefaultText("");
   return editorCell;
 }
 private EditorCell createConstant_yzuegq_a0(EditorContext editorContext, SNode node) {
   EditorCell_Constant editorCell = new EditorCell_Constant(editorContext, node, "[");
   editorCell.setCellId("Constant_yzuegq_a0");
   Style style = new StyleImpl();
   BaseLanguageStyle_StyleSheet.applyLeftBracket(style, editorCell);
   editorCell.getStyle().putAll(style);
   editorCell.setDefaultText("");
   return editorCell;
 }
 private EditorCell createConstant_owevm8_a2b1a(EditorContext editorContext, SNode node) {
   EditorCell_Constant editorCell = new EditorCell_Constant(editorContext, node, "target type");
   editorCell.setCellId("Constant_owevm8_a2b1a");
   Style style = new StyleImpl();
   BaseLanguageStyle_StyleSheet.applyKeyWord(style, editorCell);
   editorCell.getStyle().putAll(style);
   editorCell.setDefaultText("");
   return editorCell;
 }