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