From c8ce8067db3ef88021727d11c462706b9e38e75f Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 2 Apr 2011 20:22:29 +0100 Subject: [PATCH] style: change visibility of some members of MarketUploader --- src/net/chiark/yarrg/MarketUploader.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/net/chiark/yarrg/MarketUploader.java b/src/net/chiark/yarrg/MarketUploader.java index c39b0f8..2316505 100644 --- a/src/net/chiark/yarrg/MarketUploader.java +++ b/src/net/chiark/yarrg/MarketUploader.java @@ -41,8 +41,8 @@ implements Runnable, TopLevelWindowListener, GUIInitializedListener { private Window window = null; // Genuinely global variables - public PrintStream dtxt = null; - private int uploadcounter = 0; + private PrintStream dtxt = null; + public int uploadcounter = 0; // UI objects which are enabled/disabled, cleared/set, created/destroyed, // etc., for each upload @@ -362,7 +362,7 @@ implements Runnable, TopLevelWindowListener, GUIInitializedListener { * error and error_html may be called from any thread */ - private void error(final String msg) { + public void error(final String msg) { try { new UIX() { public void body() { resultSummary.setText("failed"); @@ -375,7 +375,7 @@ implements Runnable, TopLevelWindowListener, GUIInitializedListener { } } - private void error_html(final String msg, String html) { + public void error_html(final String msg, String html) { Pattern body = Pattern.compile("(.*)", Pattern.DOTALL | Pattern.CASE_INSENSITIVE); Matcher m = body.matcher(html); @@ -394,7 +394,7 @@ implements Runnable, TopLevelWindowListener, GUIInitializedListener { error(whole_msg); } - private void progressNote(final String s_in) throws Exception { + public void progressNote(final String s_in) throws Exception { new UIA() { public void body() { String arb = null; arb = arbitrageResult.getText(); @@ -404,12 +404,12 @@ implements Runnable, TopLevelWindowListener, GUIInitializedListener { progmon.setNote(s); }}.exec("progressNote "+s_in); } - private void setProgress(final int nv) throws Exception { + public void setProgress(final int nv) throws Exception { new UIA() { public void body() { progmon.setProgress(nv); }}.exec("setProgress "+nv); } - private boolean checkCancelled() throws Exception { + public boolean checkCancelled() throws Exception { return new UIXR() { public Boolean bodyr() { boolean can = progmon.isCanceled(); if (can) resultSummary.setText("cancelled"); -- 2.30.2