API specifications of NAB framework June 21, 2006
Contents PreviousNext

Chapter 5 NAB Framework API Reference

5.5 INtkProjectManager(Project Manager)

INtkProjectManager defines the interface used to manage project information required for building an NTK application in NAB Framework.

An instance of the implementation class of this interface is set in NtkManager, and it operates under the control of NtkManager.

Implementation example: MwtProjectManager

 

Generally, the following interfaces can be used:

Table: Interfaces related to projects

Method name

Outline

String getProjectDefaultData(long prj,String var,int encoding)

Acquires the default value of the specified project.

In the implementation class, the interface is implemented to acquire default information corresponding to the specified project information from an NTK, and it returns this value in the form of a String-type value.

String getProjectData(long prj,String var,int encoding)

Acquires the value of the specified project information.

In the implementation class, the interface is implemented to acquire information corresponding to the specified project information from an NTK, and it returns this value in the form of a String-type value.

int setProjectData(long prj,String var,String val,int encodeing)

Sets the value specified for project information in the form of a String-type value.

In the implementation class, the interface is implemented to set the String-type information specified for NTK project information.

String getCurrentProjectFullPath()

Acquires the full path name of the current project.

String getProjectPath()

Acquires the path name of the current project.

void setCurrentProjectName(String name)

Sets a name for the current project.

String getCurrentProjectName()

Acquires the project name of the current project.

long getCurrentProject()

Acquires the NTK project ID of the current project.

int getCurrentProjectLangType()

Acquires the language type of the current project.

Table: Interfaces related to fixed information settings

Method name

Outline

long getStaticData(int kind,long id)

Acquires the fixed information specified by ID (Long type) in the form of a Long-type value.

In the implementation class, the interface is implemented to acquire information corresponding to the specified fixed information from an NTK, and it returns this value in the form of a Long-type value.

String getStaticData(int kind,long id,int encoding)

Acquires the fixed information specified by ID (Long type) in the form of a String-type value.

In the implementation class, the interface is implemented to acquire information corresponding to the specified fixed information from an NTK, and it returns this value in the form of a String-type value.

String getStaticData(int kind,String key,int encoding)

Acquires the fixed information specified by String type in the form of a String-type value.

In the implementation class, the interface is implemented to acquire information corresponding to the specified fixed information from an NTK, and it returns this value in the form of a String-type value.

String getEnvironmentData(String key,int encoding)

Acquires the environment information specified by String type in the form of a String-type value.

In the implementation class, the interface is implemented to acquire information corresponding to the specified environment information from an NTK and returns this value in the form of a String-type value.

int setEnvironmentData(String key,String val,int encoding)

Sets the environment information specified by String type in the form of a String-type value.

In the implementation class, the interface is implemented to set information corresponding to the specified environment information for an NTK in the form of a String-type value.

int saveEnvironmentData()

Saves environment information.

In the implementation class, the interface is implemented to save environment information for an NTK.

Table: Interfaces related to project operations

Method name

Outline

int doOperation(long prj,int kind)

Performs the specified type of operation for a project.

In the implementation class, the operation for the project is implemented for the operation type.

void closeNtkProject(IProject prj)

Closes the NTK project corresponding to the specified project.

In the implementation class, the interface is implemented to close the project whose information is specific to an NTK not under the control of Eclipse and that corresponds to the specified Eclipse project.

void saveNtkProject(IProject prj)

Saves the NTK project corresponding to the specified project.

In the implementation class, the interface is implemented to save project information specific to an NTK not under the control of Eclipse.

void saveCurrentNtkProject()

Saves the current NTK project.

In the implementation class, the interface is implemented to save project information specific to an NTK not under the control of Eclipse.

void createCurrentNtkProjectSources()

Saves the current NTK project.

In the implementation class, the interface is implemented to create the source code corresponding to a project specific to an NTK.

long loadNtkProject(String prj_name,IProject prj)

Reads the NTK project corresponding to the specified project.

In the implementation class, the interface is implemented to read corresponding project information specific to an NTK.

long createNewNtkProject(String prj_name)

Creates an NTK project with the specified name.

In the implementation class, the interface is implemented to create a project specific to an NTK, using the specified name.

void configureNtkProject(IProject prj,String lang)

Customizes the specified NTK project.

In the implementation class, a specific builder and specific characteristics are set to identify the NTK project.

int createProcedure(String dirname,String filename,int langType,String functionName,String classname)

Creates a template procedure in the specified directory.


Contents PreviousNext

All Rights Reserved, Copyright(C) FUJITSU LIMITED 2006