small fixes

This commit is contained in:
2014-12-01 00:13:48 +01:00
parent 9125a5abd4
commit 77b8ef808a
10 changed files with 31 additions and 22 deletions
@@ -12,7 +12,8 @@
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library.␍ */
* License along with this library.
*/
package com.jpexs.helpers;
import java.util.ArrayList;
@@ -40,13 +41,12 @@ public abstract class CancellableWorker<T> implements RunnableFuture<T> {
public CancellableWorker() {
super();
Callable<T> callable
= new Callable<T>() {
@Override
public T call() throws Exception {
return doInBackground();
}
};
Callable<T> callable = new Callable<T>() {
@Override
public T call() throws Exception {
return doInBackground();
}
};
future = new FutureTask<T>(callable) {
@Override
@@ -794,6 +794,10 @@ public class Helper {
}
}
public static String getDecompilationSkippedComment() {
return "// " + AppResources.translate("decompilation.skipped");
}
public static void appendTimeoutComment(GraphTextWriter writer, int timeout) {
writer.appendNoHilight("/*").newLine();
writer.appendNoHilight(" * ").appendNoHilight(AppResources.translate("decompilationError")).newLine();