Remove icon from programminLanguage
This commit is contained in:
parent
28b9dba111
commit
690901fd8b
@ -15,12 +15,6 @@ public interface ProgrammingLanguage {
|
|||||||
*/
|
*/
|
||||||
public String getName();
|
public String getName();
|
||||||
|
|
||||||
/**
|
|
||||||
* The icon of the programming language
|
|
||||||
* @return The path of the icon
|
|
||||||
*/
|
|
||||||
public URL getIcon();
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The map containing the regex and corresponding style-classes to be used for syntax highlighting
|
* The map containing the regex and corresponding style-classes to be used for syntax highlighting
|
||||||
*/
|
*/
|
||||||
|
@ -9,15 +9,11 @@ import app.model.ProgrammingLanguage;
|
|||||||
public class Empty implements ProgrammingLanguage {
|
public class Empty implements ProgrammingLanguage {
|
||||||
|
|
||||||
private String name = "?";
|
private String name = "?";
|
||||||
private URL iconPath = this.getClass().getResource("");
|
|
||||||
|
|
||||||
public String getName() {
|
public String getName() {
|
||||||
return this.name;
|
return this.name;
|
||||||
}
|
}
|
||||||
|
|
||||||
public URL getIcon() {
|
|
||||||
return this.iconPath;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Map<Pattern, String> getPatternMap() {
|
public Map<Pattern, String> getPatternMap() {
|
||||||
return Map.of();
|
return Map.of();
|
||||||
|
@ -17,7 +17,6 @@ import app.model.ProgrammingLanguage;
|
|||||||
public class Java implements ProgrammingLanguage {
|
public class Java implements ProgrammingLanguage {
|
||||||
|
|
||||||
private String name = "Java";
|
private String name = "Java";
|
||||||
private URL iconPath = this.getClass().getResource("");
|
|
||||||
|
|
||||||
private static final String[] keywords = new String[] {
|
private static final String[] keywords = new String[] {
|
||||||
"abstract", "assert", "boolean", "break", "byte",
|
"abstract", "assert", "boolean", "break", "byte",
|
||||||
@ -67,10 +66,6 @@ public class Java implements ProgrammingLanguage {
|
|||||||
return this.name;
|
return this.name;
|
||||||
}
|
}
|
||||||
|
|
||||||
public URL getIcon() {
|
|
||||||
return this.iconPath;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Map<Pattern, String> getPatternMap() {
|
public Map<Pattern, String> getPatternMap() {
|
||||||
|
|
||||||
return Java.pattern;
|
return Java.pattern;
|
||||||
|
@ -15,7 +15,6 @@ import app.model.ProgrammingLanguage;
|
|||||||
public class Markdown implements ProgrammingLanguage {
|
public class Markdown implements ProgrammingLanguage {
|
||||||
|
|
||||||
private String name = "Markdown";
|
private String name = "Markdown";
|
||||||
private URL iconPath = this.getClass().getResource("");
|
|
||||||
|
|
||||||
private static Entry<Pattern, String> e(String k, String v) {
|
private static Entry<Pattern, String> e(String k, String v) {
|
||||||
return new AbstractMap.SimpleEntry<>(Pattern.compile(k), v);
|
return new AbstractMap.SimpleEntry<>(Pattern.compile(k), v);
|
||||||
@ -52,10 +51,6 @@ public class Markdown implements ProgrammingLanguage {
|
|||||||
return this.name;
|
return this.name;
|
||||||
}
|
}
|
||||||
|
|
||||||
public URL getIcon() {
|
|
||||||
return this.iconPath;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Map<Pattern, String> getPatternMap() {
|
public Map<Pattern, String> getPatternMap() {
|
||||||
return Markdown.pattern;
|
return Markdown.pattern;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user