Report file watcher giving up; don't try to shut it down

This commit is contained in:
Roman Shevchenko
2013-01-31 15:41:47 +04:00
parent 7280bdce2c
commit d3c025446d
2 changed files with 4 additions and 3 deletions
@@ -400,6 +400,7 @@ public class FileWatcher {
return myWatchedPaths;
}
@SuppressWarnings("SpellCheckingInspection")
private enum WatcherOp {
GIVEUP, RESET, UNWATCHEABLE, REMAP, MESSAGE, CREATE, DELETE, STATS, CHANGE, DIRTY, RECDIRTY
}
@@ -444,9 +445,8 @@ public class FileWatcher {
}
if (watcherOp == WatcherOp.GIVEUP) {
LOG.info("Native file watcher gives up to operate on this platform");
notifyOnFailure(ApplicationBundle.message("watcher.gave.up"), null);
myIsShuttingDown = true;
shutdownProcess();
}
else if (watcherOp == WatcherOp.RESET) {
reset();
@@ -405,7 +405,7 @@ group.error.highlighting=Error highlighting
editbox.autoreparse.delay.ms=Autoreparse delay (ms):
editbox.error.stripe.mark.min.height.pixels=Error stripe mark min height (pixels):
checkbox.suppress.with.suppresswarnings=Suppress with @SuppressWarnings (for Java 5.0 only)
checkbox.next.error.action.goes.to.errors.first='Next Error' action goes to high priority problems only
checkbox.next.error.action.goes.to.errors.first='Next Error' action goes to high priority problems only
checkbox.show.import.popup=Show import &popup
checkbox.indent.use.tab.character=Use tab character
checkbox.indent.smart.tabs=Smart tabs
@@ -560,6 +560,7 @@ watcher.exe.not.found=Native file watcher executable not found
watcher.exe.not.exe=Native file watcher is not executable: <a href="{0}">{0}</a>
watcher.exe.outdated=Native file watcher executable is outdated
watcher.failed.to.start=File watcher failed to start
watcher.gave.up=File watcher gave up to operate
watcher.non.watchable.project=Project content is under network-mounted directory
arrangement.title.settings.tab=Arrangement