@Test public void disabledAutoReprint() { editor = newTokenListEditor(false); setSimpleExpression(editor); assertTrue(editor.tokens.isEmpty()); assertTrue(editor.valid.get()); editor.reprintToTokens(); assertEquals(simpleTokenList(), editor.tokens); assertTrue(editor.valid.get()); }
void reprintToTokens() { PrettyPrinterContext<? super SourceT> ctx = reprint(); myValid.set(true); tokens.clear(); tokens.addAll(ctx.tokens()); }
TokenListEditor { void reprintToTokens() { PrettyPrinterContext<? super SourceT> ctx = reprint(); myValid.set(true); tokens.clear(); tokens.addAll(ctx.tokens()); } }
TokenListEditor { void reprintToTokens() { PrettyPrinterContext<? super SourceT> ctx = reprint(); myValid.set(true); tokens.clear(); tokens.addAll(ctx.tokens()); } TokenListEditor(HybridEditorSpec<SourceT> spec, ObservableList<Token> tokens, boolean updateModel);   TokenListEditor(ReadableProperty<HybridEditorSpec<SourceT>> spec, ObservableList<Token> tokens, boolean updateModel); }
TokenListEditor { void reprintToTokens() { PrettyPrinterContext<? super SourceT> ctx = reprint(); myValid.set(true); tokens.clear(); tokens.addAll(ctx.tokens()); } TokenListEditor(HybridEditorSpec<SourceT> spec, ObservableList<Token> tokens, boolean updateModel);   TokenListEditor(ReadableProperty<HybridEditorSpec<SourceT>> spec, ObservableList<Token> tokens, boolean updateModel);  }
TokenListEditor { void reprintToTokens() { PrettyPrinterContext<? super SourceT> ctx = reprint(); myValid.set(true); tokens.clear(); tokens.addAll(ctx.tokens()); } TokenListEditor(HybridEditorSpec<SourceT> spec, ObservableList<Token> tokens, boolean updateModel);   TokenListEditor(ReadableProperty<HybridEditorSpec<SourceT>> spec, ObservableList<Token> tokens, boolean updateModel);   }