Hi,
I am using latest Idea 12.0.1 Ultimate on ubuntu 12.0.4 LTS and there is a serious problem with rearranging text: just doing simple cut and paste within a single document shows the text is getting mangled
Here is an example:
Before cut / paste:
private class LogWriter extends Thread {
private static final long SLEEP_MILLIS = 50;
BlockingQueue<String> queue = new LinkedBlockingQueue<String>();
PrintWriter pw;
final static String LOGFILE="/shared/tinyhttpserver.log";
private LogWriter() throws IOException {
setDaemon(true);
pw = new PrintWriter(new BufferedWriter(new FileWriter(LOGFILE)));
}
@Override
public void run() {
try {
while (true) {
Thread.sleep(SLEEP_MILLIS);
String val;
while ((val=queue.poll(0, TimeUnit.MILLISECONDS)) != null) {
pw.println(String.format("%s %s", (new Date()).toString().substring(0, 19), val));
}
}
} catch (Exception e) {
tracerr("Error occurred in run loop", e);
} finally {
if (pw!=null) {
pw.close();
}
}
}
}