Search in sources :

Example 1 with AddWatchResult

use of edu.stanford.bmir.protege.web.shared.watches.AddWatchResult in project webprotege by protegeproject.

the class AddWatchActionHandler method execute.

@Nonnull
@Override
public AddWatchResult execute(@Nonnull AddWatchAction action, @Nonnull ExecutionContext executionContext) {
    EventTag startTag = eventManager.getCurrentTag();
    watchManager.addWatch(action.getWatch());
    return new AddWatchResult(eventManager.getEventsFromTag(startTag));
}
Also used : AddWatchResult(edu.stanford.bmir.protege.web.shared.watches.AddWatchResult) EventTag(edu.stanford.bmir.protege.web.shared.event.EventTag) Nonnull(javax.annotation.Nonnull)

Aggregations

EventTag (edu.stanford.bmir.protege.web.shared.event.EventTag)1 AddWatchResult (edu.stanford.bmir.protege.web.shared.watches.AddWatchResult)1 Nonnull (javax.annotation.Nonnull)1