use of org.eclipse.che.ide.api.debug.DebugConfiguration in project che by eclipse.
the class DebugConfigurationsManagerImpl method createConfiguration.
@Override
public DebugConfiguration createConfiguration(String typeId, String name, String host, int port, Map<String, String> connectionProperties) {
final DebugConfigurationType configurationType = configurationTypeRegistry.getConfigurationTypeById(typeId);
final DebugConfiguration configuration = new DebugConfiguration(configurationType, generateUniqueConfigurationName(configurationType, name), host, port, connectionProperties);
configurations.add(configuration);
saveConfigurations();
fireConfigurationAdded(configuration);
return configuration;
}
use of org.eclipse.che.ide.api.debug.DebugConfiguration in project che by eclipse.
the class EditDebugConfigurationsPresenter method onSaveClicked.
@Override
public void onSaveClicked() {
final DebugConfiguration selectedConfiguration;
if (view.getSelectedConfiguration() == null) {
return;
}
onNameChanged();
selectedConfiguration = view.getSelectedConfiguration();
updateConfiguration(selectedConfiguration);
fetchConfigurations();
}
use of org.eclipse.che.ide.api.debug.DebugConfiguration in project che by eclipse.
the class EditDebugConfigurationsPresenter method onDebugClicked.
@Override
public void onDebugClicked() {
DebugConfiguration selectedConfiguration = view.getSelectedConfiguration();
if (selectedConfiguration != null) {
debugConfigurationsManager.setCurrentDebugConfiguration(selectedConfiguration);
debugConfigurationsManager.apply(selectedConfiguration);
onCloseClicked();
}
}
use of org.eclipse.che.ide.api.debug.DebugConfiguration in project che by eclipse.
the class EditDebugConfigurationsPresenter method onNameChanged.
@Override
public void onNameChanged() {
DebugConfiguration selectedConfiguration = view.getSelectedConfiguration();
if (selectedConfiguration == null || !selectedConfiguration.equals(editedConfiguration)) {
return;
}
selectedConfiguration.setName(view.getConfigurationName());
view.setCancelButtonState(isViewModified());
view.setSaveButtonState(isViewModified());
view.setDebugButtonState(!isViewModified());
}
use of org.eclipse.che.ide.api.debug.DebugConfiguration in project che by eclipse.
the class EditDebugConfigurationsPresenter method createConfiguration.
private void createConfiguration(DebugConfigurationType type, String customName, Map<String, String> connectionProperties) {
final DebugConfiguration configuration = debugConfigurationsManager.createConfiguration(type.getId(), customName, "localhost", 8000, connectionProperties);
fetchConfigurations();
view.setSelectedConfiguration(configuration);
}
Aggregations