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

11
LINES

< > BotCompany Repo | #1034696 // installCompletionProvider

JavaX fragment (include) [tags: use-pretranspiled]

Transpiled version (5222L) is out of date.

static AutoCompletion installCompletionProvider(DefaultCompletionProvider completionProvider, RSyntaxTextArea textArea) swing {
  if (completionProvider == null || textArea == null) null;
  
  //completionProvider.setAutoActivationRules(true, " ");
  var autoComplete = new AutoCompletion(completionProvider);
  autoComplete.setAutoCompleteSingleChoices(false);
  //autoComplete.setAutoActivationEnabled(true);
  //autoComplete.setAutoActivationDelay(2000);
  autoComplete.install(textArea);
  ret autoComplete;
}

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1034696
Snippet name: installCompletionProvider
Eternal ID of this version: #1034696/7
Text MD5: 6c8279aaa42d68fbd847b2346769a03e
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-05-14 00:05:45
Source code size: 523 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 24 / 70
Version history: 6 change(s)
Referenced in: [show references]