Search in sources :

Example 1 with CDKLaunchConfigurationDialog

use of org.jboss.tools.cdk.reddeer.server.ui.editor.launch.configuration.CDKLaunchConfigurationDialog in project jbosstools-openshift by jbosstools.

the class CDKLaunchConfigurationTest method openLaunchConfiguration.

/**
 * Open Launch configuration dialog via server editor and return object of CDKLaunchConfigurationDialog
 * @return
 */
private void openLaunchConfiguration() {
    editor.openLaunchConfigurationFromLink();
    DefaultShell shell = new DefaultShell("Edit Configuration");
    shell.setFocus();
    launchDialog = new CDKLaunchConfigurationDialog(shell);
}
Also used : DefaultShell(org.eclipse.reddeer.swt.impl.shell.DefaultShell) CDKLaunchConfigurationDialog(org.jboss.tools.cdk.reddeer.server.ui.editor.launch.configuration.CDKLaunchConfigurationDialog)

Example 2 with CDKLaunchConfigurationDialog

use of org.jboss.tools.cdk.reddeer.server.ui.editor.launch.configuration.CDKLaunchConfigurationDialog in project jbosstools-openshift by jbosstools.

the class CDKServerAdapterAbstractTest method addParamsToCDKLaunchConfig.

/**
 * Adds string containing proper flags/parameters into server adapter starting arguments
 * @param paramsToAdd
 */
protected void addParamsToCDKLaunchConfig(Server server, String paramsToAdd) {
    server.open();
    (new MinishiftServerEditor(server.getLabel().getName())).openLaunchConfigurationFromLink();
    CDKLaunchConfigurationDialog launchConfig = new CDKLaunchConfigurationDialog();
    if (!launchConfig.getArguments().getText().contains(paramsToAdd)) {
        launchConfig.addArguments(paramsToAdd);
    } else {
        log.info(server.getLabel().getName() + " launch config already contains given arguments");
    }
    launchConfig.ok();
}
Also used : MinishiftServerEditor(org.jboss.tools.cdk.reddeer.server.ui.editor.MinishiftServerEditor) CDKLaunchConfigurationDialog(org.jboss.tools.cdk.reddeer.server.ui.editor.launch.configuration.CDKLaunchConfigurationDialog)

Aggregations

CDKLaunchConfigurationDialog (org.jboss.tools.cdk.reddeer.server.ui.editor.launch.configuration.CDKLaunchConfigurationDialog)2 DefaultShell (org.eclipse.reddeer.swt.impl.shell.DefaultShell)1 MinishiftServerEditor (org.jboss.tools.cdk.reddeer.server.ui.editor.MinishiftServerEditor)1