use of org.eclipse.che.ide.ext.java.shared.dto.refactoring.ChangeEnabledState in project che by eclipse.
the class PreviewPresenter method onEnabledStateChanged.
/** {@inheritDoc} */
@Override
public void onEnabledStateChanged(final RefactoringPreview change) {
ChangeEnabledState changeEnableState = dtoFactory.createDto(ChangeEnabledState.class);
changeEnableState.setChangeId(change.getId());
changeEnableState.setSessionId(session.getSessionId());
changeEnableState.setEnabled(change.isEnabled());
refactoringService.changeChangeEnabledState(changeEnableState).then(new Operation<Void>() {
@Override
public void apply(Void arg) throws OperationException {
onSelectionChanged(change);
}
});
}
Aggregations