Last active
December 15, 2015 19:59
-
-
Save andyhuey/5315552 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void openAllProjects() | |
{ | |
// get the project list, and open all projects. | |
Array projects; | |
int i; | |
ProjectNode sharedProjects, privateProjects, projectNode; | |
projects = this.getProjectList(); | |
sharedProjects = Infolog.projectRootNode().AOTfindChild('Shared'); | |
if (!sharedProjects) | |
throw error("Error: cannot locate shared project node!"); | |
privateProjects = Infolog.projectRootNode().AOTfindChild('Private'); | |
if (!privateProjects) | |
throw error("Error: cannot locate private project node!"); | |
for (i=1; i <= projects.lastIndex(); i++) | |
{ | |
projectNode = sharedProjects.AOTfindChild(projects.value(i)); | |
if (!ProjectNode) | |
projectNode = privateProjects.AOTfindChild(projects.value(i)); | |
if (projectNode) | |
projectNode.getRunNode(); | |
else | |
warning(strFmt("Project %1 cannot be found.", projects.value(i))); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment