/** * {@inheritDoc} */ @Override public char getParameterListStart() { return defaultProvider.getParameterListStart(); }
char start = provider.getParameterListStart(); if (start!=0) { sb.append(start);
sb.append(fc.getName()); char paramListStart = fc.getProvider().getParameterListStart(); if (paramListStart!=0) { // 0 => no start char sb.append(paramListStart);
sb.append(provider.getParameterListStart()); for (int i = 0; i < getParamCount(); i++) { Parameter param = getParam(i);
String template = "${}" + text + "${cursor}"; textComponent.replaceSelection(Character.toString(p .getParameterListStart())); TemplateCompletion tc = new TemplateCompletion(p, null, null, template); text = p.getParameterListStart() + text; textComponent.replaceSelection(text); return;
char paramListStart = getProvider().getParameterListStart(); if (paramListStart!='\0') { sb.append(paramListStart);
@Override public void actionPerformed(ActionEvent e) { JTextComponent tc = ac.getTextComponent(); int dot = tc.getCaretPosition(); char end = pc.getProvider().getParameterListEnd(); // Are they at or past the end of the parameters? if (dot>=maxPos.getOffset()-2) { // ">=" for overwrite mode // Try to decide if we're closing a paren that is a part // of the (last) arg being typed. String text = getArgumentText(dot); if (text!=null) { char start = pc.getProvider().getParameterListStart(); int startCount = getCount(text, start); int endCount = getCount(text, end); if (startCount>endCount) { // Just closing a paren tc.replaceSelection(Character.toString(end)); return; } } //tc.setCaretPosition(maxPos.getOffset()); tc.setCaretPosition(Math.min(tc.getCaretPosition()+1, tc.getDocument().getLength())); deactivate(); } // If not (in the middle of parameters), just insert the paren. else { tc.replaceSelection(Character.toString(end)); } }
char start = provider.getParameterListStart(); if (start != 0) { KeyStroke ks = KeyStroke.getKeyStroke(start);
char start = provider.getParameterListStart(); if (start != 0 && start != ' ') { InputMap im = c.getInputMap();