/** * {@inheritDoc} */ @Override public char getParameterListEnd() { return defaultProvider.getParameterListEnd(); }
am.put(IM_KEY_ESCAPE, oldEscapeAction); char end = pc.getProvider().getParameterListEnd(); ks = KeyStroke.getKeyStroke(end); im.put(ks, oldClosingKey);
char end = provider.getParameterListEnd(); if (end!=0) { sb.append(end);
char paramListEnd = fc.getProvider().getParameterListEnd(); if (paramListEnd!=0) { // 0 => No parameter list end char sb.append(paramListEnd);
sb.append(provider.getParameterListEnd());
am.put(IM_KEY_ESCAPE, new HideAction()); char end = pc.getProvider().getParameterListEnd(); ks = KeyStroke.getKeyStroke(end); oldClosingKey = im.get(ks);
sb.append(getProvider().getParameterListEnd()); int endOffs = dot + sb.length(); endOffs -= 1;//getProvider().getParameterListStart().length();
@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 end = p.getParameterListEnd(); // Might be '\0' String text = end == '\0' ? "" : Character.toString(end); if (typedParamListStartChar) {