internal static void OpenGUIForMode(string wkPath, bool isGluonMode) { mLog.DebugFormat("Opening GUI on wkPath '{0}'.", wkPath); if (isGluonMode) { mGluonProcessId = ExecuteGUI( PlasticInstallPath.GetGluonExePath(), string.Format(ToolConstants.Gluon.GUI_WK_EXPLORER_ARG, wkPath), ToolConstants.Gluon.GUI_COMMAND_FILE_ARG, ToolConstants.Gluon.GUI_COMMAND_FILE, mGluonProcessId); return; } if (PlatformIdentifier.IsMac()) { mPlasticProcessId = ExecuteGUI( PlasticInstallPath.GetPlasticExePath(), string.Format(ToolConstants.Plastic.GUI_MACOS_WK_EXPLORER_ARG, wkPath), ToolConstants.Plastic.GUI_MACOS_COMMAND_FILE_ARG, ToolConstants.Plastic.GUI_MACOS_COMMAND_FILE, mPlasticProcessId); return; } ExecuteProcess( PlasticInstallPath.GetPlasticExePath(), string.Format(ToolConstants.Plastic.GUI_WINDOWS_WK_ARG, wkPath)); }
internal static bool ForMode(bool isGluonMode) { string toolPath = isGluonMode ? PlasticInstallPath.GetGluonExePath() : PlasticInstallPath.GetPlasticExePath(); return(!string.IsNullOrEmpty(toolPath)); }
internal static void OpenWorkspaceConfiguration(string wkPath) { mLog.DebugFormat("Opening Workspace Configuration on wkPath '{0}'.", wkPath); mGluonProcessId = ExecuteGUI( PlasticInstallPath.GetGluonExePath(), string.Format(ToolConstants.Gluon.GUI_WK_CONFIGURATION_ARG, wkPath), ToolConstants.Gluon.GUI_COMMAND_FILE_ARG, ToolConstants.Gluon.GUI_COMMAND_FILE, mGluonProcessId); }
internal static void OpenConfigurationForMode(bool isGluonMode) { mLog.Debug("Opening Configuration'."); if (isGluonMode) { mGluonProcessId = ExecuteProcess( PlasticInstallPath.GetGluonExePath(), ToolConstants.Gluon.GUI_CONFIGURE_ARG); return; } mPlasticProcessId = ExecuteProcess( PlasticInstallPath.GetPlasticExePath(), ToolConstants.Plastic.GUI_CONFIGURE_ARG); }
internal static void OpenChangesetDiffs(string fullChangesetSpec, bool isGluonMode) { mLog.DebugFormat("Launching changeset diffs for '{0}'", fullChangesetSpec); string exePath = (isGluonMode) ? PlasticInstallPath.GetGluonExePath() : PlasticInstallPath.GetPlasticExePath(); string changesetDiffArg = (isGluonMode) ? ToolConstants.Gluon.GUI_CHANGESET_DIFF_ARG : ToolConstants.Plastic.GUI_CHANGESET_DIFF_ARG; ExecuteProcess(exePath, string.Format( changesetDiffArg, fullChangesetSpec)); }
internal static void OpenBranchDiffs(string fullBranchSpec, bool isGluonMode) { mLog.DebugFormat("Launching branch diffs for '{0}'", fullBranchSpec); string exePath = (isGluonMode) ? PlasticInstallPath.GetGluonExePath() : PlasticInstallPath.GetPlasticExePath(); string branchDiffArg = (isGluonMode) ? ToolConstants.Gluon.GUI_BRANCH_DIFF_ARG : ToolConstants.Plastic.GUI_BRANCH_DIFF_ARG; ExecuteProcess(exePath, string.Format( branchDiffArg, fullBranchSpec)); }
internal static void OpenMerge(string wkPath) { mLog.DebugFormat("Opening Merge on wkPath '{0}'.", wkPath); if (PlatformIdentifier.IsMac()) { mPlasticProcessId = ExecuteGUI( PlasticInstallPath.GetPlasticExePath(), string.Format(ToolConstants.Plastic.GUI_MACOS_MERGE_ARG, wkPath), ToolConstants.Plastic.GUI_MACOS_COMMAND_FILE_ARG, ToolConstants.Plastic.GUI_MACOS_COMMAND_FILE, mPlasticProcessId); return; } ExecuteProcess( PlasticInstallPath.GetPlasticExePath(), string.Format(ToolConstants.Plastic.GUI_WINDOWS_MERGE_ARG, wkPath)); }
internal static void OpenSelectedChangesetsDiffs( string srcFullChangesetSpec, string dstFullChangesetSpec, bool isGluonMode) { mLog.DebugFormat("Launching selected changesets diffs for '{0}' and '{1}'", srcFullChangesetSpec, dstFullChangesetSpec); string exePath = (isGluonMode) ? PlasticInstallPath.GetGluonExePath() : PlasticInstallPath.GetPlasticExePath(); string selectedChangesetsDiffArgs = (isGluonMode) ? ToolConstants.Gluon.GUI_SELECTED_CHANGESETS_DIFF_ARGS : ToolConstants.Plastic.GUI_SELECTED_CHANGESETS_DIFF_ARGS; ExecuteProcess(exePath, string.Format( selectedChangesetsDiffArgs, srcFullChangesetSpec, dstFullChangesetSpec)); }