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);
}
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();
}
Aggregations