package jetbrains.mps.lang.dataFlow.editor; /*Generated by MPS */ import jetbrains.mps.openapi.editor.style.Style; import jetbrains.mps.openapi.editor.cells.EditorCell; import org.jetbrains.mps.openapi.model.SNode; import jetbrains.mps.openapi.editor.EditorContext; import jetbrains.mps.editor.runtime.style.AbstractStyleClass; import jetbrains.mps.editor.runtime.style.StyleAttributes; import jetbrains.mps.openapi.editor.style.StyleRegistry; import jetbrains.mps.nodeEditor.MPSColors; public class DataFlow_StyleSheet { /** * * @deprecated Since MPS 3.5 use generated StyleClass */ @Deprecated public static void apply_Instruction(Style style, EditorCell editorCell) { SNode node = (editorCell == null ? null : editorCell.getSNode()); EditorContext editorContext = (editorCell == null ? null : editorCell.getContext()); new DataFlow_StyleSheet.InstructionStyleClass(editorContext, node).apply(style, editorCell); } /** * * @deprecated Since MPS 3.5 use generated StyleClass */ @Deprecated public static void apply_Position(Style style, EditorCell editorCell) { SNode node = (editorCell == null ? null : editorCell.getSNode()); EditorContext editorContext = (editorCell == null ? null : editorCell.getContext()); new DataFlow_StyleSheet.PositionStyleClass(editorContext, node).apply(style, editorCell); } /** * * @deprecated Since MPS 3.5 use generated StyleClass */ @Deprecated public static void apply_MayBeUnreachable(Style style, EditorCell editorCell) { SNode node = (editorCell == null ? null : editorCell.getSNode()); EditorContext editorContext = (editorCell == null ? null : editorCell.getContext()); new DataFlow_StyleSheet.MayBeUnreachableStyleClass(editorContext, node).apply(style, editorCell); } /** * * @deprecated Since MPS 3.5 use generated StyleClass */ @Deprecated public static void apply_Label(Style style, EditorCell editorCell) { SNode node = (editorCell == null ? null : editorCell.getSNode()); EditorContext editorContext = (editorCell == null ? null : editorCell.getContext()); new DataFlow_StyleSheet.LabelStyleClass(editorContext, node).apply(style, editorCell); } /** * * @deprecated Since MPS 3.5 use generated StyleClass */ @Deprecated public static void apply_InsertPosition(Style style, EditorCell editorCell) { SNode node = (editorCell == null ? null : editorCell.getSNode()); EditorContext editorContext = (editorCell == null ? null : editorCell.getContext()); new DataFlow_StyleSheet.InsertPositionStyleClass(editorContext, node).apply(style, editorCell); } public static class InstructionStyleClass extends AbstractStyleClass { public InstructionStyleClass(EditorContext editorContext, SNode node) { super(editorContext, node); } @Override public void apply(Style style, EditorCell editorCell) { style.set(StyleAttributes.TEXT_COLOR, StyleRegistry.getInstance().getSimpleColor(MPSColors.DARK_MAGENTA)); } } public static class PositionStyleClass extends AbstractStyleClass { public PositionStyleClass(EditorContext editorContext, SNode node) { super(editorContext, node); } @Override public void apply(Style style, EditorCell editorCell) { style.set(StyleAttributes.TEXT_COLOR, StyleRegistry.getInstance().getSimpleColor(MPSColors.blue)); } } public static class MayBeUnreachableStyleClass extends AbstractStyleClass { public MayBeUnreachableStyleClass(EditorContext editorContext, SNode node) { super(editorContext, node); } @Override public void apply(Style style, EditorCell editorCell) { style.set(StyleAttributes.MATCHING_LABEL, "MayBeUnreachable"); style.set(StyleAttributes.TEXT_COLOR, StyleRegistry.getInstance().getSimpleColor(MPSColors.lightGray)); } } public static class LabelStyleClass extends AbstractStyleClass { public LabelStyleClass(EditorContext editorContext, SNode node) { super(editorContext, node); } @Override public void apply(Style style, EditorCell editorCell) { style.set(StyleAttributes.TEXT_COLOR, StyleRegistry.getInstance().getSimpleColor(MPSColors.DARK_GREEN)); } } public static class InsertPositionStyleClass extends AbstractStyleClass { public InsertPositionStyleClass(EditorContext editorContext, SNode node) { super(editorContext, node); } @Override public void apply(Style style, EditorCell editorCell) { style.set(StyleAttributes.TEXT_COLOR, StyleRegistry.getInstance().getSimpleColor(MPSColors.DARK_GREEN)); } } }