Search in sources :

Example 6 with ShellMenuItem

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();
    }
}
Also used : ShellMenuItem(org.eclipse.reddeer.swt.impl.menu.ShellMenuItem)

Example 7 with ShellMenuItem

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();
}
Also used : ShellMenuItem(org.eclipse.reddeer.swt.impl.menu.ShellMenuItem) TextEditor(org.eclipse.reddeer.workbench.impl.editor.TextEditor)

Example 8 with ShellMenuItem

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");
}
Also used : ShellMenuItem(org.eclipse.reddeer.swt.impl.menu.ShellMenuItem) ContextMenuItem(org.eclipse.reddeer.swt.impl.menu.ContextMenuItem) Test(org.junit.Test)

Example 9 with ShellMenuItem

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();
}
Also used : ShellMenuItem(org.eclipse.reddeer.swt.impl.menu.ShellMenuItem) DefaultShell(org.eclipse.reddeer.swt.impl.shell.DefaultShell) HibernatePerspective(org.jboss.tools.hibernate.reddeer.perspective.HibernatePerspective)

Aggregations

ShellMenuItem (org.eclipse.reddeer.swt.impl.menu.ShellMenuItem)9 WaitWhile (org.eclipse.reddeer.common.wait.WaitWhile)4 DefaultShell (org.eclipse.reddeer.swt.impl.shell.DefaultShell)4 JobIsRunning (org.eclipse.reddeer.workbench.core.condition.JobIsRunning)4 Test (org.junit.Test)3 WaitUntil (org.eclipse.reddeer.common.wait.WaitUntil)2 ControlIsEnabled (org.eclipse.reddeer.swt.condition.ControlIsEnabled)2 ShellIsAvailable (org.eclipse.reddeer.swt.condition.ShellIsAvailable)2 FinishButton (org.eclipse.reddeer.swt.impl.button.FinishButton)2 NextButton (org.eclipse.reddeer.swt.impl.button.NextButton)2 DefaultTreeItem (org.eclipse.reddeer.swt.impl.tree.DefaultTreeItem)2 RedDeerException (org.eclipse.reddeer.common.exception.RedDeerException)1 CoreLayerException (org.eclipse.reddeer.core.exception.CoreLayerException)1 BreakpointsView (org.eclipse.reddeer.eclipse.debug.ui.views.breakpoints.BreakpointsView)1 PackageExplorerPart (org.eclipse.reddeer.eclipse.jdt.ui.packageview.PackageExplorerPart)1 ProjectExplorer (org.eclipse.reddeer.eclipse.ui.navigator.resources.ProjectExplorer)1 AutoBuildingRequirement (org.eclipse.reddeer.requirements.autobuilding.AutoBuildingRequirement)1 AutoBuilding (org.eclipse.reddeer.requirements.autobuilding.AutoBuildingRequirement.AutoBuilding)1 TreeHasChildren (org.eclipse.reddeer.swt.condition.TreeHasChildren)1 BackButton (org.eclipse.reddeer.swt.impl.button.BackButton)1