Пример #1
0
 /**
  * {@inheritDoc}
  *
  * @see org.eclipse.emf.eef.modelingBot.IModelingBot#removeProject(java.lang.String)
  */
 public void removeProject(String projectName) {
   final SWTBotTreeItem treeItem = selectInProjectExplorer(projectName);
   SWTBotHelper.clickContextMenu(treeItem, UIConstants.DELETE_MENU);
   checkBox().select();
   button(UIConstants.OK_BUTTON).click();
   SWTBotHelper.waitAllUiEvents();
   sleep(3000);
 }
Пример #2
0
 /**
  * Remove referenceableObject.
  *
  * @param referenceableObject
  */
 private void remove(ReferenceableObject referenceableObject) {
   assertNotNull("The editeur is not opened.", editor);
   final EObject container = getEObjectFromReferenceableEObject(referenceableObject);
   assertNotNull("No container is found to launch add action.", container);
   final SWTBotTreeItem selectNode = selectNode(editor, container);
   assertNotNull("No element is selected in the editor", selectNode);
   SWTBotHelper.clickContextMenu(selectNode, UIConstants.DELETE_MENU);
   SWTBotHelper.waitAllUiEvents();
 }
Пример #3
0
 /**
  * Add ReferenceableObject.
  *
  * @param referenceableObject
  * @param eContainingFeature
  * @return
  */
 private EObject add(
     ReferenceableObject referenceableObject, final EStructuralFeature eContainingFeature) {
   assertNotNull("The editeur is not opened.", editor);
   final EObject container = getEObjectFromReferenceableEObject(referenceableObject);
   assertNotNull("No container is found to launch add action.", container);
   final SWTBotTreeItem selectNode = selectNode(editor, container);
   assertNotNull("No element is selected in the editor", selectNode);
   SWTBotHelper.clickContextMenu(selectNode, eContainingFeature.getEType().getName());
   SWTBotHelper.waitAllUiEvents();
   return (EObject) EEFModelHelper.eGet(container, eContainingFeature);
 }
Пример #4
0
 /**
  * Open eef editor.
  *
  * @param path
  * @param modelName
  */
 private void openWithEEFEditor(String path, String modelName) {
   final SWTBotTree wizardTree = viewByTitle(UIConstants.PACKAGE_EXPLORER_VIEW_NAME).bot().tree();
   final SWTBotTreeItem treeItem = wizardTree.expandNode(path).expandNode(modelName).select();
   SWTBotHelper.clickContextMenu(treeItem, UIConstants.OPEN_WITH_INTERACTIVE_EEF_EDITOR_MENU);
 }
Пример #5
0
 /**
  * {@inheritDoc}
  *
  * @see org.eclipse.emf.eef.modelingBot.IModelingBot#openEEFEditor(java.lang.String)
  */
 public void openEEFEditor(String path) {
   final SWTBotTreeItem treeItem = selectInProjectExplorer(path);
   SWTBotHelper.clickContextMenu(treeItem, UIConstants.INTERACTIVE_EEF_EDITOR_MENU);
 }
Пример #6
0
 /**
  * {@inheritDoc}
  *
  * @see org.eclipse.emf.eef.modelingBot.IModelingBot#closeProject(java.lang.String)
  */
 public void closeProject(String projectName) {
   final SWTBotTreeItem treeItem = selectInProjectExplorer(projectName);
   SWTBotHelper.clickContextMenu(treeItem, UIConstants.CLOSE_PROJECT_MENU);
 }