package jetbrains.mps.lang.test.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;
import jetbrains.mps.nodeEditor.MPSFonts;
import jetbrains.mps.lang.test.editor.EditorLanguageKeyPack_KeyPack.PARENTH_StyleKey;
public class transformationTest_StyleSheet {
/**
*
* @deprecated Since MPS 3.5 use generated StyleClass
*/
@Deprecated
public static void apply_AssertStyle(Style style, EditorCell editorCell) {
SNode node = (editorCell == null ? null : editorCell.getSNode());
EditorContext editorContext = (editorCell == null ? null : editorCell.getContext());
new transformationTest_StyleSheet.AssertStyleStyleClass(editorContext, node).apply(style, editorCell);
}
/**
*
* @deprecated Since MPS 3.5 use generated StyleClass
*/
@Deprecated
public static void apply_NodeAnnotation(Style style, EditorCell editorCell) {
SNode node = (editorCell == null ? null : editorCell.getSNode());
EditorContext editorContext = (editorCell == null ? null : editorCell.getContext());
new transformationTest_StyleSheet.NodeAnnotationStyleClass(editorContext, node).apply(style, editorCell);
}
/**
*
* @deprecated Since MPS 3.5 use generated StyleClass
*/
@Deprecated
public static void apply_NodeOperation(Style style, EditorCell editorCell) {
SNode node = (editorCell == null ? null : editorCell.getSNode());
EditorContext editorContext = (editorCell == null ? null : editorCell.getContext());
new transformationTest_StyleSheet.NodeOperationStyleClass(editorContext, node).apply(style, editorCell);
}
/**
*
* @deprecated Since MPS 3.5 use generated StyleClass
*/
@Deprecated
public static void apply_TestLabel(Style style, EditorCell editorCell) {
SNode node = (editorCell == null ? null : editorCell.getSNode());
EditorContext editorContext = (editorCell == null ? null : editorCell.getContext());
new transformationTest_StyleSheet.TestLabelStyleClass(editorContext, node).apply(style, editorCell);
}
/**
*
* @deprecated Since MPS 3.5 use generated StyleClass
*/
@Deprecated
public static void apply_EditorOperation(Style style, EditorCell editorCell) {
SNode node = (editorCell == null ? null : editorCell.getSNode());
EditorContext editorContext = (editorCell == null ? null : editorCell.getContext());
new transformationTest_StyleSheet.EditorOperationStyleClass(editorContext, node).apply(style, editorCell);
}
/**
*
* @deprecated Since MPS 3.5 use generated StyleClass
*/
@Deprecated
public static void apply_AnyBracket(Style style, EditorCell editorCell) {
SNode node = (editorCell == null ? null : editorCell.getSNode());
EditorContext editorContext = (editorCell == null ? null : editorCell.getContext());
new transformationTest_StyleSheet.AnyBracketStyleClass(editorContext, node).apply(style, editorCell);
}
/**
*
* @deprecated Since MPS 3.5 use generated StyleClass
*/
@Deprecated
public static void apply_Parenthesis(Style style, EditorCell editorCell) {
SNode node = (editorCell == null ? null : editorCell.getSNode());
EditorContext editorContext = (editorCell == null ? null : editorCell.getContext());
new transformationTest_StyleSheet.ParenthesisStyleClass(editorContext, node).apply(style, editorCell);
}
/**
*
* @deprecated Since MPS 3.5 use generated StyleClass
*/
@Deprecated
public static void apply_LeftParen(Style style, EditorCell editorCell) {
SNode node = (editorCell == null ? null : editorCell.getSNode());
EditorContext editorContext = (editorCell == null ? null : editorCell.getContext());
new transformationTest_StyleSheet.LeftParenStyleClass(editorContext, node).apply(style, editorCell);
}
/**
*
* @deprecated Since MPS 3.5 use generated StyleClass
*/
@Deprecated
public static void apply_RightParen(Style style, EditorCell editorCell) {
SNode node = (editorCell == null ? null : editorCell.getSNode());
EditorContext editorContext = (editorCell == null ? null : editorCell.getContext());
new transformationTest_StyleSheet.RightParenStyleClass(editorContext, node).apply(style, editorCell);
}
/**
*
* @deprecated Since MPS 3.5 use generated StyleClass
*/
@Deprecated
public static void apply_LeftParenAfterName(Style style, EditorCell editorCell) {
SNode node = (editorCell == null ? null : editorCell.getSNode());
EditorContext editorContext = (editorCell == null ? null : editorCell.getContext());
new transformationTest_StyleSheet.LeftParenAfterNameStyleClass(editorContext, node).apply(style, editorCell);
}
public static class AssertStyleStyleClass extends AbstractStyleClass {
public AssertStyleStyleClass(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 NodeAnnotationStyleClass extends AbstractStyleClass {
public NodeAnnotationStyleClass(EditorContext editorContext, SNode node) {
super(editorContext, node);
}
@Override
public void apply(Style style, EditorCell editorCell) {
style.set(StyleAttributes.UNDERLINED, true);
style.set(StyleAttributes.TEXT_COLOR, StyleRegistry.getInstance().getSimpleColor(MPSColors.DARK_GREEN));
}
}
public static class NodeOperationStyleClass extends AbstractStyleClass {
public NodeOperationStyleClass(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));
style.set(StyleAttributes.FONT_STYLE, MPSFonts.PLAIN);
}
}
public static class TestLabelStyleClass extends AbstractStyleClass {
public TestLabelStyleClass(EditorContext editorContext, SNode node) {
super(editorContext, node);
}
@Override
public void apply(Style style, EditorCell editorCell) {
style.set(StyleAttributes.UNDERLINED, true);
style.set(StyleAttributes.FONT_STYLE, MPSFonts.BOLD);
style.set(StyleAttributes.TEXT_COLOR, StyleRegistry.getInstance().getSimpleColor(MPSColors.darkGray));
}
}
public static class EditorOperationStyleClass extends AbstractStyleClass {
public EditorOperationStyleClass(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 AnyBracketStyleClass extends AbstractStyleClass {
public AnyBracketStyleClass(EditorContext editorContext, SNode node) {
super(editorContext, node);
}
@Override
public void apply(Style style, EditorCell editorCell) {
style.set(StyleAttributes.INDENT_LAYOUT_NO_WRAP, true);
style.set(StyleAttributes.FONT_STYLE, MPSFonts.PLAIN);
}
}
public static class ParenthesisStyleClass extends AbstractStyleClass {
public ParenthesisStyleClass(EditorContext editorContext, SNode node) {
super(editorContext, node);
}
@Override
public void apply(Style style, EditorCell editorCell) {
new AnyBracketStyleClass(getEditorContext(), getNode()).apply(style, editorCell);
new PARENTH_StyleKey().apply(style);
style.set(StyleAttributes.MATCHING_LABEL, "parenthesis");
}
}
public static class LeftParenStyleClass extends AbstractStyleClass {
public LeftParenStyleClass(EditorContext editorContext, SNode node) {
super(editorContext, node);
}
@Override
public void apply(Style style, EditorCell editorCell) {
new ParenthesisStyleClass(getEditorContext(), getNode()).apply(style, editorCell);
style.set(StyleAttributes.PUNCTUATION_RIGHT, true);
}
}
public static class RightParenStyleClass extends AbstractStyleClass {
public RightParenStyleClass(EditorContext editorContext, SNode node) {
super(editorContext, node);
}
@Override
public void apply(Style style, EditorCell editorCell) {
new ParenthesisStyleClass(getEditorContext(), getNode()).apply(style, editorCell);
style.set(StyleAttributes.PUNCTUATION_LEFT, true);
}
}
public static class LeftParenAfterNameStyleClass extends AbstractStyleClass {
public LeftParenAfterNameStyleClass(EditorContext editorContext, SNode node) {
super(editorContext, node);
}
@Override
public void apply(Style style, EditorCell editorCell) {
new LeftParenStyleClass(getEditorContext(), getNode()).apply(style, editorCell);
style.set(StyleAttributes.PUNCTUATION_LEFT, true);
}
}
}