package com.up.smfmc; /** * * @author Ricky */ public class Diff { public String file; public String line; public String content; public Method method; public static enum Method { after, before, replace, end; } public Diff(String file, String line, String content, Method method) { this.file = file.replace("./Sources", "$sourcedir").replace("./Themes/default", "$themedir").replace("./Themes/core", "$themedir"); if (this.file.indexOf("./", 2) == -1 && this.file.contains("./")) this.file = this.file.replace("./", "$boarddir/"); this.line = line; this.content = content; this.method = method; } @Override public String toString() { return " \n" + " \n" + " " : ">") + "\n" + " \n" + " \n" + " "; } }