Skip to content

Instantly share code, notes, and snippets.

@jcheng5
Created June 20, 2012 18:18
Show Gist options
  • Save jcheng5/2961373 to your computer and use it in GitHub Desktop.
Save jcheng5/2961373 to your computer and use it in GitHub Desktop.
if (!sameElements(concat(ts1, ts2), new String[] {"Workspace", "History", "Files", "Plots", "Packages", "Help", "VCS", "PkgBuild"}))
{
if (!sameElements(concat(ts1, ts2), new String[] {"Workspace", "History", "Files", "Plots", "Packages", "Help", "VCS"}))
{
if (!sameElements(concat(ts1, ts2), new String[] {"Workspace", "History", "Files", "Plots", "Packages", "Help"}))
return false;
// It's only that the VCS tab is missing. Add it to tabset 1.
ts1.push("VCS");
}
ts2.push("PkgBuild");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment