/
NewRuntimeWizardDialog.java
48 lines (41 loc) · 1.62 KB
/
NewRuntimeWizardDialog.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/*******************************************************************************
* Copyright (c) 2017 Red Hat, Inc and others.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Red Hat, Inc - initial API and implementation
*******************************************************************************/
package org.eclipse.reddeer.eclipse.wst.server.ui.wizard;
import org.eclipse.reddeer.common.wait.TimePeriod;
import org.eclipse.reddeer.common.wait.WaitUntil;
import org.eclipse.reddeer.jface.wizard.WizardDialog;
import org.eclipse.reddeer.workbench.core.condition.JobIsKilled;
/**
* Represents the wizard for creating new servers. It provides access to the first wizard page {@link NewRuntimeWizardPage}.
* Since the other pages depend on the selection of the concrete runtime type this wizard does not provide them.
*
* @author Lucia Jelinkova
*
*/
public class NewRuntimeWizardDialog extends WizardDialog{
public static final String DIALOG_TITLE = "New Server Runtime Environment";
public NewRuntimeWizardDialog() {
super(DIALOG_TITLE);
}
@Override
public void finish(TimePeriod timeout) {
// workaround due to JBDS-3596
new WaitUntil(new JobIsKilled("Refreshing server adapter list"), TimePeriod.LONG, false);
super.finish(timeout);
}
@Override
public void cancel() {
// workaround due to JBDS-3596
new WaitUntil(new JobIsKilled("Refreshing server adapter list"), TimePeriod.LONG, false);
super.cancel();
}
}