use of org.eclipse.reddeer.swt.impl.menu.ShellMenuItem in project jbosstools-openshift by jbosstools.
the class DebuggingEAPAppTest method toggleAutoBuild.
private static void toggleAutoBuild(boolean autoBuild) {
ShellMenuItem autoBuildMenuItem = new ShellMenuItem("Project", "Build Automatically");
boolean isSelected = autoBuildMenuItem.isSelected();
if (autoBuild && !isSelected) {
autoBuildMenuItem.select();
}
if (!autoBuild && isSelected) {
autoBuildMenuItem.select();
}
}
use of org.eclipse.reddeer.swt.impl.menu.ShellMenuItem in project jbosstools-openshift by jbosstools.
the class DebuggingEAPAppTest method setBreakpointToLineWithText.
// Sets breakpoint to first appearance of given text.
private void setBreakpointToLineWithText(ProjectItem file, String text) {
file.open();
TextEditor textEditor = new TextEditor("HelloService.java");
textEditor.setCursorPosition(textEditor.getPositionOfText(text));
new ShellMenuItem("Run", "Toggle Breakpoint").select();
}
use of org.eclipse.reddeer.swt.impl.menu.ShellMenuItem in project jbosstools-hibernate by jbosstools.
the class JpaAnnotationGenerationTest method testGenerateJPAHibernateAnnotations.
@Test
public void testGenerateJPAHibernateAnnotations() {
ProjectUtils.getItem(prj, PCKG, "Dog.java").select();
new ContextMenuItem("Source", "Generate Hibernate/JPA annotations...").select();
postCheck("Dog");
ProjectUtils.getItem(prj, PCKG, "Owner.java").select();
new ShellMenuItem("Source", "Generate Hibernate/JPA annotations...").select();
postCheck("Owner");
}
use of org.eclipse.reddeer.swt.impl.menu.ShellMenuItem in project jbosstools-hibernate by jbosstools.
the class LaunchConfigurationsDialog method open.
/**
* Opens Hibernate code generation configuration dialog
*/
public void open() {
HibernatePerspective p = new HibernatePerspective();
p.open();
new ShellMenuItem("Run", "Hibernate Code Generation...", "Hibernate Code Generation Configurations...").select();
swtWidget = new DefaultShell(DIALOG_TITLE).getSWTWidget();
}
Aggregations