Search in sources :

Example 6 with SessionState

use of io.github.vocabhunter.analysis.session.SessionState in project VocabHunter by VocabHunter.

the class SelectionExportToolTest method testEmpty.

@Test
public void testEmpty() throws Exception {
    SessionState state = state();
    validate(state);
}
Also used : SessionState(io.github.vocabhunter.analysis.session.SessionState) Test(org.junit.Test)

Example 7 with SessionState

use of io.github.vocabhunter.analysis.session.SessionState in project VocabHunter by VocabHunter.

the class GuiFileHandler method finishOpen.

private void finishOpen(final EnrichedSessionState enrichedState) {
    SessionState state = enrichedState.getState();
    SessionModel sessionModel = sessionStateHandler.addSession(state);
    model.replaceSessionModel(state, sessionModel, enrichedState.getFile().orElse(null));
    statusManager.replaceSession(sessionModel.getPosition(), sessionModel.getProgress());
}
Also used : SessionState(io.github.vocabhunter.analysis.session.SessionState) EnrichedSessionState(io.github.vocabhunter.analysis.session.EnrichedSessionState) SessionModel(io.github.vocabhunter.gui.model.SessionModel)

Aggregations

SessionState (io.github.vocabhunter.analysis.session.SessionState)7 EnrichedSessionState (io.github.vocabhunter.analysis.session.EnrichedSessionState)4 Path (java.nio.file.Path)3 GuiTask (io.github.vocabhunter.gui.status.GuiTask)2 Test (org.junit.Test)2 Analyser (io.github.vocabhunter.analysis.model.Analyser)1 SimpleAnalyser (io.github.vocabhunter.analysis.simple.SimpleAnalyser)1 SessionModel (io.github.vocabhunter.gui.model.SessionModel)1 URL (java.net.URL)1 BeforeClass (org.junit.BeforeClass)1