better script search caching

placeobject getname fix
This commit is contained in:
Jindra Petk
2013-05-20 19:12:52 +02:00
parent 8ce1df2060
commit 4bec9fbdb3
3 changed files with 25 additions and 1 deletions

View File

@@ -255,6 +255,15 @@ public class DocumentSearchData {
replaceDlg.setVisible(true);
}
public void showQuickFindDialogEx(JTextComponent target,boolean ignoreCase,boolean regularExpresion) {
if (quickFindDlg == null) {
quickFindDlg = new QuickFindDialog(target, this);
}
quickFindDlg.showFor(target);
quickFindDlg.setIgnoreCase(ignoreCase);
quickFindDlg.setRegularExpression(regularExpresion);
}
public void showQuickFindDialog(JTextComponent target) {
if (quickFindDlg == null) {
quickFindDlg = new QuickFindDialog(target, this);

View File

@@ -7,11 +7,12 @@
<Color blue="40" green="40" id="darkGray" palette="1" red="40" type="palette"/>
</Property>
<Property name="name" type="java.lang.String" value="QuickFindDialog" noResource="true"/>
<Property name="resizable" type="boolean" value="false"/>
<Property name="undecorated" type="boolean" value="true"/>
<Property name="resizable" type="boolean" value="false"/>
</Properties>
<SyntheticProperties>
<SyntheticProperty name="formSizePolicy" type="int" value="1"/>
<SyntheticProperty name="generateCenter" type="boolean" value="false"/>
</SyntheticProperties>
<AuxValues>
<AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="0"/>

View File

@@ -257,6 +257,20 @@ public class QuickFindDialog extends javax.swing.JDialog
private javax.swing.JTextField jTxtFind;
// End of variables declaration//GEN-END:variables
//JPEXS added
public void setIgnoreCase(boolean ignoreCase){
jChkIgnoreCase.setSelected(ignoreCase);
}
//JPEXS added
public void setRegularExpression(boolean regularExpresion){
jChkRegExp.setSelected(regularExpresion);
}
//JPEXS added
public void setWrap(boolean wrap){
jChkWrap.setSelected(wrap);
}
@Override
public void insertUpdate(DocumentEvent e) {
updateFind();