UI does not freeze during rip, moved to JRE-1.6
This commit is contained in:
parent
07c73701db
commit
af9f5ce272
@ -13,15 +13,11 @@
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry including="**/*.java" kind="src" path="src/main/resources"/>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5">
|
||||
<attributes>
|
||||
<attribute name="maven.pomderived" value="true"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
|
||||
<attributes>
|
||||
<attribute name="maven.pomderived" value="true"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
|
||||
<classpathentry kind="output" path="target/classes"/>
|
||||
</classpath>
|
||||
|
@ -1,5 +1,12 @@
|
||||
eclipse.preferences.version=1
|
||||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
|
||||
org.eclipse.jdt.core.compiler.compliance=1.5
|
||||
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
|
||||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
|
||||
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
|
||||
org.eclipse.jdt.core.compiler.compliance=1.6
|
||||
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
|
||||
org.eclipse.jdt.core.compiler.debug.localVariable=generate
|
||||
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
|
||||
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
|
||||
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
|
||||
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
|
||||
org.eclipse.jdt.core.compiler.source=1.5
|
||||
org.eclipse.jdt.core.compiler.source=1.6
|
||||
|
@ -20,7 +20,7 @@ import com.rarchives.ripme.utils.Utils;
|
||||
|
||||
public abstract class AbstractRipper
|
||||
extends Observable
|
||||
implements RipperInterface {
|
||||
implements RipperInterface, Runnable {
|
||||
|
||||
private static final Logger logger = Logger.getLogger(AbstractRipper.class);
|
||||
|
||||
@ -221,4 +221,11 @@ public abstract class AbstractRipper
|
||||
}
|
||||
}
|
||||
|
||||
public void run() {
|
||||
try {
|
||||
rip();
|
||||
} catch (IOException e) {
|
||||
logger.error("Got exception while running ripper:", e);
|
||||
}
|
||||
}
|
||||
}
|
@ -63,7 +63,8 @@ public class MainWindow implements Runnable {
|
||||
URL url = new URL(ripTextfield.getText());
|
||||
AbstractRipper ripper = AbstractRipper.getRipper(url);
|
||||
ripper.setObserver(new RipStatusHandler());
|
||||
ripper.rip();
|
||||
Thread t = new Thread(ripper);
|
||||
t.start();
|
||||
} catch (Exception e) {
|
||||
status("Error: " + e.getMessage());
|
||||
return;
|
||||
|
@ -5,7 +5,7 @@ public class RipStatusMessage {
|
||||
public enum STATUS {
|
||||
LOADING_RESOURCE("Loading Resource"),
|
||||
DOWNLOAD_STARTED("Download Started"),
|
||||
DOWNLOAD_COMPLETE("Download Domplete"),
|
||||
DOWNLOAD_COMPLETE("Download Complete"),
|
||||
DOWNLOAD_ERRORED("Download Errored"),
|
||||
RIP_COMPLETE("Rip Complete");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user