Project

public class Project

A single project in an ide Session.

Fields

client

protected final APIClient client

handle

protected long handle

Constructors

Project

protected Project(APIClient client)

Internal constructor

Methods

cancelVerification

public void cancelVerification()

Requests that all oustanding verification requests to do with this project are cancelled.

equals

public boolean equals(Object other)

fromProtobuf

public static Project fromProtobuf(APIClient client, Out.CocoIdeProject inputValue)

Internal constructor

generateSupportBundle

public String generateSupportBundle(String zipFile)

Generates an obfuscated zip file in the provided location

getHandle

public final long getHandle()

getUniqueId

public final long getUniqueId()

hashCode

public int hashCode()

languageStandard

public io.cocotec.coco.platform.coco.LanguageStandard languageStandard()

The language standard that the most recent context had for this project.

markAsActive

public void markAsActive()

Marks this project as active.

markAsActive

public void markAsActive(boolean exclusive)

Marks this project as active.

Parameters:
  • exclusive – If true, then marks all other projects as inactive

markAsInactive

public void markAsInactive()

mostRecentContext

public io.cocotec.coco.platform.coco.ide.ProjectContext mostRecentContext()

The context that was most recently loaded into this context.

rootDirectory

public String rootDirectory()

The root directory of this project.

rootNode

public io.cocotec.coco.platform.coco.ide.ProjectTreeNode rootNode()

The root node of the project’s tree item.

startCodeGeneration

public void startCodeGeneration(io.cocotec.coco.platform.coco.CodeGenerationLanguage language, String outputDirectory)

Starts code generation on this project.

startCodeGeneration

public void startCodeGeneration()

Starts code generation on this project, using the settings from the package manifest.

startCreateSimulator

public void startCreateSimulator(io.cocotec.coco.platform.coco.ide.ProjectTreeNode toSimulate)

Creates a simulator that is suitable for simulating the given node.

startForceReload

public void startForceReload()

Forces this project to be reloaded from dsk, even if no changes have been detected.

startVerification

public void startVerification()

Starts verification on this project.

startVerification

public void startVerification(io.cocotec.coco.platform.coco.ide.ProjectTreeNode verifyOnly)

Starts verification on this project verifying only items in the given subtree.

startVerification

public void startVerification(io.cocotec.coco.platform.coco.ide.ProjectTreeNode verifyOnly, boolean ignoreCache)

Starts verification on this project verifying only items in the given subtree.