Search in sources :

Example 1 with ChangeEnabledState

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);
        }
    });
}
Also used : ChangeEnabledState(org.eclipse.che.ide.ext.java.shared.dto.refactoring.ChangeEnabledState) OperationException(org.eclipse.che.api.promises.client.OperationException)

Aggregations

OperationException (org.eclipse.che.api.promises.client.OperationException)1 ChangeEnabledState (org.eclipse.che.ide.ext.java.shared.dto.refactoring.ChangeEnabledState)1