private EditorCell createConstant_c4imx1_a1a(EditorContext editorContext, SNode node) { EditorCell_Constant editorCell = new EditorCell_Constant(editorContext, node, ""); editorCell.setCellId("Constant_c4imx1_a1a"); Style style = new StyleImpl(); style.set(StyleAttributes.INDENT_LAYOUT_NEW_LINE, 0, true); editorCell.getStyle().putAll(style); editorCell.addKeyMap(new InsertAnEmptyCommentLine()); editorCell.setDefaultText(""); return editorCell; }
private EditorCell createConstant_y68cfu_a1h0(EditorContext editorContext, SNode node) { EditorCell_Constant editorCell = new EditorCell_Constant(editorContext, node, ""); editorCell.setCellId("Empty_Enum_Constants"); Style style = new StyleImpl(); style.set(StyleAttributes.SELECTABLE, true); style.set(StyleAttributes.EDITABLE, true); editorCell.getStyle().putAll(style); editorCell.addKeyMap(new EnumConstants()); editorCell.setDefaultText("<<enum constants>>"); return editorCell; }
private EditorCell createConstant_7h2wce_a(EditorContext editorContext, SNode node) { EditorCell_Constant editorCell = new EditorCell_Constant(editorContext, node, ""); editorCell.setCellId("Constant_7h2wce_a"); editorCell.setBig(true); Style style = new StyleImpl(); style.set(StyleAttributes.EDITABLE, 0, true); editorCell.getStyle().putAll(style); editorCell.setAction(CellActionType.COMMENT, new CellAction_Comment(node)); Statement_Actions.setCellActions(editorCell, node, editorContext); editorCell.addKeyMap(new MakeTypeArray()); editorCell.setDefaultText(""); return editorCell; }
private EditorCell createConstant_cth9w3_a0a0(EditorContext editorContext, SNode node) { EditorCell_Constant editorCell = new EditorCell_Constant(editorContext, node, "<default>"); editorCell.setCellId("Constant_cth9w3_a0a0"); Style style = new StyleImpl(); style.set( StyleAttributes.TEXT_COLOR, 0, StyleRegistry.getInstance().getSimpleColor(MPSColors.gray)); style.set(StyleAttributes.DEFAULT_CARET_POSITION, 0, CaretPosition.FIRST); editorCell.getStyle().putAll(style); editorCell.addKeyMap(new ConceptEditor_DefaultContextHintLabel()); editorCell.setDefaultText(""); return editorCell; }