@Override
 public void testMethodImpl() throws Exception {
   final Editor editor = TestBody.this.initEditor("6500338114639041775", "6500338114639041779");
   EditorComponent editorComponent = (EditorComponent) editor.getCurrentEditorComponent();
   BaseEditorTestBody.typeString(editorComponent, " ");
   BaseEditorTestBody.pressKeys(
       editorComponent, ListSequence.fromListAndArray(new ArrayList<String>(), "ctrl SPACE"));
   Assert.assertTrue(editorComponent.getNodeSubstituteChooser().isVisible());
   Assert.assertTrue(editorComponent.getNodeSubstituteChooser().isMenuEmpty());
   editorComponent.getNodeSubstituteChooser().setVisible(false);
   BaseEditorTestBody.pressKeys(
       editorComponent, ListSequence.fromListAndArray(new ArrayList<String>(), " ESCAPE"));
 }
Ejemplo n.º 2
0
 /*package*/ static boolean isReadonlyActionEnabled(EditorComponent editorComponent) {
   return editorComponent.isFocusOwner()
       && !(editorComponent.getNodeSubstituteChooser().isVisible())
       && editorComponent.getSelectionManager().getSelection() != null;
 }