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