1 19 20 package org.netbeans.jellytools.modules.java; 21 22 import org.netbeans.jellytools.Bundle; 23 import org.netbeans.jellytools.MainWindowOperator; 24 import org.netbeans.jellytools.actions.PasteAction; 25 import org.netbeans.jemmy.EventTool; 26 import org.netbeans.jemmy.operators.Operator; 27 28 32 public class SimpleCopyAction extends PasteAction{ 33 34 protected static final String POPUP = Bundle.getStringTrimmed("org.openide.actions.Bundle", "Paste"); 35 protected static final String MENU = Bundle.getStringTrimmed("org.netbeans.core.Bundle", "Menu/Edit") 36 + "|" + POPUP+ "|Copy"; 37 38 public void perform() { 39 new EventTool().waitNoEvent(500); 40 MainWindowOperator.getDefault().menuBar().pushMenu(MENU, "|", new Operator.DefaultStringComparator(true, true)); 41 } 42 } 43 | Popular Tags |