dispatcher.register(LogStore.class, new StoreCallback() {
@Override
public Agreement voteFor(final Action action) {
if (action instanceof org.jboss.as.console.client.shared.runtime.logviewer.actions.ReadLogFiles) {
return new Agreement(true);
}
else if (action instanceof org.jboss.as.console.client.shared.runtime.logviewer.actions.OpenLogFile) {
return new Agreement(true);
}
else if (action instanceof org.jboss.as.console.client.shared.runtime.logviewer.actions.CloseLogFile) {
return new Agreement(true);
}
else if (action instanceof org.jboss.as.console.client.shared.runtime.logviewer.actions.SelectLogFile) {
return new Agreement(true);
}
else if (action instanceof org.jboss.as.console.client.shared.runtime.logviewer.actions.NavigateInLogFile) {
return new Agreement(true);
}
else if (action instanceof org.jboss.as.console.client.shared.runtime.logviewer.actions.ChangePageSize) {
return new Agreement(true);
}
else if (action instanceof org.jboss.as.console.client.shared.runtime.logviewer.actions.FollowLogFile) {
return new Agreement(true);
}
else if (action instanceof org.jboss.as.console.client.shared.runtime.logviewer.actions.PauseFollowLogFile) {
return new Agreement(true);
}
else if (action instanceof org.jboss.as.console.client.shared.runtime.logviewer.actions.UnFollowLogFile) {
return new Agreement(true);
}
else {
return Agreement.NONE;
}
}