use of org.eclipse.che.ide.api.project.MutableProjectConfig in project che by eclipse.
the class ImportProjectWizardPresenter method createDefaultWizard.
/** Creates and returns 'default' project wizard with pre-defined pages only. */
private ImportWizard createDefaultWizard() {
final MutableProjectConfig dataObject = new MutableProjectConfig();
final ImportWizard importWizard = importWizardFactory.newWizard(dataObject);
importWizard.setUpdateDelegate(this);
// add pre-defined first page
importWizard.addPage(mainPage);
return importWizard;
}
use of org.eclipse.che.ide.api.project.MutableProjectConfig in project che by eclipse.
the class ConvertFolderToProjectActionTest method configurationWizardShouldBeShowed.
@Test
public void configurationWizardShouldBeShowed() throws Exception {
when(resource.getName()).thenReturn(TEXT);
action.actionPerformed(event);
verify(resource).getName();
verify(projectConfigWizard).show(projectConfigCapture.capture());
MutableProjectConfig projectConfig = projectConfigCapture.getValue();
assertEquals(TEXT, projectConfig.getName());
assertEquals(TEXT, projectConfig.getPath());
}
use of org.eclipse.che.ide.api.project.MutableProjectConfig in project che by eclipse.
the class ProjectWizardPresenter method show.
/** Open the project wizard with given mode. */
public void show(Path parent) {
resetState();
this.wizardMode = CREATE;
MutableProjectConfig config = new MutableProjectConfig();
config.setPath(parent.toString());
showDialog(config);
}
Aggregations