|
What this is
Other links
The source codepackage org.netbeans.test.editor.suites.keyboard_shortcuts; /* * Main.java * * Created on 23. srpen 2004, 17:25 */ import java.awt.event.KeyEvent; import org.netbeans.jellytools.EditorOperator; import org.netbeans.jellytools.EditorWindowOperator; import org.netbeans.jellytools.NbDialogOperator; import org.netbeans.jellytools.modules.editor.EditorTestCase; import org.netbeans.jemmy.operators.JEditorPaneOperator; import org.netbeans.jellytools.Bundle; /** * * @author Petr Felenda */ public class FindInFile extends EditorTestCase { private final String dialogTitle = Bundle.getStringTrimmed("org.netbeans.editor.Bundle","find-title"); // Find; private final int keyCode = KeyEvent.VK_F; private final int modifiers = KeyEvent.CTRL_MASK; /** Creates a new instance of Main */ public FindInFile() { super("testFindInFile"); } public void testFindInFile(){ openProject(); openFile("Source packages|test","sample1"); EditorWindowOperator editorWindow = new EditorWindowOperator("sample1"); EditorOperator editor = editorWindow.selectPage("sample1"); JEditorPaneOperator txtOper = editor.txtEditorPane(); txtOper.pushKey(keyCode, modifiers); closeDialog(dialogTitle); closeFile(); } /** * @param args the command line arguments */ public static void main(String[] args) { // TODO code application logic here FindInFile test = new FindInFile(); test.run(); } } |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.