package com.progressoft.brix.domino.gwt.client.history;

import com.progressoft.brix.domino.api.shared.history.DominoHistory;
import com.progressoft.brix.domino.api.shared.history.TokenFilter;

public class DominoDirectState implements DominoHistory.DirectState {

    private final TokenFilter tokenFilter;
    private final DominoHistory.State state;

    public DominoDirectState(TokenFilter tokenFilter, DominoHistory.State state) {
        this.tokenFilter = tokenFilter;
        this.state = state;
    }

    @Override
    public void onDirectUrl(DominoHistory.DirectUrlHandler handler) {
        if (tokenFilter.filter(state.token().value()))
            handler.handle(state);
    }
}
@@ -108,30 +108,29 @@
 ory.
-DominoHistory;
+TokenFilter;%0A
 %0Aimport 
 com.
@@ -117,32 +117,39 @@
 Filter;%0A%0Aimport 
+static 
 com.progressoft.
@@ -179,27 +179,31 @@
 history.
-TokenFilter
+DominoHistory.*
 ;%0A%0Apubli
@@ -239,30 +239,16 @@
 lements 
-DominoHistory.
 DirectSt
@@ -315,30 +315,16 @@
 e final 
-DominoHistory.
 State st
@@ -383,30 +383,16 @@
 Filter, 
-DominoHistory.
 State st
@@ -515,30 +515,16 @@
 rectUrl(
-DominoHistory.
 DirectUr

add static import