return isPlainText() ? "\n\n".getBytes() : new byte[0];
}
private void watchForChanges(final List<IResourceStream> resourceStreams) {
// Watch file in the future
final IModificationWatcher watcher = Application.get().getResourceSettings()
.getResourceWatcher(true);
if (watcher != null) {
final IChangeListener listener = new IChangeListener() {
public void onChange() {
log.info("merged resource has changed");
synchronized (MergedResourceStream.this) {
for (final IResourceStream resourceStream : resourceStreams) {
watcher.remove(resourceStream);
}
_localizedMergedResourceStream = null;
}
}
};
for (final IResourceStream resourceStream : resourceStreams) {
watcher.add(resourceStream, listener);
}
}
}