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.jemmy.EventTool; 25 import org.netbeans.jemmy.operators.Operator; 26 27 31 public class SimpleMoveAction { 32 33 protected static final String POPUP = Bundle.getStringTrimmed("org.openide.actions.Bundle", "Paste"); 34 protected static final String MENU = Bundle.getStringTrimmed("org.netbeans.core.Bundle", "Menu/Edit") 35 + "|" + POPUP+ "|Move"; 36 37 public void perform() { 38 new EventTool().waitNoEvent(500); 39 MainWindowOperator.getDefault().menuBar().pushMenu(MENU, "|", new Operator.DefaultStringComparator(true, true)); 40 } 41 42 } 43 | Popular Tags |