@Override
		public void run() {
			WatchKey key;
	        while(processing) { 
	            try {
	                key = watcher.take();
		            for (WatchEvent<?> event: key.pollEvents()) {
		                if (event.kind() == StandardWatchEventKinds.ENTRY_MODIFY || event.kind() == StandardWatchEventKinds.ENTRY_CREATE) {
		                	if (file != null && event.context().toString().equals(file.getName())) fireFileModified();
		                }
		            }
		            key.reset();
	            } catch (InterruptedException x) {
	            }
	        }
		}