use of org.jboss.tools.cdk.reddeer.server.ui.editor.MinishiftServerEditor 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