private EditorCell createCustom_bjjsvn_a(final EditorContext editorContext, final SNode node) {
   AbstractCellProvider provider =
       new _FunctionTypes._return_P0_E0<AbstractCellProvider>() {
         public AbstractCellProvider invoke() {
           return new AbstractCellProvider() {
             @Override
             public EditorCell createEditorCell(EditorContext context) {
               EditorCell_Error result = new EditorCell_Error(context, node, "<no classpath>");
               result.getStyle().set(StyleAttributes.PADDING_LEFT, new Padding(0.0));
               result.getStyle().set(StyleAttributes.PADDING_RIGHT, new Padding(0.0));
               return result;
             }
           };
         }
       }.invoke();
   EditorCell editorCell = provider.createEditorCell(editorContext);
   editorCell.setCellId("Custom_bjjsvn_a");
   EditorCell bigCell = BigCellUtil.findBigCell(editorCell, node);
   if (bigCell != null) {
     bigCell.setBig(true);
   } else {
     throw new RuntimeException("No big cell found!");
   }
   return editorCell;
 }
 private EditorCell createComponent_8rvrqs_b0(EditorContext editorContext, SNode node) {
   AbstractCellProvider provider = new AliasEditorComponent(node);
   EditorCell editorCell = provider.createEditorCell(editorContext);
   Style style = new StyleImpl();
   PackagingStyles_StyleSheet.applyKeyword(style, editorCell);
   editorCell.getStyle().putAll(style);
   return editorCell;
 }
 private EditorCell createComponent_7agu8k_a0(EditorContext editorContext, SNode node) {
   AbstractCellProvider provider = new AliasEditorComponent(node);
   EditorCell editorCell = provider.createEditorCell(editorContext);
   Style style = new StyleImpl();
   DataFlow_StyleSheet.applyInstruction(style, editorCell);
   editorCell.getStyle().putAll(style);
   return editorCell;
 }
