Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

20
LINES

< > BotCompany Repo | #1021152 // Custom Auto-Complete Test [doesn't work yet]

JavaX source code (Dynamic Module) [tags: archive use-pretranspiled] - run with: Stefan's OS

Transpiled version (1036L) is out of date.

!7

cmodule CustomAutoCompleteTest {
  transient RSyntaxTextArea textArea;
  
  visualize {
    textArea = javaxSyntaxTextArea();
    swing {
      CompletionProviderBase provider = new {
        protected L<Completion> getCompletionsImpl(JTextComponent comp) {
          ret ll(new BasicCompletion(this, "test-" + now()));
        }
        
        protected L<ParameterizedCompletion> getParameterizedCompletions(JTextComponent tc) { null; }
      };
      new AutoCompletion(provider).install(textArea);
    }
    ret swingNu(RTextScrollPane, textArea);
  }
}

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): cfunsshuasjs, mqqgnosmbjvj, tvejysmllsmz

No comments. add comment

Snippet ID: #1021152
Snippet name: Custom Auto-Complete Test [doesn't work yet]
Eternal ID of this version: #1021152/3
Text MD5: 7f657b67f5c4512011a730880e58b11b
Author: stefan
Category: javax
Type: JavaX source code (Dynamic Module)
Public (visible to everyone): Yes
Archived (hidden from active list): Yes
Created/modified: 2019-01-25 13:32:35
Source code size: 582 bytes / 20 lines
Pitched / IR pitched: No / No
Views / Downloads: 347 / 426
Version history: 2 change(s)
Referenced in: [show references]