package jetbrains.mps.lang.constraints.editor; /*Generated by MPS */ import jetbrains.mps.editor.runtime.descriptor.AbstractEditorBuilder; import org.jetbrains.annotations.NotNull; import org.jetbrains.mps.openapi.model.SNode; import jetbrains.mps.openapi.editor.EditorContext; import jetbrains.mps.openapi.editor.cells.EditorCell; import jetbrains.mps.nodeEditor.cells.EditorCell_Collection; import jetbrains.mps.nodeEditor.cellLayout.CellLayout_Vertical; import jetbrains.mps.openapi.editor.style.Style; import jetbrains.mps.editor.runtime.style.StyleImpl; import jetbrains.mps.editor.runtime.style.StyleAttributes; import jetbrains.mps.nodeEditor.cellLayout.CellLayout_Indent; import jetbrains.mps.openapi.editor.style.StyleRegistry; import jetbrains.mps.nodeEditor.MPSColors; import jetbrains.mps.nodeEditor.cells.EditorCell_Constant; import jetbrains.mps.nodeEditor.MPSFonts; import jetbrains.mps.nodeEditor.cellLayout.CellLayout_Horizontal; /*package*/ class ConstraintFunction_ReferentSearchScope_Scope_InspectorBuilder_a extends AbstractEditorBuilder { @NotNull private SNode myNode; public ConstraintFunction_ReferentSearchScope_Scope_InspectorBuilder_a(@NotNull EditorContext context, @NotNull SNode node) { super(context); myNode = node; } @NotNull @Override public SNode getNode() { return myNode; } /*package*/ EditorCell createCell() { return createCollection_5hmuo0_a(); } private EditorCell createCollection_5hmuo0_a() { EditorCell_Collection editorCell = new EditorCell_Collection(getEditorContext(), myNode, new CellLayout_Vertical()); editorCell.setCellId("Collection_5hmuo0_a"); editorCell.setBig(true); editorCell.setCellContext(getCellFactory().getCellContext()); Style style = new StyleImpl(); style.set(StyleAttributes.SELECTABLE, false); editorCell.getStyle().putAll(style); editorCell.addEditorCell(createCollection_5hmuo0_a0()); editorCell.addEditorCell(createConstant_5hmuo0_b0()); editorCell.addEditorCell(createComponent_5hmuo0_c0()); editorCell.addEditorCell(createConstant_5hmuo0_d0()); editorCell.addEditorCell(createConstant_5hmuo0_e0()); editorCell.addEditorCell(createCollection_5hmuo0_f0()); return editorCell; } private EditorCell createCollection_5hmuo0_a0() { EditorCell_Collection editorCell = new EditorCell_Collection(getEditorContext(), myNode, new CellLayout_Indent()); editorCell.setCellId("Collection_5hmuo0_a0"); Style style = new StyleImpl(); style.set(StyleAttributes.SELECTABLE, false); editorCell.getStyle().putAll(style); editorCell.addEditorCell(createComponent_5hmuo0_a0a()); editorCell.addEditorCell(createConstant_5hmuo0_b0a()); return editorCell; } private EditorCell createComponent_5hmuo0_a0a() { EditorCell editorCell = getCellFactory().createEditorComponentCell(myNode, "jetbrains.mps.lang.core.editor.alias"); Style style = new StyleImpl(); style.set(StyleAttributes.TEXT_COLOR, StyleRegistry.getInstance().getSimpleColor(MPSColors.blue, StyleRegistry.getInstance().getSimpleColor(MPSColors.lightGray))); style.set(StyleAttributes.TEXT_BACKGROUND_COLOR, StyleRegistry.getInstance().getSimpleColor(MPSColors.lightGray)); editorCell.getStyle().putAll(style); return editorCell; } private EditorCell createConstant_5hmuo0_b0a() { EditorCell_Constant editorCell = new EditorCell_Constant(getEditorContext(), myNode, "provider"); editorCell.setCellId("Constant_5hmuo0_b0a"); Style style = new StyleImpl(); style.set(StyleAttributes.TEXT_COLOR, StyleRegistry.getInstance().getSimpleColor(MPSColors.blue, StyleRegistry.getInstance().getSimpleColor(MPSColors.lightGray))); style.set(StyleAttributes.TEXT_BACKGROUND_COLOR, StyleRegistry.getInstance().getSimpleColor(MPSColors.lightGray)); editorCell.getStyle().putAll(style); editorCell.setDefaultText(""); return editorCell; } private EditorCell createConstant_5hmuo0_b0() { EditorCell_Constant editorCell = new EditorCell_Constant(getEditorContext(), myNode, ""); editorCell.setCellId("Constant_5hmuo0_b0"); Style style = new StyleImpl(); style.set(StyleAttributes.SELECTABLE, false); editorCell.getStyle().putAll(style); editorCell.setDefaultText(""); return editorCell; } private EditorCell createComponent_5hmuo0_c0() { EditorCell editorCell = getCellFactory().createEditorComponentCell(myNode, "jetbrains.mps.lang.core.editor.ShortDescriptionEditorComponent"); Style style = new StyleImpl(); style.set(StyleAttributes.FONT_STYLE, MPSFonts.PLAIN); editorCell.getStyle().putAll(style); return editorCell; } private EditorCell createConstant_5hmuo0_d0() { EditorCell_Constant editorCell = new EditorCell_Constant(getEditorContext(), myNode, ""); editorCell.setCellId("Constant_5hmuo0_d0"); Style style = new StyleImpl(); style.set(StyleAttributes.SELECTABLE, false); editorCell.getStyle().putAll(style); editorCell.setDefaultText(""); return editorCell; } private EditorCell createConstant_5hmuo0_e0() { EditorCell_Constant editorCell = new EditorCell_Constant(getEditorContext(), myNode, "macros:"); editorCell.setCellId("Constant_5hmuo0_e0"); Style style = new StyleImpl(); style.set(StyleAttributes.FONT_STYLE, MPSFonts.PLAIN); editorCell.getStyle().putAll(style); editorCell.setDefaultText(""); return editorCell; } private EditorCell createCollection_5hmuo0_f0() { EditorCell_Collection editorCell = new EditorCell_Collection(getEditorContext(), myNode, new CellLayout_Vertical()); editorCell.setCellId("Collection_5hmuo0_f0"); Style style = new StyleImpl(); style.set(StyleAttributes.SELECTABLE, false); editorCell.getStyle().putAll(style); editorCell.setGridLayout(true); editorCell.addEditorCell(createCollection_5hmuo0_a5a()); editorCell.addEditorCell(createCollection_5hmuo0_b5a()); editorCell.addEditorCell(createCollection_5hmuo0_c5a()); editorCell.addEditorCell(createCollection_5hmuo0_d5a()); editorCell.addEditorCell(createCollection_5hmuo0_e5a()); return editorCell; } private EditorCell createCollection_5hmuo0_a5a() { EditorCell_Collection editorCell = new EditorCell_Collection(getEditorContext(), myNode, new CellLayout_Horizontal()); editorCell.setCellId("Collection_5hmuo0_a5a"); Style style = new StyleImpl(); style.set(StyleAttributes.SELECTABLE, false); editorCell.getStyle().putAll(style); editorCell.addEditorCell(createConstant_5hmuo0_a0f0()); editorCell.addEditorCell(createCollection_5hmuo0_b0f0()); return editorCell; } private EditorCell createConstant_5hmuo0_a0f0() { EditorCell_Constant editorCell = new EditorCell_Constant(getEditorContext(), myNode, "referenceNode"); editorCell.setCellId("Constant_5hmuo0_a0f0"); editorCell.setDefaultText(""); return editorCell; } private EditorCell createCollection_5hmuo0_b0f0() { EditorCell_Collection editorCell = new EditorCell_Collection(getEditorContext(), myNode, new CellLayout_Vertical()); editorCell.setCellId("Collection_5hmuo0_b0f0"); Style style = new StyleImpl(); style.set(StyleAttributes.SELECTABLE, false); editorCell.getStyle().putAll(style); editorCell.addEditorCell(createConstant_5hmuo0_a1a5a()); editorCell.addEditorCell(createConstant_5hmuo0_b1a5a()); return editorCell; } private EditorCell createConstant_5hmuo0_a1a5a() { EditorCell_Constant editorCell = new EditorCell_Constant(getEditorContext(), myNode, "node that contains reference link."); editorCell.setCellId("Constant_5hmuo0_a1a5a"); Style style = new StyleImpl(); style.set(StyleAttributes.FONT_STYLE, MPSFonts.PLAIN); editorCell.getStyle().putAll(style); editorCell.setDefaultText(""); return editorCell; } private EditorCell createConstant_5hmuo0_b1a5a() { EditorCell_Constant editorCell = new EditorCell_Constant(getEditorContext(), myNode, "(optional - may not exist yet. In this case, reference is being created)"); editorCell.setCellId("Constant_5hmuo0_b1a5a"); Style style = new StyleImpl(); style.set(StyleAttributes.FONT_STYLE, MPSFonts.ITALIC); style.set(StyleAttributes.TEXT_BACKGROUND_COLOR, StyleRegistry.getInstance().getSimpleColor(MPSColors.pink)); editorCell.getStyle().putAll(style); editorCell.setDefaultText(""); return editorCell; } private EditorCell createCollection_5hmuo0_b5a() { EditorCell_Collection editorCell = new EditorCell_Collection(getEditorContext(), myNode, new CellLayout_Horizontal()); editorCell.setCellId("Collection_5hmuo0_b5a"); Style style = new StyleImpl(); style.set(StyleAttributes.SELECTABLE, false); editorCell.getStyle().putAll(style); editorCell.addEditorCell(createConstant_5hmuo0_a1f0()); editorCell.addEditorCell(createCollection_5hmuo0_b1f0()); return editorCell; } private EditorCell createConstant_5hmuo0_a1f0() { EditorCell_Constant editorCell = new EditorCell_Constant(getEditorContext(), myNode, "contextNode"); editorCell.setCellId("Constant_5hmuo0_a1f0"); editorCell.setDefaultText(""); return editorCell; } private EditorCell createCollection_5hmuo0_b1f0() { EditorCell_Collection editorCell = new EditorCell_Collection(getEditorContext(), myNode, new CellLayout_Vertical()); editorCell.setCellId("Collection_5hmuo0_b1f0"); Style style = new StyleImpl(); style.set(StyleAttributes.SELECTABLE, false); editorCell.getStyle().putAll(style); editorCell.addEditorCell(createConstant_5hmuo0_a1b5a()); editorCell.addEditorCell(createConstant_5hmuo0_b1b5a()); return editorCell; } private EditorCell createConstant_5hmuo0_a1b5a() { EditorCell_Constant editorCell = new EditorCell_Constant(getEditorContext(), myNode, "closest not-null context node."); editorCell.setCellId("Constant_5hmuo0_a1b5a"); Style style = new StyleImpl(); style.set(StyleAttributes.FONT_STYLE, MPSFonts.PLAIN); editorCell.getStyle().putAll(style); editorCell.setDefaultText(""); return editorCell; } private EditorCell createConstant_5hmuo0_b1b5a() { EditorCell_Constant editorCell = new EditorCell_Constant(getEditorContext(), myNode, "if referenceNode exists then contextNode equals referenceNode."); editorCell.setCellId("Constant_5hmuo0_b1b5a"); Style style = new StyleImpl(); style.set(StyleAttributes.FONT_STYLE, MPSFonts.ITALIC); editorCell.getStyle().putAll(style); editorCell.setDefaultText(""); return editorCell; } private EditorCell createCollection_5hmuo0_c5a() { EditorCell_Collection editorCell = new EditorCell_Collection(getEditorContext(), myNode, new CellLayout_Horizontal()); editorCell.setCellId("Collection_5hmuo0_c5a"); Style style = new StyleImpl(); style.set(StyleAttributes.SELECTABLE, false); editorCell.getStyle().putAll(style); editorCell.addEditorCell(createConstant_5hmuo0_a2f0()); editorCell.addEditorCell(createCollection_5hmuo0_b2f0()); return editorCell; } private EditorCell createConstant_5hmuo0_a2f0() { EditorCell_Constant editorCell = new EditorCell_Constant(getEditorContext(), myNode, "containmentLink"); editorCell.setCellId("Constant_5hmuo0_a2f0"); editorCell.setDefaultText(""); return editorCell; } private EditorCell createCollection_5hmuo0_b2f0() { EditorCell_Collection editorCell = new EditorCell_Collection(getEditorContext(), myNode, new CellLayout_Vertical()); editorCell.setCellId("Collection_5hmuo0_b2f0"); Style style = new StyleImpl(); style.set(StyleAttributes.SELECTABLE, false); editorCell.getStyle().putAll(style); editorCell.addEditorCell(createConstant_5hmuo0_a1c5a()); editorCell.addEditorCell(createConstant_5hmuo0_b1c5a()); editorCell.addEditorCell(createConstant_5hmuo0_c1c5a()); return editorCell; } private EditorCell createConstant_5hmuo0_a1c5a() { EditorCell_Constant editorCell = new EditorCell_Constant(getEditorContext(), myNode, "containment link between context node and its non-exist child"); editorCell.setCellId("Constant_5hmuo0_a1c5a"); Style style = new StyleImpl(); style.set(StyleAttributes.FONT_STYLE, MPSFonts.PLAIN); editorCell.getStyle().putAll(style); editorCell.setDefaultText(""); return editorCell; } private EditorCell createConstant_5hmuo0_b1c5a() { EditorCell_Constant editorCell = new EditorCell_Constant(getEditorContext(), myNode, "where reference is being created."); editorCell.setCellId("Constant_5hmuo0_b1c5a"); Style style = new StyleImpl(); style.set(StyleAttributes.FONT_STYLE, MPSFonts.PLAIN); editorCell.getStyle().putAll(style); editorCell.setDefaultText(""); return editorCell; } private EditorCell createConstant_5hmuo0_c1c5a() { EditorCell_Constant editorCell = new EditorCell_Constant(getEditorContext(), myNode, "if referenceNode exists then this parameter has no sence."); editorCell.setCellId("Constant_5hmuo0_c1c5a"); Style style = new StyleImpl(); style.set(StyleAttributes.FONT_STYLE, MPSFonts.ITALIC); editorCell.getStyle().putAll(style); editorCell.setDefaultText(""); return editorCell; } private EditorCell createCollection_5hmuo0_d5a() { EditorCell_Collection editorCell = new EditorCell_Collection(getEditorContext(), myNode, new CellLayout_Horizontal()); editorCell.setCellId("Collection_5hmuo0_d5a"); Style style = new StyleImpl(); style.set(StyleAttributes.SELECTABLE, false); editorCell.getStyle().putAll(style); editorCell.addEditorCell(createConstant_5hmuo0_a3f0()); editorCell.addEditorCell(createConstant_5hmuo0_b3f0()); return editorCell; } private EditorCell createConstant_5hmuo0_a3f0() { EditorCell_Constant editorCell = new EditorCell_Constant(getEditorContext(), myNode, "position"); editorCell.setCellId("Constant_5hmuo0_a3f0"); editorCell.setDefaultText(""); return editorCell; } private EditorCell createConstant_5hmuo0_b3f0() { EditorCell_Constant editorCell = new EditorCell_Constant(getEditorContext(), myNode, "context node child position in role."); editorCell.setCellId("Constant_5hmuo0_b3f0"); Style style = new StyleImpl(); style.set(StyleAttributes.FONT_STYLE, MPSFonts.PLAIN); editorCell.getStyle().putAll(style); editorCell.setDefaultText(""); return editorCell; } private EditorCell createCollection_5hmuo0_e5a() { EditorCell_Collection editorCell = new EditorCell_Collection(getEditorContext(), myNode, new CellLayout_Horizontal()); editorCell.setCellId("Collection_5hmuo0_e5a"); Style style = new StyleImpl(); style.set(StyleAttributes.SELECTABLE, false); editorCell.getStyle().putAll(style); editorCell.addEditorCell(createConstant_5hmuo0_a4f0()); editorCell.addEditorCell(createCollection_5hmuo0_b4f0()); return editorCell; } private EditorCell createConstant_5hmuo0_a4f0() { EditorCell_Constant editorCell = new EditorCell_Constant(getEditorContext(), myNode, "linkTarget"); editorCell.setCellId("Constant_5hmuo0_a4f0"); editorCell.setDefaultText(""); return editorCell; } private EditorCell createCollection_5hmuo0_b4f0() { EditorCell_Collection editorCell = new EditorCell_Collection(getEditorContext(), myNode, new CellLayout_Vertical()); editorCell.setCellId("Collection_5hmuo0_b4f0"); Style style = new StyleImpl(); style.set(StyleAttributes.SELECTABLE, false); editorCell.getStyle().putAll(style); editorCell.addEditorCell(createConstant_5hmuo0_a1e5a()); editorCell.addEditorCell(createConstant_5hmuo0_b1e5a()); return editorCell; } private EditorCell createConstant_5hmuo0_a1e5a() { EditorCell_Constant editorCell = new EditorCell_Constant(getEditorContext(), myNode, "concept where link can refer to."); editorCell.setCellId("Constant_5hmuo0_a1e5a"); Style style = new StyleImpl(); style.set(StyleAttributes.FONT_STYLE, MPSFonts.PLAIN); editorCell.getStyle().putAll(style); editorCell.setDefaultText(""); return editorCell; } private EditorCell createConstant_5hmuo0_b1e5a() { EditorCell_Constant editorCell = new EditorCell_Constant(getEditorContext(), myNode, "it can be useful in case when link is supposed to be specialized."); editorCell.setCellId("Constant_5hmuo0_b1e5a"); Style style = new StyleImpl(); style.set(StyleAttributes.FONT_STYLE, MPSFonts.ITALIC); editorCell.getStyle().putAll(style); editorCell.setDefaultText(""); return editorCell; } }