public Debugger(GUIInstallData installdata, IconsDatabase icons, RulesEngine rules) { idata = installdata; this.rules = rules; lasttimevariables = (Properties) idata.getVariables().getProperties().clone(); this.icons = icons; this.variableshistory = new HashMap<String, VariableHistory>(); this.conditionhistory = new HashMap<String, ConditionHistory>(); this.init(); }
private void debugVariables(Panel nextpanelmetadata, Panel lastpanelmetadata) { getChangedVariables(nextpanelmetadata, lastpanelmetadata); lasttimevariables = (Properties) idata.getVariables().getProperties().clone(); }
/** * Print list of variables names and value, as well as the list * of packages and their status (selected or not). */ private void printDebugInfo() { int i = 0; String sInfo = "GUIInstallData Variables:\n"; System.out.println("------------------------Data Check Panel Instance " + instanceNumber + "------------------------"); System.out.println("GUIInstallData Variables:"); Properties varList = installDataGUI.getVariables().getProperties(); String[] alphaName = new String[varList.size()]; Enumeration<String> varNames = (Enumeration<String>) varList.propertyNames(); while (varNames.hasMoreElements()) { alphaName[i++] = varNames.nextElement(); } java.util.Arrays.sort(alphaName); for (i = 0; i < alphaName.length; i++) { sInfo = sInfo + "\tName: " + alphaName[i] + ", Value: " + varList.getProperty(alphaName[i]) + "\n"; } sInfo = sInfo + "\nAvailable Packs: \n" + getPackNames(installDataGUI.getAllPacks()) + "\n"; System.out.println(sInfo); staticText.setText(sInfo); }
private void modifyVariableManually(String varnametxt, String varvaluetxt) { lasttimevariables = (Properties) idata.getVariables().getProperties().clone(); VariableHistory variableHistory = variableshistory.get(varnametxt); if (variableHistory != null) { variableHistory.addValue(varvaluetxt, "modified manually"); } variablesmodel.fireTableDataChanged(); updateChangedConditions("after manual modification of variable " + varnametxt); }
ObjectOutputStream oout = new ObjectOutputStream(fout); oout.writeObject(installedPacks); oout.writeObject(variables.getProperties());
private Properties getChangedVariables(Panel nextpanelmetadata, Panel lastpanelmetadata) Properties currentvariables = (Properties) idata.getVariables().getProperties().clone(); Properties changedvariables = new Properties();