|
|
|
@ -555,6 +555,7 @@ public class FormulaPane extends BasicPane implements KeyListener, UIFormula {
|
|
|
|
|
private void fixFunctionNameList(String functionName) { |
|
|
|
|
int signOfContinue = 1; |
|
|
|
|
int indexOfFunction = 0; |
|
|
|
|
boolean found = false; |
|
|
|
|
for (int i = 0; i < functionTypeListModel.size(); i++) { |
|
|
|
|
int signOfType = 0; |
|
|
|
|
FunctionGroup functionType = (FunctionGroup) functionTypeListModel.getElementAt(i); |
|
|
|
@ -568,6 +569,7 @@ public class FormulaPane extends BasicPane implements KeyListener, UIFormula {
|
|
|
|
|
signOfType = 1; |
|
|
|
|
signOfContinue = 0; |
|
|
|
|
indexOfFunction = k; |
|
|
|
|
found = true; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -577,8 +579,12 @@ public class FormulaPane extends BasicPane implements KeyListener, UIFormula {
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if (found) { |
|
|
|
|
functionNameList.setSelectedIndex(indexOfFunction); |
|
|
|
|
functionNameList.ensureIndexIsVisible(indexOfFunction); |
|
|
|
|
} else { |
|
|
|
|
functionTypeList.setSelectedIndex(0); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private int getBeginPosition() { |
|
|
|
|