mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-26 01:30:43 +00:00
Added Checkstyle to build process and fixing checkstyle to all com.src.jpexs classes
This commit is contained in:
@@ -16,7 +16,6 @@
|
||||
*/
|
||||
package com.jpexs.decompiler.flash.docs;
|
||||
|
||||
import static com.jpexs.decompiler.flash.docs.As3PCodeOtherDocs.NEWLINE;
|
||||
import com.jpexs.helpers.Cache;
|
||||
import com.jpexs.helpers.Helper;
|
||||
import com.jpexs.helpers.utf8.Utf8Helper;
|
||||
@@ -57,16 +56,16 @@ public class AbstractDocs {
|
||||
return style;
|
||||
}
|
||||
|
||||
protected static String meta(String name, String content) {
|
||||
return "\t\t<meta name=\"" + name + "\" content=\"" + content + "\">" + NEWLINE;
|
||||
}
|
||||
|
||||
protected static String metaProp(String name, String content) {
|
||||
return "\t\t<meta property=\"" + name + "\" content=\"" + content + "\">" + NEWLINE;
|
||||
return "\t\t<meta property=\"" + name + "\" content=\"" + content + "\">" + As3PCodeOtherDocs.NEWLINE;
|
||||
}
|
||||
|
||||
protected static String meta(String name, String content) {
|
||||
return "\t\t<meta name=\"" + name + "\" content=\"" + content + "\">" + As3PCodeOtherDocs.NEWLINE;
|
||||
}
|
||||
|
||||
protected static String meta(String name, Date content) {
|
||||
return "\t\t<meta name=\"" + name + "\" content=\"" + getISO8601StringForDate(content) + "\">" + NEWLINE;
|
||||
return "\t\t<meta name=\"" + name + "\" content=\"" + getISO8601StringForDate(content) + "\">" + As3PCodeOtherDocs.NEWLINE;
|
||||
}
|
||||
|
||||
protected static String getISO8601StringForDate(Date date) {
|
||||
|
||||
@@ -44,7 +44,7 @@ public class As3PCodeDocs extends AbstractDocs {
|
||||
static ResourceBundle prop;
|
||||
private static final Map<AVM2InstructionFlag, String> flagDescriptions = new HashMap<>();
|
||||
|
||||
private final static Map<String, InstructionDefinition> nameToDef = new HashMap<>();
|
||||
private static final Map<String, InstructionDefinition> nameToDef = new HashMap<>();
|
||||
|
||||
static final String NEWLINE = "\r\n";
|
||||
|
||||
@@ -304,24 +304,24 @@ public class As3PCodeDocs extends AbstractDocs {
|
||||
protected static String htmlHeader(String js, String style, boolean nightMode) {
|
||||
Date dateGenerated = new Date();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("<!DOCTYPE html>").append(NEWLINE).
|
||||
append("<html>").append(NEWLINE).
|
||||
append("\t<head>").append(NEWLINE);
|
||||
sb.append("<!DOCTYPE html>").append(NEWLINE)
|
||||
.append("<html>").append(NEWLINE)
|
||||
.append("\t<head>").append(NEWLINE);
|
||||
if (style != null && !style.isEmpty()) {
|
||||
sb.append("\t\t<style>").append(style).append("</style>").append(NEWLINE);
|
||||
}
|
||||
if (js != null && !js.isEmpty()) {
|
||||
sb.append("\t\t<script>").append(js).append("</script>").append(NEWLINE);
|
||||
}
|
||||
sb.append("\t\t<meta charset=\"UTF-8\">").append(NEWLINE).
|
||||
append(meta("generator", ApplicationInfo.applicationVerName)).
|
||||
append(meta("description", getProperty("ui.list.pageDescription"))).
|
||||
append(metaProp("og:title", getProperty("ui.list.pageTitle"))).
|
||||
append(metaProp("og:type", "article")).
|
||||
append(metaProp("og:description", getProperty("ui.list.pageDescription"))).
|
||||
append(meta("date", dateGenerated)).
|
||||
append("\t\t<title>").append(getProperty("ui.list.documentTitle")).append("</title>").append(NEWLINE).
|
||||
append("\t</head>").append(NEWLINE);
|
||||
sb.append("\t\t<meta charset=\"UTF-8\">").append(NEWLINE)
|
||||
.append(meta("generator", ApplicationInfo.applicationVerName))
|
||||
.append(meta("description", getProperty("ui.list.pageDescription")))
|
||||
.append(metaProp("og:title", getProperty("ui.list.pageTitle")))
|
||||
.append(metaProp("og:type", "article"))
|
||||
.append(metaProp("og:description", getProperty("ui.list.pageDescription")))
|
||||
.append(meta("date", dateGenerated))
|
||||
.append("\t\t<title>").append(getProperty("ui.list.documentTitle")).append("</title>").append(NEWLINE)
|
||||
.append("\t</head>").append(NEWLINE);
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
|
||||
@@ -65,7 +65,7 @@ public class As3PCodeOtherDocs extends AbstractDocs {
|
||||
}
|
||||
sb.append("<div class=\"otherdoc\">");
|
||||
|
||||
String pathParts[] = new String[]{path};
|
||||
String[] pathParts = new String[]{path};
|
||||
if (path.contains(".")) {
|
||||
pathParts = path.split("\\.");
|
||||
}
|
||||
@@ -108,24 +108,24 @@ public class As3PCodeOtherDocs extends AbstractDocs {
|
||||
protected static String htmlHeader(String js, String style) {
|
||||
Date dateGenerated = new Date();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("<!DOCTYPE html>").append(NEWLINE).
|
||||
append("<html>").append(NEWLINE).
|
||||
append("\t<head>").append(NEWLINE);
|
||||
sb.append("<!DOCTYPE html>").append(NEWLINE)
|
||||
.append("<html>").append(NEWLINE)
|
||||
.append("\t<head>").append(NEWLINE);
|
||||
if (style != null && !style.isEmpty()) {
|
||||
sb.append("\t\t<style>").append(style).append("</style>").append(NEWLINE);
|
||||
}
|
||||
if (js != null && !js.isEmpty()) {
|
||||
sb.append("\t\t<script>").append(js).append("</script>").append(NEWLINE);
|
||||
}
|
||||
sb.append("\t\t<meta charset=\"UTF-8\">").append(NEWLINE).
|
||||
append(meta("generator", ApplicationInfo.applicationVerName)).
|
||||
append(meta("description", getProperty("ui.list.pageDescription"))).
|
||||
append(metaProp("og:title", getProperty("ui.list.pageTitle"))).
|
||||
append(metaProp("og:type", "article")).
|
||||
append(metaProp("og:description", getProperty("ui.list.pageDescription"))).
|
||||
append(meta("date", dateGenerated)).
|
||||
append("\t\t<title>").append(getProperty("ui.list.documentTitle")).append("</title>").append(NEWLINE).
|
||||
append("\t</head>").append(NEWLINE);
|
||||
sb.append("\t\t<meta charset=\"UTF-8\">").append(NEWLINE)
|
||||
.append(meta("generator", ApplicationInfo.applicationVerName))
|
||||
.append(meta("description", getProperty("ui.list.pageDescription")))
|
||||
.append(metaProp("og:title", getProperty("ui.list.pageTitle")))
|
||||
.append(metaProp("og:type", "article"))
|
||||
.append(metaProp("og:description", getProperty("ui.list.pageDescription")))
|
||||
.append(meta("date", dateGenerated))
|
||||
.append("\t\t<title>").append(getProperty("ui.list.documentTitle")).append("</title>").append(NEWLINE)
|
||||
.append("\t</head>").append(NEWLINE);
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
|
||||
@@ -1,33 +1,100 @@
|
||||
html, body {margin:0px; padding: 0px;}
|
||||
.instruction {background-color: #f5f5b5; color:black;}
|
||||
.otherdoc {background-color: #f5f5b5; color:black;}
|
||||
li.instruction-item {list-style:none; padding:0px;border:1px solid black; border-bottom:none; border-collapse:collapse; }
|
||||
ul.instruction-list {padding-left:0; display:table; border-bottom:1px solid black;}
|
||||
strong.instruction-name {font-weight: bold; color: blue;}
|
||||
strong.stack-title {font-weight: bold;}
|
||||
strong.flags-title {font-weight: bold;}
|
||||
.hidden {display:none}
|
||||
.filter-flag-title {display:inline-block; width: 50ex;}
|
||||
.instruction {padding:5px;}
|
||||
.instruction.instruction-flag-noFlashPlayer {background-color: #cccccc;}
|
||||
body {font-family: serif;}
|
||||
h1, h2, h3, h4, h5 {font-family: sans-serif;}
|
||||
.instruction-signature {font-family: "Courier New", monospace; font-size: 1.05em;}
|
||||
.filter {font-family: sans-serif; }
|
||||
.path {font-weight: bold; color: blue;}
|
||||
.path-block {}
|
||||
.path-docs {}
|
||||
html, body {
|
||||
margin:0px;
|
||||
padding: 0px;
|
||||
}
|
||||
.instruction {
|
||||
background-color: #f5f5b5;
|
||||
color:black;
|
||||
}
|
||||
.otherdoc {
|
||||
background-color: #f5f5b5;
|
||||
color:black;
|
||||
}
|
||||
li.instruction-item {
|
||||
list-style:none;
|
||||
padding:0px;
|
||||
border:1px solid black;
|
||||
border-bottom:none;
|
||||
border-collapse:collapse;
|
||||
}
|
||||
ul.instruction-list {
|
||||
padding-left:0;
|
||||
display:table;
|
||||
border-bottom:1px solid black;
|
||||
}
|
||||
strong.instruction-name {
|
||||
font-weight: bold;
|
||||
color: blue;
|
||||
}
|
||||
strong.stack-title {
|
||||
font-weight: bold;
|
||||
}
|
||||
strong.flags-title {
|
||||
font-weight: bold;
|
||||
}
|
||||
.hidden {
|
||||
display:none
|
||||
}
|
||||
.filter-flag-title {
|
||||
display:inline-block;
|
||||
width: 50ex;
|
||||
}
|
||||
.instruction {
|
||||
padding:5px;
|
||||
}
|
||||
.instruction.instruction-flag-noFlashPlayer {
|
||||
background-color: #cccccc;
|
||||
}
|
||||
body {
|
||||
font-family: serif;
|
||||
}
|
||||
h1, h2, h3, h4, h5 {
|
||||
font-family: sans-serif;
|
||||
}
|
||||
.instruction-signature {
|
||||
font-family: "Courier New", monospace;
|
||||
font-size: 1.05em;
|
||||
}
|
||||
.filter {
|
||||
font-family: sans-serif;
|
||||
}
|
||||
.path {
|
||||
font-weight: bold;
|
||||
color: blue;
|
||||
}
|
||||
.path-block {
|
||||
}
|
||||
.path-docs {
|
||||
}
|
||||
|
||||
|
||||
.night {background-color: red;}
|
||||
.night {
|
||||
background-color: red;
|
||||
}
|
||||
|
||||
body.standalone {background-color: #f5f5b5;}
|
||||
body.standalonenight {background-color: #330;}
|
||||
body.standalone {
|
||||
background-color: #f5f5b5;
|
||||
}
|
||||
body.standalonenight {
|
||||
background-color: #330;
|
||||
}
|
||||
|
||||
body.standalonenight .instruction {background-color: #330; color:white;}
|
||||
body.standalonenight .otherdoc {background-color: #330; color:white;}
|
||||
body.standalonenight .instruction.instruction-flag-noFlashPlayer {background-color: #333;}
|
||||
body.standalonenight .instruction {
|
||||
background-color: #330;
|
||||
color:white;
|
||||
}
|
||||
body.standalonenight .otherdoc {
|
||||
background-color: #330;
|
||||
color:white;
|
||||
}
|
||||
body.standalonenight .instruction.instruction-flag-noFlashPlayer {
|
||||
background-color: #333;
|
||||
}
|
||||
|
||||
body.standalonenight strong.instruction-name {color: #88f;}
|
||||
body.standalonenight strong.instruction-name {
|
||||
color: #88f;
|
||||
}
|
||||
|
||||
body.standalonenight .path {color: #88f;}
|
||||
body.standalonenight .path {
|
||||
color: #88f;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user