Example #4
0
 private EditorCell createComponent_1n0h5d_b0(EditorContext editorContext, SNode node) {
   AbstractCellProvider provider = new NodeMacro_postfix(node);
   EditorCell editorCell = provider.createEditorCell(editorContext);
   Style style = new StyleImpl();
   style.set(StyleAttributes.INDENT_LAYOUT_NO_WRAP, true);
   editorCell.getStyle().putAll(style);
   return editorCell;
 }
 private EditorCell createComponent_jn1wx6_a0a0(EditorContext editorContext, SNode node) {
   AbstractCellProvider provider = new AliasEditorComponent(node);
   EditorCell editorCell = provider.createEditorCell(editorContext);
   Style style = new StyleImpl();
   RunConfigurations_StyleSheet.applyOperation(style, editorCell);
   editorCell.getStyle().putAll(style);
   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 createComponent_2jlgx_a0(EditorContext editorContext, SNode node) {
   AbstractCellProvider provider = new IMethodCall_typeArguments(node);
   EditorCell editorCell = provider.createEditorCell(editorContext);
   {
     Style style = editorCell.getStyle();
     style.set(StyleAttributes.SELECTABLE, false);
   }
   return editorCell;
 }
 private EditorCell createComponent_1x071y_a0(EditorContext editorContext, SNode node) {
   AbstractCellProvider provider = new _DeprecatedPart(node);
   EditorCell editorCell = provider.createEditorCell(editorContext);
   {
     Style style = editorCell.getStyle();
     style.set(StyleAttributes.INDENT_LAYOUT_NEW_LINE, true);
   }
   return editorCell;
 }
Example #9
0
 private EditorCell createComponent_h8u2a4_c0(EditorContext editorContext, SNode node) {
   AbstractCellProvider provider = new MessageComponent(node);
   EditorCell editorCell = provider.createEditorCell(editorContext);
   {
     Style style = editorCell.getStyle();
     style.set(StyleAttributes.SELECTABLE, false);
   }
   return editorCell;
 }
 private EditorCell createComponent_689p1d_a0(EditorContext editorContext, SNode node) {
   AbstractCellProvider provider = new AliasEditorComponent(node);
   EditorCell editorCell = provider.createEditorCell(editorContext);
   Style style = new StyleImpl();
   Styles_StyleSheet.applyItem(style, editorCell);
   editorCell.getStyle().putAll(style);
   editorCell.setSubstituteInfo(
       new CompositeSubstituteInfo(
           editorContext,
           new BasicCellContext(node),
           new SubstituteInfoPartExt[] {
             new BooleanStyleSheetItem_Editor.ReplaceWith_StyleClassItem_cellMenu_689p1d_a0a0()
           }));
   return editorCell;
 }
 private EditorCell createComponent_n84rmm_a0(EditorContext editorContext, SNode node) {
   AbstractCellProvider provider = new AliasEditorComponent(node);
   EditorCell editorCell = provider.createEditorCell(editorContext);
   Style style = new StyleImpl();
   style.set(StyleAttributes.FONT_STYLE, MPSFonts.BOLD);
   editorCell.getStyle().putAll(style);
   editorCell.setSubstituteInfo(
       new CompositeSubstituteInfo(
           editorContext,
           new BasicCellContext(node),
           new SubstituteInfoPartExt[] {
             new ReplaceableAliasAndParms_Comp.ReplaceWith_SNodeOperation_cellMenu_a0a0_0()
           }));
   return editorCell;
 }
Example #12
0
 private EditorCell createCustom_94dy37_a(final EditorContext editorContext, final SNode node) {
   AbstractCellProvider provider =
       new _FunctionTypes._return_P0_E0<AbstractCellProvider>() {
         public AbstractCellProvider invoke() {
           return new AbstractCellProvider() {
             @Override
             public EditorCell createEditorCell(EditorContext context) {
               EditorCell_Error result = new EditorCell_Error(context, node, "<build aspect>");
               result.getStyle().set(StyleAttributes.PADDING_LEFT, new Padding(0.0));
               result.getStyle().set(StyleAttributes.PADDING_RIGHT, new Padding(0.0));
               return result;
             }
           };
         }
       }.invoke();
   EditorCell editorCell = provider.createEditorCell(editorContext);
   editorCell.setCellId("Custom_94dy37_a");
   editorCell.setBig(true);
   return editorCell;
 }
 private EditorCell createComponent_1x071y_d0(EditorContext editorContext, SNode node) {
   AbstractCellProvider provider = new _GenericDeclaration_TypeVariables_Component(node);
   EditorCell editorCell = provider.createEditorCell(editorContext);
   return editorCell;
 }
 private EditorCell createComponent_1x071y_c0(EditorContext editorContext, SNode node) {
   AbstractCellProvider provider = new _Component_Visibility(node);
   EditorCell editorCell = provider.createEditorCell(editorContext);
   return editorCell;
 }
 private EditorCell createComponent_1x071y_b0(EditorContext editorContext, SNode node) {
   AbstractCellProvider provider = new HasAnnotation_AnnotationComponent(node);
   EditorCell editorCell = provider.createEditorCell(editorContext);
   return editorCell;
 }
 private EditorCell createComponent_zdgerc_d0a0(EditorContext editorContext, SNode node) {
   AbstractCellProvider provider = new common_UIObjectStatement(node);
   EditorCell editorCell = provider.createEditorCell(editorContext);
   return editorCell;
 }
Example #17
0
 private EditorCell createCustom_qilpva_a(final EditorContext editorContext, final SNode node) {
   AbstractCellProvider provider =
       new _FunctionTypes._return_P0_E0<AbstractCellProvider>() {
         public AbstractCellProvider invoke() {
           return new AbstractCellProvider() {
             @Override
             public EditorCell createEditorCell(EditorContext context) {
               EditorCell_Collection collection =
                   jetbrains.mps.nodeEditor.cells.EditorCell_Collection.createVertical(
                       context, node);
               collection.addEditorCell(
                   new EditorCell_Constant(context, node, "Concept function help:"));
               if (SPropertyOperations.getString(
                       SNodeOperations.getConceptDeclaration(node),
                       MetaAdapterFactory.getProperty(
                           0xc72da2b97cce4447L,
                           0x8389f407dc1158b7L,
                           0x1103553c5ffL,
                           0x403a32c5772bbe20L,
                           "conceptShortDescription"))
                   != null) {
                 collection.addEditorCell(
                     new EditorCell_Constant(
                         context,
                         node,
                         SPropertyOperations.getString(
                             SNodeOperations.getConceptDeclaration(node),
                             MetaAdapterFactory.getProperty(
                                 0xc72da2b97cce4447L,
                                 0x8389f407dc1158b7L,
                                 0x1103553c5ffL,
                                 0x403a32c5772bbe20L,
                                 "conceptShortDescription"))));
               }
               collection.addEditorCell(new EditorCell_Constant(context, node, ""));
               collection.addEditorCell(new EditorCell_Constant(context, node, "Parameter help:"));
               for (SNode cfp :
                   BehaviorReflection.invokeVirtual(
                       (Class<List<SNode>>) ((Class) Object.class),
                       node,
                       "virtual_getParameters_1213877374450",
                       new Object[] {})) {
                 String alias =
                     SPropertyOperations.getString(
                         cfp,
                         MetaAdapterFactory.getProperty(
                             0xc72da2b97cce4447L,
                             0x8389f407dc1158b7L,
                             0x1103553c5ffL,
                             0x46ab0ad5826c74caL,
                             "conceptAlias"));
                 String description =
                     SPropertyOperations.getString(
                         cfp,
                         MetaAdapterFactory.getProperty(
                             0xc72da2b97cce4447L,
                             0x8389f407dc1158b7L,
                             0x1103553c5ffL,
                             0x403a32c5772bbe20L,
                             "conceptShortDescription"));
                 if (description == null) {
                   description =
                       "<no help. use conceptShortDescription concept function property to create one>";
                 }
                 EditorCell_Constant message =
                     new EditorCell_Constant(context, node, alias + " : " + description);
                 collection.addEditorCell(message);
               }
               return collection;
             }
           };
         }
       }.invoke();
   EditorCell editorCell = provider.createEditorCell(editorContext);
   editorCell.setCellId("Custom_qilpva_a");
   EditorCell bigCell = BigCellUtil.findBigCell(editorCell, node);
   if (bigCell != null) {
     bigCell.setBig(true);
   }
   editorCell.setAction(CellActionType.COMMENT, new CellAction_Comment(node));
   return editorCell;
 }
 private EditorCell createComponent_q8cg0u_a(EditorContext editorContext, SNode node) {
   AbstractCellProvider provider = new ReplaceableAliasAndParms_Comp(node);
   EditorCell editorCell = provider.createEditorCell(editorContext);
   return editorCell;
 }
 private EditorCell createComponent_a6wfgm_a0a0(EditorContext editorContext, SNode node) {
   AbstractCellProvider provider = new AliasEditorComponent(node);
   EditorCell editorCell = provider.createEditorCell(editorContext);
   return editorCell;
 }
Example #20
0
 private EditorCell createComponent_2jlgx_c0(EditorContext editorContext, SNode node) {
   AbstractCellProvider provider = new IMethodCall_actualArguments(node);
   EditorCell editorCell = provider.createEditorCell(editorContext);
   return editorCell;
 }
Example #21
0
 private EditorCell createComponent_mr1gse_a4a(EditorContext editorContext, SNode node) {
   AbstractCellProvider provider = new GenericDeclaration_FoldedCodeBlock_Component(node);
   EditorCell editorCell = provider.createEditorCell(editorContext);
   return editorCell;
 }
 private EditorCell createComponent_llx455_a0(EditorContext editorContext, SNode node) {
   AbstractCellProvider provider = new ReplaceableAlias_Comp(node);
   EditorCell editorCell = provider.createEditorCell(editorContext);
   return editorCell;
 }
 private EditorCell createComponent_1x071y_j0(EditorContext editorContext, SNode node) {
   AbstractCellProvider provider = new BaseMethodDeclaration_BodyComponent(node);
   EditorCell editorCell = provider.createEditorCell(editorContext);
   return editorCell;
 }
 private EditorCell createComponent_6ko8zs_b0a(EditorContext editorContext, SNode node) {
   AbstractCellProvider provider = new TreePath_component(node);
   EditorCell editorCell = provider.createEditorCell(editorContext);
   return editorCell;
 }
 private EditorCell createComponent_gd466t_a0(EditorContext editorContext, SNode node) {
   AbstractCellProvider provider = new WithProperty_component(node);
   EditorCell editorCell = provider.createEditorCell(editorContext);
   return editorCell;
 }
Example #26
0
 private EditorCell createComponent_pr8n4z_b0(EditorContext editorContext, SNode node) {
   AbstractCellProvider provider = new NodeMacro_postfix(node);
   EditorCell editorCell = provider.createEditorCell(editorContext);
   return editorCell;
 }