diff --git a/java/src/com/qotsa/jni/controller/JNIWinamp.java b/java/src/com/qotsa/jni/controller/JNIWinamp.java index f40c50e..7d2ea27 100644 --- a/java/src/com/qotsa/jni/controller/JNIWinamp.java +++ b/java/src/com/qotsa/jni/controller/JNIWinamp.java @@ -24,8 +24,8 @@ final class JNIWinamp { /** * Verify if Winamp is started * and if not started, starts it - * @return True - if successful run Winamp - * False - if not successful run Winamp + * @return True - if successful running Winamp + * False - if not successful running Winamp */ protected static native boolean run() throws UnsatisfiedLinkError; diff --git a/java/src/com/qotsa/jni/controller/WinampController.java b/java/src/com/qotsa/jni/controller/WinampController.java index 0f1aa60..0b1e939 100644 --- a/java/src/com/qotsa/jni/controller/WinampController.java +++ b/java/src/com/qotsa/jni/controller/WinampController.java @@ -76,7 +76,7 @@ public class WinampController { public static void run() throws Exception{ if (!JNIWinamp.run()) - throw new Exception("Unable to run Winamp. Verify if it is properly installed"); + throw new Exception("Unable to running Winamp. Verify if it is properly installed"); } diff --git a/java/src/de/hardcode/jxinput/test/JXInputTestDialog.java b/java/src/de/hardcode/jxinput/test/JXInputTestDialog.java index 3829aa2..cf1354f 100644 --- a/java/src/de/hardcode/jxinput/test/JXInputTestDialog.java +++ b/java/src/de/hardcode/jxinput/test/JXInputTestDialog.java @@ -267,7 +267,7 @@ public class JXInputTestDialog extends javax.swing.JDialog }//GEN-LAST:event_closeDialog /** - * Allow the dialog to run standalone. + * Allow the dialog to running standalone. * @param args the command line arguments */ public static void main(String args[]) diff --git a/java/src/javazoom/jlgui/basicplayer/BasicPlayer.java b/java/src/javazoom/jlgui/basicplayer/BasicPlayer.java index e71407d..e587bb7 100644 --- a/java/src/javazoom/jlgui/basicplayer/BasicPlayer.java +++ b/java/src/javazoom/jlgui/basicplayer/BasicPlayer.java @@ -636,7 +636,7 @@ public class BasicPlayer implements BasicController, Runnable } catch (IOException e) { - log.error("Thread cannot run()", e); + log.error("Thread cannot running()", e); m_status = STOPPED; notifyEvent(BasicPlayerEvent.STOPPED, getEncodedStreamPosition(), -1, null); } diff --git a/java/src/org/apache/commons/logging/LogFactory.java b/java/src/org/apache/commons/logging/LogFactory.java index 526137e..f8b8955 100644 --- a/java/src/org/apache/commons/logging/LogFactory.java +++ b/java/src/org/apache/commons/logging/LogFactory.java @@ -1344,10 +1344,10 @@ public abstract class LogFactory { } /** - * Applets may run in an environment where accessing resources of a loader is + * Applets may running in an environment where accessing resources of a loader is * a secure operation, but where the commons-logging library has explicitly * been granted permission for that operation. In this case, we need to - * run the operation using an AccessController. + * running the operation using an AccessController. */ private static InputStream getResourceAsStream(final ClassLoader loader, final String name) @@ -1801,8 +1801,8 @@ public abstract class LogFactory { // // Note that this block must come after any variable declarations used // by any methods called from this block, as we want any static initialiser - // associated with the variable to run first. If static initialisers for - // variables run after this code, then (a) their value might be needed + // associated with the variable to running first. If static initialisers for + // variables running after this code, then (a) their value might be needed // by methods called from here, and (b) they might *override* any value // computed here! // diff --git a/java/src/org/apache/commons/logging/impl/Log4JLogger.java b/java/src/org/apache/commons/logging/impl/Log4JLogger.java index d609c0c..56d421e 100644 --- a/java/src/org/apache/commons/logging/impl/Log4JLogger.java +++ b/java/src/org/apache/commons/logging/impl/Log4JLogger.java @@ -39,7 +39,7 @@ import org.apache.log4j.Level; * * Log4J1.3 is expected to change Level so it no longer extends Priority, which is * a non-binary-compatible change. The class generated by compiling this code against - * log4j 1.2 will therefore not run against log4j 1.3. + * log4j 1.2 will therefore not running against log4j 1.3. * * @author Scott Sanders * @author Rod Waldhoff @@ -135,7 +135,7 @@ public class Log4JLogger implements Log, Serializable { // Logger class) in version 1.3 has methods that take both Priority and // Level objects. This means that if we use Level here, and compile // against log4j 1.3 then calls would be bound to the versions of - // methods taking Level objects and then would fail to run against + // methods taking Level objects and then would fail to running against // version 1.2 of log4j. // --------------------------------------------------------- diff --git a/java/src/org/apache/log4j/NDC.java b/java/src/org/apache/log4j/NDC.java index d374225..2b8b8be 100644 --- a/java/src/org/apache/log4j/NDC.java +++ b/java/src/org/apache/log4j/NDC.java @@ -81,7 +81,7 @@ import org.apache.log4j.helpers.LogLog; request will have a different NDC tag.
Heavy duty systems should call the {@link #remove} method when
- leaving the run method of a thread. This ensures that the memory
+ leaving the running method of a thread. This ensures that the memory
used by the thread can be freed by the Java garbage
collector. There is a mechanism to lazily remove references to dead
threads. In practice, this means that you can be a little sloppy
@@ -367,7 +367,7 @@ public class NDC {
practice, this means that you can be a little sloppy and
occasionally forget to call {@link #remove} before exiting a
thread. However, you must call remove sometime. If
- you never call it, then your application is sure to run out of
+ you never call it, then your application is sure to running out of
memory.
*/
diff --git a/java/src/org/apache/log4j/lf5/LF5Appender.java b/java/src/org/apache/log4j/lf5/LF5Appender.java
index e98e9bd..c466f3a 100644
--- a/java/src/org/apache/log4j/lf5/LF5Appender.java
+++ b/java/src/org/apache/log4j/lf5/LF5Appender.java
@@ -158,7 +158,7 @@ public class LF5Appender extends AppenderSkeleton {
* exits
* the monitor. By default, the LogBrokerMonitor will hide
* itself when the log window is exited, and the swing thread will
- * continue to run in the background. If this property is
+ * continue to running in the background. If this property is
* set to true, the LogBrokerMonitor will call System.exit(0)
* and will shut down swing thread and the virtual machine.
*
diff --git a/java/src/org/apache/log4j/lf5/util/LogFileParser.java b/java/src/org/apache/log4j/lf5/util/LogFileParser.java
index 656d4b6..ee4592d 100644
--- a/java/src/org/apache/log4j/lf5/util/LogFileParser.java
+++ b/java/src/org/apache/log4j/lf5/util/LogFileParser.java
@@ -88,7 +88,7 @@ public class LogFileParser implements Runnable {
/**
* Starts a new thread to parse the log file and create a LogRecord.
- * See run().
+ * See running().
* @param monitor LogBrokerMonitor
*/
public void parse(LogBrokerMonitor monitor) throws RuntimeException {
diff --git a/java/src/org/apache/log4j/varia/LevelRangeFilter.java b/java/src/org/apache/log4j/varia/LevelRangeFilter.java
index 9dfacb1..40994d3 100644
--- a/java/src/org/apache/log4j/varia/LevelRangeFilter.java
+++ b/java/src/org/apache/log4j/varia/LevelRangeFilter.java
@@ -54,7 +54,7 @@ public class LevelRangeFilter extends Filter {
/**
Do we return ACCEPT when a match occurs. Default is
- false, so that later filters get run by default */
+ false, so that later filters get running by default */
boolean acceptOnMatch = false;
Level levelMin;
diff --git a/java/src/pm/Application.java b/java/src/pm/Application.java
index 62ba052..4a39985 100644
--- a/java/src/pm/Application.java
+++ b/java/src/pm/Application.java
@@ -1,9 +1,9 @@
package pm;
import pm.event.EventHandler;
-import pm.selector.Activatable;
+import pm.selector.Selectable;
-public abstract class Application extends EventHandler implements Activatable {
+public abstract class Application extends EventHandler implements Selectable {
protected String title;
protected boolean active;
@@ -16,22 +16,8 @@ public abstract class Application extends EventHandler implements Activatable {
return title;
}
- public boolean active() {
- return active;
- }
-
- public void activate() {
- start();
- active = true;
- }
-
- public void deactivate() {
- stop();
- active = false;
- }
-
public void exit() {
deactivate();
stop();
- }
+ }
}
\ No newline at end of file
diff --git a/java/src/pm/Device.java b/java/src/pm/Device.java
index 4187a23..43cdfa8 100644
--- a/java/src/pm/Device.java
+++ b/java/src/pm/Device.java
@@ -10,9 +10,9 @@ import pm.macro.State;
import pm.macro.state.Hold;
import pm.macro.state.Press;
import pm.macro.state.Release;
-import pm.selector.Activatable;
+import pm.selector.Selectable;
-public abstract class Device extends EventHandler implements Activatable {
+public abstract class Device extends EventHandler implements Selectable {
protected String title;
protected boolean active;
protected SequenceListener sequenceListener;
@@ -82,20 +82,6 @@ public abstract class Device extends EventHandler implements Activatable {
public String title() {
return title;
}
-
- public boolean active() {
- return active;
- }
-
- public void activate() {
- start();
- active = true;
- }
-
- public void deactivate() {
- stop();
- active = false;
- }
public void exit() {
deactivate();
diff --git a/java/src/pm/Manager.java b/java/src/pm/Manager.java
index 4c4940f..c18779a 100644
--- a/java/src/pm/Manager.java
+++ b/java/src/pm/Manager.java
@@ -29,15 +29,15 @@ public abstract class Manager extends EventHandler {
public void start() {
initialise();
- Device[] deviceArray = new Device[] {
- new WiimoteDevice(),
- new PanelDevice(),
- new JIntellitypeDevice(),
- new PlayerDevice(),
- new RumblepadDevice(),
- new Extreme3DDevice(),
- new NetworkDevice()};
- deviceSelector = new DeviceSelector(deviceArray);
+ Device[] deviceArray = new Device[] {
+ new WiimoteDevice(),
+ new PanelDevice(),
+ new JIntellitypeDevice(),
+ new PlayerDevice(),
+ new RumblepadDevice(),
+ new Extreme3DDevice(),
+ new NetworkDevice()};
+ deviceSelector = new DeviceSelector(deviceArray);
}
public void exit() {
diff --git a/java/src/pm/Selector.java b/java/src/pm/Selector.java
index 5b9ee71..bfa9820 100644
--- a/java/src/pm/Selector.java
+++ b/java/src/pm/Selector.java
@@ -1,7 +1,6 @@
package pm;
import java.awt.GridLayout;
-import java.util.ArrayList;
import javax.swing.JFrame;
import javax.swing.JPanel;
@@ -9,29 +8,29 @@ import javax.swing.JPanel;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
-import pm.selector.Activatable;
import pm.selector.SelectButton;
+import pm.selector.Selectable;
-public class Selector