internal void PartialCheckin(bool keepItemsLocked) { List <ChangeInfo> changesToCheckin; List <ChangeInfo> dependenciesCandidates; mChangesTreeView.GetCheckedChanges( false, out changesToCheckin, out dependenciesCandidates); if (CheckEmptyOperation(changesToCheckin)) { mProgressControls.ShowWarning( PlasticLocalization.GetString(PlasticLocalization.Name.NoItemsAreSelected)); return; } CheckinUIOperation ciOperation = new CheckinUIOperation( mWkInfo, mViewHost, mProgressControls, mGuiMessage, new LaunchCheckinConflictsDialog(mPlasticWindow), new LaunchDependenciesDialog( PlasticLocalization.GetString(PlasticLocalization.Name.CheckinButton), mPlasticWindow), this, mGluonProgressOperationHandler); ciOperation.Checkin( changesToCheckin, dependenciesCandidates, CommentText, keepItemsLocked, Refresh.UnityAssetDatabase); }
void PartialCheckin(bool keepItemsLocked) { List <ChangeInfo> changesToCheckin; List <ChangeInfo> dependenciesCandidates; mPendingChangesTreeView.GetCheckedChanges( false, out changesToCheckin, out dependenciesCandidates); if (CheckEmptyOperation(changesToCheckin)) { ((IProgressControls)mProgressControls).ShowWarning( PlasticLocalization.GetString(PlasticLocalization.Name.NoItemsAreSelected)); return; } bool isCancelled; SaveAssets.ForChangesWithConfirmation(changesToCheckin, out isCancelled); if (isCancelled) { return; } CheckinUIOperation ciOperation = new CheckinUIOperation( mWkInfo, mViewHost, mProgressControls, mGuiMessage, new LaunchCheckinConflictsDialog(mParentWindow), new LaunchDependenciesDialog( PlasticLocalization.GetString(PlasticLocalization.Name.CheckinButton), mParentWindow), this, mWorkspaceWindow.GluonProgressOperationHandler); ciOperation.Checkin( changesToCheckin, dependenciesCandidates, CommentText, keepItemsLocked, RefreshAsset.UnityAssetDatabase); }