Package org.jitterbit.ui.text.contentassist

Examples of org.jitterbit.ui.text.contentassist.TokenListCompletionContext


     *
     * @param entryNode
     *            an <code>LdapStructureEntryNode</code> defining the class entry
     */
    public FilterCompletionContext(LdapStructureEntryNode entryNode) {
        delegate = new TokenListCompletionContext(getTokens(entryNode));
        delegate.setUseWordBoundaries(true);
        delegate.setTokenDecorator(new Decorator());
    }
View Full Code Here


    private Listener listener;

    private CompletionContext sourceVariables;

    public VariableCompletionContext() {
        impl = new TokenListCompletionContext(new String[0]);
        impl.setCaseSensitive(false);
        impl.setUseWordBoundaries(true);
        impl.setIgnoredWordBoundaries("$", ".", "_");
        impl.setDisplayOrder(new TokenOrder());
    }
View Full Code Here

*/
public class VariableFieldDisplayTest implements Runnable {

    @Override
    public void run() {
        TokenListCompletionContext ctx = createCompletionContext();
        VariableField field = new VariableField(ctx);
        BoxBuilder row = BoxBuilder.horizontal();
        row.addAll("Value: ", field);
        BorderLayoutBuilder layout = new BorderLayoutBuilder();
        layout.north(row);
View Full Code Here

        layout.north(row);
        QuickFrame.show(layout, "");
    }

    private static TokenListCompletionContext createCompletionContext() {
        TokenListCompletionContext ctx = new TokenListCompletionContext(new String[] { "$Torgil", "$I.Ting", "$Ludvig" });
        ctx.setUseWordBoundaries(true);
        ctx.setIgnoredWordBoundaries("$", ".", "_");
        return ctx;
    }
View Full Code Here

* @since 4.0.0
*/
final class PackageNameCompletionContextBuilder {
   
    public static CompletionContext buildForField() {
        return new TokenListCompletionContext(getKnownPackageNames());
    }
View Full Code Here

        setTokens(history.values());
    }

    @Override
    protected TokenListCompletionContext createCompletionContext(String[] tokens) {
        return new TokenListCompletionContext(tokens) {

            @Override
            public boolean delete(CompletionToken token) {
                boolean deleted = super.delete(token);
                if (deleted) {
View Full Code Here

TOP

Related Classes of org.jitterbit.ui.text.contentassist.TokenListCompletionContext

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.