Recursive OCD code/comment formatting
This commit is contained in:
parent
b6c7a759bd
commit
15bc8379dc
@ -21,6 +21,7 @@ public class Debug {
|
||||
|
||||
/**
|
||||
* Turn debug output on and off.
|
||||
*
|
||||
* @param b
|
||||
*/
|
||||
public static void setDebug(boolean b) {
|
||||
@ -29,6 +30,7 @@ public class Debug {
|
||||
|
||||
/**
|
||||
* Check if debug output is enabled.
|
||||
*
|
||||
* @return true if it is.
|
||||
*/
|
||||
public static boolean getDebug() {
|
||||
@ -37,6 +39,7 @@ public class Debug {
|
||||
|
||||
/**
|
||||
* Call System.out.println(data) if debug output enabled.
|
||||
*
|
||||
* @param data Data to print.
|
||||
*/
|
||||
public static void println(Object data) {
|
||||
@ -47,6 +50,7 @@ public class Debug {
|
||||
|
||||
/**
|
||||
* Call System.err.println(data) if debug output enabled.
|
||||
*
|
||||
* @param data Data to print.
|
||||
*/
|
||||
public static void printerr(Object data) {
|
||||
@ -57,6 +61,7 @@ public class Debug {
|
||||
|
||||
/**
|
||||
* Call e.printStackTrace() if debug output enabled.
|
||||
*
|
||||
* @param e an Exception.
|
||||
*/
|
||||
@SuppressWarnings(value = {"CallToPrintStackTrace"})
|
||||
|
@ -1000,7 +1000,6 @@ public class Editor extends javax.swing.JInternalFrame {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Variables declaration - do not modify//GEN-BEGIN:variables
|
||||
private javax.swing.JButton clearBtn;
|
||||
private javax.swing.JMenu codeLangMenu;
|
||||
|
@ -52,6 +52,7 @@ package net.apocalypselabs.symat;
|
||||
public class FontOptions extends javax.swing.JPanel {
|
||||
|
||||
private boolean modified = false;
|
||||
|
||||
/**
|
||||
* Creates new form FontOptions
|
||||
*/
|
||||
@ -111,9 +112,9 @@ public class FontOptions extends javax.swing.JPanel {
|
||||
}// </editor-fold>//GEN-END:initComponents
|
||||
|
||||
private void jSpinner1StateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_jSpinner1StateChanged
|
||||
if ((int)jSpinner1.getValue() <= 0) {
|
||||
if ((int) jSpinner1.getValue() <= 0) {
|
||||
jSpinner1.setValue(1);
|
||||
} else if ((int)jSpinner1.getValue() > 64) {
|
||||
} else if ((int) jSpinner1.getValue() > 64) {
|
||||
jSpinner1.setValue(64);
|
||||
}
|
||||
modified = true;
|
||||
|
@ -286,7 +286,6 @@ public class InstallPlugin extends javax.swing.JInternalFrame {
|
||||
}
|
||||
}//GEN-LAST:event_installBtnActionPerformed
|
||||
|
||||
|
||||
// Variables declaration - do not modify//GEN-BEGIN:variables
|
||||
private javax.swing.JTextField author;
|
||||
private javax.swing.JLabel iconBox;
|
||||
|
@ -47,9 +47,11 @@ package net.apocalypselabs.symat;
|
||||
|
||||
/**
|
||||
* A simple key/value pair for lists and stuff.
|
||||
*
|
||||
* @author Skylar
|
||||
*/
|
||||
public class KeyValListItem {
|
||||
|
||||
// I know, not Java code standards.
|
||||
// But it's easier and cleaner this way.
|
||||
private String VAL = "";
|
||||
@ -70,6 +72,7 @@ public class KeyValListItem {
|
||||
|
||||
/**
|
||||
* Get the key.
|
||||
*
|
||||
* @return the key.
|
||||
*/
|
||||
@Override
|
||||
@ -79,6 +82,7 @@ public class KeyValListItem {
|
||||
|
||||
/**
|
||||
* Get the value of this pair.
|
||||
*
|
||||
* @return duh.
|
||||
*/
|
||||
public String getValue() {
|
||||
@ -88,6 +92,7 @@ public class KeyValListItem {
|
||||
/**
|
||||
* Set the key.
|
||||
* <br>To get it back use toString().
|
||||
*
|
||||
* @param key the key.
|
||||
*/
|
||||
public void setKey(String key) {
|
||||
@ -96,6 +101,7 @@ public class KeyValListItem {
|
||||
|
||||
/**
|
||||
* Set the value for this pair.
|
||||
*
|
||||
* @param value
|
||||
*/
|
||||
public void setValue(String value) {
|
||||
@ -104,6 +110,7 @@ public class KeyValListItem {
|
||||
|
||||
/**
|
||||
* Is this pair populated?
|
||||
*
|
||||
* @return True if key and value are empty.
|
||||
*/
|
||||
public boolean isEmpty() {
|
||||
|
@ -429,7 +429,6 @@ public class PackagePlugin extends javax.swing.JInternalFrame {
|
||||
}
|
||||
}//GEN-LAST:event_defaultIconBtnActionPerformed
|
||||
|
||||
|
||||
// Variables declaration - do not modify//GEN-BEGIN:variables
|
||||
private javax.swing.JTextField author;
|
||||
private javax.swing.JTextArea codeBox;
|
||||
|
@ -71,7 +71,9 @@ public class SingleInstanceServer extends NanoHTTPD {
|
||||
}
|
||||
|
||||
private class LaunchThread extends Thread {
|
||||
|
||||
String arg;
|
||||
|
||||
@Override
|
||||
public void run() {
|
||||
if (arg.endsWith(".sytt")) {
|
||||
|
@ -58,7 +58,7 @@ public class Theme {
|
||||
private static final Color WHITE = Color.WHITE;
|
||||
private static final Color BLACK = Color.BLACK;
|
||||
private static final Color DBACK = new Color(41, 49, 52);
|
||||
private static final Color LBACK = new Color(240,240,240);
|
||||
private static final Color LBACK = new Color(240, 240, 240);
|
||||
private static final Color DGRAY = Color.DARK_GRAY;
|
||||
private static final Color LGRAY = Color.LIGHT_GRAY;
|
||||
|
||||
|
@ -80,6 +80,7 @@ public class Task extends javax.swing.JPanel {
|
||||
public int getComplete() {
|
||||
return percent;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates new form Task
|
||||
*/
|
||||
@ -96,7 +97,7 @@ public class Task extends javax.swing.JPanel {
|
||||
)));
|
||||
statusLabel.setToolTipText(i == 100 ? "Complete" : "Incomplete");
|
||||
percentDone.setValue(i);
|
||||
percentDone.setString(i+"%");
|
||||
percentDone.setString(i + "%");
|
||||
}
|
||||
|
||||
/**
|
||||
@ -183,7 +184,6 @@ public class Task extends javax.swing.JPanel {
|
||||
}
|
||||
}//GEN-LAST:event_menuBtnActionPerformed
|
||||
|
||||
|
||||
// Variables declaration - do not modify//GEN-BEGIN:variables
|
||||
private javax.swing.JScrollPane jScrollPane1;
|
||||
private javax.swing.JButton menuBtn;
|
||||
|
@ -9,6 +9,7 @@ import java.util.ArrayList;
|
||||
|
||||
/**
|
||||
* Container to save tasks.
|
||||
*
|
||||
* @author Skylar
|
||||
*/
|
||||
public class TaskList implements Serializable {
|
||||
@ -50,6 +51,7 @@ public class TaskList implements Serializable {
|
||||
}
|
||||
|
||||
class SingleTask implements Serializable {
|
||||
|
||||
public String name = "";
|
||||
public String desc = "";
|
||||
public int percent = 0;
|
||||
|
@ -53,6 +53,7 @@ public class TaskMenu extends javax.swing.JPanel {
|
||||
|
||||
/**
|
||||
* Creates new TaskMenu
|
||||
*
|
||||
* @param percent Task completion percentage.
|
||||
* @param name Task name
|
||||
* @param desc Task description
|
||||
@ -81,6 +82,7 @@ public class TaskMenu extends javax.swing.JPanel {
|
||||
|
||||
/**
|
||||
* Get the name of the task.
|
||||
*
|
||||
* @return Task name.
|
||||
*/
|
||||
@Override
|
||||
@ -90,6 +92,7 @@ public class TaskMenu extends javax.swing.JPanel {
|
||||
|
||||
/**
|
||||
* Get the task description.
|
||||
*
|
||||
* @return The description.
|
||||
*/
|
||||
public String getDesc() {
|
||||
@ -171,7 +174,6 @@ public class TaskMenu extends javax.swing.JPanel {
|
||||
);
|
||||
}// </editor-fold>//GEN-END:initComponents
|
||||
|
||||
|
||||
// Variables declaration - do not modify//GEN-BEGIN:variables
|
||||
private javax.swing.JCheckBox delCheck;
|
||||
private javax.swing.JTextArea descBox;
|
||||
|
@ -122,7 +122,6 @@ public class TextBox extends javax.swing.JInternalFrame {
|
||||
pack();
|
||||
}// </editor-fold>//GEN-END:initComponents
|
||||
|
||||
|
||||
// Variables declaration - do not modify//GEN-BEGIN:variables
|
||||
private javax.swing.JScrollPane jScrollPane1;
|
||||
private javax.swing.JTextArea textBox;
|
||||
|
@ -35,6 +35,7 @@ public class Plugin implements Serializable {
|
||||
|
||||
/**
|
||||
* Get plugin version.
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public String getVersion() {
|
||||
@ -43,6 +44,7 @@ public class Plugin implements Serializable {
|
||||
|
||||
/**
|
||||
* Set plugin version.
|
||||
*
|
||||
* @param v
|
||||
*/
|
||||
public void setVersion(String v) {
|
||||
@ -51,6 +53,7 @@ public class Plugin implements Serializable {
|
||||
|
||||
/**
|
||||
* Get the plugin package name.
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public String getPackage() {
|
||||
@ -59,6 +62,7 @@ public class Plugin implements Serializable {
|
||||
|
||||
/**
|
||||
* Set the plugin package name.
|
||||
*
|
||||
* @param pkg
|
||||
*/
|
||||
public void setPackage(String pkg) {
|
||||
@ -67,6 +71,7 @@ public class Plugin implements Serializable {
|
||||
|
||||
/**
|
||||
* Get the plugin author name.
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public String getAuthor() {
|
||||
@ -75,6 +80,7 @@ public class Plugin implements Serializable {
|
||||
|
||||
/**
|
||||
* Set the plugin author name.
|
||||
*
|
||||
* @param s
|
||||
*/
|
||||
public void setAuthor(String s) {
|
||||
@ -83,6 +89,7 @@ public class Plugin implements Serializable {
|
||||
|
||||
/**
|
||||
* Get the plugin website.
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public String getWebsite() {
|
||||
@ -91,6 +98,7 @@ public class Plugin implements Serializable {
|
||||
|
||||
/**
|
||||
* Set the plugin website.
|
||||
*
|
||||
* @param url
|
||||
*/
|
||||
public void setWebsite(String url) {
|
||||
@ -99,6 +107,7 @@ public class Plugin implements Serializable {
|
||||
|
||||
/**
|
||||
* Get extra text data.
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public String getOther() {
|
||||
@ -107,6 +116,7 @@ public class Plugin implements Serializable {
|
||||
|
||||
/**
|
||||
* Set extra text data.
|
||||
*
|
||||
* @param o
|
||||
*/
|
||||
public void setOther(String o) {
|
||||
@ -115,6 +125,7 @@ public class Plugin implements Serializable {
|
||||
|
||||
/**
|
||||
* Get the plugin icon.
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public ImageIcon getIcon() {
|
||||
@ -123,6 +134,7 @@ public class Plugin implements Serializable {
|
||||
|
||||
/**
|
||||
* Set the plugin icon.
|
||||
*
|
||||
* @param i
|
||||
*/
|
||||
public void setIcon(ImageIcon i) {
|
||||
@ -131,6 +143,7 @@ public class Plugin implements Serializable {
|
||||
|
||||
/**
|
||||
* Get the plugin code.
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public String getScript() {
|
||||
@ -139,6 +152,7 @@ public class Plugin implements Serializable {
|
||||
|
||||
/**
|
||||
* Set the plugin code.
|
||||
*
|
||||
* @param s
|
||||
*/
|
||||
public void setScript(String s) {
|
||||
@ -147,6 +161,7 @@ public class Plugin implements Serializable {
|
||||
|
||||
/**
|
||||
* See getTitle().
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
@ -156,6 +171,7 @@ public class Plugin implements Serializable {
|
||||
|
||||
/**
|
||||
* Get the plugin short name/title.
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public String getTitle() {
|
||||
@ -164,6 +180,7 @@ public class Plugin implements Serializable {
|
||||
|
||||
/**
|
||||
* Set the plugin short name/title.
|
||||
*
|
||||
* @param n
|
||||
*/
|
||||
public void setTitle(String n) {
|
||||
@ -172,6 +189,7 @@ public class Plugin implements Serializable {
|
||||
|
||||
/**
|
||||
* Get the plugin description text.
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public String getDesc() {
|
||||
@ -180,6 +198,7 @@ public class Plugin implements Serializable {
|
||||
|
||||
/**
|
||||
* Set the plugin description text.
|
||||
*
|
||||
* @param d
|
||||
*/
|
||||
public void setDesc(String d) {
|
||||
@ -188,6 +207,7 @@ public class Plugin implements Serializable {
|
||||
|
||||
/**
|
||||
* Get the long title/short description.
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public String getLongTitle() {
|
||||
@ -196,6 +216,7 @@ public class Plugin implements Serializable {
|
||||
|
||||
/**
|
||||
* Set the long title/short description.
|
||||
*
|
||||
* @param t
|
||||
*/
|
||||
public void setLongTitle(String t) {
|
||||
@ -204,6 +225,7 @@ public class Plugin implements Serializable {
|
||||
|
||||
/**
|
||||
* Get the script language.
|
||||
*
|
||||
* @return LANG_JS or LANG_PY
|
||||
*/
|
||||
public int getLang() {
|
||||
@ -212,6 +234,7 @@ public class Plugin implements Serializable {
|
||||
|
||||
/**
|
||||
* Set the script language.
|
||||
*
|
||||
* @param l LANG_JS or LANG_PY
|
||||
*/
|
||||
public void setLang(int l) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user