home *** CD-ROM | disk | FTP | other *** search
- import java.awt.Button;
- import java.awt.Checkbox;
- import java.awt.Choice;
- import java.awt.Component;
- import java.awt.Container;
- import java.awt.Dialog;
- import java.awt.Event;
- import java.awt.FlowLayout;
- import java.awt.Frame;
- import java.awt.GridBagConstraints;
- import java.awt.GridBagLayout;
- import java.awt.Image;
- import java.awt.Label;
- import java.awt.Panel;
- import java.awt.TextField;
- import java.awt.Toolkit;
- import java.awt.Window;
- import java.io.File;
- import java.io.FileInputStream;
- import java.io.FileNotFoundException;
- import java.io.FileOutputStream;
- import java.io.IOException;
- import java.io.StringWriter;
- import java.util.Enumeration;
- import java.util.Hashtable;
- import java.util.Locale;
- import java.util.Properties;
- import java.util.ResourceBundle;
-
- class BrowserOptions extends Dialog {
- Frame parent;
- static Properties sectionDict = null;
- Button setButton;
- Button addButton;
- Button delButton;
- Button helpButton;
- Button modifyButton;
- TextField compileField;
- TextField compilerField;
- TextField debugField;
- TextField javaField;
- TextField importsField;
- Choice spacesField;
- TextField grepField;
- TextField htmlBrowserField;
- TextField appletOptionField;
- TextField destinationField;
- TextField optionalClasspathField;
- TextField documentField;
- Choice userDirField;
- Choice otherOptionsField;
- Checkbox transcriptField;
- Checkbox autoSaveField;
- Checkbox suggestUpdateField;
- static String document = "";
- static String documenter = "javadoc";
- static String compiler = "javac";
- static String debugger = "jdb";
- static String interpreter = "java";
- static String compile = "-g";
- static String debug = "";
- static String java = "";
- static String imports = "java.awt.* java.io.*";
- static String htmlBrowser = "";
- static String destination = "";
- static String optionalClasspath = "";
- static String appletOption = "";
- static String jigHome = "";
- static int spaces;
- static boolean test;
- static String grep = "grep32";
- static String userDir = "";
- static String appletViewer = "appletViewer";
- static String iniFileName = "jig.properties";
- static String reFilename = "re.properties";
- static boolean transcript = true;
- static boolean autoSave = true;
- static boolean suggestUpdate = true;
- static boolean testRecord;
- static Image iconImage = null;
- static String[] specialSystem = new String[10];
- static Properties regularExpressions = null;
- static ResourceBundle messages;
- static String languageCode = "en";
- static String countryCode = "US";
- static boolean htmlBrowserValid;
- static Hashtable otherOptions = null;
- static String[] otherOptionsList = new String[]{"appletViewer", "compiler", "countryCode", "debugger", "documenter", "grep", "interpreter", "languageCode", "specialSystem0", "specialSystem1", "specialSystem2", "specialSystem3", "specialSystem4", "specialSystem5", "specialSystem6", "specialSystem7", "specialSystem8", "specialSystem9"};
-
- BrowserOptions(Frame var1, String var2) {
- super(var1, var2, false);
- this.parent = var1;
- GridBagLayout var3 = new GridBagLayout();
- GridBagConstraints var4 = new GridBagConstraints();
- ((Container)this).setLayout(var3);
- var4.fill = 1;
- var4.gridwidth = 0;
- var4.weighty = (double)1.0F;
- var4.anchor = 13;
- Panel var5 = new Panel();
- ((Container)var5).setLayout(new FlowLayout(2));
- var3.setConstraints(var5, var4);
- Panel var6 = new Panel();
- ((Container)var6).setLayout(new FlowLayout(2));
- var3.setConstraints(var6, var4);
- Panel var7 = new Panel();
- ((Container)var7).setLayout(new FlowLayout(2));
- var3.setConstraints(var7, var4);
- Panel var8 = new Panel();
- ((Container)var8).setLayout(new FlowLayout(2));
- var3.setConstraints(var8, var4);
- Panel var9 = new Panel();
- ((Container)var9).setLayout(new FlowLayout(2));
- var3.setConstraints(var9, var4);
- Panel var10 = new Panel();
- ((Container)var10).setLayout(new FlowLayout(2));
- var3.setConstraints(var10, var4);
- Panel var11 = new Panel();
- ((Container)var11).setLayout(new FlowLayout(2));
- var3.setConstraints(var11, var4);
- Panel var12 = new Panel();
- ((Container)var12).setLayout(new FlowLayout(2));
- var3.setConstraints(var12, var4);
- Panel var13 = new Panel();
- ((Container)var13).setLayout(new FlowLayout(1));
- var3.setConstraints(var13, var4);
- Panel var14 = new Panel();
- ((Container)var14).setLayout(new FlowLayout(1));
- var3.setConstraints(var14, var4);
- Panel var15 = new Panel();
- ((Container)var15).setLayout(new FlowLayout(2));
- var3.setConstraints(var15, var4);
- Panel var16 = new Panel();
- ((Container)var16).setLayout(new FlowLayout(1));
- var3.setConstraints(var16, var4);
- Panel var17 = new Panel();
- ((Container)var17).setLayout(new FlowLayout(2));
- var3.setConstraints(var17, var4);
- Panel var18 = new Panel();
- ((Container)var18).setLayout(new FlowLayout(2));
- var3.setConstraints(var18, var4);
- ((Container)var5).add(new Label(messages.getString("CompileOpt") + " ", 2));
- ((Container)var5).add(this.compileField = new TextField(compile, 40));
- ((Container)var15).add(new Label(messages.getString("DocumentOp") + " ", 2));
- ((Container)var15).add(this.documentField = new TextField(document, 40));
- ((Container)var6).add(new Label(messages.getString("DebugOptio") + " ", 2));
- ((Container)var6).add(this.debugField = new TextField(debug, 40));
- ((Container)var7).add(new Label(messages.getString("JavaOption") + " ", 2));
- ((Container)var7).add(this.javaField = new TextField(java, 40));
- ((Container)var8).add(new Label(messages.getString("Imports") + " ", 2));
- ((Container)var8).add(this.importsField = new TextField(imports, 40));
- ((Container)var9).add(new Label(messages.getString("Grep") + " ", 2));
- ((Container)var9).add(this.grepField = new TextField(grep, 40));
- ((Container)var10).add(new Label(messages.getString("HTMLBrowser") + " ", 2));
- ((Container)var10).add(this.htmlBrowserField = new TextField(htmlBrowser, 40));
- ((Container)var11).add(new Label(messages.getString("OptionalCl") + " ", 2));
- ((Container)var11).add(this.optionalClasspathField = new TextField(optionalClasspath, 40));
- ((Container)var18).add(new Label(messages.getString("Destination") + " ", 2));
- ((Container)var18).add(this.destinationField = new TextField(destination, 40));
- ((Container)var12).add(new Label(messages.getString("AppletViewe") + " ", 2));
- ((Container)var12).add(this.appletOptionField = new TextField(appletOption, 40));
- ((Container)var13).add(this.transcriptField = new Checkbox(messages.getString("UseTranscr"), transcript));
- ((Container)var13).add(this.autoSaveField = new Checkbox(messages.getString("UseAutoSav"), autoSave));
- ((Container)var13).add(this.suggestUpdateField = new Checkbox(messages.getString("SuggestUpdate"), suggestUpdate));
- ((Container)var16).add(new Label(messages.getString("PackageRoo") + " ", 2));
- ((Container)var16).add(this.userDirField = new Choice());
- this.addButton = new Button(messages.getString("Add"));
- ((Container)var16).add(this.addButton);
- this.delButton = new Button(messages.getString("Delete"));
- ((Container)var16).add(this.delButton);
- if (!userDir.equals("")) {
- this.userDirField.add(userDir);
- }
-
- String var19 = "";
-
- for(int var20 = 0; var19 != null; ++var20) {
- var19 = (String)sectionDict.get(var20 > 0 ? "userDirectory" + Integer.toString(var20) : "userDirectory");
- if (var19 != null && !var19.equals(userDir)) {
- this.userDirField.add(var19);
- }
- }
-
- ((Container)var14).add(new Label(messages.getString("FormatSpac") + " ", 2));
- ((Container)var14).add(this.spacesField = new Choice());
- this.spacesField.add(messages.getString("Tab"));
- this.spacesField.add("2");
- this.spacesField.add("4");
- this.spacesField.add("6");
- this.spacesField.add("8");
- this.spacesField.add("10");
- if (spaces == 0) {
- this.spacesField.select(messages.getString("Tab"));
- } else {
- this.spacesField.select(String.valueOf(spaces).trim());
- }
-
- ((Container)var14).add(new Label(messages.getString("OtherOption") + " ", 2));
- ((Container)var14).add(this.otherOptionsField = new Choice());
- this.modifyButton = new Button(messages.getString("Modify"));
- ((Container)var14).add(this.modifyButton);
-
- for(int var21 = 0; var21 < otherOptionsList.length; ++var21) {
- this.otherOptionsField.add(otherOptionsList[var21]);
- }
-
- ((Container)var17).add(new Label(messages.getString("Compiler") + " ", 2));
- ((Container)var17).add(this.compilerField = new TextField(compiler, 40));
- ((Container)this).add(var10);
- ((Container)this).add(var8);
- ((Container)this).add(var11);
- ((Container)this).add(var18);
- ((Container)this).add(var12);
- ((Container)this).add(var5);
- ((Container)this).add(var6);
- ((Container)this).add(var7);
- ((Container)this).add(var15);
- ((Container)this).add(var13);
- ((Container)this).add(var14);
- ((Container)this).add(var16);
- Panel var22 = new Panel();
- ((Container)var22).setLayout(new FlowLayout(1));
- var3.setConstraints(var22, var4);
- this.setButton = new Button(messages.getString("OK"));
- ((Container)var22).add(this.setButton);
- ((Container)var22).add(new Button(messages.getString("Cancel")));
- this.helpButton = new Button(messages.getString("Help"));
- ((Container)var22).add(this.helpButton);
- ((Container)this).add(var22);
- loadOtherOptions();
- ((Component)this).setSize(400, 500);
- ((Window)this).pack();
- ((Dialog)this).show();
- }
-
- public boolean action(Event var1, Object var2) {
- if (var1.target == this.helpButton) {
- File var12 = new File((!jigHome.equals("") ? jigHome : System.getProperty("user.dir")) + System.getProperty("file.separator") + "JigOptions.hlp");
- if (var12.exists()) {
- new InformationDialog(new Frame(), var12);
- }
-
- return true;
- } else if (var1.target == this.modifyButton) {
- Frame var10002 = this.parent;
- String var10003 = messages.getString("ModifyOption") + " " + this.otherOptionsField.getSelectedItem();
- String var10004 = messages.getString("EnterTheNewV");
- String var10 = this.otherOptionsField.getSelectedItem();
- QueryDialog var11 = new QueryDialog(var10002, var10003, var10004, (String)otherOptions.get(var10));
- String var14 = var11.getText();
- if (var14 != null) {
- String var15 = this.otherOptionsField.getSelectedItem();
- otherOptions.put(var15, var14);
- }
-
- return true;
- } else if (var1.target == this.addButton) {
- QueryDialog var9 = new QueryDialog(this.parent, messages.getString("AddUserDir"), messages.getString("EnterTheNewU"));
- String var13 = var9.getText();
- if (var13 != null) {
- File var5 = new File(var13);
- if (!var5.isDirectory()) {
- new InformationDialog(this.parent, messages.getString("TheUserDir") + " " + var13 + messages.getString("IsNotaVali"));
- return true;
- }
-
- this.userDirField.add(var13);
- this.userDirField.select(var13);
- }
-
- if (this.userDirField.getItemCount() > 1) {
- this.delButton.setEnabled(true);
- }
-
- return true;
- } else if (var1.target == this.delButton) {
- if (this.userDirField.getItemCount() > 1) {
- this.userDirField.remove(this.userDirField.getSelectedIndex());
- }
-
- if (this.userDirField.getItemCount() == 1) {
- this.delButton.setEnabled(false);
- }
-
- return true;
- } else {
- if (var1.target == this.setButton) {
- compile = this.compileField.getText();
- document = this.documentField.getText();
- debug = this.debugField.getText();
- java = this.javaField.getText();
- imports = this.importsField.getText();
- grep = this.grepField.getText();
- if (this.spacesField.getSelectedItem().equals(messages.getString("Tab"))) {
- spaces = Integer.parseInt("0");
- } else {
- spaces = Integer.parseInt(this.spacesField.getSelectedItem());
- }
-
- optionalClasspath = this.optionalClasspathField.getText();
- destination = this.destinationField.getText();
- appletOption = this.appletOptionField.getText();
- htmlBrowser = this.htmlBrowserField.getText();
- transcript = this.transcriptField.getState();
- autoSave = this.autoSaveField.getState();
- suggestUpdate = this.suggestUpdateField.getState();
- saveOtherOptions();
- if (htmlBrowser.equals("")) {
- htmlBrowserValid = false;
- } else {
- Object var3 = null;
- String var6;
- if (!htmlBrowser.endsWith(".exe") && !htmlBrowser.endsWith(".EXE")) {
- var6 = htmlBrowser + ".exe";
- } else {
- var6 = htmlBrowser;
- }
-
- File var4 = new File(var6);
- if (var4.exists()) {
- htmlBrowserValid = true;
- } else {
- htmlBrowserValid = false;
- }
- }
-
- if (!userDir.equals(this.userDirField.getSelectedItem())) {
- userDir = this.userDirField.getSelectedItem();
- if (userDir == null) {
- userDir = "";
- }
-
- if (this.parent instanceof BrowserView && this.parent.getTitle().startsWith(AboutBrowser.systemName)) {
- this.parent.setCursor(3);
- BrowserView var7 = (BrowserView)this.parent;
- if (var7.testDiscard()) {
- var7.model.reinit();
- }
-
- this.parent.setCursor(0);
- }
- }
-
- this.save();
- if (test) {
- System.err.println("compiler: " + compiler);
- System.err.println("compile: " + compile);
- System.err.println("debug: " + debug);
- System.err.println("java: " + java);
- System.err.println("imports: " + imports);
- System.err.println(messages.getString("Grep") + " " + grep);
- System.err.println("spaces: " + spaces);
- System.err.println("userDir: " + userDir);
- System.exit(0);
- } else if (this.parent instanceof BrowserView) {
- BrowserView var8 = (BrowserView)this.parent;
- var8.updateState();
- }
- }
-
- if (var1.target instanceof Button) {
- ((Window)this).dispose();
- if (test) {
- System.exit(0);
- }
- }
-
- return true;
- }
- }
-
- public static void main(String[] var0) {
- test = true;
- init();
- Frame var1 = new Frame();
- var1.setIconImage(iconImage);
- new BrowserOptions(var1, messages.getString("JIGBrowser"));
- }
-
- public static int spaces() {
- return spaces;
- }
-
- public static String compile() {
- return compile;
- }
-
- public static String debug() {
- return debug;
- }
-
- public static String java() {
- return java;
- }
-
- public boolean handleEvent(Event var1) {
- switch (var1.id) {
- case 201:
- ((Window)this).dispose();
- default:
- return super.handleEvent(var1);
- }
- }
-
- public static String imports() {
- return imports;
- }
-
- public static String grep() {
- return grep.trim();
- }
-
- void setProperty(String var1, String var2) {
- Properties var3 = System.getProperties();
- ((Hashtable)var3).put(var1, var2);
- System.setProperties(var3);
- }
-
- public static String delimiter() {
- return System.getProperty("file.separator");
- }
-
- public static char delimiterChar() {
- String var0 = System.getProperty("file.separator");
- return var0.charAt(0);
- }
-
- void save() {
- sectionDict.put("documenter", documenter);
- sectionDict.put("compiler", compiler);
- sectionDict.put("debugger", debugger);
- sectionDict.put("interpreter", interpreter);
- sectionDict.put("compileFlags", compile);
- sectionDict.put("documentFlags", document);
- sectionDict.put("debugFlags", debug);
- sectionDict.put("javaFlags", java);
- sectionDict.put("evaluationImports", imports);
- sectionDict.put("spaces", String.valueOf(spaces));
- sectionDict.put("grep", grep);
- sectionDict.put("userDirectory", userDir);
- sectionDict.put("htmlBrowser", htmlBrowser);
- sectionDict.put("appletViewer", appletViewer);
- sectionDict.put("destination", destination);
- sectionDict.put("optionalClasspath", optionalClasspath);
- sectionDict.put("appletOptions", appletOption);
- sectionDict.put("languageCode", languageCode);
- sectionDict.put("countryCode", countryCode);
- sectionDict.put("transcript", transcript ? "true" : "false");
- sectionDict.put("autoSave", autoSave ? "true" : "false");
- sectionDict.put("suggestUpdate", suggestUpdate ? "true" : "false");
-
- for(int var1 = 0; var1 < 10; ++var1) {
- if (specialSystem[var1] == null) {
- specialSystem[var1] = "";
- }
-
- sectionDict.put("system" + var1, specialSystem[var1]);
- }
-
- if (this.userDirField.getItemCount() > 0) {
- this.userDirField.remove(this.userDirField.getSelectedIndex());
- }
-
- for(int var2 = 0; var2 < this.userDirField.getItemCount(); ++var2) {
- sectionDict.put("userDirectory" + (var2 + 1), this.userDirField.getItem(var2));
- }
-
- writeIni((!jigHome.equals("") ? jigHome : System.getProperty("user.dir")) + System.getProperty("file.separator") + iniFileName);
- }
-
- static void init() {
- parseIni((!jigHome.equals("") ? jigHome : System.getProperty("user.dir")) + System.getProperty("file.separator") + iniFileName);
- Object var0 = null;
- if (sectionDict != null) {
- String var3 = (String)sectionDict.get("documenter");
- if (var3 != null) {
- documenter = var3;
- }
-
- var3 = (String)sectionDict.get("compiler");
- if (var3 != null) {
- compiler = var3;
- }
-
- var3 = (String)sectionDict.get("debugger");
- if (var3 != null) {
- debugger = var3;
- }
-
- var3 = (String)sectionDict.get("interpreter");
- if (var3 != null) {
- interpreter = var3;
- }
-
- var3 = (String)sectionDict.get("compileFlags");
- if (var3 != null) {
- compile = var3;
- }
-
- var3 = (String)sectionDict.get("documentFlags");
- if (var3 != null) {
- document = var3;
- }
-
- var3 = (String)sectionDict.get("debugFlags");
- if (var3 != null) {
- debug = var3;
- }
-
- var3 = (String)sectionDict.get("javaFlags");
- if (var3 != null) {
- java = var3;
- }
-
- var3 = (String)sectionDict.get("evaluationImports");
- if (var3 != null) {
- imports = var3;
- }
-
- var3 = (String)sectionDict.get("spaces");
- if (var3 != null) {
- spaces = Double.valueOf(var3).intValue();
- }
-
- var3 = (String)sectionDict.get("grep");
- if (var3 != null) {
- grep = var3;
- }
-
- var3 = (String)sectionDict.get("userDirectory");
- if (var3 != null) {
- userDir = var3;
- }
-
- var3 = (String)sectionDict.get("destination");
- if (var3 != null) {
- destination = var3;
- }
-
- var3 = (String)sectionDict.get("optionalClasspath");
- if (var3 != null) {
- optionalClasspath = var3;
- }
-
- var3 = (String)sectionDict.get("htmlBrowser");
- if (var3 != null) {
- htmlBrowser = var3;
- }
-
- if (htmlBrowser.equals("")) {
- htmlBrowserValid = false;
- } else {
- Object var1 = null;
- String var27;
- if (!htmlBrowser.endsWith(".exe") && !htmlBrowser.endsWith(".EXE")) {
- var27 = htmlBrowser + ".exe";
- } else {
- var27 = htmlBrowser;
- }
-
- File var2 = new File(var27);
- if (var2.exists()) {
- htmlBrowserValid = true;
- } else {
- htmlBrowserValid = false;
- }
- }
-
- var3 = (String)sectionDict.get("appletViewer");
- if (var3 != null) {
- appletViewer = var3;
- }
-
- var3 = (String)sectionDict.get("appletOptions");
- if (var3 != null) {
- appletOption = var3;
- }
-
- var3 = (String)sectionDict.get("languageCode");
- if (var3 != null) {
- languageCode = var3;
- }
-
- var3 = (String)sectionDict.get("countryCode");
- if (var3 != null) {
- countryCode = var3;
- }
-
- var3 = (String)sectionDict.get("transcript");
- if (var3 != null) {
- if (var3.equalsIgnoreCase("true")) {
- transcript = true;
- } else {
- transcript = false;
- }
- }
-
- var3 = (String)sectionDict.get("autoSave");
- if (var3 != null) {
- if (var3.equalsIgnoreCase("true")) {
- autoSave = true;
- } else {
- autoSave = false;
- }
- }
-
- var3 = (String)sectionDict.get("suggestUpdate");
- if (var3 != null) {
- if (var3.equalsIgnoreCase("true")) {
- suggestUpdate = true;
- } else {
- suggestUpdate = false;
- }
- }
-
- var3 = (String)sectionDict.get("test");
- if (var3 != null) {
- if (var3.equalsIgnoreCase("true")) {
- testRecord = true;
- } else {
- testRecord = false;
- }
- }
-
- for(int var28 = 0; var28 < 10; ++var28) {
- var3 = (String)sectionDict.get("system" + var28);
- if (var3 != null) {
- specialSystem[var28] = var3;
- } else {
- specialSystem[var28] = "";
- }
- }
-
- messages = ResourceBundle.getBundle("locale", new Locale(languageCode, countryCode));
- iconImage = Toolkit.getDefaultToolkit().getImage((!jigHome.equals("") ? jigHome : System.getProperty("user.dir")) + System.getProperty("file.separator") + "jig32.gif");
- AboutBrowser.loadLicenseFile();
- LoadREFile();
- }
- }
-
- public static void parseIni(String var0) {
- sectionDict = new Properties();
-
- try {
- FileInputStream var1 = new FileInputStream(var0);
- sectionDict.load(var1);
- var1.close();
- } catch (FileNotFoundException var2) {
- System.err.println("Load ini file: " + var2);
- } catch (IOException var3) {
- System.err.println("Load ini file: " + var3);
- }
- }
-
- public static void writeIni(String var0) {
- try {
- FileOutputStream var1 = new FileOutputStream(var0);
- sectionDict.save(var1, messages.getString("JIGPropert"));
- var1.close();
- } catch (FileNotFoundException var2) {
- System.err.println("write ini file: " + var2);
- } catch (IOException var3) {
- System.err.println("write ini file: " + var3);
- }
- }
-
- public static String printDict(Hashtable var0) {
- StringWriter var1 = new StringWriter();
- Object var2 = null;
- Object var3 = null;
- Enumeration var4 = var0.keys();
-
- while(var4.hasMoreElements()) {
- String var7;
- var1.write("\n[" + (var7 = (String)var4.nextElement()) + "]\n");
- Hashtable var5 = (Hashtable)var0.get(var7);
- Enumeration var6 = var5.keys();
-
- while(var6.hasMoreElements()) {
- String var8;
- var1.write((var8 = (String)var6.nextElement()) + "=");
- var1.write((String)var5.get(var8) + "\n");
- }
- }
-
- return var1.toString();
- }
-
- public static String GetRootDir() {
- return !jigHome.equals("") ? jigHome : System.getProperty("user.dir");
- }
-
- public static String userDir() {
- return userDir;
- }
-
- public static String compiler() {
- return compiler;
- }
-
- public static Image getIconImage() {
- return iconImage;
- }
-
- static boolean isWindows() {
- if (System.getProperty("os.name").equals("Windows 95")) {
- return true;
- } else {
- return System.getProperty("os.name").equals("Windows NT");
- }
- }
-
- static String specialSystem(int var0) {
- return specialSystem[var0];
- }
-
- private String makeKeyName(String var1, int var2) {
- return var2 > 0 ? var1 + Integer.toString(var2) : var1;
- }
-
- public static String htmlBrowser() {
- return htmlBrowser.trim();
- }
-
- public static String classpath() {
- return !optionalClasspath.equals("") ? optionalClasspath : System.getProperty("java.class.path");
- }
-
- public static String jigHome() {
- return jigHome;
- }
-
- public static void setJigHome(String var0) {
- jigHome = var0;
- }
-
- String iniFileName() {
- return this.iniFileName();
- }
-
- public static void setIniFileName(String var0) {
- iniFileName = var0;
- }
-
- public static String appletViewer() {
- return appletViewer;
- }
-
- public static String appletOption() {
- return appletOption;
- }
-
- public static boolean transcript() {
- return transcript;
- }
-
- public static void LoadREFile() {
- String var0 = (!jigHome.equals("") ? jigHome : System.getProperty("user.dir")) + System.getProperty("file.separator") + reFilename;
-
- try {
- FileInputStream var1 = new FileInputStream(var0);
- regularExpressions = new Properties();
- regularExpressions.load(var1);
- var1.close();
- } catch (IOException var2) {
- System.out.println(var0 + messages.getString("RegularExp") + " " + var2);
- }
- }
-
- public static String getREReferences(String var0) {
- if (var0.length() >= 1 && var0.charAt(var0.length() - 1) == '\\') {
- if (var0.length() >= 2) {
- if (var0.charAt(var0.length() - 2) != '\\') {
- var0 = var0 + "\\";
- }
- } else {
- var0 = var0 + "\\";
- }
- }
-
- return regularExpressions == null ? "" : "\"" + var0 + "\"";
- }
-
- public static String getRESenders(String var0) {
- return regularExpressions == null ? "" : "\"" + regularExpressions.getProperty("senders1") + var0 + regularExpressions.getProperty("senders2") + "\"";
- }
-
- public static String getREReceivers(String var0) {
- return regularExpressions == null ? "" : "\"" + regularExpressions.getProperty("receivers1") + var0 + regularExpressions.getProperty("receivers2") + "\"";
- }
-
- public static String getREExtenders(String var0, String var1, String var2) {
- return regularExpressions == null ? "" : "\"" + regularExpressions.getProperty("extenders1") + var0 + regularExpressions.getProperty("extenders2") + var1 + regularExpressions.getProperty("extenders3") + var2 + regularExpressions.getProperty("extenders4") + "\"";
- }
-
- public static String getREImplementors(String var0, String var1, String var2) {
- return regularExpressions == null ? "" : "\"" + regularExpressions.getProperty("implementors1") + var0 + regularExpressions.getProperty("implementors2") + var1 + regularExpressions.getProperty("implementors3") + var2 + regularExpressions.getProperty("implementors4") + "\"";
- }
-
- public static String getREHierarchy(String var0, String var1) {
- return regularExpressions == null ? "" : "\"" + regularExpressions.getProperty("hierarchy1") + var0 + regularExpressions.getProperty("hierarchy2") + var1 + regularExpressions.getProperty("hierarchy3") + "\"";
- }
-
- public static String getREInterfaces(String var0, String var1) {
- return regularExpressions == null ? "" : "\"" + regularExpressions.getProperty("interfaces1") + var0 + regularExpressions.getProperty("interfaces2") + var1 + regularExpressions.getProperty("interfaces3") + "\"";
- }
-
- private static String reFilename() {
- return reFilename;
- }
-
- static boolean autoSave() {
- return autoSave;
- }
-
- static String document() {
- return document;
- }
-
- static String getString(String var0) {
- return messages.getString(var0);
- }
-
- static boolean test() {
- return testRecord;
- }
-
- public static String debugger() {
- return debugger;
- }
-
- public static String interpreter() {
- return interpreter;
- }
-
- public static String documenter() {
- return documenter;
- }
-
- private String helpFileName() {
- return "JigOptions.hlp";
- }
-
- private static void setOptionField(String var0, String var1) {
- otherOptions.put(var0, var1);
- }
-
- private static String getOptionField(String var0) {
- return (String)otherOptions.get(var0);
- }
-
- static void loadOtherOptions() {
- otherOptions = new Hashtable();
- otherOptions.put("appletViewer", appletViewer);
- otherOptions.put("compiler", compiler);
- otherOptions.put("countryCode", countryCode);
- otherOptions.put("debugger", debugger);
- otherOptions.put("documenter", documenter);
- otherOptions.put("grep", grep);
- otherOptions.put("interpreter", interpreter);
- otherOptions.put("languageCode", languageCode);
-
- for(int var0 = 0; var0 < 10; ++var0) {
- otherOptions.put("specialSystem" + var0, specialSystem[var0]);
- }
-
- }
-
- static void saveOtherOptions() {
- appletViewer = (String)otherOptions.get("appletViewer");
- compiler = (String)otherOptions.get("compiler");
- countryCode = (String)otherOptions.get("countryCode");
- debugger = (String)otherOptions.get("debugger");
- documenter = (String)otherOptions.get("documenter");
- grep = (String)otherOptions.get("grep");
- interpreter = (String)otherOptions.get("interpreter");
- languageCode = (String)otherOptions.get("languageCode");
-
- for(int var0 = 0; var0 < 10; ++var0) {
- specialSystem[var0] = (String)otherOptions.get("specialSystem" + var0);
- }
-
- }
-
- static boolean suggestUpdate() {
- return suggestUpdate;
- }
-
- static String destination() {
- return destination;
- }
-
- static boolean htmlBrowserValid() {
- return htmlBrowserValid;
- }
-
- static void htmlBrowserValid(boolean var0) {
- htmlBrowserValid = var0;
- }
- }
-