void IAssetMenuOperations.Checkout() { List <string> selectedPaths = GetSelectedPaths.ForOperation( mAssetSelection, mAssetStatusCache, AssetMenuOperations.Checkout); if (mIsGluonMode) { GluonCheckoutOperation.Checkout( mViewHost, mProgressControls, mGuiMessage, selectedPaths.ToArray(), false, RefreshAsset.VersionControlCache); return; } CheckoutOperation.Checkout( mWorkspaceWindow, null, mProgressControls, selectedPaths, mNewIncomingChangesUpdater, RefreshAsset.VersionControlCache); }
static bool Provider_preCheckoutCallback( AssetList list, ref string changesetID, ref string changesetDescription) { if (!sIsEnabled) { return(true); } if (!FindWorkspace.HasWorkspace(Application.dataPath)) { Disable(); return(true); } if (sWorkspaceWindow == null) { EditorWindow.GetWindow <PlasticWindow>(); } List <string> selectedPaths = GetSelectedPaths.ForOperation( list, PlasticPlugin.AssetStatusCache, AssetMenuOperations.Checkout); if (sIsGluonMode) { GluonCheckoutOperation.Checkout( sViewHost, sProgressControls, sGuiMessage, selectedPaths.ToArray(), false, RefreshAsset.VersionControlCache); return(true); } CheckoutOperation.Checkout( sWorkspaceWindow, null, sProgressControls, selectedPaths, sNewIncomingChangesUpdater, RefreshAsset.VersionControlCache); return(true); }